query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
8c7a7c2c37ee78e625ef7b5637c65e55
Add points to map
[ { "docid": "070df4cfdbd9bd7b3fc3abf7452c6366", "score": "0.69693905", "text": "function addPointsToMap(map, tweets) {\n function onEachFeature(feature, layer) {\n var popupContent;\n \n if (feature.properties && feature.properties.popupContent) {\n popupContent = feature.properties.popupContent;\n }\n\n layer.bindPopup(popupContent);\n }\n L.geoJson([tweets], {\n style: function (feature) {\n return feature.properties && feature.properties.style;\n },\n onEachFeature: onEachFeature,\n pointToLayer: function (feature, latlng) {\n return L.circleMarker(latlng, {\n radius: 8,\n fillColor: \"#ff7800\",\n color: \"#000\",\n weight: 1,\n opacity: 1,\n fillOpacity: 0.8\n });\n }\n }).addTo(map); \n \n map.on(\"zoomend\", function(event) {\n if (!prevZoomAction) {\n prevZoomAction = new Date();\n getMoreLocationOnAction();\n } else {\n newZoomAction = new Date();\n var interval = (newZoomAction - prevZoomAction);\n if (interval > 1000) {\n getMoreLocationOnAction();\n prevZoomAction = newZoomAction; \n }\n }\n \n });\n map.on(\"dragend\", function(event) {\n if (!prevPanAction) {\n prevPanAction = new Date();\n getMoreLocationOnAction();\n } else {\n newPanAction = new Date();\n var interval = (newPanAction - prevPanAction);\n if (interval > 1000) {\n getMoreLocationOnAction();\n prevPanAction = newPanAction; \n }\n }\n });\n \n }", "title": "" } ]
[ { "docid": "75aa17f4c0f11f6272340909e26f3b4d", "score": "0.7288835", "text": "function onAddPoint(event) {\n var mapPoint;\n\n if (_lat && _lon) {\n mapPoint = FC.mapEntities.addPoint(_lat, _lon, {\n name: _name,\n isActive: true\n });\n\n self.$content.trigger(\"pointschanged\", {\n point: new FC.GeoPoint(_lat, _lon, _name),\n mapPoint: mapPoint\n });\n }\n }", "title": "" }, { "docid": "285e81875fde3cf2ef7aadcb586c02fe", "score": "0.72718155", "text": "function drawPoints(map,source){\n\tmap.addLayer({\n\t\tid: 'locations',\n\t\ttype: 'symbol',\n\t\t// Add a GeoJSON source containing place coordinates and information.\n\t\tsource: source,\n\t\tlayout: {\n\t\t\t'icon-image': 'bus-15',\n\t\t\t'icon-allow-overlap': false,\n\t\t\t'text-field':\"{title}\",\n\t\t\t\"text-font\": [\"Open Sans Semibold\", \"Arial Unicode MS Bold\"],\n\t\t\t\"text-offset\": [0, 0.2],\n\t\t\t\"text-anchor\": \"top\",\n\t\t\t\"text-size\" : 12\n\t\t}\n\t});\n}", "title": "" }, { "docid": "fe263776e2ce9b4b8b373bcbb95da2a1", "score": "0.70987535", "text": "function addPoint(x, y) {\n\t\tif (gs_xymap.min > y) gs_xymap.min = y;\n\t\tif (!gs_xymap[y]) {\n\t\t\tgs_xymap[y] = [ x ];\n\t\t} else {\n\t\t\tgs_xymap[y].push(x);\n\t\t}\n\t}", "title": "" }, { "docid": "fe263776e2ce9b4b8b373bcbb95da2a1", "score": "0.70987535", "text": "function addPoint(x, y) {\n\t\tif (gs_xymap.min > y) gs_xymap.min = y;\n\t\tif (!gs_xymap[y]) {\n\t\t\tgs_xymap[y] = [ x ];\n\t\t} else {\n\t\t\tgs_xymap[y].push(x);\n\t\t}\n\t}", "title": "" }, { "docid": "fe263776e2ce9b4b8b373bcbb95da2a1", "score": "0.70987535", "text": "function addPoint(x, y) {\n\t\tif (gs_xymap.min > y) gs_xymap.min = y;\n\t\tif (!gs_xymap[y]) {\n\t\t\tgs_xymap[y] = [ x ];\n\t\t} else {\n\t\t\tgs_xymap[y].push(x);\n\t\t}\n\t}", "title": "" }, { "docid": "68a8ad98f9be897a242250931fcd4f5f", "score": "0.7070216", "text": "function mapPoints(points) {\r\n for (var i in points) {\r\n var point = points[i];\r\n if (point.Latitude !== '' && point.Longitude !== '' && point['Name'] !== '') {\r\n var marker = new L.RegularPolygonMarker([point.Latitude, point.Longitude], {\r\n numberOfSides: point['Sides'] === '0' || point['Sides'] === '' ? 50 : point['Sides'],\r\n weight: 2,\r\n color: point['Color'],\r\n fillOpacity: 0.5,\r\n imageCircleUrl: point['Marker Icon'],\r\n radius: point['Radius'] === \"\" ? 10 : point['Radius'],\r\n title: point['Name'],\r\n });\r\n\r\n marker.bindTooltip(point['Name'], {\r\n permanent: false,\r\n direction: 'auto'\r\n });\r\n marker.bindPopup(\"<b>\" + point['Name'] + '</b><br>' + point['Description']);\r\n if (AddColorGroup === true) {\r\n marker.addTo(PointLayers[point.GroupColor]);\r\n };\r\n if (AddSidesGroup === true) {\r\n marker.addTo(PointLayers[point.GroupSides]);\r\n };\r\n L.marker([point.Latitude, point.Longitude], {\r\n title: point['Name'].substring(0, 12)\r\n }).addTo(markersLayer);\r\n }\r\n }\r\n\r\n completePoints = true;\r\n }", "title": "" }, { "docid": "edf9d9c49465e55796010783f313c906", "score": "0.701325", "text": "function mapPoints(points) {\r\n for (var i in points) {\r\n var point = points[i];\t \r\n if (point.Latitude !== '' && point.Longitude !== '' && point['Name'] !== '') {\r\n var marker = new L.RegularPolygonMarker([point.Latitude, point.Longitude],\r\n\t\t\t\t\t\t {numberOfSides: point['Sides'] === '0' || point['Sides'] === '' ? 50 : point['Sides'] , \r\n\t\t\t\t\t\t\tweight: 2,\r\n\t\t\t\t\t\t\tcolor: point['Color'], \r\n\t\t\t\t\t\t\tfillOpacity: 0.5, \r\n\t\t\t\t\t\t\timageCircleUrl: point['Marker Icon'], \r\n\t\t\t\t\t\t\tradius: point['Radius']===\"\" ? 10 : point['Radius'],\r\n\t\t\t\t\t\t\ttitle : point['Name'],\r\n\t\t\t\t\t\t }) ; \r\n \r\n marker.bindTooltip(point['Name'],{ permanent: false , direction: 'auto'});\r\n marker.bindPopup(\"<b>\" + point['Name'] + '</b><br>' + point['Description']);\r\n if(AddColorGroup===true) {marker.addTo(PointLayers[point.GroupColor]);};\r\n\t\tif(AddSidesGroup===true) {marker.addTo(PointLayers[point.GroupSides]);};\r\n\t\tL.marker([point.Latitude, point.Longitude], {title: point['Name'].substring(0,12)}).addTo(markersLayer);\r\n }\r\n }\r\n \r\n completePoints = true;\r\n }", "title": "" }, { "docid": "563a6e85417954c8b5183ce4ef5d243b", "score": "0.7008176", "text": "function addPointOnMap(ev) {\n\t//création du point\n pointArray.push(new Point(ev.latlng.lat, ev.latlng.lng));\n latlngArray.push(ev.latlng);\n if (pointArray.length > 1) {\n\t\t//récupération de l'élévation\n polyline = L.polyline(latlngArray);\n var URL = elevationSegmentURL + '&latLngCollection=';\n for (var i = 0; i < latlngArray.length; i++) {\n var lat = latlngArray[i].lat;\n var lng = latlngArray[i].lng;\n URL += lat + \",\" + lng;\n if (i !== latlngArray.length - 1) {\n URL += \",\";\n }\n }\n URL.replace(/</g, '&lt;').replace(/>/g, '&gt;');\n elevationScript = document.createElement('script');\n elevationScript.type = 'text/javascript';\n elevationScript.src = URL;\n $(\"body\").append(elevationScript);\n map.off(\"click\");\n }\n}", "title": "" }, { "docid": "2554eabe4a63ceb19ef0b1378e50388c", "score": "0.68662673", "text": "add(point) {\n this._map[point.toString()] = true;\n }", "title": "" }, { "docid": "ce5e293fa40f18d3140b69512a2e2887", "score": "0.68363845", "text": "addPoint(point) {\n this._points.push(point);\n }", "title": "" }, { "docid": "ce5e293fa40f18d3140b69512a2e2887", "score": "0.68363845", "text": "addPoint(point) {\n this._points.push(point);\n }", "title": "" }, { "docid": "206a678adc07631113f7ae9a2dd40f72", "score": "0.67765474", "text": "function add_point(point){ // add a point\n pointList.push([point[0],point[1]]);\n visibility.push(true);\n }", "title": "" }, { "docid": "976610fb1cf0169949ef1e6b8c1b03a0", "score": "0.67406714", "text": "function setMarkers(map, points) {\n // Adds markers to the map.\n\tbounds = new google.maps.LatLngBounds();\n\tfor (var i = 0; i < points.length; i++) {\n\t\tvar point = points[i];\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: {lng: parseFloat(point.Point.coordinates.split(\",\")[0]),\n\t\t\t lat: parseFloat(point.Point.coordinates.split(\",\")[1])},\n\t\t\tmap: map,\n\t\t\t//icon: image,\n\t\t\t//shape: shape,\n\t\t\tlabel: String(i+1)\n\t\t\t//zIndex: String(point.type)\n\t\t});\t\t\n\t\tbounds.extend(new google.maps.LatLng(parseFloat(point.Point.coordinates.split(\",\")[1]),\n\t\t\t\t\t\t\t\t\t\t\tparseFloat(point.Point.coordinates.split(\",\")[0])));\n\t}\t\t\n}", "title": "" }, { "docid": "375e047bfc5f4779c72557570ee7c462", "score": "0.6723988", "text": "function addPoint(evt) {\n var latitude = evt.mapPoint.getLatitude();\n var longitude = evt.mapPoint.getLongitude();\n map.infoWindow.setTitle(\"Coordinates\");\n map.infoWindow.setContent(\"lat/lon : \" + latitude.toFixed(2) + \", \" + longitude.toFixed(2) +\n \"<br>screen x/y : \" + evt.screenPoint.x + \", \" + evt.screenPoint.y\n );\n map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint));\n }", "title": "" }, { "docid": "a9c5abfb06b505ff96006fe3e0d7a294", "score": "0.67081136", "text": "function add_markers(map, user_waypoints) {\n\tgoogle.maps.event.addListener(user_waypoints, \"insert_at\", function (index) {\n\n\t})\n}", "title": "" }, { "docid": "ded04b41da93c4b455e106f04b46e28d", "score": "0.67063934", "text": "function esriMapAddPointToMap(geometry,mode)\n{\n\t//We need to remove the point chart or transect chart if already created.\n\tchart.remove();\n \t\n \tvar markerSymbolIndex = map.graphics.graphics.length - 1;\n \t\n \tvar symbol = new esri.symbol.SimpleMarkerSymbol();\t \n symbol.setSize(12);\n symbol.setOutline(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 1));\n symbol.setColor(new dojo.Color(colorArray[markerSymbolIndex]));\n \n if(map.graphics.graphics.length > 10)\n {\n\t //symbol.setColor(new dojo.Color([255,0,0,0.75]));\n\t symbol.setColor(new dojo.Color([0,255,255,0.25]));\n\t}\n \t\n var graphic = new esri.Graphic(geometry,symbol);\n \t \n map.graphics.add(graphic); \n map.centerAt(geometry); \n \n executeIdentifyTask(geometry);\n \t\t\n\t//chart.addPointKisters(geometry);\n}", "title": "" }, { "docid": "a7db24c09dc8477b469ecefb3ed2b188", "score": "0.6696123", "text": "function AddMapPoints(results) {\n var coordinates;\n\n if (mapDataSource !== null) {\n // clear the data source, add new POIs and re-center the map\n mapDataSource.clear();\n coordinates = UpdatePOIs(results, mapDataSource);\n if (coordinates) {\n resultsMap.setCamera ({ center: coordinates });\n }\n }\n else {\n //Create a data source to add it to the map \n mapDataSource = new atlas.source.DataSource();\n coordinates = UpdatePOIs(results, mapDataSource);\n \n //Wait until the map resources are ready for first set up.\n resultsMap.events.add('ready', function () {\n\n //take the last coordinates.\n if (coordinates) { resultsMap.setCamera ({ center: coordinates }); }\n\n //Add data source and create a symbol layer.\n resultsMap.sources.add(mapDataSource);\n var symbolLayer = new atlas.layer.SymbolLayer(mapDataSource);\n resultsMap.layers.add(symbolLayer);\n\n //Create a popup but leave it closed so we can update it and display it later.\n popup = new atlas.Popup({\n pixelOffset: [0, -18],\n closeButton: false\n });\n \n //Add a hover event to the symbol layer.\n resultsMap.events.add('click', symbolLayer, function (e) {\n //Make sure that the point exists.\n if (e.shapes && e.shapes.length > 0) {\n var content, coordinate;\n var properties = e.shapes[0].getProperties();\n var id = properties.id;\n var popupTemplate = `<div class=\"customInfobox\">\n <div class=\"name\" onclick=\"ShowDocument('${id}', ${0});\" >{name}</div>\n <div onclick=\"ShowDocument('${id}', ${0});\">{description}</div>\n </div>`;\n content = popupTemplate.replace(/{name}/g, properties.name).replace(/{description}/g, properties.description);\n coordinate = e.shapes[0].getCoordinates();\n\n popup.setOptions({\n //Update the content of the popup.\n content: content,\n\n //Update the popup's position with the symbol's coordinate.\n position: coordinate\n\n });\n\n if (popup.isOpen() !== true) {\n //Open the popup.\n popup.open(resultsMap);\n }\n else\n {\n popup.close();\n }\n }\n });\n\n drawingTools = new PolygonDrawingTool(resultsMap, null, function (polygon) {\n //Do something with the polygon.\n mapPolygon = polygon;\n });\n });\n\n // This is necessary for the map to resize correctly after the \n // map is actually in view.\n $('#maps-pivot-link').on(\"click\", function () {\n window.setTimeout(function () {\n map.map.resize();\n }, 100);\n });\n }\n}", "title": "" }, { "docid": "30a7392e5824b6e2005774563316f05b", "score": "0.6679891", "text": "function drawPoint(){\n\tclear();\n\tfor (var i=0; i<geoJSONlength; i++){\n\t\t//Convert all points from latitude and longitude to pixel\n\t\tloc[i] = myMap.latLngToPixel(lat[i], lon[i]);\n\t\tfill(255, 0, 255, 80);\n\t\tstroke(255, 255, 255);\n\t\tstrokeWeight(3);\n\t\t//Draw the ellipses on the location points\n\t\tellipse(loc[i].x, loc[i].y, sizeCircle, sizeCircle);\n\t\t//Run the distancePlace function that draws the interactive animation\n\t\tdistancePlace(loc[i].x, loc[i].y, r[i], g[i], b[i]);\n\t}\n}", "title": "" }, { "docid": "265134d559995d2ea3828f3c4c921e9e", "score": "0.6587771", "text": "function addPoints(newPoints) {\n\t setHTML(\"points\", parseInt(getHTML(\"points\")) + newPoints);\n\t}", "title": "" }, { "docid": "f2377bbfb4e89871f984a526f899bf7b", "score": "0.6583152", "text": "function initialize() {\n var center = new google.maps.LatLng(-33.9, 151.2);\n\n map = new google.maps.Map(document.getElementById('map'), {\n zoom: 10,\n center: center,\n mapTypeId: 'roadmap',\n disableDefaultUI: true,\n zoomControl: true\n });\n\n\n for (i = 0; i < mapPointsData.length; i++) {\n addMarker(i, mapPointsData[i]);\n }\n\n}", "title": "" }, { "docid": "e4fcf7232af3b4162c8664d17e3b7963", "score": "0.6556841", "text": "addPoint(x, y) {\n // Add to Points Data\n this.add_Mx2(x, y, \"point\");\n }", "title": "" }, { "docid": "8c0376046968c798bead7e9d1c1f9899", "score": "0.6556691", "text": "function addLatLng(event) {\n\t//faz um backup do estado atual do poligono\n var map_markers_temp = [];\n for(var i=0;i<map_markers.length;i++){\n \tmap_markers_temp.push(map_markers[i]);\n }\n map_markers_bkp.push(map_markers_temp);\n \n //cria e adiciona adiciona o marker, atualiza o poligono tbm\n var marker = criar_marker(event.latLng,map);\n map_markers.push(marker);\n criarPolygon();\n}", "title": "" }, { "docid": "604f6e49e238d27e2cd5a1874cc9fac9", "score": "0.6539077", "text": "addPoints() {\n\tfor(var i = 0; i < arguments.length; i+=2) {\n\t\tthis.addPoint(arguments[i], arguments[i+1]);\n\t}\n }", "title": "" }, { "docid": "df0e1e531ca48896b0b3d632b8255d7e", "score": "0.6531313", "text": "function addMPolylineToMap(points){\n\n\n var flightPlanCoordinates = [];\n var bounds = new google.maps.LatLngBounds();\n\n for (var i=0;i<points.length;i++)\n {\n var pos = new google.maps.LatLng(points[i].lat,points[i].lon);\n bounds.extend(pos);\n flightPlanCoordinates.push(pos);\n\n }\n\n var flightPath = new google.maps.Polyline({\n path: flightPlanCoordinates,\n geodesic: true,\n strokeColor: '#FF0000',\n strokeOpacity: 1.0,\n strokeWeight: 2\n });\n\n flightPath.setMap(map);\n map.setCenter(bounds.getCenter());\n\n }", "title": "" }, { "docid": "bbee1cb2f27df38f3b15cd359d1a930d", "score": "0.6530745", "text": "function addMarkersToMap(map) {\n let placeMarker = new H.map.Marker({lat:`${response.latitude}`, lng:`${response.longitude}`});\n map.addObject(placeMarker);\n }", "title": "" }, { "docid": "c5898ccb5df470677950cd6ff83dad5a", "score": "0.65267116", "text": "_addPoints(points){\n let newPoints = this.getPoints();\n newPoints += points;\n\n let data = this._getLocalData();\n let name = this.who();\n let streamer = data.streamer.findIndex(e => e.name === name);\n\n if(streamer !== -1){\n data.streamer[streamer].points = newPoints\n } else {\n data.streamer.push({name, points: newPoints})\n }\n\n this._updateUi(newPoints);\n this._saveLocalData(data)\n }", "title": "" }, { "docid": "f579c03340ad166c4f8c879a45712ccb", "score": "0.65220183", "text": "function addPoint(e) {\n \n var thisPoint = {\n \"type\": \"Feature\",\n \"properties\": {\n \"name\": \"Weedon Island Preserve\",\n \"amenity\": \"Cultural Resource\",\n \"popupContent\": \"This shard is located at \" + e.latlng.toString()\n },\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [e.latlng.lng, e.latlng.lat]\n }\n }\n \n editFeatures.addData(thisPoint);\n }", "title": "" }, { "docid": "fd302777cb231e5750feda65f6c1c68c", "score": "0.6502545", "text": "addPoint(x, y) {\n let point = createVector(x, y);\n this.points.push(point);\n }", "title": "" }, { "docid": "56fd59c3b2b6e03e14c46b3aa36b5e70", "score": "0.6491721", "text": "function drawMapPoints() {\n sortedNarrativeIds.forEach(function(narrativeId, idx) {\n drawNarrativePoints(narrativeId.toString(), idx);\n })\n }", "title": "" }, { "docid": "990dd739d37163d346787b2c9f2d191f", "score": "0.64906543", "text": "function addPointLayer(map, params) {\n\tgus_api(params.gusID, function(jsondata) {\n\t\tvar visibilityState = setVisibilityState(params);\n\t\tif (params.scalingFactor === undefined) { params.scalingFactor = 2.5; }\n\t\tmap.addSource(params.sourceName, {\n\t\t\ttype: 'geojson',\n\t\t\tdata: jsondata\n\t\t});\n\t\tmap.addLayer({\n\t\t\t'id': params.layerName,\n\t\t\t'type': 'symbol',\n\t\t\t'source': params.sourceName,\n\t\t\t'layout': {\n\t\t\t\t'icon-image': params.icon,\n\t\t\t\t'icon-size': params.iconSize,\n\t\t\t\t'icon-allow-overlap': true,\n\t\t\t\t'visibility': visibilityState\n\t\t\t}\n\t\t});\n\t\tmap.on(\"zoomend\", function(){\n\t\t\tmap.setLayoutProperty(params.layerName, 'icon-size', (1 + (map.getZoom() / originalZoomLevel - 1) * params.scalingFactor) * params.iconSize);\n\t\t});\n\t});\n}", "title": "" }, { "docid": "3919119e46606579907b2b2bfb44c676", "score": "0.6340952", "text": "addMarkerToMap(){\n if(this.map){\n this.markers.forEach( marker => marker.addTo(this.map) )\n }\n }", "title": "" }, { "docid": "1aad763926d780914e4a9a57da3ea11f", "score": "0.63333905", "text": "add(point) {\r\n this.path.push(point);\r\n }", "title": "" }, { "docid": "265123f944dd38d5934cfb76e523c9fa", "score": "0.63328004", "text": "function addPosition(e) {\n var location = map.pointLocation(map.mouse(e));\n sketch.dispatch({\n type: 'featurePush',\n feature: feature,\n delta: [location.lon, location.lat]\n });\n }", "title": "" }, { "docid": "f2f65c267a5b42aed6c1b1193ad8dbaa", "score": "0.63133216", "text": "addPoints(...points) {\n const toAdd = PointString3d.flattenArray(points);\n for (const p of toAdd) {\n if (p instanceof Point3dVector3d_1.Point3d)\n this._points.push(p);\n }\n }", "title": "" }, { "docid": "c75d43574052dbada399f8aa284c61c6", "score": "0.6307976", "text": "addPoints(newPoints) {\n this.points.push.apply(this.points, newPoints);\n return this;\n }", "title": "" }, { "docid": "a625d8d2fd83347b7a474d75302a2f58", "score": "0.6296497", "text": "polygon(points) { this.add(\"polygon\", points) }", "title": "" }, { "docid": "af8f5ac8f2cb794f5ac910695100d04d", "score": "0.6271953", "text": "function add_point_to_map(point, map, options, return_info){\n if (typeof return_info == \"undefined\") {\n return_info = false;\n }\n var infowindow = new google.maps.InfoWindow({\n content: point.description\n });\n \n var opts = {\n position: new google.maps.LatLng(point.latitude, point.longitude), \n map: map,\n title: point.name\n };\n \n jQuery.extend(opts, options);\n \n var marker = new google.maps.Marker(opts);\n \n google.maps.event.addListener(marker, 'click', function() {\n infowindow.open(map, marker);\n });\n \n if(return_info){\n return [marker, infowindow];\n } else {\n return marker;\n }\n}", "title": "" }, { "docid": "0d8c3d484e06d295721facc484107f37", "score": "0.6264086", "text": "function addPointToMap(map, location, bounds, infowindow, markers ) {\n var latitude = location.lat;\n var longitude = location.lng;\n var latlng = new google.maps.LatLng( latitude , longitude);\n var marker = new google.maps.Marker({\n map: map,\n position: latlng,\n title: location.title,\n id: location.id\n });\n\n marker.addListener('click', function() {\n infowindow.setContent( this.title );\n // + '<br><a href=\"#l='+ this.id + '\">See photos</a>'\n infowindow.open(map, this);\n });\n\n markers.push(marker);\n\n bounds.extend(latlng);\n\n\n }", "title": "" }, { "docid": "7dc0234c650a784a54d0097a09fa0ffb", "score": "0.6244998", "text": "_addPoints (el) {\n const ct = el.appendMany(\"g.point\", d => d.data)\n ct.raise()\n ct.append(\"line\").at(\"y2\", d => (d.gt) ? \"-0.85em\" : \"0.85em\")\n ct.append(\"text.val\").at(\"dy\", d => (d.gt) ? \"-1.8em\" : \"1.8em\")\n ct.append(\"circle\").at(\"r\", 4)\n }", "title": "" }, { "docid": "7c525b5e3af26d1a354bfc91a476db1c", "score": "0.6228857", "text": "addCoord(x, y) {\n this.add(new Point(x, y));\n }", "title": "" }, { "docid": "25e5c9e15ddde14369d79d193711d33e", "score": "0.6217835", "text": "function trackPoints(e) {\n allPoints.push({ x: e.pageX, y: e.pageY });\n }", "title": "" }, { "docid": "a0a9fbe8ba55b23f2081243cb5f361e4", "score": "0.6213297", "text": "function placeMarkers(){}", "title": "" }, { "docid": "6b5c8f6bf2ca5dfdce9e3709768b7078", "score": "0.6213014", "text": "add_exisiting_points() {\n let existing_points = getClass(class_base + '__point-fields', this.el[0]);\n for (let i = 0, l = existing_points.length; i < l; i++) {\n let x = getClass(class_base + '__input--x', existing_points[i])[0].value,\n y = getClass(class_base + '__input--y', existing_points[i])[0].value,\n point = new HotspotPoint({\n x: x,\n y: y,\n context: this,\n exists: true\n });\n point.get_inputs_object(existing_points[i]);\n this.points.push(point);\n }\n }", "title": "" }, { "docid": "b3fc966b7d21a0d05c975d828a78d6aa", "score": "0.6211444", "text": "function addPoints() {\n\t\"use strict\";\n\t// Update the points variable.\n\tpoints += 10;\n\t// Update the points element.\n\tif (points < 10) {\n\t\tpointsElement.innerHTML = \"00\" + points;\n\t} else if (points < 100) {\n\t\tpointsElement.innerHTML = \"0\" + points;\n\t} else {\n\t pointsElement.innerHTML = points;\n\t}\n}", "title": "" }, { "docid": "851b21c846d819bdfbc3de392640cf07", "score": "0.6210833", "text": "function onMapDataLoad(options, points) {\r\n createDocumentSettings(options);\r\n document.title = getSetting('_mapTitle');\r\n // Add point markers to the map\r\n if (points && points.length > 0) {\r\n determineLayers(points);\r\n mapPoints(points);\r\n } else {\r\n completePoints = true;\r\n }\r\n\r\n L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}{r}.{ext}', {attribution: 'Map tiles by Stamen Design | Inspired by handsondataviz.org', subdomains: 'abcd', minZoom: 0, maxZoom: 20, ext: 'png'}).addTo(map);\r\n\t \r\n var panelLayers = new L.Control.PanelLayers(null, overLayers, { title: '<h3>Legend</h3>', });\r\n\t \r\n map.addControl(panelLayers);\r\n\r\n map.setView(markersLayer.getBounds().getCenter(), map.getBoundsZoom(markersLayer.getBounds()));\r\n\r\n addTitle();\r\n\r\n // Test : Add search\r\n var controlSearch = new L.Control.Search({ position: 'topleft', layer: markersLayer, initial: true, zoom: 14, marker: false });\r\n map.addControl(controlSearch);\r\n map.removeLayer(markersLayer); // sinon les markers \"fictifs\" deviennent visibles\r\n\r\n // test : Add list markers\r\n var list = new L.Control.ListMarkers({ layer: markersLayer, itemIcon: null, maxItems: 8, maxZoom: 16 });\r\n map.addControl(list);\r\n\r\n // When all processing is done, make the map visible\r\n showMap();\r\n\r\n function showMap() {\r\n if (completePoints) {$('#map').css('visibility', 'visible');} \r\n\t else {setTimeout(showMap, 50);}\r\n }\r\n\t \r\n }", "title": "" }, { "docid": "b4d373a97564e159ca23b168650bbf12", "score": "0.62080795", "text": "function addPoint(feature) {\n feature.type = \"Point\";\n}", "title": "" }, { "docid": "cb87277a7c8fbef42afe9228335a290f", "score": "0.6207309", "text": "addPointXYZ(x, y, z = 0) {\n this._points.pushXYZ(x, y, z);\n }", "title": "" }, { "docid": "4e63092bc5f04701bad24d05b25468b9", "score": "0.61938", "text": "function addCoordinates() {\n L.control.coordinates({\n position: \"bottomright\",\n decimals: 2,\n enableUserInput: false,\n useLatLngOrder: true\n }).addTo(mapImpl);\n }", "title": "" }, { "docid": "e7d659671a7fa3f097fefd59c0df33c5", "score": "0.619331", "text": "function addPoint(lati, long, name, icon, id) { \n map.addLayer({\n \"id\": id,\n \"type\": \"symbol\",\n \"source\": {\n \"type\": \"geojson\",\n \"data\": {\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [lati, long]\n },\n \"properties\": {\n \"title\": name,\n \"icon\": icon \n }\n }]\n }\n },\n \"layout\": {\n \"icon-image\": \"{icon}-15\",\n \"icon-allow-overlap\": true,\n \"text-field\": \"{title}\",\n \"text-font\": [\"Open Sans Semibold\", \"Arial Unicode MS Bold\"],\n \"text-offset\": [0, 0.6],\n \"text-anchor\": \"top\"\n }\n }); \n}", "title": "" }, { "docid": "82970bcb8784a949253653a79e206b8d", "score": "0.6190364", "text": "function zoomToPointPlus(lat,lon){\n var x = lat;\n var y = lon;\n map.setView([x,y],13);\n\t \n}", "title": "" }, { "docid": "ebc1babf3d706ce93e5c36fa4d62ca0d", "score": "0.6186934", "text": "function addPos(event) {\n if (contadorPuntos < maxPoints){\n var path = Caminos.getPath();\n\n path.push(event.latLng);\n\n var marker = new google.maps.Marker({\n position: location,\n map: map\n });\n contadorPuntos++;\n }\n}", "title": "" }, { "docid": "55bc503ba2a75bf3395619c04a15416a", "score": "0.61802095", "text": "function add_pins(pins)\n{\n for (let i = 0; i < pins.length; i++)\n {\n pins[i].setMap(map);\n }\n}", "title": "" }, { "docid": "5666daa9d1a07826b65af7449242901b", "score": "0.617748", "text": "set points(points) {\r\n this.setPoints(points);\r\n }", "title": "" }, { "docid": "31a6c7f1364709389dad767edb541b93", "score": "0.6173099", "text": "function addPoints(datapoints) {\n addDataPoints(datapoints);\n setCurrentSample(\"last\");\n updateOrRescale();\n }", "title": "" }, { "docid": "31a6c7f1364709389dad767edb541b93", "score": "0.6173099", "text": "function addPoints(datapoints) {\n addDataPoints(datapoints);\n setCurrentSample(\"last\");\n updateOrRescale();\n }", "title": "" }, { "docid": "063ad52e2d65a38ad58b1f306dd0061e", "score": "0.616818", "text": "function getPoints() {\r\n return [\r\n new google.maps.LatLng(39.48039428108851,-0.3828907012939453),\r\nnew google.maps.LatLng(39.47850619467525,-0.38362026214599604),\r\nnew google.maps.LatLng(39.47585616238794,-0.3840923309326172),\r\nnew google.maps.LatLng(39.47357042845268,-0.3838777542114258),\r\nnew google.maps.LatLng(39.47181466878048,-0.38392066955566406),\r\nnew google.maps.LatLng(39.47022450857752,-0.3833198547363281),\r\nnew google.maps.LatLng(39.468700570947156,-0.38121700286865234),\r\nnew google.maps.LatLng(39.467673550674974,-0.3776121139526367),\r\nnew google.maps.LatLng(39.467242860243196,-0.37546634674072266),\r\nnew google.maps.LatLng(39.46734225057943,-0.3746509552001953),\r\nnew google.maps.LatLng(39.47002573599683,-0.37078857421875),\r\nnew google.maps.LatLng(39.47211281977257,-0.36842823028564453),\r\nnew google.maps.LatLng(39.47340479264062,-0.3694581985473632),\r\nnew google.maps.LatLng(39.4750942594207,-0.36980152130126953),\r\nnew google.maps.LatLng(39.47575678421326,-0.3696727752685547),\r\nnew google.maps.LatLng(39.47691618741755,-0.37108898162841797),\r\nnew google.maps.LatLng(39.47807557129829,-0.37280559539794916),\r\nnew google.maps.LatLng(39.479069313530275,-0.37499427795410156),\r\nnew google.maps.LatLng(39.480261785468464,-0.3774404525756836),\r\nnew google.maps.LatLng(39.481156126005715,-0.3794145584106445),\r\nnew google.maps.LatLng(39.481321743361754,-0.38048744201660156),\r\nnew google.maps.LatLng(39.48052677645615,-0.3826332092285156),\r\nnew google.maps.LatLng(39.48036115720715,-0.383148193359375),\r\nnew google.maps.LatLng(39.47840682028642,-0.3870964050292969),\r\nnew google.maps.LatLng(39.477512444398265,-0.3901863098144531),\r\nnew google.maps.LatLng(39.47701556393592,-0.3915596008300781),\r\nnew google.maps.LatLng(39.47499488015758,-0.3959369659423828),\r\nnew google.maps.LatLng(39.473040392466,-0.4058074951171875),\r\nnew google.maps.LatLng(39.48042740495407,-0.40726661682128906),\r\nnew google.maps.LatLng(39.48079176643428,-0.4078245162963867),\r\nnew google.maps.LatLng(39.481421113586066,-0.4076957702636719),\r\nnew google.maps.LatLng(39.48161985360879,-0.4067945480346679),\r\nnew google.maps.LatLng(39.487250584924794,-0.4050779342651367),\r\nnew google.maps.LatLng(39.48784675331358,-0.4055500030517578),\r\nnew google.maps.LatLng(39.48814483559126,-0.4044771194458008),\r\nnew google.maps.LatLng(39.49009889887675,-0.3998422622680664),\r\nnew google.maps.LatLng(39.49066192386962,-0.39954185485839844),\r\nnew google.maps.LatLng(39.49066192386962,-0.39851188659667963),\r\nnew google.maps.LatLng(39.49228473510421,-0.3948211669921875),\r\nnew google.maps.LatLng(39.49735163659954,-0.3864097595214844),\r\nnew google.maps.LatLng(39.4978152562023,-0.38630247116088867),\r\nnew google.maps.LatLng(39.49806362257466,-0.3851652145385742),\r\nnew google.maps.LatLng(39.49794771837798,-0.3844571113586426),\r\nnew google.maps.LatLng(39.4993385559825,-0.3787708282470703),\r\nnew google.maps.LatLng(39.49955380217258,-0.37656068801879883),\r\nnew google.maps.LatLng(39.49925576880884,-0.37366390228271484),\r\nnew google.maps.LatLng(39.49786492954775,-0.36892175674438477),\r\nnew google.maps.LatLng(39.49602699212449,-0.36278486251831055),\r\nnew google.maps.LatLng(39.494669205340834,-0.3583967685699463),\r\nnew google.maps.LatLng(39.494131050801585,-0.35823583602905273),\r\nnew google.maps.LatLng(39.49385783228726,-0.35782814025878906),\r\nnew google.maps.LatLng(39.49378331796065,-0.357205867767334),\r\nnew google.maps.LatLng(39.491903874644706,-0.355607271194458),\r\nnew google.maps.LatLng(39.488542276640416,-0.3531074523925781),\r\nnew google.maps.LatLng(39.488045474974,-0.35338640213012695),\r\nnew google.maps.LatLng(39.48783019314957,-0.35312891006469727),\r\nnew google.maps.LatLng(39.48748242879445,-0.35265684127807617),\r\nnew google.maps.LatLng(39.48219950876469,-0.3514981269836426),\r\nnew google.maps.LatLng(39.48170266178399,-0.35063982009887695),\r\nnew google.maps.LatLng(39.48137142849164,-0.35053253173828125),\r\nnew google.maps.LatLng(39.47665118267447,-0.3336453437805176),\r\nnew google.maps.LatLng(39.474845810996776,-0.32765865325927734),\r\nnew google.maps.LatLng(39.474613925000575,-0.32772302627563477),\r\nnew google.maps.LatLng(39.474083896963975,-0.32787322998046875),\r\nnew google.maps.LatLng(39.46762385576119,-0.32881736755371094),\r\nnew google.maps.LatLng(39.46363158174706,-0.3293323516845703),\r\nnew google.maps.LatLng(39.463797240824924,-0.33242225646972656),\r\nnew google.maps.LatLng(39.464062294529334,-0.33448219299316406),\r\nnew google.maps.LatLng(39.464227952581965,-0.33607006072998047),\r\nnew google.maps.LatLng(39.464227952581965,-0.33615589141845703),\r\nnew google.maps.LatLng(39.462737015912616,-0.33733606338500977),\r\nnew google.maps.LatLng(39.46157737642118,-0.33896684646606445),\r\nnew google.maps.LatLng(39.45655757122651,-0.34703493118286133),\r\nnew google.maps.LatLng(39.45673981471137,-0.3476142883300781),\r\nnew google.maps.LatLng(39.45625935358576,-0.3481936454772949),\r\nnew google.maps.LatLng(39.45796580393599,-0.3505754470825195),\r\nnew google.maps.LatLng(39.45957281116363,-0.35317182540893555),\r\nnew google.maps.LatLng(39.45987101460932,-0.3539443016052246),\r\nnew google.maps.LatLng(39.46066621755185,-0.35613298416137695),\r\nnew google.maps.LatLng(39.46119634779964,-0.35677671432495117),\r\nnew google.maps.LatLng(39.46167677484897,-0.3568840026855469),\r\nnew google.maps.LatLng(39.46169334123982,-0.3575491905212402),\r\nnew google.maps.LatLng(39.46344935630595,-0.35866498947143555),\r\nnew google.maps.LatLng(39.46426108414518,-0.35885810852050776),\r\nnew google.maps.LatLng(39.468203627546984,-0.3609180450439453),\r\nnew google.maps.LatLng(39.46853492354142,-0.3612399101257324),\r\nnew google.maps.LatLng(39.4688993473135,-0.3612399101257324),\r\nnew google.maps.LatLng(39.469512237535085,-0.36151885986328125),\r\nnew google.maps.LatLng(39.47501144337798,-0.36600351333618164),\r\nnew google.maps.LatLng(39.4767836851722,-0.36759138107299805),\r\nnew google.maps.LatLng(39.477148065739605,-0.3681063652038574),\r\nnew google.maps.LatLng(39.47890369081085,-0.37128210067749023),\r\nnew google.maps.LatLng(39.47968211416314,-0.3721189498901367),\r\nnew google.maps.LatLng(39.481412832739466,-0.3749728202819824),\r\nnew google.maps.LatLng(39.48265494871234,-0.37717223167419434),\r\nnew google.maps.LatLng(39.48295305324494,-0.380551815032959),\r\nnew google.maps.LatLng(39.48257214167097,-0.3823220729827881),\r\nnew google.maps.LatLng(39.48171922340719,-0.38410305976867676),\r\nnew google.maps.LatLng(39.48041912398916,-0.3868067264556885),\r\nnew google.maps.LatLng(39.479715238367845,-0.3886091709136963),\r\nnew google.maps.LatLng(39.47899478335533,-0.3911089897155761),\r\nnew google.maps.LatLng(39.47748760045946,-0.3946816921234131),\r\nnew google.maps.LatLng(39.47644414701651,-0.3969454765319824),\r\nnew google.maps.LatLng(39.47527645436764,-0.40140867233276367),\r\nnew google.maps.LatLng(39.4751108226174,-0.4031038284301758),\r\nnew google.maps.LatLng(39.474680178221206,-0.40606498718261713),\r\nnew google.maps.LatLng(39.475491775053385,-0.36932945251464844),\r\nnew google.maps.LatLng(39.46833614613404,-0.3637504577636719),\r\nnew google.maps.LatLng(39.462836412684275,-0.36083221435546875),\r\nnew google.maps.LatLng(39.45925803947387,-0.3583431243896484),\r\nnew google.maps.LatLng(39.45581202472926,-0.34804344177246094),\r\nnew google.maps.LatLng(39.45322740172052,-0.35164833068847656),\r\nnew google.maps.LatLng(39.44971481151792,-0.36057472229003906),\r\nnew google.maps.LatLng(39.4456055188339,-0.36950111389160156),\r\nnew google.maps.LatLng(39.44487642544871,-0.37250518798828125),\r\nnew google.maps.LatLng(39.44593692239472,-0.38374900817871094),\r\nnew google.maps.LatLng(39.447262520867,-0.38958549499511713),\r\nnew google.maps.LatLng(39.44792531064051,-0.39216041564941406),\r\nnew google.maps.LatLng(39.44991364210992,-0.3948211669921875),\r\nnew google.maps.LatLng(39.453558769007145,-0.399627685546875),\r\nnew google.maps.LatLng(39.45813147649943,-0.40246009826660156),\r\nnew google.maps.LatLng(39.4634327903331,-0.40572166442871094),\r\nnew google.maps.LatLng(39.46734225057943,-0.40640830993652344),\r\nnew google.maps.LatLng(39.46999260717818,-0.40589332580566406),\r\nnew google.maps.LatLng(39.471384003980695,-0.40512084960937494),\r\nnew google.maps.LatLng(39.472974137683735,-0.4056358337402343),\r\nnew google.maps.LatLng(39.48291164991406,-0.35036087036132807),\r\nnew google.maps.LatLng(39.48549517054311,-0.35053253173828125),\r\nnew google.maps.LatLng(39.49086063748445,-0.3492450714111328),\r\nnew google.maps.LatLng(39.49615945770789,-0.34735679626464844),\r\nnew google.maps.LatLng(39.50298109400487,-0.34598350524902344),\r\nnew google.maps.LatLng(39.506689663850054,-0.3435802459716797),\r\nnew google.maps.LatLng(39.436192999314095,-0.43430328369140625),\r\nnew google.maps.LatLng(39.43778393700683,-0.43250083923339844),\r\nnew google.maps.LatLng(39.43924226463978,-0.4301834106445312),\r\nnew google.maps.LatLng(39.44123084402689,-0.4266643524169922),\r\nnew google.maps.LatLng(39.4440147597888,-0.42194366455078125),\r\nnew google.maps.LatLng(39.44759391654231,-0.4167938232421875),\r\nnew google.maps.LatLng(39.451106613738595,-0.41130065917968744),\r\nnew google.maps.LatLng(39.454072385184546,-0.40745973587036133),\r\nnew google.maps.LatLng(39.454006112342306,-0.4067087173461914),\r\nnew google.maps.LatLng(39.454536293313666,-0.4050779342651367),\r\nnew google.maps.LatLng(39.45362504227522,-0.40434837341308594),\r\nnew google.maps.LatLng(39.454950494388186,-0.40059328079223633),\r\nnew google.maps.LatLng(39.45766759232811,-0.397031307220459),\r\nnew google.maps.LatLng(39.45993728186818,-0.3943920135498047),\r\nnew google.maps.LatLng(39.46194183662909,-0.3923320770263672),\r\nnew google.maps.LatLng(39.46363158174706,-0.3961515426635742),\r\nnew google.maps.LatLng(39.4666465152446,-0.3932762145996094),\r\nnew google.maps.LatLng(39.467574160811914,-0.39220333099365234),\r\nnew google.maps.LatLng(39.46681216714573,-0.38971424102783203),\r\nnew google.maps.LatLng(39.46402916287149,-0.38782596588134766),\r\nnew google.maps.LatLng(39.4606827841832,-0.3854656219482422),\r\nnew google.maps.LatLng(39.45869476026576,-0.38417816162109375),\r\nnew google.maps.LatLng(39.458595357579384,-0.3847360610961914),\r\nnew google.maps.LatLng(39.45912550359968,-0.3866243362426758),\r\nnew google.maps.LatLng(39.45932430731632,-0.3873968124389648),\r\nnew google.maps.LatLng(39.45992071505938,-0.38894176483154297),\r\nnew google.maps.LatLng(39.461312313253096,-0.39117336273193354),\r\nnew google.maps.LatLng(39.4617099076267,-0.39216041564941406),\r\nnew google.maps.LatLng(39.465089368099164,-0.3946495056152344),\r\nnew google.maps.LatLng(39.46628207967406,-0.4010009765625),\r\nnew google.maps.LatLng(39.467077209367325,-0.40546417236328125),\r\nnew google.maps.LatLng(39.46952880206076,-0.4053783416748047),\r\nnew google.maps.LatLng(39.469793833934986,-0.41172981262207026),\r\nnew google.maps.LatLng(39.469263769177,-0.41782379150390625),\r\nnew google.maps.LatLng(39.46946254393444,-0.4227161407470703),\r\nnew google.maps.LatLng(39.47039015196103,-0.42675018310546875),\r\nnew google.maps.LatLng(39.44169483771482,-0.39430618286132807),\r\nnew google.maps.LatLng(39.441628553091505,-0.3919029235839843),\r\nnew google.maps.LatLng(39.44202625988515,-0.3884696960449219),\r\nnew google.maps.LatLng(39.44209254412997,-0.3877830505371094),\r\nnew google.maps.LatLng(39.4456055188339,-0.3865814208984375),\r\nnew google.maps.LatLng(39.44911831633536,-0.38555145263671875),\r\nnew google.maps.LatLng(39.455679482293846,-0.3840065002441406),\r\nnew google.maps.LatLng(39.45892669931526,-0.38306236267089844),\r\nnew google.maps.LatLng(39.46555320280737,-0.38143157958984375),\r\nnew google.maps.LatLng(39.477280567290876,-0.38992881774902344),\r\nnew google.maps.LatLng(39.466878427795756,-0.38988590240478516),\r\nnew google.maps.LatLng(39.47009199358683,-0.3923320770263672),\r\nnew google.maps.LatLng(39.47284162792992,-0.39404869079589844),\r\nnew google.maps.LatLng(39.47506113301543,-0.39589405059814453),\r\nnew google.maps.LatLng(39.47883744161266,-0.39855480194091797),\r\nnew google.maps.LatLng(39.48294477258072,-0.4015159606933594),\r\nnew google.maps.LatLng(39.48367346725677,-0.40181636810302734),\r\nnew google.maps.LatLng(39.49215226213752,-0.4085111618041992),\r\nnew google.maps.LatLng(39.49476855649255,-0.4025888442993164),\r\nnew google.maps.LatLng(39.49579517674609,-0.4003572463989258),\r\nnew google.maps.LatLng(39.49360945088793,-0.39825439453125),\r\nnew google.maps.LatLng(39.49496725837,-0.3962373733520508),\r\nnew google.maps.LatLng(39.49294709615128,-0.3938770294189453),\r\nnew google.maps.LatLng(39.49755033109365,-0.38666725158691406),\r\nnew google.maps.LatLng(39.50092805059562,-0.39001464843749994),\r\nnew google.maps.LatLng(39.502451282156834,-0.3908729553222656),\r\nnew google.maps.LatLng(39.502914867744764,-0.3939628601074219),\r\nnew google.maps.LatLng(39.50225260167254,-0.39559364318847656),\r\nnew google.maps.LatLng(39.502914867744764,-0.3963661193847656),\r\nnew google.maps.LatLng(39.50324599841432,-0.3989410400390625),\r\nnew google.maps.LatLng(39.50377580420394,-0.4021167755126953),\r\nnew google.maps.LatLng(39.503577127506155,-0.40512084960937494),\r\nnew google.maps.LatLng(39.50384202964365,-0.4074382781982422),\r\nnew google.maps.LatLng(39.50324599841432,-0.4084682464599609),\r\nnew google.maps.LatLng(39.502649962073164,-0.410614013671875),\r\nnew google.maps.LatLng(39.505563868924966,-0.4173946380615234),\r\nnew google.maps.LatLng(39.494569854047135,-0.4026317596435547),\r\nnew google.maps.LatLng(39.49059568587181,-0.39971351623535156),\r\nnew google.maps.LatLng(39.49026449493615,-0.3986835479736328),\r\nnew google.maps.LatLng(39.489270912663805,-0.3986835479736328),\r\nnew google.maps.LatLng(39.485760141591236,-0.39610862731933594),\r\nnew google.maps.LatLng(39.481454236962634,-0.3928470611572265),\r\nnew google.maps.LatLng(39.47721431654678,-0.39001464843749994),\r\nnew google.maps.LatLng(39.48317663080585,-0.40065765380859375),\r\nnew google.maps.LatLng(39.48291164991406,-0.39834022521972656),\r\nnew google.maps.LatLng(39.48311038567754,-0.3964519500732422),\r\nnew google.maps.LatLng(39.483839078618324,-0.3970527648925781),\r\nnew google.maps.LatLng(39.48609135398159,-0.39095878601074213),\r\nnew google.maps.LatLng(39.48602511162973,-0.38941383361816406),\r\nnew google.maps.LatLng(39.48662129052493,-0.38872718811035156),\r\nnew google.maps.LatLng(39.48715122302975,-0.3877830505371094),\r\nnew google.maps.LatLng(39.48761491065862,-0.3868389129638672),\r\nnew google.maps.LatLng(39.4883435563998,-0.38349151611328125),\r\nnew google.maps.LatLng(39.48874099631312,-0.38186073303222656),\r\nnew google.maps.LatLng(39.49009889887675,-0.37539124488830566),\r\nnew google.maps.LatLng(39.49203634808463,-0.37394285202026367),\r\nnew google.maps.LatLng(39.487879873629744,-0.36838531494140625),\r\nnew google.maps.LatLng(39.47800932131139,-0.35533905029296875),\r\nnew google.maps.LatLng(39.48019553756379,-0.35353660583496094),\r\nnew google.maps.LatLng(39.48158673031113,-0.35164833068847656),\r\nnew google.maps.LatLng(39.47966555205487,-0.3662395477294922),\r\nnew google.maps.LatLng(39.47887056621964,-0.36332130432128906),\r\nnew google.maps.LatLng(39.47800932131139,-0.3600597381591797),\r\nnew google.maps.LatLng(39.476618057010604,-0.355682373046875),\r\nnew google.maps.LatLng(39.47582303634548,-0.35319328308105463),\r\nnew google.maps.LatLng(39.4750942594207,-0.3504467010498047),\r\nnew google.maps.LatLng(39.47416671411088,-0.3475499153137207),\r\nnew google.maps.LatLng(39.4737360638704,-0.3455972671508789),\r\nnew google.maps.LatLng(39.47272568168828,-0.3425717353820801),\r\nnew google.maps.LatLng(39.47226189478949,-0.34070491790771484),\r\nnew google.maps.LatLng(39.47135087580877,-0.33752918243408203),\r\nnew google.maps.LatLng(39.47083738712667,-0.33600568771362305),\r\nnew google.maps.LatLng(39.47027420163399,-0.3349113464355469),\r\nnew google.maps.LatLng(39.46982696284829,-0.33478260040283203),\r\nnew google.maps.LatLng(39.47009199358683,-0.3357267379760742),\r\nnew google.maps.LatLng(39.470887079745395,-0.3384089469909668),\r\nnew google.maps.LatLng(39.47221220315267,-0.34293651580810547),\r\nnew google.maps.LatLng(39.47363668266709,-0.3479576110839843),\r\nnew google.maps.LatLng(39.47410046040123,-0.3485369682312011),\r\nnew google.maps.LatLng(39.4750942594207,-0.35227060317993164),\r\nnew google.maps.LatLng(39.475938977425045,-0.3546738624572754),\r\nnew google.maps.LatLng(39.47600522938373,-0.3554248809814453),\r\nnew google.maps.LatLng(39.476054918311384,-0.3559398651123047),\r\nnew google.maps.LatLng(39.47627023658762,-0.35686254501342773),\r\nnew google.maps.LatLng(39.47900306448983,-0.36621809005737305),\r\nnew google.maps.LatLng(39.479334309061066,-0.36643266677856445),\r\nnew google.maps.LatLng(39.46436047874017,-0.33607006072998047),\r\nnew google.maps.LatLng(39.46588451142044,-0.3355550765991211),\r\nnew google.maps.LatLng(39.468071108707534,-0.3350400924682617),\r\nnew google.maps.LatLng(39.4697607050059,-0.3349113464355469),\r\nnew google.maps.LatLng(39.464161689408236,-0.3361988067626953),\r\nnew google.maps.LatLng(39.464989974545205,-0.3393745422363281),\r\nnew google.maps.LatLng(39.46578511900212,-0.3417348861694336),\r\nnew google.maps.LatLng(39.466315210259346,-0.34366607666015625),\r\nnew google.maps.LatLng(39.466580254373746,-0.34478187561035156),\r\nnew google.maps.LatLng(39.466845297478635,-0.3454256057739258),\r\nnew google.maps.LatLng(39.46740851072471,-0.3477430343627929),\r\nnew google.maps.LatLng(39.467739810504796,-0.350189208984375),\r\nnew google.maps.LatLng(39.468303016510916,-0.35190582275390625),\r\nnew google.maps.LatLng(39.46879995920132,-0.3537940979003906),\r\nnew google.maps.LatLng(39.469363156626706,-0.355682373046875),\r\nnew google.maps.LatLng(39.469959478343746,-0.3579568862915039),\r\nnew google.maps.LatLng(39.47032389465494,-0.35902976989746094),\r\nnew google.maps.LatLng(39.47790994621272,-0.35538196563720703),\r\nnew google.maps.LatLng(39.47701556393592,-0.35576820373535156),\r\nnew google.maps.LatLng(39.47635305113179,-0.35606861114501953),\r\nnew google.maps.LatLng(39.47516051218389,-0.35649776458740234),\r\nnew google.maps.LatLng(39.47383544493172,-0.3570556640625),\r\nnew google.maps.LatLng(39.47257660766512,-0.3575706481933594),\r\nnew google.maps.LatLng(39.47174841283096,-0.35804271697998047),\r\nnew google.maps.LatLng(39.47072143754495,-0.35855770111083984),\r\nnew google.maps.LatLng(39.4697607050059,-0.35945892333984375),\r\nnew google.maps.LatLng(39.469296898342684,-0.36023139953613276),\r\nnew google.maps.LatLng(39.4688993473135,-0.36108970642089844),\r\nnew google.maps.LatLng(39.46823675721738,-0.36108970642089844),\r\nnew google.maps.LatLng(39.46823675721738,-0.36036014556884766),\r\nnew google.maps.LatLng(39.46879995920132,-0.35967350006103516),\r\nnew google.maps.LatLng(39.46939628574507,-0.35885810852050776),\r\nnew google.maps.LatLng(39.470191379853524,-0.3582572937011719),\r\nnew google.maps.LatLng(39.47168215681832,-0.3575706481933594),\r\nnew google.maps.LatLng(39.4733054109641,-0.3568410873413086),\r\nnew google.maps.LatLng(39.4750942594207,-0.35606861114501953),\r\nnew google.maps.LatLng(39.476121170159665,-0.3554677963256836),\r\nnew google.maps.LatLng(39.477446193875025,-0.355081558227539),\r\nnew google.maps.LatLng(39.47814182122211,-0.3548240661621094),\r\nnew google.maps.LatLng(39.47910243802683,-0.35422325134277344),\r\nnew google.maps.LatLng(39.48036115720715,-0.3531503677368164),\r\nnew google.maps.LatLng(39.481421113586066,-0.35164833068847656),\r\nnew google.maps.LatLng(39.447395079326384,-0.38967132568359375),\r\nnew google.maps.LatLng(39.44925087126197,-0.3893709182739258),\r\nnew google.maps.LatLng(39.4514379911191,-0.38894176483154297),\r\nnew google.maps.LatLng(39.45306171748574,-0.3886842727661133),\r\nnew google.maps.LatLng(39.45269721078135,-0.3864526748657226),\r\nnew google.maps.LatLng(39.453194264905086,-0.38619518280029297),\r\nnew google.maps.LatLng(39.45369131548019,-0.3854656219482422),\r\nnew google.maps.LatLng(39.454486589019126,-0.38649559020996094),\r\nnew google.maps.LatLng(39.45498363036769,-0.3870534896850586),\r\nnew google.maps.LatLng(39.45541439666593,-0.3870534896850586),\r\nnew google.maps.LatLng(39.457501918660604,-0.3868389129638672),\r\nnew google.maps.LatLng(39.45905923556797,-0.38688182830810547),\r\nnew google.maps.LatLng(39.44587064180873,-0.38031578063964844),\r\nnew google.maps.LatLng(39.44819042478352,-0.3797578811645508),\r\nnew google.maps.LatLng(39.45007933383618,-0.3792858123779297),\r\nnew google.maps.LatLng(39.45150426640596,-0.3788566589355469),\r\nnew google.maps.LatLng(39.45326053852015,-0.3785562515258789),\r\nnew google.maps.LatLng(39.45481795031247,-0.3781700134277344),\r\nnew google.maps.LatLng(39.455546939606066,-0.3782987594604492),\r\nnew google.maps.LatLng(39.451272302625995,-0.3788566589355469),\r\nnew google.maps.LatLng(39.45104033807322,-0.3765392303466797),\r\nnew google.maps.LatLng(39.45097406234477,-0.37615299224853516),\r\nnew google.maps.LatLng(39.44974794998935,-0.3762388229370117),\r\nnew google.maps.LatLng(39.44845553791718,-0.3764963150024414),\r\nnew google.maps.LatLng(39.446997403191254,-0.37666797637939453),\r\nnew google.maps.LatLng(39.44580436115966,-0.37683963775634766),\r\nnew google.maps.LatLng(39.446301464490084,-0.36834239959716797),\r\nnew google.maps.LatLng(39.44812414634239,-0.36954402923583984),\r\nnew google.maps.LatLng(39.44958225747452,-0.3707456588745117),\r\nnew google.maps.LatLng(39.45147112877041,-0.3719043731689453),\r\nnew google.maps.LatLng(39.45395640766923,-0.37383556365966797),\r\nnew google.maps.LatLng(39.45640846256581,-0.3753805160522461),\r\nnew google.maps.LatLng(39.45736937944268,-0.37615299224853516),\r\nnew google.maps.LatLng(39.45886043109427,-0.3771829605102539),\r\nnew google.maps.LatLng(39.46064965091653,-0.37872791290283203),\r\nnew google.maps.LatLng(39.461743040388654,-0.3785991668701172),\r\nnew google.maps.LatLng(39.46339965837555,-0.37799835205078125),\r\nnew google.maps.LatLng(39.46532128583969,-0.37726879119873047),\r\nnew google.maps.LatLng(39.46740851072471,-0.3765392303466797),\r\nnew google.maps.LatLng(39.463002073654906,-0.37774085998535323),\r\nnew google.maps.LatLng(39.4623394274065,-0.3773546218872087),\r\nnew google.maps.LatLng(39.4615442435804,-0.3766250610351579),\r\nnew google.maps.LatLng(39.46051711769215,-0.3761959075927751),\r\nnew google.maps.LatLng(39.45948997664644,-0.37520885467529463),\r\nnew google.maps.LatLng(39.45852908904296,-0.3746509552001969),\r\nnew google.maps.LatLng(39.457766996339345,-0.37405014038086104),\r\nnew google.maps.LatLng(39.45720370506541,-0.37362098693847823),\r\nnew google.maps.LatLng(39.45640846256581,-0.37392139434814614),\r\nnew google.maps.LatLng(39.45558007530166,-0.37413597106933755),\r\nnew google.maps.LatLng(39.45420493067974,-0.37705421447754073),\r\nnew google.maps.LatLng(39.454072385184546,-0.3781056404113786),\r\nnew google.maps.LatLng(39.45430433963551,-0.3793072700500505),\r\nnew google.maps.LatLng(39.454552861403975,-0.3807234764099138),\r\nnew google.maps.LatLng(39.45466883792563,-0.3814315795898454),\r\nnew google.maps.LatLng(39.45524871763588,-0.38145303726196456),\r\nnew google.maps.LatLng(39.455397828780676,-0.38246154785156417),\r\nnew google.maps.LatLng(39.45582859251594,-0.3825044631958008),\r\nnew google.maps.LatLng(39.45675638227726,-0.38280487060546875),\r\nnew google.maps.LatLng(39.45833028305512,-0.38366317749023604),\r\nnew google.maps.LatLng(39.45866162605276,-0.38404941558838057),\r\nnew google.maps.LatLng(39.456971760274826,-0.37568092346191406),\r\nnew google.maps.LatLng(39.45799893848022,-0.373234748840332),\r\nnew google.maps.LatLng(39.46270388362385,-0.36220550537109375),\r\nnew google.maps.LatLng(39.46303520580172,-0.36108970642089844),\r\nnew google.maps.LatLng(39.46550350637936,-0.37615299224853516),\r\nnew google.maps.LatLng(39.465089368099164,-0.3741145133972168),\r\nnew google.maps.LatLng(39.46472492437393,-0.37256956100463867),\r\nnew google.maps.LatLng(39.46417825520758,-0.36943674087524414),\r\nnew google.maps.LatLng(39.463797240824924,-0.367891788482666),\r\nnew google.maps.LatLng(39.46334996040968,-0.3661322593688965),\r\nnew google.maps.LatLng(39.463002073654906,-0.36426544189453125),\r\nnew google.maps.LatLng(39.46272044977021,-0.36325693130493164),\r\nnew google.maps.LatLng(39.462587920489,-0.3625059127807617),\r\nnew google.maps.LatLng(39.46240569231524,-0.36173343658447266),\r\nnew google.maps.LatLng(39.46207436714058,-0.36051034927368164),\r\nnew google.maps.LatLng(39.46185900493122,-0.35935163497924805),\r\nnew google.maps.LatLng(39.46164364205549,-0.3577423095703125),\r\nnew google.maps.LatLng(39.46136201267401,-0.35744190216064453),\r\nnew google.maps.LatLng(39.45057640664928,-0.35902976989746094),\r\nnew google.maps.LatLng(39.45329367530403,-0.36083221435546875),\r\nnew google.maps.LatLng(39.454486589019126,-0.3616046905517578),\r\nnew google.maps.LatLng(39.45634219194744,-0.36332130432128906),\r\nnew google.maps.LatLng(39.457800130978235,-0.3640937805175781),\r\nnew google.maps.LatLng(39.45972191304616,-0.36546707153320307),\r\nnew google.maps.LatLng(39.460914716608244,-0.36606788635253906),\r\nnew google.maps.LatLng(39.460947849748734,-0.3661537170410156),\r\nnew google.maps.LatLng(39.46144484496333,-0.3667116165161133),\r\nnew google.maps.LatLng(39.462140632301704,-0.3670978546142578),\r\nnew google.maps.LatLng(39.46277014818563,-0.36756992340087885),\r\nnew google.maps.LatLng(39.46349905420083,-0.3680849075317382),\r\nnew google.maps.LatLng(39.464327347224284,-0.3687715530395508),\r\nnew google.maps.LatLng(39.46528815478124,-0.369415283203125),\r\nnew google.maps.LatLng(39.46667964565638,-0.3664970397949219),\r\nnew google.maps.LatLng(39.46780607027152,-0.3634071350097656),\r\nnew google.maps.LatLng(39.452730347833345,-0.3725910186767578),\r\nnew google.maps.LatLng(39.45344279063624,-0.37087440490722656),\r\nnew google.maps.LatLng(39.453807293437116,-0.3698444366455078),\r\nnew google.maps.LatLng(39.454354044060175,-0.36881446838378906),\r\nnew google.maps.LatLng(39.454867654370425,-0.36754846572875977),\r\nnew google.maps.LatLng(39.45518244591346,-0.366518497467041),\r\nnew google.maps.LatLng(39.45577888914407,-0.36520957946777344),\r\nnew google.maps.LatLng(39.45630905661461,-0.36405086517333984),\r\nnew google.maps.LatLng(39.45685578758971,-0.36282777786254883),\r\nnew google.maps.LatLng(39.45736937944268,-0.3614974021911621),\r\nnew google.maps.LatLng(39.4580983420183,-0.359952449798584),\r\nnew google.maps.LatLng(39.45856222331906,-0.3585362434387207),\r\nnew google.maps.LatLng(39.45872789446301,-0.35808563232421875),\r\nnew google.maps.LatLng(39.450261594279674,-0.37087440490722656),\r\nnew google.maps.LatLng(39.45062611373544,-0.3696298599243164),\r\nnew google.maps.LatLng(39.45104033807322,-0.36881446838378906),\r\nnew google.maps.LatLng(39.45148769759016,-0.36784887313842773),\r\nnew google.maps.LatLng(39.45201789773998,-0.366668701171875),\r\nnew google.maps.LatLng(39.45268064224946,-0.3653168678283691),\r\nnew google.maps.LatLng(39.45299544368145,-0.3643727302551269),\r\nnew google.maps.LatLng(39.45339308556099,-0.3632998466491699),\r\nnew google.maps.LatLng(39.453724452059035,-0.362548828125),\r\nnew google.maps.LatLng(39.454105521582,-0.3616905212402343),\r\nnew google.maps.LatLng(39.45447002091304,-0.36040306091308594),\r\nnew google.maps.LatLng(39.4550167663314,-0.35939455032348633),\r\nnew google.maps.LatLng(39.455629778815485,-0.35782814025878906),\r\nnew google.maps.LatLng(39.45609367656666,-0.35677671432495117),\r\nnew google.maps.LatLng(39.45639189491714,-0.3563261032104492),\r\nnew google.maps.LatLng(39.45640846256581,-0.3560256958007812),\r\nnew google.maps.LatLng(39.456847503819084,-0.3551781177520752),\r\nnew google.maps.LatLng(39.457559904489074,-0.3544485569000244),\r\nnew google.maps.LatLng(39.45815632734994,-0.3541266918182373),\r\nnew google.maps.LatLng(39.4587527451006,-0.3538477420806885),\r\nnew google.maps.LatLng(39.45970534618609,-0.3534722328186035),\r\nnew google.maps.LatLng(39.4566404092333,-0.3473997116088867),\r\nnew google.maps.LatLng(39.45756818817494,-0.34821510314941406),\r\nnew google.maps.LatLng(39.45879416281018,-0.34842967987060547),\r\nnew google.maps.LatLng(39.45975504675447,-0.34821510314941406),\r\nnew google.maps.LatLng(39.46098098287345,-0.3477001190185547),\r\nnew google.maps.LatLng(39.46339965837555,-0.3464984893798828),\r\nnew google.maps.LatLng(39.4647911870114,-0.3458118438720703),\r\nnew google.maps.LatLng(39.465652595556904,-0.3454256057739258),\r\nnew google.maps.LatLng(39.46638147138258,-0.34499645233154297),\r\nnew google.maps.LatLng(39.466712776052354,-0.34503936767578125),\r\nnew google.maps.LatLng(39.46714346976499,-0.34503936767578125),\r\nnew google.maps.LatLng(39.46783920013123,-0.34456729888916016),\r\nnew google.maps.LatLng(39.46843553490872,-0.34461021423339844),\r\nnew google.maps.LatLng(39.4688993473135,-0.34409523010253906),\r\nnew google.maps.LatLng(39.46942941484763,-0.3433656692504883),\r\nnew google.maps.LatLng(39.47032389465494,-0.34293651580810547),\r\nnew google.maps.LatLng(39.4710527215515,-0.34255027770996094),\r\nnew google.maps.LatLng(39.47188092466693,-0.34203529357910156),\r\nnew google.maps.LatLng(39.459854447784714,-0.35302162170410156),\r\nnew google.maps.LatLng(39.46038458421538,-0.35267829895019526),\r\nnew google.maps.LatLng(39.46081531709215,-0.3529787063598633),\r\nnew google.maps.LatLng(39.462140632301704,-0.3527212142944336),\r\nnew google.maps.LatLng(39.46326713038771,-0.3522062301635742),\r\nnew google.maps.LatLng(39.46502310574564,-0.35151958465576166),\r\nnew google.maps.LatLng(39.46638147138258,-0.35096168518066406),\r\nnew google.maps.LatLng(39.468269886872065,-0.35010337829589844),\r\nnew google.maps.LatLng(39.470191379853524,-0.3494167327880859),\r\nnew google.maps.LatLng(39.47164902878836,-0.34881591796875),\r\nnew google.maps.LatLng(39.473338538205404,-0.3479576110839843),\r\nnew google.maps.LatLng(39.47366980975064,-0.34782886505126953),\r\nnew google.maps.LatLng(39.473537301321834,-0.3478717803955078),\r\nnew google.maps.LatLng(39.47366980975064,-0.3477644920349121),\r\nnew google.maps.LatLng(39.47380231792706,-0.34742116928100586),\r\nnew google.maps.LatLng(39.47413358726395,-0.3473782539367675),\r\nnew google.maps.LatLng(39.47458079836658,-0.3475499153137207),\r\nnew google.maps.LatLng(39.475690532017936,-0.3470778465270996),\r\nnew google.maps.LatLng(39.47736338063224,-0.34643411636352534),\r\nnew google.maps.LatLng(39.47974836255683,-0.3452324867248535),\r\nnew google.maps.LatLng(39.471980308378264,-0.3418421745300293),\r\nnew google.maps.LatLng(39.47232815025005,-0.3417134284973144),\r\nnew google.maps.LatLng(39.472675990382726,-0.3417348861694336),\r\nnew google.maps.LatLng(39.47362011911941,-0.3413057327270508),\r\nnew google.maps.LatLng(39.47386857192064,-0.34124135971069336),\r\nnew google.maps.LatLng(39.47413358726395,-0.3420138359069824),\r\nnew google.maps.LatLng(39.47429922134087,-0.34224987030029297),\r\nnew google.maps.LatLng(39.47494519047281,-0.3420567512512207),\r\nnew google.maps.LatLng(39.47578991028725,-0.34156322479248047),\r\nnew google.maps.LatLng(39.476452428454635,-0.34117698669433594),\r\nnew google.maps.LatLng(39.47694931293944,-0.34091949462890625),\r\nnew google.maps.LatLng(39.477976196294264,-0.34044742584228516),\r\nnew google.maps.LatLng(39.47829088332,-0.3403186798095703),\r\nnew google.maps.LatLng(39.47600522938373,-0.33885955810546875),\r\nnew google.maps.LatLng(39.47617085900447,-0.3395247459411621),\r\nnew google.maps.LatLng(39.47640273981097,-0.34029722213745117),\r\nnew google.maps.LatLng(39.476800247966686,-0.3415203094482422),\r\nnew google.maps.LatLng(39.47701556393592,-0.3423142433166504),\r\nnew google.maps.LatLng(39.47734681797185,-0.3432154655456543),\r\nnew google.maps.LatLng(39.47761182006484,-0.34435272216796875),\r\nnew google.maps.LatLng(39.47799275880479,-0.3455328941345215),\r\nnew google.maps.LatLng(39.47817494616036,-0.34606933593749994),\r\nnew google.maps.LatLng(39.47832400818726,-0.34647703170776367),\r\nnew google.maps.LatLng(39.47850619467525,-0.3472709655761719),\r\nnew google.maps.LatLng(39.47888712851722,-0.3488802909851074),\r\nnew google.maps.LatLng(39.47921837364057,-0.34991025924682617),\r\nnew google.maps.LatLng(39.4793839956107,-0.3504037857055664),\r\nnew google.maps.LatLng(39.47961586570634,-0.3510475158691406),\r\nnew google.maps.LatLng(39.47979804881068,-0.35151958465576166),\r\nnew google.maps.LatLng(39.48017897557775,-0.35184144973754883),\r\nnew google.maps.LatLng(39.480725519034394,-0.3525066375732422),\r\nnew google.maps.LatLng(39.47781057097203,-0.3448677062988281),\r\nnew google.maps.LatLng(39.47853931943996,-0.3444385528564453),\r\nnew google.maps.LatLng(39.479400557786015,-0.34403085708618164),\r\nnew google.maps.LatLng(39.47976492464538,-0.35143375396728516),\r\nnew google.maps.LatLng(39.47910243802683,-0.35121917724609375),\r\nnew google.maps.LatLng(39.47847306989473,-0.35121917724609375),\r\nnew google.maps.LatLng(39.477943071261365,-0.3513908386230469),\r\nnew google.maps.LatLng(39.4770818148693,-0.3518199920654297),\r\nnew google.maps.LatLng(39.47582303634548,-0.35216331481933594),\r\nnew google.maps.LatLng(39.475690532017936,-0.35224914550781244),\r\nnew google.maps.LatLng(39.4634327903331,-0.3294181823730469),\r\nnew google.maps.LatLng(39.46293580931396,-0.32971858978271484),\r\nnew google.maps.LatLng(39.46253822194348,-0.33014774322509766),\r\nnew google.maps.LatLng(39.46190870396176,-0.33083438873291016),\r\nnew google.maps.LatLng(39.4615442435804,-0.3311347961425781),\r\nnew google.maps.LatLng(39.460749050669214,-0.3318643569946289),\r\nnew google.maps.LatLng(39.46021891701454,-0.3325939178466797),\r\nnew google.maps.LatLng(39.46015265002381,-0.3329801559448242),\r\nnew google.maps.LatLng(39.46038458421538,-0.3341388702392578),\r\nnew google.maps.LatLng(39.460914716608244,-0.3355979919433594),\r\nnew google.maps.LatLng(39.46121291430482,-0.3368425369262695),\r\nnew google.maps.LatLng(39.461610509246235,-0.3380012512207031),\r\nnew google.maps.LatLng(39.46187557127868,-0.3390312194824219),\r\nnew google.maps.LatLng(39.46243882474595,-0.3407478332519531),\r\nnew google.maps.LatLng(39.46290267711985,-0.3422069549560547),\r\nnew google.maps.LatLng(39.46330026240834,-0.34413814544677734),\r\nnew google.maps.LatLng(39.463730977241106,-0.3455543518066406),\r\nnew google.maps.LatLng(39.464194821003,-0.34684181213378906),\r\nnew google.maps.LatLng(39.46462553029946,-0.3485584259033203),\r\nnew google.maps.LatLng(39.46515563038962,-0.35031795501708984),\r\nnew google.maps.LatLng(39.46568572644187,-0.35190582275390625),\r\nnew google.maps.LatLng(39.466182687823604,-0.35375118255615234),\r\nnew google.maps.LatLng(39.46714346976499,-0.3565406799316406),\r\nnew google.maps.LatLng(39.467938589615706,-0.35941600799560547),\r\nnew google.maps.LatLng(39.468170497860775,-0.3602743148803711),\r\nnew google.maps.LatLng(39.460119516504776,-0.3326582908630371),\r\nnew google.maps.LatLng(39.45980474728736,-0.33278703689575195),\r\nnew google.maps.LatLng(39.45950654355778,-0.33274412155151367),\r\nnew google.maps.LatLng(39.4592746064404,-0.3330230712890625),\r\nnew google.maps.LatLng(39.45895983340208,-0.3340101242065429),\r\nnew google.maps.LatLng(39.45886043109427,-0.3349542617797851),\r\nnew google.maps.LatLng(39.45886043109427,-0.3356623649597168),\r\nnew google.maps.LatLng(39.45874446155572,-0.336606502532959),\r\nnew google.maps.LatLng(39.45874446155572,-0.33755064010620117),\r\nnew google.maps.LatLng(39.45884386402915,-0.3385806083679199),\r\nnew google.maps.LatLng(39.45902610152845,-0.33997535705566406),\r\nnew google.maps.LatLng(39.45948997664644,-0.3422069549560547),\r\nnew google.maps.LatLng(39.460086382969976,-0.34461021423339844),\r\nnew google.maps.LatLng(39.46041771760823,-0.3462839126586914),\r\nnew google.maps.LatLng(39.46079875049232,-0.34778594970703125),\r\nnew google.maps.LatLng(39.4611300817395,-0.3488588333129883),\r\nnew google.maps.LatLng(39.461660208454205,-0.3505539894104004),\r\nnew google.maps.LatLng(39.4621737648586,-0.35224914550781244),\r\nnew google.maps.LatLng(39.46240569231524,-0.352935791015625),\r\nnew google.maps.LatLng(39.46280328044284,-0.354158878326416),\r\nnew google.maps.LatLng(39.463217432327184,-0.3552961349487304),\r\nnew google.maps.LatLng(39.46359844988413,-0.3567337989807129),\r\nnew google.maps.LatLng(39.46396289950847,-0.3576350212097168),\r\nnew google.maps.LatLng(39.46417825520758,-0.3583216667175293),\r\nnew google.maps.LatLng(39.46436047874017,-0.35887956619262695),\r\nnew google.maps.LatLng(39.46982696284829,-0.3349542617797851),\r\nnew google.maps.LatLng(39.469793833934986,-0.3337526321411133),\r\nnew google.maps.LatLng(39.46959506012395,-0.3330230712890625),\r\nnew google.maps.LatLng(39.469098123112005,-0.33066272735595703),\r\nnew google.maps.LatLng(39.4689324766527,-0.32903194427490234),\r\nnew google.maps.LatLng(39.4688993473135,-0.32866716384887695),\r\nnew google.maps.LatLng(39.469694447100444,-0.32851696014404297),\r\nnew google.maps.LatLng(39.46942941484763,-0.32649993896484375),\r\nnew google.maps.LatLng(39.46941285029832,-0.3260922431945801),\r\nnew google.maps.LatLng(39.468402405332924,-0.3260493278503418),\r\nnew google.maps.LatLng(39.46838584053912,-0.32487988471984863),\r\nnew google.maps.LatLng(39.474762994658285,-0.3274869918823242),\r\nnew google.maps.LatLng(39.474597361685554,-0.3265857696533203),\r\nnew google.maps.LatLng(39.474630488311654,-0.3249979019165039),\r\nnew google.maps.LatLng(39.474464855023434,-0.32456874847412104),\r\nnew google.maps.LatLng(39.47363668266709,-0.32456874847412104),\r\nnew google.maps.LatLng(39.47217907537508,-0.3245258331298828),\r\nnew google.maps.LatLng(39.47128461941758,-0.3247833251953125),\r\nnew google.maps.LatLng(39.469860091745815,-0.3247833251953125),\r\nnew google.maps.LatLng(39.46836927574137,-0.32486915588378906),\r\nnew google.maps.LatLng(39.46836927574137,-0.32401084899902344),\r\nnew google.maps.LatLng(39.468071108707534,-0.32328128814697266),\r\nnew google.maps.LatLng(39.46730912048314,-0.3233671188354492),\r\nnew google.maps.LatLng(39.46634834082885,-0.32332420349121094),\r\nnew google.maps.LatLng(39.4658513806301,-0.32328128814697266),\r\nnew google.maps.LatLng(39.46578511900212,-0.3239250183105469),\r\nnew google.maps.LatLng(39.46558633373964,-0.3246116638183594),\r\nnew google.maps.LatLng(39.4646586616734,-0.32486915588378906),\r\nnew google.maps.LatLng(39.463797240824924,-0.32486915588378906),\r\nnew google.maps.LatLng(39.46330026240834,-0.32491207122802734),\r\nnew google.maps.LatLng(39.46306833793275,-0.3258991241455078),\r\nnew google.maps.LatLng(39.463101470048,-0.3268861770629883),\r\nnew google.maps.LatLng(39.46280328044284,-0.32855987548828125),\r\nnew google.maps.LatLng(39.46280328044284,-0.3293323516845703),\r\nnew google.maps.LatLng(39.47029076597824,-0.3348255157470703),\r\nnew google.maps.LatLng(39.470853951336856,-0.3344392776489258),\r\nnew google.maps.LatLng(39.47194718049027,-0.3341817855834961),\r\nnew google.maps.LatLng(39.47340479264062,-0.33383846282958984),\r\nnew google.maps.LatLng(39.474762994658285,-0.3337526321411133),\r\nnew google.maps.LatLng(39.47555802743799,-0.3334951400756836),\r\nnew google.maps.LatLng(39.476154296060145,-0.3335809707641601),\r\nnew google.maps.LatLng(39.47655180563556,-0.33362388610839844),\r\nnew google.maps.LatLng(39.47701556393592,-0.3354692459106445),\r\nnew google.maps.LatLng(39.476452428454635,-0.3359413146972656),\r\nnew google.maps.LatLng(39.475922414425504,-0.33607006072998047),\r\nnew google.maps.LatLng(39.47519363854181,-0.33654212951660156),\r\nnew google.maps.LatLng(39.474597361685554,-0.3367137908935547),\r\nnew google.maps.LatLng(39.47386857192064,-0.33705711364746094),\r\nnew google.maps.LatLng(39.473437919834595,-0.3371858596801758),\r\nnew google.maps.LatLng(39.47290788283838,-0.33757209777832026),\r\nnew google.maps.LatLng(39.472675990382726,-0.33735752105712885),\r\nnew google.maps.LatLng(39.472278458660554,-0.33748626708984375),\r\nnew google.maps.LatLng(39.47181466878048,-0.33770084381103516),\r\nnew google.maps.LatLng(39.47148338840188,-0.3378725051879883),\r\nnew google.maps.LatLng(39.47582303634548,-0.36932945251464844),\r\nnew google.maps.LatLng(39.476750559571435,-0.36838531494140625),\r\nnew google.maps.LatLng(39.47761182006484,-0.3676128387451172),\r\nnew google.maps.LatLng(39.47860556892209,-0.36658287048339844),\r\nnew google.maps.LatLng(39.47973180046431,-0.3659820556640625),\r\nnew google.maps.LatLng(39.48118924950849,-0.3655529022216797),\r\nnew google.maps.LatLng(39.48222435102057,-0.36499500274658203),\r\nnew google.maps.LatLng(39.48305242113851,-0.3645551204681396),\r\nnew google.maps.LatLng(39.48368174783422,-0.3642547130584717),\r\nnew google.maps.LatLng(39.48450980059964,-0.3638577461242676),\r\nnew google.maps.LatLng(39.48517223571315,-0.36353588104248047),\r\nnew google.maps.LatLng(39.485437207991744,-0.36347150802612305),\r\nnew google.maps.LatLng(39.485561413399786,-0.3637504577636719),\r\nnew google.maps.LatLng(39.48821935596101,-0.3673231601715088),\r\nnew google.maps.LatLng(39.48842635656906,-0.3675055503845215),\r\nnew google.maps.LatLng(39.493882670378404,-0.35804271697998047),\r\nnew google.maps.LatLng(39.49355977450156,-0.3586113452911377),\r\nnew google.maps.LatLng(39.49306300868572,-0.35941600799560547),\r\nnew google.maps.LatLng(39.492400648742965,-0.36046743392944336),\r\nnew google.maps.LatLng(39.491829358223804,-0.36132574081420893),\r\nnew google.maps.LatLng(39.491407096996845,-0.3619694709777832),\r\nnew google.maps.LatLng(39.49078611994545,-0.36310672760009766),\r\nnew google.maps.LatLng(39.4901734171523,-0.364147424697876),\r\nnew google.maps.LatLng(39.4894365106952,-0.3654026985168457),\r\nnew google.maps.LatLng(39.48889003569493,-0.36635756492614746),\r\nnew google.maps.LatLng(39.488542276640416,-0.36705493927001953),\r\nnew google.maps.LatLng(39.488326996354104,-0.36772012710571284),\r\nnew google.maps.LatLng(39.487962674351174,-0.36834239959716797),\r\nnew google.maps.LatLng(39.48779707280974,-0.368267297744751),\r\nnew google.maps.LatLng(39.48761491065862,-0.36832094192504883),\r\nnew google.maps.LatLng(39.48767287139483,-0.3686213493347168),\r\nnew google.maps.LatLng(39.4878219130661,-0.3687930107116699),\r\nnew google.maps.LatLng(39.488004074674905,-0.36873936653137207),\r\nnew google.maps.LatLng(39.488111715401274,-0.3684818744659423),\r\nnew google.maps.LatLng(39.48828559622263,-0.3680741786956787),\r\nnew google.maps.LatLng(39.48864991653364,-0.36755919456481934),\r\nnew google.maps.LatLng(39.48896455526606,-0.3672158718109131),\r\nnew google.maps.LatLng(39.49031417367707,-0.3648233413696289),\r\nnew google.maps.LatLng(39.49289741929162,-0.36028504371643066),\r\nnew google.maps.LatLng(39.49374192107802,-0.3587830066680908),\r\nnew google.maps.LatLng(39.49405653676781,-0.35823583602905273),\r\nnew google.maps.LatLng(39.494164168124286,-0.35823583602905273),\r\nnew google.maps.LatLng(39.496225690404934,-0.3637933731079101),\r\nnew google.maps.LatLng(39.495662710468544,-0.3644371032714844),\r\nnew google.maps.LatLng(39.495199076509216,-0.3651130199432373),\r\nnew google.maps.LatLng(39.49478511500402,-0.36556363105773926),\r\nnew google.maps.LatLng(39.494445664730364,-0.36600351333618164),\r\nnew google.maps.LatLng(39.4938081560784,-0.36686182022094727),\r\nnew google.maps.LatLng(39.493452142209364,-0.3672480583190918),\r\nnew google.maps.LatLng(39.49296365509661,-0.36791324615478516),\r\nnew google.maps.LatLng(39.492392369203756,-0.36841750144958496),\r\nnew google.maps.LatLng(39.49189559504634,-0.369189977645874),\r\nnew google.maps.LatLng(39.49203634808463,-0.36928653717041016),\r\nnew google.maps.LatLng(39.492077745982876,-0.36951184272766113),\r\nnew google.maps.LatLng(39.491829358223804,-0.3698444366455078),\r\nnew google.maps.LatLng(39.49169688438946,-0.3699946403503418),\r\nnew google.maps.LatLng(39.49163064737765,-0.36990880966186523),\r\nnew google.maps.LatLng(39.491547851024116,-0.36975860595703125),\r\nnew google.maps.LatLng(39.491365698699305,-0.3698873519897461),\r\nnew google.maps.LatLng(39.49092687522985,-0.3704559803009033),\r\nnew google.maps.LatLng(39.49005749980029,-0.37146449089050293),\r\nnew google.maps.LatLng(39.48297789523164,-0.3792428970336914),\r\nnew google.maps.LatLng(39.483292559628524,-0.3789639472961426),\r\nnew google.maps.LatLng(39.48375627298683,-0.378878116607666),\r\nnew google.maps.LatLng(39.48532956312534,-0.37862062454223633),\r\nnew google.maps.LatLng(39.485859505473975,-0.37842750549316406),\r\nnew google.maps.LatLng(39.486406004291254,-0.3780198097229004),\r\nnew google.maps.LatLng(39.487863313473625,-0.37705421447753906),\r\nnew google.maps.LatLng(39.48937027152997,-0.37598133087158203),\r\nnew google.maps.LatLng(39.49003266034255,-0.37540197372436523),\r\nnew google.maps.LatLng(39.49105935053135,-0.37471532821655273),\r\nnew google.maps.LatLng(39.49223505777128,-0.3738570213317871),\r\nnew google.maps.LatLng(39.49360945088793,-0.3731060028076172),\r\nnew google.maps.LatLng(39.49442082684039,-0.3726017475128174),\r\nnew google.maps.LatLng(39.4951411220469,-0.3724730014801025),\r\nnew google.maps.LatLng(39.495555081432144,-0.3724086284637451),\r\nnew google.maps.LatLng(39.49630848118751,-0.37215113639831543),\r\nnew google.maps.LatLng(39.4968962929084,-0.3719151020050049),\r\nnew google.maps.LatLng(39.497633120298566,-0.37160396575927734),\r\nnew google.maps.LatLng(39.49808018030127,-0.37146449089050293),\r\nnew google.maps.LatLng(39.49826231503359,-0.3713250160217285),\r\nnew google.maps.LatLng(39.498444449288655,-0.3710460662841797),\r\nnew google.maps.LatLng(39.49794771837798,-0.3844785690307617),\r\nnew google.maps.LatLng(39.49751721538407,-0.3847360610961914),\r\nnew google.maps.LatLng(39.497152941537486,-0.3847789764404297),\r\nnew google.maps.LatLng(39.49675554970949,-0.38443565368652344),\r\nnew google.maps.LatLng(39.496225690404934,-0.38443565368652344),\r\nnew google.maps.LatLng(39.49562959385972,-0.3841352462768554),\r\nnew google.maps.LatLng(39.495199076509216,-0.3840494155883789),\r\nnew google.maps.LatLng(39.494702322407186,-0.3838777542114258),\r\nnew google.maps.LatLng(39.494106212799196,-0.3835773468017578),\r\nnew google.maps.LatLng(39.49311268542704,-0.3833627700805664),\r\nnew google.maps.LatLng(39.49225161688619,-0.38301944732666016),\r\nnew google.maps.LatLng(39.49168860476644,-0.38276195526123047),\r\nnew google.maps.LatLng(39.49086063748445,-0.38246154785156244),\r\nnew google.maps.LatLng(39.49016513734783,-0.38224697113037104),\r\nnew google.maps.LatLng(39.49369224478631,-0.3732776641845703),\r\nnew google.maps.LatLng(39.493576333300965,-0.37374973297119135),\r\nnew google.maps.LatLng(39.49327827430841,-0.37372827529907227),\r\nnew google.maps.LatLng(39.49311268542704,-0.37460803985595703),\r\nnew google.maps.LatLng(39.49235097149286,-0.37793397903442383),\r\nnew google.maps.LatLng(39.49130774104132,-0.38259029388427734),\r\nnew google.maps.LatLng(39.49359289209642,-0.37374973297119135),\r\nnew google.maps.LatLng(39.49397374330326,-0.37396430969238276),\r\nnew google.maps.LatLng(39.49302989083846,-0.37806272506713867),\r\nnew google.maps.LatLng(39.49342730396444,-0.37821292877197266),\r\nnew google.maps.LatLng(39.492317853306425,-0.3829765319824219),\r\nnew google.maps.LatLng(39.49013201812018,-0.38222551345825195),\r\nnew google.maps.LatLng(39.48993330242297,-0.38222551345825195),\r\nnew google.maps.LatLng(39.4892874724847,-0.3821396827697754),\r\nnew google.maps.LatLng(39.48892315551419,-0.3821396827697754),\r\nnew google.maps.LatLng(39.48879067614256,-0.38205385208129883),\r\nnew google.maps.LatLng(39.487565229989144,-0.36853551864624023),\r\nnew google.maps.LatLng(39.48705186099269,-0.3693079948425293),\r\nnew google.maps.LatLng(39.48662129052493,-0.36969423294067383),\r\nnew google.maps.LatLng(39.4860416722236,-0.3701019287109375),\r\nnew google.maps.LatLng(39.48539580613977,-0.3705310821533203),\r\nnew google.maps.LatLng(39.484484959160135,-0.3711533546447754),\r\nnew google.maps.LatLng(39.48357410025054,-0.37160396575927734),\r\nnew google.maps.LatLng(39.48299445655119,-0.3720760345458984),\r\nnew google.maps.LatLng(39.482182947255865,-0.3725910186767578),\r\nnew google.maps.LatLng(39.4824644923698,-0.3726553916931152),\r\nnew google.maps.LatLng(39.48238168510167,-0.3728914260864258),\r\nnew google.maps.LatLng(39.48188483942238,-0.37325620651245117),\r\nnew google.maps.LatLng(39.481636415251735,-0.37374973297119135),\r\nnew google.maps.LatLng(39.481272058196346,-0.3740501403808594),\r\nnew google.maps.LatLng(39.48107331717983,-0.3742218017578125),\r\nnew google.maps.LatLng(39.484799616738236,-0.3643512725830078),\r\nnew google.maps.LatLng(39.484799616738236,-0.36542415618896484),\r\nnew google.maps.LatLng(39.484799616738236,-0.3667116165161133),\r\nnew google.maps.LatLng(39.484898981993446,-0.3678274154663086),\r\nnew google.maps.LatLng(39.48506459043661,-0.3699731826782226),\r\nnew google.maps.LatLng(39.48519707690716,-0.3711318969726562),\r\nnew google.maps.LatLng(39.48519707690716,-0.3717327117919922),\r\nnew google.maps.LatLng(39.48529644159446,-0.37250518798828125),\r\nnew google.maps.LatLng(39.485428927623325,-0.37344932556152344),\r\nnew google.maps.LatLng(39.48536268464044,-0.3744792938232422),\r\nnew google.maps.LatLng(39.48536268464044,-0.37550926208496094),\r\nnew google.maps.LatLng(39.485528291979335,-0.3773975372314453),\r\nnew google.maps.LatLng(39.485627656193365,-0.3792858123779297),\r\nnew google.maps.LatLng(39.485627656193365,-0.38070201873779297),\r\nnew google.maps.LatLng(39.485727020265415,-0.3819894790649414),\r\nnew google.maps.LatLng(39.48579326290126,-0.38340568542480463),\r\nnew google.maps.LatLng(39.487283705524945,-0.3838348388671875),\r\nnew google.maps.LatLng(39.488111715401274,-0.3840065002441406),\r\nnew google.maps.LatLng(39.488558836634844,-0.38422107696533203),\r\nnew google.maps.LatLng(39.488774116203345,-0.384671688079834),\r\nnew google.maps.LatLng(39.48922951309435,-0.38594841957092285),\r\nnew google.maps.LatLng(39.48966834727652,-0.3863561153411865),\r\nnew google.maps.LatLng(39.4904218108273,-0.38648486137390137),\r\nnew google.maps.LatLng(39.49059568587181,-0.3858304023742676),\r\nnew google.maps.LatLng(39.490670203614904,-0.3855729103088379),\r\nnew google.maps.LatLng(39.49202806850204,-0.3861415386199951),\r\nnew google.maps.LatLng(39.49286430136551,-0.3863668441772461),\r\nnew google.maps.LatLng(39.49384955292158,-0.3867638111114502),\r\nnew google.maps.LatLng(39.494652646801754,-0.3870213031768799),\r\nnew google.maps.LatLng(39.49485134901052,-0.38684964179992676),\r\nnew google.maps.LatLng(39.4950997259728,-0.3863561153411865),\r\nnew google.maps.LatLng(39.49500037529437,-0.3852617740631103),\r\nnew google.maps.LatLng(39.49592764277126,-0.3856372833251953),\r\nnew google.maps.LatLng(39.49692112991393,-0.38590550422668457),\r\nnew google.maps.LatLng(39.497152941537486,-0.386044979095459),\r\nnew google.maps.LatLng(39.497301962887285,-0.3864526748657226),\r\nnew google.maps.LatLng(39.49226817599716,-0.38301944732666016),\r\nnew google.maps.LatLng(39.49197011139622,-0.3842639923095703),\r\nnew google.maps.LatLng(39.49170516401152,-0.38561582565307617),\r\nnew google.maps.LatLng(39.491605808481935,-0.3859376907348633),\r\nnew google.maps.LatLng(39.491291181701605,-0.3826332092285156),\r\nnew google.maps.LatLng(39.49109246931729,-0.3833627700805664),\r\nnew google.maps.LatLng(39.49097655349748,-0.3841567039489746),\r\nnew google.maps.LatLng(39.49066192386962,-0.3855085372924804),\r\nnew google.maps.LatLng(39.492814624446694,-0.3938770294189453),\r\nnew google.maps.LatLng(39.49238408966355,-0.3934049606323242),\r\nnew google.maps.LatLng(39.49172172325264,-0.39276123046875),\r\nnew google.maps.LatLng(39.49099311291215,-0.3919029235839843),\r\nnew google.maps.LatLng(39.48983394436135,-0.39083003997802734),\r\nnew google.maps.LatLng(39.489138433954764,-0.3900575637817383),\r\nnew google.maps.LatLng(39.48840979654311,-0.38924217224121094),\r\nnew google.maps.LatLng(39.48738306723069,-0.38825511932373047),\r\nnew google.maps.LatLng(39.48665441142479,-0.3874397277832031),\r\nnew google.maps.LatLng(39.486157596270374,-0.38666725158691406),\r\nnew google.maps.LatLng(39.48536268464044,-0.38576602935791016),\r\nnew google.maps.LatLng(39.48476649495497,-0.3847789764404297),\r\nnew google.maps.LatLng(39.48377283412104,-0.3833627700805664),\r\nnew google.maps.LatLng(39.48301101786679,-0.38246154785156244),\r\nnew google.maps.LatLng(39.48271291358265,-0.38177490234375),\r\nnew google.maps.LatLng(39.487681151496055,-0.3970634937286377),\r\nnew google.maps.LatLng(39.48784675331358,-0.39655923843383784),\r\nnew google.maps.LatLng(39.48806203508674,-0.39604425430297846),\r\nnew google.maps.LatLng(39.48868303646724,-0.3947567939758301),\r\nnew google.maps.LatLng(39.48940339112046,-0.39307236671447754),\r\nnew google.maps.LatLng(39.49030589388939,-0.3925466537475586),\r\nnew google.maps.LatLng(39.49057084660635,-0.39227843284606934),\r\nnew google.maps.LatLng(39.49035557260072,-0.39177954196929926),\r\nnew google.maps.LatLng(39.490030590387335,-0.39104193449020386),\r\nnew google.maps.LatLng(39.4871181023665,-0.38791179656982416),\r\nnew google.maps.LatLng(39.48794611421479,-0.3900790214538574),\r\nnew google.maps.LatLng(39.488542276640416,-0.39093732833862305),\r\nnew google.maps.LatLng(39.48880723607782,-0.3918170928955078),\r\nnew google.maps.LatLng(39.48950274979732,-0.39331912994384766),\r\nnew google.maps.LatLng(39.49011545850045,-0.3947138786315918),\r\nnew google.maps.LatLng(39.49084407803823,-0.3957223892211914),\r\nnew google.maps.LatLng(39.491622367746736,-0.39647340774536133),\r\nnew google.maps.LatLng(39.49289741929162,-0.39780378341674805),\r\nnew google.maps.LatLng(39.49372536231806,-0.3986620903015136),\r\nnew google.maps.LatLng(39.49496725837,-0.3995633125305176),\r\nnew google.maps.LatLng(39.49591108453192,-0.40022850036621094),\r\nnew google.maps.LatLng(39.49695424590746,-0.4009580612182617),\r\nnew google.maps.LatLng(39.49814641116822,-0.40181636810302734),\r\nnew google.maps.LatLng(39.49895773416714,-0.4024171829223633),\r\nnew google.maps.LatLng(39.499305441124854,-0.40303945541381836),\r\nnew google.maps.LatLng(39.485693898923834,-0.36516666412353516),\r\nnew google.maps.LatLng(39.48532956312534,-0.3641366958618164),\r\nnew google.maps.LatLng(39.48499834710666,-0.3626346588134765),\r\nnew google.maps.LatLng(39.48450152012079,-0.3613901138305664),\r\nnew google.maps.LatLng(39.48400468958552,-0.35980224609374994),\r\nnew google.maps.LatLng(39.48330912087313,-0.3576993942260742),\r\nnew google.maps.LatLng(39.48284540453334,-0.3559398651123047),\r\nnew google.maps.LatLng(39.48251417668335,-0.3542661666870117),\r\nnew google.maps.LatLng(39.48211670118107,-0.35327911376953125),\r\nnew google.maps.LatLng(39.48181859306363,-0.3520345687866211),\r\nnew google.maps.LatLng(39.48158673031113,-0.35164833068847656),\r\n ];\r\n}", "title": "" }, { "docid": "9717fa8d552bb027fc9a53710a4af0b1", "score": "0.6151416", "text": "function addPoly(points, color = 'black') {\n if (points.length < 2) {\n console.error(\"Not enough points\");\n return;\n }\n\n const content = document.getElementById('content');\n\n var svgElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'svg');\n var svgPath = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n let path = 'M' + points[0].x + ' ' + points[0].y\n\n for (const point of points) {\n path += ' L' + point.x + ' ' + point.y;\n }\n path += \" Z\";\n svgPath.setAttribute('d', path);\n svgPath.setAttribute('stroke', color);\n\n svgElement.setAttribute('height', \"500\");\n svgElement.setAttribute('width', \"500\");\n svgElement.setAttribute('style', 'position: absolute;');\n svgElement.setAttribute('fill', 'transparent');\n\n svgElement.appendChild(svgPath);\n content.appendChild(svgElement);\n}", "title": "" }, { "docid": "a1b0020cd905c3bb698f5af584db6dac", "score": "0.6147737", "text": "function add_point_to_polyobject(point, polyobject){\n var position = new google.maps.LatLng(point.latitude, point.longitude);\n polyobject.getPath().push(position);\n return position;\n}", "title": "" }, { "docid": "45bf59975bb5f31c348475c078c79a15", "score": "0.61465096", "text": "function updateMap()\n{\n\tmap.clearMarkers();\n\n\tfor (var i in markers)\n\t{\n\t\tmap.addMarker(\n\t\t{\n\t\t\t\"lon\": markers[i].ll[1],\n\t\t\t\"lat\": markers[i].ll[0],\n\t\t\tcolor: \"red\",\n\t\t\tchar: \"X\"\n\t\t})\n\t}\n\tscreen.render();\n}", "title": "" }, { "docid": "3b8304c7d542343d91873c270ea91bba", "score": "0.6140756", "text": "function insertDataPoint(e) {\n console.log(\"data point printed\");\n var path = polyline.getLatLngs();\n path.push(e.latlng);\n console.log(e.latlng);\n // Logic to set up marker or circle\n if (plots.length === 0) {\n // Case: first click\n var startMarker = L.marker(e.latlng);\n startMarker.addTo(mymap);\n // startMarker.setPosition(e.latLng);\n // startMarker.setMap(map);\n plots.push(startMarker);\n console.log(plots);\n\n } else {\n if (plots.length !== 1) {\n // Case: we have intermediate points between start and end\n var plot = plots.pop();\n\n var marker = L.marker(plot.getLatLng()).addTo(mymap);\n // var marker = new google.maps.Marker({\n // position: plot.getPosition(),\n // icon: {\n // path: google.maps.SymbolPath.CIRCLE,\n // fillColor: '#ffffff',\n // fillOpacity: 0.6,\n // strokeColor: '#ffffff',\n // strokeOpacity: 0.8,\n // strokeWeight: 2,\n // scale: 3\n // }\n // });\n // marker.setMap(map);\n plots.push(marker);\n }\n var endMarker = L.marker(e.latlng);\n // Case: add an end marker\n // endMarker.setPosition(e.latLng);\n if (plots.length === 1) {\n endMarker.addTo(mymap);\n // endMarker.setMap(map);\n }\n plots.push(endMarker);\n }\n}", "title": "" }, { "docid": "36fc95d22f6ed0d40573a94616c1bbe0", "score": "0.6138936", "text": "function initMap() {\n exports.map = new google.maps.Map(document.getElementById(\"map\"), {\n zoom: 7,\n center: {\n lat: 41.879,\n lng: -87.624\n } // Center the map on Chicago, USA.\n });\n exports.poly = new google.maps.Polyline({\n strokeColor: \"#000000\",\n strokeOpacity: 1.0,\n strokeWeight: 3\n });\n exports.poly.setMap(exports.map); // Add a listener for the click event\n\n exports.map.addListener(\"click\", addLatLng);\n } // Handles click events on a map, and adds a new point to the Polyline.", "title": "" }, { "docid": "89d5934dd65d649489606286693536c1", "score": "0.6126202", "text": "showInfoPoints() {\n // Remove info point layer if it was there before\n if (this.hasLayer(\"infoPoints\")) {\n this.removeFeatures(\"infoPoints\");\n }\n\n // Add layer with info points\n this.addPoints({\n id : \"infoPoints\",\n features : turf.featureCollection(\n this.getInfoPoints().map(info => info.toFeature())\n )\n });\n }", "title": "" }, { "docid": "6e0a594e76dd559bc86b1beeb8f16ee7", "score": "0.6117927", "text": "add (point) {\n return new Point(this.x + point.x, this.y + point.y)\n }", "title": "" }, { "docid": "adb6e9fad7e737022d3bdfe77ae78935", "score": "0.61170185", "text": "function map_points_init(){\n\t\t\t{% for lamp in lamp_points %}\n\t\t\t\t{% if lamp %}\n\t\t\t\t\tlampByID[\"{{ lamp.id }}\"] = {\n\t\t\t\t\t\tid: \"{{ lamp.id }}\",\n\t \t\t\t\tmax_range: \"{{lamp.max_range}}\",\n\t \t\t\t\tlamp_number: \"{{lamp.lamp_number}}\",\n\t \t\t\t\tlat: {{ lamp.geom.centroid.y }},\n\t \t\t\t\tlng: {{ lamp.geom.centroid.x }}\n\t\t\t\t\t};\n\t\t\t\t{% endif %}\n\t\t\t{% endfor %}\n\t\t\t\n\t\t\t{% for parking in parking_points %}\n\t\t\t\t{% if parking %}\n\t\t\t\t\tparkingByID[\"{{ parking.id }}\"] = {\n\t\t\t\t\t\tid: \"{{ parking.id }}\",\n\t \t\t\t\tlamp_location: \"{{parking.lamp_location}}\",\n\t \t\t\t\tcapacity: {{ parking.capacity }},\n\t \t\t\t\tgeom: {{ parking.geom.geojson|safe }}\n\t\t\t\t\t};\n\t\t\t\t{% endif %}\n\t\t\t{% endfor %}\n\t\t}", "title": "" }, { "docid": "946a25e235b82898f1f1dedfec38f729", "score": "0.6099171", "text": "function aoPointZoneAdd() {\n AO_Points = AO_Points + 1;\n aoPointZone.innerHTML = AO_Points;\n}", "title": "" }, { "docid": "2127ee2b1dfd4ab6763f99106ef353a5", "score": "0.60984373", "text": "addWayPoints(wayPoints) {\n this.__paths.push(wayPoints);\n }", "title": "" }, { "docid": "8eede0ff1ef78d9bd431cbd8afb28dd2", "score": "0.60916984", "text": "function initMap() {\n const options = {\n zoom: 6,\n center: { lat: 49.444433, lng: 32.059767 }\n }\n const myMap = new google.maps.Map(document.getElementById('map'), options);\n\n function addMarker(coordinates) {\n const marker = new google.maps.Marker({\n position: coordinates,\n map: myMap\n });\n console.log('Marker added')\n }\n \n coordinates.forEach(function(item){\n addMarker(item);\n })\n}", "title": "" }, { "docid": "28f69c65141ef9edff93deb286f86227", "score": "0.60908186", "text": "function addCurrentMarks () {\n \n // Se remueve marcas existentes\n removePath();\n \n // Obtiene listado de objetos point (coordenadas)\n var lst_pto = select2list('lst_pto_rte', '|');\n \n var newlatlon = null;\n for (var i = 0; i < lst_pto.length; i++) {\n var point = lst_pto.pop();\n newlatlon = new L.LatLng(point.latitud, point.longitud); \n var marker = new L.Marker(newlatlon, {icon: greyIcon}, {draggable:'true'})\n .bindPopup(point.info);\n marker.on('popupopen', onPopupOpen);\n marker.on('dragend', onDragEvent); \n map.addLayer(marker);\n }\n \n if (newlatlon != null) {\n map.setView(newlatlon, 8);\n }\n}", "title": "" }, { "docid": "be8e2b4eb4d075b010b58a3756772264", "score": "0.608352", "text": "function addPoints(data) {\n if (pointGroupLayer != null) {\n pointGroupLayer.remove();\n }\n pointGroupLayer = L.layerGroup().addTo(map);\n\n for (var row = 0; row < data.length; row++) {\n if (data[row].Include == \"Yes\" || data[row].Include == \"yes\" || data[row].Include == \"Y\" || data[row].Include == \"y\" ) { \n var marker;\n marker = L.circleMarker([data[row].Latitude, data[row].Longitude], style_pts(data[row].Status))\n marker.addTo(pointGroupLayer);\n\n // UNCOMMENT THIS LINE TO USE POPUPS\n /*marker.bindPopup('<b>Address: </b>' + data[row].Address + \n '<br><b>Review Type: </b>' + data[row].Review_Type_all +\n '<br><b>APN: </b>' + data[row].APN_Real +\n '<br><b>Review Date: </b>' + data[row].Rev_Date +\n '<br><b>Review Status: </b>' + data[row].Status +\n '<br><b>Regulated Project?: </b>' + data[row].Regulated_Project +\n '<br><b>Comments (CSG): </b>' + data[row].Comments_CSG +\n '<br><b>Comments (City): </b>' + data[row].Comments_City);*/\n\n marker.bindTooltip(data[row].Address, {permanent: false, opacity: 0.8});\n\n\n // COMMENT THE NEXT 14 LINES TO DISABLE SIDEBAR FOR THE MARKERS\n marker.feature = {\n properties: {\n APN_Parcel_GIS_Layer: data[row].APN_Parcel_GIS_Layer,\n Include: data[row].Include,\n Address: data[row].Address,\n APN_From_Review: data[row].APN_From_Review,\n Review_Type1: data[row].Review_Type1,\n Review_Type2: data[row].Review_Type2,\n Review_Type3: data[row].Review_Type3,\n Review_Type4: data[row].Review_Type4,\n Review_Type5: data[row].Review_Type5,\n Review_Date: data[row].Review_Date,\n Status: data[row].Status,\n C3_Regulated_Project: data[row].C3_Regulated_Project,\n Small_Project_Provision_C3i: data[row].Small_Project_Provision_C3i,\n Greater_Than_1_Acre: data[row].Greater_Than_1_Acre,\n Latitude: data[row].Latitude,\n Longitude: data[row].Longitude,\n Description: data[row].Project_Description,\n Comments_CSG: data[row].Comments_CSG,\n Comments_City: data[row].Comments_City,\n File_Path: data[row].File_Path,\n Photo1: data[row].Photo1,\n Doc1: data[row].Doc1\n }\n };\n marker.on({\n click: function(e) {\n L.DomEvent.stopPropagation(e);\n document.getElementById(\"sidebar-title\").innerHTML = e.target.feature.properties.Address;\n document.getElementById(\"sidebar-content\").innerHTML = \"<TABLE>\" + \n \"<TR><TD><b>Include Project on Map?: </b></TD><TD>\" + e.target.feature.properties.Include + \"</TD></TR>\" + \n \"<TR><TD><b>Address: </b></TD><TD>\" + e.target.feature.properties.Address + \"</TD></TR>\" + \n \"<TR><TD><b>APN from Parcel GIS Layer: </b></TD><TD>\" + e.target.feature.properties.APN_Parcel_GIS_Layer + \"</TD></TR>\" + \n \"<TR><TD><b>APN in Review Data: </b></TD><TD>\" + e.target.feature.properties.APN_From_Review + \"</TD></TR>\" + \n \"<TR><TD><b>Review Type 1: </b></TD><TD>\" + e.target.feature.properties.Review_Type1 + \"</TD></TR>\" + \n \"<TR><TD><b>Review Type 2: </b></TD><TD>\" + e.target.feature.properties.Review_Type2 + \"</TD></TR>\" + \n \"<TR><TD><b>Review Type 3: </b></TD><TD>\" + e.target.feature.properties.Review_Type3 + \"</TD></TR>\" + \n \"<TR><TD><b>Review Type 4: </b></TD><TD>\" + e.target.feature.properties.Review_Type4 + \"</TD></TR>\" + \n \"<TR><TD><b>Review Type 5: </b></TD><TD>\" + e.target.feature.properties.Review_Type5 + \"</TD></TR>\" + \n \"<TR><TD><b>Review Date: </b></TD><TD>\" + e.target.feature.properties.Review_Date + \"</TD></TR>\" + \n \"<TR><TD><b>Status: </b></TD><TD>\" + e.target.feature.properties.Status + \"</TD></TR>\" + \n \"<TR><TD><b>C3 Regulated Project?: </b></TD><TD>\" + e.target.feature.properties.C3_Regulated_Project + \"</TD></TR>\" + \n \"<TR><TD><b>Small Project (Provision C.3.i)?: </b></TD><TD>\" + e.target.feature.properties.Small_Project_Provision_C3i + \"</TD></TR>\" +\n \"<TR><TD><b>>1 acre?: </b></TD><TD>\" + e.target.feature.properties.Greater_Than_1_Acre + \"</TD></TR>\" + \n \"<TR><TD><b>Latitude: </b></TD><TD>\" + e.target.feature.properties.Latitude + \"</TD></TR>\" + \n \"<TR><TD><b>Project Description: </b></TD><TD>\" + e.target.feature.properties.Description + \"</TD></TR>\" + \n \"<TR><TD><b>Longitude: </b></TD><TD>\" + e.target.feature.properties.Longitude + \"</TD></TR>\" + \n \"<TR><TD><b>Comments from CSG: </b></TD><TD>\" + e.target.feature.properties.Comments_CSG + \"</TD></TR>\" + \n \"<TR><TD><b>Comments from City: </b></TD><TD>\" + e.target.feature.properties.Comments_City + \"</TD></TR>\" + \n \"<TR><TD><b>File Path CSG: </b></TD><TD>\" + e.target.feature.properties.File_Path + \"</TD></TR>\" + \n \"<TR><TD><b>Project Document: </b></TD><TD><a href='docs/\" + e.target.feature.properties.Doc1 + \"' >\" + e.target.feature.properties.Doc1 + \"</a></TD></TR>\" +\n \"<TR><TD><b>Project Photo: </b></TD><TD><a href='photos/\" + e.target.feature.properties.Photo1 + \"' >\" + e.target.feature.properties.Photo1 + \"</a></TD></TR>\" +\n /*\"<TR><TD colspan='2'> <a href='photos/\" + e.target.feature.properties.Photo1 + \"' target='_blank'><img src='photos/\" + e.target.feature.properties.Photo1 + \"' width='320'></a></TD></TR>\" +*/\n\n \"</TABLE>\";\n\n /*if (e.target.feature.properties.Photo1) {\n document.getElementById(\"sidebar-content\").innerHTML += \"<TR><TD colspan='2'> <a href='photos/\" + e.target.feature.properties.Photo1 + \"' target='_blank'><img src='photos/\" + e.target.feature.properties.Photo1 + \"' width='320'></a></TD></TR>\"; \n }*/\n\n\n sidebar.open(panelID);\n }\n });\n /*marker.on({\n mouseout: style_pts(data[row].Status),\n mouseover: highlightFeature,\n });*/\n\n // AwesomeMarkers is used to create fancier icons\n /*var icon = L.AwesomeMarkers.icon({\n icon: \"info-sign\",\n iconColor: \"white\",\n markerColor: getColor(data[row].Status),\n prefix: \"glyphicon\",\n extraClasses: \"fa-rotate-0\"\n });\n if (!markerType.includes(\"circle\")) {\n marker.setIcon(icon);\n }*/\n }\n }\n}", "title": "" }, { "docid": "90e61b076825e4044063a9160ae13b85", "score": "0.60786694", "text": "function add1000Points() {\n\t\tpoints = points + 1000;\n\t}", "title": "" }, { "docid": "ca5bf7641d2dd2003106e4de2c4501b2", "score": "0.6074873", "text": "function getPoints() {\r\n if(type == 1){\r\n return [new google.maps.LatLng(33.30742 ,72.93485),new google.maps.LatLng(33.89444 ,73.22359),new google.maps.LatLng(33.64038 ,72.96473),new google.maps.LatLng(33.23342 ,72.72533),new google.maps.LatLng(33.67781 ,72.51195),new google.maps.LatLng(34.01282 ,73.00057),new google.maps.LatLng(33.56394 ,73.62806),new google.maps.LatLng(34.02111 ,73.05833),new google.maps.LatLng(33.70426 ,72.50001),new google.maps.LatLng(33.28561 ,73.07034),new google.maps.LatLng(33.33037 ,72.66805),new google.maps.LatLng(33.59965 ,72.67565),new google.maps.LatLng(33.13808 ,73.14607),new google.maps.LatLng(33.68036 ,72.38958),new google.maps.LatLng(34.03527 ,73.55775),new google.maps.LatLng(33.80324 ,73.10161),new google.maps.LatLng(33.41650 ,72.77808),new google.maps.LatLng(33.49200 ,72.42406),new google.maps.LatLng(33.53869 ,73.06249),new google.maps.LatLng(33.85559 ,73.49596),new google.maps.LatLng(33.53279 ,72.64054),new google.maps.LatLng(33.40791 ,73.38612),new google.maps.LatLng(34.06778 ,73.25810),new google.maps.LatLng(33.25638 ,73.19733),new google.maps.LatLng(33.50613 ,73.55931),new google.maps.LatLng(33.62225 ,72.62674),new google.maps.LatLng(33.46049 ,73.36316),new google.maps.LatLng(33.61580 ,73.33791),new google.maps.LatLng(34.05752 ,72.46124),new google.maps.LatLng(33.22882 ,72.92505),new google.maps.LatLng(34.21957 ,72.55290),new google.maps.LatLng(33.57492 ,73.31913),new google.maps.LatLng(33.91779 ,73.68587),new google.maps.LatLng(33.65391 ,73.44122),new google.maps.LatLng(33.63539 ,72.34340),new google.maps.LatLng(33.79491 ,72.91201),new google.maps.LatLng(33.17106 ,73.22230),new google.maps.LatLng(33.79643 ,73.12823),new google.maps.LatLng(33.56647 ,73.03730),new google.maps.LatLng(34.16658 ,73.46328),new google.maps.LatLng(33.12839 ,73.07118),new google.maps.LatLng(34.07192 ,73.09174),new google.maps.LatLng(33.66713 ,73.48649),new google.maps.LatLng(33.15026 ,72.70460),new google.maps.LatLng(33.67373 ,73.35098),new google.maps.LatLng(33.27532 ,73.53776),new google.maps.LatLng(33.08963 ,73.30837),new google.maps.LatLng(33.51994 ,73.48472),new google.maps.LatLng(33.32630 ,72.70589),new google.maps.LatLng(33.12613 ,72.91205),new google.maps.LatLng(34.21974 ,73.16821),new google.maps.LatLng(33.33932 ,73.05784),new google.maps.LatLng(33.25291 ,72.56994),new google.maps.LatLng(33.88258 ,72.93950),new google.maps.LatLng(33.68636 ,73.24088),new google.maps.LatLng(34.13526 ,73.56429),new google.maps.LatLng(33.74429 ,73.65957),new google.maps.LatLng(33.55832 ,73.65782),new google.maps.LatLng(33.86008 ,73.53210),new google.maps.LatLng(33.14402 ,72.83535),new google.maps.LatLng(33.82395 ,73.44207),new google.maps.LatLng(33.79446 ,73.46329),new google.maps.LatLng(33.84162 ,73.51358),new google.maps.LatLng(33.64717 ,72.66247),new google.maps.LatLng(33.16808 ,72.98928),new google.maps.LatLng(33.84661 ,72.94593),new google.maps.LatLng(33.73762 ,73.74096),new google.maps.LatLng(34.03089 ,73.14190),new google.maps.LatLng(34.21110 ,72.61285),new google.maps.LatLng(33.97975 ,72.64172),new google.maps.LatLng(33.97892 ,73.68773),new google.maps.LatLng(33.21841 ,73.13751),new google.maps.LatLng(33.94429 ,73.15299),new google.maps.LatLng(33.20665 ,72.74654),new google.maps.LatLng(33.29770 ,73.14883),new google.maps.LatLng(34.10669 ,72.79226),new google.maps.LatLng(33.93752 ,72.93832),new google.maps.LatLng(33.30224 ,72.54358),new google.maps.LatLng(33.27900 ,73.49482),new google.maps.LatLng(34.36532 ,73.00941),new google.maps.LatLng(33.80757 ,72.80057),new google.maps.LatLng(33.78227 ,72.46154),new google.maps.LatLng(34.35618 ,72.86768),new google.maps.LatLng(33.14512 ,72.91489),new google.maps.LatLng(34.09281 ,73.07982),new google.maps.LatLng(33.96809 ,73.58396),new google.maps.LatLng(34.01611 ,73.52870),new google.maps.LatLng(34.11607 ,72.71374),new google.maps.LatLng(33.41016 ,72.44052),new google.maps.LatLng(33.06897 ,72.79815),new google.maps.LatLng(33.46705 ,72.54321),new google.maps.LatLng(33.91472 ,72.69741),new google.maps.LatLng(33.22406 ,72.86848),new google.maps.LatLng(33.71163 ,72.90305),new google.maps.LatLng(33.11570 ,73.30204),new google.maps.LatLng(34.35069 ,73.08349),new google.maps.LatLng(33.43751 ,72.69527),new google.maps.LatLng(33.91509 ,73.15534),new google.maps.LatLng(34.04974 ,72.56148),new google.maps.LatLng(33.34098 ,73.05570),new google.maps.LatLng(33.25217 ,73.46684),new google.maps.LatLng(33.07047 ,73.34631),new google.maps.LatLng(34.18344 ,73.28941),new google.maps.LatLng(33.39942 ,72.73419),new google.maps.LatLng(33.74893 ,73.41906),new google.maps.LatLng(34.02607 ,73.04660),new google.maps.LatLng(34.11175 ,72.76653),new google.maps.LatLng(33.28459 ,73.13083),new google.maps.LatLng(33.33540 ,73.36842),new google.maps.LatLng(33.40605 ,72.93874),new google.maps.LatLng(33.51666 ,72.57176),new google.maps.LatLng(33.97958 ,72.94416),new google.maps.LatLng(34.17872 ,73.48336),new google.maps.LatLng(33.01396 ,72.78719),new google.maps.LatLng(33.61098 ,72.78689),new google.maps.LatLng(34.21527 ,72.93967),new google.maps.LatLng(33.99279 ,72.61732),new google.maps.LatLng(33.57698 ,72.60220),new google.maps.LatLng(33.52824 ,73.37824),new google.maps.LatLng(33.95056 ,72.98249),new google.maps.LatLng(34.27152 ,72.73662),new google.maps.LatLng(34.12991 ,73.36874),new google.maps.LatLng(34.09714 ,72.65236),new google.maps.LatLng(34.23083 ,73.47449),new google.maps.LatLng(34.25259 ,72.99725),new google.maps.LatLng(33.26869 ,72.83614),new google.maps.LatLng(33.38639 ,72.59504),new google.maps.LatLng(33.20761 ,73.03762),new google.maps.LatLng(33.66350 ,72.35642),new google.maps.LatLng(34.02134 ,72.55423),new google.maps.LatLng(34.04698 ,73.63460),new google.maps.LatLng(33.37686 ,72.39230),new google.maps.LatLng(33.96239 ,73.58548),new google.maps.LatLng(33.51845 ,72.76085),new google.maps.LatLng(34.27879 ,73.06690),new google.maps.LatLng(34.24729 ,72.78979),new google.maps.LatLng(33.53951 ,72.74315),new google.maps.LatLng(33.97913 ,72.87706),new google.maps.LatLng(33.47867 ,72.68177),new google.maps.LatLng(33.89393 ,72.54252),new google.maps.LatLng(33.42553 ,72.87083),new google.maps.LatLng(33.08926 ,73.07859),new google.maps.LatLng(32.99874 ,73.16065),new google.maps.LatLng(33.38417 ,72.69513),new google.maps.LatLng(33.22918 ,72.96952),new google.maps.LatLng(33.22055 ,73.01198),new google.maps.LatLng(34.27682 ,72.72382),new google.maps.LatLng(34.19301 ,72.80241),new google.maps.LatLng(33.65177 ,72.62291),new google.maps.LatLng(34.00040 ,72.66106),new google.maps.LatLng(33.88610 ,72.57869),new google.maps.LatLng(33.24038 ,73.23971),new google.maps.LatLng(33.87210 ,73.05418),new google.maps.LatLng(33.80557 ,73.24143),new google.maps.LatLng(33.27231 ,72.68832),new google.maps.LatLng(33.87522 ,72.72093),new google.maps.LatLng(33.96651 ,73.33678),new google.maps.LatLng(33.09644 ,72.83943),new google.maps.LatLng(33.04219 ,72.72669),new google.maps.LatLng(33.76670 ,72.92728),new google.maps.LatLng(34.14303 ,73.44478),new google.maps.LatLng(33.88045 ,73.58403),new google.maps.LatLng(34.35343 ,73.06481),new google.maps.LatLng(33.32628 ,73.17226),new google.maps.LatLng(33.23784 ,72.75245),new google.maps.LatLng(33.51158 ,72.76101),new google.maps.LatLng(33.72539 ,72.81124),new google.maps.LatLng(33.34859 ,72.94544),new google.maps.LatLng(33.43728 ,73.31317),new google.maps.LatLng(33.99385 ,72.77884),new google.maps.LatLng(33.24431 ,72.87799),new google.maps.LatLng(33.18432 ,73.25366),new google.maps.LatLng(34.14708 ,73.02248),new google.maps.LatLng(33.81347 ,72.46688),new google.maps.LatLng(33.92217 ,73.67832),new google.maps.LatLng(33.94599 ,72.81868),new google.maps.LatLng(33.69145 ,72.58085),new google.maps.LatLng(33.06799 ,73.26753),new google.maps.LatLng(34.02798 ,73.43090),new google.maps.LatLng(33.75616 ,73.55117),new google.maps.LatLng(34.14154 ,73.33130),new google.maps.LatLng(33.91939 ,72.76506),new google.maps.LatLng(33.08175 ,72.88442),new google.maps.LatLng(33.59439 ,72.78369),new google.maps.LatLng(33.65465 ,72.67993),new google.maps.LatLng(33.27811 ,73.42975),new google.maps.LatLng(34.11873 ,72.71934),new google.maps.LatLng(33.93429 ,73.50551),new google.maps.LatLng(33.67574 ,73.70828),new google.maps.LatLng(33.15801 ,73.31843),new google.maps.LatLng(33.55816 ,73.43933),new google.maps.LatLng(33.96345 ,73.62947),new google.maps.LatLng(33.88813 ,72.99984),new google.maps.LatLng(33.83163 ,73.19030),new google.maps.LatLng(33.68208 ,73.66640),new google.maps.LatLng(33.43981 ,73.62545),new google.maps.LatLng(33.18230 ,73.53639),new google.maps.LatLng(33.68529 ,72.34385),new google.maps.LatLng(33.99646 ,72.75708),new google.maps.LatLng(33.80222 ,72.82579),new google.maps.LatLng(33.53168 ,73.60384),new google.maps.LatLng(34.32931 ,73.33801),new google.maps.LatLng(33.57821 ,73.40990),new google.maps.LatLng(33.02074 ,73.18697),new google.maps.LatLng(34.20413 ,73.45779),new google.maps.LatLng(33.76585 ,73.44364),new google.maps.LatLng(34.22000 ,73.01071),new google.maps.LatLng(33.59111 ,73.12356),new google.maps.LatLng(33.75521 ,72.96301),new google.maps.LatLng(33.46467 ,73.22454),new google.maps.LatLng(33.52035 ,73.66898),new google.maps.LatLng(33.18874 ,73.29034),new google.maps.LatLng(34.03178 ,73.15264),new google.maps.LatLng(33.73171 ,73.42922),new google.maps.LatLng(33.66467 ,73.62554),new google.maps.LatLng(33.45490 ,73.51436),new google.maps.LatLng(34.30687 ,73.20393),new google.maps.LatLng(33.49894 ,72.39482),new google.maps.LatLng(33.09357 ,72.67663),new google.maps.LatLng(33.58422 ,73.69956),new google.maps.LatLng(33.32143 ,72.99627),new google.maps.LatLng(34.22114 ,72.79093),new google.maps.LatLng(33.28168 ,73.22697),new google.maps.LatLng(33.34242 ,72.71443),new google.maps.LatLng(34.28639 ,72.87191),new google.maps.LatLng(33.02490 ,73.19896),new google.maps.LatLng(33.68933 ,72.38587),new google.maps.LatLng(33.29283 ,72.57846),new google.maps.LatLng(33.63963 ,72.76983),new google.maps.LatLng(33.27578 ,72.79889),new google.maps.LatLng(33.38043 ,73.36313),new google.maps.LatLng(33.41578 ,72.72802),new google.maps.LatLng(33.75843 ,73.59149),new google.maps.LatLng(33.09794 ,73.21191),new google.maps.LatLng(34.22953 ,72.93161),new google.maps.LatLng(34.07782 ,72.57015),new google.maps.LatLng(33.70567 ,73.31490),new google.maps.LatLng(33.43368 ,73.24076),new google.maps.LatLng(33.93302 ,72.38733),new google.maps.LatLng(33.31858 ,73.48492),new google.maps.LatLng(33.23760 ,73.00005),new google.maps.LatLng(33.11188 ,73.44851),new google.maps.LatLng(33.72917 ,73.13635),new google.maps.LatLng(33.55936 ,72.85523),new google.maps.LatLng(33.80886 ,72.33977),new google.maps.LatLng(33.88323 ,72.75486),new google.maps.LatLng(34.37151 ,73.22256),new google.maps.LatLng(34.13963 ,73.33072),new google.maps.LatLng(34.03816 ,72.64949),new google.maps.LatLng(34.20062 ,73.34935),new google.maps.LatLng(34.27205 ,73.10246),new google.maps.LatLng(33.54999 ,72.37608),new google.maps.LatLng(33.57087 ,73.22284),new google.maps.LatLng(33.44538 ,73.68950),new google.maps.LatLng(33.27177 ,72.89006),new google.maps.LatLng(33.86578 ,73.53057),new google.maps.LatLng(34.02039 ,73.33355),new google.maps.LatLng(33.66318 ,73.12788),new google.maps.LatLng(33.43403 ,72.89061),new google.maps.LatLng(34.10040 ,72.55453),new google.maps.LatLng(33.85666 ,72.48405),new google.maps.LatLng(34.17393 ,72.56921),new google.maps.LatLng(33.45097 ,73.40822),new google.maps.LatLng(33.57717 ,73.43286),new google.maps.LatLng(33.57738 ,73.28621),new google.maps.LatLng(33.94955 ,72.76468),new google.maps.LatLng(33.00583 ,73.08688),new google.maps.LatLng(34.00680 ,73.22083),new google.maps.LatLng(34.36262 ,73.13265),new google.maps.LatLng(33.88710 ,72.35471),new google.maps.LatLng(33.52478 ,72.51516),new google.maps.LatLng(33.26080 ,72.58399),new google.maps.LatLng(33.43531 ,73.46555),new google.maps.LatLng(33.32015 ,73.43507),new google.maps.LatLng(33.57951 ,73.21366),new google.maps.LatLng(33.98629 ,73.05093),new google.maps.LatLng(34.08226 ,73.46220),new google.maps.LatLng(34.07754 ,73.19672),new google.maps.LatLng(33.35999 ,72.55119),new google.maps.LatLng(34.31473 ,73.22472),new google.maps.LatLng(33.46386 ,72.92156),new google.maps.LatLng(33.78058 ,72.64032),new google.maps.LatLng(33.07519 ,73.16786),new google.maps.LatLng(33.60160 ,72.40909),new google.maps.LatLng(33.06813 ,73.37770),new google.maps.LatLng(33.45394 ,73.62657),new google.maps.LatLng(33.07665 ,73.22288),new google.maps.LatLng(34.18853 ,73.08584),new google.maps.LatLng(33.58952 ,72.69603),new google.maps.LatLng(33.77764 ,72.65491),new google.maps.LatLng(33.67532 ,72.95365),new google.maps.LatLng(34.16016 ,72.77289),new google.maps.LatLng(33.22724 ,72.81410),new google.maps.LatLng(33.28014 ,72.77659),new google.maps.LatLng(33.50985 ,73.65556),new google.maps.LatLng(33.91180 ,73.40176),new google.maps.LatLng(33.60654 ,72.88165),new google.maps.LatLng(34.13230 ,73.14884),new google.maps.LatLng(33.94277 ,72.97679),new google.maps.LatLng(34.30706 ,73.32334),new google.maps.LatLng(33.88423 ,72.81505),new google.maps.LatLng(33.17782 ,72.57877),new google.maps.LatLng(33.49965 ,72.59453),new google.maps.LatLng(34.26177 ,73.33667),new google.maps.LatLng(33.17727 ,72.90313),new google.maps.LatLng(33.94273 ,72.88530),new google.maps.LatLng(33.37697 ,73.29103),new google.maps.LatLng(33.70706 ,72.75453),new google.maps.LatLng(34.09380 ,72.82068),new google.maps.LatLng(33.40302 ,73.40782),new google.maps.LatLng(33.92492 ,73.01784),new google.maps.LatLng(33.98515 ,73.27027),new google.maps.LatLng(34.22530 ,72.81444),new google.maps.LatLng(33.33583 ,73.37105),new google.maps.LatLng(33.31667 ,73.50565),new google.maps.LatLng(34.17845 ,72.76262),new google.maps.LatLng(33.51898 ,72.80486),new google.maps.LatLng(33.21711 ,73.53577),new google.maps.LatLng(34.14399 ,73.22802),new google.maps.LatLng(33.64740 ,73.67995),new google.maps.LatLng(33.72525 ,72.86398),new google.maps.LatLng(33.59871 ,72.38178),new google.maps.LatLng(33.09215 ,73.03697),new google.maps.LatLng(33.59139 ,73.37889),new google.maps.LatLng(33.67116 ,72.42730),new google.maps.LatLng(33.15532 ,72.59037),new google.maps.LatLng(33.92607 ,72.79163),new google.maps.LatLng(33.66342 ,72.43400),new google.maps.LatLng(33.95113 ,72.38907),new google.maps.LatLng(33.95594 ,73.61084),new google.maps.LatLng(33.80026 ,72.69206),new google.maps.LatLng(33.02825 ,73.14638),new google.maps.LatLng(34.24104 ,72.79652),new google.maps.LatLng(33.31187 ,72.75006),new google.maps.LatLng(33.09424 ,72.73813),new google.maps.LatLng(33.65939 ,73.57127),new google.maps.LatLng(33.79998 ,72.68796),new google.maps.LatLng(33.14570 ,73.12566),new google.maps.LatLng(33.87654 ,73.72404),new google.maps.LatLng(33.97426 ,72.96899),new google.maps.LatLng(33.29939 ,72.52443),new google.maps.LatLng(33.46532 ,72.54912),new google.maps.LatLng(33.50502 ,72.40640),new google.maps.LatLng(33.59793 ,73.08565),new google.maps.LatLng(33.20038 ,72.69476),new google.maps.LatLng(34.14730 ,72.49959),new google.maps.LatLng(34.15414 ,73.46297),new google.maps.LatLng(33.89840 ,72.70140),new google.maps.LatLng(33.07368 ,72.82315),new google.maps.LatLng(34.19007 ,72.54284),new google.maps.LatLng(34.26612 ,73.32730),new google.maps.LatLng(33.49885 ,73.57859),new google.maps.LatLng(33.89181 ,73.61213),new google.maps.LatLng(33.59917 ,72.59805),new google.maps.LatLng(33.85155 ,72.96841),new google.maps.LatLng(34.19233 ,72.94521),new google.maps.LatLng(33.28677 ,73.29666),new google.maps.LatLng(33.38908 ,72.52851),new google.maps.LatLng(33.07901 ,73.37689),new google.maps.LatLng(33.06665 ,72.72277),new google.maps.LatLng(33.07692 ,73.38224),new google.maps.LatLng(34.30411 ,72.84631),new google.maps.LatLng(33.85248 ,73.21296),new google.maps.LatLng(33.37088 ,72.94450),new google.maps.LatLng(33.91783 ,73.17112),new google.maps.LatLng(33.18894 ,73.24230),new google.maps.LatLng(33.73295 ,73.60113),new google.maps.LatLng(33.39672 ,73.33457),new google.maps.LatLng(34.13231 ,73.36135),new google.maps.LatLng(33.64370 ,72.97754),new google.maps.LatLng(34.32481 ,72.93311),new google.maps.LatLng(34.25852 ,73.16737),new google.maps.LatLng(33.33651 ,72.84517),new google.maps.LatLng(33.14691 ,72.95150),new google.maps.LatLng(33.41540 ,72.62077),new google.maps.LatLng(34.09102 ,73.59936),new google.maps.LatLng(33.67133 ,73.00312),new google.maps.LatLng(33.46375 ,73.18715),new google.maps.LatLng(33.76350 ,73.49884),new google.maps.LatLng(33.56626 ,73.14617),new google.maps.LatLng(33.38585 ,72.87468),new google.maps.LatLng(33.00739 ,72.98853),new google.maps.LatLng(33.73708 ,72.84809),new google.maps.LatLng(33.81922 ,73.38447),new google.maps.LatLng(33.68457 ,73.32398),new google.maps.LatLng(33.33202 ,72.54700),new google.maps.LatLng(33.30387 ,72.49796),new google.maps.LatLng(33.89210 ,72.72745),new google.maps.LatLng(34.27036 ,73.03525),new google.maps.LatLng(33.40011 ,73.42728),new google.maps.LatLng(33.21875 ,73.26806),new google.maps.LatLng(34.10833 ,73.31949),new google.maps.LatLng(33.67801 ,72.48938),new google.maps.LatLng(34.01755 ,73.61310),new google.maps.LatLng(33.68748 ,72.91697),new google.maps.LatLng(33.89879 ,73.01336),new google.maps.LatLng(34.08753 ,72.52262),new google.maps.LatLng(33.42666 ,72.44977),new google.maps.LatLng(34.37149 ,73.11589),new google.maps.LatLng(33.79854 ,72.88027),new google.maps.LatLng(33.40083 ,73.09435),new google.maps.LatLng(33.79850 ,73.40165),new google.maps.LatLng(33.71115 ,73.67108),new google.maps.LatLng(33.99146 ,73.49789),new google.maps.LatLng(33.40322 ,73.66724),new google.maps.LatLng(33.57778 ,73.32975),new google.maps.LatLng(33.35240 ,73.40118),new google.maps.LatLng(33.41766 ,73.46687),new google.maps.LatLng(33.93441 ,73.03420),new google.maps.LatLng(33.69681 ,72.61218),new google.maps.LatLng(34.32847 ,73.12525),new google.maps.LatLng(33.86556 ,73.62345),new google.maps.LatLng(33.77010 ,72.54054),new google.maps.LatLng(33.47411 ,72.59631),new google.maps.LatLng(33.74719 ,72.40345),new google.maps.LatLng(33.77496 ,72.33173),new google.maps.LatLng(33.66374 ,73.31937),new google.maps.LatLng(33.62882 ,72.81604),new google.maps.LatLng(34.01470 ,73.31970),new google.maps.LatLng(33.72597 ,72.87457),new google.maps.LatLng(33.68169 ,72.86317),new google.maps.LatLng(33.92404 ,72.56439),new google.maps.LatLng(33.90731 ,72.83184),new google.maps.LatLng(33.52278 ,72.46884),new google.maps.LatLng(33.90123 ,72.83633),new google.maps.LatLng(33.43546 ,72.83007),new google.maps.LatLng(33.20131 ,73.16129),new google.maps.LatLng(33.50702 ,73.69006),new google.maps.LatLng(34.00311 ,73.06933),new google.maps.LatLng(34.20620 ,73.50922),new google.maps.LatLng(33.75039 ,73.65008),new google.maps.LatLng(34.19329 ,73.35892),new google.maps.LatLng(33.47821 ,73.45906),new google.maps.LatLng(33.84933 ,73.72604),new google.maps.LatLng(33.40885 ,72.86592),new google.maps.LatLng(33.97929 ,72.40513),new google.maps.LatLng(33.93687 ,72.75352),new google.maps.LatLng(33.96628 ,73.30418),new google.maps.LatLng(33.73014 ,73.43391),new google.maps.LatLng(34.29409 ,72.80563),new google.maps.LatLng(33.55571 ,73.31062),new google.maps.LatLng(33.56576 ,73.53737),new google.maps.LatLng(34.01895 ,72.88633),new google.maps.LatLng(33.10510 ,72.75081),new google.maps.LatLng(34.31431 ,72.69003),new google.maps.LatLng(33.20618 ,73.30398),new google.maps.LatLng(33.74478 ,72.73686),new google.maps.LatLng(33.87637 ,73.46847),new google.maps.LatLng(33.18903 ,72.90063),new google.maps.LatLng(33.52394 ,72.36906),new google.maps.LatLng(33.59493 ,72.89003),new google.maps.LatLng(33.67610 ,72.75357),new google.maps.LatLng(33.72232 ,72.75180),new google.maps.LatLng(33.48226 ,73.57125),new google.maps.LatLng(34.35124 ,72.78302),new google.maps.LatLng(33.81088 ,73.65662),new google.maps.LatLng(33.95079 ,72.81139),new google.maps.LatLng(33.34241 ,73.16104),new google.maps.LatLng(33.56928 ,72.87320),new google.maps.LatLng(33.15448 ,72.66888),new google.maps.LatLng(33.73521 ,73.01860),new google.maps.LatLng(33.29100 ,73.22656),new google.maps.LatLng(34.34670 ,73.00730),new google.maps.LatLng(33.59203 ,72.70230),new google.maps.LatLng(33.34001 ,73.01668),new google.maps.LatLng(33.79617 ,72.58239),new google.maps.LatLng(33.74757 ,72.85174),new google.maps.LatLng(33.82228 ,72.75977),new google.maps.LatLng(33.94017 ,72.94073),new google.maps.LatLng(33.27489 ,73.39065),new google.maps.LatLng(34.11140 ,73.41605),new google.maps.LatLng(33.18429 ,72.75616),new google.maps.LatLng(33.55032 ,73.32303),new google.maps.LatLng(34.17763 ,73.24610),new google.maps.LatLng(33.08482 ,73.14228),new google.maps.LatLng(34.10690 ,73.30590),new google.maps.LatLng(33.15012 ,72.71574),new google.maps.LatLng(34.21539 ,72.85277),new google.maps.LatLng(34.02712 ,73.23713),new google.maps.LatLng(34.03737 ,72.46174),new google.maps.LatLng(33.36358 ,73.14253),new google.maps.LatLng(33.28513 ,72.63561),new google.maps.LatLng(33.31585 ,72.70805),new google.maps.LatLng(33.55057 ,72.74202),new google.maps.LatLng(34.12131 ,73.48793),new google.maps.LatLng(34.16340 ,72.87316),new google.maps.LatLng(33.24673 ,72.60352),new google.maps.LatLng(33.95792 ,73.07232),new google.maps.LatLng(33.64018 ,73.20692),new google.maps.LatLng(34.09113 ,72.78044),new google.maps.LatLng(34.20576 ,72.74490),new google.maps.LatLng(33.38571 ,73.27551),new google.maps.LatLng(34.32603 ,73.10295),new google.maps.LatLng(33.36211 ,73.35855),new google.maps.LatLng(33.35224 ,72.70568),new google.maps.LatLng(33.32161 ,72.69262),new google.maps.LatLng(33.94633 ,73.13835),new google.maps.LatLng(33.87772 ,72.86582),new google.maps.LatLng(34.13651 ,72.80059),new google.maps.LatLng(33.48874 ,73.45254),new google.maps.LatLng(33.68879 ,73.57556),new google.maps.LatLng(33.91255 ,73.46422),new google.maps.LatLng(33.33055 ,72.78867),new google.maps.LatLng(33.33414 ,73.14383),new google.maps.LatLng(33.28944 ,73.36599),new google.maps.LatLng(33.10581 ,72.88792),new google.maps.LatLng(33.75158 ,73.16507),new google.maps.LatLng(33.33296 ,73.17304),new google.maps.LatLng(34.05634 ,73.31904),new google.maps.LatLng(33.88625 ,72.64989),new google.maps.LatLng(33.94147 ,73.53287),new google.maps.LatLng(34.01535 ,72.52622),new google.maps.LatLng(33.72223 ,72.98381),new google.maps.LatLng(33.44166 ,73.11384),new google.maps.LatLng(33.51168 ,73.65091),new google.maps.LatLng(33.49275 ,72.56115),new google.maps.LatLng(33.10397 ,73.36692),new google.maps.LatLng(34.15024 ,73.29324),new google.maps.LatLng(34.30248 ,72.91574),new google.maps.LatLng(33.19709 ,72.93103),new google.maps.LatLng(34.05239 ,72.90071),new google.maps.LatLng(33.22180 ,73.44420),new google.maps.LatLng(34.34604 ,72.93644),new google.maps.LatLng(34.21931 ,73.30796),new google.maps.LatLng(34.15347 ,73.00103),new google.maps.LatLng(33.42919 ,73.10484),new google.maps.LatLng(34.10095 ,72.95973),new google.maps.LatLng(33.19154 ,73.14044),new google.maps.LatLng(33.51082 ,73.53238),new google.maps.LatLng(33.92651 ,73.46383),new google.maps.LatLng(34.33731 ,72.92306),new google.maps.LatLng(33.63637 ,73.65421),new google.maps.LatLng(33.48824 ,72.56354),new google.maps.LatLng(33.68413 ,72.83216),new google.maps.LatLng(33.65126 ,73.45384),new google.maps.LatLng(33.77355 ,72.56601),new google.maps.LatLng(34.22793 ,72.77277),new google.maps.LatLng(33.91058 ,73.51695),new google.maps.LatLng(33.18241 ,72.63709),new google.maps.LatLng(33.24246 ,72.91461),new google.maps.LatLng(33.52257 ,73.61065),new google.maps.LatLng(34.13084 ,72.87139),new google.maps.LatLng(33.55529 ,72.81230),new google.maps.LatLng(33.77032 ,72.59439),new google.maps.LatLng(33.40032 ,72.73236),new google.maps.LatLng(33.77897 ,73.57640),new google.maps.LatLng(33.34214 ,72.69335),new google.maps.LatLng(33.59024 ,72.62601),new google.maps.LatLng(33.95462 ,73.47138),new google.maps.LatLng(33.56768 ,73.55039),new google.maps.LatLng(33.56674 ,73.13823),new google.maps.LatLng(34.25472 ,72.95667),new google.maps.LatLng(33.87250 ,72.57987),new google.maps.LatLng(33.53655 ,72.44177),new google.maps.LatLng(33.75356 ,72.91191),new google.maps.LatLng(33.14951 ,73.50825),new google.maps.LatLng(33.45697 ,73.70947),new google.maps.LatLng(33.18410 ,73.23469),new google.maps.LatLng(34.10907 ,72.50197),new google.maps.LatLng(33.51652 ,72.90234),new google.maps.LatLng(33.54575 ,72.36475),new google.maps.LatLng(33.40101 ,72.48865),new google.maps.LatLng(34.04145 ,73.04492),new google.maps.LatLng(33.84081 ,73.48887),new google.maps.LatLng(33.38930 ,72.46527),new google.maps.LatLng(33.11928 ,72.97912),new google.maps.LatLng(33.71332 ,73.55283),new google.maps.LatLng(33.91133 ,72.68525),new google.maps.LatLng(33.65851 ,72.94173),new google.maps.LatLng(33.27374 ,72.89759),new google.maps.LatLng(34.24232 ,72.67435),new google.maps.LatLng(33.43079 ,72.98840),new google.maps.LatLng(33.85258 ,72.92415),new google.maps.LatLng(34.18807 ,72.66023),new google.maps.LatLng(33.05443 ,72.85527),new google.maps.LatLng(34.36946 ,73.06315),new google.maps.LatLng(33.69297 ,73.14100),new google.maps.LatLng(33.76974 ,73.05937),new google.maps.LatLng(34.16985 ,72.50480),new google.maps.LatLng(33.67003 ,73.05302),new google.maps.LatLng(34.15546 ,73.05694),new google.maps.LatLng(33.55273 ,72.59043),new google.maps.LatLng(33.27287 ,72.57440),new google.maps.LatLng(34.07733 ,73.39106),new google.maps.LatLng(33.77329 ,73.20389),new google.maps.LatLng(33.62415 ,73.00101),new google.maps.LatLng(33.27180 ,73.02686),new google.maps.LatLng(33.68071 ,73.67336),new google.maps.LatLng(33.56866 ,72.56526),new google.maps.LatLng(33.11585 ,72.92960),new google.maps.LatLng(33.41957 ,72.54505),new google.maps.LatLng(33.34807 ,73.47857),new google.maps.LatLng(33.75090 ,72.37291),new google.maps.LatLng(33.89523 ,72.60864),new google.maps.LatLng(33.73014 ,72.92887),new google.maps.LatLng(33.78446 ,73.28692),new google.maps.LatLng(33.34679 ,73.03163),new google.maps.LatLng(33.30952 ,72.76798),new google.maps.LatLng(34.11707 ,73.33418),new google.maps.LatLng(33.42438 ,73.61754),new google.maps.LatLng(33.79516 ,72.39305),new google.maps.LatLng(33.47993 ,72.73464),new google.maps.LatLng(33.08971 ,73.02598),new google.maps.LatLng(33.49875 ,72.89038),new google.maps.LatLng(33.24465 ,72.80459),new google.maps.LatLng(33.46886 ,72.69567),new google.maps.LatLng(33.64863 ,73.14659),new google.maps.LatLng(32.99845 ,72.89709),new google.maps.LatLng(33.64206 ,73.34672),new google.maps.LatLng(33.21757 ,72.79455),new google.maps.LatLng(33.97556 ,72.71474),new google.maps.LatLng(34.10446 ,72.90623),new google.maps.LatLng(33.93798 ,73.57153),new google.maps.LatLng(34.15043 ,73.32184),new google.maps.LatLng(33.33690 ,73.26386),new google.maps.LatLng(34.15265 ,73.34142),new google.maps.LatLng(33.48212 ,72.76626),new google.maps.LatLng(34.17304 ,72.55576),new google.maps.LatLng(33.27008 ,72.64298),new google.maps.LatLng(34.07592 ,72.45157),new google.maps.LatLng(33.65527 ,72.91137),new google.maps.LatLng(33.61768 ,72.37392),new google.maps.LatLng(33.60564 ,72.53340),new google.maps.LatLng(33.73093 ,73.59438),new google.maps.LatLng(33.19594 ,72.61046),new google.maps.LatLng(33.80456 ,72.73240),new google.maps.LatLng(33.88362 ,72.39517),new google.maps.LatLng(33.28258 ,73.54264),new google.maps.LatLng(34.22642 ,72.78073),new google.maps.LatLng(33.91842 ,72.95917),new google.maps.LatLng(34.24004 ,72.67594),new google.maps.LatLng(33.31727 ,73.25012),new google.maps.LatLng(33.66567 ,72.62391),new google.maps.LatLng(33.01155 ,72.86557),new google.maps.LatLng(33.87555 ,73.34126),new google.maps.LatLng(34.08157 ,73.33843),new google.maps.LatLng(33.10338 ,72.64542),new google.maps.LatLng(33.72640 ,73.47953),new google.maps.LatLng(33.40790 ,73.57680),new google.maps.LatLng(34.35341 ,73.18727),new google.maps.LatLng(33.74309 ,73.45622),new google.maps.LatLng(34.37646 ,72.94935),new google.maps.LatLng(33.40971 ,73.52557),new google.maps.LatLng(33.17477 ,73.10163),new google.maps.LatLng(33.43560 ,72.70415),new google.maps.LatLng(34.00823 ,72.90505),new google.maps.LatLng(33.59779 ,73.62550),new google.maps.LatLng(33.90768 ,72.52733),new google.maps.LatLng(34.16239 ,72.65536),new google.maps.LatLng(33.38289 ,72.58943),new google.maps.LatLng(33.87981 ,73.33464),new google.maps.LatLng(34.09465 ,73.51564),new google.maps.LatLng(33.23857 ,73.51881),new google.maps.LatLng(33.68645 ,72.93020),new google.maps.LatLng(34.05131 ,72.59019),new google.maps.LatLng(33.94162 ,73.14326),new google.maps.LatLng(33.84701 ,73.03207),new google.maps.LatLng(33.44608 ,72.71671),new google.maps.LatLng(33.77388 ,73.18543),new google.maps.LatLng(33.87528 ,73.52435),new google.maps.LatLng(34.25413 ,72.71907),new google.maps.LatLng(34.16004 ,72.99426),new google.maps.LatLng(34.04061 ,73.55091),new google.maps.LatLng(34.26649 ,72.95745),new google.maps.LatLng(33.27845 ,72.85396),new google.maps.LatLng(33.40207 ,73.28928),new google.maps.LatLng(33.41732 ,73.53114),new google.maps.LatLng(33.74205 ,72.55818),new google.maps.LatLng(33.22221 ,72.76935),new google.maps.LatLng(33.10266 ,73.08451),new google.maps.LatLng(33.53378 ,72.97286),new google.maps.LatLng(33.06275 ,72.78138),new google.maps.LatLng(33.43638 ,73.32974),new google.maps.LatLng(33.36593 ,73.39896),new google.maps.LatLng(33.45944 ,72.51103),new google.maps.LatLng(33.52195 ,73.44610),new google.maps.LatLng(33.87960 ,72.83668),new google.maps.LatLng(33.26420 ,73.04409),new google.maps.LatLng(33.09054 ,73.29565),new google.maps.LatLng(33.96753 ,72.72684),new google.maps.LatLng(33.38161 ,72.95415),new google.maps.LatLng(33.28532 ,72.46672),new google.maps.LatLng(33.82549 ,72.61980),new google.maps.LatLng(33.52780 ,73.12284),new google.maps.LatLng(33.97802 ,73.58190),new google.maps.LatLng(33.74169 ,73.41892),new google.maps.LatLng(34.13716 ,72.82457),new google.maps.LatLng(34.31908 ,72.99393),new google.maps.LatLng(33.17817 ,72.94362),new google.maps.LatLng(33.13144 ,73.24236),new google.maps.LatLng(33.48271 ,72.56599),new google.maps.LatLng(33.34090 ,73.59674),new google.maps.LatLng(33.59452 ,73.05871),new google.maps.LatLng(34.21742 ,72.76230),new google.maps.LatLng(33.32967 ,72.42432),new google.maps.LatLng(33.86355 ,73.23888),new google.maps.LatLng(34.08152 ,73.22300),new google.maps.LatLng(34.11327 ,73.53247),new google.maps.LatLng(33.78062 ,73.71745),new google.maps.LatLng(34.02019 ,72.42314),new google.maps.LatLng(33.09568 ,73.22659),new google.maps.LatLng(33.78049 ,73.37960),new google.maps.LatLng(33.41633 ,72.44552),new google.maps.LatLng(33.17701 ,72.81956),new google.maps.LatLng(33.54979 ,73.28813),new google.maps.LatLng(33.88309 ,73.10982),new google.maps.LatLng(33.94732 ,73.63751),new google.maps.LatLng(33.65502 ,72.93899),new google.maps.LatLng(34.10728 ,72.73146),new google.maps.LatLng(33.09457 ,72.63746),new google.maps.LatLng(33.54762 ,73.25514),new google.maps.LatLng(34.03090 ,72.46730),new google.maps.LatLng(33.76834 ,72.69764),new google.maps.LatLng(33.79475 ,73.68982),new google.maps.LatLng(34.09876 ,73.52895),new google.maps.LatLng(33.64969 ,73.47675),new google.maps.LatLng(33.45969 ,72.89075),new google.maps.LatLng(33.07323 ,72.78809),new google.maps.LatLng(33.68783 ,73.15258),new google.maps.LatLng(33.96671 ,72.64660),new google.maps.LatLng(34.12153 ,73.10267),new google.maps.LatLng(33.62050 ,73.61218),new google.maps.LatLng(33.36121 ,73.18162),new google.maps.LatLng(33.74733 ,73.16503),new google.maps.LatLng(34.21151 ,72.82821),new google.maps.LatLng(33.71131 ,72.44309),new google.maps.LatLng(33.90344 ,73.26108),new google.maps.LatLng(33.97700 ,73.22495),new google.maps.LatLng(34.06534 ,72.46086),new google.maps.LatLng(33.37494 ,72.79194),new google.maps.LatLng(33.50832 ,72.38903),new google.maps.LatLng(33.70336 ,72.73883),new google.maps.LatLng(34.30728 ,72.99742),new google.maps.LatLng(33.96478 ,72.50859),new google.maps.LatLng(33.37654 ,73.27628),new google.maps.LatLng(34.07786 ,72.70097),new google.maps.LatLng(33.57189 ,73.47115),new google.maps.LatLng(33.56675 ,72.59584),new google.maps.LatLng(33.16152 ,73.08618),new google.maps.LatLng(33.90875 ,72.42420),new google.maps.LatLng(33.58900 ,72.79525),new google.maps.LatLng(33.74755 ,72.75540),new google.maps.LatLng(33.83303 ,73.01819),new google.maps.LatLng(33.07774 ,72.75823),new google.maps.LatLng(33.82155 ,73.02235),new google.maps.LatLng(33.62660 ,73.42228),new google.maps.LatLng(34.36479 ,72.96930),new google.maps.LatLng(34.33530 ,72.83256),new google.maps.LatLng(33.45713 ,73.02802),new google.maps.LatLng(34.03277 ,72.62997),new google.maps.LatLng(34.08329 ,72.59536),new google.maps.LatLng(33.33311 ,73.50921),new google.maps.LatLng(33.70241 ,72.47388),new google.maps.LatLng(33.34202 ,72.91218),new google.maps.LatLng(33.55004 ,73.23527),new google.maps.LatLng(33.28368 ,73.58440),new google.maps.LatLng(33.85673 ,72.72335),new google.maps.LatLng(34.15970 ,72.89609),new google.maps.LatLng(33.30094 ,73.04731),new google.maps.LatLng(33.93388 ,73.69072),new google.maps.LatLng(33.76747 ,72.72139),new google.maps.LatLng(33.58388 ,72.92033),new google.maps.LatLng(33.84812 ,73.20209),new google.maps.LatLng(33.57522 ,73.33592),new google.maps.LatLng(34.13860 ,73.11682),new google.maps.LatLng(33.57912 ,72.67399),new google.maps.LatLng(34.01618 ,72.61960),new google.maps.LatLng(33.21372 ,73.03837),new google.maps.LatLng(33.52905 ,73.12782),new google.maps.LatLng(33.58567 ,73.12044),new google.maps.LatLng(34.19451 ,72.88191),new google.maps.LatLng(33.43916 ,73.39709),new google.maps.LatLng(33.44530 ,72.78510),new google.maps.LatLng(32.99818 ,73.03599),new google.maps.LatLng(34.12885 ,73.43243),new google.maps.LatLng(34.19702 ,72.97990),new google.maps.LatLng(33.10462 ,72.85963),new google.maps.LatLng(33.63064 ,73.08123),new google.maps.LatLng(33.97032 ,72.89910),new google.maps.LatLng(33.65582 ,73.66435),new google.maps.LatLng(31.62163 ,73.56984),new google.maps.LatLng(31.51883 ,73.57648),new google.maps.LatLng(31.69216 ,75.15784),new google.maps.LatLng(31.68183 ,73.68144),new google.maps.LatLng(31.18371 ,74.45734),new google.maps.LatLng(31.20450 ,74.88126),new google.maps.LatLng(31.16022 ,74.90548),new google.maps.LatLng(32.08103 ,73.89413),new google.maps.LatLng(32.01688 ,73.91101),new google.maps.LatLng(31.54525 ,75.02086),new google.maps.LatLng(31.51591 ,74.11498),new google.maps.LatLng(31.71294 ,73.73614),new google.maps.LatLng(31.12670 ,74.37496),new google.maps.LatLng(32.02248 ,74.39257),new google.maps.LatLng(31.05518 ,73.85537),new google.maps.LatLng(31.80484 ,74.85534),new google.maps.LatLng(31.67901 ,74.52809),new google.maps.LatLng(31.22203 ,75.02246),new google.maps.LatLng(31.44757 ,73.58117),new google.maps.LatLng(31.20300 ,73.99357),new google.maps.LatLng(31.03460 ,73.69684),new google.maps.LatLng(31.71148 ,73.61900),new google.maps.LatLng(31.79456 ,74.44876),new google.maps.LatLng(32.05215 ,74.46715),new google.maps.LatLng(31.24627 ,73.65385),new google.maps.LatLng(30.93708 ,74.13166),new google.maps.LatLng(31.96300 ,74.92480),new google.maps.LatLng(30.90720 ,73.74670),new google.maps.LatLng(31.22585 ,73.75580),new google.maps.LatLng(30.94943 ,74.41038),new google.maps.LatLng(31.89438 ,74.54608),new google.maps.LatLng(31.05577 ,74.35713),new google.maps.LatLng(31.33236 ,73.91983),new google.maps.LatLng(31.74423 ,73.68139),new google.maps.LatLng(31.97147 ,75.13161),new google.maps.LatLng(30.69499 ,74.20169),new google.maps.LatLng(31.75137 ,74.05654),new google.maps.LatLng(31.94570 ,73.66271),new google.maps.LatLng(30.97033 ,74.10645),new google.maps.LatLng(32.01645 ,74.08548),new google.maps.LatLng(31.45958 ,74.81480),new google.maps.LatLng(31.89485 ,73.91668),new google.maps.LatLng(32.10833 ,74.78160),new google.maps.LatLng(31.97567 ,75.09063),new google.maps.LatLng(31.99531 ,74.76870),new google.maps.LatLng(31.19039 ,74.43579),new google.maps.LatLng(31.36755 ,75.19732),new google.maps.LatLng(31.59197 ,73.88639),new google.maps.LatLng(31.69780 ,74.17086),new google.maps.LatLng(31.50596 ,73.51487),new google.maps.LatLng(31.34645 ,74.81989),new google.maps.LatLng(31.65404 ,74.43125),new google.maps.LatLng(31.59790 ,74.89843),new google.maps.LatLng(31.02391 ,74.16541),new google.maps.LatLng(30.91879 ,74.71061),new google.maps.LatLng(31.82282 ,74.21442),new google.maps.LatLng(31.51575 ,75.09148),new google.maps.LatLng(30.89995 ,73.81286),new google.maps.LatLng(31.06298 ,74.29869),new google.maps.LatLng(32.05372 ,74.72336),new google.maps.LatLng(31.86138 ,74.58122),new google.maps.LatLng(31.75565 ,74.10107),new google.maps.LatLng(31.39227 ,75.03105),new google.maps.LatLng(30.99666 ,73.65036),new google.maps.LatLng(32.29704 ,74.12512),new google.maps.LatLng(31.48086 ,74.42827),new google.maps.LatLng(31.17497 ,73.92986),new google.maps.LatLng(32.14132 ,74.72108),new google.maps.LatLng(31.88684 ,75.01509),new google.maps.LatLng(31.94004 ,74.51047),new google.maps.LatLng(31.74042 ,74.87272),new google.maps.LatLng(30.72563 ,74.57038),new google.maps.LatLng(31.15297 ,74.10958),new google.maps.LatLng(31.62293 ,74.61270),new google.maps.LatLng(31.39610 ,74.29364),new google.maps.LatLng(30.78485 ,74.81574),new google.maps.LatLng(31.25489 ,75.07929),new google.maps.LatLng(32.24047 ,74.38233),new google.maps.LatLng(31.78177 ,73.73517),new google.maps.LatLng(31.94896 ,74.38294),new google.maps.LatLng(31.83937 ,74.65501),new google.maps.LatLng(31.45818 ,73.49845),new google.maps.LatLng(31.40452 ,73.89135),new google.maps.LatLng(31.69204 ,74.24610),new google.maps.LatLng(31.68916 ,74.81735),new google.maps.LatLng(32.32451 ,74.60355),new google.maps.LatLng(31.25787 ,74.61110),new google.maps.LatLng(31.18382 ,74.94575),new google.maps.LatLng(31.43562 ,74.17119),new google.maps.LatLng(31.97054 ,74.00106),new google.maps.LatLng(31.10080 ,73.74715),new google.maps.LatLng(31.52728 ,75.15327),new google.maps.LatLng(32.06726 ,74.41204),new google.maps.LatLng(31.11210 ,74.50964),new google.maps.LatLng(30.77048 ,74.56860),new google.maps.LatLng(31.71054 ,73.71479),new google.maps.LatLng(31.49058 ,75.17241),new google.maps.LatLng(30.78208 ,74.43900),new google.maps.LatLng(31.35479 ,75.07231),new google.maps.LatLng(30.73270 ,74.53853),new google.maps.LatLng(31.50875 ,73.64025),new google.maps.LatLng(31.34337 ,73.96299),new google.maps.LatLng(31.34044 ,74.95679),new google.maps.LatLng(31.57506 ,74.77150),new google.maps.LatLng(30.95625 ,73.68948),new google.maps.LatLng(31.08623 ,74.92560),new google.maps.LatLng(31.44071 ,74.05359),new google.maps.LatLng(32.06967 ,74.41239),new google.maps.LatLng(31.85697 ,74.50154),new google.maps.LatLng(31.89366 ,74.22356),new google.maps.LatLng(30.80758 ,74.09123),new google.maps.LatLng(31.96136 ,73.76152),new google.maps.LatLng(31.75060 ,74.24160),new google.maps.LatLng(31.84598 ,74.87234),new google.maps.LatLng(31.76926 ,73.89043),new google.maps.LatLng(30.72173 ,74.12778),new google.maps.LatLng(30.84758 ,73.95964),new google.maps.LatLng(30.74037 ,74.38134),new google.maps.LatLng(31.80405 ,74.32387),new google.maps.LatLng(31.05205 ,73.73893),new google.maps.LatLng(31.19979 ,74.93903),new google.maps.LatLng(31.37502 ,73.75308),new google.maps.LatLng(31.22047 ,74.62817),new google.maps.LatLng(31.53921 ,74.12860),new google.maps.LatLng(30.93488 ,74.13386),new google.maps.LatLng(31.62933 ,73.89008),new google.maps.LatLng(32.36337 ,74.57619),new google.maps.LatLng(30.85311 ,74.18806),new google.maps.LatLng(31.12864 ,74.61517),new google.maps.LatLng(32.03075 ,74.05347),new google.maps.LatLng(31.80806 ,75.13026),new google.maps.LatLng(32.23374 ,74.31895),new google.maps.LatLng(32.04861 ,74.25097),new google.maps.LatLng(31.18999 ,73.56507),new google.maps.LatLng(32.07718 ,74.93941),new google.maps.LatLng(30.75278 ,74.50034),new google.maps.LatLng(31.39015 ,74.15412),new google.maps.LatLng(32.31209 ,74.16554),new google.maps.LatLng(32.02677 ,74.71959),new google.maps.LatLng(31.62403 ,75.12832),new google.maps.LatLng(31.39868 ,73.88027),new google.maps.LatLng(30.85801 ,74.02242),new google.maps.LatLng(32.07490 ,74.87725),new google.maps.LatLng(30.77828 ,73.87500),new google.maps.LatLng(30.90975 ,74.34448),new google.maps.LatLng(31.68378 ,74.35959),new google.maps.LatLng(32.13505 ,74.79151),new google.maps.LatLng(31.36459 ,74.08902),new google.maps.LatLng(31.28176 ,74.41215),new google.maps.LatLng(31.32070 ,74.07960),new google.maps.LatLng(31.59819 ,74.43380),new google.maps.LatLng(31.31416 ,73.78078),new google.maps.LatLng(31.61802 ,73.85389),new google.maps.LatLng(31.27094 ,74.65357),new google.maps.LatLng(32.26250 ,73.99212),new google.maps.LatLng(31.86625 ,73.90775),new google.maps.LatLng(32.11033 ,73.76427),new google.maps.LatLng(31.24021 ,74.82141),new google.maps.LatLng(32.11517 ,74.64884),new google.maps.LatLng(31.37122 ,74.72786),new google.maps.LatLng(31.69118 ,74.19893),new google.maps.LatLng(31.98910 ,75.00027),new google.maps.LatLng(32.23202 ,74.01988),new google.maps.LatLng(30.80549 ,74.44193),new google.maps.LatLng(31.28988 ,74.89820),new google.maps.LatLng(31.45830 ,75.19305),new google.maps.LatLng(31.65831 ,73.52185),new google.maps.LatLng(30.77074 ,74.76809),new google.maps.LatLng(31.81125 ,75.00662),new google.maps.LatLng(31.74601 ,75.05883),new google.maps.LatLng(32.29805 ,74.07621),new google.maps.LatLng(31.08087 ,74.92527),new google.maps.LatLng(32.20455 ,74.82616),new google.maps.LatLng(31.22258 ,74.64969),new google.maps.LatLng(31.20165 ,74.86297),new google.maps.LatLng(31.99342 ,74.04669),new google.maps.LatLng(31.49317 ,74.44876),new google.maps.LatLng(32.33015 ,74.43996),new google.maps.LatLng(31.18858 ,74.76223),new google.maps.LatLng(32.09131 ,73.81524),new google.maps.LatLng(31.67202 ,74.56611),new google.maps.LatLng(31.92058 ,74.43258),new google.maps.LatLng(31.98759 ,74.52714),new google.maps.LatLng(32.03611 ,74.72058),new google.maps.LatLng(30.85876 ,74.04888),new google.maps.LatLng(31.77049 ,74.53543),new google.maps.LatLng(31.15411 ,73.97410),new google.maps.LatLng(31.09290 ,73.99182),new google.maps.LatLng(32.29854 ,74.16432),new google.maps.LatLng(31.58404 ,73.96537),new google.maps.LatLng(31.29931 ,73.81129),new google.maps.LatLng(31.95735 ,74.46772),new google.maps.LatLng(31.60188 ,74.09730),new google.maps.LatLng(32.27449 ,74.69991),new google.maps.LatLng(31.69561 ,74.43943),new google.maps.LatLng(31.12052 ,74.16476),new google.maps.LatLng(30.79443 ,74.71691),new google.maps.LatLng(31.12203 ,74.16973),new google.maps.LatLng(32.14615 ,73.77282),new google.maps.LatLng(31.04113 ,74.75620),new google.maps.LatLng(32.16463 ,74.96258),new google.maps.LatLng(31.78269 ,73.56284),new google.maps.LatLng(30.80579 ,73.82659),new google.maps.LatLng(32.15675 ,74.54980),new google.maps.LatLng(31.55454 ,74.87061),new google.maps.LatLng(32.04794 ,74.62449),new google.maps.LatLng(31.24622 ,73.71207),new google.maps.LatLng(31.66687 ,75.19925),new google.maps.LatLng(30.80728 ,74.80601),new google.maps.LatLng(30.98742 ,73.72459),new google.maps.LatLng(31.55771 ,73.57486),new google.maps.LatLng(31.81883 ,74.76610),new google.maps.LatLng(31.66527 ,73.93215),new google.maps.LatLng(32.36779 ,74.52525),new google.maps.LatLng(31.94090 ,74.63929),new google.maps.LatLng(31.67742 ,74.85956),new google.maps.LatLng(31.68899 ,74.46413),new google.maps.LatLng(31.76113 ,74.55672),new google.maps.LatLng(31.33239 ,73.72155),new google.maps.LatLng(31.95396 ,74.90300),new google.maps.LatLng(31.98412 ,74.78328),new google.maps.LatLng(32.00018 ,74.87398),new google.maps.LatLng(32.25525 ,74.26445),new google.maps.LatLng(31.28347 ,74.46571),new google.maps.LatLng(31.24012 ,73.68531),new google.maps.LatLng(31.77230 ,73.80616),new google.maps.LatLng(31.66072 ,74.98395),new google.maps.LatLng(30.69109 ,74.20457),new google.maps.LatLng(31.73847 ,74.85499),new google.maps.LatLng(31.31160 ,73.49011),new google.maps.LatLng(32.02314 ,75.05132),new google.maps.LatLng(32.03824 ,74.49843),new google.maps.LatLng(31.14943 ,74.01750),new google.maps.LatLng(30.80363 ,73.85903),new google.maps.LatLng(31.16494 ,73.75283),new google.maps.LatLng(31.92141 ,73.67866),new google.maps.LatLng(31.90982 ,74.76994),new google.maps.LatLng(32.17210 ,73.93457),new google.maps.LatLng(32.02275 ,74.29750),new google.maps.LatLng(31.42154 ,75.19001),new google.maps.LatLng(30.92890 ,73.96434),new google.maps.LatLng(30.83309 ,73.78612),new google.maps.LatLng(30.61960 ,74.32510),new google.maps.LatLng(31.98366 ,74.18184),new google.maps.LatLng(31.81256 ,74.39074),new google.maps.LatLng(32.32478 ,74.39584),new google.maps.LatLng(32.07656 ,74.91052),new google.maps.LatLng(31.81760 ,74.66603),new google.maps.LatLng(31.76479 ,74.14740),new google.maps.LatLng(32.22418 ,74.83651),new google.maps.LatLng(31.45542 ,74.64905),new google.maps.LatLng(32.05682 ,73.77395),new google.maps.LatLng(31.36061 ,74.43997),new google.maps.LatLng(31.99320 ,75.03496),new google.maps.LatLng(32.29618 ,74.32418),new google.maps.LatLng(31.19674 ,75.02917),new google.maps.LatLng(30.66891 ,74.56992),new google.maps.LatLng(30.97359 ,74.07558),new google.maps.LatLng(31.40401 ,75.03543),new google.maps.LatLng(31.27988 ,74.51369),new google.maps.LatLng(31.77154 ,73.96405),new google.maps.LatLng(32.25470 ,74.03537),new google.maps.LatLng(31.43150 ,74.39296),new google.maps.LatLng(31.74998 ,74.29625),new google.maps.LatLng(31.70623 ,74.74964),new google.maps.LatLng(31.97736 ,74.18111),new google.maps.LatLng(31.94489 ,74.14908),new google.maps.LatLng(31.62291 ,73.70140),new google.maps.LatLng(31.50810 ,73.95519),new google.maps.LatLng(31.08704 ,74.11337),new google.maps.LatLng(30.99712 ,74.94695),new google.maps.LatLng(31.17266 ,74.40034),new google.maps.LatLng(31.72164 ,74.84550),new google.maps.LatLng(31.96196 ,74.89448),new google.maps.LatLng(32.02279 ,75.01365),new google.maps.LatLng(31.12658 ,74.48648),new google.maps.LatLng(30.79534 ,74.70013),new google.maps.LatLng(31.38663 ,74.92266),new google.maps.LatLng(31.64761 ,75.15862),new google.maps.LatLng(30.93579 ,74.01486),new google.maps.LatLng(32.09801 ,74.46007),new google.maps.LatLng(30.87259 ,74.07857),new google.maps.LatLng(32.25835 ,74.76762),new google.maps.LatLng(30.68630 ,74.31858),new google.maps.LatLng(32.12981 ,74.86061),new google.maps.LatLng(32.14898 ,74.33678),new google.maps.LatLng(31.90320 ,74.27551),new google.maps.LatLng(32.24483 ,74.60150),new google.maps.LatLng(32.04455 ,73.92727),new google.maps.LatLng(31.21801 ,74.60048),new google.maps.LatLng(31.39189 ,74.96354),new google.maps.LatLng(30.75537 ,74.19140),new google.maps.LatLng(31.86970 ,73.93558),new google.maps.LatLng(31.66172 ,73.95566),new google.maps.LatLng(31.89422 ,73.82273),new google.maps.LatLng(30.97581 ,74.43457),new google.maps.LatLng(31.43994 ,73.50229),new google.maps.LatLng(32.35978 ,74.36147),new google.maps.LatLng(31.13512 ,74.47336),new google.maps.LatLng(31.24864 ,73.72465),new google.maps.LatLng(32.17435 ,74.31356),new google.maps.LatLng(32.22780 ,73.91166),new google.maps.LatLng(31.20302 ,74.04657),new google.maps.LatLng(32.07897 ,74.11054),new google.maps.LatLng(30.89301 ,74.25751),new google.maps.LatLng(31.64712 ,75.08318),new google.maps.LatLng(31.99682 ,73.83564),new google.maps.LatLng(30.97179 ,74.97272),new google.maps.LatLng(31.25885 ,73.85896),new google.maps.LatLng(31.75751 ,73.93101),new google.maps.LatLng(32.21850 ,74.35525),new google.maps.LatLng(32.24140 ,74.56116),new google.maps.LatLng(32.09458 ,73.90103),new google.maps.LatLng(32.10422 ,74.82451),new google.maps.LatLng(31.02893 ,74.59747),new google.maps.LatLng(30.83370 ,74.72265),new google.maps.LatLng(31.16107 ,74.23994),new google.maps.LatLng(31.01059 ,74.14286),new google.maps.LatLng(31.92427 ,73.87722),new google.maps.LatLng(31.41764 ,74.22043),new google.maps.LatLng(32.08943 ,74.32637),new google.maps.LatLng(31.40156 ,73.68733),new google.maps.LatLng(32.28503 ,74.25352),new google.maps.LatLng(30.85585 ,74.10210),new google.maps.LatLng(31.37024 ,73.96901),new google.maps.LatLng(31.39342 ,74.66052),new google.maps.LatLng(32.10264 ,74.24905),new google.maps.LatLng(32.05695 ,74.77375),new google.maps.LatLng(31.94150 ,74.97193),new google.maps.LatLng(31.05584 ,74.49041),new google.maps.LatLng(31.74033 ,74.63365),new google.maps.LatLng(31.88168 ,74.26616),new google.maps.LatLng(31.39955 ,74.81266),new google.maps.LatLng(31.09834 ,73.63276),new google.maps.LatLng(31.98070 ,73.72114),new google.maps.LatLng(31.14446 ,73.66972),new google.maps.LatLng(32.31440 ,74.27284),new google.maps.LatLng(31.24954 ,74.14177),new google.maps.LatLng(30.78448 ,74.42307),new google.maps.LatLng(31.18942 ,75.20537),new google.maps.LatLng(30.68302 ,74.56383),new google.maps.LatLng(31.73661 ,74.55049),new google.maps.LatLng(31.78541 ,75.07101),new google.maps.LatLng(31.45801 ,74.08672),new google.maps.LatLng(32.17734 ,74.79233),new google.maps.LatLng(31.41145 ,74.21325),new google.maps.LatLng(31.46370 ,74.36628),new google.maps.LatLng(31.98635 ,73.71434),new google.maps.LatLng(30.86367 ,74.25308),new google.maps.LatLng(31.76634 ,74.30453),new google.maps.LatLng(31.07539 ,73.87698),new google.maps.LatLng(31.62903 ,74.95129),new google.maps.LatLng(31.44864 ,75.06589),new google.maps.LatLng(31.11967 ,75.04891),new google.maps.LatLng(30.71076 ,73.95616),new google.maps.LatLng(31.86983 ,74.65598),new google.maps.LatLng(30.80804 ,74.53444),new google.maps.LatLng(32.12942 ,73.77170),new google.maps.LatLng(31.96033 ,73.66364),new google.maps.LatLng(31.74217 ,74.39962),new google.maps.LatLng(31.76869 ,74.84168),new google.maps.LatLng(30.96048 ,74.78214),new google.maps.LatLng(31.16195 ,73.81807),new google.maps.LatLng(32.05214 ,73.84619),new google.maps.LatLng(32.20919 ,74.62306),new google.maps.LatLng(31.68365 ,75.03636),new google.maps.LatLng(30.97152 ,74.40094),new google.maps.LatLng(31.20743 ,74.55979),new google.maps.LatLng(31.42565 ,74.17729),new google.maps.LatLng(30.66296 ,74.57471),new google.maps.LatLng(32.27684 ,74.22611),new google.maps.LatLng(31.70465 ,74.55969),new google.maps.LatLng(31.19038 ,74.04177),new google.maps.LatLng(32.34862 ,74.14547),new google.maps.LatLng(31.19803 ,73.59628),new google.maps.LatLng(31.97932 ,73.67938),new google.maps.LatLng(31.54560 ,73.47917),new google.maps.LatLng(32.07096 ,74.42763),new google.maps.LatLng(31.19480 ,73.52484),new google.maps.LatLng(31.38344 ,73.68278),new google.maps.LatLng(31.69516 ,73.77085),new google.maps.LatLng(31.44836 ,74.40104),new google.maps.LatLng(31.88310 ,74.36048),new google.maps.LatLng(31.14661 ,74.09511),new google.maps.LatLng(31.20760 ,74.42492),new google.maps.LatLng(30.76428 ,74.79847),new google.maps.LatLng(31.48217 ,73.71406),new google.maps.LatLng(31.41042 ,74.92191),new google.maps.LatLng(31.32972 ,74.83170),new google.maps.LatLng(30.75213 ,74.18461),new google.maps.LatLng(32.31606 ,74.65782),new google.maps.LatLng(31.98307 ,74.48567),new google.maps.LatLng(32.02107 ,73.97772),new google.maps.LatLng(32.24803 ,74.57102),new google.maps.LatLng(31.74488 ,73.70501),new google.maps.LatLng(31.89721 ,74.44253),new google.maps.LatLng(31.90609 ,73.78159),new google.maps.LatLng(31.29969 ,74.87422),new google.maps.LatLng(30.78783 ,74.84624),new google.maps.LatLng(31.28839 ,74.08682),new google.maps.LatLng(31.41610 ,74.11450),new google.maps.LatLng(31.27598 ,74.07691),new google.maps.LatLng(31.01100 ,73.89420),new google.maps.LatLng(31.03533 ,73.82745),new google.maps.LatLng(32.02321 ,73.67753),new google.maps.LatLng(30.97967 ,74.38979),new google.maps.LatLng(31.72095 ,73.81119),new google.maps.LatLng(31.47341 ,74.63912),new google.maps.LatLng(31.29799 ,74.58625),new google.maps.LatLng(31.49232 ,74.62325),new google.maps.LatLng(31.13620 ,74.42996),new google.maps.LatLng(31.54646 ,74.94289),new google.maps.LatLng(31.24276 ,74.00747),new google.maps.LatLng(30.81386 ,74.05090),new google.maps.LatLng(31.02131 ,73.93473),new google.maps.LatLng(30.86978 ,73.91878),new google.maps.LatLng(32.08511 ,74.63915),new google.maps.LatLng(31.03232 ,74.44225),new google.maps.LatLng(31.97820 ,73.67483),new google.maps.LatLng(32.01842 ,74.44646),new google.maps.LatLng(31.19115 ,74.84041),new google.maps.LatLng(32.19560 ,74.55738),new google.maps.LatLng(31.55010 ,74.19028),new google.maps.LatLng(31.29811 ,73.89200),new google.maps.LatLng(31.67369 ,74.05802),new google.maps.LatLng(31.99993 ,74.70071),new google.maps.LatLng(30.89897 ,74.96596),new google.maps.LatLng(31.39189 ,75.02734),new google.maps.LatLng(31.39036 ,74.76821),new google.maps.LatLng(31.77584 ,73.55154),new google.maps.LatLng(31.07156 ,74.51792),new google.maps.LatLng(32.08355 ,74.96424),new google.maps.LatLng(30.97367 ,74.31404),new google.maps.LatLng(31.61828 ,74.62552),new google.maps.LatLng(30.80506 ,73.80841),new google.maps.LatLng(30.77369 ,74.21223),new google.maps.LatLng(31.59300 ,73.83614),new google.maps.LatLng(31.48521 ,74.57026),new google.maps.LatLng(30.64838 ,74.09769),new google.maps.LatLng(32.10003 ,74.99855),new google.maps.LatLng(31.25430 ,74.57768),new google.maps.LatLng(30.80448 ,74.16379),new google.maps.LatLng(31.52612 ,73.49382),new google.maps.LatLng(32.10843 ,74.57717),new google.maps.LatLng(31.15337 ,74.91141),new google.maps.LatLng(31.51333 ,74.85467),new google.maps.LatLng(30.88969 ,73.89105),new google.maps.LatLng(31.01268 ,74.90218),new google.maps.LatLng(31.62916 ,73.94338),new google.maps.LatLng(31.38784 ,74.40844),new google.maps.LatLng(31.59351 ,74.79856),new google.maps.LatLng(31.68103 ,75.00192),new google.maps.LatLng(30.91030 ,74.58562),new google.maps.LatLng(32.32839 ,74.37303),new google.maps.LatLng(32.12986 ,74.57167),new google.maps.LatLng(31.14703 ,73.69160),new google.maps.LatLng(31.51634 ,73.55096),new google.maps.LatLng(30.95201 ,74.13313),new google.maps.LatLng(31.93039 ,74.52444),new google.maps.LatLng(31.32753 ,73.85073),new google.maps.LatLng(31.72326 ,74.25652),new google.maps.LatLng(31.40978 ,73.72831),new google.maps.LatLng(31.91582 ,74.00160),new google.maps.LatLng(31.97473 ,74.37194),new google.maps.LatLng(32.02269 ,74.90971),new google.maps.LatLng(31.68312 ,74.08307),new google.maps.LatLng(31.48250 ,74.06189),new google.maps.LatLng(31.57120 ,74.64071),new google.maps.LatLng(31.67283 ,74.19105),new google.maps.LatLng(32.25321 ,74.35921),new google.maps.LatLng(31.77496 ,74.20231),new google.maps.LatLng(31.86830 ,73.75825),new google.maps.LatLng(31.44132 ,74.96074),new google.maps.LatLng(30.99732 ,73.96789),new google.maps.LatLng(32.12199 ,74.35238),new google.maps.LatLng(31.68576 ,73.74843),new google.maps.LatLng(31.84899 ,74.29193),new google.maps.LatLng(30.87474 ,74.06617),new google.maps.LatLng(31.50962 ,75.15324),new google.maps.LatLng(31.43931 ,74.64142),new google.maps.LatLng(31.96530 ,73.97082),new google.maps.LatLng(30.62355 ,74.42552),new google.maps.LatLng(31.06998 ,73.79232),new google.maps.LatLng(31.66296 ,73.59936),new google.maps.LatLng(30.82940 ,73.93249),new google.maps.LatLng(31.44230 ,74.15461),new google.maps.LatLng(30.92833 ,74.85043),new google.maps.LatLng(32.37117 ,74.49704),new google.maps.LatLng(31.65203 ,73.58420),new google.maps.LatLng(30.60759 ,74.37843),new google.maps.LatLng(30.98130 ,75.00986),new google.maps.LatLng(31.99226 ,74.06255),new google.maps.LatLng(30.79286 ,74.89202),new google.maps.LatLng(31.58284 ,74.09467),new google.maps.LatLng(31.30742 ,74.35019),new google.maps.LatLng(31.72439 ,74.23137),new google.maps.LatLng(31.51349 ,73.95824),new google.maps.LatLng(31.30129 ,75.23390),new google.maps.LatLng(30.90322 ,73.86143),new google.maps.LatLng(32.29768 ,74.25865),new google.maps.LatLng(32.00637 ,75.00299),new google.maps.LatLng(31.88296 ,74.94920),new google.maps.LatLng(31.06217 ,73.95780),new google.maps.LatLng(31.30728 ,74.30131),new google.maps.LatLng(31.60037 ,73.50329),new google.maps.LatLng(30.65179 ,74.27144),new google.maps.LatLng(31.44556 ,74.84660),new google.maps.LatLng(30.75557 ,74.84770),new google.maps.LatLng(31.17655 ,74.71505),new google.maps.LatLng(31.78522 ,74.15543),new google.maps.LatLng(31.99190 ,74.82744),new google.maps.LatLng(31.33746 ,74.75898),new google.maps.LatLng(31.71199 ,74.80499),new google.maps.LatLng(31.72072 ,74.46364),new google.maps.LatLng(31.73641 ,74.45522),new google.maps.LatLng(31.38539 ,73.92263),new google.maps.LatLng(31.90438 ,75.11238),new google.maps.LatLng(31.94703 ,74.45648),new google.maps.LatLng(31.28102 ,74.42639),new google.maps.LatLng(31.54036 ,73.86113),new google.maps.LatLng(30.75997 ,73.88055),new google.maps.LatLng(31.79552 ,74.52646),new google.maps.LatLng(32.06415 ,74.74527),new google.maps.LatLng(31.50629 ,74.87492),new google.maps.LatLng(31.09267 ,74.90746),new google.maps.LatLng(31.97919 ,75.06105),new google.maps.LatLng(31.69384 ,74.84864),new google.maps.LatLng(31.59872 ,74.08825),new google.maps.LatLng(31.59497 ,74.18303),new google.maps.LatLng(31.70937 ,74.60306),new google.maps.LatLng(30.85025 ,74.97008),new google.maps.LatLng(31.32128 ,74.50794),new google.maps.LatLng(31.51617 ,74.12371),new google.maps.LatLng(31.82162 ,74.17228),new google.maps.LatLng(31.24603 ,73.99741),new google.maps.LatLng(30.67706 ,74.35498),new google.maps.LatLng(30.93975 ,74.22075),new google.maps.LatLng(30.87870 ,73.96238),new google.maps.LatLng(32.09147 ,74.73013),new google.maps.LatLng(31.28971 ,74.63967),new google.maps.LatLng(31.10907 ,74.12207),new google.maps.LatLng(32.33681 ,74.58588),new google.maps.LatLng(31.38960 ,73.67621),new google.maps.LatLng(31.42280 ,73.75186),new google.maps.LatLng(32.27967 ,74.75485),new google.maps.LatLng(32.15649 ,73.98274),new google.maps.LatLng(32.04000 ,74.59613),new google.maps.LatLng(31.52192 ,74.42474),new google.maps.LatLng(32.21083 ,74.42167),new google.maps.LatLng(31.66334 ,74.97170),new google.maps.LatLng(31.71431 ,73.60503),new google.maps.LatLng(31.77945 ,74.77831),new google.maps.LatLng(30.91841 ,74.99767),new google.maps.LatLng(31.49218 ,74.18075),new google.maps.LatLng(31.05541 ,74.45321),new google.maps.LatLng(30.70103 ,74.03997),new google.maps.LatLng(31.18163 ,73.58902),new google.maps.LatLng(32.01394 ,74.67347),new google.maps.LatLng(31.27336 ,73.50206),new google.maps.LatLng(31.25835 ,74.33762),new google.maps.LatLng(31.74995 ,75.16493),new google.maps.LatLng(31.24979 ,73.72247),new google.maps.LatLng(32.07246 ,74.47923),new google.maps.LatLng(30.61597 ,74.41085),new google.maps.LatLng(30.74778 ,74.35634),new google.maps.LatLng(31.54262 ,75.01765),new google.maps.LatLng(31.62043 ,75.12565),new google.maps.LatLng(31.17934 ,74.15803),new google.maps.LatLng(30.95237 ,74.52241),new google.maps.LatLng(31.44623 ,74.67049),new google.maps.LatLng(31.12417 ,73.85182),new google.maps.LatLng(32.07624 ,73.96522),new google.maps.LatLng(30.76485 ,74.33608),new google.maps.LatLng(31.13536 ,73.73873),new google.maps.LatLng(31.70875 ,73.81459),new google.maps.LatLng(30.66366 ,74.49785),new google.maps.LatLng(31.00357 ,74.07272),new google.maps.LatLng(30.68233 ,74.17754),new google.maps.LatLng(31.79763 ,74.08459),new google.maps.LatLng(31.08979 ,75.00746),new google.maps.LatLng(31.52308 ,74.59760),new google.maps.LatLng(32.18160 ,74.94246),new google.maps.LatLng(31.33972 ,74.27576),new google.maps.LatLng(32.02573 ,75.02651),new google.maps.LatLng(31.89311 ,73.82885),new google.maps.LatLng(32.07782 ,73.79387),new google.maps.LatLng(31.15733 ,74.06998),new google.maps.LatLng(31.46965 ,74.53317),new google.maps.LatLng(31.34237 ,74.96716),new google.maps.LatLng(31.94758 ,73.92270),new google.maps.LatLng(32.07211 ,74.26636),new google.maps.LatLng(31.40580 ,75.02315),new google.maps.LatLng(32.07102 ,74.12119),new google.maps.LatLng(31.18841 ,74.75506),new google.maps.LatLng(32.05352 ,73.87248),new google.maps.LatLng(32.12514 ,74.57373),new google.maps.LatLng(32.33368 ,74.56411),new google.maps.LatLng(32.20736 ,73.98768),new google.maps.LatLng(30.85013 ,74.91583),new google.maps.LatLng(31.00714 ,74.76678),new google.maps.LatLng(32.36973 ,74.39264),new google.maps.LatLng(31.34666 ,73.91972),new google.maps.LatLng(30.98404 ,74.20198),new google.maps.LatLng(30.90704 ,74.58291),new google.maps.LatLng(30.63809 ,74.34403),new google.maps.LatLng(31.45187 ,73.75827),new google.maps.LatLng(32.20207 ,74.10677),new google.maps.LatLng(31.72925 ,74.40004),new google.maps.LatLng(31.96429 ,73.94970),new google.maps.LatLng(31.29857 ,73.97029),new google.maps.LatLng(31.02512 ,75.08995),new google.maps.LatLng(31.66151 ,73.84048),new google.maps.LatLng(31.16096 ,73.98315),new google.maps.LatLng(31.92240 ,74.90743),new google.maps.LatLng(31.12695 ,73.97958),new google.maps.LatLng(31.47424 ,75.24041),new google.maps.LatLng(30.67855 ,74.57971),new google.maps.LatLng(32.18491 ,74.16403),new google.maps.LatLng(31.07028 ,74.09334),new google.maps.LatLng(30.92152 ,74.98318),new google.maps.LatLng(31.99073 ,74.89563),new google.maps.LatLng(30.83231 ,74.58232),new google.maps.LatLng(31.18651 ,74.31394),new google.maps.LatLng(31.02809 ,74.28749),new google.maps.LatLng(32.22909 ,74.39144),new google.maps.LatLng(32.29194 ,74.30233),new google.maps.LatLng(30.96236 ,75.07639),new google.maps.LatLng(32.35530 ,74.31594),new google.maps.LatLng(32.36520 ,74.17377),new google.maps.LatLng(32.27157 ,74.27449),new google.maps.LatLng(31.07121 ,73.82256),new google.maps.LatLng(30.97102 ,74.85339),new google.maps.LatLng(31.89064 ,74.18588),new google.maps.LatLng(30.80228 ,74.12206),new google.maps.LatLng(31.27592 ,74.99034),new google.maps.LatLng(31.43948 ,73.61418),new google.maps.LatLng(31.33704 ,74.27196),new google.maps.LatLng(31.96079 ,74.30391),new google.maps.LatLng(32.08317 ,74.13391),new google.maps.LatLng(31.90324 ,74.07495),new google.maps.LatLng(31.93052 ,75.05280),new google.maps.LatLng(31.71913 ,74.92046),new google.maps.LatLng(32.20740 ,73.98527),new google.maps.LatLng(32.33015 ,74.69342),new google.maps.LatLng(31.49652 ,73.54742),new google.maps.LatLng(31.73152 ,73.91751),new google.maps.LatLng(32.01257 ,73.86209),new google.maps.LatLng(31.26398 ,73.55924),new google.maps.LatLng(31.63060 ,75.15677),new google.maps.LatLng(31.77603 ,73.56796),new google.maps.LatLng(32.10209 ,74.32651),new google.maps.LatLng(32.11834 ,74.57197),new google.maps.LatLng(32.18858 ,74.89335),new google.maps.LatLng(31.38337 ,74.68060),new google.maps.LatLng(31.28827 ,74.91094),new google.maps.LatLng(31.86860 ,75.09862),new google.maps.LatLng(31.19919 ,74.95550),new google.maps.LatLng(31.71664 ,74.20560),new google.maps.LatLng(31.06554 ,74.17260),new google.maps.LatLng(30.99901 ,74.40526),new google.maps.LatLng(31.75215 ,74.92029),new google.maps.LatLng(32.34181 ,74.64243),new google.maps.LatLng(31.15444 ,73.90013),new google.maps.LatLng(31.49779 ,74.88199),new google.maps.LatLng(31.38722 ,74.94168),new google.maps.LatLng(31.94100 ,74.80177),new google.maps.LatLng(31.62059 ,73.88926),new google.maps.LatLng(31.76124 ,75.02568),new google.maps.LatLng(31.93963 ,74.93573),new google.maps.LatLng(31.16929 ,74.36420),new google.maps.LatLng(31.39564 ,73.56767),new google.maps.LatLng(31.29498 ,74.16250),new google.maps.LatLng(31.28629 ,75.05113),new google.maps.LatLng(32.10734 ,74.38921),new google.maps.LatLng(31.24498 ,74.24553),new google.maps.LatLng(31.69162 ,73.54288),new google.maps.LatLng(30.88994 ,74.56862),new google.maps.LatLng(31.46779 ,73.69161),new google.maps.LatLng(31.43449 ,74.33163),new google.maps.LatLng(30.95343 ,74.87812),new google.maps.LatLng(31.78775 ,74.09801),new google.maps.LatLng(31.01453 ,74.26511),new google.maps.LatLng(30.65758 ,74.13436),new google.maps.LatLng(32.00092 ,73.79806),new google.maps.LatLng(31.08767 ,75.11876),new google.maps.LatLng(31.03818 ,73.76136),new google.maps.LatLng(31.49769 ,75.24167),new google.maps.LatLng(31.77295 ,75.21533),new google.maps.LatLng(31.35740 ,74.99650),new google.maps.LatLng(32.34514 ,74.12380),new google.maps.LatLng(31.15641 ,74.92600),new google.maps.LatLng(31.72296 ,74.89401),new google.maps.LatLng(31.52659 ,73.96114),new google.maps.LatLng(31.80567 ,75.18762),new google.maps.LatLng(31.75788 ,74.55377),new google.maps.LatLng(31.49922 ,73.92610),new google.maps.LatLng(31.85570 ,74.44421),new google.maps.LatLng(31.59166 ,74.79917),new google.maps.LatLng(30.70737 ,74.02730),new google.maps.LatLng(31.57004 ,74.52774),new google.maps.LatLng(31.57194 ,74.08408),new google.maps.LatLng(31.62884 ,74.09696),new google.maps.LatLng(31.38371 ,74.23665),new google.maps.LatLng(31.25995 ,74.68280),new google.maps.LatLng(31.34086 ,73.82262),new google.maps.LatLng(31.42247 ,75.20411),new google.maps.LatLng(31.08653 ,74.88425),new google.maps.LatLng(32.09006 ,74.27140),new google.maps.LatLng(30.74513 ,74.29825),new google.maps.LatLng(31.54007 ,74.63908),new google.maps.LatLng(32.13670 ,73.87279),new google.maps.LatLng(31.13892 ,74.81014),new google.maps.LatLng(31.67573 ,74.07851),new google.maps.LatLng(31.31711 ,74.09767),new google.maps.LatLng(31.10422 ,74.89540),new google.maps.LatLng(31.91925 ,74.54064),new google.maps.LatLng(30.74194 ,74.61203),new google.maps.LatLng(32.04786 ,74.62742),new google.maps.LatLng(31.39825 ,75.17807),new google.maps.LatLng(30.89886 ,73.80569),new google.maps.LatLng(32.26985 ,74.67843),new google.maps.LatLng(31.42739 ,73.72341),new google.maps.LatLng(32.01419 ,74.67739),new google.maps.LatLng(31.76176 ,74.78848),new google.maps.LatLng(31.04621 ,73.65760),new google.maps.LatLng(32.05540 ,73.80267),new google.maps.LatLng(31.78950 ,73.67959),new google.maps.LatLng(31.60790 ,73.89033),new google.maps.LatLng(32.23178 ,73.98325),new google.maps.LatLng(30.99248 ,74.25379),new google.maps.LatLng(32.07785 ,74.30890),new google.maps.LatLng(31.82588 ,74.14330),new google.maps.LatLng(30.82301 ,74.62715),new google.maps.LatLng(30.74725 ,74.44223),new google.maps.LatLng(31.08773 ,74.36007),new google.maps.LatLng(31.88224 ,73.61795),new google.maps.LatLng(31.55816 ,74.32188),new google.maps.LatLng(32.08236 ,74.82755),new google.maps.LatLng(31.14281 ,73.55084),new google.maps.LatLng(32.10268 ,74.52725),new google.maps.LatLng(31.81656 ,74.94092),new google.maps.LatLng(32.21002 ,73.85086),new google.maps.LatLng(30.88902 ,74.85972),new google.maps.LatLng(31.69535 ,73.77976),new google.maps.LatLng(32.08691 ,74.22041),new google.maps.LatLng(30.83234 ,74.11828),new google.maps.LatLng(31.82255 ,74.18030),new google.maps.LatLng(31.30947 ,74.02903),new google.maps.LatLng(31.41128 ,74.45759),new google.maps.LatLng(30.82545 ,74.53320),new google.maps.LatLng(31.07806 ,74.45932),new google.maps.LatLng(31.64274 ,73.61543),new google.maps.LatLng(31.50276 ,73.67626),new google.maps.LatLng(31.83706 ,74.41309),new google.maps.LatLng(32.10629 ,74.53238),new google.maps.LatLng(31.41647 ,74.50097),new google.maps.LatLng(31.54167 ,73.74745),new google.maps.LatLng(30.91583 ,73.77545),new google.maps.LatLng(31.15458 ,74.58858),new google.maps.LatLng(31.55941 ,74.78766),new google.maps.LatLng(32.19157 ,73.85768),new google.maps.LatLng(31.45300 ,74.56363),new google.maps.LatLng(31.92906 ,73.86751),new google.maps.LatLng(31.33220 ,74.90552),new google.maps.LatLng(32.31969 ,74.67549),new google.maps.LatLng(31.19384 ,74.46879),new google.maps.LatLng(31.32904 ,74.86137),new google.maps.LatLng(31.05483 ,74.40010),new google.maps.LatLng(30.90074 ,74.72543),new google.maps.LatLng(31.10431 ,73.62180),new google.maps.LatLng(30.77633 ,74.09949),new google.maps.LatLng(31.55283 ,75.23154),new google.maps.LatLng(31.33349 ,74.27584),new google.maps.LatLng(31.92649 ,73.77591),new google.maps.LatLng(31.57941 ,74.98549),new google.maps.LatLng(30.70811 ,74.06675),new google.maps.LatLng(30.80191 ,73.91405),new google.maps.LatLng(31.74852 ,73.89540),new google.maps.LatLng(31.46840 ,74.55973),new google.maps.LatLng(31.73347 ,74.43618),new google.maps.LatLng(31.25178 ,75.04376),new google.maps.LatLng(31.15917 ,75.04815),new google.maps.LatLng(30.64480 ,74.34897),new google.maps.LatLng(32.12295 ,74.89853),new google.maps.LatLng(31.76209 ,74.82680),new google.maps.LatLng(31.67790 ,75.17776),new google.maps.LatLng(32.08712 ,74.10684),new google.maps.LatLng(31.20545 ,73.60751),new google.maps.LatLng(31.27975 ,73.58438),new google.maps.LatLng(31.27027 ,74.83003),new google.maps.LatLng(30.89311 ,73.71813),new google.maps.LatLng(31.73275 ,74.19063),new google.maps.LatLng(31.03532 ,75.03476),new google.maps.LatLng(30.64376 ,74.51471),new google.maps.LatLng(31.85228 ,74.33663),new google.maps.LatLng(30.91993 ,74.33720),new google.maps.LatLng(31.38447 ,74.09516),new google.maps.LatLng(32.04542 ,74.88208),new google.maps.LatLng(31.68892 ,74.01323),new google.maps.LatLng(31.00802 ,74.08598),new google.maps.LatLng(31.42318 ,74.96205),new google.maps.LatLng(30.76716 ,74.08345),new google.maps.LatLng(30.96089 ,74.05975),new google.maps.LatLng(31.24475 ,73.74379),new google.maps.LatLng(30.78882 ,74.39769),new google.maps.LatLng(31.01841 ,74.88951),new google.maps.LatLng(31.28409 ,74.95218),new google.maps.LatLng(30.99875 ,73.87858),new google.maps.LatLng(32.07392 ,74.34563),new google.maps.LatLng(31.38440 ,74.90941),new google.maps.LatLng(32.25089 ,74.45065),new google.maps.LatLng(31.34404 ,73.86278),new google.maps.LatLng(31.83661 ,73.73082),new google.maps.LatLng(31.58912 ,73.56770),new google.maps.LatLng(31.77159 ,75.09755),new google.maps.LatLng(31.47838 ,74.30588),new google.maps.LatLng(31.93124 ,74.24682),new google.maps.LatLng(31.20089 ,73.71394),new google.maps.LatLng(31.34600 ,73.81600),new google.maps.LatLng(30.93473 ,73.87585),new google.maps.LatLng(32.18032 ,74.86478),new google.maps.LatLng(31.58321 ,73.74773),new google.maps.LatLng(31.38378 ,75.03110),new google.maps.LatLng(31.00100 ,74.06156),new google.maps.LatLng(30.88886 ,73.79003),new google.maps.LatLng(32.38348 ,74.52172),new google.maps.LatLng(31.93185 ,74.90839),new google.maps.LatLng(31.13242 ,74.14258),new google.maps.LatLng(31.72432 ,74.83701),new google.maps.LatLng(31.49010 ,74.60417),new google.maps.LatLng(30.87183 ,74.13558),new google.maps.LatLng(31.10247 ,74.69366),new google.maps.LatLng(30.87453 ,74.25196),new google.maps.LatLng(31.70269 ,73.49449),new google.maps.LatLng(31.58137 ,74.64584),new google.maps.LatLng(32.34152 ,74.28771),new google.maps.LatLng(31.63230 ,73.92744),new google.maps.LatLng(31.56326 ,75.02117),new google.maps.LatLng(31.49907 ,74.95353),new google.maps.LatLng(31.48859 ,73.83918),new google.maps.LatLng(32.14992 ,74.89584),new google.maps.LatLng(31.96417 ,74.26058),new google.maps.LatLng(32.16918 ,74.71252),new google.maps.LatLng(32.02938 ,73.91543),new google.maps.LatLng(31.56293 ,73.69080),new google.maps.LatLng(31.85923 ,74.62251),new google.maps.LatLng(31.67975 ,73.52237),new google.maps.LatLng(31.26713 ,74.27584),new google.maps.LatLng(32.03246 ,73.84006),new google.maps.LatLng(31.91185 ,75.15330),new google.maps.LatLng(31.44673 ,73.63045),new google.maps.LatLng(31.07275 ,74.30980),new google.maps.LatLng(31.95658 ,73.72261),new google.maps.LatLng(31.62270 ,74.22380),new google.maps.LatLng(31.81035 ,74.83718),new google.maps.LatLng(31.09975 ,73.85207),new google.maps.LatLng(31.98671 ,74.91292),new google.maps.LatLng(31.02691 ,74.28020),new google.maps.LatLng(32.06611 ,73.77828),new google.maps.LatLng(32.23061 ,74.66682),new google.maps.LatLng(32.25228 ,74.40680),new google.maps.LatLng(32.05146 ,73.75627),new google.maps.LatLng(31.88183 ,74.21857),new google.maps.LatLng(31.88112 ,73.88014),new google.maps.LatLng(31.86667 ,74.70771),new google.maps.LatLng(32.18517 ,73.79459),new google.maps.LatLng(31.40161 ,73.59483),new google.maps.LatLng(30.96533 ,74.36444),new google.maps.LatLng(31.17659 ,73.78000),new google.maps.LatLng(31.02477 ,74.41742),new google.maps.LatLng(30.92214 ,73.80517),new google.maps.LatLng(31.26236 ,73.50781),new google.maps.LatLng(30.78040 ,74.07716),new google.maps.LatLng(31.14106 ,74.89036),new google.maps.LatLng(31.71322 ,73.57047),new google.maps.LatLng(31.08315 ,73.77297),new google.maps.LatLng(32.31587 ,74.17419),new google.maps.LatLng(31.11103 ,73.70395),new google.maps.LatLng(30.76834 ,74.56487),new google.maps.LatLng(32.07369 ,74.05957),new google.maps.LatLng(31.41065 ,74.52107),new google.maps.LatLng(32.12871 ,74.16828),new google.maps.LatLng(32.11682 ,73.99374),new google.maps.LatLng(31.77174 ,75.17228),new google.maps.LatLng(31.05179 ,73.99359),new google.maps.LatLng(32.04822 ,74.60431),new google.maps.LatLng(31.23802 ,74.55172),new google.maps.LatLng(30.77336 ,74.83204),new google.maps.LatLng(31.38279 ,74.27058),new google.maps.LatLng(30.73764 ,74.45714),new google.maps.LatLng(31.88030 ,74.20754),new google.maps.LatLng(30.85665 ,74.88009),new google.maps.LatLng(31.29462 ,74.02439),new google.maps.LatLng(31.19815 ,74.19643),new google.maps.LatLng(31.98890 ,74.25398),new google.maps.LatLng(31.52769 ,73.70147),new google.maps.LatLng(31.19665 ,74.77885),new google.maps.LatLng(32.03467 ,74.91843),new google.maps.LatLng(32.17306 ,74.10075),new google.maps.LatLng(31.68622 ,75.04185),new google.maps.LatLng(31.21954 ,74.20459),new google.maps.LatLng(31.65746 ,74.52786),new google.maps.LatLng(31.50936 ,74.00473),new google.maps.LatLng(31.26250 ,75.03472),new google.maps.LatLng(31.03991 ,73.61265),new google.maps.LatLng(30.63663 ,74.54689),new google.maps.LatLng(30.89902 ,73.97290),new google.maps.LatLng(31.78130 ,73.98018),new google.maps.LatLng(31.39819 ,75.15795),new google.maps.LatLng(31.70282 ,74.25155),new google.maps.LatLng(30.96527 ,74.82432),new google.maps.LatLng(31.26138 ,74.61254),new google.maps.LatLng(31.87105 ,74.79870),new google.maps.LatLng(31.02187 ,74.82768),new google.maps.LatLng(31.28920 ,73.49985),new google.maps.LatLng(31.11838 ,74.89471),new google.maps.LatLng(31.63660 ,74.37848),new google.maps.LatLng(31.39213 ,74.68076),new google.maps.LatLng(31.55717 ,75.08369),new google.maps.LatLng(32.32526 ,74.44571),new google.maps.LatLng(25.35591 ,66.65927),new google.maps.LatLng(24.60065 ,67.79205),new google.maps.LatLng(24.19283 ,66.84738),new google.maps.LatLng(25.30112 ,66.88578),new google.maps.LatLng(25.05479 ,67.05274),new google.maps.LatLng(24.22934 ,67.86634),new google.maps.LatLng(24.98455 ,67.03107),new google.maps.LatLng(25.57891 ,67.39885),new google.maps.LatLng(24.44761 ,67.84316),new google.maps.LatLng(24.01204 ,67.25784),new google.maps.LatLng(24.83117 ,67.87817),new google.maps.LatLng(24.86712 ,67.50234),new google.maps.LatLng(25.24447 ,66.30699),new google.maps.LatLng(24.73305 ,66.18649),new google.maps.LatLng(25.24606 ,66.88327),new google.maps.LatLng(25.00329 ,66.03508),new google.maps.LatLng(25.05872 ,66.86995),new google.maps.LatLng(24.95917 ,67.75297),new google.maps.LatLng(25.17254 ,66.07627),new google.maps.LatLng(24.34615 ,67.50275),new google.maps.LatLng(25.61787 ,66.28255),new google.maps.LatLng(24.77098 ,67.48093),new google.maps.LatLng(24.60105 ,67.61439),new google.maps.LatLng(25.02208 ,67.25729),new google.maps.LatLng(23.98684 ,67.45068),new google.maps.LatLng(25.70646 ,67.25045),new google.maps.LatLng(25.22804 ,66.03775),new google.maps.LatLng(25.00684 ,67.13826),new google.maps.LatLng(24.09052 ,66.93120),new google.maps.LatLng(24.80473 ,66.96433),new google.maps.LatLng(24.66866 ,67.60893),new google.maps.LatLng(25.18750 ,66.88505),new google.maps.LatLng(25.81384 ,66.46356),new google.maps.LatLng(25.92132 ,66.71323),new google.maps.LatLng(24.16821 ,67.80290),new google.maps.LatLng(24.10620 ,66.60729),new google.maps.LatLng(24.30475 ,66.55085),new google.maps.LatLng(24.05324 ,66.92582),new google.maps.LatLng(25.37166 ,66.22629),new google.maps.LatLng(25.03376 ,66.15240),new google.maps.LatLng(24.17809 ,66.99701),new google.maps.LatLng(25.55802 ,66.99179),new google.maps.LatLng(25.23420 ,66.04654),new google.maps.LatLng(25.37525 ,66.99730),new google.maps.LatLng(25.05101 ,67.02356),new google.maps.LatLng(25.62055 ,67.38345),new google.maps.LatLng(25.58209 ,67.93202),new google.maps.LatLng(24.21203 ,66.92808),new google.maps.LatLng(23.99854 ,67.07653),new google.maps.LatLng(25.20096 ,66.87982),new google.maps.LatLng(25.33530 ,67.14015),new google.maps.LatLng(24.23010 ,67.64411),new google.maps.LatLng(24.10076 ,67.54556),new google.maps.LatLng(24.55460 ,67.62823),new google.maps.LatLng(24.90852 ,67.97796),new google.maps.LatLng(24.24592 ,67.16227),new google.maps.LatLng(25.48040 ,67.34362),new google.maps.LatLng(24.84377 ,67.88729),new google.maps.LatLng(25.78330 ,66.96042),new google.maps.LatLng(25.68612 ,67.59170),new google.maps.LatLng(25.90950 ,67.27593),new google.maps.LatLng(25.16362 ,66.34657),new google.maps.LatLng(25.39817 ,68.02095),new google.maps.LatLng(24.47461 ,66.82937),new google.maps.LatLng(25.49580 ,67.86660),new google.maps.LatLng(25.14974 ,67.06128),new google.maps.LatLng(24.15936 ,66.60667),new google.maps.LatLng(24.15210 ,66.43267),new google.maps.LatLng(25.38192 ,66.36905),new google.maps.LatLng(24.92321 ,66.47482),new google.maps.LatLng(25.29738 ,66.26964),new google.maps.LatLng(24.69696 ,66.16371),new google.maps.LatLng(25.69104 ,67.67042),new google.maps.LatLng(25.02967 ,67.94778),new google.maps.LatLng(24.60574 ,66.25511),new google.maps.LatLng(25.25711 ,67.93952),new google.maps.LatLng(25.27829 ,67.58684),new google.maps.LatLng(25.01018 ,66.18759),new google.maps.LatLng(25.00475 ,68.13801),new google.maps.LatLng(24.75590 ,67.41543),new google.maps.LatLng(25.46316 ,67.23483),new google.maps.LatLng(25.69978 ,66.99928),new google.maps.LatLng(24.55258 ,67.46972),new google.maps.LatLng(24.46505 ,67.81011),new google.maps.LatLng(25.43793 ,66.30133),new google.maps.LatLng(24.63329 ,67.66105),new google.maps.LatLng(25.21640 ,67.03130),new google.maps.LatLng(24.22315 ,67.80772),new google.maps.LatLng(24.56922 ,67.85808),new google.maps.LatLng(25.73640 ,67.60597),new google.maps.LatLng(25.77407 ,66.52561),new google.maps.LatLng(25.41809 ,67.23732),new google.maps.LatLng(24.72924 ,66.35731),new google.maps.LatLng(25.37551 ,66.93578),new google.maps.LatLng(25.20021 ,67.23912),new google.maps.LatLng(24.49828 ,67.80900),new google.maps.LatLng(25.06997 ,67.73019),new google.maps.LatLng(24.77090 ,66.28604),new google.maps.LatLng(25.27798 ,66.19037),new google.maps.LatLng(24.50129 ,67.82080),new google.maps.LatLng(25.31886 ,67.27191),new google.maps.LatLng(24.80785 ,66.88494),new google.maps.LatLng(24.71392 ,66.16385),new google.maps.LatLng(24.01550 ,67.34573),new google.maps.LatLng(24.02762 ,66.72333),new google.maps.LatLng(24.76747 ,67.15616),new google.maps.LatLng(25.02639 ,67.26814),new google.maps.LatLng(25.08993 ,66.51507),new google.maps.LatLng(24.21192 ,67.29115),new google.maps.LatLng(24.70278 ,66.95134),new google.maps.LatLng(24.69084 ,66.70411),new google.maps.LatLng(24.72693 ,66.38772),new google.maps.LatLng(24.24082 ,66.73013),new google.maps.LatLng(24.10190 ,66.52046),new google.maps.LatLng(24.43513 ,67.72009),new google.maps.LatLng(24.66342 ,66.90109),new google.maps.LatLng(25.69359 ,67.79552),new google.maps.LatLng(24.14826 ,66.38216),new google.maps.LatLng(25.32354 ,66.73375),new google.maps.LatLng(25.80477 ,67.53141),new google.maps.LatLng(25.47779 ,67.08312),new google.maps.LatLng(24.71283 ,66.87563),new google.maps.LatLng(24.43469 ,67.04147),new google.maps.LatLng(24.51310 ,67.11929),new google.maps.LatLng(24.69168 ,67.36415),new google.maps.LatLng(24.56445 ,67.25023),new google.maps.LatLng(24.65638 ,68.06183),new google.maps.LatLng(24.58465 ,67.90724),new google.maps.LatLng(24.41198 ,67.95064),new google.maps.LatLng(24.65792 ,67.19555),new google.maps.LatLng(25.42594 ,67.87313),new google.maps.LatLng(25.02387 ,67.29094),new google.maps.LatLng(24.50057 ,67.53694),new google.maps.LatLng(25.13919 ,66.87567),new google.maps.LatLng(24.45770 ,66.52906),new google.maps.LatLng(24.42677 ,66.26125),new google.maps.LatLng(24.81711 ,67.66246),new google.maps.LatLng(24.52615 ,67.51097),new google.maps.LatLng(25.87411 ,67.06141),new google.maps.LatLng(25.57766 ,66.54525),new google.maps.LatLng(24.57659 ,66.50786),new google.maps.LatLng(24.56633 ,66.39901),new google.maps.LatLng(25.34222 ,66.73449),new google.maps.LatLng(24.66552 ,67.21625),new google.maps.LatLng(24.80468 ,66.54054),new google.maps.LatLng(25.58506 ,67.32250),new google.maps.LatLng(24.55771 ,67.68884),new google.maps.LatLng(25.86397 ,67.20388),new google.maps.LatLng(25.40948 ,66.66834),new google.maps.LatLng(24.97439 ,67.55315),new google.maps.LatLng(25.91045 ,66.83770),new google.maps.LatLng(25.17858 ,67.82970),new google.maps.LatLng(24.26641 ,66.80622),new google.maps.LatLng(25.77924 ,67.25600),new google.maps.LatLng(24.95270 ,67.69931),new google.maps.LatLng(24.96894 ,66.39369),new google.maps.LatLng(24.61637 ,66.84188),new google.maps.LatLng(24.13625 ,66.83773),new google.maps.LatLng(25.14268 ,68.03836),new google.maps.LatLng(25.07633 ,67.57497),new google.maps.LatLng(25.53815 ,67.82979),new google.maps.LatLng(24.81118 ,67.83944),new google.maps.LatLng(25.49534 ,67.87694),new google.maps.LatLng(25.70576 ,67.81900),new google.maps.LatLng(25.59026 ,67.53887),new google.maps.LatLng(24.63552 ,66.55832),new google.maps.LatLng(24.00032 ,67.12193),new google.maps.LatLng(24.24393 ,66.89598),new google.maps.LatLng(24.43235 ,66.19193),new google.maps.LatLng(24.53734 ,66.31463),new google.maps.LatLng(24.00644 ,66.57270),new google.maps.LatLng(25.12037 ,67.65848),new google.maps.LatLng(25.57111 ,67.03505),new google.maps.LatLng(25.29023 ,66.92944),new google.maps.LatLng(23.90675 ,67.31622),new google.maps.LatLng(25.07081 ,67.17590),new google.maps.LatLng(24.58439 ,67.73893),new google.maps.LatLng(25.16644 ,66.87170),new google.maps.LatLng(25.07554 ,67.45171),new google.maps.LatLng(25.25423 ,68.03614),new google.maps.LatLng(25.56360 ,66.77820),new google.maps.LatLng(24.92852 ,66.82961),new google.maps.LatLng(26.00611 ,66.97839),new google.maps.LatLng(25.54848 ,67.67851),new google.maps.LatLng(25.19077 ,67.47322),new google.maps.LatLng(24.73062 ,66.73206),new google.maps.LatLng(25.12398 ,67.54465),new google.maps.LatLng(24.83677 ,67.05327),new google.maps.LatLng(25.13075 ,67.09770),new google.maps.LatLng(25.74479 ,67.76146),new google.maps.LatLng(25.87352 ,67.05111),new google.maps.LatLng(25.80089 ,66.81519),new google.maps.LatLng(25.29055 ,66.39546),new google.maps.LatLng(24.14260 ,67.63342),new google.maps.LatLng(24.06706 ,67.17004),new google.maps.LatLng(25.09948 ,66.96012),new google.maps.LatLng(24.79378 ,67.79363),new google.maps.LatLng(25.51720 ,67.96834),new google.maps.LatLng(25.20294 ,67.08130),new google.maps.LatLng(24.84209 ,67.85037),new google.maps.LatLng(25.98544 ,67.11265),new google.maps.LatLng(25.58747 ,67.59539),new google.maps.LatLng(25.90020 ,67.35794),new google.maps.LatLng(25.22007 ,67.90661),new google.maps.LatLng(24.34350 ,67.09361),new google.maps.LatLng(24.79888 ,66.19718),new google.maps.LatLng(24.74924 ,66.33626),new google.maps.LatLng(24.24226 ,67.67351),new google.maps.LatLng(24.23826 ,67.72335),new google.maps.LatLng(25.19976 ,67.72469),new google.maps.LatLng(25.11507 ,66.15316),new google.maps.LatLng(25.30482 ,66.53884),new google.maps.LatLng(25.12191 ,66.80212),new google.maps.LatLng(25.97602 ,66.99476),new google.maps.LatLng(25.42726 ,68.00624),new google.maps.LatLng(24.90629 ,66.62229),new google.maps.LatLng(25.42197 ,66.49711),new google.maps.LatLng(24.28520 ,66.25440),new google.maps.LatLng(25.02895 ,67.57991),new google.maps.LatLng(24.53002 ,67.86178),new google.maps.LatLng(25.69184 ,67.28017),new google.maps.LatLng(24.27563 ,66.27755),new google.maps.LatLng(25.15253 ,67.26064),new google.maps.LatLng(25.61613 ,67.16378),new google.maps.LatLng(25.76474 ,67.43555),new google.maps.LatLng(25.80930 ,66.99905),new google.maps.LatLng(24.67267 ,67.56604),new google.maps.LatLng(24.82625 ,67.45689),new google.maps.LatLng(25.68719 ,67.82807),new google.maps.LatLng(24.28173 ,67.57100),new google.maps.LatLng(25.04517 ,67.09429),new google.maps.LatLng(25.30482 ,67.23595),new google.maps.LatLng(24.01039 ,66.71629),new google.maps.LatLng(24.10829 ,67.04791),new google.maps.LatLng(25.17354 ,66.26250),new google.maps.LatLng(24.95530 ,67.32908),new google.maps.LatLng(25.56207 ,66.68382),new google.maps.LatLng(24.98553 ,66.63858),new google.maps.LatLng(25.43837 ,66.36313),new google.maps.LatLng(24.07200 ,66.99630),new google.maps.LatLng(24.30076 ,66.31249),new google.maps.LatLng(25.09570 ,66.39750),new google.maps.LatLng(25.02098 ,66.58356),new google.maps.LatLng(25.92689 ,67.01159),new google.maps.LatLng(25.34604 ,66.98694),new google.maps.LatLng(25.37095 ,66.69180),new google.maps.LatLng(25.34454 ,66.39563),new google.maps.LatLng(24.46595 ,67.23865),new google.maps.LatLng(24.93763 ,66.69103),new google.maps.LatLng(24.91060 ,67.91878),new google.maps.LatLng(25.60548 ,67.84583),new google.maps.LatLng(25.81239 ,67.54468),new google.maps.LatLng(25.90656 ,67.25053),new google.maps.LatLng(24.42880 ,67.21334),new google.maps.LatLng(24.89850 ,66.87194),new google.maps.LatLng(24.72481 ,66.66588),new google.maps.LatLng(25.61004 ,66.36294),new google.maps.LatLng(24.56782 ,66.33082),new google.maps.LatLng(25.19423 ,66.06172),new google.maps.LatLng(25.24066 ,67.04981),new google.maps.LatLng(25.59861 ,67.13484),new google.maps.LatLng(25.76171 ,67.48234),new google.maps.LatLng(25.90379 ,66.62983),new google.maps.LatLng(25.87838 ,66.82348),new google.maps.LatLng(25.55243 ,67.56082),new google.maps.LatLng(24.04500 ,67.18498),new google.maps.LatLng(23.98513 ,67.19883),new google.maps.LatLng(24.40702 ,67.36464),new google.maps.LatLng(24.27979 ,66.47264),new google.maps.LatLng(25.67110 ,67.11081),new google.maps.LatLng(25.80505 ,66.50574),new google.maps.LatLng(24.94007 ,66.17680),new google.maps.LatLng(24.68576 ,66.90152),new google.maps.LatLng(24.92970 ,66.28176),new google.maps.LatLng(24.24440 ,66.38209),new google.maps.LatLng(25.28236 ,66.51238),new google.maps.LatLng(25.37951 ,66.64773),new google.maps.LatLng(25.36211 ,67.13401),new google.maps.LatLng(24.92322 ,66.69083),new google.maps.LatLng(24.75443 ,67.53542),new google.maps.LatLng(24.88825 ,66.61021),new google.maps.LatLng(24.57921 ,66.47596),new google.maps.LatLng(24.40631 ,67.97076),new google.maps.LatLng(25.40016 ,66.75851),new google.maps.LatLng(25.44169 ,66.21987),new google.maps.LatLng(25.18015 ,67.70032),new google.maps.LatLng(25.37205 ,67.76068),new google.maps.LatLng(24.06579 ,67.43319),new google.maps.LatLng(24.72096 ,68.04449),new google.maps.LatLng(25.13016 ,66.98267),new google.maps.LatLng(24.06374 ,66.79556),new google.maps.LatLng(25.59777 ,66.83254),new google.maps.LatLng(23.91306 ,66.87890),new google.maps.LatLng(25.18173 ,67.94567),new google.maps.LatLng(24.64003 ,66.83066),new google.maps.LatLng(24.03562 ,66.70517),new google.maps.LatLng(25.22939 ,67.95277),new google.maps.LatLng(25.67196 ,66.48236),new google.maps.LatLng(25.10639 ,67.90858),new google.maps.LatLng(25.72128 ,66.51027),new google.maps.LatLng(24.76134 ,66.52047),new google.maps.LatLng(24.99760 ,67.23290),new google.maps.LatLng(24.44952 ,66.15384),new google.maps.LatLng(24.89318 ,67.97963),new google.maps.LatLng(24.70989 ,67.25913),new google.maps.LatLng(25.14591 ,67.58473),new google.maps.LatLng(24.24164 ,66.57755),new google.maps.LatLng(24.96279 ,67.53542),new google.maps.LatLng(25.41710 ,67.70071),new google.maps.LatLng(25.07433 ,67.81350),new google.maps.LatLng(25.35381 ,66.91987),new google.maps.LatLng(25.04375 ,67.41205),new google.maps.LatLng(24.68450 ,68.02535),new google.maps.LatLng(25.48613 ,67.12252),new google.maps.LatLng(25.76457 ,66.51732),new google.maps.LatLng(25.36494 ,67.54535),new google.maps.LatLng(25.95540 ,67.03818),new google.maps.LatLng(24.76731 ,66.89728),new google.maps.LatLng(24.99051 ,67.48748),new google.maps.LatLng(24.48171 ,67.94964),new google.maps.LatLng(25.17020 ,66.50445),new google.maps.LatLng(25.86038 ,67.13104),new google.maps.LatLng(25.27679 ,66.63420),new google.maps.LatLng(24.82559 ,66.20055),new google.maps.LatLng(25.56171 ,67.77169),new google.maps.LatLng(25.85920 ,67.17987),new google.maps.LatLng(24.57651 ,66.95843),new google.maps.LatLng(24.84726 ,66.40782),new google.maps.LatLng(24.59880 ,66.43271),new google.maps.LatLng(25.35316 ,66.19856),new google.maps.LatLng(25.54467 ,67.36029),new google.maps.LatLng(24.78902 ,66.50430),new google.maps.LatLng(25.62518 ,67.68982),new google.maps.LatLng(24.26376 ,67.79674),new google.maps.LatLng(24.47856 ,66.83517),new google.maps.LatLng(24.98363 ,66.92988),new google.maps.LatLng(25.68091 ,67.59904),new google.maps.LatLng(25.38036 ,66.68292),new google.maps.LatLng(25.83732 ,66.76898),new google.maps.LatLng(24.36768 ,67.77630),new google.maps.LatLng(24.65655 ,67.01644),new google.maps.LatLng(25.38864 ,66.12906),new google.maps.LatLng(24.37607 ,67.47508),new google.maps.LatLng(24.09955 ,67.29197),new google.maps.LatLng(24.91630 ,67.11537),new google.maps.LatLng(25.03152 ,66.67530),new google.maps.LatLng(24.87250 ,66.99875),new google.maps.LatLng(25.19810 ,66.08823),new google.maps.LatLng(24.83206 ,67.31626),new google.maps.LatLng(24.54865 ,66.06871),new google.maps.LatLng(24.58719 ,66.14683),new google.maps.LatLng(24.99330 ,66.51250),new google.maps.LatLng(25.61876 ,66.91352),new google.maps.LatLng(25.74448 ,66.38155),new google.maps.LatLng(25.98892 ,66.86955),new google.maps.LatLng(24.96082 ,68.03390),new google.maps.LatLng(24.42993 ,66.77108),new google.maps.LatLng(24.29100 ,67.12456),new google.maps.LatLng(24.61961 ,66.18325),new google.maps.LatLng(25.88689 ,67.14208),new google.maps.LatLng(25.23564 ,66.34771),new google.maps.LatLng(24.99359 ,67.97381),new google.maps.LatLng(25.71331 ,66.45101),new google.maps.LatLng(24.27864 ,67.11795),new google.maps.LatLng(24.89017 ,67.76163),new google.maps.LatLng(24.06700 ,67.59311),new google.maps.LatLng(24.99647 ,67.48902),new google.maps.LatLng(25.39145 ,66.11381),new google.maps.LatLng(24.48865 ,66.83654),new google.maps.LatLng(24.24042 ,66.39963),new google.maps.LatLng(24.73435 ,67.03063),new google.maps.LatLng(24.23155 ,66.95804),new google.maps.LatLng(24.19121 ,67.27884),new google.maps.LatLng(24.82247 ,67.84331),new google.maps.LatLng(25.10877 ,66.86264),new google.maps.LatLng(24.74456 ,66.51013),new google.maps.LatLng(25.50282 ,67.79034),new google.maps.LatLng(25.23844 ,66.36652),new google.maps.LatLng(25.74006 ,66.86816),new google.maps.LatLng(24.43925 ,66.28393),new google.maps.LatLng(24.05566 ,67.52374),new google.maps.LatLng(25.36106 ,67.36654),new google.maps.LatLng(24.17690 ,67.61886),new google.maps.LatLng(25.67758 ,67.35789),new google.maps.LatLng(24.48179 ,66.70836),new google.maps.LatLng(24.83923 ,67.63784),new google.maps.LatLng(24.47468 ,66.64143),new google.maps.LatLng(25.38343 ,66.79195),new google.maps.LatLng(24.32754 ,67.73155),new google.maps.LatLng(24.13659 ,67.71363),new google.maps.LatLng(25.26378 ,68.05265),new google.maps.LatLng(24.72375 ,66.86260),new google.maps.LatLng(24.67525 ,67.65945),new google.maps.LatLng(24.27672 ,67.11657),new google.maps.LatLng(25.43227 ,66.98823),new google.maps.LatLng(24.63986 ,67.08293),new google.maps.LatLng(24.72513 ,66.39867),new google.maps.LatLng(25.32443 ,67.22967),new google.maps.LatLng(24.17047 ,67.20574),new google.maps.LatLng(24.62502 ,67.58186),new google.maps.LatLng(24.86261 ,67.62648),new google.maps.LatLng(25.29846 ,68.06503),new google.maps.LatLng(24.72052 ,68.09217),new google.maps.LatLng(24.68947 ,67.81304),new google.maps.LatLng(24.02407 ,67.16729),new google.maps.LatLng(25.15193 ,66.78931),new google.maps.LatLng(24.92914 ,67.37278),new google.maps.LatLng(25.92739 ,67.25085),new google.maps.LatLng(24.84086 ,66.56002),new google.maps.LatLng(24.31033 ,67.30372),new google.maps.LatLng(24.11888 ,67.11417),new google.maps.LatLng(25.64157 ,67.87329),new google.maps.LatLng(24.97733 ,67.71983),new google.maps.LatLng(25.25378 ,66.36275),new google.maps.LatLng(24.84726 ,67.26237),new google.maps.LatLng(24.45382 ,68.00146),new google.maps.LatLng(24.38462 ,66.54910),new google.maps.LatLng(25.41259 ,66.20564),new google.maps.LatLng(25.73615 ,67.32658),new google.maps.LatLng(25.17442 ,67.65589),new google.maps.LatLng(24.33911 ,67.30693),new google.maps.LatLng(25.66485 ,67.86013),new google.maps.LatLng(25.36802 ,67.13941),new google.maps.LatLng(24.06341 ,67.06867),new google.maps.LatLng(24.38390 ,67.77789),new google.maps.LatLng(24.74866 ,67.56603),new google.maps.LatLng(25.43388 ,66.98220),new google.maps.LatLng(25.03868 ,66.38966),new google.maps.LatLng(25.27999 ,67.67197),new google.maps.LatLng(25.51368 ,67.70757),new google.maps.LatLng(25.27354 ,67.44210),new google.maps.LatLng(25.23185 ,67.37015),new google.maps.LatLng(25.42025 ,67.08687),new google.maps.LatLng(24.12839 ,67.55297),new google.maps.LatLng(24.97258 ,66.09003),new google.maps.LatLng(25.94763 ,67.35909),new google.maps.LatLng(25.51490 ,67.19078),new google.maps.LatLng(25.07749 ,67.64427),new google.maps.LatLng(24.94320 ,67.83829),new google.maps.LatLng(24.54813 ,67.51075),new google.maps.LatLng(24.69998 ,66.61700),new google.maps.LatLng(25.61125 ,67.87448),new google.maps.LatLng(24.14548 ,66.86335),new google.maps.LatLng(25.45449 ,67.90924),new google.maps.LatLng(24.23657 ,67.15156),new google.maps.LatLng(25.28590 ,66.60045),new google.maps.LatLng(25.21020 ,66.17419),new google.maps.LatLng(24.06126 ,67.66589),new google.maps.LatLng(24.18915 ,67.13057),new google.maps.LatLng(24.39732 ,66.66489),new google.maps.LatLng(24.52250 ,68.04208),new google.maps.LatLng(24.51436 ,67.99343),new google.maps.LatLng(24.89843 ,67.49686),new google.maps.LatLng(24.40513 ,66.37914),new google.maps.LatLng(24.74721 ,67.41557),new google.maps.LatLng(25.33920 ,67.37693),new google.maps.LatLng(24.61213 ,66.45666),new google.maps.LatLng(25.01112 ,67.51572),new google.maps.LatLng(24.11729 ,67.06736),new google.maps.LatLng(24.18682 ,66.62378),new google.maps.LatLng(25.03852 ,66.57675),new google.maps.LatLng(25.13512 ,67.87254),new google.maps.LatLng(23.95301 ,66.90367),new google.maps.LatLng(24.51467 ,67.65099),new google.maps.LatLng(24.86164 ,66.38694),new google.maps.LatLng(24.57262 ,67.22188),new google.maps.LatLng(25.22160 ,66.59309),new google.maps.LatLng(24.76548 ,67.95310),new google.maps.LatLng(25.49780 ,67.80962),new google.maps.LatLng(24.46677 ,66.64942),new google.maps.LatLng(24.68505 ,66.29576),new google.maps.LatLng(25.27394 ,66.57371),new google.maps.LatLng(25.15316 ,66.89365),new google.maps.LatLng(24.06191 ,67.12503),new google.maps.LatLng(25.08062 ,66.29397),new google.maps.LatLng(24.53555 ,67.66770),new google.maps.LatLng(24.61811 ,66.25424),new google.maps.LatLng(24.68359 ,67.92667),new google.maps.LatLng(24.81477 ,67.72516),new google.maps.LatLng(24.18994 ,67.20824),new google.maps.LatLng(25.76290 ,67.02548),new google.maps.LatLng(24.95663 ,67.80900),new google.maps.LatLng(24.04930 ,66.71006),new google.maps.LatLng(24.47091 ,66.32118),new google.maps.LatLng(24.14623 ,66.89086),new google.maps.LatLng(25.79129 ,66.75155),new google.maps.LatLng(25.95762 ,67.05762),new google.maps.LatLng(25.61953 ,67.49289),new google.maps.LatLng(25.20256 ,67.35369),new google.maps.LatLng(25.68733 ,66.40944),new google.maps.LatLng(25.23953 ,67.81839),new google.maps.LatLng(24.13671 ,66.74484),new google.maps.LatLng(25.81386 ,67.47809),new google.maps.LatLng(25.21713 ,66.42089),new google.maps.LatLng(24.29894 ,66.68128),new google.maps.LatLng(24.89895 ,66.36569),new google.maps.LatLng(25.70679 ,67.52709),new google.maps.LatLng(24.55390 ,67.82426),new google.maps.LatLng(25.31711 ,66.23099),new google.maps.LatLng(24.25768 ,67.31343),new google.maps.LatLng(24.37729 ,67.61768),new google.maps.LatLng(24.93365 ,66.31572),new google.maps.LatLng(25.58794 ,67.74541),new google.maps.LatLng(25.45482 ,66.61802),new google.maps.LatLng(25.58384 ,67.28326),new google.maps.LatLng(24.98920 ,66.03318),new google.maps.LatLng(25.45478 ,67.70077),new google.maps.LatLng(24.07520 ,67.34684),new google.maps.LatLng(24.87705 ,67.52682),new google.maps.LatLng(25.80357 ,67.54855),new google.maps.LatLng(24.24893 ,67.37656),new google.maps.LatLng(24.46317 ,67.73412),new google.maps.LatLng(24.37337 ,67.58467),new google.maps.LatLng(25.31699 ,67.44101),new google.maps.LatLng(25.38687 ,66.55361),new google.maps.LatLng(25.08562 ,67.43226),new google.maps.LatLng(25.73913 ,67.12708),new google.maps.LatLng(24.69961 ,67.39655),new google.maps.LatLng(24.88488 ,67.39400),new google.maps.LatLng(25.33242 ,67.18237),new google.maps.LatLng(24.74131 ,66.84310),new google.maps.LatLng(24.60448 ,67.61689),new google.maps.LatLng(25.42583 ,67.80162),new google.maps.LatLng(25.18995 ,67.80202),new google.maps.LatLng(24.29016 ,66.52882),new google.maps.LatLng(24.38722 ,67.67845),new google.maps.LatLng(25.91491 ,67.14330),new google.maps.LatLng(25.68474 ,67.36674),new google.maps.LatLng(25.32446 ,67.19213),new google.maps.LatLng(25.04426 ,67.75798),new google.maps.LatLng(25.19422 ,67.71038),new google.maps.LatLng(25.17310 ,66.38847),new google.maps.LatLng(25.15857 ,67.64067),new google.maps.LatLng(24.84046 ,68.08435),new google.maps.LatLng(24.97674 ,66.63582),new google.maps.LatLng(24.29488 ,67.05827),new google.maps.LatLng(24.46509 ,67.33406),new google.maps.LatLng(24.41994 ,67.70109),new google.maps.LatLng(25.83236 ,67.03851),new google.maps.LatLng(24.03118 ,66.90346),new google.maps.LatLng(25.54382 ,67.34122),new google.maps.LatLng(24.38781 ,67.31792),new google.maps.LatLng(25.38756 ,67.11406),new google.maps.LatLng(24.47070 ,67.28731),new google.maps.LatLng(25.36768 ,67.51925),new google.maps.LatLng(24.92955 ,67.30771),new google.maps.LatLng(24.54956 ,66.59687),new google.maps.LatLng(23.92988 ,66.99520),new google.maps.LatLng(25.94673 ,66.98631),new google.maps.LatLng(24.71469 ,66.12152),new google.maps.LatLng(25.04129 ,67.05571),new google.maps.LatLng(25.04550 ,66.56634),new google.maps.LatLng(25.21723 ,66.06827),new google.maps.LatLng(24.70468 ,66.76178),new google.maps.LatLng(25.31754 ,66.07218),new google.maps.LatLng(25.57634 ,66.30414),new google.maps.LatLng(24.97460 ,66.17090),new google.maps.LatLng(24.28489 ,66.90649),new google.maps.LatLng(25.21444 ,67.96107),new google.maps.LatLng(25.23354 ,67.32889),new google.maps.LatLng(24.96174 ,67.58664),new google.maps.LatLng(24.52893 ,66.78538),new google.maps.LatLng(25.29404 ,67.27525),new google.maps.LatLng(24.18485 ,66.56789),new google.maps.LatLng(24.84453 ,68.05791),new google.maps.LatLng(25.29451 ,67.19070),new google.maps.LatLng(25.21025 ,66.20790),new google.maps.LatLng(24.35498 ,66.26404),new google.maps.LatLng(24.85674 ,66.92425),new google.maps.LatLng(25.37099 ,66.34464),new google.maps.LatLng(24.36310 ,67.27188),new google.maps.LatLng(25.39147 ,66.43940),new google.maps.LatLng(25.81168 ,67.39642),new google.maps.LatLng(24.45995 ,66.20686),new google.maps.LatLng(23.98913 ,67.47976),new google.maps.LatLng(24.73862 ,66.50666),new google.maps.LatLng(24.93145 ,66.32319),new google.maps.LatLng(25.57701 ,67.15299),new google.maps.LatLng(25.06738 ,67.49031),new google.maps.LatLng(24.68301 ,67.80027),new google.maps.LatLng(24.18968 ,67.05754),new google.maps.LatLng(25.48516 ,67.95638),new google.maps.LatLng(24.19875 ,67.72847),new google.maps.LatLng(25.59327 ,67.32415),new google.maps.LatLng(24.46155 ,66.32555),new google.maps.LatLng(24.80226 ,66.49641),new google.maps.LatLng(25.62000 ,66.89090),new google.maps.LatLng(25.18024 ,67.77353),new google.maps.LatLng(24.69502 ,67.88917),new google.maps.LatLng(25.40923 ,67.52758),new google.maps.LatLng(25.43736 ,67.64091),new google.maps.LatLng(24.91299 ,66.99726),new google.maps.LatLng(24.26809 ,66.67787),new google.maps.LatLng(24.77557 ,68.09640),new google.maps.LatLng(24.83525 ,66.50125),new google.maps.LatLng(24.86572 ,67.79909),new google.maps.LatLng(25.58402 ,66.47286),new google.maps.LatLng(25.53736 ,67.37140),new google.maps.LatLng(25.31085 ,66.31409),new google.maps.LatLng(24.07909 ,67.21349),new google.maps.LatLng(24.89900 ,67.49218),new google.maps.LatLng(24.13146 ,66.98957),new google.maps.LatLng(24.87671 ,67.40290),new google.maps.LatLng(25.04310 ,67.56915),new google.maps.LatLng(25.59651 ,67.65772),new google.maps.LatLng(24.35521 ,66.19267),new google.maps.LatLng(24.02596 ,67.24531),new google.maps.LatLng(25.25919 ,66.13241),new google.maps.LatLng(25.02254 ,66.37018),new google.maps.LatLng(25.63372 ,67.72695),new google.maps.LatLng(24.43235 ,66.36781),new google.maps.LatLng(24.13650 ,66.54069),new google.maps.LatLng(24.90443 ,67.02006),new google.maps.LatLng(24.56216 ,67.13662),new google.maps.LatLng(25.31433 ,66.69508),new google.maps.LatLng(24.17177 ,66.98030),new google.maps.LatLng(24.46124 ,67.61829),new google.maps.LatLng(25.32283 ,67.70975),new google.maps.LatLng(24.84994 ,67.38924),new google.maps.LatLng(24.00893 ,67.56427),new google.maps.LatLng(25.39627 ,66.47211),new google.maps.LatLng(24.98449 ,67.14377),new google.maps.LatLng(24.53297 ,67.18243),new google.maps.LatLng(25.23347 ,67.12911),new google.maps.LatLng(24.69225 ,67.39532),new google.maps.LatLng(25.75680 ,66.59395),new google.maps.LatLng(25.11924 ,67.51452),new google.maps.LatLng(24.09072 ,66.60322),new google.maps.LatLng(24.53127 ,67.88192),new google.maps.LatLng(24.16621 ,66.83923),new google.maps.LatLng(24.24328 ,67.41079),new google.maps.LatLng(24.95647 ,66.51675),new google.maps.LatLng(24.83519 ,67.37015),new google.maps.LatLng(25.24077 ,66.17045),new google.maps.LatLng(24.60277 ,67.39080),new google.maps.LatLng(25.94974 ,66.87463),new google.maps.LatLng(25.34605 ,66.42336),new google.maps.LatLng(24.53866 ,67.21577),new google.maps.LatLng(25.01495 ,67.73955),new google.maps.LatLng(24.31611 ,66.45190),new google.maps.LatLng(24.67248 ,67.55895),new google.maps.LatLng(24.21254 ,66.87091),new google.maps.LatLng(25.09867 ,67.57411),new google.maps.LatLng(24.78331 ,66.57823),new google.maps.LatLng(25.21225 ,67.54708),new google.maps.LatLng(24.59491 ,66.47914),new google.maps.LatLng(24.20528 ,67.08132),new google.maps.LatLng(24.61550 ,66.42658),new google.maps.LatLng(24.30627 ,66.38744),new google.maps.LatLng(24.17566 ,67.07197),new google.maps.LatLng(25.53947 ,66.79976),new google.maps.LatLng(25.40480 ,67.79193),new google.maps.LatLng(24.85689 ,66.48971),new google.maps.LatLng(24.51926 ,67.25335),new google.maps.LatLng(24.71199 ,67.33381),new google.maps.LatLng(25.21521 ,67.33404),new google.maps.LatLng(25.47175 ,67.22923),new google.maps.LatLng(24.83193 ,66.52092),new google.maps.LatLng(24.22393 ,66.44340),new google.maps.LatLng(24.14023 ,67.68003),new google.maps.LatLng(25.50146 ,66.20212),new google.maps.LatLng(25.76981 ,67.73923),new google.maps.LatLng(24.53293 ,66.99027),new google.maps.LatLng(25.23140 ,67.77204),new google.maps.LatLng(24.22560 ,67.20208),new google.maps.LatLng(25.85554 ,66.75502),new google.maps.LatLng(25.67994 ,67.55530),new google.maps.LatLng(24.20856 ,66.47993),new google.maps.LatLng(24.53950 ,66.43496),new google.maps.LatLng(25.24590 ,67.02905),new google.maps.LatLng(24.26348 ,66.58207),new google.maps.LatLng(25.50162 ,67.50201),new google.maps.LatLng(25.80572 ,66.76461),new google.maps.LatLng(25.31395 ,67.49622),new google.maps.LatLng(24.40895 ,66.41705),new google.maps.LatLng(25.71667 ,67.17486),new google.maps.LatLng(25.54335 ,67.38621),new google.maps.LatLng(24.63515 ,67.08379),new google.maps.LatLng(25.30980 ,68.03461),new google.maps.LatLng(24.36517 ,67.36576),new google.maps.LatLng(25.01009 ,66.41179),new google.maps.LatLng(24.33616 ,66.70951),new google.maps.LatLng(24.86733 ,66.54777),new google.maps.LatLng(23.97555 ,66.81119),new google.maps.LatLng(25.01380 ,67.51820),new google.maps.LatLng(25.53332 ,67.32520),new google.maps.LatLng(25.91391 ,66.64917),new google.maps.LatLng(24.59607 ,67.55582),new google.maps.LatLng(24.23539 ,66.42430),new google.maps.LatLng(24.23773 ,67.05983),new google.maps.LatLng(23.90950 ,66.92469),new google.maps.LatLng(25.60646 ,66.67797),new google.maps.LatLng(24.72224 ,66.30071),new google.maps.LatLng(24.51175 ,66.63216),new google.maps.LatLng(25.46964 ,66.51247),new google.maps.LatLng(25.55281 ,67.12308),new google.maps.LatLng(24.71276 ,68.07731),new google.maps.LatLng(23.95824 ,66.68897),new google.maps.LatLng(24.25382 ,66.83326),new google.maps.LatLng(24.74681 ,66.53806),new google.maps.LatLng(25.09825 ,67.17888),new google.maps.LatLng(24.70587 ,67.76132),new google.maps.LatLng(25.40424 ,67.27696),new google.maps.LatLng(24.06648 ,66.78485),new google.maps.LatLng(24.26224 ,67.16202),new google.maps.LatLng(24.27441 ,66.57443),new google.maps.LatLng(24.09580 ,66.44531),new google.maps.LatLng(24.45858 ,67.23296),new google.maps.LatLng(25.69242 ,66.36143),new google.maps.LatLng(24.91078 ,68.07727),new google.maps.LatLng(24.48629 ,66.85783),new google.maps.LatLng(24.92367 ,66.84370),new google.maps.LatLng(24.53352 ,67.35863),new google.maps.LatLng(24.88063 ,67.70055),new google.maps.LatLng(25.56914 ,67.20639),new google.maps.LatLng(25.16510 ,67.29101),new google.maps.LatLng(24.15385 ,67.51726),new google.maps.LatLng(24.95801 ,67.60800),new google.maps.LatLng(24.65708 ,67.76423),new google.maps.LatLng(24.34675 ,66.91807),new google.maps.LatLng(24.74381 ,67.10962),new google.maps.LatLng(24.77600 ,68.12837),new google.maps.LatLng(25.69194 ,67.70983),new google.maps.LatLng(25.49198 ,67.99224),new google.maps.LatLng(24.78914 ,66.77806),new google.maps.LatLng(25.51765 ,67.85721),new google.maps.LatLng(25.53797 ,67.09986),new google.maps.LatLng(25.29198 ,67.10070),new google.maps.LatLng(25.75771 ,67.64687),new google.maps.LatLng(25.41922 ,67.14111),new google.maps.LatLng(24.92637 ,66.67629),new google.maps.LatLng(25.60217 ,66.84469),new google.maps.LatLng(24.65578 ,66.20837),new google.maps.LatLng(25.87171 ,67.60008),new google.maps.LatLng(24.77127 ,68.08994),new google.maps.LatLng(24.10393 ,66.83303),new google.maps.LatLng(25.01696 ,67.49465),new google.maps.LatLng(24.90163 ,67.09618),new google.maps.LatLng(24.85829 ,66.56334),new google.maps.LatLng(24.53647 ,67.04437),new google.maps.LatLng(25.45859 ,66.43053),new google.maps.LatLng(25.39796 ,66.79368),new google.maps.LatLng(24.82296 ,66.67434),new google.maps.LatLng(25.69984 ,67.42175),new google.maps.LatLng(25.24316 ,67.98134),new google.maps.LatLng(25.14953 ,66.35651),new google.maps.LatLng(25.77615 ,66.83487),new google.maps.LatLng(24.15930 ,66.54000),new google.maps.LatLng(25.09419 ,66.00337),new google.maps.LatLng(24.11999 ,67.72448),new google.maps.LatLng(25.70908 ,67.42055),new google.maps.LatLng(24.86377 ,67.39708),new google.maps.LatLng(25.33589 ,66.64701),new google.maps.LatLng(24.72670 ,67.92107),new google.maps.LatLng(24.99019 ,66.77590),new google.maps.LatLng(25.81943 ,66.70613),new google.maps.LatLng(25.38514 ,67.50562),new google.maps.LatLng(25.47616 ,67.22175),new google.maps.LatLng(24.91420 ,66.20336),new google.maps.LatLng(25.67403 ,66.48243),new google.maps.LatLng(24.65878 ,67.98776),new google.maps.LatLng(25.66533 ,67.71613),new google.maps.LatLng(24.44758 ,66.57871),new google.maps.LatLng(24.69882 ,67.23206),new google.maps.LatLng(24.84105 ,66.07943),new google.maps.LatLng(24.35577 ,66.48254),new google.maps.LatLng(24.39483 ,66.52217),new google.maps.LatLng(25.30071 ,67.95679),new google.maps.LatLng(24.39613 ,66.78782),new google.maps.LatLng(24.41341 ,67.49124),new google.maps.LatLng(25.34434 ,66.47691),new google.maps.LatLng(24.76727 ,66.40750),new google.maps.LatLng(24.78807 ,66.68446),new google.maps.LatLng(24.08499 ,67.20493),new google.maps.LatLng(25.92919 ,67.33053),new google.maps.LatLng(25.66437 ,66.71697),new google.maps.LatLng(25.55828 ,67.50523),new google.maps.LatLng(25.42313 ,66.11591),new google.maps.LatLng(24.65026 ,66.31178),new google.maps.LatLng(25.52108 ,67.39552),new google.maps.LatLng(25.68310 ,67.55731),new google.maps.LatLng(25.35805 ,67.58321),new google.maps.LatLng(25.02221 ,66.22853),new google.maps.LatLng(25.41675 ,67.36556),new google.maps.LatLng(25.83762 ,66.78533),new google.maps.LatLng(24.86980 ,66.34761),new google.maps.LatLng(24.17154 ,67.33254),new google.maps.LatLng(24.61498 ,67.99215),new google.maps.LatLng(24.84974 ,67.82641),new google.maps.LatLng(25.57034 ,66.62288),new google.maps.LatLng(23.93478 ,67.08104),new google.maps.LatLng(24.57716 ,67.54712),new google.maps.LatLng(24.44576 ,67.36693),new google.maps.LatLng(24.63679 ,67.98622),new google.maps.LatLng(25.71767 ,66.99897),new google.maps.LatLng(25.53119 ,66.56964),new google.maps.LatLng(24.29997 ,67.43209),new google.maps.LatLng(25.02075 ,67.81634),new google.maps.LatLng(24.73630 ,66.57996),new google.maps.LatLng(24.85397 ,66.59308),new google.maps.LatLng(24.82522 ,66.63873),new google.maps.LatLng(25.53543 ,66.18844),new google.maps.LatLng(25.06609 ,66.15353),new google.maps.LatLng(24.91277 ,67.46446),new google.maps.LatLng(25.37355 ,67.63067),new google.maps.LatLng(25.17558 ,67.85069),new google.maps.LatLng(25.47737 ,67.73394),new google.maps.LatLng(24.04027 ,67.56416),new google.maps.LatLng(24.22740 ,66.81628),new google.maps.LatLng(25.11436 ,66.22825),new google.maps.LatLng(25.46291 ,67.59179),new google.maps.LatLng(24.99837 ,68.13706),new google.maps.LatLng(25.13789 ,66.95474),new google.maps.LatLng(24.54726 ,66.84428),new google.maps.LatLng(24.47089 ,66.84819),new google.maps.LatLng(25.62147 ,66.89906),new google.maps.LatLng(25.62262 ,67.78617),new google.maps.LatLng(25.22025 ,67.93577),new google.maps.LatLng(24.27380 ,67.11566),new google.maps.LatLng(24.37746 ,66.61627),new google.maps.LatLng(24.95835 ,67.96963),new google.maps.LatLng(25.20473 ,66.86901),new google.maps.LatLng(25.81461 ,66.43394),new google.maps.LatLng(25.44400 ,66.14673),new google.maps.LatLng(25.19335 ,67.53113),new google.maps.LatLng(25.12470 ,67.11539),new google.maps.LatLng(24.20440 ,66.69973),new google.maps.LatLng(23.89149 ,66.90150),new google.maps.LatLng(24.27495 ,67.35791),new google.maps.LatLng(25.95828 ,67.38742),new google.maps.LatLng(25.39022 ,67.15566),new google.maps.LatLng(24.70596 ,67.49007),new google.maps.LatLng(25.96337 ,66.72388),new google.maps.LatLng(25.79031 ,66.45691),new google.maps.LatLng(25.77610 ,66.47320),new google.maps.LatLng(25.64847 ,66.33825),new google.maps.LatLng(25.76701 ,66.96807),new google.maps.LatLng(25.36234 ,67.41410),new google.maps.LatLng(24.77392 ,67.41052),new google.maps.LatLng(23.95793 ,66.90902),new google.maps.LatLng(24.89716 ,66.04152),new google.maps.LatLng(25.02229 ,66.86716),new google.maps.LatLng(24.12365 ,66.91083),new google.maps.LatLng(25.19579 ,67.93767),new google.maps.LatLng(24.57910 ,67.48255),new google.maps.LatLng(24.63612 ,66.87528),new google.maps.LatLng(25.35717 ,67.83691),new google.maps.LatLng(24.06139 ,66.79514),new google.maps.LatLng(25.52471 ,67.45338),new google.maps.LatLng(24.19026 ,66.70059),new google.maps.LatLng(25.92625 ,67.18996),new google.maps.LatLng(25.41170 ,67.77270),new google.maps.LatLng(24.24508 ,67.03882),new google.maps.LatLng(24.00341 ,67.39507),new google.maps.LatLng(24.05861 ,67.23269),new google.maps.LatLng(25.36999 ,67.42482),new google.maps.LatLng(24.42772 ,67.13042),new google.maps.LatLng(24.97824 ,67.04574),new google.maps.LatLng(25.59088 ,67.88349),new google.maps.LatLng(25.16839 ,67.60336),new google.maps.LatLng(24.21072 ,67.07627),new google.maps.LatLng(24.77932 ,66.17299),new google.maps.LatLng(24.63848 ,67.56306),new google.maps.LatLng(24.43500 ,66.86691),new google.maps.LatLng(24.39009 ,66.40506),new google.maps.LatLng(25.89993 ,67.39215),new google.maps.LatLng(25.37160 ,67.49565),new google.maps.LatLng(24.95465 ,67.37635),new google.maps.LatLng(25.25256 ,66.60179),new google.maps.LatLng(24.27908 ,67.24199),new google.maps.LatLng(25.76483 ,66.38522),new google.maps.LatLng(25.39561 ,67.19296),new google.maps.LatLng(25.12155 ,67.43621),new google.maps.LatLng(25.68719 ,67.18423),new google.maps.LatLng(25.38911 ,66.44378),new google.maps.LatLng(24.98820 ,66.76643),new google.maps.LatLng(25.91105 ,66.95034),new google.maps.LatLng(23.94073 ,67.40835),new google.maps.LatLng(25.35574 ,67.11613),new google.maps.LatLng(24.52892 ,66.60716),new google.maps.LatLng(24.96429 ,68.14360),new google.maps.LatLng(24.72654 ,67.62298),new google.maps.LatLng(25.60112 ,67.43826),new google.maps.LatLng(24.78466 ,66.69049),new google.maps.LatLng(24.12512 ,67.54671),new google.maps.LatLng(25.35631 ,67.27790),new google.maps.LatLng(24.14990 ,66.35114),new google.maps.LatLng(24.43312 ,66.94726),new google.maps.LatLng(25.66442 ,67.24073),new google.maps.LatLng(24.79942 ,66.46154),new google.maps.LatLng(24.04700 ,66.79308),new google.maps.LatLng(24.76190 ,67.21227),new google.maps.LatLng(25.10059 ,67.17744),new google.maps.LatLng(24.71366 ,66.98942),new google.maps.LatLng(25.37590 ,67.07235),new google.maps.LatLng(25.46465 ,67.15928),new google.maps.LatLng(25.45249 ,66.46408),new google.maps.LatLng(25.35615 ,67.95225),new google.maps.LatLng(25.18857 ,66.19713),new google.maps.LatLng(24.27591 ,66.68546),new google.maps.LatLng(24.99508 ,66.94575),new google.maps.LatLng(24.06881 ,67.01526),new google.maps.LatLng(24.31331 ,66.84446),new google.maps.LatLng(25.89471 ,67.35190),new google.maps.LatLng(25.68010 ,67.47228),new google.maps.LatLng(24.11133 ,66.75785),new google.maps.LatLng(24.87496 ,66.01643),new google.maps.LatLng(25.71387 ,67.15909),new google.maps.LatLng(25.84840 ,66.57861),new google.maps.LatLng(24.97778 ,66.78863),new google.maps.LatLng(25.37726 ,67.83383),new google.maps.LatLng(25.07319 ,68.01073),new google.maps.LatLng(25.46735 ,66.29481),new google.maps.LatLng(24.58706 ,67.25901),new google.maps.LatLng(24.47211 ,67.77435),new google.maps.LatLng(25.59519 ,66.24469),new google.maps.LatLng(24.47389 ,66.38578),new google.maps.LatLng(25.46885 ,67.33524),new google.maps.LatLng(25.56331 ,67.20392),new google.maps.LatLng(24.55127 ,67.43451),new google.maps.LatLng(25.35172 ,66.33960),new google.maps.LatLng(24.70254 ,66.08279),new google.maps.LatLng(25.82346 ,66.78232),new google.maps.LatLng(24.52095 ,66.52486),new google.maps.LatLng(25.06645 ,67.58391),new google.maps.LatLng(24.29450 ,67.46683),new google.maps.LatLng(24.33472 ,66.28810),new google.maps.LatLng(25.40919 ,66.80010),new google.maps.LatLng(24.31051 ,67.80416),new google.maps.LatLng(25.29025 ,67.59703),new google.maps.LatLng(25.21873 ,66.39102),new google.maps.LatLng(24.73823 ,66.36993),new google.maps.LatLng(24.73049 ,68.06617),new google.maps.LatLng(24.21170 ,66.31969),new google.maps.LatLng(25.83225 ,67.44907),new google.maps.LatLng(25.12048 ,66.76855),new google.maps.LatLng(25.54970 ,66.45432),new google.maps.LatLng(24.50832 ,66.95953),new google.maps.LatLng(25.74226 ,66.64881),new google.maps.LatLng(24.22499 ,67.34807),new google.maps.LatLng(24.27588 ,66.79442),new google.maps.LatLng(25.74868 ,67.55023),new google.maps.LatLng(25.05213 ,67.05128),new google.maps.LatLng(24.94461 ,66.58882),new google.maps.LatLng(24.38565 ,67.74790),new google.maps.LatLng(23.97359 ,67.50771),new google.maps.LatLng(24.26493 ,66.77854),new google.maps.LatLng(24.45946 ,67.94303),new google.maps.LatLng(24.43008 ,66.36414),new google.maps.LatLng(25.80017 ,66.92318),new google.maps.LatLng(24.77147 ,67.06005),new google.maps.LatLng(24.88662 ,66.56501),new google.maps.LatLng(24.72930 ,66.52799),new google.maps.LatLng(24.82875 ,66.36160),new google.maps.LatLng(25.29604 ,67.77034),new google.maps.LatLng(24.82744 ,66.17194),new google.maps.LatLng(25.51107 ,66.79182),new google.maps.LatLng(24.24543 ,66.45151),new google.maps.LatLng(25.00546 ,66.52977),new google.maps.LatLng(24.20538 ,67.15092)]; \r\n }\r\n else if(type == 2){\r\n return [new google.maps.LatLng(33.73718 ,72.52949),new google.maps.LatLng(33.26556 ,73.12369),new google.maps.LatLng(33.86906 ,72.81889),new google.maps.LatLng(33.64026 ,72.49341),new google.maps.LatLng(34.17196 ,72.76867),new google.maps.LatLng(33.94777 ,72.77871),new google.maps.LatLng(34.04531 ,73.21324),new google.maps.LatLng(33.88249 ,73.01187),new google.maps.LatLng(34.14916 ,73.09711),new google.maps.LatLng(33.35699 ,73.22392),new google.maps.LatLng(33.49034 ,73.29224),new google.maps.LatLng(33.89625 ,72.67669),new google.maps.LatLng(33.38690 ,73.30145),new google.maps.LatLng(33.36552 ,73.41582),new google.maps.LatLng(33.76956 ,72.58391),new google.maps.LatLng(33.61246 ,73.11774),new google.maps.LatLng(33.48918 ,73.12541),new google.maps.LatLng(33.48195 ,73.37861),new google.maps.LatLng(34.01673 ,72.79059),new google.maps.LatLng(34.20968 ,72.84752),new google.maps.LatLng(34.09159 ,72.69786),new google.maps.LatLng(33.89226 ,72.75676),new google.maps.LatLng(33.99314 ,73.01587),new google.maps.LatLng(33.69678 ,73.50571),new google.maps.LatLng(33.37905 ,72.69810),new google.maps.LatLng(33.87385 ,72.97886),new google.maps.LatLng(33.16128 ,72.88131),new google.maps.LatLng(34.10640 ,72.76897),new google.maps.LatLng(33.94114 ,73.27958),new google.maps.LatLng(33.18143 ,73.17878),new google.maps.LatLng(33.21753 ,73.16488),new google.maps.LatLng(33.37693 ,73.43539),new google.maps.LatLng(33.69642 ,72.81475),new google.maps.LatLng(33.65216 ,73.56834),new google.maps.LatLng(33.18575 ,73.07482),new google.maps.LatLng(33.95993 ,72.64035),new google.maps.LatLng(34.08068 ,73.13428),new google.maps.LatLng(33.18119 ,72.83856),new google.maps.LatLng(33.24722 ,73.34556),new google.maps.LatLng(33.50006 ,73.32121),new google.maps.LatLng(33.97317 ,72.69632),new google.maps.LatLng(33.25623 ,73.13244),new google.maps.LatLng(33.68481 ,72.68034),new google.maps.LatLng(33.64421 ,72.71710),new google.maps.LatLng(33.93982 ,73.11894),new google.maps.LatLng(34.14662 ,72.98271),new google.maps.LatLng(34.12308 ,73.39700),new google.maps.LatLng(34.13750 ,73.20650),new google.maps.LatLng(33.87999 ,73.00194),new google.maps.LatLng(33.88616 ,73.17912),new google.maps.LatLng(33.85262 ,73.12273),new google.maps.LatLng(33.30026 ,73.02787),new google.maps.LatLng(34.05503 ,73.44231),new google.maps.LatLng(34.02314 ,73.13519),new google.maps.LatLng(33.97102 ,73.49503),new google.maps.LatLng(33.76306 ,72.46550),new google.maps.LatLng(33.34060 ,72.97176),new google.maps.LatLng(33.90654 ,72.70040),new google.maps.LatLng(33.60551 ,73.57598),new google.maps.LatLng(33.67120 ,73.02563),new google.maps.LatLng(34.25063 ,73.01656),new google.maps.LatLng(33.64556 ,72.45385),new google.maps.LatLng(33.57031 ,73.07583),new google.maps.LatLng(33.38019 ,73.01917),new google.maps.LatLng(33.92345 ,72.98964),new google.maps.LatLng(33.69464 ,72.87755),new google.maps.LatLng(34.11498 ,73.21406),new google.maps.LatLng(33.28205 ,72.96678),new google.maps.LatLng(33.64963 ,72.71454),new google.maps.LatLng(33.59374 ,73.31869),new google.maps.LatLng(34.12325 ,73.20684),new google.maps.LatLng(33.40301 ,73.01829),new google.maps.LatLng(33.64083 ,73.40387),new google.maps.LatLng(33.50807 ,73.11559),new google.maps.LatLng(33.23249 ,73.29759),new google.maps.LatLng(33.15743 ,72.80556),new google.maps.LatLng(33.67785 ,72.58756),new google.maps.LatLng(33.27136 ,73.12840),new google.maps.LatLng(33.43996 ,73.43271),new google.maps.LatLng(33.49906 ,72.80123),new google.maps.LatLng(34.01072 ,73.01751),new google.maps.LatLng(33.75658 ,73.52241),new google.maps.LatLng(34.03376 ,73.25005),new google.maps.LatLng(33.73766 ,73.12069),new google.maps.LatLng(33.53247 ,72.50205),new google.maps.LatLng(33.31355 ,73.42403),new google.maps.LatLng(33.73274 ,73.34977),new google.maps.LatLng(33.76941 ,72.97959),new google.maps.LatLng(33.60041 ,73.12460),new google.maps.LatLng(33.62436 ,73.01285),new google.maps.LatLng(33.56095 ,72.74872),new google.maps.LatLng(33.90530 ,72.71227),new google.maps.LatLng(33.34773 ,73.02277),new google.maps.LatLng(33.98659 ,73.27854),new google.maps.LatLng(34.16330 ,73.22771),new google.maps.LatLng(33.81020 ,73.46372),new google.maps.LatLng(33.41249 ,73.18925),new google.maps.LatLng(33.73453 ,72.49613),new google.maps.LatLng(33.91174 ,72.63906),new google.maps.LatLng(33.55233 ,73.40948),new google.maps.LatLng(33.79316 ,73.29836),new google.maps.LatLng(34.05784 ,73.35944),new google.maps.LatLng(33.55058 ,72.52772),new google.maps.LatLng(34.24007 ,72.93102),new google.maps.LatLng(33.38194 ,72.92987),new google.maps.LatLng(33.16258 ,72.96015),new google.maps.LatLng(33.93799 ,73.42198),new google.maps.LatLng(33.24520 ,73.26607),new google.maps.LatLng(33.38439 ,73.00052),new google.maps.LatLng(33.97151 ,73.29940),new google.maps.LatLng(34.06753 ,73.44734),new google.maps.LatLng(33.40974 ,72.60712),new google.maps.LatLng(33.39278 ,73.13751),new google.maps.LatLng(33.57212 ,73.36085),new google.maps.LatLng(33.24260 ,73.31135),new google.maps.LatLng(33.39906 ,73.29060),new google.maps.LatLng(33.41477 ,73.31085),new google.maps.LatLng(34.01324 ,73.19311),new google.maps.LatLng(33.61007 ,72.84141),new google.maps.LatLng(33.95930 ,72.84786),new google.maps.LatLng(33.49796 ,73.18607),new google.maps.LatLng(33.83172 ,73.48075),new google.maps.LatLng(33.58095 ,73.30695),new google.maps.LatLng(33.74787 ,72.48828),new google.maps.LatLng(33.76938 ,72.71883),new google.maps.LatLng(33.78359 ,73.45869),new google.maps.LatLng(33.26723 ,72.82098),new google.maps.LatLng(33.69371 ,73.11772),new google.maps.LatLng(34.19647 ,73.23496),new google.maps.LatLng(33.70597 ,73.42203),new google.maps.LatLng(33.16163 ,73.11287),new google.maps.LatLng(33.66327 ,72.46673),new google.maps.LatLng(34.26315 ,73.02144),new google.maps.LatLng(33.98515 ,73.45096),new google.maps.LatLng(33.32044 ,73.27693),new google.maps.LatLng(33.92167 ,72.86045),new google.maps.LatLng(34.14428 ,73.37928),new google.maps.LatLng(33.12003 ,73.00766),new google.maps.LatLng(33.46353 ,73.11053),new google.maps.LatLng(33.72566 ,73.44966),new google.maps.LatLng(33.54158 ,72.58163),new google.maps.LatLng(33.72838 ,72.52321),new google.maps.LatLng(33.98943 ,72.57911),new google.maps.LatLng(34.11151 ,73.07558),new google.maps.LatLng(33.61082 ,72.86564),new google.maps.LatLng(33.17478 ,73.20503),new google.maps.LatLng(33.20265 ,73.14959),new google.maps.LatLng(33.64404 ,72.99652),new google.maps.LatLng(34.24114 ,73.13202),new google.maps.LatLng(34.21671 ,73.26572),new google.maps.LatLng(33.82227 ,72.58027),new google.maps.LatLng(33.69551 ,73.00667),new google.maps.LatLng(33.50480 ,72.76356),new google.maps.LatLng(34.09892 ,72.65843),new google.maps.LatLng(33.13229 ,73.20628),new google.maps.LatLng(33.88897 ,72.84707),new google.maps.LatLng(33.94860 ,73.29600),new google.maps.LatLng(33.59506 ,72.94085),new google.maps.LatLng(33.53493 ,73.13369),new google.maps.LatLng(33.76928 ,72.95720),new google.maps.LatLng(33.21467 ,73.29953),new google.maps.LatLng(33.70265 ,72.90700),new google.maps.LatLng(33.33584 ,72.83881),new google.maps.LatLng(33.75210 ,72.62180),new google.maps.LatLng(33.83117 ,72.71114),new google.maps.LatLng(33.37060 ,72.78450),new google.maps.LatLng(33.82956 ,72.73943),new google.maps.LatLng(34.10128 ,73.06514),new google.maps.LatLng(33.22788 ,72.93076),new google.maps.LatLng(33.86225 ,72.52814),new google.maps.LatLng(33.58450 ,72.47292),new google.maps.LatLng(33.97034 ,72.57209),new google.maps.LatLng(33.52713 ,72.80408),new google.maps.LatLng(33.92186 ,73.29335),new google.maps.LatLng(34.21606 ,72.94011),new google.maps.LatLng(33.60112 ,73.17149),new google.maps.LatLng(34.05535 ,72.58205),new google.maps.LatLng(33.50897 ,72.92168),new google.maps.LatLng(33.68352 ,73.03520),new google.maps.LatLng(34.06683 ,73.06820),new google.maps.LatLng(33.25237 ,73.09194),new google.maps.LatLng(33.66611 ,72.59607),new google.maps.LatLng(34.16811 ,73.28499),new google.maps.LatLng(33.26831 ,72.71080),new google.maps.LatLng(33.84964 ,73.28366),new google.maps.LatLng(33.45452 ,73.29043),new google.maps.LatLng(33.83376 ,72.86525),new google.maps.LatLng(33.56229 ,72.67387),new google.maps.LatLng(33.32785 ,72.80561),new google.maps.LatLng(34.00406 ,73.31382),new google.maps.LatLng(33.75475 ,73.26456),new google.maps.LatLng(33.80171 ,72.95632),new google.maps.LatLng(33.91608 ,72.84337),new google.maps.LatLng(33.40153 ,73.04275),new google.maps.LatLng(33.81221 ,73.30969),new google.maps.LatLng(33.31143 ,73.44832),new google.maps.LatLng(33.20400 ,72.79430),new google.maps.LatLng(33.13391 ,73.16564),new google.maps.LatLng(33.29270 ,73.46366),new google.maps.LatLng(33.80581 ,72.57825),new google.maps.LatLng(34.12284 ,73.01038),new google.maps.LatLng(33.93503 ,72.71856),new google.maps.LatLng(33.30891 ,72.85289),new google.maps.LatLng(33.92931 ,72.92932),new google.maps.LatLng(33.41332 ,73.15381),new google.maps.LatLng(33.69592 ,73.54304),new google.maps.LatLng(33.79495 ,73.43807),new google.maps.LatLng(34.21048 ,73.14049),new google.maps.LatLng(33.92205 ,73.20049),new google.maps.LatLng(34.07378 ,73.17416),new google.maps.LatLng(34.15420 ,72.89279),new google.maps.LatLng(34.04395 ,72.73942),new google.maps.LatLng(33.43255 ,72.76974),new google.maps.LatLng(33.50338 ,73.36856),new google.maps.LatLng(34.12814 ,72.87574),new google.maps.LatLng(33.13234 ,73.04185),new google.maps.LatLng(33.87403 ,73.15356),new google.maps.LatLng(33.80676 ,72.61758),new google.maps.LatLng(33.48290 ,73.10165),new google.maps.LatLng(34.00762 ,73.48547),new google.maps.LatLng(33.59746 ,72.89025),new google.maps.LatLng(33.13600 ,73.17903),new google.maps.LatLng(33.36988 ,73.47724),new google.maps.LatLng(33.26831 ,72.90161),new google.maps.LatLng(34.09684 ,72.71387),new google.maps.LatLng(33.49599 ,73.09721),new google.maps.LatLng(33.28770 ,72.60844),new google.maps.LatLng(33.84651 ,73.28248),new google.maps.LatLng(34.05323 ,73.47087),new google.maps.LatLng(34.11060 ,73.28960),new google.maps.LatLng(33.21523 ,72.77040),new google.maps.LatLng(33.89072 ,72.68222),new google.maps.LatLng(33.77832 ,73.17666),new google.maps.LatLng(33.65623 ,72.80319),new google.maps.LatLng(33.95135 ,73.02673),new google.maps.LatLng(33.32096 ,73.38663),new google.maps.LatLng(33.74052 ,72.79824),new google.maps.LatLng(33.87427 ,73.44328),new google.maps.LatLng(33.40059 ,72.94545),new google.maps.LatLng(34.24355 ,72.92718),new google.maps.LatLng(34.21061 ,72.95158),new google.maps.LatLng(33.90244 ,72.58700),new google.maps.LatLng(33.71741 ,72.69044),new google.maps.LatLng(33.80791 ,73.17884),new google.maps.LatLng(34.00290 ,72.82879),new google.maps.LatLng(33.75623 ,72.87259),new google.maps.LatLng(33.55215 ,72.68957),new google.maps.LatLng(33.61077 ,73.26412),new google.maps.LatLng(33.57969 ,73.17888),new google.maps.LatLng(33.46881 ,72.50161),new google.maps.LatLng(33.79518 ,72.74791),new google.maps.LatLng(33.61356 ,72.71782),new google.maps.LatLng(33.99779 ,73.00695),new google.maps.LatLng(33.83607 ,73.43923),new google.maps.LatLng(33.25447 ,72.76644),new google.maps.LatLng(34.08007 ,73.06814),new google.maps.LatLng(33.78643 ,72.70463),new google.maps.LatLng(33.31820 ,72.93968),new google.maps.LatLng(33.36342 ,73.31675),new google.maps.LatLng(33.44060 ,73.23111),new google.maps.LatLng(33.91487 ,73.41040),new google.maps.LatLng(33.79370 ,73.22670),new google.maps.LatLng(33.18210 ,73.31498),new google.maps.LatLng(33.46032 ,72.80490),new google.maps.LatLng(34.03831 ,72.92409),new google.maps.LatLng(33.85909 ,72.67727),new google.maps.LatLng(33.91201 ,73.47150),new google.maps.LatLng(33.46125 ,72.83000),new google.maps.LatLng(33.18599 ,72.90772),new google.maps.LatLng(33.32250 ,72.61994),new google.maps.LatLng(33.50506 ,73.11253),new google.maps.LatLng(33.42270 ,72.78880),new google.maps.LatLng(33.87948 ,72.70756),new google.maps.LatLng(33.11424 ,72.92162),new google.maps.LatLng(33.30568 ,73.37880),new google.maps.LatLng(34.09530 ,72.66654),new google.maps.LatLng(33.26865 ,73.32165),new google.maps.LatLng(33.85621 ,72.67526),new google.maps.LatLng(33.65837 ,72.91167),new google.maps.LatLng(33.84637 ,73.33555),new google.maps.LatLng(33.93501 ,72.57696),new google.maps.LatLng(33.95947 ,72.66869),new google.maps.LatLng(33.28317 ,72.64753),new google.maps.LatLng(33.42924 ,73.27061),new google.maps.LatLng(33.66292 ,73.30882),new google.maps.LatLng(34.07699 ,72.88184),new google.maps.LatLng(33.89253 ,73.30179),new google.maps.LatLng(33.32046 ,73.03529),new google.maps.LatLng(33.26806 ,72.65353),new google.maps.LatLng(34.08791 ,72.63994),new google.maps.LatLng(33.25642 ,73.20504),new google.maps.LatLng(34.09616 ,72.81415),new google.maps.LatLng(33.16242 ,72.87293),new google.maps.LatLng(33.25140 ,72.75267),new google.maps.LatLng(33.45126 ,72.63039),new google.maps.LatLng(34.05194 ,72.74115),new google.maps.LatLng(33.91779 ,73.18266),new google.maps.LatLng(33.79796 ,73.36824),new google.maps.LatLng(33.47286 ,73.32194),new google.maps.LatLng(33.71577 ,72.69996),new google.maps.LatLng(33.23151 ,73.25657),new google.maps.LatLng(33.55424 ,72.47321),new google.maps.LatLng(33.60566 ,72.83236),new google.maps.LatLng(33.88972 ,72.69346),new google.maps.LatLng(34.20740 ,73.10209),new google.maps.LatLng(33.94889 ,72.84788),new google.maps.LatLng(33.22826 ,73.03539),new google.maps.LatLng(33.48941 ,73.05609),new google.maps.LatLng(33.77060 ,73.17857),new google.maps.LatLng(33.58328 ,72.55647),new google.maps.LatLng(33.23162 ,73.14195),new google.maps.LatLng(33.66854 ,72.59865),new google.maps.LatLng(33.31500 ,72.88437),new google.maps.LatLng(33.73649 ,72.67761),new google.maps.LatLng(34.03511 ,72.78007),new google.maps.LatLng(33.39758 ,73.26212),new google.maps.LatLng(33.49421 ,73.34950),new google.maps.LatLng(33.44235 ,73.22710),new google.maps.LatLng(34.06526 ,73.02806),new google.maps.LatLng(33.76882 ,72.85833),new google.maps.LatLng(33.18820 ,72.73896),new google.maps.LatLng(34.21343 ,73.13175),new google.maps.LatLng(33.44454 ,72.85041),new google.maps.LatLng(33.86630 ,72.78123),new google.maps.LatLng(33.56124 ,73.06284),new google.maps.LatLng(33.85862 ,72.92146),new google.maps.LatLng(33.84691 ,73.08808),new google.maps.LatLng(33.68166 ,72.87827),new google.maps.LatLng(33.40515 ,73.34865),new google.maps.LatLng(33.72384 ,73.55801),new google.maps.LatLng(33.69154 ,73.48420),new google.maps.LatLng(33.43324 ,72.60722),new google.maps.LatLng(33.32096 ,73.38221),new google.maps.LatLng(34.02958 ,72.73273),new google.maps.LatLng(33.71558 ,72.81429),new google.maps.LatLng(33.44584 ,73.34568),new google.maps.LatLng(33.62530 ,72.95212),new google.maps.LatLng(34.02273 ,72.71632),new google.maps.LatLng(33.72298 ,73.33972),new google.maps.LatLng(34.06374 ,73.07160),new google.maps.LatLng(33.75830 ,72.92633),new google.maps.LatLng(33.56163 ,73.07354),new google.maps.LatLng(34.06607 ,72.91068),new google.maps.LatLng(33.36158 ,72.73807),new google.maps.LatLng(33.21898 ,73.36348),new google.maps.LatLng(33.69443 ,73.07654),new google.maps.LatLng(33.79527 ,72.46134),new google.maps.LatLng(33.62859 ,73.44784),new google.maps.LatLng(33.48302 ,73.00550),new google.maps.LatLng(33.33838 ,72.79637),new google.maps.LatLng(33.46551 ,73.11956),new google.maps.LatLng(33.26308 ,72.99819),new google.maps.LatLng(33.85680 ,72.54653),new google.maps.LatLng(33.43339 ,73.53501),new google.maps.LatLng(33.50626 ,73.08483),new google.maps.LatLng(33.18959 ,73.10358),new google.maps.LatLng(33.60797 ,73.52085),new google.maps.LatLng(33.60739 ,73.27413),new google.maps.LatLng(33.94705 ,73.14429),new google.maps.LatLng(33.96553 ,73.39740),new google.maps.LatLng(33.76028 ,73.50457),new google.maps.LatLng(33.65651 ,72.92445),new google.maps.LatLng(34.00250 ,72.59661),new google.maps.LatLng(33.37442 ,72.70615),new google.maps.LatLng(33.78483 ,72.61463),new google.maps.LatLng(33.26508 ,73.40079),new google.maps.LatLng(34.23985 ,72.99133),new google.maps.LatLng(33.98962 ,73.42892),new google.maps.LatLng(33.31104 ,73.29312),new google.maps.LatLng(33.31181 ,72.94016),new google.maps.LatLng(33.43451 ,73.25126),new google.maps.LatLng(33.67313 ,73.43573),new google.maps.LatLng(33.46986 ,72.87814),new google.maps.LatLng(34.05731 ,73.36140),new google.maps.LatLng(34.00417 ,72.95693),new google.maps.LatLng(33.12928 ,73.13857),new google.maps.LatLng(33.45323 ,73.50408),new google.maps.LatLng(33.68961 ,72.86032),new google.maps.LatLng(33.71175 ,73.51705),new google.maps.LatLng(33.46095 ,73.07033),new google.maps.LatLng(33.91914 ,72.90269),new google.maps.LatLng(33.47780 ,73.25019),new google.maps.LatLng(33.60656 ,73.39003),new google.maps.LatLng(33.50094 ,73.16937),new google.maps.LatLng(33.50445 ,73.29005),new google.maps.LatLng(33.38612 ,72.89296),new google.maps.LatLng(33.85893 ,72.87215),new google.maps.LatLng(33.26740 ,73.38442),new google.maps.LatLng(33.97642 ,72.77403),new google.maps.LatLng(33.29168 ,72.77701),new google.maps.LatLng(33.24620 ,73.32016),new google.maps.LatLng(33.95052 ,73.55319),new google.maps.LatLng(33.93678 ,72.85836),new google.maps.LatLng(33.37090 ,72.86428),new google.maps.LatLng(34.04698 ,73.29165),new google.maps.LatLng(33.52552 ,73.29472),new google.maps.LatLng(33.83175 ,73.17826),new google.maps.LatLng(34.10136 ,73.02714),new google.maps.LatLng(33.24944 ,72.70471),new google.maps.LatLng(33.59100 ,73.12033),new google.maps.LatLng(33.36312 ,72.61838),new google.maps.LatLng(34.15089 ,73.26526),new google.maps.LatLng(34.02736 ,73.19253),new google.maps.LatLng(33.96254 ,72.70932),new google.maps.LatLng(33.47125 ,73.42226),new google.maps.LatLng(33.42517 ,72.83751),new google.maps.LatLng(33.48574 ,73.22801),new google.maps.LatLng(33.50605 ,72.91013),new google.maps.LatLng(33.52115 ,72.60006),new google.maps.LatLng(33.53048 ,72.52323),new google.maps.LatLng(33.81321 ,72.65440),new google.maps.LatLng(33.95739 ,73.24344),new google.maps.LatLng(33.19424 ,73.33741),new google.maps.LatLng(33.84523 ,72.67218),new google.maps.LatLng(34.12266 ,72.64772),new google.maps.LatLng(34.02769 ,73.08002),new google.maps.LatLng(33.49183 ,72.97334),new google.maps.LatLng(33.69824 ,73.39711),new google.maps.LatLng(33.68832 ,73.48345),new google.maps.LatLng(34.08594 ,72.75455),new google.maps.LatLng(33.71816 ,73.50601),new google.maps.LatLng(33.57328 ,72.99495),new google.maps.LatLng(34.06899 ,73.32329),new google.maps.LatLng(33.13453 ,73.18936),new google.maps.LatLng(33.94696 ,73.04997),new google.maps.LatLng(33.43250 ,73.23676),new google.maps.LatLng(33.26632 ,72.62876),new google.maps.LatLng(33.33432 ,72.67259),new google.maps.LatLng(33.75311 ,73.53845),new google.maps.LatLng(33.95070 ,72.88456),new google.maps.LatLng(33.60959 ,73.32083),new google.maps.LatLng(33.23800 ,72.99018),new google.maps.LatLng(33.59436 ,72.86701),new google.maps.LatLng(33.42161 ,72.82058),new google.maps.LatLng(33.36478 ,73.09979),new google.maps.LatLng(34.09870 ,72.87773),new google.maps.LatLng(33.52979 ,73.16716),new google.maps.LatLng(33.63566 ,72.73915),new google.maps.LatLng(33.17074 ,73.10610),new google.maps.LatLng(33.84888 ,72.71725),new google.maps.LatLng(33.58552 ,73.45949),new google.maps.LatLng(33.24372 ,73.12196),new google.maps.LatLng(33.27250 ,73.09780),new google.maps.LatLng(33.57788 ,73.56942),new google.maps.LatLng(33.50164 ,73.09650),new google.maps.LatLng(34.20044 ,73.19267),new google.maps.LatLng(33.55128 ,73.30990),new google.maps.LatLng(33.93102 ,73.51624),new google.maps.LatLng(33.85162 ,73.42760),new google.maps.LatLng(33.41930 ,73.40963),new google.maps.LatLng(33.55370 ,73.20013),new google.maps.LatLng(34.09855 ,73.40048),new google.maps.LatLng(33.28551 ,72.81373),new google.maps.LatLng(33.68909 ,72.77274),new google.maps.LatLng(33.57459 ,73.15845),new google.maps.LatLng(33.80370 ,72.97634),new google.maps.LatLng(33.69081 ,73.25141),new google.maps.LatLng(33.64337 ,72.81593),new google.maps.LatLng(33.78988 ,72.67104),new google.maps.LatLng(33.79422 ,72.69740),new google.maps.LatLng(33.10495 ,72.98282),new google.maps.LatLng(33.73135 ,72.71310),new google.maps.LatLng(34.21080 ,72.95869),new google.maps.LatLng(33.22394 ,73.19303),new google.maps.LatLng(33.49672 ,73.02878),new google.maps.LatLng(33.27228 ,73.14326),new google.maps.LatLng(33.84593 ,73.13822),new google.maps.LatLng(33.39713 ,73.24463),new google.maps.LatLng(33.49483 ,73.45973),new google.maps.LatLng(33.89073 ,72.66214),new google.maps.LatLng(34.25590 ,73.09174),new google.maps.LatLng(33.62783 ,73.31100),new google.maps.LatLng(34.09567 ,72.73358),new google.maps.LatLng(33.18501 ,73.18780),new google.maps.LatLng(33.95634 ,73.00548),new google.maps.LatLng(34.24263 ,73.18666),new google.maps.LatLng(33.85986 ,73.44188),new google.maps.LatLng(33.80821 ,73.58082),new google.maps.LatLng(33.37484 ,73.13522),new google.maps.LatLng(33.50759 ,72.56418),new google.maps.LatLng(33.75281 ,73.51880),new google.maps.LatLng(33.66891 ,72.64670),new google.maps.LatLng(33.52999 ,73.58873),new google.maps.LatLng(33.96826 ,72.80602),new google.maps.LatLng(33.72961 ,72.63239),new google.maps.LatLng(34.09759 ,73.06075),new google.maps.LatLng(33.83090 ,73.11033),new google.maps.LatLng(33.41359 ,73.29409),new google.maps.LatLng(34.02426 ,72.67214),new google.maps.LatLng(33.91332 ,73.50178),new google.maps.LatLng(33.77689 ,73.17424),new google.maps.LatLng(33.84116 ,72.64317),new google.maps.LatLng(33.93020 ,72.96149),new google.maps.LatLng(33.38719 ,72.58544),new google.maps.LatLng(33.76855 ,73.32915),new google.maps.LatLng(33.97840 ,72.71106),new google.maps.LatLng(33.39974 ,73.19283),new google.maps.LatLng(34.06325 ,72.67583),new google.maps.LatLng(34.25155 ,72.91670),new google.maps.LatLng(34.08419 ,73.25455),new google.maps.LatLng(33.78974 ,72.88662),new google.maps.LatLng(34.01402 ,73.43753),new google.maps.LatLng(33.41722 ,73.30297),new google.maps.LatLng(33.86800 ,73.31068),new google.maps.LatLng(34.15695 ,73.20395),new google.maps.LatLng(33.25921 ,73.29909),new google.maps.LatLng(33.22360 ,73.02667),new google.maps.LatLng(33.30082 ,73.25298),new google.maps.LatLng(34.24704 ,72.94879),new google.maps.LatLng(33.49915 ,72.50142),new google.maps.LatLng(33.24485 ,72.82047),new google.maps.LatLng(33.64181 ,73.14381),new google.maps.LatLng(33.55398 ,73.14009),new google.maps.LatLng(33.63433 ,73.14590),new google.maps.LatLng(34.23248 ,73.06323),new google.maps.LatLng(33.71040 ,73.52274),new google.maps.LatLng(33.30867 ,72.95725),new google.maps.LatLng(33.21143 ,72.77985),new google.maps.LatLng(33.53785 ,72.56390),new google.maps.LatLng(33.57295 ,73.51176),new google.maps.LatLng(33.56587 ,73.16492),new google.maps.LatLng(34.17414 ,72.91721),new google.maps.LatLng(33.45245 ,72.73289),new google.maps.LatLng(33.27189 ,73.43079),new google.maps.LatLng(34.22959 ,72.98779),new google.maps.LatLng(33.97024 ,73.50308),new google.maps.LatLng(34.06923 ,72.89233),new google.maps.LatLng(33.74713 ,72.73799),new google.maps.LatLng(33.47030 ,72.75918),new google.maps.LatLng(34.12499 ,72.85284),new google.maps.LatLng(33.19394 ,72.72704),new google.maps.LatLng(33.15728 ,73.14543),new google.maps.LatLng(33.88193 ,73.37920),new google.maps.LatLng(33.79180 ,73.56007),new google.maps.LatLng(33.31057 ,72.73664),new google.maps.LatLng(33.98975 ,72.89248),new google.maps.LatLng(33.28837 ,73.09566),new google.maps.LatLng(34.04237 ,72.69745),new google.maps.LatLng(33.69260 ,73.54124),new google.maps.LatLng(33.57177 ,73.13900),new google.maps.LatLng(33.52160 ,73.54216),new google.maps.LatLng(33.88679 ,72.79961),new google.maps.LatLng(33.54012 ,73.54234),new google.maps.LatLng(33.35045 ,73.08985),new google.maps.LatLng(33.76917 ,73.54590),new google.maps.LatLng(33.79582 ,73.32679),new google.maps.LatLng(33.66480 ,72.96186),new google.maps.LatLng(33.34424 ,72.56735),new google.maps.LatLng(33.12561 ,72.95332),new google.maps.LatLng(33.99378 ,73.06533),new google.maps.LatLng(33.67823 ,72.70065),new google.maps.LatLng(34.01932 ,73.50915),new google.maps.LatLng(33.66729 ,73.31414),new google.maps.LatLng(33.78293 ,72.55857),new google.maps.LatLng(33.75865 ,72.87864),new google.maps.LatLng(34.19820 ,72.77900),new google.maps.LatLng(33.32409 ,72.90519),new google.maps.LatLng(33.28723 ,72.94961),new google.maps.LatLng(33.62746 ,72.90730),new google.maps.LatLng(33.80581 ,72.49168),new google.maps.LatLng(33.76005 ,72.54543),new google.maps.LatLng(34.23847 ,73.12064),new google.maps.LatLng(33.51193 ,72.98391),new google.maps.LatLng(33.52834 ,73.47364),new google.maps.LatLng(33.68091 ,72.49137),new google.maps.LatLng(33.53434 ,72.69562),new google.maps.LatLng(33.86476 ,72.78946),new google.maps.LatLng(33.21652 ,72.85334),new google.maps.LatLng(33.44492 ,72.63968),new google.maps.LatLng(34.22643 ,73.03780),new google.maps.LatLng(33.94522 ,72.76925),new google.maps.LatLng(33.80384 ,72.63489),new google.maps.LatLng(33.93563 ,72.68620),new google.maps.LatLng(33.98258 ,73.37674),new google.maps.LatLng(33.64001 ,72.47129),new google.maps.LatLng(34.19234 ,72.98213),new google.maps.LatLng(34.23636 ,72.91533),new google.maps.LatLng(34.15264 ,72.93221),new google.maps.LatLng(33.65834 ,72.70015),new google.maps.LatLng(33.69609 ,73.28995),new google.maps.LatLng(34.05240 ,72.62833),new google.maps.LatLng(33.88976 ,73.20848),new google.maps.LatLng(33.40566 ,73.09389),new google.maps.LatLng(34.14433 ,72.67432),new google.maps.LatLng(33.33180 ,73.23247),new google.maps.LatLng(33.88947 ,73.35013),new google.maps.LatLng(33.94955 ,72.72113),new google.maps.LatLng(33.84405 ,73.11716),new google.maps.LatLng(33.24457 ,73.24815),new google.maps.LatLng(34.09675 ,73.04305),new google.maps.LatLng(33.54822 ,73.22239),new google.maps.LatLng(33.47313 ,72.71360),new google.maps.LatLng(33.95948 ,73.02607),new google.maps.LatLng(33.22147 ,72.89721),new google.maps.LatLng(33.93151 ,72.51665),new google.maps.LatLng(33.91266 ,73.11988),new google.maps.LatLng(33.73336 ,73.47197),new google.maps.LatLng(33.28750 ,72.63261),new google.maps.LatLng(33.79106 ,73.14990),new google.maps.LatLng(33.85021 ,73.55215),new google.maps.LatLng(34.19645 ,72.93525),new google.maps.LatLng(33.90927 ,73.05969),new google.maps.LatLng(33.58285 ,72.70548),new google.maps.LatLng(33.74260 ,73.14850),new google.maps.LatLng(33.64401 ,73.29159),new google.maps.LatLng(34.24231 ,73.14674),new google.maps.LatLng(34.03588 ,73.39698),new google.maps.LatLng(33.78347 ,72.90598),new google.maps.LatLng(33.62639 ,72.80035),new google.maps.LatLng(33.65759 ,73.21170),new google.maps.LatLng(31.01218 ,74.64093),new google.maps.LatLng(31.34423 ,74.05006),new google.maps.LatLng(30.84226 ,74.35290),new google.maps.LatLng(31.82431 ,74.71929),new google.maps.LatLng(31.34716 ,73.71683),new google.maps.LatLng(30.89707 ,74.74277),new google.maps.LatLng(31.97026 ,74.97678),new google.maps.LatLng(32.26606 ,74.47527),new google.maps.LatLng(31.75687 ,75.04043),new google.maps.LatLng(30.82291 ,74.26369),new google.maps.LatLng(31.91317 ,74.53306),new google.maps.LatLng(31.37499 ,73.73582),new google.maps.LatLng(30.79067 ,74.26132),new google.maps.LatLng(31.74839 ,73.73191),new google.maps.LatLng(31.33242 ,75.07025),new google.maps.LatLng(31.45079 ,74.39856),new google.maps.LatLng(32.26774 ,74.56048),new google.maps.LatLng(31.86773 ,73.89928),new google.maps.LatLng(30.80335 ,74.62940),new google.maps.LatLng(31.45476 ,74.93708),new google.maps.LatLng(31.67606 ,75.01175),new google.maps.LatLng(32.17827 ,74.22958),new google.maps.LatLng(30.76980 ,74.34244),new google.maps.LatLng(31.05334 ,74.63787),new google.maps.LatLng(30.76554 ,74.58413),new google.maps.LatLng(31.24627 ,74.60763),new google.maps.LatLng(31.72477 ,74.84865),new google.maps.LatLng(31.11548 ,74.50713),new google.maps.LatLng(31.23717 ,74.26847),new google.maps.LatLng(31.11925 ,74.01547),new google.maps.LatLng(31.67489 ,74.44929),new google.maps.LatLng(30.95922 ,74.58781),new google.maps.LatLng(32.10402 ,74.36485),new google.maps.LatLng(31.43776 ,74.79294),new google.maps.LatLng(31.57842 ,74.72765),new google.maps.LatLng(31.18550 ,73.81630),new google.maps.LatLng(31.63452 ,74.47745),new google.maps.LatLng(31.63590 ,73.78756),new google.maps.LatLng(31.42455 ,74.29436),new google.maps.LatLng(31.48716 ,73.58703),new google.maps.LatLng(31.07819 ,74.35116),new google.maps.LatLng(31.66342 ,73.91524),new google.maps.LatLng(32.17736 ,74.30916),new google.maps.LatLng(31.54648 ,74.80174),new google.maps.LatLng(31.64677 ,74.36247),new google.maps.LatLng(31.27686 ,75.04453),new google.maps.LatLng(31.85797 ,74.86698),new google.maps.LatLng(32.13321 ,74.11870),new google.maps.LatLng(31.54259 ,74.32288),new google.maps.LatLng(30.90295 ,74.70957),new google.maps.LatLng(31.70224 ,74.73318),new google.maps.LatLng(31.57900 ,74.39775),new google.maps.LatLng(32.01248 ,74.34181),new google.maps.LatLng(31.13186 ,74.34242),new google.maps.LatLng(30.76351 ,74.52028),new google.maps.LatLng(31.84801 ,74.72394),new google.maps.LatLng(30.89005 ,74.38921),new google.maps.LatLng(31.12549 ,74.08460),new google.maps.LatLng(31.15577 ,73.66785),new google.maps.LatLng(30.93464 ,73.94265),new google.maps.LatLng(32.02098 ,73.75094),new google.maps.LatLng(31.12589 ,73.73040),new google.maps.LatLng(32.10873 ,74.57725),new google.maps.LatLng(31.90774 ,74.38994),new google.maps.LatLng(31.32809 ,74.89597),new google.maps.LatLng(31.88511 ,74.27349),new google.maps.LatLng(31.58555 ,73.95644),new google.maps.LatLng(31.04291 ,74.01906),new google.maps.LatLng(31.87100 ,73.64748),new google.maps.LatLng(32.22255 ,74.51421),new google.maps.LatLng(31.56836 ,73.78174),new google.maps.LatLng(31.61074 ,74.13177),new google.maps.LatLng(31.72316 ,73.71874),new google.maps.LatLng(31.08011 ,74.98425),new google.maps.LatLng(31.08632 ,74.17477),new google.maps.LatLng(31.97498 ,73.81724),new google.maps.LatLng(31.64126 ,74.03188),new google.maps.LatLng(31.12685 ,74.95800),new google.maps.LatLng(31.49552 ,74.36779),new google.maps.LatLng(31.04908 ,74.10278),new google.maps.LatLng(31.39383 ,74.65117),new google.maps.LatLng(31.27341 ,73.75451),new google.maps.LatLng(32.04413 ,74.07880),new google.maps.LatLng(31.76778 ,73.68419),new google.maps.LatLng(31.47467 ,75.13833),new google.maps.LatLng(31.61674 ,74.77131),new google.maps.LatLng(31.44772 ,74.18473),new google.maps.LatLng(31.13636 ,74.03489),new google.maps.LatLng(31.47263 ,73.95098),new google.maps.LatLng(31.82968 ,74.98687),new google.maps.LatLng(31.25116 ,74.96298),new google.maps.LatLng(31.60819 ,74.53363),new google.maps.LatLng(31.68103 ,74.95534),new google.maps.LatLng(31.58257 ,75.14561),new google.maps.LatLng(31.29721 ,74.72465),new google.maps.LatLng(31.53816 ,74.67617),new google.maps.LatLng(31.65316 ,73.87369),new google.maps.LatLng(31.88683 ,74.27035),new google.maps.LatLng(31.05939 ,74.09255),new google.maps.LatLng(31.00586 ,74.06182),new google.maps.LatLng(31.85085 ,74.76520),new google.maps.LatLng(31.88659 ,74.96604),new google.maps.LatLng(31.44423 ,74.81295),new google.maps.LatLng(31.28280 ,73.62450),new google.maps.LatLng(32.20096 ,74.55437),new google.maps.LatLng(31.03341 ,73.86164),new google.maps.LatLng(31.58565 ,74.11952),new google.maps.LatLng(31.04097 ,74.32677),new google.maps.LatLng(31.16641 ,73.77833),new google.maps.LatLng(31.58148 ,73.64997),new google.maps.LatLng(31.55842 ,74.61260),new google.maps.LatLng(32.10613 ,74.28550),new google.maps.LatLng(31.21479 ,74.97025),new google.maps.LatLng(31.49588 ,74.22854),new google.maps.LatLng(31.32861 ,73.95767),new google.maps.LatLng(31.22595 ,75.04357),new google.maps.LatLng(31.38645 ,74.56985),new google.maps.LatLng(30.77306 ,74.39087),new google.maps.LatLng(31.47936 ,75.15615),new google.maps.LatLng(31.44174 ,74.41368),new google.maps.LatLng(31.40742 ,74.72883),new google.maps.LatLng(32.13174 ,74.55691),new google.maps.LatLng(31.56266 ,74.87146),new google.maps.LatLng(31.03275 ,73.95389),new google.maps.LatLng(31.46990 ,74.41763),new google.maps.LatLng(30.91995 ,73.91405),new google.maps.LatLng(31.32006 ,73.77790),new google.maps.LatLng(32.20108 ,74.65588),new google.maps.LatLng(31.46022 ,74.33783),new google.maps.LatLng(31.57224 ,74.70821),new google.maps.LatLng(31.87256 ,74.02907),new google.maps.LatLng(31.99209 ,74.65818),new google.maps.LatLng(31.57709 ,74.26587),new google.maps.LatLng(31.56413 ,74.68707),new google.maps.LatLng(31.51399 ,73.62364),new google.maps.LatLng(31.33678 ,74.26351),new google.maps.LatLng(32.11750 ,74.32779),new google.maps.LatLng(32.07817 ,73.89267),new google.maps.LatLng(31.62584 ,73.94087),new google.maps.LatLng(32.00804 ,74.08304),new google.maps.LatLng(31.49513 ,75.02950),new google.maps.LatLng(31.42258 ,75.15077),new google.maps.LatLng(32.11524 ,74.68614),new google.maps.LatLng(32.03188 ,73.89348),new google.maps.LatLng(31.04686 ,74.68278),new google.maps.LatLng(32.01391 ,74.58770),new google.maps.LatLng(31.75987 ,73.78996),new google.maps.LatLng(31.65441 ,73.88936),new google.maps.LatLng(31.29908 ,74.86524),new google.maps.LatLng(31.27855 ,74.09661),new google.maps.LatLng(31.41634 ,74.65584),new google.maps.LatLng(31.62360 ,74.04960),new google.maps.LatLng(32.14343 ,74.67503),new google.maps.LatLng(32.08234 ,74.34322),new google.maps.LatLng(31.70255 ,74.50834),new google.maps.LatLng(32.05866 ,74.52249),new google.maps.LatLng(31.26369 ,73.85303),new google.maps.LatLng(32.04881 ,74.09829),new google.maps.LatLng(31.67918 ,74.23709),new google.maps.LatLng(32.04727 ,74.74554),new google.maps.LatLng(32.10318 ,74.89741),new google.maps.LatLng(31.01586 ,73.85113),new google.maps.LatLng(31.42328 ,74.20878),new google.maps.LatLng(32.10449 ,74.18770),new google.maps.LatLng(31.74566 ,74.89979),new google.maps.LatLng(31.87353 ,73.78603),new google.maps.LatLng(31.40895 ,73.66236),new google.maps.LatLng(31.38285 ,74.60387),new google.maps.LatLng(31.07672 ,74.64744),new google.maps.LatLng(31.33776 ,74.10123),new google.maps.LatLng(31.21807 ,74.94821),new google.maps.LatLng(32.12492 ,74.16530),new google.maps.LatLng(31.68006 ,73.88176),new google.maps.LatLng(30.95911 ,74.45540),new google.maps.LatLng(32.04940 ,74.33017),new google.maps.LatLng(30.87133 ,74.55025),new google.maps.LatLng(30.88165 ,74.66145),new google.maps.LatLng(31.81453 ,74.32700),new google.maps.LatLng(31.40580 ,73.94433),new google.maps.LatLng(31.74238 ,74.53785),new google.maps.LatLng(31.39583 ,73.87358),new google.maps.LatLng(31.11289 ,73.83846),new google.maps.LatLng(31.76864 ,74.79171),new google.maps.LatLng(31.36426 ,73.81259),new google.maps.LatLng(31.34018 ,74.48984),new google.maps.LatLng(32.20567 ,74.36955),new google.maps.LatLng(31.52606 ,74.31442),new google.maps.LatLng(31.64727 ,73.72850),new google.maps.LatLng(31.30632 ,74.44996),new google.maps.LatLng(32.14087 ,74.66984),new google.maps.LatLng(31.59227 ,75.11915),new google.maps.LatLng(31.16826 ,74.89188),new google.maps.LatLng(31.40072 ,74.93499),new google.maps.LatLng(31.49846 ,74.58949),new google.maps.LatLng(31.23709 ,73.63899),new google.maps.LatLng(31.62229 ,73.79653),new google.maps.LatLng(31.58096 ,74.42949),new google.maps.LatLng(31.88532 ,74.05624),new google.maps.LatLng(31.45840 ,74.54841),new google.maps.LatLng(30.98384 ,74.34925),new google.maps.LatLng(32.20967 ,74.25985),new google.maps.LatLng(31.78525 ,74.55314),new google.maps.LatLng(31.44811 ,74.37001),new google.maps.LatLng(31.98017 ,74.68526),new google.maps.LatLng(31.75984 ,73.68385),new google.maps.LatLng(31.58261 ,74.70578),new google.maps.LatLng(31.87200 ,74.91449),new google.maps.LatLng(31.95386 ,73.83310),new google.maps.LatLng(31.13917 ,73.64642),new google.maps.LatLng(31.68783 ,74.53175),new google.maps.LatLng(31.54424 ,73.89099),new google.maps.LatLng(31.88742 ,73.87145),new google.maps.LatLng(30.90151 ,74.65228),new google.maps.LatLng(30.78211 ,74.33516),new google.maps.LatLng(32.18824 ,74.79703),new google.maps.LatLng(30.82517 ,73.96775),new google.maps.LatLng(32.02696 ,74.71379),new google.maps.LatLng(31.83523 ,75.01680),new google.maps.LatLng(32.08877 ,74.32269),new google.maps.LatLng(31.08208 ,74.41676),new google.maps.LatLng(31.22408 ,74.89646),new google.maps.LatLng(32.03403 ,74.89804),new google.maps.LatLng(31.17983 ,74.26375),new google.maps.LatLng(30.98728 ,74.16750),new google.maps.LatLng(31.11034 ,74.59243),new google.maps.LatLng(31.21312 ,74.19913),new google.maps.LatLng(31.77063 ,73.80399),new google.maps.LatLng(31.44811 ,74.83146),new google.maps.LatLng(31.20981 ,74.23304),new google.maps.LatLng(31.83479 ,73.96303),new google.maps.LatLng(31.39154 ,74.63059),new google.maps.LatLng(31.72216 ,75.01239),new google.maps.LatLng(32.06401 ,74.44335),new google.maps.LatLng(31.80833 ,73.70261),new google.maps.LatLng(31.95068 ,73.98658),new google.maps.LatLng(30.91013 ,74.57768),new google.maps.LatLng(31.88532 ,74.09303),new google.maps.LatLng(30.77643 ,74.46279),new google.maps.LatLng(30.90397 ,74.41916),new google.maps.LatLng(30.96616 ,74.45505),new google.maps.LatLng(31.69448 ,74.09354),new google.maps.LatLng(32.18370 ,74.49498),new google.maps.LatLng(31.67198 ,74.98409),new google.maps.LatLng(31.95658 ,74.24372),new google.maps.LatLng(32.07359 ,74.28181),new google.maps.LatLng(31.20920 ,74.39015),new google.maps.LatLng(31.33208 ,74.15116),new google.maps.LatLng(32.19952 ,74.13990),new google.maps.LatLng(30.90040 ,74.70760),new google.maps.LatLng(30.74984 ,74.40864),new google.maps.LatLng(31.94320 ,74.02076),new google.maps.LatLng(32.00580 ,74.53427),new google.maps.LatLng(31.50214 ,73.79326),new google.maps.LatLng(31.91569 ,73.77740),new google.maps.LatLng(31.19678 ,75.11011),new google.maps.LatLng(31.26075 ,75.12891),new google.maps.LatLng(31.76690 ,74.40086),new google.maps.LatLng(31.72540 ,74.32506),new google.maps.LatLng(32.07181 ,74.08403),new google.maps.LatLng(30.76176 ,74.19956),new google.maps.LatLng(31.27412 ,74.19339),new google.maps.LatLng(30.91267 ,74.14023),new google.maps.LatLng(30.86366 ,74.34288),new google.maps.LatLng(31.76653 ,74.45577),new google.maps.LatLng(30.97437 ,74.30007),new google.maps.LatLng(30.88540 ,74.78255),new google.maps.LatLng(31.94136 ,74.85588),new google.maps.LatLng(31.37473 ,74.70051),new google.maps.LatLng(32.02141 ,74.68882),new google.maps.LatLng(31.04749 ,74.60168),new google.maps.LatLng(32.00652 ,74.39419),new google.maps.LatLng(32.13250 ,74.28809),new google.maps.LatLng(30.85991 ,74.32933),new google.maps.LatLng(32.23037 ,74.27917),new google.maps.LatLng(31.12776 ,73.73441),new google.maps.LatLng(31.54348 ,74.91905),new google.maps.LatLng(30.93950 ,73.91162),new google.maps.LatLng(31.00385 ,73.89071),new google.maps.LatLng(31.76352 ,73.77741),new google.maps.LatLng(32.18779 ,74.27447),new google.maps.LatLng(32.16906 ,74.76752),new google.maps.LatLng(31.31214 ,74.62094),new google.maps.LatLng(31.28920 ,74.34679),new google.maps.LatLng(30.86877 ,73.95742),new google.maps.LatLng(31.41492 ,73.81007),new google.maps.LatLng(31.38217 ,75.03828),new google.maps.LatLng(31.78994 ,73.65229),new google.maps.LatLng(30.90260 ,73.83887),new google.maps.LatLng(31.50016 ,75.12167),new google.maps.LatLng(31.72914 ,73.66381),new google.maps.LatLng(30.94169 ,74.22446),new google.maps.LatLng(31.07024 ,74.24670),new google.maps.LatLng(31.62814 ,73.71369),new google.maps.LatLng(31.11680 ,74.80187),new google.maps.LatLng(31.69006 ,73.84003),new google.maps.LatLng(31.25537 ,74.11875),new google.maps.LatLng(30.88516 ,73.89197),new google.maps.LatLng(31.80420 ,74.49830),new google.maps.LatLng(31.33677 ,73.63270),new google.maps.LatLng(31.26513 ,74.46549),new google.maps.LatLng(31.55739 ,74.27137),new google.maps.LatLng(32.17097 ,74.07079),new google.maps.LatLng(31.48638 ,74.75341),new google.maps.LatLng(32.21947 ,74.10064),new google.maps.LatLng(30.83027 ,74.36517),new google.maps.LatLng(32.01960 ,74.23891),new google.maps.LatLng(31.49640 ,73.87047),new google.maps.LatLng(31.99541 ,73.85076),new google.maps.LatLng(31.81908 ,74.15535),new google.maps.LatLng(30.99331 ,73.76938),new google.maps.LatLng(31.34032 ,73.68590),new google.maps.LatLng(31.79851 ,74.74997),new google.maps.LatLng(31.87334 ,74.19771),new google.maps.LatLng(31.05555 ,74.77324),new google.maps.LatLng(31.98567 ,74.51596),new google.maps.LatLng(31.32273 ,74.44866),new google.maps.LatLng(32.01964 ,74.94043),new google.maps.LatLng(31.07369 ,74.94392),new google.maps.LatLng(30.93918 ,74.32037),new google.maps.LatLng(31.67693 ,73.95573),new google.maps.LatLng(31.82614 ,73.62699),new google.maps.LatLng(31.41869 ,74.94236),new google.maps.LatLng(31.70276 ,74.97494),new google.maps.LatLng(31.13919 ,73.88401),new google.maps.LatLng(31.13332 ,73.69184),new google.maps.LatLng(31.39250 ,73.59990),new google.maps.LatLng(31.06473 ,74.65014),new google.maps.LatLng(31.29999 ,73.92510),new google.maps.LatLng(32.15532 ,73.98493),new google.maps.LatLng(30.96603 ,74.02512),new google.maps.LatLng(31.86162 ,74.40386),new google.maps.LatLng(31.80096 ,74.83112),new google.maps.LatLng(31.52490 ,74.38264),new google.maps.LatLng(30.79862 ,74.38265),new google.maps.LatLng(31.25269 ,74.85374),new google.maps.LatLng(31.73028 ,74.50236),new google.maps.LatLng(31.17217 ,74.36332),new google.maps.LatLng(31.06559 ,74.76276),new google.maps.LatLng(30.91954 ,74.77647),new google.maps.LatLng(31.18412 ,74.21377),new google.maps.LatLng(32.02748 ,74.46685),new google.maps.LatLng(30.84848 ,74.80159),new google.maps.LatLng(31.42507 ,73.85326),new google.maps.LatLng(31.65954 ,73.65326),new google.maps.LatLng(31.61168 ,74.75618),new google.maps.LatLng(31.70988 ,73.67775),new google.maps.LatLng(31.29753 ,74.67973),new google.maps.LatLng(30.98740 ,74.04814),new google.maps.LatLng(31.78982 ,74.94280),new google.maps.LatLng(31.45569 ,73.84173),new google.maps.LatLng(31.50194 ,74.35880),new google.maps.LatLng(31.21029 ,75.00430),new google.maps.LatLng(32.06388 ,74.13451),new google.maps.LatLng(32.19724 ,73.95864),new google.maps.LatLng(31.10026 ,74.40296),new google.maps.LatLng(31.84402 ,73.82721),new google.maps.LatLng(31.73312 ,74.31325),new google.maps.LatLng(31.58839 ,74.59218),new google.maps.LatLng(31.93489 ,74.38049),new google.maps.LatLng(30.92370 ,74.42745),new google.maps.LatLng(31.12397 ,74.06024),new google.maps.LatLng(31.26061 ,73.98471),new google.maps.LatLng(32.26323 ,74.28844),new google.maps.LatLng(30.71005 ,74.29221),new google.maps.LatLng(31.15824 ,74.56728),new google.maps.LatLng(30.79955 ,74.74756),new google.maps.LatLng(31.75010 ,74.54090),new google.maps.LatLng(31.02700 ,74.28649),new google.maps.LatLng(31.22916 ,74.95103),new google.maps.LatLng(32.20080 ,74.24197),new google.maps.LatLng(31.44414 ,74.85352),new google.maps.LatLng(30.98542 ,74.29703),new google.maps.LatLng(31.24391 ,74.52611),new google.maps.LatLng(31.75513 ,73.69803),new google.maps.LatLng(31.33582 ,74.09528),new google.maps.LatLng(31.43946 ,73.61653),new google.maps.LatLng(31.05219 ,74.73504),new google.maps.LatLng(31.16179 ,73.64498),new google.maps.LatLng(31.25729 ,74.35167),new google.maps.LatLng(30.69916 ,74.41824),new google.maps.LatLng(31.41142 ,74.10219),new google.maps.LatLng(31.31966 ,74.06338),new google.maps.LatLng(31.29508 ,74.88411),new google.maps.LatLng(31.47623 ,73.88871),new google.maps.LatLng(31.61014 ,74.13023),new google.maps.LatLng(31.01282 ,74.01653),new google.maps.LatLng(31.11092 ,74.63160),new google.maps.LatLng(31.86981 ,73.73603),new google.maps.LatLng(32.14574 ,74.32246),new google.maps.LatLng(31.39932 ,74.32730),new google.maps.LatLng(31.74468 ,73.84922),new google.maps.LatLng(31.03741 ,73.87434),new google.maps.LatLng(31.77668 ,74.88207),new google.maps.LatLng(31.08368 ,74.70949),new google.maps.LatLng(31.06997 ,74.91650),new google.maps.LatLng(31.74688 ,74.67676),new google.maps.LatLng(31.24482 ,73.76348),new google.maps.LatLng(31.13848 ,74.94282),new google.maps.LatLng(31.12357 ,74.10005),new google.maps.LatLng(31.45177 ,74.20818),new google.maps.LatLng(31.24568 ,73.97844),new google.maps.LatLng(30.73701 ,74.33497),new google.maps.LatLng(31.28494 ,73.84460),new google.maps.LatLng(32.28181 ,74.15115),new google.maps.LatLng(31.94249 ,74.31480),new google.maps.LatLng(31.57087 ,74.10747),new google.maps.LatLng(31.54246 ,73.79156),new google.maps.LatLng(31.71802 ,74.91484),new google.maps.LatLng(31.50147 ,73.95537),new google.maps.LatLng(31.56323 ,74.63702),new google.maps.LatLng(32.03452 ,74.31279),new google.maps.LatLng(31.44859 ,74.83307),new google.maps.LatLng(31.26743 ,74.14968),new google.maps.LatLng(31.72793 ,74.75640),new google.maps.LatLng(32.00154 ,74.23707),new google.maps.LatLng(32.02656 ,74.79168),new google.maps.LatLng(31.58057 ,73.74068),new google.maps.LatLng(31.54395 ,74.96296),new google.maps.LatLng(32.27999 ,74.36894),new google.maps.LatLng(32.01872 ,74.10601),new google.maps.LatLng(31.51914 ,75.04807),new google.maps.LatLng(31.44826 ,75.17192),new google.maps.LatLng(31.70734 ,74.52715),new google.maps.LatLng(32.14448 ,74.60402),new google.maps.LatLng(31.23469 ,75.10587),new google.maps.LatLng(30.80493 ,74.37697),new google.maps.LatLng(31.98093 ,74.36367),new google.maps.LatLng(31.50544 ,74.51782),new google.maps.LatLng(31.34977 ,75.11559),new google.maps.LatLng(31.44185 ,74.40307),new google.maps.LatLng(31.19938 ,74.23298),new google.maps.LatLng(31.63322 ,73.66666),new google.maps.LatLng(31.62049 ,74.79280),new google.maps.LatLng(31.22305 ,74.78910),new google.maps.LatLng(31.15439 ,74.91690),new google.maps.LatLng(31.51180 ,74.30489),new google.maps.LatLng(31.47448 ,74.62942),new google.maps.LatLng(31.17434 ,74.02178),new google.maps.LatLng(30.82470 ,74.76033),new google.maps.LatLng(31.04436 ,74.23001),new google.maps.LatLng(31.69072 ,74.14509),new google.maps.LatLng(31.53660 ,74.51646),new google.maps.LatLng(31.66317 ,75.11307),new google.maps.LatLng(30.84896 ,74.21614),new google.maps.LatLng(31.74593 ,75.08376),new google.maps.LatLng(31.40871 ,74.41889),new google.maps.LatLng(31.73433 ,73.82723),new google.maps.LatLng(31.66349 ,75.06744),new google.maps.LatLng(31.30411 ,74.92851),new google.maps.LatLng(31.41371 ,73.85134),new google.maps.LatLng(31.79362 ,73.73329),new google.maps.LatLng(31.79403 ,74.27164),new google.maps.LatLng(31.19982 ,74.15916),new google.maps.LatLng(31.57692 ,74.37942),new google.maps.LatLng(30.83820 ,74.37952),new google.maps.LatLng(30.87404 ,73.99097),new google.maps.LatLng(31.44956 ,75.12458),new google.maps.LatLng(31.35223 ,73.74310),new google.maps.LatLng(31.74089 ,74.94019),new google.maps.LatLng(31.35680 ,74.83257),new google.maps.LatLng(31.63724 ,74.09253),new google.maps.LatLng(31.22377 ,74.66563),new google.maps.LatLng(31.48573 ,74.94612),new google.maps.LatLng(31.87732 ,74.54689),new google.maps.LatLng(30.94350 ,74.29409),new google.maps.LatLng(31.03650 ,74.13004),new google.maps.LatLng(31.56415 ,74.17911),new google.maps.LatLng(31.03683 ,74.98449),new google.maps.LatLng(31.85136 ,74.54185),new google.maps.LatLng(30.92802 ,74.63461),new google.maps.LatLng(31.44257 ,74.57478),new google.maps.LatLng(32.23867 ,74.06158),new google.maps.LatLng(30.87441 ,74.69959),new google.maps.LatLng(30.94830 ,74.41744),new google.maps.LatLng(31.08523 ,74.11183),new google.maps.LatLng(31.64089 ,74.25027),new google.maps.LatLng(31.53174 ,73.96772),new google.maps.LatLng(32.02291 ,74.21433),new google.maps.LatLng(31.25396 ,74.74908),new google.maps.LatLng(31.68285 ,74.68373),new google.maps.LatLng(31.70502 ,74.26572),new google.maps.LatLng(31.77602 ,74.92850),new google.maps.LatLng(31.32168 ,74.44914),new google.maps.LatLng(31.75535 ,74.76186),new google.maps.LatLng(31.12819 ,73.88914),new google.maps.LatLng(30.92540 ,74.38583),new google.maps.LatLng(31.46470 ,73.95140),new google.maps.LatLng(31.57807 ,74.93096),new google.maps.LatLng(31.63354 ,74.38738),new google.maps.LatLng(31.56081 ,74.25726),new google.maps.LatLng(32.06566 ,74.12817),new google.maps.LatLng(31.85062 ,73.66308),new google.maps.LatLng(31.77244 ,73.69013),new google.maps.LatLng(31.29841 ,73.79753),new google.maps.LatLng(31.94285 ,74.13051),new google.maps.LatLng(31.40067 ,73.73499),new google.maps.LatLng(31.61156 ,74.51139),new google.maps.LatLng(31.24728 ,74.68957),new google.maps.LatLng(30.78204 ,74.44298),new google.maps.LatLng(30.79356 ,74.21986),new google.maps.LatLng(31.75773 ,74.68847),new google.maps.LatLng(31.19865 ,74.79496),new google.maps.LatLng(31.68362 ,73.91190),new google.maps.LatLng(30.83727 ,74.45291),new google.maps.LatLng(30.99016 ,74.44989),new google.maps.LatLng(31.36518 ,74.57108),new google.maps.LatLng(31.77736 ,75.06500),new google.maps.LatLng(32.01933 ,74.60134),new google.maps.LatLng(31.04038 ,74.10287),new google.maps.LatLng(30.88397 ,74.67875),new google.maps.LatLng(32.30322 ,74.28309),new google.maps.LatLng(31.64150 ,74.65983),new google.maps.LatLng(31.47587 ,75.11209),new google.maps.LatLng(30.83166 ,74.15502),new google.maps.LatLng(31.96933 ,73.75882),new google.maps.LatLng(31.45804 ,74.33045),new google.maps.LatLng(32.19821 ,74.03555),new google.maps.LatLng(31.29665 ,73.92569),new google.maps.LatLng(31.53551 ,73.86583),new google.maps.LatLng(30.84358 ,74.01974),new google.maps.LatLng(31.55725 ,73.67253),new google.maps.LatLng(31.25340 ,74.00934),new google.maps.LatLng(31.73378 ,74.68499),new google.maps.LatLng(31.17013 ,74.04571),new google.maps.LatLng(31.60418 ,74.55068),new google.maps.LatLng(31.73964 ,73.90097),new google.maps.LatLng(31.68359 ,74.00475),new google.maps.LatLng(31.64573 ,75.15032),new google.maps.LatLng(30.79056 ,74.73912),new google.maps.LatLng(31.42563 ,74.73851),new google.maps.LatLng(31.90012 ,74.14949),new google.maps.LatLng(31.21582 ,74.74610),new google.maps.LatLng(31.80663 ,74.39965),new google.maps.LatLng(30.87193 ,74.01304),new google.maps.LatLng(31.24964 ,73.78509),new google.maps.LatLng(31.49740 ,74.50357),new google.maps.LatLng(31.89211 ,73.83151),new google.maps.LatLng(31.81680 ,73.88013),new google.maps.LatLng(31.37315 ,74.62557),new google.maps.LatLng(31.36179 ,74.47384),new google.maps.LatLng(31.79768 ,74.27167),new google.maps.LatLng(31.15342 ,74.35772),new google.maps.LatLng(31.86552 ,74.69764),new google.maps.LatLng(31.67482 ,74.40591),new google.maps.LatLng(31.75583 ,74.02163),new google.maps.LatLng(32.15138 ,74.41671),new google.maps.LatLng(31.81919 ,74.21124),new google.maps.LatLng(31.57040 ,74.99732),new google.maps.LatLng(31.13498 ,73.77031),new google.maps.LatLng(31.63170 ,74.72527),new google.maps.LatLng(32.09094 ,74.64761),new google.maps.LatLng(31.86855 ,74.34639),new google.maps.LatLng(31.06711 ,74.84800),new google.maps.LatLng(30.96998 ,74.81125),new google.maps.LatLng(32.04888 ,74.22005),new google.maps.LatLng(30.98450 ,74.47873),new google.maps.LatLng(31.14216 ,74.71203),new google.maps.LatLng(31.43070 ,73.85549),new google.maps.LatLng(31.91436 ,74.57961),new google.maps.LatLng(31.40645 ,73.91779),new google.maps.LatLng(31.80692 ,74.41796),new google.maps.LatLng(31.50154 ,74.65051),new google.maps.LatLng(31.58362 ,74.69535),new google.maps.LatLng(31.34084 ,74.71336),new google.maps.LatLng(31.25900 ,75.06099),new google.maps.LatLng(31.36005 ,74.52687),new google.maps.LatLng(31.27781 ,74.54366),new google.maps.LatLng(31.33366 ,75.08370),new google.maps.LatLng(31.97503 ,74.09696),new google.maps.LatLng(31.57606 ,74.08710),new google.maps.LatLng(31.90764 ,74.86676),new google.maps.LatLng(31.36829 ,75.11501),new google.maps.LatLng(30.86644 ,74.56533),new google.maps.LatLng(30.84242 ,74.08364),new google.maps.LatLng(32.22994 ,74.66392),new google.maps.LatLng(31.32985 ,75.09559),new google.maps.LatLng(31.56390 ,74.06531),new google.maps.LatLng(31.64430 ,73.77551),new google.maps.LatLng(31.28997 ,73.90648),new google.maps.LatLng(32.08519 ,74.55576),new google.maps.LatLng(30.84927 ,74.47121),new google.maps.LatLng(31.31219 ,73.81546),new google.maps.LatLng(31.63050 ,74.48942),new google.maps.LatLng(31.89464 ,74.72833),new google.maps.LatLng(30.96945 ,74.43251),new google.maps.LatLng(31.69199 ,73.62208),new google.maps.LatLng(31.49050 ,74.75384),new google.maps.LatLng(31.59732 ,74.21584),new google.maps.LatLng(31.83360 ,73.89999),new google.maps.LatLng(31.53599 ,74.56560),new google.maps.LatLng(30.90763 ,73.92389),new google.maps.LatLng(31.97482 ,74.34086),new google.maps.LatLng(31.41929 ,74.08827),new google.maps.LatLng(31.69952 ,74.00771),new google.maps.LatLng(31.24293 ,75.06143),new google.maps.LatLng(31.37384 ,74.31383),new google.maps.LatLng(31.97277 ,74.30971),new google.maps.LatLng(31.88471 ,74.39655),new google.maps.LatLng(32.05692 ,74.26711),new google.maps.LatLng(31.74641 ,74.55363),new google.maps.LatLng(32.10388 ,74.00103),new google.maps.LatLng(32.12002 ,74.20617),new google.maps.LatLng(31.86686 ,73.67902),new google.maps.LatLng(31.85653 ,74.87285),new google.maps.LatLng(32.13820 ,73.95343),new google.maps.LatLng(31.98918 ,74.95829),new google.maps.LatLng(31.75564 ,74.93891),new google.maps.LatLng(31.93857 ,74.47978),new google.maps.LatLng(31.21704 ,74.96140),new google.maps.LatLng(31.28907 ,74.97369),new google.maps.LatLng(31.29819 ,73.98782),new google.maps.LatLng(31.01072 ,74.12252),new google.maps.LatLng(30.95134 ,74.17120),new google.maps.LatLng(31.79969 ,74.91792),new google.maps.LatLng(31.44955 ,74.81491),new google.maps.LatLng(31.33988 ,74.50406),new google.maps.LatLng(31.00845 ,74.03783),new google.maps.LatLng(31.51938 ,74.15445),new google.maps.LatLng(32.09485 ,74.25971),new google.maps.LatLng(31.85314 ,74.26043),new google.maps.LatLng(31.05036 ,74.23889),new google.maps.LatLng(31.14303 ,74.82159),new google.maps.LatLng(31.12856 ,74.03424),new google.maps.LatLng(31.63270 ,73.62907),new google.maps.LatLng(31.48194 ,74.19812),new google.maps.LatLng(30.97713 ,74.40163),new google.maps.LatLng(31.65474 ,74.54988),new google.maps.LatLng(31.99928 ,74.12060),new google.maps.LatLng(30.76003 ,74.06229),new google.maps.LatLng(31.77601 ,73.73051),new google.maps.LatLng(31.49657 ,75.04340),new google.maps.LatLng(31.91730 ,74.28991),new google.maps.LatLng(31.77652 ,74.26321),new google.maps.LatLng(31.83339 ,74.24227),new google.maps.LatLng(31.49996 ,73.91147),new google.maps.LatLng(31.76376 ,74.26575),new google.maps.LatLng(31.96068 ,74.74363),new google.maps.LatLng(32.12682 ,74.25016),new google.maps.LatLng(31.21810 ,74.78143),new google.maps.LatLng(31.77705 ,74.99044),new google.maps.LatLng(31.53122 ,73.57706),new google.maps.LatLng(31.47720 ,74.29012),new google.maps.LatLng(31.01659 ,74.19815),new google.maps.LatLng(31.93959 ,74.34181),new google.maps.LatLng(31.30160 ,74.17532),new google.maps.LatLng(30.88813 ,74.36681),new google.maps.LatLng(32.12246 ,74.62148),new google.maps.LatLng(30.97994 ,74.48550),new google.maps.LatLng(31.92674 ,74.13743),new google.maps.LatLng(32.24910 ,74.63776),new google.maps.LatLng(31.08395 ,74.60841),new google.maps.LatLng(32.08606 ,74.00817),new google.maps.LatLng(31.11660 ,74.60065),new google.maps.LatLng(32.03281 ,74.96401),new google.maps.LatLng(31.73664 ,74.40973),new google.maps.LatLng(31.86778 ,73.68265),new google.maps.LatLng(31.61116 ,74.23833),new google.maps.LatLng(31.41733 ,75.13456),new google.maps.LatLng(31.75921 ,74.63529),new google.maps.LatLng(31.25098 ,74.28702),new google.maps.LatLng(31.68420 ,74.04984),new google.maps.LatLng(31.42286 ,74.63784),new google.maps.LatLng(31.70517 ,74.34426),new google.maps.LatLng(31.04579 ,74.13809),new google.maps.LatLng(31.55914 ,74.88185),new google.maps.LatLng(31.66819 ,73.96244),new google.maps.LatLng(31.68168 ,73.76998),new google.maps.LatLng(30.86730 ,74.63657),new google.maps.LatLng(32.04356 ,74.26791),new google.maps.LatLng(31.20752 ,73.70761),new google.maps.LatLng(31.72855 ,74.29987),new google.maps.LatLng(31.03111 ,74.38141),new google.maps.LatLng(31.83883 ,74.14033),new google.maps.LatLng(31.28346 ,75.10120),new google.maps.LatLng(32.08686 ,74.03322),new google.maps.LatLng(31.44924 ,74.26162),new google.maps.LatLng(31.90230 ,73.91628),new google.maps.LatLng(32.12915 ,74.69513),new google.maps.LatLng(32.01901 ,73.76168),new google.maps.LatLng(31.96260 ,74.91142),new google.maps.LatLng(31.34631 ,74.62241),new google.maps.LatLng(32.02320 ,74.76884),new google.maps.LatLng(31.56075 ,73.75095),new google.maps.LatLng(31.46583 ,74.46074),new google.maps.LatLng(31.24975 ,73.71798),new google.maps.LatLng(31.12222 ,73.73271),new google.maps.LatLng(31.60515 ,74.11410),new google.maps.LatLng(31.96795 ,74.59955),new google.maps.LatLng(30.99616 ,73.81919),new google.maps.LatLng(31.89408 ,74.05293),new google.maps.LatLng(31.20973 ,75.08202),new google.maps.LatLng(30.91648 ,74.21092),new google.maps.LatLng(32.04480 ,74.27273),new google.maps.LatLng(32.07506 ,73.80045),new google.maps.LatLng(31.94490 ,74.61243),new google.maps.LatLng(32.15811 ,74.64768),new google.maps.LatLng(32.23650 ,74.11155),new google.maps.LatLng(31.39523 ,73.61429),new google.maps.LatLng(30.93000 ,74.52959),new google.maps.LatLng(31.40057 ,74.67041),new google.maps.LatLng(31.07945 ,74.25985),new google.maps.LatLng(31.61865 ,74.33870),new google.maps.LatLng(32.10538 ,73.96024),new google.maps.LatLng(31.38435 ,75.00437),new google.maps.LatLng(30.90483 ,74.13279),new google.maps.LatLng(31.69492 ,73.60916),new google.maps.LatLng(30.79868 ,74.36015),new google.maps.LatLng(31.14754 ,73.77638),new google.maps.LatLng(32.10985 ,74.15688),new google.maps.LatLng(31.36496 ,74.09304),new google.maps.LatLng(31.93835 ,75.02677),new google.maps.LatLng(31.53891 ,74.10948),new google.maps.LatLng(31.56954 ,75.06289),new google.maps.LatLng(31.17001 ,73.68806),new google.maps.LatLng(32.04757 ,74.41072),new google.maps.LatLng(31.45169 ,74.13039),new google.maps.LatLng(31.81437 ,74.35650),new google.maps.LatLng(31.28415 ,74.67577),new google.maps.LatLng(31.93339 ,73.89719),new google.maps.LatLng(31.67569 ,74.28160),new google.maps.LatLng(31.35111 ,73.92784),new google.maps.LatLng(31.59111 ,74.03896),new google.maps.LatLng(31.97139 ,73.93781),new google.maps.LatLng(31.57708 ,74.44351),new google.maps.LatLng(31.29244 ,73.88193),new google.maps.LatLng(31.84507 ,74.93982),new google.maps.LatLng(32.01018 ,74.89703),new google.maps.LatLng(31.79689 ,74.57390),new google.maps.LatLng(31.48181 ,74.66889),new google.maps.LatLng(32.03849 ,74.91340),new google.maps.LatLng(30.89708 ,73.96161),new google.maps.LatLng(31.33804 ,74.06693),new google.maps.LatLng(31.69570 ,74.30141),new google.maps.LatLng(31.16131 ,74.70258),new google.maps.LatLng(31.95831 ,74.57922),new google.maps.LatLng(31.12873 ,74.33644),new google.maps.LatLng(32.25815 ,74.52908),new google.maps.LatLng(31.86489 ,75.02286),new google.maps.LatLng(31.83582 ,74.80348),new google.maps.LatLng(31.63395 ,73.81283),new google.maps.LatLng(31.62454 ,74.21026),new google.maps.LatLng(31.38206 ,74.14249),new google.maps.LatLng(31.79611 ,74.82597),new google.maps.LatLng(32.01984 ,74.95707),new google.maps.LatLng(31.91457 ,74.17648),new google.maps.LatLng(31.85208 ,73.80255),new google.maps.LatLng(31.96215 ,73.71269),new google.maps.LatLng(31.80317 ,73.67462),new google.maps.LatLng(31.86387 ,73.66987),new google.maps.LatLng(31.00780 ,73.84220),new google.maps.LatLng(31.00054 ,73.82489),new google.maps.LatLng(31.22710 ,74.46782),new google.maps.LatLng(31.90420 ,75.03839),new google.maps.LatLng(31.66652 ,73.72898),new google.maps.LatLng(32.05157 ,74.08211),new google.maps.LatLng(31.00179 ,74.38175),new google.maps.LatLng(31.44548 ,73.82416),new google.maps.LatLng(31.79481 ,74.47158),new google.maps.LatLng(31.20643 ,74.02645),new google.maps.LatLng(31.56178 ,74.02343),new google.maps.LatLng(31.55417 ,73.83068),new google.maps.LatLng(31.65004 ,74.84928),new google.maps.LatLng(31.64097 ,74.88393),new google.maps.LatLng(31.72969 ,74.86073),new google.maps.LatLng(31.82504 ,74.54605),new google.maps.LatLng(32.11742 ,74.80046),new google.maps.LatLng(30.98803 ,74.38810),new google.maps.LatLng(31.25019 ,74.68991),new google.maps.LatLng(30.95215 ,74.18305),new google.maps.LatLng(32.10374 ,74.48074),new google.maps.LatLng(31.28842 ,74.10443),new google.maps.LatLng(31.12684 ,74.04131),new google.maps.LatLng(32.25865 ,74.33642),new google.maps.LatLng(31.35849 ,75.10605),new google.maps.LatLng(31.49263 ,74.00561),new google.maps.LatLng(31.19760 ,74.71165),new google.maps.LatLng(31.66235 ,74.91887),new google.maps.LatLng(31.36292 ,74.11087),new google.maps.LatLng(32.16757 ,74.22345),new google.maps.LatLng(31.05747 ,74.30037),new google.maps.LatLng(30.71909 ,74.36554),new google.maps.LatLng(31.76425 ,73.75665),new google.maps.LatLng(31.16624 ,74.21332),new google.maps.LatLng(30.80209 ,74.19234),new google.maps.LatLng(31.11050 ,74.05463),new google.maps.LatLng(31.27644 ,74.70961),new google.maps.LatLng(31.31012 ,74.63305),new google.maps.LatLng(31.92975 ,74.74708),new google.maps.LatLng(31.10860 ,74.52765),new google.maps.LatLng(30.91648 ,74.54239),new google.maps.LatLng(31.71932 ,74.54357),new google.maps.LatLng(31.65999 ,74.00053),new google.maps.LatLng(30.76165 ,74.27201),new google.maps.LatLng(31.32187 ,74.46320),new google.maps.LatLng(31.77679 ,74.10452),new google.maps.LatLng(31.50957 ,74.52597),new google.maps.LatLng(31.69604 ,73.59498),new google.maps.LatLng(32.18206 ,74.61635),new google.maps.LatLng(31.59427 ,75.02932),new google.maps.LatLng(31.82231 ,75.08169),new google.maps.LatLng(31.37810 ,73.84380),new google.maps.LatLng(31.06505 ,74.19287),new google.maps.LatLng(31.23019 ,73.85606),new google.maps.LatLng(31.35113 ,74.55747),new google.maps.LatLng(31.45792 ,73.69223),new google.maps.LatLng(31.55266 ,74.26149),new google.maps.LatLng(31.09544 ,74.45016),new google.maps.LatLng(31.58900 ,74.18139),new google.maps.LatLng(31.12563 ,74.68720),new google.maps.LatLng(31.88133 ,74.85572),new google.maps.LatLng(25.24483 ,66.28211),new google.maps.LatLng(25.04403 ,67.76790),new google.maps.LatLng(25.43684 ,66.87087),new google.maps.LatLng(24.27060 ,66.74817),new google.maps.LatLng(25.15899 ,66.74918),new google.maps.LatLng(24.83549 ,66.36452),new google.maps.LatLng(24.36512 ,66.81365),new google.maps.LatLng(24.37456 ,67.50215),new google.maps.LatLng(25.44271 ,66.41202),new google.maps.LatLng(24.56001 ,66.49575),new google.maps.LatLng(25.70140 ,67.39461),new google.maps.LatLng(24.59652 ,67.53507),new google.maps.LatLng(25.39207 ,66.60362),new google.maps.LatLng(25.03623 ,67.30377),new google.maps.LatLng(25.45867 ,67.50648),new google.maps.LatLng(24.08245 ,67.25191),new google.maps.LatLng(25.43104 ,67.74012),new google.maps.LatLng(24.61458 ,67.89713),new google.maps.LatLng(25.59878 ,66.85831),new google.maps.LatLng(24.52194 ,67.50230),new google.maps.LatLng(24.79508 ,67.17840),new google.maps.LatLng(24.42325 ,67.22907),new google.maps.LatLng(24.63825 ,66.91368),new google.maps.LatLng(25.31537 ,67.46212),new google.maps.LatLng(24.68126 ,66.96867),new google.maps.LatLng(25.30682 ,67.65680),new google.maps.LatLng(24.94806 ,67.83894),new google.maps.LatLng(24.98945 ,66.39827),new google.maps.LatLng(25.12255 ,67.12952),new google.maps.LatLng(24.24816 ,66.87272),new google.maps.LatLng(25.69908 ,67.55421),new google.maps.LatLng(25.14718 ,67.77990),new google.maps.LatLng(24.53166 ,66.32036),new google.maps.LatLng(25.10882 ,66.49829),new google.maps.LatLng(25.31553 ,66.82255),new google.maps.LatLng(24.63616 ,66.88773),new google.maps.LatLng(24.39115 ,67.22914),new google.maps.LatLng(24.88613 ,67.24925),new google.maps.LatLng(24.47116 ,67.18667),new google.maps.LatLng(25.36786 ,67.45789),new google.maps.LatLng(25.28745 ,67.56638),new google.maps.LatLng(25.24545 ,66.73856),new google.maps.LatLng(24.67400 ,66.82627),new google.maps.LatLng(24.23945 ,67.04043),new google.maps.LatLng(25.77526 ,66.72860),new google.maps.LatLng(25.24877 ,66.67477),new google.maps.LatLng(24.34275 ,67.63215),new google.maps.LatLng(25.30192 ,66.38318),new google.maps.LatLng(25.17484 ,67.17354),new google.maps.LatLng(24.22671 ,67.18217),new google.maps.LatLng(24.76806 ,67.64775),new google.maps.LatLng(24.66259 ,67.25029),new google.maps.LatLng(24.92662 ,66.93480),new google.maps.LatLng(24.47913 ,66.88368),new google.maps.LatLng(24.24076 ,66.90974),new google.maps.LatLng(25.04336 ,66.87618),new google.maps.LatLng(24.90240 ,66.88654),new google.maps.LatLng(24.20802 ,67.16369),new google.maps.LatLng(25.44762 ,66.57025),new google.maps.LatLng(24.10052 ,67.30888),new google.maps.LatLng(24.25318 ,67.00978),new google.maps.LatLng(25.51411 ,67.08790),new google.maps.LatLng(24.61921 ,66.73155),new google.maps.LatLng(25.01303 ,66.69584),new google.maps.LatLng(25.72574 ,66.73069),new google.maps.LatLng(24.50167 ,67.38893),new google.maps.LatLng(25.16162 ,67.35329),new google.maps.LatLng(24.91841 ,66.85085),new google.maps.LatLng(24.16699 ,67.22668),new google.maps.LatLng(24.48157 ,67.71916),new google.maps.LatLng(24.77557 ,66.63252),new google.maps.LatLng(25.40872 ,66.47448),new google.maps.LatLng(24.23122 ,66.96664),new google.maps.LatLng(25.13244 ,67.38887),new google.maps.LatLng(25.31234 ,67.81726),new google.maps.LatLng(24.66184 ,67.54901),new google.maps.LatLng(24.23360 ,67.33096),new google.maps.LatLng(25.28754 ,67.24063),new google.maps.LatLng(25.05580 ,66.28568),new google.maps.LatLng(24.32784 ,67.42574),new google.maps.LatLng(24.60020 ,66.69304),new google.maps.LatLng(24.84189 ,67.20876),new google.maps.LatLng(24.55141 ,67.16175),new google.maps.LatLng(24.54826 ,66.38068),new google.maps.LatLng(24.59850 ,67.08656),new google.maps.LatLng(24.91710 ,66.61504),new google.maps.LatLng(25.51181 ,67.01671),new google.maps.LatLng(25.59186 ,67.21242),new google.maps.LatLng(25.23071 ,66.71888),new google.maps.LatLng(25.83097 ,66.97072),new google.maps.LatLng(25.66637 ,67.06139),new google.maps.LatLng(25.27746 ,67.66096),new google.maps.LatLng(24.58387 ,66.94359),new google.maps.LatLng(24.68279 ,67.90885),new google.maps.LatLng(24.35993 ,66.44026),new google.maps.LatLng(25.18977 ,67.57507),new google.maps.LatLng(24.76833 ,66.77506),new google.maps.LatLng(24.33172 ,66.63224),new google.maps.LatLng(25.81940 ,66.99798),new google.maps.LatLng(25.55480 ,66.87226),new google.maps.LatLng(25.78783 ,67.38162),new google.maps.LatLng(24.96690 ,66.17412),new google.maps.LatLng(25.63920 ,67.32500),new google.maps.LatLng(24.39408 ,67.12436),new google.maps.LatLng(24.61971 ,66.46687),new google.maps.LatLng(25.77039 ,67.31061),new google.maps.LatLng(24.37528 ,67.73184),new google.maps.LatLng(25.09827 ,67.91691),new google.maps.LatLng(25.54547 ,67.25316),new google.maps.LatLng(24.11609 ,66.98627),new google.maps.LatLng(25.80237 ,67.15503),new google.maps.LatLng(25.32642 ,66.76230),new google.maps.LatLng(25.29855 ,67.87795),new google.maps.LatLng(24.56909 ,66.30997),new google.maps.LatLng(25.06196 ,66.84087),new google.maps.LatLng(24.92087 ,67.26436),new google.maps.LatLng(25.59021 ,67.27743),new google.maps.LatLng(24.75313 ,67.42093),new google.maps.LatLng(24.74661 ,67.20440),new google.maps.LatLng(24.17866 ,67.00219),new google.maps.LatLng(25.22111 ,67.55695),new google.maps.LatLng(24.13828 ,67.19521),new google.maps.LatLng(25.06493 ,67.36996),new google.maps.LatLng(24.70098 ,66.54156),new google.maps.LatLng(25.05737 ,67.54136),new google.maps.LatLng(24.74905 ,66.59200),new google.maps.LatLng(24.34742 ,66.62456),new google.maps.LatLng(24.92273 ,67.44641),new google.maps.LatLng(25.39928 ,67.49946),new google.maps.LatLng(24.08008 ,66.96745),new google.maps.LatLng(25.82171 ,67.10395),new google.maps.LatLng(24.90684 ,66.97707),new google.maps.LatLng(25.13161 ,67.53760),new google.maps.LatLng(25.31415 ,66.67422),new google.maps.LatLng(25.07607 ,66.58623),new google.maps.LatLng(25.59688 ,67.08935),new google.maps.LatLng(24.07915 ,67.10657),new google.maps.LatLng(25.02780 ,67.30808),new google.maps.LatLng(24.36046 ,67.35719),new google.maps.LatLng(24.09555 ,66.95683),new google.maps.LatLng(24.84295 ,67.72761),new google.maps.LatLng(24.84501 ,66.53882),new google.maps.LatLng(25.46140 ,67.27139),new google.maps.LatLng(25.07645 ,67.70370),new google.maps.LatLng(24.60385 ,67.42716),new google.maps.LatLng(24.52769 ,67.49695),new google.maps.LatLng(25.73917 ,67.04398),new google.maps.LatLng(25.71460 ,66.89329),new google.maps.LatLng(24.17151 ,66.69865),new google.maps.LatLng(25.40051 ,67.29436),new google.maps.LatLng(24.68885 ,66.63698),new google.maps.LatLng(25.24262 ,66.90441),new google.maps.LatLng(25.53953 ,67.60018),new google.maps.LatLng(25.36367 ,66.39565),new google.maps.LatLng(24.78175 ,66.54560),new google.maps.LatLng(24.25934 ,67.44244),new google.maps.LatLng(24.68912 ,66.52046),new google.maps.LatLng(25.11900 ,67.94707),new google.maps.LatLng(25.20392 ,67.70827),new google.maps.LatLng(25.30890 ,67.14930),new google.maps.LatLng(25.07853 ,66.27626),new google.maps.LatLng(25.11819 ,67.34402),new google.maps.LatLng(25.63869 ,67.38460),new google.maps.LatLng(24.59353 ,67.06784),new google.maps.LatLng(24.61353 ,66.24971),new google.maps.LatLng(25.31482 ,66.57791),new google.maps.LatLng(25.52298 ,66.53908),new google.maps.LatLng(25.55278 ,67.48991),new google.maps.LatLng(24.61122 ,66.24609),new google.maps.LatLng(25.08607 ,67.37511),new google.maps.LatLng(24.87028 ,66.56885),new google.maps.LatLng(24.55747 ,66.58252),new google.maps.LatLng(25.03908 ,66.62437),new google.maps.LatLng(24.97085 ,67.40720),new google.maps.LatLng(24.75601 ,67.80887),new google.maps.LatLng(25.49388 ,67.75864),new google.maps.LatLng(24.27361 ,67.05260),new google.maps.LatLng(24.50055 ,67.26259),new google.maps.LatLng(24.77087 ,66.74680),new google.maps.LatLng(24.57164 ,67.69176),new google.maps.LatLng(24.21541 ,67.01567),new google.maps.LatLng(25.64949 ,67.00874),new google.maps.LatLng(25.09817 ,66.25862),new google.maps.LatLng(24.65838 ,66.93623),new google.maps.LatLng(24.73019 ,66.57649),new google.maps.LatLng(24.74223 ,67.59985),new google.maps.LatLng(24.68427 ,67.88343),new google.maps.LatLng(25.39600 ,66.85215),new google.maps.LatLng(24.68813 ,66.31705),new google.maps.LatLng(25.70559 ,67.01727),new google.maps.LatLng(24.98511 ,66.59758),new google.maps.LatLng(25.14346 ,66.29835),new google.maps.LatLng(24.18176 ,67.02270),new google.maps.LatLng(24.74065 ,67.09774),new google.maps.LatLng(24.28384 ,67.19584),new google.maps.LatLng(25.10339 ,67.51523),new google.maps.LatLng(24.57931 ,66.81686),new google.maps.LatLng(25.02793 ,67.50868),new google.maps.LatLng(24.78673 ,66.50895),new google.maps.LatLng(24.42276 ,67.49889),new google.maps.LatLng(24.35557 ,66.96350),new google.maps.LatLng(24.96568 ,67.74600),new google.maps.LatLng(24.66080 ,66.30910),new google.maps.LatLng(24.47226 ,66.53834),new google.maps.LatLng(24.44954 ,67.53851),new google.maps.LatLng(24.69079 ,66.60864),new google.maps.LatLng(24.73350 ,66.21599),new google.maps.LatLng(25.12155 ,67.92439),new google.maps.LatLng(24.38630 ,66.59069),new google.maps.LatLng(25.07935 ,67.46451),new google.maps.LatLng(25.03642 ,67.77592),new google.maps.LatLng(25.73902 ,66.98251),new google.maps.LatLng(24.21190 ,66.70652),new google.maps.LatLng(25.47641 ,66.71933),new google.maps.LatLng(25.52295 ,67.54886),new google.maps.LatLng(24.87020 ,66.77515),new google.maps.LatLng(24.30621 ,66.72260),new google.maps.LatLng(25.50497 ,67.22453),new google.maps.LatLng(24.90202 ,66.43538),new google.maps.LatLng(24.94728 ,66.94959),new google.maps.LatLng(24.70838 ,67.24472),new google.maps.LatLng(25.28829 ,67.51214),new google.maps.LatLng(24.60416 ,66.60483),new google.maps.LatLng(24.23562 ,66.74196),new google.maps.LatLng(25.04671 ,66.49541),new google.maps.LatLng(24.27188 ,67.26475),new google.maps.LatLng(24.79923 ,67.50673),new google.maps.LatLng(24.91684 ,67.66397),new google.maps.LatLng(25.67975 ,66.65543),new google.maps.LatLng(24.59066 ,67.84121),new google.maps.LatLng(25.35663 ,67.38555),new google.maps.LatLng(24.79243 ,67.73013),new google.maps.LatLng(25.03014 ,66.53232),new google.maps.LatLng(25.11591 ,67.80263),new google.maps.LatLng(24.17764 ,67.24475),new google.maps.LatLng(24.89375 ,66.91085),new google.maps.LatLng(25.12512 ,67.08767),new google.maps.LatLng(25.42467 ,66.94106),new google.maps.LatLng(25.46159 ,67.68154),new google.maps.LatLng(25.28241 ,67.21635),new google.maps.LatLng(24.65406 ,67.10857),new google.maps.LatLng(24.36010 ,67.00582),new google.maps.LatLng(25.02745 ,67.78176),new google.maps.LatLng(25.20860 ,66.40264),new google.maps.LatLng(24.72071 ,66.37355),new google.maps.LatLng(25.18442 ,66.38279),new google.maps.LatLng(25.48444 ,66.55604),new google.maps.LatLng(24.74623 ,67.33637),new google.maps.LatLng(25.04359 ,67.13932),new google.maps.LatLng(25.27979 ,67.82849),new google.maps.LatLng(24.94167 ,67.52624),new google.maps.LatLng(24.68150 ,66.39236),new google.maps.LatLng(25.61386 ,66.96711),new google.maps.LatLng(24.46789 ,67.50994),new google.maps.LatLng(25.56044 ,67.36111),new google.maps.LatLng(24.10117 ,66.93117),new google.maps.LatLng(25.03855 ,66.94720),new google.maps.LatLng(24.80311 ,67.71216),new google.maps.LatLng(24.80276 ,67.57027),new google.maps.LatLng(24.15239 ,67.09131),new google.maps.LatLng(25.07898 ,67.93672),new google.maps.LatLng(25.06878 ,67.55495),new google.maps.LatLng(25.32559 ,66.58265),new google.maps.LatLng(24.99738 ,66.97731),new google.maps.LatLng(25.39439 ,67.63855),new google.maps.LatLng(24.55357 ,67.61534),new google.maps.LatLng(24.16707 ,66.91764),new google.maps.LatLng(25.44957 ,67.27522),new google.maps.LatLng(25.17691 ,66.32307),new google.maps.LatLng(24.27596 ,66.73533),new google.maps.LatLng(24.65055 ,67.27342),new google.maps.LatLng(25.20094 ,67.21809),new google.maps.LatLng(25.44902 ,67.01229),new google.maps.LatLng(25.37215 ,66.63708),new google.maps.LatLng(24.28741 ,67.18963),new google.maps.LatLng(24.97741 ,66.28286),new google.maps.LatLng(25.59354 ,67.01506),new google.maps.LatLng(24.73308 ,66.95513),new google.maps.LatLng(25.38473 ,67.43651),new google.maps.LatLng(25.57790 ,67.23379),new google.maps.LatLng(24.43005 ,66.93648),new google.maps.LatLng(25.10640 ,67.69872),new google.maps.LatLng(24.36824 ,67.29901),new google.maps.LatLng(24.70343 ,66.20503),new google.maps.LatLng(25.63615 ,67.05392),new google.maps.LatLng(24.79395 ,67.78342),new google.maps.LatLng(24.82422 ,67.11748),new google.maps.LatLng(24.61731 ,67.06617),new google.maps.LatLng(25.11181 ,67.17789),new google.maps.LatLng(25.54451 ,66.62683),new google.maps.LatLng(24.82406 ,66.43494),new google.maps.LatLng(24.72285 ,66.76450),new google.maps.LatLng(25.33729 ,66.44261),new google.maps.LatLng(24.53872 ,67.47839),new google.maps.LatLng(24.58802 ,66.83493),new google.maps.LatLng(24.78936 ,67.90097),new google.maps.LatLng(24.45406 ,66.54251),new google.maps.LatLng(25.62890 ,66.72629),new google.maps.LatLng(25.37393 ,67.47427),new google.maps.LatLng(25.08326 ,67.31395),new google.maps.LatLng(24.74724 ,67.18147),new google.maps.LatLng(25.31936 ,66.69172),new google.maps.LatLng(25.01239 ,67.34134),new google.maps.LatLng(24.45171 ,67.14394),new google.maps.LatLng(24.27315 ,66.86518),new google.maps.LatLng(24.49200 ,66.69052),new google.maps.LatLng(24.83034 ,66.32201),new google.maps.LatLng(25.78755 ,67.35498),new google.maps.LatLng(24.13682 ,67.23382),new google.maps.LatLng(24.33289 ,67.11310),new google.maps.LatLng(24.70718 ,66.89430),new google.maps.LatLng(25.51777 ,67.74562),new google.maps.LatLng(24.62126 ,66.98027),new google.maps.LatLng(24.41052 ,67.34054),new google.maps.LatLng(24.86500 ,67.38035),new google.maps.LatLng(24.37504 ,66.58218),new google.maps.LatLng(25.25124 ,66.72666),new google.maps.LatLng(24.40261 ,66.66124),new google.maps.LatLng(25.10062 ,67.70617),new google.maps.LatLng(24.21527 ,67.40159),new google.maps.LatLng(25.31707 ,67.24038),new google.maps.LatLng(24.45924 ,67.26972),new google.maps.LatLng(25.07244 ,67.17929),new google.maps.LatLng(24.92880 ,66.86196),new google.maps.LatLng(25.46742 ,66.83281),new google.maps.LatLng(24.54053 ,67.72629),new google.maps.LatLng(25.22426 ,67.81360),new google.maps.LatLng(24.78022 ,67.52650),new google.maps.LatLng(24.19869 ,66.59514),new google.maps.LatLng(24.18810 ,67.50498),new google.maps.LatLng(25.42544 ,66.54400),new google.maps.LatLng(24.13709 ,66.79558),new google.maps.LatLng(24.27983 ,67.37989),new google.maps.LatLng(24.96270 ,67.35238),new google.maps.LatLng(25.28617 ,66.66805),new google.maps.LatLng(24.63183 ,67.48920),new google.maps.LatLng(24.98673 ,67.43414),new google.maps.LatLng(24.42651 ,66.93372),new google.maps.LatLng(24.23337 ,67.58123),new google.maps.LatLng(24.67749 ,66.36776),new google.maps.LatLng(24.83688 ,67.91717),new google.maps.LatLng(24.63800 ,67.07676),new google.maps.LatLng(24.96688 ,67.94519),new google.maps.LatLng(25.36854 ,66.81192),new google.maps.LatLng(24.44003 ,67.46554),new google.maps.LatLng(24.75044 ,66.46044),new google.maps.LatLng(24.34374 ,67.28619),new google.maps.LatLng(24.88160 ,66.33351),new google.maps.LatLng(24.26542 ,66.97497),new google.maps.LatLng(25.15074 ,66.57075),new google.maps.LatLng(25.47957 ,67.18842),new google.maps.LatLng(24.49697 ,67.54903),new google.maps.LatLng(24.39917 ,66.84733),new google.maps.LatLng(25.23306 ,67.20260),new google.maps.LatLng(24.46001 ,67.80913),new google.maps.LatLng(24.32668 ,67.40392),new google.maps.LatLng(25.21578 ,67.05264),new google.maps.LatLng(24.83270 ,66.42165),new google.maps.LatLng(25.00381 ,67.03296),new google.maps.LatLng(24.95631 ,66.70767),new google.maps.LatLng(24.13885 ,67.05725),new google.maps.LatLng(24.94268 ,66.35718),new google.maps.LatLng(25.50861 ,67.49019),new google.maps.LatLng(24.69047 ,67.85662),new google.maps.LatLng(24.09621 ,67.32363),new google.maps.LatLng(25.21385 ,67.59707),new google.maps.LatLng(24.94159 ,67.53080),new google.maps.LatLng(24.91621 ,66.49744),new google.maps.LatLng(25.30797 ,67.40847),new google.maps.LatLng(25.04756 ,66.88606),new google.maps.LatLng(25.12132 ,66.63803),new google.maps.LatLng(25.27260 ,66.74913),new google.maps.LatLng(24.65928 ,66.26717),new google.maps.LatLng(25.58214 ,66.90169),new google.maps.LatLng(24.61684 ,67.54981),new google.maps.LatLng(24.43787 ,67.78298),new google.maps.LatLng(25.45967 ,66.55180),new google.maps.LatLng(25.39700 ,66.65318),new google.maps.LatLng(24.74361 ,66.71682),new google.maps.LatLng(24.07806 ,67.04732),new google.maps.LatLng(24.29910 ,67.52666),new google.maps.LatLng(24.20117 ,67.23243),new google.maps.LatLng(25.45740 ,66.80982),new google.maps.LatLng(24.53850 ,67.13966),new google.maps.LatLng(25.54668 ,67.58370),new google.maps.LatLng(25.46311 ,67.67413),new google.maps.LatLng(24.12410 ,67.08026),new google.maps.LatLng(25.66549 ,66.98793),new google.maps.LatLng(24.85386 ,67.07865),new google.maps.LatLng(25.01481 ,66.45422),new google.maps.LatLng(25.42296 ,66.98519),new google.maps.LatLng(25.02103 ,67.01553),new google.maps.LatLng(25.16309 ,67.92503),new google.maps.LatLng(24.71929 ,66.21713),new google.maps.LatLng(24.10779 ,66.74771),new google.maps.LatLng(25.14460 ,66.54938),new google.maps.LatLng(24.52311 ,67.20838),new google.maps.LatLng(25.00317 ,67.56225),new google.maps.LatLng(24.86287 ,67.55583),new google.maps.LatLng(24.47360 ,67.63409),new google.maps.LatLng(24.61653 ,67.85663),new google.maps.LatLng(25.17725 ,66.33189),new google.maps.LatLng(24.55545 ,67.20279),new google.maps.LatLng(24.70176 ,66.62676),new google.maps.LatLng(24.50029 ,66.67372),new google.maps.LatLng(24.88196 ,66.18511),new google.maps.LatLng(24.67024 ,67.56094),new google.maps.LatLng(25.41799 ,67.79168),new google.maps.LatLng(24.91238 ,67.55977),new google.maps.LatLng(25.35073 ,66.31796),new google.maps.LatLng(24.17891 ,67.33511),new google.maps.LatLng(24.16214 ,67.42104),new google.maps.LatLng(25.08870 ,67.75864),new google.maps.LatLng(24.76131 ,67.10190),new google.maps.LatLng(24.75202 ,66.44323),new google.maps.LatLng(24.24665 ,67.34789),new google.maps.LatLng(24.21830 ,66.89620),new google.maps.LatLng(24.96130 ,66.77135),new google.maps.LatLng(25.79369 ,67.27406),new google.maps.LatLng(24.96814 ,66.59355),new google.maps.LatLng(24.83756 ,67.88770),new google.maps.LatLng(25.20435 ,67.51406),new google.maps.LatLng(24.91318 ,66.38386),new google.maps.LatLng(25.09502 ,66.48825),new google.maps.LatLng(25.75096 ,66.87974),new google.maps.LatLng(24.36404 ,66.62302),new google.maps.LatLng(24.26556 ,67.56953),new google.maps.LatLng(25.36540 ,66.41451),new google.maps.LatLng(24.35258 ,67.45930),new google.maps.LatLng(24.52908 ,66.37859),new google.maps.LatLng(24.92314 ,67.53790),new google.maps.LatLng(25.40031 ,67.62650),new google.maps.LatLng(24.26607 ,67.51213),new google.maps.LatLng(24.42855 ,67.56865),new google.maps.LatLng(25.27617 ,67.61257),new google.maps.LatLng(25.12925 ,66.78157),new google.maps.LatLng(24.58781 ,66.39189),new google.maps.LatLng(24.41249 ,66.89096),new google.maps.LatLng(24.73240 ,66.22674),new google.maps.LatLng(24.37421 ,66.51004),new google.maps.LatLng(25.27475 ,66.39215),new google.maps.LatLng(24.93450 ,67.67752),new google.maps.LatLng(25.23020 ,66.85760),new google.maps.LatLng(24.84796 ,67.87843),new google.maps.LatLng(24.65072 ,67.79793),new google.maps.LatLng(24.84785 ,66.20802),new google.maps.LatLng(25.31636 ,66.72752),new google.maps.LatLng(24.39671 ,67.69955),new google.maps.LatLng(25.54046 ,66.51169),new google.maps.LatLng(24.26944 ,66.58279),new google.maps.LatLng(24.39203 ,67.05321),new google.maps.LatLng(24.42426 ,66.72158),new google.maps.LatLng(25.81389 ,67.02546),new google.maps.LatLng(25.41122 ,66.54340),new google.maps.LatLng(25.47280 ,66.47714),new google.maps.LatLng(24.54632 ,66.33971),new google.maps.LatLng(24.13347 ,66.92562),new google.maps.LatLng(25.50790 ,66.67217),new google.maps.LatLng(24.81524 ,66.53629),new google.maps.LatLng(24.58250 ,67.76639),new google.maps.LatLng(24.62874 ,66.85545),new google.maps.LatLng(25.12824 ,66.32657),new google.maps.LatLng(25.66579 ,67.26465),new google.maps.LatLng(24.28897 ,67.38235),new google.maps.LatLng(24.74204 ,66.68541),new google.maps.LatLng(25.51104 ,66.61762),new google.maps.LatLng(24.89923 ,66.59308),new google.maps.LatLng(25.06939 ,66.21416),new google.maps.LatLng(24.51380 ,67.50618),new google.maps.LatLng(25.40095 ,67.73891),new google.maps.LatLng(25.41564 ,67.64596),new google.maps.LatLng(24.74529 ,67.57128),new google.maps.LatLng(25.20891 ,66.72197),new google.maps.LatLng(25.50708 ,66.87210),new google.maps.LatLng(24.39563 ,66.67998),new google.maps.LatLng(25.28803 ,66.47729),new google.maps.LatLng(25.51550 ,66.88458),new google.maps.LatLng(25.54938 ,67.01867),new google.maps.LatLng(24.44352 ,66.56221),new google.maps.LatLng(25.13452 ,66.38705),new google.maps.LatLng(25.37212 ,66.80738),new google.maps.LatLng(25.17627 ,67.41377),new google.maps.LatLng(24.56639 ,66.55263),new google.maps.LatLng(25.46578 ,67.58687),new google.maps.LatLng(24.90370 ,67.61519),new google.maps.LatLng(25.71941 ,67.32134),new google.maps.LatLng(25.07160 ,67.58848),new google.maps.LatLng(25.01974 ,67.57402),new google.maps.LatLng(24.11620 ,66.94274),new google.maps.LatLng(25.32521 ,66.53610),new google.maps.LatLng(25.50533 ,67.35441),new google.maps.LatLng(24.24278 ,67.02961),new google.maps.LatLng(25.53752 ,67.03455),new google.maps.LatLng(24.36124 ,67.70282),new google.maps.LatLng(25.43868 ,66.46210),new google.maps.LatLng(25.15666 ,67.83497),new google.maps.LatLng(24.38485 ,66.46610),new google.maps.LatLng(25.26818 ,66.24495),new google.maps.LatLng(25.07404 ,67.02136),new google.maps.LatLng(25.51093 ,67.56783),new google.maps.LatLng(24.73386 ,67.47709),new google.maps.LatLng(25.38774 ,67.28599),new google.maps.LatLng(24.95273 ,67.31802),new google.maps.LatLng(25.23352 ,67.18799),new google.maps.LatLng(24.94186 ,67.78580),new google.maps.LatLng(24.87903 ,67.00505),new google.maps.LatLng(25.37407 ,66.93808),new google.maps.LatLng(25.67637 ,67.28024),new google.maps.LatLng(24.54184 ,66.57479),new google.maps.LatLng(24.68977 ,66.95400),new google.maps.LatLng(25.32113 ,66.55517),new google.maps.LatLng(24.24191 ,67.57221),new google.maps.LatLng(24.63907 ,66.31048),new google.maps.LatLng(25.14207 ,66.44196),new google.maps.LatLng(25.53178 ,66.90299),new google.maps.LatLng(24.56731 ,67.53413),new google.maps.LatLng(25.04176 ,67.14840),new google.maps.LatLng(25.31949 ,67.86363),new google.maps.LatLng(25.45591 ,66.46746),new google.maps.LatLng(25.04252 ,67.56670),new google.maps.LatLng(25.55773 ,66.90554),new google.maps.LatLng(24.99506 ,67.76007),new google.maps.LatLng(24.79399 ,67.41594),new google.maps.LatLng(25.14931 ,66.60074),new google.maps.LatLng(24.32315 ,67.17482),new google.maps.LatLng(24.47562 ,66.68494),new google.maps.LatLng(25.74914 ,66.98757),new google.maps.LatLng(25.09587 ,67.87083),new google.maps.LatLng(24.42799 ,67.61377),new google.maps.LatLng(24.35153 ,66.56862),new google.maps.LatLng(25.08709 ,67.29759),new google.maps.LatLng(25.57376 ,66.45531),new google.maps.LatLng(25.02091 ,67.06876),new google.maps.LatLng(24.55823 ,66.90186),new google.maps.LatLng(25.34170 ,66.95889),new google.maps.LatLng(25.63727 ,66.75782),new google.maps.LatLng(25.39815 ,66.83574),new google.maps.LatLng(25.58421 ,66.80235),new google.maps.LatLng(24.42041 ,66.72301),new google.maps.LatLng(25.69755 ,67.14462),new google.maps.LatLng(24.71161 ,66.46937),new google.maps.LatLng(25.03106 ,67.62420),new google.maps.LatLng(25.53962 ,66.42894),new google.maps.LatLng(24.70246 ,66.31323),new google.maps.LatLng(24.69476 ,66.42688),new google.maps.LatLng(24.63472 ,66.66203),new google.maps.LatLng(24.95605 ,67.11906),new google.maps.LatLng(25.24322 ,66.24265),new google.maps.LatLng(24.97207 ,66.56620),new google.maps.LatLng(24.81149 ,66.37486),new google.maps.LatLng(25.46874 ,66.90902),new google.maps.LatLng(24.84009 ,67.16287),new google.maps.LatLng(24.96441 ,66.35870),new google.maps.LatLng(24.98261 ,67.92825),new google.maps.LatLng(24.17073 ,66.95379),new google.maps.LatLng(24.89269 ,67.63732),new google.maps.LatLng(24.15099 ,66.88536),new google.maps.LatLng(25.19106 ,67.32493),new google.maps.LatLng(25.16545 ,67.42288),new google.maps.LatLng(24.69114 ,66.36325),new google.maps.LatLng(25.36384 ,67.63919),new google.maps.LatLng(24.89662 ,66.92090),new google.maps.LatLng(25.22940 ,67.35361),new google.maps.LatLng(24.54060 ,66.83256),new google.maps.LatLng(25.09195 ,66.57869),new google.maps.LatLng(25.14248 ,66.23836),new google.maps.LatLng(24.45190 ,67.61767),new google.maps.LatLng(25.28078 ,67.68849),new google.maps.LatLng(25.17489 ,67.66331),new google.maps.LatLng(25.75548 ,66.79583),new google.maps.LatLng(25.61234 ,67.44666),new google.maps.LatLng(25.16766 ,66.55896),new google.maps.LatLng(24.97355 ,67.17601),new google.maps.LatLng(25.61638 ,67.52357),new google.maps.LatLng(25.72696 ,67.30409),new google.maps.LatLng(24.75952 ,66.96892),new google.maps.LatLng(25.74514 ,67.35747),new google.maps.LatLng(24.69395 ,67.68706),new google.maps.LatLng(24.84920 ,66.71101),new google.maps.LatLng(24.36461 ,66.94740),new google.maps.LatLng(25.44393 ,67.19628),new google.maps.LatLng(25.54958 ,66.65877),new google.maps.LatLng(25.08904 ,66.61405),new google.maps.LatLng(25.74827 ,67.29331),new google.maps.LatLng(24.26782 ,67.63814),new google.maps.LatLng(25.60241 ,66.76900),new google.maps.LatLng(24.30831 ,67.55825),new google.maps.LatLng(24.74972 ,67.70691),new google.maps.LatLng(25.18675 ,67.68026),new google.maps.LatLng(24.87677 ,67.43092),new google.maps.LatLng(24.70780 ,66.47539),new google.maps.LatLng(25.32630 ,66.50068),new google.maps.LatLng(24.95949 ,66.77669),new google.maps.LatLng(24.11897 ,67.40028),new google.maps.LatLng(25.50563 ,66.99370),new google.maps.LatLng(24.25545 ,67.17891),new google.maps.LatLng(25.67069 ,67.41523),new google.maps.LatLng(25.81476 ,67.16488),new google.maps.LatLng(25.24049 ,66.51353),new google.maps.LatLng(25.55294 ,67.30647),new google.maps.LatLng(24.54880 ,66.74659),new google.maps.LatLng(25.54907 ,66.93206),new google.maps.LatLng(24.93641 ,66.37941),new google.maps.LatLng(25.57059 ,66.81359),new google.maps.LatLng(24.81047 ,66.29987),new google.maps.LatLng(25.38478 ,67.59469),new google.maps.LatLng(24.73832 ,67.87453),new google.maps.LatLng(25.16623 ,67.29281),new google.maps.LatLng(25.69619 ,67.44371),new google.maps.LatLng(25.11743 ,66.49604),new google.maps.LatLng(24.90957 ,67.29231),new google.maps.LatLng(25.47157 ,66.71296),new google.maps.LatLng(25.64536 ,67.32293),new google.maps.LatLng(25.11551 ,66.45326),new google.maps.LatLng(25.58084 ,66.86460),new google.maps.LatLng(24.84953 ,67.30423),new google.maps.LatLng(24.63967 ,66.24408),new google.maps.LatLng(24.87883 ,67.65885),new google.maps.LatLng(24.53827 ,66.27394),new google.maps.LatLng(24.31057 ,66.60982),new google.maps.LatLng(24.06143 ,67.03476),new google.maps.LatLng(24.35751 ,66.72386),new google.maps.LatLng(25.28228 ,67.70196),new google.maps.LatLng(24.55119 ,66.69696),new google.maps.LatLng(24.86100 ,67.11014),new google.maps.LatLng(25.00509 ,66.59434),new google.maps.LatLng(24.24341 ,67.47856),new google.maps.LatLng(24.84133 ,66.61507),new google.maps.LatLng(24.58501 ,67.25295),new google.maps.LatLng(25.51801 ,67.03435),new google.maps.LatLng(24.26987 ,67.35195),new google.maps.LatLng(25.34284 ,66.41184),new google.maps.LatLng(24.24597 ,67.22602),new google.maps.LatLng(24.64016 ,67.69829),new google.maps.LatLng(24.84266 ,67.67256),new google.maps.LatLng(24.08808 ,67.07179),new google.maps.LatLng(24.95615 ,66.28189),new google.maps.LatLng(24.43841 ,66.55757),new google.maps.LatLng(25.24152 ,66.43143),new google.maps.LatLng(25.16034 ,66.88136),new google.maps.LatLng(25.59613 ,67.37754),new google.maps.LatLng(25.27829 ,67.02170),new google.maps.LatLng(25.11877 ,66.62313),new google.maps.LatLng(24.75799 ,66.35430),new google.maps.LatLng(24.86938 ,67.50035),new google.maps.LatLng(24.43528 ,67.45049),new google.maps.LatLng(25.39045 ,66.60916),new google.maps.LatLng(24.52655 ,67.46784),new google.maps.LatLng(25.25721 ,66.78824),new google.maps.LatLng(24.61242 ,67.00182),new google.maps.LatLng(24.57019 ,67.77996),new google.maps.LatLng(24.94472 ,66.56158),new google.maps.LatLng(25.82672 ,66.94146),new google.maps.LatLng(25.05396 ,66.42537),new google.maps.LatLng(25.42775 ,67.25970),new google.maps.LatLng(24.95397 ,66.80936),new google.maps.LatLng(25.28885 ,66.53619),new google.maps.LatLng(24.71596 ,66.77185),new google.maps.LatLng(25.69298 ,67.18929),new google.maps.LatLng(24.70468 ,66.67593),new google.maps.LatLng(25.44111 ,67.02417),new google.maps.LatLng(24.20656 ,67.22163),new google.maps.LatLng(24.91952 ,67.64097),new google.maps.LatLng(24.23747 ,67.48193),new google.maps.LatLng(24.87482 ,67.41128),new google.maps.LatLng(24.57802 ,66.91830),new google.maps.LatLng(25.70504 ,66.87991),new google.maps.LatLng(24.92846 ,67.03656),new google.maps.LatLng(24.18371 ,67.01503),new google.maps.LatLng(24.70240 ,67.05583),new google.maps.LatLng(24.64157 ,67.26668),new google.maps.LatLng(25.22970 ,67.57689),new google.maps.LatLng(24.48330 ,67.64058),new google.maps.LatLng(25.25947 ,66.72810),new google.maps.LatLng(25.77333 ,67.27537),new google.maps.LatLng(24.91198 ,66.84796),new google.maps.LatLng(24.58767 ,67.28064),new google.maps.LatLng(25.19289 ,66.32529),new google.maps.LatLng(24.11598 ,67.32211),new google.maps.LatLng(24.93678 ,67.27643),new google.maps.LatLng(24.69277 ,67.46770),new google.maps.LatLng(25.70738 ,67.17769),new google.maps.LatLng(25.34543 ,67.61617),new google.maps.LatLng(24.46897 ,66.99146),new google.maps.LatLng(24.94802 ,66.61652),new google.maps.LatLng(24.99010 ,67.47249),new google.maps.LatLng(24.22812 ,66.86306),new google.maps.LatLng(24.35513 ,66.48742),new google.maps.LatLng(25.78095 ,66.91421),new google.maps.LatLng(25.09973 ,67.89482),new google.maps.LatLng(25.58685 ,67.65286),new google.maps.LatLng(24.16346 ,66.67439),new google.maps.LatLng(25.46076 ,67.73388),new google.maps.LatLng(24.95835 ,66.93710),new google.maps.LatLng(24.12831 ,67.05131),new google.maps.LatLng(24.79008 ,67.71105),new google.maps.LatLng(25.09486 ,67.43725),new google.maps.LatLng(24.29636 ,67.36797),new google.maps.LatLng(24.66495 ,67.89395),new google.maps.LatLng(24.89134 ,66.79033),new google.maps.LatLng(24.31425 ,67.48365),new google.maps.LatLng(24.29387 ,66.55584),new google.maps.LatLng(24.16573 ,67.20795),new google.maps.LatLng(25.32640 ,66.67221),new google.maps.LatLng(25.36018 ,67.20543),new google.maps.LatLng(24.58081 ,66.29001),new google.maps.LatLng(25.20829 ,67.15911),new google.maps.LatLng(25.38222 ,67.65078),new google.maps.LatLng(25.55894 ,66.59803),new google.maps.LatLng(25.35402 ,67.77592),new google.maps.LatLng(25.34190 ,66.81521),new google.maps.LatLng(24.75344 ,67.73507),new google.maps.LatLng(25.16395 ,66.48914),new google.maps.LatLng(25.13276 ,66.90726),new google.maps.LatLng(25.31500 ,66.77597),new google.maps.LatLng(25.61484 ,67.28433),new google.maps.LatLng(24.90138 ,66.37485),new google.maps.LatLng(24.60063 ,67.04225),new google.maps.LatLng(24.80372 ,67.27267),new google.maps.LatLng(24.59599 ,66.27515),new google.maps.LatLng(24.49348 ,67.62469),new google.maps.LatLng(24.22224 ,66.96866),new google.maps.LatLng(24.45551 ,66.82782),new google.maps.LatLng(24.57214 ,66.84190),new google.maps.LatLng(25.01220 ,67.56317),new google.maps.LatLng(24.75133 ,66.82288),new google.maps.LatLng(25.64146 ,66.57488),new google.maps.LatLng(25.32467 ,66.66773),new google.maps.LatLng(24.72381 ,67.93034),new google.maps.LatLng(25.16114 ,66.26553),new google.maps.LatLng(24.36840 ,67.45335),new google.maps.LatLng(25.59432 ,66.92574),new google.maps.LatLng(25.00506 ,67.60966),new google.maps.LatLng(25.29062 ,66.30605),new google.maps.LatLng(25.27116 ,66.63421),new google.maps.LatLng(24.50456 ,67.67893),new google.maps.LatLng(25.40334 ,67.40510),new google.maps.LatLng(24.83910 ,66.37397),new google.maps.LatLng(24.32187 ,67.61304),new google.maps.LatLng(24.51431 ,67.48680),new google.maps.LatLng(24.80613 ,67.08157),new google.maps.LatLng(24.97366 ,66.93025),new google.maps.LatLng(25.50534 ,67.36135),new google.maps.LatLng(25.34855 ,66.96917),new google.maps.LatLng(24.59102 ,67.80699),new google.maps.LatLng(24.96731 ,66.48799),new google.maps.LatLng(24.95596 ,67.74517),new google.maps.LatLng(24.78068 ,66.86702),new google.maps.LatLng(25.37041 ,66.61465),new google.maps.LatLng(24.40860 ,67.69751),new google.maps.LatLng(24.74438 ,66.43049),new google.maps.LatLng(25.07051 ,66.26981),new google.maps.LatLng(24.32339 ,67.17952),new google.maps.LatLng(24.35143 ,66.70730),new google.maps.LatLng(25.49318 ,67.22575),new google.maps.LatLng(24.27154 ,67.58656),new google.maps.LatLng(24.96028 ,67.33633),new google.maps.LatLng(24.49270 ,66.43556),new google.maps.LatLng(24.10491 ,66.76641),new google.maps.LatLng(24.95278 ,66.66690),new google.maps.LatLng(24.41598 ,67.63234),new google.maps.LatLng(24.99321 ,66.91822),new google.maps.LatLng(25.08900 ,67.64029),new google.maps.LatLng(25.13345 ,67.94681),new google.maps.LatLng(25.43496 ,66.65836),new google.maps.LatLng(25.23128 ,67.04554),new google.maps.LatLng(24.51988 ,67.70092),new google.maps.LatLng(24.80000 ,67.60164),new google.maps.LatLng(25.77787 ,66.78838),new google.maps.LatLng(24.73566 ,66.70906),new google.maps.LatLng(24.81900 ,66.23200),new google.maps.LatLng(24.91176 ,67.77127),new google.maps.LatLng(25.59338 ,66.72362),new google.maps.LatLng(25.39786 ,67.25247),new google.maps.LatLng(25.57665 ,66.95073),new google.maps.LatLng(24.87576 ,66.84023),new google.maps.LatLng(25.44214 ,67.39570),new google.maps.LatLng(25.15162 ,66.75334),new google.maps.LatLng(24.67720 ,67.01148),new google.maps.LatLng(24.84072 ,67.40406),new google.maps.LatLng(24.98465 ,67.49617),new google.maps.LatLng(25.41062 ,66.31469),new google.maps.LatLng(25.02849 ,67.49013),new google.maps.LatLng(25.27713 ,67.18085),new google.maps.LatLng(25.05202 ,66.28302),new google.maps.LatLng(25.24700 ,66.88256),new google.maps.LatLng(24.43162 ,66.74819),new google.maps.LatLng(24.45895 ,66.84985),new google.maps.LatLng(24.65205 ,66.30424),new google.maps.LatLng(24.53536 ,67.24967),new google.maps.LatLng(25.48880 ,66.59381),new google.maps.LatLng(25.14078 ,66.69982),new google.maps.LatLng(25.53602 ,67.67429),new google.maps.LatLng(25.01334 ,66.55090),new google.maps.LatLng(24.71144 ,66.58412),new google.maps.LatLng(25.29864 ,66.67286),new google.maps.LatLng(24.90275 ,67.80696),new google.maps.LatLng(24.38827 ,66.89809),new google.maps.LatLng(25.02640 ,67.35697),new google.maps.LatLng(25.16800 ,66.19993),new google.maps.LatLng(25.13969 ,66.62079),new google.maps.LatLng(25.68083 ,66.65070),new google.maps.LatLng(25.14532 ,67.93507),new google.maps.LatLng(25.21444 ,67.17369),new google.maps.LatLng(25.15217 ,67.40009),new google.maps.LatLng(25.42554 ,67.62091),new google.maps.LatLng(24.91048 ,67.77909),new google.maps.LatLng(24.87295 ,66.65303),new google.maps.LatLng(25.58162 ,67.65421),new google.maps.LatLng(24.12141 ,67.20485),new google.maps.LatLng(24.69057 ,67.59684),new google.maps.LatLng(24.58572 ,66.50274),new google.maps.LatLng(24.32715 ,67.37054),new google.maps.LatLng(24.93440 ,66.60762),new google.maps.LatLng(25.53533 ,66.48399),new google.maps.LatLng(25.67831 ,66.76927),new google.maps.LatLng(24.92439 ,66.48837),new google.maps.LatLng(24.85370 ,66.68097),new google.maps.LatLng(24.34860 ,67.34552),new google.maps.LatLng(24.95863 ,66.95506),new google.maps.LatLng(25.20688 ,66.26018),new google.maps.LatLng(24.18063 ,66.65265),new google.maps.LatLng(25.42977 ,67.49746),new google.maps.LatLng(24.40645 ,67.41271),new google.maps.LatLng(25.48401 ,66.74488),new google.maps.LatLng(25.39330 ,66.70116),new google.maps.LatLng(24.58533 ,66.30876),new google.maps.LatLng(24.91323 ,67.78357),new google.maps.LatLng(25.48334 ,66.56328),new google.maps.LatLng(24.37795 ,67.36307)]; \r\n }\r\n else if(type == 3){\r\n return [new google.maps.LatLng(33.23865 ,73.37688),new google.maps.LatLng(34.01059 ,73.34922),new google.maps.LatLng(33.18854 ,73.27111),new google.maps.LatLng(33.48584 ,72.53440),new google.maps.LatLng(33.37013 ,72.59359),new google.maps.LatLng(33.29423 ,73.38170),new google.maps.LatLng(33.57813 ,72.68459),new google.maps.LatLng(33.40497 ,73.23709),new google.maps.LatLng(33.38489 ,73.53116),new google.maps.LatLng(33.89713 ,72.67733),new google.maps.LatLng(33.52294 ,72.99412),new google.maps.LatLng(33.20702 ,72.94015),new google.maps.LatLng(33.08492 ,73.25523),new google.maps.LatLng(33.24274 ,73.52370),new google.maps.LatLng(33.99114 ,73.09674),new google.maps.LatLng(33.33870 ,73.40919),new google.maps.LatLng(33.91398 ,73.22792),new google.maps.LatLng(33.81898 ,73.58822),new google.maps.LatLng(33.60789 ,72.43287),new google.maps.LatLng(33.54885 ,73.04440),new google.maps.LatLng(33.26042 ,73.53229),new google.maps.LatLng(33.78226 ,73.49425),new google.maps.LatLng(33.74069 ,73.18464),new google.maps.LatLng(33.48375 ,72.72712),new google.maps.LatLng(34.09410 ,73.07648),new google.maps.LatLng(33.61848 ,73.13195),new google.maps.LatLng(34.14557 ,72.69829),new google.maps.LatLng(33.59311 ,72.52536),new google.maps.LatLng(33.27939 ,72.54358),new google.maps.LatLng(33.30393 ,72.74039),new google.maps.LatLng(33.94643 ,72.50049),new google.maps.LatLng(33.67730 ,73.69366),new google.maps.LatLng(33.70058 ,72.93809),new google.maps.LatLng(34.16051 ,73.00127),new google.maps.LatLng(33.08970 ,72.86479),new google.maps.LatLng(33.74355 ,72.63405),new google.maps.LatLng(33.94645 ,73.56393),new google.maps.LatLng(33.67196 ,72.57535),new google.maps.LatLng(34.09266 ,73.49852),new google.maps.LatLng(34.11682 ,72.80446),new google.maps.LatLng(34.04833 ,73.17516),new google.maps.LatLng(33.72978 ,72.52513),new google.maps.LatLng(33.42407 ,73.03260),new google.maps.LatLng(33.87174 ,72.82646),new google.maps.LatLng(33.18484 ,72.89627),new google.maps.LatLng(33.18382 ,73.46230),new google.maps.LatLng(33.09618 ,73.35415),new google.maps.LatLng(33.96274 ,72.79312),new google.maps.LatLng(33.91739 ,72.45119),new google.maps.LatLng(33.06843 ,73.18524),new google.maps.LatLng(33.54383 ,73.65262),new google.maps.LatLng(34.05054 ,73.15623),new google.maps.LatLng(33.91393 ,72.67997),new google.maps.LatLng(33.98185 ,72.71103),new google.maps.LatLng(33.52704 ,73.27224),new google.maps.LatLng(33.45180 ,72.47951),new google.maps.LatLng(34.24085 ,73.20962),new google.maps.LatLng(33.39847 ,72.97027),new google.maps.LatLng(33.92537 ,73.55188),new google.maps.LatLng(33.77648 ,72.65494),new google.maps.LatLng(34.03222 ,73.05714),new google.maps.LatLng(33.47783 ,72.71186),new google.maps.LatLng(33.96783 ,73.32549),new google.maps.LatLng(33.64976 ,72.59469),new google.maps.LatLng(33.71759 ,73.29588),new google.maps.LatLng(33.92185 ,73.49766),new google.maps.LatLng(34.10759 ,73.44337),new google.maps.LatLng(34.10930 ,72.96046),new google.maps.LatLng(34.13870 ,73.20314),new google.maps.LatLng(33.97057 ,73.63827),new google.maps.LatLng(33.05339 ,73.06303),new google.maps.LatLng(33.90712 ,73.01044),new google.maps.LatLng(33.20975 ,72.75781),new google.maps.LatLng(33.88550 ,72.95846),new google.maps.LatLng(34.12712 ,73.46071),new google.maps.LatLng(34.05414 ,73.29119),new google.maps.LatLng(33.33757 ,72.87161),new google.maps.LatLng(34.28546 ,72.85098),new google.maps.LatLng(34.10785 ,73.49777),new google.maps.LatLng(33.12504 ,73.35902),new google.maps.LatLng(33.92361 ,73.56916),new google.maps.LatLng(34.29275 ,73.24623),new google.maps.LatLng(33.29549 ,72.85781),new google.maps.LatLng(33.76052 ,72.43563),new google.maps.LatLng(33.40427 ,73.36478),new google.maps.LatLng(33.30805 ,73.36902),new google.maps.LatLng(33.19445 ,73.07654),new google.maps.LatLng(33.74230 ,72.67253),new google.maps.LatLng(33.99858 ,73.35435),new google.maps.LatLng(34.10530 ,72.62092),new google.maps.LatLng(33.19118 ,73.34958),new google.maps.LatLng(33.59921 ,72.38713),new google.maps.LatLng(34.08082 ,73.41032),new google.maps.LatLng(33.99811 ,73.45284),new google.maps.LatLng(33.48008 ,72.60758),new google.maps.LatLng(33.38661 ,73.54374),new google.maps.LatLng(33.80208 ,73.60147),new google.maps.LatLng(33.64319 ,73.56241),new google.maps.LatLng(33.15527 ,72.85163),new google.maps.LatLng(33.51445 ,73.16924),new google.maps.LatLng(33.75262 ,73.43883),new google.maps.LatLng(33.44838 ,72.40421),new google.maps.LatLng(33.31311 ,73.07335),new google.maps.LatLng(33.83251 ,73.28764),new google.maps.LatLng(34.03382 ,72.58993),new google.maps.LatLng(33.70283 ,72.80087),new google.maps.LatLng(33.64497 ,72.53194),new google.maps.LatLng(33.41336 ,73.53462),new google.maps.LatLng(33.55633 ,73.66668),new google.maps.LatLng(33.22783 ,72.70034),new google.maps.LatLng(33.89999 ,73.66736),new google.maps.LatLng(33.82510 ,73.65554),new google.maps.LatLng(33.44840 ,72.62649),new google.maps.LatLng(33.09391 ,73.10571),new google.maps.LatLng(33.83066 ,73.24144),new google.maps.LatLng(34.11182 ,72.73973),new google.maps.LatLng(33.37053 ,73.09698),new google.maps.LatLng(33.99947 ,72.88953),new google.maps.LatLng(34.04681 ,73.21294),new google.maps.LatLng(34.14267 ,73.44686),new google.maps.LatLng(33.80703 ,72.46298),new google.maps.LatLng(33.69861 ,72.70161),new google.maps.LatLng(33.39367 ,73.18795),new google.maps.LatLng(33.87827 ,73.16369),new google.maps.LatLng(33.54014 ,72.97482),new google.maps.LatLng(34.24803 ,72.94023),new google.maps.LatLng(33.95519 ,72.54044),new google.maps.LatLng(33.53139 ,72.44761),new google.maps.LatLng(34.32613 ,72.83270),new google.maps.LatLng(33.91225 ,73.23177),new google.maps.LatLng(33.53607 ,72.82965),new google.maps.LatLng(33.73135 ,72.59832),new google.maps.LatLng(33.77602 ,73.54128),new google.maps.LatLng(33.44796 ,73.03911),new google.maps.LatLng(34.20649 ,72.79114),new google.maps.LatLng(33.14685 ,72.72688),new google.maps.LatLng(33.60730 ,72.50548),new google.maps.LatLng(33.40219 ,73.11686),new google.maps.LatLng(33.25568 ,72.58639),new google.maps.LatLng(33.11847 ,73.35878),new google.maps.LatLng(33.20615 ,73.12246),new google.maps.LatLng(33.67705 ,73.63254),new google.maps.LatLng(33.95645 ,72.69454),new google.maps.LatLng(33.23581 ,73.31992),new google.maps.LatLng(33.46520 ,72.71660),new google.maps.LatLng(33.61924 ,73.03417),new google.maps.LatLng(33.24326 ,73.43123),new google.maps.LatLng(33.83237 ,72.77715),new google.maps.LatLng(33.41168 ,73.10881),new google.maps.LatLng(33.59211 ,72.98969),new google.maps.LatLng(33.68656 ,73.61837),new google.maps.LatLng(34.16057 ,72.61268),new google.maps.LatLng(33.85121 ,73.40890),new google.maps.LatLng(33.18329 ,73.41895),new google.maps.LatLng(33.69049 ,73.03437),new google.maps.LatLng(33.51882 ,73.67444),new google.maps.LatLng(33.17964 ,73.07561),new google.maps.LatLng(33.28838 ,72.51411),new google.maps.LatLng(33.63626 ,73.10151),new google.maps.LatLng(33.67835 ,72.47523),new google.maps.LatLng(33.21158 ,72.87469),new google.maps.LatLng(33.80165 ,72.71470),new google.maps.LatLng(34.12599 ,73.27869),new google.maps.LatLng(33.88516 ,73.07793),new google.maps.LatLng(33.59304 ,73.10504),new google.maps.LatLng(33.77968 ,73.10386),new google.maps.LatLng(33.47117 ,73.54207),new google.maps.LatLng(33.09658 ,72.79868),new google.maps.LatLng(34.02501 ,72.67901),new google.maps.LatLng(33.97198 ,72.96442),new google.maps.LatLng(33.39120 ,73.48294),new google.maps.LatLng(33.55796 ,72.53133),new google.maps.LatLng(33.34923 ,73.39074),new google.maps.LatLng(34.15823 ,73.42437),new google.maps.LatLng(33.51375 ,72.63931),new google.maps.LatLng(34.33645 ,73.05196),new google.maps.LatLng(34.18728 ,73.16134),new google.maps.LatLng(33.68988 ,73.34865),new google.maps.LatLng(33.70110 ,73.29300),new google.maps.LatLng(33.73123 ,73.07538),new google.maps.LatLng(33.35985 ,73.46163),new google.maps.LatLng(33.10872 ,73.04891),new google.maps.LatLng(33.11957 ,73.39701),new google.maps.LatLng(33.64163 ,73.35163),new google.maps.LatLng(33.09715 ,73.28704),new google.maps.LatLng(33.05446 ,72.84133),new google.maps.LatLng(33.35890 ,72.96977),new google.maps.LatLng(33.70519 ,73.05217),new google.maps.LatLng(33.58133 ,73.65016),new google.maps.LatLng(33.60959 ,73.29519),new google.maps.LatLng(33.43911 ,73.13729),new google.maps.LatLng(34.15351 ,72.94239),new google.maps.LatLng(34.16651 ,72.88755),new google.maps.LatLng(34.05041 ,73.59344),new google.maps.LatLng(33.26549 ,72.82149),new google.maps.LatLng(33.51460 ,73.50245),new google.maps.LatLng(33.56871 ,73.23363),new google.maps.LatLng(33.19912 ,73.15014),new google.maps.LatLng(34.10225 ,73.45344),new google.maps.LatLng(33.70885 ,72.54036),new google.maps.LatLng(34.08606 ,72.98494),new google.maps.LatLng(33.27642 ,72.72063),new google.maps.LatLng(34.20156 ,72.99681),new google.maps.LatLng(33.60228 ,73.47324),new google.maps.LatLng(34.18359 ,72.80869),new google.maps.LatLng(33.87228 ,73.58680),new google.maps.LatLng(33.65045 ,72.48962),new google.maps.LatLng(33.03072 ,73.05812),new google.maps.LatLng(33.77284 ,73.57499),new google.maps.LatLng(33.42095 ,73.39401),new google.maps.LatLng(33.22769 ,72.89507),new google.maps.LatLng(33.44354 ,72.59942),new google.maps.LatLng(33.54047 ,73.51460),new google.maps.LatLng(33.39921 ,72.60875),new google.maps.LatLng(34.20272 ,72.75069),new google.maps.LatLng(33.69993 ,72.39292),new google.maps.LatLng(33.03476 ,73.02483),new google.maps.LatLng(33.21975 ,73.38613),new google.maps.LatLng(33.66348 ,73.18834),new google.maps.LatLng(34.32022 ,72.94135),new google.maps.LatLng(33.65854 ,72.88366),new google.maps.LatLng(33.72690 ,73.33232),new google.maps.LatLng(33.22851 ,72.55391),new google.maps.LatLng(33.85364 ,72.96918),new google.maps.LatLng(33.47720 ,73.62711),new google.maps.LatLng(33.73014 ,72.96945),new google.maps.LatLng(33.88116 ,72.73660),new google.maps.LatLng(33.82458 ,72.49875),new google.maps.LatLng(33.69229 ,73.04921),new google.maps.LatLng(33.79928 ,73.28504),new google.maps.LatLng(33.72643 ,73.45687),new google.maps.LatLng(33.71753 ,73.58378),new google.maps.LatLng(33.28442 ,73.50548),new google.maps.LatLng(33.80815 ,73.15084),new google.maps.LatLng(33.97860 ,73.12651),new google.maps.LatLng(33.31934 ,72.67296),new google.maps.LatLng(33.66142 ,72.52264),new google.maps.LatLng(33.78651 ,72.40451),new google.maps.LatLng(33.78027 ,73.60739),new google.maps.LatLng(33.32807 ,72.75168),new google.maps.LatLng(33.75113 ,73.33816),new google.maps.LatLng(33.63419 ,72.77810),new google.maps.LatLng(34.05319 ,73.41862),new google.maps.LatLng(33.62093 ,72.55230),new google.maps.LatLng(33.20009 ,73.28268),new google.maps.LatLng(33.64914 ,73.38193),new google.maps.LatLng(33.75226 ,73.00124),new google.maps.LatLng(34.22751 ,73.35978),new google.maps.LatLng(33.37833 ,73.34948),new google.maps.LatLng(33.78656 ,72.42993),new google.maps.LatLng(33.73818 ,72.51697),new google.maps.LatLng(33.57449 ,73.06927),new google.maps.LatLng(33.56820 ,72.64134),new google.maps.LatLng(33.74870 ,72.59360),new google.maps.LatLng(33.22535 ,72.82809),new google.maps.LatLng(33.50254 ,72.87588),new google.maps.LatLng(33.63983 ,72.71894),new google.maps.LatLng(33.60340 ,73.41668),new google.maps.LatLng(33.86309 ,72.84766),new google.maps.LatLng(34.32341 ,72.94543),new google.maps.LatLng(33.46905 ,72.92519),new google.maps.LatLng(33.15441 ,73.17612),new google.maps.LatLng(33.65691 ,73.30789),new google.maps.LatLng(33.87847 ,72.43845),new google.maps.LatLng(34.14556 ,72.69325),new google.maps.LatLng(34.05894 ,73.30952),new google.maps.LatLng(33.12884 ,72.82310),new google.maps.LatLng(33.23132 ,73.42196),new google.maps.LatLng(34.22974 ,73.28830),new google.maps.LatLng(33.46576 ,72.91268),new google.maps.LatLng(33.77817 ,72.85174),new google.maps.LatLng(33.27380 ,73.26853),new google.maps.LatLng(33.13685 ,72.97267),new google.maps.LatLng(34.02353 ,73.44564),new google.maps.LatLng(33.64416 ,72.65100),new google.maps.LatLng(33.56314 ,73.55534),new google.maps.LatLng(34.06231 ,73.53122),new google.maps.LatLng(34.19078 ,72.65328),new google.maps.LatLng(33.33021 ,72.76643),new google.maps.LatLng(33.50063 ,73.44771),new google.maps.LatLng(33.28767 ,73.33525),new google.maps.LatLng(33.50498 ,72.79949),new google.maps.LatLng(33.13217 ,73.39832),new google.maps.LatLng(33.38477 ,72.98223),new google.maps.LatLng(34.03688 ,73.43482),new google.maps.LatLng(33.69104 ,72.61482),new google.maps.LatLng(33.95448 ,73.64526),new google.maps.LatLng(33.44605 ,72.48229),new google.maps.LatLng(33.84951 ,72.86514),new google.maps.LatLng(33.57098 ,73.50761),new google.maps.LatLng(33.70142 ,72.91011),new google.maps.LatLng(33.42427 ,73.22294),new google.maps.LatLng(34.11387 ,72.76756),new google.maps.LatLng(33.63579 ,73.64773),new google.maps.LatLng(34.14015 ,73.12847),new google.maps.LatLng(34.05104 ,73.41371),new google.maps.LatLng(33.75403 ,73.23412),new google.maps.LatLng(33.44910 ,72.75129),new google.maps.LatLng(33.60845 ,72.59033),new google.maps.LatLng(33.41868 ,72.98738),new google.maps.LatLng(33.22754 ,72.96131),new google.maps.LatLng(34.30266 ,72.97472),new google.maps.LatLng(33.28745 ,73.32546),new google.maps.LatLng(33.35516 ,73.01685),new google.maps.LatLng(34.02787 ,72.64477),new google.maps.LatLng(34.00066 ,73.39845),new google.maps.LatLng(33.95211 ,73.15643),new google.maps.LatLng(33.46689 ,73.53535),new google.maps.LatLng(33.70294 ,73.20149),new google.maps.LatLng(33.23158 ,72.71650),new google.maps.LatLng(33.41012 ,73.38338),new google.maps.LatLng(33.86027 ,73.39304),new google.maps.LatLng(33.39825 ,73.47750),new google.maps.LatLng(33.60471 ,73.30463),new google.maps.LatLng(33.65314 ,73.51900),new google.maps.LatLng(33.12586 ,73.18992),new google.maps.LatLng(33.23550 ,73.42459),new google.maps.LatLng(34.15400 ,73.46394),new google.maps.LatLng(33.48828 ,73.27416),new google.maps.LatLng(33.47666 ,73.03088),new google.maps.LatLng(33.62730 ,72.80537),new google.maps.LatLng(33.80996 ,73.25640),new google.maps.LatLng(33.37425 ,73.60098),new google.maps.LatLng(33.74154 ,72.51058),new google.maps.LatLng(34.08514 ,73.27919),new google.maps.LatLng(33.65846 ,72.38961),new google.maps.LatLng(34.01814 ,73.24171),new google.maps.LatLng(33.84321 ,73.51127),new google.maps.LatLng(33.32924 ,73.32314),new google.maps.LatLng(33.88778 ,72.73127),new google.maps.LatLng(33.56232 ,72.42635),new google.maps.LatLng(33.72768 ,73.24368),new google.maps.LatLng(33.78112 ,73.20743),new google.maps.LatLng(33.68600 ,72.90546),new google.maps.LatLng(33.48968 ,73.59332),new google.maps.LatLng(33.32178 ,72.98852),new google.maps.LatLng(33.34105 ,73.18117),new google.maps.LatLng(33.55988 ,72.77630),new google.maps.LatLng(33.15474 ,73.30361),new google.maps.LatLng(33.91135 ,72.86709),new google.maps.LatLng(33.45338 ,73.49741),new google.maps.LatLng(33.86506 ,73.21308),new google.maps.LatLng(33.43563 ,73.37805),new google.maps.LatLng(34.28378 ,73.11203),new google.maps.LatLng(33.02048 ,73.13056),new google.maps.LatLng(33.89753 ,72.59179),new google.maps.LatLng(33.67979 ,73.56871),new google.maps.LatLng(33.54813 ,72.56439),new google.maps.LatLng(33.19901 ,72.70386),new google.maps.LatLng(34.26504 ,72.92556),new google.maps.LatLng(33.23037 ,73.01414),new google.maps.LatLng(33.31164 ,72.84531),new google.maps.LatLng(34.13110 ,72.57992),new google.maps.LatLng(33.28213 ,73.22457),new google.maps.LatLng(33.91344 ,73.20040),new google.maps.LatLng(33.25446 ,73.13498),new google.maps.LatLng(33.43210 ,73.11275),new google.maps.LatLng(33.77802 ,73.37546),new google.maps.LatLng(33.76280 ,73.10228),new google.maps.LatLng(34.15215 ,73.45866),new google.maps.LatLng(34.22245 ,73.07238),new google.maps.LatLng(33.27628 ,73.38987),new google.maps.LatLng(33.32457 ,73.48888),new google.maps.LatLng(33.90481 ,72.97894),new google.maps.LatLng(33.90593 ,73.16296),new google.maps.LatLng(33.86030 ,73.65814),new google.maps.LatLng(33.17479 ,73.43614),new google.maps.LatLng(33.56186 ,73.38209),new google.maps.LatLng(34.01117 ,72.88445),new google.maps.LatLng(34.28790 ,73.07659),new google.maps.LatLng(33.52702 ,72.53932),new google.maps.LatLng(34.03873 ,73.05275),new google.maps.LatLng(33.57350 ,73.04727),new google.maps.LatLng(33.55852 ,73.30464),new google.maps.LatLng(33.61019 ,73.26708),new google.maps.LatLng(33.63053 ,73.30616),new google.maps.LatLng(34.02742 ,72.86094),new google.maps.LatLng(34.14707 ,72.87600),new google.maps.LatLng(33.68982 ,73.59249),new google.maps.LatLng(33.36800 ,72.73438),new google.maps.LatLng(33.67343 ,72.82090),new google.maps.LatLng(33.87715 ,73.20008),new google.maps.LatLng(33.67861 ,73.33612),new google.maps.LatLng(33.66643 ,72.61013),new google.maps.LatLng(33.99743 ,72.51869),new google.maps.LatLng(33.88941 ,72.58185),new google.maps.LatLng(34.19546 ,73.01393),new google.maps.LatLng(33.22744 ,72.69211),new google.maps.LatLng(34.01060 ,72.68959),new google.maps.LatLng(33.25209 ,72.79166),new google.maps.LatLng(33.93356 ,72.77934),new google.maps.LatLng(33.01506 ,72.99975),new google.maps.LatLng(33.35205 ,72.46031),new google.maps.LatLng(33.37025 ,72.67097),new google.maps.LatLng(33.49961 ,73.47967),new google.maps.LatLng(33.48691 ,73.15153),new google.maps.LatLng(33.39378 ,73.12932),new google.maps.LatLng(34.04056 ,72.47016),new google.maps.LatLng(34.04907 ,72.69326),new google.maps.LatLng(33.72174 ,72.65460),new google.maps.LatLng(34.29049 ,72.85401),new google.maps.LatLng(33.18621 ,73.07780),new google.maps.LatLng(33.60715 ,73.34705),new google.maps.LatLng(33.91406 ,72.58073),new google.maps.LatLng(33.52509 ,72.81433),new google.maps.LatLng(34.01816 ,73.00796),new google.maps.LatLng(33.07120 ,73.05774),new google.maps.LatLng(33.81030 ,73.12306),new google.maps.LatLng(33.69313 ,72.71081),new google.maps.LatLng(33.80308 ,72.38527),new google.maps.LatLng(33.74586 ,72.71784),new google.maps.LatLng(33.76924 ,73.34131),new google.maps.LatLng(33.77779 ,72.95594),new google.maps.LatLng(33.97176 ,73.56174),new google.maps.LatLng(33.75133 ,73.07043),new google.maps.LatLng(33.79252 ,73.61113),new google.maps.LatLng(34.34262 ,72.95681),new google.maps.LatLng(33.70341 ,73.08771),new google.maps.LatLng(33.68917 ,73.48942),new google.maps.LatLng(33.49618 ,73.57436),new google.maps.LatLng(33.63961 ,72.97809),new google.maps.LatLng(33.27474 ,72.54736),new google.maps.LatLng(34.34332 ,72.93363),new google.maps.LatLng(33.93393 ,73.24304),new google.maps.LatLng(34.24045 ,73.30002),new google.maps.LatLng(34.05440 ,73.33246),new google.maps.LatLng(33.68119 ,72.68362),new google.maps.LatLng(33.31623 ,73.09864),new google.maps.LatLng(33.58742 ,72.38917),new google.maps.LatLng(34.23244 ,72.94790),new google.maps.LatLng(33.92187 ,72.66540),new google.maps.LatLng(33.33135 ,72.95832),new google.maps.LatLng(34.29692 ,73.00497),new google.maps.LatLng(33.87906 ,72.77555),new google.maps.LatLng(33.71760 ,73.56980),new google.maps.LatLng(34.20357 ,72.79637),new google.maps.LatLng(34.28917 ,72.89728),new google.maps.LatLng(34.05162 ,72.58434),new google.maps.LatLng(33.37151 ,72.48267),new google.maps.LatLng(33.31120 ,72.88068),new google.maps.LatLng(33.72398 ,73.65083),new google.maps.LatLng(34.03283 ,72.96724),new google.maps.LatLng(33.28499 ,73.21138),new google.maps.LatLng(33.22995 ,73.21503),new google.maps.LatLng(34.09975 ,73.39019),new google.maps.LatLng(33.47398 ,72.50865),new google.maps.LatLng(33.40650 ,73.34855),new google.maps.LatLng(33.78885 ,73.40045),new google.maps.LatLng(33.47531 ,73.11406),new google.maps.LatLng(33.35805 ,73.16701),new google.maps.LatLng(33.91571 ,72.83206),new google.maps.LatLng(33.99504 ,73.61153),new google.maps.LatLng(33.30320 ,73.22817),new google.maps.LatLng(34.22953 ,73.16189),new google.maps.LatLng(34.07141 ,73.12483),new google.maps.LatLng(33.65639 ,72.37605),new google.maps.LatLng(34.07356 ,72.74822),new google.maps.LatLng(33.67021 ,72.90548),new google.maps.LatLng(33.56259 ,73.27336),new google.maps.LatLng(33.80257 ,72.90964),new google.maps.LatLng(33.17963 ,72.59433),new google.maps.LatLng(33.16945 ,73.42549),new google.maps.LatLng(34.27708 ,73.08522),new google.maps.LatLng(34.00255 ,72.87515),new google.maps.LatLng(33.36007 ,72.60336),new google.maps.LatLng(33.66761 ,73.62105),new google.maps.LatLng(33.22590 ,72.90738),new google.maps.LatLng(34.06026 ,72.84888),new google.maps.LatLng(33.47308 ,72.82591),new google.maps.LatLng(33.52370 ,73.51002),new google.maps.LatLng(33.54920 ,73.61347),new google.maps.LatLng(34.16218 ,73.43302),new google.maps.LatLng(34.02836 ,72.90420),new google.maps.LatLng(34.21628 ,72.86786),new google.maps.LatLng(34.02448 ,72.95767),new google.maps.LatLng(33.39782 ,72.92192),new google.maps.LatLng(33.73684 ,72.51752),new google.maps.LatLng(34.20139 ,72.65462),new google.maps.LatLng(33.07614 ,72.99491),new google.maps.LatLng(33.92394 ,73.32203),new google.maps.LatLng(33.85658 ,73.22436),new google.maps.LatLng(33.86400 ,73.40341),new google.maps.LatLng(33.41943 ,73.22527),new google.maps.LatLng(33.81808 ,73.03437),new google.maps.LatLng(33.38871 ,72.49793),new google.maps.LatLng(33.45458 ,73.45635),new google.maps.LatLng(33.53965 ,73.46938),new google.maps.LatLng(33.39042 ,73.45800),new google.maps.LatLng(33.50980 ,72.55554),new google.maps.LatLng(33.52325 ,73.39821),new google.maps.LatLng(33.38663 ,72.77327),new google.maps.LatLng(33.40298 ,72.61751),new google.maps.LatLng(33.44913 ,72.98994),new google.maps.LatLng(33.26040 ,73.13657),new google.maps.LatLng(33.40794 ,73.45556),new google.maps.LatLng(33.08776 ,72.99717),new google.maps.LatLng(33.57868 ,73.05624),new google.maps.LatLng(33.34447 ,73.32535),new google.maps.LatLng(33.69140 ,73.21573),new google.maps.LatLng(34.32931 ,73.11304),new google.maps.LatLng(33.65443 ,73.55464),new google.maps.LatLng(33.50476 ,73.55856),new google.maps.LatLng(34.28073 ,72.85117),new google.maps.LatLng(33.95233 ,73.35515),new google.maps.LatLng(33.96660 ,73.63037),new google.maps.LatLng(33.76431 ,73.53081),new google.maps.LatLng(34.14204 ,73.51339),new google.maps.LatLng(33.70688 ,73.17584),new google.maps.LatLng(33.82536 ,72.66638),new google.maps.LatLng(34.03167 ,73.28914),new google.maps.LatLng(33.28991 ,72.88409),new google.maps.LatLng(33.94334 ,73.57699),new google.maps.LatLng(33.84296 ,73.67543),new google.maps.LatLng(33.17024 ,72.85206),new google.maps.LatLng(34.03459 ,73.22098),new google.maps.LatLng(34.04633 ,73.21112),new google.maps.LatLng(33.67735 ,73.26943),new google.maps.LatLng(33.57186 ,73.66574),new google.maps.LatLng(34.12823 ,72.96938),new google.maps.LatLng(33.67133 ,72.57304),new google.maps.LatLng(34.18700 ,73.24957),new google.maps.LatLng(33.74876 ,72.98539),new google.maps.LatLng(34.22009 ,72.65654),new google.maps.LatLng(33.30570 ,72.59654),new google.maps.LatLng(34.07218 ,73.16579),new google.maps.LatLng(33.72991 ,73.19555),new google.maps.LatLng(33.53125 ,72.39246),new google.maps.LatLng(34.08671 ,72.89893),new google.maps.LatLng(34.24296 ,72.70152),new google.maps.LatLng(33.86267 ,73.31393),new google.maps.LatLng(33.41832 ,72.54351),new google.maps.LatLng(34.09592 ,73.20639),new google.maps.LatLng(34.05045 ,73.26645),new google.maps.LatLng(33.35850 ,73.19889),new google.maps.LatLng(33.13650 ,72.76000),new google.maps.LatLng(33.50765 ,72.75553),new google.maps.LatLng(33.43205 ,72.96360),new google.maps.LatLng(34.01149 ,72.91044),new google.maps.LatLng(33.76394 ,73.36435),new google.maps.LatLng(33.75689 ,72.54128),new google.maps.LatLng(33.23992 ,72.89937),new google.maps.LatLng(33.57016 ,72.57419),new google.maps.LatLng(33.80464 ,73.61028),new google.maps.LatLng(33.83379 ,72.48338),new google.maps.LatLng(33.45079 ,72.72451),new google.maps.LatLng(33.53417 ,73.32027),new google.maps.LatLng(33.65081 ,72.70787),new google.maps.LatLng(33.35838 ,73.54417),new google.maps.LatLng(34.24650 ,73.14706),new google.maps.LatLng(33.36256 ,73.37974),new google.maps.LatLng(33.11776 ,72.67817),new google.maps.LatLng(33.73410 ,73.02833),new google.maps.LatLng(34.02747 ,73.44856),new google.maps.LatLng(33.96997 ,72.46146),new google.maps.LatLng(33.27286 ,72.53129),new google.maps.LatLng(33.77555 ,73.16479),new google.maps.LatLng(33.05839 ,73.19243),new google.maps.LatLng(33.56960 ,72.69278),new google.maps.LatLng(33.52865 ,73.42734),new google.maps.LatLng(33.47872 ,73.53705),new google.maps.LatLng(33.82102 ,73.09955),new google.maps.LatLng(33.10609 ,72.96324),new google.maps.LatLng(33.44603 ,73.59938),new google.maps.LatLng(33.41930 ,72.50647),new google.maps.LatLng(33.12612 ,73.21547),new google.maps.LatLng(33.76284 ,72.74755),new google.maps.LatLng(33.40191 ,73.08482),new google.maps.LatLng(34.28177 ,72.83046),new google.maps.LatLng(33.94764 ,73.34455),new google.maps.LatLng(33.91724 ,73.62271),new google.maps.LatLng(34.07042 ,73.25413),new google.maps.LatLng(34.06711 ,72.84249),new google.maps.LatLng(34.01230 ,72.44663),new google.maps.LatLng(33.57086 ,72.93233),new google.maps.LatLng(33.36280 ,73.46641),new google.maps.LatLng(33.23839 ,73.51330),new google.maps.LatLng(34.30874 ,73.25715),new google.maps.LatLng(33.08938 ,73.12132),new google.maps.LatLng(33.90389 ,73.65310),new google.maps.LatLng(33.38927 ,73.40592),new google.maps.LatLng(33.17234 ,73.39696),new google.maps.LatLng(33.70699 ,73.44678),new google.maps.LatLng(33.64992 ,73.18930),new google.maps.LatLng(33.91507 ,73.30849),new google.maps.LatLng(33.27906 ,73.07298),new google.maps.LatLng(33.49937 ,73.50901),new google.maps.LatLng(33.57075 ,72.42092),new google.maps.LatLng(33.75757 ,73.19350),new google.maps.LatLng(33.83732 ,73.51688),new google.maps.LatLng(34.28739 ,73.32126),new google.maps.LatLng(33.54832 ,73.01282),new google.maps.LatLng(33.36544 ,73.35669),new google.maps.LatLng(33.90985 ,72.63568),new google.maps.LatLng(33.04317 ,73.13215),new google.maps.LatLng(33.25771 ,73.52457),new google.maps.LatLng(33.03928 ,72.93344),new google.maps.LatLng(34.23652 ,73.01966),new google.maps.LatLng(33.27272 ,73.20484),new google.maps.LatLng(34.01444 ,72.98594),new google.maps.LatLng(33.80388 ,72.91100),new google.maps.LatLng(34.16899 ,73.45854),new google.maps.LatLng(33.60075 ,72.61750),new google.maps.LatLng(33.94012 ,72.95137),new google.maps.LatLng(33.54488 ,73.02174),new google.maps.LatLng(33.42197 ,73.48457),new google.maps.LatLng(33.97684 ,73.52331),new google.maps.LatLng(33.64430 ,73.34662),new google.maps.LatLng(34.17760 ,72.57561),new google.maps.LatLng(33.53273 ,72.82648),new google.maps.LatLng(33.66058 ,73.63584),new google.maps.LatLng(33.44137 ,73.65224),new google.maps.LatLng(34.01875 ,73.12537),new google.maps.LatLng(33.91206 ,73.23930),new google.maps.LatLng(33.14060 ,72.70684),new google.maps.LatLng(34.23819 ,72.85127),new google.maps.LatLng(33.49024 ,72.92140),new google.maps.LatLng(33.47369 ,73.61459),new google.maps.LatLng(33.15090 ,72.83368),new google.maps.LatLng(33.46634 ,73.59254),new google.maps.LatLng(33.32768 ,73.49830),new google.maps.LatLng(33.56693 ,72.80900),new google.maps.LatLng(34.19293 ,72.83343),new google.maps.LatLng(34.16557 ,72.58178),new google.maps.LatLng(33.64931 ,73.00946),new google.maps.LatLng(34.25920 ,73.10854),new google.maps.LatLng(33.53601 ,73.14064),new google.maps.LatLng(34.10697 ,73.07898),new google.maps.LatLng(33.21111 ,72.99250),new google.maps.LatLng(33.28589 ,73.46286),new google.maps.LatLng(33.17678 ,73.11091),new google.maps.LatLng(33.60174 ,73.54892),new google.maps.LatLng(34.16659 ,73.33037),new google.maps.LatLng(33.06697 ,72.96120),new google.maps.LatLng(33.80591 ,73.38697),new google.maps.LatLng(34.06267 ,73.24752),new google.maps.LatLng(33.48753 ,73.05293),new google.maps.LatLng(34.14520 ,73.11337),new google.maps.LatLng(33.65501 ,73.39500),new google.maps.LatLng(33.92071 ,73.55155),new google.maps.LatLng(33.87572 ,72.45281),new google.maps.LatLng(31.27032 ,74.86105),new google.maps.LatLng(30.88756 ,74.70945),new google.maps.LatLng(30.95715 ,74.69180),new google.maps.LatLng(30.71043 ,74.64420),new google.maps.LatLng(31.22414 ,73.92693),new google.maps.LatLng(31.90776 ,74.90784),new google.maps.LatLng(31.31110 ,74.93871),new google.maps.LatLng(31.63953 ,74.82734),new google.maps.LatLng(31.23085 ,73.94334),new google.maps.LatLng(30.64941 ,74.54467),new google.maps.LatLng(31.44931 ,75.16696),new google.maps.LatLng(31.75747 ,75.12899),new google.maps.LatLng(32.23631 ,74.60917),new google.maps.LatLng(30.87213 ,74.35926),new google.maps.LatLng(31.49093 ,75.18284),new google.maps.LatLng(31.46074 ,74.95160),new google.maps.LatLng(32.16578 ,74.54161),new google.maps.LatLng(32.00248 ,75.00634),new google.maps.LatLng(31.94666 ,74.74062),new google.maps.LatLng(32.27477 ,74.77142),new google.maps.LatLng(31.43014 ,74.30876),new google.maps.LatLng(32.00772 ,74.61025),new google.maps.LatLng(31.68867 ,75.01622),new google.maps.LatLng(31.98767 ,74.63521),new google.maps.LatLng(32.12889 ,74.64379),new google.maps.LatLng(31.38643 ,74.30467),new google.maps.LatLng(31.20450 ,74.55931),new google.maps.LatLng(31.99869 ,74.26094),new google.maps.LatLng(31.64986 ,73.56912),new google.maps.LatLng(31.96692 ,75.09929),new google.maps.LatLng(31.05968 ,74.05734),new google.maps.LatLng(31.69142 ,73.57688),new google.maps.LatLng(31.89526 ,74.93265),new google.maps.LatLng(31.63482 ,74.98994),new google.maps.LatLng(31.45261 ,74.37154),new google.maps.LatLng(31.43822 ,73.87303),new google.maps.LatLng(32.27379 ,74.76535),new google.maps.LatLng(31.23117 ,74.35858),new google.maps.LatLng(31.67930 ,74.26356),new google.maps.LatLng(31.75437 ,74.30186),new google.maps.LatLng(31.30219 ,74.87335),new google.maps.LatLng(31.73680 ,74.00771),new google.maps.LatLng(31.49477 ,74.44577),new google.maps.LatLng(31.32453 ,73.93034),new google.maps.LatLng(31.47337 ,75.18335),new google.maps.LatLng(31.34232 ,74.77162),new google.maps.LatLng(31.68997 ,74.19203),new google.maps.LatLng(31.30303 ,73.49561),new google.maps.LatLng(30.88179 ,75.00317),new google.maps.LatLng(32.29329 ,74.45732),new google.maps.LatLng(31.72891 ,73.95093),new google.maps.LatLng(31.52590 ,75.08721),new google.maps.LatLng(31.88578 ,74.46322),new google.maps.LatLng(30.94562 ,74.93683),new google.maps.LatLng(30.95153 ,73.69716),new google.maps.LatLng(31.32259 ,74.85995),new google.maps.LatLng(31.32860 ,73.71869),new google.maps.LatLng(31.45149 ,73.76304),new google.maps.LatLng(32.22438 ,74.42851),new google.maps.LatLng(30.72490 ,74.80143),new google.maps.LatLng(31.12899 ,74.95269),new google.maps.LatLng(31.21501 ,74.47316),new google.maps.LatLng(32.21540 ,74.68397),new google.maps.LatLng(31.07659 ,73.59281),new google.maps.LatLng(31.94035 ,74.23110),new google.maps.LatLng(31.54793 ,73.81301),new google.maps.LatLng(32.08785 ,74.27895),new google.maps.LatLng(31.30710 ,75.14116),new google.maps.LatLng(32.27754 ,74.32248),new google.maps.LatLng(32.39757 ,74.42926),new google.maps.LatLng(31.05652 ,74.10081),new google.maps.LatLng(31.46290 ,74.44715),new google.maps.LatLng(30.89995 ,74.81538),new google.maps.LatLng(30.87507 ,74.14577),new google.maps.LatLng(32.06182 ,74.09178),new google.maps.LatLng(31.28934 ,75.06516),new google.maps.LatLng(31.82264 ,73.82525),new google.maps.LatLng(31.39931 ,73.49980),new google.maps.LatLng(30.73458 ,74.18171),new google.maps.LatLng(31.17451 ,74.22372),new google.maps.LatLng(31.58555 ,74.98096),new google.maps.LatLng(31.22799 ,75.04294),new google.maps.LatLng(31.62050 ,74.44294),new google.maps.LatLng(31.34225 ,74.04294),new google.maps.LatLng(30.95932 ,74.64563),new google.maps.LatLng(32.12935 ,74.29298),new google.maps.LatLng(31.78913 ,73.60582),new google.maps.LatLng(30.99441 ,74.51600),new google.maps.LatLng(30.98503 ,74.34974),new google.maps.LatLng(30.77051 ,74.43553),new google.maps.LatLng(31.44395 ,73.68451),new google.maps.LatLng(32.27334 ,74.11894),new google.maps.LatLng(30.82555 ,73.96758),new google.maps.LatLng(31.88299 ,74.89591),new google.maps.LatLng(31.89646 ,75.06353),new google.maps.LatLng(31.29294 ,74.45021),new google.maps.LatLng(31.09156 ,74.01606),new google.maps.LatLng(31.57165 ,74.82974),new google.maps.LatLng(31.05461 ,73.92577),new google.maps.LatLng(31.70497 ,74.05246),new google.maps.LatLng(31.66669 ,74.13807),new google.maps.LatLng(31.33498 ,74.84600),new google.maps.LatLng(30.62353 ,74.29653),new google.maps.LatLng(31.87553 ,73.77080),new google.maps.LatLng(31.70860 ,74.88465),new google.maps.LatLng(30.97161 ,74.81649),new google.maps.LatLng(32.03900 ,74.77550),new google.maps.LatLng(31.29263 ,74.68280),new google.maps.LatLng(31.46197 ,74.95780),new google.maps.LatLng(31.16408 ,74.33973),new google.maps.LatLng(31.95416 ,74.02159),new google.maps.LatLng(31.40488 ,73.92692),new google.maps.LatLng(31.74446 ,74.48069),new google.maps.LatLng(31.86232 ,74.41543),new google.maps.LatLng(32.26425 ,74.14986),new google.maps.LatLng(31.32961 ,73.84239),new google.maps.LatLng(31.77116 ,74.95718),new google.maps.LatLng(31.79588 ,74.90243),new google.maps.LatLng(31.62075 ,74.60027),new google.maps.LatLng(32.22110 ,74.40864),new google.maps.LatLng(31.17407 ,73.70266),new google.maps.LatLng(31.45703 ,74.75954),new google.maps.LatLng(31.27719 ,73.78317),new google.maps.LatLng(31.57813 ,75.21672),new google.maps.LatLng(30.83115 ,74.41198),new google.maps.LatLng(32.11119 ,74.17085),new google.maps.LatLng(31.35696 ,73.62848),new google.maps.LatLng(31.53476 ,74.22301),new google.maps.LatLng(31.65628 ,73.58419),new google.maps.LatLng(30.75817 ,74.75092),new google.maps.LatLng(31.96304 ,74.90487),new google.maps.LatLng(31.88183 ,74.24411),new google.maps.LatLng(31.22825 ,74.05762),new google.maps.LatLng(31.07936 ,74.11144),new google.maps.LatLng(31.70800 ,73.97926),new google.maps.LatLng(31.55038 ,74.16214),new google.maps.LatLng(30.73734 ,74.33009),new google.maps.LatLng(30.80775 ,74.06692),new google.maps.LatLng(31.85620 ,74.43314),new google.maps.LatLng(32.38094 ,74.49921),new google.maps.LatLng(32.19972 ,73.94964),new google.maps.LatLng(31.13115 ,74.66835),new google.maps.LatLng(32.09463 ,74.17993),new google.maps.LatLng(30.93803 ,73.79047),new google.maps.LatLng(32.21615 ,74.53602),new google.maps.LatLng(30.75791 ,74.07051),new google.maps.LatLng(31.22476 ,74.32642),new google.maps.LatLng(30.98075 ,73.95559),new google.maps.LatLng(32.22715 ,74.56117),new google.maps.LatLng(32.30368 ,74.25990),new google.maps.LatLng(31.35654 ,75.02294),new google.maps.LatLng(31.96366 ,73.80333),new google.maps.LatLng(31.47874 ,75.06642),new google.maps.LatLng(31.23073 ,73.61716),new google.maps.LatLng(31.33654 ,75.19949),new google.maps.LatLng(31.92680 ,74.12915),new google.maps.LatLng(31.76813 ,73.88144),new google.maps.LatLng(31.71745 ,73.86394),new google.maps.LatLng(32.05422 ,75.05656),new google.maps.LatLng(31.74135 ,74.94113),new google.maps.LatLng(31.13297 ,73.79457),new google.maps.LatLng(31.10849 ,74.90871),new google.maps.LatLng(31.65631 ,74.49705),new google.maps.LatLng(32.17671 ,74.52714),new google.maps.LatLng(31.50536 ,74.48256),new google.maps.LatLng(31.85300 ,74.11916),new google.maps.LatLng(31.45083 ,74.50188),new google.maps.LatLng(30.89872 ,75.00997),new google.maps.LatLng(31.40340 ,74.43069),new google.maps.LatLng(32.23664 ,73.96788),new google.maps.LatLng(31.05787 ,74.51608),new google.maps.LatLng(30.93436 ,74.53812),new google.maps.LatLng(31.55223 ,74.20205),new google.maps.LatLng(30.85213 ,74.51776),new google.maps.LatLng(31.12639 ,73.69438),new google.maps.LatLng(32.20304 ,74.64604),new google.maps.LatLng(30.80006 ,74.24554),new google.maps.LatLng(30.66777 ,74.26455),new google.maps.LatLng(31.80141 ,74.83250),new google.maps.LatLng(32.00997 ,73.83364),new google.maps.LatLng(32.38740 ,74.53117),new google.maps.LatLng(31.40580 ,74.32469),new google.maps.LatLng(30.89915 ,74.03220),new google.maps.LatLng(31.14649 ,74.59934),new google.maps.LatLng(31.32694 ,74.26669),new google.maps.LatLng(31.12100 ,74.79788),new google.maps.LatLng(31.15042 ,74.91295),new google.maps.LatLng(31.81490 ,73.87485),new google.maps.LatLng(31.05722 ,75.03179),new google.maps.LatLng(31.61618 ,74.35376),new google.maps.LatLng(32.03933 ,74.31214),new google.maps.LatLng(31.12945 ,73.69432),new google.maps.LatLng(31.97384 ,74.04533),new google.maps.LatLng(31.74342 ,75.04534),new google.maps.LatLng(31.76557 ,74.08701),new google.maps.LatLng(31.29509 ,73.90316),new google.maps.LatLng(31.73485 ,74.91925),new google.maps.LatLng(30.76250 ,74.30185),new google.maps.LatLng(31.91716 ,74.81022),new google.maps.LatLng(31.17594 ,73.58812),new google.maps.LatLng(30.89095 ,74.94305),new google.maps.LatLng(31.04256 ,74.10737),new google.maps.LatLng(31.56204 ,73.62553),new google.maps.LatLng(31.02884 ,73.90788),new google.maps.LatLng(31.12361 ,74.51174),new google.maps.LatLng(31.71192 ,75.07807),new google.maps.LatLng(31.41031 ,74.42514),new google.maps.LatLng(30.99251 ,74.23312),new google.maps.LatLng(31.48446 ,73.97602),new google.maps.LatLng(31.52650 ,74.22307),new google.maps.LatLng(32.08866 ,73.97098),new google.maps.LatLng(30.89468 ,74.69004),new google.maps.LatLng(31.35394 ,73.84101),new google.maps.LatLng(31.14056 ,74.60123),new google.maps.LatLng(31.74165 ,73.82689),new google.maps.LatLng(30.99065 ,74.26382),new google.maps.LatLng(31.49826 ,73.78730),new google.maps.LatLng(32.04624 ,73.99560),new google.maps.LatLng(31.00837 ,73.88797),new google.maps.LatLng(32.14287 ,74.63999),new google.maps.LatLng(31.81049 ,74.93031),new google.maps.LatLng(31.20142 ,75.07409),new google.maps.LatLng(31.59543 ,75.14596),new google.maps.LatLng(31.66022 ,74.29580),new google.maps.LatLng(31.76372 ,73.74599),new google.maps.LatLng(31.16608 ,73.66652),new google.maps.LatLng(31.72089 ,74.70589),new google.maps.LatLng(31.38412 ,74.37315),new google.maps.LatLng(31.21657 ,73.76658),new google.maps.LatLng(32.21549 ,74.40512),new google.maps.LatLng(31.99585 ,73.78582),new google.maps.LatLng(31.45833 ,75.14196),new google.maps.LatLng(30.83166 ,73.85197),new google.maps.LatLng(30.96522 ,73.91776),new google.maps.LatLng(31.29886 ,74.41150),new google.maps.LatLng(31.11290 ,74.86534),new google.maps.LatLng(31.88720 ,73.94869),new google.maps.LatLng(31.08487 ,73.63498),new google.maps.LatLng(32.05128 ,74.59838),new google.maps.LatLng(31.01932 ,74.54222),new google.maps.LatLng(32.18915 ,73.88782),new google.maps.LatLng(31.78404 ,75.15778),new google.maps.LatLng(31.07757 ,73.91386),new google.maps.LatLng(31.66940 ,74.99696),new google.maps.LatLng(31.39690 ,74.94560),new google.maps.LatLng(31.05889 ,74.26308),new google.maps.LatLng(31.76891 ,75.15384),new google.maps.LatLng(31.48429 ,75.23572),new google.maps.LatLng(31.87840 ,75.10881),new google.maps.LatLng(31.67764 ,73.71844),new google.maps.LatLng(31.69385 ,73.91190),new google.maps.LatLng(31.30903 ,74.11593),new google.maps.LatLng(31.18818 ,73.66966),new google.maps.LatLng(32.08868 ,73.87481),new google.maps.LatLng(31.76336 ,74.78175),new google.maps.LatLng(31.19279 ,74.52685),new google.maps.LatLng(31.25133 ,74.24659),new google.maps.LatLng(31.49412 ,74.28771),new google.maps.LatLng(31.96347 ,74.36570),new google.maps.LatLng(31.21795 ,74.60204),new google.maps.LatLng(31.33043 ,74.67642),new google.maps.LatLng(31.79307 ,74.28293),new google.maps.LatLng(31.59610 ,74.16828),new google.maps.LatLng(31.86833 ,74.73770),new google.maps.LatLng(32.30255 ,74.49413),new google.maps.LatLng(30.83982 ,73.90560),new google.maps.LatLng(31.48829 ,74.28443),new google.maps.LatLng(31.59970 ,74.22453),new google.maps.LatLng(31.13423 ,74.69817),new google.maps.LatLng(31.18225 ,73.88690),new google.maps.LatLng(31.15263 ,74.69801),new google.maps.LatLng(31.31711 ,73.49292),new google.maps.LatLng(31.82655 ,75.08984),new google.maps.LatLng(31.41970 ,73.53583),new google.maps.LatLng(32.09365 ,74.24964),new google.maps.LatLng(31.61286 ,73.95308),new google.maps.LatLng(31.31450 ,74.91835),new google.maps.LatLng(32.14407 ,74.31816),new google.maps.LatLng(31.98518 ,74.11770),new google.maps.LatLng(31.29192 ,73.76779),new google.maps.LatLng(31.60459 ,73.53218),new google.maps.LatLng(31.84763 ,73.63602),new google.maps.LatLng(31.15733 ,73.99800),new google.maps.LatLng(31.11452 ,74.88061),new google.maps.LatLng(32.11350 ,74.58030),new google.maps.LatLng(31.42431 ,73.63316),new google.maps.LatLng(31.29591 ,73.76309),new google.maps.LatLng(31.72073 ,74.88825),new google.maps.LatLng(30.86757 ,74.93720),new google.maps.LatLng(30.76049 ,74.53816),new google.maps.LatLng(31.83529 ,74.53455),new google.maps.LatLng(31.64693 ,74.35430),new google.maps.LatLng(31.20094 ,74.64280),new google.maps.LatLng(32.05763 ,73.93405),new google.maps.LatLng(32.18042 ,74.18565),new google.maps.LatLng(31.91613 ,74.84192),new google.maps.LatLng(31.38611 ,73.58239),new google.maps.LatLng(31.73315 ,74.76426),new google.maps.LatLng(31.30349 ,74.07673),new google.maps.LatLng(32.35150 ,74.31994),new google.maps.LatLng(31.72748 ,74.62958),new google.maps.LatLng(31.12501 ,74.12297),new google.maps.LatLng(31.42934 ,74.06260),new google.maps.LatLng(31.15218 ,75.09926),new google.maps.LatLng(31.34505 ,73.51346),new google.maps.LatLng(32.20990 ,74.91135),new google.maps.LatLng(32.23323 ,74.02604),new google.maps.LatLng(30.81729 ,74.58526),new google.maps.LatLng(30.80598 ,74.36084),new google.maps.LatLng(31.82540 ,74.58907),new google.maps.LatLng(31.50065 ,74.44718),new google.maps.LatLng(31.71476 ,73.81400),new google.maps.LatLng(31.32956 ,73.79723),new google.maps.LatLng(32.32891 ,74.50501),new google.maps.LatLng(32.28271 ,74.68485),new google.maps.LatLng(31.19857 ,74.16453),new google.maps.LatLng(31.60473 ,73.68496),new google.maps.LatLng(32.09188 ,75.03575),new google.maps.LatLng(31.58051 ,74.73190),new google.maps.LatLng(31.93745 ,74.70833),new google.maps.LatLng(31.61586 ,73.56825),new google.maps.LatLng(32.38810 ,74.31058),new google.maps.LatLng(31.50529 ,74.33208),new google.maps.LatLng(31.45123 ,73.74149),new google.maps.LatLng(31.63024 ,74.00507),new google.maps.LatLng(31.33098 ,74.33927),new google.maps.LatLng(30.79091 ,74.54303),new google.maps.LatLng(31.30693 ,74.59238),new google.maps.LatLng(31.97679 ,74.33127),new google.maps.LatLng(32.16133 ,74.62297),new google.maps.LatLng(30.86888 ,74.11391),new google.maps.LatLng(31.08207 ,74.48002),new google.maps.LatLng(31.35408 ,73.82477),new google.maps.LatLng(31.43794 ,73.97542),new google.maps.LatLng(31.47497 ,74.61931),new google.maps.LatLng(31.42557 ,74.97237),new google.maps.LatLng(32.03093 ,74.57879),new google.maps.LatLng(32.03155 ,73.74671),new google.maps.LatLng(32.03914 ,74.35500),new google.maps.LatLng(31.83856 ,74.94132),new google.maps.LatLng(30.73670 ,73.94189),new google.maps.LatLng(31.40204 ,74.50967),new google.maps.LatLng(31.58115 ,74.25170),new google.maps.LatLng(31.72419 ,73.88744),new google.maps.LatLng(30.99327 ,74.65646),new google.maps.LatLng(31.96291 ,74.60551),new google.maps.LatLng(32.07345 ,74.77641),new google.maps.LatLng(31.49397 ,74.02942),new google.maps.LatLng(31.39769 ,74.42210),new google.maps.LatLng(30.70533 ,74.58139),new google.maps.LatLng(30.76404 ,74.66887),new google.maps.LatLng(31.93651 ,74.93316),new google.maps.LatLng(32.38587 ,74.19146),new google.maps.LatLng(31.96640 ,75.13113),new google.maps.LatLng(31.32554 ,73.74542),new google.maps.LatLng(32.29233 ,74.00698),new google.maps.LatLng(32.12794 ,73.86233),new google.maps.LatLng(30.96741 ,73.77877),new google.maps.LatLng(31.05227 ,74.90009),new google.maps.LatLng(31.09766 ,73.85596),new google.maps.LatLng(31.12497 ,74.58441),new google.maps.LatLng(32.08813 ,73.71718),new google.maps.LatLng(31.86840 ,74.61244),new google.maps.LatLng(31.83324 ,74.37281),new google.maps.LatLng(30.71633 ,74.23346),new google.maps.LatLng(31.37536 ,73.54332),new google.maps.LatLng(30.99116 ,73.71979),new google.maps.LatLng(31.13029 ,75.02260),new google.maps.LatLng(31.77958 ,74.38631),new google.maps.LatLng(32.29441 ,74.00406),new google.maps.LatLng(31.65577 ,74.22453),new google.maps.LatLng(31.65503 ,74.63518),new google.maps.LatLng(31.89606 ,73.58609),new google.maps.LatLng(31.65141 ,74.02904),new google.maps.LatLng(31.06360 ,75.10402),new google.maps.LatLng(31.56309 ,73.55059),new google.maps.LatLng(32.01161 ,74.35681),new google.maps.LatLng(31.26801 ,73.68321),new google.maps.LatLng(31.15367 ,73.77318),new google.maps.LatLng(31.82277 ,75.16241),new google.maps.LatLng(31.94291 ,74.28303),new google.maps.LatLng(31.81617 ,73.59723),new google.maps.LatLng(32.13716 ,74.54401),new google.maps.LatLng(30.69590 ,74.59756),new google.maps.LatLng(32.30656 ,74.48756),new google.maps.LatLng(32.22319 ,74.33710),new google.maps.LatLng(31.12271 ,74.32675),new google.maps.LatLng(31.45292 ,74.91620),new google.maps.LatLng(31.18741 ,74.00977),new google.maps.LatLng(32.04120 ,74.44694),new google.maps.LatLng(32.13246 ,74.95689),new google.maps.LatLng(31.23799 ,74.94005),new google.maps.LatLng(31.20231 ,74.86879),new google.maps.LatLng(30.82220 ,74.22180),new google.maps.LatLng(30.73198 ,74.00863),new google.maps.LatLng(31.06442 ,73.83612),new google.maps.LatLng(31.98606 ,74.38769),new google.maps.LatLng(32.19596 ,73.95657),new google.maps.LatLng(31.24497 ,74.85056),new google.maps.LatLng(32.14238 ,74.04036),new google.maps.LatLng(30.89238 ,74.41318),new google.maps.LatLng(31.60571 ,74.37830),new google.maps.LatLng(31.40609 ,73.77966),new google.maps.LatLng(31.90110 ,74.77363),new google.maps.LatLng(31.50306 ,73.94134),new google.maps.LatLng(31.21114 ,74.09674),new google.maps.LatLng(31.38216 ,74.07045),new google.maps.LatLng(31.18129 ,73.85556),new google.maps.LatLng(31.20097 ,74.91325),new google.maps.LatLng(31.72780 ,74.34256),new google.maps.LatLng(30.73482 ,73.91207),new google.maps.LatLng(31.70228 ,73.62583),new google.maps.LatLng(31.57896 ,74.96434),new google.maps.LatLng(31.58508 ,74.66671),new google.maps.LatLng(31.44196 ,73.64509),new google.maps.LatLng(31.47605 ,73.73222),new google.maps.LatLng(31.10264 ,74.71185),new google.maps.LatLng(31.10256 ,74.48938),new google.maps.LatLng(32.29019 ,74.11656),new google.maps.LatLng(31.15317 ,75.08987),new google.maps.LatLng(31.12980 ,73.61619),new google.maps.LatLng(31.32143 ,73.69513),new google.maps.LatLng(31.19714 ,74.86220),new google.maps.LatLng(30.88966 ,74.97667),new google.maps.LatLng(31.22132 ,73.77731),new google.maps.LatLng(31.65005 ,74.95387),new google.maps.LatLng(32.29492 ,74.40743),new google.maps.LatLng(31.70574 ,73.77224),new google.maps.LatLng(31.07922 ,73.63265),new google.maps.LatLng(31.76605 ,74.87724),new google.maps.LatLng(31.17528 ,74.61147),new google.maps.LatLng(31.50514 ,74.00871),new google.maps.LatLng(31.36046 ,74.43237),new google.maps.LatLng(32.04036 ,74.54248),new google.maps.LatLng(30.92813 ,74.10498),new google.maps.LatLng(31.28465 ,74.13839),new google.maps.LatLng(31.45726 ,74.65399),new google.maps.LatLng(31.21548 ,74.12187),new google.maps.LatLng(31.16919 ,73.82229),new google.maps.LatLng(32.05810 ,74.52051),new google.maps.LatLng(31.75801 ,74.86420),new google.maps.LatLng(31.80793 ,73.99503),new google.maps.LatLng(31.15378 ,75.15447),new google.maps.LatLng(31.94991 ,74.03513),new google.maps.LatLng(31.12924 ,74.97169),new google.maps.LatLng(31.72156 ,74.30776),new google.maps.LatLng(32.16532 ,73.94416),new google.maps.LatLng(30.81125 ,74.34969),new google.maps.LatLng(31.98668 ,75.03157),new google.maps.LatLng(32.28126 ,74.00145),new google.maps.LatLng(31.72243 ,74.86407),new google.maps.LatLng(31.65960 ,74.74488),new google.maps.LatLng(31.84545 ,74.78582),new google.maps.LatLng(30.87081 ,74.38192),new google.maps.LatLng(31.45444 ,74.12248),new google.maps.LatLng(31.44104 ,74.13852),new google.maps.LatLng(32.15349 ,74.35452),new google.maps.LatLng(31.08987 ,75.12349),new google.maps.LatLng(31.58617 ,73.52991),new google.maps.LatLng(30.66947 ,74.37086),new google.maps.LatLng(31.61452 ,73.72306),new google.maps.LatLng(31.17649 ,74.46538),new google.maps.LatLng(32.35581 ,74.20748),new google.maps.LatLng(31.12624 ,74.12801),new google.maps.LatLng(30.84676 ,74.44279),new google.maps.LatLng(31.12891 ,73.60171),new google.maps.LatLng(31.06069 ,73.78792),new google.maps.LatLng(30.65210 ,74.55512),new google.maps.LatLng(31.25556 ,74.98140),new google.maps.LatLng(31.73643 ,74.11884),new google.maps.LatLng(31.21589 ,73.65393),new google.maps.LatLng(32.16045 ,74.71869),new google.maps.LatLng(32.05474 ,73.72086),new google.maps.LatLng(31.95896 ,73.81843),new google.maps.LatLng(31.66773 ,75.10185),new google.maps.LatLng(31.77860 ,74.97526),new google.maps.LatLng(31.92206 ,75.04219),new google.maps.LatLng(31.57869 ,73.54849),new google.maps.LatLng(31.89348 ,74.45858),new google.maps.LatLng(31.30871 ,74.53310),new google.maps.LatLng(30.77989 ,74.20745),new google.maps.LatLng(31.98321 ,73.97263),new google.maps.LatLng(32.14201 ,73.99999),new google.maps.LatLng(31.22585 ,73.52520),new google.maps.LatLng(32.22148 ,74.36998),new google.maps.LatLng(31.58564 ,74.88857),new google.maps.LatLng(32.14967 ,74.90986),new google.maps.LatLng(32.26196 ,74.54932),new google.maps.LatLng(30.74003 ,74.66329),new google.maps.LatLng(30.95422 ,74.87428),new google.maps.LatLng(32.20703 ,74.22602),new google.maps.LatLng(30.98635 ,74.20614),new google.maps.LatLng(30.89925 ,74.29878),new google.maps.LatLng(31.07659 ,74.43297),new google.maps.LatLng(30.89370 ,74.47018),new google.maps.LatLng(31.03459 ,74.37378),new google.maps.LatLng(31.07861 ,73.69681),new google.maps.LatLng(31.94095 ,74.83222),new google.maps.LatLng(31.54127 ,73.91634),new google.maps.LatLng(31.80554 ,74.60606),new google.maps.LatLng(31.27554 ,74.55964),new google.maps.LatLng(30.92752 ,74.87564),new google.maps.LatLng(32.18139 ,74.08093),new google.maps.LatLng(31.99895 ,74.02517),new google.maps.LatLng(31.07081 ,74.03615),new google.maps.LatLng(31.54625 ,74.03257),new google.maps.LatLng(30.77903 ,74.02227),new google.maps.LatLng(30.80905 ,74.84817),new google.maps.LatLng(31.79051 ,73.87155),new google.maps.LatLng(31.55964 ,74.78080),new google.maps.LatLng(31.72052 ,74.70285),new google.maps.LatLng(31.07785 ,74.05521),new google.maps.LatLng(30.85713 ,74.31220),new google.maps.LatLng(31.58016 ,74.36403),new google.maps.LatLng(32.14425 ,74.08451),new google.maps.LatLng(32.23695 ,74.73288),new google.maps.LatLng(31.38675 ,74.29763),new google.maps.LatLng(30.81728 ,73.99746),new google.maps.LatLng(31.15055 ,74.48445),new google.maps.LatLng(30.85373 ,74.81181),new google.maps.LatLng(30.79747 ,74.55414),new google.maps.LatLng(31.05335 ,73.77631),new google.maps.LatLng(31.39345 ,74.63240),new google.maps.LatLng(31.46394 ,75.12911),new google.maps.LatLng(31.23296 ,75.10937),new google.maps.LatLng(31.82583 ,74.91769),new google.maps.LatLng(31.54444 ,73.87526),new google.maps.LatLng(31.48309 ,74.18441),new google.maps.LatLng(31.86730 ,74.13262),new google.maps.LatLng(30.99984 ,74.06957),new google.maps.LatLng(32.15301 ,74.01628),new google.maps.LatLng(32.07281 ,74.04183),new google.maps.LatLng(31.94422 ,74.46258),new google.maps.LatLng(31.09113 ,75.02255),new google.maps.LatLng(31.77503 ,74.26225),new google.maps.LatLng(31.65718 ,75.01586),new google.maps.LatLng(31.64169 ,74.04674),new google.maps.LatLng(31.48713 ,73.83696),new google.maps.LatLng(32.25455 ,73.91874),new google.maps.LatLng(31.39873 ,73.77140),new google.maps.LatLng(31.14766 ,73.83119),new google.maps.LatLng(31.41492 ,74.59369),new google.maps.LatLng(32.03650 ,73.68012),new google.maps.LatLng(31.39474 ,74.36269),new google.maps.LatLng(31.76298 ,74.11920),new google.maps.LatLng(31.80222 ,74.81002),new google.maps.LatLng(31.93678 ,73.89919),new google.maps.LatLng(30.92426 ,74.04690),new google.maps.LatLng(31.99745 ,74.00622),new google.maps.LatLng(31.69789 ,73.78985),new google.maps.LatLng(30.80280 ,73.95854),new google.maps.LatLng(32.01891 ,74.13621),new google.maps.LatLng(31.81713 ,73.77688),new google.maps.LatLng(32.01521 ,74.89308),new google.maps.LatLng(31.15092 ,74.88083),new google.maps.LatLng(32.13401 ,74.94499),new google.maps.LatLng(31.59142 ,75.16801),new google.maps.LatLng(30.72304 ,74.80544),new google.maps.LatLng(31.59318 ,74.65684),new google.maps.LatLng(31.69224 ,74.86618),new google.maps.LatLng(31.31655 ,74.21417),new google.maps.LatLng(31.44456 ,74.73805),new google.maps.LatLng(31.42815 ,73.85406),new google.maps.LatLng(32.15376 ,73.98465),new google.maps.LatLng(32.06270 ,74.70318),new google.maps.LatLng(31.44657 ,74.46270),new google.maps.LatLng(31.24771 ,74.38636),new google.maps.LatLng(31.45802 ,74.56190),new google.maps.LatLng(32.29758 ,74.30725),new google.maps.LatLng(32.14585 ,74.64534),new google.maps.LatLng(31.53351 ,75.18234),new google.maps.LatLng(31.02974 ,74.04155),new google.maps.LatLng(31.49375 ,73.81025),new google.maps.LatLng(31.81599 ,75.03679),new google.maps.LatLng(31.24384 ,73.64612),new google.maps.LatLng(31.26753 ,75.06607),new google.maps.LatLng(31.60020 ,74.18399),new google.maps.LatLng(31.77575 ,73.64344),new google.maps.LatLng(31.27311 ,73.83706),new google.maps.LatLng(32.24394 ,74.21943),new google.maps.LatLng(31.91912 ,74.92402),new google.maps.LatLng(32.13940 ,73.77691),new google.maps.LatLng(31.73272 ,75.10696),new google.maps.LatLng(32.18186 ,74.32968),new google.maps.LatLng(31.51377 ,74.56391),new google.maps.LatLng(31.74811 ,75.10776),new google.maps.LatLng(31.87747 ,75.06773),new google.maps.LatLng(30.70397 ,74.52037),new google.maps.LatLng(31.06012 ,74.22383),new google.maps.LatLng(30.69683 ,74.51525),new google.maps.LatLng(31.68540 ,75.08261),new google.maps.LatLng(31.91972 ,74.62696),new google.maps.LatLng(31.46260 ,73.67254),new google.maps.LatLng(31.76443 ,73.85711),new google.maps.LatLng(30.86814 ,74.58377),new google.maps.LatLng(31.73856 ,74.41312),new google.maps.LatLng(30.69572 ,74.15236),new google.maps.LatLng(31.73913 ,75.15668),new google.maps.LatLng(31.48290 ,74.53250),new google.maps.LatLng(30.73552 ,74.67343),new google.maps.LatLng(31.30201 ,74.39400),new google.maps.LatLng(32.11761 ,74.43198),new google.maps.LatLng(31.84587 ,75.12646),new google.maps.LatLng(32.20626 ,74.87339),new google.maps.LatLng(30.85930 ,74.94929),new google.maps.LatLng(31.45645 ,74.23406),new google.maps.LatLng(31.14439 ,74.35651),new google.maps.LatLng(31.08845 ,74.90925),new google.maps.LatLng(31.37951 ,74.02554),new google.maps.LatLng(31.88208 ,73.99620),new google.maps.LatLng(31.59097 ,74.20665),new google.maps.LatLng(31.53452 ,74.94489),new google.maps.LatLng(31.56916 ,74.44224),new google.maps.LatLng(30.74196 ,74.77022),new google.maps.LatLng(31.32057 ,74.16026),new google.maps.LatLng(31.18326 ,74.55646),new google.maps.LatLng(31.37403 ,74.21785),new google.maps.LatLng(31.53720 ,73.95707),new google.maps.LatLng(31.11963 ,74.71722),new google.maps.LatLng(30.99382 ,74.68905),new google.maps.LatLng(32.06083 ,74.12391),new google.maps.LatLng(31.16332 ,73.75465),new google.maps.LatLng(31.40572 ,74.35596),new google.maps.LatLng(31.81832 ,74.40937),new google.maps.LatLng(31.52206 ,74.97564),new google.maps.LatLng(31.81519 ,74.43914),new google.maps.LatLng(32.15082 ,74.81572),new google.maps.LatLng(32.09800 ,73.84235),new google.maps.LatLng(30.69818 ,74.69953),new google.maps.LatLng(31.25528 ,74.87372),new google.maps.LatLng(31.67122 ,75.17409),new google.maps.LatLng(31.52457 ,73.75262),new google.maps.LatLng(32.27423 ,74.00280),new google.maps.LatLng(31.77763 ,74.80352),new google.maps.LatLng(31.99802 ,74.65763),new google.maps.LatLng(30.94990 ,73.78154),new google.maps.LatLng(30.64307 ,74.25853),new google.maps.LatLng(30.77202 ,73.86222),new google.maps.LatLng(31.71728 ,74.19379),new google.maps.LatLng(32.30762 ,74.69314),new google.maps.LatLng(30.89866 ,73.77862),new google.maps.LatLng(31.98523 ,73.95053),new google.maps.LatLng(31.96102 ,74.71977),new google.maps.LatLng(32.13489 ,73.94166),new google.maps.LatLng(30.84690 ,74.03847),new google.maps.LatLng(30.89272 ,73.97220),new google.maps.LatLng(32.10393 ,73.74803),new google.maps.LatLng(31.04608 ,74.44094),new google.maps.LatLng(31.90007 ,74.39229),new google.maps.LatLng(32.29501 ,73.98249),new google.maps.LatLng(31.37576 ,73.68721),new google.maps.LatLng(32.39737 ,74.38047),new google.maps.LatLng(30.88597 ,74.56740),new google.maps.LatLng(31.56959 ,74.44029),new google.maps.LatLng(31.58018 ,73.83964),new google.maps.LatLng(31.23111 ,74.52748),new google.maps.LatLng(31.04860 ,74.13145),new google.maps.LatLng(32.35052 ,74.08996),new google.maps.LatLng(31.91106 ,75.07660),new google.maps.LatLng(31.12344 ,74.71354),new google.maps.LatLng(31.91617 ,73.77771),new google.maps.LatLng(31.20008 ,74.42364),new google.maps.LatLng(31.03598 ,74.82984),new google.maps.LatLng(31.59599 ,74.63761),new google.maps.LatLng(31.21512 ,73.85065),new google.maps.LatLng(30.85419 ,73.92288),new google.maps.LatLng(32.11073 ,74.08740),new google.maps.LatLng(31.84614 ,74.79533),new google.maps.LatLng(32.30479 ,74.46380),new google.maps.LatLng(31.34841 ,74.48231),new google.maps.LatLng(30.97355 ,74.79107),new google.maps.LatLng(31.56790 ,74.51212),new google.maps.LatLng(30.97810 ,74.31316),new google.maps.LatLng(31.88266 ,74.28661),new google.maps.LatLng(31.87620 ,74.54650),new google.maps.LatLng(32.30231 ,74.55328),new google.maps.LatLng(31.82650 ,73.91500),new google.maps.LatLng(31.10690 ,74.82886),new google.maps.LatLng(31.07192 ,74.78422),new google.maps.LatLng(31.40608 ,73.89518),new google.maps.LatLng(32.12711 ,74.85622),new google.maps.LatLng(32.05250 ,74.57317),new google.maps.LatLng(31.10267 ,73.82926),new google.maps.LatLng(31.75881 ,75.03649),new google.maps.LatLng(31.50749 ,74.76490),new google.maps.LatLng(31.01945 ,74.44018),new google.maps.LatLng(30.82617 ,74.00280),new google.maps.LatLng(32.06207 ,73.94369),new google.maps.LatLng(31.36316 ,73.85769),new google.maps.LatLng(32.04529 ,74.84162),new google.maps.LatLng(31.67801 ,74.68240),new google.maps.LatLng(32.11031 ,74.58413),new google.maps.LatLng(31.45408 ,73.85392),new google.maps.LatLng(31.83226 ,74.31805),new google.maps.LatLng(31.91123 ,74.93349),new google.maps.LatLng(31.85649 ,73.82495),new google.maps.LatLng(31.50260 ,74.20539),new google.maps.LatLng(31.09721 ,73.74994),new google.maps.LatLng(31.60954 ,74.70138),new google.maps.LatLng(31.19155 ,73.87195),new google.maps.LatLng(31.76911 ,74.29849),new google.maps.LatLng(31.18004 ,74.54373),new google.maps.LatLng(32.17095 ,74.39929),new google.maps.LatLng(30.78934 ,74.47100),new google.maps.LatLng(31.98879 ,74.43170),new google.maps.LatLng(31.46303 ,74.96076),new google.maps.LatLng(31.80115 ,74.43910),new google.maps.LatLng(31.30646 ,75.15150),new google.maps.LatLng(31.48758 ,74.88103),new google.maps.LatLng(31.83289 ,74.01478),new google.maps.LatLng(31.68854 ,74.51399),new google.maps.LatLng(32.23069 ,74.60174),new google.maps.LatLng(31.29705 ,73.55004),new google.maps.LatLng(30.92256 ,74.51939),new google.maps.LatLng(31.35480 ,74.14217),new google.maps.LatLng(31.39419 ,74.37222),new google.maps.LatLng(31.08014 ,74.41257),new google.maps.LatLng(31.16528 ,73.90822),new google.maps.LatLng(30.89149 ,74.62261),new google.maps.LatLng(31.73137 ,74.12842),new google.maps.LatLng(31.03501 ,74.94732),new google.maps.LatLng(31.09509 ,74.93062),new google.maps.LatLng(31.09961 ,74.28882),new google.maps.LatLng(32.08241 ,73.87846),new google.maps.LatLng(32.02103 ,73.75547),new google.maps.LatLng(31.65786 ,75.17137),new google.maps.LatLng(31.52216 ,74.40102),new google.maps.LatLng(31.17657 ,75.15054),new google.maps.LatLng(32.24671 ,74.03053),new google.maps.LatLng(30.69495 ,74.69627),new google.maps.LatLng(31.22246 ,73.67082),new google.maps.LatLng(31.85101 ,75.10327),new google.maps.LatLng(31.97995 ,74.50607),new google.maps.LatLng(31.75178 ,74.02134),new google.maps.LatLng(30.88264 ,74.53574),new google.maps.LatLng(31.97405 ,73.80670),new google.maps.LatLng(30.85849 ,73.83273),new google.maps.LatLng(30.89288 ,74.74607),new google.maps.LatLng(30.71289 ,74.65983),new google.maps.LatLng(31.67044 ,75.09323),new google.maps.LatLng(31.23494 ,75.09267),new google.maps.LatLng(31.51737 ,74.72609),new google.maps.LatLng(32.16845 ,74.19567),new google.maps.LatLng(31.72047 ,74.73135),new google.maps.LatLng(32.15424 ,74.50697),new google.maps.LatLng(31.58046 ,74.34030),new google.maps.LatLng(31.39156 ,75.22006),new google.maps.LatLng(30.72967 ,74.29953),new google.maps.LatLng(30.82064 ,74.31611),new google.maps.LatLng(31.95051 ,73.94743),new google.maps.LatLng(32.32470 ,74.20123),new google.maps.LatLng(30.60788 ,74.34043),new google.maps.LatLng(31.02824 ,73.85046),new google.maps.LatLng(32.18340 ,74.49837),new google.maps.LatLng(30.97132 ,74.28025),new google.maps.LatLng(31.73127 ,74.19074),new google.maps.LatLng(32.12824 ,74.83236),new google.maps.LatLng(32.29083 ,73.94954),new google.maps.LatLng(32.22072 ,73.88261),new google.maps.LatLng(32.19855 ,74.51178),new google.maps.LatLng(31.43223 ,74.35227),new google.maps.LatLng(31.52102 ,74.29694),new google.maps.LatLng(31.56150 ,73.64084),new google.maps.LatLng(32.01530 ,74.70484),new google.maps.LatLng(31.42639 ,74.27681),new google.maps.LatLng(32.14707 ,74.49843),new google.maps.LatLng(32.27946 ,74.09127),new google.maps.LatLng(30.74533 ,74.19225),new google.maps.LatLng(32.35957 ,74.63686),new google.maps.LatLng(31.93457 ,74.92235),new google.maps.LatLng(30.91074 ,74.97579),new google.maps.LatLng(31.74941 ,74.04499),new google.maps.LatLng(32.07029 ,73.81149),new google.maps.LatLng(31.58472 ,74.33564),new google.maps.LatLng(31.74184 ,74.39854),new google.maps.LatLng(30.88927 ,74.70101),new google.maps.LatLng(32.33326 ,74.48734),new google.maps.LatLng(30.95028 ,73.80004),new google.maps.LatLng(30.95427 ,75.07373),new google.maps.LatLng(30.62020 ,74.28184),new google.maps.LatLng(31.66434 ,74.37057),new google.maps.LatLng(32.07845 ,74.12219),new google.maps.LatLng(32.07540 ,73.93657),new google.maps.LatLng(32.00963 ,74.44683),new google.maps.LatLng(31.77365 ,74.63047),new google.maps.LatLng(31.95241 ,74.03806),new google.maps.LatLng(31.03282 ,74.57668),new google.maps.LatLng(31.63005 ,74.87439),new google.maps.LatLng(31.34952 ,74.93746),new google.maps.LatLng(30.91829 ,73.96812),new google.maps.LatLng(31.20546 ,74.18483),new google.maps.LatLng(32.00192 ,73.88494),new google.maps.LatLng(30.93679 ,74.30852),new google.maps.LatLng(31.06309 ,74.29911),new google.maps.LatLng(31.15764 ,73.85275),new google.maps.LatLng(31.37811 ,73.92212),new google.maps.LatLng(30.88196 ,74.94359),new google.maps.LatLng(32.12931 ,73.78751),new google.maps.LatLng(31.14969 ,74.83728),new google.maps.LatLng(31.77306 ,74.95178),new google.maps.LatLng(30.71547 ,74.71043),new google.maps.LatLng(31.05984 ,73.88631),new google.maps.LatLng(31.33357 ,74.25169),new google.maps.LatLng(32.12982 ,74.17398),new google.maps.LatLng(31.69754 ,74.63742),new google.maps.LatLng(30.84872 ,74.19707),new google.maps.LatLng(32.24661 ,74.30063),new google.maps.LatLng(31.90318 ,73.78884),new google.maps.LatLng(30.81903 ,74.23864),new google.maps.LatLng(31.29687 ,74.37432),new google.maps.LatLng(31.97473 ,74.98757),new google.maps.LatLng(32.30166 ,74.22518),new google.maps.LatLng(31.78285 ,74.71214),new google.maps.LatLng(31.94336 ,73.88404),new google.maps.LatLng(31.49748 ,74.85531),new google.maps.LatLng(31.53722 ,74.88929),new google.maps.LatLng(30.84113 ,74.26292),new google.maps.LatLng(30.85942 ,74.78872),new google.maps.LatLng(32.12939 ,74.71168),new google.maps.LatLng(31.74976 ,75.11383),new google.maps.LatLng(32.09973 ,74.83648),new google.maps.LatLng(31.67924 ,73.84816),new google.maps.LatLng(31.55462 ,74.17412),new google.maps.LatLng(31.95466 ,75.10311),new google.maps.LatLng(31.53458 ,73.53704),new google.maps.LatLng(32.28202 ,74.05277),new google.maps.LatLng(31.13975 ,73.62058),new google.maps.LatLng(30.97776 ,74.22888),new google.maps.LatLng(31.90233 ,74.02471),new google.maps.LatLng(31.57556 ,73.58527),new google.maps.LatLng(32.02293 ,73.97395),new google.maps.LatLng(30.84393 ,73.82646),new google.maps.LatLng(32.10181 ,75.02096),new google.maps.LatLng(32.24086 ,74.43688),new google.maps.LatLng(31.39033 ,73.51436),new google.maps.LatLng(31.44430 ,74.84939),new google.maps.LatLng(31.71054 ,75.20946),new google.maps.LatLng(31.42699 ,73.74980),new google.maps.LatLng(31.56710 ,74.08503),new google.maps.LatLng(31.68219 ,74.33082),new google.maps.LatLng(31.59335 ,73.75390),new google.maps.LatLng(31.55328 ,75.01375),new google.maps.LatLng(30.91224 ,74.82719),new google.maps.LatLng(30.85827 ,73.99117),new google.maps.LatLng(31.53482 ,73.78105),new google.maps.LatLng(31.25974 ,74.62854),new google.maps.LatLng(31.19041 ,75.06034),new google.maps.LatLng(32.16586 ,73.82648),new google.maps.LatLng(31.79013 ,74.14788),new google.maps.LatLng(31.12873 ,74.02471),new google.maps.LatLng(31.23208 ,74.58619),new google.maps.LatLng(32.32676 ,74.17943),new google.maps.LatLng(31.36836 ,74.51744),new google.maps.LatLng(31.43496 ,73.54687),new google.maps.LatLng(32.04592 ,74.15361),new google.maps.LatLng(31.84058 ,73.86006),new google.maps.LatLng(31.45598 ,74.91590),new google.maps.LatLng(32.06706 ,74.45707),new google.maps.LatLng(32.20751 ,73.86366),new google.maps.LatLng(32.00397 ,74.18801),new google.maps.LatLng(31.84834 ,74.07523),new google.maps.LatLng(31.15564 ,74.74338),new google.maps.LatLng(31.54101 ,75.04386),new google.maps.LatLng(30.97714 ,73.94691),new google.maps.LatLng(31.83731 ,74.06426),new google.maps.LatLng(31.44318 ,75.09557),new google.maps.LatLng(32.35584 ,74.18281),new google.maps.LatLng(31.40262 ,74.57933),new google.maps.LatLng(30.95086 ,74.78099),new google.maps.LatLng(30.83903 ,73.89612),new google.maps.LatLng(31.57529 ,73.69076),new google.maps.LatLng(31.32752 ,73.72251),new google.maps.LatLng(30.83813 ,74.00773),new google.maps.LatLng(30.86490 ,74.98972),new google.maps.LatLng(31.41778 ,74.83554),new google.maps.LatLng(31.48509 ,74.24929),new google.maps.LatLng(31.24705 ,73.84160),new google.maps.LatLng(31.84177 ,74.10473),new google.maps.LatLng(31.71721 ,74.78767),new google.maps.LatLng(31.68100 ,74.52802),new google.maps.LatLng(30.75041 ,74.20037),new google.maps.LatLng(31.40779 ,74.07232),new google.maps.LatLng(31.11288 ,74.73567),new google.maps.LatLng(31.48688 ,73.88085),new google.maps.LatLng(31.99340 ,74.47728),new google.maps.LatLng(31.91380 ,74.85374),new google.maps.LatLng(31.53005 ,75.22919),new google.maps.LatLng(32.23975 ,74.43927),new google.maps.LatLng(31.43013 ,74.51140),new google.maps.LatLng(31.36686 ,75.08877),new google.maps.LatLng(31.98548 ,74.85107),new google.maps.LatLng(30.79876 ,74.28412),new google.maps.LatLng(30.78648 ,73.88174),new google.maps.LatLng(30.89506 ,74.69587),new google.maps.LatLng(31.61346 ,73.70613),new google.maps.LatLng(30.80549 ,74.87314),new google.maps.LatLng(31.95378 ,73.88240),new google.maps.LatLng(31.50087 ,74.51397),new google.maps.LatLng(31.37795 ,73.86954),new google.maps.LatLng(31.97771 ,74.15918),new google.maps.LatLng(31.85686 ,74.20660),new google.maps.LatLng(31.51005 ,73.65191),new google.maps.LatLng(30.95404 ,73.68661),new google.maps.LatLng(31.42883 ,74.55093),new google.maps.LatLng(30.88041 ,74.52914),new google.maps.LatLng(31.31324 ,73.88251),new google.maps.LatLng(31.90803 ,74.18310),new google.maps.LatLng(31.38566 ,73.80106),new google.maps.LatLng(30.78893 ,74.63692),new google.maps.LatLng(31.27503 ,74.21846),new google.maps.LatLng(31.03843 ,74.35553),new google.maps.LatLng(31.39271 ,74.26909),new google.maps.LatLng(31.45125 ,74.05129),new google.maps.LatLng(31.74157 ,74.68596),new google.maps.LatLng(31.54132 ,73.48205),new google.maps.LatLng(31.48730 ,75.10054),new google.maps.LatLng(31.99355 ,73.99049),new google.maps.LatLng(31.86434 ,74.09075),new google.maps.LatLng(31.83952 ,75.15220),new google.maps.LatLng(31.95481 ,74.17001),new google.maps.LatLng(32.25674 ,74.00957),new google.maps.LatLng(32.24752 ,74.53425),new google.maps.LatLng(31.74222 ,75.09793),new google.maps.LatLng(31.49859 ,73.81829),new google.maps.LatLng(30.93422 ,74.65450),new google.maps.LatLng(31.69091 ,74.18184),new google.maps.LatLng(31.99662 ,73.61729),new google.maps.LatLng(31.66649 ,75.15580),new google.maps.LatLng(31.04395 ,74.20486),new google.maps.LatLng(31.31488 ,74.96940),new google.maps.LatLng(31.48768 ,74.11436),new google.maps.LatLng(31.69725 ,74.06140),new google.maps.LatLng(31.84030 ,73.94865),new google.maps.LatLng(31.23090 ,74.76272),new google.maps.LatLng(32.02516 ,74.89227),new google.maps.LatLng(31.50036 ,74.37594),new google.maps.LatLng(31.78997 ,74.40136),new google.maps.LatLng(31.80932 ,73.95096),new google.maps.LatLng(30.72287 ,74.23705),new google.maps.LatLng(31.19663 ,73.61202),new google.maps.LatLng(31.58007 ,74.79054),new google.maps.LatLng(31.56494 ,73.63339),new google.maps.LatLng(31.99421 ,74.13660),new google.maps.LatLng(31.37564 ,73.96876),new google.maps.LatLng(31.75734 ,73.79051),new google.maps.LatLng(31.78110 ,75.08249),new google.maps.LatLng(31.12991 ,74.98908),new google.maps.LatLng(31.73121 ,74.26707),new google.maps.LatLng(30.76004 ,74.04191),new google.maps.LatLng(32.37877 ,74.23201),new google.maps.LatLng(30.85566 ,74.93000),new google.maps.LatLng(30.97666 ,74.74330),new google.maps.LatLng(31.02269 ,73.79731),new google.maps.LatLng(30.68154 ,74.04743),new google.maps.LatLng(31.52894 ,74.19270),new google.maps.LatLng(32.31989 ,74.62560),new google.maps.LatLng(31.06722 ,73.73498),new google.maps.LatLng(32.23632 ,74.30802),new google.maps.LatLng(31.21237 ,73.62676),new google.maps.LatLng(31.84458 ,74.56151),new google.maps.LatLng(31.51318 ,75.26035),new google.maps.LatLng(31.92200 ,73.75299),new google.maps.LatLng(32.20728 ,74.22963),new google.maps.LatLng(32.04013 ,74.11213),new google.maps.LatLng(31.85819 ,74.06075),new google.maps.LatLng(32.33103 ,74.08345),new google.maps.LatLng(31.18700 ,74.87680),new google.maps.LatLng(31.56009 ,74.29137),new google.maps.LatLng(30.76721 ,74.60207),new google.maps.LatLng(31.01320 ,74.31964),new google.maps.LatLng(31.00658 ,73.69912),new google.maps.LatLng(31.28798 ,74.29053),new google.maps.LatLng(31.99835 ,74.10885),new google.maps.LatLng(30.82986 ,74.00008),new google.maps.LatLng(31.71529 ,74.10261),new google.maps.LatLng(31.80542 ,75.03749),new google.maps.LatLng(31.25213 ,74.00244),new google.maps.LatLng(31.32501 ,74.30012),new google.maps.LatLng(31.41202 ,74.40545),new google.maps.LatLng(30.75079 ,74.16170),new google.maps.LatLng(24.63911 ,66.72381),new google.maps.LatLng(23.81152 ,66.93930),new google.maps.LatLng(24.85389 ,67.35451),new google.maps.LatLng(24.97942 ,67.14593),new google.maps.LatLng(23.98577 ,66.65610),new google.maps.LatLng(25.05523 ,66.60182),new google.maps.LatLng(25.79771 ,67.60142),new google.maps.LatLng(24.47678 ,67.84297),new google.maps.LatLng(25.52945 ,66.70202),new google.maps.LatLng(24.82548 ,66.11702),new google.maps.LatLng(25.24844 ,65.95368),new google.maps.LatLng(24.18147 ,66.88605),new google.maps.LatLng(24.65691 ,66.33683),new google.maps.LatLng(25.21497 ,67.86016),new google.maps.LatLng(24.39169 ,67.33431),new google.maps.LatLng(26.01831 ,66.88644),new google.maps.LatLng(24.88140 ,66.32085),new google.maps.LatLng(24.79720 ,66.11657),new google.maps.LatLng(25.94264 ,67.44804),new google.maps.LatLng(25.81782 ,67.00194),new google.maps.LatLng(24.83412 ,67.03708),new google.maps.LatLng(24.71848 ,66.66758),new google.maps.LatLng(25.78534 ,67.22482),new google.maps.LatLng(25.03668 ,67.14572),new google.maps.LatLng(24.59802 ,65.99134),new google.maps.LatLng(25.65535 ,67.30428),new google.maps.LatLng(25.63863 ,67.84728),new google.maps.LatLng(23.98153 ,67.51897),new google.maps.LatLng(26.08368 ,67.14710),new google.maps.LatLng(25.75429 ,67.12152),new google.maps.LatLng(24.73120 ,68.13426),new google.maps.LatLng(25.59940 ,67.73874),new google.maps.LatLng(25.95747 ,66.70787),new google.maps.LatLng(25.13306 ,67.61542),new google.maps.LatLng(24.31446 ,67.48082),new google.maps.LatLng(24.79701 ,66.24745),new google.maps.LatLng(25.10479 ,67.55820),new google.maps.LatLng(25.72523 ,66.35674),new google.maps.LatLng(24.90910 ,65.97412),new google.maps.LatLng(25.95529 ,66.89453),new google.maps.LatLng(25.72159 ,67.21544),new google.maps.LatLng(25.89517 ,67.05939),new google.maps.LatLng(24.75507 ,67.63601),new google.maps.LatLng(25.67365 ,66.38506),new google.maps.LatLng(24.67075 ,67.18720),new google.maps.LatLng(24.46016 ,66.18507),new google.maps.LatLng(24.19120 ,67.57244),new google.maps.LatLng(24.14890 ,67.09085),new google.maps.LatLng(23.99234 ,67.48238),new google.maps.LatLng(24.20101 ,66.63927),new google.maps.LatLng(24.75045 ,67.06928),new google.maps.LatLng(24.50200 ,68.09459),new google.maps.LatLng(24.34653 ,66.23072),new google.maps.LatLng(23.81270 ,67.08666),new google.maps.LatLng(24.07405 ,66.99407),new google.maps.LatLng(25.98013 ,67.41205),new google.maps.LatLng(24.51853 ,67.74143),new google.maps.LatLng(24.69523 ,68.02984),new google.maps.LatLng(24.47877 ,67.81177),new google.maps.LatLng(25.78195 ,67.53862),new google.maps.LatLng(25.70425 ,67.73509),new google.maps.LatLng(24.58951 ,68.04405),new google.maps.LatLng(25.19727 ,67.60179),new google.maps.LatLng(24.44959 ,66.34362),new google.maps.LatLng(24.77662 ,67.35207),new google.maps.LatLng(25.42776 ,66.73735),new google.maps.LatLng(24.66362 ,66.71962),new google.maps.LatLng(23.87522 ,67.27256),new google.maps.LatLng(24.89159 ,67.29229),new google.maps.LatLng(25.38519 ,66.18805),new google.maps.LatLng(24.58215 ,67.20731),new google.maps.LatLng(24.25594 ,67.29282),new google.maps.LatLng(25.16714 ,66.91851),new google.maps.LatLng(24.98339 ,66.46401),new google.maps.LatLng(25.02337 ,66.99514),new google.maps.LatLng(25.29648 ,66.37451),new google.maps.LatLng(25.34963 ,68.04172),new google.maps.LatLng(25.15708 ,67.81750),new google.maps.LatLng(24.15327 ,66.95043),new google.maps.LatLng(25.56462 ,66.34740),new google.maps.LatLng(24.74505 ,66.03390),new google.maps.LatLng(24.26805 ,66.70816),new google.maps.LatLng(25.56594 ,66.24618),new google.maps.LatLng(24.28167 ,66.51414),new google.maps.LatLng(23.94533 ,67.65004),new google.maps.LatLng(25.12684 ,67.86225),new google.maps.LatLng(25.16256 ,67.00374),new google.maps.LatLng(24.75234 ,66.16941),new google.maps.LatLng(24.05915 ,67.22251),new google.maps.LatLng(25.29052 ,66.42950),new google.maps.LatLng(24.51443 ,67.17578),new google.maps.LatLng(25.65438 ,67.86152),new google.maps.LatLng(25.56581 ,67.49729),new google.maps.LatLng(23.97053 ,66.98076),new google.maps.LatLng(24.78148 ,67.97497),new google.maps.LatLng(24.51487 ,68.11543),new google.maps.LatLng(24.01764 ,66.83060),new google.maps.LatLng(25.36581 ,67.07132),new google.maps.LatLng(25.12052 ,67.05382),new google.maps.LatLng(24.75027 ,66.90893),new google.maps.LatLng(25.12500 ,66.74663),new google.maps.LatLng(24.40906 ,66.16916),new google.maps.LatLng(24.54083 ,66.30251),new google.maps.LatLng(24.56894 ,66.32091),new google.maps.LatLng(24.80596 ,66.94203),new google.maps.LatLng(24.97057 ,67.64159),new google.maps.LatLng(25.75698 ,67.40232),new google.maps.LatLng(24.54100 ,67.20063),new google.maps.LatLng(25.59311 ,67.45665),new google.maps.LatLng(24.39102 ,66.35109),new google.maps.LatLng(25.52053 ,67.38078),new google.maps.LatLng(25.93774 ,67.54332),new google.maps.LatLng(24.78239 ,66.39058),new google.maps.LatLng(24.60633 ,66.91190),new google.maps.LatLng(24.62644 ,66.30146),new google.maps.LatLng(25.85553 ,66.88718),new google.maps.LatLng(26.00313 ,66.98427),new google.maps.LatLng(24.87747 ,66.73463),new google.maps.LatLng(25.69863 ,67.15262),new google.maps.LatLng(24.43210 ,67.14069),new google.maps.LatLng(24.38133 ,67.63096),new google.maps.LatLng(25.25466 ,66.86217),new google.maps.LatLng(25.00137 ,67.50523),new google.maps.LatLng(25.60401 ,66.91950),new google.maps.LatLng(24.66627 ,67.13161),new google.maps.LatLng(25.60880 ,67.17002),new google.maps.LatLng(25.65358 ,66.48379),new google.maps.LatLng(25.70527 ,67.45223),new google.maps.LatLng(25.59158 ,66.47728),new google.maps.LatLng(25.96462 ,67.18260),new google.maps.LatLng(23.94173 ,66.50889),new google.maps.LatLng(24.52337 ,66.20692),new google.maps.LatLng(24.70466 ,66.17474),new google.maps.LatLng(23.83019 ,67.23274),new google.maps.LatLng(25.18266 ,68.19583),new google.maps.LatLng(24.28326 ,67.80794),new google.maps.LatLng(24.62406 ,66.18957),new google.maps.LatLng(25.69615 ,67.93078),new google.maps.LatLng(24.95108 ,66.37492),new google.maps.LatLng(24.63414 ,66.39580),new google.maps.LatLng(25.56360 ,66.21946),new google.maps.LatLng(24.69322 ,66.17544),new google.maps.LatLng(24.69969 ,67.01357),new google.maps.LatLng(25.98695 ,66.67015),new google.maps.LatLng(24.67079 ,68.14864),new google.maps.LatLng(25.74783 ,66.95508),new google.maps.LatLng(25.21693 ,67.49517),new google.maps.LatLng(25.54848 ,67.28909),new google.maps.LatLng(25.30263 ,67.05701),new google.maps.LatLng(25.65688 ,66.32042),new google.maps.LatLng(25.41626 ,67.77897),new google.maps.LatLng(23.97236 ,66.65426),new google.maps.LatLng(24.28225 ,66.19522),new google.maps.LatLng(23.97764 ,66.63742),new google.maps.LatLng(24.15261 ,66.27587),new google.maps.LatLng(24.91818 ,67.93168),new google.maps.LatLng(25.47404 ,67.23718),new google.maps.LatLng(24.80198 ,67.02959),new google.maps.LatLng(24.09392 ,67.44198),new google.maps.LatLng(24.81492 ,66.32521),new google.maps.LatLng(24.15999 ,67.27008),new google.maps.LatLng(25.98125 ,66.88566),new google.maps.LatLng(24.31916 ,66.51148),new google.maps.LatLng(24.84154 ,65.95083),new google.maps.LatLng(24.24367 ,66.79721),new google.maps.LatLng(25.04954 ,66.95581),new google.maps.LatLng(25.18521 ,66.98784),new google.maps.LatLng(25.73206 ,67.03172),new google.maps.LatLng(24.83594 ,67.96820),new google.maps.LatLng(24.56942 ,66.95805),new google.maps.LatLng(25.25959 ,66.68566),new google.maps.LatLng(24.47935 ,66.00174),new google.maps.LatLng(24.68244 ,66.14413),new google.maps.LatLng(24.65241 ,67.88589),new google.maps.LatLng(25.73583 ,67.62375),new google.maps.LatLng(25.93810 ,67.00125),new google.maps.LatLng(24.82951 ,67.93395),new google.maps.LatLng(25.53632 ,67.75485),new google.maps.LatLng(24.29509 ,66.75648),new google.maps.LatLng(24.96500 ,68.07979),new google.maps.LatLng(25.24583 ,68.08810),new google.maps.LatLng(25.51770 ,66.49734),new google.maps.LatLng(24.68592 ,66.54377),new google.maps.LatLng(25.46464 ,66.99694),new google.maps.LatLng(25.57939 ,66.97080),new google.maps.LatLng(25.67478 ,66.64303),new google.maps.LatLng(24.03284 ,67.07022),new google.maps.LatLng(25.23377 ,66.03405),new google.maps.LatLng(25.17368 ,66.91928),new google.maps.LatLng(25.52578 ,67.47542),new google.maps.LatLng(25.89127 ,66.78960),new google.maps.LatLng(24.17302 ,67.47523),new google.maps.LatLng(24.94050 ,67.86819),new google.maps.LatLng(25.20312 ,67.31572),new google.maps.LatLng(25.01688 ,66.41940),new google.maps.LatLng(26.01037 ,67.02366),new google.maps.LatLng(24.98410 ,67.60504),new google.maps.LatLng(25.46903 ,66.73019),new google.maps.LatLng(24.69647 ,67.72418),new google.maps.LatLng(24.10453 ,67.33642),new google.maps.LatLng(25.50180 ,67.26805),new google.maps.LatLng(24.82842 ,68.21052),new google.maps.LatLng(24.38517 ,66.19548),new google.maps.LatLng(25.53585 ,66.68546),new google.maps.LatLng(24.98951 ,66.21807),new google.maps.LatLng(24.03286 ,66.91588),new google.maps.LatLng(24.75329 ,68.08415),new google.maps.LatLng(25.28847 ,67.68843),new google.maps.LatLng(23.99128 ,66.65513),new google.maps.LatLng(24.69408 ,66.80522),new google.maps.LatLng(25.26725 ,67.17278),new google.maps.LatLng(25.28055 ,67.05517),new google.maps.LatLng(25.42622 ,67.15540),new google.maps.LatLng(24.84140 ,66.26883),new google.maps.LatLng(25.50858 ,68.05813),new google.maps.LatLng(23.85172 ,66.85061),new google.maps.LatLng(25.33807 ,67.15234),new google.maps.LatLng(24.94831 ,67.83252),new google.maps.LatLng(25.08485 ,66.19185),new google.maps.LatLng(25.07318 ,66.13861),new google.maps.LatLng(24.58414 ,67.58828),new google.maps.LatLng(24.48858 ,66.72046),new google.maps.LatLng(25.55246 ,67.64552),new google.maps.LatLng(24.79483 ,67.83300),new google.maps.LatLng(24.66650 ,68.04297),new google.maps.LatLng(24.68656 ,66.60092),new google.maps.LatLng(25.58455 ,67.05082),new google.maps.LatLng(24.86299 ,67.34421),new google.maps.LatLng(25.39656 ,67.53669),new google.maps.LatLng(24.89498 ,66.08116),new google.maps.LatLng(24.74743 ,66.46827),new google.maps.LatLng(25.39128 ,67.65841),new google.maps.LatLng(24.24238 ,66.38828),new google.maps.LatLng(25.42747 ,66.97727),new google.maps.LatLng(26.07799 ,67.10780),new google.maps.LatLng(25.16806 ,67.21509),new google.maps.LatLng(24.98207 ,66.49076),new google.maps.LatLng(25.38814 ,67.58225),new google.maps.LatLng(24.29422 ,66.92876),new google.maps.LatLng(25.78607 ,66.87861),new google.maps.LatLng(24.64625 ,67.05292),new google.maps.LatLng(25.12610 ,67.16031),new google.maps.LatLng(25.86887 ,67.60904),new google.maps.LatLng(24.97569 ,67.41036),new google.maps.LatLng(24.98935 ,66.65054),new google.maps.LatLng(24.13447 ,66.31139),new google.maps.LatLng(24.57022 ,67.54396),new google.maps.LatLng(24.29856 ,66.63094),new google.maps.LatLng(24.68309 ,67.91937),new google.maps.LatLng(25.14600 ,66.66845),new google.maps.LatLng(24.96736 ,66.36917),new google.maps.LatLng(25.51405 ,67.34673),new google.maps.LatLng(25.94428 ,67.62832),new google.maps.LatLng(24.25034 ,67.06381),new google.maps.LatLng(25.07124 ,67.61334),new google.maps.LatLng(24.57721 ,66.05492),new google.maps.LatLng(25.48849 ,66.51695),new google.maps.LatLng(24.20859 ,67.46699),new google.maps.LatLng(25.08972 ,66.37289),new google.maps.LatLng(25.10866 ,66.10075),new google.maps.LatLng(24.64352 ,67.89617),new google.maps.LatLng(24.20257 ,67.18083),new google.maps.LatLng(24.67015 ,66.15766),new google.maps.LatLng(25.07411 ,68.13087),new google.maps.LatLng(25.14314 ,66.41470),new google.maps.LatLng(25.25354 ,68.18095),new google.maps.LatLng(25.47597 ,66.12276),new google.maps.LatLng(24.72766 ,67.01308),new google.maps.LatLng(24.05698 ,66.62685),new google.maps.LatLng(25.53990 ,66.56508),new google.maps.LatLng(24.98241 ,67.31626),new google.maps.LatLng(26.01595 ,66.93345),new google.maps.LatLng(25.45661 ,67.52850),new google.maps.LatLng(24.45356 ,67.61585),new google.maps.LatLng(24.28043 ,67.42707),new google.maps.LatLng(24.34379 ,67.33368),new google.maps.LatLng(25.58856 ,66.73921),new google.maps.LatLng(24.45692 ,67.69094),new google.maps.LatLng(24.70270 ,67.74813),new google.maps.LatLng(24.45053 ,66.10484),new google.maps.LatLng(25.07830 ,66.55214),new google.maps.LatLng(24.63068 ,66.50112),new google.maps.LatLng(25.55860 ,67.90285),new google.maps.LatLng(24.59661 ,67.70608),new google.maps.LatLng(24.89349 ,68.16383),new google.maps.LatLng(25.12790 ,68.19681),new google.maps.LatLng(25.19868 ,68.06789),new google.maps.LatLng(25.63626 ,67.95882),new google.maps.LatLng(24.37613 ,66.44597),new google.maps.LatLng(25.55129 ,67.62643),new google.maps.LatLng(24.44037 ,67.39187),new google.maps.LatLng(23.95976 ,67.51675),new google.maps.LatLng(25.72401 ,67.89698),new google.maps.LatLng(24.52253 ,66.68016),new google.maps.LatLng(24.81829 ,67.77566),new google.maps.LatLng(24.10446 ,67.44027),new google.maps.LatLng(25.50929 ,67.62821),new google.maps.LatLng(24.39739 ,66.55116),new google.maps.LatLng(23.99122 ,67.45236),new google.maps.LatLng(25.10393 ,66.13470),new google.maps.LatLng(25.00671 ,66.04061),new google.maps.LatLng(24.44624 ,66.15907),new google.maps.LatLng(26.03764 ,66.78426),new google.maps.LatLng(24.70325 ,67.04174),new google.maps.LatLng(25.03891 ,67.25311),new google.maps.LatLng(24.90443 ,67.87386),new google.maps.LatLng(25.33378 ,67.31520),new google.maps.LatLng(24.60787 ,68.10477),new google.maps.LatLng(24.29415 ,66.55222),new google.maps.LatLng(24.95964 ,66.67897),new google.maps.LatLng(24.53199 ,66.19752),new google.maps.LatLng(24.26946 ,67.51456),new google.maps.LatLng(25.39281 ,67.11592),new google.maps.LatLng(26.05165 ,67.37095),new google.maps.LatLng(24.33813 ,67.48163),new google.maps.LatLng(25.82770 ,67.18648),new google.maps.LatLng(23.86950 ,66.73856),new google.maps.LatLng(24.85013 ,67.08946),new google.maps.LatLng(25.88395 ,66.45781),new google.maps.LatLng(25.77770 ,66.26577),new google.maps.LatLng(24.76087 ,67.07113),new google.maps.LatLng(25.27893 ,67.66579),new google.maps.LatLng(24.48286 ,67.30886),new google.maps.LatLng(25.79050 ,66.26605),new google.maps.LatLng(25.21006 ,68.05034),new google.maps.LatLng(24.13775 ,66.43426),new google.maps.LatLng(24.00777 ,66.57110),new google.maps.LatLng(24.01749 ,67.26446),new google.maps.LatLng(24.33585 ,66.59889),new google.maps.LatLng(24.48393 ,67.24228),new google.maps.LatLng(25.11612 ,66.35362),new google.maps.LatLng(25.52566 ,66.67689),new google.maps.LatLng(25.60478 ,67.94585),new google.maps.LatLng(26.07718 ,67.21174),new google.maps.LatLng(25.55214 ,66.82769),new google.maps.LatLng(25.07187 ,66.81338),new google.maps.LatLng(24.50350 ,67.85527),new google.maps.LatLng(25.74355 ,67.23202),new google.maps.LatLng(25.22231 ,67.20701),new google.maps.LatLng(24.66824 ,65.99769),new google.maps.LatLng(24.97780 ,66.83820),new google.maps.LatLng(24.94466 ,67.96452),new google.maps.LatLng(24.99254 ,67.13996),new google.maps.LatLng(24.57044 ,67.59259),new google.maps.LatLng(24.24222 ,66.60827),new google.maps.LatLng(24.81013 ,67.47943),new google.maps.LatLng(25.59007 ,67.11635),new google.maps.LatLng(24.47923 ,66.90941),new google.maps.LatLng(25.86254 ,66.98778),new google.maps.LatLng(25.56841 ,67.84096),new google.maps.LatLng(25.20572 ,67.13916),new google.maps.LatLng(24.02383 ,67.68276),new google.maps.LatLng(24.25971 ,66.33978),new google.maps.LatLng(25.54604 ,66.44628),new google.maps.LatLng(24.29406 ,67.39622),new google.maps.LatLng(23.97916 ,66.41447),new google.maps.LatLng(25.18015 ,67.78642),new google.maps.LatLng(25.44728 ,66.70414),new google.maps.LatLng(25.24295 ,67.72367),new google.maps.LatLng(25.03293 ,67.31458),new google.maps.LatLng(23.87000 ,67.00669),new google.maps.LatLng(24.88567 ,67.36908),new google.maps.LatLng(24.31691 ,66.30768),new google.maps.LatLng(26.08233 ,67.19783),new google.maps.LatLng(24.25104 ,66.28435),new google.maps.LatLng(26.08565 ,67.11935),new google.maps.LatLng(24.24300 ,66.63585),new google.maps.LatLng(25.93903 ,67.39797),new google.maps.LatLng(24.44050 ,66.82933),new google.maps.LatLng(25.49424 ,67.88418),new google.maps.LatLng(25.76435 ,67.14252),new google.maps.LatLng(24.91925 ,66.96505),new google.maps.LatLng(25.78808 ,66.46793),new google.maps.LatLng(23.94179 ,67.45705),new google.maps.LatLng(25.93664 ,66.69672),new google.maps.LatLng(24.11540 ,67.86311),new google.maps.LatLng(25.97710 ,67.02235),new google.maps.LatLng(24.36270 ,67.62541),new google.maps.LatLng(24.49325 ,67.69016),new google.maps.LatLng(24.42598 ,67.13280),new google.maps.LatLng(25.50766 ,67.36640),new google.maps.LatLng(25.64616 ,67.48289),new google.maps.LatLng(23.93257 ,66.98631),new google.maps.LatLng(25.10892 ,66.36934),new google.maps.LatLng(24.78067 ,67.81924),new google.maps.LatLng(24.64693 ,67.70273),new google.maps.LatLng(23.82357 ,67.35876),new google.maps.LatLng(24.62397 ,66.83862),new google.maps.LatLng(25.03828 ,68.01441),new google.maps.LatLng(25.53961 ,66.63775),new google.maps.LatLng(25.08179 ,65.91674),new google.maps.LatLng(24.29133 ,66.12713),new google.maps.LatLng(25.12497 ,67.22225),new google.maps.LatLng(24.12458 ,66.59987),new google.maps.LatLng(25.16717 ,67.10547),new google.maps.LatLng(24.74873 ,66.29530),new google.maps.LatLng(24.88510 ,66.90241),new google.maps.LatLng(25.71736 ,66.91029),new google.maps.LatLng(24.62787 ,67.06467),new google.maps.LatLng(23.90408 ,67.29071),new google.maps.LatLng(25.76045 ,67.83033),new google.maps.LatLng(25.79125 ,67.75259),new google.maps.LatLng(24.75985 ,67.75784),new google.maps.LatLng(25.81429 ,66.44298),new google.maps.LatLng(24.13256 ,67.31193),new google.maps.LatLng(25.70292 ,66.79347),new google.maps.LatLng(24.88735 ,68.09230),new google.maps.LatLng(25.39169 ,67.36820),new google.maps.LatLng(25.96876 ,66.89700),new google.maps.LatLng(24.45939 ,67.23396),new google.maps.LatLng(23.87581 ,66.61352),new google.maps.LatLng(26.02711 ,66.67083),new google.maps.LatLng(25.94804 ,66.82372),new google.maps.LatLng(23.92486 ,66.81870),new google.maps.LatLng(25.12006 ,67.77055),new google.maps.LatLng(25.35478 ,66.17145),new google.maps.LatLng(24.94198 ,67.20105),new google.maps.LatLng(24.72764 ,68.21093),new google.maps.LatLng(25.17583 ,65.93844),new google.maps.LatLng(24.74543 ,67.68440),new google.maps.LatLng(24.84820 ,65.95540),new google.maps.LatLng(25.69332 ,67.04853),new google.maps.LatLng(25.44707 ,67.69034),new google.maps.LatLng(25.43713 ,68.11594),new google.maps.LatLng(24.38930 ,66.77978),new google.maps.LatLng(25.72439 ,66.46115),new google.maps.LatLng(24.20865 ,67.87373),new google.maps.LatLng(24.81117 ,67.82088),new google.maps.LatLng(25.54714 ,66.08076),new google.maps.LatLng(25.54948 ,66.65862),new google.maps.LatLng(25.74953 ,67.45045),new google.maps.LatLng(25.77052 ,67.63251),new google.maps.LatLng(25.27816 ,67.27739),new google.maps.LatLng(25.02724 ,68.18846),new google.maps.LatLng(25.26322 ,67.17136),new google.maps.LatLng(24.58749 ,67.45407),new google.maps.LatLng(26.06736 ,66.82277),new google.maps.LatLng(24.13542 ,66.93129),new google.maps.LatLng(24.54457 ,66.33685),new google.maps.LatLng(25.61887 ,67.44887),new google.maps.LatLng(24.46641 ,66.13524),new google.maps.LatLng(24.13055 ,67.10705),new google.maps.LatLng(25.54125 ,66.51689),new google.maps.LatLng(24.74345 ,67.90755),new google.maps.LatLng(24.97918 ,67.82111),new google.maps.LatLng(23.88492 ,67.25391),new google.maps.LatLng(24.52232 ,67.47532),new google.maps.LatLng(25.75016 ,67.06885),new google.maps.LatLng(24.57666 ,67.55293),new google.maps.LatLng(25.18867 ,68.07621),new google.maps.LatLng(24.61823 ,67.06306),new google.maps.LatLng(24.88864 ,67.45220),new google.maps.LatLng(25.12774 ,66.40739),new google.maps.LatLng(24.96664 ,66.40707),new google.maps.LatLng(24.34493 ,67.78715),new google.maps.LatLng(24.80164 ,65.98577),new google.maps.LatLng(24.37979 ,67.28857),new google.maps.LatLng(26.05929 ,66.77764),new google.maps.LatLng(24.85199 ,66.77126),new google.maps.LatLng(24.95435 ,66.35319),new google.maps.LatLng(24.90010 ,68.19981),new google.maps.LatLng(24.35496 ,66.89900),new google.maps.LatLng(25.25552 ,66.20107),new google.maps.LatLng(25.79286 ,66.27247),new google.maps.LatLng(25.49387 ,67.24066),new google.maps.LatLng(25.75419 ,66.55772),new google.maps.LatLng(23.96217 ,67.65849),new google.maps.LatLng(23.90265 ,66.63608),new google.maps.LatLng(25.72452 ,66.35523),new google.maps.LatLng(24.73551 ,67.48232),new google.maps.LatLng(25.43586 ,67.62665),new google.maps.LatLng(24.39344 ,67.47646),new google.maps.LatLng(24.12198 ,67.76209),new google.maps.LatLng(25.67680 ,67.56529),new google.maps.LatLng(24.96102 ,67.00281),new google.maps.LatLng(24.63505 ,67.02856),new google.maps.LatLng(24.73413 ,66.37227),new google.maps.LatLng(25.02001 ,65.97520),new google.maps.LatLng(23.96903 ,66.89261),new google.maps.LatLng(24.46125 ,66.36835),new google.maps.LatLng(26.00323 ,67.48763),new google.maps.LatLng(24.90600 ,67.27476),new google.maps.LatLng(24.75676 ,66.48245),new google.maps.LatLng(25.24339 ,67.62036),new google.maps.LatLng(25.33812 ,66.12967),new google.maps.LatLng(24.39919 ,66.90612),new google.maps.LatLng(25.48977 ,66.05731),new google.maps.LatLng(25.02190 ,67.68935),new google.maps.LatLng(24.08858 ,67.44306),new google.maps.LatLng(24.34598 ,67.00608),new google.maps.LatLng(24.62393 ,66.81451),new google.maps.LatLng(24.86292 ,68.02579),new google.maps.LatLng(24.21130 ,67.87712),new google.maps.LatLng(25.40157 ,67.32591),new google.maps.LatLng(24.56588 ,66.00996),new google.maps.LatLng(25.31319 ,66.91622),new google.maps.LatLng(25.44949 ,67.18874),new google.maps.LatLng(23.92186 ,67.26384),new google.maps.LatLng(24.55649 ,66.30131),new google.maps.LatLng(25.19571 ,66.81561),new google.maps.LatLng(25.36519 ,67.64802),new google.maps.LatLng(24.90464 ,66.73897),new google.maps.LatLng(24.31068 ,66.99422),new google.maps.LatLng(24.53581 ,66.66534),new google.maps.LatLng(24.78445 ,67.45019),new google.maps.LatLng(23.83586 ,66.96393),new google.maps.LatLng(24.62051 ,67.47640),new google.maps.LatLng(24.74220 ,66.70321),new google.maps.LatLng(24.24453 ,66.96286),new google.maps.LatLng(24.81614 ,66.99884),new google.maps.LatLng(23.87395 ,67.13343),new google.maps.LatLng(24.68000 ,68.19643),new google.maps.LatLng(24.92081 ,67.98387),new google.maps.LatLng(25.18135 ,68.18899),new google.maps.LatLng(24.88249 ,67.72119),new google.maps.LatLng(25.68881 ,67.47268),new google.maps.LatLng(25.32563 ,66.63318),new google.maps.LatLng(24.34298 ,67.22780),new google.maps.LatLng(24.82108 ,66.58066),new google.maps.LatLng(23.90123 ,67.47020),new google.maps.LatLng(24.88541 ,67.30498),new google.maps.LatLng(25.03826 ,66.55603),new google.maps.LatLng(26.03104 ,67.03214),new google.maps.LatLng(25.35265 ,66.83135),new google.maps.LatLng(24.44836 ,67.50262),new google.maps.LatLng(24.17300 ,67.91932),new google.maps.LatLng(25.58827 ,66.19612),new google.maps.LatLng(24.47534 ,66.69561),new google.maps.LatLng(25.91853 ,66.58734),new google.maps.LatLng(25.20033 ,66.22313),new google.maps.LatLng(25.84775 ,66.91041),new google.maps.LatLng(25.88766 ,67.46853),new google.maps.LatLng(25.34472 ,67.92088),new google.maps.LatLng(25.22410 ,67.26168),new google.maps.LatLng(25.20068 ,66.06615),new google.maps.LatLng(25.27468 ,66.56985),new google.maps.LatLng(25.34250 ,67.44217),new google.maps.LatLng(25.26356 ,66.40949),new google.maps.LatLng(24.86533 ,66.36576),new google.maps.LatLng(24.06301 ,66.61524),new google.maps.LatLng(25.71239 ,66.52616),new google.maps.LatLng(25.46171 ,67.66546),new google.maps.LatLng(25.86439 ,67.23597),new google.maps.LatLng(25.11934 ,67.01125),new google.maps.LatLng(25.00451 ,67.75406),new google.maps.LatLng(25.77281 ,67.14804),new google.maps.LatLng(25.27629 ,68.03343),new google.maps.LatLng(24.65922 ,67.96039),new google.maps.LatLng(24.77120 ,67.92837),new google.maps.LatLng(24.82477 ,67.79406),new google.maps.LatLng(24.03444 ,67.25081),new google.maps.LatLng(26.03873 ,67.04949),new google.maps.LatLng(24.63971 ,66.87313),new google.maps.LatLng(25.44030 ,66.97032),new google.maps.LatLng(24.78578 ,66.38077),new google.maps.LatLng(24.11597 ,66.92559),new google.maps.LatLng(25.43699 ,67.37198),new google.maps.LatLng(24.43241 ,66.06069),new google.maps.LatLng(24.04460 ,66.75595),new google.maps.LatLng(24.76214 ,66.14284),new google.maps.LatLng(25.70755 ,67.28958),new google.maps.LatLng(25.03189 ,66.90097),new google.maps.LatLng(25.52564 ,67.50499),new google.maps.LatLng(24.54588 ,67.08604),new google.maps.LatLng(25.08864 ,65.91118),new google.maps.LatLng(26.01476 ,67.03315),new google.maps.LatLng(24.98167 ,66.37989),new google.maps.LatLng(23.95129 ,66.48565),new google.maps.LatLng(24.58353 ,66.69268),new google.maps.LatLng(24.61124 ,67.54738),new google.maps.LatLng(25.12765 ,68.13097),new google.maps.LatLng(24.74657 ,68.00505),new google.maps.LatLng(25.43457 ,66.98845),new google.maps.LatLng(24.57262 ,66.62701),new google.maps.LatLng(25.84756 ,66.66539),new google.maps.LatLng(25.44793 ,67.15227),new google.maps.LatLng(24.60091 ,67.44269),new google.maps.LatLng(25.41400 ,67.03817),new google.maps.LatLng(25.22062 ,67.76386),new google.maps.LatLng(25.74983 ,67.68333),new google.maps.LatLng(25.46202 ,67.03945),new google.maps.LatLng(25.63570 ,66.38542),new google.maps.LatLng(24.11211 ,66.28271),new google.maps.LatLng(25.74539 ,67.75554),new google.maps.LatLng(25.57109 ,66.52683),new google.maps.LatLng(25.94462 ,66.93683),new google.maps.LatLng(24.66980 ,66.71377),new google.maps.LatLng(25.43923 ,66.48860),new google.maps.LatLng(24.18749 ,67.88051),new google.maps.LatLng(25.95266 ,67.09971),new google.maps.LatLng(24.64377 ,66.50863),new google.maps.LatLng(25.65840 ,67.26514),new google.maps.LatLng(24.22283 ,67.55187),new google.maps.LatLng(25.00725 ,67.30456),new google.maps.LatLng(25.30117 ,66.88877),new google.maps.LatLng(25.57529 ,66.65325),new google.maps.LatLng(24.93156 ,67.21770),new google.maps.LatLng(25.50713 ,67.40840),new google.maps.LatLng(24.52397 ,68.11334),new google.maps.LatLng(25.58996 ,66.87269),new google.maps.LatLng(25.23177 ,66.51900),new google.maps.LatLng(25.60446 ,66.45587),new google.maps.LatLng(24.74867 ,68.01601),new google.maps.LatLng(25.38663 ,67.97317),new google.maps.LatLng(24.74569 ,67.97044),new google.maps.LatLng(24.59644 ,66.65402),new google.maps.LatLng(25.03413 ,66.33416),new google.maps.LatLng(24.09235 ,66.67459),new google.maps.LatLng(25.91504 ,66.91962),new google.maps.LatLng(24.92162 ,65.92467),new google.maps.LatLng(25.44141 ,66.09973),new google.maps.LatLng(24.37151 ,67.37174),new google.maps.LatLng(24.14863 ,67.19250),new google.maps.LatLng(25.71847 ,66.98233),new google.maps.LatLng(23.95431 ,67.33239),new google.maps.LatLng(23.81805 ,67.33228),new google.maps.LatLng(25.05554 ,68.11784),new google.maps.LatLng(25.58692 ,66.23353),new google.maps.LatLng(25.08003 ,66.39974),new google.maps.LatLng(25.63613 ,66.90624),new google.maps.LatLng(25.75858 ,67.55509),new google.maps.LatLng(25.00101 ,66.53292),new google.maps.LatLng(24.02324 ,66.91163),new google.maps.LatLng(24.99503 ,66.99808),new google.maps.LatLng(25.75384 ,67.73400),new google.maps.LatLng(24.95957 ,66.85631),new google.maps.LatLng(26.07027 ,67.23711),new google.maps.LatLng(25.72356 ,66.38497),new google.maps.LatLng(24.79557 ,67.61419),new google.maps.LatLng(23.92417 ,66.67527),new google.maps.LatLng(24.86310 ,67.38139),new google.maps.LatLng(24.66084 ,66.28627),new google.maps.LatLng(25.86062 ,67.16156),new google.maps.LatLng(23.86475 ,66.99824),new google.maps.LatLng(24.71180 ,66.47794),new google.maps.LatLng(25.68750 ,66.85755),new google.maps.LatLng(24.14725 ,67.33561),new google.maps.LatLng(24.91065 ,67.46115),new google.maps.LatLng(25.47510 ,66.40091),new google.maps.LatLng(25.17376 ,67.32634),new google.maps.LatLng(25.07359 ,66.48066),new google.maps.LatLng(24.35515 ,67.71712),new google.maps.LatLng(24.90087 ,66.63293),new google.maps.LatLng(25.83764 ,66.84538),new google.maps.LatLng(25.73762 ,67.46533),new google.maps.LatLng(26.01718 ,67.29538),new google.maps.LatLng(25.14368 ,66.19598),new google.maps.LatLng(25.69950 ,67.79716),new google.maps.LatLng(24.47329 ,67.72327),new google.maps.LatLng(25.52142 ,67.34058),new google.maps.LatLng(24.46825 ,66.81636),new google.maps.LatLng(24.09722 ,67.62621),new google.maps.LatLng(25.23962 ,66.00596),new google.maps.LatLng(26.00353 ,67.50483),new google.maps.LatLng(24.02205 ,66.92561),new google.maps.LatLng(24.42536 ,67.76515),new google.maps.LatLng(24.25660 ,67.21263),new google.maps.LatLng(24.56624 ,66.47652),new google.maps.LatLng(25.76175 ,66.46009),new google.maps.LatLng(24.89740 ,67.92139),new google.maps.LatLng(24.79255 ,67.27720),new google.maps.LatLng(25.36117 ,66.91256),new google.maps.LatLng(24.43560 ,67.49296),new google.maps.LatLng(24.35852 ,66.63863),new google.maps.LatLng(24.17595 ,66.61411),new google.maps.LatLng(24.57875 ,66.38790),new google.maps.LatLng(24.93382 ,66.93303),new google.maps.LatLng(24.85855 ,66.35009),new google.maps.LatLng(25.45565 ,67.31089),new google.maps.LatLng(24.73174 ,66.84268),new google.maps.LatLng(24.84483 ,66.72690),new google.maps.LatLng(25.40670 ,67.14635),new google.maps.LatLng(26.06447 ,67.05491),new google.maps.LatLng(25.51771 ,67.13846),new google.maps.LatLng(25.17989 ,68.02272),new google.maps.LatLng(25.72035 ,67.30008),new google.maps.LatLng(25.58201 ,66.16985),new google.maps.LatLng(25.61641 ,67.61713),new google.maps.LatLng(24.80481 ,67.80616),new google.maps.LatLng(24.34473 ,67.35796),new google.maps.LatLng(25.64291 ,67.59289),new google.maps.LatLng(24.49098 ,67.51526),new google.maps.LatLng(25.06689 ,67.72244),new google.maps.LatLng(24.80285 ,67.75149),new google.maps.LatLng(24.87343 ,68.17813),new google.maps.LatLng(25.57844 ,67.94581),new google.maps.LatLng(24.89211 ,67.56705),new google.maps.LatLng(25.46136 ,67.12061),new google.maps.LatLng(25.49380 ,66.14893),new google.maps.LatLng(24.77934 ,66.40183),new google.maps.LatLng(25.75761 ,66.43932),new google.maps.LatLng(24.43401 ,66.51562),new google.maps.LatLng(24.66264 ,66.53451),new google.maps.LatLng(25.60606 ,67.52235),new google.maps.LatLng(24.95405 ,68.23453),new google.maps.LatLng(24.35467 ,66.74155),new google.maps.LatLng(25.81045 ,66.96935),new google.maps.LatLng(23.91503 ,66.54371),new google.maps.LatLng(25.84718 ,66.32854),new google.maps.LatLng(24.46707 ,66.85984),new google.maps.LatLng(24.61996 ,66.89485),new google.maps.LatLng(25.31549 ,66.35897),new google.maps.LatLng(24.33691 ,67.46914),new google.maps.LatLng(24.42195 ,67.14616),new google.maps.LatLng(25.34981 ,66.12509),new google.maps.LatLng(25.75350 ,66.76465),new google.maps.LatLng(25.78241 ,67.43649),new google.maps.LatLng(23.96477 ,67.13825),new google.maps.LatLng(24.98404 ,67.64138),new google.maps.LatLng(25.82546 ,67.21223),new google.maps.LatLng(25.87796 ,67.46064),new google.maps.LatLng(25.11192 ,67.07856),new google.maps.LatLng(25.60472 ,66.37579),new google.maps.LatLng(25.52668 ,66.70511),new google.maps.LatLng(24.46216 ,66.35143),new google.maps.LatLng(24.71161 ,66.84148),new google.maps.LatLng(25.47474 ,67.62546),new google.maps.LatLng(24.71358 ,67.05459),new google.maps.LatLng(24.57324 ,66.90498),new google.maps.LatLng(25.40856 ,67.06526),new google.maps.LatLng(24.53575 ,67.79438),new google.maps.LatLng(25.48534 ,66.94635),new google.maps.LatLng(24.65738 ,66.09564),new google.maps.LatLng(23.90900 ,66.70752),new google.maps.LatLng(24.09676 ,66.72409),new google.maps.LatLng(25.14441 ,67.48531),new google.maps.LatLng(24.33503 ,68.03830),new google.maps.LatLng(24.78831 ,66.25454),new google.maps.LatLng(24.96055 ,66.97855),new google.maps.LatLng(25.14183 ,67.44161),new google.maps.LatLng(24.96301 ,66.32629),new google.maps.LatLng(24.16289 ,67.36265),new google.maps.LatLng(25.75577 ,67.36257),new google.maps.LatLng(25.17900 ,67.70533),new google.maps.LatLng(26.01164 ,66.59049),new google.maps.LatLng(24.65029 ,66.21755),new google.maps.LatLng(24.52436 ,67.62776),new google.maps.LatLng(24.57259 ,66.83420),new google.maps.LatLng(25.02534 ,66.22080),new google.maps.LatLng(25.27087 ,67.51068),new google.maps.LatLng(24.16609 ,67.01843),new google.maps.LatLng(25.60965 ,66.39517),new google.maps.LatLng(26.06179 ,67.15987),new google.maps.LatLng(25.64879 ,66.18832),new google.maps.LatLng(24.64818 ,66.59003),new google.maps.LatLng(25.58468 ,67.53401),new google.maps.LatLng(25.89993 ,67.59326),new google.maps.LatLng(24.31792 ,66.28481),new google.maps.LatLng(25.45315 ,67.25551),new google.maps.LatLng(24.84091 ,66.92150),new google.maps.LatLng(25.17053 ,67.99459),new google.maps.LatLng(24.60809 ,65.96196),new google.maps.LatLng(24.67968 ,67.58339),new google.maps.LatLng(26.00972 ,66.76925),new google.maps.LatLng(23.85926 ,66.84597),new google.maps.LatLng(25.18635 ,66.73943),new google.maps.LatLng(24.50031 ,66.07487),new google.maps.LatLng(24.51253 ,66.12305),new google.maps.LatLng(25.34634 ,67.32503),new google.maps.LatLng(24.95758 ,67.84601),new google.maps.LatLng(24.25356 ,67.73008),new google.maps.LatLng(25.66570 ,67.42841),new google.maps.LatLng(25.08532 ,66.23768),new google.maps.LatLng(24.06214 ,67.71835),new google.maps.LatLng(25.56857 ,66.57922),new google.maps.LatLng(25.14181 ,66.60757),new google.maps.LatLng(24.12095 ,66.95533),new google.maps.LatLng(24.19675 ,66.65323),new google.maps.LatLng(25.52937 ,67.26331),new google.maps.LatLng(25.42755 ,67.27039),new google.maps.LatLng(25.29575 ,67.01431),new google.maps.LatLng(24.93941 ,67.57166),new google.maps.LatLng(24.90499 ,68.11435),new google.maps.LatLng(25.30076 ,67.24586),new google.maps.LatLng(24.17755 ,67.82090),new google.maps.LatLng(26.05499 ,66.94154),new google.maps.LatLng(24.84092 ,67.76807),new google.maps.LatLng(24.34955 ,67.03581),new google.maps.LatLng(24.78622 ,66.14702),new google.maps.LatLng(24.51638 ,66.30509),new google.maps.LatLng(23.99520 ,66.43674),new google.maps.LatLng(24.92927 ,66.91155),new google.maps.LatLng(24.31981 ,66.81660),new google.maps.LatLng(24.81548 ,66.95901),new google.maps.LatLng(25.21925 ,67.77152),new google.maps.LatLng(24.93515 ,67.03647),new google.maps.LatLng(25.45164 ,66.48459),new google.maps.LatLng(25.14142 ,67.90160),new google.maps.LatLng(25.56591 ,67.65949),new google.maps.LatLng(24.21734 ,66.73182),new google.maps.LatLng(24.91460 ,68.10204),new google.maps.LatLng(24.32074 ,66.79043),new google.maps.LatLng(24.84530 ,68.14016),new google.maps.LatLng(25.76605 ,67.78571),new google.maps.LatLng(25.14165 ,67.49117),new google.maps.LatLng(25.26254 ,67.49585),new google.maps.LatLng(25.11595 ,66.13361),new google.maps.LatLng(25.93061 ,67.63153),new google.maps.LatLng(24.91846 ,66.64404),new google.maps.LatLng(24.06929 ,66.74412),new google.maps.LatLng(25.74106 ,66.71647),new google.maps.LatLng(24.30686 ,66.85404),new google.maps.LatLng(25.25109 ,67.00486),new google.maps.LatLng(24.43549 ,66.68428),new google.maps.LatLng(23.95042 ,67.60262),new google.maps.LatLng(24.74339 ,66.08346),new google.maps.LatLng(26.00509 ,66.85459),new google.maps.LatLng(24.58828 ,68.04246),new google.maps.LatLng(25.51100 ,66.09790),new google.maps.LatLng(24.24657 ,66.48736),new google.maps.LatLng(24.12847 ,66.74369),new google.maps.LatLng(24.09529 ,66.95994),new google.maps.LatLng(25.50430 ,67.42952),new google.maps.LatLng(24.10861 ,67.17126),new google.maps.LatLng(24.29191 ,67.37471),new google.maps.LatLng(24.47349 ,67.15373),new google.maps.LatLng(24.44042 ,67.76403),new google.maps.LatLng(24.55257 ,67.28664),new google.maps.LatLng(25.41443 ,66.91827),new google.maps.LatLng(25.11607 ,67.96272),new google.maps.LatLng(26.01394 ,66.97010),new google.maps.LatLng(24.77482 ,67.10628),new google.maps.LatLng(26.00501 ,66.69029),new google.maps.LatLng(25.49975 ,68.00436),new google.maps.LatLng(25.37947 ,68.05303),new google.maps.LatLng(25.96622 ,67.40038),new google.maps.LatLng(24.49792 ,67.24978),new google.maps.LatLng(24.80709 ,66.78201),new google.maps.LatLng(25.61546 ,67.07117),new google.maps.LatLng(24.80719 ,68.14339),new google.maps.LatLng(25.44229 ,67.57995),new google.maps.LatLng(25.40162 ,67.68240),new google.maps.LatLng(25.38470 ,67.62902),new google.maps.LatLng(25.00172 ,66.80307),new google.maps.LatLng(24.57966 ,67.68496),new google.maps.LatLng(24.35702 ,67.26977),new google.maps.LatLng(25.79333 ,67.52217),new google.maps.LatLng(25.81701 ,67.19901),new google.maps.LatLng(24.47700 ,68.01231),new google.maps.LatLng(25.17385 ,66.71142),new google.maps.LatLng(23.97103 ,67.36727),new google.maps.LatLng(23.94107 ,66.78412),new google.maps.LatLng(24.76049 ,66.34509),new google.maps.LatLng(24.45651 ,67.37234),new google.maps.LatLng(24.50278 ,67.28142),new google.maps.LatLng(24.66802 ,66.82740),new google.maps.LatLng(25.52845 ,66.92533),new google.maps.LatLng(25.92513 ,67.01665),new google.maps.LatLng(25.70555 ,66.29701),new google.maps.LatLng(25.63625 ,67.38742),new google.maps.LatLng(24.80867 ,67.07444),new google.maps.LatLng(24.94055 ,66.01511),new google.maps.LatLng(25.77481 ,67.19098),new google.maps.LatLng(25.54374 ,66.33384),new google.maps.LatLng(25.65169 ,67.09353),new google.maps.LatLng(25.34149 ,68.07216),new google.maps.LatLng(24.93617 ,66.17887),new google.maps.LatLng(24.92146 ,66.51351),new google.maps.LatLng(24.08905 ,66.79873),new google.maps.LatLng(23.89207 ,66.71323),new google.maps.LatLng(25.34868 ,66.57695),new google.maps.LatLng(25.64923 ,67.36632),new google.maps.LatLng(24.94715 ,67.46043),new google.maps.LatLng(25.57262 ,67.13793),new google.maps.LatLng(25.31379 ,67.37054),new google.maps.LatLng(25.49075 ,67.37883),new google.maps.LatLng(25.55329 ,67.19968),new google.maps.LatLng(25.27861 ,66.86254),new google.maps.LatLng(25.32723 ,66.89157),new google.maps.LatLng(24.84123 ,66.17677),new google.maps.LatLng(26.05725 ,66.75309),new google.maps.LatLng(24.55420 ,66.27474),new google.maps.LatLng(25.52246 ,66.24281),new google.maps.LatLng(24.27413 ,67.51404),new google.maps.LatLng(24.52029 ,66.36809),new google.maps.LatLng(25.20029 ,68.09722),new google.maps.LatLng(24.62538 ,65.98991),new google.maps.LatLng(25.72999 ,67.62000),new google.maps.LatLng(24.56381 ,67.81666),new google.maps.LatLng(24.07394 ,67.42387),new google.maps.LatLng(24.93178 ,67.07120),new google.maps.LatLng(25.25811 ,66.75228),new google.maps.LatLng(25.92629 ,66.69507),new google.maps.LatLng(25.35334 ,67.83447),new google.maps.LatLng(23.92797 ,66.78354),new google.maps.LatLng(24.58264 ,67.11339),new google.maps.LatLng(25.47481 ,67.82497),new google.maps.LatLng(25.64701 ,67.89356),new google.maps.LatLng(25.78599 ,66.37314),new google.maps.LatLng(24.66814 ,67.70367),new google.maps.LatLng(25.68907 ,66.44016),new google.maps.LatLng(25.49490 ,67.84434),new google.maps.LatLng(24.91161 ,67.03306),new google.maps.LatLng(23.80078 ,67.11409),new google.maps.LatLng(24.96197 ,67.79219),new google.maps.LatLng(24.23121 ,67.04203),new google.maps.LatLng(24.19842 ,66.93945),new google.maps.LatLng(26.03453 ,66.90981),new google.maps.LatLng(25.90472 ,66.75424),new google.maps.LatLng(25.17984 ,67.62843),new google.maps.LatLng(25.51791 ,66.56057),new google.maps.LatLng(24.45132 ,66.37468),new google.maps.LatLng(25.47704 ,67.95418),new google.maps.LatLng(25.31771 ,67.78849),new google.maps.LatLng(25.51381 ,66.42802),new google.maps.LatLng(24.50242 ,68.14657),new google.maps.LatLng(25.11533 ,66.98813),new google.maps.LatLng(24.72084 ,67.80397),new google.maps.LatLng(24.79766 ,67.89303),new google.maps.LatLng(25.81483 ,67.74547),new google.maps.LatLng(25.83947 ,67.34799),new google.maps.LatLng(24.91095 ,67.86685),new google.maps.LatLng(24.96630 ,67.65479),new google.maps.LatLng(23.93368 ,66.87110),new google.maps.LatLng(25.26468 ,67.60195),new google.maps.LatLng(25.78453 ,66.56907),new google.maps.LatLng(25.03809 ,66.60431),new google.maps.LatLng(25.37955 ,67.94788),new google.maps.LatLng(24.89778 ,66.74123),new google.maps.LatLng(25.18832 ,66.58685),new google.maps.LatLng(25.87838 ,66.89644),new google.maps.LatLng(24.73156 ,67.95500),new google.maps.LatLng(25.48966 ,66.71465),new google.maps.LatLng(24.17384 ,66.79117),new google.maps.LatLng(24.20202 ,67.08442),new google.maps.LatLng(24.37306 ,66.96715),new google.maps.LatLng(24.29064 ,66.68101),new google.maps.LatLng(25.67564 ,67.84465),new google.maps.LatLng(24.82906 ,67.51515),new google.maps.LatLng(24.68661 ,67.13140),new google.maps.LatLng(25.55768 ,67.33948),new google.maps.LatLng(24.54688 ,67.23961),new google.maps.LatLng(23.81936 ,67.25228),new google.maps.LatLng(25.04978 ,67.03702),new google.maps.LatLng(24.94846 ,66.57360),new google.maps.LatLng(24.65054 ,65.97708),new google.maps.LatLng(24.57762 ,67.05661),new google.maps.LatLng(25.49898 ,66.53295),new google.maps.LatLng(25.36499 ,66.55684),new google.maps.LatLng(24.66520 ,67.04180),new google.maps.LatLng(25.08377 ,66.46655),new google.maps.LatLng(26.09321 ,67.26294),new google.maps.LatLng(25.82036 ,67.18507),new google.maps.LatLng(24.66134 ,67.07542),new google.maps.LatLng(24.53012 ,67.82389),new google.maps.LatLng(24.40517 ,67.43779),new google.maps.LatLng(24.03573 ,67.62224),new google.maps.LatLng(26.08373 ,66.91345),new google.maps.LatLng(24.78403 ,67.60377),new google.maps.LatLng(24.07211 ,66.59740),new google.maps.LatLng(24.08518 ,66.74268),new google.maps.LatLng(25.52575 ,67.59846),new google.maps.LatLng(25.47644 ,66.10472),new google.maps.LatLng(24.64417 ,66.25894),new google.maps.LatLng(23.96201 ,66.90364),new google.maps.LatLng(25.39276 ,66.32201),new google.maps.LatLng(23.92818 ,67.01820),new google.maps.LatLng(26.04081 ,66.86798),new google.maps.LatLng(24.22504 ,66.73923),new google.maps.LatLng(25.85275 ,66.45754),new google.maps.LatLng(25.73467 ,66.98149),new google.maps.LatLng(24.38109 ,67.26751),new google.maps.LatLng(25.85741 ,67.27266),new google.maps.LatLng(25.79433 ,66.39423),new google.maps.LatLng(24.47299 ,66.89521),new google.maps.LatLng(24.86797 ,66.05160),new google.maps.LatLng(24.65030 ,67.72729),new google.maps.LatLng(25.61790 ,68.01689),new google.maps.LatLng(24.13223 ,66.23567),new google.maps.LatLng(25.78872 ,67.65139),new google.maps.LatLng(25.18486 ,66.99157),new google.maps.LatLng(25.72838 ,66.72474),new google.maps.LatLng(25.80959 ,66.88335),new google.maps.LatLng(24.48475 ,66.72978),new google.maps.LatLng(25.59752 ,66.92556),new google.maps.LatLng(25.39812 ,66.42033),new google.maps.LatLng(25.59939 ,66.48283),new google.maps.LatLng(25.14235 ,67.97132),new google.maps.LatLng(25.06012 ,67.26428),new google.maps.LatLng(24.78087 ,66.34570),new google.maps.LatLng(24.15932 ,66.78860),new google.maps.LatLng(24.27769 ,67.28283),new google.maps.LatLng(25.54816 ,67.93369),new google.maps.LatLng(25.92392 ,66.51734),new google.maps.LatLng(25.86349 ,67.41350),new google.maps.LatLng(24.34598 ,66.43937),new google.maps.LatLng(23.79510 ,67.12932),new google.maps.LatLng(25.86622 ,67.26763),new google.maps.LatLng(24.42136 ,67.83181),new google.maps.LatLng(24.56193 ,68.07045),new google.maps.LatLng(25.23311 ,67.43140),new google.maps.LatLng(24.06844 ,67.01792),new google.maps.LatLng(24.09591 ,67.36269),new google.maps.LatLng(24.56347 ,66.77894),new google.maps.LatLng(24.53088 ,66.52073),new google.maps.LatLng(23.97069 ,66.48622),new google.maps.LatLng(25.76870 ,67.06602),new google.maps.LatLng(24.73643 ,67.21073),new google.maps.LatLng(24.51648 ,67.84861),new google.maps.LatLng(25.46417 ,67.44314),new google.maps.LatLng(25.56167 ,67.49759),new google.maps.LatLng(24.37389 ,66.21140),new google.maps.LatLng(25.91488 ,66.64992),new google.maps.LatLng(24.88427 ,67.33847),new google.maps.LatLng(23.82197 ,67.21112),new google.maps.LatLng(24.54411 ,67.59606),new google.maps.LatLng(25.45151 ,67.20366),new google.maps.LatLng(23.97234 ,67.01235),new google.maps.LatLng(25.94915 ,66.90788),new google.maps.LatLng(24.20999 ,66.27712),new google.maps.LatLng(24.92802 ,66.38955),new google.maps.LatLng(24.20820 ,67.18879),new google.maps.LatLng(24.72864 ,67.69814),new google.maps.LatLng(24.77692 ,67.95156),new google.maps.LatLng(25.22853 ,67.19622),new google.maps.LatLng(25.28213 ,66.16695),new google.maps.LatLng(25.89554 ,66.75858),new google.maps.LatLng(24.29759 ,67.27833),new google.maps.LatLng(24.78079 ,65.93241),new google.maps.LatLng(24.43187 ,66.38103),new google.maps.LatLng(24.89847 ,66.57146),new google.maps.LatLng(24.81985 ,67.63810),new google.maps.LatLng(25.54838 ,67.91956),new google.maps.LatLng(24.74271 ,68.07691),new google.maps.LatLng(24.87812 ,66.53693),new google.maps.LatLng(24.59255 ,66.01997),new google.maps.LatLng(24.88181 ,66.15584),new google.maps.LatLng(25.00291 ,67.28214),new google.maps.LatLng(25.01339 ,68.16959),new google.maps.LatLng(25.53808 ,66.25344),new google.maps.LatLng(25.74043 ,67.85015),new google.maps.LatLng(24.79564 ,67.35496),new google.maps.LatLng(24.25003 ,67.13027),new google.maps.LatLng(23.89564 ,67.02613),new google.maps.LatLng(24.90674 ,66.94231),new google.maps.LatLng(24.74371 ,66.19025),new google.maps.LatLng(24.89282 ,67.28814),new google.maps.LatLng(24.42224 ,67.35043),new google.maps.LatLng(25.15232 ,67.91625),new google.maps.LatLng(24.08634 ,66.47635),new google.maps.LatLng(24.66601 ,67.00552),new google.maps.LatLng(25.97801 ,67.16253),new google.maps.LatLng(24.40644 ,67.69546),new google.maps.LatLng(24.58886 ,67.15651),new google.maps.LatLng(25.38716 ,66.16882),new google.maps.LatLng(25.93232 ,67.59589),new google.maps.LatLng(25.85971 ,66.45161),new google.maps.LatLng(25.58907 ,66.19872),new google.maps.LatLng(24.43466 ,66.39948),new google.maps.LatLng(26.04201 ,67.18248),new google.maps.LatLng(24.39990 ,67.43297),new google.maps.LatLng(25.93838 ,66.75658),new google.maps.LatLng(24.03150 ,66.38717),new google.maps.LatLng(25.38124 ,67.49148),new google.maps.LatLng(24.36928 ,66.77261),new google.maps.LatLng(25.48961 ,67.96911),new google.maps.LatLng(24.62829 ,68.17776),new google.maps.LatLng(25.16172 ,67.80014),new google.maps.LatLng(24.47480 ,66.47249),new google.maps.LatLng(24.57681 ,67.54208),new google.maps.LatLng(25.66161 ,67.09479),new google.maps.LatLng(24.69856 ,67.90085),new google.maps.LatLng(24.73402 ,67.87587),new google.maps.LatLng(24.87368 ,68.17122),new google.maps.LatLng(25.66710 ,67.72855),new google.maps.LatLng(23.96135 ,66.45656),new google.maps.LatLng(25.39670 ,66.19362),new google.maps.LatLng(24.71651 ,66.27085),new google.maps.LatLng(24.55465 ,66.78150),new google.maps.LatLng(24.80039 ,67.36525),new google.maps.LatLng(25.34032 ,67.66436),new google.maps.LatLng(24.10378 ,66.58290),new google.maps.LatLng(24.16032 ,67.71898),new google.maps.LatLng(24.93434 ,67.60051),new google.maps.LatLng(25.08509 ,67.63015),new google.maps.LatLng(24.12211 ,67.48428),new google.maps.LatLng(24.93901 ,67.82779),new google.maps.LatLng(24.10714 ,67.34554),new google.maps.LatLng(25.72484 ,67.00865),new google.maps.LatLng(25.84981 ,67.25241),new google.maps.LatLng(24.63220 ,66.01740),new google.maps.LatLng(24.88962 ,67.37738),new google.maps.LatLng(23.82785 ,66.92608),new google.maps.LatLng(25.28074 ,66.92730),new google.maps.LatLng(24.35857 ,66.91250),new google.maps.LatLng(24.09136 ,67.20912),new google.maps.LatLng(25.40082 ,66.41324),new google.maps.LatLng(24.12018 ,66.28958),new google.maps.LatLng(26.07837 ,66.97054),new google.maps.LatLng(24.61313 ,66.04420),new google.maps.LatLng(23.85876 ,67.07005),new google.maps.LatLng(25.39195 ,66.92813),new google.maps.LatLng(25.93681 ,66.88218),new google.maps.LatLng(24.38089 ,67.96108),new google.maps.LatLng(24.45712 ,66.53807),new google.maps.LatLng(25.12368 ,67.38661),new google.maps.LatLng(24.83641 ,67.54806),new google.maps.LatLng(24.87134 ,67.26378),new google.maps.LatLng(23.80828 ,67.18511),new google.maps.LatLng(25.32835 ,68.02091)]; \r\n }\r\n else if(type == 4){\r\n return [new google.maps.LatLng(33.15295 ,73.26083),new google.maps.LatLng(32.87989 ,73.40314),new google.maps.LatLng(32.91997 ,73.83716),new google.maps.LatLng(34.32663 ,73.01131),new google.maps.LatLng(34.03617 ,72.75673),new google.maps.LatLng(33.98725 ,73.81617),new google.maps.LatLng(32.78726 ,73.52602),new google.maps.LatLng(34.17031 ,72.63758),new google.maps.LatLng(32.98379 ,72.46360),new google.maps.LatLng(33.36657 ,73.64793),new google.maps.LatLng(32.91398 ,72.74786),new google.maps.LatLng(34.46003 ,72.41846),new google.maps.LatLng(32.94156 ,72.86225),new google.maps.LatLng(34.41325 ,72.72280),new google.maps.LatLng(32.63460 ,73.18754),new google.maps.LatLng(33.32294 ,73.37666),new google.maps.LatLng(34.39903 ,73.35575),new google.maps.LatLng(32.58102 ,73.05733),new google.maps.LatLng(33.44285 ,72.54173),new google.maps.LatLng(33.67736 ,72.89117),new google.maps.LatLng(33.48111 ,72.77141),new google.maps.LatLng(34.08299 ,71.99079),new google.maps.LatLng(33.28270 ,73.20807),new google.maps.LatLng(33.29958 ,73.62875),new google.maps.LatLng(33.53739 ,72.44606),new google.maps.LatLng(33.31174 ,73.82315),new google.maps.LatLng(34.48785 ,73.51506),new google.maps.LatLng(32.95580 ,72.81203),new google.maps.LatLng(33.44514 ,73.36197),new google.maps.LatLng(34.38912 ,72.74808),new google.maps.LatLng(34.00148 ,73.20976),new google.maps.LatLng(33.77697 ,73.58526),new google.maps.LatLng(33.08497 ,72.99338),new google.maps.LatLng(34.17580 ,72.90532),new google.maps.LatLng(33.62445 ,72.53317),new google.maps.LatLng(33.49178 ,72.42898),new google.maps.LatLng(34.65868 ,72.79045),new google.maps.LatLng(33.60411 ,73.39778),new google.maps.LatLng(34.62927 ,72.96979),new google.maps.LatLng(34.20187 ,72.30938),new google.maps.LatLng(33.11639 ,72.94152),new google.maps.LatLng(33.76171 ,73.41914),new google.maps.LatLng(33.19941 ,73.87748),new google.maps.LatLng(33.95317 ,72.13385),new google.maps.LatLng(34.70831 ,72.77252),new google.maps.LatLng(32.69659 ,72.76959),new google.maps.LatLng(34.67243 ,72.57641),new google.maps.LatLng(33.81695 ,72.06449),new google.maps.LatLng(33.12298 ,73.76466),new google.maps.LatLng(32.70690 ,73.04730),new google.maps.LatLng(33.20205 ,73.47589),new google.maps.LatLng(32.87787 ,72.41173),new google.maps.LatLng(33.98885 ,73.34023),new google.maps.LatLng(34.49465 ,73.77194),new google.maps.LatLng(34.00779 ,73.59985),new google.maps.LatLng(34.33577 ,73.36951),new google.maps.LatLng(33.74350 ,73.14348),new google.maps.LatLng(34.05090 ,73.52753),new google.maps.LatLng(33.91148 ,71.97576),new google.maps.LatLng(34.32424 ,73.52877),new google.maps.LatLng(33.01601 ,72.91995),new google.maps.LatLng(34.07768 ,72.78589),new google.maps.LatLng(32.71475 ,72.92542),new google.maps.LatLng(33.76971 ,72.46026),new google.maps.LatLng(34.07423 ,72.34767),new google.maps.LatLng(33.97378 ,73.19433),new google.maps.LatLng(34.09714 ,73.24382),new google.maps.LatLng(33.60045 ,72.01561),new google.maps.LatLng(33.82196 ,72.36341),new google.maps.LatLng(34.17443 ,73.96378),new google.maps.LatLng(32.78641 ,73.21986),new google.maps.LatLng(33.53228 ,72.05112),new google.maps.LatLng(32.74536 ,73.35680),new google.maps.LatLng(33.79785 ,72.18591),new google.maps.LatLng(33.07199 ,73.76361),new google.maps.LatLng(33.71608 ,72.88654),new google.maps.LatLng(32.71868 ,73.32024),new google.maps.LatLng(33.34126 ,72.81051),new google.maps.LatLng(33.56615 ,72.48105),new google.maps.LatLng(33.26391 ,72.87911),new google.maps.LatLng(33.98663 ,72.13854),new google.maps.LatLng(32.88257 ,72.43557),new google.maps.LatLng(33.53296 ,73.38969),new google.maps.LatLng(33.81100 ,73.78865),new google.maps.LatLng(33.41764 ,73.81259),new google.maps.LatLng(34.73915 ,72.68141),new google.maps.LatLng(33.88883 ,72.50939),new google.maps.LatLng(33.67345 ,73.95598),new google.maps.LatLng(33.43117 ,72.90688),new google.maps.LatLng(33.21524 ,73.34389),new google.maps.LatLng(33.86179 ,72.26994),new google.maps.LatLng(32.71667 ,73.59854),new google.maps.LatLng(33.57857 ,74.07421),new google.maps.LatLng(33.09593 ,72.15845),new google.maps.LatLng(33.06949 ,72.60218),new google.maps.LatLng(34.00911 ,73.53174),new google.maps.LatLng(33.93294 ,74.09368),new google.maps.LatLng(34.39664 ,72.78604),new google.maps.LatLng(33.92736 ,72.69345),new google.maps.LatLng(33.90512 ,72.81321),new google.maps.LatLng(34.23608 ,73.98506),new google.maps.LatLng(33.36315 ,73.34442),new google.maps.LatLng(33.18070 ,73.22060),new google.maps.LatLng(34.57428 ,72.62234),new google.maps.LatLng(34.01554 ,73.91299),new google.maps.LatLng(34.47027 ,72.56836),new google.maps.LatLng(33.47571 ,73.23503),new google.maps.LatLng(33.61214 ,72.28818),new google.maps.LatLng(33.85631 ,73.41576),new google.maps.LatLng(33.81889 ,72.31584),new google.maps.LatLng(33.29580 ,73.65226),new google.maps.LatLng(34.54745 ,73.53245),new google.maps.LatLng(33.55278 ,72.73187),new google.maps.LatLng(33.42055 ,72.86359),new google.maps.LatLng(33.98098 ,73.13063),new google.maps.LatLng(32.95551 ,73.43276),new google.maps.LatLng(33.53178 ,73.43277),new google.maps.LatLng(33.08202 ,73.75883),new google.maps.LatLng(32.88490 ,73.29637),new google.maps.LatLng(32.91095 ,73.34546),new google.maps.LatLng(34.53967 ,72.69285),new google.maps.LatLng(33.98820 ,73.12241),new google.maps.LatLng(33.42791 ,72.44574),new google.maps.LatLng(33.71691 ,72.84572),new google.maps.LatLng(33.72876 ,72.82999),new google.maps.LatLng(32.90791 ,73.53433),new google.maps.LatLng(33.53996 ,72.77237),new google.maps.LatLng(34.40627 ,73.67005),new google.maps.LatLng(33.68805 ,73.69969),new google.maps.LatLng(33.81659 ,72.79287),new google.maps.LatLng(34.71680 ,73.46990),new google.maps.LatLng(33.39220 ,71.98592),new google.maps.LatLng(32.97691 ,73.42946),new google.maps.LatLng(33.16777 ,72.99119),new google.maps.LatLng(34.09970 ,73.33575),new google.maps.LatLng(34.35129 ,72.28165),new google.maps.LatLng(33.63483 ,72.39841),new google.maps.LatLng(34.49822 ,72.95709),new google.maps.LatLng(33.87742 ,72.57764),new google.maps.LatLng(33.66987 ,73.81395),new google.maps.LatLng(32.67715 ,72.65228),new google.maps.LatLng(33.51636 ,73.12135),new google.maps.LatLng(34.02727 ,72.85280),new google.maps.LatLng(33.85735 ,72.34554),new google.maps.LatLng(33.97487 ,73.29160),new google.maps.LatLng(34.11249 ,73.86649),new google.maps.LatLng(32.89755 ,72.37451),new google.maps.LatLng(33.63629 ,71.99586),new google.maps.LatLng(33.03184 ,72.90918),new google.maps.LatLng(34.05412 ,72.80142),new google.maps.LatLng(33.24189 ,73.40986),new google.maps.LatLng(32.63139 ,72.97017),new google.maps.LatLng(34.39521 ,72.27538),new google.maps.LatLng(34.08293 ,72.84638),new google.maps.LatLng(33.68296 ,71.95281),new google.maps.LatLng(34.10932 ,73.88031),new google.maps.LatLng(34.41686 ,72.54603),new google.maps.LatLng(33.84347 ,73.31798),new google.maps.LatLng(32.98607 ,72.23794),new google.maps.LatLng(33.81547 ,72.35644),new google.maps.LatLng(34.79364 ,73.21118),new google.maps.LatLng(32.71256 ,73.38498),new google.maps.LatLng(33.25834 ,73.32079),new google.maps.LatLng(33.92239 ,73.29710),new google.maps.LatLng(33.56263 ,73.48489),new google.maps.LatLng(33.30670 ,72.71889),new google.maps.LatLng(33.94570 ,74.07113),new google.maps.LatLng(34.29801 ,73.95165),new google.maps.LatLng(33.13230 ,72.13909),new google.maps.LatLng(34.01293 ,73.16490),new google.maps.LatLng(33.26898 ,72.84916),new google.maps.LatLng(34.53728 ,73.41137),new google.maps.LatLng(34.36515 ,72.31632),new google.maps.LatLng(33.40475 ,72.61267),new google.maps.LatLng(33.48080 ,72.68546),new google.maps.LatLng(33.95003 ,72.08427),new google.maps.LatLng(33.79190 ,73.37197),new google.maps.LatLng(33.81853 ,74.11220),new google.maps.LatLng(32.81690 ,72.59962),new google.maps.LatLng(33.08918 ,73.19597),new google.maps.LatLng(34.42419 ,72.24355),new google.maps.LatLng(34.23588 ,73.62422),new google.maps.LatLng(33.91146 ,72.88318),new google.maps.LatLng(33.78416 ,72.20209),new google.maps.LatLng(33.68202 ,73.42274),new google.maps.LatLng(34.05662 ,73.36690),new google.maps.LatLng(34.56259 ,73.51170),new google.maps.LatLng(34.65153 ,72.93927),new google.maps.LatLng(33.74905 ,73.18638),new google.maps.LatLng(34.26975 ,72.60378),new google.maps.LatLng(33.42360 ,72.44611),new google.maps.LatLng(33.37081 ,73.36045),new google.maps.LatLng(33.47020 ,72.57968),new google.maps.LatLng(33.81349 ,72.27059),new google.maps.LatLng(34.37787 ,73.48879),new google.maps.LatLng(34.23344 ,73.09171),new google.maps.LatLng(34.17508 ,73.52830),new google.maps.LatLng(33.11042 ,72.29587),new google.maps.LatLng(33.13277 ,73.09232),new google.maps.LatLng(33.16517 ,73.45647),new google.maps.LatLng(33.39072 ,71.97066),new google.maps.LatLng(34.53311 ,72.68696),new google.maps.LatLng(33.58795 ,73.93522),new google.maps.LatLng(33.28782 ,73.74438),new google.maps.LatLng(32.71844 ,73.58032),new google.maps.LatLng(34.60801 ,72.96259),new google.maps.LatLng(32.78782 ,72.40652),new google.maps.LatLng(33.18707 ,73.53271),new google.maps.LatLng(33.45741 ,72.05999),new google.maps.LatLng(33.22151 ,73.40635),new google.maps.LatLng(33.96873 ,73.11797),new google.maps.LatLng(33.31020 ,72.52939),new google.maps.LatLng(34.00607 ,73.36032),new google.maps.LatLng(33.53098 ,73.00035),new google.maps.LatLng(33.29317 ,73.22467),new google.maps.LatLng(33.18658 ,73.91649),new google.maps.LatLng(33.65711 ,72.88564),new google.maps.LatLng(32.91288 ,72.66010),new google.maps.LatLng(34.62936 ,73.58001),new google.maps.LatLng(33.21833 ,73.53826),new google.maps.LatLng(32.69257 ,72.81305),new google.maps.LatLng(33.45544 ,72.26604),new google.maps.LatLng(33.68898 ,73.92030),new google.maps.LatLng(33.42782 ,73.13029),new google.maps.LatLng(33.40378 ,72.21525),new google.maps.LatLng(34.12956 ,73.06071),new google.maps.LatLng(33.46936 ,72.27505),new google.maps.LatLng(33.46914 ,73.77354),new google.maps.LatLng(34.10958 ,71.99940),new google.maps.LatLng(33.60392 ,73.54772),new google.maps.LatLng(34.31336 ,73.36990),new google.maps.LatLng(33.23282 ,73.01151),new google.maps.LatLng(34.53173 ,73.10695),new google.maps.LatLng(33.44449 ,72.85716),new google.maps.LatLng(33.55641 ,73.98697),new google.maps.LatLng(33.49814 ,73.91184),new google.maps.LatLng(32.62365 ,73.01023),new google.maps.LatLng(33.35473 ,73.13767),new google.maps.LatLng(33.47571 ,73.55839),new google.maps.LatLng(32.88351 ,73.16425),new google.maps.LatLng(33.01261 ,72.78337),new google.maps.LatLng(34.05351 ,73.48562),new google.maps.LatLng(34.22131 ,73.57792),new google.maps.LatLng(32.76388 ,72.50663),new google.maps.LatLng(34.47268 ,73.21589),new google.maps.LatLng(33.49657 ,72.87540),new google.maps.LatLng(33.18272 ,73.70657),new google.maps.LatLng(32.69510 ,73.32449),new google.maps.LatLng(33.14907 ,73.28555),new google.maps.LatLng(33.59648 ,72.36173),new google.maps.LatLng(34.57155 ,73.36985),new google.maps.LatLng(33.18370 ,73.84061),new google.maps.LatLng(34.17879 ,72.06924),new google.maps.LatLng(33.84745 ,72.54692),new google.maps.LatLng(33.48903 ,74.10065),new google.maps.LatLng(34.74578 ,73.23716),new google.maps.LatLng(33.61713 ,73.74744),new google.maps.LatLng(33.79197 ,73.56436),new google.maps.LatLng(33.71964 ,74.02159),new google.maps.LatLng(33.72706 ,73.71610),new google.maps.LatLng(34.72319 ,73.40782),new google.maps.LatLng(34.42042 ,72.38496),new google.maps.LatLng(34.26172 ,73.80681),new google.maps.LatLng(33.42360 ,73.15658),new google.maps.LatLng(34.29172 ,72.77527),new google.maps.LatLng(33.89967 ,73.79471),new google.maps.LatLng(34.78865 ,73.01413),new google.maps.LatLng(32.87406 ,72.38685),new google.maps.LatLng(34.29783 ,72.75883),new google.maps.LatLng(34.63358 ,72.59190),new google.maps.LatLng(34.00744 ,73.17454),new google.maps.LatLng(33.28197 ,73.53488),new google.maps.LatLng(34.66735 ,72.94000),new google.maps.LatLng(32.79122 ,72.37066),new google.maps.LatLng(33.39122 ,71.95620),new google.maps.LatLng(32.88283 ,73.32447),new google.maps.LatLng(33.99874 ,72.26621),new google.maps.LatLng(34.21377 ,72.63348),new google.maps.LatLng(34.69841 ,73.33173),new google.maps.LatLng(33.06135 ,73.49455),new google.maps.LatLng(33.08653 ,73.24153),new google.maps.LatLng(34.01027 ,72.49436),new google.maps.LatLng(33.80785 ,73.78149),new google.maps.LatLng(33.73510 ,73.28198),new google.maps.LatLng(33.77330 ,73.13844),new google.maps.LatLng(33.12856 ,73.20743),new google.maps.LatLng(34.59026 ,72.75855),new google.maps.LatLng(33.96622 ,73.74746),new google.maps.LatLng(33.82676 ,72.85765),new google.maps.LatLng(33.35121 ,73.84008),new google.maps.LatLng(34.17949 ,73.87250),new google.maps.LatLng(33.13894 ,73.35147),new google.maps.LatLng(33.76005 ,73.51191),new google.maps.LatLng(33.51416 ,73.91135),new google.maps.LatLng(34.53481 ,72.48688),new google.maps.LatLng(34.35937 ,73.30660),new google.maps.LatLng(34.33939 ,72.58605),new google.maps.LatLng(33.11745 ,73.68644),new google.maps.LatLng(33.55839 ,72.66714),new google.maps.LatLng(33.30332 ,72.42916),new google.maps.LatLng(34.74770 ,73.26184),new google.maps.LatLng(32.61684 ,72.92114),new google.maps.LatLng(33.26610 ,72.41941),new google.maps.LatLng(33.93042 ,73.02014),new google.maps.LatLng(34.19396 ,73.66239),new google.maps.LatLng(34.63391 ,72.83560),new google.maps.LatLng(32.98351 ,73.36401),new google.maps.LatLng(32.91301 ,73.38004),new google.maps.LatLng(34.35529 ,72.65067),new google.maps.LatLng(32.99779 ,73.58510),new google.maps.LatLng(33.56444 ,73.99295),new google.maps.LatLng(33.59141 ,73.15710),new google.maps.LatLng(33.89353 ,73.03745),new google.maps.LatLng(33.12641 ,72.43881),new google.maps.LatLng(32.99958 ,72.50273),new google.maps.LatLng(32.66166 ,72.59905),new google.maps.LatLng(33.59428 ,72.21570),new google.maps.LatLng(33.65160 ,73.39398),new google.maps.LatLng(34.32768 ,73.62233),new google.maps.LatLng(33.98807 ,73.82560),new google.maps.LatLng(33.84099 ,73.17009),new google.maps.LatLng(33.73453 ,73.95023),new google.maps.LatLng(33.57044 ,72.38647),new google.maps.LatLng(34.10228 ,73.28338),new google.maps.LatLng(32.78452 ,72.88848),new google.maps.LatLng(34.00781 ,73.98571),new google.maps.LatLng(34.50264 ,73.07507),new google.maps.LatLng(32.57523 ,73.00586),new google.maps.LatLng(33.28376 ,72.86173),new google.maps.LatLng(34.16157 ,72.25899),new google.maps.LatLng(33.60763 ,73.78543),new google.maps.LatLng(33.45941 ,73.37970),new google.maps.LatLng(32.82103 ,72.89499),new google.maps.LatLng(33.24984 ,72.05347),new google.maps.LatLng(34.10678 ,73.89139),new google.maps.LatLng(32.97582 ,73.34294),new google.maps.LatLng(33.78272 ,72.18995),new google.maps.LatLng(32.86590 ,73.68634),new google.maps.LatLng(33.53637 ,73.95782),new google.maps.LatLng(33.47449 ,73.02942),new google.maps.LatLng(34.32506 ,72.14660),new google.maps.LatLng(34.08115 ,72.20942),new google.maps.LatLng(33.32311 ,72.86122),new google.maps.LatLng(34.13220 ,73.65342),new google.maps.LatLng(34.36041 ,72.87371),new google.maps.LatLng(33.61753 ,72.35772),new google.maps.LatLng(33.41462 ,72.85566),new google.maps.LatLng(34.54467 ,72.68631),new google.maps.LatLng(34.00547 ,73.86665),new google.maps.LatLng(33.64201 ,73.87733),new google.maps.LatLng(33.29476 ,73.09042),new google.maps.LatLng(33.81680 ,73.13900),new google.maps.LatLng(34.22572 ,73.58591),new google.maps.LatLng(33.74650 ,72.58241),new google.maps.LatLng(34.13697 ,72.62066),new google.maps.LatLng(33.71447 ,73.79423),new google.maps.LatLng(33.25004 ,73.18355),new google.maps.LatLng(33.73088 ,73.63809),new google.maps.LatLng(34.21994 ,72.44441),new google.maps.LatLng(32.77498 ,72.66787),new google.maps.LatLng(33.39368 ,71.99243),new google.maps.LatLng(34.45254 ,72.78454),new google.maps.LatLng(32.97091 ,72.55448),new google.maps.LatLng(33.26592 ,73.10027),new google.maps.LatLng(33.97888 ,73.55529),new google.maps.LatLng(33.91739 ,72.08519),new google.maps.LatLng(34.22999 ,72.16495),new google.maps.LatLng(33.65872 ,72.27585),new google.maps.LatLng(34.60251 ,73.02482),new google.maps.LatLng(33.98977 ,72.60506),new google.maps.LatLng(33.03686 ,72.76068),new google.maps.LatLng(34.59809 ,73.13375),new google.maps.LatLng(34.41023 ,73.30622),new google.maps.LatLng(34.73030 ,73.36008),new google.maps.LatLng(33.77551 ,73.09452),new google.maps.LatLng(33.34852 ,73.83957),new google.maps.LatLng(33.59035 ,72.96940),new google.maps.LatLng(33.59744 ,72.15248),new google.maps.LatLng(33.02839 ,72.96461),new google.maps.LatLng(33.48057 ,72.42922),new google.maps.LatLng(33.81791 ,72.71416),new google.maps.LatLng(33.06466 ,72.85691),new google.maps.LatLng(34.02289 ,73.07588),new google.maps.LatLng(34.32959 ,73.55984),new google.maps.LatLng(33.36797 ,72.51577),new google.maps.LatLng(34.44945 ,72.34867),new google.maps.LatLng(34.77713 ,72.94262),new google.maps.LatLng(33.05041 ,73.20158),new google.maps.LatLng(33.91845 ,72.22659),new google.maps.LatLng(33.04114 ,73.15626),new google.maps.LatLng(33.90687 ,73.33837),new google.maps.LatLng(33.44189 ,72.22072),new google.maps.LatLng(33.19179 ,73.07703),new google.maps.LatLng(33.23598 ,73.84485),new google.maps.LatLng(33.08316 ,72.33569),new google.maps.LatLng(32.80738 ,73.31495),new google.maps.LatLng(33.04947 ,73.82842),new google.maps.LatLng(34.32603 ,73.36439),new google.maps.LatLng(33.56021 ,72.47027),new google.maps.LatLng(33.73267 ,72.32320),new google.maps.LatLng(34.15373 ,73.77790),new google.maps.LatLng(33.78446 ,73.59893),new google.maps.LatLng(34.63968 ,73.30820),new google.maps.LatLng(33.63010 ,73.72793),new google.maps.LatLng(33.07250 ,72.51490),new google.maps.LatLng(32.97218 ,72.49982),new google.maps.LatLng(33.37851 ,73.88817),new google.maps.LatLng(33.70687 ,73.30235),new google.maps.LatLng(32.99160 ,73.20774),new google.maps.LatLng(33.73586 ,72.20561),new google.maps.LatLng(33.42452 ,74.03008),new google.maps.LatLng(32.83360 ,73.36113),new google.maps.LatLng(33.60283 ,73.49474),new google.maps.LatLng(33.57350 ,74.10434),new google.maps.LatLng(33.20246 ,72.68676),new google.maps.LatLng(34.01464 ,73.28054),new google.maps.LatLng(34.43901 ,73.68347),new google.maps.LatLng(33.99923 ,73.72816),new google.maps.LatLng(34.20811 ,73.79871),new google.maps.LatLng(34.54149 ,73.20228),new google.maps.LatLng(33.84564 ,72.80196),new google.maps.LatLng(33.45328 ,72.34748),new google.maps.LatLng(34.10465 ,72.20089),new google.maps.LatLng(33.20306 ,72.23843),new google.maps.LatLng(34.15596 ,73.64815),new google.maps.LatLng(34.32923 ,73.58256),new google.maps.LatLng(33.30740 ,72.60736),new google.maps.LatLng(33.94306 ,72.57724),new google.maps.LatLng(34.27001 ,73.23380),new google.maps.LatLng(33.08713 ,73.32868),new google.maps.LatLng(33.99287 ,73.93809),new google.maps.LatLng(33.58284 ,73.74364),new google.maps.LatLng(32.75218 ,73.01433),new google.maps.LatLng(33.00581 ,73.11769),new google.maps.LatLng(34.22334 ,73.63750),new google.maps.LatLng(34.23416 ,72.54659),new google.maps.LatLng(33.45850 ,73.28347),new google.maps.LatLng(33.76784 ,73.89553),new google.maps.LatLng(32.88297 ,73.15530),new google.maps.LatLng(33.26041 ,73.70506),new google.maps.LatLng(34.07704 ,73.48135),new google.maps.LatLng(33.81007 ,72.68847),new google.maps.LatLng(34.03846 ,72.66814),new google.maps.LatLng(34.49829 ,72.33309),new google.maps.LatLng(32.93590 ,73.52888),new google.maps.LatLng(33.01862 ,72.23784),new google.maps.LatLng(33.40872 ,73.45644),new google.maps.LatLng(34.02958 ,73.50981),new google.maps.LatLng(34.59913 ,72.95688),new google.maps.LatLng(34.34471 ,73.11522),new google.maps.LatLng(33.98231 ,72.17178),new google.maps.LatLng(32.87129 ,73.35197),new google.maps.LatLng(33.90329 ,73.86914),new google.maps.LatLng(33.12497 ,72.81291),new google.maps.LatLng(34.44214 ,72.92018),new google.maps.LatLng(33.72232 ,73.42525),new google.maps.LatLng(33.17333 ,73.60607),new google.maps.LatLng(33.34709 ,72.19802),new google.maps.LatLng(33.54298 ,72.20494),new google.maps.LatLng(33.98785 ,73.86849),new google.maps.LatLng(32.80586 ,72.82278),new google.maps.LatLng(34.16401 ,72.24801),new google.maps.LatLng(34.27599 ,73.36256),new google.maps.LatLng(33.00188 ,73.29158),new google.maps.LatLng(33.74296 ,73.96433),new google.maps.LatLng(34.24358 ,73.19019),new google.maps.LatLng(33.80844 ,72.12176),new google.maps.LatLng(33.94806 ,72.40801),new google.maps.LatLng(34.66370 ,73.51358),new google.maps.LatLng(34.14008 ,73.83697),new google.maps.LatLng(34.20577 ,73.06217),new google.maps.LatLng(33.46559 ,73.84582),new google.maps.LatLng(33.07171 ,72.48247),new google.maps.LatLng(33.25564 ,72.46117),new google.maps.LatLng(34.30028 ,73.07754),new google.maps.LatLng(34.38006 ,72.46756),new google.maps.LatLng(32.97375 ,72.80895),new google.maps.LatLng(33.03421 ,73.17369),new google.maps.LatLng(33.95534 ,73.63589),new google.maps.LatLng(33.90864 ,72.37339),new google.maps.LatLng(34.16050 ,74.02721),new google.maps.LatLng(32.75244 ,73.62857),new google.maps.LatLng(33.03790 ,72.97284),new google.maps.LatLng(33.26850 ,74.04452),new google.maps.LatLng(33.18201 ,73.78085),new google.maps.LatLng(33.04917 ,72.28007),new google.maps.LatLng(34.52801 ,72.41272),new google.maps.LatLng(34.33740 ,73.81769),new google.maps.LatLng(34.27413 ,73.79460),new google.maps.LatLng(33.90581 ,74.06519),new google.maps.LatLng(33.11124 ,73.44697),new google.maps.LatLng(33.19099 ,72.43028),new google.maps.LatLng(34.02838 ,72.68850),new google.maps.LatLng(34.38597 ,72.44904),new google.maps.LatLng(32.72173 ,73.21593),new google.maps.LatLng(33.64572 ,73.98923),new google.maps.LatLng(33.42417 ,71.96903),new google.maps.LatLng(32.60470 ,73.23039),new google.maps.LatLng(33.33416 ,73.91959),new google.maps.LatLng(33.84130 ,72.53604),new google.maps.LatLng(33.76785 ,73.36573),new google.maps.LatLng(33.19501 ,72.85791),new google.maps.LatLng(33.85765 ,72.23839),new google.maps.LatLng(33.81287 ,73.78016),new google.maps.LatLng(34.57995 ,72.49744),new google.maps.LatLng(33.86856 ,73.52207),new google.maps.LatLng(33.61977 ,72.03105),new google.maps.LatLng(32.76408 ,73.33260),new google.maps.LatLng(32.69315 ,73.09338),new google.maps.LatLng(33.03609 ,72.34527),new google.maps.LatLng(34.32914 ,73.22512),new google.maps.LatLng(33.77768 ,73.86817),new google.maps.LatLng(32.64820 ,73.20848),new google.maps.LatLng(33.64952 ,72.24484),new google.maps.LatLng(33.39014 ,72.38896),new google.maps.LatLng(34.20941 ,72.57549),new google.maps.LatLng(33.00676 ,73.33094),new google.maps.LatLng(34.35189 ,72.66973),new google.maps.LatLng(32.98832 ,72.75982),new google.maps.LatLng(33.68229 ,72.88473),new google.maps.LatLng(33.70715 ,73.14142),new google.maps.LatLng(33.22707 ,73.56344),new google.maps.LatLng(33.42680 ,73.77582),new google.maps.LatLng(34.01283 ,73.14799),new google.maps.LatLng(34.40621 ,73.67049),new google.maps.LatLng(33.11972 ,73.03820),new google.maps.LatLng(33.50399 ,72.23829),new google.maps.LatLng(32.88646 ,73.05289),new google.maps.LatLng(34.69488 ,72.97489),new google.maps.LatLng(32.96835 ,72.73384),new google.maps.LatLng(34.02253 ,72.65486),new google.maps.LatLng(34.57955 ,73.57874),new google.maps.LatLng(33.81477 ,72.84632),new google.maps.LatLng(34.25820 ,72.46100),new google.maps.LatLng(33.09200 ,72.92809),new google.maps.LatLng(33.71886 ,71.93585),new google.maps.LatLng(34.12698 ,72.40365),new google.maps.LatLng(34.40356 ,72.57401),new google.maps.LatLng(34.55902 ,73.52931),new google.maps.LatLng(33.86103 ,73.38329),new google.maps.LatLng(32.78907 ,72.88619),new google.maps.LatLng(33.03418 ,73.94177),new google.maps.LatLng(32.89633 ,73.12135),new google.maps.LatLng(33.69166 ,72.80535),new google.maps.LatLng(33.05627 ,72.49944),new google.maps.LatLng(33.11700 ,72.96682),new google.maps.LatLng(33.41446 ,72.24762),new google.maps.LatLng(33.14973 ,72.52912),new google.maps.LatLng(32.83757 ,72.69654),new google.maps.LatLng(33.43506 ,72.87949),new google.maps.LatLng(33.21443 ,72.32472),new google.maps.LatLng(34.30399 ,73.44399),new google.maps.LatLng(33.13193 ,73.24644),new google.maps.LatLng(34.22120 ,72.21860),new google.maps.LatLng(34.46932 ,72.51545),new google.maps.LatLng(33.36861 ,72.32157),new google.maps.LatLng(34.50889 ,73.15021),new google.maps.LatLng(33.00692 ,72.84609),new google.maps.LatLng(33.36084 ,72.12907),new google.maps.LatLng(34.42796 ,73.38141),new google.maps.LatLng(33.98825 ,73.51293),new google.maps.LatLng(34.09738 ,72.87127),new google.maps.LatLng(33.44056 ,73.29213),new google.maps.LatLng(32.66880 ,73.45184),new google.maps.LatLng(33.69251 ,73.21779),new google.maps.LatLng(33.67731 ,72.73343),new google.maps.LatLng(33.90831 ,72.44414),new google.maps.LatLng(33.66986 ,73.82573),new google.maps.LatLng(33.03337 ,72.69612),new google.maps.LatLng(34.20220 ,73.25554),new google.maps.LatLng(34.28472 ,72.24008),new google.maps.LatLng(34.42596 ,73.05648),new google.maps.LatLng(33.18368 ,73.84079),new google.maps.LatLng(32.90486 ,73.14279),new google.maps.LatLng(34.04890 ,73.56688),new google.maps.LatLng(34.50012 ,72.41619),new google.maps.LatLng(33.19079 ,73.69427),new google.maps.LatLng(33.43871 ,74.02931),new google.maps.LatLng(34.44176 ,73.58299),new google.maps.LatLng(33.18235 ,73.56952),new google.maps.LatLng(33.55456 ,73.77278),new google.maps.LatLng(34.46079 ,72.46353),new google.maps.LatLng(32.69371 ,72.57905),new google.maps.LatLng(34.10523 ,73.21319),new google.maps.LatLng(33.63511 ,73.62524),new google.maps.LatLng(34.43571 ,73.49593),new google.maps.LatLng(34.55784 ,72.77463),new google.maps.LatLng(33.98399 ,71.98345),new google.maps.LatLng(34.20567 ,73.99101),new google.maps.LatLng(33.45777 ,72.17729),new google.maps.LatLng(34.06944 ,73.86760),new google.maps.LatLng(33.04176 ,72.56072),new google.maps.LatLng(33.48922 ,72.46945),new google.maps.LatLng(33.36674 ,73.62341),new google.maps.LatLng(33.69088 ,71.99788),new google.maps.LatLng(33.33020 ,73.14570),new google.maps.LatLng(34.08413 ,73.39498),new google.maps.LatLng(32.82025 ,73.01796),new google.maps.LatLng(33.65013 ,72.81180),new google.maps.LatLng(33.61063 ,73.56121),new google.maps.LatLng(33.96236 ,73.98118),new google.maps.LatLng(32.99154 ,73.66795),new google.maps.LatLng(32.76682 ,72.97751),new google.maps.LatLng(33.11638 ,72.21804),new google.maps.LatLng(33.53693 ,72.45153),new google.maps.LatLng(33.34630 ,71.99490),new google.maps.LatLng(33.73884 ,73.37723),new google.maps.LatLng(34.11536 ,73.40479),new google.maps.LatLng(33.51685 ,73.08059),new google.maps.LatLng(33.27796 ,73.74778),new google.maps.LatLng(33.46113 ,72.43368),new google.maps.LatLng(33.68865 ,73.20380),new google.maps.LatLng(33.27106 ,72.52948),new google.maps.LatLng(34.39723 ,72.56711),new google.maps.LatLng(34.31679 ,73.85802),new google.maps.LatLng(33.11314 ,73.91267),new google.maps.LatLng(32.70574 ,72.63997),new google.maps.LatLng(33.45451 ,72.85922),new google.maps.LatLng(34.50101 ,73.30287),new google.maps.LatLng(34.58701 ,72.99896),new google.maps.LatLng(33.01803 ,73.07681),new google.maps.LatLng(32.87795 ,73.75315),new google.maps.LatLng(34.00028 ,72.40385),new google.maps.LatLng(33.05053 ,73.24009),new google.maps.LatLng(33.42296 ,73.28184),new google.maps.LatLng(34.70573 ,72.67261),new google.maps.LatLng(32.65572 ,73.13850),new google.maps.LatLng(32.84077 ,72.73634),new google.maps.LatLng(32.63326 ,73.23596),new google.maps.LatLng(32.70776 ,73.21406),new google.maps.LatLng(33.99745 ,72.12473),new google.maps.LatLng(33.25852 ,73.79295),new google.maps.LatLng(34.42632 ,72.29825),new google.maps.LatLng(32.97927 ,73.88037),new google.maps.LatLng(33.12777 ,72.54370),new google.maps.LatLng(33.67662 ,73.86973),new google.maps.LatLng(32.58966 ,72.93604),new google.maps.LatLng(33.89653 ,74.13624),new google.maps.LatLng(34.34824 ,72.78506),new google.maps.LatLng(34.15273 ,73.22855),new google.maps.LatLng(33.94908 ,72.15873),new google.maps.LatLng(32.78377 ,73.61508),new google.maps.LatLng(34.01721 ,72.78523),new google.maps.LatLng(33.33252 ,73.70754),new google.maps.LatLng(32.82783 ,72.80834),new google.maps.LatLng(34.46271 ,73.04801),new google.maps.LatLng(32.61043 ,72.87947),new google.maps.LatLng(33.66063 ,72.47829),new google.maps.LatLng(32.73341 ,72.68890),new google.maps.LatLng(34.06430 ,73.50124),new google.maps.LatLng(34.07044 ,72.42073),new google.maps.LatLng(34.54016 ,73.14071),new google.maps.LatLng(33.47800 ,73.48471),new google.maps.LatLng(33.75431 ,73.72568),new google.maps.LatLng(32.99562 ,73.89481),new google.maps.LatLng(33.04233 ,73.34827),new google.maps.LatLng(34.43517 ,73.83875),new google.maps.LatLng(33.04937 ,72.15141),new google.maps.LatLng(34.35323 ,73.84601),new google.maps.LatLng(34.67424 ,73.54035),new google.maps.LatLng(33.21881 ,73.04617),new google.maps.LatLng(32.96944 ,72.53180),new google.maps.LatLng(33.45641 ,73.95463),new google.maps.LatLng(34.29782 ,73.03038),new google.maps.LatLng(33.76187 ,73.65400),new google.maps.LatLng(34.66205 ,73.24904),new google.maps.LatLng(33.79789 ,72.45280),new google.maps.LatLng(34.21262 ,72.58940),new google.maps.LatLng(32.72740 ,72.80515),new google.maps.LatLng(32.85473 ,73.03215),new google.maps.LatLng(34.13884 ,72.08110),new google.maps.LatLng(33.80338 ,72.27981),new google.maps.LatLng(33.22132 ,74.02224),new google.maps.LatLng(32.87511 ,73.00080),new google.maps.LatLng(33.80371 ,72.44330),new google.maps.LatLng(33.93669 ,73.58733),new google.maps.LatLng(33.69822 ,72.80449),new google.maps.LatLng(34.14249 ,72.90846),new google.maps.LatLng(32.79917 ,73.25407),new google.maps.LatLng(33.56986 ,73.50582),new google.maps.LatLng(32.76110 ,73.04900),new google.maps.LatLng(33.22951 ,73.91755),new google.maps.LatLng(33.96507 ,72.04399),new google.maps.LatLng(33.15408 ,72.81536),new google.maps.LatLng(34.15401 ,73.26469),new google.maps.LatLng(34.23120 ,73.85932),new google.maps.LatLng(33.17076 ,73.33117),new google.maps.LatLng(34.65294 ,73.06481),new google.maps.LatLng(32.81236 ,73.23359),new google.maps.LatLng(33.20513 ,73.68151),new google.maps.LatLng(34.19454 ,73.78999),new google.maps.LatLng(33.37129 ,72.26282),new google.maps.LatLng(33.70893 ,72.81582),new google.maps.LatLng(33.31917 ,72.98969),new google.maps.LatLng(32.69518 ,72.73680),new google.maps.LatLng(34.13117 ,73.28839),new google.maps.LatLng(34.30255 ,73.26190),new google.maps.LatLng(32.58976 ,73.08881),new google.maps.LatLng(34.04889 ,73.09000),new google.maps.LatLng(33.84392 ,72.96841),new google.maps.LatLng(34.24566 ,73.23596),new google.maps.LatLng(33.81592 ,72.47004),new google.maps.LatLng(34.48139 ,73.63728),new google.maps.LatLng(33.63772 ,73.83186),new google.maps.LatLng(34.48438 ,72.87227),new google.maps.LatLng(32.80987 ,72.41006),new google.maps.LatLng(34.57892 ,73.38448),new google.maps.LatLng(33.98033 ,72.93017),new google.maps.LatLng(32.86510 ,73.33347),new google.maps.LatLng(33.48528 ,73.28438),new google.maps.LatLng(32.91081 ,72.49750),new google.maps.LatLng(34.14190 ,72.62092),new google.maps.LatLng(33.95262 ,72.71586),new google.maps.LatLng(33.03884 ,72.42847),new google.maps.LatLng(33.52548 ,74.05035),new google.maps.LatLng(33.99433 ,73.94915),new google.maps.LatLng(33.36988 ,72.54085),new google.maps.LatLng(33.67920 ,73.01403),new google.maps.LatLng(34.77285 ,72.89015),new google.maps.LatLng(33.36263 ,73.37783),new google.maps.LatLng(33.62974 ,73.23970),new google.maps.LatLng(33.66020 ,72.98992),new google.maps.LatLng(33.15008 ,72.91590),new google.maps.LatLng(33.92133 ,73.62236),new google.maps.LatLng(33.16003 ,72.89229),new google.maps.LatLng(32.71366 ,73.54919),new google.maps.LatLng(33.75956 ,72.50663),new google.maps.LatLng(34.48147 ,72.32001),new google.maps.LatLng(32.97495 ,73.64854),new google.maps.LatLng(34.75237 ,73.13444),new google.maps.LatLng(33.86939 ,72.75131),new google.maps.LatLng(32.94732 ,72.85311),new google.maps.LatLng(33.80525 ,73.44137),new google.maps.LatLng(33.32451 ,72.82195),new google.maps.LatLng(34.38202 ,73.72365),new google.maps.LatLng(32.70708 ,73.39755),new google.maps.LatLng(33.52338 ,72.21869),new google.maps.LatLng(33.45248 ,73.81334),new google.maps.LatLng(33.31911 ,73.57753),new google.maps.LatLng(34.08310 ,73.21099),new google.maps.LatLng(33.59251 ,73.06124),new google.maps.LatLng(33.62939 ,73.44007),new google.maps.LatLng(32.82722 ,73.47777),new google.maps.LatLng(34.75867 ,73.06931),new google.maps.LatLng(33.12103 ,73.16796),new google.maps.LatLng(33.12927 ,72.61176),new google.maps.LatLng(33.49393 ,72.36037),new google.maps.LatLng(34.18886 ,73.45558),new google.maps.LatLng(34.51692 ,73.40290),new google.maps.LatLng(34.32967 ,72.92431),new google.maps.LatLng(34.19055 ,73.55184),new google.maps.LatLng(33.90514 ,72.48025),new google.maps.LatLng(32.68228 ,72.75747),new google.maps.LatLng(33.71621 ,73.16996),new google.maps.LatLng(33.55566 ,73.39791),new google.maps.LatLng(34.31931 ,72.95379),new google.maps.LatLng(33.79099 ,72.50166),new google.maps.LatLng(33.33887 ,73.19895),new google.maps.LatLng(33.61497 ,73.50559),new google.maps.LatLng(33.78456 ,72.86931),new google.maps.LatLng(34.27016 ,72.46659),new google.maps.LatLng(33.72799 ,73.99204),new google.maps.LatLng(34.23830 ,72.46379),new google.maps.LatLng(34.69636 ,73.14026),new google.maps.LatLng(34.04794 ,73.38676),new google.maps.LatLng(33.23105 ,73.94118),new google.maps.LatLng(34.67014 ,73.12648),new google.maps.LatLng(33.25343 ,73.19714),new google.maps.LatLng(33.11820 ,73.67826),new google.maps.LatLng(33.66137 ,72.76035),new google.maps.LatLng(33.25933 ,72.23155),new google.maps.LatLng(33.74220 ,73.08019),new google.maps.LatLng(33.13038 ,72.40265),new google.maps.LatLng(33.20923 ,72.77542),new google.maps.LatLng(33.36181 ,73.29860),new google.maps.LatLng(33.30617 ,72.97630),new google.maps.LatLng(32.58900 ,73.22405),new google.maps.LatLng(33.97622 ,72.09353),new google.maps.LatLng(33.96162 ,73.54559),new google.maps.LatLng(33.65246 ,73.01460),new google.maps.LatLng(33.79238 ,72.44034),new google.maps.LatLng(34.33203 ,72.36627),new google.maps.LatLng(34.02682 ,73.47652),new google.maps.LatLng(34.01895 ,73.59276),new google.maps.LatLng(34.36530 ,72.23593),new google.maps.LatLng(33.69913 ,73.35750),new google.maps.LatLng(34.59402 ,72.39295),new google.maps.LatLng(34.50763 ,72.28081),new google.maps.LatLng(33.26585 ,73.28254),new google.maps.LatLng(34.59821 ,72.66736),new google.maps.LatLng(33.20366 ,73.74877),new google.maps.LatLng(33.69318 ,72.89509),new google.maps.LatLng(33.31088 ,72.61801),new google.maps.LatLng(34.65450 ,72.64023),new google.maps.LatLng(32.78006 ,72.46996),new google.maps.LatLng(32.62218 ,72.83107),new google.maps.LatLng(34.55073 ,72.65338),new google.maps.LatLng(32.82839 ,72.43773),new google.maps.LatLng(34.78212 ,73.13951),new google.maps.LatLng(34.29831 ,72.78037),new google.maps.LatLng(33.83721 ,73.70571),new google.maps.LatLng(33.00850 ,73.23058),new google.maps.LatLng(34.10925 ,74.01450),new google.maps.LatLng(32.59977 ,73.28254),new google.maps.LatLng(33.91418 ,73.61574),new google.maps.LatLng(33.24274 ,72.69268),new google.maps.LatLng(33.61413 ,72.77945),new google.maps.LatLng(34.06487 ,72.73785),new google.maps.LatLng(33.47719 ,73.40980),new google.maps.LatLng(34.73983 ,72.65833),new google.maps.LatLng(34.34896 ,72.87829),new google.maps.LatLng(34.23729 ,73.45976),new google.maps.LatLng(34.10254 ,72.66305),new google.maps.LatLng(32.71190 ,73.04837),new google.maps.LatLng(33.29173 ,72.12339),new google.maps.LatLng(33.24681 ,73.47743),new google.maps.LatLng(33.68041 ,72.92802),new google.maps.LatLng(33.43256 ,73.52550),new google.maps.LatLng(33.68916 ,73.59677),new google.maps.LatLng(34.05687 ,72.09069),new google.maps.LatLng(32.71175 ,73.12376),new google.maps.LatLng(33.25969 ,72.50696),new google.maps.LatLng(33.08985 ,73.61966),new google.maps.LatLng(33.42413 ,72.37278),new google.maps.LatLng(32.64806 ,73.20550),new google.maps.LatLng(33.28195 ,72.21208),new google.maps.LatLng(33.74800 ,73.89548),new google.maps.LatLng(33.69373 ,72.87605),new google.maps.LatLng(33.65366 ,72.77668),new google.maps.LatLng(32.91623 ,73.15937),new google.maps.LatLng(33.68581 ,72.55291),new google.maps.LatLng(32.74553 ,73.55114),new google.maps.LatLng(34.53192 ,72.45979),new google.maps.LatLng(33.17420 ,73.61365),new google.maps.LatLng(33.89338 ,73.26998),new google.maps.LatLng(33.68124 ,73.24527),new google.maps.LatLng(32.79907 ,72.48926),new google.maps.LatLng(33.57117 ,73.26682),new google.maps.LatLng(34.61643 ,72.66536),new google.maps.LatLng(34.42419 ,72.84582),new google.maps.LatLng(34.43343 ,73.63045),new google.maps.LatLng(34.12023 ,72.58609),new google.maps.LatLng(33.29581 ,72.28641),new google.maps.LatLng(33.15756 ,73.48966),new google.maps.LatLng(33.44811 ,73.04715),new google.maps.LatLng(33.72863 ,73.35552),new google.maps.LatLng(34.71137 ,72.71683),new google.maps.LatLng(33.16391 ,72.57496),new google.maps.LatLng(34.58125 ,73.54340),new google.maps.LatLng(33.90139 ,72.73401),new google.maps.LatLng(34.34731 ,72.85822),new google.maps.LatLng(33.36863 ,73.54639),new google.maps.LatLng(33.11514 ,73.00401),new google.maps.LatLng(33.45035 ,73.15553),new google.maps.LatLng(34.10279 ,73.86145),new google.maps.LatLng(33.49639 ,72.91720),new google.maps.LatLng(34.53764 ,72.72785),new google.maps.LatLng(33.07953 ,72.16486),new google.maps.LatLng(34.61723 ,73.21558),new google.maps.LatLng(33.01462 ,72.45596),new google.maps.LatLng(33.34625 ,73.92669),new google.maps.LatLng(34.18710 ,73.06922),new google.maps.LatLng(34.50209 ,73.49557),new google.maps.LatLng(33.83298 ,72.97182),new google.maps.LatLng(34.52642 ,73.17852),new google.maps.LatLng(32.98093 ,73.89557),new google.maps.LatLng(34.07080 ,73.33453),new google.maps.LatLng(33.51026 ,72.99839),new google.maps.LatLng(33.40413 ,72.12059),new google.maps.LatLng(33.37434 ,72.79913),new google.maps.LatLng(33.72466 ,72.66350),new google.maps.LatLng(33.43298 ,72.37686),new google.maps.LatLng(33.90844 ,72.89365),new google.maps.LatLng(34.72691 ,73.06043),new google.maps.LatLng(33.16942 ,73.04219),new google.maps.LatLng(33.61672 ,73.21855),new google.maps.LatLng(34.35375 ,72.37302),new google.maps.LatLng(33.92758 ,72.04336),new google.maps.LatLng(33.92092 ,72.73900),new google.maps.LatLng(33.40781 ,73.96269),new google.maps.LatLng(33.52239 ,72.57273),new google.maps.LatLng(33.77901 ,72.66074),new google.maps.LatLng(34.56176 ,73.71029),new google.maps.LatLng(33.02021 ,72.58821),new google.maps.LatLng(32.97602 ,72.37022),new google.maps.LatLng(34.40981 ,72.36280),new google.maps.LatLng(33.51106 ,73.42127),new google.maps.LatLng(33.41227 ,73.05577),new google.maps.LatLng(34.14562 ,72.07497),new google.maps.LatLng(33.63821 ,73.64168),new google.maps.LatLng(33.78257 ,73.62252),new google.maps.LatLng(34.47883 ,73.65138),new google.maps.LatLng(33.73797 ,73.92941),new google.maps.LatLng(33.33131 ,73.53800),new google.maps.LatLng(33.95894 ,73.96811),new google.maps.LatLng(33.78501 ,73.17346),new google.maps.LatLng(33.72789 ,72.34832),new google.maps.LatLng(33.29252 ,73.90835),new google.maps.LatLng(32.92570 ,72.51129),new google.maps.LatLng(34.33977 ,72.90712),new google.maps.LatLng(33.40644 ,72.21144),new google.maps.LatLng(33.67328 ,72.61973),new google.maps.LatLng(33.73748 ,72.63159),new google.maps.LatLng(34.44401 ,73.16162),new google.maps.LatLng(32.69254 ,72.80322),new google.maps.LatLng(34.11891 ,72.06663),new google.maps.LatLng(34.03231 ,72.51976),new google.maps.LatLng(34.19984 ,73.41461),new google.maps.LatLng(33.50839 ,72.47076),new google.maps.LatLng(33.40994 ,72.59840),new google.maps.LatLng(34.33722 ,72.79870),new google.maps.LatLng(34.24316 ,73.83617),new google.maps.LatLng(34.20830 ,72.99080),new google.maps.LatLng(34.10426 ,73.60275),new google.maps.LatLng(34.11631 ,73.09693),new google.maps.LatLng(34.73771 ,72.82709),new google.maps.LatLng(34.14181 ,72.10428),new google.maps.LatLng(33.47653 ,73.99811),new google.maps.LatLng(33.69149 ,72.26172),new google.maps.LatLng(33.34400 ,73.67308),new google.maps.LatLng(32.97650 ,73.80288),new google.maps.LatLng(32.64091 ,72.68455),new google.maps.LatLng(33.65273 ,73.50200),new google.maps.LatLng(34.16353 ,73.57564),new google.maps.LatLng(34.57006 ,73.57543),new google.maps.LatLng(34.42014 ,72.87293),new google.maps.LatLng(34.55851 ,72.64262),new google.maps.LatLng(33.72069 ,73.73223),new google.maps.LatLng(34.00767 ,72.78931),new google.maps.LatLng(33.69300 ,72.93127),new google.maps.LatLng(33.29487 ,73.54702),new google.maps.LatLng(34.44559 ,73.34253),new google.maps.LatLng(33.84324 ,72.25614),new google.maps.LatLng(33.10904 ,72.25188),new google.maps.LatLng(33.58603 ,73.65282),new google.maps.LatLng(34.27299 ,73.41268),new google.maps.LatLng(33.88367 ,72.63104),new google.maps.LatLng(33.86117 ,72.31885),new google.maps.LatLng(34.10126 ,72.01193),new google.maps.LatLng(33.74961 ,73.00225),new google.maps.LatLng(33.42844 ,72.42066),new google.maps.LatLng(33.18595 ,73.69152),new google.maps.LatLng(32.97435 ,72.51717),new google.maps.LatLng(34.34492 ,73.05129),new google.maps.LatLng(34.34041 ,73.87598),new google.maps.LatLng(34.70628 ,73.43466),new google.maps.LatLng(34.16517 ,72.90579),new google.maps.LatLng(33.11962 ,72.10736),new google.maps.LatLng(33.28396 ,72.60151),new google.maps.LatLng(34.45434 ,72.47071),new google.maps.LatLng(32.98803 ,73.86241),new google.maps.LatLng(34.02237 ,72.72394),new google.maps.LatLng(34.53131 ,72.60183),new google.maps.LatLng(33.36085 ,73.14968),new google.maps.LatLng(34.56805 ,73.39877),new google.maps.LatLng(33.23648 ,73.46416),new google.maps.LatLng(33.74357 ,72.46556),new google.maps.LatLng(33.83152 ,72.38352),new google.maps.LatLng(34.23020 ,72.11942),new google.maps.LatLng(33.70472 ,72.90842),new google.maps.LatLng(33.12754 ,73.99278),new google.maps.LatLng(33.17263 ,73.14301),new google.maps.LatLng(32.82336 ,73.24334),new google.maps.LatLng(34.72136 ,72.84912),new google.maps.LatLng(33.55989 ,73.33448),new google.maps.LatLng(33.83054 ,72.42277),new google.maps.LatLng(33.12877 ,73.55546),new google.maps.LatLng(33.10368 ,73.85134),new google.maps.LatLng(33.94723 ,73.46420),new google.maps.LatLng(33.81919 ,72.01527),new google.maps.LatLng(33.95961 ,72.54289),new google.maps.LatLng(33.25232 ,72.90615),new google.maps.LatLng(32.79718 ,72.76166),new google.maps.LatLng(33.37717 ,72.52533),new google.maps.LatLng(34.25966 ,72.53886),new google.maps.LatLng(33.83450 ,72.71130),new google.maps.LatLng(34.06219 ,72.09306),new google.maps.LatLng(33.05677 ,73.87546),new google.maps.LatLng(34.72263 ,73.35218),new google.maps.LatLng(33.68414 ,72.95283),new google.maps.LatLng(33.75513 ,74.12973),new google.maps.LatLng(33.42450 ,73.79398),new google.maps.LatLng(34.44787 ,72.30407),new google.maps.LatLng(33.51109 ,71.98312),new google.maps.LatLng(33.52151 ,73.73305),new google.maps.LatLng(34.03527 ,74.06310),new google.maps.LatLng(34.27249 ,72.09977),new google.maps.LatLng(34.53428 ,73.29805),new google.maps.LatLng(33.05379 ,73.32762),new google.maps.LatLng(34.02519 ,72.30132),new google.maps.LatLng(33.09207 ,72.37467),new google.maps.LatLng(34.17045 ,72.99142),new google.maps.LatLng(33.08625 ,73.31867),new google.maps.LatLng(33.15909 ,72.16443),new google.maps.LatLng(34.31061 ,73.43854),new google.maps.LatLng(32.90919 ,73.35735),new google.maps.LatLng(33.40157 ,72.51460),new google.maps.LatLng(34.28386 ,72.73142),new google.maps.LatLng(33.37407 ,73.45530),new google.maps.LatLng(33.25259 ,73.86236),new google.maps.LatLng(34.43303 ,72.60739),new google.maps.LatLng(33.85179 ,73.60520),new google.maps.LatLng(32.66284 ,72.85692),new google.maps.LatLng(34.38055 ,72.59454),new google.maps.LatLng(33.45716 ,72.44266),new google.maps.LatLng(34.51195 ,73.59085),new google.maps.LatLng(33.66261 ,73.97314),new google.maps.LatLng(34.47227 ,73.50754),new google.maps.LatLng(33.87561 ,73.96609),new google.maps.LatLng(33.08152 ,73.47455),new google.maps.LatLng(34.45484 ,73.05168),new google.maps.LatLng(34.49180 ,73.43916),new google.maps.LatLng(33.80243 ,72.66230),new google.maps.LatLng(34.25724 ,72.58626),new google.maps.LatLng(33.44260 ,72.54864),new google.maps.LatLng(33.22676 ,73.66281),new google.maps.LatLng(34.21845 ,72.73774),new google.maps.LatLng(33.33846 ,72.25664),new google.maps.LatLng(33.86127 ,74.05384),new google.maps.LatLng(33.85634 ,72.80585),new google.maps.LatLng(34.53683 ,73.46315),new google.maps.LatLng(34.16424 ,72.30093),new google.maps.LatLng(33.54144 ,72.84516),new google.maps.LatLng(33.83173 ,73.15511),new google.maps.LatLng(34.39684 ,72.39744),new google.maps.LatLng(33.84096 ,72.15163),new google.maps.LatLng(33.69538 ,72.78010),new google.maps.LatLng(33.51525 ,73.06305),new google.maps.LatLng(32.95072 ,73.66430),new google.maps.LatLng(33.03645 ,72.16080),new google.maps.LatLng(34.55127 ,73.50678),new google.maps.LatLng(34.63109 ,72.92042),new google.maps.LatLng(33.86294 ,73.73283),new google.maps.LatLng(33.63818 ,73.77968),new google.maps.LatLng(34.64205 ,73.32039),new google.maps.LatLng(34.06124 ,72.00328),new google.maps.LatLng(33.05629 ,73.01758),new google.maps.LatLng(34.29077 ,73.36373),new google.maps.LatLng(33.13570 ,73.26357),new google.maps.LatLng(34.02786 ,73.24551),new google.maps.LatLng(33.49327 ,74.05717),new google.maps.LatLng(32.69257 ,73.09093),new google.maps.LatLng(33.02689 ,72.37057),new google.maps.LatLng(33.76626 ,71.95861),new google.maps.LatLng(34.11378 ,72.13547),new google.maps.LatLng(33.24750 ,74.02341),new google.maps.LatLng(34.00220 ,73.36285),new google.maps.LatLng(34.13468 ,72.23354),new google.maps.LatLng(33.27637 ,72.44012),new google.maps.LatLng(34.50476 ,73.51729),new google.maps.LatLng(34.27514 ,72.60959),new google.maps.LatLng(34.60440 ,72.72460),new google.maps.LatLng(33.96071 ,72.90889),new google.maps.LatLng(32.61418 ,72.91305),new google.maps.LatLng(33.49130 ,73.70654),new google.maps.LatLng(33.82398 ,73.83386),new google.maps.LatLng(34.54164 ,72.41419),new google.maps.LatLng(34.31031 ,73.61661),new google.maps.LatLng(34.59639 ,72.60237),new google.maps.LatLng(34.12410 ,72.04587),new google.maps.LatLng(33.75673 ,73.63432),new google.maps.LatLng(32.91954 ,73.85235),new google.maps.LatLng(34.75583 ,73.22232),new google.maps.LatLng(33.08456 ,72.84772),new google.maps.LatLng(33.52099 ,74.01531),new google.maps.LatLng(34.41273 ,73.32453),new google.maps.LatLng(34.33777 ,73.70361),new google.maps.LatLng(32.67242 ,73.14165),new google.maps.LatLng(33.88917 ,72.36976),new google.maps.LatLng(32.91299 ,72.79724),new google.maps.LatLng(33.09087 ,73.43284),new google.maps.LatLng(32.65434 ,73.26997),new google.maps.LatLng(33.47248 ,71.97457),new google.maps.LatLng(33.80650 ,72.80145),new google.maps.LatLng(34.40377 ,73.05196),new google.maps.LatLng(33.19985 ,73.40852),new google.maps.LatLng(32.58051 ,72.97511),new google.maps.LatLng(34.29608 ,73.83593),new google.maps.LatLng(33.14321 ,72.46582),new google.maps.LatLng(32.78475 ,72.87420),new google.maps.LatLng(34.54095 ,72.52065),new google.maps.LatLng(34.33472 ,73.94439),new google.maps.LatLng(33.20707 ,73.71321),new google.maps.LatLng(33.51169 ,72.73910),new google.maps.LatLng(33.46855 ,73.03512),new google.maps.LatLng(33.31121 ,73.47502),new google.maps.LatLng(34.02047 ,73.50041),new google.maps.LatLng(33.79990 ,72.50647),new google.maps.LatLng(34.66232 ,73.09432),new google.maps.LatLng(33.85317 ,72.34564),new google.maps.LatLng(33.65177 ,72.09119),new google.maps.LatLng(34.35985 ,73.40429),new google.maps.LatLng(34.07601 ,72.82669),new google.maps.LatLng(33.84818 ,73.75331),new google.maps.LatLng(32.99438 ,72.77764),new google.maps.LatLng(33.57784 ,73.26811),new google.maps.LatLng(34.35020 ,72.61823),new google.maps.LatLng(34.61709 ,72.63045),new google.maps.LatLng(33.44053 ,73.72132),new google.maps.LatLng(32.70809 ,73.05398),new google.maps.LatLng(33.76821 ,72.42786),new google.maps.LatLng(33.82263 ,72.06826),new google.maps.LatLng(33.96121 ,73.51178),new google.maps.LatLng(34.52976 ,73.39808),new google.maps.LatLng(33.85173 ,71.99571),new google.maps.LatLng(33.73495 ,73.89612),new google.maps.LatLng(33.41471 ,72.79127),new google.maps.LatLng(34.55958 ,73.61725),new google.maps.LatLng(33.97786 ,72.41819),new google.maps.LatLng(34.00459 ,74.05043),new google.maps.LatLng(33.36084 ,72.46261),new google.maps.LatLng(34.51743 ,72.32498),new google.maps.LatLng(33.68953 ,72.99366),new google.maps.LatLng(32.90259 ,73.31770),new google.maps.LatLng(33.31450 ,73.52808),new google.maps.LatLng(34.25223 ,72.34108),new google.maps.LatLng(33.88903 ,73.48309),new google.maps.LatLng(32.83757 ,73.51135),new google.maps.LatLng(34.20564 ,73.51510),new google.maps.LatLng(33.67494 ,72.40650),new google.maps.LatLng(34.56427 ,73.09111),new google.maps.LatLng(34.55797 ,73.58805),new google.maps.LatLng(33.64975 ,72.29704),new google.maps.LatLng(34.27115 ,73.84426),new google.maps.LatLng(34.58895 ,72.53733),new google.maps.LatLng(34.70802 ,72.91067),new google.maps.LatLng(33.36013 ,73.96667),new google.maps.LatLng(33.00820 ,73.26264),new google.maps.LatLng(34.30523 ,73.75824),new google.maps.LatLng(33.40790 ,73.76954),new google.maps.LatLng(33.93722 ,73.43697),new google.maps.LatLng(34.22043 ,73.59544),new google.maps.LatLng(34.41960 ,72.56803),new google.maps.LatLng(32.78799 ,73.43709),new google.maps.LatLng(32.86548 ,73.77974),new google.maps.LatLng(33.12492 ,73.30153),new google.maps.LatLng(34.01861 ,73.40014),new google.maps.LatLng(33.93915 ,72.78206),new google.maps.LatLng(33.72870 ,72.19090),new google.maps.LatLng(33.10575 ,73.47943),new google.maps.LatLng(34.31176 ,72.52882),new google.maps.LatLng(32.92094 ,73.75026),new google.maps.LatLng(33.00211 ,73.50305),new google.maps.LatLng(33.67918 ,73.18643),new google.maps.LatLng(33.70198 ,72.27891),new google.maps.LatLng(33.31040 ,73.96476),new google.maps.LatLng(32.83060 ,73.62847),new google.maps.LatLng(33.43318 ,73.64438),new google.maps.LatLng(33.55807 ,73.54964),new google.maps.LatLng(33.59357 ,73.83692),new google.maps.LatLng(33.22917 ,72.27331),new google.maps.LatLng(33.43406 ,73.42112),new google.maps.LatLng(33.49306 ,72.82884),new google.maps.LatLng(33.92302 ,73.70320),new google.maps.LatLng(33.70762 ,73.43370),new google.maps.LatLng(33.42282 ,73.25501),new google.maps.LatLng(33.81152 ,72.40406),new google.maps.LatLng(33.91511 ,73.30671),new google.maps.LatLng(33.46103 ,73.54163),new google.maps.LatLng(34.19523 ,72.67676),new google.maps.LatLng(34.01082 ,72.91945),new google.maps.LatLng(34.02525 ,72.17037),new google.maps.LatLng(34.15968 ,73.73975),new google.maps.LatLng(33.06642 ,73.69062),new google.maps.LatLng(34.31523 ,73.72896),new google.maps.LatLng(34.33958 ,72.79484),new google.maps.LatLng(33.44994 ,73.83313),new google.maps.LatLng(33.68854 ,73.06087),new google.maps.LatLng(34.15876 ,73.75888),new google.maps.LatLng(33.97643 ,73.56718),new google.maps.LatLng(33.49441 ,73.84139),new google.maps.LatLng(34.50811 ,72.69233),new google.maps.LatLng(34.54653 ,72.91849),new google.maps.LatLng(33.85114 ,72.11399),new google.maps.LatLng(33.92869 ,72.57506),new google.maps.LatLng(34.57205 ,73.60559),new google.maps.LatLng(33.86794 ,72.28637),new google.maps.LatLng(33.07497 ,73.80984),new google.maps.LatLng(33.62343 ,73.50476),new google.maps.LatLng(33.71620 ,72.41562),new google.maps.LatLng(33.88183 ,73.09979),new google.maps.LatLng(33.21844 ,73.01457),new google.maps.LatLng(32.84930 ,72.97152),new google.maps.LatLng(32.61132 ,73.15128),new google.maps.LatLng(32.70649 ,73.43842),new google.maps.LatLng(33.85673 ,73.08146),new google.maps.LatLng(33.01844 ,73.23884),new google.maps.LatLng(33.22597 ,72.18528),new google.maps.LatLng(33.61489 ,72.73507),new google.maps.LatLng(33.24201 ,73.72368),new google.maps.LatLng(33.06996 ,72.93184),new google.maps.LatLng(33.92675 ,73.38241),new google.maps.LatLng(33.40838 ,72.33010),new google.maps.LatLng(33.98339 ,72.82218),new google.maps.LatLng(34.66237 ,72.71014),new google.maps.LatLng(33.66333 ,73.29475),new google.maps.LatLng(33.99813 ,74.00447),new google.maps.LatLng(34.07117 ,74.05975),new google.maps.LatLng(34.60900 ,72.46998),new google.maps.LatLng(32.99046 ,73.72516),new google.maps.LatLng(34.31036 ,72.53497),new google.maps.LatLng(33.93151 ,73.91138),new google.maps.LatLng(33.86606 ,72.23799),new google.maps.LatLng(34.44423 ,73.08880),new google.maps.LatLng(33.30047 ,73.93653),new google.maps.LatLng(34.22641 ,73.50827),new google.maps.LatLng(32.58347 ,73.24291),new google.maps.LatLng(32.91547 ,73.16747),new google.maps.LatLng(33.26772 ,72.59742),new google.maps.LatLng(34.59117 ,72.49284),new google.maps.LatLng(33.73689 ,71.91665),new google.maps.LatLng(33.09261 ,72.36256),new google.maps.LatLng(33.31449 ,72.57643),new google.maps.LatLng(32.80275 ,72.48180),new google.maps.LatLng(34.53358 ,72.60116),new google.maps.LatLng(34.33156 ,72.53309),new google.maps.LatLng(33.98933 ,73.31479),new google.maps.LatLng(33.82976 ,71.95646),new google.maps.LatLng(34.70843 ,73.12480),new google.maps.LatLng(34.48987 ,73.57305),new google.maps.LatLng(33.86322 ,72.56177),new google.maps.LatLng(34.16308 ,73.94393),new google.maps.LatLng(33.66321 ,72.32651),new google.maps.LatLng(33.77853 ,72.48788),new google.maps.LatLng(33.66293 ,73.02140),new google.maps.LatLng(33.32575 ,73.81701),new google.maps.LatLng(33.72913 ,73.71950),new google.maps.LatLng(33.48377 ,72.15876),new google.maps.LatLng(33.65525 ,73.28374),new google.maps.LatLng(34.14647 ,73.51460),new google.maps.LatLng(34.00597 ,72.85111),new google.maps.LatLng(33.89095 ,74.02864),new google.maps.LatLng(33.34822 ,71.96793),new google.maps.LatLng(32.95385 ,72.52151),new google.maps.LatLng(33.47949 ,72.08826),new google.maps.LatLng(32.66131 ,73.48084),new google.maps.LatLng(33.54976 ,73.19007),new google.maps.LatLng(33.78605 ,73.21523),new google.maps.LatLng(33.65830 ,72.50911),new google.maps.LatLng(34.23839 ,73.49575),new google.maps.LatLng(34.11370 ,73.24866),new google.maps.LatLng(32.94847 ,72.23880),new google.maps.LatLng(34.25638 ,73.23964),new google.maps.LatLng(33.55879 ,72.19362),new google.maps.LatLng(32.95277 ,72.47592),new google.maps.LatLng(33.58458 ,73.82981),new google.maps.LatLng(34.04256 ,72.93155),new google.maps.LatLng(33.30098 ,71.99695),new google.maps.LatLng(34.63796 ,73.28055),new google.maps.LatLng(34.04076 ,73.18553),new google.maps.LatLng(33.22848 ,73.52754),new google.maps.LatLng(33.04450 ,72.45210),new google.maps.LatLng(34.66400 ,72.56939),new google.maps.LatLng(32.96738 ,73.22829),new google.maps.LatLng(33.13918 ,72.74943),new google.maps.LatLng(34.52938 ,72.88234),new google.maps.LatLng(33.10978 ,73.18739),new google.maps.LatLng(33.07074 ,73.06394),new google.maps.LatLng(34.11655 ,73.94299),new google.maps.LatLng(33.67447 ,73.12315),new google.maps.LatLng(34.52832 ,73.64660),new google.maps.LatLng(33.78830 ,73.51865),new google.maps.LatLng(33.60411 ,72.48429),new google.maps.LatLng(33.23492 ,72.25063),new google.maps.LatLng(34.30487 ,73.17426),new google.maps.LatLng(33.25431 ,73.51633),new google.maps.LatLng(33.51642 ,73.57429),new google.maps.LatLng(34.04926 ,73.95277),new google.maps.LatLng(34.14126 ,73.05545),new google.maps.LatLng(32.98017 ,72.38098),new google.maps.LatLng(34.45270 ,72.76547),new google.maps.LatLng(33.56292 ,72.47048),new google.maps.LatLng(33.89210 ,72.23653),new google.maps.LatLng(33.78458 ,72.55112),new google.maps.LatLng(33.51996 ,71.94637),new google.maps.LatLng(32.74437 ,73.63518),new google.maps.LatLng(33.06516 ,72.29852),new google.maps.LatLng(33.15122 ,73.49690),new google.maps.LatLng(34.17918 ,73.12764),new google.maps.LatLng(33.57435 ,72.45292),new google.maps.LatLng(34.06813 ,72.98322),new google.maps.LatLng(34.12838 ,72.10172),new google.maps.LatLng(33.38231 ,72.05107),new google.maps.LatLng(32.77141 ,73.54738),new google.maps.LatLng(33.25503 ,73.62380),new google.maps.LatLng(34.63030 ,72.64598),new google.maps.LatLng(34.48008 ,73.66539),new google.maps.LatLng(34.56057 ,72.65904),new google.maps.LatLng(34.62529 ,72.59542),new google.maps.LatLng(32.71977 ,73.39119),new google.maps.LatLng(34.42708 ,72.65926),new google.maps.LatLng(33.85488 ,73.91449),new google.maps.LatLng(32.70066 ,73.41030),new google.maps.LatLng(33.43024 ,71.97453),new google.maps.LatLng(34.26375 ,72.23764),new google.maps.LatLng(32.84100 ,72.30421),new google.maps.LatLng(34.24844 ,72.39854),new google.maps.LatLng(33.43667 ,73.23608),new google.maps.LatLng(33.31004 ,72.04684),new google.maps.LatLng(34.58476 ,72.73051),new google.maps.LatLng(33.06280 ,72.92485),new google.maps.LatLng(34.06950 ,72.03230),new google.maps.LatLng(33.61259 ,72.83576),new google.maps.LatLng(33.81186 ,73.25160),new google.maps.LatLng(34.16217 ,73.93618),new google.maps.LatLng(34.74465 ,72.68415),new google.maps.LatLng(33.76427 ,72.91537),new google.maps.LatLng(32.88067 ,72.53732),new google.maps.LatLng(33.75213 ,71.93171),new google.maps.LatLng(33.81367 ,73.65785),new google.maps.LatLng(34.53339 ,72.37366),new google.maps.LatLng(33.80000 ,74.02735),new google.maps.LatLng(34.54663 ,72.49907),new google.maps.LatLng(33.38662 ,73.58132),new google.maps.LatLng(33.68700 ,73.48423),new google.maps.LatLng(33.30172 ,73.88530),new google.maps.LatLng(32.79225 ,72.92435),new google.maps.LatLng(33.74845 ,73.01916),new google.maps.LatLng(33.00789 ,72.96958),new google.maps.LatLng(33.08434 ,72.43325),new google.maps.LatLng(33.98183 ,73.25782),new google.maps.LatLng(34.24498 ,73.63670),new google.maps.LatLng(34.09500 ,72.95003),new google.maps.LatLng(33.78757 ,73.01002),new google.maps.LatLng(33.71920 ,72.27056),new google.maps.LatLng(34.20688 ,74.00904),new google.maps.LatLng(33.04874 ,72.37988),new google.maps.LatLng(33.08654 ,72.13893),new google.maps.LatLng(32.65301 ,73.17146),new google.maps.LatLng(34.56974 ,73.52771),new google.maps.LatLng(34.41202 ,72.46277),new google.maps.LatLng(34.25164 ,73.88319),new google.maps.LatLng(32.65336 ,73.38010),new google.maps.LatLng(34.07381 ,73.35659),new google.maps.LatLng(34.41575 ,72.57244),new google.maps.LatLng(34.01282 ,73.37797),new google.maps.LatLng(32.83909 ,73.07609),new google.maps.LatLng(33.60248 ,73.27802),new google.maps.LatLng(34.24615 ,73.06058),new google.maps.LatLng(34.55009 ,73.43537),new google.maps.LatLng(33.54703 ,72.20310),new google.maps.LatLng(33.44809 ,73.43492),new google.maps.LatLng(34.29408 ,73.04511),new google.maps.LatLng(33.00800 ,73.59564),new google.maps.LatLng(33.31414 ,72.38450),new google.maps.LatLng(33.22342 ,72.97725),new google.maps.LatLng(34.13025 ,73.45839),new google.maps.LatLng(33.44160 ,73.89123),new google.maps.LatLng(33.13524 ,72.72815),new google.maps.LatLng(33.58042 ,72.49325),new google.maps.LatLng(33.26667 ,72.28380),new google.maps.LatLng(33.06560 ,73.51915),new google.maps.LatLng(33.08021 ,72.09607),new google.maps.LatLng(33.13703 ,73.26957),new google.maps.LatLng(34.55930 ,73.01944),new google.maps.LatLng(34.03387 ,72.05036),new google.maps.LatLng(34.63571 ,73.18665),new google.maps.LatLng(32.91498 ,73.34961),new google.maps.LatLng(33.93116 ,73.79683),new google.maps.LatLng(32.61164 ,73.31728),new google.maps.LatLng(34.49673 ,72.39256),new google.maps.LatLng(32.95143 ,72.55631),new google.maps.LatLng(34.73041 ,72.85347),new google.maps.LatLng(34.21384 ,73.87074),new google.maps.LatLng(32.68270 ,73.36618),new google.maps.LatLng(33.64676 ,73.44876),new google.maps.LatLng(33.83643 ,72.12296),new google.maps.LatLng(33.94118 ,73.82268),new google.maps.LatLng(33.47195 ,72.71346),new google.maps.LatLng(34.40518 ,72.79880),new google.maps.LatLng(32.99654 ,73.39576),new google.maps.LatLng(33.80364 ,73.77268),new google.maps.LatLng(34.61666 ,72.88269),new google.maps.LatLng(33.95137 ,72.14793),new google.maps.LatLng(33.04852 ,73.78165),new google.maps.LatLng(33.39113 ,72.07861),new google.maps.LatLng(34.06333 ,72.64465),new google.maps.LatLng(33.82009 ,73.68568),new google.maps.LatLng(33.48598 ,73.16250),new google.maps.LatLng(33.30692 ,72.74628),new google.maps.LatLng(33.54602 ,73.98424),new google.maps.LatLng(33.26108 ,72.01432),new google.maps.LatLng(33.68578 ,73.75332),new google.maps.LatLng(33.85917 ,72.73453),new google.maps.LatLng(34.42976 ,72.48562),new google.maps.LatLng(34.37295 ,73.20374),new google.maps.LatLng(34.15529 ,73.83792),new google.maps.LatLng(33.04715 ,72.96659),new google.maps.LatLng(34.06327 ,72.54987),new google.maps.LatLng(32.72801 ,73.14732),new google.maps.LatLng(32.88164 ,72.36686),new google.maps.LatLng(33.08514 ,73.53909),new google.maps.LatLng(34.25343 ,72.51814),new google.maps.LatLng(33.66102 ,73.73445),new google.maps.LatLng(34.42900 ,72.58484),new google.maps.LatLng(33.49695 ,73.23235),new google.maps.LatLng(33.10449 ,73.36874),new google.maps.LatLng(34.00061 ,72.64429),new google.maps.LatLng(33.09195 ,72.20586),new google.maps.LatLng(33.74028 ,72.89759),new google.maps.LatLng(33.65722 ,73.64730),new google.maps.LatLng(33.35603 ,72.29237),new google.maps.LatLng(34.66443 ,72.59229),new google.maps.LatLng(32.96733 ,73.68618),new google.maps.LatLng(33.13707 ,72.15204),new google.maps.LatLng(34.48394 ,73.26282),new google.maps.LatLng(34.55135 ,72.46480),new google.maps.LatLng(32.75055 ,72.87272),new google.maps.LatLng(34.09606 ,73.48388),new google.maps.LatLng(32.90652 ,72.67580),new google.maps.LatLng(34.64350 ,73.46717),new google.maps.LatLng(32.95324 ,73.81234),new google.maps.LatLng(33.57126 ,73.74912),new google.maps.LatLng(33.81207 ,72.97230),new google.maps.LatLng(33.61422 ,73.18943),new google.maps.LatLng(34.20007 ,72.27520),new google.maps.LatLng(33.76437 ,73.85909),new google.maps.LatLng(33.08361 ,72.55183),new google.maps.LatLng(32.90297 ,72.95845),new google.maps.LatLng(33.82254 ,73.81208),new google.maps.LatLng(34.17534 ,72.20921),new google.maps.LatLng(34.18999 ,72.67409),new google.maps.LatLng(33.13941 ,72.06543),new google.maps.LatLng(34.54119 ,73.28922),new google.maps.LatLng(32.83901 ,73.26588),new google.maps.LatLng(33.61748 ,73.69526),new google.maps.LatLng(34.49268 ,73.65638),new google.maps.LatLng(32.92675 ,73.04059),new google.maps.LatLng(33.00055 ,73.23559),new google.maps.LatLng(34.02420 ,72.49106),new google.maps.LatLng(33.97716 ,73.87215),new google.maps.LatLng(34.64327 ,73.56559),new google.maps.LatLng(33.40212 ,73.20713),new google.maps.LatLng(33.00807 ,72.65220),new google.maps.LatLng(34.28324 ,72.65514),new google.maps.LatLng(34.07356 ,73.90600),new google.maps.LatLng(34.23675 ,72.46230),new google.maps.LatLng(34.40050 ,72.92066),new google.maps.LatLng(33.87143 ,73.74259),new google.maps.LatLng(33.08278 ,72.45926),new google.maps.LatLng(32.75279 ,72.81057),new google.maps.LatLng(34.06774 ,72.95038),new google.maps.LatLng(34.33750 ,72.21747),new google.maps.LatLng(34.22543 ,72.13530),new google.maps.LatLng(32.76603 ,73.55120),new google.maps.LatLng(34.27750 ,73.75161),new google.maps.LatLng(33.77715 ,73.24175),new google.maps.LatLng(33.05904 ,72.84735),new google.maps.LatLng(32.67251 ,73.00079),new google.maps.LatLng(33.11672 ,73.35264),new google.maps.LatLng(34.42852 ,73.85648),new google.maps.LatLng(32.88598 ,73.58844),new google.maps.LatLng(33.30815 ,73.71643),new google.maps.LatLng(32.61563 ,73.18444),new google.maps.LatLng(33.56845 ,72.31004),new google.maps.LatLng(32.90242 ,72.44801),new google.maps.LatLng(33.13799 ,72.17656),new google.maps.LatLng(33.17272 ,72.55340),new google.maps.LatLng(33.18225 ,73.41287),new google.maps.LatLng(33.69713 ,73.51378),new google.maps.LatLng(34.09374 ,73.12721),new google.maps.LatLng(33.97803 ,73.04462),new google.maps.LatLng(34.31574 ,73.96405),new google.maps.LatLng(34.52491 ,72.69088),new google.maps.LatLng(33.09945 ,73.16782),new google.maps.LatLng(33.33869 ,73.87259),new google.maps.LatLng(33.03913 ,73.94159),new google.maps.LatLng(33.52706 ,72.18480),new google.maps.LatLng(33.81393 ,72.24154),new google.maps.LatLng(33.68116 ,74.10629),new google.maps.LatLng(33.91555 ,74.07112),new google.maps.LatLng(34.48422 ,73.11642),new google.maps.LatLng(34.70392 ,72.96211),new google.maps.LatLng(33.23934 ,72.96560),new google.maps.LatLng(33.70457 ,72.79797),new google.maps.LatLng(33.00701 ,73.80299),new google.maps.LatLng(33.88784 ,73.23055),new google.maps.LatLng(32.90077 ,72.46638),new google.maps.LatLng(34.24825 ,72.59297),new google.maps.LatLng(33.19188 ,72.09571),new google.maps.LatLng(33.25044 ,73.85366),new google.maps.LatLng(33.84784 ,72.13870),new google.maps.LatLng(33.74975 ,73.42660),new google.maps.LatLng(34.26515 ,72.98574),new google.maps.LatLng(33.79067 ,73.95438),new google.maps.LatLng(33.66575 ,73.53787),new google.maps.LatLng(33.31391 ,73.31927),new google.maps.LatLng(33.83583 ,72.31510),new google.maps.LatLng(33.36166 ,72.55952),new google.maps.LatLng(34.37841 ,73.40961),new google.maps.LatLng(33.27085 ,73.14223),new google.maps.LatLng(34.36025 ,73.63802),new google.maps.LatLng(32.95517 ,73.28952),new google.maps.LatLng(33.38606 ,73.02256),new google.maps.LatLng(34.13989 ,73.29147),new google.maps.LatLng(32.91429 ,72.32075),new google.maps.LatLng(32.90021 ,73.61885),new google.maps.LatLng(34.67713 ,72.58264),new google.maps.LatLng(34.42545 ,73.35378),new google.maps.LatLng(34.08473 ,73.27287),new google.maps.LatLng(33.94036 ,73.12563),new google.maps.LatLng(34.20613 ,72.36898),new google.maps.LatLng(33.30831 ,72.73726),new google.maps.LatLng(32.83124 ,72.67083),new google.maps.LatLng(34.69498 ,73.42791),new google.maps.LatLng(33.82400 ,72.41161),new google.maps.LatLng(32.94400 ,73.11408),new google.maps.LatLng(33.15582 ,72.36586),new google.maps.LatLng(34.05823 ,73.51303),new google.maps.LatLng(34.42005 ,72.68689),new google.maps.LatLng(32.69050 ,73.43613),new google.maps.LatLng(34.47311 ,73.70644),new google.maps.LatLng(33.09151 ,73.14055),new google.maps.LatLng(34.04700 ,72.28763),new google.maps.LatLng(34.69229 ,72.79510),new google.maps.LatLng(33.08951 ,72.90045),new google.maps.LatLng(34.51265 ,73.29955),new google.maps.LatLng(34.55890 ,73.40554),new google.maps.LatLng(33.14648 ,72.42470),new google.maps.LatLng(34.03586 ,73.45010),new google.maps.LatLng(34.47785 ,73.02713),new google.maps.LatLng(33.78430 ,73.07136),new google.maps.LatLng(33.72847 ,72.40652),new google.maps.LatLng(34.45970 ,73.09895),new google.maps.LatLng(33.91580 ,72.73690),new google.maps.LatLng(33.48762 ,72.13578),new google.maps.LatLng(34.23369 ,72.46641),new google.maps.LatLng(32.67665 ,73.28645),new google.maps.LatLng(33.14820 ,72.39383),new google.maps.LatLng(34.17841 ,73.87292),new google.maps.LatLng(34.18970 ,72.32915),new google.maps.LatLng(33.96820 ,72.01235),new google.maps.LatLng(34.00276 ,73.49661),new google.maps.LatLng(33.99414 ,72.29919),new google.maps.LatLng(33.16012 ,72.63266),new google.maps.LatLng(33.64305 ,72.56185),new google.maps.LatLng(34.00135 ,72.70673),new google.maps.LatLng(32.86404 ,73.27499),new google.maps.LatLng(33.61037 ,73.89999),new google.maps.LatLng(33.84389 ,72.84575),new google.maps.LatLng(33.07283 ,73.18686),new google.maps.LatLng(34.28913 ,72.60337),new google.maps.LatLng(34.17259 ,72.65187),new google.maps.LatLng(33.70127 ,73.79306),new google.maps.LatLng(32.96809 ,72.52332),new google.maps.LatLng(33.32803 ,72.15491),new google.maps.LatLng(32.59948 ,72.88568),new google.maps.LatLng(33.18984 ,72.74760),new google.maps.LatLng(33.81448 ,73.25225),new google.maps.LatLng(34.05979 ,72.52904),new google.maps.LatLng(33.00403 ,72.61584),new google.maps.LatLng(33.47461 ,72.21951),new google.maps.LatLng(33.68888 ,73.79349),new google.maps.LatLng(34.58471 ,73.32166),new google.maps.LatLng(32.94855 ,73.30982),new google.maps.LatLng(34.00779 ,73.60686),new google.maps.LatLng(34.51802 ,72.93817),new google.maps.LatLng(33.03624 ,73.15327),new google.maps.LatLng(34.31156 ,72.31391),new google.maps.LatLng(32.73505 ,73.30813),new google.maps.LatLng(33.05467 ,72.27831),new google.maps.LatLng(34.47825 ,72.74077),new google.maps.LatLng(34.18067 ,73.45103),new google.maps.LatLng(34.01967 ,72.86906),new google.maps.LatLng(32.81703 ,73.67191),new google.maps.LatLng(34.09668 ,72.22901),new google.maps.LatLng(33.38527 ,73.83962),new google.maps.LatLng(32.77233 ,73.01575),new google.maps.LatLng(33.13392 ,72.33559),new google.maps.LatLng(33.75959 ,72.54786),new google.maps.LatLng(34.49639 ,73.33917),new google.maps.LatLng(33.36553 ,72.07051),new google.maps.LatLng(33.71465 ,74.08000),new google.maps.LatLng(33.57987 ,72.50413),new google.maps.LatLng(33.28419 ,72.74533),new google.maps.LatLng(34.59996 ,72.46309),new google.maps.LatLng(34.54121 ,73.28543),new google.maps.LatLng(34.58180 ,72.83325),new google.maps.LatLng(34.52863 ,73.11310),new google.maps.LatLng(32.89314 ,73.34824),new google.maps.LatLng(34.62564 ,72.80855),new google.maps.LatLng(33.70728 ,72.88056),new google.maps.LatLng(33.64144 ,72.69258),new google.maps.LatLng(34.09583 ,72.88577),new google.maps.LatLng(32.66705 ,72.68397),new google.maps.LatLng(33.00652 ,72.27436),new google.maps.LatLng(33.14518 ,73.61217),new google.maps.LatLng(34.49955 ,72.42614),new google.maps.LatLng(34.44339 ,73.48175),new google.maps.LatLng(33.26172 ,72.29721),new google.maps.LatLng(32.83376 ,72.85836),new google.maps.LatLng(33.81630 ,74.01624),new google.maps.LatLng(32.68006 ,73.22668),new google.maps.LatLng(34.32169 ,72.33505),new google.maps.LatLng(34.60597 ,72.47167),new google.maps.LatLng(33.00513 ,72.71146),new google.maps.LatLng(32.71946 ,73.15228),new google.maps.LatLng(32.56905 ,73.00024),new google.maps.LatLng(34.16374 ,72.67688),new google.maps.LatLng(34.37080 ,72.30939),new google.maps.LatLng(33.80190 ,73.88554),new google.maps.LatLng(34.66117 ,72.59869),new google.maps.LatLng(33.68836 ,73.15696),new google.maps.LatLng(34.42045 ,72.79365),new google.maps.LatLng(34.08945 ,73.47691),new google.maps.LatLng(34.23469 ,72.19549),new google.maps.LatLng(34.63683 ,73.35512),new google.maps.LatLng(34.08413 ,72.06925),new google.maps.LatLng(33.33022 ,73.91803),new google.maps.LatLng(34.36406 ,72.29182),new google.maps.LatLng(33.64315 ,73.85574),new google.maps.LatLng(34.40702 ,73.38811),new google.maps.LatLng(32.92688 ,73.84574),new google.maps.LatLng(33.32727 ,73.74941),new google.maps.LatLng(34.41600 ,72.50571),new google.maps.LatLng(34.28058 ,72.66866),new google.maps.LatLng(33.32627 ,74.02917),new google.maps.LatLng(32.78405 ,73.42212),new google.maps.LatLng(34.13041 ,73.83157),new google.maps.LatLng(33.62667 ,72.84801),new google.maps.LatLng(34.18934 ,73.79566),new google.maps.LatLng(32.59621 ,72.90170),new google.maps.LatLng(34.03489 ,73.57021),new google.maps.LatLng(34.65047 ,73.47018),new google.maps.LatLng(34.22054 ,73.51210),new google.maps.LatLng(33.65372 ,72.84876),new google.maps.LatLng(34.23343 ,72.32901),new google.maps.LatLng(32.86314 ,72.87786),new google.maps.LatLng(34.09207 ,72.32292),new google.maps.LatLng(33.50474 ,73.62423),new google.maps.LatLng(33.02955 ,73.66374),new google.maps.LatLng(33.11899 ,72.09385),new google.maps.LatLng(34.52322 ,73.31919),new google.maps.LatLng(34.08865 ,73.82379),new google.maps.LatLng(34.29378 ,73.27793),new google.maps.LatLng(33.48463 ,73.67266),new google.maps.LatLng(32.86229 ,73.36750),new google.maps.LatLng(34.32576 ,72.79020),new google.maps.LatLng(33.93330 ,74.06567),new google.maps.LatLng(33.80061 ,73.46202),new google.maps.LatLng(33.88543 ,73.77981),new google.maps.LatLng(33.45823 ,73.12057),new google.maps.LatLng(34.01371 ,73.82443),new google.maps.LatLng(32.85879 ,73.38501),new google.maps.LatLng(33.27256 ,73.35959),new google.maps.LatLng(33.36568 ,73.64467),new google.maps.LatLng(33.65981 ,72.03978),new google.maps.LatLng(33.70814 ,72.48076),new google.maps.LatLng(33.35106 ,73.82779),new google.maps.LatLng(34.26196 ,72.23456),new google.maps.LatLng(34.67894 ,73.53977),new google.maps.LatLng(34.52627 ,73.16250),new google.maps.LatLng(33.50170 ,72.43011),new google.maps.LatLng(34.33415 ,72.36980),new google.maps.LatLng(33.45524 ,72.79288),new google.maps.LatLng(33.42276 ,72.50797),new google.maps.LatLng(34.10830 ,72.71938),new google.maps.LatLng(32.90137 ,72.63330),new google.maps.LatLng(32.98316 ,73.58323),new google.maps.LatLng(34.32601 ,73.49101),new google.maps.LatLng(32.68791 ,73.32095),new google.maps.LatLng(33.68788 ,73.14952),new google.maps.LatLng(33.70271 ,73.15390),new google.maps.LatLng(34.40078 ,73.27777),new google.maps.LatLng(34.00109 ,72.95050),new google.maps.LatLng(33.58090 ,73.33318),new google.maps.LatLng(33.49307 ,72.15768),new google.maps.LatLng(33.82521 ,72.03751),new google.maps.LatLng(33.66674 ,72.27960),new google.maps.LatLng(34.26606 ,72.65545),new google.maps.LatLng(34.53155 ,72.55517),new google.maps.LatLng(34.50559 ,72.83668),new google.maps.LatLng(34.69580 ,73.10324),new google.maps.LatLng(33.27712 ,72.50490),new google.maps.LatLng(33.03893 ,72.56968),new google.maps.LatLng(33.96682 ,73.50878),new google.maps.LatLng(33.97402 ,72.74279),new google.maps.LatLng(32.78165 ,72.89941),new google.maps.LatLng(34.54091 ,73.76161),new google.maps.LatLng(33.07338 ,72.54937),new google.maps.LatLng(33.04990 ,73.10779),new google.maps.LatLng(33.91914 ,73.65966),new google.maps.LatLng(33.46164 ,73.26909),new google.maps.LatLng(33.46716 ,72.26671),new google.maps.LatLng(33.47160 ,72.88158),new google.maps.LatLng(34.41233 ,72.43833),new google.maps.LatLng(33.77912 ,72.86874),new google.maps.LatLng(34.34767 ,73.40580),new google.maps.LatLng(33.29449 ,73.43374),new google.maps.LatLng(33.73937 ,72.90042),new google.maps.LatLng(33.35810 ,72.65636),new google.maps.LatLng(32.86720 ,73.45511),new google.maps.LatLng(33.61880 ,72.85283),new google.maps.LatLng(32.92040 ,72.30383),new google.maps.LatLng(33.94281 ,72.20734),new google.maps.LatLng(33.61075 ,72.98526),new google.maps.LatLng(33.28740 ,72.28150),new google.maps.LatLng(33.89159 ,72.80188),new google.maps.LatLng(33.92365 ,72.57012),new google.maps.LatLng(34.41793 ,72.94968),new google.maps.LatLng(34.40107 ,73.39612),new google.maps.LatLng(34.78459 ,73.25253),new google.maps.LatLng(33.66604 ,73.36846),new google.maps.LatLng(34.57010 ,72.63341),new google.maps.LatLng(34.28143 ,73.95891),new google.maps.LatLng(33.10407 ,73.67556),new google.maps.LatLng(33.72887 ,72.42788),new google.maps.LatLng(34.46961 ,73.32028),new google.maps.LatLng(33.15937 ,72.27103),new google.maps.LatLng(34.27322 ,73.48976),new google.maps.LatLng(33.72436 ,73.49976),new google.maps.LatLng(33.07464 ,73.91142),new google.maps.LatLng(33.55761 ,72.37855),new google.maps.LatLng(32.93337 ,72.47405),new google.maps.LatLng(34.15596 ,73.72114),new google.maps.LatLng(34.39420 ,73.53916),new google.maps.LatLng(33.09263 ,73.69051),new google.maps.LatLng(33.82070 ,73.61219),new google.maps.LatLng(33.01552 ,73.05019),new google.maps.LatLng(33.51033 ,72.03147),new google.maps.LatLng(32.79743 ,73.14774),new google.maps.LatLng(34.04256 ,73.43439),new google.maps.LatLng(34.62289 ,73.08280),new google.maps.LatLng(34.62136 ,73.05220),new google.maps.LatLng(34.11585 ,73.10640),new google.maps.LatLng(33.55367 ,72.00138),new google.maps.LatLng(32.64923 ,73.28107),new google.maps.LatLng(33.23410 ,73.28519),new google.maps.LatLng(33.72546 ,73.97360),new google.maps.LatLng(34.31781 ,72.83406),new google.maps.LatLng(32.58160 ,72.84084),new google.maps.LatLng(33.71005 ,73.11607),new google.maps.LatLng(33.17270 ,73.82220),new google.maps.LatLng(33.36440 ,73.05381),new google.maps.LatLng(33.59504 ,72.12375),new google.maps.LatLng(33.60971 ,72.84588),new google.maps.LatLng(33.16441 ,72.78376),new google.maps.LatLng(33.88577 ,72.03548),new google.maps.LatLng(33.65891 ,72.26499),new google.maps.LatLng(32.96800 ,72.23814),new google.maps.LatLng(33.14830 ,72.98047),new google.maps.LatLng(33.46383 ,73.38538),new google.maps.LatLng(33.65509 ,73.23089),new google.maps.LatLng(32.89864 ,72.45441),new google.maps.LatLng(34.11096 ,72.77638),new google.maps.LatLng(33.12023 ,72.93187),new google.maps.LatLng(33.39137 ,73.57317),new google.maps.LatLng(33.92212 ,72.84259),new google.maps.LatLng(33.97437 ,72.87852),new google.maps.LatLng(33.09496 ,72.68612),new google.maps.LatLng(34.27512 ,72.96151),new google.maps.LatLng(33.05214 ,72.81816),new google.maps.LatLng(33.74764 ,73.44003),new google.maps.LatLng(33.16551 ,72.92751),new google.maps.LatLng(33.29797 ,73.05726),new google.maps.LatLng(33.39287 ,73.49378),new google.maps.LatLng(33.66166 ,73.44576),new google.maps.LatLng(34.09153 ,72.74179),new google.maps.LatLng(33.52040 ,73.43438),new google.maps.LatLng(34.30683 ,73.40399),new google.maps.LatLng(33.78344 ,72.36100),new google.maps.LatLng(32.84903 ,73.47553),new google.maps.LatLng(34.64117 ,72.70837),new google.maps.LatLng(34.55127 ,72.78533),new google.maps.LatLng(33.22718 ,72.05410),new google.maps.LatLng(33.11764 ,73.30187),new google.maps.LatLng(33.70302 ,72.51926),new google.maps.LatLng(34.57598 ,72.39563),new google.maps.LatLng(34.25673 ,72.35986),new google.maps.LatLng(33.71094 ,72.82888),new google.maps.LatLng(33.45293 ,72.94522),new google.maps.LatLng(33.40036 ,71.96469),new google.maps.LatLng(33.70794 ,72.84626),new google.maps.LatLng(34.61078 ,72.86721),new google.maps.LatLng(32.94900 ,73.12850),new google.maps.LatLng(34.46335 ,72.47056),new google.maps.LatLng(33.26005 ,73.91179),new google.maps.LatLng(32.94867 ,72.75195),new google.maps.LatLng(33.75950 ,72.71181),new google.maps.LatLng(34.43786 ,73.39794),new google.maps.LatLng(34.64186 ,73.04435),new google.maps.LatLng(33.70585 ,73.25660),new google.maps.LatLng(32.83617 ,73.31151),new google.maps.LatLng(33.56023 ,72.70913),new google.maps.LatLng(32.66624 ,72.72845),new google.maps.LatLng(33.76323 ,72.41803),new google.maps.LatLng(33.08926 ,73.35784),new google.maps.LatLng(34.66226 ,73.24168),new google.maps.LatLng(33.72916 ,72.88185),new google.maps.LatLng(33.45731 ,73.10824),new google.maps.LatLng(33.55631 ,72.27643),new google.maps.LatLng(33.15902 ,73.98136),new google.maps.LatLng(33.35795 ,72.86689),new google.maps.LatLng(33.66339 ,74.03169),new google.maps.LatLng(34.68706 ,73.28689),new google.maps.LatLng(33.37666 ,73.86855),new google.maps.LatLng(33.60290 ,72.05893),new google.maps.LatLng(33.40373 ,73.96165),new google.maps.LatLng(33.55960 ,72.38415),new google.maps.LatLng(33.00986 ,72.93654),new google.maps.LatLng(33.73386 ,72.12453),new google.maps.LatLng(33.57273 ,73.53730),new google.maps.LatLng(34.48187 ,73.27396),new google.maps.LatLng(33.04183 ,73.79861),new google.maps.LatLng(33.12450 ,73.72339),new google.maps.LatLng(32.73199 ,73.24172),new google.maps.LatLng(32.85021 ,73.72975),new google.maps.LatLng(33.71060 ,72.60208),new google.maps.LatLng(34.36434 ,73.28926),new google.maps.LatLng(33.67836 ,72.60386),new google.maps.LatLng(34.70752 ,73.08817),new google.maps.LatLng(32.70707 ,72.92925),new google.maps.LatLng(32.65059 ,72.69408),new google.maps.LatLng(34.45777 ,72.35021),new google.maps.LatLng(33.03891 ,72.96948),new google.maps.LatLng(32.61804 ,72.94021),new google.maps.LatLng(33.53473 ,72.45590),new google.maps.LatLng(33.38916 ,74.01993),new google.maps.LatLng(33.41324 ,72.43075),new google.maps.LatLng(33.67296 ,72.09842),new google.maps.LatLng(33.41630 ,73.86989),new google.maps.LatLng(34.38903 ,73.50473),new google.maps.LatLng(32.72761 ,72.60356),new google.maps.LatLng(33.08794 ,73.81910),new google.maps.LatLng(34.65795 ,73.40228),new google.maps.LatLng(33.61818 ,73.58357),new google.maps.LatLng(33.37239 ,72.23081),new google.maps.LatLng(34.29737 ,73.51656),new google.maps.LatLng(33.03027 ,72.40306),new google.maps.LatLng(33.69197 ,74.00529),new google.maps.LatLng(33.48972 ,72.40725),new google.maps.LatLng(33.57420 ,73.33523),new google.maps.LatLng(34.11964 ,72.69746),new google.maps.LatLng(34.29050 ,73.65780),new google.maps.LatLng(33.82082 ,72.45924),new google.maps.LatLng(34.66255 ,72.75567),new google.maps.LatLng(34.00693 ,72.45801),new google.maps.LatLng(32.90426 ,73.18059),new google.maps.LatLng(33.34265 ,73.05233),new google.maps.LatLng(34.16558 ,73.58111),new google.maps.LatLng(33.36616 ,73.86802),new google.maps.LatLng(33.87867 ,72.88773),new google.maps.LatLng(34.20037 ,72.09218),new google.maps.LatLng(33.73261 ,73.73487),new google.maps.LatLng(33.50064 ,74.04860),new google.maps.LatLng(33.80978 ,73.64336),new google.maps.LatLng(34.50141 ,73.14753),new google.maps.LatLng(33.70169 ,72.93467),new google.maps.LatLng(33.45304 ,72.01779),new google.maps.LatLng(34.08691 ,72.58180),new google.maps.LatLng(33.86676 ,73.43522),new google.maps.LatLng(33.24600 ,72.56354),new google.maps.LatLng(34.14252 ,73.16964),new google.maps.LatLng(33.78407 ,73.59949),new google.maps.LatLng(33.59452 ,72.79348),new google.maps.LatLng(33.24654 ,72.65578),new google.maps.LatLng(33.65285 ,72.53334),new google.maps.LatLng(33.99450 ,73.20444),new google.maps.LatLng(33.85740 ,72.08911),new google.maps.LatLng(33.19712 ,72.42090),new google.maps.LatLng(33.49163 ,73.80798),new google.maps.LatLng(34.40460 ,73.14206),new google.maps.LatLng(33.38840 ,73.41005),new google.maps.LatLng(33.44254 ,73.82515),new google.maps.LatLng(34.28972 ,73.76214),new google.maps.LatLng(34.03112 ,72.36923),new google.maps.LatLng(33.62136 ,73.92660),new google.maps.LatLng(33.23246 ,73.54761),new google.maps.LatLng(34.35434 ,73.54112),new google.maps.LatLng(33.77030 ,73.99756),new google.maps.LatLng(34.51807 ,72.97380),new google.maps.LatLng(33.70223 ,73.29447),new google.maps.LatLng(33.59901 ,73.39369),new google.maps.LatLng(33.42163 ,72.41785),new google.maps.LatLng(32.90246 ,73.27442),new google.maps.LatLng(34.41011 ,72.33434),new google.maps.LatLng(33.67874 ,73.63028),new google.maps.LatLng(33.75132 ,73.08447),new google.maps.LatLng(34.34763 ,73.32728),new google.maps.LatLng(32.59322 ,72.90041),new google.maps.LatLng(34.62874 ,73.57266),new google.maps.LatLng(34.78638 ,73.03635),new google.maps.LatLng(34.78415 ,72.94466),new google.maps.LatLng(34.29531 ,72.28860),new google.maps.LatLng(34.35674 ,73.50291),new google.maps.LatLng(33.47992 ,73.28845),new google.maps.LatLng(33.53827 ,73.82104),new google.maps.LatLng(33.86109 ,72.78930),new google.maps.LatLng(34.04371 ,72.19680),new google.maps.LatLng(33.07615 ,73.29780),new google.maps.LatLng(34.38852 ,73.55856),new google.maps.LatLng(33.44755 ,72.55686),new google.maps.LatLng(32.75894 ,72.61403),new google.maps.LatLng(33.76545 ,73.28947),new google.maps.LatLng(34.57819 ,73.68669),new google.maps.LatLng(32.97725 ,72.91120),new google.maps.LatLng(33.67677 ,73.85841),new google.maps.LatLng(33.99305 ,73.05628),new google.maps.LatLng(34.64290 ,73.46933),new google.maps.LatLng(33.98691 ,73.90051),new google.maps.LatLng(34.18807 ,73.84299),new google.maps.LatLng(34.10026 ,72.50648),new google.maps.LatLng(34.05486 ,72.94169),new google.maps.LatLng(34.64397 ,73.52934),new google.maps.LatLng(33.59760 ,73.15187),new google.maps.LatLng(34.68249 ,72.56501),new google.maps.LatLng(33.89364 ,74.10579),new google.maps.LatLng(33.89580 ,73.63692),new google.maps.LatLng(34.39139 ,73.12051),new google.maps.LatLng(34.48706 ,73.47493),new google.maps.LatLng(34.56464 ,73.65236),new google.maps.LatLng(34.38383 ,72.30106),new google.maps.LatLng(33.25779 ,72.63859),new google.maps.LatLng(33.91667 ,72.32256),new google.maps.LatLng(32.91549 ,72.93457),new google.maps.LatLng(32.94197 ,73.21074),new google.maps.LatLng(33.30801 ,72.50334),new google.maps.LatLng(34.63132 ,73.19250),new google.maps.LatLng(33.12043 ,72.50319),new google.maps.LatLng(34.45596 ,72.51830),new google.maps.LatLng(34.12342 ,72.05710),new google.maps.LatLng(33.89178 ,72.85712),new google.maps.LatLng(34.49152 ,72.81746),new google.maps.LatLng(34.23895 ,73.93896),new google.maps.LatLng(33.35639 ,73.86301),new google.maps.LatLng(34.10993 ,72.21533),new google.maps.LatLng(34.37370 ,72.29705),new google.maps.LatLng(34.25770 ,73.37938),new google.maps.LatLng(34.00874 ,73.09685),new google.maps.LatLng(33.47580 ,73.29420),new google.maps.LatLng(33.59425 ,73.52670),new google.maps.LatLng(34.67562 ,72.96384),new google.maps.LatLng(33.26320 ,73.38989),new google.maps.LatLng(33.12335 ,72.76897),new google.maps.LatLng(33.84505 ,73.20752),new google.maps.LatLng(34.18431 ,73.50178),new google.maps.LatLng(32.77998 ,73.25219),new google.maps.LatLng(34.11800 ,73.66097),new google.maps.LatLng(34.45343 ,73.75249),new google.maps.LatLng(33.81747 ,72.13129),new google.maps.LatLng(33.76374 ,73.46397),new google.maps.LatLng(33.35706 ,72.97536),new google.maps.LatLng(34.62039 ,73.55294),new google.maps.LatLng(34.17412 ,73.64157),new google.maps.LatLng(33.53084 ,72.47392),new google.maps.LatLng(33.91801 ,72.23397),new google.maps.LatLng(33.54417 ,72.59510),new google.maps.LatLng(33.36872 ,73.54091),new google.maps.LatLng(32.92525 ,72.42053),new google.maps.LatLng(34.66812 ,72.74942),new google.maps.LatLng(34.31335 ,73.27511),new google.maps.LatLng(34.32556 ,72.72470),new google.maps.LatLng(34.40946 ,73.67288),new google.maps.LatLng(33.78894 ,72.70674),new google.maps.LatLng(34.43799 ,73.35249),new google.maps.LatLng(34.18657 ,72.39446),new google.maps.LatLng(34.41445 ,72.43509),new google.maps.LatLng(33.13185 ,73.90027),new google.maps.LatLng(33.37340 ,72.80952),new google.maps.LatLng(32.79967 ,72.36427),new google.maps.LatLng(33.90956 ,72.44045),new google.maps.LatLng(33.58678 ,72.38073),new google.maps.LatLng(33.40997 ,73.16000),new google.maps.LatLng(33.37946 ,73.14814),new google.maps.LatLng(33.19045 ,73.53573),new google.maps.LatLng(34.49575 ,72.49028),new google.maps.LatLng(32.89984 ,73.52714),new google.maps.LatLng(34.70329 ,72.92976),new google.maps.LatLng(34.43431 ,72.89797),new google.maps.LatLng(34.45186 ,72.38051),new google.maps.LatLng(33.43100 ,73.04710),new google.maps.LatLng(32.90827 ,73.66848),new google.maps.LatLng(34.20458 ,72.39781),new google.maps.LatLng(33.20934 ,72.67935),new google.maps.LatLng(34.62829 ,72.81878),new google.maps.LatLng(33.81147 ,73.75220),new google.maps.LatLng(33.69911 ,73.00915),new google.maps.LatLng(33.32795 ,73.52219),new google.maps.LatLng(32.83103 ,73.72788),new google.maps.LatLng(33.30481 ,72.53657),new google.maps.LatLng(32.71345 ,73.42114),new google.maps.LatLng(33.71089 ,72.39082),new google.maps.LatLng(33.14446 ,73.81100),new google.maps.LatLng(32.97857 ,72.77955),new google.maps.LatLng(34.48228 ,73.04260),new google.maps.LatLng(33.14952 ,73.58001),new google.maps.LatLng(33.12429 ,72.45501),new google.maps.LatLng(33.46014 ,72.99850),new google.maps.LatLng(33.77089 ,73.67931),new google.maps.LatLng(32.92591 ,72.37732),new google.maps.LatLng(33.74648 ,72.26278),new google.maps.LatLng(34.27532 ,73.31577),new google.maps.LatLng(33.23682 ,73.03836),new google.maps.LatLng(33.39377 ,73.00774),new google.maps.LatLng(34.21713 ,73.94378),new google.maps.LatLng(33.96321 ,73.79450),new google.maps.LatLng(32.79093 ,73.33087),new google.maps.LatLng(34.01252 ,72.36740),new google.maps.LatLng(34.48049 ,72.87925),new google.maps.LatLng(33.34042 ,72.01169),new google.maps.LatLng(34.41648 ,73.64857),new google.maps.LatLng(34.62901 ,72.87487),new google.maps.LatLng(34.07882 ,73.53827),new google.maps.LatLng(34.01990 ,72.71148),new google.maps.LatLng(32.70332 ,73.18186),new google.maps.LatLng(32.75007 ,73.23118),new google.maps.LatLng(33.34522 ,73.25823),new google.maps.LatLng(33.27593 ,72.88554),new google.maps.LatLng(33.19178 ,72.98611),new google.maps.LatLng(33.27200 ,72.15002),new google.maps.LatLng(34.11132 ,72.72236),new google.maps.LatLng(33.12089 ,73.85695),new google.maps.LatLng(33.02559 ,73.29938),new google.maps.LatLng(34.10798 ,72.09957),new google.maps.LatLng(34.36109 ,72.41617),new google.maps.LatLng(33.86061 ,72.83479),new google.maps.LatLng(34.56370 ,73.32301),new google.maps.LatLng(32.75091 ,72.94055),new google.maps.LatLng(34.67690 ,73.29705),new google.maps.LatLng(34.13973 ,72.51748),new google.maps.LatLng(33.45306 ,73.85456),new google.maps.LatLng(32.78291 ,72.49959),new google.maps.LatLng(34.16784 ,73.75286),new google.maps.LatLng(34.27772 ,72.24413),new google.maps.LatLng(33.66621 ,72.70302),new google.maps.LatLng(33.97753 ,74.05417),new google.maps.LatLng(33.30283 ,73.42337),new google.maps.LatLng(33.75704 ,73.04839),new google.maps.LatLng(34.01083 ,73.17533),new google.maps.LatLng(34.30333 ,72.17683),new google.maps.LatLng(34.28922 ,73.08755),new google.maps.LatLng(33.34720 ,72.40395),new google.maps.LatLng(33.84999 ,73.56894),new google.maps.LatLng(33.57466 ,73.71338),new google.maps.LatLng(34.08718 ,72.39794),new google.maps.LatLng(33.23350 ,73.53289),new google.maps.LatLng(33.94052 ,73.60470),new google.maps.LatLng(32.83094 ,73.34656),new google.maps.LatLng(34.33567 ,72.96798),new google.maps.LatLng(32.88729 ,72.31336),new google.maps.LatLng(33.29121 ,72.66874),new google.maps.LatLng(33.56225 ,73.38413),new google.maps.LatLng(33.75480 ,73.30782),new google.maps.LatLng(33.89805 ,73.24133),new google.maps.LatLng(33.42625 ,72.01704),new google.maps.LatLng(33.46963 ,71.99915),new google.maps.LatLng(32.67721 ,72.55349),new google.maps.LatLng(33.49236 ,72.73543),new google.maps.LatLng(32.83663 ,72.71960),new google.maps.LatLng(32.66469 ,72.63846),new google.maps.LatLng(33.87419 ,72.15500),new google.maps.LatLng(33.79833 ,72.96740),new google.maps.LatLng(34.43335 ,72.59348),new google.maps.LatLng(34.17717 ,73.34718),new google.maps.LatLng(33.22847 ,72.01698),new google.maps.LatLng(33.99910 ,73.52556),new google.maps.LatLng(34.16573 ,74.03436),new google.maps.LatLng(32.75272 ,73.33601),new google.maps.LatLng(33.94524 ,72.42698),new google.maps.LatLng(33.18154 ,73.05529),new google.maps.LatLng(34.08111 ,72.92669),new google.maps.LatLng(32.73387 ,72.72254),new google.maps.LatLng(33.30424 ,73.80157),new google.maps.LatLng(33.84731 ,72.30082),new google.maps.LatLng(32.94324 ,73.18990),new google.maps.LatLng(33.31015 ,72.33668),new google.maps.LatLng(33.23264 ,72.55770),new google.maps.LatLng(34.04563 ,72.17708),new google.maps.LatLng(34.01469 ,73.68839),new google.maps.LatLng(32.87088 ,73.61255),new google.maps.LatLng(33.47964 ,73.66705),new google.maps.LatLng(33.75576 ,73.19997),new google.maps.LatLng(34.63591 ,73.54233),new google.maps.LatLng(33.95682 ,72.42931),new google.maps.LatLng(33.61922 ,72.21160),new google.maps.LatLng(32.94136 ,72.81394),new google.maps.LatLng(34.38665 ,72.54476),new google.maps.LatLng(33.23746 ,72.46702),new google.maps.LatLng(33.72417 ,72.11598),new google.maps.LatLng(34.10261 ,72.70097),new google.maps.LatLng(32.87835 ,72.31922),new google.maps.LatLng(33.24596 ,72.67152),new google.maps.LatLng(34.58084 ,72.71631),new google.maps.LatLng(34.47072 ,73.32298),new google.maps.LatLng(33.77126 ,72.91115),new google.maps.LatLng(33.99202 ,73.31575),new google.maps.LatLng(32.80900 ,72.64762),new google.maps.LatLng(34.46679 ,72.95963),new google.maps.LatLng(32.73414 ,73.46563),new google.maps.LatLng(32.84682 ,73.44636),new google.maps.LatLng(34.20754 ,73.98750),new google.maps.LatLng(33.80144 ,73.21462),new google.maps.LatLng(33.96432 ,73.10866),new google.maps.LatLng(34.35395 ,72.81447),new google.maps.LatLng(34.19622 ,72.66894),new google.maps.LatLng(33.30001 ,72.34764),new google.maps.LatLng(33.11659 ,72.32006),new google.maps.LatLng(32.96937 ,73.89553),new google.maps.LatLng(33.01831 ,73.81239),new google.maps.LatLng(32.91282 ,73.23789),new google.maps.LatLng(34.18627 ,73.16293),new google.maps.LatLng(33.44230 ,73.65756),new google.maps.LatLng(32.89550 ,73.06234),new google.maps.LatLng(34.27485 ,73.19089),new google.maps.LatLng(33.97671 ,74.05284),new google.maps.LatLng(33.30607 ,72.57209),new google.maps.LatLng(33.99914 ,72.42096),new google.maps.LatLng(34.12478 ,74.04768),new google.maps.LatLng(34.04215 ,72.13666),new google.maps.LatLng(33.85329 ,72.25184),new google.maps.LatLng(34.58150 ,72.68367),new google.maps.LatLng(33.61890 ,72.42602),new google.maps.LatLng(33.90793 ,73.40610),new google.maps.LatLng(33.31382 ,72.45496),new google.maps.LatLng(33.36971 ,72.14096),new google.maps.LatLng(33.28222 ,72.31618),new google.maps.LatLng(34.50913 ,73.19344),new google.maps.LatLng(33.80052 ,72.90413),new google.maps.LatLng(33.21229 ,73.07420),new google.maps.LatLng(33.69474 ,73.67296),new google.maps.LatLng(34.26873 ,72.73526),new google.maps.LatLng(33.51540 ,73.81381),new google.maps.LatLng(33.80105 ,73.93410),new google.maps.LatLng(34.32200 ,73.35044),new google.maps.LatLng(33.76756 ,72.51845),new google.maps.LatLng(32.69099 ,73.53083),new google.maps.LatLng(34.16640 ,73.19865),new google.maps.LatLng(33.24878 ,72.37561),new google.maps.LatLng(33.84455 ,72.88746),new google.maps.LatLng(33.37435 ,73.40440),new google.maps.LatLng(33.93184 ,72.71206),new google.maps.LatLng(32.85726 ,72.97668),new google.maps.LatLng(33.57293 ,73.13459),new google.maps.LatLng(33.22386 ,72.32392),new google.maps.LatLng(33.62059 ,73.19094),new google.maps.LatLng(33.11257 ,73.52714),new google.maps.LatLng(34.29548 ,73.15148),new google.maps.LatLng(33.52844 ,72.78103),new google.maps.LatLng(34.14448 ,73.28164),new google.maps.LatLng(33.60033 ,72.27031),new google.maps.LatLng(33.71755 ,73.84813),new google.maps.LatLng(34.15105 ,73.38862),new google.maps.LatLng(34.45486 ,72.67095),new google.maps.LatLng(32.88628 ,72.42455),new google.maps.LatLng(33.08106 ,72.20557),new google.maps.LatLng(32.81718 ,73.54118),new google.maps.LatLng(33.85934 ,73.91969),new google.maps.LatLng(32.86071 ,72.66672),new google.maps.LatLng(34.27994 ,73.59371),new google.maps.LatLng(34.14134 ,73.26450),new google.maps.LatLng(33.86398 ,72.42476),new google.maps.LatLng(33.19388 ,72.92379),new google.maps.LatLng(32.78549 ,72.50804),new google.maps.LatLng(33.66357 ,73.72748),new google.maps.LatLng(33.27768 ,73.62319),new google.maps.LatLng(33.71204 ,74.11979),new google.maps.LatLng(33.60189 ,72.55780),new google.maps.LatLng(34.06716 ,73.87564),new google.maps.LatLng(33.02658 ,72.95589),new google.maps.LatLng(34.46787 ,72.40842),new google.maps.LatLng(33.39407 ,71.96494),new google.maps.LatLng(34.19176 ,74.01623),new google.maps.LatLng(33.00028 ,72.59264),new google.maps.LatLng(32.72321 ,72.80182),new google.maps.LatLng(33.52403 ,72.43582),new google.maps.LatLng(33.17089 ,72.19332),new google.maps.LatLng(33.22191 ,73.39869),new google.maps.LatLng(33.28018 ,72.58792),new google.maps.LatLng(34.13207 ,72.10655),new google.maps.LatLng(34.71161 ,73.46805),new google.maps.LatLng(33.28013 ,72.65408),new google.maps.LatLng(34.45392 ,73.49809),new google.maps.LatLng(33.34898 ,74.08091),new google.maps.LatLng(33.23063 ,73.22711),new google.maps.LatLng(34.19341 ,73.45700),new google.maps.LatLng(33.43086 ,72.39870),new google.maps.LatLng(34.35393 ,73.16365),new google.maps.LatLng(33.94360 ,73.94985),new google.maps.LatLng(34.22306 ,73.24165),new google.maps.LatLng(34.36813 ,73.61388),new google.maps.LatLng(33.35062 ,73.91155),new google.maps.LatLng(33.95748 ,73.63051),new google.maps.LatLng(34.06872 ,72.17787),new google.maps.LatLng(33.74580 ,72.48061),new google.maps.LatLng(32.79930 ,73.41500),new google.maps.LatLng(34.06568 ,73.89966),new google.maps.LatLng(33.20484 ,72.32038),new google.maps.LatLng(34.27742 ,72.36337),new google.maps.LatLng(34.34897 ,73.14867),new google.maps.LatLng(33.36483 ,71.99565),new google.maps.LatLng(33.05001 ,72.23711),new google.maps.LatLng(33.45383 ,72.26461),new google.maps.LatLng(33.74935 ,73.61293),new google.maps.LatLng(33.50743 ,73.53275),new google.maps.LatLng(34.00747 ,73.93437),new google.maps.LatLng(33.19414 ,72.51926),new google.maps.LatLng(33.80530 ,71.94916),new google.maps.LatLng(33.42628 ,73.12113),new google.maps.LatLng(33.84049 ,72.82600),new google.maps.LatLng(32.76939 ,72.59519),new google.maps.LatLng(33.89383 ,72.87292),new google.maps.LatLng(33.74828 ,72.69400),new google.maps.LatLng(34.43941 ,72.55473),new google.maps.LatLng(34.53200 ,73.75888),new google.maps.LatLng(34.55417 ,73.60359),new google.maps.LatLng(32.92204 ,73.73010),new google.maps.LatLng(33.66254 ,72.25731),new google.maps.LatLng(33.40682 ,73.43199),new google.maps.LatLng(33.84014 ,72.10965),new google.maps.LatLng(34.13011 ,72.78805),new google.maps.LatLng(34.61124 ,72.59004),new google.maps.LatLng(33.39109 ,72.87633),new google.maps.LatLng(33.83123 ,72.82585),new google.maps.LatLng(33.88850 ,72.12436),new google.maps.LatLng(32.71140 ,72.57647),new google.maps.LatLng(34.64417 ,73.44140),new google.maps.LatLng(33.92721 ,73.08695),new google.maps.LatLng(32.73875 ,73.00943),new google.maps.LatLng(32.86745 ,72.75026),new google.maps.LatLng(33.44575 ,72.33763),new google.maps.LatLng(33.04882 ,73.20811),new google.maps.LatLng(33.86101 ,74.03722),new google.maps.LatLng(34.59365 ,72.56047),new google.maps.LatLng(33.19172 ,73.86774),new google.maps.LatLng(33.20469 ,72.95649),new google.maps.LatLng(32.69908 ,73.50298),new google.maps.LatLng(34.40319 ,72.54900),new google.maps.LatLng(32.69919 ,72.73090),new google.maps.LatLng(32.76186 ,72.89949),new google.maps.LatLng(34.22999 ,72.87389),new google.maps.LatLng(34.03767 ,72.95639),new google.maps.LatLng(32.89577 ,72.43599),new google.maps.LatLng(34.50524 ,73.24088),new google.maps.LatLng(33.12056 ,72.65045),new google.maps.LatLng(33.57372 ,73.75674),new google.maps.LatLng(33.12630 ,72.64620),new google.maps.LatLng(32.99677 ,73.08112),new google.maps.LatLng(32.99690 ,72.62035),new google.maps.LatLng(34.46793 ,73.62946),new google.maps.LatLng(33.02033 ,72.70411),new google.maps.LatLng(33.84207 ,73.30508),new google.maps.LatLng(32.84393 ,73.70919),new google.maps.LatLng(33.33095 ,73.23952),new google.maps.LatLng(33.79554 ,72.33297),new google.maps.LatLng(32.94123 ,73.25552),new google.maps.LatLng(33.21724 ,72.24840),new google.maps.LatLng(33.94205 ,72.62321),new google.maps.LatLng(33.51024 ,72.23590),new google.maps.LatLng(32.57319 ,72.92880),new google.maps.LatLng(33.52702 ,73.99770),new google.maps.LatLng(33.38308 ,72.87128),new google.maps.LatLng(33.02502 ,72.61629),new google.maps.LatLng(34.06932 ,72.61077),new google.maps.LatLng(34.17705 ,73.97838),new google.maps.LatLng(33.47159 ,72.76243),new google.maps.LatLng(34.22773 ,73.92345),new google.maps.LatLng(34.77175 ,73.08459),new google.maps.LatLng(33.90277 ,73.56038),new google.maps.LatLng(32.93815 ,73.11562),new google.maps.LatLng(33.27464 ,73.72313),new google.maps.LatLng(32.73828 ,72.44620),new google.maps.LatLng(33.26288 ,73.96678),new google.maps.LatLng(33.17327 ,72.40800),new google.maps.LatLng(33.53412 ,73.64623),new google.maps.LatLng(33.21315 ,73.73590),new google.maps.LatLng(34.48615 ,73.11496),new google.maps.LatLng(33.62063 ,74.11970),new google.maps.LatLng(34.31148 ,72.34281),new google.maps.LatLng(34.37324 ,73.76039),new google.maps.LatLng(33.26857 ,73.15061),new google.maps.LatLng(33.95967 ,72.35098),new google.maps.LatLng(33.34966 ,72.44745),new google.maps.LatLng(32.79627 ,72.66743),new google.maps.LatLng(33.40899 ,73.45772),new google.maps.LatLng(33.50373 ,72.95150),new google.maps.LatLng(33.79233 ,73.63804),new google.maps.LatLng(33.84695 ,72.23540),new google.maps.LatLng(32.70685 ,73.37070),new google.maps.LatLng(33.57198 ,73.08414),new google.maps.LatLng(33.13825 ,72.24170),new google.maps.LatLng(32.83404 ,72.94455),new google.maps.LatLng(32.72172 ,73.29035),new google.maps.LatLng(34.14041 ,72.68621),new google.maps.LatLng(33.28843 ,72.22715),new google.maps.LatLng(33.08049 ,73.25528),new google.maps.LatLng(32.66167 ,73.22675),new google.maps.LatLng(33.81065 ,73.83283),new google.maps.LatLng(33.77225 ,72.80185),new google.maps.LatLng(33.98256 ,72.31388),new google.maps.LatLng(33.12616 ,72.29838),new google.maps.LatLng(32.86716 ,73.35746),new google.maps.LatLng(34.18655 ,73.96814),new google.maps.LatLng(32.99076 ,73.05175),new google.maps.LatLng(34.07218 ,73.51679),new google.maps.LatLng(32.86817 ,72.70856),new google.maps.LatLng(33.88452 ,73.70218),new google.maps.LatLng(33.04001 ,72.51088),new google.maps.LatLng(33.51552 ,73.15538),new google.maps.LatLng(34.54569 ,73.25036),new google.maps.LatLng(34.15378 ,72.56001),new google.maps.LatLng(31.56137 ,73.17662),new google.maps.LatLng(31.22675 ,73.47368),new google.maps.LatLng(30.58203 ,74.83554),new google.maps.LatLng(31.61395 ,73.35358),new google.maps.LatLng(30.82315 ,74.94001),new google.maps.LatLng(30.35346 ,74.57443),new google.maps.LatLng(31.67366 ,74.03547),new google.maps.LatLng(31.67313 ,75.33222),new google.maps.LatLng(30.86743 ,73.50442),new google.maps.LatLng(32.59188 ,74.55758),new google.maps.LatLng(31.57792 ,73.52431),new google.maps.LatLng(30.93994 ,73.33622),new google.maps.LatLng(31.28024 ,75.10452),new google.maps.LatLng(31.98613 ,74.30611),new google.maps.LatLng(31.94100 ,75.09103),new google.maps.LatLng(30.79264 ,75.16059),new google.maps.LatLng(31.61528 ,75.51115),new google.maps.LatLng(30.86420 ,75.28258),new google.maps.LatLng(32.54298 ,74.03827),new google.maps.LatLng(32.04420 ,73.82831),new google.maps.LatLng(32.02556 ,74.84144),new google.maps.LatLng(31.21774 ,74.66927),new google.maps.LatLng(30.88680 ,75.06238),new google.maps.LatLng(31.34523 ,74.40864),new google.maps.LatLng(31.70751 ,73.37389),new google.maps.LatLng(30.59393 ,75.14665),new google.maps.LatLng(32.27529 ,74.95097),new google.maps.LatLng(30.85189 ,74.86197),new google.maps.LatLng(31.52114 ,73.93976),new google.maps.LatLng(31.39476 ,73.93675),new google.maps.LatLng(32.15869 ,73.44774),new google.maps.LatLng(31.63395 ,73.55747),new google.maps.LatLng(31.73770 ,75.50560),new google.maps.LatLng(32.33815 ,74.59993),new google.maps.LatLng(32.08692 ,74.98275),new google.maps.LatLng(31.13707 ,73.74533),new google.maps.LatLng(32.61898 ,74.00241),new google.maps.LatLng(31.69978 ,75.20438),new google.maps.LatLng(30.91353 ,74.18182),new google.maps.LatLng(30.93095 ,74.24472),new google.maps.LatLng(31.89228 ,73.41092),new google.maps.LatLng(31.92693 ,74.10003),new google.maps.LatLng(31.69849 ,74.42497),new google.maps.LatLng(30.86871 ,74.31313),new google.maps.LatLng(30.31569 ,74.20475),new google.maps.LatLng(30.88077 ,75.17371),new google.maps.LatLng(31.27907 ,73.43565),new google.maps.LatLng(31.37352 ,73.63745),new google.maps.LatLng(31.91871 ,74.95343),new google.maps.LatLng(30.99614 ,73.37353),new google.maps.LatLng(32.54129 ,74.77106),new google.maps.LatLng(30.62333 ,74.68806),new google.maps.LatLng(31.71712 ,73.67660),new google.maps.LatLng(30.60372 ,73.82383),new google.maps.LatLng(30.51235 ,74.03686),new google.maps.LatLng(31.59884 ,74.32690),new google.maps.LatLng(31.68499 ,75.22902),new google.maps.LatLng(31.90572 ,74.16252),new google.maps.LatLng(31.97917 ,73.60321),new google.maps.LatLng(31.67802 ,73.40004),new google.maps.LatLng(30.75884 ,73.66115),new google.maps.LatLng(30.91408 ,75.30898),new google.maps.LatLng(31.15130 ,73.55529),new google.maps.LatLng(31.70791 ,74.54337),new google.maps.LatLng(31.75603 ,74.19446),new google.maps.LatLng(32.55409 ,74.30110),new google.maps.LatLng(31.10622 ,73.86487),new google.maps.LatLng(31.82092 ,74.59345),new google.maps.LatLng(30.31395 ,74.28207),new google.maps.LatLng(31.23095 ,75.37374),new google.maps.LatLng(32.41759 ,74.68173),new google.maps.LatLng(32.20125 ,74.80785),new google.maps.LatLng(31.35317 ,74.32446),new google.maps.LatLng(30.97276 ,75.45410),new google.maps.LatLng(30.98708 ,74.35456),new google.maps.LatLng(32.07692 ,73.88557),new google.maps.LatLng(30.57264 ,74.76450),new google.maps.LatLng(31.22643 ,73.62728),new google.maps.LatLng(31.61103 ,73.97445),new google.maps.LatLng(31.78224 ,74.29351),new google.maps.LatLng(30.65236 ,74.36253),new google.maps.LatLng(32.09988 ,74.04816),new google.maps.LatLng(31.70153 ,75.37864),new google.maps.LatLng(31.71890 ,74.06038),new google.maps.LatLng(31.66118 ,73.39457),new google.maps.LatLng(31.65769 ,74.14964),new google.maps.LatLng(31.59559 ,74.15003),new google.maps.LatLng(30.67140 ,74.23845),new google.maps.LatLng(32.59717 ,74.79151),new google.maps.LatLng(30.96770 ,73.54289),new google.maps.LatLng(32.41636 ,74.92530),new google.maps.LatLng(31.60661 ,73.54261),new google.maps.LatLng(32.01548 ,74.02461),new google.maps.LatLng(31.97424 ,73.69327),new google.maps.LatLng(31.35655 ,74.84625),new google.maps.LatLng(30.69649 ,73.98075),new google.maps.LatLng(32.63765 ,74.76723),new google.maps.LatLng(31.23151 ,74.52695),new google.maps.LatLng(30.55548 ,73.65538),new google.maps.LatLng(30.84768 ,74.42032),new google.maps.LatLng(30.94286 ,74.89911),new google.maps.LatLng(32.06722 ,74.61487),new google.maps.LatLng(31.62382 ,74.81137),new google.maps.LatLng(31.35232 ,75.50478),new google.maps.LatLng(30.57817 ,75.02896),new google.maps.LatLng(31.24321 ,73.50206),new google.maps.LatLng(30.54953 ,74.28518),new google.maps.LatLng(31.04816 ,74.56245),new google.maps.LatLng(32.10211 ,74.64851),new google.maps.LatLng(31.40594 ,74.19519),new google.maps.LatLng(32.53525 ,73.86336),new google.maps.LatLng(30.84518 ,75.08969),new google.maps.LatLng(30.83388 ,74.57852),new google.maps.LatLng(31.67579 ,75.34002),new google.maps.LatLng(31.06850 ,74.53682),new google.maps.LatLng(31.19010 ,74.79291),new google.maps.LatLng(32.37781 ,75.20292),new google.maps.LatLng(30.62488 ,73.91776),new google.maps.LatLng(31.61720 ,74.71737),new google.maps.LatLng(31.11037 ,73.42077),new google.maps.LatLng(30.43653 ,74.54241),new google.maps.LatLng(30.66931 ,73.77003),new google.maps.LatLng(31.73560 ,73.66779),new google.maps.LatLng(31.51042 ,74.32786),new google.maps.LatLng(31.91017 ,73.59130),new google.maps.LatLng(30.39537 ,74.57677),new google.maps.LatLng(30.47177 ,74.29258),new google.maps.LatLng(32.64499 ,74.10597),new google.maps.LatLng(31.27391 ,75.54861),new google.maps.LatLng(31.38836 ,73.87419),new google.maps.LatLng(31.98827 ,74.03120),new google.maps.LatLng(32.25712 ,75.17137),new google.maps.LatLng(31.39065 ,73.67735),new google.maps.LatLng(31.87446 ,73.41512),new google.maps.LatLng(31.56162 ,74.53063),new google.maps.LatLng(31.22756 ,73.82489),new google.maps.LatLng(31.82278 ,74.46945),new google.maps.LatLng(31.84479 ,74.82134),new google.maps.LatLng(30.79781 ,73.72766),new google.maps.LatLng(32.54882 ,73.93410),new google.maps.LatLng(31.15065 ,73.52516),new google.maps.LatLng(31.63994 ,73.90498),new google.maps.LatLng(32.43386 ,74.17860),new google.maps.LatLng(32.13297 ,74.02871),new google.maps.LatLng(31.43492 ,74.91223),new google.maps.LatLng(32.33407 ,73.64339),new google.maps.LatLng(31.50572 ,75.47758),new google.maps.LatLng(31.05574 ,73.24606),new google.maps.LatLng(31.77959 ,74.67374),new google.maps.LatLng(31.53690 ,75.42282),new google.maps.LatLng(31.47499 ,74.52016),new google.maps.LatLng(32.67583 ,74.36644),new google.maps.LatLng(30.74310 ,75.04687),new google.maps.LatLng(31.29932 ,74.93868),new google.maps.LatLng(30.84911 ,74.92483),new google.maps.LatLng(31.70404 ,73.33767),new google.maps.LatLng(31.78876 ,73.22747),new google.maps.LatLng(31.44118 ,73.43002),new google.maps.LatLng(32.17261 ,73.67934),new google.maps.LatLng(31.23692 ,74.80338),new google.maps.LatLng(32.17943 ,74.11664),new google.maps.LatLng(30.94871 ,74.70084),new google.maps.LatLng(31.43336 ,73.40001),new google.maps.LatLng(30.33509 ,74.55842),new google.maps.LatLng(31.28822 ,75.51010),new google.maps.LatLng(31.73328 ,73.77149),new google.maps.LatLng(31.77335 ,73.62583),new google.maps.LatLng(31.11201 ,74.39907),new google.maps.LatLng(31.26947 ,74.76585),new google.maps.LatLng(30.95798 ,73.50857),new google.maps.LatLng(31.09431 ,74.53357),new google.maps.LatLng(31.20475 ,75.30409),new google.maps.LatLng(31.49585 ,75.52983),new google.maps.LatLng(31.68831 ,73.54852),new google.maps.LatLng(31.33735 ,73.31795),new google.maps.LatLng(31.51960 ,73.49701),new google.maps.LatLng(30.57593 ,74.01803),new google.maps.LatLng(31.57165 ,73.63524),new google.maps.LatLng(31.13894 ,75.24460),new google.maps.LatLng(31.75140 ,74.18485),new google.maps.LatLng(30.68902 ,74.91625),new google.maps.LatLng(31.51010 ,75.50211),new google.maps.LatLng(31.36552 ,75.16721),new google.maps.LatLng(32.08500 ,74.64530),new google.maps.LatLng(31.79083 ,75.01070),new google.maps.LatLng(31.54729 ,75.20212),new google.maps.LatLng(32.05790 ,73.77486),new google.maps.LatLng(31.12573 ,74.49220),new google.maps.LatLng(31.36508 ,73.78124),new google.maps.LatLng(31.80803 ,74.61421),new google.maps.LatLng(31.00382 ,74.97543),new google.maps.LatLng(30.70028 ,75.17245),new google.maps.LatLng(30.97751 ,73.80712),new google.maps.LatLng(30.82918 ,75.06390),new google.maps.LatLng(32.32606 ,73.69916),new google.maps.LatLng(32.57293 ,74.02589),new google.maps.LatLng(30.40069 ,74.82534),new google.maps.LatLng(30.59573 ,74.92490),new google.maps.LatLng(32.05010 ,74.73830),new google.maps.LatLng(31.72561 ,73.83524),new google.maps.LatLng(31.33289 ,75.50245),new google.maps.LatLng(31.60779 ,74.47353),new google.maps.LatLng(32.09927 ,74.28430),new google.maps.LatLng(31.35408 ,75.06731),new google.maps.LatLng(32.44468 ,73.71666),new google.maps.LatLng(30.78554 ,75.33164),new google.maps.LatLng(32.24356 ,73.60488),new google.maps.LatLng(31.72360 ,73.56575),new google.maps.LatLng(30.48112 ,74.45973),new google.maps.LatLng(31.07149 ,73.55794),new google.maps.LatLng(31.75386 ,75.36676),new google.maps.LatLng(31.03318 ,74.70436),new google.maps.LatLng(31.65090 ,73.82042),new google.maps.LatLng(30.44376 ,74.26363),new google.maps.LatLng(31.12028 ,73.43304),new google.maps.LatLng(31.11862 ,73.29337),new google.maps.LatLng(31.91937 ,75.23539),new google.maps.LatLng(31.40462 ,74.64734),new google.maps.LatLng(30.84909 ,74.97058),new google.maps.LatLng(32.50513 ,73.90926),new google.maps.LatLng(32.65634 ,74.59486),new google.maps.LatLng(32.36679 ,74.44768),new google.maps.LatLng(31.23586 ,75.23563),new google.maps.LatLng(32.20650 ,74.72762),new google.maps.LatLng(31.23343 ,74.43672),new google.maps.LatLng(31.03884 ,75.41950),new google.maps.LatLng(31.84862 ,74.45337),new google.maps.LatLng(32.22602 ,73.53034),new google.maps.LatLng(31.79188 ,74.70702),new google.maps.LatLng(31.23897 ,74.44727),new google.maps.LatLng(32.04230 ,74.72570),new google.maps.LatLng(30.69831 ,74.96267),new google.maps.LatLng(31.64453 ,73.60242),new google.maps.LatLng(30.42175 ,74.45449),new google.maps.LatLng(32.51185 ,73.79539),new google.maps.LatLng(30.78650 ,74.83099),new google.maps.LatLng(31.52095 ,73.21388),new google.maps.LatLng(31.59489 ,75.25012),new google.maps.LatLng(31.65864 ,73.32796),new google.maps.LatLng(32.27701 ,74.18499),new google.maps.LatLng(31.31079 ,74.03265),new google.maps.LatLng(32.41596 ,74.76958),new google.maps.LatLng(30.90799 ,75.25406),new google.maps.LatLng(31.98221 ,75.01604),new google.maps.LatLng(32.08681 ,74.05454),new google.maps.LatLng(32.02079 ,73.50973),new google.maps.LatLng(31.47768 ,73.33707),new google.maps.LatLng(30.95263 ,74.81491),new google.maps.LatLng(30.64085 ,74.41937),new google.maps.LatLng(31.32139 ,74.27168),new google.maps.LatLng(30.48029 ,74.24480),new google.maps.LatLng(30.93419 ,73.77327),new google.maps.LatLng(32.41406 ,74.05780),new google.maps.LatLng(31.00701 ,74.41995),new google.maps.LatLng(31.37213 ,74.12746),new google.maps.LatLng(31.30311 ,75.47148),new google.maps.LatLng(31.63074 ,75.24129),new google.maps.LatLng(31.33018 ,74.87289),new google.maps.LatLng(31.72119 ,75.24809),new google.maps.LatLng(30.64199 ,74.34122),new google.maps.LatLng(30.34316 ,74.44450),new google.maps.LatLng(30.44560 ,74.48732),new google.maps.LatLng(31.93668 ,73.52762),new google.maps.LatLng(32.51459 ,74.41109),new google.maps.LatLng(31.93908 ,74.09559),new google.maps.LatLng(31.80733 ,75.05347),new google.maps.LatLng(30.96520 ,75.04280),new google.maps.LatLng(32.19743 ,74.29151),new google.maps.LatLng(32.60862 ,74.49532),new google.maps.LatLng(31.67667 ,74.01299),new google.maps.LatLng(31.31067 ,73.25318),new google.maps.LatLng(31.99655 ,74.89628),new google.maps.LatLng(30.98009 ,74.63797),new google.maps.LatLng(31.02030 ,74.61063),new google.maps.LatLng(32.13283 ,74.41998),new google.maps.LatLng(31.27244 ,75.18464),new google.maps.LatLng(31.97644 ,73.73209),new google.maps.LatLng(30.90368 ,75.03742),new google.maps.LatLng(31.96210 ,74.50737),new google.maps.LatLng(32.12014 ,74.63975),new google.maps.LatLng(32.25255 ,73.73888),new google.maps.LatLng(32.44990 ,74.38858),new google.maps.LatLng(32.58336 ,74.34365),new google.maps.LatLng(31.50861 ,75.28405),new google.maps.LatLng(32.51428 ,74.25042),new google.maps.LatLng(31.89520 ,74.43386),new google.maps.LatLng(31.02296 ,73.71801),new google.maps.LatLng(31.79964 ,75.10032),new google.maps.LatLng(30.97755 ,73.85227),new google.maps.LatLng(31.22736 ,75.02419),new google.maps.LatLng(31.01977 ,74.43804),new google.maps.LatLng(32.15885 ,73.57751),new google.maps.LatLng(31.60603 ,75.56119),new google.maps.LatLng(31.66610 ,74.88128),new google.maps.LatLng(30.87222 ,73.37332),new google.maps.LatLng(31.21296 ,73.61511),new google.maps.LatLng(30.34660 ,74.56393),new google.maps.LatLng(32.30192 ,73.85024),new google.maps.LatLng(30.51307 ,74.47090),new google.maps.LatLng(31.71074 ,74.19782),new google.maps.LatLng(31.89993 ,74.72667),new google.maps.LatLng(30.77843 ,74.92720),new google.maps.LatLng(31.25163 ,74.67492),new google.maps.LatLng(30.60293 ,74.89321),new google.maps.LatLng(31.76431 ,73.55792),new google.maps.LatLng(31.98737 ,75.31843),new google.maps.LatLng(32.19793 ,73.79668),new google.maps.LatLng(31.94697 ,73.58010),new google.maps.LatLng(32.59842 ,73.90420),new google.maps.LatLng(32.30514 ,73.66720),new google.maps.LatLng(30.45106 ,73.84821),new google.maps.LatLng(31.04988 ,74.95107),new google.maps.LatLng(30.59491 ,73.95340),new google.maps.LatLng(30.92666 ,73.31289),new google.maps.LatLng(31.72671 ,74.45206),new google.maps.LatLng(31.30592 ,73.81142),new google.maps.LatLng(30.96645 ,73.86305),new google.maps.LatLng(30.96007 ,75.12048),new google.maps.LatLng(31.66912 ,74.56229),new google.maps.LatLng(32.33362 ,73.95121),new google.maps.LatLng(31.49420 ,74.69810),new google.maps.LatLng(32.23773 ,74.04880),new google.maps.LatLng(31.19405 ,74.79807),new google.maps.LatLng(30.51496 ,73.79933),new google.maps.LatLng(30.52650 ,73.89958),new google.maps.LatLng(31.62668 ,74.91061),new google.maps.LatLng(30.38049 ,74.54300),new google.maps.LatLng(30.91026 ,74.06521),new google.maps.LatLng(32.40574 ,74.69546),new google.maps.LatLng(31.18999 ,74.17273),new google.maps.LatLng(30.42502 ,74.66296),new google.maps.LatLng(31.25954 ,73.24194),new google.maps.LatLng(31.88182 ,75.11402),new google.maps.LatLng(30.69765 ,73.75213),new google.maps.LatLng(30.59559 ,74.51178),new google.maps.LatLng(31.28530 ,73.20447),new google.maps.LatLng(30.72028 ,74.25585),new google.maps.LatLng(32.01294 ,74.41417),new google.maps.LatLng(31.43729 ,74.56083),new google.maps.LatLng(30.78788 ,75.18146),new google.maps.LatLng(30.54981 ,74.61703),new google.maps.LatLng(30.56024 ,73.84013),new google.maps.LatLng(31.06507 ,74.74719),new google.maps.LatLng(31.58796 ,74.57119),new google.maps.LatLng(32.00047 ,75.20413),new google.maps.LatLng(31.07273 ,73.90279),new google.maps.LatLng(30.65502 ,74.97674),new google.maps.LatLng(31.60808 ,74.61215),new google.maps.LatLng(30.93956 ,73.30171),new google.maps.LatLng(30.77828 ,74.48975),new google.maps.LatLng(31.40245 ,73.45461),new google.maps.LatLng(30.76903 ,75.26532),new google.maps.LatLng(30.57735 ,74.74299),new google.maps.LatLng(31.23579 ,73.85961),new google.maps.LatLng(32.47024 ,74.79517),new google.maps.LatLng(30.92313 ,74.30104),new google.maps.LatLng(31.00086 ,74.23399),new google.maps.LatLng(30.84412 ,73.48058),new google.maps.LatLng(31.84236 ,74.34303),new google.maps.LatLng(32.16080 ,73.65410),new google.maps.LatLng(30.54954 ,74.90737),new google.maps.LatLng(31.26185 ,74.71121),new google.maps.LatLng(32.08991 ,73.69814),new google.maps.LatLng(31.16739 ,74.89510),new google.maps.LatLng(31.90049 ,74.83413),new google.maps.LatLng(31.42400 ,74.37367),new google.maps.LatLng(31.04812 ,75.02364),new google.maps.LatLng(31.78615 ,73.29799),new google.maps.LatLng(31.69417 ,74.84470),new google.maps.LatLng(32.42774 ,74.03099),new google.maps.LatLng(32.37545 ,74.78030),new google.maps.LatLng(30.88708 ,73.78610),new google.maps.LatLng(31.62590 ,73.17191),new google.maps.LatLng(31.51939 ,75.06728),new google.maps.LatLng(31.69801 ,74.27269),new google.maps.LatLng(32.07783 ,74.10988),new google.maps.LatLng(31.18566 ,74.31269),new google.maps.LatLng(31.68045 ,75.38584),new google.maps.LatLng(31.51582 ,74.95950),new google.maps.LatLng(31.26492 ,73.48144),new google.maps.LatLng(31.60479 ,73.47021),new google.maps.LatLng(31.02218 ,74.39527),new google.maps.LatLng(31.11139 ,74.92681),new google.maps.LatLng(32.09114 ,73.38653),new google.maps.LatLng(31.40504 ,73.32780),new google.maps.LatLng(32.27267 ,73.88097),new google.maps.LatLng(32.18674 ,74.86231),new google.maps.LatLng(31.64347 ,74.90548),new google.maps.LatLng(32.44084 ,73.69575),new google.maps.LatLng(32.22087 ,74.29423),new google.maps.LatLng(31.84217 ,73.87737),new google.maps.LatLng(32.47468 ,74.73976),new google.maps.LatLng(31.10703 ,74.42224),new google.maps.LatLng(31.42563 ,73.19173),new google.maps.LatLng(31.66455 ,74.31789),new google.maps.LatLng(30.83962 ,75.20745),new google.maps.LatLng(31.79193 ,74.12458),new google.maps.LatLng(32.27028 ,74.35975),new google.maps.LatLng(31.50421 ,73.35070),new google.maps.LatLng(32.16456 ,74.38404),new google.maps.LatLng(31.71636 ,73.38278),new google.maps.LatLng(31.62897 ,74.77939),new google.maps.LatLng(31.96153 ,73.55937),new google.maps.LatLng(32.30320 ,74.08088),new google.maps.LatLng(30.43064 ,74.04594),new google.maps.LatLng(30.75079 ,74.45471),new google.maps.LatLng(31.01391 ,73.67683),new google.maps.LatLng(31.04027 ,73.74218),new google.maps.LatLng(30.93571 ,73.31773),new google.maps.LatLng(31.94652 ,74.77417),new google.maps.LatLng(31.20323 ,73.79699),new google.maps.LatLng(31.78572 ,74.81636),new google.maps.LatLng(32.54754 ,73.79638),new google.maps.LatLng(30.73473 ,74.81268),new google.maps.LatLng(30.51794 ,73.92488),new google.maps.LatLng(30.84609 ,75.13959),new google.maps.LatLng(31.54104 ,74.00310),new google.maps.LatLng(32.10142 ,74.61354),new google.maps.LatLng(30.82791 ,74.72880),new google.maps.LatLng(31.78351 ,74.48999),new google.maps.LatLng(31.25449 ,74.42992),new google.maps.LatLng(32.58715 ,74.33529),new google.maps.LatLng(32.42606 ,74.33996),new google.maps.LatLng(30.32060 ,74.48264),new google.maps.LatLng(31.20580 ,73.43817),new google.maps.LatLng(32.04876 ,74.84996),new google.maps.LatLng(30.64845 ,74.50856),new google.maps.LatLng(32.42567 ,74.90559),new google.maps.LatLng(32.52261 ,74.87093),new google.maps.LatLng(31.66348 ,74.32621),new google.maps.LatLng(31.28641 ,73.55047),new google.maps.LatLng(30.71747 ,74.79070),new google.maps.LatLng(31.28222 ,74.58814),new google.maps.LatLng(30.35088 ,74.06980),new google.maps.LatLng(31.92256 ,73.53262),new google.maps.LatLng(31.94442 ,75.16453),new google.maps.LatLng(32.19128 ,75.09446),new google.maps.LatLng(32.36940 ,73.61739),new google.maps.LatLng(31.75557 ,73.80135),new google.maps.LatLng(32.59280 ,74.33176),new google.maps.LatLng(30.45364 ,74.34461),new google.maps.LatLng(32.46550 ,74.62094),new google.maps.LatLng(31.89948 ,74.73237),new google.maps.LatLng(32.48570 ,74.42341),new google.maps.LatLng(32.47093 ,74.46946),new google.maps.LatLng(32.13156 ,73.33866),new google.maps.LatLng(30.82633 ,73.71964),new google.maps.LatLng(30.65858 ,73.59923),new google.maps.LatLng(32.30055 ,73.60156),new google.maps.LatLng(31.07043 ,73.33203),new google.maps.LatLng(31.45581 ,75.30497),new google.maps.LatLng(31.00007 ,75.40841),new google.maps.LatLng(31.04548 ,73.34937),new google.maps.LatLng(32.07537 ,75.23291),new google.maps.LatLng(32.00144 ,74.42549),new google.maps.LatLng(31.09711 ,73.80329),new google.maps.LatLng(31.98114 ,73.85268),new google.maps.LatLng(32.43715 ,74.79936),new google.maps.LatLng(31.78416 ,73.67838),new google.maps.LatLng(30.68824 ,74.79685),new google.maps.LatLng(32.47535 ,74.78934),new google.maps.LatLng(31.13878 ,74.21381),new google.maps.LatLng(32.71064 ,74.35954),new google.maps.LatLng(32.33025 ,75.15885),new google.maps.LatLng(30.55914 ,73.84699),new google.maps.LatLng(31.76537 ,74.01456),new google.maps.LatLng(30.81296 ,74.25816),new google.maps.LatLng(31.87625 ,74.14900),new google.maps.LatLng(31.82461 ,73.92486),new google.maps.LatLng(30.68370 ,73.70896),new google.maps.LatLng(30.96455 ,74.85131),new google.maps.LatLng(31.33401 ,73.86295),new google.maps.LatLng(32.31464 ,74.38974),new google.maps.LatLng(31.04528 ,73.89092),new google.maps.LatLng(31.53470 ,74.37702),new google.maps.LatLng(31.66927 ,73.62140),new google.maps.LatLng(31.35495 ,73.42842),new google.maps.LatLng(30.59205 ,74.17829),new google.maps.LatLng(32.31633 ,74.99897),new google.maps.LatLng(30.57489 ,73.83351),new google.maps.LatLng(31.00537 ,75.29937),new google.maps.LatLng(31.31865 ,74.94407),new google.maps.LatLng(30.66277 ,74.01074),new google.maps.LatLng(32.03388 ,74.38710),new google.maps.LatLng(31.41695 ,74.45931),new google.maps.LatLng(31.78954 ,73.92018),new google.maps.LatLng(31.08610 ,74.83969),new google.maps.LatLng(31.42620 ,75.51013),new google.maps.LatLng(32.24558 ,73.95180),new google.maps.LatLng(32.34634 ,73.66616),new google.maps.LatLng(32.34504 ,74.24236),new google.maps.LatLng(31.62674 ,73.85970),new google.maps.LatLng(31.35617 ,74.15728),new google.maps.LatLng(30.53876 ,74.77712),new google.maps.LatLng(31.03616 ,73.91900),new google.maps.LatLng(31.08551 ,74.89640),new google.maps.LatLng(31.54769 ,74.59896),new google.maps.LatLng(31.23385 ,73.33676),new google.maps.LatLng(31.51076 ,74.46995),new google.maps.LatLng(31.71439 ,75.47212),new google.maps.LatLng(32.37433 ,73.77648),new google.maps.LatLng(32.46902 ,73.79321),new google.maps.LatLng(32.38978 ,74.16336),new google.maps.LatLng(31.28983 ,75.02687),new google.maps.LatLng(30.89791 ,74.47854),new google.maps.LatLng(31.08994 ,74.58569),new google.maps.LatLng(31.67390 ,75.55845),new google.maps.LatLng(31.36978 ,75.15946),new google.maps.LatLng(31.77305 ,73.50412),new google.maps.LatLng(32.48773 ,74.13456),new google.maps.LatLng(32.02877 ,73.34600),new google.maps.LatLng(31.67209 ,75.17064),new google.maps.LatLng(31.22398 ,73.52665),new google.maps.LatLng(31.76115 ,74.04831),new google.maps.LatLng(31.95286 ,73.48064),new google.maps.LatLng(32.55090 ,73.99415),new google.maps.LatLng(31.34363 ,74.69122),new google.maps.LatLng(31.50226 ,73.22910),new google.maps.LatLng(31.39443 ,74.62202),new google.maps.LatLng(32.42044 ,74.36620),new google.maps.LatLng(31.57272 ,75.14428),new google.maps.LatLng(31.70139 ,74.23303),new google.maps.LatLng(31.43676 ,73.64850),new google.maps.LatLng(30.85371 ,74.75804),new google.maps.LatLng(31.77349 ,75.06769),new google.maps.LatLng(32.13416 ,74.88936),new google.maps.LatLng(32.34563 ,73.83141),new google.maps.LatLng(31.78133 ,75.06385),new google.maps.LatLng(31.62119 ,73.35585),new google.maps.LatLng(30.72894 ,73.75737),new google.maps.LatLng(31.54823 ,73.72253),new google.maps.LatLng(31.40233 ,73.87733),new google.maps.LatLng(31.43758 ,74.11999),new google.maps.LatLng(31.78270 ,75.44896),new google.maps.LatLng(31.15580 ,74.90129),new google.maps.LatLng(31.11372 ,75.00103),new google.maps.LatLng(31.12715 ,73.54783),new google.maps.LatLng(30.43718 ,74.22377),new google.maps.LatLng(32.04891 ,74.63244),new google.maps.LatLng(30.45513 ,74.68680),new google.maps.LatLng(31.70665 ,73.40461),new google.maps.LatLng(30.50471 ,74.02451),new google.maps.LatLng(32.23636 ,74.17126),new google.maps.LatLng(31.26747 ,75.06146),new google.maps.LatLng(32.64097 ,74.06388),new google.maps.LatLng(32.41353 ,73.63088),new google.maps.LatLng(32.15846 ,74.68397),new google.maps.LatLng(31.57156 ,74.21281),new google.maps.LatLng(31.57052 ,75.39439),new google.maps.LatLng(32.11207 ,73.85168),new google.maps.LatLng(31.66576 ,75.23263),new google.maps.LatLng(31.27537 ,75.42649),new google.maps.LatLng(32.22031 ,73.89173),new google.maps.LatLng(31.05741 ,75.19370),new google.maps.LatLng(30.95562 ,74.12677),new google.maps.LatLng(32.25054 ,73.41848),new google.maps.LatLng(31.38837 ,74.01441),new google.maps.LatLng(31.24850 ,74.81902),new google.maps.LatLng(31.00869 ,74.36358),new google.maps.LatLng(31.10833 ,73.82896),new google.maps.LatLng(31.77923 ,73.98901),new google.maps.LatLng(31.69942 ,73.49872),new google.maps.LatLng(31.25349 ,74.92206),new google.maps.LatLng(31.85426 ,74.65428),new google.maps.LatLng(30.44727 ,74.18671),new google.maps.LatLng(31.73853 ,74.95365),new google.maps.LatLng(30.41585 ,74.12753),new google.maps.LatLng(31.51759 ,74.72651),new google.maps.LatLng(31.17551 ,73.67795),new google.maps.LatLng(31.55384 ,75.09142),new google.maps.LatLng(32.49636 ,74.69609),new google.maps.LatLng(31.42766 ,74.46363),new google.maps.LatLng(31.11598 ,73.35865),new google.maps.LatLng(31.79190 ,74.97490),new google.maps.LatLng(31.21459 ,73.47990),new google.maps.LatLng(31.14278 ,75.12463),new google.maps.LatLng(30.98999 ,75.38971),new google.maps.LatLng(32.11371 ,74.21924),new google.maps.LatLng(32.10634 ,75.39548),new google.maps.LatLng(31.88725 ,75.07215),new google.maps.LatLng(30.54416 ,74.84556),new google.maps.LatLng(30.72964 ,75.27916),new google.maps.LatLng(32.22217 ,73.60250),new google.maps.LatLng(31.08998 ,73.31972),new google.maps.LatLng(31.95113 ,73.45008),new google.maps.LatLng(31.48889 ,75.45858),new google.maps.LatLng(31.75900 ,73.60682),new google.maps.LatLng(32.37991 ,74.94659),new google.maps.LatLng(30.81556 ,74.72800),new google.maps.LatLng(31.87795 ,75.00725),new google.maps.LatLng(30.92166 ,74.15796),new google.maps.LatLng(31.35600 ,73.43448),new google.maps.LatLng(31.60168 ,75.16181),new google.maps.LatLng(31.79201 ,73.55849),new google.maps.LatLng(31.46651 ,74.15074),new google.maps.LatLng(32.24884 ,73.92846),new google.maps.LatLng(32.42799 ,73.70400),new google.maps.LatLng(30.64970 ,74.55907),new google.maps.LatLng(32.35263 ,73.54337),new google.maps.LatLng(31.35766 ,74.06798),new google.maps.LatLng(31.52324 ,73.37150),new google.maps.LatLng(32.06657 ,75.07339),new google.maps.LatLng(30.90033 ,74.12620),new google.maps.LatLng(31.25564 ,74.73350),new google.maps.LatLng(30.65262 ,73.96618),new google.maps.LatLng(31.22628 ,73.92223),new google.maps.LatLng(32.19941 ,74.97119),new google.maps.LatLng(32.41886 ,74.31084),new google.maps.LatLng(31.54668 ,73.91186),new google.maps.LatLng(31.58270 ,73.20287),new google.maps.LatLng(31.22294 ,73.86920),new google.maps.LatLng(32.08872 ,74.52807),new google.maps.LatLng(30.38868 ,74.57445),new google.maps.LatLng(32.57350 ,74.62560),new google.maps.LatLng(31.71841 ,74.68465),new google.maps.LatLng(30.51486 ,74.75442),new google.maps.LatLng(31.44975 ,73.64544),new google.maps.LatLng(32.00384 ,74.00321),new google.maps.LatLng(31.38841 ,75.07916),new google.maps.LatLng(31.88358 ,75.32182),new google.maps.LatLng(32.21804 ,75.21858),new google.maps.LatLng(31.58223 ,73.88020),new google.maps.LatLng(30.78061 ,73.73603),new google.maps.LatLng(32.56617 ,74.42927),new google.maps.LatLng(31.89793 ,74.01213),new google.maps.LatLng(30.46734 ,74.34126),new google.maps.LatLng(30.73219 ,74.77347),new google.maps.LatLng(31.25285 ,75.12935),new google.maps.LatLng(31.40775 ,73.19583),new google.maps.LatLng(31.53485 ,74.23548),new google.maps.LatLng(31.20253 ,74.77140),new google.maps.LatLng(32.57868 ,74.44310),new google.maps.LatLng(31.67798 ,75.32035),new google.maps.LatLng(30.45838 ,74.05544),new google.maps.LatLng(31.05921 ,74.18491),new google.maps.LatLng(32.24687 ,74.22754),new google.maps.LatLng(31.04504 ,74.86018),new google.maps.LatLng(31.97787 ,74.82233),new google.maps.LatLng(31.92878 ,73.60847),new google.maps.LatLng(30.80501 ,73.78863),new google.maps.LatLng(31.76119 ,75.17088),new google.maps.LatLng(31.46067 ,73.17984),new google.maps.LatLng(30.76925 ,73.40206),new google.maps.LatLng(32.59649 ,74.54334),new google.maps.LatLng(30.71702 ,73.80854),new google.maps.LatLng(30.84451 ,74.47697),new google.maps.LatLng(31.76785 ,75.14392),new google.maps.LatLng(30.35975 ,74.13462),new google.maps.LatLng(32.42533 ,74.49256),new google.maps.LatLng(32.48550 ,74.89149),new google.maps.LatLng(31.07096 ,73.82672),new google.maps.LatLng(31.95064 ,73.81692),new google.maps.LatLng(31.60403 ,74.80048),new google.maps.LatLng(31.31324 ,74.41942),new google.maps.LatLng(32.01827 ,74.59239),new google.maps.LatLng(32.00289 ,75.18999),new google.maps.LatLng(32.30988 ,75.18491),new google.maps.LatLng(31.43401 ,75.29983),new google.maps.LatLng(31.15369 ,74.78784),new google.maps.LatLng(30.87943 ,74.02564),new google.maps.LatLng(32.09362 ,73.35756),new google.maps.LatLng(32.01505 ,74.12112),new google.maps.LatLng(30.64798 ,74.27027),new google.maps.LatLng(30.67973 ,74.34017),new google.maps.LatLng(32.16167 ,74.53211),new google.maps.LatLng(30.93409 ,73.45312),new google.maps.LatLng(31.20391 ,73.68343),new google.maps.LatLng(30.52454 ,74.92029),new google.maps.LatLng(32.07971 ,75.28884),new google.maps.LatLng(31.56208 ,73.97717),new google.maps.LatLng(31.40463 ,75.07513),new google.maps.LatLng(31.21736 ,74.73214),new google.maps.LatLng(30.77371 ,73.86353),new google.maps.LatLng(31.89726 ,75.12019),new google.maps.LatLng(32.16075 ,74.81305),new google.maps.LatLng(30.76440 ,74.52258),new google.maps.LatLng(31.94556 ,73.70860),new google.maps.LatLng(31.32515 ,73.75554),new google.maps.LatLng(31.53617 ,74.88463),new google.maps.LatLng(31.29330 ,74.84237),new google.maps.LatLng(31.17007 ,75.12950),new google.maps.LatLng(32.28191 ,75.07863),new google.maps.LatLng(30.54009 ,74.52885),new google.maps.LatLng(30.73271 ,75.18555),new google.maps.LatLng(31.91248 ,75.03480),new google.maps.LatLng(30.53832 ,73.95116),new google.maps.LatLng(31.31160 ,75.32783),new google.maps.LatLng(32.41488 ,74.46902),new google.maps.LatLng(31.74412 ,74.49205),new google.maps.LatLng(31.49903 ,75.13373),new google.maps.LatLng(31.59278 ,75.35955),new google.maps.LatLng(31.80942 ,75.07241),new google.maps.LatLng(31.42661 ,73.41533),new google.maps.LatLng(30.58645 ,73.99719),new google.maps.LatLng(31.20113 ,73.43914),new google.maps.LatLng(31.33277 ,75.22041),new google.maps.LatLng(31.58147 ,74.63018),new google.maps.LatLng(30.56561 ,75.12696),new google.maps.LatLng(30.48879 ,73.94255),new google.maps.LatLng(31.79194 ,75.24029),new google.maps.LatLng(31.20135 ,74.11599),new google.maps.LatLng(30.36356 ,74.11007),new google.maps.LatLng(32.07153 ,73.50892),new google.maps.LatLng(31.12542 ,74.48903),new google.maps.LatLng(31.31902 ,74.73657),new google.maps.LatLng(30.78581 ,74.40765),new google.maps.LatLng(31.92521 ,75.03394),new google.maps.LatLng(31.92872 ,73.86420),new google.maps.LatLng(31.61089 ,74.88568),new google.maps.LatLng(31.70810 ,73.95017),new google.maps.LatLng(31.39762 ,74.61344),new google.maps.LatLng(31.38013 ,74.11352),new google.maps.LatLng(32.45877 ,73.94584),new google.maps.LatLng(32.12173 ,75.24057),new google.maps.LatLng(30.75510 ,74.53368),new google.maps.LatLng(31.84165 ,73.82682),new google.maps.LatLng(32.16289 ,74.91412),new google.maps.LatLng(31.47618 ,74.07438),new google.maps.LatLng(32.54591 ,74.43269),new google.maps.LatLng(30.51035 ,73.69918),new google.maps.LatLng(32.47801 ,74.99514),new google.maps.LatLng(31.56299 ,75.43845),new google.maps.LatLng(31.76437 ,74.79440),new google.maps.LatLng(32.12183 ,74.26995),new google.maps.LatLng(32.43752 ,74.00140),new google.maps.LatLng(30.57142 ,73.61740),new google.maps.LatLng(31.62546 ,75.13647),new google.maps.LatLng(32.13138 ,74.06914),new google.maps.LatLng(31.82618 ,74.53324),new google.maps.LatLng(31.21740 ,74.25004),new google.maps.LatLng(31.27571 ,73.80756),new google.maps.LatLng(31.70118 ,75.38382),new google.maps.LatLng(31.22792 ,74.21729),new google.maps.LatLng(31.31464 ,75.01448),new google.maps.LatLng(32.16686 ,75.22700),new google.maps.LatLng(31.92681 ,73.27141),new google.maps.LatLng(31.87407 ,73.60480),new google.maps.LatLng(32.43338 ,73.77927),new google.maps.LatLng(32.22858 ,73.75754),new google.maps.LatLng(31.85971 ,75.37369),new google.maps.LatLng(30.82399 ,75.11129),new google.maps.LatLng(31.95637 ,75.39732),new google.maps.LatLng(32.55452 ,74.41329),new google.maps.LatLng(32.61718 ,74.53092),new google.maps.LatLng(31.99879 ,74.09211),new google.maps.LatLng(31.33598 ,73.27335),new google.maps.LatLng(31.37439 ,74.14388),new google.maps.LatLng(30.63796 ,74.45991),new google.maps.LatLng(31.87992 ,74.61789),new google.maps.LatLng(30.46731 ,74.76327),new google.maps.LatLng(30.65212 ,74.30418),new google.maps.LatLng(30.59241 ,74.73356),new google.maps.LatLng(32.24501 ,74.23609),new google.maps.LatLng(32.20281 ,75.31297),new google.maps.LatLng(31.69336 ,74.63563),new google.maps.LatLng(32.03392 ,74.51169),new google.maps.LatLng(31.28452 ,73.48164),new google.maps.LatLng(32.03583 ,74.36291),new google.maps.LatLng(31.89106 ,74.00889),new google.maps.LatLng(30.60969 ,73.83353),new google.maps.LatLng(31.13845 ,74.84845),new google.maps.LatLng(31.92645 ,73.92159),new google.maps.LatLng(31.49140 ,73.44331),new google.maps.LatLng(31.00834 ,74.69894),new google.maps.LatLng(30.96068 ,75.30147),new google.maps.LatLng(32.20475 ,74.63320),new google.maps.LatLng(32.59617 ,74.54942),new google.maps.LatLng(31.97389 ,74.15778),new google.maps.LatLng(30.55015 ,73.64627),new google.maps.LatLng(31.36341 ,73.77952),new google.maps.LatLng(31.49504 ,74.61639),new google.maps.LatLng(31.54091 ,73.47849),new google.maps.LatLng(31.14910 ,74.10589),new google.maps.LatLng(31.53723 ,74.73526),new google.maps.LatLng(30.66396 ,74.89001),new google.maps.LatLng(31.74769 ,74.61436),new google.maps.LatLng(31.70869 ,73.49304),new google.maps.LatLng(31.67728 ,73.41126),new google.maps.LatLng(31.27769 ,74.99782),new google.maps.LatLng(30.91381 ,75.21689),new google.maps.LatLng(31.82725 ,74.39200),new google.maps.LatLng(30.63338 ,74.01592),new google.maps.LatLng(31.68769 ,74.64072),new google.maps.LatLng(30.92141 ,73.48149),new google.maps.LatLng(32.06434 ,75.16065),new google.maps.LatLng(31.18527 ,73.58686),new google.maps.LatLng(32.55815 ,74.94765),new google.maps.LatLng(30.55596 ,74.92734),new google.maps.LatLng(31.53408 ,74.75333),new google.maps.LatLng(31.91691 ,74.74548),new google.maps.LatLng(32.45430 ,74.51264),new google.maps.LatLng(31.20162 ,73.77481),new google.maps.LatLng(32.55765 ,74.11001),new google.maps.LatLng(30.74624 ,74.05882),new google.maps.LatLng(30.34135 ,74.25290),new google.maps.LatLng(32.62426 ,74.58033),new google.maps.LatLng(32.17284 ,74.91290),new google.maps.LatLng(31.86410 ,73.82053),new google.maps.LatLng(31.78642 ,74.92628),new google.maps.LatLng(30.91343 ,74.36989),new google.maps.LatLng(32.27734 ,74.75037),new google.maps.LatLng(31.29927 ,74.08711),new google.maps.LatLng(30.83802 ,75.10301),new google.maps.LatLng(31.93457 ,73.80226),new google.maps.LatLng(30.77168 ,74.48861),new google.maps.LatLng(31.24889 ,75.20417),new google.maps.LatLng(31.20138 ,74.96827),new google.maps.LatLng(31.88618 ,73.39083),new google.maps.LatLng(31.49640 ,73.49934),new google.maps.LatLng(32.11033 ,75.34539),new google.maps.LatLng(32.02924 ,74.75773),new google.maps.LatLng(32.00420 ,74.51294),new google.maps.LatLng(32.53141 ,73.76455),new google.maps.LatLng(31.95156 ,73.77827),new google.maps.LatLng(31.98379 ,75.46857),new google.maps.LatLng(30.57936 ,74.19192),new google.maps.LatLng(32.58541 ,74.01404),new google.maps.LatLng(30.88522 ,73.72425),new google.maps.LatLng(30.84008 ,73.82242),new google.maps.LatLng(31.97444 ,75.14644),new google.maps.LatLng(32.16560 ,74.78727),new google.maps.LatLng(31.78626 ,73.26372),new google.maps.LatLng(32.50460 ,73.71090),new google.maps.LatLng(31.29156 ,73.68188),new google.maps.LatLng(32.26494 ,73.59192),new google.maps.LatLng(31.86840 ,74.98937),new google.maps.LatLng(31.73934 ,73.55502),new google.maps.LatLng(31.66085 ,74.93973),new google.maps.LatLng(31.37092 ,74.78027),new google.maps.LatLng(30.95913 ,75.20845),new google.maps.LatLng(31.48379 ,74.34362),new google.maps.LatLng(30.66697 ,74.82529),new google.maps.LatLng(31.37312 ,73.89452),new google.maps.LatLng(32.32701 ,74.91460),new google.maps.LatLng(31.36999 ,75.16073),new google.maps.LatLng(31.41488 ,73.63179),new google.maps.LatLng(30.81276 ,73.49726),new google.maps.LatLng(30.81259 ,73.89814),new google.maps.LatLng(32.39809 ,74.88295),new google.maps.LatLng(31.82058 ,75.41779),new google.maps.LatLng(31.63114 ,75.49891),new google.maps.LatLng(31.52700 ,75.50955),new google.maps.LatLng(31.30433 ,74.24119),new google.maps.LatLng(31.98927 ,74.70588),new google.maps.LatLng(30.73728 ,74.75178),new google.maps.LatLng(31.15176 ,74.90437),new google.maps.LatLng(31.03994 ,74.00747),new google.maps.LatLng(30.91425 ,75.01913),new google.maps.LatLng(32.52483 ,73.90427),new google.maps.LatLng(31.37014 ,75.28849),new google.maps.LatLng(32.70656 ,74.48603),new google.maps.LatLng(31.78161 ,74.02128),new google.maps.LatLng(30.57720 ,73.73184),new google.maps.LatLng(31.49553 ,74.24267),new google.maps.LatLng(30.39259 ,74.14604),new google.maps.LatLng(31.74275 ,73.94738),new google.maps.LatLng(31.33053 ,74.92474),new google.maps.LatLng(30.57309 ,74.19377),new google.maps.LatLng(31.52429 ,73.62581),new google.maps.LatLng(31.28438 ,74.69848),new google.maps.LatLng(31.40626 ,75.06282),new google.maps.LatLng(30.99670 ,74.29206),new google.maps.LatLng(32.36748 ,73.85098),new google.maps.LatLng(30.74080 ,73.49479),new google.maps.LatLng(31.42109 ,74.36585),new google.maps.LatLng(31.38050 ,73.88064),new google.maps.LatLng(31.82139 ,74.26211),new google.maps.LatLng(31.80041 ,74.36582),new google.maps.LatLng(32.19040 ,74.36401),new google.maps.LatLng(31.24828 ,74.56119),new google.maps.LatLng(31.03799 ,73.96277),new google.maps.LatLng(30.59672 ,74.84398),new google.maps.LatLng(31.10070 ,74.78993),new google.maps.LatLng(31.95213 ,74.18911),new google.maps.LatLng(32.03078 ,74.86652),new google.maps.LatLng(30.48356 ,74.89994),new google.maps.LatLng(31.65433 ,73.22226),new google.maps.LatLng(30.79124 ,73.86023),new google.maps.LatLng(30.36031 ,73.98127),new google.maps.LatLng(31.56604 ,75.05244),new google.maps.LatLng(32.60518 ,74.45459),new google.maps.LatLng(31.55431 ,73.26559),new google.maps.LatLng(32.36696 ,74.88599),new google.maps.LatLng(32.39076 ,74.40989),new google.maps.LatLng(31.43636 ,74.03320),new google.maps.LatLng(32.17686 ,73.73924),new google.maps.LatLng(30.87548 ,75.08610),new google.maps.LatLng(31.42045 ,75.04598),new google.maps.LatLng(31.75111 ,74.18684),new google.maps.LatLng(31.09762 ,75.06333),new google.maps.LatLng(31.84391 ,73.31256),new google.maps.LatLng(31.63197 ,74.38998),new google.maps.LatLng(31.57822 ,74.84126),new google.maps.LatLng(31.53737 ,74.32518),new google.maps.LatLng(31.52345 ,73.67298),new google.maps.LatLng(31.84822 ,75.27474),new google.maps.LatLng(31.92404 ,74.84286),new google.maps.LatLng(31.41078 ,73.20432),new google.maps.LatLng(30.65370 ,73.98272),new google.maps.LatLng(30.33456 ,74.46988),new google.maps.LatLng(32.06982 ,74.53434),new google.maps.LatLng(31.73091 ,73.63864),new google.maps.LatLng(32.61884 ,73.88918),new google.maps.LatLng(30.31556 ,74.19306),new google.maps.LatLng(31.88127 ,73.73775),new google.maps.LatLng(32.48597 ,74.57690),new google.maps.LatLng(31.47673 ,74.27766),new google.maps.LatLng(30.55778 ,73.70494),new google.maps.LatLng(31.50530 ,75.51988),new google.maps.LatLng(30.99939 ,73.53883),new google.maps.LatLng(32.40118 ,74.31087),new google.maps.LatLng(31.88290 ,75.05423),new google.maps.LatLng(31.37229 ,73.84806),new google.maps.LatLng(31.98611 ,75.36446),new google.maps.LatLng(31.42118 ,74.37530),new google.maps.LatLng(31.31190 ,74.45813),new google.maps.LatLng(31.36854 ,74.71983),new google.maps.LatLng(31.04729 ,74.73345),new google.maps.LatLng(32.08285 ,73.35164),new google.maps.LatLng(32.17340 ,75.05193),new google.maps.LatLng(31.94956 ,75.07433),new google.maps.LatLng(32.36209 ,73.89041),new google.maps.LatLng(30.76909 ,74.88035),new google.maps.LatLng(30.83445 ,75.29716),new google.maps.LatLng(30.67480 ,74.10070),new google.maps.LatLng(31.22703 ,73.75511),new google.maps.LatLng(30.72196 ,74.91186),new google.maps.LatLng(31.60999 ,74.74833),new google.maps.LatLng(32.49537 ,75.00599),new google.maps.LatLng(31.52677 ,73.73863),new google.maps.LatLng(31.57162 ,74.34777),new google.maps.LatLng(32.26034 ,73.95093),new google.maps.LatLng(31.96095 ,73.99019),new google.maps.LatLng(32.30523 ,73.64629),new google.maps.LatLng(32.39130 ,74.47214),new google.maps.LatLng(30.58936 ,73.81961),new google.maps.LatLng(32.54985 ,74.93257),new google.maps.LatLng(32.29571 ,74.77313),new google.maps.LatLng(32.25465 ,75.27559),new google.maps.LatLng(31.33248 ,73.56288),new google.maps.LatLng(32.49067 ,73.93635),new google.maps.LatLng(32.56439 ,73.87161),new google.maps.LatLng(30.56783 ,73.70553),new google.maps.LatLng(32.26703 ,74.35859),new google.maps.LatLng(31.94707 ,75.42234),new google.maps.LatLng(31.59641 ,73.99599),new google.maps.LatLng(30.78963 ,73.78900),new google.maps.LatLng(31.60599 ,75.56331),new google.maps.LatLng(30.79931 ,74.63020),new google.maps.LatLng(31.08971 ,73.47664),new google.maps.LatLng(31.11592 ,74.24344),new google.maps.LatLng(30.65145 ,74.36419),new google.maps.LatLng(30.71567 ,74.32710),new google.maps.LatLng(31.77104 ,74.75496),new google.maps.LatLng(30.38066 ,74.38409),new google.maps.LatLng(32.39767 ,75.00558),new google.maps.LatLng(30.87556 ,74.64944),new google.maps.LatLng(31.83256 ,74.57120),new google.maps.LatLng(32.43549 ,73.87401),new google.maps.LatLng(31.87197 ,74.28506),new google.maps.LatLng(30.61342 ,74.91200),new google.maps.LatLng(31.76869 ,73.31349),new google.maps.LatLng(30.80981 ,73.51276),new google.maps.LatLng(31.57540 ,74.54962),new google.maps.LatLng(31.70685 ,73.35528),new google.maps.LatLng(30.87619 ,74.46088),new google.maps.LatLng(30.90052 ,73.43747),new google.maps.LatLng(31.23570 ,75.26895),new google.maps.LatLng(31.57963 ,73.62799),new google.maps.LatLng(31.49203 ,74.17900),new google.maps.LatLng(32.44578 ,73.93334),new google.maps.LatLng(31.08725 ,75.20692),new google.maps.LatLng(31.83779 ,73.52659),new google.maps.LatLng(30.84586 ,75.18589),new google.maps.LatLng(31.23951 ,75.15448),new google.maps.LatLng(31.31625 ,73.89572),new google.maps.LatLng(31.87740 ,73.41537),new google.maps.LatLng(31.42043 ,75.44336),new google.maps.LatLng(32.04900 ,73.68341),new google.maps.LatLng(31.43012 ,73.16368),new google.maps.LatLng(32.55699 ,74.48403),new google.maps.LatLng(31.14872 ,73.67515),new google.maps.LatLng(32.16720 ,74.48912),new google.maps.LatLng(31.41639 ,73.91611),new google.maps.LatLng(32.14230 ,74.41414),new google.maps.LatLng(31.79087 ,74.70979),new google.maps.LatLng(31.88582 ,73.99374),new google.maps.LatLng(30.66150 ,74.25146),new google.maps.LatLng(31.26456 ,74.34843),new google.maps.LatLng(31.24466 ,73.56277),new google.maps.LatLng(31.81905 ,74.11545),new google.maps.LatLng(31.09526 ,75.45487),new google.maps.LatLng(32.61288 ,73.97213),new google.maps.LatLng(31.13648 ,74.71303),new google.maps.LatLng(31.80620 ,73.60941),new google.maps.LatLng(31.84623 ,74.77044),new google.maps.LatLng(30.87198 ,74.95016),new google.maps.LatLng(32.32831 ,74.16551),new google.maps.LatLng(31.28524 ,74.61822),new google.maps.LatLng(31.34912 ,74.95193),new google.maps.LatLng(32.08549 ,73.75409),new google.maps.LatLng(32.14468 ,73.39986),new google.maps.LatLng(30.56910 ,74.32717),new google.maps.LatLng(31.16106 ,73.33277),new google.maps.LatLng(32.63493 ,74.64060),new google.maps.LatLng(30.85742 ,74.62109),new google.maps.LatLng(30.88362 ,75.28899),new google.maps.LatLng(31.96480 ,74.22493),new google.maps.LatLng(31.08274 ,73.94602),new google.maps.LatLng(32.00235 ,74.41713),new google.maps.LatLng(31.30463 ,74.79103),new google.maps.LatLng(31.38160 ,73.31812),new google.maps.LatLng(31.12970 ,75.12185),new google.maps.LatLng(31.83184 ,75.45149),new google.maps.LatLng(31.13443 ,73.92436),new google.maps.LatLng(32.16323 ,73.59458),new google.maps.LatLng(32.28993 ,74.72483),new google.maps.LatLng(31.54208 ,74.89568),new google.maps.LatLng(32.22145 ,73.49824),new google.maps.LatLng(30.91729 ,74.22715),new google.maps.LatLng(31.40596 ,73.94159),new google.maps.LatLng(31.83825 ,73.85000),new google.maps.LatLng(32.16283 ,75.34385),new google.maps.LatLng(31.86994 ,75.00914),new google.maps.LatLng(30.87712 ,73.83156),new google.maps.LatLng(31.50685 ,73.94230),new google.maps.LatLng(31.30561 ,74.86174),new google.maps.LatLng(31.47629 ,75.02275),new google.maps.LatLng(32.22058 ,73.95261),new google.maps.LatLng(32.58226 ,74.28520),new google.maps.LatLng(31.29906 ,75.45938),new google.maps.LatLng(30.74654 ,73.85963),new google.maps.LatLng(32.34629 ,74.48133),new google.maps.LatLng(30.70966 ,74.75053),new google.maps.LatLng(31.13407 ,75.05090),new google.maps.LatLng(31.99020 ,73.28317),new google.maps.LatLng(31.54793 ,74.86097),new google.maps.LatLng(32.02066 ,74.82206),new google.maps.LatLng(31.53735 ,74.40308),new google.maps.LatLng(32.00060 ,73.64956),new google.maps.LatLng(31.68113 ,73.25687),new google.maps.LatLng(31.98651 ,73.58785),new google.maps.LatLng(30.93490 ,74.56912),new google.maps.LatLng(30.55500 ,74.34005),new google.maps.LatLng(32.06022 ,74.25218),new google.maps.LatLng(31.06360 ,73.30768),new google.maps.LatLng(30.98012 ,73.27265),new google.maps.LatLng(31.89873 ,74.69842),new google.maps.LatLng(31.98976 ,74.51881),new google.maps.LatLng(30.60129 ,75.05918),new google.maps.LatLng(31.13874 ,73.76824),new google.maps.LatLng(31.65506 ,74.82875),new google.maps.LatLng(31.89894 ,74.10862),new google.maps.LatLng(32.06364 ,75.41221),new google.maps.LatLng(32.39965 ,75.11481),new google.maps.LatLng(31.21384 ,74.68615),new google.maps.LatLng(31.85195 ,74.17297),new google.maps.LatLng(30.93067 ,73.85260),new google.maps.LatLng(31.52292 ,74.40499),new google.maps.LatLng(30.97342 ,74.18188),new google.maps.LatLng(32.57955 ,74.28640),new google.maps.LatLng(31.39053 ,74.02307),new google.maps.LatLng(31.71725 ,74.42108),new google.maps.LatLng(31.54511 ,75.19783),new google.maps.LatLng(31.42753 ,73.51755),new google.maps.LatLng(31.99587 ,74.54241),new google.maps.LatLng(32.10292 ,74.73305),new google.maps.LatLng(32.22974 ,75.05024),new google.maps.LatLng(32.27896 ,74.11176),new google.maps.LatLng(30.98661 ,75.35358),new google.maps.LatLng(32.27485 ,74.14495),new google.maps.LatLng(31.16504 ,73.90742),new google.maps.LatLng(30.56372 ,74.37578),new google.maps.LatLng(31.80342 ,74.13619),new google.maps.LatLng(31.71522 ,74.75384),new google.maps.LatLng(30.73210 ,73.48370),new google.maps.LatLng(31.68991 ,73.92670),new google.maps.LatLng(31.00051 ,75.34180),new google.maps.LatLng(30.79961 ,74.09991),new google.maps.LatLng(32.40070 ,74.24345),new google.maps.LatLng(30.93510 ,75.36791),new google.maps.LatLng(32.23703 ,75.29650),new google.maps.LatLng(31.16769 ,73.34375),new google.maps.LatLng(31.74101 ,74.00016),new google.maps.LatLng(32.48409 ,74.48069),new google.maps.LatLng(32.42286 ,74.08766),new google.maps.LatLng(31.83451 ,73.94605),new google.maps.LatLng(30.95038 ,75.24891),new google.maps.LatLng(31.70450 ,74.40364),new google.maps.LatLng(31.25610 ,74.61243),new google.maps.LatLng(32.02381 ,73.79545),new google.maps.LatLng(31.16514 ,75.08974),new google.maps.LatLng(30.94033 ,73.65938),new google.maps.LatLng(31.15303 ,74.95128),new google.maps.LatLng(31.29270 ,74.53981),new google.maps.LatLng(31.78280 ,74.47157),new google.maps.LatLng(31.19521 ,74.35000),new google.maps.LatLng(31.79077 ,73.76658),new google.maps.LatLng(30.96300 ,74.22071),new google.maps.LatLng(30.87010 ,73.93864),new google.maps.LatLng(30.67382 ,74.83316),new google.maps.LatLng(31.65604 ,74.63830),new google.maps.LatLng(32.45491 ,74.70094),new google.maps.LatLng(32.20837 ,73.60927),new google.maps.LatLng(31.34432 ,75.40168),new google.maps.LatLng(30.91047 ,75.17840),new google.maps.LatLng(30.67328 ,74.45821),new google.maps.LatLng(31.51138 ,73.25798),new google.maps.LatLng(31.36075 ,74.71307),new google.maps.LatLng(32.21109 ,74.43631),new google.maps.LatLng(31.84582 ,74.34985),new google.maps.LatLng(30.78406 ,74.90013),new google.maps.LatLng(31.79226 ,74.93586),new google.maps.LatLng(31.06548 ,73.72296),new google.maps.LatLng(30.31461 ,74.29017),new google.maps.LatLng(31.19934 ,74.46951),new google.maps.LatLng(31.48836 ,74.48450),new google.maps.LatLng(31.61876 ,74.86565),new google.maps.LatLng(31.02877 ,73.93026),new google.maps.LatLng(30.52109 ,74.91827),new google.maps.LatLng(31.65309 ,74.06294),new google.maps.LatLng(31.65342 ,74.46495),new google.maps.LatLng(31.93604 ,75.06455),new google.maps.LatLng(30.50821 ,75.03111),new google.maps.LatLng(32.27559 ,73.80091),new google.maps.LatLng(32.07761 ,73.93904),new google.maps.LatLng(31.33731 ,74.14118),new google.maps.LatLng(32.17957 ,73.60662),new google.maps.LatLng(32.25869 ,75.14265),new google.maps.LatLng(31.57400 ,74.50232),new google.maps.LatLng(31.65249 ,75.14846),new google.maps.LatLng(30.97308 ,73.51284),new google.maps.LatLng(30.68779 ,74.11091),new google.maps.LatLng(30.74910 ,75.17192),new google.maps.LatLng(32.06449 ,74.21378),new google.maps.LatLng(32.08162 ,74.79310),new google.maps.LatLng(30.88740 ,74.11813),new google.maps.LatLng(31.76689 ,73.99368),new google.maps.LatLng(31.23153 ,75.19308),new google.maps.LatLng(31.72932 ,75.05295),new google.maps.LatLng(31.24705 ,74.78726),new google.maps.LatLng(32.01013 ,74.34304),new google.maps.LatLng(32.49014 ,74.78507),new google.maps.LatLng(30.54994 ,74.97431),new google.maps.LatLng(31.39744 ,74.14478),new google.maps.LatLng(32.04792 ,75.29754),new google.maps.LatLng(31.43348 ,75.55544),new google.maps.LatLng(31.07792 ,75.00817),new google.maps.LatLng(30.75151 ,73.71502),new google.maps.LatLng(31.59578 ,73.89457),new google.maps.LatLng(30.82841 ,73.80314),new google.maps.LatLng(31.52146 ,73.73809),new google.maps.LatLng(30.67817 ,74.62571),new google.maps.LatLng(32.32494 ,73.91158),new google.maps.LatLng(31.54597 ,74.75342),new google.maps.LatLng(31.96950 ,74.53578),new google.maps.LatLng(30.77046 ,75.25329),new google.maps.LatLng(32.23857 ,74.16630),new google.maps.LatLng(30.81036 ,75.25761),new google.maps.LatLng(32.18679 ,74.17029),new google.maps.LatLng(31.49116 ,74.88405),new google.maps.LatLng(31.84191 ,74.66606),new google.maps.LatLng(32.51360 ,74.65218),new google.maps.LatLng(31.54410 ,73.38897),new google.maps.LatLng(31.35316 ,74.16709),new google.maps.LatLng(32.45871 ,74.27323),new google.maps.LatLng(31.61396 ,74.99809),new google.maps.LatLng(32.49656 ,73.69995),new google.maps.LatLng(31.92966 ,73.24702),new google.maps.LatLng(30.60282 ,74.82996),new google.maps.LatLng(32.31118 ,74.00482),new google.maps.LatLng(31.96082 ,73.42955),new google.maps.LatLng(31.79087 ,75.17824),new google.maps.LatLng(30.86755 ,74.22237),new google.maps.LatLng(30.64704 ,73.62281),new google.maps.LatLng(31.02245 ,73.58749),new google.maps.LatLng(31.35283 ,74.11149),new google.maps.LatLng(32.29589 ,74.66530),new google.maps.LatLng(31.31767 ,75.00025),new google.maps.LatLng(30.86592 ,73.48284),new google.maps.LatLng(32.27189 ,75.12668),new google.maps.LatLng(32.06781 ,74.80988),new google.maps.LatLng(31.11709 ,74.54771),new google.maps.LatLng(32.71645 ,74.38475),new google.maps.LatLng(31.47844 ,73.53418),new google.maps.LatLng(31.60304 ,73.47501),new google.maps.LatLng(31.69848 ,75.52162),new google.maps.LatLng(32.07595 ,74.55116),new google.maps.LatLng(31.17382 ,73.35915),new google.maps.LatLng(30.79300 ,74.30655),new google.maps.LatLng(31.03517 ,74.79839),new google.maps.LatLng(31.67610 ,73.94482),new google.maps.LatLng(30.82718 ,75.34931),new google.maps.LatLng(30.75402 ,73.88578),new google.maps.LatLng(31.62258 ,74.63818),new google.maps.LatLng(32.43587 ,74.66740),new google.maps.LatLng(32.30299 ,73.62745),new google.maps.LatLng(30.48344 ,74.08487),new google.maps.LatLng(31.72768 ,74.36408),new google.maps.LatLng(31.36223 ,73.41649),new google.maps.LatLng(31.78402 ,73.97074),new google.maps.LatLng(31.95845 ,74.21252),new google.maps.LatLng(31.35605 ,74.45240),new google.maps.LatLng(31.41300 ,75.48801),new google.maps.LatLng(32.52013 ,74.15879),new google.maps.LatLng(31.03554 ,74.81712),new google.maps.LatLng(31.40981 ,74.14719),new google.maps.LatLng(32.51131 ,75.01229),new google.maps.LatLng(30.77089 ,75.16636),new google.maps.LatLng(31.82578 ,73.68172),new google.maps.LatLng(32.37064 ,73.65613),new google.maps.LatLng(30.45719 ,74.59513),new google.maps.LatLng(31.00819 ,73.65534),new google.maps.LatLng(32.04956 ,73.29421),new google.maps.LatLng(31.70447 ,74.66240),new google.maps.LatLng(30.79316 ,74.39536),new google.maps.LatLng(31.29463 ,73.51656),new google.maps.LatLng(30.88504 ,74.18908),new google.maps.LatLng(30.81702 ,74.03089),new google.maps.LatLng(31.33254 ,74.49395),new google.maps.LatLng(31.75809 ,73.27079),new google.maps.LatLng(31.72339 ,73.46970),new google.maps.LatLng(30.96119 ,74.10996),new google.maps.LatLng(30.65965 ,74.86479),new google.maps.LatLng(31.55650 ,75.24692),new google.maps.LatLng(32.34211 ,74.55250),new google.maps.LatLng(31.37488 ,75.24550),new google.maps.LatLng(32.55134 ,74.32712),new google.maps.LatLng(31.31782 ,74.51621),new google.maps.LatLng(30.98200 ,73.86306),new google.maps.LatLng(30.39357 ,74.79993),new google.maps.LatLng(31.75831 ,74.97575),new google.maps.LatLng(30.73998 ,74.81672),new google.maps.LatLng(31.29881 ,73.30472),new google.maps.LatLng(32.66562 ,74.46872),new google.maps.LatLng(30.46987 ,74.92706),new google.maps.LatLng(31.83687 ,75.51703),new google.maps.LatLng(31.03123 ,75.30730),new google.maps.LatLng(32.39391 ,73.54426),new google.maps.LatLng(31.83066 ,73.80036),new google.maps.LatLng(31.21549 ,75.16900),new google.maps.LatLng(31.92679 ,73.48637),new google.maps.LatLng(32.43718 ,73.94892),new google.maps.LatLng(30.70723 ,73.70278),new google.maps.LatLng(32.07336 ,73.31164),new google.maps.LatLng(32.26931 ,73.50141),new google.maps.LatLng(30.82688 ,74.16552),new google.maps.LatLng(32.46374 ,74.18919),new google.maps.LatLng(31.43662 ,74.03013),new google.maps.LatLng(31.21762 ,74.19083),new google.maps.LatLng(31.66119 ,74.02502),new google.maps.LatLng(31.38107 ,74.02915),new google.maps.LatLng(30.51368 ,74.67446),new google.maps.LatLng(31.83967 ,74.20826),new google.maps.LatLng(31.23483 ,74.28365),new google.maps.LatLng(30.91738 ,73.75704),new google.maps.LatLng(31.11730 ,74.71817),new google.maps.LatLng(31.92097 ,73.38058),new google.maps.LatLng(30.57511 ,73.64103),new google.maps.LatLng(31.47571 ,75.47895),new google.maps.LatLng(32.24252 ,74.74043),new google.maps.LatLng(31.86290 ,74.03580),new google.maps.LatLng(32.17202 ,73.38335),new google.maps.LatLng(31.65378 ,73.77298),new google.maps.LatLng(32.62530 ,74.15988),new google.maps.LatLng(31.00837 ,74.47997),new google.maps.LatLng(32.39827 ,73.77703),new google.maps.LatLng(31.50037 ,74.76621),new google.maps.LatLng(31.98229 ,73.83982),new google.maps.LatLng(31.21678 ,74.40190),new google.maps.LatLng(31.48973 ,74.43682),new google.maps.LatLng(31.48207 ,74.07888),new google.maps.LatLng(31.94697 ,73.52567),new google.maps.LatLng(31.23063 ,75.31463),new google.maps.LatLng(31.51182 ,74.74836),new google.maps.LatLng(31.82740 ,73.35888),new google.maps.LatLng(31.41427 ,74.50313),new google.maps.LatLng(31.47332 ,75.29684),new google.maps.LatLng(31.17391 ,73.96437),new google.maps.LatLng(31.41759 ,73.35555),new google.maps.LatLng(31.67680 ,74.94407),new google.maps.LatLng(32.33425 ,75.05719),new google.maps.LatLng(31.29863 ,75.26924),new google.maps.LatLng(32.59953 ,74.83549),new google.maps.LatLng(31.64621 ,75.36955),new google.maps.LatLng(30.72397 ,75.24991),new google.maps.LatLng(31.96816 ,73.93376),new google.maps.LatLng(32.43949 ,74.21057),new google.maps.LatLng(31.65529 ,74.86996),new google.maps.LatLng(30.82119 ,74.11251),new google.maps.LatLng(32.26897 ,74.24117),new google.maps.LatLng(30.89912 ,74.95450),new google.maps.LatLng(30.98478 ,73.67037),new google.maps.LatLng(31.87079 ,74.03604),new google.maps.LatLng(31.90595 ,74.01577),new google.maps.LatLng(31.14340 ,73.67256),new google.maps.LatLng(32.24239 ,74.11030),new google.maps.LatLng(32.19962 ,74.39044),new google.maps.LatLng(31.03734 ,74.27287),new google.maps.LatLng(31.09692 ,75.20266),new google.maps.LatLng(32.50275 ,74.79885),new google.maps.LatLng(30.88982 ,74.34037),new google.maps.LatLng(30.68683 ,73.80561),new google.maps.LatLng(30.75954 ,74.47742),new google.maps.LatLng(31.34167 ,75.16069),new google.maps.LatLng(30.88999 ,74.30008),new google.maps.LatLng(31.60050 ,74.74074),new google.maps.LatLng(32.54204 ,74.65171),new google.maps.LatLng(32.53030 ,74.03609),new google.maps.LatLng(32.51592 ,74.56833),new google.maps.LatLng(31.27384 ,75.51849),new google.maps.LatLng(31.87210 ,73.35020),new google.maps.LatLng(31.63549 ,74.30321),new google.maps.LatLng(32.25570 ,74.51539),new google.maps.LatLng(31.94323 ,74.10070),new google.maps.LatLng(32.19515 ,74.40684),new google.maps.LatLng(30.96219 ,73.68193),new google.maps.LatLng(31.38656 ,73.54090),new google.maps.LatLng(31.87499 ,74.32193),new google.maps.LatLng(30.83637 ,74.21549),new google.maps.LatLng(31.90925 ,75.47373),new google.maps.LatLng(31.14332 ,73.53899),new google.maps.LatLng(31.95116 ,74.22455),new google.maps.LatLng(31.60919 ,74.15851),new google.maps.LatLng(31.71298 ,74.36047),new google.maps.LatLng(31.46325 ,74.77766),new google.maps.LatLng(32.59239 ,74.24887),new google.maps.LatLng(31.65534 ,73.55711),new google.maps.LatLng(31.52085 ,75.32558),new google.maps.LatLng(32.04180 ,73.62350),new google.maps.LatLng(32.02403 ,75.09910),new google.maps.LatLng(31.77028 ,74.44134),new google.maps.LatLng(30.57229 ,73.81059),new google.maps.LatLng(31.99069 ,74.86363),new google.maps.LatLng(32.07166 ,75.09103),new google.maps.LatLng(32.18472 ,74.12085),new google.maps.LatLng(31.68809 ,74.58544),new google.maps.LatLng(31.10988 ,73.97989),new google.maps.LatLng(30.77963 ,75.27519),new google.maps.LatLng(32.12241 ,74.78235),new google.maps.LatLng(32.62456 ,74.04775),new google.maps.LatLng(32.48382 ,74.57250),new google.maps.LatLng(30.79011 ,74.39009),new google.maps.LatLng(30.64575 ,74.29319),new google.maps.LatLng(30.52485 ,74.39139),new google.maps.LatLng(31.70457 ,74.65771),new google.maps.LatLng(30.62545 ,75.00545),new google.maps.LatLng(31.49960 ,73.78956),new google.maps.LatLng(32.58226 ,73.97631),new google.maps.LatLng(31.37113 ,75.56972),new google.maps.LatLng(31.07220 ,73.36783),new google.maps.LatLng(31.35061 ,74.94329),new google.maps.LatLng(32.51152 ,73.81698),new google.maps.LatLng(31.16091 ,73.46483),new google.maps.LatLng(31.91009 ,74.00935),new google.maps.LatLng(31.35641 ,75.00077),new google.maps.LatLng(31.49559 ,73.19426),new google.maps.LatLng(30.76841 ,74.08152),new google.maps.LatLng(32.38222 ,74.60677),new google.maps.LatLng(30.48425 ,73.74392),new google.maps.LatLng(30.83668 ,75.24571),new google.maps.LatLng(32.04344 ,74.41215),new google.maps.LatLng(32.14295 ,74.73938),new google.maps.LatLng(31.61453 ,73.47119),new google.maps.LatLng(31.94879 ,73.30513),new google.maps.LatLng(31.87431 ,73.24211),new google.maps.LatLng(31.24289 ,73.82364),new google.maps.LatLng(31.72366 ,74.58591),new google.maps.LatLng(32.05947 ,73.50504),new google.maps.LatLng(32.66795 ,74.37087),new google.maps.LatLng(31.78114 ,74.34727),new google.maps.LatLng(31.31556 ,74.30660),new google.maps.LatLng(31.45242 ,73.18584),new google.maps.LatLng(31.81497 ,73.29792),new google.maps.LatLng(32.23658 ,74.92018),new google.maps.LatLng(31.55260 ,74.06255),new google.maps.LatLng(32.00096 ,74.77377),new google.maps.LatLng(31.82444 ,75.36354),new google.maps.LatLng(31.12766 ,74.30119),new google.maps.LatLng(32.49169 ,74.05389),new google.maps.LatLng(31.79175 ,74.12194),new google.maps.LatLng(31.12635 ,74.97448),new google.maps.LatLng(32.33918 ,73.55459),new google.maps.LatLng(30.79499 ,73.53213),new google.maps.LatLng(30.92552 ,75.05639),new google.maps.LatLng(31.25088 ,73.39419),new google.maps.LatLng(30.58448 ,74.41941),new google.maps.LatLng(30.87595 ,74.03377),new google.maps.LatLng(31.36480 ,74.69432),new google.maps.LatLng(32.03263 ,74.18541),new google.maps.LatLng(30.67328 ,75.14078),new google.maps.LatLng(32.52373 ,73.77045),new google.maps.LatLng(31.52249 ,74.34106),new google.maps.LatLng(31.95101 ,74.64745),new google.maps.LatLng(31.22818 ,73.87729),new google.maps.LatLng(32.46629 ,74.84156),new google.maps.LatLng(31.52734 ,75.11367),new google.maps.LatLng(31.91965 ,75.41069),new google.maps.LatLng(32.15007 ,75.28124),new google.maps.LatLng(30.88766 ,74.74134),new google.maps.LatLng(31.22878 ,74.01810),new google.maps.LatLng(31.43051 ,74.52792),new google.maps.LatLng(31.45665 ,74.55640),new google.maps.LatLng(31.43035 ,74.96550),new google.maps.LatLng(31.72947 ,74.70028),new google.maps.LatLng(32.43103 ,73.92589),new google.maps.LatLng(31.16436 ,75.25172),new google.maps.LatLng(31.43166 ,73.53110),new google.maps.LatLng(31.19245 ,74.41005),new google.maps.LatLng(31.03734 ,75.14167),new google.maps.LatLng(31.28467 ,73.71565),new google.maps.LatLng(31.30592 ,75.11204),new google.maps.LatLng(30.37256 ,74.61139),new google.maps.LatLng(30.91766 ,73.49497),new google.maps.LatLng(30.99074 ,74.15048),new google.maps.LatLng(31.82241 ,73.69358),new google.maps.LatLng(31.77193 ,74.16967),new google.maps.LatLng(31.40920 ,75.49506),new google.maps.LatLng(32.23944 ,74.30956),new google.maps.LatLng(32.58105 ,74.78747),new google.maps.LatLng(32.51593 ,74.80126),new google.maps.LatLng(30.73381 ,73.82150),new google.maps.LatLng(32.35443 ,74.47756),new google.maps.LatLng(31.30373 ,73.79550),new google.maps.LatLng(32.39329 ,74.47983),new google.maps.LatLng(31.73846 ,74.33744),new google.maps.LatLng(31.45392 ,73.67455),new google.maps.LatLng(32.15739 ,73.57769),new google.maps.LatLng(30.94239 ,73.65388),new google.maps.LatLng(32.10319 ,74.71461),new google.maps.LatLng(31.21496 ,74.01765),new google.maps.LatLng(31.48356 ,73.22353),new google.maps.LatLng(31.82057 ,74.28812),new google.maps.LatLng(31.74345 ,74.11220),new google.maps.LatLng(31.71983 ,74.07439),new google.maps.LatLng(32.20939 ,73.56468),new google.maps.LatLng(30.74423 ,74.99944),new google.maps.LatLng(30.48500 ,74.03582),new google.maps.LatLng(30.84560 ,74.10311),new google.maps.LatLng(32.46540 ,74.41505),new google.maps.LatLng(32.00173 ,73.31060),new google.maps.LatLng(31.70139 ,73.28558),new google.maps.LatLng(31.58878 ,74.68843),new google.maps.LatLng(31.51474 ,74.81701),new google.maps.LatLng(30.91624 ,74.40318),new google.maps.LatLng(31.43871 ,75.05163),new google.maps.LatLng(31.33885 ,74.04260),new google.maps.LatLng(32.42375 ,74.36987),new google.maps.LatLng(31.88554 ,74.65208),new google.maps.LatLng(31.35093 ,75.48679),new google.maps.LatLng(30.73027 ,75.04392),new google.maps.LatLng(30.90187 ,73.60724),new google.maps.LatLng(32.07134 ,73.57990),new google.maps.LatLng(30.86291 ,74.33576),new google.maps.LatLng(31.04401 ,73.63017),new google.maps.LatLng(30.52526 ,74.05283),new google.maps.LatLng(31.85258 ,73.79915),new google.maps.LatLng(31.73940 ,73.56255),new google.maps.LatLng(31.64078 ,74.30811),new google.maps.LatLng(31.69404 ,75.11331),new google.maps.LatLng(31.25533 ,73.95709),new google.maps.LatLng(31.15763 ,75.34989),new google.maps.LatLng(31.86749 ,75.19194),new google.maps.LatLng(32.58425 ,74.31625),new google.maps.LatLng(32.00215 ,74.20232),new google.maps.LatLng(31.83730 ,74.25962),new google.maps.LatLng(31.59246 ,73.16877),new google.maps.LatLng(32.59632 ,74.75888),new google.maps.LatLng(32.21982 ,74.88407),new google.maps.LatLng(31.22775 ,74.71188),new google.maps.LatLng(30.64374 ,74.80833),new google.maps.LatLng(32.05112 ,75.34681),new google.maps.LatLng(31.81449 ,73.67155),new google.maps.LatLng(31.00834 ,74.18267),new google.maps.LatLng(32.55204 ,74.85749),new google.maps.LatLng(31.43184 ,73.69504),new google.maps.LatLng(31.92105 ,73.35589),new google.maps.LatLng(31.71620 ,73.85131),new google.maps.LatLng(30.89468 ,74.55070),new google.maps.LatLng(30.61429 ,75.12669),new google.maps.LatLng(31.50741 ,74.83693),new google.maps.LatLng(32.00190 ,73.94106),new google.maps.LatLng(31.42206 ,74.41475),new google.maps.LatLng(31.94177 ,73.24711),new google.maps.LatLng(31.62202 ,74.78206),new google.maps.LatLng(32.51289 ,73.84606),new google.maps.LatLng(31.69882 ,75.55062),new google.maps.LatLng(31.07789 ,74.30869),new google.maps.LatLng(32.04136 ,74.83691),new google.maps.LatLng(30.67769 ,74.66549),new google.maps.LatLng(31.06409 ,74.43574),new google.maps.LatLng(32.31976 ,74.71833),new google.maps.LatLng(31.12802 ,73.96458),new google.maps.LatLng(30.76413 ,74.83917),new google.maps.LatLng(32.31531 ,74.62002),new google.maps.LatLng(32.29788 ,74.03709),new google.maps.LatLng(31.14852 ,73.48650),new google.maps.LatLng(32.25301 ,73.43649),new google.maps.LatLng(32.21471 ,73.80310),new google.maps.LatLng(31.35758 ,74.08837),new google.maps.LatLng(31.29514 ,74.35011),new google.maps.LatLng(30.55509 ,74.78186),new google.maps.LatLng(31.37674 ,73.82077),new google.maps.LatLng(30.86365 ,75.19999),new google.maps.LatLng(31.71317 ,74.37525),new google.maps.LatLng(31.16098 ,73.29189),new google.maps.LatLng(32.23948 ,73.67297),new google.maps.LatLng(32.33300 ,74.16034),new google.maps.LatLng(31.39700 ,75.23736),new google.maps.LatLng(32.32072 ,74.93650),new google.maps.LatLng(30.87209 ,75.07023),new google.maps.LatLng(31.91517 ,73.90965),new google.maps.LatLng(30.62287 ,74.70618),new google.maps.LatLng(31.60969 ,74.35037),new google.maps.LatLng(31.26411 ,74.95211),new google.maps.LatLng(30.39034 ,74.48742),new google.maps.LatLng(32.21287 ,74.90748),new google.maps.LatLng(30.93608 ,73.52492),new google.maps.LatLng(31.11673 ,75.00373),new google.maps.LatLng(31.23645 ,73.60891),new google.maps.LatLng(30.79416 ,73.95520),new google.maps.LatLng(30.91175 ,74.97343),new google.maps.LatLng(31.96180 ,75.46363),new google.maps.LatLng(30.33398 ,74.56720),new google.maps.LatLng(31.27218 ,74.72406),new google.maps.LatLng(31.27976 ,74.52726),new google.maps.LatLng(31.33798 ,74.09471),new google.maps.LatLng(31.70424 ,74.04317),new google.maps.LatLng(31.01032 ,73.33852),new google.maps.LatLng(31.92261 ,73.59148),new google.maps.LatLng(30.91997 ,73.85605),new google.maps.LatLng(31.47863 ,73.46822),new google.maps.LatLng(32.15399 ,74.90832),new google.maps.LatLng(30.52709 ,73.72348),new google.maps.LatLng(30.51250 ,74.19086),new google.maps.LatLng(31.49611 ,74.81290),new google.maps.LatLng(31.66593 ,75.18037),new google.maps.LatLng(31.56449 ,74.93942),new google.maps.LatLng(32.04864 ,75.33819),new google.maps.LatLng(32.39853 ,75.16833),new google.maps.LatLng(31.01675 ,73.93137),new google.maps.LatLng(32.24309 ,73.82947),new google.maps.LatLng(31.56175 ,74.03435),new google.maps.LatLng(30.64354 ,73.88959),new google.maps.LatLng(31.17658 ,74.21153),new google.maps.LatLng(31.30967 ,74.01691),new google.maps.LatLng(31.60867 ,74.40782),new google.maps.LatLng(32.03695 ,74.90615),new google.maps.LatLng(31.12180 ,74.88671),new google.maps.LatLng(31.46399 ,75.35562),new google.maps.LatLng(31.74866 ,74.05204),new google.maps.LatLng(31.50515 ,74.16913),new google.maps.LatLng(31.02160 ,75.07247),new google.maps.LatLng(31.24084 ,74.82603),new google.maps.LatLng(31.76640 ,73.94134),new google.maps.LatLng(31.43055 ,74.12851),new google.maps.LatLng(32.49614 ,74.20628),new google.maps.LatLng(32.05037 ,74.76500),new google.maps.LatLng(31.96964 ,74.36616),new google.maps.LatLng(30.76373 ,75.20265),new google.maps.LatLng(31.09085 ,73.30619),new google.maps.LatLng(32.12579 ,73.94384),new google.maps.LatLng(32.54370 ,74.03076),new google.maps.LatLng(32.08121 ,75.31223),new google.maps.LatLng(31.89416 ,74.13371),new google.maps.LatLng(32.03488 ,74.82265),new google.maps.LatLng(31.58823 ,73.96459),new google.maps.LatLng(32.22313 ,74.92988),new google.maps.LatLng(32.58552 ,74.47137),new google.maps.LatLng(30.74727 ,74.44864),new google.maps.LatLng(31.55527 ,75.16370),new google.maps.LatLng(30.89581 ,74.67420),new google.maps.LatLng(32.06869 ,73.80255),new google.maps.LatLng(31.51482 ,75.57880),new google.maps.LatLng(30.68191 ,73.67237),new google.maps.LatLng(32.25370 ,73.72845),new google.maps.LatLng(30.67306 ,73.96349),new google.maps.LatLng(31.48006 ,75.37855),new google.maps.LatLng(30.59856 ,74.66745),new google.maps.LatLng(31.82502 ,75.13283),new google.maps.LatLng(30.54349 ,74.68318),new google.maps.LatLng(32.36311 ,73.88472),new google.maps.LatLng(31.91229 ,74.78197),new google.maps.LatLng(30.90237 ,74.17514),new google.maps.LatLng(30.94832 ,73.94029),new google.maps.LatLng(31.19075 ,74.99683),new google.maps.LatLng(31.11234 ,74.62006),new google.maps.LatLng(31.85498 ,75.02707),new google.maps.LatLng(30.60704 ,74.48510),new google.maps.LatLng(31.97891 ,73.41506),new google.maps.LatLng(30.71323 ,75.10223),new google.maps.LatLng(31.37030 ,75.31346),new google.maps.LatLng(32.40867 ,74.47807),new google.maps.LatLng(32.37934 ,73.94407),new google.maps.LatLng(31.88705 ,74.95650),new google.maps.LatLng(30.48211 ,74.83231),new google.maps.LatLng(31.76750 ,74.73720),new google.maps.LatLng(31.72248 ,74.58724),new google.maps.LatLng(31.96751 ,73.27739),new google.maps.LatLng(31.06160 ,75.48158),new google.maps.LatLng(30.35216 ,74.51008),new google.maps.LatLng(31.05572 ,73.86937),new google.maps.LatLng(32.00756 ,73.74817),new google.maps.LatLng(31.14102 ,73.63449),new google.maps.LatLng(32.14176 ,74.81290),new google.maps.LatLng(30.97850 ,73.47591),new google.maps.LatLng(31.33303 ,74.59183),new google.maps.LatLng(31.31886 ,74.03717),new google.maps.LatLng(31.75419 ,74.77882),new google.maps.LatLng(31.58430 ,73.40498),new google.maps.LatLng(31.35121 ,75.05713),new google.maps.LatLng(32.42857 ,74.53567),new google.maps.LatLng(30.79285 ,74.16248),new google.maps.LatLng(31.36868 ,74.30311),new google.maps.LatLng(31.89691 ,74.29628),new google.maps.LatLng(32.20512 ,74.78505),new google.maps.LatLng(30.83734 ,73.82330),new google.maps.LatLng(31.18145 ,73.92896),new google.maps.LatLng(31.48738 ,74.19995),new google.maps.LatLng(30.87914 ,74.24998),new google.maps.LatLng(32.43876 ,74.07435),new google.maps.LatLng(31.00267 ,73.69390),new google.maps.LatLng(32.08073 ,73.87766),new google.maps.LatLng(31.14023 ,74.90537),new google.maps.LatLng(31.85887 ,74.93063),new google.maps.LatLng(31.76834 ,73.28113),new google.maps.LatLng(32.38958 ,73.84762),new google.maps.LatLng(30.57573 ,74.86524),new google.maps.LatLng(31.05031 ,74.64512),new google.maps.LatLng(31.44475 ,73.48698),new google.maps.LatLng(30.52816 ,73.84923),new google.maps.LatLng(31.76416 ,73.46173),new google.maps.LatLng(31.36830 ,74.88667),new google.maps.LatLng(31.93351 ,75.37159),new google.maps.LatLng(32.29517 ,74.55695),new google.maps.LatLng(31.60326 ,73.62767),new google.maps.LatLng(32.15797 ,75.22649),new google.maps.LatLng(32.42821 ,74.85889),new google.maps.LatLng(31.02230 ,74.26564),new google.maps.LatLng(30.96636 ,75.09021),new google.maps.LatLng(30.90620 ,73.92762),new google.maps.LatLng(31.24997 ,73.72748),new google.maps.LatLng(31.33059 ,75.14055),new google.maps.LatLng(32.25416 ,75.09864),new google.maps.LatLng(31.72637 ,73.37331),new google.maps.LatLng(30.44450 ,74.53375),new google.maps.LatLng(32.03367 ,74.71617),new google.maps.LatLng(31.66014 ,74.70989),new google.maps.LatLng(31.22836 ,74.13826),new google.maps.LatLng(31.98288 ,74.80405),new google.maps.LatLng(32.30634 ,74.62241),new google.maps.LatLng(31.22913 ,73.91492),new google.maps.LatLng(31.24586 ,73.74898),new google.maps.LatLng(31.49736 ,74.30235),new google.maps.LatLng(31.34425 ,75.45886),new google.maps.LatLng(32.05093 ,73.76642),new google.maps.LatLng(30.95423 ,73.80923),new google.maps.LatLng(31.60456 ,73.58140),new google.maps.LatLng(30.54509 ,74.05935),new google.maps.LatLng(30.55479 ,74.59766),new google.maps.LatLng(31.95906 ,73.59438),new google.maps.LatLng(31.33802 ,73.84587),new google.maps.LatLng(31.94992 ,75.21357),new google.maps.LatLng(32.41215 ,75.14982),new google.maps.LatLng(31.46862 ,74.60597),new google.maps.LatLng(31.73949 ,73.64620),new google.maps.LatLng(30.60371 ,74.33374),new google.maps.LatLng(31.75828 ,74.03406),new google.maps.LatLng(31.09463 ,75.18855),new google.maps.LatLng(31.64211 ,73.87744),new google.maps.LatLng(30.68024 ,73.61005),new google.maps.LatLng(32.17229 ,74.75897),new google.maps.LatLng(30.37509 ,74.77416),new google.maps.LatLng(30.64632 ,73.75218),new google.maps.LatLng(32.46470 ,73.93766),new google.maps.LatLng(31.06624 ,75.41869),new google.maps.LatLng(31.68917 ,74.64838),new google.maps.LatLng(30.89065 ,73.82804),new google.maps.LatLng(30.93092 ,75.31300),new google.maps.LatLng(32.24897 ,74.26998),new google.maps.LatLng(30.68427 ,73.65192),new google.maps.LatLng(31.23699 ,75.25706),new google.maps.LatLng(32.44549 ,74.76685),new google.maps.LatLng(32.27368 ,74.43560),new google.maps.LatLng(32.12665 ,75.07529),new google.maps.LatLng(30.83343 ,73.87722),new google.maps.LatLng(31.72025 ,75.32901),new google.maps.LatLng(32.38190 ,74.15127),new google.maps.LatLng(30.82161 ,74.15570),new google.maps.LatLng(31.55748 ,73.89920),new google.maps.LatLng(31.14333 ,73.59256),new google.maps.LatLng(32.10954 ,73.91292),new google.maps.LatLng(30.64158 ,74.31985),new google.maps.LatLng(31.98487 ,73.75776),new google.maps.LatLng(32.28794 ,75.09634),new google.maps.LatLng(30.79923 ,75.25495),new google.maps.LatLng(31.21597 ,74.27227),new google.maps.LatLng(31.17425 ,75.04806),new google.maps.LatLng(31.87455 ,74.88257),new google.maps.LatLng(32.45092 ,73.99793),new google.maps.LatLng(31.77371 ,74.26797),new google.maps.LatLng(32.15773 ,74.27703),new google.maps.LatLng(30.46581 ,74.11089),new google.maps.LatLng(31.88615 ,75.19507),new google.maps.LatLng(31.63414 ,74.13208),new google.maps.LatLng(31.17329 ,73.52556),new google.maps.LatLng(31.17640 ,73.53471),new google.maps.LatLng(30.65880 ,73.49841),new google.maps.LatLng(31.61293 ,74.85926),new google.maps.LatLng(31.95326 ,73.81152),new google.maps.LatLng(31.89736 ,73.84301),new google.maps.LatLng(32.21327 ,74.63710),new google.maps.LatLng(30.67061 ,74.85569),new google.maps.LatLng(30.90366 ,73.89347),new google.maps.LatLng(30.87248 ,74.81969),new google.maps.LatLng(30.44417 ,74.93489),new google.maps.LatLng(31.86338 ,74.49306),new google.maps.LatLng(31.88132 ,74.37602),new google.maps.LatLng(32.33525 ,74.29042),new google.maps.LatLng(31.65075 ,73.83090),new google.maps.LatLng(31.42290 ,73.51902),new google.maps.LatLng(31.47128 ,73.33888),new google.maps.LatLng(32.64856 ,73.98534),new google.maps.LatLng(31.71270 ,74.86285),new google.maps.LatLng(31.59442 ,74.64002),new google.maps.LatLng(32.60108 ,74.03509),new google.maps.LatLng(31.39527 ,74.61615),new google.maps.LatLng(31.65963 ,73.82109),new google.maps.LatLng(32.43241 ,74.09675),new google.maps.LatLng(31.82197 ,74.84445),new google.maps.LatLng(31.05216 ,75.04909),new google.maps.LatLng(31.01567 ,75.11241),new google.maps.LatLng(31.70081 ,74.44812),new google.maps.LatLng(30.63002 ,74.30541),new google.maps.LatLng(31.95307 ,74.51332),new google.maps.LatLng(31.74846 ,74.62319),new google.maps.LatLng(32.10796 ,75.28088),new google.maps.LatLng(31.73657 ,75.21589),new google.maps.LatLng(32.13936 ,73.47469),new google.maps.LatLng(31.04538 ,75.24512),new google.maps.LatLng(32.25428 ,74.05875),new google.maps.LatLng(31.49044 ,75.15324),new google.maps.LatLng(30.92231 ,74.89015),new google.maps.LatLng(32.65909 ,74.30969),new google.maps.LatLng(30.82456 ,74.44852),new google.maps.LatLng(31.77964 ,73.65966),new google.maps.LatLng(30.91912 ,74.35488),new google.maps.LatLng(31.88775 ,75.31937),new google.maps.LatLng(31.73016 ,73.21935),new google.maps.LatLng(31.07212 ,73.47781),new google.maps.LatLng(31.86659 ,73.56605),new google.maps.LatLng(31.31633 ,74.81918),new google.maps.LatLng(32.37988 ,74.66752),new google.maps.LatLng(31.17831 ,74.25148),new google.maps.LatLng(30.67972 ,73.58922),new google.maps.LatLng(30.91179 ,74.72656),new google.maps.LatLng(31.39625 ,74.79763),new google.maps.LatLng(31.96428 ,74.76194),new google.maps.LatLng(31.30960 ,74.67740),new google.maps.LatLng(31.34762 ,74.55379),new google.maps.LatLng(31.83381 ,73.71553),new google.maps.LatLng(31.94605 ,74.56521),new google.maps.LatLng(31.62172 ,74.70162),new google.maps.LatLng(30.83225 ,75.25789),new google.maps.LatLng(30.76413 ,73.99634),new google.maps.LatLng(31.86861 ,74.39817),new google.maps.LatLng(31.48919 ,73.49188),new google.maps.LatLng(31.33794 ,74.56410),new google.maps.LatLng(31.74571 ,73.81162),new google.maps.LatLng(30.92659 ,73.80322),new google.maps.LatLng(30.72290 ,75.17190),new google.maps.LatLng(31.73755 ,75.12525),new google.maps.LatLng(30.80718 ,74.31530),new google.maps.LatLng(30.89000 ,73.77409),new google.maps.LatLng(32.18433 ,73.79929),new google.maps.LatLng(31.60313 ,74.76256),new google.maps.LatLng(30.58957 ,74.43514),new google.maps.LatLng(31.75842 ,73.79747),new google.maps.LatLng(32.24320 ,73.82877),new google.maps.LatLng(31.48764 ,74.14706),new google.maps.LatLng(30.74046 ,75.08457),new google.maps.LatLng(30.75135 ,75.25922),new google.maps.LatLng(31.54644 ,73.40759),new google.maps.LatLng(32.10367 ,73.70415),new google.maps.LatLng(32.38585 ,74.41977),new google.maps.LatLng(30.79973 ,73.84541),new google.maps.LatLng(31.14345 ,73.56553),new google.maps.LatLng(32.21915 ,73.68451),new google.maps.LatLng(32.15563 ,74.72753),new google.maps.LatLng(30.73155 ,74.91242),new google.maps.LatLng(31.60034 ,74.22097),new google.maps.LatLng(30.94711 ,74.40879),new google.maps.LatLng(32.31118 ,74.19388),new google.maps.LatLng(31.25280 ,75.40771),new google.maps.LatLng(30.90277 ,73.63607),new google.maps.LatLng(32.03716 ,73.36103),new google.maps.LatLng(32.25093 ,74.61393),new google.maps.LatLng(30.47707 ,74.46936),new google.maps.LatLng(31.60914 ,73.17561),new google.maps.LatLng(32.33664 ,74.41763),new google.maps.LatLng(32.62944 ,74.61197),new google.maps.LatLng(31.16511 ,75.00857),new google.maps.LatLng(31.50357 ,74.21160),new google.maps.LatLng(31.56527 ,73.53265),new google.maps.LatLng(32.28700 ,74.66972),new google.maps.LatLng(32.56553 ,74.11946),new google.maps.LatLng(31.03893 ,73.53240),new google.maps.LatLng(30.98428 ,73.60355),new google.maps.LatLng(31.36269 ,74.27584),new google.maps.LatLng(32.06990 ,74.26098),new google.maps.LatLng(31.45094 ,73.51761),new google.maps.LatLng(32.40223 ,73.85081),new google.maps.LatLng(30.91076 ,74.62939),new google.maps.LatLng(30.66207 ,75.12750),new google.maps.LatLng(31.38790 ,75.31560),new google.maps.LatLng(32.35801 ,74.72489),new google.maps.LatLng(32.22860 ,74.31654),new google.maps.LatLng(31.05550 ,74.29694),new google.maps.LatLng(30.52096 ,74.14403),new google.maps.LatLng(30.62685 ,74.56273),new google.maps.LatLng(30.63067 ,74.93021),new google.maps.LatLng(30.97676 ,74.78169),new google.maps.LatLng(32.04075 ,75.05141),new google.maps.LatLng(31.99676 ,74.36618),new google.maps.LatLng(31.91794 ,74.33021),new google.maps.LatLng(31.99948 ,74.86332),new google.maps.LatLng(31.29456 ,75.29129),new google.maps.LatLng(31.43983 ,74.67374),new google.maps.LatLng(30.83408 ,74.86956),new google.maps.LatLng(31.87926 ,74.97236),new google.maps.LatLng(31.89759 ,73.62284),new google.maps.LatLng(30.84124 ,73.95058),new google.maps.LatLng(30.76104 ,73.63858),new google.maps.LatLng(30.48365 ,73.91567),new google.maps.LatLng(32.53928 ,74.61814),new google.maps.LatLng(31.77136 ,73.66211),new google.maps.LatLng(30.55722 ,73.69383),new google.maps.LatLng(31.79631 ,75.35678),new google.maps.LatLng(31.67859 ,74.55579),new google.maps.LatLng(32.50226 ,73.85355),new google.maps.LatLng(30.76111 ,74.19943),new google.maps.LatLng(30.64082 ,75.13378),new google.maps.LatLng(32.15846 ,74.50248),new google.maps.LatLng(31.52468 ,74.25996),new google.maps.LatLng(31.51311 ,75.46438),new google.maps.LatLng(31.73255 ,75.15955),new google.maps.LatLng(30.34346 ,74.61971),new google.maps.LatLng(30.78133 ,75.20492),new google.maps.LatLng(31.88127 ,74.25183),new google.maps.LatLng(31.84330 ,74.75376),new google.maps.LatLng(30.91759 ,74.93942),new google.maps.LatLng(30.77456 ,75.14625),new google.maps.LatLng(30.73166 ,74.70810),new google.maps.LatLng(31.54583 ,74.02128),new google.maps.LatLng(30.84133 ,73.81906),new google.maps.LatLng(31.06459 ,75.19034),new google.maps.LatLng(32.45128 ,74.94674),new google.maps.LatLng(32.16972 ,75.28701),new google.maps.LatLng(31.19426 ,73.59177),new google.maps.LatLng(32.70001 ,74.18869),new google.maps.LatLng(31.38813 ,73.63563),new google.maps.LatLng(31.95896 ,74.74453),new google.maps.LatLng(30.61698 ,73.81867),new google.maps.LatLng(31.52867 ,73.80777),new google.maps.LatLng(31.04108 ,74.70094),new google.maps.LatLng(32.01876 ,75.36331),new google.maps.LatLng(30.62117 ,73.63647),new google.maps.LatLng(31.83438 ,74.13681),new google.maps.LatLng(30.95208 ,73.73493),new google.maps.LatLng(30.76857 ,73.99573),new google.maps.LatLng(31.83937 ,73.35739),new google.maps.LatLng(31.44303 ,75.14054),new google.maps.LatLng(31.98321 ,74.51246),new google.maps.LatLng(32.27945 ,73.59541),new google.maps.LatLng(31.61260 ,73.86637),new google.maps.LatLng(31.60146 ,73.51781),new google.maps.LatLng(30.99393 ,74.68393),new google.maps.LatLng(31.05328 ,74.74167),new google.maps.LatLng(32.09343 ,73.99790),new google.maps.LatLng(30.56624 ,73.87938),new google.maps.LatLng(31.95648 ,74.80982),new google.maps.LatLng(31.58916 ,73.74024),new google.maps.LatLng(31.15212 ,74.32398),new google.maps.LatLng(31.51264 ,73.50142),new google.maps.LatLng(31.59415 ,74.36227),new google.maps.LatLng(32.00909 ,74.63656),new google.maps.LatLng(31.89326 ,73.90110),new google.maps.LatLng(32.58967 ,74.41097),new google.maps.LatLng(31.04295 ,74.56700),new google.maps.LatLng(31.67414 ,74.96299),new google.maps.LatLng(30.84288 ,73.36104),new google.maps.LatLng(31.24074 ,74.68832),new google.maps.LatLng(32.10154 ,73.80748),new google.maps.LatLng(30.73020 ,74.58350),new google.maps.LatLng(30.55515 ,74.57790),new google.maps.LatLng(30.78045 ,74.55774),new google.maps.LatLng(32.33377 ,74.30786),new google.maps.LatLng(30.73967 ,73.58450),new google.maps.LatLng(31.10614 ,73.80906),new google.maps.LatLng(30.95605 ,74.83417),new google.maps.LatLng(31.13885 ,74.93016),new google.maps.LatLng(31.24648 ,75.26839),new google.maps.LatLng(30.77535 ,74.39021),new google.maps.LatLng(30.73739 ,74.71346),new google.maps.LatLng(30.96409 ,74.03086),new google.maps.LatLng(32.27262 ,75.19237),new google.maps.LatLng(31.91484 ,74.46534),new google.maps.LatLng(31.19087 ,75.38397),new google.maps.LatLng(31.44602 ,75.31012),new google.maps.LatLng(31.37227 ,74.01734),new google.maps.LatLng(30.61297 ,74.31182),new google.maps.LatLng(31.67607 ,73.24633),new google.maps.LatLng(30.61301 ,73.94630),new google.maps.LatLng(31.23754 ,73.23934),new google.maps.LatLng(31.75992 ,75.11858),new google.maps.LatLng(30.67539 ,73.87813),new google.maps.LatLng(32.13632 ,73.99754),new google.maps.LatLng(32.49861 ,74.94701),new google.maps.LatLng(31.80775 ,73.95164),new google.maps.LatLng(32.16076 ,74.86468),new google.maps.LatLng(30.46430 ,74.24401),new google.maps.LatLng(32.39532 ,73.78667),new google.maps.LatLng(31.74423 ,73.30341),new google.maps.LatLng(30.83926 ,74.51207),new google.maps.LatLng(30.64214 ,73.60871),new google.maps.LatLng(30.77006 ,74.55845),new google.maps.LatLng(31.09280 ,73.80084),new google.maps.LatLng(31.37203 ,74.66509),new google.maps.LatLng(30.92792 ,75.16700),new google.maps.LatLng(30.46998 ,73.95854),new google.maps.LatLng(30.44830 ,73.87252),new google.maps.LatLng(31.47856 ,73.71013),new google.maps.LatLng(31.73431 ,74.72662),new google.maps.LatLng(32.36010 ,74.82169),new google.maps.LatLng(30.96686 ,74.79735),new google.maps.LatLng(30.78448 ,74.42892),new google.maps.LatLng(32.16561 ,74.04104),new google.maps.LatLng(31.72169 ,74.10839),new google.maps.LatLng(31.46228 ,73.88157),new google.maps.LatLng(31.46037 ,73.69181),new google.maps.LatLng(32.13062 ,75.21679),new google.maps.LatLng(32.41696 ,73.90705),new google.maps.LatLng(30.83085 ,74.24468),new google.maps.LatLng(30.80238 ,73.42815),new google.maps.LatLng(31.15455 ,74.78723),new google.maps.LatLng(31.90732 ,74.66361),new google.maps.LatLng(31.41953 ,74.55977),new google.maps.LatLng(31.62342 ,74.46647),new google.maps.LatLng(31.74772 ,74.62158),new google.maps.LatLng(30.72180 ,75.22963),new google.maps.LatLng(31.10877 ,74.74407),new google.maps.LatLng(30.99780 ,73.68537),new google.maps.LatLng(30.44594 ,74.69709),new google.maps.LatLng(31.73673 ,73.37301),new google.maps.LatLng(32.66526 ,74.16310),new google.maps.LatLng(32.51187 ,73.76026),new google.maps.LatLng(31.18510 ,75.38465),new google.maps.LatLng(31.55768 ,74.98582),new google.maps.LatLng(30.91266 ,75.26360),new google.maps.LatLng(31.81130 ,74.82855),new google.maps.LatLng(30.77733 ,73.82354),new google.maps.LatLng(32.06884 ,73.71134),new google.maps.LatLng(31.54187 ,73.85810),new google.maps.LatLng(30.81660 ,74.52355),new google.maps.LatLng(31.23952 ,73.40471),new google.maps.LatLng(32.40611 ,74.76194),new google.maps.LatLng(30.48087 ,73.77231),new google.maps.LatLng(31.74276 ,74.51236),new google.maps.LatLng(32.61448 ,74.64202),new google.maps.LatLng(31.58349 ,74.98465),new google.maps.LatLng(30.83752 ,73.59511),new google.maps.LatLng(31.31512 ,74.21587),new google.maps.LatLng(31.64019 ,75.43195),new google.maps.LatLng(31.30092 ,75.32101),new google.maps.LatLng(31.99873 ,73.94515),new google.maps.LatLng(31.99268 ,73.53311),new google.maps.LatLng(32.07454 ,74.47235),new google.maps.LatLng(32.06001 ,73.64273),new google.maps.LatLng(31.73895 ,74.24646),new google.maps.LatLng(32.54577 ,74.81064),new google.maps.LatLng(30.97176 ,74.66761),new google.maps.LatLng(30.44398 ,74.51345),new google.maps.LatLng(31.02936 ,74.93396),new google.maps.LatLng(31.76937 ,74.88180),new google.maps.LatLng(31.41998 ,74.81062),new google.maps.LatLng(32.24099 ,74.72380),new google.maps.LatLng(32.51407 ,73.83919),new google.maps.LatLng(31.67431 ,74.72107),new google.maps.LatLng(30.51869 ,74.93108),new google.maps.LatLng(30.91205 ,74.98741),new google.maps.LatLng(31.88913 ,74.35359),new google.maps.LatLng(30.49766 ,74.42889),new google.maps.LatLng(31.40384 ,73.82801),new google.maps.LatLng(32.04619 ,74.68467),new google.maps.LatLng(32.08170 ,74.66886),new google.maps.LatLng(30.55128 ,74.46615),new google.maps.LatLng(31.42708 ,75.56128),new google.maps.LatLng(31.35139 ,75.02033),new google.maps.LatLng(30.90970 ,74.08948),new google.maps.LatLng(31.86047 ,74.87965),new google.maps.LatLng(32.41812 ,74.78924),new google.maps.LatLng(30.31497 ,74.36212),new google.maps.LatLng(31.47477 ,73.35861),new google.maps.LatLng(30.50082 ,73.75111),new google.maps.LatLng(31.99316 ,74.80032),new google.maps.LatLng(31.79406 ,74.73699),new google.maps.LatLng(31.30180 ,73.91822),new google.maps.LatLng(30.91659 ,73.40714),new google.maps.LatLng(30.89067 ,75.16719),new google.maps.LatLng(30.41362 ,74.38428),new google.maps.LatLng(31.45677 ,73.38401),new google.maps.LatLng(31.04115 ,75.04041),new google.maps.LatLng(31.90316 ,75.20332),new google.maps.LatLng(30.92070 ,75.22069),new google.maps.LatLng(31.86082 ,74.14112),new google.maps.LatLng(32.41943 ,74.62782),new google.maps.LatLng(32.30674 ,73.72713),new google.maps.LatLng(31.83271 ,73.80094),new google.maps.LatLng(31.64667 ,74.00536),new google.maps.LatLng(31.41657 ,75.50391),new google.maps.LatLng(32.06407 ,74.95064),new google.maps.LatLng(31.30904 ,75.21757),new google.maps.LatLng(30.96030 ,73.86519),new google.maps.LatLng(31.09858 ,73.35356),new google.maps.LatLng(31.77561 ,75.00452),new google.maps.LatLng(30.97538 ,74.06852),new google.maps.LatLng(32.11765 ,74.54047),new google.maps.LatLng(30.50243 ,73.74672),new google.maps.LatLng(32.39600 ,73.86641),new google.maps.LatLng(31.27630 ,74.32095),new google.maps.LatLng(31.15464 ,74.79557),new google.maps.LatLng(31.61744 ,73.94908),new google.maps.LatLng(30.90174 ,74.40801),new google.maps.LatLng(31.03816 ,74.56847),new google.maps.LatLng(30.88304 ,73.70630),new google.maps.LatLng(31.85109 ,74.78534),new google.maps.LatLng(32.40762 ,73.88443),new google.maps.LatLng(30.75604 ,74.59021),new google.maps.LatLng(32.65079 ,74.45037),new google.maps.LatLng(31.31508 ,74.69873),new google.maps.LatLng(31.33913 ,75.56640),new google.maps.LatLng(30.71370 ,73.70994),new google.maps.LatLng(32.04519 ,74.21815),new google.maps.LatLng(32.39647 ,74.37583),new google.maps.LatLng(32.67531 ,74.11487),new google.maps.LatLng(32.24243 ,74.73102),new google.maps.LatLng(32.28243 ,73.47997),new google.maps.LatLng(32.29498 ,74.36423),new google.maps.LatLng(31.24834 ,73.48061),new google.maps.LatLng(31.14831 ,74.23035),new google.maps.LatLng(31.28908 ,73.65246),new google.maps.LatLng(30.81479 ,74.20202),new google.maps.LatLng(31.61685 ,75.07580),new google.maps.LatLng(30.79102 ,73.68881),new google.maps.LatLng(31.51951 ,73.19643),new google.maps.LatLng(30.66722 ,73.55754),new google.maps.LatLng(30.85294 ,73.39800),new google.maps.LatLng(32.40297 ,73.68912),new google.maps.LatLng(31.47194 ,75.52446),new google.maps.LatLng(31.24829 ,75.25934),new google.maps.LatLng(30.70371 ,74.45920),new google.maps.LatLng(31.65555 ,73.68399),new google.maps.LatLng(31.79474 ,74.32234),new google.maps.LatLng(30.62631 ,75.05785),new google.maps.LatLng(32.25768 ,75.16732),new google.maps.LatLng(32.29054 ,74.93243),new google.maps.LatLng(31.10103 ,73.70384),new google.maps.LatLng(30.82014 ,74.55980),new google.maps.LatLng(31.69957 ,73.90102),new google.maps.LatLng(32.35437 ,74.19854),new google.maps.LatLng(31.96236 ,75.30162),new google.maps.LatLng(32.14989 ,73.92273),new google.maps.LatLng(31.18977 ,74.23098),new google.maps.LatLng(31.39714 ,73.17538),new google.maps.LatLng(30.94062 ,75.29596),new google.maps.LatLng(30.48782 ,73.84519),new google.maps.LatLng(31.62190 ,73.19267),new google.maps.LatLng(32.21537 ,74.37312),new google.maps.LatLng(31.21850 ,73.59625),new google.maps.LatLng(31.54213 ,74.80467),new google.maps.LatLng(31.04016 ,74.83796),new google.maps.LatLng(31.15180 ,73.88940),new google.maps.LatLng(30.82423 ,73.90540),new google.maps.LatLng(30.38523 ,74.76590),new google.maps.LatLng(31.15543 ,73.96332),new google.maps.LatLng(31.88986 ,73.96531),new google.maps.LatLng(31.56151 ,74.19544),new google.maps.LatLng(30.98241 ,74.00662),new google.maps.LatLng(32.18810 ,73.44136),new google.maps.LatLng(32.11659 ,74.69201),new google.maps.LatLng(31.15156 ,74.08753),new google.maps.LatLng(31.90830 ,74.08226),new google.maps.LatLng(31.27910 ,75.40658),new google.maps.LatLng(31.85985 ,75.46602),new google.maps.LatLng(32.50851 ,74.09336),new google.maps.LatLng(31.20702 ,73.20741),new google.maps.LatLng(31.14752 ,75.41511),new google.maps.LatLng(30.96417 ,75.30250),new google.maps.LatLng(30.75117 ,74.12962),new google.maps.LatLng(31.17977 ,73.49204),new google.maps.LatLng(31.01206 ,74.25604),new google.maps.LatLng(30.88107 ,73.50472),new google.maps.LatLng(32.18977 ,73.82740),new google.maps.LatLng(31.45658 ,74.66059),new google.maps.LatLng(31.15375 ,73.86824),new google.maps.LatLng(32.14194 ,74.81856),new google.maps.LatLng(31.39060 ,75.32920),new google.maps.LatLng(32.31233 ,73.83301),new google.maps.LatLng(31.98756 ,74.04970),new google.maps.LatLng(30.87956 ,73.33473),new google.maps.LatLng(32.28604 ,74.05631),new google.maps.LatLng(31.40430 ,74.08001),new google.maps.LatLng(31.14141 ,75.03311),new google.maps.LatLng(31.09696 ,75.28262),new google.maps.LatLng(31.12167 ,73.35557),new google.maps.LatLng(31.16887 ,73.68763),new google.maps.LatLng(30.79093 ,74.84506),new google.maps.LatLng(30.61063 ,75.01053),new google.maps.LatLng(31.12953 ,74.94747),new google.maps.LatLng(31.01670 ,75.31959),new google.maps.LatLng(31.09366 ,73.95176),new google.maps.LatLng(31.11062 ,74.79384),new google.maps.LatLng(31.58772 ,74.24210),new google.maps.LatLng(32.60066 ,74.68818),new google.maps.LatLng(30.78187 ,73.99385),new google.maps.LatLng(31.78253 ,74.91427),new google.maps.LatLng(32.39167 ,74.64467),new google.maps.LatLng(31.40558 ,74.30440),new google.maps.LatLng(30.63338 ,73.74233),new google.maps.LatLng(31.60157 ,73.67987),new google.maps.LatLng(31.56886 ,73.56263),new google.maps.LatLng(31.09968 ,74.05198),new google.maps.LatLng(31.24254 ,74.22073),new google.maps.LatLng(30.66511 ,74.30796),new google.maps.LatLng(30.63622 ,74.29278),new google.maps.LatLng(31.00954 ,74.01098),new google.maps.LatLng(31.91526 ,74.70518),new google.maps.LatLng(31.35163 ,73.68965),new google.maps.LatLng(30.91811 ,75.04219),new google.maps.LatLng(31.47625 ,74.99700),new google.maps.LatLng(31.70534 ,74.52165),new google.maps.LatLng(31.82907 ,73.34727),new google.maps.LatLng(32.45182 ,74.10772),new google.maps.LatLng(32.48327 ,74.87441),new google.maps.LatLng(30.63276 ,74.24539),new google.maps.LatLng(30.96245 ,74.99870),new google.maps.LatLng(31.62135 ,75.11546),new google.maps.LatLng(30.53347 ,74.98794),new google.maps.LatLng(31.41969 ,73.89921),new google.maps.LatLng(32.13682 ,75.30749),new google.maps.LatLng(31.64697 ,73.32924),new google.maps.LatLng(32.16092 ,74.63401),new google.maps.LatLng(30.62846 ,73.76425),new google.maps.LatLng(32.03291 ,75.23109),new google.maps.LatLng(31.43213 ,73.16175),new google.maps.LatLng(31.78526 ,73.80550),new google.maps.LatLng(31.08310 ,74.91494),new google.maps.LatLng(30.52749 ,74.51823),new google.maps.LatLng(31.65847 ,73.28365),new google.maps.LatLng(31.60258 ,73.93503),new google.maps.LatLng(32.49431 ,74.10270),new google.maps.LatLng(30.50561 ,74.21067),new google.maps.LatLng(30.57468 ,74.81573),new google.maps.LatLng(31.64519 ,75.29658),new google.maps.LatLng(31.01835 ,73.78192),new google.maps.LatLng(31.81574 ,73.95404),new google.maps.LatLng(31.10658 ,73.77664),new google.maps.LatLng(31.96864 ,74.89795),new google.maps.LatLng(30.67143 ,74.13045),new google.maps.LatLng(31.38712 ,74.47428),new google.maps.LatLng(31.34872 ,73.30660),new google.maps.LatLng(31.42133 ,75.16566),new google.maps.LatLng(32.35522 ,73.94031),new google.maps.LatLng(32.51597 ,74.66014),new google.maps.LatLng(31.22802 ,74.99799),new google.maps.LatLng(32.26760 ,73.57674),new google.maps.LatLng(31.41019 ,74.61715),new google.maps.LatLng(31.04707 ,75.22274),new google.maps.LatLng(30.35884 ,74.13490),new google.maps.LatLng(30.96829 ,74.29867),new google.maps.LatLng(30.88460 ,75.22007),new google.maps.LatLng(30.67164 ,74.11801),new google.maps.LatLng(31.52907 ,74.39829),new google.maps.LatLng(30.67400 ,74.81173),new google.maps.LatLng(30.45369 ,74.34783),new google.maps.LatLng(32.48126 ,74.37471),new google.maps.LatLng(30.75829 ,73.67989),new google.maps.LatLng(30.92394 ,74.89921),new google.maps.LatLng(30.32584 ,74.44465),new google.maps.LatLng(31.05107 ,75.11197),new google.maps.LatLng(32.21121 ,73.53732),new google.maps.LatLng(31.20660 ,74.45997),new google.maps.LatLng(30.62468 ,74.50827),new google.maps.LatLng(31.59001 ,73.90089),new google.maps.LatLng(32.38836 ,73.64237),new google.maps.LatLng(31.74914 ,74.09383),new google.maps.LatLng(30.73709 ,73.95129),new google.maps.LatLng(32.35300 ,74.17099),new google.maps.LatLng(31.97802 ,74.15623),new google.maps.LatLng(31.79867 ,74.38518),new google.maps.LatLng(31.99306 ,74.12770),new google.maps.LatLng(30.89781 ,74.26030),new google.maps.LatLng(30.88550 ,75.34410),new google.maps.LatLng(30.59675 ,73.99070),new google.maps.LatLng(31.73281 ,74.92179),new google.maps.LatLng(31.50943 ,73.48789),new google.maps.LatLng(31.29909 ,73.32822),new google.maps.LatLng(30.48803 ,74.49781),new google.maps.LatLng(30.99148 ,74.15060),new google.maps.LatLng(32.32984 ,74.02033),new google.maps.LatLng(31.23970 ,73.79515),new google.maps.LatLng(32.13908 ,74.17856),new google.maps.LatLng(31.53107 ,73.44378),new google.maps.LatLng(31.82309 ,75.51535),new google.maps.LatLng(31.42406 ,73.27932),new google.maps.LatLng(31.61826 ,73.74080),new google.maps.LatLng(30.91606 ,74.10898),new google.maps.LatLng(31.56043 ,75.52288),new google.maps.LatLng(32.37374 ,74.21180),new google.maps.LatLng(30.76260 ,74.98860),new google.maps.LatLng(32.36919 ,74.37053),new google.maps.LatLng(32.10449 ,74.11349),new google.maps.LatLng(30.68223 ,73.86286),new google.maps.LatLng(31.89015 ,74.23708),new google.maps.LatLng(30.48598 ,74.53559),new google.maps.LatLng(30.58722 ,74.32015),new google.maps.LatLng(32.07195 ,73.40641),new google.maps.LatLng(32.24799 ,74.76272),new google.maps.LatLng(31.95008 ,73.54696),new google.maps.LatLng(31.05883 ,75.20612),new google.maps.LatLng(30.62621 ,74.58844),new google.maps.LatLng(30.85932 ,73.77725),new google.maps.LatLng(30.47874 ,73.96227),new google.maps.LatLng(31.24958 ,75.09043),new google.maps.LatLng(32.03806 ,75.19343),new google.maps.LatLng(31.88780 ,73.70804),new google.maps.LatLng(30.96055 ,73.38300),new google.maps.LatLng(30.75633 ,74.87063),new google.maps.LatLng(31.40742 ,75.28422),new google.maps.LatLng(31.90326 ,74.83106),new google.maps.LatLng(32.15524 ,73.51077),new google.maps.LatLng(31.39096 ,75.05204),new google.maps.LatLng(30.78290 ,74.80388),new google.maps.LatLng(32.25399 ,74.25370),new google.maps.LatLng(31.25013 ,73.79747),new google.maps.LatLng(31.23505 ,74.71909),new google.maps.LatLng(31.27556 ,74.68880),new google.maps.LatLng(32.27962 ,75.15018),new google.maps.LatLng(31.70573 ,74.79759),new google.maps.LatLng(31.97065 ,73.68727),new google.maps.LatLng(31.16989 ,74.61260),new google.maps.LatLng(31.26502 ,74.89765),new google.maps.LatLng(32.08114 ,73.84262),new google.maps.LatLng(30.94030 ,74.99123),new google.maps.LatLng(31.26869 ,75.36526),new google.maps.LatLng(30.41974 ,74.73259),new google.maps.LatLng(31.75080 ,73.59308),new google.maps.LatLng(32.03183 ,75.41539),new google.maps.LatLng(30.98542 ,75.18165),new google.maps.LatLng(32.13594 ,74.25464),new google.maps.LatLng(31.46940 ,73.46074),new google.maps.LatLng(32.37691 ,74.55888),new google.maps.LatLng(31.32192 ,75.05626),new google.maps.LatLng(31.98309 ,75.07329),new google.maps.LatLng(30.78156 ,73.56558),new google.maps.LatLng(31.74832 ,74.40540),new google.maps.LatLng(32.00949 ,73.79400),new google.maps.LatLng(30.74269 ,74.76952),new google.maps.LatLng(31.14447 ,74.92009),new google.maps.LatLng(31.49410 ,73.76471),new google.maps.LatLng(31.72203 ,74.29007),new google.maps.LatLng(30.61297 ,74.99591),new google.maps.LatLng(31.88569 ,74.33193),new google.maps.LatLng(31.69376 ,75.54934),new google.maps.LatLng(30.54404 ,74.90847),new google.maps.LatLng(31.75390 ,73.57120),new google.maps.LatLng(30.83775 ,74.21770),new google.maps.LatLng(30.64221 ,74.79260),new google.maps.LatLng(30.33933 ,74.38275),new google.maps.LatLng(30.92138 ,74.62548),new google.maps.LatLng(31.14949 ,75.31667),new google.maps.LatLng(31.51163 ,73.40616),new google.maps.LatLng(31.34175 ,74.61558),new google.maps.LatLng(32.00224 ,74.99800),new google.maps.LatLng(31.28090 ,74.85600),new google.maps.LatLng(31.04171 ,73.83928),new google.maps.LatLng(31.47282 ,73.37956),new google.maps.LatLng(31.24220 ,75.46037),new google.maps.LatLng(31.35588 ,75.49143),new google.maps.LatLng(31.42542 ,75.26591),new google.maps.LatLng(31.74381 ,74.40834),new google.maps.LatLng(31.22455 ,74.82496),new google.maps.LatLng(32.14920 ,73.91550),new google.maps.LatLng(31.82000 ,74.72831),new google.maps.LatLng(31.37541 ,73.46192),new google.maps.LatLng(30.86337 ,74.05034),new google.maps.LatLng(32.42116 ,74.49612),new google.maps.LatLng(31.75118 ,74.74245),new google.maps.LatLng(30.78709 ,74.87032),new google.maps.LatLng(31.84501 ,75.38437),new google.maps.LatLng(31.43259 ,75.42830),new google.maps.LatLng(32.27955 ,74.93484),new google.maps.LatLng(31.25514 ,73.65892),new google.maps.LatLng(31.09826 ,73.70540),new google.maps.LatLng(32.01625 ,73.42328),new google.maps.LatLng(32.05161 ,74.66409),new google.maps.LatLng(31.21085 ,73.28178),new google.maps.LatLng(32.50664 ,74.37125),new google.maps.LatLng(31.24580 ,74.74080),new google.maps.LatLng(30.42035 ,74.04591),new google.maps.LatLng(30.98355 ,75.38791),new google.maps.LatLng(31.35827 ,74.46249),new google.maps.LatLng(31.35203 ,75.38327),new google.maps.LatLng(32.27426 ,74.34851),new google.maps.LatLng(31.29307 ,75.52349),new google.maps.LatLng(30.62746 ,73.76215),new google.maps.LatLng(31.33311 ,75.27628),new google.maps.LatLng(32.62002 ,74.34185),new google.maps.LatLng(31.84301 ,74.25690),new google.maps.LatLng(31.07774 ,74.18537),new google.maps.LatLng(31.79081 ,74.54563),new google.maps.LatLng(31.24408 ,74.12216),new google.maps.LatLng(31.47898 ,73.49920),new google.maps.LatLng(31.88271 ,74.49541),new google.maps.LatLng(30.80316 ,73.74011),new google.maps.LatLng(31.19671 ,73.31851),new google.maps.LatLng(31.50905 ,74.28917),new google.maps.LatLng(30.37950 ,74.65252),new google.maps.LatLng(31.28084 ,73.78067),new google.maps.LatLng(32.30846 ,74.05507),new google.maps.LatLng(31.28670 ,73.44702),new google.maps.LatLng(31.40393 ,74.25573),new google.maps.LatLng(31.76413 ,73.25566),new google.maps.LatLng(31.62043 ,75.34217),new google.maps.LatLng(32.63039 ,74.64224),new google.maps.LatLng(31.86548 ,74.92790),new google.maps.LatLng(31.85923 ,75.51275),new google.maps.LatLng(31.77081 ,75.39773),new google.maps.LatLng(32.34970 ,74.83081),new google.maps.LatLng(32.01575 ,74.07026),new google.maps.LatLng(31.64735 ,73.81466),new google.maps.LatLng(30.46192 ,73.96369),new google.maps.LatLng(31.04037 ,74.17024),new google.maps.LatLng(30.93386 ,74.49479),new google.maps.LatLng(31.51456 ,74.49119),new google.maps.LatLng(31.29888 ,73.25731),new google.maps.LatLng(32.39671 ,74.28526),new google.maps.LatLng(31.95426 ,74.33132),new google.maps.LatLng(32.37245 ,74.25996),new google.maps.LatLng(32.53569 ,74.16610),new google.maps.LatLng(30.77873 ,74.52100),new google.maps.LatLng(32.01915 ,73.39819),new google.maps.LatLng(32.46825 ,74.14201),new google.maps.LatLng(31.91115 ,73.86837),new google.maps.LatLng(31.05807 ,74.31755),new google.maps.LatLng(31.20809 ,74.74654),new google.maps.LatLng(30.79619 ,73.87235),new google.maps.LatLng(31.84966 ,73.71923),new google.maps.LatLng(30.34027 ,74.39260),new google.maps.LatLng(32.19266 ,75.30850),new google.maps.LatLng(31.54504 ,74.69486),new google.maps.LatLng(32.43301 ,73.70487),new google.maps.LatLng(31.10145 ,73.57377),new google.maps.LatLng(30.73448 ,74.86835),new google.maps.LatLng(31.15016 ,74.69441),new google.maps.LatLng(32.40049 ,75.12940),new google.maps.LatLng(31.22049 ,74.55120),new google.maps.LatLng(31.28380 ,74.58191),new google.maps.LatLng(31.90125 ,75.32472),new google.maps.LatLng(32.57514 ,74.37480),new google.maps.LatLng(32.44941 ,75.04774),new google.maps.LatLng(31.32193 ,74.76340),new google.maps.LatLng(31.65588 ,73.68916),new google.maps.LatLng(31.81125 ,75.23087),new google.maps.LatLng(30.88582 ,73.58629),new google.maps.LatLng(32.57562 ,74.36171),new google.maps.LatLng(30.51244 ,73.89741),new google.maps.LatLng(32.08184 ,75.41816),new google.maps.LatLng(31.14338 ,73.77815),new google.maps.LatLng(32.08696 ,74.50224),new google.maps.LatLng(32.43923 ,74.07701),new google.maps.LatLng(31.21891 ,73.75906),new google.maps.LatLng(31.06636 ,74.52243),new google.maps.LatLng(31.30110 ,74.87449),new google.maps.LatLng(30.94337 ,73.88162),new google.maps.LatLng(30.58577 ,74.03594),new google.maps.LatLng(31.99374 ,73.35695),new google.maps.LatLng(32.15458 ,73.51076),new google.maps.LatLng(30.42623 ,73.97577),new google.maps.LatLng(31.88722 ,75.26810),new google.maps.LatLng(32.45106 ,74.00734),new google.maps.LatLng(31.16934 ,74.30316),new google.maps.LatLng(31.14541 ,73.92540),new google.maps.LatLng(30.86173 ,74.34359),new google.maps.LatLng(31.03689 ,74.88763),new google.maps.LatLng(31.44593 ,73.70861),new google.maps.LatLng(30.59915 ,74.45384),new google.maps.LatLng(32.34655 ,74.73932),new google.maps.LatLng(31.60403 ,73.65910),new google.maps.LatLng(32.13576 ,74.95946),new google.maps.LatLng(30.86351 ,73.74310),new google.maps.LatLng(32.08955 ,75.24705),new google.maps.LatLng(32.06298 ,73.63991),new google.maps.LatLng(31.70233 ,75.30724),new google.maps.LatLng(30.40127 ,74.54924),new google.maps.LatLng(31.73129 ,75.25203),new google.maps.LatLng(32.01829 ,73.78554),new google.maps.LatLng(30.58840 ,73.61077),new google.maps.LatLng(31.24237 ,75.41497),new google.maps.LatLng(31.60024 ,75.20755),new google.maps.LatLng(32.27733 ,73.45242),new google.maps.LatLng(31.41734 ,74.57944),new google.maps.LatLng(32.14457 ,73.33973),new google.maps.LatLng(31.34055 ,73.70617),new google.maps.LatLng(30.80186 ,74.24008),new google.maps.LatLng(31.63707 ,73.26666),new google.maps.LatLng(31.25684 ,73.39996),new google.maps.LatLng(32.20084 ,74.24701),new google.maps.LatLng(32.45787 ,74.08224),new google.maps.LatLng(31.70213 ,75.11580),new google.maps.LatLng(32.34192 ,74.37560),new google.maps.LatLng(30.76405 ,74.30482),new google.maps.LatLng(31.29193 ,73.62765),new google.maps.LatLng(32.27778 ,74.32045),new google.maps.LatLng(32.47819 ,74.76909),new google.maps.LatLng(31.85056 ,73.89728),new google.maps.LatLng(32.48184 ,74.76630),new google.maps.LatLng(31.38938 ,73.50935),new google.maps.LatLng(30.38874 ,74.70880),new google.maps.LatLng(31.64527 ,74.59878),new google.maps.LatLng(31.37338 ,73.86209),new google.maps.LatLng(30.37590 ,74.12531),new google.maps.LatLng(32.48415 ,74.77941),new google.maps.LatLng(30.97234 ,73.36429),new google.maps.LatLng(32.61820 ,74.02535),new google.maps.LatLng(30.92816 ,74.99180),new google.maps.LatLng(30.77454 ,73.41192),new google.maps.LatLng(30.98285 ,74.07768),new google.maps.LatLng(31.77424 ,75.38872),new google.maps.LatLng(30.56672 ,74.35017),new google.maps.LatLng(32.39576 ,74.65897),new google.maps.LatLng(30.87775 ,74.56121),new google.maps.LatLng(31.54552 ,74.23426),new google.maps.LatLng(31.18839 ,73.85850),new google.maps.LatLng(31.97086 ,73.87802),new google.maps.LatLng(30.80755 ,74.98411),new google.maps.LatLng(30.88519 ,73.60470),new google.maps.LatLng(31.51462 ,75.27004),new google.maps.LatLng(32.14911 ,74.49479),new google.maps.LatLng(32.25992 ,74.09742),new google.maps.LatLng(31.93376 ,73.96915),new google.maps.LatLng(30.55876 ,74.19809),new google.maps.LatLng(30.91242 ,74.80845),new google.maps.LatLng(32.33572 ,75.09322),new google.maps.LatLng(31.58449 ,74.95802),new google.maps.LatLng(31.27641 ,75.05561),new google.maps.LatLng(32.07744 ,73.33882),new google.maps.LatLng(30.93262 ,74.80242),new google.maps.LatLng(31.48293 ,74.35972),new google.maps.LatLng(30.40163 ,74.40556),new google.maps.LatLng(30.93750 ,75.35669),new google.maps.LatLng(30.86646 ,75.34384),new google.maps.LatLng(31.13979 ,74.19445),new google.maps.LatLng(31.27042 ,73.41861),new google.maps.LatLng(32.68076 ,74.18238),new google.maps.LatLng(30.94968 ,75.14282),new google.maps.LatLng(30.55477 ,74.16945),new google.maps.LatLng(31.52213 ,75.03942),new google.maps.LatLng(31.29427 ,75.54362),new google.maps.LatLng(31.35989 ,74.32699),new google.maps.LatLng(31.70771 ,73.52574),new google.maps.LatLng(30.58772 ,73.67293),new google.maps.LatLng(31.04679 ,74.73405),new google.maps.LatLng(32.30284 ,74.41217),new google.maps.LatLng(32.25345 ,73.55665),new google.maps.LatLng(30.86542 ,74.82630),new google.maps.LatLng(31.80054 ,73.38959),new google.maps.LatLng(32.04444 ,73.35039),new google.maps.LatLng(32.43036 ,74.14191),new google.maps.LatLng(31.56181 ,73.58345),new google.maps.LatLng(30.37449 ,74.73891),new google.maps.LatLng(31.77412 ,74.80038),new google.maps.LatLng(30.81756 ,75.21474),new google.maps.LatLng(30.76296 ,73.99357),new google.maps.LatLng(31.10360 ,74.37142),new google.maps.LatLng(30.96783 ,74.24166),new google.maps.LatLng(31.52396 ,74.14637),new google.maps.LatLng(31.21055 ,73.25307),new google.maps.LatLng(30.71813 ,73.77513),new google.maps.LatLng(30.34091 ,74.68258),new google.maps.LatLng(32.06680 ,74.21232),new google.maps.LatLng(30.79169 ,74.31848),new google.maps.LatLng(32.30634 ,74.20994),new google.maps.LatLng(31.10640 ,73.35336),new google.maps.LatLng(32.08594 ,73.79309),new google.maps.LatLng(31.73144 ,74.81920),new google.maps.LatLng(30.95392 ,75.17692),new google.maps.LatLng(32.13599 ,74.55631),new google.maps.LatLng(30.55500 ,73.95159),new google.maps.LatLng(30.94341 ,74.48592),new google.maps.LatLng(24.26449 ,66.96279),new google.maps.LatLng(23.95925 ,67.41337),new google.maps.LatLng(24.71842 ,68.32903),new google.maps.LatLng(24.15547 ,67.64528),new google.maps.LatLng(25.07214 ,67.67517),new google.maps.LatLng(25.46873 ,67.93618),new google.maps.LatLng(25.88843 ,67.61068),new google.maps.LatLng(24.53973 ,66.10874),new google.maps.LatLng(25.63125 ,66.95493),new google.maps.LatLng(25.68033 ,66.24694),new google.maps.LatLng(24.66672 ,65.80070),new google.maps.LatLng(25.59059 ,66.89441),new google.maps.LatLng(24.37546 ,66.60566),new google.maps.LatLng(24.18454 ,66.95425),new google.maps.LatLng(24.59749 ,66.20354),new google.maps.LatLng(24.29598 ,67.60943),new google.maps.LatLng(25.10731 ,66.94882),new google.maps.LatLng(24.54163 ,67.32153),new google.maps.LatLng(25.34090 ,67.70718),new google.maps.LatLng(24.64754 ,66.99591),new google.maps.LatLng(25.34290 ,67.80984),new google.maps.LatLng(24.71867 ,67.58166),new google.maps.LatLng(25.36653 ,66.05372),new google.maps.LatLng(24.78423 ,66.55563),new google.maps.LatLng(25.56132 ,67.48195),new google.maps.LatLng(24.82451 ,66.47963),new google.maps.LatLng(24.82805 ,66.24210),new google.maps.LatLng(25.28729 ,67.96561),new google.maps.LatLng(24.21093 ,66.01882),new google.maps.LatLng(24.06449 ,66.83890),new google.maps.LatLng(25.46587 ,67.82039),new google.maps.LatLng(25.11158 ,67.62139),new google.maps.LatLng(26.06328 ,67.29867),new google.maps.LatLng(25.59323 ,67.84315),new google.maps.LatLng(25.87601 ,66.95875),new google.maps.LatLng(25.89856 ,67.48788),new google.maps.LatLng(24.41949 ,66.43157),new google.maps.LatLng(24.24154 ,67.32815),new google.maps.LatLng(25.04367 ,67.43918),new google.maps.LatLng(25.40496 ,68.03859),new google.maps.LatLng(24.29814 ,66.87773),new google.maps.LatLng(24.16792 ,66.19216),new google.maps.LatLng(24.13569 ,66.95777),new google.maps.LatLng(26.02782 ,66.97363),new google.maps.LatLng(25.88025 ,66.51595),new google.maps.LatLng(23.84074 ,67.12060),new google.maps.LatLng(24.80702 ,67.85638),new google.maps.LatLng(25.27793 ,67.23571),new google.maps.LatLng(24.90129 ,67.00121),new google.maps.LatLng(24.17415 ,66.84572),new google.maps.LatLng(25.57527 ,65.98179),new google.maps.LatLng(23.94604 ,67.61988),new google.maps.LatLng(25.14952 ,68.11455),new google.maps.LatLng(25.56994 ,66.30544),new google.maps.LatLng(25.12675 ,67.27824),new google.maps.LatLng(25.54670 ,66.47889),new google.maps.LatLng(26.03336 ,66.49960),new google.maps.LatLng(24.60154 ,68.05771),new google.maps.LatLng(24.24589 ,66.64358),new google.maps.LatLng(25.29505 ,67.70795),new google.maps.LatLng(25.62072 ,67.31604),new google.maps.LatLng(24.84736 ,66.45971),new google.maps.LatLng(24.60169 ,65.90655),new google.maps.LatLng(24.02985 ,67.45953),new google.maps.LatLng(24.96675 ,68.26771),new google.maps.LatLng(25.89025 ,67.31687),new google.maps.LatLng(24.45064 ,68.00931),new google.maps.LatLng(24.42106 ,66.66577),new google.maps.LatLng(25.45313 ,66.77861),new google.maps.LatLng(24.97971 ,66.55178),new google.maps.LatLng(24.09748 ,67.04100),new google.maps.LatLng(24.87224 ,66.23611),new google.maps.LatLng(25.06507 ,66.99427),new google.maps.LatLng(24.01168 ,66.55202),new google.maps.LatLng(24.20896 ,67.20022),new google.maps.LatLng(24.02687 ,66.58169),new google.maps.LatLng(25.09031 ,67.14460),new google.maps.LatLng(24.19824 ,67.42978),new google.maps.LatLng(24.46829 ,67.38380),new google.maps.LatLng(24.25237 ,66.82592),new google.maps.LatLng(23.66046 ,67.18663),new google.maps.LatLng(24.32172 ,66.69592),new google.maps.LatLng(24.52231 ,67.48955),new google.maps.LatLng(23.69044 ,67.16976),new google.maps.LatLng(25.62434 ,67.51106),new google.maps.LatLng(25.81197 ,67.54268),new google.maps.LatLng(24.11544 ,67.63735),new google.maps.LatLng(25.46882 ,66.43617),new google.maps.LatLng(23.67939 ,66.86716),new google.maps.LatLng(24.12591 ,66.94048),new google.maps.LatLng(23.91204 ,67.19177),new google.maps.LatLng(25.15524 ,66.23533),new google.maps.LatLng(24.11562 ,67.44929),new google.maps.LatLng(24.34547 ,67.05403),new google.maps.LatLng(24.27060 ,66.69695),new google.maps.LatLng(25.81987 ,66.29999),new google.maps.LatLng(24.22045 ,67.97746),new google.maps.LatLng(24.43696 ,67.13113),new google.maps.LatLng(25.90733 ,67.63963),new google.maps.LatLng(24.32206 ,68.12912),new google.maps.LatLng(23.85975 ,66.91766),new google.maps.LatLng(24.69660 ,65.92529),new google.maps.LatLng(24.67425 ,65.87032),new google.maps.LatLng(24.18189 ,67.29937),new google.maps.LatLng(25.57313 ,66.22944),new google.maps.LatLng(26.22864 ,67.25486),new google.maps.LatLng(24.80657 ,67.24108),new google.maps.LatLng(25.05085 ,67.77280),new google.maps.LatLng(26.09322 ,66.61963),new google.maps.LatLng(23.98627 ,66.30340),new google.maps.LatLng(24.77578 ,66.65420),new google.maps.LatLng(24.62740 ,66.18519),new google.maps.LatLng(25.46381 ,66.27440),new google.maps.LatLng(25.40530 ,67.63976),new google.maps.LatLng(25.72888 ,66.99195),new google.maps.LatLng(23.82802 ,67.03859),new google.maps.LatLng(24.64385 ,67.76330),new google.maps.LatLng(25.86465 ,66.89679),new google.maps.LatLng(25.80481 ,66.61429),new google.maps.LatLng(24.79317 ,66.06320),new google.maps.LatLng(25.27338 ,67.45426),new google.maps.LatLng(23.96538 ,67.46759),new google.maps.LatLng(25.19857 ,68.25158),new google.maps.LatLng(24.68565 ,66.80371),new google.maps.LatLng(26.17150 ,66.66447),new google.maps.LatLng(25.95558 ,66.95164),new google.maps.LatLng(24.34447 ,67.08022),new google.maps.LatLng(25.99279 ,66.93706),new google.maps.LatLng(24.22440 ,66.10263),new google.maps.LatLng(25.33927 ,67.18849),new google.maps.LatLng(23.78875 ,66.68181),new google.maps.LatLng(24.28709 ,67.26555),new google.maps.LatLng(26.16039 ,67.45383),new google.maps.LatLng(24.54420 ,66.30996),new google.maps.LatLng(24.67982 ,67.77016),new google.maps.LatLng(24.36125 ,65.99055),new google.maps.LatLng(24.88746 ,67.21411),new google.maps.LatLng(25.17199 ,67.96833),new google.maps.LatLng(25.60107 ,66.36013),new google.maps.LatLng(25.71697 ,67.48035),new google.maps.LatLng(25.75997 ,66.26096),new google.maps.LatLng(25.96578 ,67.54040),new google.maps.LatLng(25.27519 ,65.83331),new google.maps.LatLng(24.99690 ,67.10342),new google.maps.LatLng(24.77283 ,67.49426),new google.maps.LatLng(24.66513 ,67.39968),new google.maps.LatLng(24.86614 ,66.35752),new google.maps.LatLng(25.97492 ,67.39765),new google.maps.LatLng(24.53536 ,67.03511),new google.maps.LatLng(25.28794 ,66.29836),new google.maps.LatLng(25.09166 ,65.77841),new google.maps.LatLng(25.30557 ,67.71133),new google.maps.LatLng(25.14860 ,65.89786),new google.maps.LatLng(24.80079 ,67.53749),new google.maps.LatLng(24.87365 ,68.35553),new google.maps.LatLng(25.71949 ,66.54702),new google.maps.LatLng(25.09175 ,68.21993),new google.maps.LatLng(24.91422 ,67.66433),new google.maps.LatLng(24.29673 ,66.37690),new google.maps.LatLng(24.92115 ,65.93721),new google.maps.LatLng(24.52506 ,66.88354),new google.maps.LatLng(25.93175 ,66.54511),new google.maps.LatLng(24.68985 ,66.42082),new google.maps.LatLng(24.26489 ,65.98116),new google.maps.LatLng(24.87507 ,65.80572),new google.maps.LatLng(25.37515 ,66.13205),new google.maps.LatLng(24.12903 ,66.74343),new google.maps.LatLng(25.79770 ,66.57162),new google.maps.LatLng(25.02579 ,66.32422),new google.maps.LatLng(25.54677 ,66.04257),new google.maps.LatLng(24.67047 ,67.11072),new google.maps.LatLng(25.46248 ,66.67894),new google.maps.LatLng(24.61331 ,67.62070),new google.maps.LatLng(24.45201 ,66.75864),new google.maps.LatLng(24.18202 ,66.16350),new google.maps.LatLng(26.10906 ,67.24310),new google.maps.LatLng(25.46542 ,66.55207),new google.maps.LatLng(23.88908 ,67.29332),new google.maps.LatLng(25.97620 ,67.83121),new google.maps.LatLng(25.37436 ,68.20993),new google.maps.LatLng(25.33829 ,66.95489),new google.maps.LatLng(25.56359 ,67.41884),new google.maps.LatLng(24.42424 ,65.90287),new google.maps.LatLng(26.19227 ,67.11573),new google.maps.LatLng(25.85166 ,67.86425),new google.maps.LatLng(23.98200 ,67.39010),new google.maps.LatLng(23.93925 ,67.06581),new google.maps.LatLng(24.56022 ,66.92456),new google.maps.LatLng(25.37909 ,67.77890),new google.maps.LatLng(23.81987 ,66.89129),new google.maps.LatLng(24.76033 ,67.19515),new google.maps.LatLng(24.55495 ,66.36025),new google.maps.LatLng(25.96861 ,66.81086),new google.maps.LatLng(24.72654 ,67.15701),new google.maps.LatLng(24.95486 ,66.14546),new google.maps.LatLng(25.55899 ,67.72960),new google.maps.LatLng(25.78477 ,66.40696),new google.maps.LatLng(25.22040 ,67.45466),new google.maps.LatLng(25.35549 ,68.06481),new google.maps.LatLng(24.88307 ,67.60674),new google.maps.LatLng(24.96454 ,66.98854),new google.maps.LatLng(24.47657 ,67.02582),new google.maps.LatLng(25.36146 ,66.06844),new google.maps.LatLng(25.30470 ,66.27964),new google.maps.LatLng(25.04096 ,67.72162),new google.maps.LatLng(24.59646 ,67.49054),new google.maps.LatLng(23.92464 ,66.50418),new google.maps.LatLng(25.51396 ,67.12098),new google.maps.LatLng(24.05328 ,67.22126),new google.maps.LatLng(24.42334 ,67.03101),new google.maps.LatLng(24.48781 ,66.33578),new google.maps.LatLng(23.95111 ,67.19983),new google.maps.LatLng(24.42398 ,66.92089),new google.maps.LatLng(25.55124 ,67.39075),new google.maps.LatLng(25.69162 ,67.93031),new google.maps.LatLng(26.05024 ,66.89258),new google.maps.LatLng(24.58786 ,66.58735),new google.maps.LatLng(24.60018 ,67.88810),new google.maps.LatLng(23.79381 ,67.50204),new google.maps.LatLng(23.95515 ,67.44118),new google.maps.LatLng(24.30756 ,67.46713),new google.maps.LatLng(24.65503 ,66.07388),new google.maps.LatLng(25.82646 ,67.64718),new google.maps.LatLng(24.80560 ,66.73186),new google.maps.LatLng(24.16957 ,66.58506),new google.maps.LatLng(25.70864 ,67.63808),new google.maps.LatLng(25.24213 ,66.32871),new google.maps.LatLng(24.27873 ,66.66268),new google.maps.LatLng(24.51119 ,67.25109),new google.maps.LatLng(25.21253 ,66.77458),new google.maps.LatLng(24.84503 ,67.61351),new google.maps.LatLng(23.89119 ,66.92199),new google.maps.LatLng(25.25486 ,67.71113),new google.maps.LatLng(24.48579 ,68.16258),new google.maps.LatLng(24.55613 ,66.09180),new google.maps.LatLng(25.82717 ,67.32411),new google.maps.LatLng(25.67085 ,67.97813),new google.maps.LatLng(23.65566 ,66.91816),new google.maps.LatLng(24.90910 ,68.04065),new google.maps.LatLng(24.72200 ,67.98518),new google.maps.LatLng(24.80430 ,65.80272),new google.maps.LatLng(25.14404 ,66.25053),new google.maps.LatLng(24.86834 ,65.84959),new google.maps.LatLng(24.77204 ,67.85793),new google.maps.LatLng(24.79696 ,66.18448),new google.maps.LatLng(24.28314 ,66.85663),new google.maps.LatLng(24.57901 ,66.64876),new google.maps.LatLng(25.90847 ,66.91004),new google.maps.LatLng(23.89734 ,67.16950),new google.maps.LatLng(23.97923 ,66.93817),new google.maps.LatLng(23.90981 ,66.29656),new google.maps.LatLng(25.72375 ,66.71823),new google.maps.LatLng(25.30876 ,66.03727),new google.maps.LatLng(25.00435 ,65.97608),new google.maps.LatLng(24.06926 ,67.07937),new google.maps.LatLng(26.07973 ,67.06845),new google.maps.LatLng(24.40974 ,66.37780),new google.maps.LatLng(25.65336 ,67.48067),new google.maps.LatLng(25.57696 ,67.14272),new google.maps.LatLng(24.09973 ,67.34322),new google.maps.LatLng(25.16823 ,67.83753),new google.maps.LatLng(26.05643 ,66.88986),new google.maps.LatLng(24.40639 ,66.20038),new google.maps.LatLng(24.64881 ,66.55445),new google.maps.LatLng(24.81884 ,66.25910),new google.maps.LatLng(24.51760 ,68.03174),new google.maps.LatLng(24.72044 ,65.79965),new google.maps.LatLng(23.96761 ,67.72612),new google.maps.LatLng(24.82479 ,67.02678),new google.maps.LatLng(23.91877 ,66.81162),new google.maps.LatLng(24.90512 ,67.32720),new google.maps.LatLng(25.33635 ,67.48105),new google.maps.LatLng(24.83386 ,67.07005),new google.maps.LatLng(24.75479 ,66.39732),new google.maps.LatLng(26.07905 ,66.69269),new google.maps.LatLng(25.03627 ,65.92178),new google.maps.LatLng(24.26925 ,67.04386),new google.maps.LatLng(24.54378 ,67.13794),new google.maps.LatLng(24.36882 ,66.96981),new google.maps.LatLng(25.71254 ,67.27749),new google.maps.LatLng(25.97869 ,67.11919),new google.maps.LatLng(24.79319 ,67.66109),new google.maps.LatLng(24.75497 ,67.86169),new google.maps.LatLng(25.21163 ,66.26770),new google.maps.LatLng(25.22139 ,68.12693),new google.maps.LatLng(26.04150 ,67.48895),new google.maps.LatLng(24.69703 ,67.31823),new google.maps.LatLng(25.13692 ,67.79314),new google.maps.LatLng(24.40339 ,66.59945),new google.maps.LatLng(25.16451 ,66.42371),new google.maps.LatLng(24.59811 ,66.85965),new google.maps.LatLng(25.61855 ,67.52528),new google.maps.LatLng(26.18185 ,67.03013),new google.maps.LatLng(24.67430 ,67.16072),new google.maps.LatLng(23.91023 ,66.63079),new google.maps.LatLng(25.80322 ,67.14701),new google.maps.LatLng(24.50184 ,66.57236),new google.maps.LatLng(25.20500 ,66.58622),new google.maps.LatLng(25.00978 ,65.93627),new google.maps.LatLng(24.54707 ,65.84658),new google.maps.LatLng(25.03363 ,68.23172),new google.maps.LatLng(25.18553 ,66.54879),new google.maps.LatLng(24.54476 ,66.62770),new google.maps.LatLng(24.83250 ,67.45429),new google.maps.LatLng(24.29521 ,66.16436),new google.maps.LatLng(24.09033 ,67.09868),new google.maps.LatLng(25.05916 ,66.76491),new google.maps.LatLng(24.48913 ,68.11059),new google.maps.LatLng(24.62799 ,68.00605),new google.maps.LatLng(25.27943 ,68.29898),new google.maps.LatLng(26.16048 ,66.64634),new google.maps.LatLng(24.89825 ,67.53798),new google.maps.LatLng(24.13203 ,67.90784),new google.maps.LatLng(25.09353 ,67.80079),new google.maps.LatLng(24.88868 ,66.99991),new google.maps.LatLng(24.75175 ,66.25886),new google.maps.LatLng(23.89074 ,67.54869),new google.maps.LatLng(25.38120 ,66.64280),new google.maps.LatLng(26.14843 ,67.13718),new google.maps.LatLng(23.85103 ,67.22443),new google.maps.LatLng(25.06214 ,67.71150),new google.maps.LatLng(24.02910 ,66.83739),new google.maps.LatLng(23.79180 ,66.90108),new google.maps.LatLng(24.25380 ,67.03394),new google.maps.LatLng(25.56217 ,66.22039),new google.maps.LatLng(25.52747 ,66.36317),new google.maps.LatLng(23.79338 ,66.47172),new google.maps.LatLng(24.12422 ,66.50021),new google.maps.LatLng(24.54582 ,66.16998),new google.maps.LatLng(24.66452 ,68.09222),new google.maps.LatLng(25.58364 ,65.95649),new google.maps.LatLng(24.82873 ,68.20799),new google.maps.LatLng(24.77993 ,66.45839),new google.maps.LatLng(25.51328 ,67.66670),new google.maps.LatLng(25.34293 ,66.96950),new google.maps.LatLng(25.14137 ,65.86577),new google.maps.LatLng(24.30406 ,66.56268),new google.maps.LatLng(23.74938 ,66.92111),new google.maps.LatLng(26.09069 ,66.58757),new google.maps.LatLng(24.76689 ,67.71431),new google.maps.LatLng(24.84882 ,68.34559),new google.maps.LatLng(24.14287 ,67.52055),new google.maps.LatLng(24.90154 ,66.81648),new google.maps.LatLng(26.12138 ,66.56264),new google.maps.LatLng(24.79985 ,67.78997),new google.maps.LatLng(25.11314 ,67.52670),new google.maps.LatLng(24.69782 ,65.82150),new google.maps.LatLng(23.73993 ,67.40975),new google.maps.LatLng(25.36039 ,66.64014),new google.maps.LatLng(25.40304 ,66.79658),new google.maps.LatLng(24.45134 ,66.25574),new google.maps.LatLng(23.80305 ,67.01550),new google.maps.LatLng(25.22419 ,67.42692),new google.maps.LatLng(24.59067 ,66.46130),new google.maps.LatLng(23.80015 ,66.49089),new google.maps.LatLng(24.36802 ,67.88620),new google.maps.LatLng(24.70077 ,66.13203),new google.maps.LatLng(25.76986 ,66.96115),new google.maps.LatLng(24.41551 ,66.23957),new google.maps.LatLng(24.68654 ,68.29332),new google.maps.LatLng(24.39540 ,67.18216),new google.maps.LatLng(24.39357 ,67.90542),new google.maps.LatLng(25.32659 ,66.96292),new google.maps.LatLng(24.50729 ,68.12994),new google.maps.LatLng(24.73245 ,66.36030),new google.maps.LatLng(24.12233 ,66.17990),new google.maps.LatLng(25.59338 ,66.79048),new google.maps.LatLng(25.08488 ,67.98949),new google.maps.LatLng(24.34413 ,67.86269),new google.maps.LatLng(25.88670 ,67.80451),new google.maps.LatLng(26.02263 ,66.55001),new google.maps.LatLng(25.57177 ,67.94217),new google.maps.LatLng(24.45296 ,67.80686),new google.maps.LatLng(26.01635 ,66.89505),new google.maps.LatLng(25.79393 ,66.45620),new google.maps.LatLng(24.81583 ,66.16650),new google.maps.LatLng(25.67275 ,67.37729),new google.maps.LatLng(24.93365 ,67.15023),new google.maps.LatLng(25.24050 ,68.06292),new google.maps.LatLng(25.35660 ,66.65745),new google.maps.LatLng(24.93145 ,66.07738),new google.maps.LatLng(25.68758 ,67.94545),new google.maps.LatLng(24.25443 ,67.04255),new google.maps.LatLng(25.55823 ,67.15687),new google.maps.LatLng(25.02400 ,66.30128),new google.maps.LatLng(25.10630 ,68.12097),new google.maps.LatLng(23.98979 ,66.72117),new google.maps.LatLng(25.62701 ,66.43012),new google.maps.LatLng(24.06316 ,67.24834),new google.maps.LatLng(24.05193 ,67.82720),new google.maps.LatLng(23.83573 ,67.65660),new google.maps.LatLng(25.00901 ,67.10482),new google.maps.LatLng(25.37907 ,66.05865),new google.maps.LatLng(23.86027 ,67.78618),new google.maps.LatLng(25.33033 ,68.29229),new google.maps.LatLng(24.75875 ,67.33292),new google.maps.LatLng(26.23279 ,67.02111),new google.maps.LatLng(24.23797 ,67.62836),new google.maps.LatLng(24.43760 ,67.52700),new google.maps.LatLng(25.25643 ,67.73027),new google.maps.LatLng(25.95147 ,67.65176),new google.maps.LatLng(25.61134 ,67.62622),new google.maps.LatLng(26.02555 ,66.99661),new google.maps.LatLng(24.10477 ,66.09551),new google.maps.LatLng(25.57286 ,68.01995),new google.maps.LatLng(25.58917 ,66.58552),new google.maps.LatLng(23.91157 ,67.44308),new google.maps.LatLng(24.63223 ,66.31945),new google.maps.LatLng(25.44286 ,66.72857),new google.maps.LatLng(25.67030 ,66.89791),new google.maps.LatLng(24.48657 ,66.61471),new google.maps.LatLng(24.24977 ,66.32987),new google.maps.LatLng(25.00589 ,67.80335),new google.maps.LatLng(25.57553 ,66.41644),new google.maps.LatLng(24.52912 ,65.85165),new google.maps.LatLng(24.53269 ,66.60785),new google.maps.LatLng(24.87835 ,67.89883),new google.maps.LatLng(26.03519 ,66.58674),new google.maps.LatLng(24.33969 ,67.01406),new google.maps.LatLng(24.91400 ,66.39911),new google.maps.LatLng(24.51744 ,66.26976),new google.maps.LatLng(24.85495 ,67.21168),new google.maps.LatLng(24.88974 ,67.80596),new google.maps.LatLng(25.68362 ,67.95588),new google.maps.LatLng(24.09628 ,67.56333),new google.maps.LatLng(25.71371 ,67.37876),new google.maps.LatLng(25.26268 ,67.19460),new google.maps.LatLng(24.32049 ,66.37834),new google.maps.LatLng(25.95069 ,66.85488),new google.maps.LatLng(25.30287 ,68.22114),new google.maps.LatLng(24.79773 ,66.66744),new google.maps.LatLng(24.13087 ,66.71209),new google.maps.LatLng(26.05206 ,67.40390),new google.maps.LatLng(25.98823 ,66.42298),new google.maps.LatLng(24.86081 ,66.05653),new google.maps.LatLng(23.89264 ,67.53943),new google.maps.LatLng(24.31186 ,66.98871),new google.maps.LatLng(25.06485 ,67.97302),new google.maps.LatLng(24.02197 ,66.30804),new google.maps.LatLng(25.03417 ,66.24879),new google.maps.LatLng(25.50903 ,68.05787),new google.maps.LatLng(24.16701 ,68.07932),new google.maps.LatLng(24.58056 ,67.20187),new google.maps.LatLng(23.81217 ,67.69218),new google.maps.LatLng(24.18384 ,68.09170),new google.maps.LatLng(25.78010 ,66.89971),new google.maps.LatLng(23.88227 ,66.65002),new google.maps.LatLng(24.63203 ,66.69104),new google.maps.LatLng(24.70512 ,68.24478),new google.maps.LatLng(24.53146 ,66.60496),new google.maps.LatLng(25.88016 ,67.96663),new google.maps.LatLng(23.66100 ,67.23653),new google.maps.LatLng(24.95954 ,67.82665),new google.maps.LatLng(25.56664 ,67.68697),new google.maps.LatLng(26.02894 ,66.59850),new google.maps.LatLng(25.17677 ,66.71928),new google.maps.LatLng(24.80922 ,65.82055),new google.maps.LatLng(25.68701 ,66.18807),new google.maps.LatLng(24.69886 ,67.07546),new google.maps.LatLng(24.14619 ,67.99061),new google.maps.LatLng(24.78117 ,66.11082),new google.maps.LatLng(23.93861 ,67.25299),new google.maps.LatLng(25.42482 ,67.27444),new google.maps.LatLng(24.21546 ,66.49136),new google.maps.LatLng(25.65067 ,66.58052),new google.maps.LatLng(25.18230 ,66.39069),new google.maps.LatLng(25.93184 ,67.29062),new google.maps.LatLng(24.62083 ,68.22225),new google.maps.LatLng(24.00704 ,66.64836),new google.maps.LatLng(24.52911 ,66.76617),new google.maps.LatLng(24.17622 ,66.18918),new google.maps.LatLng(24.94573 ,67.32707),new google.maps.LatLng(24.69356 ,65.81146),new google.maps.LatLng(25.04923 ,66.90520),new google.maps.LatLng(24.63286 ,66.91170),new google.maps.LatLng(25.07160 ,66.30602),new google.maps.LatLng(24.03647 ,66.69263),new google.maps.LatLng(25.38180 ,66.53040),new google.maps.LatLng(24.80521 ,66.06236),new google.maps.LatLng(25.33751 ,65.90508),new google.maps.LatLng(25.80830 ,66.11179),new google.maps.LatLng(24.90993 ,68.26864),new google.maps.LatLng(24.80496 ,67.20127),new google.maps.LatLng(25.72995 ,67.62404),new google.maps.LatLng(24.83177 ,66.60493),new google.maps.LatLng(23.72235 ,67.45455),new google.maps.LatLng(24.86777 ,66.49591),new google.maps.LatLng(25.02803 ,66.58753),new google.maps.LatLng(23.86311 ,67.36986),new google.maps.LatLng(23.68237 ,66.82490),new google.maps.LatLng(24.68349 ,65.90344),new google.maps.LatLng(23.85528 ,67.45970),new google.maps.LatLng(24.66014 ,67.99589),new google.maps.LatLng(24.39901 ,66.78560),new google.maps.LatLng(24.80591 ,67.51122),new google.maps.LatLng(24.81772 ,66.70629),new google.maps.LatLng(25.14961 ,66.56226),new google.maps.LatLng(25.18613 ,67.04771),new google.maps.LatLng(25.65385 ,67.07328),new google.maps.LatLng(25.80119 ,67.23413),new google.maps.LatLng(24.69333 ,66.21161),new google.maps.LatLng(24.42288 ,67.71600),new google.maps.LatLng(25.49284 ,66.84308),new google.maps.LatLng(24.18530 ,66.29304),new google.maps.LatLng(23.96354 ,67.16870),new google.maps.LatLng(24.18796 ,67.58174),new google.maps.LatLng(23.93476 ,67.60686),new google.maps.LatLng(25.54864 ,66.58774),new google.maps.LatLng(24.24371 ,67.32922),new google.maps.LatLng(25.33350 ,68.26207),new google.maps.LatLng(24.53606 ,68.14896),new google.maps.LatLng(24.28973 ,65.98679),new google.maps.LatLng(24.24082 ,67.51207),new google.maps.LatLng(24.52039 ,66.80503),new google.maps.LatLng(25.31932 ,67.52523),new google.maps.LatLng(24.16851 ,66.99332),new google.maps.LatLng(23.92896 ,67.03409),new google.maps.LatLng(23.97222 ,66.49825),new google.maps.LatLng(24.18173 ,67.81942),new google.maps.LatLng(24.63249 ,68.11231),new google.maps.LatLng(25.60006 ,66.12947),new google.maps.LatLng(24.00907 ,67.46690),new google.maps.LatLng(24.95845 ,65.87460),new google.maps.LatLng(25.02199 ,68.15717),new google.maps.LatLng(25.79341 ,67.16473),new google.maps.LatLng(24.19551 ,66.91224),new google.maps.LatLng(25.44057 ,68.02280),new google.maps.LatLng(24.32726 ,67.93301),new google.maps.LatLng(25.25754 ,66.73092),new google.maps.LatLng(24.89608 ,68.06128),new google.maps.LatLng(25.49742 ,68.13527),new google.maps.LatLng(24.31375 ,66.65618),new google.maps.LatLng(24.87850 ,67.80898),new google.maps.LatLng(24.91936 ,67.25595),new google.maps.LatLng(24.30183 ,68.15433),new google.maps.LatLng(25.88071 ,67.27341),new google.maps.LatLng(25.45270 ,66.87280),new google.maps.LatLng(24.63982 ,68.12527),new google.maps.LatLng(25.09904 ,65.90643),new google.maps.LatLng(25.57263 ,67.70964),new google.maps.LatLng(24.95857 ,67.26652),new google.maps.LatLng(25.61509 ,66.80477),new google.maps.LatLng(24.15308 ,66.99172),new google.maps.LatLng(24.37706 ,68.18404),new google.maps.LatLng(25.80509 ,67.10598),new google.maps.LatLng(25.53421 ,67.53291),new google.maps.LatLng(24.02073 ,67.08924),new google.maps.LatLng(24.24024 ,66.12153),new google.maps.LatLng(25.45250 ,67.42911),new google.maps.LatLng(25.81937 ,66.24579),new google.maps.LatLng(25.91350 ,67.73098),new google.maps.LatLng(25.17303 ,67.68539),new google.maps.LatLng(24.91596 ,67.20901),new google.maps.LatLng(25.07263 ,67.95628),new google.maps.LatLng(23.89792 ,67.14621),new google.maps.LatLng(25.50487 ,65.91795),new google.maps.LatLng(25.54989 ,67.74417),new google.maps.LatLng(23.99874 ,67.12556),new google.maps.LatLng(24.51467 ,67.11487),new google.maps.LatLng(25.01268 ,67.62088),new google.maps.LatLng(25.56471 ,67.24373),new google.maps.LatLng(25.51609 ,68.20418),new google.maps.LatLng(24.11157 ,67.18821),new google.maps.LatLng(24.75252 ,68.20936),new google.maps.LatLng(24.47967 ,67.90247),new google.maps.LatLng(25.38857 ,67.30244),new google.maps.LatLng(24.25449 ,67.72581),new google.maps.LatLng(25.86564 ,67.00135),new google.maps.LatLng(25.66264 ,67.47447),new google.maps.LatLng(25.55866 ,66.78107),new google.maps.LatLng(24.18493 ,67.95309),new google.maps.LatLng(24.60393 ,67.85121),new google.maps.LatLng(25.74917 ,66.38034),new google.maps.LatLng(24.94321 ,68.05138),new google.maps.LatLng(24.43585 ,67.93977),new google.maps.LatLng(24.98220 ,67.71815),new google.maps.LatLng(24.07829 ,67.17990),new google.maps.LatLng(25.45653 ,67.72272),new google.maps.LatLng(23.90540 ,67.63877),new google.maps.LatLng(26.15002 ,66.90226),new google.maps.LatLng(25.22078 ,67.63963),new google.maps.LatLng(24.67305 ,66.65702),new google.maps.LatLng(25.30265 ,66.10363),new google.maps.LatLng(25.57282 ,66.03636),new google.maps.LatLng(25.76985 ,66.52862),new google.maps.LatLng(25.92215 ,67.36351),new google.maps.LatLng(25.13189 ,66.51876),new google.maps.LatLng(25.39417 ,66.20795),new google.maps.LatLng(25.66545 ,66.96169),new google.maps.LatLng(23.99022 ,67.76164),new google.maps.LatLng(25.83832 ,66.57046),new google.maps.LatLng(25.45773 ,67.58004),new google.maps.LatLng(24.65286 ,66.74835),new google.maps.LatLng(25.71699 ,66.52113),new google.maps.LatLng(26.05536 ,67.24535),new google.maps.LatLng(25.30492 ,67.64782),new google.maps.LatLng(24.27203 ,66.92321),new google.maps.LatLng(25.01912 ,67.86686),new google.maps.LatLng(24.93159 ,68.29140),new google.maps.LatLng(24.90899 ,67.01426),new google.maps.LatLng(25.93384 ,66.93168),new google.maps.LatLng(24.77465 ,66.77478),new google.maps.LatLng(26.19607 ,66.91689),new google.maps.LatLng(24.61889 ,66.12346),new google.maps.LatLng(25.83091 ,67.33767),new google.maps.LatLng(24.27275 ,68.13273),new google.maps.LatLng(24.57844 ,67.02255),new google.maps.LatLng(24.29463 ,67.65284),new google.maps.LatLng(24.17724 ,66.08144),new google.maps.LatLng(25.69439 ,67.21321),new google.maps.LatLng(24.69608 ,68.04349),new google.maps.LatLng(24.22073 ,66.52487),new google.maps.LatLng(24.53863 ,66.43992),new google.maps.LatLng(25.40988 ,68.20228),new google.maps.LatLng(26.15023 ,67.54035),new google.maps.LatLng(25.91942 ,66.25999),new google.maps.LatLng(25.91094 ,66.89205),new google.maps.LatLng(25.07475 ,66.08154),new google.maps.LatLng(25.23632 ,66.97671),new google.maps.LatLng(25.10310 ,66.88107),new google.maps.LatLng(25.85222 ,66.60556),new google.maps.LatLng(25.81552 ,66.80550),new google.maps.LatLng(25.44060 ,66.04694),new google.maps.LatLng(24.65042 ,68.04264),new google.maps.LatLng(25.81299 ,67.40233),new google.maps.LatLng(25.34837 ,66.72576),new google.maps.LatLng(25.39967 ,67.65057),new google.maps.LatLng(25.79034 ,67.56838),new google.maps.LatLng(24.87194 ,67.01199),new google.maps.LatLng(24.68253 ,68.01815),new google.maps.LatLng(23.77673 ,67.51088),new google.maps.LatLng(24.99459 ,66.39467),new google.maps.LatLng(24.30975 ,67.82159),new google.maps.LatLng(24.27351 ,66.39409),new google.maps.LatLng(25.40760 ,66.11753),new google.maps.LatLng(23.74177 ,67.41787),new google.maps.LatLng(25.90711 ,66.33904),new google.maps.LatLng(26.06183 ,66.96523),new google.maps.LatLng(24.26871 ,67.08483),new google.maps.LatLng(23.80047 ,67.23855),new google.maps.LatLng(24.62830 ,66.69949),new google.maps.LatLng(26.05779 ,67.40401),new google.maps.LatLng(24.72703 ,66.67111),new google.maps.LatLng(25.38128 ,66.39709),new google.maps.LatLng(24.39246 ,67.76261),new google.maps.LatLng(24.45951 ,68.24134),new google.maps.LatLng(24.55332 ,68.26502),new google.maps.LatLng(25.79552 ,66.16020),new google.maps.LatLng(25.27298 ,67.20934),new google.maps.LatLng(25.86137 ,66.48873),new google.maps.LatLng(25.67443 ,67.53900),new google.maps.LatLng(24.72984 ,67.96492),new google.maps.LatLng(25.17502 ,67.89555),new google.maps.LatLng(25.58785 ,67.62972),new google.maps.LatLng(25.61947 ,67.17898),new google.maps.LatLng(23.66514 ,67.05676),new google.maps.LatLng(24.89685 ,67.31673),new google.maps.LatLng(26.00962 ,66.39276),new google.maps.LatLng(24.96969 ,68.24976),new google.maps.LatLng(25.07383 ,67.32079),new google.maps.LatLng(25.11022 ,67.73338),new google.maps.LatLng(24.98294 ,67.42757),new google.maps.LatLng(25.13337 ,67.51626),new google.maps.LatLng(23.96963 ,66.88723),new google.maps.LatLng(25.20425 ,66.07709),new google.maps.LatLng(25.21838 ,66.07365),new google.maps.LatLng(24.13208 ,66.30460),new google.maps.LatLng(24.12087 ,66.49951),new google.maps.LatLng(25.41794 ,66.83037),new google.maps.LatLng(25.96401 ,66.40015),new google.maps.LatLng(24.83729 ,67.72299),new google.maps.LatLng(25.13779 ,66.86248),new google.maps.LatLng(24.13546 ,66.83979),new google.maps.LatLng(23.85657 ,67.52203),new google.maps.LatLng(23.83043 ,67.43071),new google.maps.LatLng(24.96719 ,65.90616),new google.maps.LatLng(25.79505 ,66.78602),new google.maps.LatLng(23.75950 ,66.94297),new google.maps.LatLng(23.92939 ,67.38050),new google.maps.LatLng(24.38526 ,67.19665),new google.maps.LatLng(24.84938 ,67.09264),new google.maps.LatLng(25.85631 ,67.11668),new google.maps.LatLng(25.34798 ,67.75831),new google.maps.LatLng(25.86248 ,67.57996),new google.maps.LatLng(25.33951 ,67.31968),new google.maps.LatLng(24.30993 ,67.20253),new google.maps.LatLng(24.56159 ,66.63688),new google.maps.LatLng(24.81585 ,66.63352),new google.maps.LatLng(26.10127 ,66.76696),new google.maps.LatLng(23.96864 ,66.21521),new google.maps.LatLng(25.11355 ,67.67636),new google.maps.LatLng(26.04348 ,66.78302),new google.maps.LatLng(24.79925 ,65.79070),new google.maps.LatLng(26.07622 ,67.60696),new google.maps.LatLng(24.66381 ,67.64755),new google.maps.LatLng(24.80135 ,68.25698),new google.maps.LatLng(25.09030 ,68.01663),new google.maps.LatLng(25.88649 ,66.32604),new google.maps.LatLng(24.62247 ,66.66868),new google.maps.LatLng(24.26211 ,66.73276),new google.maps.LatLng(24.80842 ,66.11680),new google.maps.LatLng(23.98512 ,66.20938),new google.maps.LatLng(24.70578 ,66.27287),new google.maps.LatLng(24.83434 ,67.26638),new google.maps.LatLng(24.37720 ,68.07758),new google.maps.LatLng(24.85906 ,66.10252),new google.maps.LatLng(24.85427 ,66.63671),new google.maps.LatLng(25.32738 ,66.54792),new google.maps.LatLng(25.26734 ,67.95821),new google.maps.LatLng(24.62337 ,66.96550),new google.maps.LatLng(25.72178 ,67.07840),new google.maps.LatLng(25.09478 ,66.13553),new google.maps.LatLng(26.08173 ,66.93062),new google.maps.LatLng(24.04100 ,66.98952),new google.maps.LatLng(25.37266 ,66.41701),new google.maps.LatLng(24.58857 ,66.14062),new google.maps.LatLng(25.66294 ,67.98699),new google.maps.LatLng(24.96820 ,67.99706),new google.maps.LatLng(25.49341 ,67.88247),new google.maps.LatLng(24.85060 ,67.60960),new google.maps.LatLng(23.67873 ,67.21397),new google.maps.LatLng(23.77342 ,66.93221),new google.maps.LatLng(25.29752 ,68.13916),new google.maps.LatLng(25.84187 ,67.95084),new google.maps.LatLng(26.23297 ,66.96330),new google.maps.LatLng(24.75894 ,68.01167),new google.maps.LatLng(24.47276 ,67.32628),new google.maps.LatLng(26.12662 ,67.07479),new google.maps.LatLng(24.16045 ,67.96297),new google.maps.LatLng(25.42760 ,68.17025),new google.maps.LatLng(24.66470 ,67.07406),new google.maps.LatLng(26.06188 ,67.56295),new google.maps.LatLng(25.63082 ,66.60924),new google.maps.LatLng(23.96310 ,66.54463),new google.maps.LatLng(25.17502 ,65.85949),new google.maps.LatLng(24.13838 ,67.81656),new google.maps.LatLng(25.70232 ,68.00239),new google.maps.LatLng(24.90371 ,66.06786),new google.maps.LatLng(24.59461 ,67.33050),new google.maps.LatLng(25.27704 ,68.26231),new google.maps.LatLng(25.44510 ,66.21659),new google.maps.LatLng(24.19809 ,67.23842),new google.maps.LatLng(25.57011 ,66.61466),new google.maps.LatLng(24.54616 ,67.94869),new google.maps.LatLng(24.29140 ,67.06385),new google.maps.LatLng(24.32678 ,66.10863),new google.maps.LatLng(24.60289 ,67.45383),new google.maps.LatLng(24.30733 ,66.02816),new google.maps.LatLng(25.67549 ,67.65828),new google.maps.LatLng(25.62193 ,67.93578),new google.maps.LatLng(25.25534 ,66.79812),new google.maps.LatLng(24.00238 ,67.24949),new google.maps.LatLng(24.73386 ,68.21087),new google.maps.LatLng(25.77998 ,66.58324),new google.maps.LatLng(24.23509 ,67.39668),new google.maps.LatLng(25.59274 ,68.02655),new google.maps.LatLng(25.40235 ,67.21406),new google.maps.LatLng(24.74065 ,67.47340),new google.maps.LatLng(24.93601 ,65.92967),new google.maps.LatLng(24.01883 ,67.25679),new google.maps.LatLng(26.01511 ,66.69593),new google.maps.LatLng(24.37125 ,67.17441),new google.maps.LatLng(25.24816 ,67.00501),new google.maps.LatLng(25.18529 ,68.29567),new google.maps.LatLng(25.14483 ,66.57547),new google.maps.LatLng(24.19062 ,66.81416),new google.maps.LatLng(24.90009 ,67.99877),new google.maps.LatLng(25.61020 ,66.96505),new google.maps.LatLng(23.96029 ,67.87991),new google.maps.LatLng(25.91354 ,67.70916),new google.maps.LatLng(24.88651 ,67.60052),new google.maps.LatLng(25.50578 ,67.42283),new google.maps.LatLng(25.84830 ,67.47338),new google.maps.LatLng(24.29421 ,67.08850),new google.maps.LatLng(24.74376 ,65.85380),new google.maps.LatLng(24.08969 ,66.38515),new google.maps.LatLng(25.97902 ,66.65377),new google.maps.LatLng(24.52569 ,65.84176),new google.maps.LatLng(25.13792 ,66.87045),new google.maps.LatLng(24.08364 ,66.93500),new google.maps.LatLng(25.14594 ,67.89324),new google.maps.LatLng(24.21141 ,67.10779),new google.maps.LatLng(25.28128 ,67.32971),new google.maps.LatLng(23.92578 ,66.68397),new google.maps.LatLng(25.16607 ,66.31907),new google.maps.LatLng(24.17366 ,67.56561),new google.maps.LatLng(25.60980 ,67.97187),new google.maps.LatLng(25.92929 ,67.01501),new google.maps.LatLng(25.26851 ,67.78987),new google.maps.LatLng(23.83816 ,66.43776),new google.maps.LatLng(25.08974 ,66.71847),new google.maps.LatLng(24.15169 ,66.98687),new google.maps.LatLng(25.01963 ,67.02583),new google.maps.LatLng(23.86904 ,67.71668),new google.maps.LatLng(25.60125 ,66.30301),new google.maps.LatLng(24.27789 ,66.63527),new google.maps.LatLng(26.16640 ,67.30241),new google.maps.LatLng(24.66773 ,66.80613),new google.maps.LatLng(25.08454 ,66.44841),new google.maps.LatLng(25.36082 ,66.08004),new google.maps.LatLng(25.52427 ,67.34172),new google.maps.LatLng(24.86069 ,67.11733),new google.maps.LatLng(24.44505 ,67.94019),new google.maps.LatLng(25.93916 ,67.52263),new google.maps.LatLng(24.22699 ,67.16549),new google.maps.LatLng(24.04870 ,66.33992),new google.maps.LatLng(25.76052 ,66.55263),new google.maps.LatLng(24.74608 ,67.63828),new google.maps.LatLng(24.44422 ,68.25293),new google.maps.LatLng(23.69799 ,67.36962),new google.maps.LatLng(24.28488 ,67.41587),new google.maps.LatLng(25.52642 ,66.44383),new google.maps.LatLng(24.05877 ,66.90845),new google.maps.LatLng(25.86588 ,66.53234),new google.maps.LatLng(25.86591 ,66.46852),new google.maps.LatLng(25.25728 ,67.03436),new google.maps.LatLng(24.74093 ,67.02282),new google.maps.LatLng(24.89959 ,68.21552),new google.maps.LatLng(24.74540 ,65.97983),new google.maps.LatLng(25.79579 ,67.85891),new google.maps.LatLng(24.79938 ,67.11018),new google.maps.LatLng(23.94196 ,67.27665),new google.maps.LatLng(24.17462 ,67.70359),new google.maps.LatLng(23.89323 ,67.53239),new google.maps.LatLng(25.46618 ,66.46239),new google.maps.LatLng(25.95000 ,66.65031),new google.maps.LatLng(24.58433 ,67.50082),new google.maps.LatLng(23.84723 ,66.52558),new google.maps.LatLng(24.12627 ,66.36671),new google.maps.LatLng(24.39472 ,67.56157),new google.maps.LatLng(24.57812 ,67.63139),new google.maps.LatLng(24.37112 ,67.12321),new google.maps.LatLng(23.72195 ,66.70822),new google.maps.LatLng(25.13448 ,66.75431),new google.maps.LatLng(25.05515 ,68.35121),new google.maps.LatLng(24.88807 ,67.64493),new google.maps.LatLng(25.40340 ,68.13302),new google.maps.LatLng(24.91460 ,67.50993),new google.maps.LatLng(24.93198 ,66.04545),new google.maps.LatLng(24.78462 ,67.87117),new google.maps.LatLng(24.03666 ,66.99450),new google.maps.LatLng(23.71686 ,67.28265),new google.maps.LatLng(23.85360 ,66.90748),new google.maps.LatLng(24.85433 ,67.41913),new google.maps.LatLng(24.10717 ,66.51637),new google.maps.LatLng(25.93755 ,66.88812),new google.maps.LatLng(24.46804 ,67.29555),new google.maps.LatLng(25.71886 ,66.83841),new google.maps.LatLng(25.52007 ,66.90842),new google.maps.LatLng(25.03018 ,66.23102),new google.maps.LatLng(24.23838 ,66.50868),new google.maps.LatLng(25.24938 ,66.18978),new google.maps.LatLng(25.55153 ,67.65897),new google.maps.LatLng(24.67042 ,67.25602),new google.maps.LatLng(25.22621 ,65.90448),new google.maps.LatLng(25.35018 ,66.71968),new google.maps.LatLng(24.07119 ,66.13512),new google.maps.LatLng(24.56192 ,65.86908),new google.maps.LatLng(25.06125 ,67.99734),new google.maps.LatLng(26.07804 ,66.79116),new google.maps.LatLng(24.28675 ,66.65809),new google.maps.LatLng(26.20357 ,67.03347),new google.maps.LatLng(25.65908 ,67.47826),new google.maps.LatLng(24.25131 ,68.16791),new google.maps.LatLng(24.01695 ,67.60497),new google.maps.LatLng(26.05383 ,67.24121),new google.maps.LatLng(23.71200 ,66.87091),new google.maps.LatLng(24.04879 ,66.50290),new google.maps.LatLng(25.27152 ,67.84684),new google.maps.LatLng(24.24198 ,66.70286),new google.maps.LatLng(25.35509 ,68.16160),new google.maps.LatLng(26.05937 ,67.71659),new google.maps.LatLng(24.97539 ,66.36895),new google.maps.LatLng(24.03219 ,67.52807),new google.maps.LatLng(25.96116 ,66.46817),new google.maps.LatLng(25.40997 ,66.79987),new google.maps.LatLng(25.53605 ,66.93677),new google.maps.LatLng(25.30673 ,66.01493),new google.maps.LatLng(24.97309 ,67.91180),new google.maps.LatLng(25.02291 ,65.87282),new google.maps.LatLng(25.58807 ,66.17721),new google.maps.LatLng(25.32003 ,66.39172),new google.maps.LatLng(25.64891 ,66.24104),new google.maps.LatLng(23.90269 ,67.25067),new google.maps.LatLng(25.45768 ,65.88850),new google.maps.LatLng(24.92378 ,66.04612),new google.maps.LatLng(26.08287 ,67.40923),new google.maps.LatLng(24.06658 ,66.88652),new google.maps.LatLng(25.76650 ,67.19651),new google.maps.LatLng(25.91683 ,66.50422),new google.maps.LatLng(25.63563 ,67.25678),new google.maps.LatLng(24.26865 ,67.59771),new google.maps.LatLng(24.36033 ,68.21232),new google.maps.LatLng(24.51102 ,66.60734),new google.maps.LatLng(25.78267 ,66.42381),new google.maps.LatLng(25.68454 ,67.54708),new google.maps.LatLng(25.01378 ,66.64783),new google.maps.LatLng(24.43080 ,67.38813),new google.maps.LatLng(24.46283 ,66.66882),new google.maps.LatLng(25.73943 ,67.62798),new google.maps.LatLng(25.23455 ,66.85737),new google.maps.LatLng(24.10459 ,66.53365),new google.maps.LatLng(24.64164 ,67.56791),new google.maps.LatLng(24.64817 ,66.99349),new google.maps.LatLng(24.00836 ,67.35003),new google.maps.LatLng(25.45749 ,68.15921),new google.maps.LatLng(25.72666 ,67.26855),new google.maps.LatLng(24.31629 ,67.02704),new google.maps.LatLng(25.10729 ,67.87213),new google.maps.LatLng(24.20863 ,66.78523),new google.maps.LatLng(25.42375 ,67.06253),new google.maps.LatLng(24.25792 ,67.44552),new google.maps.LatLng(24.60729 ,67.35140),new google.maps.LatLng(25.18826 ,66.99076),new google.maps.LatLng(24.30165 ,66.62637),new google.maps.LatLng(25.36047 ,66.08099),new google.maps.LatLng(25.48805 ,67.49748),new google.maps.LatLng(23.79689 ,66.60904),new google.maps.LatLng(25.17562 ,66.99342),new google.maps.LatLng(24.92771 ,66.87563),new google.maps.LatLng(24.06031 ,67.30702),new google.maps.LatLng(25.56468 ,66.70419),new google.maps.LatLng(25.42852 ,67.51292),new google.maps.LatLng(24.91357 ,67.35366),new google.maps.LatLng(25.15335 ,67.43201),new google.maps.LatLng(24.40083 ,67.08614),new google.maps.LatLng(24.74445 ,67.76743),new google.maps.LatLng(24.27515 ,66.22258),new google.maps.LatLng(25.97959 ,67.18189),new google.maps.LatLng(25.42661 ,67.67001),new google.maps.LatLng(26.05646 ,66.48900),new google.maps.LatLng(24.60623 ,68.00130),new google.maps.LatLng(24.19769 ,66.57789),new google.maps.LatLng(24.50672 ,67.48200),new google.maps.LatLng(23.93834 ,67.51440),new google.maps.LatLng(25.28457 ,67.92725),new google.maps.LatLng(24.57282 ,68.28262),new google.maps.LatLng(25.11469 ,66.04003),new google.maps.LatLng(24.40492 ,66.01948),new google.maps.LatLng(24.65077 ,66.72006),new google.maps.LatLng(25.07590 ,65.87114),new google.maps.LatLng(25.70950 ,67.35646),new google.maps.LatLng(23.93131 ,66.58408),new google.maps.LatLng(26.20566 ,67.03009),new google.maps.LatLng(25.67576 ,67.58083),new google.maps.LatLng(24.52513 ,66.55309),new google.maps.LatLng(25.36353 ,66.09805),new google.maps.LatLng(25.62005 ,67.13099),new google.maps.LatLng(25.83883 ,67.50305),new google.maps.LatLng(25.62028 ,66.56522),new google.maps.LatLng(25.68565 ,67.00827),new google.maps.LatLng(25.99957 ,67.59734),new google.maps.LatLng(24.67763 ,66.94752),new google.maps.LatLng(25.14280 ,68.32572),new google.maps.LatLng(25.96105 ,67.20595),new google.maps.LatLng(24.37901 ,66.12217),new google.maps.LatLng(23.68454 ,67.11221),new google.maps.LatLng(24.33949 ,67.46301),new google.maps.LatLng(24.18022 ,66.54694),new google.maps.LatLng(24.89257 ,65.98935),new google.maps.LatLng(24.00412 ,67.12084),new google.maps.LatLng(24.84614 ,67.83020),new google.maps.LatLng(25.44273 ,67.64429),new google.maps.LatLng(24.34893 ,66.92355),new google.maps.LatLng(24.34108 ,68.18245),new google.maps.LatLng(24.87224 ,67.05211),new google.maps.LatLng(24.98834 ,66.95951),new google.maps.LatLng(23.87189 ,67.71609),new google.maps.LatLng(24.93766 ,67.30478),new google.maps.LatLng(24.19149 ,66.50229),new google.maps.LatLng(24.15195 ,66.23502),new google.maps.LatLng(24.78000 ,67.44612),new google.maps.LatLng(25.27002 ,66.46232),new google.maps.LatLng(25.14427 ,65.94447),new google.maps.LatLng(24.51493 ,68.26282),new google.maps.LatLng(25.15076 ,66.24249),new google.maps.LatLng(24.60206 ,67.40338),new google.maps.LatLng(24.37829 ,66.93537),new google.maps.LatLng(24.92516 ,66.03446),new google.maps.LatLng(24.63801 ,67.35378),new google.maps.LatLng(23.72553 ,66.79087),new google.maps.LatLng(24.48928 ,66.42008),new google.maps.LatLng(23.78581 ,66.79236),new google.maps.LatLng(24.69788 ,67.60751),new google.maps.LatLng(24.91602 ,67.27566),new google.maps.LatLng(24.82333 ,66.40832),new google.maps.LatLng(25.94780 ,67.84562),new google.maps.LatLng(24.51515 ,66.55464),new google.maps.LatLng(25.23091 ,68.13763),new google.maps.LatLng(24.62413 ,67.52263),new google.maps.LatLng(25.17065 ,66.53027),new google.maps.LatLng(25.73080 ,66.32476),new google.maps.LatLng(25.07499 ,66.04371),new google.maps.LatLng(25.37104 ,66.27550),new google.maps.LatLng(24.80526 ,65.82215),new google.maps.LatLng(25.45714 ,66.01418),new google.maps.LatLng(24.25316 ,67.10088),new google.maps.LatLng(24.79594 ,65.96502),new google.maps.LatLng(24.68723 ,66.63744),new google.maps.LatLng(24.56281 ,65.82531),new google.maps.LatLng(23.77214 ,67.20061),new google.maps.LatLng(25.61234 ,66.57076),new google.maps.LatLng(24.48377 ,67.06037),new google.maps.LatLng(25.02679 ,65.77930),new google.maps.LatLng(25.89336 ,66.82890),new google.maps.LatLng(24.50313 ,67.70039),new google.maps.LatLng(24.92235 ,67.44102),new google.maps.LatLng(25.70528 ,68.00783),new google.maps.LatLng(24.60855 ,65.88666),new google.maps.LatLng(25.21341 ,67.19577),new google.maps.LatLng(25.58972 ,67.03438),new google.maps.LatLng(23.96917 ,66.79383),new google.maps.LatLng(25.26709 ,66.72277),new google.maps.LatLng(25.90814 ,67.16899),new google.maps.LatLng(25.01930 ,67.41040),new google.maps.LatLng(25.37360 ,67.39407),new google.maps.LatLng(24.87472 ,66.79060),new google.maps.LatLng(24.25467 ,66.12583),new google.maps.LatLng(25.93292 ,66.69348),new google.maps.LatLng(25.18365 ,67.71823),new google.maps.LatLng(24.27033 ,66.84988),new google.maps.LatLng(24.52863 ,68.24593),new google.maps.LatLng(24.09730 ,67.27557),new google.maps.LatLng(25.26778 ,68.13142),new google.maps.LatLng(25.61951 ,67.97746),new google.maps.LatLng(24.91632 ,66.35653),new google.maps.LatLng(25.19869 ,66.79559),new google.maps.LatLng(25.19330 ,67.94093),new google.maps.LatLng(25.99301 ,67.39836),new google.maps.LatLng(25.17030 ,67.24966),new google.maps.LatLng(25.55928 ,66.49439),new google.maps.LatLng(25.74549 ,67.58769),new google.maps.LatLng(25.20561 ,67.88178),new google.maps.LatLng(25.62458 ,66.26037),new google.maps.LatLng(25.70393 ,66.04018),new google.maps.LatLng(25.84137 ,66.19897),new google.maps.LatLng(25.49469 ,67.40936),new google.maps.LatLng(24.79640 ,66.90336),new google.maps.LatLng(25.68360 ,66.02033),new google.maps.LatLng(25.05996 ,67.94511),new google.maps.LatLng(24.52003 ,67.23430),new google.maps.LatLng(25.24988 ,67.64245),new google.maps.LatLng(23.88537 ,67.69446),new google.maps.LatLng(26.14935 ,67.16260),new google.maps.LatLng(24.87867 ,66.23087),new google.maps.LatLng(25.08833 ,66.22231),new google.maps.LatLng(24.16736 ,67.12983),new google.maps.LatLng(25.62307 ,67.45504),new google.maps.LatLng(24.20139 ,66.65558),new google.maps.LatLng(24.65979 ,68.32867),new google.maps.LatLng(26.18352 ,67.08762),new google.maps.LatLng(24.91677 ,67.63076),new google.maps.LatLng(24.63441 ,66.19657),new google.maps.LatLng(25.20860 ,67.40934),new google.maps.LatLng(24.31914 ,66.41279),new google.maps.LatLng(24.55777 ,67.05790),new google.maps.LatLng(24.74190 ,65.80323),new google.maps.LatLng(25.81611 ,67.33072),new google.maps.LatLng(24.63567 ,65.81302),new google.maps.LatLng(25.08484 ,67.41288),new google.maps.LatLng(25.34877 ,66.45527),new google.maps.LatLng(23.93259 ,67.81404),new google.maps.LatLng(24.95645 ,67.35348),new google.maps.LatLng(25.82616 ,67.32196),new google.maps.LatLng(24.73552 ,66.66435),new google.maps.LatLng(23.80960 ,67.35870),new google.maps.LatLng(24.01901 ,67.29840),new google.maps.LatLng(26.14672 ,67.38798),new google.maps.LatLng(24.87449 ,67.63636),new google.maps.LatLng(25.09818 ,66.12729),new google.maps.LatLng(25.41300 ,68.10244),new google.maps.LatLng(24.68366 ,66.11692),new google.maps.LatLng(25.17938 ,66.32539),new google.maps.LatLng(25.04821 ,65.77456),new google.maps.LatLng(23.97719 ,66.31615),new google.maps.LatLng(24.68191 ,66.30814),new google.maps.LatLng(24.35146 ,67.17832),new google.maps.LatLng(24.71938 ,66.30266),new google.maps.LatLng(24.61597 ,66.66875),new google.maps.LatLng(24.60834 ,66.63635),new google.maps.LatLng(24.51899 ,67.02509),new google.maps.LatLng(25.52241 ,67.00227),new google.maps.LatLng(24.38995 ,67.43328),new google.maps.LatLng(24.79592 ,68.08125),new google.maps.LatLng(24.43179 ,66.22887),new google.maps.LatLng(26.05044 ,67.70942),new google.maps.LatLng(26.20212 ,66.90507),new google.maps.LatLng(23.74247 ,67.13396),new google.maps.LatLng(24.09775 ,67.87343),new google.maps.LatLng(24.84481 ,65.87187),new google.maps.LatLng(25.71505 ,67.01006),new google.maps.LatLng(24.79389 ,66.05428),new google.maps.LatLng(24.35293 ,67.96512),new google.maps.LatLng(25.59242 ,66.05696),new google.maps.LatLng(25.58097 ,66.53951),new google.maps.LatLng(25.95670 ,66.99308),new google.maps.LatLng(25.63297 ,66.58133),new google.maps.LatLng(24.70634 ,67.58440),new google.maps.LatLng(24.96196 ,67.49009),new google.maps.LatLng(25.54990 ,66.27685),new google.maps.LatLng(25.36780 ,68.17252),new google.maps.LatLng(24.70166 ,68.08048),new google.maps.LatLng(25.17086 ,68.31344),new google.maps.LatLng(24.10532 ,67.17474),new google.maps.LatLng(25.90334 ,67.91592),new google.maps.LatLng(24.18842 ,66.56824),new google.maps.LatLng(25.38343 ,68.20297),new google.maps.LatLng(25.90627 ,67.69197),new google.maps.LatLng(24.77365 ,66.46434),new google.maps.LatLng(24.97798 ,66.60084),new google.maps.LatLng(26.06187 ,67.01508),new google.maps.LatLng(25.52644 ,67.72225),new google.maps.LatLng(25.95719 ,66.97844),new google.maps.LatLng(25.71994 ,67.00296),new google.maps.LatLng(25.18510 ,67.85096),new google.maps.LatLng(25.06498 ,68.14734),new google.maps.LatLng(24.49904 ,67.42005),new google.maps.LatLng(24.47691 ,66.41714),new google.maps.LatLng(26.20910 ,66.80966),new google.maps.LatLng(25.24715 ,67.84534),new google.maps.LatLng(25.16580 ,67.06316),new google.maps.LatLng(25.61456 ,67.35770),new google.maps.LatLng(25.65100 ,67.69181),new google.maps.LatLng(25.06485 ,67.96012),new google.maps.LatLng(25.08097 ,66.60869),new google.maps.LatLng(26.01063 ,67.44396),new google.maps.LatLng(25.27388 ,68.00091),new google.maps.LatLng(24.45362 ,68.21970),new google.maps.LatLng(25.40204 ,67.16495),new google.maps.LatLng(25.97879 ,67.31918),new google.maps.LatLng(25.03194 ,67.16564),new google.maps.LatLng(23.86362 ,67.09591),new google.maps.LatLng(24.70970 ,66.84948),new google.maps.LatLng(25.67157 ,66.50104),new google.maps.LatLng(24.45940 ,66.06877),new google.maps.LatLng(24.89307 ,65.83317),new google.maps.LatLng(24.76433 ,66.99730),new google.maps.LatLng(24.57657 ,66.30325),new google.maps.LatLng(25.78921 ,66.43673),new google.maps.LatLng(24.12715 ,66.69676),new google.maps.LatLng(24.36595 ,66.15116),new google.maps.LatLng(25.41887 ,67.58102),new google.maps.LatLng(26.08550 ,66.83967),new google.maps.LatLng(24.89812 ,68.07527),new google.maps.LatLng(25.35291 ,66.17616),new google.maps.LatLng(23.77279 ,67.24673),new google.maps.LatLng(25.29008 ,68.27876),new google.maps.LatLng(24.52189 ,66.88613),new google.maps.LatLng(23.88644 ,67.21905),new google.maps.LatLng(23.92410 ,67.20917),new google.maps.LatLng(24.10613 ,67.55870),new google.maps.LatLng(24.61398 ,67.01570),new google.maps.LatLng(25.61865 ,67.44248),new google.maps.LatLng(25.44429 ,66.09635),new google.maps.LatLng(25.46683 ,66.97220),new google.maps.LatLng(24.81202 ,66.46296),new google.maps.LatLng(25.38474 ,67.04139),new google.maps.LatLng(25.84611 ,66.52809),new google.maps.LatLng(24.26979 ,66.78457),new google.maps.LatLng(24.49051 ,67.36539),new google.maps.LatLng(25.50536 ,66.64395),new google.maps.LatLng(25.95046 ,67.87289),new google.maps.LatLng(25.60364 ,66.41149),new google.maps.LatLng(24.69469 ,67.14210),new google.maps.LatLng(24.37959 ,66.89953),new google.maps.LatLng(25.18044 ,68.15351),new google.maps.LatLng(24.50820 ,66.25515),new google.maps.LatLng(24.81286 ,67.80308),new google.maps.LatLng(25.66261 ,67.82366),new google.maps.LatLng(24.41557 ,65.91157),new google.maps.LatLng(24.56773 ,67.46136),new google.maps.LatLng(25.62089 ,66.18566),new google.maps.LatLng(25.85805 ,67.81258),new google.maps.LatLng(25.06514 ,66.57956),new google.maps.LatLng(25.61019 ,67.98951),new google.maps.LatLng(24.68303 ,66.37947),new google.maps.LatLng(24.72477 ,67.68536),new google.maps.LatLng(25.26436 ,65.91179),new google.maps.LatLng(24.97715 ,67.38780),new google.maps.LatLng(24.50380 ,66.81994),new google.maps.LatLng(25.37770 ,67.84045),new google.maps.LatLng(24.44501 ,65.93001),new google.maps.LatLng(24.30824 ,66.59669),new google.maps.LatLng(25.78462 ,67.02518),new google.maps.LatLng(25.14287 ,67.10801),new google.maps.LatLng(24.28575 ,66.09475),new google.maps.LatLng(24.55106 ,67.87550),new google.maps.LatLng(25.61673 ,66.74137),new google.maps.LatLng(25.06080 ,67.32608),new google.maps.LatLng(25.70507 ,66.93165),new google.maps.LatLng(25.80041 ,66.80262),new google.maps.LatLng(23.92978 ,66.71470),new google.maps.LatLng(24.73942 ,67.68275),new google.maps.LatLng(24.53418 ,67.45294),new google.maps.LatLng(25.61970 ,67.09352),new google.maps.LatLng(24.41828 ,67.43196),new google.maps.LatLng(24.10806 ,67.89110),new google.maps.LatLng(25.64207 ,66.80614),new google.maps.LatLng(25.27482 ,67.40868),new google.maps.LatLng(25.88070 ,67.40673),new google.maps.LatLng(25.12631 ,67.79273),new google.maps.LatLng(25.87227 ,66.69934),new google.maps.LatLng(25.47007 ,67.79052),new google.maps.LatLng(24.31627 ,66.37643),new google.maps.LatLng(25.73508 ,67.88900),new google.maps.LatLng(24.96886 ,67.42769),new google.maps.LatLng(24.75048 ,66.78607),new google.maps.LatLng(23.90787 ,67.66347),new google.maps.LatLng(24.40302 ,66.69088),new google.maps.LatLng(25.39381 ,66.07463),new google.maps.LatLng(24.73475 ,67.39588),new google.maps.LatLng(24.13683 ,66.26414),new google.maps.LatLng(24.32105 ,68.00932),new google.maps.LatLng(24.03660 ,67.78439),new google.maps.LatLng(26.01459 ,66.84594),new google.maps.LatLng(24.81312 ,66.47049),new google.maps.LatLng(23.96731 ,67.39095),new google.maps.LatLng(26.04572 ,66.81901),new google.maps.LatLng(24.39772 ,67.54818),new google.maps.LatLng(25.77903 ,66.61941),new google.maps.LatLng(24.34387 ,66.89653),new google.maps.LatLng(24.24098 ,67.80017),new google.maps.LatLng(25.47706 ,67.42737),new google.maps.LatLng(25.55602 ,66.43811),new google.maps.LatLng(25.23840 ,66.70852),new google.maps.LatLng(24.22177 ,66.08087),new google.maps.LatLng(25.32489 ,66.20791),new google.maps.LatLng(26.23054 ,67.27182),new google.maps.LatLng(25.87763 ,67.09281),new google.maps.LatLng(24.24542 ,66.13775),new google.maps.LatLng(24.01851 ,66.74419),new google.maps.LatLng(25.33406 ,65.98803),new google.maps.LatLng(25.28085 ,66.31333),new google.maps.LatLng(24.96922 ,65.81613),new google.maps.LatLng(25.97820 ,67.55108),new google.maps.LatLng(23.92464 ,67.26615),new google.maps.LatLng(24.81844 ,66.96193),new google.maps.LatLng(25.21900 ,67.84003),new google.maps.LatLng(23.66512 ,67.16479),new google.maps.LatLng(24.60389 ,66.18917),new google.maps.LatLng(24.91279 ,66.72323),new google.maps.LatLng(25.71321 ,67.92158),new google.maps.LatLng(25.37762 ,66.99221),new google.maps.LatLng(24.45779 ,67.63561),new google.maps.LatLng(24.83908 ,68.28473),new google.maps.LatLng(24.64557 ,68.24822),new google.maps.LatLng(24.91985 ,66.96806),new google.maps.LatLng(24.68388 ,68.31100),new google.maps.LatLng(24.40536 ,68.23280),new google.maps.LatLng(25.49303 ,67.43043),new google.maps.LatLng(24.61075 ,68.31658),new google.maps.LatLng(25.26167 ,67.04623),new google.maps.LatLng(25.70796 ,67.95169),new google.maps.LatLng(24.32015 ,66.27675),new google.maps.LatLng(24.31391 ,66.23316),new google.maps.LatLng(25.00322 ,67.06794),new google.maps.LatLng(23.72104 ,66.97572),new google.maps.LatLng(24.40939 ,67.05232),new google.maps.LatLng(24.54715 ,67.99330),new google.maps.LatLng(25.96672 ,66.85204),new google.maps.LatLng(25.18608 ,68.01668),new google.maps.LatLng(25.66410 ,66.53703),new google.maps.LatLng(25.93195 ,67.79349),new google.maps.LatLng(24.84441 ,66.40682),new google.maps.LatLng(25.38356 ,66.66598),new google.maps.LatLng(26.16846 ,66.87425),new google.maps.LatLng(23.98709 ,66.33136),new google.maps.LatLng(26.00460 ,66.33358),new google.maps.LatLng(24.95165 ,68.34678),new google.maps.LatLng(25.45382 ,65.99794),new google.maps.LatLng(25.21242 ,66.70232),new google.maps.LatLng(23.99756 ,66.48161),new google.maps.LatLng(25.13170 ,66.73312),new google.maps.LatLng(24.92937 ,67.67876),new google.maps.LatLng(24.98085 ,67.47735),new google.maps.LatLng(24.47999 ,67.94722),new google.maps.LatLng(24.60453 ,65.83243),new google.maps.LatLng(25.89590 ,66.36864),new google.maps.LatLng(24.15735 ,67.46901),new google.maps.LatLng(24.04694 ,66.35995),new google.maps.LatLng(24.60471 ,67.98206),new google.maps.LatLng(25.92590 ,67.61589),new google.maps.LatLng(24.38077 ,68.22875),new google.maps.LatLng(26.09970 ,67.26425),new google.maps.LatLng(24.67585 ,68.30576),new google.maps.LatLng(25.75380 ,66.58041),new google.maps.LatLng(23.99106 ,67.72417),new google.maps.LatLng(25.10621 ,67.91559),new google.maps.LatLng(24.44799 ,67.50483),new google.maps.LatLng(25.72112 ,66.03224),new google.maps.LatLng(26.01804 ,66.82764),new google.maps.LatLng(25.73180 ,67.04372),new google.maps.LatLng(23.99490 ,67.25810),new google.maps.LatLng(26.23605 ,67.21642),new google.maps.LatLng(24.61329 ,66.90903),new google.maps.LatLng(24.43111 ,66.32400),new google.maps.LatLng(25.37304 ,66.64969),new google.maps.LatLng(24.75803 ,67.70215),new google.maps.LatLng(26.04822 ,66.98976),new google.maps.LatLng(25.70718 ,67.45736),new google.maps.LatLng(25.91691 ,67.45721),new google.maps.LatLng(23.96727 ,67.70059),new google.maps.LatLng(26.05979 ,66.46421),new google.maps.LatLng(24.85808 ,68.33394),new google.maps.LatLng(24.70047 ,68.33542),new google.maps.LatLng(24.38859 ,67.00807),new google.maps.LatLng(24.79338 ,66.03557),new google.maps.LatLng(25.87858 ,66.95145),new google.maps.LatLng(23.79956 ,66.65787),new google.maps.LatLng(24.65375 ,65.85815),new google.maps.LatLng(24.92498 ,67.89523),new google.maps.LatLng(25.30696 ,66.41402),new google.maps.LatLng(25.40815 ,68.16708),new google.maps.LatLng(25.77400 ,66.06687),new google.maps.LatLng(24.92397 ,67.10376),new google.maps.LatLng(23.85718 ,67.72321),new google.maps.LatLng(25.08087 ,66.97457),new google.maps.LatLng(24.67073 ,66.45918),new google.maps.LatLng(25.01417 ,66.95288),new google.maps.LatLng(24.86816 ,67.38848),new google.maps.LatLng(24.93875 ,66.12927),new google.maps.LatLng(24.95720 ,67.90373),new google.maps.LatLng(25.00117 ,68.29410),new google.maps.LatLng(25.13702 ,67.79568),new google.maps.LatLng(24.22472 ,67.31970),new google.maps.LatLng(25.87084 ,66.85738),new google.maps.LatLng(25.70072 ,67.14136),new google.maps.LatLng(25.10395 ,68.29118),new google.maps.LatLng(24.23838 ,67.32675),new google.maps.LatLng(25.51603 ,66.28523),new google.maps.LatLng(25.18711 ,67.74629),new google.maps.LatLng(25.19491 ,66.80094),new google.maps.LatLng(25.86973 ,67.52864),new google.maps.LatLng(23.96879 ,67.64105),new google.maps.LatLng(24.67356 ,66.41159),new google.maps.LatLng(25.12479 ,66.48348),new google.maps.LatLng(25.86821 ,66.61915),new google.maps.LatLng(25.83804 ,66.32932),new google.maps.LatLng(25.25950 ,66.19647),new google.maps.LatLng(23.95588 ,67.41564),new google.maps.LatLng(23.95511 ,67.56700),new google.maps.LatLng(24.05974 ,66.13282),new google.maps.LatLng(25.75544 ,68.06142),new google.maps.LatLng(24.34822 ,67.92486),new google.maps.LatLng(24.66393 ,66.34824),new google.maps.LatLng(24.87786 ,68.05680),new google.maps.LatLng(24.99399 ,68.21443),new google.maps.LatLng(26.15875 ,66.87163),new google.maps.LatLng(25.77457 ,67.64478),new google.maps.LatLng(25.21251 ,68.21148),new google.maps.LatLng(26.14530 ,66.69396),new google.maps.LatLng(24.96440 ,66.31521),new google.maps.LatLng(24.34149 ,67.11499),new google.maps.LatLng(25.10571 ,67.83558),new google.maps.LatLng(24.55872 ,66.22739),new google.maps.LatLng(24.07251 ,66.44998),new google.maps.LatLng(23.76799 ,67.35623),new google.maps.LatLng(25.22180 ,67.82476),new google.maps.LatLng(26.04538 ,67.21246),new google.maps.LatLng(23.79047 ,66.68209),new google.maps.LatLng(23.69003 ,67.31968),new google.maps.LatLng(25.49240 ,65.97871),new google.maps.LatLng(25.40301 ,67.87610),new google.maps.LatLng(24.46870 ,66.51132),new google.maps.LatLng(25.27014 ,67.42314),new google.maps.LatLng(26.18870 ,66.96371),new google.maps.LatLng(25.40510 ,66.11290),new google.maps.LatLng(25.66921 ,66.89689),new google.maps.LatLng(24.49646 ,66.38313),new google.maps.LatLng(24.91226 ,66.56516),new google.maps.LatLng(25.54225 ,66.60675),new google.maps.LatLng(25.08318 ,67.70177),new google.maps.LatLng(24.38648 ,67.19063),new google.maps.LatLng(23.90648 ,67.69706),new google.maps.LatLng(24.24329 ,66.20690),new google.maps.LatLng(25.71713 ,66.65758),new google.maps.LatLng(25.43507 ,66.14919),new google.maps.LatLng(24.51454 ,66.38207),new google.maps.LatLng(25.19207 ,67.96608),new google.maps.LatLng(23.78051 ,66.52432),new google.maps.LatLng(25.04193 ,66.76813),new google.maps.LatLng(24.66584 ,66.67572),new google.maps.LatLng(25.08003 ,66.90738),new google.maps.LatLng(23.83619 ,66.56290),new google.maps.LatLng(26.03676 ,66.46445),new google.maps.LatLng(25.01162 ,67.94501),new google.maps.LatLng(25.27245 ,67.30361),new google.maps.LatLng(24.23815 ,66.96229),new google.maps.LatLng(26.08382 ,67.36510),new google.maps.LatLng(25.35533 ,67.98307),new google.maps.LatLng(24.46935 ,67.62330),new google.maps.LatLng(25.78771 ,66.60195),new google.maps.LatLng(25.57683 ,66.32199),new google.maps.LatLng(24.12347 ,66.43398),new google.maps.LatLng(24.17987 ,67.75302),new google.maps.LatLng(25.94076 ,66.98596),new google.maps.LatLng(25.18644 ,67.93590),new google.maps.LatLng(24.67765 ,67.37566),new google.maps.LatLng(24.06786 ,66.24623),new google.maps.LatLng(25.25900 ,67.82938),new google.maps.LatLng(25.42639 ,66.29774),new google.maps.LatLng(23.86425 ,67.69369),new google.maps.LatLng(25.39174 ,67.05787),new google.maps.LatLng(23.75416 ,67.08425),new google.maps.LatLng(24.46000 ,66.23775),new google.maps.LatLng(24.20442 ,67.49147),new google.maps.LatLng(25.79935 ,66.88540),new google.maps.LatLng(25.36767 ,66.61825),new google.maps.LatLng(25.35378 ,65.96392),new google.maps.LatLng(26.10574 ,66.70124),new google.maps.LatLng(25.57880 ,66.75068),new google.maps.LatLng(25.32366 ,67.48443),new google.maps.LatLng(25.59426 ,66.47763),new google.maps.LatLng(25.12355 ,65.95275),new google.maps.LatLng(25.67608 ,67.98104),new google.maps.LatLng(25.06317 ,65.89993),new google.maps.LatLng(24.83290 ,68.11383),new google.maps.LatLng(25.42423 ,67.08842),new google.maps.LatLng(25.03150 ,68.29637),new google.maps.LatLng(24.00107 ,66.87474),new google.maps.LatLng(25.73913 ,67.17258),new google.maps.LatLng(25.93506 ,67.68136),new google.maps.LatLng(24.01451 ,66.69851),new google.maps.LatLng(24.63979 ,67.48551),new google.maps.LatLng(24.93372 ,66.86242),new google.maps.LatLng(24.61922 ,67.42148),new google.maps.LatLng(24.08783 ,67.15169),new google.maps.LatLng(25.10083 ,67.55205),new google.maps.LatLng(25.42085 ,66.40805),new google.maps.LatLng(25.09338 ,66.41694),new google.maps.LatLng(23.91719 ,67.00365),new google.maps.LatLng(25.14155 ,66.58544),new google.maps.LatLng(24.16619 ,67.68343),new google.maps.LatLng(24.04702 ,66.16748),new google.maps.LatLng(26.15288 ,67.49761),new google.maps.LatLng(25.49722 ,66.95391),new google.maps.LatLng(24.58759 ,67.09739),new google.maps.LatLng(23.71260 ,66.70132),new google.maps.LatLng(25.10858 ,67.41818),new google.maps.LatLng(24.22440 ,66.24530),new google.maps.LatLng(26.04649 ,66.76902),new google.maps.LatLng(25.07646 ,66.06922),new google.maps.LatLng(25.78203 ,66.94611),new google.maps.LatLng(25.48820 ,68.08609),new google.maps.LatLng(25.47841 ,67.30375),new google.maps.LatLng(25.57804 ,66.33409),new google.maps.LatLng(24.29110 ,66.65908),new google.maps.LatLng(25.09946 ,66.06747),new google.maps.LatLng(25.86185 ,66.36763),new google.maps.LatLng(25.50338 ,66.91315),new google.maps.LatLng(25.45576 ,67.96082),new google.maps.LatLng(24.37098 ,67.37614),new google.maps.LatLng(25.69035 ,66.02579),new google.maps.LatLng(23.75697 ,66.98243),new google.maps.LatLng(24.29706 ,66.18394),new google.maps.LatLng(24.85757 ,66.16735),new google.maps.LatLng(25.81585 ,67.23217),new google.maps.LatLng(24.77548 ,67.87900),new google.maps.LatLng(25.68486 ,67.12712),new google.maps.LatLng(24.75871 ,66.64823),new google.maps.LatLng(23.71391 ,67.41350),new google.maps.LatLng(24.94577 ,66.31536),new google.maps.LatLng(25.06269 ,68.14702),new google.maps.LatLng(24.38811 ,67.63350),new google.maps.LatLng(25.35871 ,66.12739),new google.maps.LatLng(25.46471 ,66.01311),new google.maps.LatLng(25.09634 ,67.36326),new google.maps.LatLng(25.37991 ,67.17514),new google.maps.LatLng(24.40495 ,66.50242),new google.maps.LatLng(24.44533 ,68.06816),new google.maps.LatLng(24.46035 ,67.59127),new google.maps.LatLng(25.29491 ,67.71690),new google.maps.LatLng(25.71644 ,67.92300),new google.maps.LatLng(25.62197 ,66.96314),new google.maps.LatLng(23.73270 ,66.90402),new google.maps.LatLng(24.78053 ,68.03328),new google.maps.LatLng(25.43085 ,66.31700),new google.maps.LatLng(25.57373 ,67.54156),new google.maps.LatLng(24.80752 ,68.07877),new google.maps.LatLng(24.60856 ,66.82415),new google.maps.LatLng(24.60131 ,67.06272),new google.maps.LatLng(25.73002 ,67.75903),new google.maps.LatLng(25.95190 ,66.81110),new google.maps.LatLng(25.64619 ,66.68074),new google.maps.LatLng(24.18602 ,66.64306),new google.maps.LatLng(23.74810 ,67.21554),new google.maps.LatLng(24.92247 ,66.39110),new google.maps.LatLng(25.30532 ,67.63715),new google.maps.LatLng(24.56278 ,67.21833),new google.maps.LatLng(25.03414 ,67.78031),new google.maps.LatLng(23.90609 ,66.84012),new google.maps.LatLng(23.82419 ,66.84355),new google.maps.LatLng(25.95193 ,67.35316),new google.maps.LatLng(24.30971 ,67.18648),new google.maps.LatLng(25.33235 ,66.23141),new google.maps.LatLng(24.98960 ,66.27958),new google.maps.LatLng(24.32573 ,68.06663),new google.maps.LatLng(24.91934 ,66.21501),new google.maps.LatLng(24.32463 ,66.10920),new google.maps.LatLng(24.79894 ,67.95778),new google.maps.LatLng(25.51135 ,68.03906),new google.maps.LatLng(24.88235 ,66.68700),new google.maps.LatLng(24.97684 ,67.71965),new google.maps.LatLng(24.45387 ,67.04291),new google.maps.LatLng(25.60080 ,66.00941),new google.maps.LatLng(25.22841 ,67.89374),new google.maps.LatLng(25.62891 ,67.44356),new google.maps.LatLng(24.80319 ,66.88400),new google.maps.LatLng(24.79164 ,66.38468),new google.maps.LatLng(24.03032 ,67.25005),new google.maps.LatLng(24.94907 ,67.43237),new google.maps.LatLng(24.53972 ,67.98007),new google.maps.LatLng(23.96370 ,66.93292),new google.maps.LatLng(24.17217 ,66.23450),new google.maps.LatLng(24.75317 ,67.39629),new google.maps.LatLng(24.61917 ,66.67715),new google.maps.LatLng(26.21181 ,67.15876),new google.maps.LatLng(24.54883 ,66.62466),new google.maps.LatLng(24.06324 ,67.39518),new google.maps.LatLng(24.13927 ,66.06390),new google.maps.LatLng(25.68156 ,67.97236),new google.maps.LatLng(26.03872 ,67.53734),new google.maps.LatLng(25.14352 ,68.03508),new google.maps.LatLng(24.54606 ,68.27525),new google.maps.LatLng(25.37553 ,66.20521),new google.maps.LatLng(24.46075 ,67.86146),new google.maps.LatLng(25.57579 ,66.62786),new google.maps.LatLng(23.98779 ,66.37019),new google.maps.LatLng(26.11699 ,66.71902),new google.maps.LatLng(25.25294 ,65.96018),new google.maps.LatLng(23.75352 ,66.82530),new google.maps.LatLng(24.02619 ,66.46272),new google.maps.LatLng(25.14292 ,66.96746),new google.maps.LatLng(24.65779 ,68.01997),new google.maps.LatLng(25.09905 ,65.93883),new google.maps.LatLng(24.08070 ,67.17437),new google.maps.LatLng(25.23562 ,66.96535),new google.maps.LatLng(25.04422 ,66.76540),new google.maps.LatLng(24.39889 ,66.55047),new google.maps.LatLng(24.79008 ,67.47504),new google.maps.LatLng(25.87808 ,67.89172),new google.maps.LatLng(24.10627 ,66.61088),new google.maps.LatLng(25.46606 ,67.21156),new google.maps.LatLng(24.62601 ,66.70777),new google.maps.LatLng(26.20431 ,67.04044),new google.maps.LatLng(24.71697 ,67.34789),new google.maps.LatLng(25.66532 ,67.05873),new google.maps.LatLng(23.95063 ,67.27704),new google.maps.LatLng(25.85985 ,67.46262),new google.maps.LatLng(25.89054 ,67.23421),new google.maps.LatLng(24.08972 ,66.47061),new google.maps.LatLng(25.69363 ,66.87083),new google.maps.LatLng(25.78736 ,67.22093),new google.maps.LatLng(23.97991 ,66.30677),new google.maps.LatLng(24.19807 ,66.19250),new google.maps.LatLng(24.29910 ,68.13389),new google.maps.LatLng(24.17187 ,67.29222),new google.maps.LatLng(25.07139 ,66.39664),new google.maps.LatLng(23.73119 ,66.63970),new google.maps.LatLng(25.62764 ,66.55340),new google.maps.LatLng(25.17946 ,66.79702),new google.maps.LatLng(24.68551 ,66.44947),new google.maps.LatLng(24.74273 ,67.71080),new google.maps.LatLng(24.73069 ,67.24411),new google.maps.LatLng(25.29325 ,66.51777),new google.maps.LatLng(24.92289 ,67.75222),new google.maps.LatLng(25.10027 ,68.07268),new google.maps.LatLng(25.18202 ,66.11283),new google.maps.LatLng(24.93397 ,66.79373),new google.maps.LatLng(24.70040 ,67.29970),new google.maps.LatLng(24.60506 ,68.12561),new google.maps.LatLng(25.87875 ,66.92978),new google.maps.LatLng(25.46574 ,66.98282),new google.maps.LatLng(25.81761 ,67.10018),new google.maps.LatLng(24.75784 ,67.40855),new google.maps.LatLng(25.88590 ,67.81981),new google.maps.LatLng(24.22685 ,67.14526),new google.maps.LatLng(26.10864 ,66.88199),new google.maps.LatLng(24.05820 ,66.32021),new google.maps.LatLng(24.56372 ,66.09172),new google.maps.LatLng(24.72835 ,66.24229),new google.maps.LatLng(25.17292 ,66.90022),new google.maps.LatLng(25.16803 ,67.05228),new google.maps.LatLng(25.21570 ,66.33862),new google.maps.LatLng(24.08804 ,67.06043),new google.maps.LatLng(23.91327 ,67.80274),new google.maps.LatLng(24.17708 ,67.64522),new google.maps.LatLng(23.94309 ,66.38597),new google.maps.LatLng(25.66768 ,67.09577),new google.maps.LatLng(26.22201 ,66.91315),new google.maps.LatLng(24.71416 ,65.96128),new google.maps.LatLng(24.05753 ,67.31665),new google.maps.LatLng(25.51054 ,66.53219),new google.maps.LatLng(25.98843 ,66.46783),new google.maps.LatLng(25.00747 ,66.44451),new google.maps.LatLng(24.79343 ,67.10027),new google.maps.LatLng(25.14322 ,67.01552),new google.maps.LatLng(25.63662 ,67.00217),new google.maps.LatLng(25.67761 ,67.62418),new google.maps.LatLng(23.67165 ,67.06559),new google.maps.LatLng(24.57479 ,67.70279),new google.maps.LatLng(24.21710 ,67.71093),new google.maps.LatLng(24.77873 ,66.93726),new google.maps.LatLng(25.71232 ,67.28477),new google.maps.LatLng(23.71594 ,67.20116),new google.maps.LatLng(24.94259 ,67.30508),new google.maps.LatLng(25.40436 ,67.77548),new google.maps.LatLng(24.20181 ,66.75990),new google.maps.LatLng(24.48202 ,67.03293),new google.maps.LatLng(25.80630 ,66.47688),new google.maps.LatLng(25.92320 ,66.39975),new google.maps.LatLng(25.55437 ,66.84709),new google.maps.LatLng(24.94525 ,67.90497),new google.maps.LatLng(25.32121 ,67.69367),new google.maps.LatLng(25.78034 ,67.78531),new google.maps.LatLng(24.04434 ,66.35258),new google.maps.LatLng(24.69759 ,67.50378),new google.maps.LatLng(24.98587 ,66.31495),new google.maps.LatLng(24.06952 ,66.22235),new google.maps.LatLng(26.07737 ,66.96265),new google.maps.LatLng(25.37954 ,66.08542),new google.maps.LatLng(25.72200 ,66.67941),new google.maps.LatLng(24.31324 ,67.57619),new google.maps.LatLng(25.72166 ,68.05305),new google.maps.LatLng(25.88374 ,67.73361),new google.maps.LatLng(24.92055 ,66.15804),new google.maps.LatLng(25.68121 ,66.00062),new google.maps.LatLng(25.09978 ,66.57376),new google.maps.LatLng(24.81299 ,67.70519),new google.maps.LatLng(25.39984 ,68.04679),new google.maps.LatLng(25.64638 ,67.82067),new google.maps.LatLng(25.64850 ,66.57966),new google.maps.LatLng(25.77658 ,66.89453),new google.maps.LatLng(26.01884 ,66.51654),new google.maps.LatLng(25.49152 ,68.23593),new google.maps.LatLng(23.93123 ,67.47818),new google.maps.LatLng(25.12646 ,65.95376),new google.maps.LatLng(24.90562 ,66.27196),new google.maps.LatLng(26.15201 ,66.76425),new google.maps.LatLng(24.86683 ,67.84290),new google.maps.LatLng(25.09801 ,67.84711),new google.maps.LatLng(23.82252 ,67.66766),new google.maps.LatLng(25.95167 ,66.47544),new google.maps.LatLng(25.06222 ,68.16008),new google.maps.LatLng(26.09778 ,67.60650),new google.maps.LatLng(23.87885 ,67.10632),new google.maps.LatLng(25.94108 ,67.44392),new google.maps.LatLng(24.56546 ,66.12241),new google.maps.LatLng(24.12344 ,66.87149),new google.maps.LatLng(23.89718 ,66.42692),new google.maps.LatLng(25.11702 ,67.56820),new google.maps.LatLng(24.88495 ,66.17402),new google.maps.LatLng(25.09857 ,66.28098),new google.maps.LatLng(26.02575 ,67.64629),new google.maps.LatLng(25.31363 ,66.22918),new google.maps.LatLng(24.58469 ,66.20481),new google.maps.LatLng(24.61714 ,67.62796),new google.maps.LatLng(24.81750 ,67.02596),new google.maps.LatLng(25.37687 ,67.32782),new google.maps.LatLng(26.19557 ,67.02721),new google.maps.LatLng(24.00615 ,67.95297),new google.maps.LatLng(24.24259 ,67.98886),new google.maps.LatLng(24.70131 ,66.81444),new google.maps.LatLng(24.19734 ,67.83341),new google.maps.LatLng(25.74843 ,67.03177),new google.maps.LatLng(25.89440 ,67.25388),new google.maps.LatLng(23.78025 ,67.29724),new google.maps.LatLng(25.73047 ,66.83909),new google.maps.LatLng(24.32731 ,67.67577),new google.maps.LatLng(24.28181 ,67.90948),new google.maps.LatLng(25.41242 ,66.70514),new google.maps.LatLng(24.86027 ,65.80295),new google.maps.LatLng(24.40833 ,65.93148),new google.maps.LatLng(24.34729 ,66.16442),new google.maps.LatLng(24.40070 ,68.15399),new google.maps.LatLng(24.19381 ,66.13012),new google.maps.LatLng(24.26413 ,67.59650),new google.maps.LatLng(24.75034 ,66.37747),new google.maps.LatLng(25.40445 ,67.78677),new google.maps.LatLng(25.76541 ,66.79732),new google.maps.LatLng(25.32869 ,66.06423),new google.maps.LatLng(25.27633 ,66.90376),new google.maps.LatLng(25.95307 ,67.56041),new google.maps.LatLng(24.67965 ,66.62257),new google.maps.LatLng(24.93434 ,67.58926),new google.maps.LatLng(24.77343 ,65.90856),new google.maps.LatLng(24.21928 ,66.70777),new google.maps.LatLng(25.23587 ,68.17517),new google.maps.LatLng(26.07271 ,66.85318),new google.maps.LatLng(24.79165 ,67.08379),new google.maps.LatLng(24.38808 ,67.22944),new google.maps.LatLng(24.40395 ,66.92858),new google.maps.LatLng(25.64774 ,66.02674),new google.maps.LatLng(25.34504 ,67.80202),new google.maps.LatLng(25.76621 ,66.86286),new google.maps.LatLng(24.25469 ,68.07147),new google.maps.LatLng(24.40258 ,67.48197),new google.maps.LatLng(24.96569 ,67.70798),new google.maps.LatLng(24.60243 ,67.07929),new google.maps.LatLng(26.07796 ,67.27320),new google.maps.LatLng(24.58369 ,66.11800),new google.maps.LatLng(23.94065 ,67.38550),new google.maps.LatLng(24.64533 ,65.90979),new google.maps.LatLng(24.98498 ,65.78649),new google.maps.LatLng(26.21218 ,67.24294),new google.maps.LatLng(23.83710 ,67.34394),new google.maps.LatLng(25.52120 ,66.09374),new google.maps.LatLng(24.68856 ,68.11062),new google.maps.LatLng(24.02315 ,67.67928),new google.maps.LatLng(25.68462 ,66.06224),new google.maps.LatLng(24.02520 ,66.84952),new google.maps.LatLng(25.78745 ,66.66586),new google.maps.LatLng(24.47241 ,68.00471),new google.maps.LatLng(24.47968 ,66.98507),new google.maps.LatLng(25.99888 ,67.58463),new google.maps.LatLng(25.21778 ,67.49098),new google.maps.LatLng(24.48943 ,67.27637),new google.maps.LatLng(24.16630 ,67.68782),new google.maps.LatLng(24.96627 ,66.29759),new google.maps.LatLng(25.37622 ,66.29269),new google.maps.LatLng(24.14252 ,66.82960),new google.maps.LatLng(24.87727 ,67.64543),new google.maps.LatLng(25.03349 ,67.34739),new google.maps.LatLng(24.88700 ,66.78056),new google.maps.LatLng(24.76990 ,66.83218),new google.maps.LatLng(25.84245 ,66.49332),new google.maps.LatLng(25.65269 ,66.87872),new google.maps.LatLng(24.53609 ,66.50636),new google.maps.LatLng(24.89591 ,66.13180),new google.maps.LatLng(25.06039 ,66.11405),new google.maps.LatLng(25.02060 ,67.86922),new google.maps.LatLng(24.85473 ,67.01117),new google.maps.LatLng(25.25080 ,68.06051),new google.maps.LatLng(24.72278 ,66.80393),new google.maps.LatLng(25.84998 ,66.85968),new google.maps.LatLng(24.94407 ,66.76320),new google.maps.LatLng(24.36596 ,67.49487),new google.maps.LatLng(25.75665 ,67.31937),new google.maps.LatLng(24.61209 ,67.20929),new google.maps.LatLng(24.00375 ,66.19601),new google.maps.LatLng(24.04584 ,68.00723),new google.maps.LatLng(24.41307 ,67.25820),new google.maps.LatLng(23.93444 ,66.27938),new google.maps.LatLng(23.94579 ,67.85498),new google.maps.LatLng(24.63093 ,67.27411),new google.maps.LatLng(24.72260 ,66.45743),new google.maps.LatLng(23.98605 ,66.43647),new google.maps.LatLng(25.40003 ,67.81140),new google.maps.LatLng(24.90215 ,67.23991),new google.maps.LatLng(25.77696 ,66.15164),new google.maps.LatLng(25.46018 ,65.88891),new google.maps.LatLng(25.66770 ,66.15769),new google.maps.LatLng(24.09643 ,66.10645),new google.maps.LatLng(23.87613 ,67.79183),new google.maps.LatLng(25.94193 ,67.66750),new google.maps.LatLng(24.06288 ,67.46395),new google.maps.LatLng(24.87539 ,67.10668),new google.maps.LatLng(24.13427 ,67.72629),new google.maps.LatLng(25.29380 ,66.35907),new google.maps.LatLng(24.42906 ,67.27583),new google.maps.LatLng(25.98474 ,67.62275),new google.maps.LatLng(23.97532 ,67.09507),new google.maps.LatLng(24.31078 ,66.53582),new google.maps.LatLng(25.39621 ,68.17380),new google.maps.LatLng(25.64370 ,66.43447),new google.maps.LatLng(24.94767 ,68.00398),new google.maps.LatLng(24.04852 ,66.61818),new google.maps.LatLng(25.28575 ,68.29695),new google.maps.LatLng(23.68880 ,67.26499),new google.maps.LatLng(25.64739 ,67.27031),new google.maps.LatLng(24.77594 ,65.94152),new google.maps.LatLng(24.65906 ,68.26646),new google.maps.LatLng(25.02999 ,68.26564),new google.maps.LatLng(23.88656 ,67.38907),new google.maps.LatLng(25.10119 ,68.33477),new google.maps.LatLng(25.34879 ,67.92220),new google.maps.LatLng(25.99127 ,66.87057),new google.maps.LatLng(25.25141 ,67.32321),new google.maps.LatLng(24.74976 ,66.44516),new google.maps.LatLng(25.01122 ,67.79465),new google.maps.LatLng(23.89020 ,66.62055),new google.maps.LatLng(26.16173 ,66.93727),new google.maps.LatLng(25.67440 ,67.37140),new google.maps.LatLng(25.43775 ,67.90222),new google.maps.LatLng(26.06144 ,67.52549),new google.maps.LatLng(24.52857 ,68.01152),new google.maps.LatLng(25.45782 ,66.20608),new google.maps.LatLng(24.73292 ,67.11128),new google.maps.LatLng(25.51553 ,67.99406),new google.maps.LatLng(25.23341 ,67.39018),new google.maps.LatLng(24.79981 ,66.50352),new google.maps.LatLng(24.30235 ,66.06965),new google.maps.LatLng(25.50795 ,66.51632),new google.maps.LatLng(24.75644 ,67.78229),new google.maps.LatLng(24.93304 ,66.34576),new google.maps.LatLng(24.71774 ,66.19813),new google.maps.LatLng(25.48423 ,67.54023),new google.maps.LatLng(24.91734 ,66.36848),new google.maps.LatLng(24.41328 ,67.84478),new google.maps.LatLng(26.05090 ,66.97720),new google.maps.LatLng(24.77596 ,66.29881),new google.maps.LatLng(24.86731 ,66.69393),new google.maps.LatLng(25.55134 ,67.96498),new google.maps.LatLng(24.93260 ,66.52856),new google.maps.LatLng(25.20216 ,67.34131),new google.maps.LatLng(25.01405 ,68.09771),new google.maps.LatLng(25.42662 ,67.95938),new google.maps.LatLng(24.58485 ,68.12284),new google.maps.LatLng(25.25330 ,67.90121),new google.maps.LatLng(24.92216 ,66.90700),new google.maps.LatLng(24.97793 ,67.68411),new google.maps.LatLng(24.79733 ,67.54880),new google.maps.LatLng(24.82918 ,66.68568),new google.maps.LatLng(25.51362 ,67.54329),new google.maps.LatLng(25.83358 ,66.63392),new google.maps.LatLng(26.01103 ,66.75723),new google.maps.LatLng(25.55284 ,67.00357),new google.maps.LatLng(26.13464 ,67.09306),new google.maps.LatLng(24.79759 ,65.97381),new google.maps.LatLng(25.68416 ,67.20684),new google.maps.LatLng(25.48120 ,66.90383),new google.maps.LatLng(24.42063 ,67.79511),new google.maps.LatLng(24.62375 ,67.23415),new google.maps.LatLng(24.37731 ,66.70964),new google.maps.LatLng(25.31856 ,67.85482),new google.maps.LatLng(23.95692 ,67.11779),new google.maps.LatLng(25.79414 ,66.90941),new google.maps.LatLng(25.95060 ,67.09292),new google.maps.LatLng(24.37389 ,66.53332),new google.maps.LatLng(23.68056 ,67.06821),new google.maps.LatLng(24.31708 ,66.42387),new google.maps.LatLng(25.68423 ,66.80518),new google.maps.LatLng(25.41233 ,65.90360),new google.maps.LatLng(25.85224 ,67.48476),new google.maps.LatLng(24.86367 ,68.16270),new google.maps.LatLng(24.67535 ,67.36192),new google.maps.LatLng(25.32655 ,66.64838),new google.maps.LatLng(24.39231 ,66.27010),new google.maps.LatLng(25.33227 ,66.25177),new google.maps.LatLng(25.37996 ,68.18193),new google.maps.LatLng(25.07944 ,66.67011),new google.maps.LatLng(26.23850 ,66.98888),new google.maps.LatLng(24.83600 ,66.60625),new google.maps.LatLng(25.38916 ,67.24889),new google.maps.LatLng(24.44163 ,66.83586),new google.maps.LatLng(24.15987 ,66.41665),new google.maps.LatLng(26.04399 ,66.63729),new google.maps.LatLng(25.27668 ,66.59038),new google.maps.LatLng(25.25070 ,65.88809),new google.maps.LatLng(25.10941 ,68.14594),new google.maps.LatLng(25.04841 ,67.09738),new google.maps.LatLng(24.90174 ,67.56411),new google.maps.LatLng(25.33265 ,66.55855),new google.maps.LatLng(25.29775 ,66.69853),new google.maps.LatLng(25.05304 ,67.70541),new google.maps.LatLng(25.27375 ,66.32159),new google.maps.LatLng(24.88661 ,67.38828),new google.maps.LatLng(23.98608 ,66.99532),new google.maps.LatLng(24.62527 ,67.24700),new google.maps.LatLng(24.53632 ,67.82698),new google.maps.LatLng(25.10040 ,66.88047),new google.maps.LatLng(25.09405 ,67.88489),new google.maps.LatLng(24.78275 ,66.40844),new google.maps.LatLng(24.78907 ,66.44134),new google.maps.LatLng(24.43222 ,66.08326),new google.maps.LatLng(23.82070 ,67.05890),new google.maps.LatLng(25.60035 ,66.52190),new google.maps.LatLng(25.17465 ,66.58475),new google.maps.LatLng(25.82504 ,67.41429),new google.maps.LatLng(25.52613 ,66.45748),new google.maps.LatLng(24.70309 ,66.00922),new google.maps.LatLng(24.82111 ,68.04209),new google.maps.LatLng(23.89446 ,67.32172),new google.maps.LatLng(24.58167 ,66.79220),new google.maps.LatLng(24.26392 ,68.00078),new google.maps.LatLng(24.22442 ,66.43512),new google.maps.LatLng(25.25816 ,67.21285),new google.maps.LatLng(24.05580 ,66.78243),new google.maps.LatLng(24.36108 ,66.54557),new google.maps.LatLng(25.13448 ,66.39763),new google.maps.LatLng(26.20985 ,67.36434),new google.maps.LatLng(25.73645 ,67.85604),new google.maps.LatLng(24.10366 ,67.78255),new google.maps.LatLng(24.01323 ,67.95540),new google.maps.LatLng(25.26530 ,67.48024),new google.maps.LatLng(25.38321 ,67.37444),new google.maps.LatLng(25.65792 ,66.69487),new google.maps.LatLng(23.99964 ,67.81807),new google.maps.LatLng(25.40746 ,66.12817),new google.maps.LatLng(24.89412 ,67.46571),new google.maps.LatLng(25.45466 ,67.09446),new google.maps.LatLng(26.05677 ,66.61590),new google.maps.LatLng(24.90388 ,66.25137),new google.maps.LatLng(25.05792 ,68.19987),new google.maps.LatLng(24.34242 ,67.22788),new google.maps.LatLng(25.46118 ,66.75214),new google.maps.LatLng(24.39124 ,65.91517),new google.maps.LatLng(25.83711 ,67.01391),new google.maps.LatLng(25.90919 ,66.50118),new google.maps.LatLng(25.01025 ,66.90908),new google.maps.LatLng(24.55323 ,67.02215),new google.maps.LatLng(25.12918 ,66.37956),new google.maps.LatLng(25.93237 ,67.29679),new google.maps.LatLng(24.46889 ,67.80911),new google.maps.LatLng(25.01960 ,68.01737),new google.maps.LatLng(24.33975 ,67.63109),new google.maps.LatLng(25.69975 ,67.11693),new google.maps.LatLng(24.65400 ,67.57519),new google.maps.LatLng(25.84389 ,67.71496),new google.maps.LatLng(25.62602 ,66.06194),new google.maps.LatLng(24.82481 ,68.10614),new google.maps.LatLng(25.47758 ,68.01968),new google.maps.LatLng(24.33374 ,65.97253),new google.maps.LatLng(25.51842 ,66.63829),new google.maps.LatLng(24.98515 ,66.80696),new google.maps.LatLng(23.72426 ,66.70743),new google.maps.LatLng(25.63129 ,67.06802),new google.maps.LatLng(24.26977 ,67.74039),new google.maps.LatLng(24.16668 ,66.29890),new google.maps.LatLng(24.35949 ,67.06392),new google.maps.LatLng(26.17082 ,67.44415),new google.maps.LatLng(25.85240 ,66.61886),new google.maps.LatLng(25.00248 ,65.99979),new google.maps.LatLng(23.83262 ,67.08488),new google.maps.LatLng(24.14525 ,66.38221),new google.maps.LatLng(24.96718 ,67.52864),new google.maps.LatLng(25.83300 ,66.67038),new google.maps.LatLng(24.36315 ,67.94890),new google.maps.LatLng(24.85493 ,66.98719),new google.maps.LatLng(25.21960 ,67.70974),new google.maps.LatLng(25.73818 ,66.87839),new google.maps.LatLng(24.96720 ,65.85981),new google.maps.LatLng(24.58367 ,66.34984),new google.maps.LatLng(25.34535 ,66.97119),new google.maps.LatLng(24.57094 ,67.65755),new google.maps.LatLng(24.59558 ,67.01427),new google.maps.LatLng(23.97737 ,67.44762),new google.maps.LatLng(24.73721 ,67.99187),new google.maps.LatLng(24.07164 ,67.13165),new google.maps.LatLng(24.33630 ,66.49594),new google.maps.LatLng(25.05140 ,67.32427),new google.maps.LatLng(25.00905 ,67.09857),new google.maps.LatLng(24.74239 ,66.00325),new google.maps.LatLng(25.58053 ,67.85063),new google.maps.LatLng(25.64202 ,66.62756),new google.maps.LatLng(24.67222 ,67.28564),new google.maps.LatLng(25.09022 ,68.01356),new google.maps.LatLng(23.86664 ,66.57600),new google.maps.LatLng(25.16252 ,65.93979),new google.maps.LatLng(24.55606 ,67.56802),new google.maps.LatLng(24.06995 ,66.24547),new google.maps.LatLng(24.88669 ,66.61696),new google.maps.LatLng(24.55071 ,68.16464),new google.maps.LatLng(24.82973 ,66.62466),new google.maps.LatLng(24.27710 ,67.34401),new google.maps.LatLng(25.44896 ,66.83079),new google.maps.LatLng(25.20159 ,68.23445),new google.maps.LatLng(25.78310 ,66.11461),new google.maps.LatLng(24.43968 ,67.17518),new google.maps.LatLng(24.80125 ,68.08350),new google.maps.LatLng(25.66322 ,67.30782),new google.maps.LatLng(26.05860 ,66.67537),new google.maps.LatLng(25.83140 ,66.58303),new google.maps.LatLng(25.87727 ,67.04780),new google.maps.LatLng(24.71566 ,66.80715),new google.maps.LatLng(25.09726 ,66.42799),new google.maps.LatLng(24.34881 ,67.97677),new google.maps.LatLng(24.64655 ,66.22907),new google.maps.LatLng(24.11348 ,67.29629),new google.maps.LatLng(23.68893 ,66.73208),new google.maps.LatLng(24.53721 ,67.58653),new google.maps.LatLng(23.71672 ,66.87468),new google.maps.LatLng(25.04648 ,66.62954),new google.maps.LatLng(25.32196 ,66.62423),new google.maps.LatLng(24.42894 ,67.32135),new google.maps.LatLng(24.05148 ,67.87280),new google.maps.LatLng(24.66493 ,66.42394),new google.maps.LatLng(24.14374 ,66.24402),new google.maps.LatLng(24.34831 ,67.49820),new google.maps.LatLng(24.51199 ,67.22004),new google.maps.LatLng(24.72932 ,67.29043),new google.maps.LatLng(25.48124 ,66.14782),new google.maps.LatLng(25.43602 ,67.23279),new google.maps.LatLng(25.29641 ,66.69280),new google.maps.LatLng(25.67500 ,66.72156),new google.maps.LatLng(24.78665 ,67.09056),new google.maps.LatLng(25.98981 ,66.38169),new google.maps.LatLng(24.27057 ,67.62340),new google.maps.LatLng(24.98663 ,67.74183),new google.maps.LatLng(24.01803 ,67.94278),new google.maps.LatLng(24.15604 ,66.77243),new google.maps.LatLng(24.70925 ,68.27679),new google.maps.LatLng(25.20786 ,65.96453),new google.maps.LatLng(25.14184 ,65.82176),new google.maps.LatLng(24.84804 ,66.24417),new google.maps.LatLng(23.77750 ,67.19608),new google.maps.LatLng(25.88123 ,67.29287),new google.maps.LatLng(24.25697 ,66.65995),new google.maps.LatLng(25.65093 ,66.26654),new google.maps.LatLng(24.89552 ,67.42937),new google.maps.LatLng(24.33135 ,65.96919),new google.maps.LatLng(25.66382 ,67.01442),new google.maps.LatLng(25.62039 ,66.47956),new google.maps.LatLng(25.16326 ,67.95746),new google.maps.LatLng(24.88711 ,67.55709),new google.maps.LatLng(24.20207 ,66.26555),new google.maps.LatLng(25.04740 ,68.12332),new google.maps.LatLng(23.93418 ,67.52593),new google.maps.LatLng(25.27556 ,67.59034),new google.maps.LatLng(25.15978 ,67.42465),new google.maps.LatLng(26.00631 ,67.07970),new google.maps.LatLng(25.31518 ,67.92769),new google.maps.LatLng(25.04336 ,67.63439),new google.maps.LatLng(25.06276 ,66.87978),new google.maps.LatLng(25.66637 ,66.59486),new google.maps.LatLng(24.41486 ,68.16656),new google.maps.LatLng(23.94691 ,66.49766),new google.maps.LatLng(24.77996 ,67.06094),new google.maps.LatLng(25.91964 ,67.61160),new google.maps.LatLng(25.04046 ,66.47904),new google.maps.LatLng(24.87960 ,67.02238),new google.maps.LatLng(24.15349 ,67.63387),new google.maps.LatLng(24.38659 ,66.30062),new google.maps.LatLng(26.07980 ,66.65373),new google.maps.LatLng(24.18880 ,67.92051),new google.maps.LatLng(24.08591 ,66.22635),new google.maps.LatLng(25.93012 ,67.80980),new google.maps.LatLng(25.93619 ,66.88093),new google.maps.LatLng(24.54504 ,66.14948),new google.maps.LatLng(25.41203 ,65.90772),new google.maps.LatLng(24.50009 ,68.02050),new google.maps.LatLng(26.06376 ,67.73679),new google.maps.LatLng(24.37876 ,67.41667),new google.maps.LatLng(25.36855 ,67.54224),new google.maps.LatLng(25.08377 ,66.26256),new google.maps.LatLng(24.66410 ,67.61890),new google.maps.LatLng(25.68388 ,66.13313),new google.maps.LatLng(24.31632 ,67.01112),new google.maps.LatLng(24.72142 ,66.33639),new google.maps.LatLng(23.89272 ,66.95896),new google.maps.LatLng(25.39058 ,67.31134),new google.maps.LatLng(25.05874 ,66.90310),new google.maps.LatLng(26.17899 ,67.19052),new google.maps.LatLng(25.51339 ,66.43001),new google.maps.LatLng(25.94961 ,67.12297),new google.maps.LatLng(24.34109 ,66.39978),new google.maps.LatLng(24.01577 ,67.54410),new google.maps.LatLng(25.28211 ,67.44815),new google.maps.LatLng(25.19690 ,68.02309),new google.maps.LatLng(25.46096 ,66.65235),new google.maps.LatLng(24.95160 ,66.57734),new google.maps.LatLng(25.35632 ,66.00759),new google.maps.LatLng(24.93775 ,67.44604),new google.maps.LatLng(24.86050 ,67.03510),new google.maps.LatLng(23.88562 ,66.41182),new google.maps.LatLng(25.74462 ,67.05170),new google.maps.LatLng(24.30930 ,66.65021),new google.maps.LatLng(24.60174 ,68.06686),new google.maps.LatLng(25.85095 ,67.17805),new google.maps.LatLng(25.08426 ,67.35453),new google.maps.LatLng(25.59557 ,66.20756),new google.maps.LatLng(23.89710 ,67.28251),new google.maps.LatLng(25.33346 ,66.69478),new google.maps.LatLng(25.78230 ,66.32379),new google.maps.LatLng(25.31418 ,67.53742),new google.maps.LatLng(24.32533 ,67.55477),new google.maps.LatLng(25.24908 ,66.09388),new google.maps.LatLng(24.56792 ,66.76270),new google.maps.LatLng(24.93480 ,67.18521),new google.maps.LatLng(24.82616 ,67.37985),new google.maps.LatLng(24.78267 ,67.66936),new google.maps.LatLng(25.10583 ,66.71098),new google.maps.LatLng(25.72259 ,67.44489),new google.maps.LatLng(23.80961 ,67.21801),new google.maps.LatLng(24.14371 ,66.52269),new google.maps.LatLng(24.56825 ,66.93936),new google.maps.LatLng(24.42252 ,66.39056),new google.maps.LatLng(25.52512 ,68.05898),new google.maps.LatLng(25.29886 ,66.89149),new google.maps.LatLng(25.33735 ,67.89748),new google.maps.LatLng(24.55090 ,66.25660),new google.maps.LatLng(24.79596 ,66.13126),new google.maps.LatLng(24.17341 ,66.66391),new google.maps.LatLng(24.54774 ,67.78409),new google.maps.LatLng(25.70171 ,66.46508),new google.maps.LatLng(25.69039 ,66.01010),new google.maps.LatLng(25.91424 ,67.58649),new google.maps.LatLng(25.12033 ,68.05244),new google.maps.LatLng(25.69309 ,66.90235),new google.maps.LatLng(24.69584 ,68.22150),new google.maps.LatLng(24.27779 ,67.79048),new google.maps.LatLng(24.25625 ,68.02983),new google.maps.LatLng(24.50544 ,67.86267),new google.maps.LatLng(24.47752 ,66.02270),new google.maps.LatLng(24.75695 ,66.18436),new google.maps.LatLng(24.48255 ,67.53772),new google.maps.LatLng(25.11905 ,67.29864),new google.maps.LatLng(25.00165 ,65.88801),new google.maps.LatLng(25.17431 ,65.79534),new google.maps.LatLng(25.12177 ,67.93559),new google.maps.LatLng(25.36185 ,68.10355),new google.maps.LatLng(24.65821 ,67.50578),new google.maps.LatLng(24.83442 ,66.15172),new google.maps.LatLng(24.33591 ,67.50806),new google.maps.LatLng(24.33715 ,67.36887),new google.maps.LatLng(25.06287 ,67.93774),new google.maps.LatLng(24.94866 ,67.30856),new google.maps.LatLng(25.83075 ,67.51618),new google.maps.LatLng(24.67134 ,68.30664),new google.maps.LatLng(24.80951 ,66.71476),new google.maps.LatLng(24.36061 ,67.71706),new google.maps.LatLng(25.37765 ,66.80880),new google.maps.LatLng(25.83478 ,66.80168),new google.maps.LatLng(23.90791 ,66.52770),new google.maps.LatLng(25.69736 ,67.92136),new google.maps.LatLng(25.85251 ,67.64354),new google.maps.LatLng(25.98230 ,67.36576),new google.maps.LatLng(24.79881 ,66.29877),new google.maps.LatLng(24.32250 ,66.15254),new google.maps.LatLng(24.44727 ,67.03273),new google.maps.LatLng(25.81675 ,67.43640),new google.maps.LatLng(24.89669 ,68.26222),new google.maps.LatLng(25.64274 ,67.63240),new google.maps.LatLng(25.38760 ,66.42402),new google.maps.LatLng(25.41190 ,66.40851),new google.maps.LatLng(25.03883 ,66.07877),new google.maps.LatLng(24.74904 ,67.46761),new google.maps.LatLng(24.28301 ,67.44411),new google.maps.LatLng(25.60564 ,67.86252),new google.maps.LatLng(24.01189 ,66.75917),new google.maps.LatLng(25.25441 ,68.14673),new google.maps.LatLng(24.86269 ,66.35996),new google.maps.LatLng(24.15784 ,66.16129),new google.maps.LatLng(24.90115 ,68.21819),new google.maps.LatLng(25.74218 ,66.48877),new google.maps.LatLng(24.83388 ,67.22558),new google.maps.LatLng(23.85967 ,66.83751),new google.maps.LatLng(24.31325 ,66.57099),new google.maps.LatLng(24.37593 ,65.96218),new google.maps.LatLng(23.86113 ,66.85530),new google.maps.LatLng(25.17030 ,67.58204),new google.maps.LatLng(25.05882 ,67.01524),new google.maps.LatLng(25.92299 ,66.96540),new google.maps.LatLng(24.36256 ,67.24460),new google.maps.LatLng(24.73215 ,68.14264),new google.maps.LatLng(25.24429 ,66.98464),new google.maps.LatLng(25.66296 ,66.68134),new google.maps.LatLng(24.88399 ,66.15043),new google.maps.LatLng(24.24738 ,66.30531),new google.maps.LatLng(24.65247 ,66.23981),new google.maps.LatLng(24.77207 ,66.50704),new google.maps.LatLng(25.74996 ,67.25745),new google.maps.LatLng(25.03976 ,68.32579),new google.maps.LatLng(24.92732 ,67.07406),new google.maps.LatLng(25.36568 ,67.84458),new google.maps.LatLng(23.84319 ,66.73296),new google.maps.LatLng(24.76058 ,67.04902),new google.maps.LatLng(25.53019 ,67.26630),new google.maps.LatLng(25.84931 ,66.53732),new google.maps.LatLng(25.26419 ,67.40762),new google.maps.LatLng(24.66741 ,67.00996),new google.maps.LatLng(24.57175 ,67.08224),new google.maps.LatLng(25.93907 ,66.89188),new google.maps.LatLng(25.77023 ,66.68635),new google.maps.LatLng(26.09812 ,66.67427),new google.maps.LatLng(23.70369 ,67.38040),new google.maps.LatLng(25.30382 ,66.63808),new google.maps.LatLng(25.85658 ,67.32869),new google.maps.LatLng(23.82394 ,66.79974),new google.maps.LatLng(24.30429 ,67.65824),new google.maps.LatLng(24.56638 ,66.76082),new google.maps.LatLng(26.06222 ,66.52755),new google.maps.LatLng(24.71051 ,66.23180),new google.maps.LatLng(24.61116 ,67.51653),new google.maps.LatLng(25.23421 ,67.77491),new google.maps.LatLng(25.08777 ,68.06578),new google.maps.LatLng(24.44624 ,68.09939),new google.maps.LatLng(25.89081 ,67.09843),new google.maps.LatLng(24.28168 ,67.81662),new google.maps.LatLng(26.15881 ,67.35442),new google.maps.LatLng(25.73209 ,66.13042),new google.maps.LatLng(23.67465 ,66.91383),new google.maps.LatLng(25.72311 ,67.75381),new google.maps.LatLng(24.27084 ,66.15056),new google.maps.LatLng(24.60525 ,66.52842),new google.maps.LatLng(24.31600 ,66.84148),new google.maps.LatLng(25.25515 ,66.05123),new google.maps.LatLng(25.93296 ,67.05535),new google.maps.LatLng(25.39055 ,67.66006),new google.maps.LatLng(26.03005 ,67.42171),new google.maps.LatLng(24.05208 ,66.93170),new google.maps.LatLng(24.25133 ,67.85185),new google.maps.LatLng(25.54676 ,67.94677),new google.maps.LatLng(24.00274 ,66.75887),new google.maps.LatLng(24.87700 ,67.97068),new google.maps.LatLng(24.72722 ,67.63987),new google.maps.LatLng(24.33576 ,66.88446),new google.maps.LatLng(25.18978 ,67.21160),new google.maps.LatLng(25.38887 ,66.31936),new google.maps.LatLng(23.86130 ,66.83071),new google.maps.LatLng(24.57965 ,67.46569),new google.maps.LatLng(24.90933 ,66.00078),new google.maps.LatLng(24.55676 ,66.12160),new google.maps.LatLng(24.30731 ,65.99574),new google.maps.LatLng(24.89303 ,66.33004),new google.maps.LatLng(24.72350 ,66.36972),new google.maps.LatLng(24.78102 ,65.90873),new google.maps.LatLng(24.19261 ,68.12155),new google.maps.LatLng(24.49677 ,66.99132),new google.maps.LatLng(25.61764 ,66.14839),new google.maps.LatLng(25.48258 ,66.94020),new google.maps.LatLng(24.31465 ,67.24695),new google.maps.LatLng(26.22179 ,66.94647),new google.maps.LatLng(24.35453 ,66.98376),new google.maps.LatLng(23.91469 ,66.82275),new google.maps.LatLng(24.53031 ,67.58799),new google.maps.LatLng(24.78636 ,66.74307),new google.maps.LatLng(25.19264 ,66.58721),new google.maps.LatLng(25.97718 ,67.79912),new google.maps.LatLng(25.38971 ,67.62913),new google.maps.LatLng(25.71034 ,67.12766),new google.maps.LatLng(25.26157 ,66.66361),new google.maps.LatLng(24.43267 ,66.53365),new google.maps.LatLng(26.05312 ,67.46514),new google.maps.LatLng(24.71993 ,66.95465),new google.maps.LatLng(24.10610 ,67.64752),new google.maps.LatLng(24.71423 ,66.61099),new google.maps.LatLng(25.48671 ,67.67441),new google.maps.LatLng(25.86045 ,66.99283),new google.maps.LatLng(24.99256 ,66.48615),new google.maps.LatLng(23.99232 ,67.10203),new google.maps.LatLng(24.51680 ,68.11504),new google.maps.LatLng(24.77919 ,67.77907),new google.maps.LatLng(24.46876 ,66.99060),new google.maps.LatLng(25.73135 ,66.46564),new google.maps.LatLng(24.18983 ,67.01493),new google.maps.LatLng(24.78058 ,66.75222),new google.maps.LatLng(24.73842 ,66.06134),new google.maps.LatLng(24.48104 ,66.87152),new google.maps.LatLng(25.72093 ,67.09594),new google.maps.LatLng(25.66493 ,66.71326),new google.maps.LatLng(25.35900 ,66.84873),new google.maps.LatLng(24.14315 ,66.19852),new google.maps.LatLng(25.68043 ,66.79403),new google.maps.LatLng(25.50579 ,66.90777),new google.maps.LatLng(25.25009 ,68.21997),new google.maps.LatLng(25.32745 ,67.69562),new google.maps.LatLng(25.32851 ,66.83643),new google.maps.LatLng(24.65698 ,68.06331),new google.maps.LatLng(24.53214 ,65.91048),new google.maps.LatLng(24.62247 ,68.09439),new google.maps.LatLng(25.19287 ,66.23708),new google.maps.LatLng(25.67189 ,66.08826),new google.maps.LatLng(25.54497 ,67.39579),new google.maps.LatLng(25.09828 ,66.40287),new google.maps.LatLng(24.95810 ,67.58017),new google.maps.LatLng(24.09937 ,67.45588),new google.maps.LatLng(23.82238 ,66.50343),new google.maps.LatLng(23.95087 ,66.83915),new google.maps.LatLng(24.33664 ,67.43325),new google.maps.LatLng(23.99152 ,66.28970),new google.maps.LatLng(24.52436 ,68.08875),new google.maps.LatLng(25.83690 ,66.57552),new google.maps.LatLng(26.06488 ,66.66958),new google.maps.LatLng(25.28090 ,67.37774),new google.maps.LatLng(24.66732 ,68.04656),new google.maps.LatLng(24.68243 ,66.83607),new google.maps.LatLng(24.37143 ,68.19285),new google.maps.LatLng(24.63233 ,67.95586),new google.maps.LatLng(26.13728 ,66.98757),new google.maps.LatLng(24.02419 ,66.71607),new google.maps.LatLng(26.02513 ,66.86972),new google.maps.LatLng(25.13967 ,66.41349),new google.maps.LatLng(24.66429 ,67.41847),new google.maps.LatLng(25.35457 ,66.07306),new google.maps.LatLng(25.43357 ,66.57610),new google.maps.LatLng(25.53697 ,67.98662),new google.maps.LatLng(25.41608 ,65.86849),new google.maps.LatLng(24.70660 ,67.76163),new google.maps.LatLng(25.76176 ,67.91305),new google.maps.LatLng(24.09641 ,66.26227),new google.maps.LatLng(24.87928 ,66.97746),new google.maps.LatLng(24.38830 ,68.04612),new google.maps.LatLng(25.03833 ,67.77066),new google.maps.LatLng(23.82754 ,67.30616),new google.maps.LatLng(24.06226 ,67.95669),new google.maps.LatLng(25.79095 ,68.05146),new google.maps.LatLng(23.91901 ,66.90363),new google.maps.LatLng(24.73917 ,66.99481),new google.maps.LatLng(24.91088 ,65.79587),new google.maps.LatLng(25.38783 ,66.04997),new google.maps.LatLng(25.98335 ,67.74747),new google.maps.LatLng(25.25950 ,67.57993),new google.maps.LatLng(25.76438 ,67.31354),new google.maps.LatLng(25.13694 ,67.12895),new google.maps.LatLng(25.40115 ,67.88856),new google.maps.LatLng(26.08613 ,67.07640),new google.maps.LatLng(25.97439 ,66.50594),new google.maps.LatLng(25.50196 ,66.74616),new google.maps.LatLng(25.49849 ,67.93780),new google.maps.LatLng(24.95692 ,66.34093),new google.maps.LatLng(25.08383 ,68.22375),new google.maps.LatLng(23.91059 ,67.41963),new google.maps.LatLng(26.11678 ,67.38266),new google.maps.LatLng(25.17831 ,67.18493),new google.maps.LatLng(25.59868 ,66.82351),new google.maps.LatLng(24.45078 ,66.78578),new google.maps.LatLng(23.84455 ,67.23405),new google.maps.LatLng(25.18322 ,68.00762),new google.maps.LatLng(24.60523 ,66.98013),new google.maps.LatLng(24.56881 ,66.23239),new google.maps.LatLng(25.14681 ,67.10885),new google.maps.LatLng(24.94139 ,66.62485),new google.maps.LatLng(25.15190 ,66.15496),new google.maps.LatLng(25.62791 ,67.28024),new google.maps.LatLng(25.97198 ,66.92424),new google.maps.LatLng(25.23695 ,66.32892),new google.maps.LatLng(25.11711 ,66.37795),new google.maps.LatLng(24.22939 ,67.00766),new google.maps.LatLng(24.88464 ,67.36349),new google.maps.LatLng(24.85337 ,66.08977),new google.maps.LatLng(25.71247 ,67.80100),new google.maps.LatLng(23.79193 ,67.28118),new google.maps.LatLng(24.25184 ,66.03264),new google.maps.LatLng(25.10370 ,66.83323),new google.maps.LatLng(25.50533 ,67.45222),new google.maps.LatLng(25.02490 ,66.01972),new google.maps.LatLng(24.61739 ,65.95464),new google.maps.LatLng(23.70820 ,67.27906),new google.maps.LatLng(25.45140 ,67.08969),new google.maps.LatLng(24.62560 ,66.48545),new google.maps.LatLng(24.80391 ,67.45166),new google.maps.LatLng(24.12870 ,66.65680),new google.maps.LatLng(24.48158 ,67.52172),new google.maps.LatLng(24.80135 ,66.48995),new google.maps.LatLng(24.32895 ,66.75310),new google.maps.LatLng(25.25610 ,66.14866),new google.maps.LatLng(25.97443 ,66.47395),new google.maps.LatLng(25.66237 ,67.25932),new google.maps.LatLng(24.03387 ,67.13009),new google.maps.LatLng(25.36777 ,66.58397),new google.maps.LatLng(25.28414 ,66.43164),new google.maps.LatLng(25.22185 ,67.24948),new google.maps.LatLng(25.62131 ,67.03668),new google.maps.LatLng(24.87086 ,68.20458),new google.maps.LatLng(25.00033 ,66.63018),new google.maps.LatLng(24.82824 ,66.93310),new google.maps.LatLng(24.12541 ,67.35993),new google.maps.LatLng(24.59516 ,66.36292),new google.maps.LatLng(25.92171 ,66.66134),new google.maps.LatLng(23.89381 ,66.64256),new google.maps.LatLng(25.64419 ,65.97667),new google.maps.LatLng(25.73365 ,67.20246),new google.maps.LatLng(26.10111 ,66.70389),new google.maps.LatLng(24.43898 ,66.59429),new google.maps.LatLng(24.05014 ,66.81968),new google.maps.LatLng(24.79625 ,65.82068),new google.maps.LatLng(23.88460 ,67.23272),new google.maps.LatLng(24.23455 ,66.58859),new google.maps.LatLng(24.54092 ,68.26691),new google.maps.LatLng(25.73960 ,67.65377),new google.maps.LatLng(24.30859 ,68.08834),new google.maps.LatLng(25.82181 ,66.65709),new google.maps.LatLng(25.77546 ,67.10800),new google.maps.LatLng(24.14197 ,66.06657),new google.maps.LatLng(24.70199 ,66.72373),new google.maps.LatLng(24.58045 ,67.63720),new google.maps.LatLng(24.20467 ,68.12386),new google.maps.LatLng(25.67286 ,66.98677),new google.maps.LatLng(25.82906 ,66.89915),new google.maps.LatLng(25.51684 ,66.78487),new google.maps.LatLng(26.07664 ,67.16304),new google.maps.LatLng(24.50396 ,65.96225),new google.maps.LatLng(25.28147 ,67.63766),new google.maps.LatLng(25.93248 ,67.88499),new google.maps.LatLng(26.18558 ,67.37673),new google.maps.LatLng(25.74839 ,66.25508),new google.maps.LatLng(24.69174 ,65.97287),new google.maps.LatLng(25.30929 ,67.95855),new google.maps.LatLng(24.52212 ,66.30302),new google.maps.LatLng(25.64630 ,67.55660),new google.maps.LatLng(24.19643 ,66.96232),new google.maps.LatLng(25.12553 ,67.10064),new google.maps.LatLng(24.37227 ,67.14476),new google.maps.LatLng(24.57301 ,66.13399),new google.maps.LatLng(25.47999 ,65.88583),new google.maps.LatLng(25.28994 ,65.87350),new google.maps.LatLng(25.57019 ,67.02402),new google.maps.LatLng(26.02127 ,67.21406),new google.maps.LatLng(25.65126 ,66.32656),new google.maps.LatLng(24.62064 ,66.15276),new google.maps.LatLng(24.34309 ,67.15258),new google.maps.LatLng(25.34966 ,66.55484),new google.maps.LatLng(24.62482 ,67.17325),new google.maps.LatLng(25.13551 ,67.71951),new google.maps.LatLng(25.00619 ,67.04501),new google.maps.LatLng(24.47995 ,66.69905),new google.maps.LatLng(26.09258 ,66.77939),new google.maps.LatLng(25.01170 ,65.95585),new google.maps.LatLng(24.42713 ,66.14656)]; \r\n }\r\n else if(type == 5){\r\n return [new google.maps.LatLng(34.50615 ,73.15849),new google.maps.LatLng(34.07429 ,72.41589),new google.maps.LatLng(34.16705 ,72.00336),new google.maps.LatLng(33.53914 ,72.59936),new google.maps.LatLng(32.94835 ,72.94351),new google.maps.LatLng(33.17600 ,72.03144),new google.maps.LatLng(33.63953 ,73.12768),new google.maps.LatLng(33.69067 ,73.34614),new google.maps.LatLng(33.44048 ,72.41579),new google.maps.LatLng(33.73119 ,73.58303),new google.maps.LatLng(33.15934 ,72.66008),new google.maps.LatLng(33.88113 ,72.73620),new google.maps.LatLng(33.16978 ,72.86644),new google.maps.LatLng(34.36370 ,72.81724),new google.maps.LatLng(32.84419 ,72.43342),new google.maps.LatLng(34.58969 ,73.03493),new google.maps.LatLng(33.74205 ,72.40735),new google.maps.LatLng(33.75417 ,73.47759),new google.maps.LatLng(33.79921 ,71.92354),new google.maps.LatLng(34.37984 ,73.21851),new google.maps.LatLng(33.59821 ,74.19854),new google.maps.LatLng(33.51404 ,72.04709),new google.maps.LatLng(34.72876 ,72.57568),new google.maps.LatLng(32.82847 ,72.50026),new google.maps.LatLng(34.62438 ,72.45676),new google.maps.LatLng(33.71594 ,72.37022),new google.maps.LatLng(34.21842 ,72.10381),new google.maps.LatLng(32.59842 ,72.62112),new google.maps.LatLng(33.60268 ,73.01064),new google.maps.LatLng(33.93714 ,71.85826),new google.maps.LatLng(33.00756 ,73.05467),new google.maps.LatLng(33.33748 ,73.85113),new google.maps.LatLng(34.48752 ,73.55999),new google.maps.LatLng(33.09487 ,73.09615),new google.maps.LatLng(34.50354 ,73.53439),new google.maps.LatLng(33.53894 ,73.35238),new google.maps.LatLng(32.62444 ,73.60398),new google.maps.LatLng(32.72827 ,72.75669),new google.maps.LatLng(33.41464 ,72.19787),new google.maps.LatLng(34.17560 ,73.77247),new google.maps.LatLng(32.77114 ,73.76851),new google.maps.LatLng(34.31464 ,72.05771),new google.maps.LatLng(33.13064 ,72.34207),new google.maps.LatLng(34.33514 ,72.40392),new google.maps.LatLng(32.54471 ,72.95428),new google.maps.LatLng(34.04453 ,72.08234),new google.maps.LatLng(34.77280 ,72.89327),new google.maps.LatLng(32.90108 ,72.67989),new google.maps.LatLng(32.55435 ,73.46464),new google.maps.LatLng(34.36974 ,72.21515),new google.maps.LatLng(32.53384 ,72.92783),new google.maps.LatLng(33.77851 ,73.44046),new google.maps.LatLng(34.21908 ,73.14275),new google.maps.LatLng(33.14710 ,72.93205),new google.maps.LatLng(34.22097 ,73.52388),new google.maps.LatLng(33.17456 ,73.92856),new google.maps.LatLng(33.05784 ,73.78173),new google.maps.LatLng(32.60942 ,72.96129),new google.maps.LatLng(34.44712 ,72.94317),new google.maps.LatLng(33.66937 ,73.11012),new google.maps.LatLng(34.18758 ,73.37909),new google.maps.LatLng(33.86298 ,73.71823),new google.maps.LatLng(33.41377 ,73.41564),new google.maps.LatLng(33.58600 ,73.72446),new google.maps.LatLng(34.42308 ,73.93648),new google.maps.LatLng(33.99062 ,73.28665),new google.maps.LatLng(33.52241 ,73.93358),new google.maps.LatLng(33.98518 ,73.74321),new google.maps.LatLng(33.96112 ,73.70753),new google.maps.LatLng(34.19425 ,73.69787),new google.maps.LatLng(33.81984 ,73.62061),new google.maps.LatLng(34.86033 ,73.06633),new google.maps.LatLng(33.62619 ,72.77586),new google.maps.LatLng(34.54405 ,72.41792),new google.maps.LatLng(33.44914 ,74.18764),new google.maps.LatLng(32.67638 ,72.63622),new google.maps.LatLng(33.65083 ,71.82849),new google.maps.LatLng(32.63595 ,73.24983),new google.maps.LatLng(34.26664 ,72.47148),new google.maps.LatLng(33.94303 ,72.23266),new google.maps.LatLng(33.75278 ,73.42967),new google.maps.LatLng(32.94475 ,73.04355),new google.maps.LatLng(34.38312 ,73.51456),new google.maps.LatLng(33.36966 ,73.61153),new google.maps.LatLng(33.10343 ,73.30888),new google.maps.LatLng(34.37419 ,73.85859),new google.maps.LatLng(32.73525 ,73.15351),new google.maps.LatLng(34.81243 ,72.64745),new google.maps.LatLng(33.89927 ,72.30889),new google.maps.LatLng(33.37557 ,73.13011),new google.maps.LatLng(33.53596 ,71.94112),new google.maps.LatLng(32.65139 ,73.61141),new google.maps.LatLng(33.35772 ,73.04566),new google.maps.LatLng(33.93607 ,73.60051),new google.maps.LatLng(34.21871 ,73.59995),new google.maps.LatLng(32.71126 ,72.77488),new google.maps.LatLng(32.90081 ,73.78588),new google.maps.LatLng(32.77133 ,73.14791),new google.maps.LatLng(34.58545 ,73.03744),new google.maps.LatLng(34.78922 ,73.20898),new google.maps.LatLng(33.48500 ,72.53865),new google.maps.LatLng(32.94495 ,73.24065),new google.maps.LatLng(34.15565 ,72.12712),new google.maps.LatLng(33.51352 ,73.71227),new google.maps.LatLng(32.83886 ,73.63214),new google.maps.LatLng(33.09416 ,73.74733),new google.maps.LatLng(34.69014 ,73.69286),new google.maps.LatLng(33.73232 ,72.28889),new google.maps.LatLng(34.02340 ,73.76415),new google.maps.LatLng(33.25132 ,73.04791),new google.maps.LatLng(34.25108 ,73.71518),new google.maps.LatLng(34.44134 ,72.30882),new google.maps.LatLng(33.44585 ,73.13404),new google.maps.LatLng(33.23124 ,73.22454),new google.maps.LatLng(32.95331 ,73.93001),new google.maps.LatLng(34.23274 ,73.81985),new google.maps.LatLng(33.90363 ,73.31087),new google.maps.LatLng(33.39825 ,72.56484),new google.maps.LatLng(33.54102 ,73.38039),new google.maps.LatLng(34.25999 ,72.62688),new google.maps.LatLng(34.63036 ,72.75078),new google.maps.LatLng(34.35728 ,72.55713),new google.maps.LatLng(33.43083 ,72.67186),new google.maps.LatLng(32.84518 ,73.81954),new google.maps.LatLng(34.06889 ,72.83768),new google.maps.LatLng(32.87527 ,73.54751),new google.maps.LatLng(34.09643 ,73.86873),new google.maps.LatLng(34.00103 ,71.93851),new google.maps.LatLng(32.99579 ,72.77777),new google.maps.LatLng(33.79184 ,71.83298),new google.maps.LatLng(33.33204 ,72.82650),new google.maps.LatLng(34.08851 ,72.14899),new google.maps.LatLng(33.12145 ,73.85227),new google.maps.LatLng(34.44877 ,72.18934),new google.maps.LatLng(34.83723 ,72.70546),new google.maps.LatLng(33.52359 ,72.14909),new google.maps.LatLng(33.83617 ,73.11823),new google.maps.LatLng(32.63665 ,72.51108),new google.maps.LatLng(34.52845 ,72.37137),new google.maps.LatLng(32.75185 ,73.19855),new google.maps.LatLng(33.62075 ,73.11466),new google.maps.LatLng(33.77035 ,73.39424),new google.maps.LatLng(34.03147 ,72.87605),new google.maps.LatLng(33.94020 ,73.08602),new google.maps.LatLng(33.43800 ,72.08755),new google.maps.LatLng(32.81055 ,72.55087),new google.maps.LatLng(33.52074 ,73.33323),new google.maps.LatLng(34.23314 ,73.34176),new google.maps.LatLng(34.86513 ,72.82547),new google.maps.LatLng(32.61302 ,72.77734),new google.maps.LatLng(33.72693 ,72.51992),new google.maps.LatLng(34.50058 ,73.18510),new google.maps.LatLng(34.75913 ,73.00581),new google.maps.LatLng(33.56384 ,71.94175),new google.maps.LatLng(32.85872 ,73.53023),new google.maps.LatLng(33.43530 ,72.92564),new google.maps.LatLng(34.09924 ,72.16927),new google.maps.LatLng(33.13480 ,72.96040),new google.maps.LatLng(33.65529 ,72.62526),new google.maps.LatLng(34.26939 ,73.97169),new google.maps.LatLng(33.51605 ,72.37322),new google.maps.LatLng(33.51121 ,74.19643),new google.maps.LatLng(32.95233 ,73.48388),new google.maps.LatLng(32.55052 ,72.76460),new google.maps.LatLng(34.74801 ,73.54234),new google.maps.LatLng(33.54819 ,74.23552),new google.maps.LatLng(34.26324 ,73.80547),new google.maps.LatLng(34.22268 ,73.94223),new google.maps.LatLng(33.84999 ,74.00043),new google.maps.LatLng(33.61965 ,73.95093),new google.maps.LatLng(34.26288 ,72.55457),new google.maps.LatLng(34.50793 ,72.82594),new google.maps.LatLng(34.17667 ,73.38044),new google.maps.LatLng(34.00449 ,73.80861),new google.maps.LatLng(33.70278 ,73.72295),new google.maps.LatLng(33.04589 ,72.91535),new google.maps.LatLng(32.99292 ,73.26773),new google.maps.LatLng(33.84185 ,72.26836),new google.maps.LatLng(34.74893 ,72.52606),new google.maps.LatLng(33.99376 ,73.17062),new google.maps.LatLng(34.45919 ,72.31107),new google.maps.LatLng(32.95586 ,72.26918),new google.maps.LatLng(34.68530 ,72.48837),new google.maps.LatLng(34.30011 ,72.39774),new google.maps.LatLng(33.56140 ,73.40852),new google.maps.LatLng(34.45013 ,73.10259),new google.maps.LatLng(33.29716 ,72.79036),new google.maps.LatLng(34.45745 ,72.75487),new google.maps.LatLng(33.28758 ,73.21059),new google.maps.LatLng(34.06774 ,74.14261),new google.maps.LatLng(33.31764 ,73.78710),new google.maps.LatLng(32.62512 ,73.35525),new google.maps.LatLng(33.78992 ,74.10970),new google.maps.LatLng(34.08541 ,73.49771),new google.maps.LatLng(34.26799 ,72.27760),new google.maps.LatLng(33.65326 ,72.48257),new google.maps.LatLng(34.69620 ,73.70392),new google.maps.LatLng(34.72236 ,73.48361),new google.maps.LatLng(34.57280 ,73.31579),new google.maps.LatLng(34.08623 ,73.09984),new google.maps.LatLng(33.59501 ,73.16775),new google.maps.LatLng(33.31097 ,73.12319),new google.maps.LatLng(34.70524 ,73.33533),new google.maps.LatLng(34.51012 ,73.05092),new google.maps.LatLng(34.02966 ,74.18206),new google.maps.LatLng(33.52319 ,72.75034),new google.maps.LatLng(34.58418 ,72.92537),new google.maps.LatLng(33.12670 ,72.29918),new google.maps.LatLng(34.23732 ,73.54234),new google.maps.LatLng(33.97864 ,73.61776),new google.maps.LatLng(32.85303 ,73.49152),new google.maps.LatLng(33.10916 ,72.83979),new google.maps.LatLng(33.02834 ,73.34225),new google.maps.LatLng(33.76088 ,72.30193),new google.maps.LatLng(33.13580 ,73.96696),new google.maps.LatLng(33.82837 ,73.81203),new google.maps.LatLng(33.23405 ,73.13617),new google.maps.LatLng(33.55974 ,73.30363),new google.maps.LatLng(34.48662 ,72.56889),new google.maps.LatLng(33.10720 ,72.21330),new google.maps.LatLng(34.10420 ,73.00735),new google.maps.LatLng(34.12833 ,72.47633),new google.maps.LatLng(32.70624 ,72.50113),new google.maps.LatLng(33.05775 ,72.49316),new google.maps.LatLng(34.58405 ,73.54398),new google.maps.LatLng(32.72069 ,73.45874),new google.maps.LatLng(33.11024 ,72.55225),new google.maps.LatLng(33.21998 ,73.05578),new google.maps.LatLng(34.70766 ,73.52021),new google.maps.LatLng(33.62763 ,73.19626),new google.maps.LatLng(32.87537 ,72.76196),new google.maps.LatLng(33.74860 ,74.19963),new google.maps.LatLng(33.52650 ,72.08013),new google.maps.LatLng(32.66066 ,72.90079),new google.maps.LatLng(33.19817 ,73.71069),new google.maps.LatLng(32.68933 ,72.35900),new google.maps.LatLng(33.70879 ,73.40625),new google.maps.LatLng(33.67884 ,74.01830),new google.maps.LatLng(33.17850 ,72.10685),new google.maps.LatLng(34.17051 ,73.71810),new google.maps.LatLng(34.16359 ,73.66070),new google.maps.LatLng(33.92726 ,73.23261),new google.maps.LatLng(33.84713 ,72.48165),new google.maps.LatLng(34.64580 ,73.44190),new google.maps.LatLng(32.83904 ,72.69154),new google.maps.LatLng(33.91741 ,71.88392),new google.maps.LatLng(33.04694 ,72.45582),new google.maps.LatLng(34.29255 ,73.79299),new google.maps.LatLng(34.01115 ,73.78769),new google.maps.LatLng(34.17631 ,73.24838),new google.maps.LatLng(33.72435 ,72.28309),new google.maps.LatLng(33.64008 ,73.85561),new google.maps.LatLng(34.66024 ,72.42530),new google.maps.LatLng(33.41376 ,74.07763),new google.maps.LatLng(34.08090 ,73.10999),new google.maps.LatLng(34.56032 ,73.03368),new google.maps.LatLng(33.02416 ,73.40066),new google.maps.LatLng(33.68737 ,71.96521),new google.maps.LatLng(33.45281 ,73.64376),new google.maps.LatLng(34.77109 ,73.35789),new google.maps.LatLng(34.20761 ,72.83109),new google.maps.LatLng(32.83238 ,72.26401),new google.maps.LatLng(34.57033 ,73.19769),new google.maps.LatLng(34.30239 ,73.45739),new google.maps.LatLng(33.77867 ,72.27447),new google.maps.LatLng(33.34842 ,72.61289),new google.maps.LatLng(32.81106 ,72.58694),new google.maps.LatLng(34.38662 ,73.53110),new google.maps.LatLng(32.60290 ,72.66163),new google.maps.LatLng(34.05593 ,72.20628),new google.maps.LatLng(33.49239 ,72.13559),new google.maps.LatLng(33.14175 ,72.12718),new google.maps.LatLng(32.98997 ,72.61354),new google.maps.LatLng(32.95196 ,73.70095),new google.maps.LatLng(33.73901 ,73.53112),new google.maps.LatLng(34.37218 ,73.84896),new google.maps.LatLng(32.98822 ,73.53068),new google.maps.LatLng(34.10765 ,72.08448),new google.maps.LatLng(33.72478 ,73.93290),new google.maps.LatLng(34.55569 ,73.84636),new google.maps.LatLng(34.63317 ,72.29795),new google.maps.LatLng(33.27913 ,72.68836),new google.maps.LatLng(34.60363 ,73.73988),new google.maps.LatLng(32.75771 ,73.28768),new google.maps.LatLng(33.12149 ,73.17589),new google.maps.LatLng(34.48076 ,73.26097),new google.maps.LatLng(33.18531 ,72.68821),new google.maps.LatLng(34.24518 ,72.43958),new google.maps.LatLng(34.72859 ,73.29970),new google.maps.LatLng(34.26136 ,73.74296),new google.maps.LatLng(34.37240 ,72.34596),new google.maps.LatLng(32.77263 ,73.40611),new google.maps.LatLng(33.68127 ,73.75976),new google.maps.LatLng(34.47676 ,73.39925),new google.maps.LatLng(33.63205 ,73.70950),new google.maps.LatLng(33.48422 ,72.11785),new google.maps.LatLng(34.22573 ,73.89193),new google.maps.LatLng(32.77776 ,73.29332),new google.maps.LatLng(32.73998 ,72.36557),new google.maps.LatLng(33.41329 ,73.58231),new google.maps.LatLng(33.41241 ,72.15354),new google.maps.LatLng(33.68371 ,71.98074),new google.maps.LatLng(34.40849 ,72.83959),new google.maps.LatLng(33.71156 ,72.75045),new google.maps.LatLng(33.43768 ,73.94043),new google.maps.LatLng(32.56387 ,73.33828),new google.maps.LatLng(33.70475 ,73.18517),new google.maps.LatLng(34.13832 ,71.96608),new google.maps.LatLng(34.04142 ,72.64741),new google.maps.LatLng(34.51265 ,73.14917),new google.maps.LatLng(33.60409 ,73.96976),new google.maps.LatLng(32.83095 ,73.73573),new google.maps.LatLng(32.91623 ,72.70051),new google.maps.LatLng(34.72633 ,72.85527),new google.maps.LatLng(33.34009 ,73.65147),new google.maps.LatLng(33.99485 ,72.79963),new google.maps.LatLng(33.25999 ,73.51521),new google.maps.LatLng(33.41160 ,73.30617),new google.maps.LatLng(33.77734 ,73.77622),new google.maps.LatLng(33.65148 ,72.09657),new google.maps.LatLng(33.84042 ,73.38948),new google.maps.LatLng(34.14347 ,72.02350),new google.maps.LatLng(34.19772 ,73.73052),new google.maps.LatLng(33.08116 ,72.31251),new google.maps.LatLng(33.32021 ,72.08904),new google.maps.LatLng(32.72990 ,72.99140),new google.maps.LatLng(33.82471 ,72.66048),new google.maps.LatLng(33.87817 ,72.09721),new google.maps.LatLng(34.14971 ,72.30885),new google.maps.LatLng(34.68420 ,73.00527),new google.maps.LatLng(34.85901 ,73.27761),new google.maps.LatLng(34.62701 ,73.50530),new google.maps.LatLng(34.20774 ,73.36106),new google.maps.LatLng(32.97502 ,72.70598),new google.maps.LatLng(34.16056 ,73.03947),new google.maps.LatLng(33.28565 ,71.96858),new google.maps.LatLng(34.01749 ,73.56648),new google.maps.LatLng(34.18251 ,73.54275),new google.maps.LatLng(32.73950 ,72.55957),new google.maps.LatLng(33.85968 ,72.61855),new google.maps.LatLng(33.36087 ,73.69133),new google.maps.LatLng(33.59654 ,72.47905),new google.maps.LatLng(34.86088 ,72.76317),new google.maps.LatLng(34.53129 ,73.63333),new google.maps.LatLng(33.47845 ,74.06049),new google.maps.LatLng(33.95930 ,72.13601),new google.maps.LatLng(33.61503 ,73.84124),new google.maps.LatLng(32.87787 ,73.81949),new google.maps.LatLng(32.79004 ,72.97163),new google.maps.LatLng(33.23269 ,72.55080),new google.maps.LatLng(34.64808 ,72.59250),new google.maps.LatLng(33.15193 ,72.11672),new google.maps.LatLng(33.19045 ,72.69185),new google.maps.LatLng(34.02719 ,73.18539),new google.maps.LatLng(33.36181 ,71.88835),new google.maps.LatLng(32.87757 ,73.07154),new google.maps.LatLng(33.70287 ,73.96826),new google.maps.LatLng(33.08044 ,73.23022),new google.maps.LatLng(34.04437 ,73.09186),new google.maps.LatLng(34.15033 ,73.80149),new google.maps.LatLng(33.02722 ,73.54449),new google.maps.LatLng(33.50901 ,73.56377),new google.maps.LatLng(33.28201 ,72.13937),new google.maps.LatLng(33.32998 ,72.19492),new google.maps.LatLng(34.12301 ,71.93904),new google.maps.LatLng(34.32756 ,72.63439),new google.maps.LatLng(33.60222 ,73.46990),new google.maps.LatLng(34.53368 ,72.58754),new google.maps.LatLng(33.84962 ,73.58642),new google.maps.LatLng(33.71440 ,73.83742),new google.maps.LatLng(33.20471 ,72.81162),new google.maps.LatLng(33.28583 ,73.38424),new google.maps.LatLng(34.39765 ,72.06346),new google.maps.LatLng(34.19462 ,73.32164),new google.maps.LatLng(32.64313 ,72.95776),new google.maps.LatLng(33.14961 ,72.78363),new google.maps.LatLng(33.45347 ,72.74740),new google.maps.LatLng(33.16101 ,72.89312),new google.maps.LatLng(34.10615 ,73.97890),new google.maps.LatLng(33.74664 ,73.87828),new google.maps.LatLng(33.37771 ,72.18664),new google.maps.LatLng(33.27217 ,71.95506),new google.maps.LatLng(34.74212 ,72.52655),new google.maps.LatLng(34.04227 ,73.50736),new google.maps.LatLng(33.70497 ,72.94458),new google.maps.LatLng(32.68422 ,73.50318),new google.maps.LatLng(33.00669 ,73.17657),new google.maps.LatLng(32.77035 ,72.63302),new google.maps.LatLng(33.19628 ,72.29924),new google.maps.LatLng(33.45460 ,73.21759),new google.maps.LatLng(33.64345 ,73.56106),new google.maps.LatLng(33.61324 ,73.99898),new google.maps.LatLng(34.24794 ,72.52488),new google.maps.LatLng(34.64839 ,72.42622),new google.maps.LatLng(33.02342 ,72.60644),new google.maps.LatLng(33.36572 ,73.99794),new google.maps.LatLng(33.84517 ,72.22202),new google.maps.LatLng(32.65088 ,73.02606),new google.maps.LatLng(34.01826 ,71.87967),new google.maps.LatLng(33.37135 ,72.71889),new google.maps.LatLng(33.87479 ,73.63187),new google.maps.LatLng(34.53724 ,73.04403),new google.maps.LatLng(33.19419 ,73.12149),new google.maps.LatLng(33.94246 ,73.33032),new google.maps.LatLng(33.92683 ,74.01819),new google.maps.LatLng(34.10392 ,73.80009),new google.maps.LatLng(32.82104 ,72.71081),new google.maps.LatLng(33.97361 ,73.43109),new google.maps.LatLng(32.59614 ,73.02165),new google.maps.LatLng(33.17714 ,73.00882),new google.maps.LatLng(34.19172 ,73.80347),new google.maps.LatLng(34.01409 ,72.87336),new google.maps.LatLng(34.29390 ,73.40346),new google.maps.LatLng(33.83644 ,73.28840),new google.maps.LatLng(32.90053 ,72.66308),new google.maps.LatLng(33.77741 ,72.61961),new google.maps.LatLng(33.67425 ,73.10008),new google.maps.LatLng(33.90868 ,72.33962),new google.maps.LatLng(34.40360 ,72.29233),new google.maps.LatLng(33.87147 ,73.62409),new google.maps.LatLng(34.26601 ,72.81716),new google.maps.LatLng(32.86441 ,73.88997),new google.maps.LatLng(34.68582 ,73.56240),new google.maps.LatLng(33.23559 ,73.61879),new google.maps.LatLng(34.46096 ,73.16543),new google.maps.LatLng(33.49572 ,74.04782),new google.maps.LatLng(34.85367 ,73.18722),new google.maps.LatLng(33.66464 ,72.59891),new google.maps.LatLng(33.15136 ,72.30654),new google.maps.LatLng(32.99270 ,72.67050),new google.maps.LatLng(34.61564 ,72.37008),new google.maps.LatLng(32.55031 ,73.15313),new google.maps.LatLng(34.04581 ,73.28313),new google.maps.LatLng(34.00965 ,72.64098),new google.maps.LatLng(34.26133 ,73.41855),new google.maps.LatLng(33.32481 ,73.37758),new google.maps.LatLng(34.05610 ,72.75728),new google.maps.LatLng(34.17245 ,72.10503),new google.maps.LatLng(34.16478 ,72.47438),new google.maps.LatLng(34.06637 ,73.70802),new google.maps.LatLng(33.39759 ,74.05899),new google.maps.LatLng(33.48894 ,72.29737),new google.maps.LatLng(34.73453 ,73.59783),new google.maps.LatLng(33.33925 ,73.73441),new google.maps.LatLng(33.48263 ,72.99470),new google.maps.LatLng(33.10835 ,72.58120),new google.maps.LatLng(32.65920 ,73.14571),new google.maps.LatLng(33.89711 ,72.41289),new google.maps.LatLng(34.23479 ,73.91403),new google.maps.LatLng(33.59467 ,73.15255),new google.maps.LatLng(34.77045 ,73.54185),new google.maps.LatLng(34.40397 ,72.84061),new google.maps.LatLng(34.17929 ,72.32231),new google.maps.LatLng(32.86870 ,72.23260),new google.maps.LatLng(32.63017 ,72.55376),new google.maps.LatLng(33.08297 ,73.90949),new google.maps.LatLng(34.41885 ,72.97677),new google.maps.LatLng(33.27817 ,73.95945),new google.maps.LatLng(33.84894 ,73.73745),new google.maps.LatLng(34.60099 ,73.48443),new google.maps.LatLng(33.45946 ,72.60164),new google.maps.LatLng(32.91788 ,72.23480),new google.maps.LatLng(33.59627 ,72.47684),new google.maps.LatLng(33.65826 ,73.94745),new google.maps.LatLng(32.60348 ,73.11604),new google.maps.LatLng(32.67721 ,73.08398),new google.maps.LatLng(34.35491 ,72.28541),new google.maps.LatLng(32.88809 ,73.59448),new google.maps.LatLng(33.90477 ,73.94692),new google.maps.LatLng(32.82429 ,72.49534),new google.maps.LatLng(34.81200 ,73.13137),new google.maps.LatLng(33.86358 ,72.22358),new google.maps.LatLng(33.73478 ,72.98280),new google.maps.LatLng(33.22794 ,73.68687),new google.maps.LatLng(33.88363 ,72.28759),new google.maps.LatLng(32.63414 ,72.87432),new google.maps.LatLng(32.78463 ,73.00347),new google.maps.LatLng(33.79934 ,72.49651),new google.maps.LatLng(32.64092 ,72.94946),new google.maps.LatLng(33.36964 ,72.75119),new google.maps.LatLng(32.92559 ,72.71859),new google.maps.LatLng(33.38717 ,72.43040),new google.maps.LatLng(33.62334 ,73.72557),new google.maps.LatLng(33.14778 ,72.56853),new google.maps.LatLng(32.99392 ,72.92198),new google.maps.LatLng(32.80202 ,73.33009),new google.maps.LatLng(33.87782 ,73.41000),new google.maps.LatLng(34.14039 ,73.87127),new google.maps.LatLng(34.36680 ,72.87182),new google.maps.LatLng(33.30796 ,73.09439),new google.maps.LatLng(33.89398 ,73.50534),new google.maps.LatLng(33.45993 ,73.77616),new google.maps.LatLng(34.40744 ,73.75771),new google.maps.LatLng(33.51828 ,72.81413),new google.maps.LatLng(34.52311 ,73.20019),new google.maps.LatLng(33.74992 ,71.83023),new google.maps.LatLng(32.87568 ,73.74609),new google.maps.LatLng(33.66612 ,72.37851),new google.maps.LatLng(33.14290 ,72.97427),new google.maps.LatLng(34.45512 ,72.36246),new google.maps.LatLng(34.58119 ,73.31325),new google.maps.LatLng(33.31633 ,73.73147),new google.maps.LatLng(33.45734 ,72.40083),new google.maps.LatLng(33.94148 ,74.17573),new google.maps.LatLng(32.66795 ,72.76193),new google.maps.LatLng(34.05084 ,73.61585),new google.maps.LatLng(32.76355 ,72.68690),new google.maps.LatLng(33.68311 ,72.40782),new google.maps.LatLng(33.98590 ,74.16545),new google.maps.LatLng(32.73527 ,72.30609),new google.maps.LatLng(34.47063 ,73.26828),new google.maps.LatLng(32.67989 ,72.35736),new google.maps.LatLng(34.23564 ,72.51944),new google.maps.LatLng(33.59461 ,72.26066),new google.maps.LatLng(33.31172 ,72.17856),new google.maps.LatLng(33.91508 ,72.96244),new google.maps.LatLng(33.58148 ,72.68162),new google.maps.LatLng(33.84536 ,74.01895),new google.maps.LatLng(33.77023 ,74.11465),new google.maps.LatLng(34.82918 ,73.35487),new google.maps.LatLng(33.41532 ,73.31948),new google.maps.LatLng(33.72371 ,73.64813),new google.maps.LatLng(33.03893 ,72.69782),new google.maps.LatLng(33.49028 ,72.48862),new google.maps.LatLng(33.95375 ,72.02925),new google.maps.LatLng(34.60181 ,72.41612),new google.maps.LatLng(33.93339 ,73.07191),new google.maps.LatLng(32.80493 ,73.83162),new google.maps.LatLng(33.58932 ,73.27354),new google.maps.LatLng(33.35556 ,73.25493),new google.maps.LatLng(34.43809 ,72.68326),new google.maps.LatLng(34.64843 ,72.72583),new google.maps.LatLng(33.00357 ,73.99400),new google.maps.LatLng(33.31339 ,73.93049),new google.maps.LatLng(33.69525 ,72.81716),new google.maps.LatLng(34.05395 ,73.09226),new google.maps.LatLng(34.33518 ,73.30308),new google.maps.LatLng(34.09984 ,71.93845),new google.maps.LatLng(33.81623 ,73.56508),new google.maps.LatLng(34.69470 ,72.61413),new google.maps.LatLng(33.27201 ,72.10594),new google.maps.LatLng(33.65199 ,74.10809),new google.maps.LatLng(33.78179 ,71.98486),new google.maps.LatLng(33.12507 ,73.43922),new google.maps.LatLng(34.13214 ,72.45127),new google.maps.LatLng(34.12135 ,73.30670),new google.maps.LatLng(32.95048 ,72.74754),new google.maps.LatLng(33.43928 ,72.70892),new google.maps.LatLng(33.28478 ,72.22195),new google.maps.LatLng(33.86583 ,73.82021),new google.maps.LatLng(33.21685 ,73.54874),new google.maps.LatLng(34.82543 ,73.42521),new google.maps.LatLng(33.47965 ,73.14956),new google.maps.LatLng(34.13437 ,72.22186),new google.maps.LatLng(33.18840 ,74.10611),new google.maps.LatLng(34.16616 ,72.92171),new google.maps.LatLng(33.41433 ,72.33870),new google.maps.LatLng(33.48751 ,72.18433),new google.maps.LatLng(33.17552 ,74.09604),new google.maps.LatLng(33.80932 ,73.21710),new google.maps.LatLng(32.49929 ,73.20165),new google.maps.LatLng(32.97679 ,73.05129),new google.maps.LatLng(33.64896 ,74.06384),new google.maps.LatLng(34.06912 ,74.14275),new google.maps.LatLng(33.39326 ,72.81375),new google.maps.LatLng(34.25271 ,72.22566),new google.maps.LatLng(34.26155 ,73.53217),new google.maps.LatLng(34.18343 ,73.04148),new google.maps.LatLng(34.77414 ,73.05774),new google.maps.LatLng(32.79802 ,73.78117),new google.maps.LatLng(34.27576 ,72.28306),new google.maps.LatLng(32.65250 ,72.92436),new google.maps.LatLng(34.15710 ,72.72865),new google.maps.LatLng(34.15440 ,72.71960),new google.maps.LatLng(33.53832 ,73.65733),new google.maps.LatLng(32.63147 ,72.99780),new google.maps.LatLng(33.99319 ,71.92144),new google.maps.LatLng(34.60283 ,72.58006),new google.maps.LatLng(34.15249 ,73.21115),new google.maps.LatLng(33.14660 ,72.41990),new google.maps.LatLng(34.05423 ,73.03426),new google.maps.LatLng(33.70036 ,72.85860),new google.maps.LatLng(33.06808 ,72.37136),new google.maps.LatLng(33.68811 ,73.99752),new google.maps.LatLng(33.28235 ,72.01328),new google.maps.LatLng(33.02627 ,73.15258),new google.maps.LatLng(34.06324 ,72.11049),new google.maps.LatLng(34.35656 ,72.97438),new google.maps.LatLng(33.05419 ,73.37572),new google.maps.LatLng(32.98806 ,73.42191),new google.maps.LatLng(34.35383 ,73.35126),new google.maps.LatLng(33.16584 ,72.08486),new google.maps.LatLng(34.61309 ,72.64306),new google.maps.LatLng(33.05485 ,72.25606),new google.maps.LatLng(33.76700 ,72.56918),new google.maps.LatLng(34.12868 ,74.07841),new google.maps.LatLng(33.81895 ,72.33080),new google.maps.LatLng(33.83337 ,72.06104),new google.maps.LatLng(33.21047 ,72.51831),new google.maps.LatLng(33.38066 ,73.29525),new google.maps.LatLng(33.20928 ,73.68239),new google.maps.LatLng(32.49788 ,73.07731),new google.maps.LatLng(34.34839 ,72.72332),new google.maps.LatLng(32.89918 ,73.80219),new google.maps.LatLng(33.27353 ,72.19691),new google.maps.LatLng(33.38296 ,73.40977),new google.maps.LatLng(33.41802 ,73.79804),new google.maps.LatLng(33.08304 ,73.31244),new google.maps.LatLng(33.65446 ,73.09949),new google.maps.LatLng(32.77026 ,72.39679),new google.maps.LatLng(34.61847 ,72.44940),new google.maps.LatLng(33.83058 ,71.86038),new google.maps.LatLng(32.65482 ,72.65933),new google.maps.LatLng(33.30154 ,72.35564),new google.maps.LatLng(32.74727 ,72.51031),new google.maps.LatLng(34.08946 ,72.48210),new google.maps.LatLng(33.57639 ,73.25809),new google.maps.LatLng(33.22034 ,72.64670),new google.maps.LatLng(33.36757 ,73.39903),new google.maps.LatLng(33.87032 ,73.05875),new google.maps.LatLng(33.21425 ,73.96841),new google.maps.LatLng(33.85787 ,73.87802),new google.maps.LatLng(33.39305 ,73.61316),new google.maps.LatLng(33.59653 ,72.67265),new google.maps.LatLng(34.67056 ,72.59472),new google.maps.LatLng(32.55060 ,73.08039),new google.maps.LatLng(32.93442 ,72.47076),new google.maps.LatLng(34.67414 ,73.48104),new google.maps.LatLng(34.56216 ,72.85218),new google.maps.LatLng(34.36468 ,73.92720),new google.maps.LatLng(34.09116 ,72.84877),new google.maps.LatLng(32.82890 ,73.49829),new google.maps.LatLng(34.44739 ,73.85676),new google.maps.LatLng(32.80069 ,72.95108),new google.maps.LatLng(32.78983 ,72.57165),new google.maps.LatLng(34.20531 ,74.10868),new google.maps.LatLng(32.48463 ,72.96090),new google.maps.LatLng(34.07748 ,72.73038),new google.maps.LatLng(32.99045 ,73.22916),new google.maps.LatLng(33.44838 ,73.39878),new google.maps.LatLng(34.12555 ,72.14145),new google.maps.LatLng(34.41337 ,72.87445),new google.maps.LatLng(33.50479 ,72.57533),new google.maps.LatLng(33.16387 ,74.01599),new google.maps.LatLng(32.92190 ,72.26973),new google.maps.LatLng(33.90654 ,72.79903),new google.maps.LatLng(33.08852 ,72.07870),new google.maps.LatLng(32.96400 ,73.04533),new google.maps.LatLng(33.52418 ,74.06665),new google.maps.LatLng(32.73850 ,73.44902),new google.maps.LatLng(33.56087 ,73.04573),new google.maps.LatLng(33.53304 ,74.20590),new google.maps.LatLng(34.29313 ,72.47128),new google.maps.LatLng(33.63507 ,73.64383),new google.maps.LatLng(34.79983 ,72.80410),new google.maps.LatLng(33.92709 ,73.80273),new google.maps.LatLng(33.03812 ,72.82437),new google.maps.LatLng(32.92053 ,72.96602),new google.maps.LatLng(32.90705 ,73.89797),new google.maps.LatLng(32.82763 ,72.79654),new google.maps.LatLng(33.16135 ,73.19156),new google.maps.LatLng(33.57237 ,74.11750),new google.maps.LatLng(33.11510 ,72.78221),new google.maps.LatLng(34.67699 ,73.28342),new google.maps.LatLng(32.85938 ,73.65029),new google.maps.LatLng(32.50683 ,72.96423),new google.maps.LatLng(33.76670 ,72.80788),new google.maps.LatLng(33.15587 ,72.96781),new google.maps.LatLng(33.96185 ,74.10514),new google.maps.LatLng(34.03846 ,73.51869),new google.maps.LatLng(34.63349 ,73.58189),new google.maps.LatLng(33.17882 ,72.39052),new google.maps.LatLng(33.34186 ,71.99839),new google.maps.LatLng(34.78534 ,72.78849),new google.maps.LatLng(34.78027 ,72.74383),new google.maps.LatLng(34.47651 ,73.55007),new google.maps.LatLng(33.49687 ,73.59816),new google.maps.LatLng(33.89991 ,72.65826),new google.maps.LatLng(33.50633 ,73.27584),new google.maps.LatLng(33.63052 ,73.71081),new google.maps.LatLng(32.84183 ,73.84474),new google.maps.LatLng(34.64137 ,73.19185),new google.maps.LatLng(34.00405 ,73.03138),new google.maps.LatLng(34.06962 ,72.09482),new google.maps.LatLng(33.01995 ,72.31953),new google.maps.LatLng(34.25190 ,72.71160),new google.maps.LatLng(33.79832 ,72.17570),new google.maps.LatLng(34.13090 ,73.10891),new google.maps.LatLng(34.03835 ,72.05675),new google.maps.LatLng(33.71256 ,73.58980),new google.maps.LatLng(34.58839 ,73.62262),new google.maps.LatLng(34.32307 ,72.11390),new google.maps.LatLng(33.33804 ,73.93576),new google.maps.LatLng(33.03049 ,72.58558),new google.maps.LatLng(33.83801 ,74.05641),new google.maps.LatLng(32.51726 ,73.20549),new google.maps.LatLng(34.30558 ,72.52457),new google.maps.LatLng(33.10669 ,72.34484),new google.maps.LatLng(33.96939 ,73.78846),new google.maps.LatLng(33.56398 ,72.21249),new google.maps.LatLng(34.32879 ,73.12996),new google.maps.LatLng(33.09256 ,72.81356),new google.maps.LatLng(33.31263 ,74.05008),new google.maps.LatLng(33.20566 ,73.09105),new google.maps.LatLng(33.97798 ,74.13370),new google.maps.LatLng(32.81963 ,73.57174),new google.maps.LatLng(33.57391 ,72.58785),new google.maps.LatLng(34.56991 ,72.65817),new google.maps.LatLng(33.01508 ,72.39911),new google.maps.LatLng(34.50929 ,73.59300),new google.maps.LatLng(34.08172 ,72.98247),new google.maps.LatLng(33.30227 ,73.33769),new google.maps.LatLng(32.70888 ,72.42879),new google.maps.LatLng(33.77881 ,73.22442),new google.maps.LatLng(33.71064 ,72.20584),new google.maps.LatLng(34.79602 ,72.86249),new google.maps.LatLng(32.73633 ,73.75908),new google.maps.LatLng(34.19961 ,73.60611),new google.maps.LatLng(34.48603 ,73.33382),new google.maps.LatLng(32.66917 ,73.53814),new google.maps.LatLng(34.84917 ,72.80577),new google.maps.LatLng(33.28454 ,73.89786),new google.maps.LatLng(33.90622 ,71.95138),new google.maps.LatLng(32.69688 ,73.71172),new google.maps.LatLng(34.27382 ,73.72186),new google.maps.LatLng(33.17250 ,73.59855),new google.maps.LatLng(33.98269 ,73.42234),new google.maps.LatLng(33.72668 ,73.36904),new google.maps.LatLng(34.29115 ,73.94231),new google.maps.LatLng(34.05019 ,72.66165),new google.maps.LatLng(33.43698 ,74.10452),new google.maps.LatLng(34.50953 ,72.66578),new google.maps.LatLng(33.48188 ,72.26247),new google.maps.LatLng(33.00887 ,73.00088),new google.maps.LatLng(34.68811 ,72.41909),new google.maps.LatLng(34.20698 ,73.43594),new google.maps.LatLng(34.59252 ,73.20268),new google.maps.LatLng(34.00194 ,73.33303),new google.maps.LatLng(33.70907 ,72.11276),new google.maps.LatLng(34.07231 ,73.40510),new google.maps.LatLng(33.59564 ,72.98576),new google.maps.LatLng(34.32446 ,72.53752),new google.maps.LatLng(32.67919 ,72.96210),new google.maps.LatLng(33.63267 ,72.86943),new google.maps.LatLng(34.30858 ,72.91832),new google.maps.LatLng(34.67039 ,73.10483),new google.maps.LatLng(33.58271 ,72.23447),new google.maps.LatLng(34.27621 ,72.66384),new google.maps.LatLng(34.67155 ,73.15437),new google.maps.LatLng(32.99896 ,72.36557),new google.maps.LatLng(34.22144 ,74.10228),new google.maps.LatLng(33.86522 ,74.03804),new google.maps.LatLng(33.61819 ,73.53068),new google.maps.LatLng(33.30392 ,72.59827),new google.maps.LatLng(34.63689 ,72.50558),new google.maps.LatLng(33.72461 ,74.14620),new google.maps.LatLng(33.86416 ,74.02278),new google.maps.LatLng(33.96023 ,73.81020),new google.maps.LatLng(33.82483 ,71.85609),new google.maps.LatLng(32.71350 ,73.17215),new google.maps.LatLng(34.05857 ,73.36556),new google.maps.LatLng(33.82927 ,73.11049),new google.maps.LatLng(32.74130 ,73.47343),new google.maps.LatLng(34.13537 ,72.56532),new google.maps.LatLng(34.17368 ,72.29819),new google.maps.LatLng(33.06803 ,74.02176),new google.maps.LatLng(34.13252 ,72.76211),new google.maps.LatLng(34.06763 ,73.17573),new google.maps.LatLng(33.18419 ,72.36520),new google.maps.LatLng(33.17077 ,72.24086),new google.maps.LatLng(33.27427 ,72.66023),new google.maps.LatLng(33.16191 ,72.81387),new google.maps.LatLng(33.76871 ,72.30930),new google.maps.LatLng(34.48484 ,73.80997),new google.maps.LatLng(33.09064 ,72.15164),new google.maps.LatLng(32.64200 ,72.55038),new google.maps.LatLng(33.15460 ,73.59948),new google.maps.LatLng(33.05753 ,72.82741),new google.maps.LatLng(33.99638 ,72.94148),new google.maps.LatLng(33.01373 ,73.61288),new google.maps.LatLng(33.73484 ,74.12481),new google.maps.LatLng(34.44594 ,73.94141),new google.maps.LatLng(34.21976 ,72.32149),new google.maps.LatLng(32.84138 ,72.36474),new google.maps.LatLng(32.60471 ,72.78681),new google.maps.LatLng(33.19600 ,73.42223),new google.maps.LatLng(34.30054 ,72.10398),new google.maps.LatLng(32.64227 ,72.62384),new google.maps.LatLng(34.45416 ,73.88406),new google.maps.LatLng(33.07270 ,73.04274),new google.maps.LatLng(33.26138 ,71.98720),new google.maps.LatLng(34.55377 ,73.03165),new google.maps.LatLng(32.66039 ,72.61699),new google.maps.LatLng(34.12751 ,72.80609),new google.maps.LatLng(34.31077 ,73.77843),new google.maps.LatLng(33.07633 ,72.67852),new google.maps.LatLng(32.86097 ,72.75254),new google.maps.LatLng(32.49509 ,73.05361),new google.maps.LatLng(32.85913 ,72.81762),new google.maps.LatLng(32.65306 ,73.58413),new google.maps.LatLng(34.00609 ,72.16621),new google.maps.LatLng(33.39231 ,72.42551),new google.maps.LatLng(32.74337 ,72.30780),new google.maps.LatLng(33.49659 ,74.04731),new google.maps.LatLng(32.57953 ,72.95390),new google.maps.LatLng(32.78415 ,72.27579),new google.maps.LatLng(33.92139 ,73.84268),new google.maps.LatLng(32.84545 ,73.57741),new google.maps.LatLng(34.81217 ,72.66311),new google.maps.LatLng(33.89819 ,71.98981),new google.maps.LatLng(34.19801 ,73.27518),new google.maps.LatLng(33.15118 ,73.27264),new google.maps.LatLng(33.84050 ,73.85534),new google.maps.LatLng(32.83060 ,73.45350),new google.maps.LatLng(34.85595 ,73.18339),new google.maps.LatLng(33.90513 ,73.06387),new google.maps.LatLng(34.35987 ,73.57489),new google.maps.LatLng(34.41334 ,73.75166),new google.maps.LatLng(33.81612 ,73.53808),new google.maps.LatLng(33.53204 ,72.47922),new google.maps.LatLng(33.69291 ,73.18343),new google.maps.LatLng(33.29589 ,73.35892),new google.maps.LatLng(34.52551 ,72.26649),new google.maps.LatLng(34.00583 ,73.96037),new google.maps.LatLng(34.67427 ,72.37931),new google.maps.LatLng(33.27991 ,72.88629),new google.maps.LatLng(33.91020 ,74.14795),new google.maps.LatLng(33.29085 ,73.29640),new google.maps.LatLng(34.51161 ,73.62595),new google.maps.LatLng(34.63606 ,72.69636),new google.maps.LatLng(34.15376 ,73.57487),new google.maps.LatLng(33.65499 ,71.92285),new google.maps.LatLng(32.69749 ,73.67743),new google.maps.LatLng(34.19458 ,72.75398),new google.maps.LatLng(34.22223 ,72.37468),new google.maps.LatLng(32.94246 ,73.62235),new google.maps.LatLng(34.13289 ,72.32549),new google.maps.LatLng(33.30574 ,73.66833),new google.maps.LatLng(33.80828 ,73.82043),new google.maps.LatLng(33.40991 ,72.75827),new google.maps.LatLng(32.68451 ,72.63614),new google.maps.LatLng(34.12159 ,72.24697),new google.maps.LatLng(33.33634 ,73.91725),new google.maps.LatLng(32.85375 ,73.14018),new google.maps.LatLng(32.67082 ,72.66390),new google.maps.LatLng(34.26919 ,73.71825),new google.maps.LatLng(32.96995 ,73.24394),new google.maps.LatLng(34.39832 ,73.02518),new google.maps.LatLng(33.44453 ,72.00554),new google.maps.LatLng(33.80066 ,72.12706),new google.maps.LatLng(34.04570 ,73.46031),new google.maps.LatLng(34.57074 ,73.01677),new google.maps.LatLng(34.52540 ,73.27069),new google.maps.LatLng(32.59254 ,73.04482),new google.maps.LatLng(33.45211 ,72.94134),new google.maps.LatLng(33.53995 ,73.92298),new google.maps.LatLng(33.39914 ,72.05809),new google.maps.LatLng(32.66359 ,72.43476),new google.maps.LatLng(34.84812 ,73.02734),new google.maps.LatLng(34.36387 ,72.26536),new google.maps.LatLng(33.22097 ,72.94028),new google.maps.LatLng(33.74102 ,72.60217),new google.maps.LatLng(33.54798 ,72.67888),new google.maps.LatLng(33.79330 ,73.16886),new google.maps.LatLng(33.42434 ,72.89832),new google.maps.LatLng(32.97170 ,73.66481),new google.maps.LatLng(34.62044 ,73.38208),new google.maps.LatLng(32.69300 ,73.33788),new google.maps.LatLng(33.50387 ,72.88425),new google.maps.LatLng(34.12775 ,71.98354),new google.maps.LatLng(33.70688 ,72.39220),new google.maps.LatLng(32.96108 ,73.46335),new google.maps.LatLng(33.62262 ,72.08898),new google.maps.LatLng(34.52019 ,73.89759),new google.maps.LatLng(33.44276 ,73.11230),new google.maps.LatLng(32.97938 ,73.12363),new google.maps.LatLng(34.19073 ,73.90427),new google.maps.LatLng(34.53899 ,73.78342),new google.maps.LatLng(33.88959 ,72.64167),new google.maps.LatLng(34.39639 ,73.44344),new google.maps.LatLng(32.79404 ,73.55704),new google.maps.LatLng(34.74155 ,73.27443),new google.maps.LatLng(34.69370 ,73.44224),new google.maps.LatLng(34.51665 ,72.64188),new google.maps.LatLng(33.90577 ,73.37676),new google.maps.LatLng(33.34891 ,72.38060),new google.maps.LatLng(33.11079 ,72.37237),new google.maps.LatLng(34.02447 ,73.51112),new google.maps.LatLng(33.89168 ,72.03765),new google.maps.LatLng(33.03909 ,73.73267),new google.maps.LatLng(32.84680 ,73.86032),new google.maps.LatLng(33.70918 ,73.31312),new google.maps.LatLng(33.53632 ,73.55662),new google.maps.LatLng(34.08735 ,73.55990),new google.maps.LatLng(33.62704 ,74.06130),new google.maps.LatLng(34.66726 ,73.12229),new google.maps.LatLng(34.18789 ,72.52466),new google.maps.LatLng(34.40621 ,73.02644),new google.maps.LatLng(33.11692 ,73.08286),new google.maps.LatLng(33.44521 ,71.90874),new google.maps.LatLng(33.71352 ,73.50694),new google.maps.LatLng(34.13570 ,72.15443),new google.maps.LatLng(34.59820 ,73.80007),new google.maps.LatLng(33.09028 ,73.37696),new google.maps.LatLng(34.15162 ,73.00875),new google.maps.LatLng(34.69160 ,72.76874),new google.maps.LatLng(34.03638 ,72.07945),new google.maps.LatLng(34.68392 ,73.14396),new google.maps.LatLng(33.59152 ,72.99843),new google.maps.LatLng(33.17278 ,73.18107),new google.maps.LatLng(32.72988 ,73.10985),new google.maps.LatLng(34.26585 ,72.08194),new google.maps.LatLng(33.78388 ,73.36504),new google.maps.LatLng(34.30216 ,72.33838),new google.maps.LatLng(33.28571 ,72.79373),new google.maps.LatLng(32.49571 ,73.20389),new google.maps.LatLng(33.56905 ,72.41042),new google.maps.LatLng(33.69973 ,73.63416),new google.maps.LatLng(34.52100 ,72.41132),new google.maps.LatLng(33.78393 ,73.19242),new google.maps.LatLng(34.00746 ,73.30494),new google.maps.LatLng(34.31937 ,72.06151),new google.maps.LatLng(33.66520 ,73.95391),new google.maps.LatLng(33.23569 ,72.89148),new google.maps.LatLng(33.41375 ,72.50650),new google.maps.LatLng(33.04789 ,72.00293),new google.maps.LatLng(34.58810 ,73.01696),new google.maps.LatLng(32.76401 ,73.02300),new google.maps.LatLng(34.23063 ,73.68760),new google.maps.LatLng(34.58517 ,72.84519),new google.maps.LatLng(32.84487 ,72.69284),new google.maps.LatLng(32.84154 ,73.53788),new google.maps.LatLng(34.31792 ,72.99674),new google.maps.LatLng(33.49260 ,74.09582),new google.maps.LatLng(33.40729 ,74.04055),new google.maps.LatLng(32.77301 ,72.94963),new google.maps.LatLng(32.84416 ,73.15295),new google.maps.LatLng(33.88288 ,74.20663),new google.maps.LatLng(33.42699 ,72.14228),new google.maps.LatLng(33.63145 ,73.34172),new google.maps.LatLng(34.68679 ,72.65330),new google.maps.LatLng(33.97458 ,72.34107),new google.maps.LatLng(33.02557 ,72.97345),new google.maps.LatLng(33.26608 ,72.08787),new google.maps.LatLng(33.82821 ,74.14559),new google.maps.LatLng(32.96156 ,72.27443),new google.maps.LatLng(33.09701 ,72.42980),new google.maps.LatLng(33.03431 ,73.03223),new google.maps.LatLng(34.12693 ,73.12261),new google.maps.LatLng(32.83717 ,72.93898),new google.maps.LatLng(33.63743 ,73.61104),new google.maps.LatLng(33.40570 ,73.78354),new google.maps.LatLng(33.74654 ,73.04674),new google.maps.LatLng(34.63389 ,73.36363),new google.maps.LatLng(33.79968 ,73.16181),new google.maps.LatLng(32.74779 ,73.38423),new google.maps.LatLng(33.18934 ,72.87687),new google.maps.LatLng(32.92662 ,72.43405),new google.maps.LatLng(33.21744 ,73.30573),new google.maps.LatLng(34.02402 ,73.11627),new google.maps.LatLng(33.26036 ,72.21847),new google.maps.LatLng(34.41397 ,72.81625),new google.maps.LatLng(33.93962 ,73.76510),new google.maps.LatLng(33.41684 ,72.32392),new google.maps.LatLng(34.18983 ,73.61386),new google.maps.LatLng(34.48029 ,73.24165),new google.maps.LatLng(32.77484 ,73.67248),new google.maps.LatLng(33.83547 ,73.61430),new google.maps.LatLng(33.71406 ,72.70809),new google.maps.LatLng(33.74099 ,72.45200),new google.maps.LatLng(34.63285 ,73.75604),new google.maps.LatLng(33.36440 ,72.83724),new google.maps.LatLng(33.52361 ,73.50463),new google.maps.LatLng(33.68318 ,72.27441),new google.maps.LatLng(33.75522 ,74.03250),new google.maps.LatLng(32.80530 ,72.33591),new google.maps.LatLng(34.21534 ,72.24489),new google.maps.LatLng(34.17601 ,73.39965),new google.maps.LatLng(34.26803 ,72.51902),new google.maps.LatLng(34.55607 ,73.24909),new google.maps.LatLng(32.64250 ,72.45389),new google.maps.LatLng(34.56874 ,72.88920),new google.maps.LatLng(34.70694 ,72.71179),new google.maps.LatLng(33.08408 ,72.01008),new google.maps.LatLng(34.39377 ,72.20609),new google.maps.LatLng(32.59887 ,73.47106),new google.maps.LatLng(34.78962 ,72.64116),new google.maps.LatLng(32.73642 ,73.32612),new google.maps.LatLng(33.10426 ,73.42057),new google.maps.LatLng(33.84737 ,72.04080),new google.maps.LatLng(33.96580 ,73.91384),new google.maps.LatLng(33.92648 ,73.13480),new google.maps.LatLng(33.57338 ,73.32581),new google.maps.LatLng(33.20819 ,73.67147),new google.maps.LatLng(33.27614 ,72.74939),new google.maps.LatLng(33.08473 ,72.24338),new google.maps.LatLng(34.01457 ,74.03267),new google.maps.LatLng(33.25748 ,72.26137),new google.maps.LatLng(33.42002 ,72.04579),new google.maps.LatLng(32.96055 ,73.10665),new google.maps.LatLng(33.58529 ,72.88851),new google.maps.LatLng(33.38781 ,72.54075),new google.maps.LatLng(34.61488 ,73.74772),new google.maps.LatLng(33.04723 ,72.37155),new google.maps.LatLng(33.15352 ,73.12781),new google.maps.LatLng(34.53909 ,73.76685),new google.maps.LatLng(33.32947 ,72.41867),new google.maps.LatLng(34.79996 ,73.22852),new google.maps.LatLng(34.77266 ,72.89090),new google.maps.LatLng(33.61428 ,71.88417),new google.maps.LatLng(33.55425 ,73.39068),new google.maps.LatLng(33.94384 ,72.69243),new google.maps.LatLng(33.18364 ,72.34515),new google.maps.LatLng(34.19923 ,72.98691),new google.maps.LatLng(34.51220 ,73.53226),new google.maps.LatLng(33.39856 ,73.18759),new google.maps.LatLng(34.20175 ,72.06381),new google.maps.LatLng(32.79603 ,72.99138),new google.maps.LatLng(34.45550 ,73.92266),new google.maps.LatLng(33.89092 ,73.91926),new google.maps.LatLng(33.76401 ,72.84510),new google.maps.LatLng(34.11282 ,73.73822),new google.maps.LatLng(33.32691 ,73.41383),new google.maps.LatLng(34.17527 ,73.16732),new google.maps.LatLng(33.60624 ,73.31414),new google.maps.LatLng(33.10482 ,72.16017),new google.maps.LatLng(34.05349 ,72.08069),new google.maps.LatLng(34.35583 ,72.87519),new google.maps.LatLng(34.69313 ,72.79571),new google.maps.LatLng(32.89591 ,73.15574),new google.maps.LatLng(33.38140 ,73.46936),new google.maps.LatLng(33.53162 ,72.49630),new google.maps.LatLng(34.06797 ,73.40808),new google.maps.LatLng(33.55490 ,72.89992),new google.maps.LatLng(34.31892 ,73.31704),new google.maps.LatLng(34.56477 ,72.19762),new google.maps.LatLng(33.12419 ,74.03983),new google.maps.LatLng(33.72063 ,72.82948),new google.maps.LatLng(33.25007 ,72.31912),new google.maps.LatLng(33.61044 ,72.68321),new google.maps.LatLng(33.87198 ,72.43431),new google.maps.LatLng(33.80667 ,72.17544),new google.maps.LatLng(33.71827 ,72.92381),new google.maps.LatLng(33.62572 ,73.74518),new google.maps.LatLng(32.86781 ,72.87284),new google.maps.LatLng(32.89925 ,72.54434),new google.maps.LatLng(32.95340 ,73.53172),new google.maps.LatLng(33.53820 ,73.83345),new google.maps.LatLng(33.41118 ,72.90384),new google.maps.LatLng(33.74846 ,73.86445),new google.maps.LatLng(33.99420 ,73.17422),new google.maps.LatLng(32.88975 ,73.15185),new google.maps.LatLng(32.85214 ,72.83566),new google.maps.LatLng(33.15008 ,72.61544),new google.maps.LatLng(34.26725 ,73.38941),new google.maps.LatLng(33.63908 ,72.71072),new google.maps.LatLng(34.09471 ,72.57951),new google.maps.LatLng(32.95553 ,73.07447),new google.maps.LatLng(33.46907 ,73.03551),new google.maps.LatLng(33.79461 ,73.80613),new google.maps.LatLng(33.56107 ,72.95934),new google.maps.LatLng(33.24351 ,74.10382),new google.maps.LatLng(34.46607 ,72.29715),new google.maps.LatLng(32.92949 ,73.47750),new google.maps.LatLng(33.94251 ,71.99730),new google.maps.LatLng(33.21262 ,72.66828),new google.maps.LatLng(33.95161 ,73.39030),new google.maps.LatLng(34.40515 ,73.28708),new google.maps.LatLng(34.52351 ,73.56085),new google.maps.LatLng(33.96851 ,73.14837),new google.maps.LatLng(34.10816 ,74.06651),new google.maps.LatLng(33.57860 ,74.05632),new google.maps.LatLng(33.15574 ,72.08574),new google.maps.LatLng(33.18992 ,73.09418),new google.maps.LatLng(33.10429 ,73.10494),new google.maps.LatLng(34.50693 ,73.77126),new google.maps.LatLng(34.29151 ,73.99403),new google.maps.LatLng(33.17991 ,73.92368),new google.maps.LatLng(34.01673 ,73.29745),new google.maps.LatLng(34.21634 ,72.11140),new google.maps.LatLng(34.68741 ,73.71627),new google.maps.LatLng(34.83946 ,72.68847),new google.maps.LatLng(34.67143 ,72.72862),new google.maps.LatLng(32.74447 ,72.60913),new google.maps.LatLng(32.55135 ,73.22573),new google.maps.LatLng(33.80916 ,72.17770),new google.maps.LatLng(33.09993 ,73.78205),new google.maps.LatLng(33.70924 ,74.03040),new google.maps.LatLng(34.49587 ,73.13640),new google.maps.LatLng(33.72447 ,71.88266),new google.maps.LatLng(33.17699 ,72.63491),new google.maps.LatLng(33.62570 ,73.91360),new google.maps.LatLng(33.62195 ,72.95650),new google.maps.LatLng(32.63051 ,73.03443),new google.maps.LatLng(33.45471 ,72.29120),new google.maps.LatLng(33.53640 ,71.87983),new google.maps.LatLng(34.52621 ,73.86801),new google.maps.LatLng(34.69165 ,73.25795),new google.maps.LatLng(33.05086 ,72.41673),new google.maps.LatLng(33.09130 ,73.44910),new google.maps.LatLng(34.59576 ,73.79949),new google.maps.LatLng(32.90323 ,72.98105),new google.maps.LatLng(34.25373 ,71.98325),new google.maps.LatLng(33.78839 ,72.04611),new google.maps.LatLng(32.97512 ,73.46123),new google.maps.LatLng(34.33791 ,72.40837),new google.maps.LatLng(33.17030 ,72.69240),new google.maps.LatLng(33.71483 ,72.06745),new google.maps.LatLng(34.54107 ,72.81866),new google.maps.LatLng(33.93986 ,73.92483),new google.maps.LatLng(32.85289 ,72.29025),new google.maps.LatLng(34.65473 ,73.31247),new google.maps.LatLng(32.87241 ,72.27462),new google.maps.LatLng(34.35241 ,72.11755),new google.maps.LatLng(34.70832 ,72.38813),new google.maps.LatLng(32.76358 ,73.76648),new google.maps.LatLng(34.80690 ,72.74455),new google.maps.LatLng(32.73838 ,72.30365),new google.maps.LatLng(34.40930 ,72.15862),new google.maps.LatLng(34.51442 ,72.47645),new google.maps.LatLng(32.96484 ,72.23131),new google.maps.LatLng(33.14301 ,72.81182),new google.maps.LatLng(33.25218 ,74.11387),new google.maps.LatLng(33.76609 ,72.73477),new google.maps.LatLng(32.93341 ,73.66229),new google.maps.LatLng(33.61360 ,72.62801),new google.maps.LatLng(33.67659 ,73.66085),new google.maps.LatLng(32.99375 ,72.31322),new google.maps.LatLng(32.64524 ,72.54421),new google.maps.LatLng(33.59498 ,73.60373),new google.maps.LatLng(33.59300 ,72.35017),new google.maps.LatLng(34.19308 ,73.37195),new google.maps.LatLng(33.84355 ,73.18532),new google.maps.LatLng(33.29282 ,71.93539),new google.maps.LatLng(34.03040 ,74.11212),new google.maps.LatLng(34.38334 ,72.78543),new google.maps.LatLng(33.55512 ,72.71282),new google.maps.LatLng(34.57118 ,72.63578),new google.maps.LatLng(33.84105 ,74.06840),new google.maps.LatLng(33.61742 ,72.47926),new google.maps.LatLng(32.72871 ,73.14019),new google.maps.LatLng(34.27656 ,73.33361),new google.maps.LatLng(34.31029 ,73.21890),new google.maps.LatLng(33.60889 ,72.74517),new google.maps.LatLng(33.45891 ,73.44873),new google.maps.LatLng(32.98449 ,73.06085),new google.maps.LatLng(33.92134 ,72.86867),new google.maps.LatLng(34.62560 ,73.59023),new google.maps.LatLng(33.21480 ,72.30496),new google.maps.LatLng(33.95460 ,73.02690),new google.maps.LatLng(34.42744 ,73.01011),new google.maps.LatLng(33.70414 ,73.29171),new google.maps.LatLng(34.23664 ,72.56448),new google.maps.LatLng(32.86386 ,73.63377),new google.maps.LatLng(33.92822 ,72.49546),new google.maps.LatLng(34.39556 ,72.92101),new google.maps.LatLng(33.72961 ,73.33592),new google.maps.LatLng(33.30369 ,73.91026),new google.maps.LatLng(32.72233 ,72.64281),new google.maps.LatLng(33.43576 ,73.02502),new google.maps.LatLng(33.69510 ,72.91227),new google.maps.LatLng(33.29425 ,73.66009),new google.maps.LatLng(34.34898 ,72.10947),new google.maps.LatLng(33.44197 ,72.89109),new google.maps.LatLng(34.01879 ,72.33858),new google.maps.LatLng(33.67947 ,72.76564),new google.maps.LatLng(32.94610 ,72.92838),new google.maps.LatLng(34.80483 ,73.42285),new google.maps.LatLng(34.59022 ,72.99245),new google.maps.LatLng(33.07390 ,73.02818),new google.maps.LatLng(33.67071 ,73.81815),new google.maps.LatLng(33.07963 ,73.73457),new google.maps.LatLng(34.00607 ,73.66902),new google.maps.LatLng(33.83121 ,73.88386),new google.maps.LatLng(33.71332 ,73.67538),new google.maps.LatLng(34.34177 ,72.84185),new google.maps.LatLng(33.14906 ,72.22809),new google.maps.LatLng(33.80122 ,73.90497),new google.maps.LatLng(34.19611 ,72.04936),new google.maps.LatLng(33.18193 ,72.53541),new google.maps.LatLng(33.56809 ,74.04093),new google.maps.LatLng(32.96356 ,72.73172),new google.maps.LatLng(33.99366 ,73.71617),new google.maps.LatLng(34.70482 ,73.67997),new google.maps.LatLng(33.82159 ,74.19775),new google.maps.LatLng(32.84131 ,73.28614),new google.maps.LatLng(34.31742 ,73.53827),new google.maps.LatLng(33.57672 ,72.91199),new google.maps.LatLng(32.95350 ,73.77220),new google.maps.LatLng(34.08527 ,72.94491),new google.maps.LatLng(32.81376 ,72.67006),new google.maps.LatLng(34.18875 ,72.37551),new google.maps.LatLng(33.35506 ,72.66300),new google.maps.LatLng(33.95502 ,73.14427),new google.maps.LatLng(32.73091 ,73.68003),new google.maps.LatLng(34.64065 ,73.17967),new google.maps.LatLng(34.61969 ,72.92395),new google.maps.LatLng(33.28950 ,73.09141),new google.maps.LatLng(34.40413 ,73.33605),new google.maps.LatLng(34.34485 ,72.81214),new google.maps.LatLng(33.29943 ,73.88597),new google.maps.LatLng(33.55640 ,73.89007),new google.maps.LatLng(33.55142 ,72.31357),new google.maps.LatLng(33.83405 ,72.28808),new google.maps.LatLng(33.29796 ,73.10739),new google.maps.LatLng(34.31583 ,72.54407),new google.maps.LatLng(34.07923 ,72.78697),new google.maps.LatLng(33.03821 ,74.03564),new google.maps.LatLng(32.87044 ,72.84086),new google.maps.LatLng(33.96734 ,73.58637),new google.maps.LatLng(32.72109 ,72.33881),new google.maps.LatLng(34.49942 ,72.30629),new google.maps.LatLng(32.99917 ,73.76142),new google.maps.LatLng(34.05860 ,72.42081),new google.maps.LatLng(33.53095 ,73.90815),new google.maps.LatLng(32.81484 ,72.89051),new google.maps.LatLng(33.23093 ,73.40922),new google.maps.LatLng(34.32113 ,73.60271),new google.maps.LatLng(34.44365 ,72.45987),new google.maps.LatLng(33.68159 ,74.14213),new google.maps.LatLng(33.53146 ,71.86602),new google.maps.LatLng(33.04850 ,72.05293),new google.maps.LatLng(34.64845 ,73.50985),new google.maps.LatLng(34.45289 ,72.91309),new google.maps.LatLng(34.55975 ,73.31675),new google.maps.LatLng(34.40414 ,72.87873),new google.maps.LatLng(33.32442 ,72.98950),new google.maps.LatLng(33.45193 ,73.68323),new google.maps.LatLng(32.59636 ,72.83127),new google.maps.LatLng(33.17088 ,71.98331),new google.maps.LatLng(33.91710 ,72.18089),new google.maps.LatLng(33.02082 ,73.87317),new google.maps.LatLng(32.58526 ,72.67485),new google.maps.LatLng(33.59539 ,73.38497),new google.maps.LatLng(33.97290 ,72.35372),new google.maps.LatLng(33.92232 ,73.04959),new google.maps.LatLng(34.64997 ,72.69460),new google.maps.LatLng(34.13872 ,72.34338),new google.maps.LatLng(32.92280 ,72.44945),new google.maps.LatLng(34.23369 ,73.93616),new google.maps.LatLng(32.68066 ,72.82509),new google.maps.LatLng(33.03605 ,72.41490),new google.maps.LatLng(33.59379 ,73.42416),new google.maps.LatLng(33.47448 ,74.02131),new google.maps.LatLng(32.93156 ,72.44827),new google.maps.LatLng(33.65712 ,72.10682),new google.maps.LatLng(34.08995 ,72.69683),new google.maps.LatLng(33.43289 ,73.08175),new google.maps.LatLng(33.76462 ,73.02486),new google.maps.LatLng(32.74940 ,72.94402),new google.maps.LatLng(32.94806 ,73.69078),new google.maps.LatLng(32.61291 ,72.76256),new google.maps.LatLng(33.25838 ,72.01598),new google.maps.LatLng(34.88178 ,73.09710),new google.maps.LatLng(33.77675 ,72.61079),new google.maps.LatLng(34.15891 ,73.83923),new google.maps.LatLng(32.66247 ,73.54854),new google.maps.LatLng(34.27676 ,73.52155),new google.maps.LatLng(32.90116 ,73.23648),new google.maps.LatLng(33.28072 ,72.17525),new google.maps.LatLng(32.78297 ,73.10020),new google.maps.LatLng(33.21198 ,73.33528),new google.maps.LatLng(33.31490 ,72.08399),new google.maps.LatLng(33.27073 ,72.63719),new google.maps.LatLng(32.82656 ,72.56263),new google.maps.LatLng(33.33921 ,73.74329),new google.maps.LatLng(33.04491 ,72.59287),new google.maps.LatLng(33.62262 ,73.22290),new google.maps.LatLng(34.58531 ,72.43945),new google.maps.LatLng(32.97093 ,72.52804),new google.maps.LatLng(33.75488 ,72.44049),new google.maps.LatLng(33.36543 ,73.75445),new google.maps.LatLng(34.08896 ,73.89428),new google.maps.LatLng(34.18139 ,73.08911),new google.maps.LatLng(34.38477 ,72.77068),new google.maps.LatLng(33.66810 ,72.44254),new google.maps.LatLng(32.86345 ,73.02339),new google.maps.LatLng(33.60054 ,72.19013),new google.maps.LatLng(33.22388 ,73.97732),new google.maps.LatLng(32.60142 ,73.02956),new google.maps.LatLng(34.60457 ,73.73482),new google.maps.LatLng(33.66506 ,73.86712),new google.maps.LatLng(33.66617 ,73.38128),new google.maps.LatLng(33.20256 ,73.03920),new google.maps.LatLng(34.66522 ,72.85792),new google.maps.LatLng(33.11277 ,73.50496),new google.maps.LatLng(33.08984 ,73.92831),new google.maps.LatLng(34.10760 ,73.50150),new google.maps.LatLng(33.95281 ,73.52478),new google.maps.LatLng(33.08659 ,73.13311),new google.maps.LatLng(34.43324 ,72.17603),new google.maps.LatLng(34.06563 ,72.49852),new google.maps.LatLng(33.87672 ,73.39686),new google.maps.LatLng(34.63099 ,73.33943),new google.maps.LatLng(33.15878 ,72.36929),new google.maps.LatLng(33.14385 ,72.41536),new google.maps.LatLng(33.61738 ,71.85587),new google.maps.LatLng(33.79446 ,73.13636),new google.maps.LatLng(33.47968 ,73.62476),new google.maps.LatLng(32.84566 ,73.56439),new google.maps.LatLng(34.70484 ,73.50180),new google.maps.LatLng(33.11934 ,73.29683),new google.maps.LatLng(33.91664 ,73.02924),new google.maps.LatLng(34.72755 ,72.55726),new google.maps.LatLng(33.39381 ,73.92494),new google.maps.LatLng(33.39132 ,73.20752),new google.maps.LatLng(34.02552 ,72.35691),new google.maps.LatLng(33.26631 ,73.38145),new google.maps.LatLng(33.97899 ,73.56969),new google.maps.LatLng(33.94155 ,71.93526),new google.maps.LatLng(33.57450 ,71.93964),new google.maps.LatLng(33.80072 ,72.56963),new google.maps.LatLng(33.38325 ,73.39821),new google.maps.LatLng(32.99522 ,72.31164),new google.maps.LatLng(33.77207 ,72.88311),new google.maps.LatLng(34.36378 ,72.37680),new google.maps.LatLng(33.55693 ,73.19080),new google.maps.LatLng(33.70263 ,73.91918),new google.maps.LatLng(32.73039 ,72.75992),new google.maps.LatLng(32.62067 ,73.60858),new google.maps.LatLng(33.51536 ,73.17412),new google.maps.LatLng(33.66112 ,72.45631),new google.maps.LatLng(34.66230 ,72.33074),new google.maps.LatLng(34.37496 ,72.88934),new google.maps.LatLng(34.48929 ,73.71131),new google.maps.LatLng(34.69122 ,72.36030),new google.maps.LatLng(33.59091 ,72.96383),new google.maps.LatLng(34.34000 ,72.70301),new google.maps.LatLng(33.96842 ,73.14955),new google.maps.LatLng(34.80275 ,73.29955),new google.maps.LatLng(32.67459 ,72.51520),new google.maps.LatLng(33.55263 ,73.26322),new google.maps.LatLng(33.05993 ,73.86425),new google.maps.LatLng(32.75786 ,73.12165),new google.maps.LatLng(34.88828 ,72.95126),new google.maps.LatLng(34.55001 ,73.18354),new google.maps.LatLng(34.43964 ,72.29664),new google.maps.LatLng(33.03471 ,72.18379),new google.maps.LatLng(34.12126 ,74.00893),new google.maps.LatLng(33.07738 ,73.76396),new google.maps.LatLng(34.59016 ,73.35265),new google.maps.LatLng(32.85170 ,72.63558),new google.maps.LatLng(34.30092 ,72.02097),new google.maps.LatLng(34.08980 ,73.84448),new google.maps.LatLng(34.49228 ,72.99720),new google.maps.LatLng(33.92144 ,74.08490),new google.maps.LatLng(33.67715 ,72.60352),new google.maps.LatLng(34.15860 ,73.19608),new google.maps.LatLng(34.11757 ,73.55952),new google.maps.LatLng(33.68114 ,72.84615),new google.maps.LatLng(33.87005 ,73.69839),new google.maps.LatLng(33.77716 ,72.42064),new google.maps.LatLng(32.66228 ,73.60502),new google.maps.LatLng(34.44622 ,73.21097),new google.maps.LatLng(33.90938 ,73.11039),new google.maps.LatLng(33.87392 ,73.24034),new google.maps.LatLng(33.34410 ,73.65501),new google.maps.LatLng(34.04606 ,72.02909),new google.maps.LatLng(34.63269 ,73.01381),new google.maps.LatLng(32.83777 ,72.81807),new google.maps.LatLng(34.62328 ,72.56110),new google.maps.LatLng(34.28393 ,73.20739),new google.maps.LatLng(33.22066 ,73.62620),new google.maps.LatLng(32.80378 ,72.32118),new google.maps.LatLng(33.11712 ,72.64820),new google.maps.LatLng(33.35710 ,73.62715),new google.maps.LatLng(33.38371 ,73.96129),new google.maps.LatLng(34.20193 ,73.72362),new google.maps.LatLng(33.06390 ,73.28708),new google.maps.LatLng(33.95081 ,72.61583),new google.maps.LatLng(34.21429 ,72.09430),new google.maps.LatLng(34.87641 ,72.80840),new google.maps.LatLng(32.86896 ,73.90282),new google.maps.LatLng(34.55571 ,72.65143),new google.maps.LatLng(33.38830 ,72.81865),new google.maps.LatLng(33.31232 ,72.79539),new google.maps.LatLng(34.00975 ,72.24094),new google.maps.LatLng(33.21381 ,72.74617),new google.maps.LatLng(33.20827 ,73.30341),new google.maps.LatLng(32.92724 ,72.16369),new google.maps.LatLng(33.40532 ,71.95008),new google.maps.LatLng(34.30025 ,73.92377),new google.maps.LatLng(34.37948 ,73.03658),new google.maps.LatLng(33.60409 ,72.11095),new google.maps.LatLng(34.73749 ,73.28253),new google.maps.LatLng(33.10405 ,72.53305),new google.maps.LatLng(34.40252 ,72.43393),new google.maps.LatLng(33.49536 ,71.88689),new google.maps.LatLng(33.57780 ,72.51611),new google.maps.LatLng(34.41033 ,73.34673),new google.maps.LatLng(32.76618 ,72.87392),new google.maps.LatLng(33.88000 ,73.88402),new google.maps.LatLng(33.24639 ,72.89803),new google.maps.LatLng(33.79777 ,72.84526),new google.maps.LatLng(34.67788 ,73.59372),new google.maps.LatLng(34.30657 ,73.82751),new google.maps.LatLng(32.54398 ,73.05341),new google.maps.LatLng(33.88656 ,72.31222),new google.maps.LatLng(32.83036 ,72.67930),new google.maps.LatLng(33.64088 ,72.24796),new google.maps.LatLng(34.39636 ,73.15518),new google.maps.LatLng(33.53314 ,73.34582),new google.maps.LatLng(32.92951 ,72.51146),new google.maps.LatLng(33.52177 ,73.54424),new google.maps.LatLng(32.93134 ,72.67760),new google.maps.LatLng(34.69806 ,73.48565),new google.maps.LatLng(33.18839 ,73.98023),new google.maps.LatLng(34.24014 ,72.93857),new google.maps.LatLng(34.02916 ,72.69282),new google.maps.LatLng(33.72975 ,73.08444),new google.maps.LatLng(32.77189 ,72.47709),new google.maps.LatLng(34.26492 ,74.03935),new google.maps.LatLng(33.33289 ,73.51389),new google.maps.LatLng(33.09257 ,73.18138),new google.maps.LatLng(33.25803 ,71.95877),new google.maps.LatLng(33.01431 ,73.41928),new google.maps.LatLng(33.46639 ,74.13686),new google.maps.LatLng(32.73969 ,72.63895),new google.maps.LatLng(34.11912 ,74.08171),new google.maps.LatLng(33.80647 ,72.91248),new google.maps.LatLng(34.11564 ,72.90814),new google.maps.LatLng(32.79229 ,73.12867),new google.maps.LatLng(33.87784 ,74.17609),new google.maps.LatLng(33.33459 ,72.47709),new google.maps.LatLng(32.92283 ,72.81097),new google.maps.LatLng(33.72173 ,74.21712),new google.maps.LatLng(33.72264 ,73.29744),new google.maps.LatLng(33.65965 ,74.24545),new google.maps.LatLng(33.10747 ,73.13899),new google.maps.LatLng(32.98190 ,72.60377),new google.maps.LatLng(32.86245 ,72.16238),new google.maps.LatLng(33.66845 ,73.95202),new google.maps.LatLng(32.50251 ,73.11647),new google.maps.LatLng(33.25194 ,73.95035),new google.maps.LatLng(33.50480 ,72.86368),new google.maps.LatLng(33.92997 ,72.73209),new google.maps.LatLng(34.12218 ,72.87793),new google.maps.LatLng(34.38523 ,73.89498),new google.maps.LatLng(33.65693 ,73.29172),new google.maps.LatLng(34.76246 ,72.97853),new google.maps.LatLng(34.06296 ,73.17333),new google.maps.LatLng(32.57426 ,72.87690),new google.maps.LatLng(33.73430 ,71.97317),new google.maps.LatLng(34.39687 ,72.93079),new google.maps.LatLng(34.50049 ,72.96176),new google.maps.LatLng(34.05718 ,72.17986),new google.maps.LatLng(33.11867 ,73.85806),new google.maps.LatLng(33.89489 ,71.94505),new google.maps.LatLng(32.54806 ,72.73790),new google.maps.LatLng(34.01403 ,73.23012),new google.maps.LatLng(32.58148 ,73.14194),new google.maps.LatLng(34.04291 ,72.83523),new google.maps.LatLng(33.74120 ,72.08227),new google.maps.LatLng(33.60055 ,72.96927),new google.maps.LatLng(32.96206 ,73.67176),new google.maps.LatLng(33.09575 ,72.07539),new google.maps.LatLng(33.94259 ,73.79520),new google.maps.LatLng(34.41531 ,72.97453),new google.maps.LatLng(33.13999 ,72.37908),new google.maps.LatLng(33.90503 ,73.02964),new google.maps.LatLng(33.97429 ,74.13958),new google.maps.LatLng(33.21322 ,73.76179),new google.maps.LatLng(34.14345 ,73.85115),new google.maps.LatLng(33.37371 ,72.82414),new google.maps.LatLng(33.15075 ,73.18186),new google.maps.LatLng(33.11283 ,73.29670),new google.maps.LatLng(33.19804 ,73.39749),new google.maps.LatLng(34.26536 ,72.23361),new google.maps.LatLng(34.80396 ,73.06892),new google.maps.LatLng(33.47881 ,73.65508),new google.maps.LatLng(33.48388 ,73.05246),new google.maps.LatLng(33.71253 ,73.05377),new google.maps.LatLng(33.28669 ,72.71847),new google.maps.LatLng(33.19841 ,73.98002),new google.maps.LatLng(33.76986 ,73.14339),new google.maps.LatLng(33.67076 ,73.09193),new google.maps.LatLng(34.40244 ,73.57137),new google.maps.LatLng(33.06236 ,72.19718),new google.maps.LatLng(33.71444 ,73.52659),new google.maps.LatLng(33.69217 ,73.93113),new google.maps.LatLng(34.41263 ,72.26938),new google.maps.LatLng(33.18753 ,72.36025),new google.maps.LatLng(33.49165 ,72.24904),new google.maps.LatLng(34.25439 ,74.09528),new google.maps.LatLng(33.63798 ,73.74173),new google.maps.LatLng(33.34526 ,72.40207),new google.maps.LatLng(34.10757 ,71.91804),new google.maps.LatLng(33.71402 ,73.76326),new google.maps.LatLng(34.83292 ,73.36890),new google.maps.LatLng(34.04945 ,73.12826),new google.maps.LatLng(34.50258 ,73.86443),new google.maps.LatLng(32.94265 ,72.45282),new google.maps.LatLng(33.50832 ,73.98022),new google.maps.LatLng(33.63541 ,72.20660),new google.maps.LatLng(33.44846 ,73.92639),new google.maps.LatLng(34.20710 ,72.62686),new google.maps.LatLng(32.99201 ,72.53778),new google.maps.LatLng(34.43594 ,73.29868),new google.maps.LatLng(33.48728 ,72.27335),new google.maps.LatLng(33.27255 ,73.64738),new google.maps.LatLng(33.95420 ,73.92468),new google.maps.LatLng(33.09445 ,73.30564),new google.maps.LatLng(33.08988 ,72.44586),new google.maps.LatLng(32.67108 ,72.83798),new google.maps.LatLng(33.67896 ,72.16728),new google.maps.LatLng(34.72523 ,73.48126),new google.maps.LatLng(33.05414 ,72.37977),new google.maps.LatLng(33.96404 ,73.90322),new google.maps.LatLng(34.20860 ,72.57146),new google.maps.LatLng(33.90602 ,73.48849),new google.maps.LatLng(33.44511 ,73.10685),new google.maps.LatLng(34.55213 ,72.21610),new google.maps.LatLng(33.02833 ,73.76807),new google.maps.LatLng(34.49110 ,73.38985),new google.maps.LatLng(33.72407 ,71.89220),new google.maps.LatLng(34.56128 ,72.86204),new google.maps.LatLng(34.55846 ,73.72216),new google.maps.LatLng(33.95284 ,72.43831),new google.maps.LatLng(34.76659 ,73.18929),new google.maps.LatLng(33.90391 ,73.91791),new google.maps.LatLng(32.57162 ,72.59828),new google.maps.LatLng(33.60565 ,72.25548),new google.maps.LatLng(32.81836 ,73.01857),new google.maps.LatLng(33.51628 ,73.22968),new google.maps.LatLng(33.11790 ,72.24208),new google.maps.LatLng(34.15847 ,72.17330),new google.maps.LatLng(34.82322 ,72.95767),new google.maps.LatLng(33.25183 ,72.91074),new google.maps.LatLng(34.35674 ,73.14668),new google.maps.LatLng(34.38078 ,72.82796),new google.maps.LatLng(34.33375 ,72.63860),new google.maps.LatLng(34.51114 ,73.65864),new google.maps.LatLng(33.27481 ,73.86192),new google.maps.LatLng(33.08248 ,73.95349),new google.maps.LatLng(32.76558 ,72.66741),new google.maps.LatLng(33.32057 ,72.01017),new google.maps.LatLng(33.88235 ,73.03883),new google.maps.LatLng(32.75450 ,73.47787),new google.maps.LatLng(33.42369 ,74.19239),new google.maps.LatLng(33.37923 ,72.22479),new google.maps.LatLng(33.54212 ,72.14534),new google.maps.LatLng(33.39636 ,73.66415),new google.maps.LatLng(33.19634 ,72.08373),new google.maps.LatLng(33.87032 ,73.54224),new google.maps.LatLng(33.76290 ,73.71290),new google.maps.LatLng(34.08288 ,73.64916),new google.maps.LatLng(33.09855 ,72.81878),new google.maps.LatLng(33.32889 ,73.70363),new google.maps.LatLng(33.58356 ,72.83845),new google.maps.LatLng(32.74801 ,72.78517),new google.maps.LatLng(34.25579 ,72.75003),new google.maps.LatLng(34.69515 ,73.30883),new google.maps.LatLng(33.23899 ,73.30647),new google.maps.LatLng(33.94643 ,73.93890),new google.maps.LatLng(33.39179 ,74.17393),new google.maps.LatLng(33.63793 ,74.12669),new google.maps.LatLng(33.01411 ,72.05612),new google.maps.LatLng(34.09324 ,72.25816),new google.maps.LatLng(33.83195 ,72.34718),new google.maps.LatLng(33.51467 ,71.89425),new google.maps.LatLng(34.38261 ,73.67024),new google.maps.LatLng(32.89505 ,72.41461),new google.maps.LatLng(33.88362 ,72.55321),new google.maps.LatLng(34.71620 ,73.32585),new google.maps.LatLng(33.11083 ,72.16475),new google.maps.LatLng(32.88685 ,73.70191),new google.maps.LatLng(34.32021 ,73.93009),new google.maps.LatLng(34.41063 ,72.72889),new google.maps.LatLng(33.47371 ,73.27175),new google.maps.LatLng(33.74776 ,73.79123),new google.maps.LatLng(33.75952 ,74.15464),new google.maps.LatLng(33.74693 ,72.81118),new google.maps.LatLng(34.12691 ,72.69275),new google.maps.LatLng(33.62971 ,72.12259),new google.maps.LatLng(33.40733 ,73.51707),new google.maps.LatLng(34.28133 ,72.35820),new google.maps.LatLng(34.35887 ,72.62044),new google.maps.LatLng(33.96918 ,73.96946),new google.maps.LatLng(33.09884 ,74.00859),new google.maps.LatLng(33.32871 ,72.54378),new google.maps.LatLng(33.29293 ,72.84248),new google.maps.LatLng(33.98365 ,72.54282),new google.maps.LatLng(33.05742 ,72.91024),new google.maps.LatLng(34.10069 ,73.42175),new google.maps.LatLng(34.17545 ,74.10125),new google.maps.LatLng(33.08614 ,73.61677),new google.maps.LatLng(33.84598 ,73.95697),new google.maps.LatLng(34.33596 ,73.28837),new google.maps.LatLng(34.05980 ,73.13433),new google.maps.LatLng(34.54693 ,73.11683),new google.maps.LatLng(33.37205 ,72.07772),new google.maps.LatLng(34.70078 ,72.77292),new google.maps.LatLng(33.11434 ,72.03400),new google.maps.LatLng(34.12841 ,73.53435),new google.maps.LatLng(34.82077 ,73.34784),new google.maps.LatLng(33.57796 ,73.03412),new google.maps.LatLng(33.03387 ,74.04020),new google.maps.LatLng(32.74101 ,73.55048),new google.maps.LatLng(34.60660 ,73.65470),new google.maps.LatLng(33.17047 ,72.26955),new google.maps.LatLng(33.40983 ,73.36201),new google.maps.LatLng(34.24538 ,73.13553),new google.maps.LatLng(33.75878 ,73.79855),new google.maps.LatLng(34.00908 ,72.86878),new google.maps.LatLng(33.83395 ,73.56136),new google.maps.LatLng(34.00797 ,74.14712),new google.maps.LatLng(33.68153 ,72.60149),new google.maps.LatLng(33.89129 ,73.12614),new google.maps.LatLng(33.85293 ,73.42948),new google.maps.LatLng(33.04643 ,73.02021),new google.maps.LatLng(32.67850 ,73.46362),new google.maps.LatLng(33.47186 ,73.43964),new google.maps.LatLng(33.52537 ,72.71808),new google.maps.LatLng(33.66290 ,72.71827),new google.maps.LatLng(33.16680 ,73.04262),new google.maps.LatLng(32.83843 ,72.74797),new google.maps.LatLng(33.21093 ,73.63694),new google.maps.LatLng(32.69271 ,72.63718),new google.maps.LatLng(33.77354 ,72.40346),new google.maps.LatLng(34.52389 ,73.41929),new google.maps.LatLng(32.75151 ,73.80374),new google.maps.LatLng(33.04171 ,72.29402),new google.maps.LatLng(34.14019 ,72.05830),new google.maps.LatLng(33.19561 ,72.38821),new google.maps.LatLng(34.63712 ,73.38695),new google.maps.LatLng(32.97706 ,72.48498),new google.maps.LatLng(34.63907 ,73.41326),new google.maps.LatLng(33.42106 ,72.32247),new google.maps.LatLng(33.87381 ,71.94523),new google.maps.LatLng(32.89290 ,72.73199),new google.maps.LatLng(33.53571 ,73.14172),new google.maps.LatLng(34.30540 ,73.31186),new google.maps.LatLng(33.25219 ,73.37970),new google.maps.LatLng(34.26496 ,73.74328),new google.maps.LatLng(32.73636 ,72.85385),new google.maps.LatLng(33.52086 ,72.99923),new google.maps.LatLng(33.89170 ,72.18031),new google.maps.LatLng(33.10559 ,72.17413),new google.maps.LatLng(34.35701 ,72.47833),new google.maps.LatLng(32.96842 ,72.88359),new google.maps.LatLng(34.65848 ,72.32636),new google.maps.LatLng(34.41184 ,72.30372),new google.maps.LatLng(34.66210 ,73.27514),new google.maps.LatLng(32.66800 ,72.73329),new google.maps.LatLng(33.00166 ,73.45514),new google.maps.LatLng(33.56300 ,72.50505),new google.maps.LatLng(32.90184 ,72.27200),new google.maps.LatLng(33.55871 ,73.45701),new google.maps.LatLng(34.16230 ,73.67549),new google.maps.LatLng(32.82321 ,72.54415),new google.maps.LatLng(33.58380 ,73.25020),new google.maps.LatLng(33.53905 ,73.41577),new google.maps.LatLng(32.74746 ,73.53538),new google.maps.LatLng(33.31747 ,73.75330),new google.maps.LatLng(32.87888 ,73.31455),new google.maps.LatLng(34.38747 ,72.06172),new google.maps.LatLng(33.69950 ,73.96182),new google.maps.LatLng(33.44175 ,72.20962),new google.maps.LatLng(33.02299 ,72.98387),new google.maps.LatLng(33.88436 ,73.55460),new google.maps.LatLng(33.86230 ,72.76377),new google.maps.LatLng(32.80945 ,73.37652),new google.maps.LatLng(33.45503 ,74.15359),new google.maps.LatLng(33.01282 ,73.10604),new google.maps.LatLng(33.81717 ,72.28835),new google.maps.LatLng(33.93976 ,72.91987),new google.maps.LatLng(32.77128 ,72.98615),new google.maps.LatLng(33.08677 ,74.06257),new google.maps.LatLng(34.27249 ,72.55550),new google.maps.LatLng(34.64699 ,73.51159),new google.maps.LatLng(33.89581 ,73.96927),new google.maps.LatLng(33.08905 ,71.98620),new google.maps.LatLng(33.11558 ,73.66728),new google.maps.LatLng(34.49377 ,72.39172),new google.maps.LatLng(33.15482 ,73.50006),new google.maps.LatLng(33.30488 ,73.66913),new google.maps.LatLng(33.11490 ,73.58663),new google.maps.LatLng(34.06448 ,73.02405),new google.maps.LatLng(34.52844 ,73.87985),new google.maps.LatLng(33.64427 ,74.23573),new google.maps.LatLng(33.29162 ,74.11149),new google.maps.LatLng(33.72886 ,73.34738),new google.maps.LatLng(32.62310 ,72.87636),new google.maps.LatLng(34.86107 ,73.12430),new google.maps.LatLng(34.60437 ,73.27770),new google.maps.LatLng(34.47453 ,73.76865),new google.maps.LatLng(33.11945 ,72.71404),new google.maps.LatLng(33.80980 ,74.06718),new google.maps.LatLng(34.80040 ,72.63269),new google.maps.LatLng(33.45786 ,71.98558),new google.maps.LatLng(33.38634 ,73.22302),new google.maps.LatLng(32.99995 ,72.74334),new google.maps.LatLng(33.71633 ,73.56699),new google.maps.LatLng(33.57486 ,73.69627),new google.maps.LatLng(33.29677 ,72.80491),new google.maps.LatLng(33.38681 ,73.39229),new google.maps.LatLng(34.07451 ,73.33128),new google.maps.LatLng(33.75460 ,71.96635),new google.maps.LatLng(34.14104 ,73.35015),new google.maps.LatLng(33.24256 ,74.06692),new google.maps.LatLng(33.02077 ,73.16125),new google.maps.LatLng(33.65168 ,72.20573),new google.maps.LatLng(34.70057 ,72.75229),new google.maps.LatLng(33.25918 ,73.18676),new google.maps.LatLng(33.82486 ,72.71951),new google.maps.LatLng(33.52426 ,73.93470),new google.maps.LatLng(34.12502 ,72.31258),new google.maps.LatLng(34.57314 ,72.55227),new google.maps.LatLng(34.65063 ,73.01922),new google.maps.LatLng(33.14134 ,74.03942),new google.maps.LatLng(33.72023 ,74.11085),new google.maps.LatLng(34.56283 ,72.31254),new google.maps.LatLng(33.62280 ,71.99218),new google.maps.LatLng(34.04997 ,71.99206),new google.maps.LatLng(34.48926 ,73.51934),new google.maps.LatLng(32.63254 ,73.30010),new google.maps.LatLng(33.93909 ,72.27464),new google.maps.LatLng(32.99344 ,72.65788),new google.maps.LatLng(34.14788 ,72.48221),new google.maps.LatLng(34.05753 ,73.28320),new google.maps.LatLng(34.33277 ,73.63157),new google.maps.LatLng(33.53720 ,73.76734),new google.maps.LatLng(32.82933 ,73.80792),new google.maps.LatLng(33.40729 ,72.17516),new google.maps.LatLng(33.98739 ,73.16303),new google.maps.LatLng(33.71508 ,72.24404),new google.maps.LatLng(33.59560 ,72.75196),new google.maps.LatLng(33.05782 ,73.69752),new google.maps.LatLng(34.12939 ,73.70492),new google.maps.LatLng(33.89687 ,73.87655),new google.maps.LatLng(32.78128 ,73.17211),new google.maps.LatLng(32.88370 ,72.88926),new google.maps.LatLng(34.44292 ,73.98024),new google.maps.LatLng(33.61056 ,72.02877),new google.maps.LatLng(34.20963 ,72.11488),new google.maps.LatLng(32.84590 ,72.96179),new google.maps.LatLng(33.23244 ,73.39272),new google.maps.LatLng(33.89583 ,72.14645),new google.maps.LatLng(33.78747 ,73.17528),new google.maps.LatLng(32.65655 ,73.36880),new google.maps.LatLng(34.87836 ,73.03411),new google.maps.LatLng(34.63314 ,73.68077),new google.maps.LatLng(33.48718 ,72.42722),new google.maps.LatLng(34.64189 ,73.69533),new google.maps.LatLng(33.79016 ,72.60416),new google.maps.LatLng(34.05731 ,72.94855),new google.maps.LatLng(34.34323 ,73.28007),new google.maps.LatLng(32.70079 ,72.66733),new google.maps.LatLng(32.97950 ,72.79955),new google.maps.LatLng(34.08143 ,72.06996),new google.maps.LatLng(34.18330 ,72.22362),new google.maps.LatLng(33.96093 ,72.47237),new google.maps.LatLng(33.23059 ,73.68482),new google.maps.LatLng(33.88653 ,73.17526),new google.maps.LatLng(32.74158 ,73.64828),new google.maps.LatLng(32.99669 ,73.42897),new google.maps.LatLng(34.02150 ,72.71746),new google.maps.LatLng(32.57489 ,72.89506),new google.maps.LatLng(33.34419 ,72.41275),new google.maps.LatLng(34.75215 ,72.67819),new google.maps.LatLng(34.61740 ,73.45187),new google.maps.LatLng(33.95300 ,73.29584),new google.maps.LatLng(34.41046 ,74.00352),new google.maps.LatLng(33.66350 ,72.11925),new google.maps.LatLng(34.07359 ,73.51472),new google.maps.LatLng(33.09787 ,73.35606),new google.maps.LatLng(33.05607 ,72.81954),new google.maps.LatLng(32.47503 ,73.06458),new google.maps.LatLng(32.78852 ,72.70373),new google.maps.LatLng(32.88798 ,72.45476),new google.maps.LatLng(34.44323 ,73.03748),new google.maps.LatLng(33.97583 ,73.81921),new google.maps.LatLng(33.76003 ,72.80586),new google.maps.LatLng(33.06544 ,72.15969),new google.maps.LatLng(33.15732 ,73.28441),new google.maps.LatLng(34.51949 ,72.71653),new google.maps.LatLng(34.37970 ,72.85681),new google.maps.LatLng(32.85687 ,73.91139),new google.maps.LatLng(33.62629 ,73.17225),new google.maps.LatLng(34.46325 ,73.02916),new google.maps.LatLng(34.56362 ,73.30867),new google.maps.LatLng(33.85629 ,73.30232),new google.maps.LatLng(34.20880 ,72.17533),new google.maps.LatLng(33.42071 ,72.64999),new google.maps.LatLng(33.76466 ,73.74869),new google.maps.LatLng(34.04369 ,73.04727),new google.maps.LatLng(33.31162 ,73.59006),new google.maps.LatLng(32.88774 ,73.05916),new google.maps.LatLng(33.21593 ,72.06556),new google.maps.LatLng(33.52926 ,73.82819),new google.maps.LatLng(33.14449 ,73.13406),new google.maps.LatLng(32.93085 ,73.62777),new google.maps.LatLng(34.49063 ,72.24989),new google.maps.LatLng(33.58571 ,72.01460),new google.maps.LatLng(33.59528 ,74.24304),new google.maps.LatLng(32.61886 ,73.48684),new google.maps.LatLng(32.64218 ,72.69259),new google.maps.LatLng(34.51263 ,73.05760),new google.maps.LatLng(34.04344 ,73.82258),new google.maps.LatLng(33.47839 ,74.20433),new google.maps.LatLng(33.69318 ,74.12336),new google.maps.LatLng(34.07977 ,73.64539),new google.maps.LatLng(33.21720 ,73.76950),new google.maps.LatLng(33.40250 ,72.36705),new google.maps.LatLng(34.48429 ,73.71907),new google.maps.LatLng(33.61417 ,74.13057),new google.maps.LatLng(33.95410 ,74.18233),new google.maps.LatLng(33.56788 ,72.00308),new google.maps.LatLng(33.66498 ,72.61305),new google.maps.LatLng(34.45678 ,72.91342),new google.maps.LatLng(34.31622 ,72.98380),new google.maps.LatLng(33.70097 ,72.98495),new google.maps.LatLng(34.14129 ,73.07786),new google.maps.LatLng(34.41014 ,73.29481),new google.maps.LatLng(33.17418 ,72.77341),new google.maps.LatLng(33.63369 ,72.88900),new google.maps.LatLng(34.67363 ,72.76701),new google.maps.LatLng(33.82651 ,73.79319),new google.maps.LatLng(33.99681 ,72.72911),new google.maps.LatLng(32.71372 ,73.36379),new google.maps.LatLng(34.60083 ,73.75808),new google.maps.LatLng(32.76660 ,72.36492),new google.maps.LatLng(33.02409 ,72.45245),new google.maps.LatLng(33.80833 ,72.99259),new google.maps.LatLng(33.47357 ,73.22639),new google.maps.LatLng(33.28582 ,73.14329),new google.maps.LatLng(33.85859 ,73.93291),new google.maps.LatLng(34.22717 ,72.07018),new google.maps.LatLng(33.12004 ,72.65685),new google.maps.LatLng(33.61296 ,71.91243),new google.maps.LatLng(32.85297 ,72.95408),new google.maps.LatLng(34.48600 ,73.31916),new google.maps.LatLng(34.85848 ,72.83960),new google.maps.LatLng(33.02742 ,73.05202),new google.maps.LatLng(32.85625 ,72.72624),new google.maps.LatLng(33.07667 ,73.72221),new google.maps.LatLng(33.11406 ,73.96461),new google.maps.LatLng(32.51645 ,72.95944),new google.maps.LatLng(32.81091 ,72.89406),new google.maps.LatLng(34.07412 ,72.12573),new google.maps.LatLng(34.31817 ,73.03941),new google.maps.LatLng(33.63618 ,73.87582),new google.maps.LatLng(33.48352 ,73.90058),new google.maps.LatLng(33.99748 ,72.20305),new google.maps.LatLng(34.34704 ,73.04659),new google.maps.LatLng(33.90124 ,72.20318),new google.maps.LatLng(33.57940 ,73.14698),new google.maps.LatLng(33.90713 ,73.76126),new google.maps.LatLng(34.42841 ,73.76640),new google.maps.LatLng(34.52406 ,73.10018),new google.maps.LatLng(33.06683 ,72.43191),new google.maps.LatLng(34.30480 ,72.13772),new google.maps.LatLng(34.63315 ,72.96318),new google.maps.LatLng(33.08882 ,73.50812),new google.maps.LatLng(33.89466 ,73.04192),new google.maps.LatLng(32.88690 ,72.89167),new google.maps.LatLng(34.25547 ,73.40071),new google.maps.LatLng(33.60424 ,71.96539),new google.maps.LatLng(34.49436 ,73.12998),new google.maps.LatLng(33.56152 ,72.69098),new google.maps.LatLng(32.74365 ,73.11863),new google.maps.LatLng(33.55230 ,73.78931),new google.maps.LatLng(33.03523 ,73.48503),new google.maps.LatLng(34.14477 ,72.08343),new google.maps.LatLng(34.13736 ,73.24789),new google.maps.LatLng(34.44753 ,72.45988),new google.maps.LatLng(34.01851 ,73.17873),new google.maps.LatLng(34.78482 ,72.62803),new google.maps.LatLng(34.40133 ,73.22885),new google.maps.LatLng(33.16060 ,73.89318),new google.maps.LatLng(34.47055 ,72.72033),new google.maps.LatLng(34.10289 ,72.54817),new google.maps.LatLng(34.43596 ,73.98662),new google.maps.LatLng(33.05278 ,72.12053),new google.maps.LatLng(34.72532 ,73.29171),new google.maps.LatLng(34.41125 ,74.00433),new google.maps.LatLng(34.37123 ,72.83745),new google.maps.LatLng(34.19438 ,72.03380),new google.maps.LatLng(34.40952 ,73.51211),new google.maps.LatLng(33.97858 ,73.89786),new google.maps.LatLng(32.54377 ,73.28697),new google.maps.LatLng(33.82538 ,72.14226),new google.maps.LatLng(33.16699 ,74.10668),new google.maps.LatLng(33.97079 ,72.72486),new google.maps.LatLng(33.69428 ,72.24234),new google.maps.LatLng(34.86235 ,72.90187),new google.maps.LatLng(33.35268 ,72.89564),new google.maps.LatLng(33.28670 ,72.70591),new google.maps.LatLng(33.45142 ,72.74870),new google.maps.LatLng(34.52785 ,73.02613),new google.maps.LatLng(34.77238 ,72.80530),new google.maps.LatLng(32.49974 ,73.13456),new google.maps.LatLng(33.05807 ,72.74988),new google.maps.LatLng(33.03815 ,72.64956),new google.maps.LatLng(33.28056 ,73.37179),new google.maps.LatLng(33.91579 ,73.05816),new google.maps.LatLng(33.58497 ,73.24607),new google.maps.LatLng(34.41986 ,73.78410),new google.maps.LatLng(34.31674 ,74.01276),new google.maps.LatLng(33.36770 ,72.90356),new google.maps.LatLng(32.71723 ,73.01444),new google.maps.LatLng(32.79740 ,73.25651),new google.maps.LatLng(34.35118 ,73.72197),new google.maps.LatLng(32.65600 ,72.50254),new google.maps.LatLng(33.14828 ,72.29964),new google.maps.LatLng(34.33011 ,72.33044),new google.maps.LatLng(32.78026 ,73.58718),new google.maps.LatLng(33.87365 ,72.33266),new google.maps.LatLng(32.95379 ,73.30745),new google.maps.LatLng(33.36610 ,72.46112),new google.maps.LatLng(32.90488 ,72.50658),new google.maps.LatLng(34.44971 ,72.89623),new google.maps.LatLng(33.69803 ,73.20931),new google.maps.LatLng(33.82422 ,71.88445),new google.maps.LatLng(33.15186 ,72.72957),new google.maps.LatLng(33.71066 ,72.72006),new google.maps.LatLng(33.39328 ,72.69398),new google.maps.LatLng(32.75442 ,73.53874),new google.maps.LatLng(33.09041 ,72.80622),new google.maps.LatLng(34.61180 ,73.20445),new google.maps.LatLng(33.81565 ,73.02905),new google.maps.LatLng(33.77213 ,72.07238),new google.maps.LatLng(33.24163 ,73.87850),new google.maps.LatLng(34.44106 ,72.68955),new google.maps.LatLng(33.95589 ,72.06715),new google.maps.LatLng(32.76168 ,73.52091),new google.maps.LatLng(33.58628 ,72.44433),new google.maps.LatLng(34.08504 ,73.68067),new google.maps.LatLng(33.19277 ,72.90400),new google.maps.LatLng(33.07231 ,73.43639),new google.maps.LatLng(33.43856 ,72.87473),new google.maps.LatLng(33.10963 ,73.47443),new google.maps.LatLng(33.35182 ,71.94570),new google.maps.LatLng(34.53344 ,73.60347),new google.maps.LatLng(32.74670 ,72.33993),new google.maps.LatLng(34.10636 ,73.27089),new google.maps.LatLng(33.56146 ,72.62230),new google.maps.LatLng(33.27368 ,73.59006),new google.maps.LatLng(32.94083 ,73.65568),new google.maps.LatLng(33.70594 ,73.21033),new google.maps.LatLng(33.23160 ,72.32943),new google.maps.LatLng(33.62355 ,72.76772),new google.maps.LatLng(34.75619 ,73.16367),new google.maps.LatLng(32.69286 ,72.39707),new google.maps.LatLng(32.74741 ,72.79671),new google.maps.LatLng(33.22925 ,72.83207),new google.maps.LatLng(33.10337 ,73.58297),new google.maps.LatLng(34.71817 ,72.44621),new google.maps.LatLng(32.86227 ,73.85668),new google.maps.LatLng(32.63735 ,72.98223),new google.maps.LatLng(34.67437 ,73.11270),new google.maps.LatLng(34.06978 ,73.71301),new google.maps.LatLng(34.26374 ,72.29283),new google.maps.LatLng(34.00489 ,73.86588),new google.maps.LatLng(33.58826 ,72.22330),new google.maps.LatLng(32.65200 ,72.46446),new google.maps.LatLng(33.33274 ,73.95791),new google.maps.LatLng(33.95193 ,73.96926),new google.maps.LatLng(33.33305 ,71.96216),new google.maps.LatLng(33.34674 ,72.76688),new google.maps.LatLng(32.89217 ,73.09245),new google.maps.LatLng(33.53753 ,74.20837),new google.maps.LatLng(33.33237 ,73.09804),new google.maps.LatLng(33.17530 ,73.50931),new google.maps.LatLng(33.62275 ,74.13322),new google.maps.LatLng(34.30133 ,73.21685),new google.maps.LatLng(32.52499 ,73.15062),new google.maps.LatLng(32.62858 ,72.90637),new google.maps.LatLng(33.15751 ,73.73412),new google.maps.LatLng(33.56832 ,73.30669),new google.maps.LatLng(32.99139 ,73.97037),new google.maps.LatLng(34.52911 ,73.37288),new google.maps.LatLng(33.81931 ,73.61436),new google.maps.LatLng(32.81550 ,72.75347),new google.maps.LatLng(34.51036 ,72.99646),new google.maps.LatLng(33.70951 ,74.17001),new google.maps.LatLng(33.19755 ,73.42961),new google.maps.LatLng(33.73942 ,73.06099),new google.maps.LatLng(33.87286 ,73.72554),new google.maps.LatLng(34.40554 ,73.85406),new google.maps.LatLng(32.69261 ,72.64865),new google.maps.LatLng(33.71606 ,73.70406),new google.maps.LatLng(33.10211 ,73.06988),new google.maps.LatLng(33.70263 ,73.29389),new google.maps.LatLng(33.56965 ,73.36048),new google.maps.LatLng(33.06736 ,72.06632),new google.maps.LatLng(32.60261 ,73.52118),new google.maps.LatLng(34.36056 ,73.10960),new google.maps.LatLng(34.22468 ,72.11325),new google.maps.LatLng(33.87193 ,72.58731),new google.maps.LatLng(34.80367 ,73.24564),new google.maps.LatLng(33.59084 ,72.70027),new google.maps.LatLng(33.84566 ,73.43045),new google.maps.LatLng(33.88998 ,72.37022),new google.maps.LatLng(34.51231 ,73.59652),new google.maps.LatLng(34.13655 ,72.44046),new google.maps.LatLng(33.75439 ,73.61367),new google.maps.LatLng(32.54502 ,73.02518),new google.maps.LatLng(33.66775 ,74.16655),new google.maps.LatLng(32.68057 ,73.30969),new google.maps.LatLng(33.97838 ,73.60589),new google.maps.LatLng(33.33928 ,73.21724),new google.maps.LatLng(33.50949 ,73.74913),new google.maps.LatLng(34.74245 ,72.60474),new google.maps.LatLng(32.63155 ,73.28592),new google.maps.LatLng(34.19857 ,72.07625),new google.maps.LatLng(33.42633 ,72.34777),new google.maps.LatLng(33.75313 ,74.03149),new google.maps.LatLng(33.37820 ,72.82421),new google.maps.LatLng(34.43242 ,72.87434),new google.maps.LatLng(34.06135 ,72.93534),new google.maps.LatLng(33.73612 ,73.87254),new google.maps.LatLng(33.86018 ,72.17208),new google.maps.LatLng(34.81484 ,73.18330),new google.maps.LatLng(33.18633 ,74.00850),new google.maps.LatLng(33.78931 ,72.56822),new google.maps.LatLng(34.01702 ,72.63297),new google.maps.LatLng(33.94975 ,72.14408),new google.maps.LatLng(34.25035 ,73.92935),new google.maps.LatLng(34.66056 ,73.00763),new google.maps.LatLng(32.86593 ,73.77838),new google.maps.LatLng(34.06155 ,73.22502),new google.maps.LatLng(32.50715 ,73.15876),new google.maps.LatLng(34.02290 ,72.24930),new google.maps.LatLng(33.73401 ,72.56504),new google.maps.LatLng(33.38667 ,73.81960),new google.maps.LatLng(33.07407 ,73.94017),new google.maps.LatLng(34.43395 ,73.13431),new google.maps.LatLng(33.93313 ,73.19158),new google.maps.LatLng(32.68370 ,72.75184),new google.maps.LatLng(34.28526 ,73.19731),new google.maps.LatLng(34.67642 ,73.64056),new google.maps.LatLng(34.46856 ,73.58884),new google.maps.LatLng(34.08765 ,72.00459),new google.maps.LatLng(32.65561 ,72.91258),new google.maps.LatLng(34.06927 ,73.31389),new google.maps.LatLng(34.15342 ,73.75033),new google.maps.LatLng(33.30488 ,72.73742),new google.maps.LatLng(34.33248 ,72.89327),new google.maps.LatLng(33.13787 ,73.02813),new google.maps.LatLng(33.25194 ,73.15343),new google.maps.LatLng(33.98695 ,71.96999),new google.maps.LatLng(32.75130 ,73.13586),new google.maps.LatLng(34.82324 ,73.27482),new google.maps.LatLng(33.59780 ,72.63935),new google.maps.LatLng(34.04038 ,72.21906),new google.maps.LatLng(33.28100 ,74.16598),new google.maps.LatLng(33.46026 ,74.03428),new google.maps.LatLng(32.86252 ,72.33527),new google.maps.LatLng(33.33679 ,73.85624),new google.maps.LatLng(34.29277 ,72.51155),new google.maps.LatLng(33.16440 ,72.43583),new google.maps.LatLng(32.93489 ,73.92863),new google.maps.LatLng(33.01016 ,72.18340),new google.maps.LatLng(33.14933 ,73.70124),new google.maps.LatLng(34.83250 ,73.07058),new google.maps.LatLng(34.13782 ,72.84934),new google.maps.LatLng(32.89098 ,72.29653),new google.maps.LatLng(33.38300 ,72.83575),new google.maps.LatLng(33.11792 ,73.22882),new google.maps.LatLng(33.28949 ,73.49968),new google.maps.LatLng(33.54731 ,73.53538),new google.maps.LatLng(34.05895 ,73.66374),new google.maps.LatLng(34.29286 ,74.01312),new google.maps.LatLng(33.57131 ,73.25309),new google.maps.LatLng(33.56474 ,73.51493),new google.maps.LatLng(32.86829 ,72.49903),new google.maps.LatLng(33.96518 ,72.93652),new google.maps.LatLng(33.49212 ,72.73098),new google.maps.LatLng(32.98442 ,73.48608),new google.maps.LatLng(34.58266 ,73.70582),new google.maps.LatLng(34.61487 ,73.39971),new google.maps.LatLng(33.59222 ,73.34743),new google.maps.LatLng(33.99441 ,72.49928),new google.maps.LatLng(33.62066 ,72.49601),new google.maps.LatLng(33.64362 ,73.73329),new google.maps.LatLng(32.98957 ,73.16365),new google.maps.LatLng(33.75239 ,73.45720),new google.maps.LatLng(33.97501 ,72.06726),new google.maps.LatLng(34.72250 ,72.72192),new google.maps.LatLng(33.79700 ,71.97582),new google.maps.LatLng(34.69286 ,72.94940),new google.maps.LatLng(33.20786 ,72.58324),new google.maps.LatLng(33.67304 ,73.81239),new google.maps.LatLng(34.36935 ,73.35480),new google.maps.LatLng(32.92758 ,72.59734),new google.maps.LatLng(32.88452 ,73.08555),new google.maps.LatLng(33.83065 ,73.32943),new google.maps.LatLng(34.10209 ,73.87966),new google.maps.LatLng(33.46035 ,73.96789),new google.maps.LatLng(33.30510 ,73.53349),new google.maps.LatLng(32.91301 ,72.51861),new google.maps.LatLng(34.05277 ,73.05254),new google.maps.LatLng(32.91926 ,72.72340),new google.maps.LatLng(34.09586 ,73.76614),new google.maps.LatLng(33.26718 ,73.70589),new google.maps.LatLng(33.74782 ,72.57327),new google.maps.LatLng(33.14574 ,73.97258),new google.maps.LatLng(34.07973 ,72.61441),new google.maps.LatLng(33.52707 ,73.80483),new google.maps.LatLng(33.74822 ,72.78425),new google.maps.LatLng(34.13348 ,72.35670),new google.maps.LatLng(33.77381 ,72.98187),new google.maps.LatLng(33.98065 ,72.18823),new google.maps.LatLng(34.37839 ,73.31683),new google.maps.LatLng(33.50301 ,73.31386),new google.maps.LatLng(33.97643 ,73.31297),new google.maps.LatLng(33.03351 ,72.72448),new google.maps.LatLng(34.53925 ,72.50674),new google.maps.LatLng(33.96343 ,72.89959),new google.maps.LatLng(34.34163 ,72.07241),new google.maps.LatLng(34.32870 ,72.23634),new google.maps.LatLng(34.22646 ,73.44265),new google.maps.LatLng(33.70334 ,72.23844),new google.maps.LatLng(33.91595 ,71.95146),new google.maps.LatLng(32.75206 ,73.67781),new google.maps.LatLng(33.44271 ,72.07364),new google.maps.LatLng(33.45085 ,73.94648),new google.maps.LatLng(34.50778 ,73.33072),new google.maps.LatLng(33.40951 ,72.64149),new google.maps.LatLng(33.75054 ,72.91716),new google.maps.LatLng(34.33027 ,73.68241),new google.maps.LatLng(33.86401 ,71.85459),new google.maps.LatLng(34.01709 ,73.35372),new google.maps.LatLng(34.12410 ,72.20572),new google.maps.LatLng(33.68884 ,74.20154),new google.maps.LatLng(33.43610 ,73.96379),new google.maps.LatLng(33.75296 ,73.87411),new google.maps.LatLng(32.57615 ,72.71242),new google.maps.LatLng(32.51322 ,73.12994),new google.maps.LatLng(32.83326 ,72.27568),new google.maps.LatLng(34.52904 ,72.92827),new google.maps.LatLng(32.77410 ,72.94861),new google.maps.LatLng(34.85863 ,73.25068),new google.maps.LatLng(33.33272 ,72.67863),new google.maps.LatLng(33.88712 ,72.92800),new google.maps.LatLng(33.59880 ,72.66849),new google.maps.LatLng(33.25094 ,72.87983),new google.maps.LatLng(33.61822 ,72.74046),new google.maps.LatLng(34.82495 ,72.64089),new google.maps.LatLng(33.16474 ,72.40232),new google.maps.LatLng(33.13501 ,72.02522),new google.maps.LatLng(32.58369 ,73.40216),new google.maps.LatLng(33.19429 ,72.76207),new google.maps.LatLng(33.84693 ,72.99086),new google.maps.LatLng(33.24687 ,72.96311),new google.maps.LatLng(34.47461 ,73.35309),new google.maps.LatLng(32.51382 ,73.14366),new google.maps.LatLng(32.83942 ,73.01113),new google.maps.LatLng(34.08288 ,73.99440),new google.maps.LatLng(32.87660 ,73.85754),new google.maps.LatLng(32.94661 ,72.61324),new google.maps.LatLng(33.84714 ,72.63027),new google.maps.LatLng(34.83087 ,73.00117),new google.maps.LatLng(34.47674 ,73.51949),new google.maps.LatLng(34.49002 ,73.73818),new google.maps.LatLng(34.44783 ,73.64378),new google.maps.LatLng(33.22202 ,71.96024),new google.maps.LatLng(32.85140 ,72.44736),new google.maps.LatLng(34.72760 ,72.74914),new google.maps.LatLng(34.24726 ,72.39949),new google.maps.LatLng(34.84573 ,72.99398),new google.maps.LatLng(33.45837 ,73.40154),new google.maps.LatLng(34.29587 ,72.51320),new google.maps.LatLng(34.41566 ,72.47670),new google.maps.LatLng(33.98163 ,72.98726),new google.maps.LatLng(34.51401 ,73.73099),new google.maps.LatLng(32.95176 ,72.69155),new google.maps.LatLng(32.69255 ,73.62236),new google.maps.LatLng(34.42790 ,73.10147),new google.maps.LatLng(34.28295 ,72.64010),new google.maps.LatLng(33.01824 ,73.20277),new google.maps.LatLng(34.82985 ,73.40368),new google.maps.LatLng(34.61556 ,72.89035),new google.maps.LatLng(33.66039 ,73.17835),new google.maps.LatLng(34.14993 ,73.21646),new google.maps.LatLng(34.21560 ,73.96776),new google.maps.LatLng(33.52558 ,72.89024),new google.maps.LatLng(33.70979 ,71.90925),new google.maps.LatLng(33.06354 ,72.67876),new google.maps.LatLng(33.65179 ,72.25149),new google.maps.LatLng(34.15408 ,72.50000),new google.maps.LatLng(32.97614 ,73.47888),new google.maps.LatLng(34.10484 ,73.68965),new google.maps.LatLng(34.07285 ,72.66897),new google.maps.LatLng(34.04532 ,73.05191),new google.maps.LatLng(32.65652 ,72.99033),new google.maps.LatLng(33.21899 ,73.73299),new google.maps.LatLng(33.24278 ,73.20797),new google.maps.LatLng(34.37554 ,73.59731),new google.maps.LatLng(34.46519 ,72.88051),new google.maps.LatLng(32.79766 ,72.91270),new google.maps.LatLng(34.38152 ,72.87891),new google.maps.LatLng(32.67425 ,73.08550),new google.maps.LatLng(34.57531 ,72.94561),new google.maps.LatLng(33.21833 ,72.49720),new google.maps.LatLng(34.44336 ,72.33812),new google.maps.LatLng(34.29957 ,73.77320),new google.maps.LatLng(33.56910 ,73.96699),new google.maps.LatLng(34.62851 ,72.63360),new google.maps.LatLng(33.03576 ,73.36451),new google.maps.LatLng(34.42995 ,73.99226),new google.maps.LatLng(34.62123 ,73.13848),new google.maps.LatLng(34.40911 ,72.45717),new google.maps.LatLng(33.37246 ,72.44231),new google.maps.LatLng(32.71588 ,72.97513),new google.maps.LatLng(34.01903 ,73.94142),new google.maps.LatLng(34.39182 ,72.75322),new google.maps.LatLng(33.75184 ,71.99940),new google.maps.LatLng(32.49540 ,72.90861),new google.maps.LatLng(34.40046 ,73.84073),new google.maps.LatLng(33.93329 ,73.80151),new google.maps.LatLng(33.52607 ,72.26133),new google.maps.LatLng(33.05494 ,72.32572),new google.maps.LatLng(34.30189 ,72.63335),new google.maps.LatLng(33.37171 ,73.59389),new google.maps.LatLng(34.50311 ,72.67484),new google.maps.LatLng(33.81091 ,74.09049),new google.maps.LatLng(33.19143 ,72.92134),new google.maps.LatLng(33.96742 ,72.81826),new google.maps.LatLng(33.96602 ,72.47172),new google.maps.LatLng(33.63137 ,73.45272),new google.maps.LatLng(33.71032 ,74.16626),new google.maps.LatLng(33.00633 ,73.32758),new google.maps.LatLng(34.15557 ,73.96128),new google.maps.LatLng(33.71075 ,74.24134),new google.maps.LatLng(33.57815 ,73.63657),new google.maps.LatLng(34.47530 ,72.57718),new google.maps.LatLng(33.86839 ,73.72691),new google.maps.LatLng(33.61844 ,73.32096),new google.maps.LatLng(33.84844 ,72.38407),new google.maps.LatLng(34.14493 ,74.08502),new google.maps.LatLng(33.34753 ,73.53254),new google.maps.LatLng(33.85695 ,72.30260),new google.maps.LatLng(34.09648 ,72.24171),new google.maps.LatLng(33.73149 ,72.73336),new google.maps.LatLng(33.22072 ,72.38518),new google.maps.LatLng(34.64156 ,73.50525),new google.maps.LatLng(34.64284 ,73.75926),new google.maps.LatLng(33.37387 ,72.97613),new google.maps.LatLng(34.54768 ,72.97885),new google.maps.LatLng(34.21407 ,74.00522),new google.maps.LatLng(33.61667 ,71.97631),new google.maps.LatLng(34.59128 ,72.44317),new google.maps.LatLng(33.11627 ,72.22910),new google.maps.LatLng(33.88883 ,72.37961),new google.maps.LatLng(33.95771 ,72.29798),new google.maps.LatLng(34.15460 ,71.97236),new google.maps.LatLng(34.54194 ,73.70270),new google.maps.LatLng(33.45303 ,73.18758),new google.maps.LatLng(33.70522 ,72.76794),new google.maps.LatLng(33.94697 ,72.00334),new google.maps.LatLng(33.47380 ,73.24905),new google.maps.LatLng(32.94876 ,72.64650),new google.maps.LatLng(33.76238 ,72.08310),new google.maps.LatLng(34.06275 ,73.14454),new google.maps.LatLng(33.24509 ,72.92789),new google.maps.LatLng(34.72200 ,73.48402),new google.maps.LatLng(34.43586 ,73.73314),new google.maps.LatLng(33.85852 ,72.44484),new google.maps.LatLng(34.41480 ,72.85451),new google.maps.LatLng(33.37152 ,73.84162),new google.maps.LatLng(34.26750 ,73.85406),new google.maps.LatLng(34.35037 ,73.91985),new google.maps.LatLng(33.31540 ,72.86837),new google.maps.LatLng(33.51043 ,72.78231),new google.maps.LatLng(32.78754 ,73.38396),new google.maps.LatLng(33.43296 ,74.02488),new google.maps.LatLng(34.60563 ,73.54524),new google.maps.LatLng(34.15359 ,74.02697),new google.maps.LatLng(34.14065 ,73.77403),new google.maps.LatLng(34.49656 ,72.96739),new google.maps.LatLng(34.68946 ,72.94159),new google.maps.LatLng(33.63142 ,73.19429),new google.maps.LatLng(33.81143 ,71.91076),new google.maps.LatLng(33.85107 ,73.09252),new google.maps.LatLng(34.04848 ,72.86339),new google.maps.LatLng(34.13056 ,74.13937),new google.maps.LatLng(33.47610 ,72.39246),new google.maps.LatLng(33.80088 ,72.23570),new google.maps.LatLng(33.64750 ,74.21057),new google.maps.LatLng(32.66826 ,73.02552),new google.maps.LatLng(32.78116 ,73.16045),new google.maps.LatLng(32.66287 ,72.42239),new google.maps.LatLng(33.54883 ,72.50384),new google.maps.LatLng(32.96525 ,72.59214),new google.maps.LatLng(34.27156 ,72.45290),new google.maps.LatLng(33.25795 ,73.78597),new google.maps.LatLng(34.30249 ,73.28634),new google.maps.LatLng(33.74735 ,74.20540),new google.maps.LatLng(34.84382 ,73.15097),new google.maps.LatLng(34.77239 ,73.28947),new google.maps.LatLng(33.66737 ,72.72636),new google.maps.LatLng(33.81708 ,72.74736),new google.maps.LatLng(33.95323 ,73.58550),new google.maps.LatLng(33.66171 ,73.39183),new google.maps.LatLng(33.55567 ,73.52335),new google.maps.LatLng(34.12759 ,72.24724),new google.maps.LatLng(33.87851 ,73.06289),new google.maps.LatLng(33.74983 ,73.31268),new google.maps.LatLng(33.30604 ,73.76417),new google.maps.LatLng(34.44992 ,73.71239),new google.maps.LatLng(34.44922 ,72.63729),new google.maps.LatLng(33.83394 ,73.62164),new google.maps.LatLng(33.75375 ,74.19839),new google.maps.LatLng(33.49472 ,71.86242),new google.maps.LatLng(33.98893 ,73.27336),new google.maps.LatLng(33.71594 ,74.24375),new google.maps.LatLng(32.88766 ,72.44575),new google.maps.LatLng(34.10544 ,73.90208),new google.maps.LatLng(33.10521 ,72.26410),new google.maps.LatLng(34.00995 ,73.59848),new google.maps.LatLng(34.36506 ,74.03766),new google.maps.LatLng(33.14833 ,72.93468),new google.maps.LatLng(33.94221 ,72.23335),new google.maps.LatLng(34.07430 ,72.71753),new google.maps.LatLng(33.78854 ,72.16015),new google.maps.LatLng(32.67808 ,72.90818),new google.maps.LatLng(34.18702 ,73.65092),new google.maps.LatLng(34.10140 ,74.01955),new google.maps.LatLng(32.79202 ,72.80272),new google.maps.LatLng(33.20865 ,72.57162),new google.maps.LatLng(34.49376 ,73.10192),new google.maps.LatLng(34.50867 ,73.27187),new google.maps.LatLng(33.10108 ,73.84025),new google.maps.LatLng(32.65671 ,72.71667),new google.maps.LatLng(33.33415 ,73.48408),new google.maps.LatLng(33.27101 ,72.85192),new google.maps.LatLng(34.63103 ,72.34878),new google.maps.LatLng(33.34857 ,73.26039),new google.maps.LatLng(33.95825 ,74.13709),new google.maps.LatLng(32.69820 ,72.95874),new google.maps.LatLng(33.56792 ,72.04068),new google.maps.LatLng(33.46473 ,72.39905),new google.maps.LatLng(33.42992 ,71.91165),new google.maps.LatLng(32.59745 ,73.15006),new google.maps.LatLng(34.01208 ,72.75240),new google.maps.LatLng(33.45334 ,72.34015),new google.maps.LatLng(33.09912 ,72.00060),new google.maps.LatLng(32.87659 ,73.93549),new google.maps.LatLng(32.92346 ,73.40578),new google.maps.LatLng(33.10739 ,72.58975),new google.maps.LatLng(33.83269 ,74.16958),new google.maps.LatLng(33.48813 ,74.01623),new google.maps.LatLng(32.69109 ,73.53356),new google.maps.LatLng(33.66106 ,73.82436),new google.maps.LatLng(33.07560 ,74.00898),new google.maps.LatLng(33.56922 ,73.78383),new google.maps.LatLng(33.93840 ,72.50964),new google.maps.LatLng(34.46001 ,73.36186),new google.maps.LatLng(33.33926 ,73.69628),new google.maps.LatLng(33.09587 ,73.08890),new google.maps.LatLng(33.03454 ,73.44201),new google.maps.LatLng(34.69700 ,73.45838),new google.maps.LatLng(34.11400 ,73.27587),new google.maps.LatLng(33.19770 ,73.73579),new google.maps.LatLng(34.22534 ,73.73658),new google.maps.LatLng(34.12120 ,73.81062),new google.maps.LatLng(33.73022 ,73.90084),new google.maps.LatLng(33.04701 ,72.16750),new google.maps.LatLng(33.50891 ,74.22895),new google.maps.LatLng(33.49246 ,72.30903),new google.maps.LatLng(33.50014 ,73.80143),new google.maps.LatLng(34.26494 ,74.01037),new google.maps.LatLng(34.08666 ,73.55691),new google.maps.LatLng(34.12864 ,72.31812),new google.maps.LatLng(32.87282 ,72.32916),new google.maps.LatLng(34.53283 ,73.14125),new google.maps.LatLng(33.92369 ,73.45076),new google.maps.LatLng(34.18618 ,73.55835),new google.maps.LatLng(34.67340 ,72.48650),new google.maps.LatLng(34.77374 ,73.07964),new google.maps.LatLng(33.29376 ,73.98023),new google.maps.LatLng(34.14883 ,73.88285),new google.maps.LatLng(33.37262 ,73.36592),new google.maps.LatLng(33.18634 ,72.43267),new google.maps.LatLng(33.12667 ,72.33595),new google.maps.LatLng(33.93347 ,72.85788),new google.maps.LatLng(33.04253 ,72.23555),new google.maps.LatLng(33.82794 ,72.69295),new google.maps.LatLng(33.60844 ,72.98392),new google.maps.LatLng(34.74809 ,73.61481),new google.maps.LatLng(33.48618 ,73.63655),new google.maps.LatLng(33.24758 ,72.05423),new google.maps.LatLng(34.30309 ,73.81899),new google.maps.LatLng(34.45002 ,73.65176),new google.maps.LatLng(34.47667 ,73.48637),new google.maps.LatLng(33.39552 ,72.69665),new google.maps.LatLng(33.78371 ,72.19216),new google.maps.LatLng(33.15771 ,72.96468),new google.maps.LatLng(33.99347 ,72.83905),new google.maps.LatLng(33.38708 ,72.85184),new google.maps.LatLng(34.19883 ,73.70340),new google.maps.LatLng(33.45259 ,73.21961),new google.maps.LatLng(33.89004 ,73.11095),new google.maps.LatLng(32.76650 ,73.74287),new google.maps.LatLng(34.08768 ,74.10389),new google.maps.LatLng(34.46779 ,73.61309),new google.maps.LatLng(32.89939 ,73.39570),new google.maps.LatLng(34.03491 ,72.94565),new google.maps.LatLng(33.00570 ,72.70324),new google.maps.LatLng(33.04811 ,73.80796),new google.maps.LatLng(33.98096 ,74.19784),new google.maps.LatLng(33.64963 ,73.28587),new google.maps.LatLng(33.16441 ,72.73448),new google.maps.LatLng(33.91628 ,73.54827),new google.maps.LatLng(34.48166 ,72.94146),new google.maps.LatLng(33.90502 ,73.84349),new google.maps.LatLng(34.15982 ,72.56131),new google.maps.LatLng(34.34738 ,72.39302),new google.maps.LatLng(34.17705 ,73.94668),new google.maps.LatLng(33.17487 ,74.07116),new google.maps.LatLng(34.52044 ,72.24848),new google.maps.LatLng(32.93517 ,72.84938),new google.maps.LatLng(33.86462 ,72.13329),new google.maps.LatLng(34.68089 ,73.52862),new google.maps.LatLng(33.24286 ,73.58589),new google.maps.LatLng(33.68615 ,71.82681),new google.maps.LatLng(33.29048 ,73.25731),new google.maps.LatLng(33.60147 ,72.26498),new google.maps.LatLng(34.46600 ,73.05653),new google.maps.LatLng(34.44860 ,72.81625),new google.maps.LatLng(32.81883 ,73.83676),new google.maps.LatLng(34.82499 ,73.43534),new google.maps.LatLng(33.95979 ,73.78113),new google.maps.LatLng(33.05852 ,72.09393),new google.maps.LatLng(34.62854 ,72.32160),new google.maps.LatLng(33.40770 ,72.05020),new google.maps.LatLng(33.46938 ,72.81283),new google.maps.LatLng(34.74972 ,72.88360),new google.maps.LatLng(33.10175 ,72.20393),new google.maps.LatLng(34.65314 ,72.61523),new google.maps.LatLng(34.79709 ,73.08529),new google.maps.LatLng(33.37207 ,73.38748),new google.maps.LatLng(32.68158 ,72.71244),new google.maps.LatLng(34.48366 ,73.25183),new google.maps.LatLng(34.09093 ,71.97797),new google.maps.LatLng(33.72269 ,73.44978),new google.maps.LatLng(33.90477 ,73.69975),new google.maps.LatLng(33.20782 ,73.29953),new google.maps.LatLng(34.17870 ,73.80900),new google.maps.LatLng(32.73283 ,72.66725),new google.maps.LatLng(34.22008 ,73.56793),new google.maps.LatLng(33.42556 ,72.90719),new google.maps.LatLng(32.79849 ,73.47474),new google.maps.LatLng(34.67156 ,72.36778),new google.maps.LatLng(34.22396 ,72.40236),new google.maps.LatLng(33.82710 ,72.06065),new google.maps.LatLng(34.66956 ,72.66797),new google.maps.LatLng(34.47888 ,72.76013),new google.maps.LatLng(33.09970 ,72.71385),new google.maps.LatLng(34.46920 ,72.26603),new google.maps.LatLng(33.70472 ,74.13792),new google.maps.LatLng(33.76739 ,72.83389),new google.maps.LatLng(34.01213 ,74.19944),new google.maps.LatLng(33.81158 ,72.83152),new google.maps.LatLng(33.25047 ,72.25306),new google.maps.LatLng(33.02569 ,72.81528),new google.maps.LatLng(33.74725 ,72.32233),new google.maps.LatLng(34.08166 ,73.60860),new google.maps.LatLng(32.88417 ,72.49196),new google.maps.LatLng(34.56750 ,72.53747),new google.maps.LatLng(32.52469 ,72.95877),new google.maps.LatLng(34.60422 ,72.84611),new google.maps.LatLng(34.66512 ,73.09755),new google.maps.LatLng(34.30638 ,73.30888),new google.maps.LatLng(34.78395 ,72.75568),new google.maps.LatLng(33.97949 ,72.24367),new google.maps.LatLng(33.63550 ,72.86043),new google.maps.LatLng(33.60844 ,74.13915),new google.maps.LatLng(34.43573 ,73.95259),new google.maps.LatLng(33.21053 ,73.51421),new google.maps.LatLng(32.94873 ,73.82710),new google.maps.LatLng(34.01594 ,74.16633),new google.maps.LatLng(33.57725 ,72.82841),new google.maps.LatLng(33.71508 ,73.48126),new google.maps.LatLng(34.18356 ,72.22330),new google.maps.LatLng(34.24828 ,73.23426),new google.maps.LatLng(32.99974 ,73.94267),new google.maps.LatLng(34.03768 ,72.56031),new google.maps.LatLng(32.74974 ,72.34974),new google.maps.LatLng(33.02431 ,73.88199),new google.maps.LatLng(34.76379 ,72.66798),new google.maps.LatLng(33.14339 ,73.75128),new google.maps.LatLng(34.11790 ,73.92581),new google.maps.LatLng(33.68037 ,72.94979),new google.maps.LatLng(34.83696 ,72.76440),new google.maps.LatLng(33.91306 ,72.65457),new google.maps.LatLng(33.76305 ,74.11281),new google.maps.LatLng(33.79838 ,73.87487),new google.maps.LatLng(32.89621 ,72.30599),new google.maps.LatLng(32.55623 ,72.79112),new google.maps.LatLng(32.87054 ,73.91025),new google.maps.LatLng(32.93032 ,73.54523),new google.maps.LatLng(33.66453 ,73.20678),new google.maps.LatLng(34.03932 ,73.08423),new google.maps.LatLng(33.20235 ,71.98057),new google.maps.LatLng(34.37113 ,73.82350),new google.maps.LatLng(34.08500 ,73.57050),new google.maps.LatLng(33.75296 ,72.78134),new google.maps.LatLng(30.87199 ,73.36875),new google.maps.LatLng(32.24743 ,73.51304),new google.maps.LatLng(30.65612 ,74.78825),new google.maps.LatLng(31.12827 ,75.02592),new google.maps.LatLng(30.50682 ,75.07052),new google.maps.LatLng(30.92577 ,75.15163),new google.maps.LatLng(30.67374 ,73.50216),new google.maps.LatLng(30.90967 ,73.97407),new google.maps.LatLng(30.27903 ,74.52598),new google.maps.LatLng(31.59768 ,74.25144),new google.maps.LatLng(31.64325 ,74.00989),new google.maps.LatLng(30.96302 ,75.18850),new google.maps.LatLng(30.26068 ,74.04325),new google.maps.LatLng(32.35838 ,73.45730),new google.maps.LatLng(31.86267 ,73.59571),new google.maps.LatLng(31.64351 ,73.85280),new google.maps.LatLng(31.76998 ,74.00258),new google.maps.LatLng(30.89348 ,74.06614),new google.maps.LatLng(31.08558 ,73.43615),new google.maps.LatLng(30.70164 ,74.67503),new google.maps.LatLng(31.53897 ,74.40130),new google.maps.LatLng(30.65011 ,73.97530),new google.maps.LatLng(30.50644 ,75.06981),new google.maps.LatLng(32.39541 ,74.56495),new google.maps.LatLng(30.69777 ,73.65571),new google.maps.LatLng(31.98349 ,75.37840),new google.maps.LatLng(31.74110 ,73.45362),new google.maps.LatLng(32.63197 ,74.73022),new google.maps.LatLng(31.82016 ,74.68847),new google.maps.LatLng(30.72576 ,75.26727),new google.maps.LatLng(30.80075 ,73.78823),new google.maps.LatLng(31.77867 ,73.46188),new google.maps.LatLng(32.05857 ,75.04426),new google.maps.LatLng(32.59041 ,74.75374),new google.maps.LatLng(30.89241 ,74.94772),new google.maps.LatLng(31.99417 ,73.99490),new google.maps.LatLng(31.48023 ,75.64877),new google.maps.LatLng(31.49866 ,73.57475),new google.maps.LatLng(30.89795 ,75.23324),new google.maps.LatLng(30.45438 ,73.63927),new google.maps.LatLng(32.21032 ,74.76060),new google.maps.LatLng(32.53133 ,74.89798),new google.maps.LatLng(31.14493 ,73.84721),new google.maps.LatLng(30.77685 ,75.14022),new google.maps.LatLng(32.22629 ,73.44048),new google.maps.LatLng(31.40916 ,74.96219),new google.maps.LatLng(30.77233 ,74.32535),new google.maps.LatLng(31.27325 ,73.15119),new google.maps.LatLng(31.75118 ,75.35409),new google.maps.LatLng(30.82171 ,74.79133),new google.maps.LatLng(32.06100 ,73.79291),new google.maps.LatLng(32.25074 ,75.18058),new google.maps.LatLng(31.09554 ,75.25913),new google.maps.LatLng(32.65410 ,73.98142),new google.maps.LatLng(30.69092 ,74.35072),new google.maps.LatLng(32.25310 ,73.83828),new google.maps.LatLng(32.09819 ,74.09864),new google.maps.LatLng(30.74397 ,74.88236),new google.maps.LatLng(32.43604 ,75.03272),new google.maps.LatLng(31.73873 ,75.37465),new google.maps.LatLng(31.85098 ,74.24258),new google.maps.LatLng(32.38571 ,73.54934),new google.maps.LatLng(31.61263 ,74.18595),new google.maps.LatLng(30.37781 ,74.43936),new google.maps.LatLng(32.56165 ,74.11976),new google.maps.LatLng(32.40579 ,73.94785),new google.maps.LatLng(32.80466 ,74.29843),new google.maps.LatLng(32.79422 ,74.46824),new google.maps.LatLng(32.62819 ,74.40298),new google.maps.LatLng(30.69309 ,73.56748),new google.maps.LatLng(31.82975 ,74.56226),new google.maps.LatLng(31.89281 ,75.42242),new google.maps.LatLng(31.90387 ,74.73089),new google.maps.LatLng(30.59955 ,74.24275),new google.maps.LatLng(31.44794 ,73.64721),new google.maps.LatLng(32.00375 ,74.84574),new google.maps.LatLng(30.46011 ,73.92539),new google.maps.LatLng(31.24025 ,74.33126),new google.maps.LatLng(31.91941 ,75.04603),new google.maps.LatLng(30.47484 ,73.63801),new google.maps.LatLng(31.50229 ,73.78076),new google.maps.LatLng(30.71273 ,74.96579),new google.maps.LatLng(31.20870 ,74.08050),new google.maps.LatLng(32.50458 ,74.80971),new google.maps.LatLng(32.18933 ,73.76383),new google.maps.LatLng(32.00932 ,73.88243),new google.maps.LatLng(31.43823 ,74.62267),new google.maps.LatLng(30.39602 ,75.01801),new google.maps.LatLng(32.43133 ,75.20321),new google.maps.LatLng(30.79365 ,74.35559),new google.maps.LatLng(32.17349 ,74.58013),new google.maps.LatLng(30.47569 ,73.88234),new google.maps.LatLng(30.91433 ,73.78104),new google.maps.LatLng(32.30123 ,74.51509),new google.maps.LatLng(31.38928 ,73.31746),new google.maps.LatLng(30.41359 ,75.05402),new google.maps.LatLng(31.42447 ,74.80855),new google.maps.LatLng(31.84435 ,74.01011),new google.maps.LatLng(31.74893 ,74.05254),new google.maps.LatLng(31.15242 ,73.90038),new google.maps.LatLng(32.08518 ,73.67924),new google.maps.LatLng(30.27674 ,74.76976),new google.maps.LatLng(32.46652 ,74.25167),new google.maps.LatLng(31.26045 ,73.35082),new google.maps.LatLng(32.61854 ,75.00346),new google.maps.LatLng(32.17343 ,74.88391),new google.maps.LatLng(32.33563 ,73.61978),new google.maps.LatLng(31.89379 ,74.73742),new google.maps.LatLng(31.43308 ,74.29273),new google.maps.LatLng(32.35839 ,74.66839),new google.maps.LatLng(31.28773 ,75.52566),new google.maps.LatLng(31.70485 ,75.13151),new google.maps.LatLng(30.49698 ,73.80506),new google.maps.LatLng(32.13719 ,74.44567),new google.maps.LatLng(31.93576 ,74.40002),new google.maps.LatLng(32.27284 ,73.35499),new google.maps.LatLng(31.96283 ,75.28874),new google.maps.LatLng(30.61226 ,75.00697),new google.maps.LatLng(31.24713 ,73.84077),new google.maps.LatLng(32.29141 ,74.66884),new google.maps.LatLng(32.47652 ,75.21546),new google.maps.LatLng(30.45951 ,74.13263),new google.maps.LatLng(30.45367 ,74.08102),new google.maps.LatLng(32.06530 ,74.75510),new google.maps.LatLng(31.07278 ,74.48559),new google.maps.LatLng(31.05906 ,74.73115),new google.maps.LatLng(31.23084 ,73.65048),new google.maps.LatLng(30.73971 ,75.38749),new google.maps.LatLng(30.66536 ,75.27540),new google.maps.LatLng(31.03267 ,75.19083),new google.maps.LatLng(32.11839 ,74.21342),new google.maps.LatLng(31.83419 ,73.84980),new google.maps.LatLng(31.88121 ,74.19671),new google.maps.LatLng(32.31727 ,73.37578),new google.maps.LatLng(32.65724 ,74.61257),new google.maps.LatLng(32.38596 ,74.51357),new google.maps.LatLng(30.93866 ,74.94757),new google.maps.LatLng(31.61444 ,75.19179),new google.maps.LatLng(30.98791 ,75.45144),new google.maps.LatLng(31.36760 ,74.02692),new google.maps.LatLng(31.17110 ,73.86050),new google.maps.LatLng(30.81958 ,73.50967),new google.maps.LatLng(31.86557 ,74.48047),new google.maps.LatLng(31.50664 ,74.80065),new google.maps.LatLng(32.39008 ,73.50545),new google.maps.LatLng(30.75889 ,73.39458),new google.maps.LatLng(30.79385 ,74.22531),new google.maps.LatLng(30.27384 ,74.60483),new google.maps.LatLng(32.25021 ,74.26726),new google.maps.LatLng(32.24941 ,73.69091),new google.maps.LatLng(32.37074 ,74.35657),new google.maps.LatLng(31.47510 ,73.65681),new google.maps.LatLng(32.00663 ,74.78455),new google.maps.LatLng(31.49142 ,74.65934),new google.maps.LatLng(31.92067 ,74.10968),new google.maps.LatLng(31.06313 ,73.93503),new google.maps.LatLng(30.55629 ,74.94556),new google.maps.LatLng(31.50379 ,75.27959),new google.maps.LatLng(31.48242 ,74.63606),new google.maps.LatLng(32.09102 ,74.17227),new google.maps.LatLng(31.46170 ,74.40366),new google.maps.LatLng(31.18910 ,75.49141),new google.maps.LatLng(31.82592 ,74.91088),new google.maps.LatLng(31.89595 ,74.31404),new google.maps.LatLng(30.86363 ,74.95357),new google.maps.LatLng(30.54069 ,74.15310),new google.maps.LatLng(32.19623 ,74.79399),new google.maps.LatLng(31.13830 ,74.03314),new google.maps.LatLng(31.97728 ,75.02644),new google.maps.LatLng(31.28962 ,73.49484),new google.maps.LatLng(30.94914 ,73.63477),new google.maps.LatLng(31.99127 ,75.45122),new google.maps.LatLng(31.45485 ,73.33347),new google.maps.LatLng(30.90682 ,73.69324),new google.maps.LatLng(31.93948 ,74.56930),new google.maps.LatLng(31.14282 ,74.41354),new google.maps.LatLng(32.37602 ,73.39882),new google.maps.LatLng(31.25250 ,74.15100),new google.maps.LatLng(31.71388 ,73.68714),new google.maps.LatLng(32.23928 ,74.97879),new google.maps.LatLng(32.08117 ,75.21596),new google.maps.LatLng(30.83228 ,74.38697),new google.maps.LatLng(31.97458 ,74.33966),new google.maps.LatLng(32.31768 ,75.23508),new google.maps.LatLng(32.12908 ,74.22695),new google.maps.LatLng(31.87951 ,74.48342),new google.maps.LatLng(31.14681 ,73.18154),new google.maps.LatLng(31.93047 ,74.16919),new google.maps.LatLng(32.56938 ,73.70911),new google.maps.LatLng(31.50483 ,73.09445),new google.maps.LatLng(32.41360 ,74.77455),new google.maps.LatLng(31.32398 ,73.67966),new google.maps.LatLng(31.25750 ,73.19288),new google.maps.LatLng(31.66176 ,74.69882),new google.maps.LatLng(31.44184 ,74.57260),new google.maps.LatLng(31.62542 ,75.10186),new google.maps.LatLng(30.88108 ,74.54724),new google.maps.LatLng(31.88906 ,74.33816),new google.maps.LatLng(30.93239 ,74.80720),new google.maps.LatLng(31.80965 ,75.60585),new google.maps.LatLng(30.82709 ,73.50966),new google.maps.LatLng(31.19548 ,73.32836),new google.maps.LatLng(31.30960 ,74.12708),new google.maps.LatLng(32.10070 ,73.47762),new google.maps.LatLng(31.61547 ,74.50358),new google.maps.LatLng(30.76047 ,74.56600),new google.maps.LatLng(32.74869 ,74.41079),new google.maps.LatLng(32.54286 ,74.67256),new google.maps.LatLng(32.04878 ,73.70331),new google.maps.LatLng(31.47533 ,74.11850),new google.maps.LatLng(31.16019 ,74.51274),new google.maps.LatLng(30.70969 ,74.57914),new google.maps.LatLng(31.97462 ,74.87874),new google.maps.LatLng(32.74532 ,74.21454),new google.maps.LatLng(31.48270 ,74.82390),new google.maps.LatLng(31.27275 ,73.26014),new google.maps.LatLng(31.67220 ,75.10906),new google.maps.LatLng(30.48478 ,74.08184),new google.maps.LatLng(30.63483 ,74.57663),new google.maps.LatLng(32.12022 ,75.29444),new google.maps.LatLng(31.62982 ,74.67535),new google.maps.LatLng(32.24312 ,74.03813),new google.maps.LatLng(31.73903 ,73.38111),new google.maps.LatLng(31.54473 ,75.53267),new google.maps.LatLng(32.20844 ,73.72513),new google.maps.LatLng(31.73395 ,73.61104),new google.maps.LatLng(31.61972 ,73.86146),new google.maps.LatLng(31.16807 ,73.23936),new google.maps.LatLng(31.21847 ,73.46452),new google.maps.LatLng(31.11183 ,75.39004),new google.maps.LatLng(32.67577 ,74.38365),new google.maps.LatLng(31.57150 ,74.65951),new google.maps.LatLng(32.58922 ,74.73914),new google.maps.LatLng(30.86751 ,73.29152),new google.maps.LatLng(30.60007 ,75.27045),new google.maps.LatLng(31.48067 ,75.05622),new google.maps.LatLng(31.75127 ,74.47244),new google.maps.LatLng(31.15290 ,75.61755),new google.maps.LatLng(31.56643 ,75.60388),new google.maps.LatLng(31.93863 ,74.92849),new google.maps.LatLng(32.25522 ,74.97357),new google.maps.LatLng(31.85514 ,73.90643),new google.maps.LatLng(31.00323 ,73.45029),new google.maps.LatLng(31.59303 ,74.71118),new google.maps.LatLng(30.80404 ,75.37417),new google.maps.LatLng(32.07284 ,73.76609),new google.maps.LatLng(30.84420 ,74.83194),new google.maps.LatLng(32.21411 ,75.38646),new google.maps.LatLng(32.10347 ,75.11910),new google.maps.LatLng(32.17385 ,74.01532),new google.maps.LatLng(30.51382 ,74.47658),new google.maps.LatLng(32.38274 ,74.12280),new google.maps.LatLng(31.96096 ,74.35577),new google.maps.LatLng(31.86860 ,74.25516),new google.maps.LatLng(30.30120 ,74.25618),new google.maps.LatLng(30.65880 ,73.90413),new google.maps.LatLng(31.24922 ,73.22674),new google.maps.LatLng(32.06552 ,75.47767),new google.maps.LatLng(31.94685 ,75.26845),new google.maps.LatLng(31.76857 ,74.16385),new google.maps.LatLng(31.57595 ,73.21082),new google.maps.LatLng(31.89719 ,75.46071),new google.maps.LatLng(30.78252 ,74.94765),new google.maps.LatLng(31.79446 ,73.62858),new google.maps.LatLng(30.85772 ,73.82024),new google.maps.LatLng(32.65764 ,73.88223),new google.maps.LatLng(31.48867 ,73.17975),new google.maps.LatLng(30.82702 ,74.99497),new google.maps.LatLng(30.62008 ,74.83991),new google.maps.LatLng(31.64017 ,74.68993),new google.maps.LatLng(31.94617 ,74.02269),new google.maps.LatLng(31.99350 ,74.62124),new google.maps.LatLng(30.85112 ,73.69596),new google.maps.LatLng(31.16772 ,74.50610),new google.maps.LatLng(31.61168 ,75.17002),new google.maps.LatLng(31.26239 ,74.70914),new google.maps.LatLng(31.42755 ,73.23184),new google.maps.LatLng(31.36218 ,75.47866),new google.maps.LatLng(32.62314 ,73.88112),new google.maps.LatLng(31.17446 ,75.03807),new google.maps.LatLng(31.35624 ,74.54950),new google.maps.LatLng(32.05099 ,74.85171),new google.maps.LatLng(31.14818 ,73.46771),new google.maps.LatLng(30.68313 ,74.13403),new google.maps.LatLng(30.66324 ,74.12953),new google.maps.LatLng(31.66449 ,75.06409),new google.maps.LatLng(31.82268 ,75.16960),new google.maps.LatLng(31.65881 ,74.48728),new google.maps.LatLng(32.33500 ,74.15844),new google.maps.LatLng(30.82385 ,73.62199),new google.maps.LatLng(31.53145 ,73.39657),new google.maps.LatLng(31.31096 ,73.14682),new google.maps.LatLng(32.35052 ,74.40400),new google.maps.LatLng(31.91482 ,75.20975),new google.maps.LatLng(32.11474 ,75.14583),new google.maps.LatLng(31.79875 ,74.39219),new google.maps.LatLng(31.08145 ,74.92224),new google.maps.LatLng(31.06726 ,74.81697),new google.maps.LatLng(32.72904 ,74.76953),new google.maps.LatLng(30.98491 ,74.96188),new google.maps.LatLng(31.86920 ,74.54106),new google.maps.LatLng(31.33391 ,74.34534),new google.maps.LatLng(30.72842 ,74.79114),new google.maps.LatLng(30.99212 ,74.96759),new google.maps.LatLng(31.40545 ,73.27179),new google.maps.LatLng(31.69472 ,75.43640),new google.maps.LatLng(32.33795 ,74.81159),new google.maps.LatLng(31.15550 ,74.47156),new google.maps.LatLng(31.18485 ,74.72151),new google.maps.LatLng(31.71804 ,73.99973),new google.maps.LatLng(31.70775 ,74.32551),new google.maps.LatLng(32.04190 ,73.82674),new google.maps.LatLng(30.72894 ,73.79669),new google.maps.LatLng(30.84774 ,75.34005),new google.maps.LatLng(31.64275 ,75.62382),new google.maps.LatLng(31.04541 ,75.30655),new google.maps.LatLng(31.62660 ,74.38707),new google.maps.LatLng(31.73012 ,75.36930),new google.maps.LatLng(31.93085 ,74.66192),new google.maps.LatLng(32.43168 ,74.68432),new google.maps.LatLng(30.45694 ,74.46647),new google.maps.LatLng(32.05057 ,73.73005),new google.maps.LatLng(31.11954 ,74.41969),new google.maps.LatLng(31.59978 ,74.73125),new google.maps.LatLng(30.61873 ,74.75381),new google.maps.LatLng(30.60059 ,74.07292),new google.maps.LatLng(31.84051 ,73.33521),new google.maps.LatLng(31.08203 ,73.31937),new google.maps.LatLng(30.99479 ,75.50433),new google.maps.LatLng(30.97180 ,75.41673),new google.maps.LatLng(30.80746 ,75.29045),new google.maps.LatLng(32.66394 ,74.19877),new google.maps.LatLng(32.53982 ,74.89781),new google.maps.LatLng(31.50565 ,74.31060),new google.maps.LatLng(31.69207 ,73.59961),new google.maps.LatLng(31.93379 ,73.69833),new google.maps.LatLng(31.09895 ,75.40032),new google.maps.LatLng(31.54274 ,73.90263),new google.maps.LatLng(31.41532 ,73.16052),new google.maps.LatLng(32.40208 ,74.20639),new google.maps.LatLng(30.78897 ,74.18509),new google.maps.LatLng(32.16693 ,73.58758),new google.maps.LatLng(31.56520 ,74.35926),new google.maps.LatLng(32.06297 ,74.26567),new google.maps.LatLng(31.27655 ,75.56697),new google.maps.LatLng(31.97720 ,73.93020),new google.maps.LatLng(31.98058 ,74.02666),new google.maps.LatLng(30.88977 ,74.18007),new google.maps.LatLng(30.77557 ,75.25549),new google.maps.LatLng(30.92826 ,74.36736),new google.maps.LatLng(31.44848 ,74.04706),new google.maps.LatLng(31.31841 ,73.19585),new google.maps.LatLng(31.61049 ,73.44884),new google.maps.LatLng(30.44016 ,73.76668),new google.maps.LatLng(30.69283 ,73.52276),new google.maps.LatLng(31.21281 ,75.42564),new google.maps.LatLng(31.64687 ,74.20891),new google.maps.LatLng(32.37382 ,75.14280),new google.maps.LatLng(31.78428 ,74.08121),new google.maps.LatLng(31.04945 ,74.66149),new google.maps.LatLng(30.64668 ,74.93367),new google.maps.LatLng(30.54856 ,75.04565),new google.maps.LatLng(31.45884 ,73.45726),new google.maps.LatLng(31.95875 ,74.50653),new google.maps.LatLng(31.64898 ,75.37743),new google.maps.LatLng(31.92692 ,74.96025),new google.maps.LatLng(30.73337 ,73.62230),new google.maps.LatLng(31.31107 ,74.29593),new google.maps.LatLng(32.63965 ,74.55461),new google.maps.LatLng(32.17145 ,74.73896),new google.maps.LatLng(31.51708 ,73.24504),new google.maps.LatLng(32.41299 ,74.89762),new google.maps.LatLng(31.72226 ,73.83713),new google.maps.LatLng(32.44695 ,74.89377),new google.maps.LatLng(31.69642 ,73.57612),new google.maps.LatLng(31.35807 ,75.21311),new google.maps.LatLng(32.03447 ,74.43437),new google.maps.LatLng(31.65839 ,75.61047),new google.maps.LatLng(31.56106 ,75.42641),new google.maps.LatLng(30.41167 ,74.14911),new google.maps.LatLng(31.74865 ,74.65241),new google.maps.LatLng(32.05150 ,75.38628),new google.maps.LatLng(31.48223 ,75.39410),new google.maps.LatLng(31.70003 ,74.36449),new google.maps.LatLng(31.62612 ,74.72680),new google.maps.LatLng(31.92728 ,73.15981),new google.maps.LatLng(31.55079 ,74.56204),new google.maps.LatLng(30.71319 ,75.18684),new google.maps.LatLng(32.73584 ,74.11435),new google.maps.LatLng(32.18503 ,74.37616),new google.maps.LatLng(31.57019 ,74.66566),new google.maps.LatLng(31.97070 ,73.90328),new google.maps.LatLng(30.95345 ,74.31032),new google.maps.LatLng(31.44128 ,75.62809),new google.maps.LatLng(31.90458 ,75.00457),new google.maps.LatLng(32.20163 ,74.48281),new google.maps.LatLng(31.80450 ,74.54355),new google.maps.LatLng(32.24234 ,74.19890),new google.maps.LatLng(32.09646 ,73.74790),new google.maps.LatLng(31.76769 ,75.07734),new google.maps.LatLng(31.93972 ,75.45370),new google.maps.LatLng(31.63775 ,75.24365),new google.maps.LatLng(31.32326 ,74.93022),new google.maps.LatLng(31.70628 ,75.36401),new google.maps.LatLng(32.57443 ,74.97769),new google.maps.LatLng(30.74580 ,75.23910),new google.maps.LatLng(32.13161 ,73.75284),new google.maps.LatLng(31.71932 ,74.21873),new google.maps.LatLng(32.37174 ,74.50914),new google.maps.LatLng(31.25395 ,74.43935),new google.maps.LatLng(31.06966 ,75.26273),new google.maps.LatLng(30.68412 ,74.74166),new google.maps.LatLng(31.04466 ,74.09919),new google.maps.LatLng(31.90900 ,73.79793),new google.maps.LatLng(30.71319 ,74.07210),new google.maps.LatLng(30.70427 ,73.86266),new google.maps.LatLng(30.58030 ,73.57426),new google.maps.LatLng(30.63011 ,74.24772),new google.maps.LatLng(30.34063 ,74.46564),new google.maps.LatLng(30.25587 ,74.05397),new google.maps.LatLng(31.75473 ,74.29276),new google.maps.LatLng(31.22865 ,74.12270),new google.maps.LatLng(32.42858 ,74.36531),new google.maps.LatLng(31.38059 ,73.95770),new google.maps.LatLng(32.64698 ,74.45508),new google.maps.LatLng(31.02080 ,74.85909),new google.maps.LatLng(30.86032 ,74.77748),new google.maps.LatLng(32.21796 ,73.83871),new google.maps.LatLng(32.20173 ,73.63862),new google.maps.LatLng(32.66297 ,74.56489),new google.maps.LatLng(32.34272 ,73.38515),new google.maps.LatLng(31.62630 ,75.07247),new google.maps.LatLng(30.78763 ,74.23911),new google.maps.LatLng(32.58350 ,73.73884),new google.maps.LatLng(31.44409 ,74.79804),new google.maps.LatLng(31.42087 ,75.43421),new google.maps.LatLng(31.02830 ,75.22188),new google.maps.LatLng(31.54241 ,73.91915),new google.maps.LatLng(32.23777 ,73.90471),new google.maps.LatLng(30.75074 ,74.02903),new google.maps.LatLng(31.86672 ,75.16060),new google.maps.LatLng(30.53389 ,73.58688),new google.maps.LatLng(31.95470 ,74.24488),new google.maps.LatLng(32.10061 ,74.29151),new google.maps.LatLng(30.26593 ,74.33922),new google.maps.LatLng(31.35614 ,75.44232),new google.maps.LatLng(31.17517 ,73.87312),new google.maps.LatLng(30.87222 ,75.12745),new google.maps.LatLng(31.55698 ,73.14740),new google.maps.LatLng(30.42229 ,73.94087),new google.maps.LatLng(31.53979 ,75.00977),new google.maps.LatLng(30.44062 ,74.26242),new google.maps.LatLng(31.17912 ,74.25887),new google.maps.LatLng(30.86311 ,73.29126),new google.maps.LatLng(30.99171 ,73.21757),new google.maps.LatLng(32.71052 ,74.81535),new google.maps.LatLng(31.41246 ,74.56584),new google.maps.LatLng(30.38222 ,74.18646),new google.maps.LatLng(31.59980 ,73.22341),new google.maps.LatLng(31.76168 ,73.27926),new google.maps.LatLng(30.51855 ,73.91153),new google.maps.LatLng(30.81463 ,73.93886),new google.maps.LatLng(32.03416 ,75.21726),new google.maps.LatLng(32.35057 ,73.64633),new google.maps.LatLng(32.42949 ,74.88739),new google.maps.LatLng(31.58953 ,74.69857),new google.maps.LatLng(31.88514 ,74.81715),new google.maps.LatLng(30.85311 ,73.37504),new google.maps.LatLng(31.48546 ,75.50933),new google.maps.LatLng(30.50189 ,74.58573),new google.maps.LatLng(31.55314 ,75.49383),new google.maps.LatLng(31.71844 ,73.70811),new google.maps.LatLng(31.50054 ,73.30462),new google.maps.LatLng(31.83769 ,74.71695),new google.maps.LatLng(31.66261 ,74.53673),new google.maps.LatLng(32.10492 ,74.34864),new google.maps.LatLng(30.65879 ,74.45869),new google.maps.LatLng(31.89276 ,75.39866),new google.maps.LatLng(30.79664 ,75.17208),new google.maps.LatLng(31.01143 ,74.85177),new google.maps.LatLng(31.38448 ,74.34444),new google.maps.LatLng(30.42100 ,74.79770),new google.maps.LatLng(31.38611 ,73.12216),new google.maps.LatLng(31.05812 ,73.81391),new google.maps.LatLng(32.01979 ,75.29132),new google.maps.LatLng(30.66034 ,74.74792),new google.maps.LatLng(31.08926 ,75.13776),new google.maps.LatLng(32.62247 ,73.78189),new google.maps.LatLng(31.46957 ,74.01160),new google.maps.LatLng(32.37376 ,74.03046),new google.maps.LatLng(31.14821 ,73.56482),new google.maps.LatLng(31.96968 ,75.40209),new google.maps.LatLng(32.37284 ,74.63872),new google.maps.LatLng(32.32517 ,75.30185),new google.maps.LatLng(31.02461 ,73.70772),new google.maps.LatLng(32.60311 ,75.03118),new google.maps.LatLng(32.56861 ,74.45153),new google.maps.LatLng(32.35102 ,75.26902),new google.maps.LatLng(32.19134 ,74.57340),new google.maps.LatLng(31.15084 ,73.32834),new google.maps.LatLng(31.06614 ,73.13955),new google.maps.LatLng(30.89560 ,75.47922),new google.maps.LatLng(31.96889 ,73.24235),new google.maps.LatLng(31.44166 ,74.14516),new google.maps.LatLng(32.15385 ,75.09778),new google.maps.LatLng(31.91920 ,75.00310),new google.maps.LatLng(31.94089 ,75.32599),new google.maps.LatLng(31.30672 ,73.56776),new google.maps.LatLng(31.34538 ,74.57886),new google.maps.LatLng(30.65976 ,74.82041),new google.maps.LatLng(31.52826 ,75.22570),new google.maps.LatLng(30.65251 ,74.96872),new google.maps.LatLng(31.33984 ,75.08546),new google.maps.LatLng(30.65011 ,74.46221),new google.maps.LatLng(30.93110 ,74.46426),new google.maps.LatLng(31.68031 ,75.04324),new google.maps.LatLng(31.85602 ,75.30513),new google.maps.LatLng(31.68459 ,74.60409),new google.maps.LatLng(30.87551 ,74.99724),new google.maps.LatLng(31.67400 ,74.51969),new google.maps.LatLng(31.39699 ,74.54260),new google.maps.LatLng(31.02532 ,74.72738),new google.maps.LatLng(30.81018 ,75.06084),new google.maps.LatLng(31.54936 ,74.75233),new google.maps.LatLng(31.72832 ,74.08236),new google.maps.LatLng(31.52299 ,74.68592),new google.maps.LatLng(32.12168 ,75.43249),new google.maps.LatLng(31.38982 ,75.38626),new google.maps.LatLng(31.25891 ,74.94171),new google.maps.LatLng(31.41391 ,74.92646),new google.maps.LatLng(31.77078 ,74.20837),new google.maps.LatLng(30.90459 ,75.15438),new google.maps.LatLng(32.34295 ,75.14879),new google.maps.LatLng(30.92598 ,73.70637),new google.maps.LatLng(32.32872 ,74.33379),new google.maps.LatLng(31.17884 ,74.82037),new google.maps.LatLng(30.68526 ,73.62854),new google.maps.LatLng(31.87586 ,73.91729),new google.maps.LatLng(31.20162 ,74.30522),new google.maps.LatLng(31.58491 ,73.85646),new google.maps.LatLng(31.45910 ,73.83096),new google.maps.LatLng(31.25186 ,73.74094),new google.maps.LatLng(32.28584 ,75.38816),new google.maps.LatLng(30.25859 ,74.44015),new google.maps.LatLng(31.94751 ,75.44194),new google.maps.LatLng(31.18235 ,74.73594),new google.maps.LatLng(31.01996 ,74.38996),new google.maps.LatLng(32.10764 ,75.32790),new google.maps.LatLng(30.46474 ,74.27510),new google.maps.LatLng(31.58076 ,73.07999),new google.maps.LatLng(30.55558 ,74.81094),new google.maps.LatLng(30.46941 ,74.67378),new google.maps.LatLng(31.69167 ,73.47359),new google.maps.LatLng(32.14935 ,74.59062),new google.maps.LatLng(31.56776 ,74.35980),new google.maps.LatLng(31.64917 ,74.25612),new google.maps.LatLng(31.26479 ,74.70096),new google.maps.LatLng(31.01184 ,73.65603),new google.maps.LatLng(30.35285 ,74.71044),new google.maps.LatLng(30.37721 ,74.21038),new google.maps.LatLng(31.96857 ,74.83337),new google.maps.LatLng(31.62967 ,75.40464),new google.maps.LatLng(32.29061 ,73.88609),new google.maps.LatLng(31.56011 ,74.71202),new google.maps.LatLng(32.12537 ,74.05349),new google.maps.LatLng(31.51399 ,74.11854),new google.maps.LatLng(31.68853 ,74.49103),new google.maps.LatLng(31.27361 ,75.42897),new google.maps.LatLng(31.05048 ,73.19429),new google.maps.LatLng(31.27750 ,73.15496),new google.maps.LatLng(30.93562 ,73.30569),new google.maps.LatLng(31.83497 ,73.16978),new google.maps.LatLng(31.30811 ,74.84389),new google.maps.LatLng(31.88051 ,74.40106),new google.maps.LatLng(31.62486 ,73.48845),new google.maps.LatLng(31.49967 ,74.26732),new google.maps.LatLng(30.55712 ,73.77397),new google.maps.LatLng(30.90675 ,75.36953),new google.maps.LatLng(32.20280 ,74.39142),new google.maps.LatLng(30.34340 ,73.80539),new google.maps.LatLng(30.52282 ,74.20519),new google.maps.LatLng(30.30173 ,74.33352),new google.maps.LatLng(31.94523 ,75.27131),new google.maps.LatLng(32.65661 ,73.86879),new google.maps.LatLng(30.36298 ,74.04933),new google.maps.LatLng(32.40168 ,73.54830),new google.maps.LatLng(30.52860 ,75.16240),new google.maps.LatLng(31.04267 ,75.22786),new google.maps.LatLng(31.08576 ,74.72391),new google.maps.LatLng(32.08178 ,74.95367),new google.maps.LatLng(30.44151 ,74.97094),new google.maps.LatLng(30.40161 ,74.21777),new google.maps.LatLng(31.52057 ,73.19591),new google.maps.LatLng(31.64656 ,75.40964),new google.maps.LatLng(32.07132 ,74.17004),new google.maps.LatLng(30.74594 ,74.76364),new google.maps.LatLng(30.32489 ,74.47966),new google.maps.LatLng(30.36530 ,74.97697),new google.maps.LatLng(30.42031 ,74.69105),new google.maps.LatLng(31.06251 ,74.68214),new google.maps.LatLng(31.54111 ,74.96279),new google.maps.LatLng(30.74766 ,74.91592),new google.maps.LatLng(31.63106 ,74.14900),new google.maps.LatLng(32.01925 ,75.46670),new google.maps.LatLng(32.64979 ,74.56781),new google.maps.LatLng(31.82516 ,74.71303),new google.maps.LatLng(30.81519 ,74.10036),new google.maps.LatLng(30.53082 ,74.23626),new google.maps.LatLng(32.14495 ,74.28853),new google.maps.LatLng(31.88682 ,73.64012),new google.maps.LatLng(31.47019 ,73.53055),new google.maps.LatLng(30.25265 ,74.02287),new google.maps.LatLng(31.84401 ,75.05851),new google.maps.LatLng(32.43468 ,73.49930),new google.maps.LatLng(31.81225 ,75.30189),new google.maps.LatLng(31.57219 ,73.81970),new google.maps.LatLng(31.24432 ,74.53155),new google.maps.LatLng(31.70790 ,73.87284),new google.maps.LatLng(32.57246 ,73.91777),new google.maps.LatLng(30.58346 ,74.92347),new google.maps.LatLng(31.55099 ,73.86600),new google.maps.LatLng(31.99010 ,73.53698),new google.maps.LatLng(30.68067 ,74.07740),new google.maps.LatLng(32.24685 ,74.40921),new google.maps.LatLng(31.12051 ,74.63862),new google.maps.LatLng(31.75835 ,74.11190),new google.maps.LatLng(31.17201 ,73.98818),new google.maps.LatLng(30.61633 ,74.04392),new google.maps.LatLng(30.83593 ,73.61682),new google.maps.LatLng(30.82951 ,73.87193),new google.maps.LatLng(31.86317 ,74.93604),new google.maps.LatLng(30.64074 ,74.79392),new google.maps.LatLng(31.08241 ,73.47860),new google.maps.LatLng(31.82340 ,75.27848),new google.maps.LatLng(31.22950 ,75.30227),new google.maps.LatLng(31.69527 ,73.98612),new google.maps.LatLng(31.14978 ,73.55035),new google.maps.LatLng(30.28236 ,73.97900),new google.maps.LatLng(32.78146 ,74.50322),new google.maps.LatLng(32.42529 ,75.03349),new google.maps.LatLng(30.84962 ,75.43099),new google.maps.LatLng(30.92626 ,74.59434),new google.maps.LatLng(30.75231 ,73.39572),new google.maps.LatLng(30.65974 ,74.15135),new google.maps.LatLng(32.10822 ,73.38080),new google.maps.LatLng(31.26887 ,75.49677),new google.maps.LatLng(31.01448 ,74.86024),new google.maps.LatLng(31.09415 ,75.20561),new google.maps.LatLng(32.17139 ,74.96314),new google.maps.LatLng(30.66334 ,73.38665),new google.maps.LatLng(31.98758 ,73.79726),new google.maps.LatLng(32.00681 ,75.32761),new google.maps.LatLng(31.49163 ,74.88532),new google.maps.LatLng(31.09999 ,73.46440),new google.maps.LatLng(30.67362 ,75.36414),new google.maps.LatLng(30.29312 ,74.42601),new google.maps.LatLng(30.98504 ,74.94528),new google.maps.LatLng(31.88299 ,75.06184),new google.maps.LatLng(32.43473 ,74.85649),new google.maps.LatLng(31.77895 ,74.78896),new google.maps.LatLng(31.37591 ,73.38354),new google.maps.LatLng(30.60073 ,75.02150),new google.maps.LatLng(30.74482 ,75.36264),new google.maps.LatLng(31.57449 ,73.67953),new google.maps.LatLng(31.49072 ,74.67973),new google.maps.LatLng(31.49989 ,74.37949),new google.maps.LatLng(30.97381 ,74.50213),new google.maps.LatLng(31.40358 ,73.27323),new google.maps.LatLng(31.72236 ,75.56875),new google.maps.LatLng(30.90650 ,73.68156),new google.maps.LatLng(32.30013 ,73.37481),new google.maps.LatLng(31.21379 ,75.14400),new google.maps.LatLng(31.25945 ,73.36144),new google.maps.LatLng(32.24498 ,74.74291),new google.maps.LatLng(31.21438 ,75.29780),new google.maps.LatLng(31.28801 ,73.72366),new google.maps.LatLng(31.68009 ,74.85917),new google.maps.LatLng(31.53257 ,74.92331),new google.maps.LatLng(31.17585 ,73.86185),new google.maps.LatLng(31.91758 ,75.24278),new google.maps.LatLng(31.62650 ,74.90010),new google.maps.LatLng(31.08484 ,74.08910),new google.maps.LatLng(31.27342 ,74.71769),new google.maps.LatLng(31.29646 ,73.69779),new google.maps.LatLng(30.65187 ,73.76430),new google.maps.LatLng(32.22634 ,73.89547),new google.maps.LatLng(30.51958 ,75.17561),new google.maps.LatLng(30.90119 ,74.01695),new google.maps.LatLng(31.65375 ,74.61662),new google.maps.LatLng(31.86286 ,74.14301),new google.maps.LatLng(31.20229 ,73.99109),new google.maps.LatLng(30.69539 ,73.97508),new google.maps.LatLng(32.16807 ,74.35249),new google.maps.LatLng(30.28597 ,74.12067),new google.maps.LatLng(31.94207 ,75.45345),new google.maps.LatLng(32.05759 ,74.66065),new google.maps.LatLng(31.74605 ,74.12737),new google.maps.LatLng(31.02945 ,75.08620),new google.maps.LatLng(31.18811 ,73.19918),new google.maps.LatLng(32.13596 ,73.78361),new google.maps.LatLng(32.21325 ,74.81095),new google.maps.LatLng(31.23642 ,75.33747),new google.maps.LatLng(32.34037 ,74.54632),new google.maps.LatLng(31.96936 ,74.20915),new google.maps.LatLng(32.46719 ,74.14790),new google.maps.LatLng(30.48964 ,75.00014),new google.maps.LatLng(31.56179 ,74.20308),new google.maps.LatLng(31.94767 ,74.42977),new google.maps.LatLng(31.24325 ,74.09888),new google.maps.LatLng(31.24927 ,73.47362),new google.maps.LatLng(31.04132 ,74.68323),new google.maps.LatLng(32.62186 ,74.81778),new google.maps.LatLng(31.26660 ,73.82650),new google.maps.LatLng(31.77199 ,73.77923),new google.maps.LatLng(30.53927 ,73.68937),new google.maps.LatLng(31.50863 ,73.59564),new google.maps.LatLng(30.42076 ,74.92406),new google.maps.LatLng(31.29362 ,73.43150),new google.maps.LatLng(31.89640 ,75.18773),new google.maps.LatLng(31.86224 ,73.60449),new google.maps.LatLng(31.64092 ,73.93803),new google.maps.LatLng(30.83336 ,74.66810),new google.maps.LatLng(31.29273 ,73.75703),new google.maps.LatLng(31.11179 ,74.31054),new google.maps.LatLng(31.79167 ,75.54017),new google.maps.LatLng(32.43132 ,73.97266),new google.maps.LatLng(32.12520 ,73.45506),new google.maps.LatLng(32.12684 ,73.72255),new google.maps.LatLng(31.48827 ,73.17396),new google.maps.LatLng(32.40895 ,74.86945),new google.maps.LatLng(30.84798 ,73.80674),new google.maps.LatLng(32.22067 ,75.33118),new google.maps.LatLng(31.81309 ,74.24827),new google.maps.LatLng(30.94795 ,73.81790),new google.maps.LatLng(32.35350 ,73.63577),new google.maps.LatLng(31.08078 ,74.65039),new google.maps.LatLng(30.49619 ,75.02937),new google.maps.LatLng(30.30179 ,74.15087),new google.maps.LatLng(31.33952 ,73.76881),new google.maps.LatLng(30.55658 ,73.85448),new google.maps.LatLng(32.00374 ,73.67390),new google.maps.LatLng(30.38412 ,74.85666),new google.maps.LatLng(32.71888 ,74.38067),new google.maps.LatLng(30.53452 ,74.66727),new google.maps.LatLng(31.67530 ,73.44043),new google.maps.LatLng(31.41403 ,74.40441),new google.maps.LatLng(30.69164 ,75.20388),new google.maps.LatLng(30.98562 ,74.16603),new google.maps.LatLng(30.88725 ,73.58276),new google.maps.LatLng(32.26157 ,73.46707),new google.maps.LatLng(32.01681 ,74.02071),new google.maps.LatLng(31.97043 ,73.18104),new google.maps.LatLng(30.61204 ,75.15733),new google.maps.LatLng(31.95426 ,75.46475),new google.maps.LatLng(30.56140 ,74.55776),new google.maps.LatLng(30.82760 ,73.76439),new google.maps.LatLng(30.91436 ,74.73318),new google.maps.LatLng(31.28531 ,74.98433),new google.maps.LatLng(32.36417 ,74.25957),new google.maps.LatLng(31.06759 ,74.93292),new google.maps.LatLng(30.60197 ,74.21194),new google.maps.LatLng(30.45799 ,74.54179),new google.maps.LatLng(31.65962 ,74.45761),new google.maps.LatLng(30.35117 ,73.85491),new google.maps.LatLng(31.73736 ,75.61827),new google.maps.LatLng(32.28936 ,73.47520),new google.maps.LatLng(32.11681 ,73.98490),new google.maps.LatLng(30.99107 ,74.88878),new google.maps.LatLng(31.82936 ,75.11658),new google.maps.LatLng(32.27724 ,73.50462),new google.maps.LatLng(31.33219 ,74.92014),new google.maps.LatLng(32.19925 ,73.96440),new google.maps.LatLng(32.27010 ,75.00899),new google.maps.LatLng(31.13896 ,74.62688),new google.maps.LatLng(31.67010 ,75.51226),new google.maps.LatLng(30.31739 ,74.61386),new google.maps.LatLng(30.28665 ,74.22977),new google.maps.LatLng(31.27787 ,73.17730),new google.maps.LatLng(32.46736 ,73.86126),new google.maps.LatLng(32.07693 ,73.30306),new google.maps.LatLng(31.99213 ,73.69760),new google.maps.LatLng(30.86624 ,74.77781),new google.maps.LatLng(32.74736 ,74.50071),new google.maps.LatLng(32.68413 ,74.14495),new google.maps.LatLng(31.55670 ,74.41317),new google.maps.LatLng(31.52565 ,74.71471),new google.maps.LatLng(30.80946 ,73.99433),new google.maps.LatLng(31.42228 ,74.71174),new google.maps.LatLng(31.81186 ,73.22422),new google.maps.LatLng(32.60013 ,74.50153),new google.maps.LatLng(31.85481 ,73.17370),new google.maps.LatLng(30.38316 ,74.98895),new google.maps.LatLng(31.57864 ,74.78413),new google.maps.LatLng(30.74871 ,74.26069),new google.maps.LatLng(31.97135 ,73.35196),new google.maps.LatLng(31.62865 ,73.85680),new google.maps.LatLng(31.93138 ,74.95528),new google.maps.LatLng(31.08176 ,74.07615),new google.maps.LatLng(31.55330 ,74.38425),new google.maps.LatLng(31.41286 ,73.17110),new google.maps.LatLng(31.31009 ,75.41668),new google.maps.LatLng(32.56443 ,73.83198),new google.maps.LatLng(32.37590 ,75.30774),new google.maps.LatLng(31.80434 ,74.82940),new google.maps.LatLng(30.54657 ,73.52811),new google.maps.LatLng(32.50286 ,73.65684),new google.maps.LatLng(31.47509 ,73.83127),new google.maps.LatLng(32.30186 ,74.15184),new google.maps.LatLng(31.48426 ,74.20346),new google.maps.LatLng(30.81774 ,73.68667),new google.maps.LatLng(31.83655 ,74.55758),new google.maps.LatLng(32.16779 ,74.62770),new google.maps.LatLng(31.48581 ,74.32036),new google.maps.LatLng(31.95317 ,73.97809),new google.maps.LatLng(31.87873 ,75.44148),new google.maps.LatLng(30.93252 ,73.55413),new google.maps.LatLng(31.88287 ,75.37326),new google.maps.LatLng(31.07228 ,74.67108),new google.maps.LatLng(31.90189 ,74.40067),new google.maps.LatLng(30.94483 ,75.02277),new google.maps.LatLng(32.36662 ,74.82199),new google.maps.LatLng(31.29529 ,73.45542),new google.maps.LatLng(32.51333 ,74.89774),new google.maps.LatLng(31.74207 ,73.67564),new google.maps.LatLng(32.61467 ,73.92905),new google.maps.LatLng(32.40589 ,74.74997),new google.maps.LatLng(30.94333 ,73.75931),new google.maps.LatLng(32.14880 ,75.05832),new google.maps.LatLng(30.47382 ,74.92864),new google.maps.LatLng(31.46255 ,73.44447),new google.maps.LatLng(31.63667 ,74.45324),new google.maps.LatLng(31.66344 ,75.31183),new google.maps.LatLng(30.47443 ,73.63956),new google.maps.LatLng(31.46893 ,74.60707),new google.maps.LatLng(30.84424 ,74.51614),new google.maps.LatLng(31.61337 ,74.58428),new google.maps.LatLng(31.13346 ,73.85691),new google.maps.LatLng(31.10422 ,74.95197),new google.maps.LatLng(31.50393 ,74.34335),new google.maps.LatLng(32.30796 ,74.44463),new google.maps.LatLng(32.02843 ,74.57825),new google.maps.LatLng(30.86295 ,73.79679),new google.maps.LatLng(31.12521 ,73.78171),new google.maps.LatLng(31.95224 ,73.45155),new google.maps.LatLng(32.20239 ,75.28645),new google.maps.LatLng(31.61127 ,74.93420),new google.maps.LatLng(32.22756 ,74.61116),new google.maps.LatLng(32.01245 ,74.56137),new google.maps.LatLng(31.20795 ,74.23038),new google.maps.LatLng(32.24645 ,75.36301),new google.maps.LatLng(31.90102 ,73.43426),new google.maps.LatLng(32.15610 ,75.30440),new google.maps.LatLng(31.91028 ,73.28549),new google.maps.LatLng(32.67568 ,74.31823),new google.maps.LatLng(30.82323 ,73.42096),new google.maps.LatLng(31.36557 ,73.37395),new google.maps.LatLng(31.02413 ,75.42642),new google.maps.LatLng(32.60304 ,74.80736),new google.maps.LatLng(31.34404 ,74.35259),new google.maps.LatLng(32.10403 ,73.33529),new google.maps.LatLng(30.87995 ,74.54254),new google.maps.LatLng(32.67315 ,74.76103),new google.maps.LatLng(32.24376 ,74.07559),new google.maps.LatLng(32.11539 ,74.67124),new google.maps.LatLng(31.69608 ,75.01622),new google.maps.LatLng(31.54639 ,74.30584),new google.maps.LatLng(31.71871 ,74.58064),new google.maps.LatLng(32.08102 ,73.23112),new google.maps.LatLng(31.73221 ,73.14839),new google.maps.LatLng(31.16389 ,73.12095),new google.maps.LatLng(31.89535 ,75.26321),new google.maps.LatLng(32.40806 ,74.87797),new google.maps.LatLng(30.99018 ,73.62650),new google.maps.LatLng(31.18228 ,73.24291),new google.maps.LatLng(32.68797 ,74.50245),new google.maps.LatLng(32.12163 ,74.48569),new google.maps.LatLng(31.76201 ,75.11353),new google.maps.LatLng(31.97651 ,73.75125),new google.maps.LatLng(32.21142 ,73.69706),new google.maps.LatLng(31.50132 ,73.73384),new google.maps.LatLng(31.94691 ,75.13278),new google.maps.LatLng(31.80706 ,74.09654),new google.maps.LatLng(31.44945 ,74.07543),new google.maps.LatLng(30.76880 ,74.36081),new google.maps.LatLng(30.36117 ,74.02533),new google.maps.LatLng(30.39878 ,73.68346),new google.maps.LatLng(32.65867 ,74.70877),new google.maps.LatLng(30.50278 ,75.04638),new google.maps.LatLng(30.78559 ,75.04764),new google.maps.LatLng(32.04388 ,74.89707),new google.maps.LatLng(31.08248 ,75.18176),new google.maps.LatLng(32.12865 ,74.34192),new google.maps.LatLng(30.34637 ,74.12386),new google.maps.LatLng(30.56549 ,73.80814),new google.maps.LatLng(30.86850 ,75.37323),new google.maps.LatLng(31.37042 ,73.70246),new google.maps.LatLng(31.26425 ,74.09552),new google.maps.LatLng(31.19297 ,74.71800),new google.maps.LatLng(32.19951 ,74.34407),new google.maps.LatLng(30.79966 ,74.70285),new google.maps.LatLng(32.66010 ,74.81456),new google.maps.LatLng(31.89135 ,73.32393),new google.maps.LatLng(31.47739 ,73.27929),new google.maps.LatLng(30.75420 ,73.83035),new google.maps.LatLng(31.50999 ,73.72142),new google.maps.LatLng(30.76067 ,74.11841),new google.maps.LatLng(30.76666 ,74.65241),new google.maps.LatLng(30.68980 ,74.67964),new google.maps.LatLng(32.15061 ,74.80572),new google.maps.LatLng(31.75043 ,74.80711),new google.maps.LatLng(32.59829 ,73.71146),new google.maps.LatLng(31.75966 ,75.63567),new google.maps.LatLng(30.45653 ,74.95395),new google.maps.LatLng(32.29279 ,74.73563),new google.maps.LatLng(30.98152 ,74.13066),new google.maps.LatLng(30.91554 ,74.88301),new google.maps.LatLng(31.98090 ,75.05773),new google.maps.LatLng(32.63120 ,74.02106),new google.maps.LatLng(31.18538 ,74.88463),new google.maps.LatLng(31.64652 ,74.22356),new google.maps.LatLng(31.04704 ,73.64545),new google.maps.LatLng(30.52146 ,75.18980),new google.maps.LatLng(30.75833 ,74.76392),new google.maps.LatLng(31.47776 ,75.28748),new google.maps.LatLng(32.59655 ,74.09675),new google.maps.LatLng(31.05281 ,74.15947),new google.maps.LatLng(32.53454 ,73.97912),new google.maps.LatLng(32.63047 ,73.99485),new google.maps.LatLng(30.68707 ,74.74278),new google.maps.LatLng(30.80713 ,74.54160),new google.maps.LatLng(30.51633 ,74.78955),new google.maps.LatLng(32.45535 ,73.53455),new google.maps.LatLng(32.68683 ,74.29134),new google.maps.LatLng(32.55419 ,74.13695),new google.maps.LatLng(30.82551 ,74.23416),new google.maps.LatLng(31.26519 ,75.03773),new google.maps.LatLng(31.40648 ,74.74935),new google.maps.LatLng(31.46750 ,74.90176),new google.maps.LatLng(32.56702 ,74.52601),new google.maps.LatLng(32.28982 ,75.35838),new google.maps.LatLng(32.04917 ,73.76958),new google.maps.LatLng(31.74383 ,75.07282),new google.maps.LatLng(31.78629 ,74.53526),new google.maps.LatLng(32.69771 ,73.98716),new google.maps.LatLng(30.92396 ,73.68994),new google.maps.LatLng(30.97103 ,73.98302),new google.maps.LatLng(32.19837 ,75.28042),new google.maps.LatLng(32.16697 ,73.89688),new google.maps.LatLng(31.64112 ,73.99345),new google.maps.LatLng(30.75664 ,73.79178),new google.maps.LatLng(32.46447 ,74.25948),new google.maps.LatLng(31.54752 ,73.11770),new google.maps.LatLng(31.01087 ,73.33633),new google.maps.LatLng(31.19102 ,73.36683),new google.maps.LatLng(30.67742 ,73.64281),new google.maps.LatLng(31.24878 ,74.72852),new google.maps.LatLng(31.55479 ,74.55591),new google.maps.LatLng(30.50498 ,74.16816),new google.maps.LatLng(31.25394 ,75.54231),new google.maps.LatLng(31.62914 ,74.10755),new google.maps.LatLng(30.32606 ,74.36584),new google.maps.LatLng(31.35925 ,75.27555),new google.maps.LatLng(31.74067 ,75.47369),new google.maps.LatLng(31.86539 ,74.82966),new google.maps.LatLng(31.59550 ,73.34162),new google.maps.LatLng(31.74272 ,74.43148),new google.maps.LatLng(31.66912 ,75.32296),new google.maps.LatLng(31.48677 ,73.74272),new google.maps.LatLng(31.11828 ,75.27349),new google.maps.LatLng(32.29113 ,73.71252),new google.maps.LatLng(30.97161 ,74.23761),new google.maps.LatLng(31.93732 ,73.45741),new google.maps.LatLng(30.86838 ,74.05635),new google.maps.LatLng(30.67886 ,75.26757),new google.maps.LatLng(31.20787 ,74.88855),new google.maps.LatLng(31.54816 ,74.82154),new google.maps.LatLng(31.21781 ,75.14186),new google.maps.LatLng(31.07154 ,74.79781),new google.maps.LatLng(32.64026 ,74.03416),new google.maps.LatLng(32.10447 ,74.04780),new google.maps.LatLng(31.51329 ,74.85390),new google.maps.LatLng(31.98863 ,75.54326),new google.maps.LatLng(30.97153 ,73.48680),new google.maps.LatLng(30.68687 ,74.21658),new google.maps.LatLng(32.06240 ,73.30524),new google.maps.LatLng(31.92209 ,74.57053),new google.maps.LatLng(31.71017 ,74.19936),new google.maps.LatLng(30.80654 ,73.87046),new google.maps.LatLng(31.90265 ,75.59716),new google.maps.LatLng(32.30228 ,74.35095),new google.maps.LatLng(30.70276 ,74.20882),new google.maps.LatLng(31.99233 ,73.61761),new google.maps.LatLng(30.36985 ,74.68906),new google.maps.LatLng(32.22507 ,74.67142),new google.maps.LatLng(32.68640 ,74.43079),new google.maps.LatLng(31.70416 ,73.59461),new google.maps.LatLng(31.50513 ,74.67330),new google.maps.LatLng(31.68218 ,74.33107),new google.maps.LatLng(32.08427 ,75.07382),new google.maps.LatLng(32.64652 ,74.25549),new google.maps.LatLng(32.08395 ,74.26338),new google.maps.LatLng(31.92940 ,75.14895),new google.maps.LatLng(31.24993 ,73.25593),new google.maps.LatLng(31.40503 ,74.79803),new google.maps.LatLng(32.21430 ,73.27656),new google.maps.LatLng(31.82294 ,75.07090),new google.maps.LatLng(30.67091 ,74.51697),new google.maps.LatLng(32.41094 ,74.67472),new google.maps.LatLng(32.41300 ,73.93221),new google.maps.LatLng(31.54239 ,73.44511),new google.maps.LatLng(30.99467 ,75.15986),new google.maps.LatLng(32.19672 ,75.30571),new google.maps.LatLng(32.43095 ,74.78537),new google.maps.LatLng(30.23304 ,74.64241),new google.maps.LatLng(32.04722 ,73.26463),new google.maps.LatLng(31.26405 ,75.10852),new google.maps.LatLng(31.80599 ,74.69647),new google.maps.LatLng(32.23752 ,73.80348),new google.maps.LatLng(31.57645 ,73.29281),new google.maps.LatLng(30.40735 ,73.88131),new google.maps.LatLng(31.78632 ,75.13661),new google.maps.LatLng(31.10107 ,73.67370),new google.maps.LatLng(31.46945 ,75.00135),new google.maps.LatLng(31.01556 ,75.54929),new google.maps.LatLng(31.92574 ,74.15180),new google.maps.LatLng(32.26410 ,74.56301),new google.maps.LatLng(32.25096 ,74.09758),new google.maps.LatLng(30.59017 ,75.15302),new google.maps.LatLng(32.71069 ,74.72754),new google.maps.LatLng(32.01288 ,74.24576),new google.maps.LatLng(31.42270 ,74.70843),new google.maps.LatLng(31.83628 ,73.39233),new google.maps.LatLng(31.80340 ,73.53297),new google.maps.LatLng(30.76503 ,73.91497),new google.maps.LatLng(32.09566 ,73.89438),new google.maps.LatLng(32.75374 ,74.36320),new google.maps.LatLng(31.06112 ,75.52284),new google.maps.LatLng(32.27386 ,74.62688),new google.maps.LatLng(30.30523 ,74.26943),new google.maps.LatLng(32.44795 ,74.17349),new google.maps.LatLng(30.91395 ,74.22432),new google.maps.LatLng(31.62689 ,73.52901),new google.maps.LatLng(30.67393 ,74.60283),new google.maps.LatLng(30.57074 ,75.06120),new google.maps.LatLng(31.28657 ,74.31344),new google.maps.LatLng(31.48322 ,74.66473),new google.maps.LatLng(31.19311 ,74.04902),new google.maps.LatLng(31.30531 ,74.92625),new google.maps.LatLng(31.80427 ,73.52538),new google.maps.LatLng(30.25901 ,74.58168),new google.maps.LatLng(30.46644 ,74.77244),new google.maps.LatLng(32.21077 ,75.44138),new google.maps.LatLng(30.75890 ,74.63394),new google.maps.LatLng(32.70388 ,74.46893),new google.maps.LatLng(31.83971 ,74.49120),new google.maps.LatLng(31.37134 ,73.08393),new google.maps.LatLng(32.26464 ,73.56700),new google.maps.LatLng(30.66668 ,74.80029),new google.maps.LatLng(32.00528 ,74.50600),new google.maps.LatLng(30.80473 ,74.07834),new google.maps.LatLng(32.51397 ,74.80795),new google.maps.LatLng(31.84558 ,74.94428),new google.maps.LatLng(30.98258 ,75.23372),new google.maps.LatLng(31.88514 ,75.19020),new google.maps.LatLng(32.46225 ,74.13031),new google.maps.LatLng(31.90147 ,73.63227),new google.maps.LatLng(30.43945 ,74.12781),new google.maps.LatLng(32.59079 ,75.01149),new google.maps.LatLng(30.97040 ,73.66737),new google.maps.LatLng(32.27959 ,75.31802),new google.maps.LatLng(32.20442 ,73.81499),new google.maps.LatLng(32.44494 ,74.40842),new google.maps.LatLng(30.61707 ,73.89095),new google.maps.LatLng(31.92790 ,73.33049),new google.maps.LatLng(31.04916 ,74.44761),new google.maps.LatLng(31.97983 ,73.75451),new google.maps.LatLng(31.66265 ,73.59255),new google.maps.LatLng(30.63682 ,73.50086),new google.maps.LatLng(31.53345 ,74.58158),new google.maps.LatLng(31.44912 ,75.52832),new google.maps.LatLng(32.50160 ,73.87271),new google.maps.LatLng(30.31281 ,73.98137),new google.maps.LatLng(30.68767 ,73.91949),new google.maps.LatLng(30.68477 ,74.49034),new google.maps.LatLng(30.93203 ,74.96382),new google.maps.LatLng(31.06308 ,74.56534),new google.maps.LatLng(32.00782 ,75.56611),new google.maps.LatLng(32.00297 ,75.39207),new google.maps.LatLng(31.92992 ,75.20730),new google.maps.LatLng(31.44043 ,74.69378),new google.maps.LatLng(31.24145 ,73.50781),new google.maps.LatLng(31.50702 ,73.84517),new google.maps.LatLng(31.97038 ,73.33436),new google.maps.LatLng(30.56173 ,73.84920),new google.maps.LatLng(32.31941 ,73.69891),new google.maps.LatLng(31.39608 ,73.42295),new google.maps.LatLng(30.34397 ,73.86145),new google.maps.LatLng(31.41219 ,73.75272),new google.maps.LatLng(31.13160 ,74.75137),new google.maps.LatLng(30.91950 ,73.82138),new google.maps.LatLng(31.96837 ,73.23119),new google.maps.LatLng(31.64442 ,73.43917),new google.maps.LatLng(31.32825 ,73.35209),new google.maps.LatLng(31.56718 ,73.28441),new google.maps.LatLng(30.63515 ,74.86361),new google.maps.LatLng(32.59077 ,74.10103),new google.maps.LatLng(30.38859 ,73.93994),new google.maps.LatLng(31.75449 ,74.24066),new google.maps.LatLng(31.11822 ,74.12195),new google.maps.LatLng(31.65209 ,75.50708),new google.maps.LatLng(31.37505 ,73.11002),new google.maps.LatLng(30.44565 ,73.71877),new google.maps.LatLng(30.91110 ,74.95652),new google.maps.LatLng(30.54991 ,74.42094),new google.maps.LatLng(31.20434 ,74.93492),new google.maps.LatLng(30.77022 ,75.03785),new google.maps.LatLng(32.20635 ,74.99344),new google.maps.LatLng(31.71819 ,73.84401),new google.maps.LatLng(32.60310 ,74.81365),new google.maps.LatLng(30.38016 ,74.98101),new google.maps.LatLng(32.00103 ,73.41446),new google.maps.LatLng(30.72390 ,73.51017),new google.maps.LatLng(32.22165 ,74.04881),new google.maps.LatLng(31.63116 ,73.90779),new google.maps.LatLng(31.46268 ,75.43697),new google.maps.LatLng(30.67786 ,73.49174),new google.maps.LatLng(31.62877 ,74.48696),new google.maps.LatLng(31.08153 ,75.17435),new google.maps.LatLng(31.76574 ,75.45340),new google.maps.LatLng(31.37012 ,74.54943),new google.maps.LatLng(31.17045 ,74.54334),new google.maps.LatLng(31.81356 ,75.55470),new google.maps.LatLng(31.71021 ,73.15051),new google.maps.LatLng(32.02154 ,74.10035),new google.maps.LatLng(30.61544 ,74.75450),new google.maps.LatLng(31.79906 ,73.89792),new google.maps.LatLng(30.80387 ,73.32238),new google.maps.LatLng(31.18146 ,74.31902),new google.maps.LatLng(30.85544 ,75.42703),new google.maps.LatLng(31.53647 ,74.72457),new google.maps.LatLng(32.04788 ,73.79112),new google.maps.LatLng(30.98689 ,74.69586),new google.maps.LatLng(31.63164 ,73.16401),new google.maps.LatLng(31.29673 ,75.07003),new google.maps.LatLng(32.24935 ,74.99320),new google.maps.LatLng(31.13269 ,75.49521),new google.maps.LatLng(31.22482 ,73.50280),new google.maps.LatLng(30.75879 ,74.50060),new google.maps.LatLng(32.30001 ,75.03632),new google.maps.LatLng(31.94565 ,74.37224),new google.maps.LatLng(31.31373 ,75.35595),new google.maps.LatLng(31.80271 ,73.77791),new google.maps.LatLng(30.94464 ,73.20303),new google.maps.LatLng(30.49773 ,74.09680),new google.maps.LatLng(31.18595 ,75.14397),new google.maps.LatLng(31.96136 ,74.90372),new google.maps.LatLng(32.05296 ,74.35232),new google.maps.LatLng(30.93673 ,74.71246),new google.maps.LatLng(32.46505 ,74.10454),new google.maps.LatLng(31.21241 ,75.08116),new google.maps.LatLng(30.81752 ,73.35889),new google.maps.LatLng(31.82637 ,74.57398),new google.maps.LatLng(31.86643 ,74.00026),new google.maps.LatLng(31.39379 ,73.22462),new google.maps.LatLng(30.58191 ,74.62855),new google.maps.LatLng(30.67690 ,74.88240),new google.maps.LatLng(30.62650 ,74.03191),new google.maps.LatLng(31.38230 ,74.17328),new google.maps.LatLng(30.69118 ,73.87468),new google.maps.LatLng(31.49353 ,75.32494),new google.maps.LatLng(31.25994 ,74.42944),new google.maps.LatLng(30.65879 ,73.84142),new google.maps.LatLng(32.42259 ,75.01800),new google.maps.LatLng(32.26316 ,74.95083),new google.maps.LatLng(30.39389 ,74.36775),new google.maps.LatLng(31.93575 ,75.21405),new google.maps.LatLng(30.99038 ,74.77091),new google.maps.LatLng(32.42140 ,74.46923),new google.maps.LatLng(32.03663 ,74.36777),new google.maps.LatLng(31.13931 ,73.23189),new google.maps.LatLng(32.19955 ,74.72293),new google.maps.LatLng(32.46039 ,74.95832),new google.maps.LatLng(31.50396 ,74.80354),new google.maps.LatLng(31.22008 ,75.57660),new google.maps.LatLng(31.69689 ,75.47323),new google.maps.LatLng(32.66323 ,74.34822),new google.maps.LatLng(31.99701 ,73.64166),new google.maps.LatLng(30.52262 ,75.22006),new google.maps.LatLng(31.04675 ,75.06562),new google.maps.LatLng(31.71379 ,75.54711),new google.maps.LatLng(31.32253 ,74.44190),new google.maps.LatLng(32.32529 ,74.06905),new google.maps.LatLng(30.55019 ,74.80353),new google.maps.LatLng(31.64454 ,73.90171),new google.maps.LatLng(32.54243 ,73.81523),new google.maps.LatLng(32.50222 ,75.08127),new google.maps.LatLng(32.09597 ,73.27270),new google.maps.LatLng(30.30414 ,74.32063),new google.maps.LatLng(31.55778 ,75.35743),new google.maps.LatLng(31.70464 ,74.21769),new google.maps.LatLng(30.64234 ,75.01729),new google.maps.LatLng(31.32693 ,75.51089),new google.maps.LatLng(31.41851 ,73.32151),new google.maps.LatLng(30.28636 ,74.45844),new google.maps.LatLng(32.39788 ,73.85105),new google.maps.LatLng(30.39385 ,74.22084),new google.maps.LatLng(31.61026 ,73.40348),new google.maps.LatLng(31.32826 ,73.25388),new google.maps.LatLng(32.77163 ,74.60302),new google.maps.LatLng(31.35781 ,75.56928),new google.maps.LatLng(32.51648 ,74.95262),new google.maps.LatLng(31.01812 ,73.60619),new google.maps.LatLng(32.20887 ,73.37827),new google.maps.LatLng(32.09375 ,75.35794),new google.maps.LatLng(32.59538 ,74.95258),new google.maps.LatLng(31.90482 ,75.57806),new google.maps.LatLng(31.70872 ,74.22028),new google.maps.LatLng(31.76440 ,73.57621),new google.maps.LatLng(31.40220 ,75.54767),new google.maps.LatLng(30.89547 ,75.16857),new google.maps.LatLng(30.44343 ,74.45422),new google.maps.LatLng(31.22371 ,74.93393),new google.maps.LatLng(31.84145 ,75.05207),new google.maps.LatLng(30.89256 ,73.58610),new google.maps.LatLng(30.58461 ,75.00086),new google.maps.LatLng(32.72533 ,74.66922),new google.maps.LatLng(32.21492 ,74.04659),new google.maps.LatLng(31.17952 ,74.34527),new google.maps.LatLng(31.15597 ,75.18145),new google.maps.LatLng(32.15261 ,73.96363),new google.maps.LatLng(31.92318 ,74.95588),new google.maps.LatLng(31.49012 ,73.15153),new google.maps.LatLng(30.97442 ,75.01219),new google.maps.LatLng(31.35525 ,74.10943),new google.maps.LatLng(32.54038 ,74.53438),new google.maps.LatLng(32.33587 ,73.51804),new google.maps.LatLng(31.48658 ,74.05129),new google.maps.LatLng(32.33745 ,75.20875),new google.maps.LatLng(32.09482 ,73.36701),new google.maps.LatLng(32.32876 ,74.18631),new google.maps.LatLng(31.13836 ,74.07153),new google.maps.LatLng(32.49129 ,74.08182),new google.maps.LatLng(31.48922 ,73.12631),new google.maps.LatLng(31.94155 ,75.18167),new google.maps.LatLng(30.58510 ,73.48731),new google.maps.LatLng(30.64426 ,74.72203),new google.maps.LatLng(30.25053 ,74.29631),new google.maps.LatLng(32.14427 ,74.88987),new google.maps.LatLng(32.30469 ,74.32887),new google.maps.LatLng(31.71283 ,75.47824),new google.maps.LatLng(30.34484 ,74.47022),new google.maps.LatLng(32.25135 ,75.32311),new google.maps.LatLng(30.73076 ,74.99233),new google.maps.LatLng(32.64252 ,74.45686),new google.maps.LatLng(30.26832 ,74.04007),new google.maps.LatLng(31.14951 ,73.45054),new google.maps.LatLng(32.41598 ,73.67777),new google.maps.LatLng(32.40842 ,73.46188),new google.maps.LatLng(31.74475 ,75.36724),new google.maps.LatLng(31.90553 ,74.62126),new google.maps.LatLng(30.61502 ,75.11754),new google.maps.LatLng(31.18869 ,73.42761),new google.maps.LatLng(32.27734 ,74.61189),new google.maps.LatLng(31.28734 ,74.41131),new google.maps.LatLng(32.05027 ,73.77975),new google.maps.LatLng(31.97352 ,74.37739),new google.maps.LatLng(31.08740 ,75.55073),new google.maps.LatLng(31.23667 ,73.46993),new google.maps.LatLng(31.86187 ,75.12221),new google.maps.LatLng(32.16308 ,73.56852),new google.maps.LatLng(32.42264 ,73.63373),new google.maps.LatLng(30.79250 ,75.33949),new google.maps.LatLng(31.81941 ,75.50516),new google.maps.LatLng(32.10202 ,75.49762),new google.maps.LatLng(31.63799 ,74.52174),new google.maps.LatLng(30.69905 ,75.01823),new google.maps.LatLng(31.92449 ,75.33491),new google.maps.LatLng(32.00067 ,74.24139),new google.maps.LatLng(31.29491 ,75.45139),new google.maps.LatLng(31.64637 ,73.98412),new google.maps.LatLng(31.98751 ,73.17508),new google.maps.LatLng(30.70862 ,75.13935),new google.maps.LatLng(31.18339 ,75.24859),new google.maps.LatLng(31.90184 ,74.63874),new google.maps.LatLng(31.96951 ,75.22715),new google.maps.LatLng(31.20305 ,74.60656),new google.maps.LatLng(31.65112 ,73.79644),new google.maps.LatLng(32.40911 ,75.12369),new google.maps.LatLng(32.04325 ,75.54354),new google.maps.LatLng(31.09523 ,73.85984),new google.maps.LatLng(30.37704 ,74.16582),new google.maps.LatLng(31.40575 ,73.57328),new google.maps.LatLng(31.07651 ,73.59652),new google.maps.LatLng(31.13135 ,73.89216),new google.maps.LatLng(31.64776 ,74.79705),new google.maps.LatLng(31.35047 ,74.31171),new google.maps.LatLng(31.72450 ,73.25711),new google.maps.LatLng(31.85683 ,73.33872),new google.maps.LatLng(32.23794 ,73.75929),new google.maps.LatLng(31.63729 ,73.28527),new google.maps.LatLng(30.75144 ,73.56068),new google.maps.LatLng(32.48066 ,74.01028),new google.maps.LatLng(30.45341 ,74.07108),new google.maps.LatLng(31.39385 ,74.65757),new google.maps.LatLng(32.40501 ,75.16941),new google.maps.LatLng(32.67580 ,74.17289),new google.maps.LatLng(30.76768 ,74.97405),new google.maps.LatLng(31.55666 ,74.15987),new google.maps.LatLng(31.70156 ,73.47881),new google.maps.LatLng(31.64611 ,74.68384),new google.maps.LatLng(31.45722 ,73.29268),new google.maps.LatLng(31.31251 ,74.26210),new google.maps.LatLng(31.80877 ,75.61288),new google.maps.LatLng(30.56647 ,74.74262),new google.maps.LatLng(31.67503 ,74.98713),new google.maps.LatLng(32.06053 ,74.29484),new google.maps.LatLng(30.78460 ,74.28262),new google.maps.LatLng(30.52910 ,74.37344),new google.maps.LatLng(31.55437 ,73.34621),new google.maps.LatLng(32.72456 ,74.32352),new google.maps.LatLng(31.35054 ,75.63247),new google.maps.LatLng(31.02623 ,74.43444),new google.maps.LatLng(31.56162 ,73.09678),new google.maps.LatLng(30.81914 ,73.62268),new google.maps.LatLng(30.74838 ,73.40553),new google.maps.LatLng(30.76499 ,75.27729),new google.maps.LatLng(31.22237 ,73.78637),new google.maps.LatLng(30.67715 ,74.82311),new google.maps.LatLng(32.06822 ,73.87046),new google.maps.LatLng(30.73166 ,74.43426),new google.maps.LatLng(31.86708 ,74.43635),new google.maps.LatLng(30.71832 ,73.33220),new google.maps.LatLng(30.71251 ,73.57826),new google.maps.LatLng(31.34359 ,75.52483),new google.maps.LatLng(30.96520 ,74.69698),new google.maps.LatLng(32.01458 ,73.78077),new google.maps.LatLng(31.01542 ,74.45421),new google.maps.LatLng(31.00467 ,73.87337),new google.maps.LatLng(30.67629 ,74.92992),new google.maps.LatLng(30.97959 ,74.81996),new google.maps.LatLng(30.85264 ,73.43818),new google.maps.LatLng(31.85199 ,73.16537),new google.maps.LatLng(32.21601 ,75.18685),new google.maps.LatLng(31.68461 ,74.61462),new google.maps.LatLng(31.96395 ,75.49310),new google.maps.LatLng(30.61815 ,74.02396),new google.maps.LatLng(30.71608 ,74.88129),new google.maps.LatLng(31.06058 ,73.88656),new google.maps.LatLng(30.81166 ,74.22202),new google.maps.LatLng(30.60190 ,75.28389),new google.maps.LatLng(31.84496 ,73.88776),new google.maps.LatLng(31.73182 ,73.49884),new google.maps.LatLng(31.83614 ,73.71173),new google.maps.LatLng(30.61028 ,75.13402),new google.maps.LatLng(31.94565 ,74.75783),new google.maps.LatLng(32.47719 ,73.83537),new google.maps.LatLng(31.94466 ,74.45538),new google.maps.LatLng(31.83686 ,74.54306),new google.maps.LatLng(30.76513 ,73.63383),new google.maps.LatLng(31.86457 ,73.41228),new google.maps.LatLng(32.00490 ,74.78510),new google.maps.LatLng(30.90136 ,75.45577),new google.maps.LatLng(31.42910 ,74.67255),new google.maps.LatLng(30.32101 ,74.17730),new google.maps.LatLng(32.65299 ,74.22501),new google.maps.LatLng(30.96817 ,75.03766),new google.maps.LatLng(31.52326 ,73.45513),new google.maps.LatLng(30.79446 ,73.77107),new google.maps.LatLng(32.30634 ,75.23671),new google.maps.LatLng(32.04525 ,73.74243),new google.maps.LatLng(30.99212 ,75.46910),new google.maps.LatLng(32.13283 ,75.46980),new google.maps.LatLng(30.60536 ,74.82998),new google.maps.LatLng(30.79349 ,73.42897),new google.maps.LatLng(32.37393 ,74.62398),new google.maps.LatLng(30.83417 ,73.56878),new google.maps.LatLng(30.32812 ,74.13578),new google.maps.LatLng(32.18804 ,74.77368),new google.maps.LatLng(30.94880 ,73.92450),new google.maps.LatLng(30.71598 ,73.79512),new google.maps.LatLng(30.52913 ,74.37273),new google.maps.LatLng(31.12439 ,75.30577),new google.maps.LatLng(32.57437 ,74.64882),new google.maps.LatLng(30.87338 ,74.80767),new google.maps.LatLng(31.41962 ,74.49631),new google.maps.LatLng(32.48816 ,73.65354),new google.maps.LatLng(32.12171 ,73.48572),new google.maps.LatLng(32.25163 ,73.93226),new google.maps.LatLng(31.91227 ,73.55755),new google.maps.LatLng(30.99028 ,73.64803),new google.maps.LatLng(32.52089 ,73.74959),new google.maps.LatLng(31.22421 ,74.79433),new google.maps.LatLng(32.37151 ,75.09010),new google.maps.LatLng(31.70894 ,75.61836),new google.maps.LatLng(32.18630 ,75.39874),new google.maps.LatLng(32.25858 ,74.03680),new google.maps.LatLng(31.37359 ,73.17962),new google.maps.LatLng(31.78888 ,74.18940),new google.maps.LatLng(30.54766 ,74.81797),new google.maps.LatLng(30.39372 ,74.40832),new google.maps.LatLng(31.76296 ,74.33730),new google.maps.LatLng(31.99372 ,73.33657),new google.maps.LatLng(32.17693 ,74.16013),new google.maps.LatLng(32.51826 ,73.77135),new google.maps.LatLng(30.46083 ,74.63559),new google.maps.LatLng(31.68638 ,73.82328),new google.maps.LatLng(31.27186 ,74.42220),new google.maps.LatLng(31.41547 ,75.51863),new google.maps.LatLng(31.84480 ,74.77656),new google.maps.LatLng(31.50698 ,74.34396),new google.maps.LatLng(31.41077 ,73.47254),new google.maps.LatLng(31.31072 ,74.75628),new google.maps.LatLng(32.00956 ,74.34068),new google.maps.LatLng(31.38399 ,73.48602),new google.maps.LatLng(31.19418 ,73.35344),new google.maps.LatLng(31.99795 ,75.43654),new google.maps.LatLng(30.82472 ,74.22750),new google.maps.LatLng(31.49508 ,74.95738),new google.maps.LatLng(30.35440 ,73.92558),new google.maps.LatLng(30.75089 ,74.51771),new google.maps.LatLng(32.12670 ,74.24632),new google.maps.LatLng(31.84598 ,74.81881),new google.maps.LatLng(30.38865 ,73.75323),new google.maps.LatLng(32.35858 ,74.77982),new google.maps.LatLng(31.29407 ,74.68941),new google.maps.LatLng(31.46737 ,74.64801),new google.maps.LatLng(31.25583 ,74.74549),new google.maps.LatLng(31.27655 ,73.87293),new google.maps.LatLng(32.05146 ,73.52927),new google.maps.LatLng(32.58891 ,74.60063),new google.maps.LatLng(32.20267 ,73.67434),new google.maps.LatLng(31.75563 ,74.24276),new google.maps.LatLng(30.65109 ,74.60115),new google.maps.LatLng(31.30948 ,74.33290),new google.maps.LatLng(31.57479 ,73.20022),new google.maps.LatLng(32.69226 ,74.76814),new google.maps.LatLng(31.28496 ,74.40906),new google.maps.LatLng(31.70067 ,74.32140),new google.maps.LatLng(31.72892 ,74.75159),new google.maps.LatLng(30.96914 ,75.03490),new google.maps.LatLng(31.81604 ,73.30057),new google.maps.LatLng(31.81552 ,74.87324),new google.maps.LatLng(31.13021 ,73.51347),new google.maps.LatLng(32.01791 ,74.66069),new google.maps.LatLng(31.52101 ,75.33107),new google.maps.LatLng(30.77377 ,74.55946),new google.maps.LatLng(30.96289 ,74.23573),new google.maps.LatLng(32.30261 ,73.39839),new google.maps.LatLng(30.31499 ,73.96930),new google.maps.LatLng(30.77979 ,75.19882),new google.maps.LatLng(32.48089 ,74.29035),new google.maps.LatLng(32.34017 ,74.57440),new google.maps.LatLng(32.48413 ,74.69536),new google.maps.LatLng(32.50203 ,74.67735),new google.maps.LatLng(30.78295 ,73.56218),new google.maps.LatLng(30.98114 ,73.35796),new google.maps.LatLng(30.60533 ,75.21233),new google.maps.LatLng(30.94852 ,73.83730),new google.maps.LatLng(31.58071 ,74.22219),new google.maps.LatLng(32.24315 ,74.04726),new google.maps.LatLng(32.17627 ,74.64720),new google.maps.LatLng(30.49566 ,74.83435),new google.maps.LatLng(31.90361 ,73.34724),new google.maps.LatLng(31.09618 ,74.24665),new google.maps.LatLng(32.28853 ,75.17939),new google.maps.LatLng(30.86371 ,75.28570),new google.maps.LatLng(32.38594 ,74.17783),new google.maps.LatLng(31.69031 ,75.48331),new google.maps.LatLng(30.57687 ,73.61005),new google.maps.LatLng(32.51979 ,74.84848),new google.maps.LatLng(32.04695 ,73.40673),new google.maps.LatLng(32.28114 ,73.34283),new google.maps.LatLng(32.25722 ,75.07348),new google.maps.LatLng(32.01551 ,75.00840),new google.maps.LatLng(31.03420 ,74.79101),new google.maps.LatLng(30.91112 ,75.33661),new google.maps.LatLng(31.97107 ,73.81126),new google.maps.LatLng(30.83356 ,74.80094),new google.maps.LatLng(31.72912 ,73.27764),new google.maps.LatLng(31.57645 ,74.17882),new google.maps.LatLng(32.19720 ,74.42817),new google.maps.LatLng(32.05313 ,75.44836),new google.maps.LatLng(30.76616 ,75.42445),new google.maps.LatLng(32.33032 ,73.37069),new google.maps.LatLng(31.09052 ,74.26932),new google.maps.LatLng(31.18203 ,73.96297),new google.maps.LatLng(30.92918 ,74.47815),new google.maps.LatLng(31.69462 ,74.16586),new google.maps.LatLng(30.38477 ,73.97940),new google.maps.LatLng(31.28281 ,74.06252),new google.maps.LatLng(32.29160 ,74.53704),new google.maps.LatLng(31.03262 ,75.53931),new google.maps.LatLng(32.43849 ,74.37217),new google.maps.LatLng(32.69640 ,74.09246),new google.maps.LatLng(31.20565 ,74.18084),new google.maps.LatLng(30.80340 ,73.79522),new google.maps.LatLng(32.35934 ,75.28616),new google.maps.LatLng(30.93706 ,75.07096),new google.maps.LatLng(31.11895 ,74.72647),new google.maps.LatLng(32.36004 ,75.15668),new google.maps.LatLng(31.17314 ,74.30354),new google.maps.LatLng(32.57015 ,75.11231),new google.maps.LatLng(31.34998 ,73.12528),new google.maps.LatLng(31.26878 ,75.24942),new google.maps.LatLng(30.89272 ,73.21637),new google.maps.LatLng(31.40845 ,73.88436),new google.maps.LatLng(30.79520 ,75.08016),new google.maps.LatLng(31.38174 ,73.12183),new google.maps.LatLng(30.46039 ,74.83966),new google.maps.LatLng(30.73994 ,74.37478),new google.maps.LatLng(30.84431 ,74.43237),new google.maps.LatLng(32.37034 ,73.48843),new google.maps.LatLng(30.93519 ,73.27519),new google.maps.LatLng(30.88489 ,74.39814),new google.maps.LatLng(31.30550 ,74.06946),new google.maps.LatLng(31.00917 ,75.50718),new google.maps.LatLng(31.66192 ,74.50818),new google.maps.LatLng(32.07250 ,74.44414),new google.maps.LatLng(32.49414 ,75.09649),new google.maps.LatLng(31.45629 ,74.71025),new google.maps.LatLng(32.04397 ,73.39677),new google.maps.LatLng(32.56864 ,74.73308),new google.maps.LatLng(32.12946 ,74.52312),new google.maps.LatLng(30.47429 ,75.04299),new google.maps.LatLng(31.68812 ,75.43944),new google.maps.LatLng(30.94266 ,73.90260),new google.maps.LatLng(32.52781 ,73.64455),new google.maps.LatLng(30.76109 ,74.65521),new google.maps.LatLng(32.49595 ,74.90774),new google.maps.LatLng(32.55757 ,73.97696),new google.maps.LatLng(30.62318 ,74.03419),new google.maps.LatLng(32.20935 ,73.94599),new google.maps.LatLng(31.07068 ,75.32549),new google.maps.LatLng(30.75401 ,75.12089),new google.maps.LatLng(30.65306 ,73.67893),new google.maps.LatLng(32.24186 ,74.08589),new google.maps.LatLng(32.42103 ,74.91595),new google.maps.LatLng(31.69262 ,74.98358),new google.maps.LatLng(31.87558 ,74.42569),new google.maps.LatLng(32.00296 ,74.95098),new google.maps.LatLng(30.68449 ,74.41187),new google.maps.LatLng(31.57610 ,74.57810),new google.maps.LatLng(31.30534 ,73.99219),new google.maps.LatLng(31.49839 ,73.30028),new google.maps.LatLng(31.63993 ,73.13008),new google.maps.LatLng(32.53836 ,73.99263),new google.maps.LatLng(30.66036 ,74.31039),new google.maps.LatLng(32.02170 ,74.33239),new google.maps.LatLng(30.65900 ,74.91688),new google.maps.LatLng(31.52764 ,74.45039),new google.maps.LatLng(31.93096 ,75.51903),new google.maps.LatLng(31.37471 ,73.11836),new google.maps.LatLng(31.29052 ,73.87838),new google.maps.LatLng(30.97721 ,74.04674),new google.maps.LatLng(30.97608 ,75.53368),new google.maps.LatLng(31.05036 ,73.67683),new google.maps.LatLng(31.93581 ,74.96477),new google.maps.LatLng(32.14979 ,73.23817),new google.maps.LatLng(32.39888 ,73.83088),new google.maps.LatLng(32.68847 ,73.88777),new google.maps.LatLng(30.55517 ,74.52396),new google.maps.LatLng(31.94100 ,75.50500),new google.maps.LatLng(32.29356 ,73.68546),new google.maps.LatLng(32.73607 ,74.22911),new google.maps.LatLng(30.24206 ,74.34109),new google.maps.LatLng(30.55821 ,74.68285),new google.maps.LatLng(32.01371 ,75.26597),new google.maps.LatLng(31.61023 ,74.98318),new google.maps.LatLng(32.29946 ,75.38397),new google.maps.LatLng(30.43247 ,73.68333),new google.maps.LatLng(31.52029 ,74.47700),new google.maps.LatLng(31.51766 ,74.04214),new google.maps.LatLng(32.62327 ,74.43142),new google.maps.LatLng(31.99953 ,74.65721),new google.maps.LatLng(32.29729 ,74.86703),new google.maps.LatLng(30.50409 ,75.08977),new google.maps.LatLng(31.29750 ,74.27801),new google.maps.LatLng(32.01195 ,74.53544),new google.maps.LatLng(31.98773 ,74.60215),new google.maps.LatLng(32.36400 ,73.99392),new google.maps.LatLng(31.97365 ,74.28695),new google.maps.LatLng(31.80754 ,73.48794),new google.maps.LatLng(30.70978 ,74.22965),new google.maps.LatLng(30.67670 ,73.70673),new google.maps.LatLng(31.02895 ,73.17565),new google.maps.LatLng(31.55468 ,74.74225),new google.maps.LatLng(32.19163 ,74.70095),new google.maps.LatLng(32.41122 ,74.41530),new google.maps.LatLng(31.12551 ,74.78442),new google.maps.LatLng(32.45564 ,75.09164),new google.maps.LatLng(30.54209 ,74.89341),new google.maps.LatLng(31.20560 ,73.80685),new google.maps.LatLng(30.46145 ,74.64987),new google.maps.LatLng(31.21926 ,74.09260),new google.maps.LatLng(31.94967 ,74.09915),new google.maps.LatLng(31.55663 ,73.62593),new google.maps.LatLng(30.59948 ,74.46966),new google.maps.LatLng(32.46780 ,74.65049),new google.maps.LatLng(31.83190 ,73.27366),new google.maps.LatLng(31.35895 ,74.12498),new google.maps.LatLng(31.32022 ,74.40569),new google.maps.LatLng(31.72641 ,73.52683),new google.maps.LatLng(30.76602 ,74.34808),new google.maps.LatLng(32.10636 ,75.35191),new google.maps.LatLng(30.77724 ,74.07848),new google.maps.LatLng(32.34810 ,73.76474),new google.maps.LatLng(30.96101 ,73.49296),new google.maps.LatLng(31.75618 ,73.46329),new google.maps.LatLng(31.21343 ,74.47183),new google.maps.LatLng(30.92361 ,73.47907),new google.maps.LatLng(30.74804 ,74.56305),new google.maps.LatLng(31.22167 ,73.88618),new google.maps.LatLng(31.10938 ,73.60860),new google.maps.LatLng(31.64041 ,74.28221),new google.maps.LatLng(32.58758 ,74.05656),new google.maps.LatLng(30.81420 ,74.97689),new google.maps.LatLng(31.43264 ,73.77886),new google.maps.LatLng(30.94648 ,75.10827),new google.maps.LatLng(32.36231 ,73.70408),new google.maps.LatLng(31.04227 ,74.42234),new google.maps.LatLng(31.82692 ,73.38222),new google.maps.LatLng(30.60112 ,74.36913),new google.maps.LatLng(31.61494 ,73.44888),new google.maps.LatLng(32.76295 ,74.58851),new google.maps.LatLng(30.69576 ,75.17959),new google.maps.LatLng(31.73907 ,75.43799),new google.maps.LatLng(31.40516 ,73.37328),new google.maps.LatLng(31.03925 ,74.44782),new google.maps.LatLng(32.11168 ,73.90076),new google.maps.LatLng(30.38736 ,73.90303),new google.maps.LatLng(32.01047 ,73.47194),new google.maps.LatLng(31.48756 ,73.55313),new google.maps.LatLng(31.40612 ,74.71068),new google.maps.LatLng(30.98258 ,73.95735),new google.maps.LatLng(31.01785 ,73.63507),new google.maps.LatLng(30.99338 ,75.37446),new google.maps.LatLng(32.23049 ,73.88283),new google.maps.LatLng(31.40180 ,73.28481),new google.maps.LatLng(31.11886 ,75.01343),new google.maps.LatLng(30.89502 ,74.28026),new google.maps.LatLng(32.19188 ,74.66798),new google.maps.LatLng(30.58955 ,73.55591),new google.maps.LatLng(31.26566 ,75.40712),new google.maps.LatLng(30.79593 ,74.84066),new google.maps.LatLng(30.86994 ,73.69950),new google.maps.LatLng(30.78241 ,74.46961),new google.maps.LatLng(31.55616 ,74.07219),new google.maps.LatLng(31.25790 ,73.97333),new google.maps.LatLng(31.84632 ,73.53254),new google.maps.LatLng(30.49248 ,74.62138),new google.maps.LatLng(32.00861 ,74.01989),new google.maps.LatLng(31.92593 ,74.15483),new google.maps.LatLng(32.51649 ,74.16998),new google.maps.LatLng(32.07165 ,73.55131),new google.maps.LatLng(31.40074 ,75.20435),new google.maps.LatLng(31.35076 ,75.48026),new google.maps.LatLng(31.96762 ,73.64902),new google.maps.LatLng(32.56399 ,74.73031),new google.maps.LatLng(31.44973 ,73.22051),new google.maps.LatLng(31.46220 ,73.98438),new google.maps.LatLng(30.60898 ,75.05732),new google.maps.LatLng(32.49567 ,73.56887),new google.maps.LatLng(32.61532 ,74.45554),new google.maps.LatLng(32.01613 ,74.80591),new google.maps.LatLng(31.35738 ,75.54043),new google.maps.LatLng(31.85761 ,73.14990),new google.maps.LatLng(30.52783 ,73.92204),new google.maps.LatLng(31.16740 ,75.40733),new google.maps.LatLng(30.53177 ,74.47113),new google.maps.LatLng(30.76982 ,74.36247),new google.maps.LatLng(31.95191 ,73.65083),new google.maps.LatLng(30.47653 ,74.98517),new google.maps.LatLng(32.53176 ,74.68820),new google.maps.LatLng(31.47703 ,73.73132),new google.maps.LatLng(31.07230 ,74.46438),new google.maps.LatLng(32.45797 ,74.87786),new google.maps.LatLng(31.46740 ,74.34709),new google.maps.LatLng(32.37731 ,74.49425),new google.maps.LatLng(30.57773 ,75.14433),new google.maps.LatLng(32.24209 ,74.87469),new google.maps.LatLng(32.15739 ,73.88599),new google.maps.LatLng(30.86951 ,73.55532),new google.maps.LatLng(30.35809 ,74.18454),new google.maps.LatLng(31.02047 ,73.65300),new google.maps.LatLng(30.65109 ,74.48374),new google.maps.LatLng(32.12470 ,75.39670),new google.maps.LatLng(30.39253 ,73.77531),new google.maps.LatLng(32.18955 ,74.99520),new google.maps.LatLng(31.88898 ,73.16878),new google.maps.LatLng(32.09452 ,74.57381),new google.maps.LatLng(31.20011 ,74.41438),new google.maps.LatLng(31.59273 ,74.90177),new google.maps.LatLng(30.62995 ,73.63240),new google.maps.LatLng(31.12907 ,73.77954),new google.maps.LatLng(31.08467 ,74.70079),new google.maps.LatLng(32.47640 ,74.40298),new google.maps.LatLng(30.50886 ,74.12012),new google.maps.LatLng(30.41097 ,73.75464),new google.maps.LatLng(30.72992 ,74.60671),new google.maps.LatLng(31.96470 ,74.66148),new google.maps.LatLng(32.25935 ,74.58539),new google.maps.LatLng(30.99146 ,75.55117),new google.maps.LatLng(31.08218 ,75.19901),new google.maps.LatLng(30.70203 ,73.54331),new google.maps.LatLng(31.52094 ,73.65398),new google.maps.LatLng(30.61090 ,75.01019),new google.maps.LatLng(32.26805 ,74.32003),new google.maps.LatLng(31.80789 ,74.86405),new google.maps.LatLng(31.96209 ,75.24089),new google.maps.LatLng(31.67037 ,74.35099),new google.maps.LatLng(32.12718 ,73.58122),new google.maps.LatLng(32.40877 ,75.16186),new google.maps.LatLng(31.96832 ,75.27434),new google.maps.LatLng(31.28173 ,74.73826),new google.maps.LatLng(31.17277 ,73.31150),new google.maps.LatLng(32.78332 ,74.60457),new google.maps.LatLng(30.88525 ,74.99767),new google.maps.LatLng(31.80237 ,74.17890),new google.maps.LatLng(30.86789 ,75.12634),new google.maps.LatLng(31.26987 ,75.44577),new google.maps.LatLng(30.58163 ,74.91763),new google.maps.LatLng(31.20557 ,73.63739),new google.maps.LatLng(31.41109 ,73.46983),new google.maps.LatLng(32.32968 ,73.38359),new google.maps.LatLng(32.40693 ,73.95327),new google.maps.LatLng(31.09152 ,73.80234),new google.maps.LatLng(31.96779 ,75.04548),new google.maps.LatLng(30.97247 ,74.07778),new google.maps.LatLng(30.53255 ,74.11485),new google.maps.LatLng(32.03695 ,74.59969),new google.maps.LatLng(30.90216 ,73.70758),new google.maps.LatLng(32.44042 ,75.09964),new google.maps.LatLng(31.50704 ,75.40036),new google.maps.LatLng(31.70388 ,73.71039),new google.maps.LatLng(32.23362 ,74.84904),new google.maps.LatLng(30.95078 ,74.28387),new google.maps.LatLng(30.65346 ,74.66120),new google.maps.LatLng(30.83150 ,74.95854),new google.maps.LatLng(32.46461 ,73.55820),new google.maps.LatLng(31.05985 ,74.62474),new google.maps.LatLng(30.84978 ,74.98677),new google.maps.LatLng(31.22349 ,74.12603),new google.maps.LatLng(30.86067 ,74.58296),new google.maps.LatLng(31.76017 ,73.44095),new google.maps.LatLng(32.55817 ,73.86830),new google.maps.LatLng(30.79453 ,74.11197),new google.maps.LatLng(31.39334 ,74.00785),new google.maps.LatLng(31.62842 ,74.06520),new google.maps.LatLng(30.90052 ,74.07019),new google.maps.LatLng(31.16586 ,74.64971),new google.maps.LatLng(31.06770 ,74.07851),new google.maps.LatLng(31.75270 ,73.19141),new google.maps.LatLng(32.71870 ,74.28774),new google.maps.LatLng(31.77418 ,73.10073),new google.maps.LatLng(30.68934 ,75.36797),new google.maps.LatLng(30.47316 ,73.66386),new google.maps.LatLng(32.38142 ,74.40243),new google.maps.LatLng(31.25262 ,74.03504),new google.maps.LatLng(31.32445 ,74.05829),new google.maps.LatLng(32.77072 ,74.19793),new google.maps.LatLng(30.34729 ,74.34078),new google.maps.LatLng(32.04827 ,75.14088),new google.maps.LatLng(31.60232 ,73.23819),new google.maps.LatLng(31.67782 ,73.28131),new google.maps.LatLng(30.40301 ,74.63777),new google.maps.LatLng(31.20828 ,75.61263),new google.maps.LatLng(32.59307 ,74.40900),new google.maps.LatLng(32.46558 ,73.57099),new google.maps.LatLng(32.53378 ,74.12243),new google.maps.LatLng(31.51726 ,74.08974),new google.maps.LatLng(30.78720 ,75.10348),new google.maps.LatLng(32.37627 ,74.03462),new google.maps.LatLng(30.86347 ,74.93688),new google.maps.LatLng(32.32028 ,74.83556),new google.maps.LatLng(31.83450 ,73.41236),new google.maps.LatLng(31.98871 ,74.72355),new google.maps.LatLng(31.50792 ,73.57179),new google.maps.LatLng(30.45174 ,75.04638),new google.maps.LatLng(32.13214 ,73.85141),new google.maps.LatLng(30.31756 ,74.69409),new google.maps.LatLng(31.56799 ,75.35814),new google.maps.LatLng(30.56250 ,74.53063),new google.maps.LatLng(31.65884 ,75.57402),new google.maps.LatLng(31.51454 ,74.33056),new google.maps.LatLng(31.45633 ,73.25893),new google.maps.LatLng(30.50368 ,74.89534),new google.maps.LatLng(30.61974 ,73.59302),new google.maps.LatLng(30.86296 ,74.43661),new google.maps.LatLng(31.60349 ,73.98351),new google.maps.LatLng(31.36595 ,75.09432),new google.maps.LatLng(31.52945 ,74.70102),new google.maps.LatLng(30.97000 ,73.48502),new google.maps.LatLng(32.23211 ,75.34454),new google.maps.LatLng(32.04766 ,73.31061),new google.maps.LatLng(30.72205 ,75.32716),new google.maps.LatLng(31.25034 ,73.29400),new google.maps.LatLng(31.76158 ,73.44623),new google.maps.LatLng(31.48998 ,73.44650),new google.maps.LatLng(32.38958 ,74.77893),new google.maps.LatLng(31.68615 ,74.46460),new google.maps.LatLng(32.68561 ,74.88906),new google.maps.LatLng(31.11738 ,74.29092),new google.maps.LatLng(31.26254 ,74.78550),new google.maps.LatLng(31.25962 ,74.89457),new google.maps.LatLng(31.92628 ,75.54581),new google.maps.LatLng(30.85168 ,75.33580),new google.maps.LatLng(31.14214 ,73.86993),new google.maps.LatLng(31.30003 ,73.70319),new google.maps.LatLng(32.05125 ,75.17953),new google.maps.LatLng(31.67058 ,73.86115),new google.maps.LatLng(31.94987 ,74.39737),new google.maps.LatLng(31.03478 ,74.81600),new google.maps.LatLng(32.11282 ,75.03115),new google.maps.LatLng(31.73514 ,74.88693),new google.maps.LatLng(30.24549 ,74.05739),new google.maps.LatLng(30.85617 ,73.63937),new google.maps.LatLng(31.15808 ,75.12645),new google.maps.LatLng(31.27027 ,75.51179),new google.maps.LatLng(31.17279 ,74.36119),new google.maps.LatLng(31.64033 ,75.55341),new google.maps.LatLng(30.53194 ,74.65640),new google.maps.LatLng(31.29227 ,75.43661),new google.maps.LatLng(31.83648 ,74.07640),new google.maps.LatLng(31.26754 ,75.26911),new google.maps.LatLng(31.72399 ,74.27988),new google.maps.LatLng(31.99272 ,73.27006),new google.maps.LatLng(32.59453 ,74.61360),new google.maps.LatLng(30.40461 ,74.65585),new google.maps.LatLng(31.09651 ,74.39956),new google.maps.LatLng(31.54726 ,75.14188),new google.maps.LatLng(31.47530 ,73.87987),new google.maps.LatLng(30.52085 ,73.75948),new google.maps.LatLng(31.66045 ,74.49621),new google.maps.LatLng(32.19873 ,73.57375),new google.maps.LatLng(32.36526 ,74.75945),new google.maps.LatLng(32.02271 ,74.18465),new google.maps.LatLng(31.20147 ,75.42090),new google.maps.LatLng(32.01993 ,75.07144),new google.maps.LatLng(30.82788 ,74.95488),new google.maps.LatLng(30.90357 ,74.06202),new google.maps.LatLng(32.16261 ,75.00036),new google.maps.LatLng(32.44856 ,73.94413),new google.maps.LatLng(31.48773 ,75.21814),new google.maps.LatLng(31.89610 ,74.69197),new google.maps.LatLng(31.19591 ,73.72860),new google.maps.LatLng(31.91303 ,73.52282),new google.maps.LatLng(31.23826 ,73.36771),new google.maps.LatLng(30.93414 ,74.10205),new google.maps.LatLng(30.81469 ,73.30122),new google.maps.LatLng(31.71982 ,74.29197),new google.maps.LatLng(30.72551 ,75.38161),new google.maps.LatLng(30.30613 ,74.25223),new google.maps.LatLng(31.85165 ,74.49832),new google.maps.LatLng(31.83929 ,73.66259),new google.maps.LatLng(30.60924 ,74.10295),new google.maps.LatLng(30.97272 ,74.78500),new google.maps.LatLng(32.12749 ,74.74341),new google.maps.LatLng(32.08294 ,73.50889),new google.maps.LatLng(30.75692 ,74.73117),new google.maps.LatLng(31.31533 ,73.41762),new google.maps.LatLng(32.76919 ,74.59020),new google.maps.LatLng(31.99999 ,74.48711),new google.maps.LatLng(32.10545 ,74.26999),new google.maps.LatLng(31.85014 ,75.50929),new google.maps.LatLng(31.45303 ,75.43726),new google.maps.LatLng(31.89450 ,73.35380),new google.maps.LatLng(32.53167 ,74.32161),new google.maps.LatLng(31.95578 ,74.59146),new google.maps.LatLng(31.08971 ,73.60040),new google.maps.LatLng(32.18677 ,75.16453),new google.maps.LatLng(32.07831 ,73.23142),new google.maps.LatLng(31.34309 ,73.25746),new google.maps.LatLng(31.72631 ,75.52929),new google.maps.LatLng(31.84009 ,74.93843),new google.maps.LatLng(31.06936 ,73.52795),new google.maps.LatLng(30.57507 ,73.47754),new google.maps.LatLng(31.55488 ,74.30105),new google.maps.LatLng(32.25817 ,74.43186),new google.maps.LatLng(30.33709 ,74.71146),new google.maps.LatLng(30.81013 ,75.25943),new google.maps.LatLng(31.91417 ,73.54436),new google.maps.LatLng(32.15362 ,74.40831),new google.maps.LatLng(31.24858 ,74.01971),new google.maps.LatLng(32.73926 ,74.33455),new google.maps.LatLng(30.62168 ,74.27537),new google.maps.LatLng(31.60196 ,73.87703),new google.maps.LatLng(31.83704 ,74.38975),new google.maps.LatLng(31.77344 ,74.60101),new google.maps.LatLng(30.72679 ,73.43106),new google.maps.LatLng(31.36363 ,74.17669),new google.maps.LatLng(32.12508 ,74.89160),new google.maps.LatLng(32.67562 ,74.30748),new google.maps.LatLng(31.98576 ,73.43570),new google.maps.LatLng(31.53051 ,74.30573),new google.maps.LatLng(32.15832 ,75.22420),new google.maps.LatLng(32.47645 ,73.55016),new google.maps.LatLng(30.70946 ,74.29709),new google.maps.LatLng(32.02133 ,73.17691),new google.maps.LatLng(32.28804 ,73.97958),new google.maps.LatLng(31.32281 ,74.71367),new google.maps.LatLng(31.63708 ,75.46444),new google.maps.LatLng(30.50694 ,73.78220),new google.maps.LatLng(31.78714 ,74.09332),new google.maps.LatLng(31.89935 ,75.51689),new google.maps.LatLng(32.21346 ,74.83647),new google.maps.LatLng(30.77003 ,73.34645),new google.maps.LatLng(31.47582 ,75.65904),new google.maps.LatLng(32.40142 ,73.77556),new google.maps.LatLng(31.22911 ,75.08017),new google.maps.LatLng(30.83671 ,74.87353),new google.maps.LatLng(31.84918 ,74.38627),new google.maps.LatLng(31.17183 ,75.39023),new google.maps.LatLng(32.15807 ,75.49153),new google.maps.LatLng(31.00932 ,74.06680),new google.maps.LatLng(31.99002 ,74.72291),new google.maps.LatLng(30.79570 ,73.67454),new google.maps.LatLng(30.54298 ,74.54523),new google.maps.LatLng(31.05915 ,74.41065),new google.maps.LatLng(30.92122 ,73.31285),new google.maps.LatLng(30.64748 ,74.71329),new google.maps.LatLng(30.84911 ,74.71733),new google.maps.LatLng(31.29777 ,75.53751),new google.maps.LatLng(32.25383 ,74.06984),new google.maps.LatLng(30.54439 ,73.85753),new google.maps.LatLng(31.54906 ,73.60924),new google.maps.LatLng(31.64821 ,73.37396),new google.maps.LatLng(30.59442 ,74.89442),new google.maps.LatLng(31.44825 ,75.66519),new google.maps.LatLng(31.63180 ,73.56246),new google.maps.LatLng(31.34455 ,74.69185),new google.maps.LatLng(32.38731 ,74.91522),new google.maps.LatLng(32.71807 ,74.04216),new google.maps.LatLng(32.43370 ,74.41151),new google.maps.LatLng(31.64037 ,74.98907),new google.maps.LatLng(32.69766 ,74.76748),new google.maps.LatLng(31.57122 ,75.35953),new google.maps.LatLng(31.16852 ,74.26144),new google.maps.LatLng(31.39204 ,74.28321),new google.maps.LatLng(31.51182 ,75.18906),new google.maps.LatLng(32.07969 ,73.78283),new google.maps.LatLng(30.87519 ,75.08975),new google.maps.LatLng(32.38047 ,74.90677),new google.maps.LatLng(32.31035 ,73.77079),new google.maps.LatLng(30.67806 ,73.88270),new google.maps.LatLng(31.78349 ,73.68940),new google.maps.LatLng(30.71217 ,73.82498),new google.maps.LatLng(30.97517 ,73.17740),new google.maps.LatLng(31.84420 ,75.34326),new google.maps.LatLng(31.25993 ,75.19849),new google.maps.LatLng(31.59110 ,73.91485),new google.maps.LatLng(32.25173 ,74.47950),new google.maps.LatLng(32.49407 ,74.54302),new google.maps.LatLng(30.26343 ,74.30198),new google.maps.LatLng(31.89714 ,74.81886),new google.maps.LatLng(32.01462 ,73.56736),new google.maps.LatLng(31.76935 ,73.64776),new google.maps.LatLng(30.97577 ,75.14127),new google.maps.LatLng(32.44285 ,73.67015),new google.maps.LatLng(31.09931 ,74.95183),new google.maps.LatLng(30.57002 ,73.89729),new google.maps.LatLng(31.33015 ,73.45662),new google.maps.LatLng(31.29656 ,74.94370),new google.maps.LatLng(32.06717 ,74.83337),new google.maps.LatLng(32.20328 ,74.30923),new google.maps.LatLng(31.18491 ,74.94102),new google.maps.LatLng(30.95398 ,75.13714),new google.maps.LatLng(31.57567 ,73.17841),new google.maps.LatLng(32.20905 ,75.23034),new google.maps.LatLng(30.80387 ,75.22503),new google.maps.LatLng(31.85076 ,75.61289),new google.maps.LatLng(32.72914 ,74.40943),new google.maps.LatLng(30.62637 ,74.83602),new google.maps.LatLng(30.73525 ,75.03106),new google.maps.LatLng(31.37629 ,74.08507),new google.maps.LatLng(32.32064 ,74.61374),new google.maps.LatLng(32.58646 ,74.57071),new google.maps.LatLng(31.62646 ,74.86894),new google.maps.LatLng(32.39984 ,75.26888),new google.maps.LatLng(31.97995 ,75.37524),new google.maps.LatLng(30.61237 ,73.45694),new google.maps.LatLng(31.78962 ,73.27146),new google.maps.LatLng(32.23536 ,74.26454),new google.maps.LatLng(31.28914 ,75.13783),new google.maps.LatLng(31.78995 ,75.20477),new google.maps.LatLng(31.54895 ,74.88842),new google.maps.LatLng(31.97664 ,75.39411),new google.maps.LatLng(32.60077 ,73.87963),new google.maps.LatLng(31.33007 ,74.64789),new google.maps.LatLng(30.70175 ,73.81007),new google.maps.LatLng(30.52575 ,74.95063),new google.maps.LatLng(32.28175 ,74.92369),new google.maps.LatLng(30.47097 ,74.92352),new google.maps.LatLng(31.03850 ,75.53310),new google.maps.LatLng(30.42124 ,74.46100),new google.maps.LatLng(31.12768 ,74.81205),new google.maps.LatLng(31.32048 ,73.43162),new google.maps.LatLng(31.09234 ,74.83520),new google.maps.LatLng(30.80371 ,75.31177),new google.maps.LatLng(32.77204 ,74.23656),new google.maps.LatLng(30.55716 ,74.49366),new google.maps.LatLng(30.65749 ,73.44224),new google.maps.LatLng(30.40091 ,74.57931),new google.maps.LatLng(32.51373 ,74.35417),new google.maps.LatLng(31.28703 ,75.32946),new google.maps.LatLng(30.66421 ,73.79973),new google.maps.LatLng(31.33378 ,74.90591),new google.maps.LatLng(30.41105 ,74.08504),new google.maps.LatLng(31.32473 ,75.56263),new google.maps.LatLng(31.60650 ,73.65222),new google.maps.LatLng(32.45287 ,75.06689),new google.maps.LatLng(30.77608 ,73.82885),new google.maps.LatLng(32.06799 ,73.32821),new google.maps.LatLng(31.03429 ,74.47870),new google.maps.LatLng(31.53643 ,74.04364),new google.maps.LatLng(32.03821 ,75.54534),new google.maps.LatLng(31.10810 ,75.13432),new google.maps.LatLng(32.43158 ,74.71800),new google.maps.LatLng(30.39228 ,74.41816),new google.maps.LatLng(31.67120 ,73.47566),new google.maps.LatLng(30.55713 ,74.65455),new google.maps.LatLng(32.00036 ,75.16641),new google.maps.LatLng(31.59705 ,73.49354),new google.maps.LatLng(30.72914 ,75.14981),new google.maps.LatLng(32.53281 ,74.06825),new google.maps.LatLng(32.23241 ,74.17582),new google.maps.LatLng(31.88555 ,74.84356),new google.maps.LatLng(32.65437 ,73.89012),new google.maps.LatLng(31.44296 ,73.45422),new google.maps.LatLng(31.91272 ,73.92102),new google.maps.LatLng(31.11647 ,74.24514),new google.maps.LatLng(32.53662 ,74.88663),new google.maps.LatLng(31.26552 ,73.71646),new google.maps.LatLng(31.16460 ,73.88456),new google.maps.LatLng(31.03361 ,73.69335),new google.maps.LatLng(30.54605 ,74.97176),new google.maps.LatLng(31.22312 ,74.10100),new google.maps.LatLng(31.76485 ,74.50925),new google.maps.LatLng(32.15171 ,75.05144),new google.maps.LatLng(30.43896 ,74.35642),new google.maps.LatLng(31.64023 ,75.48343),new google.maps.LatLng(32.48861 ,73.88379),new google.maps.LatLng(30.24459 ,74.35513),new google.maps.LatLng(31.52559 ,74.31505),new google.maps.LatLng(31.62786 ,73.25490),new google.maps.LatLng(31.07966 ,74.72986),new google.maps.LatLng(31.35934 ,74.65558),new google.maps.LatLng(32.26319 ,74.24150),new google.maps.LatLng(32.53840 ,74.50107),new google.maps.LatLng(30.75976 ,75.30217),new google.maps.LatLng(30.96787 ,74.00737),new google.maps.LatLng(32.29154 ,74.65397),new google.maps.LatLng(30.46993 ,74.47643),new google.maps.LatLng(32.47391 ,75.23567),new google.maps.LatLng(32.47995 ,74.58695),new google.maps.LatLng(31.66758 ,74.85449),new google.maps.LatLng(32.37079 ,75.33162),new google.maps.LatLng(31.15630 ,74.93006),new google.maps.LatLng(32.04045 ,75.36734),new google.maps.LatLng(32.67179 ,74.04485),new google.maps.LatLng(31.12484 ,74.21707),new google.maps.LatLng(31.59821 ,73.75655),new google.maps.LatLng(32.62785 ,73.83510),new google.maps.LatLng(32.05533 ,75.30712),new google.maps.LatLng(30.48434 ,73.56022),new google.maps.LatLng(32.54014 ,73.92346),new google.maps.LatLng(31.50838 ,75.26222),new google.maps.LatLng(31.40184 ,73.16929),new google.maps.LatLng(30.54499 ,73.86221),new google.maps.LatLng(31.24163 ,74.22113),new google.maps.LatLng(32.60904 ,74.41250),new google.maps.LatLng(32.08734 ,75.03780),new google.maps.LatLng(31.24185 ,75.04251),new google.maps.LatLng(31.86993 ,73.15845),new google.maps.LatLng(32.30371 ,73.80435),new google.maps.LatLng(31.70464 ,73.76197),new google.maps.LatLng(32.17944 ,73.78513),new google.maps.LatLng(30.42051 ,73.97481),new google.maps.LatLng(32.71066 ,74.81568),new google.maps.LatLng(31.78067 ,73.91320),new google.maps.LatLng(30.29334 ,73.99859),new google.maps.LatLng(31.59312 ,74.57304),new google.maps.LatLng(31.47763 ,75.54465),new google.maps.LatLng(32.46185 ,73.52562),new google.maps.LatLng(32.31631 ,73.92981),new google.maps.LatLng(31.80282 ,73.98182),new google.maps.LatLng(32.75452 ,74.12601),new google.maps.LatLng(31.80665 ,74.92713),new google.maps.LatLng(31.00071 ,75.15520),new google.maps.LatLng(32.36850 ,73.44658),new google.maps.LatLng(30.97949 ,73.32291),new google.maps.LatLng(31.38327 ,75.64559),new google.maps.LatLng(30.95611 ,73.25506),new google.maps.LatLng(31.18533 ,74.36444),new google.maps.LatLng(31.99455 ,74.65678),new google.maps.LatLng(31.88857 ,74.59875),new google.maps.LatLng(32.58979 ,74.96532),new google.maps.LatLng(32.37266 ,75.04685),new google.maps.LatLng(31.97651 ,73.17315),new google.maps.LatLng(31.07457 ,73.48136),new google.maps.LatLng(30.82881 ,74.16017),new google.maps.LatLng(31.95454 ,75.07105),new google.maps.LatLng(32.73199 ,74.05133),new google.maps.LatLng(30.58655 ,73.64446),new google.maps.LatLng(30.99114 ,74.45957),new google.maps.LatLng(31.15150 ,74.17100),new google.maps.LatLng(31.75336 ,75.16372),new google.maps.LatLng(31.03517 ,75.06439),new google.maps.LatLng(32.01493 ,73.71282),new google.maps.LatLng(32.47383 ,74.13830),new google.maps.LatLng(31.52477 ,75.60740),new google.maps.LatLng(31.83944 ,74.56007),new google.maps.LatLng(31.18108 ,74.22196),new google.maps.LatLng(31.07431 ,75.25219),new google.maps.LatLng(32.17829 ,74.32724),new google.maps.LatLng(30.53015 ,74.41632),new google.maps.LatLng(31.05045 ,75.00881),new google.maps.LatLng(31.14520 ,74.89463),new google.maps.LatLng(31.27958 ,74.13822),new google.maps.LatLng(31.87982 ,75.49053),new google.maps.LatLng(31.13143 ,73.71397),new google.maps.LatLng(30.43990 ,74.04241),new google.maps.LatLng(31.27399 ,75.44121),new google.maps.LatLng(31.94782 ,73.31285),new google.maps.LatLng(30.96755 ,74.97323),new google.maps.LatLng(31.70461 ,74.45653),new google.maps.LatLng(30.50414 ,73.83033),new google.maps.LatLng(32.00141 ,75.52223),new google.maps.LatLng(32.05966 ,74.00656),new google.maps.LatLng(31.14193 ,75.59756),new google.maps.LatLng(31.26958 ,74.69602),new google.maps.LatLng(31.46439 ,73.21972),new google.maps.LatLng(30.88654 ,74.02801),new google.maps.LatLng(31.78255 ,73.28897),new google.maps.LatLng(32.57138 ,74.95341),new google.maps.LatLng(31.00662 ,73.91615),new google.maps.LatLng(31.15811 ,74.25552),new google.maps.LatLng(30.71009 ,74.63467),new google.maps.LatLng(32.31967 ,73.75876),new google.maps.LatLng(32.44359 ,75.16052),new google.maps.LatLng(31.21802 ,73.65570),new google.maps.LatLng(30.55350 ,74.10805),new google.maps.LatLng(31.18507 ,73.63490),new google.maps.LatLng(30.95729 ,73.32116),new google.maps.LatLng(31.63617 ,73.17380),new google.maps.LatLng(30.61101 ,74.68886),new google.maps.LatLng(31.28444 ,75.53366),new google.maps.LatLng(30.42541 ,73.94452),new google.maps.LatLng(31.98506 ,73.41754),new google.maps.LatLng(31.21933 ,75.28735),new google.maps.LatLng(31.90603 ,74.95091),new google.maps.LatLng(32.02933 ,74.26200),new google.maps.LatLng(30.54679 ,73.71403),new google.maps.LatLng(30.33506 ,74.68094),new google.maps.LatLng(30.33808 ,73.90513),new google.maps.LatLng(32.54639 ,74.47196),new google.maps.LatLng(30.79520 ,74.99503),new google.maps.LatLng(31.09446 ,73.91661),new google.maps.LatLng(31.77706 ,74.32809),new google.maps.LatLng(30.57792 ,73.95483),new google.maps.LatLng(31.50709 ,75.00306),new google.maps.LatLng(30.35047 ,74.13229),new google.maps.LatLng(32.61880 ,73.88097),new google.maps.LatLng(31.64824 ,73.59150),new google.maps.LatLng(32.06599 ,74.20768),new google.maps.LatLng(32.10223 ,75.04144),new google.maps.LatLng(31.86125 ,74.62659),new google.maps.LatLng(32.23975 ,73.76082),new google.maps.LatLng(32.20239 ,73.33899),new google.maps.LatLng(32.01892 ,74.63970),new google.maps.LatLng(30.88381 ,74.80983),new google.maps.LatLng(30.56646 ,74.21599),new google.maps.LatLng(31.73749 ,73.41216),new google.maps.LatLng(32.61785 ,74.15608),new google.maps.LatLng(32.47389 ,74.91356),new google.maps.LatLng(31.45398 ,73.16998),new google.maps.LatLng(32.28281 ,73.92074),new google.maps.LatLng(32.19233 ,75.07401),new google.maps.LatLng(30.88119 ,75.45400),new google.maps.LatLng(30.41149 ,73.70191),new google.maps.LatLng(32.51417 ,74.38120),new google.maps.LatLng(31.49576 ,75.20391),new google.maps.LatLng(31.53043 ,74.97291),new google.maps.LatLng(31.56681 ,73.65978),new google.maps.LatLng(32.44734 ,75.11438),new google.maps.LatLng(30.93198 ,73.94054),new google.maps.LatLng(31.98962 ,75.50045),new google.maps.LatLng(32.00528 ,73.24423),new google.maps.LatLng(30.48501 ,74.35061),new google.maps.LatLng(30.31175 ,74.70868),new google.maps.LatLng(31.64569 ,75.17924),new google.maps.LatLng(31.63010 ,73.54824),new google.maps.LatLng(31.23506 ,74.89133),new google.maps.LatLng(30.76330 ,73.80478),new google.maps.LatLng(30.66306 ,74.99047),new google.maps.LatLng(30.34044 ,74.13731),new google.maps.LatLng(31.83777 ,75.24774),new google.maps.LatLng(31.11601 ,74.74357),new google.maps.LatLng(30.82247 ,73.56190),new google.maps.LatLng(32.01069 ,74.79262),new google.maps.LatLng(31.13479 ,74.20069),new google.maps.LatLng(31.30914 ,73.33401),new google.maps.LatLng(30.55299 ,74.08954),new google.maps.LatLng(30.98264 ,73.46369),new google.maps.LatLng(31.96678 ,74.29862),new google.maps.LatLng(30.25870 ,74.48084),new google.maps.LatLng(32.34156 ,74.62782),new google.maps.LatLng(31.59659 ,74.47828),new google.maps.LatLng(30.97910 ,74.89310),new google.maps.LatLng(30.99342 ,73.52356),new google.maps.LatLng(30.38273 ,74.35968),new google.maps.LatLng(32.39335 ,73.50210),new google.maps.LatLng(32.49694 ,73.68686),new google.maps.LatLng(31.72501 ,74.52024),new google.maps.LatLng(31.18693 ,75.60331),new google.maps.LatLng(30.69927 ,75.36843),new google.maps.LatLng(30.58535 ,74.79653),new google.maps.LatLng(32.01282 ,74.47109),new google.maps.LatLng(32.28546 ,74.79860),new google.maps.LatLng(30.75163 ,74.52619),new google.maps.LatLng(30.92829 ,74.31514),new google.maps.LatLng(32.66608 ,73.92088),new google.maps.LatLng(32.14425 ,74.58833),new google.maps.LatLng(31.55521 ,74.27343),new google.maps.LatLng(32.38491 ,74.90114),new google.maps.LatLng(32.23003 ,73.63899),new google.maps.LatLng(30.49267 ,73.71825),new google.maps.LatLng(31.73061 ,74.17326),new google.maps.LatLng(30.83101 ,75.09208),new google.maps.LatLng(31.09065 ,74.49960),new google.maps.LatLng(30.53141 ,74.96555),new google.maps.LatLng(32.77619 ,74.53383),new google.maps.LatLng(31.87672 ,74.26751),new google.maps.LatLng(31.01734 ,74.57598),new google.maps.LatLng(31.59031 ,73.12609),new google.maps.LatLng(31.82825 ,74.08225),new google.maps.LatLng(30.77402 ,75.22365),new google.maps.LatLng(31.27115 ,73.88086),new google.maps.LatLng(32.12261 ,74.37270),new google.maps.LatLng(32.43461 ,74.96690),new google.maps.LatLng(30.81828 ,74.18027),new google.maps.LatLng(32.69305 ,74.78712),new google.maps.LatLng(31.58152 ,74.19328),new google.maps.LatLng(32.53799 ,73.71299),new google.maps.LatLng(31.27257 ,73.85751),new google.maps.LatLng(31.19170 ,73.77422),new google.maps.LatLng(32.37998 ,75.28390),new google.maps.LatLng(31.30898 ,74.79380),new google.maps.LatLng(31.06604 ,74.07892),new google.maps.LatLng(32.50076 ,74.47380),new google.maps.LatLng(31.93465 ,75.22217),new google.maps.LatLng(31.15284 ,74.81394),new google.maps.LatLng(31.53208 ,73.47701),new google.maps.LatLng(30.99937 ,74.74601),new google.maps.LatLng(32.32356 ,73.61741),new google.maps.LatLng(31.44815 ,73.78787),new google.maps.LatLng(30.68604 ,74.57794),new google.maps.LatLng(31.15042 ,74.17799),new google.maps.LatLng(31.53814 ,73.92614),new google.maps.LatLng(31.48962 ,74.94971),new google.maps.LatLng(32.14365 ,75.45502),new google.maps.LatLng(32.46411 ,75.20425),new google.maps.LatLng(31.74063 ,74.29937),new google.maps.LatLng(32.54420 ,74.32674),new google.maps.LatLng(30.24356 ,74.34123),new google.maps.LatLng(31.14955 ,73.54139),new google.maps.LatLng(30.95667 ,75.16166),new google.maps.LatLng(32.28083 ,74.32638),new google.maps.LatLng(30.69420 ,74.60664),new google.maps.LatLng(30.76634 ,74.87509),new google.maps.LatLng(31.13524 ,74.81184),new google.maps.LatLng(31.83090 ,75.27449),new google.maps.LatLng(31.49995 ,74.17736),new google.maps.LatLng(31.34472 ,74.95745),new google.maps.LatLng(31.03774 ,74.76859),new google.maps.LatLng(32.21124 ,74.91298),new google.maps.LatLng(31.37610 ,74.65711),new google.maps.LatLng(30.99146 ,74.54795),new google.maps.LatLng(32.46235 ,74.54840),new google.maps.LatLng(31.26465 ,73.91883),new google.maps.LatLng(31.72486 ,73.52027),new google.maps.LatLng(31.01545 ,73.58595),new google.maps.LatLng(30.35976 ,74.16245),new google.maps.LatLng(30.91402 ,74.33606),new google.maps.LatLng(32.41853 ,75.09042),new google.maps.LatLng(31.01062 ,75.29267),new google.maps.LatLng(30.29081 ,74.82268),new google.maps.LatLng(32.62944 ,74.12144),new google.maps.LatLng(31.48429 ,74.63889),new google.maps.LatLng(31.74431 ,73.12596),new google.maps.LatLng(31.26000 ,73.35418),new google.maps.LatLng(32.23917 ,73.46694),new google.maps.LatLng(31.73479 ,74.14022),new google.maps.LatLng(31.59295 ,74.99807),new google.maps.LatLng(32.03130 ,74.92618),new google.maps.LatLng(31.97316 ,73.43336),new google.maps.LatLng(31.36975 ,74.80470),new google.maps.LatLng(30.70559 ,73.89117),new google.maps.LatLng(32.68560 ,74.75188),new google.maps.LatLng(32.06076 ,73.83494),new google.maps.LatLng(31.39880 ,73.77859),new google.maps.LatLng(32.01459 ,75.46951),new google.maps.LatLng(31.39785 ,73.95848),new google.maps.LatLng(31.35003 ,73.39135),new google.maps.LatLng(31.87587 ,73.57805),new google.maps.LatLng(32.63740 ,73.81002),new google.maps.LatLng(30.37021 ,74.89718),new google.maps.LatLng(30.25741 ,74.27325),new google.maps.LatLng(32.00393 ,74.30582),new google.maps.LatLng(31.89866 ,74.48625),new google.maps.LatLng(30.36739 ,73.74932),new google.maps.LatLng(30.72520 ,73.45091),new google.maps.LatLng(31.75932 ,75.55326),new google.maps.LatLng(32.62330 ,73.90403),new google.maps.LatLng(30.67639 ,73.67709),new google.maps.LatLng(31.52851 ,75.08520),new google.maps.LatLng(31.75289 ,73.92687),new google.maps.LatLng(31.33278 ,75.41464),new google.maps.LatLng(31.04111 ,73.96913),new google.maps.LatLng(30.69874 ,74.21368),new google.maps.LatLng(32.64362 ,74.59064),new google.maps.LatLng(31.89430 ,75.44177),new google.maps.LatLng(30.41439 ,74.05627),new google.maps.LatLng(31.28304 ,73.10104),new google.maps.LatLng(30.85156 ,74.72428),new google.maps.LatLng(31.27074 ,74.51982),new google.maps.LatLng(30.50373 ,73.72752),new google.maps.LatLng(30.70620 ,73.76760),new google.maps.LatLng(31.47215 ,74.89895),new google.maps.LatLng(32.16461 ,75.48493),new google.maps.LatLng(30.53581 ,74.99541),new google.maps.LatLng(32.07419 ,74.77137),new google.maps.LatLng(30.80781 ,75.11594),new google.maps.LatLng(31.48808 ,73.84188),new google.maps.LatLng(31.89982 ,73.83573),new google.maps.LatLng(30.37518 ,74.75967),new google.maps.LatLng(30.79297 ,73.76673),new google.maps.LatLng(32.10902 ,74.70851),new google.maps.LatLng(31.18743 ,73.50507),new google.maps.LatLng(32.64005 ,74.36196),new google.maps.LatLng(31.48097 ,73.39288),new google.maps.LatLng(30.54831 ,74.90347),new google.maps.LatLng(31.45544 ,73.19048),new google.maps.LatLng(31.05801 ,74.80646),new google.maps.LatLng(30.82525 ,73.96674),new google.maps.LatLng(31.63113 ,74.48256),new google.maps.LatLng(31.89250 ,73.89286),new google.maps.LatLng(31.93519 ,74.95234),new google.maps.LatLng(32.08157 ,73.61737),new google.maps.LatLng(31.12338 ,74.23735),new google.maps.LatLng(32.69149 ,74.89464),new google.maps.LatLng(32.07610 ,74.57687),new google.maps.LatLng(30.88711 ,74.26477),new google.maps.LatLng(30.39288 ,73.84453),new google.maps.LatLng(30.84962 ,75.20770),new google.maps.LatLng(30.71511 ,74.63085),new google.maps.LatLng(31.25443 ,73.43320),new google.maps.LatLng(31.91659 ,74.08920),new google.maps.LatLng(31.25517 ,74.94301),new google.maps.LatLng(30.35292 ,73.85739),new google.maps.LatLng(32.09245 ,74.44601),new google.maps.LatLng(30.73172 ,73.74042),new google.maps.LatLng(32.53164 ,73.72105),new google.maps.LatLng(31.65297 ,74.65138),new google.maps.LatLng(31.28422 ,74.36630),new google.maps.LatLng(32.03183 ,75.29665),new google.maps.LatLng(30.80972 ,74.65109),new google.maps.LatLng(30.74611 ,73.84138),new google.maps.LatLng(32.18281 ,74.00577),new google.maps.LatLng(31.73709 ,73.40328),new google.maps.LatLng(31.46047 ,75.31727),new google.maps.LatLng(30.84999 ,74.04981),new google.maps.LatLng(31.17521 ,74.97972),new google.maps.LatLng(31.97159 ,75.20063),new google.maps.LatLng(31.36107 ,73.42158),new google.maps.LatLng(30.28404 ,74.36097),new google.maps.LatLng(30.63562 ,74.21395),new google.maps.LatLng(31.68793 ,73.88369),new google.maps.LatLng(31.54442 ,74.61803),new google.maps.LatLng(32.68913 ,74.18073),new google.maps.LatLng(31.14748 ,75.51810),new google.maps.LatLng(30.96773 ,74.27879),new google.maps.LatLng(32.00905 ,73.35318),new google.maps.LatLng(32.36457 ,73.65706),new google.maps.LatLng(31.20458 ,74.55173),new google.maps.LatLng(32.03862 ,74.03023),new google.maps.LatLng(30.92509 ,75.22371),new google.maps.LatLng(32.17001 ,73.46469),new google.maps.LatLng(32.10516 ,74.66883),new google.maps.LatLng(30.55882 ,75.03695),new google.maps.LatLng(32.51321 ,75.09912),new google.maps.LatLng(30.32895 ,74.22800),new google.maps.LatLng(31.46029 ,73.70953),new google.maps.LatLng(30.51922 ,74.32995),new google.maps.LatLng(32.10552 ,74.26250),new google.maps.LatLng(31.20468 ,75.11265),new google.maps.LatLng(32.54724 ,74.90045),new google.maps.LatLng(30.64156 ,73.98443),new google.maps.LatLng(31.50686 ,73.30776),new google.maps.LatLng(31.69341 ,74.60546),new google.maps.LatLng(31.59547 ,73.92412),new google.maps.LatLng(32.27799 ,75.15196),new google.maps.LatLng(31.86768 ,73.72173),new google.maps.LatLng(31.56325 ,74.24980),new google.maps.LatLng(30.67947 ,74.88177),new google.maps.LatLng(32.05910 ,75.37230),new google.maps.LatLng(31.97582 ,74.43569),new google.maps.LatLng(31.01324 ,74.57006),new google.maps.LatLng(31.99198 ,74.01934),new google.maps.LatLng(31.43568 ,74.93255),new google.maps.LatLng(30.50875 ,74.79704),new google.maps.LatLng(32.08276 ,73.25657),new google.maps.LatLng(31.60894 ,73.13861),new google.maps.LatLng(32.71126 ,74.02255),new google.maps.LatLng(31.93950 ,75.42210),new google.maps.LatLng(31.23090 ,75.42633),new google.maps.LatLng(31.61226 ,73.30472),new google.maps.LatLng(32.18761 ,75.10705),new google.maps.LatLng(31.77337 ,73.82414),new google.maps.LatLng(32.31619 ,73.66641),new google.maps.LatLng(31.20117 ,73.36966),new google.maps.LatLng(31.02963 ,74.07859),new google.maps.LatLng(30.65730 ,73.70200),new google.maps.LatLng(31.91714 ,74.36422),new google.maps.LatLng(30.54249 ,73.70378),new google.maps.LatLng(31.80172 ,74.49541),new google.maps.LatLng(32.38947 ,74.02379),new google.maps.LatLng(32.23238 ,74.75892),new google.maps.LatLng(30.26221 ,74.30114),new google.maps.LatLng(31.80156 ,75.56395),new google.maps.LatLng(30.79205 ,74.29027),new google.maps.LatLng(31.16732 ,73.72995),new google.maps.LatLng(31.65060 ,73.81290),new google.maps.LatLng(32.21711 ,73.32907),new google.maps.LatLng(32.76962 ,74.33077),new google.maps.LatLng(31.91179 ,74.46471),new google.maps.LatLng(31.27689 ,73.30764),new google.maps.LatLng(31.84380 ,75.20348),new google.maps.LatLng(31.26954 ,75.59559),new google.maps.LatLng(32.58222 ,74.34072),new google.maps.LatLng(31.94070 ,74.25050),new google.maps.LatLng(32.26101 ,74.65837),new google.maps.LatLng(31.33919 ,75.18780),new google.maps.LatLng(32.02575 ,73.91460),new google.maps.LatLng(30.29353 ,74.10032),new google.maps.LatLng(30.26588 ,74.57352),new google.maps.LatLng(31.43328 ,73.65835),new google.maps.LatLng(32.21946 ,73.91510),new google.maps.LatLng(32.45738 ,73.86576),new google.maps.LatLng(31.16990 ,74.38340),new google.maps.LatLng(31.61228 ,73.58722),new google.maps.LatLng(31.60110 ,74.38742),new google.maps.LatLng(30.59118 ,73.63576),new google.maps.LatLng(32.56777 ,73.86495),new google.maps.LatLng(31.86324 ,73.19088),new google.maps.LatLng(32.18618 ,73.90400),new google.maps.LatLng(32.70957 ,73.94460),new google.maps.LatLng(31.59868 ,74.28199),new google.maps.LatLng(31.21001 ,74.00029),new google.maps.LatLng(32.12510 ,74.45109),new google.maps.LatLng(32.28825 ,73.57883),new google.maps.LatLng(31.70378 ,73.92509),new google.maps.LatLng(31.56073 ,73.06796),new google.maps.LatLng(32.11320 ,75.33649),new google.maps.LatLng(31.75645 ,73.70769),new google.maps.LatLng(30.31128 ,73.98292),new google.maps.LatLng(30.34890 ,73.81413),new google.maps.LatLng(31.15797 ,73.77241),new google.maps.LatLng(32.01401 ,74.74206),new google.maps.LatLng(32.69191 ,74.03574),new google.maps.LatLng(31.08817 ,75.32463),new google.maps.LatLng(32.30162 ,74.18594),new google.maps.LatLng(31.27015 ,74.91406),new google.maps.LatLng(31.82061 ,74.86068),new google.maps.LatLng(31.67639 ,75.10705),new google.maps.LatLng(32.27059 ,74.70345),new google.maps.LatLng(30.95205 ,73.68700),new google.maps.LatLng(31.76389 ,73.27491),new google.maps.LatLng(31.00743 ,75.06381),new google.maps.LatLng(31.03519 ,75.44668),new google.maps.LatLng(31.26703 ,73.44653),new google.maps.LatLng(32.05925 ,75.26558),new google.maps.LatLng(31.97321 ,74.78862),new google.maps.LatLng(30.78634 ,74.55709),new google.maps.LatLng(31.67997 ,74.83244),new google.maps.LatLng(32.43777 ,73.99001),new google.maps.LatLng(31.00954 ,73.18349),new google.maps.LatLng(32.27419 ,73.63680),new google.maps.LatLng(32.42933 ,74.22931),new google.maps.LatLng(32.14623 ,75.12479),new google.maps.LatLng(31.52600 ,74.68059),new google.maps.LatLng(31.34801 ,73.20857),new google.maps.LatLng(31.93397 ,74.14227),new google.maps.LatLng(30.72578 ,74.42018),new google.maps.LatLng(32.35451 ,74.03120),new google.maps.LatLng(32.63869 ,74.33941),new google.maps.LatLng(31.22037 ,73.17251),new google.maps.LatLng(30.95569 ,74.96048),new google.maps.LatLng(31.30472 ,74.30911),new google.maps.LatLng(30.71999 ,74.76642),new google.maps.LatLng(30.95773 ,73.24296),new google.maps.LatLng(30.76675 ,73.92506),new google.maps.LatLng(32.31377 ,73.71118),new google.maps.LatLng(30.95761 ,74.18307),new google.maps.LatLng(31.67668 ,74.11269),new google.maps.LatLng(30.40073 ,74.61521),new google.maps.LatLng(30.37429 ,74.73289),new google.maps.LatLng(31.29245 ,73.99574),new google.maps.LatLng(31.68930 ,74.25185),new google.maps.LatLng(31.45725 ,74.01261),new google.maps.LatLng(32.70568 ,73.97508),new google.maps.LatLng(32.20137 ,74.12288),new google.maps.LatLng(31.75147 ,73.25093),new google.maps.LatLng(30.57999 ,74.91051),new google.maps.LatLng(32.63114 ,74.20955),new google.maps.LatLng(30.82967 ,73.90426),new google.maps.LatLng(31.45502 ,73.56062),new google.maps.LatLng(32.34638 ,74.49102),new google.maps.LatLng(32.05094 ,73.70119),new google.maps.LatLng(31.34565 ,74.05558),new google.maps.LatLng(30.30950 ,73.98781),new google.maps.LatLng(31.41711 ,74.83959),new google.maps.LatLng(32.37335 ,74.89421),new google.maps.LatLng(30.43731 ,73.99229),new google.maps.LatLng(31.63631 ,75.64062),new google.maps.LatLng(31.34633 ,73.53837),new google.maps.LatLng(32.25939 ,75.31313),new google.maps.LatLng(30.76759 ,75.06959),new google.maps.LatLng(31.81229 ,73.17613),new google.maps.LatLng(31.02678 ,74.31337),new google.maps.LatLng(32.06155 ,75.25215),new google.maps.LatLng(30.64509 ,74.41898),new google.maps.LatLng(32.40609 ,74.08652),new google.maps.LatLng(30.73165 ,74.39023),new google.maps.LatLng(31.90937 ,75.39953),new google.maps.LatLng(32.47948 ,74.96956),new google.maps.LatLng(31.95435 ,75.55785),new google.maps.LatLng(31.09672 ,75.45652),new google.maps.LatLng(32.35173 ,74.89481),new google.maps.LatLng(30.64220 ,74.30712),new google.maps.LatLng(30.46114 ,74.64831),new google.maps.LatLng(31.38065 ,73.47950),new google.maps.LatLng(31.83580 ,74.54480),new google.maps.LatLng(30.70984 ,73.86400),new google.maps.LatLng(31.02570 ,74.41998),new google.maps.LatLng(31.74941 ,74.13769),new google.maps.LatLng(31.52869 ,73.15666),new google.maps.LatLng(31.36725 ,74.65696),new google.maps.LatLng(31.91173 ,73.97425),new google.maps.LatLng(31.08508 ,75.53524),new google.maps.LatLng(31.40539 ,74.80042),new google.maps.LatLng(32.21253 ,73.93087),new google.maps.LatLng(30.88912 ,74.90146),new google.maps.LatLng(31.63800 ,75.28507),new google.maps.LatLng(30.96403 ,73.29855),new google.maps.LatLng(32.56553 ,75.07990),new google.maps.LatLng(31.23827 ,74.19828),new google.maps.LatLng(31.81511 ,75.22910),new google.maps.LatLng(32.16970 ,74.04750),new google.maps.LatLng(30.84653 ,74.93708),new google.maps.LatLng(32.10138 ,74.37245),new google.maps.LatLng(31.63133 ,74.31378),new google.maps.LatLng(31.68713 ,74.02502),new google.maps.LatLng(31.54758 ,74.08393),new google.maps.LatLng(30.46128 ,74.62204),new google.maps.LatLng(31.21187 ,74.74474),new google.maps.LatLng(30.98658 ,74.39351),new google.maps.LatLng(31.05829 ,74.90198),new google.maps.LatLng(31.93765 ,75.13114),new google.maps.LatLng(30.31350 ,73.91962),new google.maps.LatLng(31.76735 ,73.53972),new google.maps.LatLng(32.09164 ,73.57942),new google.maps.LatLng(30.59385 ,73.53175),new google.maps.LatLng(30.66566 ,74.38520),new google.maps.LatLng(31.97444 ,75.53736),new google.maps.LatLng(32.61789 ,74.45978),new google.maps.LatLng(30.36448 ,73.80315),new google.maps.LatLng(31.96933 ,73.59364),new google.maps.LatLng(31.86025 ,73.60056),new google.maps.LatLng(31.09349 ,73.33207),new google.maps.LatLng(30.85026 ,75.25079),new google.maps.LatLng(30.79829 ,74.22013),new google.maps.LatLng(30.94470 ,75.21812),new google.maps.LatLng(32.28532 ,74.94440),new google.maps.LatLng(30.90392 ,74.31198),new google.maps.LatLng(32.39016 ,75.18943),new google.maps.LatLng(32.40855 ,74.24425),new google.maps.LatLng(32.07126 ,75.47859),new google.maps.LatLng(32.09752 ,75.09473),new google.maps.LatLng(30.98055 ,73.21179),new google.maps.LatLng(31.75814 ,73.47046),new google.maps.LatLng(32.64909 ,73.79445),new google.maps.LatLng(32.15788 ,73.54046),new google.maps.LatLng(32.57261 ,75.07005),new google.maps.LatLng(30.87407 ,74.04222),new google.maps.LatLng(32.25237 ,74.30311),new google.maps.LatLng(32.08363 ,73.89197),new google.maps.LatLng(30.70444 ,73.66845),new google.maps.LatLng(31.33925 ,74.98299),new google.maps.LatLng(31.80091 ,74.60284),new google.maps.LatLng(31.33262 ,75.24656),new google.maps.LatLng(25.99187 ,67.37201),new google.maps.LatLng(25.51478 ,67.03535),new google.maps.LatLng(24.08831 ,66.76906),new google.maps.LatLng(24.37935 ,66.74936),new google.maps.LatLng(24.11651 ,67.65828),new google.maps.LatLng(25.23693 ,67.62230),new google.maps.LatLng(25.83121 ,66.92066),new google.maps.LatLng(25.30349 ,66.26467),new google.maps.LatLng(24.29745 ,67.86965),new google.maps.LatLng(25.78460 ,66.14717),new google.maps.LatLng(24.03753 ,66.83705),new google.maps.LatLng(24.28927 ,67.97528),new google.maps.LatLng(25.23927 ,67.99590),new google.maps.LatLng(25.39005 ,66.64156),new google.maps.LatLng(25.81419 ,67.74389),new google.maps.LatLng(25.82449 ,67.70722),new google.maps.LatLng(25.15956 ,67.19448),new google.maps.LatLng(24.77273 ,65.84306),new google.maps.LatLng(23.73901 ,66.85083),new google.maps.LatLng(23.86783 ,66.86718),new google.maps.LatLng(24.28419 ,66.46208),new google.maps.LatLng(24.99750 ,68.18779),new google.maps.LatLng(23.79436 ,67.28839),new google.maps.LatLng(24.50901 ,66.20964),new google.maps.LatLng(25.21545 ,67.87204),new google.maps.LatLng(23.77047 ,67.08836),new google.maps.LatLng(24.21847 ,67.17960),new google.maps.LatLng(23.74753 ,67.01606),new google.maps.LatLng(26.03762 ,67.14472),new google.maps.LatLng(24.44726 ,68.06083),new google.maps.LatLng(25.86709 ,66.30816),new google.maps.LatLng(24.80749 ,68.34809),new google.maps.LatLng(25.72706 ,66.02768),new google.maps.LatLng(24.53846 ,67.11045),new google.maps.LatLng(24.12656 ,67.91868),new google.maps.LatLng(25.53751 ,67.14827),new google.maps.LatLng(26.00938 ,66.86437),new google.maps.LatLng(23.79197 ,67.54530),new google.maps.LatLng(24.90562 ,67.75385),new google.maps.LatLng(23.79684 ,67.62404),new google.maps.LatLng(24.76628 ,65.81230),new google.maps.LatLng(23.70833 ,67.33874),new google.maps.LatLng(24.62488 ,68.16121),new google.maps.LatLng(25.53334 ,68.18520),new google.maps.LatLng(24.51356 ,66.41505),new google.maps.LatLng(25.36422 ,66.78657),new google.maps.LatLng(26.19809 ,67.10620),new google.maps.LatLng(24.83411 ,67.57417),new google.maps.LatLng(24.61925 ,67.58186),new google.maps.LatLng(24.17127 ,67.65172),new google.maps.LatLng(24.46141 ,66.45253),new google.maps.LatLng(25.43384 ,66.10020),new google.maps.LatLng(24.69781 ,66.33196),new google.maps.LatLng(25.54814 ,67.92524),new google.maps.LatLng(25.00127 ,67.85552),new google.maps.LatLng(24.36335 ,65.95996),new google.maps.LatLng(25.62084 ,66.17131),new google.maps.LatLng(24.81807 ,65.89297),new google.maps.LatLng(26.08671 ,67.18486),new google.maps.LatLng(24.61561 ,66.30278),new google.maps.LatLng(25.07704 ,66.85625),new google.maps.LatLng(24.84773 ,68.34431),new google.maps.LatLng(23.79991 ,67.66992),new google.maps.LatLng(24.63811 ,66.97279),new google.maps.LatLng(23.66461 ,67.03103),new google.maps.LatLng(23.81262 ,66.44514),new google.maps.LatLng(24.16137 ,67.60007),new google.maps.LatLng(25.04134 ,66.82399),new google.maps.LatLng(24.94292 ,68.10054),new google.maps.LatLng(25.15416 ,66.14631),new google.maps.LatLng(25.66463 ,67.91997),new google.maps.LatLng(25.39799 ,66.17027),new google.maps.LatLng(24.32569 ,67.91803),new google.maps.LatLng(25.77680 ,67.83770),new google.maps.LatLng(25.27300 ,67.64397),new google.maps.LatLng(24.55922 ,66.42408),new google.maps.LatLng(24.69381 ,66.93517),new google.maps.LatLng(24.60925 ,66.54491),new google.maps.LatLng(24.67081 ,66.59667),new google.maps.LatLng(25.68875 ,66.81013),new google.maps.LatLng(25.60895 ,68.13116),new google.maps.LatLng(25.42693 ,66.25177),new google.maps.LatLng(24.47178 ,67.25288),new google.maps.LatLng(23.80315 ,66.57073),new google.maps.LatLng(24.53795 ,67.36696),new google.maps.LatLng(23.80587 ,67.33483),new google.maps.LatLng(25.46243 ,67.58426),new google.maps.LatLng(24.92447 ,67.72603),new google.maps.LatLng(24.25221 ,67.44632),new google.maps.LatLng(25.43221 ,66.79346),new google.maps.LatLng(24.64622 ,67.26323),new google.maps.LatLng(24.34138 ,67.81620),new google.maps.LatLng(24.11746 ,67.39450),new google.maps.LatLng(24.53717 ,66.37790),new google.maps.LatLng(24.73600 ,66.73799),new google.maps.LatLng(24.01300 ,67.09711),new google.maps.LatLng(24.13751 ,67.69980),new google.maps.LatLng(25.24216 ,67.97797),new google.maps.LatLng(24.60460 ,68.00636),new google.maps.LatLng(25.83040 ,66.89080),new google.maps.LatLng(25.29274 ,65.86289),new google.maps.LatLng(24.25350 ,67.67333),new google.maps.LatLng(25.06490 ,67.25628),new google.maps.LatLng(24.84865 ,67.00486),new google.maps.LatLng(24.48398 ,68.19020),new google.maps.LatLng(24.13992 ,67.88948),new google.maps.LatLng(25.19651 ,66.46178),new google.maps.LatLng(24.42615 ,67.87790),new google.maps.LatLng(24.08058 ,66.59865),new google.maps.LatLng(25.29120 ,68.20389),new google.maps.LatLng(24.57968 ,66.72357),new google.maps.LatLng(25.19167 ,68.18475),new google.maps.LatLng(24.61043 ,68.21158),new google.maps.LatLng(26.10002 ,67.53994),new google.maps.LatLng(26.10325 ,67.03202),new google.maps.LatLng(23.88285 ,67.09590),new google.maps.LatLng(24.05815 ,66.77868),new google.maps.LatLng(25.36178 ,66.00862),new google.maps.LatLng(24.75336 ,65.79385),new google.maps.LatLng(24.88475 ,66.23732),new google.maps.LatLng(25.34550 ,68.17153),new google.maps.LatLng(24.35624 ,67.00388),new google.maps.LatLng(25.62037 ,68.00598),new google.maps.LatLng(25.93017 ,67.28783),new google.maps.LatLng(25.93412 ,66.74544),new google.maps.LatLng(24.32257 ,67.84930),new google.maps.LatLng(24.87030 ,65.97806),new google.maps.LatLng(26.07320 ,66.79480),new google.maps.LatLng(24.84709 ,66.56820),new google.maps.LatLng(25.39512 ,66.86526),new google.maps.LatLng(25.09417 ,67.65561),new google.maps.LatLng(26.12799 ,66.82165),new google.maps.LatLng(24.82856 ,66.33725),new google.maps.LatLng(25.49763 ,67.29712),new google.maps.LatLng(24.96834 ,67.15285),new google.maps.LatLng(24.71896 ,67.33683),new google.maps.LatLng(24.63687 ,68.30898),new google.maps.LatLng(23.86234 ,66.40013),new google.maps.LatLng(25.52966 ,67.90834),new google.maps.LatLng(24.70234 ,67.38829),new google.maps.LatLng(24.10351 ,66.47035),new google.maps.LatLng(24.52830 ,68.05879),new google.maps.LatLng(24.38394 ,66.85877),new google.maps.LatLng(26.12531 ,66.85293),new google.maps.LatLng(24.63828 ,66.26782),new google.maps.LatLng(24.61764 ,66.82192),new google.maps.LatLng(24.63245 ,68.16166),new google.maps.LatLng(24.26722 ,67.52171),new google.maps.LatLng(24.11741 ,67.13288),new google.maps.LatLng(25.63513 ,67.68621),new google.maps.LatLng(24.39227 ,68.03992),new google.maps.LatLng(25.65521 ,68.06346),new google.maps.LatLng(25.52191 ,67.21430),new google.maps.LatLng(24.52624 ,66.05646),new google.maps.LatLng(24.75868 ,66.86834),new google.maps.LatLng(25.66689 ,68.14534),new google.maps.LatLng(26.04908 ,66.47263),new google.maps.LatLng(25.96438 ,67.49354),new google.maps.LatLng(25.93753 ,67.80610),new google.maps.LatLng(25.78123 ,67.34472),new google.maps.LatLng(25.35207 ,68.24771),new google.maps.LatLng(24.07727 ,66.64884),new google.maps.LatLng(24.28923 ,66.86886),new google.maps.LatLng(25.11461 ,67.36695),new google.maps.LatLng(24.78676 ,68.22493),new google.maps.LatLng(25.85971 ,67.04533),new google.maps.LatLng(24.85691 ,66.39317),new google.maps.LatLng(25.35831 ,68.21637),new google.maps.LatLng(24.86412 ,66.17241),new google.maps.LatLng(25.09954 ,66.86536),new google.maps.LatLng(24.81758 ,66.65418),new google.maps.LatLng(25.00218 ,68.18122),new google.maps.LatLng(25.89402 ,66.41224),new google.maps.LatLng(25.10486 ,67.68440),new google.maps.LatLng(25.49622 ,66.16035),new google.maps.LatLng(24.18699 ,67.46555),new google.maps.LatLng(25.68683 ,66.37000),new google.maps.LatLng(24.28187 ,66.20705),new google.maps.LatLng(25.43708 ,66.76051),new google.maps.LatLng(23.93966 ,67.45721),new google.maps.LatLng(25.49899 ,67.70093),new google.maps.LatLng(25.72449 ,66.31747),new google.maps.LatLng(24.74581 ,66.64010),new google.maps.LatLng(24.26123 ,67.59385),new google.maps.LatLng(24.83487 ,65.81565),new google.maps.LatLng(24.03598 ,67.70985),new google.maps.LatLng(24.81107 ,66.03667),new google.maps.LatLng(25.41757 ,66.78115),new google.maps.LatLng(25.72205 ,67.50321),new google.maps.LatLng(25.63402 ,67.84219),new google.maps.LatLng(25.32767 ,66.85414),new google.maps.LatLng(26.16072 ,66.79334),new google.maps.LatLng(25.26499 ,66.94501),new google.maps.LatLng(24.38138 ,66.36428),new google.maps.LatLng(25.35987 ,67.45312),new google.maps.LatLng(24.16850 ,66.59953),new google.maps.LatLng(24.49818 ,66.28632),new google.maps.LatLng(26.08234 ,66.43893),new google.maps.LatLng(26.02888 ,66.42718),new google.maps.LatLng(23.91750 ,66.39219),new google.maps.LatLng(25.87285 ,67.61650),new google.maps.LatLng(25.14271 ,66.54124),new google.maps.LatLng(24.50082 ,67.84023),new google.maps.LatLng(24.11427 ,66.83356),new google.maps.LatLng(24.52512 ,67.38980),new google.maps.LatLng(25.27095 ,66.56381),new google.maps.LatLng(24.76142 ,66.42875),new google.maps.LatLng(24.65880 ,66.79595),new google.maps.LatLng(24.38385 ,66.59293),new google.maps.LatLng(25.87466 ,67.90084),new google.maps.LatLng(23.83563 ,67.07710),new google.maps.LatLng(24.91967 ,66.38449),new google.maps.LatLng(25.08392 ,67.88934),new google.maps.LatLng(23.74056 ,66.75823),new google.maps.LatLng(24.51975 ,67.04230),new google.maps.LatLng(25.61055 ,67.11074),new google.maps.LatLng(25.25132 ,68.15414),new google.maps.LatLng(25.48452 ,66.56617),new google.maps.LatLng(24.00742 ,66.38767),new google.maps.LatLng(24.56077 ,67.66671),new google.maps.LatLng(24.86002 ,68.12243),new google.maps.LatLng(24.51973 ,67.12631),new google.maps.LatLng(24.18286 ,67.91034),new google.maps.LatLng(24.43681 ,66.09556),new google.maps.LatLng(25.00368 ,66.89800),new google.maps.LatLng(24.49558 ,67.48646),new google.maps.LatLng(25.49774 ,67.37603),new google.maps.LatLng(25.48466 ,67.84399),new google.maps.LatLng(24.04304 ,66.79205),new google.maps.LatLng(23.80318 ,67.65463),new google.maps.LatLng(25.21649 ,67.27373),new google.maps.LatLng(25.15849 ,68.12281),new google.maps.LatLng(25.42914 ,67.63081),new google.maps.LatLng(23.89683 ,67.51389),new google.maps.LatLng(24.78465 ,67.20845),new google.maps.LatLng(25.92053 ,67.01275),new google.maps.LatLng(25.50524 ,67.02194),new google.maps.LatLng(24.45111 ,66.92795),new google.maps.LatLng(25.08394 ,66.75437),new google.maps.LatLng(24.67843 ,65.90894),new google.maps.LatLng(25.11732 ,66.16585),new google.maps.LatLng(24.99782 ,65.81996),new google.maps.LatLng(24.67853 ,66.65279),new google.maps.LatLng(23.79051 ,66.73686),new google.maps.LatLng(25.09843 ,68.36029),new google.maps.LatLng(24.17154 ,67.34419),new google.maps.LatLng(25.92919 ,66.85844),new google.maps.LatLng(25.02339 ,65.90376),new google.maps.LatLng(25.45573 ,67.82561),new google.maps.LatLng(25.96213 ,67.34360),new google.maps.LatLng(25.03416 ,66.99846),new google.maps.LatLng(25.58449 ,66.47090),new google.maps.LatLng(25.52296 ,66.96249),new google.maps.LatLng(25.50290 ,68.19463),new google.maps.LatLng(23.99779 ,67.43322),new google.maps.LatLng(24.41670 ,67.54346),new google.maps.LatLng(24.43275 ,67.04272),new google.maps.LatLng(24.72121 ,66.90618),new google.maps.LatLng(25.83220 ,67.70662),new google.maps.LatLng(25.85980 ,67.84730),new google.maps.LatLng(25.06382 ,67.71944),new google.maps.LatLng(25.25646 ,66.19753),new google.maps.LatLng(25.04530 ,66.74716),new google.maps.LatLng(25.27918 ,67.86425),new google.maps.LatLng(23.99762 ,66.99479),new google.maps.LatLng(25.80699 ,66.24202),new google.maps.LatLng(26.11285 ,67.18670),new google.maps.LatLng(24.27495 ,66.11697),new google.maps.LatLng(25.43902 ,67.81815),new google.maps.LatLng(24.78700 ,66.57972),new google.maps.LatLng(26.01014 ,67.54224),new google.maps.LatLng(25.39598 ,68.13353),new google.maps.LatLng(24.92910 ,66.69782),new google.maps.LatLng(25.21284 ,67.51635),new google.maps.LatLng(24.84529 ,67.92805),new google.maps.LatLng(25.71983 ,66.98162),new google.maps.LatLng(25.65393 ,66.93886),new google.maps.LatLng(25.99726 ,67.55057),new google.maps.LatLng(25.45718 ,67.05495),new google.maps.LatLng(24.13503 ,66.62648),new google.maps.LatLng(24.91502 ,65.98958),new google.maps.LatLng(25.34578 ,65.99661),new google.maps.LatLng(24.40736 ,67.47641),new google.maps.LatLng(24.33250 ,66.51815),new google.maps.LatLng(25.20651 ,65.82110),new google.maps.LatLng(24.49189 ,67.25235),new google.maps.LatLng(25.87043 ,67.03084),new google.maps.LatLng(26.21545 ,66.88418),new google.maps.LatLng(24.73078 ,67.21213),new google.maps.LatLng(26.08314 ,67.36236),new google.maps.LatLng(25.39984 ,68.06234),new google.maps.LatLng(23.98893 ,66.68681),new google.maps.LatLng(25.64190 ,67.20330),new google.maps.LatLng(24.15687 ,66.63232),new google.maps.LatLng(25.27338 ,67.62922),new google.maps.LatLng(24.62259 ,66.06942),new google.maps.LatLng(24.20057 ,67.37576),new google.maps.LatLng(24.77014 ,67.71174),new google.maps.LatLng(24.68394 ,66.71886),new google.maps.LatLng(24.19454 ,68.00153),new google.maps.LatLng(24.43350 ,67.21198),new google.maps.LatLng(24.32173 ,67.75568),new google.maps.LatLng(24.43166 ,66.67805),new google.maps.LatLng(25.34417 ,68.24728),new google.maps.LatLng(24.12712 ,67.32699),new google.maps.LatLng(24.53737 ,67.57966),new google.maps.LatLng(25.31192 ,66.33711),new google.maps.LatLng(24.25620 ,66.96469),new google.maps.LatLng(25.63086 ,66.02740),new google.maps.LatLng(23.73604 ,66.79233),new google.maps.LatLng(23.98605 ,67.50279),new google.maps.LatLng(25.28127 ,66.13219),new google.maps.LatLng(24.57971 ,67.19786),new google.maps.LatLng(25.14848 ,67.25650),new google.maps.LatLng(24.36816 ,67.03406),new google.maps.LatLng(24.43768 ,66.63455),new google.maps.LatLng(24.51783 ,66.76328),new google.maps.LatLng(25.27612 ,66.50174),new google.maps.LatLng(24.64909 ,67.04591),new google.maps.LatLng(25.24716 ,68.20367),new google.maps.LatLng(24.91569 ,67.57757),new google.maps.LatLng(25.69685 ,67.22689),new google.maps.LatLng(25.18183 ,67.92540),new google.maps.LatLng(25.91507 ,66.33297),new google.maps.LatLng(24.91945 ,65.94349),new google.maps.LatLng(25.29263 ,67.29548),new google.maps.LatLng(25.94051 ,67.06427),new google.maps.LatLng(24.88118 ,66.07572),new google.maps.LatLng(25.05114 ,66.34523),new google.maps.LatLng(23.92434 ,67.18650),new google.maps.LatLng(24.17361 ,67.21376),new google.maps.LatLng(23.69984 ,67.08533),new google.maps.LatLng(24.86869 ,66.62415),new google.maps.LatLng(26.15846 ,67.13793),new google.maps.LatLng(25.01031 ,65.96213),new google.maps.LatLng(24.86105 ,67.27862),new google.maps.LatLng(24.24695 ,66.19344),new google.maps.LatLng(25.61306 ,66.76805),new google.maps.LatLng(25.88816 ,67.48083),new google.maps.LatLng(24.65839 ,66.67110),new google.maps.LatLng(24.95358 ,66.29842),new google.maps.LatLng(23.95711 ,66.91349),new google.maps.LatLng(24.78450 ,66.95297),new google.maps.LatLng(25.19980 ,67.75930),new google.maps.LatLng(24.53855 ,67.64120),new google.maps.LatLng(23.68343 ,67.19732),new google.maps.LatLng(23.89426 ,67.34079),new google.maps.LatLng(25.39110 ,66.81030),new google.maps.LatLng(25.18373 ,66.89798),new google.maps.LatLng(25.27297 ,66.89571),new google.maps.LatLng(26.05574 ,67.64091),new google.maps.LatLng(24.52664 ,65.98477),new google.maps.LatLng(25.74189 ,66.43894),new google.maps.LatLng(25.82113 ,66.74683),new google.maps.LatLng(25.40265 ,67.83896),new google.maps.LatLng(25.19364 ,67.72748),new google.maps.LatLng(25.89738 ,67.29533),new google.maps.LatLng(24.79244 ,65.81888),new google.maps.LatLng(24.07645 ,67.13530),new google.maps.LatLng(25.70997 ,66.13435),new google.maps.LatLng(24.74993 ,67.00598),new google.maps.LatLng(25.47380 ,66.87007),new google.maps.LatLng(25.77599 ,66.98503),new google.maps.LatLng(25.27858 ,68.30082),new google.maps.LatLng(25.11636 ,66.84837),new google.maps.LatLng(25.32552 ,68.11088),new google.maps.LatLng(24.45610 ,65.90503),new google.maps.LatLng(25.06923 ,66.12855),new google.maps.LatLng(24.62273 ,67.81811),new google.maps.LatLng(23.89395 ,66.82379),new google.maps.LatLng(23.90677 ,66.54541),new google.maps.LatLng(25.78655 ,67.72946),new google.maps.LatLng(24.16055 ,67.29182),new google.maps.LatLng(24.39052 ,68.00525),new google.maps.LatLng(26.09935 ,67.67484),new google.maps.LatLng(23.85504 ,67.58610),new google.maps.LatLng(24.24546 ,68.16043),new google.maps.LatLng(23.87439 ,66.66593),new google.maps.LatLng(24.65086 ,66.13301),new google.maps.LatLng(24.90269 ,67.81360),new google.maps.LatLng(24.26429 ,67.24942),new google.maps.LatLng(25.22419 ,68.02044),new google.maps.LatLng(24.26951 ,66.08806),new google.maps.LatLng(25.73287 ,66.21237),new google.maps.LatLng(24.21978 ,66.10645),new google.maps.LatLng(24.86912 ,67.92464),new google.maps.LatLng(25.52712 ,66.90168),new google.maps.LatLng(25.96006 ,67.81554),new google.maps.LatLng(25.42359 ,66.36220),new google.maps.LatLng(25.29935 ,66.26026),new google.maps.LatLng(25.65376 ,66.54051),new google.maps.LatLng(24.64478 ,68.26645),new google.maps.LatLng(25.78849 ,67.34494),new google.maps.LatLng(25.98939 ,67.35896),new google.maps.LatLng(24.29902 ,68.02684),new google.maps.LatLng(25.46980 ,66.92815),new google.maps.LatLng(23.89654 ,67.47565),new google.maps.LatLng(24.30846 ,67.76511),new google.maps.LatLng(25.23805 ,67.66929),new google.maps.LatLng(23.93647 ,66.93862),new google.maps.LatLng(24.39363 ,67.52373),new google.maps.LatLng(25.46444 ,67.21233),new google.maps.LatLng(25.61914 ,67.68491),new google.maps.LatLng(25.17821 ,66.06170),new google.maps.LatLng(24.66741 ,66.54685),new google.maps.LatLng(25.36753 ,67.06021),new google.maps.LatLng(24.85352 ,67.91872),new google.maps.LatLng(24.84459 ,68.20614),new google.maps.LatLng(24.83701 ,66.59402),new google.maps.LatLng(24.29966 ,68.17723),new google.maps.LatLng(25.31036 ,66.45607),new google.maps.LatLng(25.56599 ,67.94611),new google.maps.LatLng(23.80578 ,66.45714),new google.maps.LatLng(24.84545 ,66.38790),new google.maps.LatLng(25.87363 ,67.75814),new google.maps.LatLng(25.32221 ,67.60936),new google.maps.LatLng(24.35727 ,66.83232),new google.maps.LatLng(25.20779 ,66.79473),new google.maps.LatLng(24.27814 ,67.44942),new google.maps.LatLng(24.64644 ,65.98854),new google.maps.LatLng(25.64644 ,66.93995),new google.maps.LatLng(24.71603 ,66.91328),new google.maps.LatLng(24.48721 ,67.86607),new google.maps.LatLng(24.17008 ,67.39379),new google.maps.LatLng(25.55969 ,67.00764),new google.maps.LatLng(25.50552 ,67.66934),new google.maps.LatLng(24.39582 ,68.06945),new google.maps.LatLng(24.45717 ,67.74842),new google.maps.LatLng(25.16772 ,65.92110),new google.maps.LatLng(24.94586 ,67.18219),new google.maps.LatLng(24.65416 ,66.55458),new google.maps.LatLng(23.94822 ,66.31251),new google.maps.LatLng(24.10936 ,67.99110),new google.maps.LatLng(24.66354 ,67.91061),new google.maps.LatLng(24.33798 ,68.04711),new google.maps.LatLng(24.99488 ,67.21680),new google.maps.LatLng(24.26611 ,68.16727),new google.maps.LatLng(24.29604 ,68.12537),new google.maps.LatLng(25.20736 ,66.61185),new google.maps.LatLng(25.13461 ,67.17006),new google.maps.LatLng(24.45838 ,68.25704),new google.maps.LatLng(24.73614 ,68.25945),new google.maps.LatLng(24.63802 ,66.15362),new google.maps.LatLng(24.62819 ,66.71157),new google.maps.LatLng(24.50033 ,66.66416),new google.maps.LatLng(25.45175 ,66.58511),new google.maps.LatLng(24.34558 ,66.78578),new google.maps.LatLng(24.98609 ,67.34414),new google.maps.LatLng(25.32464 ,66.33576),new google.maps.LatLng(25.14363 ,68.26150),new google.maps.LatLng(25.95026 ,67.63858),new google.maps.LatLng(25.41369 ,67.40199),new google.maps.LatLng(25.09293 ,66.73808),new google.maps.LatLng(25.17331 ,67.63217),new google.maps.LatLng(24.97704 ,66.63547),new google.maps.LatLng(25.37482 ,66.86052),new google.maps.LatLng(24.61603 ,65.91354),new google.maps.LatLng(24.63247 ,66.23023),new google.maps.LatLng(24.85422 ,66.87950),new google.maps.LatLng(25.92391 ,66.53651),new google.maps.LatLng(25.22535 ,67.03828),new google.maps.LatLng(25.10005 ,67.10105),new google.maps.LatLng(25.61454 ,67.10647),new google.maps.LatLng(24.16565 ,66.23560),new google.maps.LatLng(24.46524 ,67.43764),new google.maps.LatLng(24.02687 ,66.27508),new google.maps.LatLng(24.75641 ,66.41546),new google.maps.LatLng(24.56183 ,66.48763),new google.maps.LatLng(25.65448 ,66.79382),new google.maps.LatLng(24.50443 ,66.57966),new google.maps.LatLng(24.21343 ,66.32748),new google.maps.LatLng(24.48550 ,66.72607),new google.maps.LatLng(25.60997 ,66.42267),new google.maps.LatLng(24.63652 ,67.29675),new google.maps.LatLng(25.42879 ,67.29244),new google.maps.LatLng(25.84001 ,66.24565),new google.maps.LatLng(24.29013 ,66.67241),new google.maps.LatLng(25.61368 ,67.70623),new google.maps.LatLng(24.85776 ,67.80501),new google.maps.LatLng(25.78044 ,66.75394),new google.maps.LatLng(24.17045 ,67.58970),new google.maps.LatLng(24.42723 ,66.39641),new google.maps.LatLng(26.18031 ,67.38524),new google.maps.LatLng(26.03103 ,66.47024),new google.maps.LatLng(25.68073 ,66.37186),new google.maps.LatLng(25.57720 ,66.99284),new google.maps.LatLng(24.56786 ,66.83031),new google.maps.LatLng(24.14907 ,66.10533),new google.maps.LatLng(24.31387 ,66.80155),new google.maps.LatLng(25.37968 ,68.10151),new google.maps.LatLng(25.89077 ,66.23652),new google.maps.LatLng(24.65573 ,66.06568),new google.maps.LatLng(24.22979 ,66.22461),new google.maps.LatLng(24.16562 ,66.77568),new google.maps.LatLng(24.23685 ,66.39293),new google.maps.LatLng(25.61453 ,65.98908),new google.maps.LatLng(24.14150 ,67.46879),new google.maps.LatLng(25.93646 ,66.35710),new google.maps.LatLng(25.30120 ,68.02329),new google.maps.LatLng(25.16072 ,67.91086),new google.maps.LatLng(24.96113 ,67.16979),new google.maps.LatLng(25.47377 ,65.95639),new google.maps.LatLng(24.53016 ,66.31831),new google.maps.LatLng(25.28225 ,66.95810),new google.maps.LatLng(23.72160 ,66.86472),new google.maps.LatLng(23.72982 ,67.40408),new google.maps.LatLng(25.29502 ,67.28638),new google.maps.LatLng(25.75150 ,67.33134),new google.maps.LatLng(25.33659 ,66.53209),new google.maps.LatLng(24.77132 ,66.51418),new google.maps.LatLng(25.04793 ,66.70986),new google.maps.LatLng(23.97129 ,66.30174),new google.maps.LatLng(25.45256 ,67.79562),new google.maps.LatLng(24.64570 ,67.52613),new google.maps.LatLng(24.43151 ,66.83350),new google.maps.LatLng(25.33952 ,68.20016),new google.maps.LatLng(25.22318 ,65.95722),new google.maps.LatLng(25.44128 ,68.17165),new google.maps.LatLng(25.01591 ,67.79491),new google.maps.LatLng(24.62723 ,66.26587),new google.maps.LatLng(25.48324 ,65.97838),new google.maps.LatLng(23.95088 ,67.29424),new google.maps.LatLng(24.99505 ,66.26129),new google.maps.LatLng(26.17165 ,66.84289),new google.maps.LatLng(25.13265 ,66.78678),new google.maps.LatLng(23.93713 ,67.30082),new google.maps.LatLng(25.38718 ,67.34668),new google.maps.LatLng(25.81871 ,67.73586),new google.maps.LatLng(24.23903 ,67.05094),new google.maps.LatLng(24.27129 ,67.63064),new google.maps.LatLng(26.09722 ,66.61126),new google.maps.LatLng(25.33923 ,66.68066),new google.maps.LatLng(25.63606 ,68.13744),new google.maps.LatLng(24.25608 ,67.93224),new google.maps.LatLng(24.63241 ,66.94932),new google.maps.LatLng(25.20954 ,67.84449),new google.maps.LatLng(25.87427 ,67.71506),new google.maps.LatLng(26.07582 ,66.71003),new google.maps.LatLng(25.67614 ,68.07628),new google.maps.LatLng(24.59952 ,66.46019),new google.maps.LatLng(25.67140 ,67.16588),new google.maps.LatLng(24.75155 ,66.73179),new google.maps.LatLng(23.93626 ,66.38627),new google.maps.LatLng(25.38985 ,66.69133),new google.maps.LatLng(24.71417 ,67.36480),new google.maps.LatLng(24.13306 ,66.74596),new google.maps.LatLng(24.74546 ,67.87111),new google.maps.LatLng(24.12942 ,67.52530),new google.maps.LatLng(24.50399 ,67.66023),new google.maps.LatLng(25.99365 ,66.33499),new google.maps.LatLng(24.03014 ,66.40128),new google.maps.LatLng(25.44592 ,66.63090),new google.maps.LatLng(23.89402 ,66.46921),new google.maps.LatLng(24.90508 ,67.34723),new google.maps.LatLng(25.96134 ,67.13628),new google.maps.LatLng(25.08381 ,67.68110),new google.maps.LatLng(26.01041 ,67.06918),new google.maps.LatLng(25.92847 ,67.68296),new google.maps.LatLng(24.58465 ,67.95756),new google.maps.LatLng(24.71556 ,66.63157),new google.maps.LatLng(23.85866 ,66.72720),new google.maps.LatLng(23.96111 ,67.49285),new google.maps.LatLng(25.40357 ,66.83062),new google.maps.LatLng(24.09763 ,67.01393),new google.maps.LatLng(24.91867 ,67.21332),new google.maps.LatLng(23.73025 ,66.85509),new google.maps.LatLng(25.42351 ,66.87823),new google.maps.LatLng(25.89162 ,66.28534),new google.maps.LatLng(24.60807 ,66.04795),new google.maps.LatLng(24.37893 ,68.15328),new google.maps.LatLng(25.22441 ,66.88155),new google.maps.LatLng(25.45672 ,67.12675),new google.maps.LatLng(24.64856 ,67.07688),new google.maps.LatLng(24.52659 ,66.26061),new google.maps.LatLng(26.01146 ,67.47088),new google.maps.LatLng(25.56909 ,66.12598),new google.maps.LatLng(24.28182 ,65.98718),new google.maps.LatLng(24.63818 ,66.68154),new google.maps.LatLng(24.09536 ,67.22850),new google.maps.LatLng(23.76043 ,66.83417),new google.maps.LatLng(24.63521 ,66.82686),new google.maps.LatLng(25.35855 ,66.75295),new google.maps.LatLng(26.18819 ,66.98193),new google.maps.LatLng(25.57212 ,66.68319),new google.maps.LatLng(25.72473 ,67.48508),new google.maps.LatLng(24.78064 ,66.95452),new google.maps.LatLng(25.71460 ,67.07978),new google.maps.LatLng(25.90755 ,67.86571),new google.maps.LatLng(24.53511 ,67.64595),new google.maps.LatLng(25.64073 ,66.94428),new google.maps.LatLng(26.15598 ,66.74045),new google.maps.LatLng(25.00986 ,67.97221),new google.maps.LatLng(24.10410 ,66.84192),new google.maps.LatLng(24.59623 ,65.89989),new google.maps.LatLng(23.82457 ,67.18878),new google.maps.LatLng(25.06042 ,67.08077),new google.maps.LatLng(24.17988 ,67.55221),new google.maps.LatLng(25.78670 ,67.56017),new google.maps.LatLng(25.24723 ,67.11351),new google.maps.LatLng(25.02356 ,67.69074),new google.maps.LatLng(25.62954 ,67.69322),new google.maps.LatLng(25.33958 ,66.10766),new google.maps.LatLng(25.13071 ,67.00420),new google.maps.LatLng(25.20471 ,67.53018),new google.maps.LatLng(23.87099 ,66.86486),new google.maps.LatLng(24.93346 ,68.17596),new google.maps.LatLng(25.75461 ,66.22546),new google.maps.LatLng(24.93324 ,66.89972),new google.maps.LatLng(25.11396 ,66.84610),new google.maps.LatLng(23.82843 ,67.14006),new google.maps.LatLng(24.99624 ,66.30470),new google.maps.LatLng(25.45426 ,66.62690),new google.maps.LatLng(24.02223 ,67.21058),new google.maps.LatLng(24.77884 ,66.16542),new google.maps.LatLng(24.69518 ,66.23336),new google.maps.LatLng(24.21007 ,66.27434),new google.maps.LatLng(24.22596 ,66.81388),new google.maps.LatLng(25.10258 ,65.87476),new google.maps.LatLng(23.93025 ,67.10278),new google.maps.LatLng(24.62094 ,67.07572),new google.maps.LatLng(24.04800 ,66.70458),new google.maps.LatLng(24.38425 ,66.74213),new google.maps.LatLng(25.02787 ,67.01214),new google.maps.LatLng(25.57985 ,66.81450),new google.maps.LatLng(25.59645 ,67.98203),new google.maps.LatLng(25.24861 ,67.04509),new google.maps.LatLng(25.51379 ,66.98279),new google.maps.LatLng(24.61640 ,66.20089),new google.maps.LatLng(24.67324 ,66.32035),new google.maps.LatLng(24.20935 ,66.46456),new google.maps.LatLng(25.56737 ,67.76190),new google.maps.LatLng(24.24364 ,66.92525),new google.maps.LatLng(24.50532 ,67.08339),new google.maps.LatLng(24.57247 ,66.91416),new google.maps.LatLng(24.82808 ,66.22170),new google.maps.LatLng(24.50881 ,68.24599),new google.maps.LatLng(24.91579 ,67.46656),new google.maps.LatLng(24.96389 ,66.31588),new google.maps.LatLng(24.93009 ,66.24812),new google.maps.LatLng(24.31578 ,67.16957),new google.maps.LatLng(25.96385 ,67.41926),new google.maps.LatLng(24.09586 ,67.63855),new google.maps.LatLng(24.14688 ,66.36494),new google.maps.LatLng(24.68999 ,67.13205),new google.maps.LatLng(24.15476 ,66.96864),new google.maps.LatLng(24.79906 ,67.03090),new google.maps.LatLng(25.87753 ,67.39471),new google.maps.LatLng(24.48642 ,68.08776),new google.maps.LatLng(25.27986 ,66.71017),new google.maps.LatLng(23.99030 ,67.27720),new google.maps.LatLng(25.13065 ,68.30327),new google.maps.LatLng(24.45122 ,65.99684),new google.maps.LatLng(25.37994 ,67.98176),new google.maps.LatLng(25.31958 ,67.76850),new google.maps.LatLng(24.18442 ,66.75225),new google.maps.LatLng(25.59455 ,68.10141),new google.maps.LatLng(23.78007 ,66.91194),new google.maps.LatLng(25.44005 ,66.99865),new google.maps.LatLng(25.22461 ,67.46641),new google.maps.LatLng(25.58667 ,66.33357),new google.maps.LatLng(24.88012 ,65.93658),new google.maps.LatLng(24.70980 ,66.01537),new google.maps.LatLng(25.29206 ,68.04267),new google.maps.LatLng(25.47027 ,67.82147),new google.maps.LatLng(25.37241 ,67.42201),new google.maps.LatLng(24.69254 ,67.83879),new google.maps.LatLng(24.24590 ,66.22090),new google.maps.LatLng(25.22573 ,67.94962),new google.maps.LatLng(25.38603 ,68.09746),new google.maps.LatLng(23.84498 ,67.28079),new google.maps.LatLng(23.79678 ,66.53572),new google.maps.LatLng(24.20581 ,68.03580),new google.maps.LatLng(25.16852 ,66.54394),new google.maps.LatLng(23.83770 ,67.66480),new google.maps.LatLng(24.40401 ,66.39455),new google.maps.LatLng(25.32767 ,67.82714),new google.maps.LatLng(25.86874 ,66.40423),new google.maps.LatLng(25.32805 ,67.49691),new google.maps.LatLng(24.35887 ,67.08264),new google.maps.LatLng(24.59851 ,66.55779),new google.maps.LatLng(24.00886 ,67.14892),new google.maps.LatLng(25.71661 ,67.39863),new google.maps.LatLng(24.58752 ,68.27110),new google.maps.LatLng(25.17001 ,68.16342),new google.maps.LatLng(25.95114 ,67.67929),new google.maps.LatLng(24.43314 ,66.52540),new google.maps.LatLng(25.64229 ,67.92807),new google.maps.LatLng(25.39920 ,65.95916),new google.maps.LatLng(24.91756 ,66.11560),new google.maps.LatLng(25.94443 ,67.57550),new google.maps.LatLng(25.81082 ,67.59307),new google.maps.LatLng(26.18732 ,67.24670),new google.maps.LatLng(24.83205 ,67.54120),new google.maps.LatLng(25.21524 ,67.89435),new google.maps.LatLng(25.17408 ,68.06970),new google.maps.LatLng(24.73891 ,66.81631),new google.maps.LatLng(25.11088 ,67.03332),new google.maps.LatLng(24.32788 ,66.25932),new google.maps.LatLng(24.41917 ,66.83544),new google.maps.LatLng(25.02644 ,66.30658),new google.maps.LatLng(24.33033 ,66.90970),new google.maps.LatLng(24.84101 ,66.86329),new google.maps.LatLng(24.17893 ,67.31002),new google.maps.LatLng(25.03254 ,68.17435),new google.maps.LatLng(25.51464 ,65.97556),new google.maps.LatLng(25.51824 ,66.54424),new google.maps.LatLng(24.07182 ,66.38488),new google.maps.LatLng(25.14292 ,67.38143),new google.maps.LatLng(24.48292 ,68.09815),new google.maps.LatLng(24.02438 ,67.62153),new google.maps.LatLng(24.64316 ,67.29838),new google.maps.LatLng(25.47490 ,66.81020),new google.maps.LatLng(24.82692 ,66.23269),new google.maps.LatLng(25.13397 ,66.02665),new google.maps.LatLng(24.70463 ,66.06876),new google.maps.LatLng(25.59491 ,66.43476),new google.maps.LatLng(24.75118 ,66.43639),new google.maps.LatLng(24.75886 ,68.03224),new google.maps.LatLng(25.07476 ,67.07233),new google.maps.LatLng(24.42075 ,65.93110),new google.maps.LatLng(25.13072 ,67.83059),new google.maps.LatLng(25.79433 ,68.04776),new google.maps.LatLng(26.22574 ,66.82914),new google.maps.LatLng(25.64503 ,67.80585),new google.maps.LatLng(24.98190 ,67.15152),new google.maps.LatLng(25.87417 ,66.22057),new google.maps.LatLng(25.54193 ,67.82876),new google.maps.LatLng(24.39953 ,67.24888),new google.maps.LatLng(25.55598 ,66.13103),new google.maps.LatLng(24.28203 ,67.25275),new google.maps.LatLng(24.66196 ,66.90096),new google.maps.LatLng(26.11349 ,66.90217),new google.maps.LatLng(23.78195 ,67.27688),new google.maps.LatLng(24.93679 ,68.29178),new google.maps.LatLng(25.18055 ,67.97526),new google.maps.LatLng(25.75918 ,67.40929),new google.maps.LatLng(24.47708 ,66.86205),new google.maps.LatLng(24.08559 ,66.64296),new google.maps.LatLng(24.90584 ,67.65288),new google.maps.LatLng(24.30974 ,67.68435),new google.maps.LatLng(25.10622 ,67.32592),new google.maps.LatLng(25.62371 ,67.76167),new google.maps.LatLng(24.05851 ,67.48357),new google.maps.LatLng(25.47589 ,67.20191),new google.maps.LatLng(24.75643 ,66.18623),new google.maps.LatLng(24.25135 ,67.50997),new google.maps.LatLng(24.01763 ,66.58116),new google.maps.LatLng(24.55036 ,66.41587),new google.maps.LatLng(24.72540 ,67.09879),new google.maps.LatLng(24.43665 ,66.57157),new google.maps.LatLng(26.03239 ,67.64385),new google.maps.LatLng(25.89837 ,66.95734),new google.maps.LatLng(26.06288 ,67.09594),new google.maps.LatLng(24.46718 ,67.48068),new google.maps.LatLng(25.11255 ,68.19731),new google.maps.LatLng(24.46023 ,66.60426),new google.maps.LatLng(24.67078 ,67.65935),new google.maps.LatLng(26.09055 ,67.44616),new google.maps.LatLng(24.46707 ,67.66113),new google.maps.LatLng(24.64090 ,67.29903),new google.maps.LatLng(25.51259 ,67.79402),new google.maps.LatLng(26.08348 ,66.84743),new google.maps.LatLng(26.15330 ,66.70310),new google.maps.LatLng(24.30633 ,67.26176),new google.maps.LatLng(24.87827 ,66.21402),new google.maps.LatLng(24.98153 ,67.59324),new google.maps.LatLng(26.21990 ,67.24629),new google.maps.LatLng(25.51697 ,67.87965),new google.maps.LatLng(24.52662 ,67.41720),new google.maps.LatLng(25.17272 ,67.04467),new google.maps.LatLng(25.32272 ,66.69249),new google.maps.LatLng(25.27962 ,66.68846),new google.maps.LatLng(24.00345 ,66.41006),new google.maps.LatLng(24.47830 ,67.83601),new google.maps.LatLng(24.92572 ,67.96061),new google.maps.LatLng(25.50023 ,67.69927),new google.maps.LatLng(24.21993 ,67.81621),new google.maps.LatLng(24.94678 ,66.99815),new google.maps.LatLng(24.49778 ,67.56443),new google.maps.LatLng(25.13840 ,66.91563),new google.maps.LatLng(24.42412 ,66.14654),new google.maps.LatLng(24.77338 ,66.70203),new google.maps.LatLng(24.55612 ,66.37925),new google.maps.LatLng(24.78666 ,66.28676),new google.maps.LatLng(24.25101 ,67.43438),new google.maps.LatLng(25.40355 ,67.57117),new google.maps.LatLng(25.45445 ,67.73631),new google.maps.LatLng(25.93861 ,66.90424),new google.maps.LatLng(25.33505 ,66.82613),new google.maps.LatLng(26.03258 ,66.65718),new google.maps.LatLng(25.41706 ,67.66974),new google.maps.LatLng(25.35725 ,68.24375),new google.maps.LatLng(24.40013 ,65.99850),new google.maps.LatLng(26.15800 ,67.28628),new google.maps.LatLng(25.66695 ,66.19609),new google.maps.LatLng(24.75824 ,66.45367),new google.maps.LatLng(25.41194 ,67.68116),new google.maps.LatLng(25.98206 ,67.61571),new google.maps.LatLng(25.04540 ,68.18344),new google.maps.LatLng(24.86758 ,66.65137),new google.maps.LatLng(24.62316 ,67.78339),new google.maps.LatLng(24.17296 ,66.07484),new google.maps.LatLng(24.52836 ,66.68436),new google.maps.LatLng(24.44659 ,66.83384),new google.maps.LatLng(25.33992 ,67.11179),new google.maps.LatLng(25.38701 ,66.61807),new google.maps.LatLng(25.61916 ,67.65372),new google.maps.LatLng(25.70047 ,66.16927),new google.maps.LatLng(25.91723 ,66.43999),new google.maps.LatLng(25.67556 ,67.97841),new google.maps.LatLng(26.00108 ,67.63963),new google.maps.LatLng(25.63624 ,66.62557),new google.maps.LatLng(25.65917 ,66.97379),new google.maps.LatLng(24.97545 ,68.17585),new google.maps.LatLng(24.46261 ,66.22962),new google.maps.LatLng(25.87265 ,67.39994),new google.maps.LatLng(24.28208 ,67.70904),new google.maps.LatLng(25.68799 ,68.10261),new google.maps.LatLng(25.54644 ,66.59267),new google.maps.LatLng(25.96901 ,67.85399),new google.maps.LatLng(24.58512 ,67.01251),new google.maps.LatLng(24.69805 ,68.27202),new google.maps.LatLng(24.55726 ,66.94639),new google.maps.LatLng(23.80120 ,67.04451),new google.maps.LatLng(24.80798 ,67.84008),new google.maps.LatLng(25.07375 ,67.84762),new google.maps.LatLng(25.07500 ,67.58042),new google.maps.LatLng(24.94098 ,67.59116),new google.maps.LatLng(24.04893 ,66.61007),new google.maps.LatLng(24.02972 ,66.61779),new google.maps.LatLng(24.94608 ,68.30273),new google.maps.LatLng(23.78467 ,67.39697),new google.maps.LatLng(24.30964 ,67.14449),new google.maps.LatLng(24.48649 ,67.91687),new google.maps.LatLng(23.93108 ,66.58427),new google.maps.LatLng(24.84964 ,67.21860),new google.maps.LatLng(24.53932 ,66.28264),new google.maps.LatLng(25.50835 ,66.01893),new google.maps.LatLng(25.96132 ,66.79492),new google.maps.LatLng(25.10890 ,66.28072),new google.maps.LatLng(25.60512 ,66.25357),new google.maps.LatLng(24.15622 ,68.02950),new google.maps.LatLng(25.48086 ,68.19607),new google.maps.LatLng(25.46058 ,67.93496),new google.maps.LatLng(25.00189 ,68.27294),new google.maps.LatLng(25.47537 ,66.98441),new google.maps.LatLng(26.16576 ,67.07805),new google.maps.LatLng(24.83289 ,68.07863),new google.maps.LatLng(24.81007 ,67.21062),new google.maps.LatLng(25.37177 ,66.75442),new google.maps.LatLng(24.78136 ,68.27379),new google.maps.LatLng(24.87022 ,66.28364),new google.maps.LatLng(23.67161 ,66.99370),new google.maps.LatLng(24.97941 ,65.81461),new google.maps.LatLng(24.22379 ,66.77967),new google.maps.LatLng(26.03570 ,66.71371),new google.maps.LatLng(23.89848 ,67.20781),new google.maps.LatLng(25.64544 ,67.46348),new google.maps.LatLng(24.59081 ,66.15143),new google.maps.LatLng(25.17065 ,68.12032),new google.maps.LatLng(24.01535 ,67.57469),new google.maps.LatLng(24.13891 ,67.38659),new google.maps.LatLng(24.76300 ,68.21757),new google.maps.LatLng(25.10076 ,66.85493),new google.maps.LatLng(24.53153 ,66.42682),new google.maps.LatLng(24.28241 ,66.35447),new google.maps.LatLng(25.24791 ,65.88542),new google.maps.LatLng(26.01124 ,67.07402),new google.maps.LatLng(24.49685 ,66.76694),new google.maps.LatLng(23.96772 ,67.03788),new google.maps.LatLng(24.62275 ,67.97577),new google.maps.LatLng(25.12708 ,66.39170),new google.maps.LatLng(26.13580 ,66.63111),new google.maps.LatLng(24.17311 ,68.09831),new google.maps.LatLng(25.67188 ,66.52118),new google.maps.LatLng(25.11752 ,66.38506),new google.maps.LatLng(24.62457 ,67.58829),new google.maps.LatLng(25.75403 ,67.04285),new google.maps.LatLng(24.70048 ,68.13446),new google.maps.LatLng(23.87410 ,67.70148),new google.maps.LatLng(25.34449 ,68.06395),new google.maps.LatLng(25.86746 ,67.52893),new google.maps.LatLng(25.54058 ,66.43906),new google.maps.LatLng(24.16046 ,66.24116),new google.maps.LatLng(24.79928 ,67.02749),new google.maps.LatLng(25.33745 ,66.44304),new google.maps.LatLng(24.57289 ,68.10798),new google.maps.LatLng(25.18393 ,68.15635),new google.maps.LatLng(25.05410 ,65.89162),new google.maps.LatLng(25.22706 ,65.92253),new google.maps.LatLng(25.33814 ,66.03505),new google.maps.LatLng(23.77194 ,66.83274),new google.maps.LatLng(23.75226 ,66.70123),new google.maps.LatLng(25.18469 ,67.41820),new google.maps.LatLng(24.47764 ,67.76658),new google.maps.LatLng(24.83186 ,67.46350),new google.maps.LatLng(23.92510 ,67.15966),new google.maps.LatLng(24.05115 ,66.47633),new google.maps.LatLng(24.13036 ,67.79714),new google.maps.LatLng(25.88690 ,66.40212),new google.maps.LatLng(24.84003 ,67.97451),new google.maps.LatLng(23.96445 ,67.70419),new google.maps.LatLng(24.18263 ,66.93139),new google.maps.LatLng(24.17805 ,67.14127),new google.maps.LatLng(24.48650 ,67.94809),new google.maps.LatLng(25.73065 ,66.42490),new google.maps.LatLng(25.50517 ,68.22552),new google.maps.LatLng(26.18104 ,67.21854),new google.maps.LatLng(23.83260 ,67.08584),new google.maps.LatLng(25.04486 ,67.33330),new google.maps.LatLng(24.09359 ,67.45614),new google.maps.LatLng(25.87656 ,66.95750),new google.maps.LatLng(24.39472 ,67.41235),new google.maps.LatLng(24.76432 ,67.49570),new google.maps.LatLng(24.96506 ,67.94874),new google.maps.LatLng(25.40838 ,67.87481),new google.maps.LatLng(24.45735 ,67.30400),new google.maps.LatLng(25.06665 ,66.98991),new google.maps.LatLng(25.67362 ,67.35790),new google.maps.LatLng(24.45286 ,67.27158),new google.maps.LatLng(25.41120 ,67.64333),new google.maps.LatLng(24.10772 ,67.01101),new google.maps.LatLng(24.32522 ,67.80592),new google.maps.LatLng(24.35879 ,67.58520),new google.maps.LatLng(25.26757 ,66.06857),new google.maps.LatLng(24.74439 ,67.21496),new google.maps.LatLng(25.78232 ,67.39423),new google.maps.LatLng(25.29429 ,67.37481),new google.maps.LatLng(24.78537 ,67.07450),new google.maps.LatLng(24.98920 ,67.05488),new google.maps.LatLng(24.72347 ,66.70463),new google.maps.LatLng(25.13433 ,66.71139),new google.maps.LatLng(24.40262 ,67.29352),new google.maps.LatLng(24.23489 ,67.07767),new google.maps.LatLng(23.99521 ,66.73522),new google.maps.LatLng(24.88659 ,67.59154),new google.maps.LatLng(25.35860 ,67.30383),new google.maps.LatLng(24.25751 ,67.72661),new google.maps.LatLng(25.17755 ,66.91008),new google.maps.LatLng(25.73090 ,67.18363),new google.maps.LatLng(24.25560 ,67.16162),new google.maps.LatLng(24.07459 ,67.76441),new google.maps.LatLng(23.89838 ,66.80967),new google.maps.LatLng(24.45928 ,66.79105),new google.maps.LatLng(25.31121 ,65.99277),new google.maps.LatLng(24.51301 ,67.52817),new google.maps.LatLng(25.03676 ,66.21852),new google.maps.LatLng(25.59484 ,66.57620),new google.maps.LatLng(25.42651 ,68.16275),new google.maps.LatLng(24.86925 ,66.64529),new google.maps.LatLng(25.27306 ,67.70372),new google.maps.LatLng(24.85749 ,67.96538),new google.maps.LatLng(24.71313 ,67.93958),new google.maps.LatLng(24.14610 ,67.59184),new google.maps.LatLng(25.91235 ,67.86477),new google.maps.LatLng(24.32745 ,66.33337),new google.maps.LatLng(26.00106 ,67.06654),new google.maps.LatLng(24.90571 ,66.12447),new google.maps.LatLng(25.65992 ,68.03298),new google.maps.LatLng(24.41080 ,67.38150),new google.maps.LatLng(25.86006 ,66.17286),new google.maps.LatLng(25.93014 ,66.87597),new google.maps.LatLng(24.65011 ,67.66115),new google.maps.LatLng(25.01449 ,65.94895),new google.maps.LatLng(24.40369 ,67.07916),new google.maps.LatLng(25.68318 ,67.17434),new google.maps.LatLng(24.98826 ,66.12085),new google.maps.LatLng(26.12561 ,66.63732),new google.maps.LatLng(23.80530 ,66.55141),new google.maps.LatLng(25.47270 ,66.82349),new google.maps.LatLng(24.51866 ,67.87053),new google.maps.LatLng(25.25036 ,67.50108),new google.maps.LatLng(24.19660 ,67.49108),new google.maps.LatLng(24.35283 ,67.42056),new google.maps.LatLng(24.89373 ,68.32161),new google.maps.LatLng(25.74585 ,67.88086),new google.maps.LatLng(24.71037 ,67.60485),new google.maps.LatLng(25.00259 ,67.09283),new google.maps.LatLng(24.96801 ,67.19032),new google.maps.LatLng(24.44571 ,68.00650),new google.maps.LatLng(24.50508 ,67.77292),new google.maps.LatLng(24.96861 ,67.84131),new google.maps.LatLng(25.82954 ,66.50921),new google.maps.LatLng(24.47119 ,67.06511),new google.maps.LatLng(25.40314 ,66.57575),new google.maps.LatLng(24.31254 ,67.66531),new google.maps.LatLng(25.62121 ,67.35092),new google.maps.LatLng(24.14131 ,68.06436),new google.maps.LatLng(25.21669 ,67.70489),new google.maps.LatLng(23.92460 ,66.55971),new google.maps.LatLng(24.29901 ,67.21968),new google.maps.LatLng(25.85798 ,66.94945),new google.maps.LatLng(24.12059 ,67.59970),new google.maps.LatLng(24.42534 ,68.18345),new google.maps.LatLng(24.61496 ,66.21582),new google.maps.LatLng(24.03308 ,66.87971),new google.maps.LatLng(25.49479 ,67.51881),new google.maps.LatLng(23.97895 ,67.33613),new google.maps.LatLng(24.41736 ,66.81721),new google.maps.LatLng(24.41362 ,68.01983),new google.maps.LatLng(25.49742 ,65.94775),new google.maps.LatLng(25.40150 ,66.81950),new google.maps.LatLng(25.76596 ,67.65876),new google.maps.LatLng(25.74704 ,67.43233),new google.maps.LatLng(26.04686 ,66.61308),new google.maps.LatLng(25.59892 ,66.50285),new google.maps.LatLng(24.84997 ,68.33072),new google.maps.LatLng(25.99278 ,67.43699),new google.maps.LatLng(25.25774 ,68.13404),new google.maps.LatLng(24.83359 ,67.17392),new google.maps.LatLng(25.94323 ,66.80205),new google.maps.LatLng(25.64281 ,66.90115),new google.maps.LatLng(26.07045 ,67.31273),new google.maps.LatLng(25.08625 ,66.89872),new google.maps.LatLng(25.31855 ,68.25020),new google.maps.LatLng(24.06288 ,67.48808),new google.maps.LatLng(24.61437 ,66.95871),new google.maps.LatLng(25.27486 ,67.00018),new google.maps.LatLng(25.44012 ,68.06855),new google.maps.LatLng(24.26804 ,66.52504),new google.maps.LatLng(25.09874 ,67.83599),new google.maps.LatLng(26.09606 ,66.88461),new google.maps.LatLng(25.36517 ,68.14833),new google.maps.LatLng(25.98609 ,67.72016),new google.maps.LatLng(24.31456 ,66.18320),new google.maps.LatLng(25.62499 ,67.77084),new google.maps.LatLng(26.04884 ,67.03300),new google.maps.LatLng(24.14626 ,67.32863),new google.maps.LatLng(24.51345 ,67.50404),new google.maps.LatLng(24.66808 ,65.97208),new google.maps.LatLng(24.73922 ,67.41416),new google.maps.LatLng(24.61499 ,67.71828),new google.maps.LatLng(24.51238 ,66.94221),new google.maps.LatLng(25.71247 ,67.97785),new google.maps.LatLng(24.24101 ,67.71197),new google.maps.LatLng(25.66154 ,66.24252),new google.maps.LatLng(24.98232 ,67.43314),new google.maps.LatLng(25.58551 ,66.44049),new google.maps.LatLng(24.50489 ,65.95715),new google.maps.LatLng(24.76850 ,68.27624),new google.maps.LatLng(24.14160 ,66.81110),new google.maps.LatLng(26.02475 ,66.45347),new google.maps.LatLng(25.61696 ,67.03633),new google.maps.LatLng(25.84085 ,67.15738),new google.maps.LatLng(24.81854 ,66.61508),new google.maps.LatLng(24.35276 ,66.28126),new google.maps.LatLng(24.30543 ,66.08128),new google.maps.LatLng(25.94978 ,66.67791),new google.maps.LatLng(25.55325 ,67.76928),new google.maps.LatLng(26.01600 ,67.72548),new google.maps.LatLng(25.86790 ,66.43090),new google.maps.LatLng(25.20511 ,66.19764),new google.maps.LatLng(24.69504 ,66.46801),new google.maps.LatLng(23.96336 ,66.67568),new google.maps.LatLng(25.94992 ,66.44554),new google.maps.LatLng(24.25998 ,66.13280),new google.maps.LatLng(24.53286 ,66.05609),new google.maps.LatLng(25.69804 ,68.08224),new google.maps.LatLng(24.86405 ,66.51194),new google.maps.LatLng(25.36058 ,68.17682),new google.maps.LatLng(24.22712 ,67.01397),new google.maps.LatLng(25.69007 ,66.31268),new google.maps.LatLng(24.50552 ,66.70315),new google.maps.LatLng(25.06760 ,67.61313),new google.maps.LatLng(24.52579 ,67.14502),new google.maps.LatLng(25.99590 ,67.27558),new google.maps.LatLng(25.78108 ,66.50092),new google.maps.LatLng(25.40112 ,66.99730),new google.maps.LatLng(25.57535 ,67.01313),new google.maps.LatLng(25.68460 ,67.21248),new google.maps.LatLng(25.09028 ,66.91856),new google.maps.LatLng(24.20053 ,67.53160),new google.maps.LatLng(25.09654 ,68.01161),new google.maps.LatLng(24.61547 ,68.17305),new google.maps.LatLng(24.17750 ,66.51495),new google.maps.LatLng(23.96583 ,66.86722),new google.maps.LatLng(24.95630 ,66.99471),new google.maps.LatLng(25.33884 ,65.98299),new google.maps.LatLng(26.07532 ,67.20506),new google.maps.LatLng(24.82692 ,67.85620),new google.maps.LatLng(24.79673 ,68.21954),new google.maps.LatLng(24.88062 ,66.83772),new google.maps.LatLng(24.16369 ,67.52241),new google.maps.LatLng(26.16711 ,66.91671),new google.maps.LatLng(25.16126 ,66.29522),new google.maps.LatLng(25.83597 ,66.80606),new google.maps.LatLng(25.79227 ,66.17598),new google.maps.LatLng(24.53782 ,66.58951),new google.maps.LatLng(24.36493 ,67.16988),new google.maps.LatLng(25.42771 ,66.51162),new google.maps.LatLng(24.03192 ,66.41315),new google.maps.LatLng(25.72549 ,66.59827),new google.maps.LatLng(25.28182 ,67.45304),new google.maps.LatLng(25.14011 ,66.21050),new google.maps.LatLng(25.68394 ,67.69000),new google.maps.LatLng(25.58015 ,67.84311),new google.maps.LatLng(24.90645 ,65.91314),new google.maps.LatLng(25.04860 ,66.90672),new google.maps.LatLng(24.29008 ,66.12220),new google.maps.LatLng(25.99572 ,67.33142),new google.maps.LatLng(24.74121 ,67.87262),new google.maps.LatLng(25.97474 ,67.40228),new google.maps.LatLng(24.83378 ,67.11102),new google.maps.LatLng(25.45578 ,67.10575),new google.maps.LatLng(26.09505 ,66.91270),new google.maps.LatLng(24.92380 ,68.22501),new google.maps.LatLng(24.62837 ,67.62325),new google.maps.LatLng(24.88847 ,67.05375),new google.maps.LatLng(23.73615 ,66.88996),new google.maps.LatLng(24.46561 ,66.56375),new google.maps.LatLng(25.36639 ,68.02728),new google.maps.LatLng(25.23644 ,67.86471),new google.maps.LatLng(24.84382 ,67.75747),new google.maps.LatLng(23.98937 ,66.51301),new google.maps.LatLng(23.96430 ,67.31068),new google.maps.LatLng(24.20046 ,67.32563),new google.maps.LatLng(24.68170 ,68.14385),new google.maps.LatLng(25.35979 ,67.72852),new google.maps.LatLng(25.54781 ,65.91846),new google.maps.LatLng(24.94412 ,67.20049),new google.maps.LatLng(24.49575 ,67.15390),new google.maps.LatLng(24.62879 ,67.17346),new google.maps.LatLng(25.40555 ,67.04673),new google.maps.LatLng(24.78677 ,68.04064),new google.maps.LatLng(25.17066 ,67.13167),new google.maps.LatLng(25.28013 ,66.31184),new google.maps.LatLng(24.72484 ,66.21769),new google.maps.LatLng(24.62759 ,67.61393),new google.maps.LatLng(24.75151 ,66.88336),new google.maps.LatLng(24.67106 ,66.11317),new google.maps.LatLng(24.97535 ,67.57401),new google.maps.LatLng(25.21060 ,66.01666),new google.maps.LatLng(25.99171 ,66.89135),new google.maps.LatLng(25.93049 ,67.49612),new google.maps.LatLng(24.60374 ,67.10549),new google.maps.LatLng(24.54389 ,66.95423),new google.maps.LatLng(25.33222 ,68.02706),new google.maps.LatLng(25.94106 ,67.01366),new google.maps.LatLng(24.64850 ,66.30400),new google.maps.LatLng(24.63391 ,66.10336),new google.maps.LatLng(23.77879 ,67.35191),new google.maps.LatLng(25.47625 ,67.54302),new google.maps.LatLng(24.62678 ,66.72011),new google.maps.LatLng(25.62872 ,66.03335),new google.maps.LatLng(25.09674 ,66.80664),new google.maps.LatLng(24.37112 ,66.46962),new google.maps.LatLng(23.98756 ,67.42127),new google.maps.LatLng(24.01377 ,67.11089),new google.maps.LatLng(26.00592 ,66.43524),new google.maps.LatLng(24.18812 ,67.04619),new google.maps.LatLng(24.71938 ,67.80307),new google.maps.LatLng(25.28022 ,67.46596),new google.maps.LatLng(25.46388 ,66.04069),new google.maps.LatLng(24.90417 ,65.89298),new google.maps.LatLng(24.43489 ,66.34853),new google.maps.LatLng(25.47555 ,67.15979),new google.maps.LatLng(24.12173 ,67.65925),new google.maps.LatLng(24.37871 ,66.80862),new google.maps.LatLng(25.56274 ,66.10711),new google.maps.LatLng(25.36442 ,66.40132),new google.maps.LatLng(25.25810 ,67.24626),new google.maps.LatLng(24.89886 ,67.74170),new google.maps.LatLng(25.97459 ,66.63915),new google.maps.LatLng(24.94363 ,67.32991),new google.maps.LatLng(25.49620 ,66.40583),new google.maps.LatLng(25.59535 ,66.45115),new google.maps.LatLng(25.44558 ,66.64936),new google.maps.LatLng(25.60801 ,66.10462),new google.maps.LatLng(25.19386 ,66.03628),new google.maps.LatLng(25.38037 ,67.84717),new google.maps.LatLng(23.83389 ,66.97162),new google.maps.LatLng(24.46035 ,65.91113),new google.maps.LatLng(24.09760 ,67.94979),new google.maps.LatLng(25.70083 ,67.45351),new google.maps.LatLng(26.20109 ,67.01300),new google.maps.LatLng(26.13607 ,67.20546),new google.maps.LatLng(25.06970 ,67.69316),new google.maps.LatLng(25.04992 ,66.36446),new google.maps.LatLng(24.10678 ,67.37155),new google.maps.LatLng(25.31256 ,67.26157),new google.maps.LatLng(24.07605 ,66.80462),new google.maps.LatLng(24.01583 ,66.60189),new google.maps.LatLng(26.08370 ,67.51661),new google.maps.LatLng(25.17607 ,66.65711),new google.maps.LatLng(24.03646 ,67.20797),new google.maps.LatLng(24.15803 ,66.33322),new google.maps.LatLng(25.51775 ,66.62832),new google.maps.LatLng(24.87715 ,66.18385),new google.maps.LatLng(24.17149 ,66.53478),new google.maps.LatLng(25.16933 ,66.46028),new google.maps.LatLng(25.79595 ,66.41416),new google.maps.LatLng(24.21310 ,67.29076),new google.maps.LatLng(26.09504 ,67.24918),new google.maps.LatLng(26.20273 ,67.32795),new google.maps.LatLng(25.67498 ,66.83559),new google.maps.LatLng(24.54187 ,65.84239),new google.maps.LatLng(25.20147 ,66.21485),new google.maps.LatLng(24.30997 ,67.22711),new google.maps.LatLng(25.77940 ,66.41151),new google.maps.LatLng(24.44074 ,68.20810),new google.maps.LatLng(25.19986 ,67.14569),new google.maps.LatLng(24.20137 ,67.46193),new google.maps.LatLng(25.99610 ,67.33466),new google.maps.LatLng(25.22241 ,67.88422),new google.maps.LatLng(25.92947 ,66.37175),new google.maps.LatLng(24.61788 ,67.50730),new google.maps.LatLng(24.93691 ,66.09821),new google.maps.LatLng(25.92150 ,67.79620),new google.maps.LatLng(24.36806 ,66.19032),new google.maps.LatLng(25.23431 ,66.83369),new google.maps.LatLng(25.71848 ,67.69956),new google.maps.LatLng(24.25371 ,67.85451),new google.maps.LatLng(23.83408 ,66.96569),new google.maps.LatLng(24.56569 ,66.52129),new google.maps.LatLng(24.74852 ,67.63789),new google.maps.LatLng(24.15830 ,66.25732),new google.maps.LatLng(24.40782 ,68.25126),new google.maps.LatLng(25.36443 ,67.96279),new google.maps.LatLng(24.89438 ,66.70974),new google.maps.LatLng(25.74801 ,66.07037),new google.maps.LatLng(25.16963 ,65.91691),new google.maps.LatLng(25.21754 ,67.07559),new google.maps.LatLng(24.79730 ,67.23003),new google.maps.LatLng(24.43795 ,67.46757),new google.maps.LatLng(25.41296 ,67.76854),new google.maps.LatLng(24.42132 ,66.19575),new google.maps.LatLng(25.87095 ,66.55081),new google.maps.LatLng(24.32425 ,66.08906),new google.maps.LatLng(25.59016 ,66.32893),new google.maps.LatLng(26.01528 ,66.63354),new google.maps.LatLng(25.88392 ,66.30727),new google.maps.LatLng(25.20557 ,68.12573),new google.maps.LatLng(25.49517 ,67.37123),new google.maps.LatLng(25.12345 ,67.26448),new google.maps.LatLng(25.27375 ,68.16681),new google.maps.LatLng(24.33562 ,66.44817),new google.maps.LatLng(24.31257 ,66.11839),new google.maps.LatLng(25.78514 ,67.99991),new google.maps.LatLng(24.60303 ,68.30997),new google.maps.LatLng(24.41630 ,68.06125),new google.maps.LatLng(24.73746 ,68.19503),new google.maps.LatLng(24.44410 ,66.26514),new google.maps.LatLng(24.42029 ,67.35820),new google.maps.LatLng(24.95514 ,66.28586),new google.maps.LatLng(25.38221 ,68.17784),new google.maps.LatLng(25.38317 ,66.15165),new google.maps.LatLng(26.03804 ,66.73944),new google.maps.LatLng(24.32336 ,66.26290),new google.maps.LatLng(24.57810 ,67.12696),new google.maps.LatLng(24.69152 ,66.02036),new google.maps.LatLng(26.12161 ,67.58809),new google.maps.LatLng(25.45390 ,66.29845),new google.maps.LatLng(24.76792 ,66.07890),new google.maps.LatLng(24.50736 ,66.79721),new google.maps.LatLng(24.54002 ,66.37982),new google.maps.LatLng(25.02173 ,67.23144),new google.maps.LatLng(24.88470 ,66.64866),new google.maps.LatLng(24.67183 ,68.13315),new google.maps.LatLng(25.53340 ,68.19152),new google.maps.LatLng(24.53559 ,66.71046),new google.maps.LatLng(24.59036 ,67.50642),new google.maps.LatLng(23.83109 ,67.30732),new google.maps.LatLng(25.63849 ,66.44359),new google.maps.LatLng(24.50145 ,66.89346),new google.maps.LatLng(25.42098 ,67.47801),new google.maps.LatLng(25.79365 ,66.34147),new google.maps.LatLng(23.92896 ,66.38290),new google.maps.LatLng(25.25059 ,67.27592),new google.maps.LatLng(25.80133 ,66.82457),new google.maps.LatLng(24.33795 ,66.51840),new google.maps.LatLng(23.81553 ,66.46016),new google.maps.LatLng(24.90464 ,66.66591),new google.maps.LatLng(24.94862 ,68.20400),new google.maps.LatLng(24.32323 ,67.48846),new google.maps.LatLng(24.75094 ,66.42753),new google.maps.LatLng(25.32977 ,67.78459),new google.maps.LatLng(25.60888 ,67.98584),new google.maps.LatLng(24.92632 ,66.71262),new google.maps.LatLng(23.93194 ,67.71160),new google.maps.LatLng(24.88990 ,67.38632),new google.maps.LatLng(24.88471 ,66.82834),new google.maps.LatLng(25.63098 ,67.55806),new google.maps.LatLng(24.60077 ,67.47386),new google.maps.LatLng(23.90622 ,67.38845),new google.maps.LatLng(23.78603 ,67.03019),new google.maps.LatLng(24.38348 ,68.05189),new google.maps.LatLng(24.24329 ,66.75988),new google.maps.LatLng(24.91686 ,66.17388),new google.maps.LatLng(25.67509 ,67.34569),new google.maps.LatLng(24.75448 ,67.57764),new google.maps.LatLng(24.44329 ,67.34667),new google.maps.LatLng(25.13931 ,65.86657),new google.maps.LatLng(26.18195 ,66.67766),new google.maps.LatLng(24.34332 ,66.39524),new google.maps.LatLng(25.18472 ,66.01681),new google.maps.LatLng(23.68663 ,66.81042),new google.maps.LatLng(25.41017 ,66.52949),new google.maps.LatLng(24.76529 ,66.56273),new google.maps.LatLng(25.25033 ,68.08572),new google.maps.LatLng(24.82688 ,66.38983),new google.maps.LatLng(23.96131 ,66.91707),new google.maps.LatLng(23.68199 ,67.04379),new google.maps.LatLng(25.16980 ,67.41257),new google.maps.LatLng(25.80013 ,67.34789),new google.maps.LatLng(24.17635 ,67.87890),new google.maps.LatLng(25.00104 ,66.75172),new google.maps.LatLng(26.18440 ,67.28833),new google.maps.LatLng(24.22613 ,67.30310),new google.maps.LatLng(24.82706 ,67.15518),new google.maps.LatLng(24.17061 ,67.41540),new google.maps.LatLng(24.76454 ,66.65421),new google.maps.LatLng(25.95191 ,66.28396),new google.maps.LatLng(23.95043 ,66.53851),new google.maps.LatLng(24.06044 ,66.29594),new google.maps.LatLng(25.64237 ,67.08742),new google.maps.LatLng(25.31337 ,66.78181),new google.maps.LatLng(24.33353 ,67.14472),new google.maps.LatLng(25.36254 ,68.10324),new google.maps.LatLng(25.69306 ,66.81858),new google.maps.LatLng(25.30770 ,65.89540),new google.maps.LatLng(24.00631 ,66.21239),new google.maps.LatLng(25.50870 ,67.02314),new google.maps.LatLng(25.19968 ,67.46949),new google.maps.LatLng(25.84662 ,67.37470),new google.maps.LatLng(25.38199 ,67.75973),new google.maps.LatLng(24.27177 ,67.15682),new google.maps.LatLng(25.63627 ,67.11798),new google.maps.LatLng(24.55740 ,67.90593),new google.maps.LatLng(24.49955 ,68.14202),new google.maps.LatLng(25.85305 ,67.86525),new google.maps.LatLng(25.85326 ,67.69571),new google.maps.LatLng(24.40457 ,66.53430),new google.maps.LatLng(25.68877 ,67.07158),new google.maps.LatLng(25.77009 ,66.87278),new google.maps.LatLng(25.85382 ,67.63114),new google.maps.LatLng(23.78313 ,66.86514),new google.maps.LatLng(24.68894 ,67.07576),new google.maps.LatLng(25.44139 ,67.12200),new google.maps.LatLng(24.94664 ,67.39180),new google.maps.LatLng(24.06449 ,66.12671),new google.maps.LatLng(25.95290 ,67.32310),new google.maps.LatLng(25.33344 ,66.08611),new google.maps.LatLng(25.44028 ,65.95782),new google.maps.LatLng(26.03501 ,67.63134),new google.maps.LatLng(25.32833 ,67.52351),new google.maps.LatLng(24.38250 ,67.37066),new google.maps.LatLng(23.72007 ,66.95578),new google.maps.LatLng(25.46688 ,66.53364),new google.maps.LatLng(24.71776 ,67.97472),new google.maps.LatLng(25.93240 ,67.30724),new google.maps.LatLng(25.94748 ,66.65077),new google.maps.LatLng(25.49912 ,67.84704),new google.maps.LatLng(24.91801 ,66.82605),new google.maps.LatLng(24.99162 ,67.96886),new google.maps.LatLng(24.80850 ,66.77755),new google.maps.LatLng(24.36427 ,67.56565),new google.maps.LatLng(24.18008 ,66.42045),new google.maps.LatLng(25.85222 ,66.74405),new google.maps.LatLng(24.47463 ,67.86562),new google.maps.LatLng(24.82676 ,66.26375),new google.maps.LatLng(25.19340 ,68.30190),new google.maps.LatLng(24.07416 ,66.54026),new google.maps.LatLng(25.24288 ,65.88118),new google.maps.LatLng(24.84364 ,66.23670),new google.maps.LatLng(25.92214 ,66.37214),new google.maps.LatLng(24.23435 ,67.86202),new google.maps.LatLng(25.42168 ,67.76890),new google.maps.LatLng(25.64263 ,67.35439),new google.maps.LatLng(24.64399 ,67.71859),new google.maps.LatLng(24.60429 ,66.83437),new google.maps.LatLng(26.15618 ,66.80876),new google.maps.LatLng(24.99910 ,68.23840),new google.maps.LatLng(25.03338 ,66.47002),new google.maps.LatLng(25.06174 ,67.48710),new google.maps.LatLng(24.78729 ,66.90411),new google.maps.LatLng(24.31490 ,66.74300),new google.maps.LatLng(24.25781 ,67.60956),new google.maps.LatLng(24.11462 ,67.73007),new google.maps.LatLng(25.77231 ,67.71688),new google.maps.LatLng(26.11892 ,67.45255),new google.maps.LatLng(25.41325 ,67.67655),new google.maps.LatLng(24.74614 ,67.80067),new google.maps.LatLng(24.90527 ,66.46091),new google.maps.LatLng(24.71754 ,66.89553),new google.maps.LatLng(23.87163 ,66.59658),new google.maps.LatLng(25.39879 ,67.74936),new google.maps.LatLng(24.56192 ,66.80550),new google.maps.LatLng(25.81608 ,67.55202),new google.maps.LatLng(25.11837 ,68.15570),new google.maps.LatLng(24.64048 ,68.03560),new google.maps.LatLng(24.34456 ,66.67779),new google.maps.LatLng(26.10793 ,67.37262),new google.maps.LatLng(25.56564 ,66.56824),new google.maps.LatLng(24.14930 ,67.62792),new google.maps.LatLng(25.52618 ,66.01688),new google.maps.LatLng(24.59343 ,68.28636),new google.maps.LatLng(25.72065 ,66.77898),new google.maps.LatLng(25.20594 ,68.26223),new google.maps.LatLng(23.95902 ,67.07517),new google.maps.LatLng(25.57619 ,66.95296),new google.maps.LatLng(24.12517 ,67.03999),new google.maps.LatLng(23.83789 ,67.01711),new google.maps.LatLng(25.71834 ,66.92175),new google.maps.LatLng(25.08063 ,68.01594),new google.maps.LatLng(24.27715 ,66.22809),new google.maps.LatLng(25.66539 ,66.71138),new google.maps.LatLng(25.59739 ,66.66226),new google.maps.LatLng(25.00124 ,65.89684),new google.maps.LatLng(24.70568 ,66.74315),new google.maps.LatLng(26.05570 ,67.41418),new google.maps.LatLng(25.43638 ,68.24525),new google.maps.LatLng(24.48367 ,67.61369),new google.maps.LatLng(24.73070 ,67.54468),new google.maps.LatLng(24.57499 ,68.17080),new google.maps.LatLng(24.51444 ,66.71406),new google.maps.LatLng(25.53318 ,66.19157),new google.maps.LatLng(25.35312 ,68.24489),new google.maps.LatLng(24.42205 ,66.32214),new google.maps.LatLng(24.95129 ,66.32085),new google.maps.LatLng(25.68357 ,66.26525),new google.maps.LatLng(24.19182 ,66.56996),new google.maps.LatLng(25.96492 ,66.27779),new google.maps.LatLng(24.08660 ,66.57818),new google.maps.LatLng(23.93784 ,67.73442),new google.maps.LatLng(25.82371 ,66.36148),new google.maps.LatLng(25.72422 ,66.45360),new google.maps.LatLng(24.82687 ,66.56616),new google.maps.LatLng(24.50000 ,67.76008),new google.maps.LatLng(25.17488 ,66.60764),new google.maps.LatLng(24.08932 ,68.02380),new google.maps.LatLng(25.14186 ,67.30187),new google.maps.LatLng(24.63414 ,68.18309),new google.maps.LatLng(24.04389 ,67.12707),new google.maps.LatLng(26.06171 ,67.11336),new google.maps.LatLng(24.73434 ,66.50770),new google.maps.LatLng(24.22611 ,66.23316),new google.maps.LatLng(25.02802 ,68.10937),new google.maps.LatLng(26.09481 ,67.45882),new google.maps.LatLng(26.04824 ,67.50688),new google.maps.LatLng(25.66673 ,67.67871),new google.maps.LatLng(25.01548 ,67.94892),new google.maps.LatLng(24.79580 ,67.97950),new google.maps.LatLng(25.66080 ,66.09527),new google.maps.LatLng(24.11491 ,67.65669),new google.maps.LatLng(26.19237 ,67.34602),new google.maps.LatLng(26.12741 ,67.09319),new google.maps.LatLng(24.01024 ,67.52138),new google.maps.LatLng(25.93705 ,67.03979),new google.maps.LatLng(25.03170 ,66.79611),new google.maps.LatLng(25.31612 ,67.51607),new google.maps.LatLng(23.92535 ,67.15971),new google.maps.LatLng(25.16517 ,66.29385),new google.maps.LatLng(25.45901 ,67.89741),new google.maps.LatLng(25.50821 ,67.74444),new google.maps.LatLng(24.48825 ,67.77481),new google.maps.LatLng(25.86630 ,66.20050),new google.maps.LatLng(26.18342 ,66.66681),new google.maps.LatLng(25.63539 ,67.00263),new google.maps.LatLng(24.58454 ,67.31257),new google.maps.LatLng(24.99071 ,67.72665),new google.maps.LatLng(25.13614 ,66.47436),new google.maps.LatLng(25.86520 ,66.34440),new google.maps.LatLng(25.64260 ,66.30461),new google.maps.LatLng(24.16044 ,67.79215),new google.maps.LatLng(25.88179 ,67.81354),new google.maps.LatLng(25.66573 ,67.04363),new google.maps.LatLng(25.87149 ,66.68543),new google.maps.LatLng(25.79908 ,66.76755),new google.maps.LatLng(25.36545 ,66.21130),new google.maps.LatLng(25.32427 ,66.57876),new google.maps.LatLng(25.12785 ,67.62924),new google.maps.LatLng(26.11467 ,66.61540),new google.maps.LatLng(23.93555 ,66.66708),new google.maps.LatLng(24.45743 ,66.86584),new google.maps.LatLng(24.13131 ,66.92133),new google.maps.LatLng(25.40284 ,67.96144),new google.maps.LatLng(25.51440 ,66.34599),new google.maps.LatLng(25.11425 ,66.80770),new google.maps.LatLng(24.27134 ,66.84113),new google.maps.LatLng(25.35105 ,65.99206),new google.maps.LatLng(23.83298 ,67.46165),new google.maps.LatLng(25.70545 ,66.99362),new google.maps.LatLng(25.62409 ,66.52618),new google.maps.LatLng(25.18906 ,67.55451),new google.maps.LatLng(24.73367 ,68.03005),new google.maps.LatLng(24.71254 ,65.84093),new google.maps.LatLng(24.26826 ,66.48710),new google.maps.LatLng(25.85428 ,67.76115),new google.maps.LatLng(25.58762 ,67.86066),new google.maps.LatLng(24.11876 ,67.43049),new google.maps.LatLng(25.63485 ,67.95663),new google.maps.LatLng(24.67876 ,67.28655),new google.maps.LatLng(25.95767 ,67.78447),new google.maps.LatLng(25.57117 ,67.13030),new google.maps.LatLng(25.94975 ,67.45560),new google.maps.LatLng(24.93268 ,67.00875),new google.maps.LatLng(23.84808 ,66.62286),new google.maps.LatLng(25.67027 ,66.50178),new google.maps.LatLng(25.93939 ,66.24549),new google.maps.LatLng(24.23107 ,66.97380),new google.maps.LatLng(24.18475 ,68.00095),new google.maps.LatLng(25.20265 ,66.63444),new google.maps.LatLng(25.03608 ,66.76780),new google.maps.LatLng(24.87574 ,66.13874),new google.maps.LatLng(24.28528 ,68.12299),new google.maps.LatLng(24.78047 ,67.34448),new google.maps.LatLng(25.08776 ,68.03922),new google.maps.LatLng(25.86323 ,67.33213),new google.maps.LatLng(24.31234 ,67.58493),new google.maps.LatLng(25.70076 ,66.94893),new google.maps.LatLng(25.61865 ,66.68202),new google.maps.LatLng(25.82291 ,66.95805),new google.maps.LatLng(25.15926 ,67.86594),new google.maps.LatLng(24.34643 ,66.57677),new google.maps.LatLng(24.48824 ,67.69049),new google.maps.LatLng(23.80270 ,66.87702),new google.maps.LatLng(25.38711 ,66.54538),new google.maps.LatLng(24.80293 ,66.80429),new google.maps.LatLng(24.61810 ,67.78426),new google.maps.LatLng(25.52703 ,66.24674),new google.maps.LatLng(24.21173 ,67.66433),new google.maps.LatLng(25.33473 ,66.09860),new google.maps.LatLng(24.54964 ,67.50334),new google.maps.LatLng(24.09690 ,66.53006),new google.maps.LatLng(24.60717 ,67.95741),new google.maps.LatLng(24.46614 ,68.17223),new google.maps.LatLng(25.75858 ,67.27106),new google.maps.LatLng(24.98866 ,66.61601),new google.maps.LatLng(25.07496 ,66.92524),new google.maps.LatLng(25.32165 ,66.97530),new google.maps.LatLng(24.86458 ,68.18195),new google.maps.LatLng(24.26022 ,67.08255),new google.maps.LatLng(24.78640 ,67.01795),new google.maps.LatLng(25.28110 ,66.57098),new google.maps.LatLng(25.06306 ,67.78188),new google.maps.LatLng(25.76884 ,67.58174),new google.maps.LatLng(26.07310 ,66.84083),new google.maps.LatLng(24.92376 ,66.80599),new google.maps.LatLng(25.33636 ,65.96730),new google.maps.LatLng(24.14000 ,67.85074),new google.maps.LatLng(25.51654 ,67.86458),new google.maps.LatLng(25.27158 ,66.43876),new google.maps.LatLng(25.04536 ,67.94053),new google.maps.LatLng(23.65232 ,67.06831),new google.maps.LatLng(23.90690 ,67.43665),new google.maps.LatLng(24.05955 ,67.29521),new google.maps.LatLng(25.05729 ,68.07561),new google.maps.LatLng(24.01397 ,67.96968),new google.maps.LatLng(24.04845 ,67.45813),new google.maps.LatLng(24.50858 ,67.70978),new google.maps.LatLng(24.12436 ,67.87377),new google.maps.LatLng(24.46052 ,67.04443),new google.maps.LatLng(25.54072 ,67.85881),new google.maps.LatLng(24.62302 ,67.33820),new google.maps.LatLng(25.26869 ,67.97545),new google.maps.LatLng(25.46665 ,68.23928),new google.maps.LatLng(25.62228 ,66.11680),new google.maps.LatLng(25.96400 ,67.02982),new google.maps.LatLng(25.51893 ,66.81961),new google.maps.LatLng(25.01193 ,66.19954),new google.maps.LatLng(25.78833 ,66.20570),new google.maps.LatLng(26.15513 ,67.26417),new google.maps.LatLng(24.28813 ,67.01477),new google.maps.LatLng(25.15877 ,68.01900),new google.maps.LatLng(26.01696 ,67.18613),new google.maps.LatLng(24.66326 ,66.74732),new google.maps.LatLng(25.23365 ,67.27206),new google.maps.LatLng(24.70687 ,66.88875),new google.maps.LatLng(24.03416 ,66.51735),new google.maps.LatLng(24.98229 ,66.07340),new google.maps.LatLng(25.30155 ,66.57717),new google.maps.LatLng(24.70599 ,65.79287),new google.maps.LatLng(25.44706 ,67.34754),new google.maps.LatLng(24.75729 ,67.84957),new google.maps.LatLng(24.75889 ,67.83902),new google.maps.LatLng(24.96290 ,67.55217),new google.maps.LatLng(24.34314 ,66.70150),new google.maps.LatLng(24.82755 ,66.51143),new google.maps.LatLng(25.16196 ,66.08196),new google.maps.LatLng(25.78714 ,67.24486),new google.maps.LatLng(25.48762 ,66.75258),new google.maps.LatLng(23.90567 ,67.41250),new google.maps.LatLng(24.48927 ,67.58141),new google.maps.LatLng(26.06319 ,67.14913),new google.maps.LatLng(25.16252 ,65.92171),new google.maps.LatLng(24.27683 ,66.52994),new google.maps.LatLng(25.24966 ,66.86889),new google.maps.LatLng(24.01493 ,66.22004),new google.maps.LatLng(24.23950 ,65.99104),new google.maps.LatLng(24.31680 ,67.08665),new google.maps.LatLng(24.64981 ,66.62437),new google.maps.LatLng(24.49906 ,67.41767),new google.maps.LatLng(25.90306 ,66.78248),new google.maps.LatLng(24.41644 ,68.09622),new google.maps.LatLng(24.97129 ,66.75362),new google.maps.LatLng(26.14566 ,67.51401),new google.maps.LatLng(25.62900 ,66.64709),new google.maps.LatLng(24.93751 ,67.84740),new google.maps.LatLng(26.19931 ,67.32096),new google.maps.LatLng(24.75218 ,68.28033),new google.maps.LatLng(24.93959 ,67.24925),new google.maps.LatLng(24.23335 ,68.14554),new google.maps.LatLng(25.03388 ,67.43524),new google.maps.LatLng(24.31762 ,66.57288),new google.maps.LatLng(25.62776 ,67.87686),new google.maps.LatLng(26.04369 ,67.20072),new google.maps.LatLng(26.09227 ,67.53343),new google.maps.LatLng(24.06479 ,66.80857),new google.maps.LatLng(25.00004 ,66.56955),new google.maps.LatLng(24.41064 ,67.86462),new google.maps.LatLng(25.03487 ,66.79965),new google.maps.LatLng(26.07607 ,66.58275),new google.maps.LatLng(24.55609 ,66.66136),new google.maps.LatLng(26.23682 ,66.89789),new google.maps.LatLng(24.86706 ,67.67244),new google.maps.LatLng(25.84826 ,67.39250),new google.maps.LatLng(24.44629 ,65.88451),new google.maps.LatLng(24.65529 ,67.03679),new google.maps.LatLng(24.54047 ,68.20098),new google.maps.LatLng(23.99137 ,67.80371),new google.maps.LatLng(25.16676 ,65.79715),new google.maps.LatLng(24.90244 ,67.52992),new google.maps.LatLng(25.09976 ,66.27012),new google.maps.LatLng(24.22751 ,66.10583),new google.maps.LatLng(23.69173 ,67.06150),new google.maps.LatLng(24.45936 ,66.41799),new google.maps.LatLng(25.67725 ,67.67861),new google.maps.LatLng(24.21829 ,66.84418),new google.maps.LatLng(25.18825 ,68.21411),new google.maps.LatLng(24.71892 ,66.05156),new google.maps.LatLng(26.05117 ,67.13992),new google.maps.LatLng(25.85604 ,66.17461),new google.maps.LatLng(23.84762 ,67.19539),new google.maps.LatLng(25.94424 ,67.85542),new google.maps.LatLng(25.84948 ,67.47000),new google.maps.LatLng(25.84690 ,67.43716),new google.maps.LatLng(25.47079 ,67.98462),new google.maps.LatLng(25.66415 ,66.77369),new google.maps.LatLng(26.17818 ,67.35518),new google.maps.LatLng(24.21842 ,66.30968),new google.maps.LatLng(23.89319 ,66.38834),new google.maps.LatLng(25.95804 ,67.25950),new google.maps.LatLng(24.40010 ,66.04007),new google.maps.LatLng(25.08703 ,65.89008),new google.maps.LatLng(26.04295 ,66.43900),new google.maps.LatLng(24.03551 ,67.20527),new google.maps.LatLng(25.83261 ,67.88241),new google.maps.LatLng(26.14607 ,67.27090),new google.maps.LatLng(25.57929 ,67.21058),new google.maps.LatLng(24.71094 ,68.10020),new google.maps.LatLng(24.55247 ,68.29882),new google.maps.LatLng(24.33216 ,66.53189),new google.maps.LatLng(24.71055 ,67.32214),new google.maps.LatLng(24.38917 ,67.62302),new google.maps.LatLng(24.22143 ,66.15533),new google.maps.LatLng(24.67574 ,66.99746),new google.maps.LatLng(24.85754 ,67.75191),new google.maps.LatLng(26.02607 ,67.08042),new google.maps.LatLng(25.85099 ,66.77697),new google.maps.LatLng(25.02810 ,66.55034),new google.maps.LatLng(24.47402 ,67.39360),new google.maps.LatLng(24.65840 ,67.18007),new google.maps.LatLng(24.64203 ,66.07511),new google.maps.LatLng(24.16513 ,66.42573),new google.maps.LatLng(24.82317 ,66.69938),new google.maps.LatLng(25.25659 ,67.53193),new google.maps.LatLng(24.92935 ,68.37003),new google.maps.LatLng(24.22783 ,67.66413),new google.maps.LatLng(24.05460 ,66.34027),new google.maps.LatLng(25.39040 ,68.21839),new google.maps.LatLng(24.09503 ,66.90094),new google.maps.LatLng(24.13027 ,67.25318),new google.maps.LatLng(25.40175 ,66.63570),new google.maps.LatLng(24.81405 ,66.08717),new google.maps.LatLng(25.46717 ,67.84470),new google.maps.LatLng(24.77132 ,67.98305),new google.maps.LatLng(25.26452 ,68.17949),new google.maps.LatLng(25.94981 ,67.16568),new google.maps.LatLng(24.48049 ,66.22879),new google.maps.LatLng(23.77372 ,67.21361),new google.maps.LatLng(25.14458 ,67.30741),new google.maps.LatLng(25.35882 ,67.34317),new google.maps.LatLng(24.18163 ,66.80792),new google.maps.LatLng(24.36839 ,67.73417),new google.maps.LatLng(24.79322 ,67.23340),new google.maps.LatLng(25.14498 ,67.16728),new google.maps.LatLng(26.18874 ,67.43499),new google.maps.LatLng(25.87948 ,67.93146),new google.maps.LatLng(25.93721 ,67.63174),new google.maps.LatLng(25.23217 ,66.20180),new google.maps.LatLng(24.44726 ,67.30076),new google.maps.LatLng(24.59673 ,66.34238),new google.maps.LatLng(24.78207 ,67.68519),new google.maps.LatLng(25.40479 ,68.25386),new google.maps.LatLng(25.39834 ,66.57720),new google.maps.LatLng(24.25864 ,67.08947),new google.maps.LatLng(24.39210 ,67.63582),new google.maps.LatLng(23.97565 ,66.63071),new google.maps.LatLng(24.73771 ,68.03822),new google.maps.LatLng(25.09773 ,67.81139),new google.maps.LatLng(25.68033 ,66.30134),new google.maps.LatLng(26.09300 ,67.57799),new google.maps.LatLng(24.71644 ,66.24368),new google.maps.LatLng(24.03796 ,67.70056),new google.maps.LatLng(25.56863 ,67.43983),new google.maps.LatLng(24.51813 ,65.97237),new google.maps.LatLng(23.80034 ,66.69083),new google.maps.LatLng(23.92686 ,67.54237),new google.maps.LatLng(25.58234 ,66.09134),new google.maps.LatLng(24.90811 ,68.18747),new google.maps.LatLng(25.61681 ,67.49412),new google.maps.LatLng(24.02362 ,67.72586),new google.maps.LatLng(25.31929 ,68.14458),new google.maps.LatLng(24.67656 ,65.90273),new google.maps.LatLng(25.46989 ,67.03364),new google.maps.LatLng(24.43631 ,66.98126),new google.maps.LatLng(23.81871 ,66.71470),new google.maps.LatLng(25.01947 ,67.25442),new google.maps.LatLng(25.60974 ,65.97099),new google.maps.LatLng(26.15632 ,66.68714),new google.maps.LatLng(23.93490 ,66.56733),new google.maps.LatLng(23.78866 ,66.68309),new google.maps.LatLng(24.85558 ,66.50283),new google.maps.LatLng(25.02432 ,66.60720),new google.maps.LatLng(24.09622 ,66.89893),new google.maps.LatLng(24.72444 ,66.70461),new google.maps.LatLng(25.70264 ,66.45534),new google.maps.LatLng(25.69442 ,67.36402),new google.maps.LatLng(24.62445 ,66.11406),new google.maps.LatLng(25.38206 ,67.57278),new google.maps.LatLng(25.69294 ,67.04497),new google.maps.LatLng(25.79061 ,67.41570),new google.maps.LatLng(24.63998 ,66.13560),new google.maps.LatLng(25.21602 ,66.40998),new google.maps.LatLng(25.78737 ,67.86967),new google.maps.LatLng(25.26954 ,66.50962),new google.maps.LatLng(23.94910 ,66.37527),new google.maps.LatLng(24.59233 ,67.12657),new google.maps.LatLng(25.07644 ,66.82525),new google.maps.LatLng(25.65805 ,67.06700),new google.maps.LatLng(24.06982 ,67.43011),new google.maps.LatLng(24.37030 ,66.45617),new google.maps.LatLng(24.42287 ,66.07384),new google.maps.LatLng(25.49678 ,67.10627),new google.maps.LatLng(25.83073 ,66.65430),new google.maps.LatLng(25.08429 ,67.23143),new google.maps.LatLng(25.61556 ,67.04878),new google.maps.LatLng(23.75572 ,66.69679),new google.maps.LatLng(24.99400 ,67.73042),new google.maps.LatLng(25.03331 ,66.73238),new google.maps.LatLng(24.06989 ,67.30439),new google.maps.LatLng(24.89589 ,67.69304),new google.maps.LatLng(24.64966 ,67.34128),new google.maps.LatLng(25.57802 ,66.15755),new google.maps.LatLng(24.13510 ,67.53577),new google.maps.LatLng(25.15832 ,67.03163),new google.maps.LatLng(24.69213 ,66.25031),new google.maps.LatLng(25.91208 ,66.44447),new google.maps.LatLng(23.97865 ,67.04768),new google.maps.LatLng(25.35010 ,67.27037),new google.maps.LatLng(26.01167 ,67.24559),new google.maps.LatLng(25.96166 ,66.54073),new google.maps.LatLng(25.80441 ,66.11558),new google.maps.LatLng(25.96098 ,67.05352),new google.maps.LatLng(24.53947 ,66.42991),new google.maps.LatLng(25.00820 ,67.19242),new google.maps.LatLng(26.12904 ,66.56868),new google.maps.LatLng(25.51809 ,66.89574),new google.maps.LatLng(25.34905 ,65.95958),new google.maps.LatLng(25.22636 ,66.88862),new google.maps.LatLng(25.39341 ,66.64269),new google.maps.LatLng(24.63879 ,67.78294),new google.maps.LatLng(24.29254 ,67.45740),new google.maps.LatLng(24.11762 ,67.86511),new google.maps.LatLng(24.62229 ,66.12142),new google.maps.LatLng(23.71727 ,67.43678),new google.maps.LatLng(24.00215 ,66.82387),new google.maps.LatLng(25.83068 ,67.57348),new google.maps.LatLng(24.25284 ,67.36872),new google.maps.LatLng(24.70115 ,67.50786),new google.maps.LatLng(24.77137 ,67.64383),new google.maps.LatLng(24.18673 ,66.38735),new google.maps.LatLng(24.46928 ,67.12769),new google.maps.LatLng(25.28525 ,67.84125),new google.maps.LatLng(25.53758 ,67.31166),new google.maps.LatLng(24.05565 ,67.67131),new google.maps.LatLng(25.20522 ,68.07290),new google.maps.LatLng(24.93320 ,66.98033),new google.maps.LatLng(24.96439 ,67.23857),new google.maps.LatLng(24.45664 ,66.72894),new google.maps.LatLng(25.23692 ,67.79877),new google.maps.LatLng(24.11712 ,66.08286),new google.maps.LatLng(25.49160 ,67.52196),new google.maps.LatLng(25.59420 ,66.74508),new google.maps.LatLng(24.94796 ,67.34351),new google.maps.LatLng(24.80965 ,66.64852),new google.maps.LatLng(24.94557 ,66.65130),new google.maps.LatLng(25.23458 ,67.67123),new google.maps.LatLng(25.17849 ,67.18429),new google.maps.LatLng(24.88895 ,67.00138),new google.maps.LatLng(24.55712 ,67.59317),new google.maps.LatLng(24.49786 ,68.01947),new google.maps.LatLng(25.58460 ,66.98717),new google.maps.LatLng(25.07343 ,66.20161),new google.maps.LatLng(25.47676 ,66.07217),new google.maps.LatLng(24.24649 ,66.93903),new google.maps.LatLng(25.11161 ,66.64214),new google.maps.LatLng(24.51580 ,66.31142),new google.maps.LatLng(25.71187 ,66.80133),new google.maps.LatLng(24.00115 ,67.65305),new google.maps.LatLng(24.01506 ,67.49754),new google.maps.LatLng(24.48652 ,67.85095),new google.maps.LatLng(26.02900 ,67.06974),new google.maps.LatLng(24.76362 ,66.44433),new google.maps.LatLng(25.19768 ,66.83274),new google.maps.LatLng(23.86036 ,67.64765),new google.maps.LatLng(24.23987 ,66.05846),new google.maps.LatLng(25.14536 ,65.84359),new google.maps.LatLng(23.92886 ,67.00598),new google.maps.LatLng(24.00784 ,67.31177),new google.maps.LatLng(26.03381 ,67.15713),new google.maps.LatLng(24.27198 ,67.46620),new google.maps.LatLng(24.68990 ,67.47278),new google.maps.LatLng(25.74597 ,67.81283),new google.maps.LatLng(24.16365 ,66.63091),new google.maps.LatLng(24.98990 ,67.35218),new google.maps.LatLng(25.24258 ,66.39738),new google.maps.LatLng(24.94071 ,66.44497),new google.maps.LatLng(25.31751 ,65.99363),new google.maps.LatLng(25.03228 ,66.77102),new google.maps.LatLng(24.39187 ,67.11218),new google.maps.LatLng(24.94333 ,65.83009),new google.maps.LatLng(24.39484 ,67.42194),new google.maps.LatLng(24.53946 ,65.86725),new google.maps.LatLng(24.88532 ,67.09644),new google.maps.LatLng(26.12086 ,67.57607),new google.maps.LatLng(25.44036 ,66.67247),new google.maps.LatLng(24.12596 ,67.00873),new google.maps.LatLng(25.08204 ,68.07841),new google.maps.LatLng(25.15382 ,66.93878),new google.maps.LatLng(25.08234 ,67.71392),new google.maps.LatLng(24.79427 ,66.31806),new google.maps.LatLng(24.49886 ,66.81173),new google.maps.LatLng(25.13010 ,66.78596),new google.maps.LatLng(25.36476 ,66.03761),new google.maps.LatLng(25.16892 ,67.79386),new google.maps.LatLng(25.37008 ,66.44351),new google.maps.LatLng(25.28938 ,68.16948),new google.maps.LatLng(25.26154 ,67.39287),new google.maps.LatLng(25.14021 ,67.67811),new google.maps.LatLng(24.99470 ,66.80713),new google.maps.LatLng(25.21156 ,68.22334),new google.maps.LatLng(24.77302 ,67.34193),new google.maps.LatLng(25.93470 ,67.26775),new google.maps.LatLng(24.59420 ,67.25709),new google.maps.LatLng(24.68695 ,66.54544),new google.maps.LatLng(24.99316 ,67.36349),new google.maps.LatLng(24.34308 ,67.45546),new google.maps.LatLng(25.82095 ,67.85327),new google.maps.LatLng(25.58276 ,66.97246),new google.maps.LatLng(25.39036 ,68.16770),new google.maps.LatLng(24.22887 ,66.78573),new google.maps.LatLng(23.82252 ,66.56731),new google.maps.LatLng(24.58838 ,67.76483),new google.maps.LatLng(25.55465 ,68.06090),new google.maps.LatLng(25.77102 ,68.04489),new google.maps.LatLng(24.18174 ,66.02858),new google.maps.LatLng(24.52297 ,66.97394),new google.maps.LatLng(24.32439 ,67.83175),new google.maps.LatLng(25.59113 ,66.79478),new google.maps.LatLng(24.53730 ,67.10514),new google.maps.LatLng(25.32197 ,66.72364),new google.maps.LatLng(25.29470 ,66.08088),new google.maps.LatLng(24.94013 ,67.12873),new google.maps.LatLng(25.76156 ,67.08361),new google.maps.LatLng(23.94275 ,67.83819),new google.maps.LatLng(25.19025 ,67.51638),new google.maps.LatLng(24.19859 ,66.99264),new google.maps.LatLng(24.24715 ,67.11037),new google.maps.LatLng(25.18956 ,68.34468),new google.maps.LatLng(24.85371 ,67.20498),new google.maps.LatLng(24.01499 ,66.70652),new google.maps.LatLng(24.98610 ,65.78084),new google.maps.LatLng(25.62003 ,66.40730),new google.maps.LatLng(25.38479 ,67.50713),new google.maps.LatLng(23.94335 ,67.49480),new google.maps.LatLng(24.79757 ,66.98760),new google.maps.LatLng(24.53771 ,65.97802),new google.maps.LatLng(24.42957 ,67.20672),new google.maps.LatLng(25.66152 ,67.32214),new google.maps.LatLng(24.45891 ,67.62898),new google.maps.LatLng(25.40877 ,65.91098),new google.maps.LatLng(24.25603 ,67.28206),new google.maps.LatLng(24.50138 ,67.83397),new google.maps.LatLng(24.64324 ,66.33658),new google.maps.LatLng(25.17660 ,66.26501),new google.maps.LatLng(24.27740 ,67.18728),new google.maps.LatLng(25.60716 ,66.46866),new google.maps.LatLng(25.15394 ,67.76309),new google.maps.LatLng(24.83410 ,67.93142),new google.maps.LatLng(24.44093 ,66.51309),new google.maps.LatLng(24.20344 ,66.43816),new google.maps.LatLng(25.74277 ,66.58670),new google.maps.LatLng(24.40735 ,67.01857),new google.maps.LatLng(25.35350 ,67.34604),new google.maps.LatLng(24.81599 ,65.80646),new google.maps.LatLng(25.63226 ,67.98623),new google.maps.LatLng(24.87203 ,67.97740),new google.maps.LatLng(24.63512 ,66.12190),new google.maps.LatLng(25.16550 ,68.11136),new google.maps.LatLng(24.82388 ,67.48451),new google.maps.LatLng(26.04495 ,67.12371),new google.maps.LatLng(26.08707 ,67.05456),new google.maps.LatLng(25.37730 ,66.06189),new google.maps.LatLng(25.61075 ,66.21956),new google.maps.LatLng(25.34778 ,67.40342),new google.maps.LatLng(25.51160 ,67.00866),new google.maps.LatLng(24.37621 ,66.29411),new google.maps.LatLng(25.35764 ,66.76442),new google.maps.LatLng(25.89298 ,67.70932),new google.maps.LatLng(25.43526 ,66.13176),new google.maps.LatLng(23.89991 ,67.25698),new google.maps.LatLng(23.91152 ,66.83638),new google.maps.LatLng(24.38472 ,68.23546),new google.maps.LatLng(25.96024 ,67.26080),new google.maps.LatLng(25.07839 ,66.81957),new google.maps.LatLng(24.39419 ,67.05020),new google.maps.LatLng(25.22791 ,66.33846),new google.maps.LatLng(25.06152 ,68.24157),new google.maps.LatLng(24.16837 ,66.20326),new google.maps.LatLng(24.02724 ,67.82876),new google.maps.LatLng(24.31849 ,67.10487),new google.maps.LatLng(24.53327 ,67.69738),new google.maps.LatLng(24.38525 ,65.98625),new google.maps.LatLng(24.34704 ,66.39710),new google.maps.LatLng(24.74078 ,66.76983),new google.maps.LatLng(24.73788 ,67.54596),new google.maps.LatLng(24.75891 ,65.87597),new google.maps.LatLng(25.73503 ,67.16586),new google.maps.LatLng(24.30039 ,68.17593),new google.maps.LatLng(26.09403 ,67.29700),new google.maps.LatLng(24.59379 ,67.78880),new google.maps.LatLng(24.02931 ,67.95582),new google.maps.LatLng(25.50926 ,66.75546),new google.maps.LatLng(25.02315 ,66.90003),new google.maps.LatLng(23.72484 ,66.92902),new google.maps.LatLng(25.27946 ,66.44974),new google.maps.LatLng(25.81665 ,67.65443),new google.maps.LatLng(24.99931 ,67.89383),new google.maps.LatLng(25.84683 ,66.45321),new google.maps.LatLng(24.84108 ,66.12113),new google.maps.LatLng(24.18881 ,67.93204),new google.maps.LatLng(24.70722 ,68.03854),new google.maps.LatLng(25.01959 ,67.30407),new google.maps.LatLng(24.76297 ,66.43267),new google.maps.LatLng(24.13315 ,67.82551),new google.maps.LatLng(25.29545 ,67.16360),new google.maps.LatLng(23.82154 ,66.50832),new google.maps.LatLng(24.14467 ,66.10193),new google.maps.LatLng(25.66666 ,66.09806),new google.maps.LatLng(25.24004 ,67.35411),new google.maps.LatLng(25.11332 ,66.25142),new google.maps.LatLng(25.47257 ,67.45444),new google.maps.LatLng(25.68255 ,66.73410),new google.maps.LatLng(26.16775 ,67.26302),new google.maps.LatLng(24.70262 ,67.69447),new google.maps.LatLng(23.99258 ,66.52076),new google.maps.LatLng(23.72604 ,67.24624),new google.maps.LatLng(25.63516 ,66.35848),new google.maps.LatLng(25.61662 ,66.90574),new google.maps.LatLng(25.91220 ,66.57408),new google.maps.LatLng(25.09805 ,68.33629),new google.maps.LatLng(25.45832 ,65.87499),new google.maps.LatLng(25.26873 ,67.00203),new google.maps.LatLng(24.95685 ,67.76406),new google.maps.LatLng(25.06019 ,67.35303),new google.maps.LatLng(25.37886 ,66.13007),new google.maps.LatLng(25.65094 ,67.67855),new google.maps.LatLng(25.77020 ,67.00573),new google.maps.LatLng(23.98838 ,66.49191),new google.maps.LatLng(24.43594 ,66.40808),new google.maps.LatLng(26.15491 ,66.73679),new google.maps.LatLng(24.43378 ,66.26728),new google.maps.LatLng(24.45356 ,67.08015),new google.maps.LatLng(23.66606 ,67.26608),new google.maps.LatLng(25.38378 ,66.88454),new google.maps.LatLng(24.81195 ,67.32724),new google.maps.LatLng(24.57371 ,66.09925),new google.maps.LatLng(25.67620 ,66.51945),new google.maps.LatLng(24.26745 ,68.13963),new google.maps.LatLng(26.06236 ,66.66696),new google.maps.LatLng(24.86383 ,67.34899),new google.maps.LatLng(25.23881 ,66.34038),new google.maps.LatLng(24.59203 ,67.69157),new google.maps.LatLng(24.58366 ,66.01905),new google.maps.LatLng(25.69401 ,66.35161),new google.maps.LatLng(23.81456 ,67.70536),new google.maps.LatLng(25.68346 ,67.52159),new google.maps.LatLng(25.85446 ,66.53820),new google.maps.LatLng(25.49162 ,67.88533),new google.maps.LatLng(24.05546 ,67.07190),new google.maps.LatLng(24.88136 ,66.65655),new google.maps.LatLng(24.22598 ,67.13831),new google.maps.LatLng(24.84876 ,66.58453),new google.maps.LatLng(25.88706 ,67.07254),new google.maps.LatLng(25.49779 ,67.81027),new google.maps.LatLng(24.62324 ,66.37977),new google.maps.LatLng(24.57849 ,65.99412),new google.maps.LatLng(25.27513 ,66.35590),new google.maps.LatLng(24.67783 ,66.78158),new google.maps.LatLng(25.22637 ,67.74946),new google.maps.LatLng(24.34317 ,67.17591),new google.maps.LatLng(24.73229 ,66.25524),new google.maps.LatLng(24.61917 ,66.74938),new google.maps.LatLng(24.32334 ,67.08998),new google.maps.LatLng(24.89982 ,67.30533),new google.maps.LatLng(24.00495 ,67.80632),new google.maps.LatLng(25.55784 ,66.68435),new google.maps.LatLng(25.50037 ,66.73975),new google.maps.LatLng(25.08975 ,66.17580),new google.maps.LatLng(25.26116 ,67.07531),new google.maps.LatLng(25.82971 ,66.86726),new google.maps.LatLng(24.53785 ,67.91292),new google.maps.LatLng(24.07232 ,67.46046),new google.maps.LatLng(23.96773 ,66.63973),new google.maps.LatLng(23.81716 ,67.00157),new google.maps.LatLng(24.33535 ,68.13026),new google.maps.LatLng(24.26021 ,68.09143),new google.maps.LatLng(25.58565 ,66.89493),new google.maps.LatLng(26.18596 ,67.23734),new google.maps.LatLng(26.00309 ,66.51708),new google.maps.LatLng(24.14357 ,67.78821),new google.maps.LatLng(24.97953 ,67.15253),new google.maps.LatLng(25.63059 ,67.15211),new google.maps.LatLng(25.55099 ,66.86300),new google.maps.LatLng(24.28772 ,66.84482),new google.maps.LatLng(24.97565 ,68.36143),new google.maps.LatLng(24.35715 ,67.42758),new google.maps.LatLng(23.88580 ,66.81721),new google.maps.LatLng(24.63525 ,66.32300),new google.maps.LatLng(24.53668 ,67.31266),new google.maps.LatLng(25.06952 ,67.09062),new google.maps.LatLng(24.34809 ,66.82396),new google.maps.LatLng(24.54958 ,67.64868),new google.maps.LatLng(25.29008 ,65.86944),new google.maps.LatLng(26.05565 ,67.43662),new google.maps.LatLng(25.27242 ,66.25862),new google.maps.LatLng(25.47533 ,66.53928),new google.maps.LatLng(24.66958 ,66.61538),new google.maps.LatLng(25.19537 ,67.56253),new google.maps.LatLng(24.29875 ,66.81144),new google.maps.LatLng(24.92234 ,67.88614),new google.maps.LatLng(24.94847 ,68.10554),new google.maps.LatLng(24.39044 ,67.73029),new google.maps.LatLng(24.10863 ,67.48546),new google.maps.LatLng(25.44797 ,66.76515),new google.maps.LatLng(25.17158 ,66.98392),new google.maps.LatLng(24.47497 ,67.71334),new google.maps.LatLng(25.44146 ,67.58507),new google.maps.LatLng(25.48701 ,68.09107),new google.maps.LatLng(24.01768 ,66.86557),new google.maps.LatLng(24.74844 ,65.82603),new google.maps.LatLng(23.79007 ,67.19134),new google.maps.LatLng(25.63027 ,66.70460),new google.maps.LatLng(24.97576 ,68.22386),new google.maps.LatLng(25.88972 ,66.76180),new google.maps.LatLng(25.73539 ,66.27278),new google.maps.LatLng(25.45650 ,67.09729),new google.maps.LatLng(25.93843 ,66.77782),new google.maps.LatLng(24.71042 ,66.32422),new google.maps.LatLng(23.89066 ,66.77437),new google.maps.LatLng(25.71125 ,66.53403),new google.maps.LatLng(25.36773 ,67.69455),new google.maps.LatLng(24.82854 ,68.23078),new google.maps.LatLng(25.20493 ,67.97304),new google.maps.LatLng(24.28888 ,67.03306),new google.maps.LatLng(25.37348 ,66.53319),new google.maps.LatLng(25.39880 ,66.70224),new google.maps.LatLng(25.89035 ,67.22308),new google.maps.LatLng(25.65964 ,68.04713),new google.maps.LatLng(25.48076 ,67.18094),new google.maps.LatLng(24.58894 ,67.46047),new google.maps.LatLng(25.83332 ,66.15511),new google.maps.LatLng(25.39749 ,67.67137),new google.maps.LatLng(24.95268 ,66.04420),new google.maps.LatLng(24.35220 ,68.20707),new google.maps.LatLng(24.97985 ,66.60799),new google.maps.LatLng(24.15913 ,67.11468),new google.maps.LatLng(24.06679 ,67.18771),new google.maps.LatLng(25.31220 ,67.46454),new google.maps.LatLng(24.92953 ,65.92884),new google.maps.LatLng(25.72548 ,67.84722),new google.maps.LatLng(25.38317 ,66.93445),new google.maps.LatLng(24.58155 ,66.39582),new google.maps.LatLng(26.06499 ,67.38576),new google.maps.LatLng(25.01011 ,66.27900),new google.maps.LatLng(25.17901 ,66.05966),new google.maps.LatLng(25.86732 ,66.21158),new google.maps.LatLng(25.56020 ,66.00120),new google.maps.LatLng(25.06042 ,68.10347),new google.maps.LatLng(25.28230 ,66.80017),new google.maps.LatLng(25.61001 ,66.74363),new google.maps.LatLng(25.86310 ,67.95460),new google.maps.LatLng(25.10805 ,66.30884),new google.maps.LatLng(24.10927 ,67.12559),new google.maps.LatLng(24.98498 ,65.89370),new google.maps.LatLng(23.75770 ,67.35087),new google.maps.LatLng(25.90829 ,67.23755),new google.maps.LatLng(25.13827 ,66.64617),new google.maps.LatLng(25.68230 ,67.47402),new google.maps.LatLng(25.57928 ,67.80905),new google.maps.LatLng(25.62463 ,66.58829),new google.maps.LatLng(23.64991 ,67.00310),new google.maps.LatLng(25.09847 ,66.72156),new google.maps.LatLng(26.06346 ,66.62676),new google.maps.LatLng(25.99682 ,66.92504),new google.maps.LatLng(25.45594 ,66.01058),new google.maps.LatLng(25.49623 ,66.13416),new google.maps.LatLng(24.12607 ,67.88998),new google.maps.LatLng(24.20111 ,68.04399),new google.maps.LatLng(25.84992 ,66.46743),new google.maps.LatLng(25.10574 ,68.08194),new google.maps.LatLng(24.28596 ,67.40743),new google.maps.LatLng(24.11947 ,66.92791),new google.maps.LatLng(24.95157 ,66.85760),new google.maps.LatLng(25.33893 ,67.75454),new google.maps.LatLng(23.78883 ,66.72542),new google.maps.LatLng(25.00825 ,66.93043),new google.maps.LatLng(25.03072 ,67.97088),new google.maps.LatLng(25.59405 ,65.97589),new google.maps.LatLng(24.78871 ,67.50656),new google.maps.LatLng(24.90821 ,68.17855),new google.maps.LatLng(24.54111 ,67.85440),new google.maps.LatLng(24.76239 ,66.68286),new google.maps.LatLng(24.99845 ,68.09593),new google.maps.LatLng(25.02924 ,66.66527),new google.maps.LatLng(24.82781 ,68.02776),new google.maps.LatLng(25.13666 ,68.30244),new google.maps.LatLng(24.75103 ,66.43165),new google.maps.LatLng(24.33894 ,67.77425),new google.maps.LatLng(25.19113 ,67.84214),new google.maps.LatLng(24.91481 ,66.60271),new google.maps.LatLng(25.04806 ,66.44547),new google.maps.LatLng(24.85789 ,67.05108),new google.maps.LatLng(25.74234 ,66.26508),new google.maps.LatLng(24.92301 ,66.06820),new google.maps.LatLng(25.69293 ,66.80027),new google.maps.LatLng(24.65040 ,67.39309),new google.maps.LatLng(24.93898 ,66.20827),new google.maps.LatLng(26.04675 ,66.50822),new google.maps.LatLng(23.74224 ,67.11187),new google.maps.LatLng(25.16801 ,67.75937),new google.maps.LatLng(24.78580 ,67.05688),new google.maps.LatLng(26.19646 ,67.36262),new google.maps.LatLng(26.18286 ,67.47553),new google.maps.LatLng(25.00002 ,67.68392),new google.maps.LatLng(25.80755 ,67.65940),new google.maps.LatLng(26.16982 ,67.07958),new google.maps.LatLng(24.06247 ,66.39529),new google.maps.LatLng(25.42541 ,66.10443),new google.maps.LatLng(25.86783 ,66.85316),new google.maps.LatLng(25.75976 ,66.67366),new google.maps.LatLng(25.35003 ,67.83686),new google.maps.LatLng(25.29564 ,67.94154),new google.maps.LatLng(24.84303 ,66.61408),new google.maps.LatLng(25.64379 ,66.47879),new google.maps.LatLng(25.28200 ,67.39497),new google.maps.LatLng(23.80181 ,66.73467),new google.maps.LatLng(25.42117 ,66.45636),new google.maps.LatLng(24.61986 ,68.15864),new google.maps.LatLng(24.35415 ,66.32673),new google.maps.LatLng(24.76183 ,66.39470),new google.maps.LatLng(25.36191 ,66.65741),new google.maps.LatLng(24.75802 ,67.65333),new google.maps.LatLng(25.80437 ,67.40946),new google.maps.LatLng(24.63002 ,67.47453),new google.maps.LatLng(24.39334 ,67.63209),new google.maps.LatLng(24.98379 ,66.39805),new google.maps.LatLng(24.12106 ,67.84981),new google.maps.LatLng(25.35886 ,65.94923),new google.maps.LatLng(24.12323 ,66.51047),new google.maps.LatLng(25.49776 ,67.05468),new google.maps.LatLng(26.03565 ,67.32603),new google.maps.LatLng(23.95362 ,67.37561),new google.maps.LatLng(25.62902 ,68.12220),new google.maps.LatLng(25.19600 ,67.79533),new google.maps.LatLng(23.81448 ,66.73711),new google.maps.LatLng(24.11492 ,66.54710),new google.maps.LatLng(25.82006 ,66.98252),new google.maps.LatLng(25.79863 ,66.18611),new google.maps.LatLng(23.98573 ,66.42383),new google.maps.LatLng(24.08319 ,67.14691),new google.maps.LatLng(25.37534 ,67.61519),new google.maps.LatLng(25.39963 ,66.60962),new google.maps.LatLng(24.83074 ,67.58417),new google.maps.LatLng(24.40725 ,67.96324),new google.maps.LatLng(25.05070 ,67.28630),new google.maps.LatLng(23.85458 ,67.04190),new google.maps.LatLng(24.44963 ,67.74218),new google.maps.LatLng(24.85158 ,66.71283),new google.maps.LatLng(25.44632 ,68.11979),new google.maps.LatLng(23.86933 ,66.45209),new google.maps.LatLng(24.71876 ,66.47845),new google.maps.LatLng(24.63713 ,66.23042),new google.maps.LatLng(25.84844 ,66.76818),new google.maps.LatLng(24.84780 ,68.13479),new google.maps.LatLng(24.57591 ,65.84017),new google.maps.LatLng(25.37319 ,68.29830),new google.maps.LatLng(24.44950 ,66.27915),new google.maps.LatLng(23.97195 ,67.28905),new google.maps.LatLng(24.54880 ,67.35734),new google.maps.LatLng(25.62755 ,66.25475),new google.maps.LatLng(23.88678 ,66.71690),new google.maps.LatLng(25.19919 ,66.33458),new google.maps.LatLng(24.82481 ,67.68081),new google.maps.LatLng(25.18385 ,67.62897),new google.maps.LatLng(24.02771 ,66.38281),new google.maps.LatLng(25.06394 ,67.95830),new google.maps.LatLng(25.37762 ,67.51584),new google.maps.LatLng(24.60792 ,65.82302),new google.maps.LatLng(23.83028 ,67.71796),new google.maps.LatLng(25.50907 ,67.36890),new google.maps.LatLng(24.84694 ,67.28300),new google.maps.LatLng(25.42872 ,67.46494),new google.maps.LatLng(24.75754 ,67.08602),new google.maps.LatLng(25.53501 ,66.45068),new google.maps.LatLng(23.89033 ,66.61199),new google.maps.LatLng(23.92063 ,67.03609),new google.maps.LatLng(23.96737 ,66.83220),new google.maps.LatLng(25.25755 ,67.59204),new google.maps.LatLng(24.50704 ,66.63391),new google.maps.LatLng(25.71825 ,66.09317),new google.maps.LatLng(25.19784 ,66.93750),new google.maps.LatLng(25.37015 ,66.58970),new google.maps.LatLng(25.99843 ,67.06305),new google.maps.LatLng(23.95518 ,67.22604),new google.maps.LatLng(24.34214 ,67.49218),new google.maps.LatLng(23.96410 ,66.61610),new google.maps.LatLng(24.12579 ,66.31932),new google.maps.LatLng(24.84015 ,67.68334),new google.maps.LatLng(24.87684 ,66.65436),new google.maps.LatLng(25.34748 ,65.84718),new google.maps.LatLng(24.76001 ,66.02982),new google.maps.LatLng(24.26152 ,67.27459),new google.maps.LatLng(25.26627 ,66.63784),new google.maps.LatLng(25.46107 ,66.41173),new google.maps.LatLng(25.08771 ,66.88100),new google.maps.LatLng(24.63000 ,67.20965),new google.maps.LatLng(24.90329 ,65.82937),new google.maps.LatLng(24.95916 ,67.74647),new google.maps.LatLng(24.11608 ,67.63856),new google.maps.LatLng(25.51303 ,66.86614),new google.maps.LatLng(24.19744 ,66.28443),new google.maps.LatLng(26.12181 ,67.49303),new google.maps.LatLng(25.99697 ,66.95415),new google.maps.LatLng(25.90900 ,66.74076),new google.maps.LatLng(24.84937 ,67.17607),new google.maps.LatLng(24.56085 ,67.09689),new google.maps.LatLng(23.93012 ,67.75969),new google.maps.LatLng(25.90615 ,67.52364),new google.maps.LatLng(24.02570 ,67.09427),new google.maps.LatLng(25.43087 ,65.94932),new google.maps.LatLng(24.07694 ,66.24010),new google.maps.LatLng(24.30890 ,67.14563),new google.maps.LatLng(24.29245 ,67.80181),new google.maps.LatLng(25.09225 ,67.11683),new google.maps.LatLng(23.88459 ,67.59259),new google.maps.LatLng(24.76615 ,67.07876),new google.maps.LatLng(24.31248 ,67.28001),new google.maps.LatLng(24.73512 ,66.88195),new google.maps.LatLng(24.50892 ,67.82277),new google.maps.LatLng(25.10991 ,67.54302),new google.maps.LatLng(24.36227 ,66.84491),new google.maps.LatLng(25.14581 ,68.00029),new google.maps.LatLng(24.14683 ,66.97236),new google.maps.LatLng(25.03759 ,67.19464),new google.maps.LatLng(25.51829 ,67.89510),new google.maps.LatLng(24.11278 ,67.59293),new google.maps.LatLng(24.91364 ,66.00237),new google.maps.LatLng(23.96914 ,66.89613),new google.maps.LatLng(24.34716 ,67.66776),new google.maps.LatLng(25.01401 ,68.35379),new google.maps.LatLng(23.91048 ,67.26582),new google.maps.LatLng(24.26243 ,67.86678),new google.maps.LatLng(24.34603 ,67.22718),new google.maps.LatLng(24.30502 ,67.93098),new google.maps.LatLng(24.66787 ,67.51485),new google.maps.LatLng(25.45551 ,66.44510),new google.maps.LatLng(24.97051 ,67.30200),new google.maps.LatLng(25.34680 ,66.25099),new google.maps.LatLng(25.93972 ,67.00935),new google.maps.LatLng(23.96883 ,67.52520),new google.maps.LatLng(24.03949 ,66.64445),new google.maps.LatLng(25.85469 ,66.24647),new google.maps.LatLng(25.97929 ,67.08527),new google.maps.LatLng(24.32613 ,66.81246),new google.maps.LatLng(24.56752 ,65.97214),new google.maps.LatLng(26.06328 ,66.48011),new google.maps.LatLng(24.62160 ,65.92509),new google.maps.LatLng(25.34650 ,67.56080),new google.maps.LatLng(24.35513 ,67.90857),new google.maps.LatLng(24.75670 ,66.14239),new google.maps.LatLng(23.83137 ,67.55520),new google.maps.LatLng(24.15634 ,67.52891),new google.maps.LatLng(23.84441 ,67.07938),new google.maps.LatLng(24.75367 ,67.23007),new google.maps.LatLng(25.60335 ,66.37056),new google.maps.LatLng(24.58696 ,67.41670),new google.maps.LatLng(25.14428 ,67.01586),new google.maps.LatLng(26.21562 ,67.20975),new google.maps.LatLng(25.06254 ,67.24622),new google.maps.LatLng(25.11655 ,66.26980),new google.maps.LatLng(25.79362 ,67.17813),new google.maps.LatLng(25.28033 ,65.91484),new google.maps.LatLng(24.98197 ,65.79660),new google.maps.LatLng(23.71418 ,66.70478),new google.maps.LatLng(24.66977 ,67.91172),new google.maps.LatLng(23.83976 ,67.21446),new google.maps.LatLng(24.12040 ,67.21964),new google.maps.LatLng(25.88028 ,67.85237),new google.maps.LatLng(23.92871 ,67.03814),new google.maps.LatLng(24.80488 ,67.80558),new google.maps.LatLng(25.05511 ,67.44518),new google.maps.LatLng(25.86014 ,66.61257),new google.maps.LatLng(24.91029 ,66.70494),new google.maps.LatLng(25.47555 ,66.02245),new google.maps.LatLng(25.40447 ,68.26805),new google.maps.LatLng(25.24092 ,66.75543),new google.maps.LatLng(24.44755 ,66.74210),new google.maps.LatLng(23.74775 ,67.08317),new google.maps.LatLng(24.19268 ,67.25984),new google.maps.LatLng(25.92913 ,66.60948),new google.maps.LatLng(24.84647 ,67.24392),new google.maps.LatLng(24.88445 ,66.45226),new google.maps.LatLng(25.41744 ,67.73002),new google.maps.LatLng(25.56948 ,66.26655),new google.maps.LatLng(25.87992 ,67.80434),new google.maps.LatLng(24.98684 ,67.95725),new google.maps.LatLng(24.77430 ,68.04368),new google.maps.LatLng(24.35359 ,66.30670),new google.maps.LatLng(24.57250 ,66.27788),new google.maps.LatLng(24.50708 ,67.06480),new google.maps.LatLng(24.31954 ,68.20994),new google.maps.LatLng(25.96495 ,67.53357),new google.maps.LatLng(24.54004 ,66.00626),new google.maps.LatLng(25.75532 ,66.81465),new google.maps.LatLng(25.11310 ,66.48935),new google.maps.LatLng(25.99700 ,66.76261),new google.maps.LatLng(24.90059 ,66.39399),new google.maps.LatLng(25.60073 ,66.17005),new google.maps.LatLng(25.40460 ,67.41746),new google.maps.LatLng(25.65350 ,67.41023),new google.maps.LatLng(24.24476 ,67.28120),new google.maps.LatLng(24.42464 ,66.47060),new google.maps.LatLng(25.63959 ,67.01182),new google.maps.LatLng(25.25808 ,67.16381),new google.maps.LatLng(24.78273 ,66.20548),new google.maps.LatLng(23.75217 ,67.53225),new google.maps.LatLng(24.44145 ,66.91316),new google.maps.LatLng(25.35704 ,67.80149),new google.maps.LatLng(24.24292 ,67.62547),new google.maps.LatLng(24.28889 ,67.05331),new google.maps.LatLng(25.45285 ,67.88737),new google.maps.LatLng(24.81062 ,66.61263),new google.maps.LatLng(24.27064 ,67.99640),new google.maps.LatLng(25.17164 ,68.29271),new google.maps.LatLng(25.15286 ,66.86791),new google.maps.LatLng(24.69587 ,68.24134),new google.maps.LatLng(24.70544 ,66.57971),new google.maps.LatLng(25.32880 ,66.05039),new google.maps.LatLng(23.83751 ,67.33803),new google.maps.LatLng(24.20722 ,66.55535),new google.maps.LatLng(25.16165 ,67.44100),new google.maps.LatLng(25.10812 ,66.26696),new google.maps.LatLng(24.37575 ,66.28855),new google.maps.LatLng(26.00247 ,66.49882),new google.maps.LatLng(25.52253 ,67.89486),new google.maps.LatLng(24.80883 ,67.50475),new google.maps.LatLng(24.44800 ,67.78008),new google.maps.LatLng(25.84743 ,66.32588),new google.maps.LatLng(24.51231 ,66.84181),new google.maps.LatLng(24.44017 ,68.11058),new google.maps.LatLng(26.05463 ,66.66571),new google.maps.LatLng(25.94826 ,66.72985),new google.maps.LatLng(25.35326 ,66.37484),new google.maps.LatLng(24.17767 ,66.83532),new google.maps.LatLng(24.36931 ,68.00374),new google.maps.LatLng(25.33267 ,67.12181),new google.maps.LatLng(26.01853 ,67.26378),new google.maps.LatLng(24.73179 ,66.09605),new google.maps.LatLng(25.04233 ,66.53216),new google.maps.LatLng(24.58548 ,67.03691),new google.maps.LatLng(24.42318 ,67.10000),new google.maps.LatLng(26.06717 ,67.49489),new google.maps.LatLng(25.63600 ,66.97010),new google.maps.LatLng(25.20923 ,66.23793),new google.maps.LatLng(25.34054 ,68.24169),new google.maps.LatLng(25.06593 ,68.24512),new google.maps.LatLng(25.47117 ,68.04283),new google.maps.LatLng(24.63877 ,66.39414),new google.maps.LatLng(24.50477 ,67.36562),new google.maps.LatLng(24.83336 ,67.85727),new google.maps.LatLng(25.16351 ,68.04265),new google.maps.LatLng(24.56638 ,68.21073),new google.maps.LatLng(25.55882 ,67.61332),new google.maps.LatLng(25.62106 ,67.26111),new google.maps.LatLng(26.00414 ,66.57340),new google.maps.LatLng(25.38531 ,66.15513),new google.maps.LatLng(25.99492 ,66.50671),new google.maps.LatLng(26.07647 ,66.42545),new google.maps.LatLng(25.38316 ,68.08608),new google.maps.LatLng(25.95732 ,67.04004),new google.maps.LatLng(24.85820 ,68.16050),new google.maps.LatLng(25.83168 ,67.87145),new google.maps.LatLng(24.94450 ,66.73116),new google.maps.LatLng(25.36197 ,67.46138),new google.maps.LatLng(24.84761 ,68.31101),new google.maps.LatLng(24.12864 ,66.08079),new google.maps.LatLng(25.19180 ,67.91245),new google.maps.LatLng(24.41861 ,67.92883),new google.maps.LatLng(25.46640 ,68.12755),new google.maps.LatLng(23.97240 ,67.44706),new google.maps.LatLng(25.02900 ,67.77149),new google.maps.LatLng(24.01766 ,67.87400),new google.maps.LatLng(24.02650 ,67.17032),new google.maps.LatLng(25.23310 ,67.21227),new google.maps.LatLng(25.04366 ,65.81528),new google.maps.LatLng(24.40468 ,67.29633),new google.maps.LatLng(24.64164 ,65.83131),new google.maps.LatLng(25.98305 ,67.00089),new google.maps.LatLng(25.03349 ,66.45086),new google.maps.LatLng(24.24715 ,66.02392),new google.maps.LatLng(25.46518 ,66.34334),new google.maps.LatLng(24.94678 ,66.28554),new google.maps.LatLng(26.11978 ,67.41860),new google.maps.LatLng(25.50957 ,67.60086),new google.maps.LatLng(24.69462 ,67.95735),new google.maps.LatLng(25.31929 ,66.29755),new google.maps.LatLng(25.99056 ,67.08958),new google.maps.LatLng(25.84958 ,67.31264),new google.maps.LatLng(24.29177 ,65.96400),new google.maps.LatLng(23.98387 ,67.18667),new google.maps.LatLng(24.64202 ,67.09024),new google.maps.LatLng(25.62745 ,66.57152),new google.maps.LatLng(24.72629 ,67.14894),new google.maps.LatLng(25.79959 ,67.25142),new google.maps.LatLng(24.86629 ,68.28508),new google.maps.LatLng(25.20538 ,67.31245),new google.maps.LatLng(24.44227 ,66.92585),new google.maps.LatLng(25.86913 ,66.59988),new google.maps.LatLng(24.18067 ,66.04384),new google.maps.LatLng(23.98270 ,66.26014),new google.maps.LatLng(23.72352 ,66.98598),new google.maps.LatLng(25.23249 ,68.18578),new google.maps.LatLng(24.02621 ,66.34381),new google.maps.LatLng(24.21171 ,66.99102),new google.maps.LatLng(25.51557 ,66.91653),new google.maps.LatLng(24.71001 ,66.38773),new google.maps.LatLng(24.37941 ,66.91148),new google.maps.LatLng(25.02503 ,67.13298),new google.maps.LatLng(25.88436 ,66.95829),new google.maps.LatLng(24.66584 ,68.00510),new google.maps.LatLng(25.47928 ,67.89441),new google.maps.LatLng(23.74513 ,67.56219),new google.maps.LatLng(25.46426 ,66.45295),new google.maps.LatLng(24.03577 ,66.58627),new google.maps.LatLng(25.01599 ,66.46795),new google.maps.LatLng(24.51341 ,66.66742),new google.maps.LatLng(24.35663 ,67.59660),new google.maps.LatLng(24.18831 ,66.40692),new google.maps.LatLng(25.05984 ,66.41247),new google.maps.LatLng(24.56570 ,66.63131),new google.maps.LatLng(26.02904 ,67.01753),new google.maps.LatLng(25.93097 ,67.04309),new google.maps.LatLng(25.09288 ,67.36701),new google.maps.LatLng(25.13734 ,67.79720),new google.maps.LatLng(25.39391 ,67.76132),new google.maps.LatLng(25.05704 ,68.02908),new google.maps.LatLng(24.88366 ,67.54669),new google.maps.LatLng(24.46360 ,67.16186),new google.maps.LatLng(25.82396 ,67.56974),new google.maps.LatLng(24.45970 ,67.87047),new google.maps.LatLng(25.18906 ,66.36687),new google.maps.LatLng(25.07690 ,68.17221),new google.maps.LatLng(25.17926 ,67.81050),new google.maps.LatLng(24.68138 ,65.95543),new google.maps.LatLng(25.80053 ,66.32385),new google.maps.LatLng(26.14458 ,67.00506),new google.maps.LatLng(24.56463 ,67.06605),new google.maps.LatLng(24.39150 ,66.26804),new google.maps.LatLng(25.22197 ,66.72054),new google.maps.LatLng(25.71225 ,68.03207),new google.maps.LatLng(25.08428 ,68.27460),new google.maps.LatLng(24.55636 ,68.22865),new google.maps.LatLng(24.00297 ,66.79995),new google.maps.LatLng(25.45028 ,67.38173),new google.maps.LatLng(23.86361 ,67.76278),new google.maps.LatLng(23.94850 ,67.30584),new google.maps.LatLng(24.74143 ,66.24469),new google.maps.LatLng(24.71147 ,67.33224),new google.maps.LatLng(24.38055 ,65.93679),new google.maps.LatLng(25.73273 ,66.05921),new google.maps.LatLng(24.34100 ,67.69237),new google.maps.LatLng(24.80427 ,66.25565),new google.maps.LatLng(23.97221 ,67.47377),new google.maps.LatLng(24.07105 ,67.61544),new google.maps.LatLng(24.89689 ,68.26493),new google.maps.LatLng(24.23014 ,66.45122),new google.maps.LatLng(26.04038 ,67.62427),new google.maps.LatLng(24.22945 ,67.62673),new google.maps.LatLng(25.48583 ,67.22381),new google.maps.LatLng(24.71004 ,65.79722),new google.maps.LatLng(25.61996 ,66.64057),new google.maps.LatLng(25.66643 ,67.99046),new google.maps.LatLng(25.49937 ,67.26570),new google.maps.LatLng(25.52998 ,67.56918),new google.maps.LatLng(24.39075 ,67.62487),new google.maps.LatLng(25.06648 ,66.48138),new google.maps.LatLng(24.43544 ,66.08576),new google.maps.LatLng(24.00442 ,67.65582),new google.maps.LatLng(24.50983 ,65.94773),new google.maps.LatLng(24.75785 ,66.31460),new google.maps.LatLng(24.75450 ,67.56012),new google.maps.LatLng(24.50801 ,66.93778),new google.maps.LatLng(24.56972 ,66.13037),new google.maps.LatLng(25.03013 ,66.47624),new google.maps.LatLng(25.34015 ,67.76562),new google.maps.LatLng(26.15615 ,67.40655),new google.maps.LatLng(26.02784 ,66.76177),new google.maps.LatLng(26.10457 ,66.96411),new google.maps.LatLng(25.34401 ,66.39216),new google.maps.LatLng(24.46832 ,67.51972),new google.maps.LatLng(25.71489 ,66.54640),new google.maps.LatLng(25.97534 ,67.61514),new google.maps.LatLng(24.67078 ,66.55495),new google.maps.LatLng(24.30593 ,66.98101),new google.maps.LatLng(24.34338 ,67.84639),new google.maps.LatLng(24.11112 ,67.14750),new google.maps.LatLng(24.16920 ,67.86579),new google.maps.LatLng(25.81360 ,66.41040),new google.maps.LatLng(24.76666 ,66.12856),new google.maps.LatLng(23.78758 ,67.49247),new google.maps.LatLng(24.41763 ,66.75958),new google.maps.LatLng(24.57206 ,65.94201),new google.maps.LatLng(25.12969 ,66.16462),new google.maps.LatLng(25.77656 ,67.15975),new google.maps.LatLng(24.49059 ,66.21630),new google.maps.LatLng(24.44575 ,67.17481),new google.maps.LatLng(25.03408 ,66.05755),new google.maps.LatLng(24.65759 ,67.57702),new google.maps.LatLng(26.23406 ,67.17281),new google.maps.LatLng(25.37991 ,66.75821),new google.maps.LatLng(25.15684 ,68.02668),new google.maps.LatLng(24.75332 ,67.40796),new google.maps.LatLng(24.85828 ,66.66349),new google.maps.LatLng(25.82567 ,67.22523),new google.maps.LatLng(24.93238 ,65.86687),new google.maps.LatLng(24.71057 ,66.38067),new google.maps.LatLng(25.66830 ,67.41402),new google.maps.LatLng(24.79845 ,66.02504),new google.maps.LatLng(24.77299 ,67.02514),new google.maps.LatLng(24.91158 ,66.48945),new google.maps.LatLng(25.66608 ,66.24154),new google.maps.LatLng(25.56737 ,68.05742),new google.maps.LatLng(24.60278 ,67.16519),new google.maps.LatLng(25.88816 ,67.08653),new google.maps.LatLng(24.53018 ,65.89878),new google.maps.LatLng(24.56684 ,65.99183),new google.maps.LatLng(23.73191 ,67.17219),new google.maps.LatLng(25.33613 ,66.43623),new google.maps.LatLng(24.38588 ,67.93107),new google.maps.LatLng(25.04790 ,66.17627),new google.maps.LatLng(25.26757 ,68.21222),new google.maps.LatLng(24.25534 ,67.11534),new google.maps.LatLng(25.01245 ,66.12945),new google.maps.LatLng(25.49372 ,66.66886),new google.maps.LatLng(24.48966 ,65.97328),new google.maps.LatLng(25.49700 ,66.22142),new google.maps.LatLng(24.04331 ,67.04762),new google.maps.LatLng(24.69146 ,66.28396),new google.maps.LatLng(24.85095 ,66.14654),new google.maps.LatLng(25.13884 ,66.92009),new google.maps.LatLng(24.73110 ,67.78871),new google.maps.LatLng(25.35373 ,68.01466),new google.maps.LatLng(25.23395 ,66.38293),new google.maps.LatLng(25.52851 ,66.06655),new google.maps.LatLng(26.03962 ,66.78461),new google.maps.LatLng(25.77471 ,67.54904),new google.maps.LatLng(24.75512 ,67.74530),new google.maps.LatLng(25.43742 ,67.59154),new google.maps.LatLng(23.85030 ,67.26820),new google.maps.LatLng(24.66253 ,67.20845),new google.maps.LatLng(23.69146 ,67.10579),new google.maps.LatLng(23.88937 ,66.79298),new google.maps.LatLng(25.38020 ,66.69248),new google.maps.LatLng(24.85658 ,67.48202),new google.maps.LatLng(25.65031 ,67.53881),new google.maps.LatLng(25.21753 ,66.74905),new google.maps.LatLng(25.19481 ,66.49648),new google.maps.LatLng(25.76998 ,66.62893)]; \r\n }\r\n else if(type == 6){\r\n return [new google.maps.LatLng(34.07494 ,72.69372),new google.maps.LatLng(33.49498 ,73.54575),new google.maps.LatLng(33.80750 ,73.66452),new google.maps.LatLng(34.19820 ,72.88208),new google.maps.LatLng(33.61495 ,73.37688),new google.maps.LatLng(33.26078 ,72.63808),new google.maps.LatLng(33.23557 ,73.31900),new google.maps.LatLng(34.23965 ,72.68360),new google.maps.LatLng(34.11367 ,73.41334),new google.maps.LatLng(33.36729 ,72.74116),new google.maps.LatLng(33.73613 ,73.05301),new google.maps.LatLng(33.73541 ,72.72041),new google.maps.LatLng(33.78582 ,73.54286),new google.maps.LatLng(33.93701 ,73.45182),new google.maps.LatLng(33.14505 ,73.11662),new google.maps.LatLng(34.21542 ,73.40855),new google.maps.LatLng(33.92098 ,73.36963),new google.maps.LatLng(33.20750 ,72.88309),new google.maps.LatLng(33.27454 ,72.66226),new google.maps.LatLng(34.15963 ,73.22824),new google.maps.LatLng(33.56209 ,73.23614),new google.maps.LatLng(33.92592 ,73.53011),new google.maps.LatLng(34.01042 ,73.22453),new google.maps.LatLng(34.07328 ,73.56147),new google.maps.LatLng(33.15955 ,73.21516),new google.maps.LatLng(33.50787 ,73.08427),new google.maps.LatLng(33.10355 ,72.71543),new google.maps.LatLng(34.11679 ,73.27491),new google.maps.LatLng(33.48897 ,73.22794),new google.maps.LatLng(33.86326 ,73.39396),new google.maps.LatLng(33.62907 ,73.27099),new google.maps.LatLng(33.56184 ,73.25037),new google.maps.LatLng(33.72916 ,73.34047),new google.maps.LatLng(33.77874 ,73.57401),new google.maps.LatLng(33.93356 ,73.22451),new google.maps.LatLng(33.53385 ,73.08492),new google.maps.LatLng(33.61083 ,72.63167),new google.maps.LatLng(33.79098 ,72.85812),new google.maps.LatLng(33.69437 ,73.18490),new google.maps.LatLng(33.39364 ,73.22880),new google.maps.LatLng(33.41106 ,73.47233),new google.maps.LatLng(33.29126 ,72.55248),new google.maps.LatLng(33.46643 ,73.31992),new google.maps.LatLng(34.15222 ,73.43793),new google.maps.LatLng(33.72225 ,72.48263),new google.maps.LatLng(33.23313 ,72.85394),new google.maps.LatLng(34.25298 ,72.98412),new google.maps.LatLng(33.40896 ,72.60336),new google.maps.LatLng(34.08336 ,72.84298),new google.maps.LatLng(33.09254 ,73.27751),new google.maps.LatLng(33.20136 ,73.17435),new google.maps.LatLng(33.35989 ,73.60973),new google.maps.LatLng(33.89048 ,73.19815),new google.maps.LatLng(34.02936 ,73.47422),new google.maps.LatLng(33.52864 ,72.67929),new google.maps.LatLng(34.15585 ,73.20887),new google.maps.LatLng(33.21322 ,72.81791),new google.maps.LatLng(34.03691 ,72.52958),new google.maps.LatLng(34.09390 ,72.83962),new google.maps.LatLng(33.62282 ,72.51690),new google.maps.LatLng(33.32075 ,73.56859),new google.maps.LatLng(34.02786 ,73.44502),new google.maps.LatLng(33.87972 ,73.54840),new google.maps.LatLng(33.06056 ,72.81661),new google.maps.LatLng(33.82516 ,72.63558),new google.maps.LatLng(33.54119 ,73.04501),new google.maps.LatLng(33.21674 ,72.87410),new google.maps.LatLng(33.19231 ,72.80939),new google.maps.LatLng(33.97523 ,72.48735),new google.maps.LatLng(33.73727 ,73.62897),new google.maps.LatLng(33.49176 ,73.60837),new google.maps.LatLng(33.96505 ,72.64234),new google.maps.LatLng(33.51750 ,72.52428),new google.maps.LatLng(33.17512 ,72.71624),new google.maps.LatLng(33.44495 ,72.63332),new google.maps.LatLng(33.51250 ,72.98385),new google.maps.LatLng(33.82254 ,72.44723),new google.maps.LatLng(34.09722 ,73.34282),new google.maps.LatLng(33.55607 ,72.87688),new google.maps.LatLng(33.84271 ,73.35060),new google.maps.LatLng(33.94592 ,72.49579),new google.maps.LatLng(33.93030 ,72.59689),new google.maps.LatLng(33.48563 ,72.72778),new google.maps.LatLng(33.25738 ,73.13658),new google.maps.LatLng(34.06753 ,72.77074),new google.maps.LatLng(34.03775 ,73.00303),new google.maps.LatLng(34.25730 ,73.21674),new google.maps.LatLng(33.91171 ,73.54274),new google.maps.LatLng(34.05805 ,72.47270),new google.maps.LatLng(33.32162 ,73.55529),new google.maps.LatLng(33.76147 ,72.59440),new google.maps.LatLng(33.70995 ,72.90197),new google.maps.LatLng(33.10468 ,73.34468),new google.maps.LatLng(33.51831 ,73.63526),new google.maps.LatLng(33.21123 ,72.95117),new google.maps.LatLng(33.46636 ,72.77487),new google.maps.LatLng(33.98349 ,72.56181),new google.maps.LatLng(34.21589 ,73.28715),new google.maps.LatLng(33.64695 ,72.53762),new google.maps.LatLng(34.30772 ,72.83648),new google.maps.LatLng(34.18791 ,72.85623),new google.maps.LatLng(33.52089 ,73.51038),new google.maps.LatLng(33.76201 ,73.33026),new google.maps.LatLng(34.15492 ,72.57049),new google.maps.LatLng(33.41443 ,73.19893),new google.maps.LatLng(33.81124 ,72.55139),new google.maps.LatLng(33.38931 ,73.13528),new google.maps.LatLng(33.20894 ,73.50387),new google.maps.LatLng(33.48082 ,72.93582),new google.maps.LatLng(33.78590 ,73.50483),new google.maps.LatLng(33.44664 ,73.61884),new google.maps.LatLng(33.13990 ,72.80984),new google.maps.LatLng(33.45720 ,73.23663),new google.maps.LatLng(33.98240 ,72.88645),new google.maps.LatLng(33.92397 ,73.34240),new google.maps.LatLng(33.68774 ,73.67916),new google.maps.LatLng(33.57424 ,72.44250),new google.maps.LatLng(34.26772 ,73.26769),new google.maps.LatLng(33.66569 ,73.05591),new google.maps.LatLng(34.10298 ,72.56815),new google.maps.LatLng(34.03292 ,73.25756),new google.maps.LatLng(33.12117 ,73.02309),new google.maps.LatLng(33.19562 ,72.66398),new google.maps.LatLng(33.18512 ,72.80582),new google.maps.LatLng(34.16471 ,72.93375),new google.maps.LatLng(33.27750 ,73.22370),new google.maps.LatLng(33.72363 ,73.12215),new google.maps.LatLng(33.17566 ,73.21937),new google.maps.LatLng(33.11119 ,73.22897),new google.maps.LatLng(34.14353 ,73.28254),new google.maps.LatLng(33.67246 ,72.48428),new google.maps.LatLng(33.19367 ,73.46500),new google.maps.LatLng(33.54890 ,73.30126),new google.maps.LatLng(33.42412 ,72.68019),new google.maps.LatLng(33.23661 ,73.53447),new google.maps.LatLng(33.40118 ,72.93124),new google.maps.LatLng(33.85753 ,72.44478),new google.maps.LatLng(34.11859 ,73.07084),new google.maps.LatLng(34.06490 ,73.56275),new google.maps.LatLng(33.69323 ,73.44425),new google.maps.LatLng(33.55067 ,73.34813),new google.maps.LatLng(33.75097 ,72.87799),new google.maps.LatLng(33.60361 ,72.61753),new google.maps.LatLng(33.11164 ,72.68929),new google.maps.LatLng(33.51666 ,73.64656),new google.maps.LatLng(33.93649 ,73.44444),new google.maps.LatLng(33.25803 ,73.36284),new google.maps.LatLng(33.54516 ,72.72597),new google.maps.LatLng(33.71992 ,73.28922),new google.maps.LatLng(33.62669 ,72.76287),new google.maps.LatLng(34.18508 ,72.59347),new google.maps.LatLng(33.47196 ,73.37082),new google.maps.LatLng(33.93353 ,73.23367),new google.maps.LatLng(33.43009 ,72.83961),new google.maps.LatLng(33.66828 ,73.69212),new google.maps.LatLng(34.05186 ,73.59740),new google.maps.LatLng(33.86915 ,72.97621),new google.maps.LatLng(33.14737 ,72.67001),new google.maps.LatLng(33.41331 ,73.24701),new google.maps.LatLng(33.79158 ,73.64455),new google.maps.LatLng(33.93419 ,72.73462),new google.maps.LatLng(34.31701 ,73.26084),new google.maps.LatLng(34.15051 ,73.26462),new google.maps.LatLng(34.19026 ,72.77135),new google.maps.LatLng(33.05660 ,73.07621),new google.maps.LatLng(34.18502 ,73.10951),new google.maps.LatLng(33.96996 ,72.77764),new google.maps.LatLng(33.56074 ,72.76733),new google.maps.LatLng(33.75170 ,72.87936),new google.maps.LatLng(33.82116 ,73.02746),new google.maps.LatLng(33.46228 ,72.41066),new google.maps.LatLng(33.99825 ,72.97973),new google.maps.LatLng(33.82651 ,73.09966),new google.maps.LatLng(33.83583 ,72.42086),new google.maps.LatLng(34.04028 ,72.78323),new google.maps.LatLng(34.33046 ,72.96556),new google.maps.LatLng(33.21274 ,72.93341),new google.maps.LatLng(33.10958 ,72.74735),new google.maps.LatLng(33.12596 ,73.10476),new google.maps.LatLng(33.26088 ,73.51995),new google.maps.LatLng(33.66331 ,72.50627),new google.maps.LatLng(34.02247 ,73.23792),new google.maps.LatLng(33.82468 ,73.50674),new google.maps.LatLng(34.06795 ,72.63364),new google.maps.LatLng(34.13076 ,73.04784),new google.maps.LatLng(33.61763 ,73.11560),new google.maps.LatLng(33.50694 ,73.58941),new google.maps.LatLng(34.17211 ,72.86649),new google.maps.LatLng(33.57008 ,73.38178),new google.maps.LatLng(33.40608 ,72.84499),new google.maps.LatLng(34.27164 ,73.15359),new google.maps.LatLng(33.88743 ,72.99109),new google.maps.LatLng(33.69636 ,72.62092),new google.maps.LatLng(34.23360 ,72.97911),new google.maps.LatLng(33.94359 ,72.68445),new google.maps.LatLng(33.16940 ,72.68570),new google.maps.LatLng(33.10289 ,73.09683),new google.maps.LatLng(33.55928 ,72.78859),new google.maps.LatLng(33.80058 ,73.36891),new google.maps.LatLng(33.66642 ,72.58754),new google.maps.LatLng(34.12898 ,73.22189),new google.maps.LatLng(33.41983 ,72.43746),new google.maps.LatLng(33.71797 ,73.10273),new google.maps.LatLng(33.39686 ,72.76125),new google.maps.LatLng(34.06854 ,73.36334),new google.maps.LatLng(33.52403 ,72.53890),new google.maps.LatLng(33.29894 ,73.38386),new google.maps.LatLng(34.33103 ,73.11405),new google.maps.LatLng(33.69666 ,72.87964),new google.maps.LatLng(33.52062 ,73.59581),new google.maps.LatLng(33.67064 ,72.73386),new google.maps.LatLng(33.48114 ,72.50387),new google.maps.LatLng(33.60570 ,73.08794),new google.maps.LatLng(33.39635 ,73.30772),new google.maps.LatLng(33.36568 ,72.55252),new google.maps.LatLng(33.31909 ,73.17014),new google.maps.LatLng(34.25105 ,72.96501),new google.maps.LatLng(33.73087 ,72.49383),new google.maps.LatLng(33.33057 ,73.08090),new google.maps.LatLng(33.59772 ,72.85622),new google.maps.LatLng(33.37184 ,73.11170),new google.maps.LatLng(34.32388 ,73.07924),new google.maps.LatLng(33.74998 ,73.63123),new google.maps.LatLng(33.85765 ,72.91204),new google.maps.LatLng(33.23083 ,72.64471),new google.maps.LatLng(33.94144 ,72.78749),new google.maps.LatLng(33.44218 ,73.60191),new google.maps.LatLng(33.34179 ,72.68587),new google.maps.LatLng(33.93915 ,73.26807),new google.maps.LatLng(33.15862 ,72.75303),new google.maps.LatLng(33.20496 ,72.90540),new google.maps.LatLng(33.27905 ,72.98743),new google.maps.LatLng(34.23518 ,72.81625),new google.maps.LatLng(33.23062 ,73.03595),new google.maps.LatLng(33.59028 ,73.46927),new google.maps.LatLng(33.28316 ,72.85973),new google.maps.LatLng(34.05485 ,73.27660),new google.maps.LatLng(33.48524 ,73.04663),new google.maps.LatLng(33.32368 ,73.52501),new google.maps.LatLng(34.07487 ,72.98771),new google.maps.LatLng(33.76665 ,72.95269),new google.maps.LatLng(33.59880 ,73.08367),new google.maps.LatLng(33.45069 ,72.73679),new google.maps.LatLng(33.68318 ,72.36500),new google.maps.LatLng(33.13437 ,72.66976),new google.maps.LatLng(33.12336 ,73.22089),new google.maps.LatLng(33.67680 ,72.69381),new google.maps.LatLng(33.85951 ,73.24213),new google.maps.LatLng(34.07648 ,73.43544),new google.maps.LatLng(33.37270 ,73.43172),new google.maps.LatLng(34.33667 ,72.88485),new google.maps.LatLng(33.58823 ,72.90382),new google.maps.LatLng(33.52958 ,72.40660),new google.maps.LatLng(34.24595 ,72.83570),new google.maps.LatLng(33.54534 ,73.40070),new google.maps.LatLng(33.68435 ,73.54529),new google.maps.LatLng(34.17628 ,73.15058),new google.maps.LatLng(33.66976 ,72.65775),new google.maps.LatLng(33.57777 ,72.72154),new google.maps.LatLng(33.92621 ,73.03179),new google.maps.LatLng(33.64702 ,72.63728),new google.maps.LatLng(34.35701 ,73.01688),new google.maps.LatLng(34.08601 ,73.30608),new google.maps.LatLng(33.82603 ,72.76177),new google.maps.LatLng(33.96456 ,72.78418),new google.maps.LatLng(33.97152 ,72.80468),new google.maps.LatLng(34.32544 ,73.08837),new google.maps.LatLng(33.02377 ,73.07895),new google.maps.LatLng(33.66960 ,73.22531),new google.maps.LatLng(33.95839 ,73.31454),new google.maps.LatLng(33.53654 ,73.53150),new google.maps.LatLng(33.28939 ,73.22127),new google.maps.LatLng(33.42072 ,73.35235),new google.maps.LatLng(33.44857 ,72.41467),new google.maps.LatLng(33.25466 ,73.03510),new google.maps.LatLng(33.39605 ,73.02837),new google.maps.LatLng(33.42559 ,72.62128),new google.maps.LatLng(33.56705 ,73.07611),new google.maps.LatLng(33.93575 ,73.46603),new google.maps.LatLng(33.08278 ,73.06485),new google.maps.LatLng(33.41184 ,72.61296),new google.maps.LatLng(33.90734 ,72.91666),new google.maps.LatLng(33.62787 ,73.49600),new google.maps.LatLng(33.90784 ,72.71340),new google.maps.LatLng(33.75836 ,73.02544),new google.maps.LatLng(34.29027 ,73.07608),new google.maps.LatLng(33.74179 ,73.20836),new google.maps.LatLng(33.71780 ,73.32914),new google.maps.LatLng(33.24229 ,73.33357),new google.maps.LatLng(33.91009 ,73.28131),new google.maps.LatLng(33.25499 ,73.26535),new google.maps.LatLng(33.38612 ,72.78003),new google.maps.LatLng(33.34422 ,73.04415),new google.maps.LatLng(34.26022 ,72.78621),new google.maps.LatLng(34.26638 ,73.24165),new google.maps.LatLng(33.75095 ,72.91404),new google.maps.LatLng(33.68506 ,73.31413),new google.maps.LatLng(33.79070 ,72.51617),new google.maps.LatLng(33.71343 ,73.64354),new google.maps.LatLng(34.05872 ,72.81997),new google.maps.LatLng(33.72743 ,73.43073),new google.maps.LatLng(33.48298 ,72.51496),new google.maps.LatLng(33.74789 ,72.79338),new google.maps.LatLng(33.43550 ,72.51823),new google.maps.LatLng(33.47917 ,72.79781),new google.maps.LatLng(33.40163 ,72.95553),new google.maps.LatLng(33.76885 ,73.10219),new google.maps.LatLng(33.61589 ,73.10603),new google.maps.LatLng(33.22898 ,72.65173),new google.maps.LatLng(33.46675 ,73.50965),new google.maps.LatLng(34.08237 ,73.13395),new google.maps.LatLng(33.29852 ,72.53275),new google.maps.LatLng(34.02343 ,73.21335),new google.maps.LatLng(33.29334 ,72.68005),new google.maps.LatLng(33.78033 ,72.54136),new google.maps.LatLng(33.56499 ,73.10459),new google.maps.LatLng(34.04149 ,73.40168),new google.maps.LatLng(33.86738 ,73.17033),new google.maps.LatLng(33.42172 ,72.86881),new google.maps.LatLng(33.51067 ,72.89619),new google.maps.LatLng(33.34727 ,73.19534),new google.maps.LatLng(34.01984 ,72.51438),new google.maps.LatLng(33.52553 ,72.55916),new google.maps.LatLng(33.53718 ,73.68238),new google.maps.LatLng(33.18868 ,72.60993),new google.maps.LatLng(33.50557 ,73.17876),new google.maps.LatLng(33.60603 ,73.15912),new google.maps.LatLng(33.73123 ,73.08308),new google.maps.LatLng(34.06421 ,72.82564),new google.maps.LatLng(34.15830 ,72.96655),new google.maps.LatLng(33.66903 ,72.97895),new google.maps.LatLng(33.53695 ,73.63659),new google.maps.LatLng(33.59581 ,73.11669),new google.maps.LatLng(34.10147 ,73.30361),new google.maps.LatLng(33.89234 ,73.23093),new google.maps.LatLng(34.15530 ,72.57532),new google.maps.LatLng(33.06551 ,73.29511),new google.maps.LatLng(33.54081 ,73.43200),new google.maps.LatLng(34.21597 ,72.73120),new google.maps.LatLng(33.37555 ,73.18618),new google.maps.LatLng(33.13065 ,73.26926),new google.maps.LatLng(33.31605 ,73.09224),new google.maps.LatLng(33.77398 ,72.62007),new google.maps.LatLng(33.18562 ,73.14812),new google.maps.LatLng(33.80116 ,73.06000),new google.maps.LatLng(33.89482 ,73.43930),new google.maps.LatLng(33.32604 ,72.94785),new google.maps.LatLng(34.16210 ,72.73747),new google.maps.LatLng(33.48991 ,73.19211),new google.maps.LatLng(33.50730 ,72.45531),new google.maps.LatLng(33.40154 ,73.56066),new google.maps.LatLng(33.48655 ,73.14119),new google.maps.LatLng(34.15294 ,73.04965),new google.maps.LatLng(33.33748 ,72.63071),new google.maps.LatLng(34.09565 ,73.46230),new google.maps.LatLng(33.50407 ,73.40622),new google.maps.LatLng(33.68812 ,73.29140),new google.maps.LatLng(33.71428 ,73.47916),new google.maps.LatLng(33.74762 ,72.76567),new google.maps.LatLng(33.77999 ,72.93600),new google.maps.LatLng(33.66961 ,72.83043),new google.maps.LatLng(33.69623 ,73.66451),new google.maps.LatLng(33.53825 ,73.52838),new google.maps.LatLng(34.26153 ,72.93604),new google.maps.LatLng(33.43967 ,73.49517),new google.maps.LatLng(33.77418 ,72.56669),new google.maps.LatLng(33.12841 ,72.74992),new google.maps.LatLng(34.11487 ,72.80925),new google.maps.LatLng(33.41294 ,72.98909),new google.maps.LatLng(33.62102 ,72.97940),new google.maps.LatLng(34.23447 ,72.99653),new google.maps.LatLng(33.77372 ,72.60023),new google.maps.LatLng(34.19379 ,73.44828),new google.maps.LatLng(34.16327 ,73.47669),new google.maps.LatLng(33.81708 ,73.02497),new google.maps.LatLng(33.11011 ,73.11012),new google.maps.LatLng(33.65934 ,73.42276),new google.maps.LatLng(34.09463 ,73.29185),new google.maps.LatLng(33.31865 ,73.25145),new google.maps.LatLng(34.02459 ,73.15079),new google.maps.LatLng(33.82191 ,73.69294),new google.maps.LatLng(33.19237 ,72.68600),new google.maps.LatLng(33.22234 ,72.85220),new google.maps.LatLng(33.15712 ,72.67408),new google.maps.LatLng(34.18872 ,73.34983),new google.maps.LatLng(33.72156 ,73.57482),new google.maps.LatLng(34.07391 ,73.30104),new google.maps.LatLng(33.53399 ,72.85349),new google.maps.LatLng(34.21314 ,73.06995),new google.maps.LatLng(33.12914 ,73.04807),new google.maps.LatLng(33.04415 ,73.23273),new google.maps.LatLng(33.56163 ,72.63653),new google.maps.LatLng(33.32883 ,72.81253),new google.maps.LatLng(33.43483 ,73.05948),new google.maps.LatLng(33.33242 ,72.67396),new google.maps.LatLng(33.43522 ,73.31475),new google.maps.LatLng(34.19399 ,73.18468),new google.maps.LatLng(33.92931 ,73.06788),new google.maps.LatLng(33.29764 ,72.78740),new google.maps.LatLng(33.37496 ,73.55265),new google.maps.LatLng(33.62155 ,73.24393),new google.maps.LatLng(33.68506 ,73.57236),new google.maps.LatLng(34.10100 ,73.56305),new google.maps.LatLng(33.58768 ,73.16641),new google.maps.LatLng(33.94567 ,72.74531),new google.maps.LatLng(33.41853 ,72.58582),new google.maps.LatLng(33.30366 ,73.37079),new google.maps.LatLng(33.76492 ,73.29216),new google.maps.LatLng(33.40472 ,73.59225),new google.maps.LatLng(33.20221 ,73.24931),new google.maps.LatLng(33.89869 ,72.80188),new google.maps.LatLng(33.94303 ,73.39973),new google.maps.LatLng(33.96028 ,73.25309),new google.maps.LatLng(33.67200 ,73.35247),new google.maps.LatLng(33.85626 ,73.64120),new google.maps.LatLng(34.10131 ,72.75425),new google.maps.LatLng(33.85045 ,73.52791),new google.maps.LatLng(33.50145 ,73.49338),new google.maps.LatLng(34.00642 ,72.62667),new google.maps.LatLng(33.33232 ,72.71831),new google.maps.LatLng(33.14262 ,72.75667),new google.maps.LatLng(33.15556 ,73.16811),new google.maps.LatLng(33.11561 ,73.29781),new google.maps.LatLng(33.31621 ,72.98437),new google.maps.LatLng(33.68541 ,72.76404),new google.maps.LatLng(33.13777 ,72.69138),new google.maps.LatLng(33.26846 ,73.05417),new google.maps.LatLng(33.54829 ,72.42889),new google.maps.LatLng(33.47311 ,73.49114),new google.maps.LatLng(33.94488 ,72.93493),new google.maps.LatLng(33.36980 ,72.67781),new google.maps.LatLng(34.03108 ,73.33338),new google.maps.LatLng(33.63395 ,72.78408),new google.maps.LatLng(34.05619 ,73.34786),new google.maps.LatLng(34.33638 ,73.17571),new google.maps.LatLng(33.93652 ,73.61815),new google.maps.LatLng(33.65074 ,73.56651),new google.maps.LatLng(33.64478 ,72.97718),new google.maps.LatLng(34.20309 ,73.24239),new google.maps.LatLng(33.41919 ,73.40852),new google.maps.LatLng(33.56835 ,72.56039),new google.maps.LatLng(34.26571 ,73.25442),new google.maps.LatLng(33.42810 ,72.62459),new google.maps.LatLng(33.26444 ,73.35002),new google.maps.LatLng(33.10954 ,73.26935),new google.maps.LatLng(34.06403 ,72.73939),new google.maps.LatLng(33.35692 ,73.60867),new google.maps.LatLng(33.70186 ,73.29893),new google.maps.LatLng(33.41633 ,73.27702),new google.maps.LatLng(33.44136 ,72.90588),new google.maps.LatLng(33.30709 ,73.23048),new google.maps.LatLng(33.47698 ,73.50477),new google.maps.LatLng(33.75850 ,73.10649),new google.maps.LatLng(34.10443 ,72.98256),new google.maps.LatLng(34.27738 ,72.81930),new google.maps.LatLng(33.29222 ,73.00746),new google.maps.LatLng(33.29775 ,72.81279),new google.maps.LatLng(33.32973 ,73.44207),new google.maps.LatLng(33.77036 ,73.32062),new google.maps.LatLng(34.24737 ,73.29816),new google.maps.LatLng(33.25241 ,73.15901),new google.maps.LatLng(34.27852 ,72.83981),new google.maps.LatLng(33.17021 ,73.27967),new google.maps.LatLng(34.08825 ,73.43462),new google.maps.LatLng(34.12256 ,73.29080),new google.maps.LatLng(33.41850 ,73.12967),new google.maps.LatLng(34.12132 ,72.82581),new google.maps.LatLng(34.29344 ,73.32084),new google.maps.LatLng(34.00685 ,73.18840),new google.maps.LatLng(33.66555 ,72.90486),new google.maps.LatLng(33.17407 ,72.84340),new google.maps.LatLng(34.05913 ,73.31949),new google.maps.LatLng(33.79054 ,73.33695),new google.maps.LatLng(33.77205 ,73.23624),new google.maps.LatLng(33.82527 ,73.19754),new google.maps.LatLng(33.73878 ,73.38718),new google.maps.LatLng(33.20329 ,73.26376),new google.maps.LatLng(33.73429 ,72.36560),new google.maps.LatLng(33.70084 ,72.77035),new google.maps.LatLng(34.27837 ,72.92468),new google.maps.LatLng(34.18235 ,72.94684),new google.maps.LatLng(33.95989 ,72.88361),new google.maps.LatLng(33.95038 ,72.59408),new google.maps.LatLng(33.30826 ,73.25534),new google.maps.LatLng(33.57622 ,73.26548),new google.maps.LatLng(34.07813 ,72.78044),new google.maps.LatLng(34.28761 ,72.75377),new google.maps.LatLng(33.66149 ,72.98470),new google.maps.LatLng(33.79990 ,73.00975),new google.maps.LatLng(33.07890 ,72.88819),new google.maps.LatLng(33.37908 ,73.33988),new google.maps.LatLng(33.56341 ,73.64529),new google.maps.LatLng(33.69008 ,72.80266),new google.maps.LatLng(33.23811 ,73.40171),new google.maps.LatLng(33.75007 ,72.63582),new google.maps.LatLng(33.49488 ,72.42587),new google.maps.LatLng(33.97593 ,73.34512),new google.maps.LatLng(33.57233 ,72.47324),new google.maps.LatLng(33.99872 ,72.61729),new google.maps.LatLng(33.41483 ,73.34480),new google.maps.LatLng(33.75043 ,73.07117),new google.maps.LatLng(33.34953 ,73.61363),new google.maps.LatLng(33.78599 ,72.45874),new google.maps.LatLng(33.91210 ,73.63711),new google.maps.LatLng(33.60429 ,73.24120),new google.maps.LatLng(33.54588 ,73.66423),new google.maps.LatLng(33.60658 ,72.39537),new google.maps.LatLng(33.83229 ,72.75233),new google.maps.LatLng(34.23570 ,73.35572),new google.maps.LatLng(34.08277 ,72.80758),new google.maps.LatLng(34.16419 ,72.88902),new google.maps.LatLng(33.25956 ,73.09546),new google.maps.LatLng(33.29238 ,73.38955),new google.maps.LatLng(33.68938 ,72.49066),new google.maps.LatLng(33.27199 ,73.07298),new google.maps.LatLng(33.92519 ,72.45723),new google.maps.LatLng(33.65153 ,73.05300),new google.maps.LatLng(33.19227 ,72.62132),new google.maps.LatLng(33.09198 ,73.08430),new google.maps.LatLng(33.51193 ,73.54144),new google.maps.LatLng(33.92918 ,73.61264),new google.maps.LatLng(34.02306 ,73.41524),new google.maps.LatLng(33.93588 ,73.39469),new google.maps.LatLng(33.17260 ,72.78414),new google.maps.LatLng(33.42914 ,73.20013),new google.maps.LatLng(33.70621 ,73.53655),new google.maps.LatLng(33.28504 ,72.55530),new google.maps.LatLng(33.19327 ,73.42667),new google.maps.LatLng(34.20370 ,72.74305),new google.maps.LatLng(33.24400 ,72.95939),new google.maps.LatLng(33.79147 ,73.13712),new google.maps.LatLng(33.66294 ,72.76678),new google.maps.LatLng(33.32353 ,72.62791),new google.maps.LatLng(33.37416 ,72.49506),new google.maps.LatLng(33.29270 ,73.36635),new google.maps.LatLng(33.40986 ,72.55449),new google.maps.LatLng(33.25734 ,73.10982),new google.maps.LatLng(33.60947 ,73.62043),new google.maps.LatLng(33.29270 ,73.33337),new google.maps.LatLng(34.05871 ,73.10440),new google.maps.LatLng(33.84996 ,72.69714),new google.maps.LatLng(33.66002 ,72.79192),new google.maps.LatLng(33.82666 ,73.00294),new google.maps.LatLng(33.90275 ,72.95332),new google.maps.LatLng(33.92672 ,72.44494),new google.maps.LatLng(33.75701 ,72.59211),new google.maps.LatLng(33.75991 ,72.53959),new google.maps.LatLng(33.72706 ,73.02680),new google.maps.LatLng(33.62096 ,73.59518),new google.maps.LatLng(33.22731 ,73.27127),new google.maps.LatLng(33.47933 ,72.41763),new google.maps.LatLng(34.06123 ,73.31817),new google.maps.LatLng(33.61045 ,72.37434),new google.maps.LatLng(33.21433 ,72.70096),new google.maps.LatLng(33.37201 ,72.75276),new google.maps.LatLng(33.45704 ,73.40072),new google.maps.LatLng(34.33176 ,73.05236),new google.maps.LatLng(33.23429 ,73.25888),new google.maps.LatLng(33.43656 ,72.51667),new google.maps.LatLng(34.18907 ,73.14352),new google.maps.LatLng(33.95400 ,72.55053),new google.maps.LatLng(33.66403 ,73.65722),new google.maps.LatLng(33.89245 ,73.61209),new google.maps.LatLng(33.55164 ,72.77878),new google.maps.LatLng(33.97156 ,72.99255),new google.maps.LatLng(33.66371 ,72.47853),new google.maps.LatLng(33.58211 ,72.49655),new google.maps.LatLng(33.83810 ,73.55461),new google.maps.LatLng(33.14876 ,72.82846),new google.maps.LatLng(33.60758 ,73.12877),new google.maps.LatLng(33.35785 ,73.49707),new google.maps.LatLng(33.39216 ,73.59655),new google.maps.LatLng(33.25919 ,73.03589),new google.maps.LatLng(33.86105 ,73.09254),new google.maps.LatLng(33.31881 ,73.07565),new google.maps.LatLng(33.62921 ,72.91024),new google.maps.LatLng(33.56470 ,73.28508),new google.maps.LatLng(33.84130 ,72.43653),new google.maps.LatLng(33.53228 ,73.45925),new google.maps.LatLng(33.52445 ,72.89018),new google.maps.LatLng(33.85831 ,72.83018),new google.maps.LatLng(34.10883 ,73.08524),new google.maps.LatLng(33.36863 ,73.36191),new google.maps.LatLng(33.06185 ,72.86303),new google.maps.LatLng(33.43573 ,73.42900),new google.maps.LatLng(33.56477 ,73.55567),new google.maps.LatLng(33.73221 ,73.61033),new google.maps.LatLng(33.67349 ,72.56535),new google.maps.LatLng(33.53324 ,73.62905),new google.maps.LatLng(33.71635 ,73.27043),new google.maps.LatLng(33.35389 ,72.88988),new google.maps.LatLng(33.77823 ,72.46576),new google.maps.LatLng(33.19935 ,72.93441),new google.maps.LatLng(33.95837 ,72.87957),new google.maps.LatLng(33.68907 ,73.11296),new google.maps.LatLng(33.64213 ,73.31280),new google.maps.LatLng(33.10186 ,72.74058),new google.maps.LatLng(34.28771 ,73.01008),new google.maps.LatLng(34.23209 ,73.40627),new google.maps.LatLng(33.77132 ,73.00093),new google.maps.LatLng(33.60280 ,72.96501),new google.maps.LatLng(33.84768 ,73.17285),new google.maps.LatLng(34.12485 ,72.61496),new google.maps.LatLng(33.81110 ,72.65522),new google.maps.LatLng(33.64834 ,72.63905),new google.maps.LatLng(34.01141 ,73.14973),new google.maps.LatLng(33.26107 ,72.86981),new google.maps.LatLng(34.25373 ,73.38439),new google.maps.LatLng(33.67040 ,72.71630),new google.maps.LatLng(33.98608 ,73.53450),new google.maps.LatLng(33.89491 ,73.12724),new google.maps.LatLng(34.08389 ,72.79956),new google.maps.LatLng(33.05149 ,73.18134),new google.maps.LatLng(33.75114 ,73.16685),new google.maps.LatLng(33.43771 ,72.82232),new google.maps.LatLng(33.28811 ,72.81710),new google.maps.LatLng(34.12145 ,72.85899),new google.maps.LatLng(33.61744 ,73.27928),new google.maps.LatLng(33.33813 ,72.50162),new google.maps.LatLng(33.87445 ,72.70854),new google.maps.LatLng(33.82172 ,72.61362),new google.maps.LatLng(33.58108 ,72.93759),new google.maps.LatLng(34.12815 ,73.36976),new google.maps.LatLng(34.28974 ,73.16412),new google.maps.LatLng(33.87645 ,73.27361),new google.maps.LatLng(33.84610 ,73.20474),new google.maps.LatLng(34.04742 ,73.43806),new google.maps.LatLng(33.27421 ,73.45811),new google.maps.LatLng(33.62694 ,73.10489),new google.maps.LatLng(33.31790 ,72.76489),new google.maps.LatLng(34.26432 ,72.97021),new google.maps.LatLng(33.97443 ,73.06939),new google.maps.LatLng(33.69209 ,72.98063),new google.maps.LatLng(33.32067 ,73.25424),new google.maps.LatLng(33.47122 ,72.89368),new google.maps.LatLng(33.39933 ,72.88110),new google.maps.LatLng(33.71926 ,72.40751),new google.maps.LatLng(33.32374 ,72.76936),new google.maps.LatLng(33.80337 ,73.01186),new google.maps.LatLng(33.06459 ,73.24637),new google.maps.LatLng(33.26275 ,72.99239),new google.maps.LatLng(33.92383 ,73.16744),new google.maps.LatLng(33.60456 ,72.60464),new google.maps.LatLng(33.49101 ,72.90536),new google.maps.LatLng(33.77001 ,72.62859),new google.maps.LatLng(34.23187 ,73.18895),new google.maps.LatLng(33.19888 ,72.70385),new google.maps.LatLng(33.52842 ,72.39246),new google.maps.LatLng(33.13086 ,72.67075),new google.maps.LatLng(34.02563 ,73.50229),new google.maps.LatLng(33.68579 ,72.81402),new google.maps.LatLng(33.78607 ,72.97083),new google.maps.LatLng(33.47130 ,73.19265),new google.maps.LatLng(33.65034 ,73.56239),new google.maps.LatLng(33.26162 ,72.76826),new google.maps.LatLng(34.16431 ,72.64023),new google.maps.LatLng(34.00673 ,72.77216),new google.maps.LatLng(34.18938 ,73.13913),new google.maps.LatLng(34.21439 ,73.22715),new google.maps.LatLng(33.07211 ,73.19586),new google.maps.LatLng(33.42060 ,72.47176),new google.maps.LatLng(33.35682 ,72.79535),new google.maps.LatLng(33.55094 ,73.38692),new google.maps.LatLng(33.94102 ,73.35953),new google.maps.LatLng(34.05199 ,73.57279),new google.maps.LatLng(33.13217 ,72.93451),new google.maps.LatLng(33.44871 ,73.26962),new google.maps.LatLng(34.20906 ,72.99526),new google.maps.LatLng(33.71328 ,72.67172),new google.maps.LatLng(33.21683 ,73.12945),new google.maps.LatLng(34.20567 ,73.06439),new google.maps.LatLng(33.96158 ,73.57520),new google.maps.LatLng(33.39104 ,72.50551),new google.maps.LatLng(33.20248 ,72.70634),new google.maps.LatLng(33.21004 ,73.07846),new google.maps.LatLng(33.70265 ,73.33409),new google.maps.LatLng(33.30212 ,72.53093),new google.maps.LatLng(33.81777 ,73.68866),new google.maps.LatLng(33.93363 ,73.20347),new google.maps.LatLng(33.40904 ,73.26926),new google.maps.LatLng(33.74264 ,72.38911),new google.maps.LatLng(33.07723 ,73.31400),new google.maps.LatLng(33.91889 ,72.67813),new google.maps.LatLng(34.21938 ,72.69923),new google.maps.LatLng(33.80473 ,73.42734),new google.maps.LatLng(33.33590 ,72.55798),new google.maps.LatLng(34.00142 ,72.92247),new google.maps.LatLng(33.43294 ,73.55963),new google.maps.LatLng(33.17556 ,72.72323),new google.maps.LatLng(33.76042 ,72.48615),new google.maps.LatLng(33.37261 ,73.54503),new google.maps.LatLng(33.33387 ,73.21829),new google.maps.LatLng(33.10233 ,73.06787),new google.maps.LatLng(33.43383 ,72.52547),new google.maps.LatLng(33.12494 ,73.28381),new google.maps.LatLng(34.30556 ,72.88688),new google.maps.LatLng(33.57533 ,73.09110),new google.maps.LatLng(33.72342 ,73.44710),new google.maps.LatLng(33.80569 ,72.92959),new google.maps.LatLng(33.63539 ,72.66768),new google.maps.LatLng(33.94136 ,73.17561),new google.maps.LatLng(33.63158 ,73.67889),new google.maps.LatLng(33.27956 ,72.68844),new google.maps.LatLng(33.45630 ,72.69453),new google.maps.LatLng(33.80613 ,73.41390),new google.maps.LatLng(33.38262 ,73.22528),new google.maps.LatLng(33.61172 ,72.54096),new google.maps.LatLng(33.31217 ,72.66905),new google.maps.LatLng(33.07934 ,72.95065),new google.maps.LatLng(34.15256 ,72.73046),new google.maps.LatLng(33.65989 ,73.11996),new google.maps.LatLng(33.54274 ,72.51307),new google.maps.LatLng(33.77807 ,72.84884),new google.maps.LatLng(33.77467 ,73.54848),new google.maps.LatLng(34.10324 ,73.32047),new google.maps.LatLng(34.19176 ,73.07172),new google.maps.LatLng(33.88364 ,72.90816),new google.maps.LatLng(33.81523 ,73.03749),new google.maps.LatLng(33.57923 ,72.63530),new google.maps.LatLng(34.03278 ,73.44627),new google.maps.LatLng(34.12191 ,72.74775),new google.maps.LatLng(33.48868 ,72.63611),new google.maps.LatLng(33.23480 ,73.50476),new google.maps.LatLng(33.92344 ,73.10407),new google.maps.LatLng(33.56280 ,73.03851),new google.maps.LatLng(34.16568 ,72.64403),new google.maps.LatLng(33.20309 ,73.03694),new google.maps.LatLng(33.20243 ,73.47430),new google.maps.LatLng(33.40505 ,72.62985),new google.maps.LatLng(33.24461 ,73.30833),new google.maps.LatLng(33.51098 ,72.38739),new google.maps.LatLng(33.48920 ,72.77385),new google.maps.LatLng(33.38912 ,72.73024),new google.maps.LatLng(34.26211 ,72.78869),new google.maps.LatLng(34.31588 ,72.84717),new google.maps.LatLng(33.67338 ,73.14698),new google.maps.LatLng(33.14679 ,72.72707),new google.maps.LatLng(33.68704 ,73.14199),new google.maps.LatLng(33.29413 ,73.26633),new google.maps.LatLng(33.54677 ,73.47746),new google.maps.LatLng(33.93014 ,73.65036),new google.maps.LatLng(33.48406 ,72.59351),new google.maps.LatLng(33.70195 ,72.57293),new google.maps.LatLng(34.11629 ,72.60175),new google.maps.LatLng(33.46957 ,73.52221),new google.maps.LatLng(34.19471 ,72.68106),new google.maps.LatLng(34.20500 ,73.35644),new google.maps.LatLng(33.28561 ,73.03949),new google.maps.LatLng(33.81672 ,72.44147),new google.maps.LatLng(33.27084 ,72.79938),new google.maps.LatLng(33.96808 ,72.86858),new google.maps.LatLng(33.43749 ,73.33887),new google.maps.LatLng(33.66034 ,72.98961),new google.maps.LatLng(34.12435 ,73.39450),new google.maps.LatLng(34.17193 ,73.20342),new google.maps.LatLng(33.84893 ,73.40464),new google.maps.LatLng(33.63305 ,72.72803),new google.maps.LatLng(33.88760 ,73.05398),new google.maps.LatLng(33.39264 ,73.37942),new google.maps.LatLng(33.99484 ,72.65505),new google.maps.LatLng(33.95672 ,72.53951),new google.maps.LatLng(33.75237 ,72.65189),new google.maps.LatLng(33.62445 ,73.15999),new google.maps.LatLng(33.43451 ,72.42828),new google.maps.LatLng(33.76082 ,72.57813),new google.maps.LatLng(33.05145 ,73.06796),new google.maps.LatLng(34.00335 ,73.25408),new google.maps.LatLng(33.29191 ,73.45818),new google.maps.LatLng(33.25403 ,73.31785),new google.maps.LatLng(33.78834 ,73.62295),new google.maps.LatLng(33.27449 ,72.90014),new google.maps.LatLng(33.92357 ,73.49039),new google.maps.LatLng(33.84980 ,73.05929),new google.maps.LatLng(33.20817 ,73.02595),new google.maps.LatLng(33.62083 ,73.02324),new google.maps.LatLng(33.14640 ,72.94177),new google.maps.LatLng(33.80024 ,72.90893),new google.maps.LatLng(33.94929 ,73.04921),new google.maps.LatLng(33.50134 ,72.65302),new google.maps.LatLng(33.31232 ,73.17888),new google.maps.LatLng(33.71042 ,73.05445),new google.maps.LatLng(33.83826 ,72.69865),new google.maps.LatLng(33.54052 ,72.52931),new google.maps.LatLng(33.75766 ,73.48211),new google.maps.LatLng(33.16929 ,73.16876),new google.maps.LatLng(33.97618 ,73.12615),new google.maps.LatLng(33.37361 ,73.23407),new google.maps.LatLng(33.92669 ,72.60799),new google.maps.LatLng(33.83007 ,73.25113),new google.maps.LatLng(33.96516 ,73.52353),new google.maps.LatLng(34.02576 ,72.72941),new google.maps.LatLng(33.94649 ,73.24200),new google.maps.LatLng(33.17174 ,73.18271),new google.maps.LatLng(33.64981 ,73.60703),new google.maps.LatLng(34.06259 ,72.53820),new google.maps.LatLng(33.40601 ,72.65987),new google.maps.LatLng(33.38136 ,73.40464),new google.maps.LatLng(33.55089 ,72.67844),new google.maps.LatLng(33.82372 ,72.51897),new google.maps.LatLng(33.61209 ,72.82940),new google.maps.LatLng(33.31852 ,73.38835),new google.maps.LatLng(33.69351 ,73.23991),new google.maps.LatLng(33.81912 ,72.75554),new google.maps.LatLng(33.95759 ,73.02119),new google.maps.LatLng(33.05029 ,73.12162),new google.maps.LatLng(33.11493 ,72.81061),new google.maps.LatLng(34.00863 ,72.58431),new google.maps.LatLng(33.59026 ,73.05283),new google.maps.LatLng(33.23143 ,72.63062),new google.maps.LatLng(33.21546 ,72.81447),new google.maps.LatLng(33.89849 ,72.82587),new google.maps.LatLng(33.77776 ,73.55375),new google.maps.LatLng(33.76364 ,73.52368),new google.maps.LatLng(33.20714 ,73.23076),new google.maps.LatLng(33.50429 ,73.39165),new google.maps.LatLng(33.81253 ,73.13477),new google.maps.LatLng(33.33028 ,73.45536),new google.maps.LatLng(33.50572 ,72.38904),new google.maps.LatLng(33.57061 ,73.42355),new google.maps.LatLng(33.56235 ,73.63471),new google.maps.LatLng(33.85973 ,72.77652),new google.maps.LatLng(33.81028 ,72.37508),new google.maps.LatLng(33.55325 ,73.34124),new google.maps.LatLng(34.20186 ,73.34697),new google.maps.LatLng(33.06023 ,72.80879),new google.maps.LatLng(33.94436 ,73.15740),new google.maps.LatLng(34.02030 ,72.66977),new google.maps.LatLng(33.78258 ,72.91107),new google.maps.LatLng(33.60716 ,73.58009),new google.maps.LatLng(33.72757 ,72.65670),new google.maps.LatLng(33.46649 ,72.84827),new google.maps.LatLng(33.24144 ,73.31266),new google.maps.LatLng(34.24587 ,73.05502),new google.maps.LatLng(34.15015 ,73.09292),new google.maps.LatLng(33.87249 ,72.70521),new google.maps.LatLng(33.17960 ,72.66194),new google.maps.LatLng(33.50743 ,72.60465),new google.maps.LatLng(34.30992 ,72.83713),new google.maps.LatLng(34.01094 ,72.49656),new google.maps.LatLng(33.66148 ,72.43221),new google.maps.LatLng(33.24816 ,72.73466),new google.maps.LatLng(33.84221 ,73.04982),new google.maps.LatLng(33.86596 ,73.37430),new google.maps.LatLng(33.06810 ,72.93065),new google.maps.LatLng(34.03562 ,72.68436),new google.maps.LatLng(33.32119 ,72.47759),new google.maps.LatLng(34.30343 ,72.98163),new google.maps.LatLng(33.16946 ,72.81142),new google.maps.LatLng(33.81444 ,72.48982),new google.maps.LatLng(33.79433 ,73.08569),new google.maps.LatLng(34.07054 ,72.71922),new google.maps.LatLng(33.41881 ,73.18808),new google.maps.LatLng(33.88945 ,73.59080),new google.maps.LatLng(34.10161 ,72.62823),new google.maps.LatLng(33.75583 ,72.62712),new google.maps.LatLng(34.05333 ,72.73850),new google.maps.LatLng(33.82096 ,72.89884),new google.maps.LatLng(33.43049 ,72.99417),new google.maps.LatLng(33.09579 ,73.20345),new google.maps.LatLng(33.36664 ,72.96097),new google.maps.LatLng(33.38729 ,72.98358),new google.maps.LatLng(33.40212 ,72.65116),new google.maps.LatLng(33.37819 ,72.50619),new google.maps.LatLng(33.14331 ,72.73687),new google.maps.LatLng(33.67156 ,73.14786),new google.maps.LatLng(33.43117 ,73.46371),new google.maps.LatLng(33.62047 ,73.68964),new google.maps.LatLng(33.79621 ,72.89069),new google.maps.LatLng(34.08199 ,73.53858),new google.maps.LatLng(34.23595 ,73.22352),new google.maps.LatLng(34.15097 ,72.92117),new google.maps.LatLng(33.52741 ,72.62279),new google.maps.LatLng(33.48264 ,73.04400),new google.maps.LatLng(33.31254 ,72.62731),new google.maps.LatLng(33.50892 ,72.58127),new google.maps.LatLng(33.29952 ,73.33807),new google.maps.LatLng(33.70673 ,72.61817),new google.maps.LatLng(33.06242 ,72.79132),new google.maps.LatLng(33.92379 ,72.80906),new google.maps.LatLng(33.96462 ,72.67538),new google.maps.LatLng(34.11398 ,73.21716),new google.maps.LatLng(34.20213 ,73.00289),new google.maps.LatLng(33.26354 ,73.27672),new google.maps.LatLng(34.06730 ,72.66594),new google.maps.LatLng(33.67327 ,72.91456),new google.maps.LatLng(33.09896 ,72.76709),new google.maps.LatLng(33.70531 ,72.41607),new google.maps.LatLng(34.05615 ,73.56898),new google.maps.LatLng(33.91473 ,72.67066),new google.maps.LatLng(33.10968 ,73.16888),new google.maps.LatLng(33.86337 ,72.38683),new google.maps.LatLng(33.17395 ,73.00364),new google.maps.LatLng(33.26283 ,72.80580),new google.maps.LatLng(33.65788 ,73.58957),new google.maps.LatLng(33.57597 ,72.56959),new google.maps.LatLng(34.24629 ,73.03887),new google.maps.LatLng(34.18228 ,73.46166),new google.maps.LatLng(33.93773 ,73.63496),new google.maps.LatLng(34.09006 ,73.21726),new google.maps.LatLng(33.38589 ,73.13888),new google.maps.LatLng(34.32822 ,73.14686),new google.maps.LatLng(33.67775 ,73.58914),new google.maps.LatLng(34.05499 ,72.79082),new google.maps.LatLng(33.98124 ,72.79823),new google.maps.LatLng(33.44022 ,72.44559),new google.maps.LatLng(34.25681 ,73.08254),new google.maps.LatLng(33.78824 ,73.60957),new google.maps.LatLng(33.39106 ,72.54227),new google.maps.LatLng(33.82876 ,73.68122),new google.maps.LatLng(33.44256 ,72.79265),new google.maps.LatLng(33.51873 ,73.46666),new google.maps.LatLng(34.12746 ,72.82511),new google.maps.LatLng(33.76169 ,72.67600),new google.maps.LatLng(33.29188 ,73.37008),new google.maps.LatLng(33.35416 ,72.74298),new google.maps.LatLng(34.17442 ,73.23768),new google.maps.LatLng(33.53157 ,73.26387),new google.maps.LatLng(33.89638 ,73.64301),new google.maps.LatLng(33.40382 ,73.25898),new google.maps.LatLng(33.78790 ,73.18305),new google.maps.LatLng(33.96032 ,73.03470),new google.maps.LatLng(33.18607 ,72.80044),new google.maps.LatLng(33.21142 ,73.31308),new google.maps.LatLng(33.76314 ,73.24615),new google.maps.LatLng(33.80508 ,73.61817),new google.maps.LatLng(33.87575 ,73.23980),new google.maps.LatLng(33.42530 ,73.23234),new google.maps.LatLng(33.94651 ,72.85882),new google.maps.LatLng(33.27891 ,73.54557),new google.maps.LatLng(33.29853 ,72.72147),new google.maps.LatLng(33.50724 ,72.95545),new google.maps.LatLng(33.86132 ,72.95340),new google.maps.LatLng(33.05217 ,72.96121),new google.maps.LatLng(34.09299 ,73.12981),new google.maps.LatLng(33.69574 ,72.48760),new google.maps.LatLng(34.20777 ,73.29913),new google.maps.LatLng(33.38329 ,72.61711),new google.maps.LatLng(33.43729 ,73.06865),new google.maps.LatLng(34.18311 ,73.46916),new google.maps.LatLng(33.61486 ,72.40580),new google.maps.LatLng(33.11353 ,72.99177),new google.maps.LatLng(33.74392 ,72.93790),new google.maps.LatLng(33.15103 ,72.74369),new google.maps.LatLng(33.70898 ,73.55114),new google.maps.LatLng(33.39333 ,73.53658),new google.maps.LatLng(33.31831 ,72.76809),new google.maps.LatLng(33.91635 ,73.44522),new google.maps.LatLng(33.27013 ,73.01770),new google.maps.LatLng(33.98454 ,72.83521),new google.maps.LatLng(34.29725 ,73.02661),new google.maps.LatLng(33.08235 ,72.92821),new google.maps.LatLng(33.20365 ,72.61420),new google.maps.LatLng(33.40329 ,73.27009),new google.maps.LatLng(33.17177 ,73.43902),new google.maps.LatLng(33.56989 ,72.59508),new google.maps.LatLng(33.40596 ,72.92495),new google.maps.LatLng(33.41338 ,72.89781),new google.maps.LatLng(33.53736 ,73.51357),new google.maps.LatLng(33.10595 ,72.83911),new google.maps.LatLng(33.43438 ,73.15066),new google.maps.LatLng(34.11971 ,72.59651),new google.maps.LatLng(33.62962 ,73.69636),new google.maps.LatLng(34.32326 ,73.12225),new google.maps.LatLng(34.31721 ,72.79740),new google.maps.LatLng(34.01118 ,72.93368),new google.maps.LatLng(33.36181 ,72.99303),new google.maps.LatLng(33.87406 ,73.37731),new google.maps.LatLng(33.73241 ,73.17860),new google.maps.LatLng(33.41249 ,73.10719),new google.maps.LatLng(33.58035 ,73.61919),new google.maps.LatLng(33.67494 ,73.37638),new google.maps.LatLng(33.50826 ,72.58130),new google.maps.LatLng(33.46366 ,73.23084),new google.maps.LatLng(33.66244 ,72.87703),new google.maps.LatLng(33.16073 ,73.21221),new google.maps.LatLng(33.98582 ,73.08984),new google.maps.LatLng(34.29014 ,72.90556),new google.maps.LatLng(33.77440 ,73.43500),new google.maps.LatLng(33.89728 ,73.45463),new google.maps.LatLng(33.17708 ,72.77036),new google.maps.LatLng(33.84422 ,73.33778),new google.maps.LatLng(33.84415 ,73.50121),new google.maps.LatLng(33.81771 ,73.18985),new google.maps.LatLng(33.41046 ,73.12240),new google.maps.LatLng(33.63371 ,73.41611),new google.maps.LatLng(33.09259 ,72.95621),new google.maps.LatLng(33.93672 ,72.41932),new google.maps.LatLng(33.87498 ,72.45514),new google.maps.LatLng(33.53413 ,72.65734),new google.maps.LatLng(33.63370 ,72.45928),new google.maps.LatLng(33.80306 ,73.63836),new google.maps.LatLng(33.20530 ,72.86850),new google.maps.LatLng(33.06341 ,73.00404),new google.maps.LatLng(33.07777 ,73.29434),new google.maps.LatLng(34.24281 ,72.72312),new google.maps.LatLng(34.24656 ,72.89905),new google.maps.LatLng(33.34409 ,73.31092),new google.maps.LatLng(33.26052 ,73.13394),new google.maps.LatLng(33.79504 ,73.23331),new google.maps.LatLng(33.54316 ,72.76481),new google.maps.LatLng(33.69288 ,73.47379),new google.maps.LatLng(33.51917 ,73.32116),new google.maps.LatLng(34.12695 ,72.90482),new google.maps.LatLng(33.99827 ,73.40088),new google.maps.LatLng(33.92938 ,73.17913),new google.maps.LatLng(33.29336 ,72.86041),new google.maps.LatLng(33.35433 ,72.55914),new google.maps.LatLng(33.15927 ,72.72799),new google.maps.LatLng(33.95926 ,72.85906),new google.maps.LatLng(33.08093 ,72.92093),new google.maps.LatLng(33.93356 ,72.66718),new google.maps.LatLng(33.60228 ,73.21839),new google.maps.LatLng(33.65838 ,73.64791),new google.maps.LatLng(33.36761 ,72.90037),new google.maps.LatLng(33.97147 ,73.56995),new google.maps.LatLng(33.37359 ,73.06136),new google.maps.LatLng(34.06700 ,73.19548),new google.maps.LatLng(34.00208 ,73.19000),new google.maps.LatLng(33.76523 ,73.54914),new google.maps.LatLng(34.11755 ,72.77562),new google.maps.LatLng(33.64267 ,73.24296),new google.maps.LatLng(33.11753 ,73.14435),new google.maps.LatLng(33.44166 ,73.60344),new google.maps.LatLng(33.61719 ,73.05277),new google.maps.LatLng(34.30476 ,73.20033),new google.maps.LatLng(33.91770 ,72.91600),new google.maps.LatLng(33.48201 ,73.39976),new google.maps.LatLng(33.47761 ,73.63356),new google.maps.LatLng(33.80704 ,73.26628),new google.maps.LatLng(33.29565 ,72.98200),new google.maps.LatLng(33.41095 ,73.25641),new google.maps.LatLng(34.09260 ,73.16344),new google.maps.LatLng(34.05803 ,72.61323),new google.maps.LatLng(33.74253 ,72.56732),new google.maps.LatLng(34.13158 ,72.89584),new google.maps.LatLng(33.31634 ,73.56018),new google.maps.LatLng(33.95515 ,73.12033),new google.maps.LatLng(33.74458 ,72.69041),new google.maps.LatLng(34.21111 ,72.84339),new google.maps.LatLng(33.78500 ,73.56213),new google.maps.LatLng(33.24675 ,72.55210),new google.maps.LatLng(33.45049 ,73.39661),new google.maps.LatLng(33.58030 ,72.52535),new google.maps.LatLng(33.18755 ,72.65643),new google.maps.LatLng(33.80892 ,73.35209),new google.maps.LatLng(33.66964 ,72.86346),new google.maps.LatLng(33.79362 ,72.76363),new google.maps.LatLng(34.29457 ,72.80851),new google.maps.LatLng(33.66165 ,72.58609),new google.maps.LatLng(33.34881 ,72.52086),new google.maps.LatLng(33.80810 ,72.75930),new google.maps.LatLng(34.04444 ,73.20712),new google.maps.LatLng(33.90328 ,72.70055),new google.maps.LatLng(33.99670 ,72.57402),new google.maps.LatLng(33.63843 ,72.99155),new google.maps.LatLng(33.24077 ,73.12382),new google.maps.LatLng(33.17837 ,72.85556),new google.maps.LatLng(34.19839 ,72.87730),new google.maps.LatLng(33.84082 ,73.07617),new google.maps.LatLng(33.71617 ,72.86433),new google.maps.LatLng(33.85996 ,73.43263),new google.maps.LatLng(33.62175 ,73.41980),new google.maps.LatLng(33.74044 ,72.64260),new google.maps.LatLng(33.99718 ,72.52437),new google.maps.LatLng(34.13120 ,73.37459),new google.maps.LatLng(33.85368 ,72.82842),new google.maps.LatLng(33.32517 ,73.19035),new google.maps.LatLng(33.78531 ,72.48181),new google.maps.LatLng(33.80379 ,72.91226),new google.maps.LatLng(33.71324 ,73.55037),new google.maps.LatLng(33.72406 ,73.02983),new google.maps.LatLng(33.92071 ,72.59417),new google.maps.LatLng(33.50189 ,72.51662),new google.maps.LatLng(34.08037 ,73.01690),new google.maps.LatLng(33.88184 ,72.67703),new google.maps.LatLng(34.07677 ,73.29021),new google.maps.LatLng(33.86233 ,73.56766),new google.maps.LatLng(33.28976 ,72.62891),new google.maps.LatLng(34.13505 ,72.91271),new google.maps.LatLng(33.56662 ,72.93673),new google.maps.LatLng(33.47187 ,73.32342),new google.maps.LatLng(33.92138 ,73.14977),new google.maps.LatLng(34.22036 ,72.71873),new google.maps.LatLng(33.78182 ,72.83596),new google.maps.LatLng(33.63556 ,72.90009),new google.maps.LatLng(33.40078 ,73.56764),new google.maps.LatLng(33.45966 ,73.08313),new google.maps.LatLng(33.53392 ,72.56692),new google.maps.LatLng(33.40216 ,73.52565),new google.maps.LatLng(33.35311 ,73.48045),new google.maps.LatLng(33.21115 ,73.42050),new google.maps.LatLng(33.29410 ,73.34560),new google.maps.LatLng(33.16234 ,73.21796),new google.maps.LatLng(33.96781 ,72.90794),new google.maps.LatLng(33.36576 ,72.64677),new google.maps.LatLng(33.50137 ,73.45166),new google.maps.LatLng(33.83541 ,72.75528),new google.maps.LatLng(34.20924 ,73.01142),new google.maps.LatLng(34.15095 ,72.85759),new google.maps.LatLng(33.88674 ,73.50010),new google.maps.LatLng(33.70559 ,73.44958),new google.maps.LatLng(34.11026 ,72.72763),new google.maps.LatLng(34.02034 ,72.47510),new google.maps.LatLng(33.92973 ,72.91905),new google.maps.LatLng(33.89194 ,73.35930),new google.maps.LatLng(34.35295 ,73.04975),new google.maps.LatLng(33.11062 ,72.92324),new google.maps.LatLng(33.69940 ,73.30112),new google.maps.LatLng(33.99943 ,72.97440),new google.maps.LatLng(33.49247 ,73.31088),new google.maps.LatLng(33.82097 ,73.38240),new google.maps.LatLng(34.08804 ,73.54546),new google.maps.LatLng(33.76403 ,73.67759),new google.maps.LatLng(33.32124 ,72.85055),new google.maps.LatLng(34.02009 ,72.58878),new google.maps.LatLng(33.71034 ,73.05502),new google.maps.LatLng(33.39555 ,73.29500),new google.maps.LatLng(34.02144 ,72.47971),new google.maps.LatLng(34.06197 ,72.96491),new google.maps.LatLng(33.87070 ,72.77876),new google.maps.LatLng(33.77130 ,73.37151),new google.maps.LatLng(34.16743 ,72.77946),new google.maps.LatLng(34.11014 ,73.30729),new google.maps.LatLng(33.86146 ,72.42283),new google.maps.LatLng(33.69526 ,73.15770),new google.maps.LatLng(33.76579 ,73.19537),new google.maps.LatLng(33.74404 ,73.09424),new google.maps.LatLng(34.09207 ,73.43618),new google.maps.LatLng(33.42981 ,72.53616),new google.maps.LatLng(33.83159 ,72.42513),new google.maps.LatLng(33.59183 ,72.97337),new google.maps.LatLng(33.23314 ,72.76620),new google.maps.LatLng(33.68382 ,73.63690),new google.maps.LatLng(33.59515 ,73.00995),new google.maps.LatLng(33.78108 ,73.05726),new google.maps.LatLng(33.34295 ,73.32641),new google.maps.LatLng(34.13490 ,73.05150),new google.maps.LatLng(34.30183 ,72.87479),new google.maps.LatLng(34.09046 ,72.75155),new google.maps.LatLng(33.37021 ,73.00689),new google.maps.LatLng(33.75716 ,73.09860),new google.maps.LatLng(33.54958 ,72.53782),new google.maps.LatLng(33.42198 ,73.49507),new google.maps.LatLng(33.93855 ,72.45951),new google.maps.LatLng(33.50743 ,72.64901),new google.maps.LatLng(33.10362 ,72.95472),new google.maps.LatLng(33.15164 ,72.64450),new google.maps.LatLng(33.81589 ,72.44343),new google.maps.LatLng(33.87810 ,72.39315),new google.maps.LatLng(33.40804 ,73.42040),new google.maps.LatLng(33.21566 ,73.30981),new google.maps.LatLng(33.68849 ,72.43431),new google.maps.LatLng(33.37542 ,72.81456),new google.maps.LatLng(33.55363 ,73.51257),new google.maps.LatLng(34.16337 ,73.49432),new google.maps.LatLng(33.21983 ,72.84808),new google.maps.LatLng(33.27760 ,73.31335),new google.maps.LatLng(33.58071 ,73.69548),new google.maps.LatLng(33.67251 ,73.39699),new google.maps.LatLng(33.43151 ,73.51878),new google.maps.LatLng(33.77014 ,72.83671),new google.maps.LatLng(33.44697 ,73.57703),new google.maps.LatLng(34.24469 ,72.80635),new google.maps.LatLng(33.84126 ,73.38271),new google.maps.LatLng(34.11903 ,73.25507),new google.maps.LatLng(33.28222 ,72.59544),new google.maps.LatLng(33.65969 ,72.73032),new google.maps.LatLng(34.10988 ,73.49135),new google.maps.LatLng(33.63554 ,72.59002),new google.maps.LatLng(33.35158 ,73.40832),new google.maps.LatLng(34.07402 ,72.99544),new google.maps.LatLng(33.32829 ,72.74434),new google.maps.LatLng(33.68283 ,73.43975),new google.maps.LatLng(33.08048 ,72.76884),new google.maps.LatLng(33.83585 ,73.30068),new google.maps.LatLng(33.29433 ,72.73028),new google.maps.LatLng(33.68988 ,73.21279),new google.maps.LatLng(33.43486 ,73.42155),new google.maps.LatLng(33.53819 ,73.03038),new google.maps.LatLng(33.74694 ,73.32741),new google.maps.LatLng(33.76266 ,72.54928),new google.maps.LatLng(33.35980 ,72.77575),new google.maps.LatLng(34.24041 ,73.04591),new google.maps.LatLng(34.17334 ,73.34321),new google.maps.LatLng(33.65749 ,73.28252),new google.maps.LatLng(34.24688 ,73.15974),new google.maps.LatLng(33.85636 ,73.13845),new google.maps.LatLng(34.32716 ,72.87160),new google.maps.LatLng(33.76994 ,72.77610),new google.maps.LatLng(33.20320 ,72.70892),new google.maps.LatLng(33.61496 ,73.59945),new google.maps.LatLng(34.06877 ,72.50993),new google.maps.LatLng(33.85850 ,73.44782),new google.maps.LatLng(33.56533 ,72.65823),new google.maps.LatLng(33.36291 ,73.61420),new google.maps.LatLng(33.95131 ,72.68687),new google.maps.LatLng(33.89191 ,72.40243),new google.maps.LatLng(34.02930 ,72.60757),new google.maps.LatLng(33.88775 ,72.99376),new google.maps.LatLng(34.21086 ,72.85728),new google.maps.LatLng(33.26182 ,72.65028),new google.maps.LatLng(33.55401 ,72.74499),new google.maps.LatLng(33.37831 ,73.59557),new google.maps.LatLng(33.70888 ,73.41701),new google.maps.LatLng(34.20935 ,73.27029),new google.maps.LatLng(33.52268 ,73.55565),new google.maps.LatLng(33.95030 ,72.63632),new google.maps.LatLng(34.21670 ,72.72121),new google.maps.LatLng(34.25235 ,72.99135),new google.maps.LatLng(33.93640 ,72.91299),new google.maps.LatLng(33.30144 ,73.47711),new google.maps.LatLng(33.54583 ,73.38193),new google.maps.LatLng(33.46302 ,73.17308),new google.maps.LatLng(34.08479 ,72.92433),new google.maps.LatLng(33.57245 ,73.20312),new google.maps.LatLng(34.00663 ,73.45830),new google.maps.LatLng(33.07480 ,72.95146),new google.maps.LatLng(33.41605 ,73.59409),new google.maps.LatLng(33.92901 ,72.53411),new google.maps.LatLng(33.71953 ,73.63483),new google.maps.LatLng(33.83653 ,73.13596),new google.maps.LatLng(33.27913 ,73.30230),new google.maps.LatLng(33.24689 ,72.80131),new google.maps.LatLng(33.42025 ,72.45911),new google.maps.LatLng(33.21322 ,72.79152),new google.maps.LatLng(33.96675 ,73.00610),new google.maps.LatLng(33.89177 ,73.53628),new google.maps.LatLng(33.74063 ,72.41452),new google.maps.LatLng(33.59493 ,72.67237),new google.maps.LatLng(34.22280 ,72.91489),new google.maps.LatLng(33.33866 ,72.61218),new google.maps.LatLng(33.42509 ,73.19276),new google.maps.LatLng(33.74760 ,73.53688),new google.maps.LatLng(33.28407 ,72.63128),new google.maps.LatLng(34.15866 ,73.04059),new google.maps.LatLng(33.82109 ,72.96833),new google.maps.LatLng(33.63381 ,73.10796),new google.maps.LatLng(33.13936 ,73.28739),new google.maps.LatLng(34.11225 ,73.36972),new google.maps.LatLng(33.67340 ,72.39991),new google.maps.LatLng(33.44659 ,73.16110),new google.maps.LatLng(33.28688 ,73.18976),new google.maps.LatLng(33.81347 ,73.58755),new google.maps.LatLng(33.20156 ,73.21622),new google.maps.LatLng(34.17962 ,73.12688),new google.maps.LatLng(33.03486 ,73.17184),new google.maps.LatLng(33.28355 ,73.38926),new google.maps.LatLng(33.44309 ,72.85279),new google.maps.LatLng(33.41156 ,73.33394),new google.maps.LatLng(33.35167 ,72.71609),new google.maps.LatLng(33.41156 ,73.09394),new google.maps.LatLng(33.95989 ,72.93894),new google.maps.LatLng(33.43522 ,73.61658),new google.maps.LatLng(33.71941 ,72.65796),new google.maps.LatLng(33.85217 ,73.21657),new google.maps.LatLng(33.02903 ,73.15189),new google.maps.LatLng(34.01203 ,72.59738),new google.maps.LatLng(33.01939 ,72.95404),new google.maps.LatLng(33.66153 ,72.84946),new google.maps.LatLng(33.70462 ,72.40460),new google.maps.LatLng(34.10276 ,73.53967),new google.maps.LatLng(33.32497 ,73.04352),new google.maps.LatLng(34.19216 ,73.26613),new google.maps.LatLng(33.82749 ,73.56002),new google.maps.LatLng(33.72919 ,73.42789),new google.maps.LatLng(33.52281 ,73.13475),new google.maps.LatLng(33.57560 ,73.57167),new google.maps.LatLng(33.96790 ,73.53532),new google.maps.LatLng(33.54553 ,73.29830),new google.maps.LatLng(33.71850 ,72.36710),new google.maps.LatLng(33.47375 ,73.19682),new google.maps.LatLng(33.82712 ,72.67918),new google.maps.LatLng(33.29404 ,72.85190),new google.maps.LatLng(33.68165 ,73.67861),new google.maps.LatLng(33.42431 ,73.16048),new google.maps.LatLng(33.91630 ,73.43254),new google.maps.LatLng(33.09820 ,72.88452),new google.maps.LatLng(33.26366 ,73.30520),new google.maps.LatLng(33.41030 ,73.47996),new google.maps.LatLng(34.25881 ,73.05438),new google.maps.LatLng(33.07857 ,73.26393),new google.maps.LatLng(33.91732 ,73.12672),new google.maps.LatLng(33.88488 ,72.56615),new google.maps.LatLng(33.63466 ,72.73373),new google.maps.LatLng(33.89089 ,73.33122),new google.maps.LatLng(33.86815 ,73.67818),new google.maps.LatLng(33.75233 ,73.43275),new google.maps.LatLng(33.41098 ,73.41094),new google.maps.LatLng(33.66757 ,72.73660),new google.maps.LatLng(33.96832 ,73.31511),new google.maps.LatLng(33.88165 ,72.97655),new google.maps.LatLng(33.95687 ,72.91155),new google.maps.LatLng(33.17920 ,73.36402),new google.maps.LatLng(33.76069 ,73.50775),new google.maps.LatLng(33.83873 ,73.09216),new google.maps.LatLng(33.60410 ,72.90122),new google.maps.LatLng(33.08114 ,73.26298),new google.maps.LatLng(33.60667 ,72.43970),new google.maps.LatLng(33.38630 ,73.61157),new google.maps.LatLng(34.19992 ,73.20879),new google.maps.LatLng(33.39820 ,72.55397),new google.maps.LatLng(34.17949 ,72.81093),new google.maps.LatLng(33.82060 ,73.36495),new google.maps.LatLng(34.01766 ,72.67575),new google.maps.LatLng(33.94179 ,72.51891),new google.maps.LatLng(33.68829 ,72.88739),new google.maps.LatLng(33.80520 ,73.04094),new google.maps.LatLng(33.90359 ,73.52483),new google.maps.LatLng(33.40616 ,73.02381),new google.maps.LatLng(33.41801 ,72.42271),new google.maps.LatLng(33.65618 ,72.53237),new google.maps.LatLng(33.41402 ,72.91464),new google.maps.LatLng(33.52060 ,73.60151),new google.maps.LatLng(33.53441 ,73.61193),new google.maps.LatLng(33.34420 ,73.54930),new google.maps.LatLng(33.58102 ,72.75318),new google.maps.LatLng(34.28403 ,73.26349),new google.maps.LatLng(33.78434 ,72.96040),new google.maps.LatLng(33.19330 ,73.10794),new google.maps.LatLng(33.42734 ,72.57392),new google.maps.LatLng(33.29506 ,72.77391),new google.maps.LatLng(34.11806 ,72.57923),new google.maps.LatLng(33.72902 ,72.66172),new google.maps.LatLng(33.84033 ,73.20541),new google.maps.LatLng(33.91389 ,73.11807),new google.maps.LatLng(33.89188 ,73.26637),new google.maps.LatLng(33.48356 ,72.69517),new google.maps.LatLng(34.19768 ,72.90249),new google.maps.LatLng(33.95939 ,72.68309),new google.maps.LatLng(33.82909 ,72.66919),new google.maps.LatLng(34.29198 ,72.94793),new google.maps.LatLng(33.52162 ,72.86221),new google.maps.LatLng(33.27345 ,72.63076),new google.maps.LatLng(34.27669 ,72.78788),new google.maps.LatLng(33.61278 ,73.04967),new google.maps.LatLng(33.45796 ,73.48557),new google.maps.LatLng(34.21045 ,72.78920),new google.maps.LatLng(34.28730 ,73.28413),new google.maps.LatLng(33.57976 ,73.18111),new google.maps.LatLng(33.83011 ,73.59941),new google.maps.LatLng(34.00671 ,72.74975),new google.maps.LatLng(33.52361 ,73.40579),new google.maps.LatLng(33.54990 ,73.24907),new google.maps.LatLng(33.28806 ,73.44000),new google.maps.LatLng(33.03009 ,72.94114),new google.maps.LatLng(33.08450 ,72.98198),new google.maps.LatLng(33.60132 ,73.04828),new google.maps.LatLng(33.42979 ,72.49947),new google.maps.LatLng(33.89298 ,73.56884),new google.maps.LatLng(33.61421 ,73.01424),new google.maps.LatLng(33.37685 ,73.44920),new google.maps.LatLng(33.74968 ,72.82934),new google.maps.LatLng(34.07169 ,72.60543),new google.maps.LatLng(34.32628 ,72.84010),new google.maps.LatLng(33.54700 ,72.68145),new google.maps.LatLng(33.35904 ,73.22253),new google.maps.LatLng(34.25350 ,73.12103),new google.maps.LatLng(33.04580 ,72.93429),new google.maps.LatLng(33.26291 ,72.97841),new google.maps.LatLng(33.79099 ,72.52462),new google.maps.LatLng(33.79876 ,73.01674),new google.maps.LatLng(33.60363 ,72.64654),new google.maps.LatLng(33.42011 ,73.34927),new google.maps.LatLng(33.52067 ,72.88209),new google.maps.LatLng(33.66531 ,73.10367),new google.maps.LatLng(33.37279 ,73.22141),new google.maps.LatLng(33.67196 ,73.41754),new google.maps.LatLng(33.56781 ,73.60212),new google.maps.LatLng(33.85260 ,72.59225),new google.maps.LatLng(33.14153 ,72.85721),new google.maps.LatLng(33.58033 ,73.11021),new google.maps.LatLng(33.50857 ,73.37918),new google.maps.LatLng(33.90968 ,73.22358),new google.maps.LatLng(33.69929 ,73.44304),new google.maps.LatLng(33.28963 ,72.65650),new google.maps.LatLng(34.01832 ,73.18902),new google.maps.LatLng(33.67184 ,73.43441),new google.maps.LatLng(33.39890 ,73.37408),new google.maps.LatLng(33.69780 ,73.34595),new google.maps.LatLng(33.20067 ,72.89078),new google.maps.LatLng(33.83112 ,73.55065),new google.maps.LatLng(33.87801 ,73.30526),new google.maps.LatLng(34.27837 ,73.04530),new google.maps.LatLng(33.97188 ,73.57208),new google.maps.LatLng(34.25509 ,73.07760),new google.maps.LatLng(33.46948 ,72.73320),new google.maps.LatLng(33.59581 ,72.97409),new google.maps.LatLng(33.93974 ,72.56963),new google.maps.LatLng(34.20664 ,72.62743),new google.maps.LatLng(33.59983 ,72.78026),new google.maps.LatLng(33.85708 ,73.26887),new google.maps.LatLng(33.83433 ,73.00424),new google.maps.LatLng(34.06805 ,73.18266),new google.maps.LatLng(33.41007 ,73.01696),new google.maps.LatLng(33.43218 ,72.63091),new google.maps.LatLng(34.26788 ,72.70924),new google.maps.LatLng(34.04332 ,73.38823),new google.maps.LatLng(33.58953 ,73.10267),new google.maps.LatLng(34.20927 ,73.37447),new google.maps.LatLng(34.27545 ,72.81335),new google.maps.LatLng(33.59548 ,73.50451),new google.maps.LatLng(34.16310 ,73.10086),new google.maps.LatLng(33.68440 ,73.03533),new google.maps.LatLng(34.33081 ,72.92852),new google.maps.LatLng(34.11865 ,72.74957),new google.maps.LatLng(33.83076 ,73.49398),new google.maps.LatLng(33.92590 ,73.06063),new google.maps.LatLng(34.18709 ,73.10904),new google.maps.LatLng(33.74419 ,73.42005),new google.maps.LatLng(33.38944 ,72.92978),new google.maps.LatLng(33.79292 ,73.66837),new google.maps.LatLng(33.51136 ,72.92463),new google.maps.LatLng(34.23848 ,72.88214),new google.maps.LatLng(33.77213 ,72.49982),new google.maps.LatLng(33.31044 ,73.21587),new google.maps.LatLng(33.80114 ,72.40206),new google.maps.LatLng(34.10912 ,73.09954),new google.maps.LatLng(33.87653 ,73.45319),new google.maps.LatLng(33.66285 ,72.82456),new google.maps.LatLng(33.80221 ,73.05010),new google.maps.LatLng(34.08563 ,73.24777),new google.maps.LatLng(34.24361 ,73.40210),new google.maps.LatLng(33.12407 ,72.92625),new google.maps.LatLng(33.93430 ,73.39850),new google.maps.LatLng(33.47253 ,73.48387),new google.maps.LatLng(33.68807 ,72.80607),new google.maps.LatLng(34.14287 ,72.56910),new google.maps.LatLng(33.39871 ,73.35621),new google.maps.LatLng(33.51548 ,73.58142),new google.maps.LatLng(33.88216 ,73.43621),new google.maps.LatLng(33.98510 ,73.23969),new google.maps.LatLng(33.85829 ,73.33369),new google.maps.LatLng(33.53355 ,73.52225),new google.maps.LatLng(33.53110 ,72.50560),new google.maps.LatLng(34.08465 ,73.28713),new google.maps.LatLng(33.68893 ,72.37798),new google.maps.LatLng(33.40079 ,73.24639),new google.maps.LatLng(33.70163 ,72.36925),new google.maps.LatLng(34.21065 ,72.85496),new google.maps.LatLng(33.60210 ,72.63926),new google.maps.LatLng(33.88692 ,73.37301),new google.maps.LatLng(33.28359 ,72.54003),new google.maps.LatLng(33.87707 ,73.13056),new google.maps.LatLng(33.89645 ,72.92133),new google.maps.LatLng(33.97510 ,72.90299),new google.maps.LatLng(33.34272 ,72.63219),new google.maps.LatLng(33.20108 ,73.16130),new google.maps.LatLng(33.15938 ,72.73622),new google.maps.LatLng(33.02861 ,73.05138),new google.maps.LatLng(33.35083 ,73.38348),new google.maps.LatLng(34.01486 ,72.55209),new google.maps.LatLng(33.40794 ,73.51328),new google.maps.LatLng(33.28236 ,73.29644),new google.maps.LatLng(33.71507 ,72.55592),new google.maps.LatLng(33.68816 ,73.60985),new google.maps.LatLng(33.83778 ,73.52467),new google.maps.LatLng(33.63848 ,73.35344),new google.maps.LatLng(34.13221 ,73.37567),new google.maps.LatLng(33.53947 ,73.29775),new google.maps.LatLng(33.89431 ,72.84858),new google.maps.LatLng(33.44704 ,72.42426),new google.maps.LatLng(33.81108 ,73.16664),new google.maps.LatLng(34.06880 ,73.12797),new google.maps.LatLng(34.22902 ,72.70057),new google.maps.LatLng(33.84309 ,73.45166),new google.maps.LatLng(33.57538 ,73.50520),new google.maps.LatLng(34.26478 ,72.76327),new google.maps.LatLng(33.34918 ,73.54680),new google.maps.LatLng(33.58363 ,73.65675),new google.maps.LatLng(33.46881 ,73.44719),new google.maps.LatLng(33.52309 ,72.65296),new google.maps.LatLng(33.70539 ,73.27750),new google.maps.LatLng(33.30388 ,73.55477),new google.maps.LatLng(34.16415 ,72.81594),new google.maps.LatLng(33.90730 ,73.42314),new google.maps.LatLng(33.81591 ,72.78842),new google.maps.LatLng(33.93107 ,73.05181),new google.maps.LatLng(33.62178 ,73.52233),new google.maps.LatLng(33.72656 ,72.95587),new google.maps.LatLng(33.69745 ,72.82160),new google.maps.LatLng(34.11054 ,72.93650),new google.maps.LatLng(33.45435 ,72.92116),new google.maps.LatLng(34.18848 ,72.92098),new google.maps.LatLng(34.06318 ,73.01616),new google.maps.LatLng(33.78826 ,73.36519),new google.maps.LatLng(33.86701 ,72.85664),new google.maps.LatLng(34.10160 ,72.75112),new google.maps.LatLng(33.41054 ,73.24805),new google.maps.LatLng(33.54133 ,72.43054),new google.maps.LatLng(33.12357 ,72.95400),new google.maps.LatLng(33.83007 ,73.62447),new google.maps.LatLng(33.66699 ,72.98129),new google.maps.LatLng(33.41395 ,72.84994),new google.maps.LatLng(34.16626 ,73.43734),new google.maps.LatLng(33.59211 ,73.36475),new google.maps.LatLng(34.10358 ,72.95925),new google.maps.LatLng(34.06922 ,73.23040),new google.maps.LatLng(33.48521 ,72.52873),new google.maps.LatLng(33.43095 ,73.43958),new google.maps.LatLng(33.97776 ,73.17933),new google.maps.LatLng(33.30502 ,73.28101),new google.maps.LatLng(33.49967 ,72.57358),new google.maps.LatLng(33.60325 ,72.77236),new google.maps.LatLng(33.79573 ,73.46012),new google.maps.LatLng(33.29426 ,72.88272),new google.maps.LatLng(33.48699 ,73.19170),new google.maps.LatLng(34.25394 ,72.72309),new google.maps.LatLng(33.93230 ,72.62638),new google.maps.LatLng(34.25094 ,73.28668),new google.maps.LatLng(34.02706 ,72.60559),new google.maps.LatLng(33.85694 ,73.58803),new google.maps.LatLng(33.82007 ,73.55595),new google.maps.LatLng(33.45770 ,73.06603),new google.maps.LatLng(34.00064 ,73.24192),new google.maps.LatLng(33.87545 ,72.80834),new google.maps.LatLng(34.28652 ,73.10500),new google.maps.LatLng(33.55871 ,73.37768),new google.maps.LatLng(33.63163 ,72.86299),new google.maps.LatLng(33.33804 ,72.88702),new google.maps.LatLng(33.46566 ,72.43044),new google.maps.LatLng(34.16916 ,72.86171),new google.maps.LatLng(33.72121 ,73.13954),new google.maps.LatLng(33.79939 ,73.30037),new google.maps.LatLng(34.07756 ,72.92306),new google.maps.LatLng(33.97083 ,72.73500),new google.maps.LatLng(34.27763 ,73.13075),new google.maps.LatLng(34.21628 ,72.66421),new google.maps.LatLng(33.36962 ,73.36480),new google.maps.LatLng(33.35293 ,73.28533),new google.maps.LatLng(33.48147 ,73.32686),new google.maps.LatLng(33.27090 ,72.90040),new google.maps.LatLng(33.14822 ,72.69170),new google.maps.LatLng(33.54079 ,72.49401),new google.maps.LatLng(33.11785 ,73.16673),new google.maps.LatLng(33.82343 ,72.84298),new google.maps.LatLng(34.25136 ,72.90530),new google.maps.LatLng(33.79349 ,73.33186),new google.maps.LatLng(33.79153 ,73.09372),new google.maps.LatLng(33.37939 ,72.75879),new google.maps.LatLng(33.69459 ,72.41466),new google.maps.LatLng(33.45254 ,73.15536),new google.maps.LatLng(33.22267 ,72.78283),new google.maps.LatLng(33.31914 ,72.60753),new google.maps.LatLng(33.40294 ,72.43075),new google.maps.LatLng(33.92635 ,72.80957),new google.maps.LatLng(33.93222 ,72.48425),new google.maps.LatLng(33.92283 ,72.59248),new google.maps.LatLng(34.12133 ,72.79380),new google.maps.LatLng(33.31376 ,72.78894),new google.maps.LatLng(34.03114 ,72.77258),new google.maps.LatLng(33.82371 ,72.54739),new google.maps.LatLng(33.68594 ,73.21384),new google.maps.LatLng(33.60063 ,73.15586),new google.maps.LatLng(33.30735 ,72.67258),new google.maps.LatLng(33.31436 ,72.99478),new google.maps.LatLng(33.63939 ,73.36109),new google.maps.LatLng(33.64184 ,72.36652),new google.maps.LatLng(34.12329 ,72.85448),new google.maps.LatLng(33.54038 ,73.45042),new google.maps.LatLng(33.93697 ,72.42092),new google.maps.LatLng(34.17911 ,72.79009),new google.maps.LatLng(33.54660 ,72.96545),new google.maps.LatLng(34.17203 ,73.27046),new google.maps.LatLng(33.93372 ,73.47449),new google.maps.LatLng(33.59600 ,72.42106),new google.maps.LatLng(33.65352 ,72.75749),new google.maps.LatLng(33.88255 ,72.55608),new google.maps.LatLng(33.14268 ,72.68590),new google.maps.LatLng(34.04783 ,73.45253),new google.maps.LatLng(33.15964 ,72.74759),new google.maps.LatLng(33.53610 ,73.28933),new google.maps.LatLng(33.88730 ,73.61666),new google.maps.LatLng(33.12738 ,73.11109),new google.maps.LatLng(33.77222 ,72.40979),new google.maps.LatLng(33.86714 ,73.04604),new google.maps.LatLng(33.39276 ,73.06162),new google.maps.LatLng(33.77106 ,72.91753),new google.maps.LatLng(33.62465 ,73.33006),new google.maps.LatLng(33.37553 ,72.86038),new google.maps.LatLng(34.26757 ,72.75110),new google.maps.LatLng(33.13541 ,73.36439),new google.maps.LatLng(33.59409 ,73.35029),new google.maps.LatLng(33.77539 ,72.37048),new google.maps.LatLng(33.79046 ,73.16048),new google.maps.LatLng(34.05858 ,73.52321),new google.maps.LatLng(34.24424 ,73.34736),new google.maps.LatLng(34.30480 ,72.96601),new google.maps.LatLng(33.37735 ,72.68867),new google.maps.LatLng(33.22852 ,72.98876),new google.maps.LatLng(33.39532 ,73.16535),new google.maps.LatLng(33.75785 ,72.81372),new google.maps.LatLng(34.01743 ,72.90162),new google.maps.LatLng(33.88589 ,72.75266),new google.maps.LatLng(33.68078 ,73.52805),new google.maps.LatLng(34.12904 ,72.68116),new google.maps.LatLng(34.16417 ,72.66880),new google.maps.LatLng(33.94218 ,73.15814),new google.maps.LatLng(33.50768 ,72.87841),new google.maps.LatLng(33.97211 ,73.51311),new google.maps.LatLng(33.54396 ,72.43360),new google.maps.LatLng(30.74897 ,74.41017),new google.maps.LatLng(32.38661 ,74.34297),new google.maps.LatLng(31.56579 ,73.92073),new google.maps.LatLng(31.14828 ,73.88715),new google.maps.LatLng(31.02910 ,74.39253),new google.maps.LatLng(31.49538 ,74.62892),new google.maps.LatLng(31.62438 ,75.34926),new google.maps.LatLng(30.83154 ,74.85953),new google.maps.LatLng(32.19759 ,74.47782),new google.maps.LatLng(32.14605 ,75.16566),new google.maps.LatLng(31.47076 ,75.33129),new google.maps.LatLng(31.69309 ,74.69056),new google.maps.LatLng(31.70663 ,75.01357),new google.maps.LatLng(31.37245 ,74.91111),new google.maps.LatLng(31.92776 ,73.68466),new google.maps.LatLng(30.88466 ,73.72221),new google.maps.LatLng(31.13992 ,74.51509),new google.maps.LatLng(30.90134 ,74.84831),new google.maps.LatLng(31.99841 ,75.20327),new google.maps.LatLng(30.96049 ,73.90227),new google.maps.LatLng(30.79058 ,74.13253),new google.maps.LatLng(31.89541 ,75.26757),new google.maps.LatLng(31.13145 ,74.87655),new google.maps.LatLng(31.38584 ,74.02834),new google.maps.LatLng(30.90270 ,74.56907),new google.maps.LatLng(32.36130 ,74.38307),new google.maps.LatLng(30.71352 ,74.74009),new google.maps.LatLng(31.44799 ,74.00085),new google.maps.LatLng(32.24663 ,74.28472),new google.maps.LatLng(32.29043 ,74.93546),new google.maps.LatLng(31.65387 ,74.92042),new google.maps.LatLng(31.08091 ,73.77340),new google.maps.LatLng(31.65210 ,74.50301),new google.maps.LatLng(30.95622 ,74.19048),new google.maps.LatLng(31.19162 ,75.00474),new google.maps.LatLng(30.50356 ,74.37400),new google.maps.LatLng(32.02236 ,74.48719),new google.maps.LatLng(31.34209 ,74.58387),new google.maps.LatLng(32.41350 ,74.70619),new google.maps.LatLng(31.42559 ,74.87999),new google.maps.LatLng(30.70480 ,74.16847),new google.maps.LatLng(30.55529 ,74.06135),new google.maps.LatLng(32.14040 ,74.08292),new google.maps.LatLng(30.74778 ,74.24533),new google.maps.LatLng(31.94075 ,74.09460),new google.maps.LatLng(32.10284 ,74.51255),new google.maps.LatLng(30.98078 ,73.60690),new google.maps.LatLng(31.70818 ,73.88923),new google.maps.LatLng(31.82600 ,74.33966),new google.maps.LatLng(31.37918 ,74.96092),new google.maps.LatLng(31.37132 ,75.24611),new google.maps.LatLng(30.73254 ,74.66207),new google.maps.LatLng(31.99301 ,74.40914),new google.maps.LatLng(30.54507 ,74.26474),new google.maps.LatLng(31.16039 ,74.77768),new google.maps.LatLng(31.63037 ,74.91743),new google.maps.LatLng(30.82601 ,73.96652),new google.maps.LatLng(32.10353 ,73.75193),new google.maps.LatLng(32.13753 ,73.71023),new google.maps.LatLng(31.16112 ,73.68234),new google.maps.LatLng(31.86982 ,75.19510),new google.maps.LatLng(31.86133 ,73.67005),new google.maps.LatLng(31.26669 ,74.62411),new google.maps.LatLng(31.43156 ,74.86901),new google.maps.LatLng(30.98938 ,73.78353),new google.maps.LatLng(32.44232 ,73.93826),new google.maps.LatLng(31.22148 ,74.68051),new google.maps.LatLng(30.77777 ,74.38151),new google.maps.LatLng(30.70112 ,74.61864),new google.maps.LatLng(31.60649 ,74.60204),new google.maps.LatLng(30.76264 ,74.15743),new google.maps.LatLng(30.85169 ,74.53114),new google.maps.LatLng(31.64748 ,74.30877),new google.maps.LatLng(31.59953 ,73.92713),new google.maps.LatLng(31.48649 ,75.19769),new google.maps.LatLng(30.63203 ,74.86216),new google.maps.LatLng(30.82366 ,74.81950),new google.maps.LatLng(31.28818 ,73.92232),new google.maps.LatLng(31.87578 ,73.96953),new google.maps.LatLng(31.82189 ,73.54543),new google.maps.LatLng(31.43993 ,74.09768),new google.maps.LatLng(31.72334 ,73.51603),new google.maps.LatLng(30.87795 ,74.50738),new google.maps.LatLng(31.42401 ,73.34482),new google.maps.LatLng(32.40909 ,73.93042),new google.maps.LatLng(31.82971 ,75.26611),new google.maps.LatLng(31.44657 ,75.11362),new google.maps.LatLng(32.37548 ,74.39650),new google.maps.LatLng(31.44700 ,74.90528),new google.maps.LatLng(30.53618 ,74.40209),new google.maps.LatLng(32.42858 ,74.08791),new google.maps.LatLng(31.56962 ,74.77908),new google.maps.LatLng(31.53555 ,73.45092),new google.maps.LatLng(30.48061 ,74.40789),new google.maps.LatLng(30.70833 ,74.57780),new google.maps.LatLng(32.31596 ,74.68652),new google.maps.LatLng(31.88467 ,73.97887),new google.maps.LatLng(31.61184 ,74.91430),new google.maps.LatLng(31.05537 ,75.18982),new google.maps.LatLng(31.34201 ,74.96093),new google.maps.LatLng(31.33920 ,74.97750),new google.maps.LatLng(30.58773 ,73.93443),new google.maps.LatLng(30.72552 ,74.22858),new google.maps.LatLng(31.81444 ,73.91277),new google.maps.LatLng(32.25027 ,74.02712),new google.maps.LatLng(32.02168 ,74.18297),new google.maps.LatLng(31.78786 ,73.84636),new google.maps.LatLng(31.53189 ,73.42640),new google.maps.LatLng(31.53586 ,73.82166),new google.maps.LatLng(31.80188 ,75.19374),new google.maps.LatLng(31.19681 ,75.21385),new google.maps.LatLng(30.77506 ,74.21715),new google.maps.LatLng(31.09191 ,74.15957),new google.maps.LatLng(31.92612 ,74.12471),new google.maps.LatLng(32.49345 ,74.21556),new google.maps.LatLng(31.40979 ,74.90132),new google.maps.LatLng(31.06786 ,74.15788),new google.maps.LatLng(31.49875 ,73.82236),new google.maps.LatLng(31.39053 ,74.28952),new google.maps.LatLng(31.27025 ,73.97779),new google.maps.LatLng(31.37573 ,74.57608),new google.maps.LatLng(31.50225 ,74.87143),new google.maps.LatLng(30.72182 ,74.66500),new google.maps.LatLng(31.18437 ,73.42821),new google.maps.LatLng(31.02415 ,74.12393),new google.maps.LatLng(30.60664 ,74.85959),new google.maps.LatLng(31.79292 ,73.66765),new google.maps.LatLng(31.69676 ,75.10718),new google.maps.LatLng(32.30505 ,74.68123),new google.maps.LatLng(31.32188 ,75.16861),new google.maps.LatLng(31.47150 ,73.50139),new google.maps.LatLng(30.71510 ,73.79979),new google.maps.LatLng(31.29641 ,74.68170),new google.maps.LatLng(30.63029 ,74.30891),new google.maps.LatLng(31.95503 ,73.96865),new google.maps.LatLng(32.45720 ,74.15836),new google.maps.LatLng(30.68696 ,74.17327),new google.maps.LatLng(30.79946 ,73.68002),new google.maps.LatLng(31.36334 ,75.12481),new google.maps.LatLng(30.72481 ,73.99407),new google.maps.LatLng(30.95260 ,74.84479),new google.maps.LatLng(30.97288 ,75.21505),new google.maps.LatLng(31.04262 ,74.04086),new google.maps.LatLng(32.31019 ,74.25491),new google.maps.LatLng(30.71973 ,74.80777),new google.maps.LatLng(31.40327 ,75.30173),new google.maps.LatLng(31.28008 ,75.22447),new google.maps.LatLng(31.78754 ,73.95943),new google.maps.LatLng(31.39864 ,74.55541),new google.maps.LatLng(30.84536 ,74.54520),new google.maps.LatLng(31.74029 ,75.20709),new google.maps.LatLng(30.87508 ,75.14293),new google.maps.LatLng(30.89306 ,74.22440),new google.maps.LatLng(30.93832 ,73.94148),new google.maps.LatLng(31.56371 ,73.86502),new google.maps.LatLng(31.73186 ,74.15995),new google.maps.LatLng(31.09476 ,75.30850),new google.maps.LatLng(31.77849 ,75.09362),new google.maps.LatLng(30.69711 ,74.65080),new google.maps.LatLng(32.30525 ,73.89818),new google.maps.LatLng(31.99868 ,73.56075),new google.maps.LatLng(31.70760 ,75.35427),new google.maps.LatLng(31.75706 ,74.45181),new google.maps.LatLng(31.07496 ,74.23857),new google.maps.LatLng(31.45573 ,74.28212),new google.maps.LatLng(32.24001 ,74.25119),new google.maps.LatLng(31.47903 ,74.88503),new google.maps.LatLng(31.30503 ,73.97450),new google.maps.LatLng(30.61342 ,74.35247),new google.maps.LatLng(30.78783 ,74.38252),new google.maps.LatLng(31.89393 ,73.78553),new google.maps.LatLng(31.45095 ,74.23847),new google.maps.LatLng(31.59004 ,74.91407),new google.maps.LatLng(32.31149 ,73.91612),new google.maps.LatLng(31.90585 ,75.01845),new google.maps.LatLng(31.93608 ,74.32874),new google.maps.LatLng(30.98914 ,74.69910),new google.maps.LatLng(31.41778 ,74.36994),new google.maps.LatLng(30.89711 ,75.19593),new google.maps.LatLng(31.74768 ,74.81740),new google.maps.LatLng(30.75900 ,74.12860),new google.maps.LatLng(31.39976 ,73.60527),new google.maps.LatLng(30.86839 ,74.29456),new google.maps.LatLng(31.05741 ,74.47960),new google.maps.LatLng(30.84476 ,74.38585),new google.maps.LatLng(31.41987 ,73.67587),new google.maps.LatLng(31.05031 ,74.88924),new google.maps.LatLng(30.85464 ,74.98165),new google.maps.LatLng(31.11873 ,74.28964),new google.maps.LatLng(30.94012 ,74.42836),new google.maps.LatLng(31.38959 ,73.46287),new google.maps.LatLng(31.21868 ,74.08584),new google.maps.LatLng(31.01658 ,74.10279),new google.maps.LatLng(32.39006 ,73.92982),new google.maps.LatLng(31.24335 ,73.67116),new google.maps.LatLng(31.76483 ,74.16580),new google.maps.LatLng(30.51815 ,74.10276),new google.maps.LatLng(30.69339 ,73.83643),new google.maps.LatLng(31.31207 ,73.50465),new google.maps.LatLng(31.89825 ,74.61493),new google.maps.LatLng(31.49457 ,74.72426),new google.maps.LatLng(31.60958 ,74.13586),new google.maps.LatLng(31.12596 ,73.91629),new google.maps.LatLng(30.71219 ,74.62326),new google.maps.LatLng(32.22479 ,74.42767),new google.maps.LatLng(31.21622 ,73.41114),new google.maps.LatLng(31.64273 ,74.76376),new google.maps.LatLng(30.92923 ,73.55948),new google.maps.LatLng(31.75083 ,75.06922),new google.maps.LatLng(31.07894 ,74.93607),new google.maps.LatLng(31.31966 ,74.61715),new google.maps.LatLng(30.92351 ,73.63492),new google.maps.LatLng(31.71162 ,75.02436),new google.maps.LatLng(32.13256 ,74.07242),new google.maps.LatLng(30.66372 ,74.27354),new google.maps.LatLng(31.48150 ,74.96753),new google.maps.LatLng(31.61156 ,74.43971),new google.maps.LatLng(30.68850 ,74.10327),new google.maps.LatLng(32.13294 ,74.82561),new google.maps.LatLng(30.66546 ,74.55505),new google.maps.LatLng(31.20975 ,74.37120),new google.maps.LatLng(32.06590 ,73.63000),new google.maps.LatLng(32.16745 ,74.36056),new google.maps.LatLng(31.11409 ,73.68335),new google.maps.LatLng(31.82952 ,74.48244),new google.maps.LatLng(31.59545 ,73.59143),new google.maps.LatLng(31.31742 ,74.83112),new google.maps.LatLng(31.45513 ,73.38839),new google.maps.LatLng(32.31729 ,74.38784),new google.maps.LatLng(31.44998 ,74.12834),new google.maps.LatLng(30.99489 ,73.52856),new google.maps.LatLng(32.51383 ,74.38557),new google.maps.LatLng(32.01676 ,75.05291),new google.maps.LatLng(31.93259 ,74.91456),new google.maps.LatLng(32.09367 ,73.72214),new google.maps.LatLng(30.65854 ,74.35107),new google.maps.LatLng(32.23212 ,74.90805),new google.maps.LatLng(31.55692 ,75.04446),new google.maps.LatLng(31.08375 ,75.16599),new google.maps.LatLng(31.76946 ,75.29196),new google.maps.LatLng(30.61151 ,74.39712),new google.maps.LatLng(31.87053 ,73.46219),new google.maps.LatLng(31.38258 ,73.66925),new google.maps.LatLng(31.43342 ,74.73808),new google.maps.LatLng(30.99687 ,74.12229),new google.maps.LatLng(31.59002 ,74.42756),new google.maps.LatLng(32.03496 ,75.21710),new google.maps.LatLng(32.28579 ,73.86239),new google.maps.LatLng(30.99536 ,73.91682),new google.maps.LatLng(31.23854 ,74.25099),new google.maps.LatLng(31.02477 ,73.54416),new google.maps.LatLng(30.52383 ,74.38203),new google.maps.LatLng(31.04169 ,74.34347),new google.maps.LatLng(30.72775 ,74.06390),new google.maps.LatLng(32.02041 ,73.58310),new google.maps.LatLng(30.64721 ,74.17619),new google.maps.LatLng(32.19809 ,74.85116),new google.maps.LatLng(30.54477 ,74.30473),new google.maps.LatLng(31.79436 ,73.75654),new google.maps.LatLng(30.86445 ,74.59470),new google.maps.LatLng(31.05512 ,74.34021),new google.maps.LatLng(32.13684 ,74.31376),new google.maps.LatLng(31.08317 ,74.72644),new google.maps.LatLng(31.92744 ,74.55515),new google.maps.LatLng(30.95345 ,75.19911),new google.maps.LatLng(30.94095 ,74.70081),new google.maps.LatLng(31.96830 ,73.74998),new google.maps.LatLng(31.98607 ,75.10557),new google.maps.LatLng(32.13970 ,75.09751),new google.maps.LatLng(30.96129 ,75.00138),new google.maps.LatLng(30.73445 ,74.88923),new google.maps.LatLng(32.23762 ,74.29706),new google.maps.LatLng(31.39122 ,74.51172),new google.maps.LatLng(32.10379 ,74.86839),new google.maps.LatLng(30.88820 ,73.97809),new google.maps.LatLng(31.50108 ,74.88503),new google.maps.LatLng(31.48265 ,74.83495),new google.maps.LatLng(31.86964 ,74.62427),new google.maps.LatLng(31.01460 ,74.95144),new google.maps.LatLng(31.26823 ,73.53541),new google.maps.LatLng(30.55626 ,74.68992),new google.maps.LatLng(31.82516 ,73.71961),new google.maps.LatLng(30.63022 ,74.61309),new google.maps.LatLng(31.62233 ,75.30493),new google.maps.LatLng(32.01729 ,74.83901),new google.maps.LatLng(31.00842 ,73.46627),new google.maps.LatLng(31.45366 ,74.74105),new google.maps.LatLng(32.37237 ,74.42323),new google.maps.LatLng(31.93361 ,75.11090),new google.maps.LatLng(32.03305 ,74.45867),new google.maps.LatLng(32.39518 ,73.87711),new google.maps.LatLng(30.79160 ,73.93677),new google.maps.LatLng(32.18907 ,74.31864),new google.maps.LatLng(31.35405 ,73.71133),new google.maps.LatLng(32.44195 ,73.98905),new google.maps.LatLng(30.97465 ,75.00830),new google.maps.LatLng(30.90777 ,74.64422),new google.maps.LatLng(32.27702 ,74.97354),new google.maps.LatLng(32.04755 ,73.63313),new google.maps.LatLng(32.11295 ,74.69402),new google.maps.LatLng(31.88313 ,74.92210),new google.maps.LatLng(30.95490 ,74.76352),new google.maps.LatLng(32.22773 ,74.77780),new google.maps.LatLng(32.22641 ,74.36424),new google.maps.LatLng(31.41041 ,73.62568),new google.maps.LatLng(31.89596 ,73.67753),new google.maps.LatLng(30.78796 ,73.77378),new google.maps.LatLng(32.38904 ,74.45377),new google.maps.LatLng(30.90307 ,74.64226),new google.maps.LatLng(30.58849 ,74.60414),new google.maps.LatLng(32.43898 ,74.59246),new google.maps.LatLng(31.98675 ,74.12422),new google.maps.LatLng(32.05633 ,75.22283),new google.maps.LatLng(31.10567 ,74.46539),new google.maps.LatLng(30.82382 ,74.72988),new google.maps.LatLng(32.28623 ,73.90867),new google.maps.LatLng(32.48282 ,74.41858),new google.maps.LatLng(32.13383 ,74.02462),new google.maps.LatLng(32.22388 ,74.64529),new google.maps.LatLng(31.93600 ,73.85694),new google.maps.LatLng(32.33762 ,74.67076),new google.maps.LatLng(32.34321 ,74.85667),new google.maps.LatLng(32.18697 ,73.60080),new google.maps.LatLng(31.02803 ,75.27658),new google.maps.LatLng(31.46754 ,74.92837),new google.maps.LatLng(31.54842 ,73.51558),new google.maps.LatLng(30.86534 ,74.89074),new google.maps.LatLng(31.94298 ,74.57438),new google.maps.LatLng(31.83665 ,75.16343),new google.maps.LatLng(32.08600 ,75.13516),new google.maps.LatLng(31.09521 ,74.09705),new google.maps.LatLng(31.08740 ,74.64178),new google.maps.LatLng(31.39103 ,73.64166),new google.maps.LatLng(30.81407 ,74.41209),new google.maps.LatLng(31.68270 ,74.47600),new google.maps.LatLng(31.63976 ,74.25189),new google.maps.LatLng(32.28218 ,74.22685),new google.maps.LatLng(31.51740 ,75.20914),new google.maps.LatLng(30.82680 ,73.92605),new google.maps.LatLng(31.81297 ,74.13015),new google.maps.LatLng(30.72459 ,74.95599),new google.maps.LatLng(30.74111 ,74.07711),new google.maps.LatLng(31.12024 ,73.96574),new google.maps.LatLng(32.19646 ,75.09063),new google.maps.LatLng(31.54858 ,74.99348),new google.maps.LatLng(31.39025 ,74.19300),new google.maps.LatLng(31.73901 ,74.81614),new google.maps.LatLng(30.90731 ,74.79730),new google.maps.LatLng(31.38760 ,75.06589),new google.maps.LatLng(31.38771 ,74.24374),new google.maps.LatLng(31.29005 ,74.23432),new google.maps.LatLng(30.94845 ,75.22117),new google.maps.LatLng(31.45962 ,74.08679),new google.maps.LatLng(32.52638 ,74.27430),new google.maps.LatLng(31.52189 ,75.22436),new google.maps.LatLng(31.28025 ,73.37450),new google.maps.LatLng(31.26463 ,74.76677),new google.maps.LatLng(31.60988 ,74.88749),new google.maps.LatLng(32.08925 ,74.29161),new google.maps.LatLng(32.13856 ,74.03165),new google.maps.LatLng(32.22554 ,74.65198),new google.maps.LatLng(31.23741 ,74.15524),new google.maps.LatLng(31.81967 ,74.00965),new google.maps.LatLng(31.30504 ,74.73875),new google.maps.LatLng(31.66398 ,74.02977),new google.maps.LatLng(30.83505 ,73.81842),new google.maps.LatLng(30.82856 ,74.29778),new google.maps.LatLng(31.27994 ,74.16940),new google.maps.LatLng(31.31699 ,74.33415),new google.maps.LatLng(31.77453 ,73.97335),new google.maps.LatLng(30.68839 ,74.68428),new google.maps.LatLng(31.46785 ,73.44873),new google.maps.LatLng(32.46539 ,74.27115),new google.maps.LatLng(31.18974 ,74.88756),new google.maps.LatLng(31.38184 ,75.14670),new google.maps.LatLng(31.00837 ,74.88068),new google.maps.LatLng(30.87024 ,73.78206),new google.maps.LatLng(32.11764 ,74.08832),new google.maps.LatLng(31.50687 ,74.35662),new google.maps.LatLng(31.25986 ,75.26899),new google.maps.LatLng(30.52393 ,74.39986),new google.maps.LatLng(31.95130 ,74.02335),new google.maps.LatLng(30.87748 ,74.02558),new google.maps.LatLng(31.43802 ,73.65489),new google.maps.LatLng(30.94632 ,75.09818),new google.maps.LatLng(31.15975 ,73.68703),new google.maps.LatLng(32.25841 ,74.80843),new google.maps.LatLng(31.13956 ,74.45557),new google.maps.LatLng(32.28990 ,74.64745),new google.maps.LatLng(31.36509 ,73.51439),new google.maps.LatLng(32.14282 ,73.70464),new google.maps.LatLng(31.72770 ,75.33000),new google.maps.LatLng(32.44643 ,74.72965),new google.maps.LatLng(30.67031 ,74.14790),new google.maps.LatLng(31.12279 ,73.85119),new google.maps.LatLng(31.77972 ,73.52210),new google.maps.LatLng(30.91067 ,74.41401),new google.maps.LatLng(30.82806 ,75.13758),new google.maps.LatLng(31.22460 ,75.08197),new google.maps.LatLng(31.01494 ,73.63922),new google.maps.LatLng(31.64167 ,74.88077),new google.maps.LatLng(31.31908 ,74.00093),new google.maps.LatLng(30.69380 ,74.89016),new google.maps.LatLng(30.79558 ,74.05203),new google.maps.LatLng(30.84564 ,73.84931),new google.maps.LatLng(30.85759 ,73.77025),new google.maps.LatLng(31.48579 ,74.51447),new google.maps.LatLng(31.82678 ,75.04465),new google.maps.LatLng(31.90353 ,74.42543),new google.maps.LatLng(32.35465 ,73.87977),new google.maps.LatLng(32.02821 ,75.10018),new google.maps.LatLng(31.33694 ,74.59126),new google.maps.LatLng(31.95021 ,74.07585),new google.maps.LatLng(31.18030 ,74.09151),new google.maps.LatLng(31.93250 ,75.21734),new google.maps.LatLng(31.12030 ,74.22094),new google.maps.LatLng(30.98085 ,74.94733),new google.maps.LatLng(31.83873 ,73.69253),new google.maps.LatLng(31.00835 ,74.10071),new google.maps.LatLng(31.00028 ,74.48188),new google.maps.LatLng(32.42784 ,74.77635),new google.maps.LatLng(31.14648 ,75.32575),new google.maps.LatLng(30.88974 ,73.72054),new google.maps.LatLng(31.13946 ,73.59467),new google.maps.LatLng(30.71313 ,73.75666),new google.maps.LatLng(32.09663 ,74.75315),new google.maps.LatLng(32.14418 ,74.80415),new google.maps.LatLng(32.17052 ,73.94569),new google.maps.LatLng(31.09013 ,73.64383),new google.maps.LatLng(31.58206 ,75.24351),new google.maps.LatLng(31.24816 ,75.00723),new google.maps.LatLng(31.31324 ,73.63220),new google.maps.LatLng(32.26515 ,73.90527),new google.maps.LatLng(31.94298 ,73.98927),new google.maps.LatLng(31.41072 ,74.75911),new google.maps.LatLng(32.09061 ,73.77525),new google.maps.LatLng(31.29739 ,75.07641),new google.maps.LatLng(30.76853 ,73.82696),new google.maps.LatLng(31.99287 ,75.13360),new google.maps.LatLng(32.30887 ,74.17558),new google.maps.LatLng(31.10071 ,75.19169),new google.maps.LatLng(31.69938 ,74.01310),new google.maps.LatLng(31.43988 ,75.11254),new google.maps.LatLng(30.63647 ,74.71640),new google.maps.LatLng(31.63037 ,74.52670),new google.maps.LatLng(31.68603 ,73.67285),new google.maps.LatLng(31.53416 ,74.76797),new google.maps.LatLng(30.71295 ,74.86278),new google.maps.LatLng(30.81391 ,74.75394),new google.maps.LatLng(31.33468 ,73.76371),new google.maps.LatLng(31.67431 ,73.73541),new google.maps.LatLng(31.83924 ,74.06855),new google.maps.LatLng(30.49784 ,74.21485),new google.maps.LatLng(31.10456 ,74.54365),new google.maps.LatLng(31.20716 ,74.51173),new google.maps.LatLng(30.93029 ,73.81093),new google.maps.LatLng(31.05762 ,74.23690),new google.maps.LatLng(32.12898 ,73.92942),new google.maps.LatLng(31.28852 ,74.46721),new google.maps.LatLng(31.72273 ,73.72698),new google.maps.LatLng(31.57587 ,75.08732),new google.maps.LatLng(31.71977 ,75.15997),new google.maps.LatLng(32.07978 ,74.75302),new google.maps.LatLng(30.62434 ,73.87232),new google.maps.LatLng(31.73134 ,74.89751),new google.maps.LatLng(30.71725 ,74.41002),new google.maps.LatLng(31.34499 ,74.63118),new google.maps.LatLng(31.80574 ,74.68689),new google.maps.LatLng(30.85160 ,73.67675),new google.maps.LatLng(31.27300 ,75.16696),new google.maps.LatLng(31.47040 ,74.79064),new google.maps.LatLng(31.33913 ,73.43196),new google.maps.LatLng(31.31234 ,73.64251),new google.maps.LatLng(31.83267 ,74.30767),new google.maps.LatLng(32.16373 ,74.48320),new google.maps.LatLng(31.39238 ,74.33403),new google.maps.LatLng(30.82849 ,74.33594),new google.maps.LatLng(31.21637 ,73.45030),new google.maps.LatLng(32.09599 ,74.23659),new google.maps.LatLng(32.26867 ,73.90109),new google.maps.LatLng(31.98202 ,75.22537),new google.maps.LatLng(31.32353 ,74.53526),new google.maps.LatLng(30.70897 ,74.53039),new google.maps.LatLng(31.87031 ,73.93147),new google.maps.LatLng(32.48821 ,74.21076),new google.maps.LatLng(31.03219 ,74.85414),new google.maps.LatLng(32.03497 ,74.03496),new google.maps.LatLng(31.53099 ,75.35279),new google.maps.LatLng(31.96624 ,74.40003),new google.maps.LatLng(30.62799 ,74.29471),new google.maps.LatLng(32.53186 ,74.34940),new google.maps.LatLng(31.71940 ,75.33281),new google.maps.LatLng(31.13370 ,75.03580),new google.maps.LatLng(30.98821 ,74.70765),new google.maps.LatLng(30.80353 ,73.89666),new google.maps.LatLng(31.47356 ,74.12004),new google.maps.LatLng(31.53872 ,74.96579),new google.maps.LatLng(31.09993 ,73.93398),new google.maps.LatLng(31.09722 ,75.12337),new google.maps.LatLng(31.52369 ,73.74944),new google.maps.LatLng(31.32599 ,74.95683),new google.maps.LatLng(31.52095 ,74.71776),new google.maps.LatLng(31.96176 ,73.49534),new google.maps.LatLng(30.81236 ,74.45593),new google.maps.LatLng(31.38084 ,75.20644),new google.maps.LatLng(31.95276 ,75.19255),new google.maps.LatLng(31.92771 ,73.70082),new google.maps.LatLng(30.82195 ,74.77522),new google.maps.LatLng(31.66670 ,73.39632),new google.maps.LatLng(32.15718 ,73.90187),new google.maps.LatLng(31.86737 ,74.41982),new google.maps.LatLng(31.77885 ,75.17630),new google.maps.LatLng(32.47420 ,74.44083),new google.maps.LatLng(32.23200 ,74.34046),new google.maps.LatLng(31.36745 ,73.59788),new google.maps.LatLng(32.10111 ,73.61508),new google.maps.LatLng(32.33316 ,74.25846),new google.maps.LatLng(31.16787 ,75.28317),new google.maps.LatLng(31.62623 ,73.91319),new google.maps.LatLng(31.03537 ,74.20399),new google.maps.LatLng(31.99036 ,75.23955),new google.maps.LatLng(30.96344 ,73.72799),new google.maps.LatLng(30.78755 ,73.78422),new google.maps.LatLng(31.61671 ,75.31536),new google.maps.LatLng(30.69526 ,74.94541),new google.maps.LatLng(31.57690 ,74.36371),new google.maps.LatLng(31.68583 ,74.51908),new google.maps.LatLng(31.59977 ,74.44298),new google.maps.LatLng(30.95124 ,74.80406),new google.maps.LatLng(31.29088 ,74.23909),new google.maps.LatLng(31.15503 ,73.44128),new google.maps.LatLng(31.36736 ,75.32520),new google.maps.LatLng(31.12823 ,73.47917),new google.maps.LatLng(30.91772 ,74.70374),new google.maps.LatLng(30.85519 ,75.08181),new google.maps.LatLng(31.96218 ,74.22677),new google.maps.LatLng(32.17536 ,74.81645),new google.maps.LatLng(30.93235 ,74.92831),new google.maps.LatLng(31.79086 ,74.80128),new google.maps.LatLng(31.11891 ,74.72146),new google.maps.LatLng(31.61039 ,74.84301),new google.maps.LatLng(31.77206 ,73.90553),new google.maps.LatLng(31.64374 ,75.13052),new google.maps.LatLng(32.10450 ,75.02984),new google.maps.LatLng(31.68174 ,74.50662),new google.maps.LatLng(31.07018 ,74.15223),new google.maps.LatLng(32.11270 ,74.54557),new google.maps.LatLng(31.54789 ,73.42680),new google.maps.LatLng(32.35239 ,73.99787),new google.maps.LatLng(30.97198 ,74.05398),new google.maps.LatLng(31.41230 ,74.27248),new google.maps.LatLng(31.22992 ,74.23978),new google.maps.LatLng(32.37804 ,74.36881),new google.maps.LatLng(31.31568 ,73.85576),new google.maps.LatLng(31.95973 ,74.53918),new google.maps.LatLng(30.72998 ,74.14862),new google.maps.LatLng(31.24869 ,74.53716),new google.maps.LatLng(31.46156 ,74.51144),new google.maps.LatLng(31.48078 ,74.87736),new google.maps.LatLng(32.10726 ,74.98898),new google.maps.LatLng(31.18346 ,74.45018),new google.maps.LatLng(31.76933 ,73.93806),new google.maps.LatLng(31.99957 ,74.55747),new google.maps.LatLng(31.00103 ,73.71474),new google.maps.LatLng(32.45762 ,74.34947),new google.maps.LatLng(32.28368 ,73.69620),new google.maps.LatLng(31.24944 ,74.19619),new google.maps.LatLng(31.71085 ,73.73183),new google.maps.LatLng(32.10041 ,74.39461),new google.maps.LatLng(32.08941 ,75.10412),new google.maps.LatLng(31.94299 ,73.79325),new google.maps.LatLng(31.67358 ,74.96894),new google.maps.LatLng(31.84550 ,74.43301),new google.maps.LatLng(30.89331 ,74.70949),new google.maps.LatLng(31.26749 ,74.52455),new google.maps.LatLng(32.08317 ,73.82772),new google.maps.LatLng(32.01048 ,74.76764),new google.maps.LatLng(31.68715 ,73.50377),new google.maps.LatLng(31.99477 ,73.72234),new google.maps.LatLng(31.51893 ,75.07114),new google.maps.LatLng(30.96098 ,73.75079),new google.maps.LatLng(31.30379 ,75.15893),new google.maps.LatLng(31.08413 ,74.42259),new google.maps.LatLng(31.83784 ,73.58023),new google.maps.LatLng(30.96209 ,74.44593),new google.maps.LatLng(31.34512 ,74.46518),new google.maps.LatLng(30.98875 ,73.93191),new google.maps.LatLng(32.32196 ,74.71666),new google.maps.LatLng(32.11604 ,74.73965),new google.maps.LatLng(32.34370 ,74.59359),new google.maps.LatLng(31.08980 ,74.86754),new google.maps.LatLng(31.70085 ,75.27037),new google.maps.LatLng(32.11155 ,75.15121),new google.maps.LatLng(31.15786 ,73.96746),new google.maps.LatLng(30.77219 ,74.66136),new google.maps.LatLng(31.81579 ,73.54846),new google.maps.LatLng(31.44234 ,73.79265),new google.maps.LatLng(31.64830 ,74.22845),new google.maps.LatLng(31.53315 ,73.99074),new google.maps.LatLng(31.46793 ,73.65323),new google.maps.LatLng(30.92599 ,74.93780),new google.maps.LatLng(30.71517 ,75.00927),new google.maps.LatLng(32.07721 ,73.70680),new google.maps.LatLng(31.27669 ,75.10381),new google.maps.LatLng(32.02672 ,74.48752),new google.maps.LatLng(31.48099 ,73.41559),new google.maps.LatLng(31.50869 ,74.70820),new google.maps.LatLng(30.67729 ,73.95891),new google.maps.LatLng(30.94735 ,73.66390),new google.maps.LatLng(30.93176 ,74.35837),new google.maps.LatLng(31.62159 ,74.96354),new google.maps.LatLng(30.77824 ,74.71405),new google.maps.LatLng(32.01990 ,74.81533),new google.maps.LatLng(31.20655 ,75.33236),new google.maps.LatLng(31.22719 ,75.07218),new google.maps.LatLng(32.33353 ,73.78110),new google.maps.LatLng(31.59149 ,73.34035),new google.maps.LatLng(31.04926 ,75.23792),new google.maps.LatLng(31.28557 ,73.93012),new google.maps.LatLng(31.66782 ,75.31100),new google.maps.LatLng(30.88727 ,74.85692),new google.maps.LatLng(31.99102 ,74.12805),new google.maps.LatLng(31.89817 ,74.48029),new google.maps.LatLng(31.69898 ,74.12038),new google.maps.LatLng(31.21226 ,74.01886),new google.maps.LatLng(31.81423 ,74.06528),new google.maps.LatLng(31.68984 ,73.75832),new google.maps.LatLng(31.28804 ,75.06847),new google.maps.LatLng(31.97796 ,74.69722),new google.maps.LatLng(30.86708 ,74.89998),new google.maps.LatLng(31.15493 ,73.44429),new google.maps.LatLng(31.19934 ,75.20287),new google.maps.LatLng(30.69464 ,73.86932),new google.maps.LatLng(30.90943 ,74.36533),new google.maps.LatLng(32.31045 ,74.20735),new google.maps.LatLng(31.59685 ,74.97018),new google.maps.LatLng(31.21249 ,73.48690),new google.maps.LatLng(31.68043 ,74.06865),new google.maps.LatLng(32.27002 ,74.21436),new google.maps.LatLng(31.65760 ,74.65959),new google.maps.LatLng(31.18784 ,74.18065),new google.maps.LatLng(31.78493 ,73.45282),new google.maps.LatLng(32.44436 ,74.26693),new google.maps.LatLng(31.29042 ,73.94471),new google.maps.LatLng(31.25608 ,74.04970),new google.maps.LatLng(32.13694 ,74.41410),new google.maps.LatLng(30.96796 ,73.79337),new google.maps.LatLng(31.62858 ,75.15693),new google.maps.LatLng(32.25120 ,74.56742),new google.maps.LatLng(31.29015 ,73.68183),new google.maps.LatLng(31.76439 ,74.68543),new google.maps.LatLng(31.58219 ,74.93607),new google.maps.LatLng(32.37165 ,74.47403),new google.maps.LatLng(31.81519 ,74.42136),new google.maps.LatLng(31.31971 ,75.17055),new google.maps.LatLng(31.76488 ,75.35031),new google.maps.LatLng(31.80164 ,73.45068),new google.maps.LatLng(32.48494 ,74.25128),new google.maps.LatLng(32.00388 ,74.80077),new google.maps.LatLng(31.55265 ,74.32348),new google.maps.LatLng(32.18598 ,74.36842),new google.maps.LatLng(31.63598 ,74.19550),new google.maps.LatLng(31.81364 ,73.67421),new google.maps.LatLng(30.83021 ,74.24460),new google.maps.LatLng(32.05971 ,74.24848),new google.maps.LatLng(31.57267 ,74.94996),new google.maps.LatLng(30.84195 ,74.70036),new google.maps.LatLng(31.82417 ,74.39637),new google.maps.LatLng(31.21475 ,75.34683),new google.maps.LatLng(31.08366 ,74.82896),new google.maps.LatLng(31.53579 ,75.35903),new google.maps.LatLng(31.58395 ,75.37060),new google.maps.LatLng(31.99751 ,74.08056),new google.maps.LatLng(31.11738 ,74.07392),new google.maps.LatLng(31.17459 ,74.61652),new google.maps.LatLng(31.27534 ,74.13022),new google.maps.LatLng(31.81365 ,75.32015),new google.maps.LatLng(31.76840 ,74.68760),new google.maps.LatLng(31.92274 ,75.07692),new google.maps.LatLng(31.53922 ,73.33436),new google.maps.LatLng(32.11559 ,74.27700),new google.maps.LatLng(30.81038 ,74.66048),new google.maps.LatLng(31.30216 ,73.73209),new google.maps.LatLng(30.75195 ,73.92549),new google.maps.LatLng(31.18666 ,73.65190),new google.maps.LatLng(30.75555 ,73.94851),new google.maps.LatLng(31.36678 ,75.12649),new google.maps.LatLng(32.37160 ,74.37555),new google.maps.LatLng(30.96148 ,73.56518),new google.maps.LatLng(30.65587 ,74.29467),new google.maps.LatLng(30.61539 ,74.00062),new google.maps.LatLng(30.68796 ,74.58836),new google.maps.LatLng(31.02277 ,73.53487),new google.maps.LatLng(31.29480 ,75.15765),new google.maps.LatLng(31.13444 ,74.91104),new google.maps.LatLng(32.43224 ,74.50289),new google.maps.LatLng(31.65448 ,74.56870),new google.maps.LatLng(30.72640 ,74.66884),new google.maps.LatLng(32.09447 ,74.76547),new google.maps.LatLng(31.98450 ,74.15434),new google.maps.LatLng(32.49325 ,74.51066),new google.maps.LatLng(31.77292 ,74.64972),new google.maps.LatLng(31.81230 ,74.68850),new google.maps.LatLng(32.41963 ,74.02456),new google.maps.LatLng(31.55713 ,74.87950),new google.maps.LatLng(31.15065 ,74.70644),new google.maps.LatLng(31.85734 ,73.48258),new google.maps.LatLng(31.79155 ,74.04469),new google.maps.LatLng(32.15961 ,74.76549),new google.maps.LatLng(31.28083 ,74.40246),new google.maps.LatLng(31.58921 ,73.99977),new google.maps.LatLng(31.36058 ,73.74541),new google.maps.LatLng(31.03562 ,73.45751),new google.maps.LatLng(31.69091 ,74.14344),new google.maps.LatLng(30.76646 ,74.75308),new google.maps.LatLng(31.87393 ,73.71925),new google.maps.LatLng(31.21315 ,74.87348),new google.maps.LatLng(31.66103 ,75.03946),new google.maps.LatLng(31.50302 ,74.23946),new google.maps.LatLng(31.00157 ,73.89341),new google.maps.LatLng(31.60983 ,73.46224),new google.maps.LatLng(31.73902 ,75.06156),new google.maps.LatLng(31.52366 ,74.71207),new google.maps.LatLng(31.41563 ,73.83937),new google.maps.LatLng(32.22796 ,74.84988),new google.maps.LatLng(31.14024 ,74.54915),new google.maps.LatLng(30.71847 ,74.50331),new google.maps.LatLng(30.84597 ,73.76632),new google.maps.LatLng(31.17119 ,74.79179),new google.maps.LatLng(31.30932 ,74.39638),new google.maps.LatLng(32.14992 ,73.95858),new google.maps.LatLng(32.03615 ,73.92825),new google.maps.LatLng(31.96597 ,74.32188),new google.maps.LatLng(32.08532 ,74.25200),new google.maps.LatLng(31.76892 ,73.81241),new google.maps.LatLng(30.84563 ,74.93129),new google.maps.LatLng(31.46957 ,74.42442),new google.maps.LatLng(30.65254 ,74.60110),new google.maps.LatLng(31.69147 ,74.96557),new google.maps.LatLng(31.46075 ,74.71154),new google.maps.LatLng(31.26548 ,74.60408),new google.maps.LatLng(31.72986 ,73.88606),new google.maps.LatLng(30.83330 ,74.43021),new google.maps.LatLng(31.95597 ,73.78890),new google.maps.LatLng(31.63735 ,75.21463),new google.maps.LatLng(30.90783 ,74.84112),new google.maps.LatLng(31.24161 ,74.22780),new google.maps.LatLng(31.00892 ,73.81164),new google.maps.LatLng(31.49246 ,75.11341),new google.maps.LatLng(31.79556 ,73.92162),new google.maps.LatLng(31.98833 ,73.64189),new google.maps.LatLng(32.03329 ,74.14894),new google.maps.LatLng(31.08256 ,74.89693),new google.maps.LatLng(31.84808 ,74.55018),new google.maps.LatLng(31.30202 ,74.77622),new google.maps.LatLng(31.32793 ,74.11207),new google.maps.LatLng(30.93240 ,74.93962),new google.maps.LatLng(31.50944 ,74.58859),new google.maps.LatLng(30.90050 ,75.01371),new google.maps.LatLng(31.86294 ,74.42789),new google.maps.LatLng(31.51107 ,75.04942),new google.maps.LatLng(30.93732 ,74.28434),new google.maps.LatLng(30.83499 ,75.11659),new google.maps.LatLng(31.58278 ,74.53292),new google.maps.LatLng(31.71767 ,75.14048),new google.maps.LatLng(31.26151 ,74.75659),new google.maps.LatLng(32.05391 ,74.65450),new google.maps.LatLng(30.79456 ,74.98794),new google.maps.LatLng(31.59301 ,74.00051),new google.maps.LatLng(32.10233 ,75.00880),new google.maps.LatLng(31.95131 ,74.28138),new google.maps.LatLng(30.76576 ,74.34065),new google.maps.LatLng(31.31524 ,73.53155),new google.maps.LatLng(30.97347 ,73.62706),new google.maps.LatLng(32.00717 ,74.45759),new google.maps.LatLng(30.82250 ,74.81830),new google.maps.LatLng(31.59150 ,73.72692),new google.maps.LatLng(30.56456 ,74.43752),new google.maps.LatLng(31.34345 ,75.09274),new google.maps.LatLng(31.15379 ,73.49357),new google.maps.LatLng(31.68290 ,74.55164),new google.maps.LatLng(31.83958 ,74.26949),new google.maps.LatLng(31.37358 ,73.55278),new google.maps.LatLng(31.83433 ,74.26356),new google.maps.LatLng(31.42716 ,74.11140),new google.maps.LatLng(31.94065 ,74.89756),new google.maps.LatLng(31.38677 ,75.15267),new google.maps.LatLng(31.71621 ,74.49295),new google.maps.LatLng(32.13088 ,74.39091),new google.maps.LatLng(30.68288 ,73.92071),new google.maps.LatLng(30.56870 ,74.76245),new google.maps.LatLng(31.36157 ,73.34950),new google.maps.LatLng(30.59435 ,74.13787),new google.maps.LatLng(31.79306 ,74.86370),new google.maps.LatLng(31.64622 ,74.50755),new google.maps.LatLng(31.30703 ,73.98235),new google.maps.LatLng(30.93016 ,73.84017),new google.maps.LatLng(31.83108 ,73.69750),new google.maps.LatLng(31.31043 ,73.67909),new google.maps.LatLng(30.69680 ,73.99218),new google.maps.LatLng(31.99772 ,74.65646),new google.maps.LatLng(31.04901 ,74.18177),new google.maps.LatLng(30.99406 ,73.92709),new google.maps.LatLng(32.18916 ,73.65855),new google.maps.LatLng(30.71137 ,74.40964),new google.maps.LatLng(30.81877 ,74.38227),new google.maps.LatLng(31.21661 ,74.69411),new google.maps.LatLng(31.85403 ,74.13502),new google.maps.LatLng(31.03751 ,73.62518),new google.maps.LatLng(31.09670 ,74.05986),new google.maps.LatLng(31.52635 ,73.97523),new google.maps.LatLng(32.21039 ,74.16346),new google.maps.LatLng(32.35693 ,74.84494),new google.maps.LatLng(30.91141 ,74.58083),new google.maps.LatLng(32.07238 ,74.25482),new google.maps.LatLng(32.09256 ,73.95593),new google.maps.LatLng(31.10032 ,74.99341),new google.maps.LatLng(31.66645 ,74.74380),new google.maps.LatLng(31.32085 ,74.04505),new google.maps.LatLng(32.03068 ,74.37128),new google.maps.LatLng(30.91614 ,73.68959),new google.maps.LatLng(30.70324 ,73.97093),new google.maps.LatLng(31.55073 ,73.80851),new google.maps.LatLng(31.63406 ,73.68582),new google.maps.LatLng(31.84837 ,74.10513),new google.maps.LatLng(31.65034 ,73.76230),new google.maps.LatLng(31.10324 ,75.17365),new google.maps.LatLng(32.30463 ,74.09223),new google.maps.LatLng(32.30810 ,74.72035),new google.maps.LatLng(32.15175 ,75.14948),new google.maps.LatLng(31.21171 ,73.69849),new google.maps.LatLng(30.85916 ,73.88485),new google.maps.LatLng(31.91687 ,74.02173),new google.maps.LatLng(31.19007 ,74.88275),new google.maps.LatLng(31.71652 ,74.59382),new google.maps.LatLng(31.30567 ,74.12336),new google.maps.LatLng(31.34380 ,74.86067),new google.maps.LatLng(31.32990 ,74.46435),new google.maps.LatLng(31.61266 ,74.81004),new google.maps.LatLng(31.90610 ,74.25617),new google.maps.LatLng(30.84263 ,74.45448),new google.maps.LatLng(32.12070 ,74.49110),new google.maps.LatLng(31.86481 ,74.46469),new google.maps.LatLng(31.90992 ,74.00508),new google.maps.LatLng(32.39659 ,74.44413),new google.maps.LatLng(31.00693 ,74.59916),new google.maps.LatLng(31.21157 ,75.00420),new google.maps.LatLng(32.04043 ,73.63206),new google.maps.LatLng(30.77252 ,73.88393),new google.maps.LatLng(31.92075 ,75.00792),new google.maps.LatLng(32.02106 ,73.64901),new google.maps.LatLng(30.96332 ,74.50848),new google.maps.LatLng(31.04396 ,73.57092),new google.maps.LatLng(31.67399 ,74.16249),new google.maps.LatLng(31.64400 ,73.84656),new google.maps.LatLng(32.13839 ,74.35888),new google.maps.LatLng(30.61477 ,74.32758),new google.maps.LatLng(31.52335 ,74.38037),new google.maps.LatLng(31.01567 ,74.67018),new google.maps.LatLng(30.92246 ,74.49764),new google.maps.LatLng(30.79233 ,74.39849),new google.maps.LatLng(31.84234 ,74.27382),new google.maps.LatLng(31.53948 ,74.90472),new google.maps.LatLng(30.60212 ,73.96924),new google.maps.LatLng(31.21934 ,74.53260),new google.maps.LatLng(30.73576 ,73.87475),new google.maps.LatLng(32.13348 ,74.64752),new google.maps.LatLng(31.78789 ,73.52707),new google.maps.LatLng(31.27462 ,75.05280),new google.maps.LatLng(31.65535 ,74.89716),new google.maps.LatLng(31.12341 ,75.05503),new google.maps.LatLng(32.15368 ,74.92802),new google.maps.LatLng(31.55806 ,73.76565),new google.maps.LatLng(31.31114 ,74.34983),new google.maps.LatLng(32.49605 ,74.62824),new google.maps.LatLng(31.91480 ,74.48507),new google.maps.LatLng(31.88220 ,73.63836),new google.maps.LatLng(30.58962 ,73.90191),new google.maps.LatLng(32.14111 ,74.65750),new google.maps.LatLng(31.92570 ,73.68896),new google.maps.LatLng(30.63503 ,74.71645),new google.maps.LatLng(31.48951 ,74.13492),new google.maps.LatLng(30.51891 ,74.60875),new google.maps.LatLng(31.15748 ,75.19747),new google.maps.LatLng(31.78863 ,73.60856),new google.maps.LatLng(31.14311 ,75.26026),new google.maps.LatLng(31.76034 ,74.00811),new google.maps.LatLng(32.19783 ,74.89967),new google.maps.LatLng(31.98002 ,74.94161),new google.maps.LatLng(30.68205 ,74.03508),new google.maps.LatLng(30.83692 ,75.00226),new google.maps.LatLng(31.63322 ,75.25661),new google.maps.LatLng(30.95016 ,74.38654),new google.maps.LatLng(32.08212 ,74.71625),new google.maps.LatLng(30.74382 ,74.07805),new google.maps.LatLng(31.03153 ,74.77987),new google.maps.LatLng(31.64610 ,75.28733),new google.maps.LatLng(32.04423 ,74.83542),new google.maps.LatLng(32.41006 ,74.00174),new google.maps.LatLng(31.11885 ,73.46671),new google.maps.LatLng(31.66290 ,73.60137),new google.maps.LatLng(30.56041 ,74.71110),new google.maps.LatLng(30.58068 ,74.82402),new google.maps.LatLng(32.02753 ,74.49642),new google.maps.LatLng(31.32647 ,73.36913),new google.maps.LatLng(31.89375 ,73.48099),new google.maps.LatLng(31.85186 ,73.84335),new google.maps.LatLng(31.11028 ,75.10141),new google.maps.LatLng(31.91622 ,74.16668),new google.maps.LatLng(31.89542 ,74.59566),new google.maps.LatLng(31.62458 ,73.90369),new google.maps.LatLng(30.53304 ,74.13422),new google.maps.LatLng(32.25791 ,73.99679),new google.maps.LatLng(30.72874 ,74.56298),new google.maps.LatLng(31.39582 ,73.55501),new google.maps.LatLng(31.31508 ,74.61368),new google.maps.LatLng(31.60443 ,74.56682),new google.maps.LatLng(32.13527 ,74.31330),new google.maps.LatLng(31.96337 ,75.13832),new google.maps.LatLng(31.73852 ,74.67719),new google.maps.LatLng(31.36940 ,73.52820),new google.maps.LatLng(31.18801 ,74.84297),new google.maps.LatLng(30.84459 ,74.47218),new google.maps.LatLng(32.37106 ,74.13785),new google.maps.LatLng(31.49394 ,75.10773),new google.maps.LatLng(32.38308 ,73.97563),new google.maps.LatLng(31.43218 ,74.79152),new google.maps.LatLng(32.43875 ,74.33718),new google.maps.LatLng(31.37502 ,74.04165),new google.maps.LatLng(30.65135 ,73.92035),new google.maps.LatLng(31.26480 ,74.41636),new google.maps.LatLng(31.96041 ,73.76034),new google.maps.LatLng(31.11531 ,73.49015),new google.maps.LatLng(31.75114 ,73.41370),new google.maps.LatLng(31.91816 ,73.82221),new google.maps.LatLng(31.11949 ,74.48959),new google.maps.LatLng(31.73391 ,74.52917),new google.maps.LatLng(32.45707 ,73.96903),new google.maps.LatLng(30.80999 ,74.51990),new google.maps.LatLng(30.80251 ,74.68354),new google.maps.LatLng(31.46399 ,73.35419),new google.maps.LatLng(31.31526 ,75.31447),new google.maps.LatLng(30.98722 ,74.03523),new google.maps.LatLng(31.93332 ,75.10052),new google.maps.LatLng(31.27732 ,74.35355),new google.maps.LatLng(30.87113 ,75.03703),new google.maps.LatLng(31.08987 ,75.04326),new google.maps.LatLng(30.94821 ,73.86550),new google.maps.LatLng(31.96326 ,74.16937),new google.maps.LatLng(31.15003 ,73.84435),new google.maps.LatLng(32.05692 ,74.79008),new google.maps.LatLng(31.76893 ,74.26353),new google.maps.LatLng(31.66803 ,73.65854),new google.maps.LatLng(31.08043 ,75.03836),new google.maps.LatLng(31.22620 ,74.57278),new google.maps.LatLng(31.73160 ,73.87567),new google.maps.LatLng(32.32519 ,73.94142),new google.maps.LatLng(31.18558 ,74.83170),new google.maps.LatLng(31.84795 ,74.91072),new google.maps.LatLng(32.17526 ,74.97675),new google.maps.LatLng(31.89908 ,74.99890),new google.maps.LatLng(31.48005 ,73.59794),new google.maps.LatLng(30.78085 ,73.88308),new google.maps.LatLng(32.29993 ,74.53524),new google.maps.LatLng(30.66946 ,74.06726),new google.maps.LatLng(31.40330 ,74.58835),new google.maps.LatLng(31.09152 ,73.49028),new google.maps.LatLng(32.01584 ,74.40454),new google.maps.LatLng(31.80014 ,73.94033),new google.maps.LatLng(31.31817 ,73.97870),new google.maps.LatLng(31.03880 ,75.09608),new google.maps.LatLng(32.26478 ,74.85767),new google.maps.LatLng(32.20829 ,74.14630),new google.maps.LatLng(30.76282 ,73.76808),new google.maps.LatLng(31.32469 ,75.26442),new google.maps.LatLng(30.61664 ,73.93812),new google.maps.LatLng(31.90797 ,74.04088),new google.maps.LatLng(30.68332 ,73.75612),new google.maps.LatLng(31.51115 ,74.19745),new google.maps.LatLng(31.88022 ,73.48446),new google.maps.LatLng(32.28105 ,74.04150),new google.maps.LatLng(31.22762 ,74.67809),new google.maps.LatLng(31.65073 ,73.68064),new google.maps.LatLng(31.11384 ,74.94987),new google.maps.LatLng(31.24072 ,74.34857),new google.maps.LatLng(31.86201 ,75.29344),new google.maps.LatLng(31.57092 ,75.26319),new google.maps.LatLng(32.02840 ,75.24927),new google.maps.LatLng(31.50216 ,73.47466),new google.maps.LatLng(31.98031 ,74.52125),new google.maps.LatLng(32.00509 ,74.12296),new google.maps.LatLng(32.39807 ,74.60801),new google.maps.LatLng(32.37538 ,73.98884),new google.maps.LatLng(30.72722 ,74.10644),new google.maps.LatLng(30.96886 ,75.06139),new google.maps.LatLng(31.29773 ,74.04682),new google.maps.LatLng(30.90855 ,73.70699),new google.maps.LatLng(31.86024 ,73.46445),new google.maps.LatLng(30.66408 ,74.69476),new google.maps.LatLng(31.37337 ,75.13451),new google.maps.LatLng(31.54682 ,74.79367),new google.maps.LatLng(31.40619 ,74.12001),new google.maps.LatLng(31.07724 ,73.48886),new google.maps.LatLng(30.79014 ,74.65880),new google.maps.LatLng(30.67029 ,73.97912),new google.maps.LatLng(31.69329 ,74.78682),new google.maps.LatLng(30.73803 ,74.09541),new google.maps.LatLng(31.08323 ,74.27952),new google.maps.LatLng(31.90775 ,74.38559),new google.maps.LatLng(32.14484 ,73.65194),new google.maps.LatLng(31.89683 ,74.31033),new google.maps.LatLng(32.04180 ,74.37270),new google.maps.LatLng(30.76134 ,73.74085),new google.maps.LatLng(30.77485 ,74.13026),new google.maps.LatLng(32.32583 ,74.46334),new google.maps.LatLng(31.28253 ,73.68666),new google.maps.LatLng(31.30156 ,75.15105),new google.maps.LatLng(31.20112 ,73.54841),new google.maps.LatLng(31.36453 ,75.09338),new google.maps.LatLng(30.55382 ,73.97382),new google.maps.LatLng(31.27289 ,74.85484),new google.maps.LatLng(31.18382 ,74.49739),new google.maps.LatLng(32.12935 ,73.67699),new google.maps.LatLng(32.26689 ,74.11648),new google.maps.LatLng(31.77771 ,74.07162),new google.maps.LatLng(31.47464 ,74.32507),new google.maps.LatLng(32.22648 ,73.77867),new google.maps.LatLng(31.98243 ,73.76112),new google.maps.LatLng(31.28206 ,73.67509),new google.maps.LatLng(32.21375 ,75.11333),new google.maps.LatLng(30.82965 ,73.63489),new google.maps.LatLng(30.49698 ,74.42874),new google.maps.LatLng(32.17012 ,74.06950),new google.maps.LatLng(32.32690 ,73.74757),new google.maps.LatLng(31.79024 ,74.36364),new google.maps.LatLng(31.31344 ,73.86472),new google.maps.LatLng(30.89710 ,73.74737),new google.maps.LatLng(32.47596 ,74.53834),new google.maps.LatLng(31.89364 ,75.23675),new google.maps.LatLng(31.04029 ,73.97411),new google.maps.LatLng(32.13306 ,73.94402),new google.maps.LatLng(31.45159 ,74.88978),new google.maps.LatLng(32.44321 ,74.65686),new google.maps.LatLng(31.36459 ,74.93737),new google.maps.LatLng(31.22162 ,74.53330),new google.maps.LatLng(30.95578 ,75.07253),new google.maps.LatLng(32.33983 ,74.88858),new google.maps.LatLng(32.04520 ,73.97131),new google.maps.LatLng(31.46558 ,74.43918),new google.maps.LatLng(31.86832 ,75.07817),new google.maps.LatLng(32.28695 ,73.82018),new google.maps.LatLng(30.64968 ,74.00185),new google.maps.LatLng(32.14993 ,74.18901),new google.maps.LatLng(31.88910 ,74.63596),new google.maps.LatLng(30.72105 ,74.22643),new google.maps.LatLng(31.52331 ,73.55970),new google.maps.LatLng(31.40413 ,73.73513),new google.maps.LatLng(31.04204 ,73.56656),new google.maps.LatLng(31.76497 ,74.50923),new google.maps.LatLng(30.86015 ,74.65975),new google.maps.LatLng(31.60222 ,75.21845),new google.maps.LatLng(31.62093 ,74.43815),new google.maps.LatLng(31.58215 ,74.51794),new google.maps.LatLng(31.39769 ,75.09514),new google.maps.LatLng(32.09067 ,74.89421),new google.maps.LatLng(30.83796 ,73.94434),new google.maps.LatLng(30.97134 ,73.77495),new google.maps.LatLng(32.00435 ,75.14332),new google.maps.LatLng(31.56211 ,73.90483),new google.maps.LatLng(30.70155 ,73.93046),new google.maps.LatLng(31.57127 ,73.64905),new google.maps.LatLng(32.12463 ,74.21978),new google.maps.LatLng(31.02353 ,74.78872),new google.maps.LatLng(31.68374 ,74.92305),new google.maps.LatLng(32.26002 ,73.80880),new google.maps.LatLng(31.18319 ,75.20720),new google.maps.LatLng(32.28613 ,73.83137),new google.maps.LatLng(31.66258 ,74.80742),new google.maps.LatLng(31.53407 ,74.62166),new google.maps.LatLng(32.11832 ,74.84754),new google.maps.LatLng(31.76387 ,73.81080),new google.maps.LatLng(31.21476 ,73.96090),new google.maps.LatLng(31.50164 ,75.06985),new google.maps.LatLng(31.57373 ,73.60905),new google.maps.LatLng(32.21758 ,74.51928),new google.maps.LatLng(32.01302 ,74.06708),new google.maps.LatLng(32.35877 ,74.74282),new google.maps.LatLng(30.58983 ,74.14258),new google.maps.LatLng(31.25684 ,73.55606),new google.maps.LatLng(31.47932 ,74.39882),new google.maps.LatLng(31.30167 ,73.40656),new google.maps.LatLng(31.43586 ,74.40892),new google.maps.LatLng(32.08627 ,73.63305),new google.maps.LatLng(30.77876 ,73.95830),new google.maps.LatLng(31.04085 ,73.44609),new google.maps.LatLng(32.14686 ,74.75671),new google.maps.LatLng(32.30759 ,74.02878),new google.maps.LatLng(32.31585 ,74.39447),new google.maps.LatLng(31.80380 ,73.83181),new google.maps.LatLng(32.34575 ,74.23321),new google.maps.LatLng(31.44923 ,74.81049),new google.maps.LatLng(31.02638 ,73.64935),new google.maps.LatLng(31.18119 ,73.69969),new google.maps.LatLng(31.47712 ,74.18871),new google.maps.LatLng(30.84949 ,74.20769),new google.maps.LatLng(30.96104 ,75.06008),new google.maps.LatLng(31.62348 ,73.76901),new google.maps.LatLng(31.68364 ,73.63220),new google.maps.LatLng(31.07187 ,73.72805),new google.maps.LatLng(32.43194 ,74.22133),new google.maps.LatLng(31.33139 ,74.83506),new google.maps.LatLng(31.54166 ,75.01513),new google.maps.LatLng(32.10062 ,74.71257),new google.maps.LatLng(32.28670 ,74.63486),new google.maps.LatLng(31.03617 ,73.72284),new google.maps.LatLng(31.94245 ,73.50221),new google.maps.LatLng(31.66575 ,75.04680),new google.maps.LatLng(31.64908 ,74.73678),new google.maps.LatLng(32.15235 ,75.15658),new google.maps.LatLng(31.14640 ,74.80040),new google.maps.LatLng(30.85637 ,74.86721),new google.maps.LatLng(32.21192 ,73.95759),new google.maps.LatLng(31.31171 ,74.21099),new google.maps.LatLng(31.16658 ,73.65099),new google.maps.LatLng(31.49632 ,74.34962),new google.maps.LatLng(31.10550 ,73.65822),new google.maps.LatLng(30.73864 ,74.29616),new google.maps.LatLng(31.58181 ,74.65432),new google.maps.LatLng(30.83022 ,74.75125),new google.maps.LatLng(31.41881 ,73.72395),new google.maps.LatLng(32.03971 ,75.11117),new google.maps.LatLng(31.19319 ,74.52474),new google.maps.LatLng(32.20075 ,74.14498),new google.maps.LatLng(31.90457 ,73.68518),new google.maps.LatLng(30.99361 ,74.92810),new google.maps.LatLng(31.28771 ,74.45193),new google.maps.LatLng(31.33591 ,73.84044),new google.maps.LatLng(32.48239 ,74.68913),new google.maps.LatLng(32.15560 ,74.29646),new google.maps.LatLng(31.41715 ,73.99224),new google.maps.LatLng(31.18436 ,73.73025),new google.maps.LatLng(31.76242 ,74.59473),new google.maps.LatLng(31.62665 ,73.52018),new google.maps.LatLng(30.96068 ,73.87600),new google.maps.LatLng(31.57742 ,74.54798),new google.maps.LatLng(31.56792 ,73.69281),new google.maps.LatLng(31.91849 ,74.11372),new google.maps.LatLng(31.82614 ,75.22388),new google.maps.LatLng(30.57056 ,74.13157),new google.maps.LatLng(31.74322 ,74.75605),new google.maps.LatLng(31.03747 ,74.39788),new google.maps.LatLng(31.16640 ,74.86618),new google.maps.LatLng(32.36134 ,74.89884),new google.maps.LatLng(30.72924 ,74.45331),new google.maps.LatLng(31.66867 ,74.65370),new google.maps.LatLng(32.16745 ,74.99878),new google.maps.LatLng(32.16992 ,73.71710),new google.maps.LatLng(31.19894 ,74.02552),new google.maps.LatLng(30.55313 ,74.41715),new google.maps.LatLng(30.82590 ,74.00652),new google.maps.LatLng(32.18505 ,74.84001),new google.maps.LatLng(31.41167 ,75.10178),new google.maps.LatLng(31.37739 ,74.81402),new google.maps.LatLng(31.23670 ,74.31428),new google.maps.LatLng(31.07605 ,75.20612),new google.maps.LatLng(32.32891 ,74.62238),new google.maps.LatLng(30.52371 ,74.39625),new google.maps.LatLng(31.81293 ,75.05059),new google.maps.LatLng(31.31805 ,73.35834),new google.maps.LatLng(30.66161 ,74.67336),new google.maps.LatLng(30.72581 ,73.74079),new google.maps.LatLng(31.35148 ,74.72828),new google.maps.LatLng(31.85072 ,73.54649),new google.maps.LatLng(31.77359 ,74.55693),new google.maps.LatLng(30.61266 ,74.12150),new google.maps.LatLng(30.79058 ,74.42956),new google.maps.LatLng(31.88147 ,74.39112),new google.maps.LatLng(31.85020 ,75.33339),new google.maps.LatLng(31.48171 ,74.03414),new google.maps.LatLng(31.98834 ,75.08622),new google.maps.LatLng(32.42521 ,74.06949),new google.maps.LatLng(32.53321 ,74.35556),new google.maps.LatLng(31.61238 ,75.37888),new google.maps.LatLng(31.02399 ,74.14234),new google.maps.LatLng(31.94823 ,74.61640),new google.maps.LatLng(31.44164 ,75.33398),new google.maps.LatLng(31.27287 ,75.20129),new google.maps.LatLng(30.61781 ,74.15551),new google.maps.LatLng(30.54389 ,74.29604),new google.maps.LatLng(31.96320 ,73.80569),new google.maps.LatLng(31.81848 ,73.87560),new google.maps.LatLng(32.14169 ,74.91398),new google.maps.LatLng(31.82793 ,73.71729),new google.maps.LatLng(32.37822 ,74.84864),new google.maps.LatLng(30.94474 ,74.22914),new google.maps.LatLng(30.64222 ,74.92023),new google.maps.LatLng(32.03678 ,75.21943),new google.maps.LatLng(32.45841 ,74.68250),new google.maps.LatLng(32.13379 ,73.64480),new google.maps.LatLng(32.44296 ,74.26115),new google.maps.LatLng(31.85067 ,74.32801),new google.maps.LatLng(31.61237 ,74.64593),new google.maps.LatLng(31.88340 ,75.30394),new google.maps.LatLng(31.45653 ,73.34963),new google.maps.LatLng(31.70761 ,73.63525),new google.maps.LatLng(30.97804 ,73.99702),new google.maps.LatLng(31.70989 ,74.69317),new google.maps.LatLng(31.00415 ,75.21643),new google.maps.LatLng(30.64270 ,74.80333),new google.maps.LatLng(31.63209 ,73.80080),new google.maps.LatLng(31.85342 ,75.17026),new google.maps.LatLng(31.26346 ,74.63704),new google.maps.LatLng(31.71816 ,73.52006),new google.maps.LatLng(32.08681 ,73.56138),new google.maps.LatLng(31.16842 ,75.09660),new google.maps.LatLng(32.19977 ,73.80104),new google.maps.LatLng(31.53414 ,73.98243),new google.maps.LatLng(30.68986 ,74.61256),new google.maps.LatLng(31.66612 ,75.23608),new google.maps.LatLng(32.18627 ,74.51073),new google.maps.LatLng(30.67589 ,74.95226),new google.maps.LatLng(31.10458 ,74.94229),new google.maps.LatLng(32.24667 ,73.90336),new google.maps.LatLng(30.89439 ,74.15827),new google.maps.LatLng(31.74521 ,75.05485),new google.maps.LatLng(30.78517 ,74.67833),new google.maps.LatLng(30.98374 ,75.06203),new google.maps.LatLng(32.37280 ,73.85259),new google.maps.LatLng(30.88367 ,74.11894),new google.maps.LatLng(31.20193 ,74.66847),new google.maps.LatLng(31.22968 ,75.07683),new google.maps.LatLng(31.95558 ,75.24360),new google.maps.LatLng(30.72323 ,74.31847),new google.maps.LatLng(31.11408 ,73.83644),new google.maps.LatLng(30.90687 ,73.54486),new google.maps.LatLng(31.38441 ,74.78241),new google.maps.LatLng(31.20568 ,73.48353),new google.maps.LatLng(32.45862 ,74.30589),new google.maps.LatLng(31.16271 ,73.54110),new google.maps.LatLng(32.04667 ,74.78552),new google.maps.LatLng(30.86218 ,73.81342),new google.maps.LatLng(31.49869 ,74.88751),new google.maps.LatLng(31.58570 ,74.59777),new google.maps.LatLng(31.45834 ,74.43326),new google.maps.LatLng(31.34050 ,74.40836),new google.maps.LatLng(31.93800 ,74.02680),new google.maps.LatLng(30.83318 ,75.11176),new google.maps.LatLng(30.51488 ,74.65577),new google.maps.LatLng(32.18967 ,74.28758),new google.maps.LatLng(31.56758 ,74.39890),new google.maps.LatLng(31.94806 ,74.46135),new google.maps.LatLng(32.22916 ,74.33186),new google.maps.LatLng(31.89634 ,73.58152),new google.maps.LatLng(31.61603 ,74.70982),new google.maps.LatLng(31.25389 ,74.79659),new google.maps.LatLng(32.06154 ,73.95006),new google.maps.LatLng(30.66427 ,74.52748),new google.maps.LatLng(31.75627 ,73.97183),new google.maps.LatLng(31.53576 ,73.39649),new google.maps.LatLng(30.63377 ,74.22118),new google.maps.LatLng(31.22847 ,73.43176),new google.maps.LatLng(32.32090 ,73.84473),new google.maps.LatLng(30.83982 ,73.61711),new google.maps.LatLng(31.55872 ,74.45282),new google.maps.LatLng(32.31269 ,73.73587),new google.maps.LatLng(31.77103 ,74.97527),new google.maps.LatLng(31.61981 ,75.26267),new google.maps.LatLng(31.18220 ,74.03804),new google.maps.LatLng(32.13825 ,74.18188),new google.maps.LatLng(31.25704 ,73.69966),new google.maps.LatLng(31.94644 ,74.60250),new google.maps.LatLng(31.66485 ,74.72185),new google.maps.LatLng(31.99426 ,74.88614),new google.maps.LatLng(31.14367 ,74.56423),new google.maps.LatLng(31.29484 ,75.07324),new google.maps.LatLng(31.22192 ,74.44576),new google.maps.LatLng(31.61223 ,74.63707),new google.maps.LatLng(32.19823 ,74.25150),new google.maps.LatLng(32.21205 ,73.78039),new google.maps.LatLng(31.63547 ,75.37680),new google.maps.LatLng(31.60421 ,75.11377),new google.maps.LatLng(32.01578 ,75.15022),new google.maps.LatLng(31.59993 ,74.70581),new google.maps.LatLng(30.92412 ,73.88937),new google.maps.LatLng(31.10003 ,74.80515),new google.maps.LatLng(31.78633 ,74.56686),new google.maps.LatLng(32.11869 ,74.70032),new google.maps.LatLng(31.73397 ,73.81287),new google.maps.LatLng(31.11401 ,73.50398),new google.maps.LatLng(31.18475 ,74.84039),new google.maps.LatLng(31.60566 ,74.77137),new google.maps.LatLng(32.41320 ,74.67296),new google.maps.LatLng(31.29583 ,74.75484),new google.maps.LatLng(31.31123 ,73.60108),new google.maps.LatLng(30.98879 ,73.86258),new google.maps.LatLng(31.73138 ,74.55222),new google.maps.LatLng(31.55308 ,75.14186),new google.maps.LatLng(31.96791 ,74.93288),new google.maps.LatLng(32.32068 ,74.62731),new google.maps.LatLng(31.24022 ,74.36948),new google.maps.LatLng(31.12811 ,74.62783),new google.maps.LatLng(30.67760 ,74.24642),new google.maps.LatLng(31.60882 ,74.99300),new google.maps.LatLng(31.22209 ,73.82028),new google.maps.LatLng(30.50483 ,74.20784),new google.maps.LatLng(30.91690 ,74.34982),new google.maps.LatLng(31.20782 ,73.94521),new google.maps.LatLng(31.66745 ,74.06339),new google.maps.LatLng(31.42825 ,73.65156),new google.maps.LatLng(31.25712 ,73.43904),new google.maps.LatLng(31.04127 ,74.40600),new google.maps.LatLng(31.72269 ,74.96619),new google.maps.LatLng(31.69781 ,73.91702),new google.maps.LatLng(32.01207 ,74.38747),new google.maps.LatLng(31.56057 ,74.44364),new google.maps.LatLng(31.92784 ,74.08666),new google.maps.LatLng(31.68378 ,75.03610),new google.maps.LatLng(31.55856 ,74.79331),new google.maps.LatLng(30.57608 ,74.63837),new google.maps.LatLng(30.94397 ,75.15998),new google.maps.LatLng(32.08045 ,74.98994),new google.maps.LatLng(31.61503 ,73.81980),new google.maps.LatLng(31.05305 ,74.44209),new google.maps.LatLng(31.82288 ,75.25232),new google.maps.LatLng(30.79754 ,74.53709),new google.maps.LatLng(31.74485 ,74.30400),new google.maps.LatLng(31.41007 ,74.58558),new google.maps.LatLng(31.27461 ,75.35252),new google.maps.LatLng(31.26717 ,73.65919),new google.maps.LatLng(32.04577 ,73.64535),new google.maps.LatLng(31.49961 ,74.32907),new google.maps.LatLng(31.30820 ,73.45052),new google.maps.LatLng(31.45829 ,74.95176),new google.maps.LatLng(32.07341 ,75.01533),new google.maps.LatLng(30.67621 ,74.08984),new google.maps.LatLng(32.15656 ,74.59856),new google.maps.LatLng(31.83287 ,74.11703),new google.maps.LatLng(30.84605 ,74.49041),new google.maps.LatLng(31.17341 ,74.64106),new google.maps.LatLng(32.09840 ,74.25100),new google.maps.LatLng(31.53911 ,75.33410),new google.maps.LatLng(31.34880 ,73.77562),new google.maps.LatLng(31.48872 ,73.43241),new google.maps.LatLng(30.87868 ,74.27664),new google.maps.LatLng(31.62966 ,74.74227),new google.maps.LatLng(32.10926 ,74.54579),new google.maps.LatLng(32.35032 ,74.48980),new google.maps.LatLng(31.37431 ,74.53141),new google.maps.LatLng(30.78270 ,74.51864),new google.maps.LatLng(31.58660 ,75.03277),new google.maps.LatLng(30.78775 ,74.33291),new google.maps.LatLng(31.69886 ,74.75880),new google.maps.LatLng(31.46013 ,73.69919),new google.maps.LatLng(31.40393 ,74.03445),new google.maps.LatLng(32.03602 ,73.74637),new google.maps.LatLng(31.40238 ,74.13503),new google.maps.LatLng(31.76448 ,74.28951),new google.maps.LatLng(31.03403 ,74.30166),new google.maps.LatLng(30.81159 ,75.03529),new google.maps.LatLng(31.02366 ,74.89150),new google.maps.LatLng(32.28214 ,74.36254),new google.maps.LatLng(32.05397 ,73.50814),new google.maps.LatLng(31.87277 ,74.59167),new google.maps.LatLng(31.79763 ,73.69883),new google.maps.LatLng(31.28760 ,73.74729),new google.maps.LatLng(30.70795 ,74.55414),new google.maps.LatLng(30.67052 ,74.40811),new google.maps.LatLng(31.70480 ,74.18217),new google.maps.LatLng(31.07344 ,75.04152),new google.maps.LatLng(31.07634 ,75.07702),new google.maps.LatLng(31.74708 ,74.11696),new google.maps.LatLng(30.77902 ,74.12955),new google.maps.LatLng(32.06384 ,73.74086),new google.maps.LatLng(31.11712 ,73.59849),new google.maps.LatLng(31.02030 ,73.78008),new google.maps.LatLng(30.84320 ,75.13501),new google.maps.LatLng(31.91797 ,73.73002),new google.maps.LatLng(31.81540 ,75.28405),new google.maps.LatLng(30.68286 ,74.42931),new google.maps.LatLng(31.85562 ,75.10540),new google.maps.LatLng(31.96965 ,73.94804),new google.maps.LatLng(30.69139 ,74.13440),new google.maps.LatLng(32.03150 ,74.42456),new google.maps.LatLng(31.54354 ,74.71868),new google.maps.LatLng(31.36763 ,74.69259),new google.maps.LatLng(30.59371 ,74.56732),new google.maps.LatLng(30.54645 ,74.54791),new google.maps.LatLng(31.61485 ,74.38591),new google.maps.LatLng(31.63892 ,74.70167),new google.maps.LatLng(31.35813 ,75.29948),new google.maps.LatLng(32.35265 ,73.95417),new google.maps.LatLng(31.64876 ,73.38119),new google.maps.LatLng(32.09498 ,74.02836),new google.maps.LatLng(31.14705 ,74.34381),new google.maps.LatLng(31.64573 ,73.36660),new google.maps.LatLng(32.15754 ,74.86607),new google.maps.LatLng(31.90375 ,73.92998),new google.maps.LatLng(30.79052 ,75.00641),new google.maps.LatLng(31.60052 ,74.59466),new google.maps.LatLng(30.69666 ,74.96705),new google.maps.LatLng(32.13810 ,74.72305),new google.maps.LatLng(32.26703 ,74.15808),new google.maps.LatLng(32.04912 ,75.02622),new google.maps.LatLng(30.95879 ,73.69009),new google.maps.LatLng(31.71234 ,73.78978),new google.maps.LatLng(32.22711 ,73.75578),new google.maps.LatLng(31.85212 ,74.70524),new google.maps.LatLng(32.23058 ,74.66403),new google.maps.LatLng(31.73760 ,73.55935),new google.maps.LatLng(32.20658 ,74.62412),new google.maps.LatLng(31.00789 ,74.32841),new google.maps.LatLng(31.07425 ,74.78499),new google.maps.LatLng(31.14946 ,73.94293),new google.maps.LatLng(32.40938 ,74.76659),new google.maps.LatLng(31.67184 ,74.73165),new google.maps.LatLng(31.53713 ,74.88739),new google.maps.LatLng(31.32647 ,74.36278),new google.maps.LatLng(32.05446 ,74.01690),new google.maps.LatLng(32.12921 ,74.63438),new google.maps.LatLng(31.77826 ,73.40308),new google.maps.LatLng(30.91542 ,74.54141),new google.maps.LatLng(31.83461 ,74.69933),new google.maps.LatLng(30.73571 ,74.33124),new google.maps.LatLng(30.98281 ,73.96475),new google.maps.LatLng(31.32281 ,74.22192),new google.maps.LatLng(32.02114 ,74.90104),new google.maps.LatLng(31.05252 ,74.14610),new google.maps.LatLng(30.97685 ,73.99587),new google.maps.LatLng(31.64984 ,74.30115),new google.maps.LatLng(30.95523 ,74.59939),new google.maps.LatLng(31.59421 ,74.76784),new google.maps.LatLng(31.75617 ,73.84970),new google.maps.LatLng(31.87810 ,73.94766),new google.maps.LatLng(31.35777 ,74.25199),new google.maps.LatLng(31.03631 ,74.18150),new google.maps.LatLng(31.92605 ,74.85887),new google.maps.LatLng(31.23590 ,74.22795),new google.maps.LatLng(31.30642 ,73.67328),new google.maps.LatLng(31.81557 ,73.58333),new google.maps.LatLng(32.00791 ,73.68418),new google.maps.LatLng(31.03308 ,73.45132),new google.maps.LatLng(30.68296 ,74.59381),new google.maps.LatLng(31.24792 ,73.88550),new google.maps.LatLng(31.00969 ,74.46778),new google.maps.LatLng(31.74674 ,73.88074),new google.maps.LatLng(31.11811 ,75.05552),new google.maps.LatLng(31.31433 ,73.81441),new google.maps.LatLng(31.78947 ,75.29073),new google.maps.LatLng(31.48435 ,73.45376),new google.maps.LatLng(31.44107 ,73.75099),new google.maps.LatLng(32.08470 ,74.82278),new google.maps.LatLng(31.31402 ,75.23305),new google.maps.LatLng(32.46396 ,74.52949),new google.maps.LatLng(31.67691 ,75.29038),new google.maps.LatLng(31.60832 ,74.58321),new google.maps.LatLng(32.29518 ,74.11993),new google.maps.LatLng(31.43294 ,73.79909),new google.maps.LatLng(31.49407 ,74.85774),new google.maps.LatLng(31.84060 ,73.74003),new google.maps.LatLng(31.71952 ,73.56289),new google.maps.LatLng(31.49836 ,74.00107),new google.maps.LatLng(32.43776 ,74.57423),new google.maps.LatLng(31.51934 ,73.51787),new google.maps.LatLng(31.55760 ,73.76686),new google.maps.LatLng(32.31522 ,74.00255),new google.maps.LatLng(31.59815 ,73.74668),new google.maps.LatLng(32.38893 ,74.20971),new google.maps.LatLng(31.11799 ,75.25322),new google.maps.LatLng(31.96025 ,74.58264),new google.maps.LatLng(31.50817 ,74.39875),new google.maps.LatLng(31.67373 ,73.44049),new google.maps.LatLng(31.15099 ,73.77393),new google.maps.LatLng(31.78393 ,74.35720),new google.maps.LatLng(31.76216 ,74.05692),new google.maps.LatLng(31.84312 ,74.92605),new google.maps.LatLng(30.92949 ,74.87725),new google.maps.LatLng(30.94627 ,75.09473),new google.maps.LatLng(31.79046 ,74.07203),new google.maps.LatLng(31.45104 ,74.15587),new google.maps.LatLng(32.35311 ,74.12121),new google.maps.LatLng(31.83578 ,74.59013),new google.maps.LatLng(32.00086 ,75.21425),new google.maps.LatLng(32.04854 ,74.11306),new google.maps.LatLng(31.84015 ,74.84574),new google.maps.LatLng(30.93865 ,74.95059),new google.maps.LatLng(31.11891 ,74.25396),new google.maps.LatLng(31.76892 ,74.29663),new google.maps.LatLng(31.48351 ,74.50368),new google.maps.LatLng(31.49756 ,74.33638),new google.maps.LatLng(30.50443 ,74.44174),new google.maps.LatLng(31.97075 ,74.46574),new google.maps.LatLng(31.83869 ,74.42517),new google.maps.LatLng(30.87736 ,74.08830),new google.maps.LatLng(31.76929 ,73.39220),new google.maps.LatLng(30.76619 ,74.92870),new google.maps.LatLng(32.11352 ,74.10569),new google.maps.LatLng(30.89773 ,73.65176),new google.maps.LatLng(31.93600 ,74.60782),new google.maps.LatLng(31.39145 ,73.36787),new google.maps.LatLng(31.56201 ,73.37857),new google.maps.LatLng(32.15283 ,73.71217),new google.maps.LatLng(31.75286 ,75.23437),new google.maps.LatLng(31.71010 ,74.86485),new google.maps.LatLng(32.05875 ,74.68895),new google.maps.LatLng(31.38481 ,73.62290),new google.maps.LatLng(31.26039 ,73.39381),new google.maps.LatLng(32.24386 ,73.83222),new google.maps.LatLng(32.19344 ,74.28575),new google.maps.LatLng(31.82021 ,73.60775),new google.maps.LatLng(32.21516 ,74.73047),new google.maps.LatLng(32.01997 ,74.83904),new google.maps.LatLng(32.23910 ,73.70913),new google.maps.LatLng(31.05728 ,74.70389),new google.maps.LatLng(31.46095 ,73.65253),new google.maps.LatLng(31.54372 ,73.63349),new google.maps.LatLng(30.89057 ,74.88329),new google.maps.LatLng(31.87762 ,74.50355),new google.maps.LatLng(32.22950 ,74.22396),new google.maps.LatLng(32.02697 ,74.08016),new google.maps.LatLng(30.93906 ,74.33019),new google.maps.LatLng(32.44181 ,74.79788),new google.maps.LatLng(31.59202 ,74.69603),new google.maps.LatLng(31.66735 ,73.90080),new google.maps.LatLng(31.48101 ,74.32530),new google.maps.LatLng(32.50148 ,74.56818),new google.maps.LatLng(31.45055 ,74.66910),new google.maps.LatLng(30.75294 ,74.67607),new google.maps.LatLng(30.76392 ,73.88634),new google.maps.LatLng(32.19239 ,74.12369),new google.maps.LatLng(30.52847 ,74.44462),new google.maps.LatLng(31.89013 ,73.41123),new google.maps.LatLng(31.32739 ,73.86612),new google.maps.LatLng(31.40745 ,73.65177),new google.maps.LatLng(32.32286 ,73.90956),new google.maps.LatLng(31.10052 ,73.88468),new google.maps.LatLng(30.92679 ,73.66514),new google.maps.LatLng(31.78384 ,74.06123),new google.maps.LatLng(30.64394 ,74.75622),new google.maps.LatLng(31.72079 ,73.63105),new google.maps.LatLng(31.67548 ,74.21267),new google.maps.LatLng(30.69777 ,74.25762),new google.maps.LatLng(30.80579 ,75.12414),new google.maps.LatLng(32.19412 ,74.98193),new google.maps.LatLng(31.88668 ,74.92308),new google.maps.LatLng(30.89202 ,74.21420),new google.maps.LatLng(30.85626 ,74.43435),new google.maps.LatLng(31.03698 ,73.80135),new google.maps.LatLng(31.72244 ,74.71255),new google.maps.LatLng(32.21472 ,73.88250),new google.maps.LatLng(31.14243 ,74.10097),new google.maps.LatLng(32.48485 ,74.33416),new google.maps.LatLng(31.39423 ,75.00789),new google.maps.LatLng(32.21406 ,74.53948),new google.maps.LatLng(31.60006 ,74.61977),new google.maps.LatLng(31.61736 ,73.35108),new google.maps.LatLng(31.29599 ,74.83549),new google.maps.LatLng(31.68120 ,74.18749),new google.maps.LatLng(32.41997 ,74.72336),new google.maps.LatLng(31.66348 ,74.25416),new google.maps.LatLng(31.91112 ,73.75470),new google.maps.LatLng(32.37598 ,73.92662),new google.maps.LatLng(31.50801 ,73.93227),new google.maps.LatLng(32.13534 ,74.66212),new google.maps.LatLng(31.24060 ,74.23536),new google.maps.LatLng(32.40324 ,73.93405),new google.maps.LatLng(31.63792 ,74.19798),new google.maps.LatLng(31.79178 ,74.58303),new google.maps.LatLng(31.60398 ,74.17760),new google.maps.LatLng(31.20713 ,73.74457),new google.maps.LatLng(31.00308 ,74.94193),new google.maps.LatLng(30.57877 ,74.76912),new google.maps.LatLng(31.58444 ,74.30497),new google.maps.LatLng(31.71068 ,75.35943),new google.maps.LatLng(31.84933 ,74.05795),new google.maps.LatLng(31.47454 ,74.43072),new google.maps.LatLng(31.79060 ,73.70809),new google.maps.LatLng(31.86173 ,74.52555),new google.maps.LatLng(31.85743 ,74.99274),new google.maps.LatLng(30.95961 ,75.23049),new google.maps.LatLng(32.44740 ,74.21060),new google.maps.LatLng(32.25265 ,73.99243),new google.maps.LatLng(31.34200 ,73.78660),new google.maps.LatLng(30.94166 ,74.87842),new google.maps.LatLng(31.61106 ,74.38765),new google.maps.LatLng(30.95626 ,74.32606),new google.maps.LatLng(31.89428 ,74.97827),new google.maps.LatLng(31.80280 ,74.20146),new google.maps.LatLng(31.79309 ,74.46916),new google.maps.LatLng(31.18075 ,74.55461),new google.maps.LatLng(31.55441 ,73.46238),new google.maps.LatLng(32.20609 ,74.30786),new google.maps.LatLng(31.34242 ,74.99858),new google.maps.LatLng(30.89282 ,74.09544),new google.maps.LatLng(30.97031 ,74.73115),new google.maps.LatLng(30.90410 ,73.97096),new google.maps.LatLng(30.91663 ,74.95471),new google.maps.LatLng(31.19058 ,74.24284),new google.maps.LatLng(32.10647 ,74.79932),new google.maps.LatLng(31.50601 ,74.72472),new google.maps.LatLng(31.68495 ,73.98182),new google.maps.LatLng(32.08372 ,73.98465),new google.maps.LatLng(30.60965 ,74.85518),new google.maps.LatLng(31.30826 ,74.66664),new google.maps.LatLng(31.00118 ,75.09104),new google.maps.LatLng(32.12687 ,75.14361),new google.maps.LatLng(30.94910 ,74.40734),new google.maps.LatLng(31.72105 ,73.84906),new google.maps.LatLng(31.24809 ,75.34757),new google.maps.LatLng(30.72788 ,74.10513),new google.maps.LatLng(30.92706 ,73.98556),new google.maps.LatLng(30.81469 ,73.72964),new google.maps.LatLng(31.47717 ,75.11538),new google.maps.LatLng(30.83359 ,74.91146),new google.maps.LatLng(31.54246 ,73.39918),new google.maps.LatLng(31.37940 ,74.97707),new google.maps.LatLng(31.32960 ,73.54518),new google.maps.LatLng(31.61270 ,73.82352),new google.maps.LatLng(30.49022 ,74.24254),new google.maps.LatLng(31.20864 ,73.88141),new google.maps.LatLng(31.47156 ,75.08360),new google.maps.LatLng(31.18016 ,73.98719),new google.maps.LatLng(30.84361 ,74.71665),new google.maps.LatLng(31.14640 ,75.17878),new google.maps.LatLng(31.99488 ,74.72114),new google.maps.LatLng(32.26078 ,74.46374),new google.maps.LatLng(30.70694 ,74.03896),new google.maps.LatLng(32.11642 ,74.46200),new google.maps.LatLng(31.77858 ,74.89421),new google.maps.LatLng(31.98731 ,73.77842),new google.maps.LatLng(31.97937 ,75.26111),new google.maps.LatLng(31.64864 ,75.24442),new google.maps.LatLng(31.20975 ,73.64736),new google.maps.LatLng(30.48565 ,74.23309),new google.maps.LatLng(30.68883 ,74.55834),new google.maps.LatLng(31.11792 ,74.52582),new google.maps.LatLng(32.53639 ,74.34328),new google.maps.LatLng(32.00660 ,74.28826),new google.maps.LatLng(31.85898 ,75.30559),new google.maps.LatLng(32.12413 ,73.59832),new google.maps.LatLng(32.39230 ,74.64663),new google.maps.LatLng(32.21513 ,73.64506),new google.maps.LatLng(31.88611 ,74.14895),new google.maps.LatLng(31.79796 ,75.27660),new google.maps.LatLng(31.99272 ,74.58372),new google.maps.LatLng(32.20948 ,75.02914),new google.maps.LatLng(30.59215 ,74.52424),new google.maps.LatLng(32.05447 ,74.60037),new google.maps.LatLng(31.68517 ,74.81993),new google.maps.LatLng(31.58839 ,75.36125),new google.maps.LatLng(31.29000 ,75.14246),new google.maps.LatLng(31.35530 ,74.78899),new google.maps.LatLng(31.30600 ,73.49649),new google.maps.LatLng(31.58930 ,74.26700),new google.maps.LatLng(31.15524 ,73.45252),new google.maps.LatLng(31.02275 ,73.85043),new google.maps.LatLng(31.76602 ,73.45544),new google.maps.LatLng(32.22654 ,74.61904),new google.maps.LatLng(31.73551 ,73.68875),new google.maps.LatLng(31.66489 ,74.53553),new google.maps.LatLng(32.40898 ,74.44079),new google.maps.LatLng(32.35286 ,74.27177),new google.maps.LatLng(30.54032 ,74.17414),new google.maps.LatLng(31.55004 ,75.06567),new google.maps.LatLng(31.77481 ,75.11757),new google.maps.LatLng(31.93224 ,74.71248),new google.maps.LatLng(32.50966 ,74.48438),new google.maps.LatLng(31.36398 ,74.76586),new google.maps.LatLng(31.86867 ,74.04974),new google.maps.LatLng(31.67501 ,73.84866),new google.maps.LatLng(32.00860 ,73.60815),new google.maps.LatLng(31.10783 ,75.10742),new google.maps.LatLng(31.34315 ,73.71273),new google.maps.LatLng(31.49398 ,73.45072),new google.maps.LatLng(31.29509 ,74.63332),new google.maps.LatLng(32.22131 ,73.83934),new google.maps.LatLng(30.88664 ,73.59519),new google.maps.LatLng(30.52157 ,74.38208),new google.maps.LatLng(30.75185 ,73.97739),new google.maps.LatLng(32.00196 ,74.61685),new google.maps.LatLng(31.40787 ,74.45115),new google.maps.LatLng(30.89045 ,73.80609),new google.maps.LatLng(31.02018 ,73.93652),new google.maps.LatLng(32.07165 ,74.02112),new google.maps.LatLng(30.71963 ,74.42804),new google.maps.LatLng(32.47075 ,74.43484),new google.maps.LatLng(31.08256 ,73.54934),new google.maps.LatLng(30.67871 ,74.31361),new google.maps.LatLng(31.60182 ,74.86329),new google.maps.LatLng(31.39831 ,73.53277),new google.maps.LatLng(31.57370 ,74.45770),new google.maps.LatLng(30.91880 ,75.03115),new google.maps.LatLng(30.82662 ,74.00897),new google.maps.LatLng(31.90675 ,74.63651),new google.maps.LatLng(31.63565 ,75.11852),new google.maps.LatLng(32.25668 ,73.70671),new google.maps.LatLng(32.12103 ,73.90407),new google.maps.LatLng(31.14121 ,74.24306),new google.maps.LatLng(31.40342 ,73.97668),new google.maps.LatLng(32.15448 ,75.07417),new google.maps.LatLng(30.62483 ,74.22760),new google.maps.LatLng(30.63958 ,74.54139),new google.maps.LatLng(31.86161 ,74.05526),new google.maps.LatLng(31.92684 ,74.51461),new google.maps.LatLng(30.88906 ,73.61790),new google.maps.LatLng(31.95465 ,74.93125),new google.maps.LatLng(31.19128 ,73.60316),new google.maps.LatLng(30.57850 ,74.30943),new google.maps.LatLng(31.73663 ,74.60605),new google.maps.LatLng(31.85815 ,75.16699),new google.maps.LatLng(31.55936 ,74.61708),new google.maps.LatLng(31.19303 ,75.13029),new google.maps.LatLng(32.24319 ,74.41617),new google.maps.LatLng(31.35548 ,73.72783),new google.maps.LatLng(31.13976 ,74.54473),new google.maps.LatLng(31.70555 ,74.88741),new google.maps.LatLng(31.38043 ,73.39326),new google.maps.LatLng(31.54742 ,74.19112),new google.maps.LatLng(32.16966 ,74.01771),new google.maps.LatLng(31.83755 ,74.02407),new google.maps.LatLng(30.58567 ,74.76760),new google.maps.LatLng(32.11293 ,73.63919),new google.maps.LatLng(32.01564 ,75.13648),new google.maps.LatLng(31.64581 ,74.06982),new google.maps.LatLng(30.83347 ,74.20034),new google.maps.LatLng(31.77118 ,74.61352),new google.maps.LatLng(30.66094 ,73.96263),new google.maps.LatLng(31.93162 ,74.75170),new google.maps.LatLng(31.89146 ,73.49909),new google.maps.LatLng(30.60022 ,73.90018),new google.maps.LatLng(32.10729 ,74.18820),new google.maps.LatLng(32.13559 ,74.37020),new google.maps.LatLng(30.87980 ,74.09318),new google.maps.LatLng(31.63478 ,75.37653),new google.maps.LatLng(31.50065 ,74.95752),new google.maps.LatLng(31.67876 ,73.34757),new google.maps.LatLng(31.73402 ,74.17454),new google.maps.LatLng(30.59897 ,74.63084),new google.maps.LatLng(30.98472 ,74.99059),new google.maps.LatLng(30.76859 ,73.79830),new google.maps.LatLng(31.63867 ,75.00998),new google.maps.LatLng(31.31228 ,73.62974),new google.maps.LatLng(32.26793 ,74.18077),new google.maps.LatLng(31.69597 ,73.52964),new google.maps.LatLng(32.16232 ,74.21566),new google.maps.LatLng(31.65751 ,74.18654),new google.maps.LatLng(31.75781 ,74.36928),new google.maps.LatLng(30.82263 ,73.93420),new google.maps.LatLng(30.81707 ,74.79461),new google.maps.LatLng(32.11611 ,74.44711),new google.maps.LatLng(30.87434 ,73.60870),new google.maps.LatLng(32.21787 ,73.96844),new google.maps.LatLng(30.95455 ,73.96793),new google.maps.LatLng(31.91135 ,74.12835),new google.maps.LatLng(30.74657 ,74.57610),new google.maps.LatLng(31.33985 ,73.55467),new google.maps.LatLng(32.18420 ,73.92009),new google.maps.LatLng(30.72567 ,74.86089),new google.maps.LatLng(31.83922 ,74.54697),new google.maps.LatLng(31.37611 ,73.73655),new google.maps.LatLng(31.12042 ,74.67008),new google.maps.LatLng(31.34107 ,73.56443),new google.maps.LatLng(31.31446 ,74.44080),new google.maps.LatLng(30.89219 ,73.63322),new google.maps.LatLng(32.08847 ,73.76299),new google.maps.LatLng(31.11086 ,73.90123),new google.maps.LatLng(32.00383 ,73.96951),new google.maps.LatLng(31.85755 ,74.05756),new google.maps.LatLng(31.16846 ,74.11102),new google.maps.LatLng(30.80254 ,74.49686),new google.maps.LatLng(30.73464 ,74.32056),new google.maps.LatLng(31.41216 ,74.74987),new google.maps.LatLng(31.04729 ,73.52506),new google.maps.LatLng(31.58098 ,74.48901),new google.maps.LatLng(32.04861 ,75.10340),new google.maps.LatLng(31.68528 ,74.09813),new google.maps.LatLng(32.38210 ,74.31662),new google.maps.LatLng(32.43557 ,74.06762),new google.maps.LatLng(31.90139 ,73.55549),new google.maps.LatLng(31.45486 ,74.89981),new google.maps.LatLng(31.76132 ,73.54876),new google.maps.LatLng(31.93394 ,73.66769),new google.maps.LatLng(31.28622 ,73.78927),new google.maps.LatLng(30.98857 ,75.19574),new google.maps.LatLng(30.82101 ,73.61222),new google.maps.LatLng(31.02931 ,74.05145),new google.maps.LatLng(30.48126 ,74.41324),new google.maps.LatLng(30.79261 ,74.80228),new google.maps.LatLng(30.76471 ,74.98993),new google.maps.LatLng(30.74865 ,74.74046),new google.maps.LatLng(31.66697 ,75.19476),new google.maps.LatLng(31.07421 ,74.47203),new google.maps.LatLng(31.31226 ,74.60428),new google.maps.LatLng(31.52804 ,73.47661),new google.maps.LatLng(31.96762 ,74.48588),new google.maps.LatLng(30.82219 ,74.31663),new google.maps.LatLng(32.22647 ,73.91656),new google.maps.LatLng(31.38487 ,74.26651),new google.maps.LatLng(31.79459 ,75.06010),new google.maps.LatLng(31.31848 ,74.54292),new google.maps.LatLng(31.27881 ,73.90316),new google.maps.LatLng(25.20755 ,67.71210),new google.maps.LatLng(24.47423 ,66.36042),new google.maps.LatLng(24.29415 ,67.06534),new google.maps.LatLng(25.56623 ,67.28449),new google.maps.LatLng(24.28461 ,66.44503),new google.maps.LatLng(25.36405 ,66.29665),new google.maps.LatLng(23.98458 ,66.84421),new google.maps.LatLng(25.27092 ,66.52026),new google.maps.LatLng(25.37649 ,67.77720),new google.maps.LatLng(25.04645 ,66.65430),new google.maps.LatLng(24.63105 ,67.80420),new google.maps.LatLng(25.24478 ,66.58380),new google.maps.LatLng(25.04806 ,66.54356),new google.maps.LatLng(25.22577 ,67.60006),new google.maps.LatLng(24.39099 ,66.85846),new google.maps.LatLng(25.30129 ,66.15247),new google.maps.LatLng(24.78403 ,66.76292),new google.maps.LatLng(24.39138 ,67.12826),new google.maps.LatLng(23.92252 ,66.94819),new google.maps.LatLng(25.80642 ,67.26570),new google.maps.LatLng(24.28081 ,67.16688),new google.maps.LatLng(25.13336 ,66.46012),new google.maps.LatLng(25.06807 ,67.71589),new google.maps.LatLng(25.43123 ,66.28102),new google.maps.LatLng(24.75546 ,67.70244),new google.maps.LatLng(24.34815 ,67.68800),new google.maps.LatLng(24.56325 ,66.87470),new google.maps.LatLng(24.13795 ,66.91542),new google.maps.LatLng(25.68547 ,67.23379),new google.maps.LatLng(25.53786 ,66.38455),new google.maps.LatLng(25.70747 ,67.02469),new google.maps.LatLng(25.75148 ,67.08854),new google.maps.LatLng(25.28565 ,67.83290),new google.maps.LatLng(24.81518 ,67.71398),new google.maps.LatLng(24.38891 ,66.53948),new google.maps.LatLng(24.65478 ,67.53232),new google.maps.LatLng(25.64351 ,66.69279),new google.maps.LatLng(25.52855 ,67.25866),new google.maps.LatLng(24.31196 ,67.10742),new google.maps.LatLng(24.97350 ,66.77373),new google.maps.LatLng(24.86437 ,67.40560),new google.maps.LatLng(24.31219 ,67.86617),new google.maps.LatLng(25.82312 ,67.41797),new google.maps.LatLng(24.62953 ,67.54389),new google.maps.LatLng(24.89444 ,67.10183),new google.maps.LatLng(24.13203 ,66.82285),new google.maps.LatLng(25.65493 ,67.03515),new google.maps.LatLng(24.30901 ,67.29984),new google.maps.LatLng(25.69909 ,67.65670),new google.maps.LatLng(24.63899 ,66.44420),new google.maps.LatLng(25.47954 ,66.99907),new google.maps.LatLng(24.93152 ,66.10176),new google.maps.LatLng(24.19789 ,67.29648),new google.maps.LatLng(25.64177 ,67.08737),new google.maps.LatLng(24.60787 ,67.76368),new google.maps.LatLng(25.26233 ,66.16867),new google.maps.LatLng(25.21441 ,66.68867),new google.maps.LatLng(25.24515 ,67.32490),new google.maps.LatLng(24.87909 ,66.86877),new google.maps.LatLng(24.04011 ,67.24986),new google.maps.LatLng(24.82359 ,67.63564),new google.maps.LatLng(24.18444 ,66.53141),new google.maps.LatLng(25.03902 ,67.82312),new google.maps.LatLng(25.61942 ,67.06117),new google.maps.LatLng(24.61325 ,66.16230),new google.maps.LatLng(25.41725 ,66.78355),new google.maps.LatLng(24.48890 ,67.75926),new google.maps.LatLng(24.61901 ,66.79646),new google.maps.LatLng(25.12028 ,66.48781),new google.maps.LatLng(24.79085 ,66.28413),new google.maps.LatLng(24.57940 ,67.38693),new google.maps.LatLng(24.69339 ,66.19032),new google.maps.LatLng(24.41531 ,66.91201),new google.maps.LatLng(24.95426 ,67.16087),new google.maps.LatLng(25.31563 ,66.59107),new google.maps.LatLng(24.45108 ,67.17566),new google.maps.LatLng(24.28206 ,66.84008),new google.maps.LatLng(25.81133 ,67.02592),new google.maps.LatLng(25.03097 ,66.47976),new google.maps.LatLng(24.53837 ,67.72233),new google.maps.LatLng(25.04543 ,67.63397),new google.maps.LatLng(25.60242 ,67.80085),new google.maps.LatLng(24.51548 ,66.49516),new google.maps.LatLng(24.27874 ,66.51647),new google.maps.LatLng(24.63572 ,67.20850),new google.maps.LatLng(24.63477 ,67.08582),new google.maps.LatLng(23.93691 ,67.21678),new google.maps.LatLng(25.43237 ,67.86978),new google.maps.LatLng(24.37174 ,66.34992),new google.maps.LatLng(25.20141 ,67.33164),new google.maps.LatLng(25.44387 ,67.80203),new google.maps.LatLng(24.36825 ,67.45993),new google.maps.LatLng(24.90767 ,67.44626),new google.maps.LatLng(24.46875 ,67.69303),new google.maps.LatLng(24.00222 ,67.08424),new google.maps.LatLng(25.09342 ,66.52714),new google.maps.LatLng(24.28918 ,66.86411),new google.maps.LatLng(24.49086 ,66.27017),new google.maps.LatLng(25.34854 ,67.95291),new google.maps.LatLng(25.30229 ,67.11141),new google.maps.LatLng(24.35761 ,67.06250),new google.maps.LatLng(25.64903 ,67.51543),new google.maps.LatLng(24.82602 ,66.76171),new google.maps.LatLng(24.40580 ,66.34704),new google.maps.LatLng(24.79706 ,67.53119),new google.maps.LatLng(24.46622 ,67.67992),new google.maps.LatLng(25.19801 ,66.54809),new google.maps.LatLng(24.59104 ,66.27776),new google.maps.LatLng(25.31911 ,66.49226),new google.maps.LatLng(25.33893 ,67.29906),new google.maps.LatLng(25.92466 ,66.86500),new google.maps.LatLng(25.52721 ,67.42210),new google.maps.LatLng(24.98601 ,68.03653),new google.maps.LatLng(24.49018 ,67.06061),new google.maps.LatLng(24.38610 ,66.35281),new google.maps.LatLng(24.37841 ,67.13618),new google.maps.LatLng(25.59939 ,67.14848),new google.maps.LatLng(24.63561 ,67.94161),new google.maps.LatLng(25.31147 ,67.20569),new google.maps.LatLng(24.26631 ,67.76709),new google.maps.LatLng(24.91842 ,66.56688),new google.maps.LatLng(24.11501 ,66.77401),new google.maps.LatLng(24.36105 ,66.32350),new google.maps.LatLng(24.81644 ,66.18990),new google.maps.LatLng(25.45103 ,66.45787),new google.maps.LatLng(25.38340 ,67.65261),new google.maps.LatLng(25.29252 ,66.87055),new google.maps.LatLng(25.44415 ,67.65560),new google.maps.LatLng(25.21183 ,67.73492),new google.maps.LatLng(25.81917 ,66.57945),new google.maps.LatLng(24.16448 ,67.46765),new google.maps.LatLng(25.92258 ,67.38650),new google.maps.LatLng(25.49442 ,66.57083),new google.maps.LatLng(25.43426 ,67.65402),new google.maps.LatLng(25.58452 ,66.70745),new google.maps.LatLng(24.51631 ,66.54153),new google.maps.LatLng(24.39493 ,66.87638),new google.maps.LatLng(24.90218 ,68.00476),new google.maps.LatLng(25.19366 ,66.12162),new google.maps.LatLng(25.16996 ,66.47701),new google.maps.LatLng(24.89912 ,66.07119),new google.maps.LatLng(24.25551 ,67.21163),new google.maps.LatLng(25.14157 ,66.48864),new google.maps.LatLng(25.44747 ,67.93728),new google.maps.LatLng(25.13177 ,66.16175),new google.maps.LatLng(25.71149 ,67.31302),new google.maps.LatLng(24.88086 ,68.01337),new google.maps.LatLng(25.90154 ,67.22785),new google.maps.LatLng(25.93091 ,67.19960),new google.maps.LatLng(24.39677 ,67.56731),new google.maps.LatLng(24.58207 ,66.94486),new google.maps.LatLng(24.40212 ,67.34969),new google.maps.LatLng(24.53422 ,67.75762),new google.maps.LatLng(25.00789 ,67.85159),new google.maps.LatLng(25.97480 ,67.15142),new google.maps.LatLng(25.31951 ,67.97773),new google.maps.LatLng(25.22573 ,66.50825),new google.maps.LatLng(24.21888 ,66.49068),new google.maps.LatLng(24.86067 ,66.38031),new google.maps.LatLng(24.45680 ,66.53485),new google.maps.LatLng(25.84623 ,66.61682),new google.maps.LatLng(24.12027 ,67.59444),new google.maps.LatLng(24.31280 ,67.10636),new google.maps.LatLng(24.79340 ,67.54665),new google.maps.LatLng(24.96925 ,66.63317),new google.maps.LatLng(25.43838 ,67.23515),new google.maps.LatLng(24.90763 ,66.06541),new google.maps.LatLng(24.24150 ,66.84116),new google.maps.LatLng(24.53560 ,66.48682),new google.maps.LatLng(24.55605 ,67.80294),new google.maps.LatLng(24.79752 ,67.93995),new google.maps.LatLng(24.59769 ,67.41936),new google.maps.LatLng(24.33926 ,67.73775),new google.maps.LatLng(25.28992 ,67.36625),new google.maps.LatLng(24.05758 ,67.37948),new google.maps.LatLng(25.31449 ,67.96139),new google.maps.LatLng(25.55596 ,66.61607),new google.maps.LatLng(24.91838 ,66.95957),new google.maps.LatLng(25.76874 ,66.67619),new google.maps.LatLng(25.00318 ,66.73672),new google.maps.LatLng(24.21918 ,66.57576),new google.maps.LatLng(24.01712 ,67.15558),new google.maps.LatLng(24.30359 ,66.30332),new google.maps.LatLng(24.28174 ,66.93453),new google.maps.LatLng(24.23023 ,67.52414),new google.maps.LatLng(25.65537 ,66.60959),new google.maps.LatLng(25.32130 ,67.59515),new google.maps.LatLng(24.99123 ,66.11478),new google.maps.LatLng(25.68701 ,67.70679),new google.maps.LatLng(25.52307 ,66.36269),new google.maps.LatLng(24.63493 ,67.37154),new google.maps.LatLng(24.74368 ,67.26693),new google.maps.LatLng(25.87536 ,66.78818),new google.maps.LatLng(25.27899 ,67.03855),new google.maps.LatLng(25.63639 ,67.54979),new google.maps.LatLng(24.00915 ,67.01997),new google.maps.LatLng(24.47318 ,67.97306),new google.maps.LatLng(25.18270 ,67.04474),new google.maps.LatLng(24.78038 ,66.67847),new google.maps.LatLng(24.12340 ,67.22378),new google.maps.LatLng(24.21506 ,67.27001),new google.maps.LatLng(25.32672 ,67.27458),new google.maps.LatLng(24.81210 ,66.19072),new google.maps.LatLng(25.69261 ,67.49480),new google.maps.LatLng(24.75345 ,68.02763),new google.maps.LatLng(24.93921 ,66.20953),new google.maps.LatLng(25.81862 ,67.16423),new google.maps.LatLng(25.26145 ,66.17676),new google.maps.LatLng(24.99551 ,67.56379),new google.maps.LatLng(25.84331 ,66.57416),new google.maps.LatLng(24.10141 ,67.05535),new google.maps.LatLng(25.79999 ,67.26267),new google.maps.LatLng(24.95528 ,66.25104),new google.maps.LatLng(24.25170 ,66.68178),new google.maps.LatLng(25.17871 ,66.70789),new google.maps.LatLng(24.35313 ,67.35051),new google.maps.LatLng(25.42398 ,66.99354),new google.maps.LatLng(24.70951 ,66.65706),new google.maps.LatLng(25.64839 ,66.71927),new google.maps.LatLng(25.34265 ,66.77211),new google.maps.LatLng(25.81557 ,66.70440),new google.maps.LatLng(25.37976 ,67.39131),new google.maps.LatLng(24.50762 ,66.56825),new google.maps.LatLng(24.22453 ,67.00034),new google.maps.LatLng(25.21680 ,67.47630),new google.maps.LatLng(24.29817 ,66.84267),new google.maps.LatLng(24.07814 ,66.56494),new google.maps.LatLng(24.50197 ,66.23686),new google.maps.LatLng(24.13705 ,66.92895),new google.maps.LatLng(25.49654 ,66.45779),new google.maps.LatLng(24.05828 ,66.98723),new google.maps.LatLng(24.93797 ,66.30138),new google.maps.LatLng(25.54657 ,66.99554),new google.maps.LatLng(25.96836 ,67.14569),new google.maps.LatLng(25.27342 ,66.55044),new google.maps.LatLng(24.72737 ,67.57659),new google.maps.LatLng(25.20089 ,66.25361),new google.maps.LatLng(24.98412 ,67.05578),new google.maps.LatLng(25.87200 ,66.80015),new google.maps.LatLng(24.39968 ,66.55939),new google.maps.LatLng(24.71589 ,66.49720),new google.maps.LatLng(25.32915 ,66.45040),new google.maps.LatLng(24.69874 ,66.88425),new google.maps.LatLng(24.56466 ,66.87767),new google.maps.LatLng(24.53652 ,66.15416),new google.maps.LatLng(24.71156 ,66.88071),new google.maps.LatLng(24.40668 ,67.62146),new google.maps.LatLng(24.89902 ,68.06474),new google.maps.LatLng(25.12855 ,67.80636),new google.maps.LatLng(24.74870 ,66.96782),new google.maps.LatLng(25.76331 ,66.83945),new google.maps.LatLng(25.64900 ,67.34227),new google.maps.LatLng(24.71439 ,66.24127),new google.maps.LatLng(24.21490 ,66.39101),new google.maps.LatLng(25.27515 ,66.95422),new google.maps.LatLng(25.35026 ,67.57102),new google.maps.LatLng(25.40829 ,67.95414),new google.maps.LatLng(24.87506 ,67.92149),new google.maps.LatLng(25.84916 ,67.00233),new google.maps.LatLng(25.26868 ,66.53723),new google.maps.LatLng(24.65328 ,66.24874),new google.maps.LatLng(24.49738 ,67.46488),new google.maps.LatLng(25.05648 ,66.04351),new google.maps.LatLng(24.29471 ,66.31828),new google.maps.LatLng(24.23887 ,67.33381),new google.maps.LatLng(24.75595 ,66.91296),new google.maps.LatLng(24.65946 ,66.12205),new google.maps.LatLng(25.81090 ,67.07833),new google.maps.LatLng(25.55655 ,66.78822),new google.maps.LatLng(24.15867 ,67.01296),new google.maps.LatLng(25.66411 ,67.62853),new google.maps.LatLng(24.61986 ,66.75572),new google.maps.LatLng(24.95947 ,66.21176),new google.maps.LatLng(24.73983 ,67.78707),new google.maps.LatLng(24.46406 ,67.59878),new google.maps.LatLng(25.19386 ,67.08403),new google.maps.LatLng(24.83856 ,66.43651),new google.maps.LatLng(24.43697 ,66.77040),new google.maps.LatLng(24.89695 ,66.81597),new google.maps.LatLng(24.62458 ,66.71822),new google.maps.LatLng(25.48658 ,66.71601),new google.maps.LatLng(25.87639 ,66.67807),new google.maps.LatLng(25.72148 ,67.17172),new google.maps.LatLng(24.38424 ,66.46345),new google.maps.LatLng(24.82257 ,66.45564),new google.maps.LatLng(25.05644 ,67.11335),new google.maps.LatLng(25.01649 ,66.24714),new google.maps.LatLng(24.83629 ,67.63211),new google.maps.LatLng(24.34898 ,67.72084),new google.maps.LatLng(24.26304 ,67.04609),new google.maps.LatLng(25.14411 ,68.01664),new google.maps.LatLng(25.13195 ,67.91529),new google.maps.LatLng(24.87222 ,66.49554),new google.maps.LatLng(25.63976 ,67.14695),new google.maps.LatLng(25.17025 ,67.93694),new google.maps.LatLng(24.76282 ,68.06209),new google.maps.LatLng(24.67072 ,66.34718),new google.maps.LatLng(25.14839 ,67.21640),new google.maps.LatLng(24.75065 ,67.66868),new google.maps.LatLng(25.33812 ,67.33648),new google.maps.LatLng(24.27406 ,67.72262),new google.maps.LatLng(24.88825 ,67.93250),new google.maps.LatLng(24.71379 ,66.56546),new google.maps.LatLng(25.12979 ,67.79998),new google.maps.LatLng(25.12479 ,67.17306),new google.maps.LatLng(25.58314 ,67.06091),new google.maps.LatLng(24.54679 ,67.29189),new google.maps.LatLng(25.39162 ,66.99763),new google.maps.LatLng(24.35393 ,66.64896),new google.maps.LatLng(24.16116 ,66.52506),new google.maps.LatLng(24.54011 ,67.50049),new google.maps.LatLng(25.28398 ,66.97353),new google.maps.LatLng(25.29587 ,66.33736),new google.maps.LatLng(25.31011 ,66.52375),new google.maps.LatLng(25.13412 ,66.35482),new google.maps.LatLng(24.61980 ,67.69160),new google.maps.LatLng(24.82914 ,67.01939),new google.maps.LatLng(25.02758 ,67.17579),new google.maps.LatLng(25.47597 ,67.26200),new google.maps.LatLng(25.05663 ,67.22629),new google.maps.LatLng(25.65912 ,67.17953),new google.maps.LatLng(25.01268 ,66.67044),new google.maps.LatLng(24.48047 ,67.33049),new google.maps.LatLng(24.81272 ,66.33655),new google.maps.LatLng(24.10901 ,67.20788),new google.maps.LatLng(24.33359 ,67.12987),new google.maps.LatLng(25.02390 ,67.73908),new google.maps.LatLng(24.99292 ,66.51224),new google.maps.LatLng(25.24700 ,67.09294),new google.maps.LatLng(25.23154 ,66.28216),new google.maps.LatLng(24.25685 ,66.91051),new google.maps.LatLng(25.40381 ,67.64477),new google.maps.LatLng(25.37762 ,66.81383),new google.maps.LatLng(24.21519 ,66.85361),new google.maps.LatLng(24.76848 ,67.35864),new google.maps.LatLng(25.16285 ,66.09626),new google.maps.LatLng(24.15196 ,67.49647),new google.maps.LatLng(24.44856 ,67.31115),new google.maps.LatLng(25.31979 ,66.38100),new google.maps.LatLng(24.19513 ,67.32016),new google.maps.LatLng(24.44943 ,67.91240),new google.maps.LatLng(25.17286 ,67.17963),new google.maps.LatLng(25.71325 ,67.32583),new google.maps.LatLng(24.72483 ,67.58165),new google.maps.LatLng(23.98777 ,67.33625),new google.maps.LatLng(25.71758 ,67.09031),new google.maps.LatLng(25.08580 ,67.82913),new google.maps.LatLng(24.64738 ,66.76942),new google.maps.LatLng(25.29685 ,67.34460),new google.maps.LatLng(25.55217 ,66.23975),new google.maps.LatLng(25.75040 ,67.25166),new google.maps.LatLng(24.56024 ,67.84250),new google.maps.LatLng(24.57808 ,67.57094),new google.maps.LatLng(25.02761 ,68.08922),new google.maps.LatLng(25.07571 ,66.08410),new google.maps.LatLng(25.71633 ,66.51427),new google.maps.LatLng(23.99513 ,67.07589),new google.maps.LatLng(25.13906 ,67.27896),new google.maps.LatLng(25.08966 ,67.58369),new google.maps.LatLng(25.35267 ,66.49028),new google.maps.LatLng(24.37420 ,67.28888),new google.maps.LatLng(25.56471 ,66.86199),new google.maps.LatLng(24.39743 ,66.33932),new google.maps.LatLng(24.34758 ,67.67576),new google.maps.LatLng(25.39683 ,67.40978),new google.maps.LatLng(25.61213 ,67.36579),new google.maps.LatLng(25.66162 ,67.07317),new google.maps.LatLng(24.76454 ,67.53637),new google.maps.LatLng(24.35743 ,66.75520),new google.maps.LatLng(25.00261 ,66.92223),new google.maps.LatLng(24.47202 ,67.59589),new google.maps.LatLng(25.41421 ,67.47381),new google.maps.LatLng(24.88555 ,67.30027),new google.maps.LatLng(25.33276 ,67.88664),new google.maps.LatLng(25.65110 ,66.91526),new google.maps.LatLng(24.37002 ,66.80351),new google.maps.LatLng(24.61939 ,66.80759),new google.maps.LatLng(25.20600 ,66.44497),new google.maps.LatLng(25.01309 ,66.48081),new google.maps.LatLng(24.53991 ,66.86416),new google.maps.LatLng(24.26216 ,67.43322),new google.maps.LatLng(24.97235 ,66.12063),new google.maps.LatLng(25.68482 ,66.36704),new google.maps.LatLng(24.13110 ,67.48739),new google.maps.LatLng(25.46473 ,66.33228),new google.maps.LatLng(24.99592 ,66.17560),new google.maps.LatLng(25.61281 ,66.83536),new google.maps.LatLng(25.02466 ,66.05034),new google.maps.LatLng(24.05648 ,67.22495),new google.maps.LatLng(25.63169 ,66.84890),new google.maps.LatLng(24.96892 ,67.76810),new google.maps.LatLng(24.63243 ,67.34614),new google.maps.LatLng(24.76330 ,67.75430),new google.maps.LatLng(24.39801 ,67.22246),new google.maps.LatLng(24.43850 ,66.27820),new google.maps.LatLng(24.41207 ,67.60137),new google.maps.LatLng(25.58847 ,66.28359),new google.maps.LatLng(25.01397 ,67.64418),new google.maps.LatLng(25.46310 ,66.57017),new google.maps.LatLng(24.09993 ,67.56819),new google.maps.LatLng(24.36441 ,67.33226),new google.maps.LatLng(24.26217 ,66.61383),new google.maps.LatLng(24.49167 ,66.98193),new google.maps.LatLng(24.61220 ,67.08817),new google.maps.LatLng(25.16846 ,67.12475),new google.maps.LatLng(24.13642 ,67.70168),new google.maps.LatLng(25.34651 ,66.76639),new google.maps.LatLng(25.57289 ,66.65291),new google.maps.LatLng(24.29134 ,67.51253),new google.maps.LatLng(25.13036 ,67.32976),new google.maps.LatLng(25.56116 ,66.94329),new google.maps.LatLng(24.61974 ,66.61639),new google.maps.LatLng(25.17408 ,66.75366),new google.maps.LatLng(25.00331 ,67.36297),new google.maps.LatLng(24.13132 ,67.69658),new google.maps.LatLng(24.94280 ,67.08717),new google.maps.LatLng(24.65133 ,67.69675),new google.maps.LatLng(24.98380 ,66.17547),new google.maps.LatLng(25.12343 ,66.47565),new google.maps.LatLng(24.81830 ,67.68303),new google.maps.LatLng(25.62056 ,66.56375),new google.maps.LatLng(24.37866 ,67.46442),new google.maps.LatLng(25.62807 ,67.36920),new google.maps.LatLng(24.22820 ,66.92017),new google.maps.LatLng(24.57793 ,67.65243),new google.maps.LatLng(25.31162 ,66.60588),new google.maps.LatLng(25.07769 ,68.01538),new google.maps.LatLng(25.22026 ,67.07104),new google.maps.LatLng(25.91433 ,67.34633),new google.maps.LatLng(24.39045 ,67.42937),new google.maps.LatLng(25.51301 ,66.70398),new google.maps.LatLng(24.64325 ,67.28105),new google.maps.LatLng(24.75605 ,67.96645),new google.maps.LatLng(24.62595 ,66.77529),new google.maps.LatLng(24.77886 ,67.48279),new google.maps.LatLng(24.25104 ,66.92281),new google.maps.LatLng(24.66427 ,67.85094),new google.maps.LatLng(25.15691 ,67.82429),new google.maps.LatLng(24.84102 ,66.05272),new google.maps.LatLng(24.96522 ,66.85041),new google.maps.LatLng(25.15659 ,66.82032),new google.maps.LatLng(25.57352 ,66.92435),new google.maps.LatLng(25.89398 ,67.04199),new google.maps.LatLng(24.06659 ,66.65876),new google.maps.LatLng(24.49694 ,67.88037),new google.maps.LatLng(24.89797 ,66.38216),new google.maps.LatLng(24.91698 ,66.73374),new google.maps.LatLng(25.54959 ,67.62729),new google.maps.LatLng(24.49217 ,66.32555),new google.maps.LatLng(24.75510 ,66.34600),new google.maps.LatLng(24.78689 ,66.13900),new google.maps.LatLng(25.65450 ,67.10466),new google.maps.LatLng(25.87978 ,66.78107),new google.maps.LatLng(25.08544 ,66.07639),new google.maps.LatLng(25.25263 ,66.90709),new google.maps.LatLng(23.96532 ,67.00826),new google.maps.LatLng(25.66019 ,67.79234),new google.maps.LatLng(25.04778 ,66.08072),new google.maps.LatLng(25.22950 ,67.44831),new google.maps.LatLng(24.42615 ,67.10548),new google.maps.LatLng(25.53274 ,67.73666),new google.maps.LatLng(25.51813 ,67.62418),new google.maps.LatLng(24.30534 ,67.14584),new google.maps.LatLng(24.25700 ,67.04412),new google.maps.LatLng(24.61857 ,67.95416),new google.maps.LatLng(25.42000 ,67.97275),new google.maps.LatLng(25.70756 ,67.28434),new google.maps.LatLng(25.28204 ,67.80336),new google.maps.LatLng(24.10854 ,67.38464),new google.maps.LatLng(24.38984 ,67.01117),new google.maps.LatLng(24.54906 ,67.73938),new google.maps.LatLng(24.15952 ,66.77614),new google.maps.LatLng(24.72697 ,66.51274),new google.maps.LatLng(24.94140 ,67.78414),new google.maps.LatLng(24.79101 ,67.23882),new google.maps.LatLng(24.10961 ,66.84905),new google.maps.LatLng(25.18125 ,66.76523),new google.maps.LatLng(24.73705 ,67.92419),new google.maps.LatLng(25.14582 ,66.41281),new google.maps.LatLng(24.86953 ,66.15478),new google.maps.LatLng(25.60232 ,66.48148),new google.maps.LatLng(25.10905 ,67.83946),new google.maps.LatLng(24.91724 ,67.29983),new google.maps.LatLng(24.14587 ,67.54478),new google.maps.LatLng(24.93941 ,66.33341),new google.maps.LatLng(24.02720 ,66.77547),new google.maps.LatLng(25.41745 ,67.07162),new google.maps.LatLng(24.12914 ,67.42088),new google.maps.LatLng(24.97500 ,67.91646),new google.maps.LatLng(25.21746 ,67.86319),new google.maps.LatLng(25.38867 ,67.60660),new google.maps.LatLng(24.78660 ,66.99654),new google.maps.LatLng(25.62742 ,66.36491),new google.maps.LatLng(24.60987 ,66.58611),new google.maps.LatLng(25.77326 ,66.89241),new google.maps.LatLng(24.43489 ,66.56481),new google.maps.LatLng(24.41704 ,67.63401),new google.maps.LatLng(25.72147 ,67.59172),new google.maps.LatLng(24.51989 ,66.20867),new google.maps.LatLng(24.73087 ,67.15306),new google.maps.LatLng(25.61955 ,67.45281),new google.maps.LatLng(25.46286 ,66.93022),new google.maps.LatLng(24.58568 ,68.02309),new google.maps.LatLng(24.52745 ,66.41360),new google.maps.LatLng(24.85034 ,66.23470),new google.maps.LatLng(25.24084 ,67.37243),new google.maps.LatLng(24.09534 ,67.53355),new google.maps.LatLng(24.47281 ,66.85040),new google.maps.LatLng(25.57540 ,66.70604),new google.maps.LatLng(24.64124 ,67.40387),new google.maps.LatLng(25.48648 ,66.80989),new google.maps.LatLng(25.83349 ,67.57884),new google.maps.LatLng(25.17645 ,67.96973),new google.maps.LatLng(25.39066 ,67.88674),new google.maps.LatLng(25.36280 ,66.67693),new google.maps.LatLng(25.71012 ,67.39942),new google.maps.LatLng(25.64223 ,66.36549),new google.maps.LatLng(24.53228 ,67.24733),new google.maps.LatLng(24.50653 ,67.10204),new google.maps.LatLng(25.85596 ,66.94718),new google.maps.LatLng(25.68261 ,67.66022),new google.maps.LatLng(25.36961 ,66.63033),new google.maps.LatLng(25.62908 ,66.61781),new google.maps.LatLng(24.01969 ,67.51190),new google.maps.LatLng(24.66166 ,66.64023),new google.maps.LatLng(24.12123 ,67.54498),new google.maps.LatLng(24.78111 ,66.16315),new google.maps.LatLng(24.88045 ,67.29888),new google.maps.LatLng(25.14410 ,67.10749),new google.maps.LatLng(24.53775 ,66.99378),new google.maps.LatLng(25.33419 ,67.49389),new google.maps.LatLng(24.47410 ,67.70585),new google.maps.LatLng(25.36059 ,66.48364),new google.maps.LatLng(24.88595 ,66.42500),new google.maps.LatLng(24.04018 ,66.81331),new google.maps.LatLng(25.26085 ,66.91884),new google.maps.LatLng(24.23157 ,67.05454),new google.maps.LatLng(24.00432 ,67.27457),new google.maps.LatLng(25.00220 ,66.91873),new google.maps.LatLng(24.57589 ,67.45249),new google.maps.LatLng(25.41925 ,66.63861),new google.maps.LatLng(25.78741 ,67.19380),new google.maps.LatLng(25.66598 ,67.09057),new google.maps.LatLng(25.84860 ,66.76838),new google.maps.LatLng(24.37559 ,66.49985),new google.maps.LatLng(25.14016 ,66.99716),new google.maps.LatLng(24.40816 ,66.79143),new google.maps.LatLng(24.68826 ,66.39937),new google.maps.LatLng(24.05171 ,66.58623),new google.maps.LatLng(24.25507 ,67.31926),new google.maps.LatLng(25.14612 ,66.82427),new google.maps.LatLng(25.25080 ,67.28198),new google.maps.LatLng(25.83015 ,66.91979),new google.maps.LatLng(24.46892 ,66.98072),new google.maps.LatLng(24.57038 ,67.57272),new google.maps.LatLng(25.20413 ,67.30211),new google.maps.LatLng(25.74830 ,66.59551),new google.maps.LatLng(24.83443 ,67.26534),new google.maps.LatLng(24.39695 ,66.88603),new google.maps.LatLng(25.47771 ,67.68448),new google.maps.LatLng(24.78272 ,67.38920),new google.maps.LatLng(24.09407 ,67.37023),new google.maps.LatLng(25.20239 ,67.18233),new google.maps.LatLng(24.35543 ,67.51147),new google.maps.LatLng(24.15382 ,67.18568),new google.maps.LatLng(25.51843 ,67.73219),new google.maps.LatLng(25.14518 ,67.34106),new google.maps.LatLng(24.99806 ,66.26892),new google.maps.LatLng(25.07733 ,66.82735),new google.maps.LatLng(24.08702 ,66.99783),new google.maps.LatLng(25.65735 ,67.44875),new google.maps.LatLng(25.37813 ,67.70450),new google.maps.LatLng(25.61374 ,66.98471),new google.maps.LatLng(24.81190 ,67.27775),new google.maps.LatLng(25.52715 ,67.61224),new google.maps.LatLng(24.36301 ,66.60227),new google.maps.LatLng(25.50614 ,66.99458),new google.maps.LatLng(25.70204 ,66.64439),new google.maps.LatLng(24.33981 ,66.38489),new google.maps.LatLng(24.94042 ,67.24812),new google.maps.LatLng(25.17466 ,66.26972),new google.maps.LatLng(24.66550 ,67.64150),new google.maps.LatLng(25.45724 ,67.64501),new google.maps.LatLng(24.60664 ,67.30941),new google.maps.LatLng(25.33708 ,67.05545),new google.maps.LatLng(25.52174 ,66.97456),new google.maps.LatLng(24.39785 ,66.54246),new google.maps.LatLng(24.41188 ,66.65995),new google.maps.LatLng(25.11165 ,67.91163),new google.maps.LatLng(25.66794 ,67.60802),new google.maps.LatLng(24.12764 ,67.47278),new google.maps.LatLng(25.21015 ,66.92222),new google.maps.LatLng(25.63060 ,67.68796),new google.maps.LatLng(24.17030 ,66.99412),new google.maps.LatLng(24.36482 ,67.25537),new google.maps.LatLng(25.20062 ,66.78084),new google.maps.LatLng(24.39871 ,67.30416),new google.maps.LatLng(25.14275 ,67.79564),new google.maps.LatLng(25.06030 ,67.36294),new google.maps.LatLng(25.19842 ,67.34621),new google.maps.LatLng(24.34079 ,66.38600),new google.maps.LatLng(25.53158 ,66.93931),new google.maps.LatLng(25.22591 ,66.58628),new google.maps.LatLng(24.91758 ,67.88685),new google.maps.LatLng(24.94273 ,67.59415),new google.maps.LatLng(25.36344 ,66.24581),new google.maps.LatLng(25.50246 ,67.59127),new google.maps.LatLng(24.59805 ,66.85490),new google.maps.LatLng(24.10449 ,66.62301),new google.maps.LatLng(25.04108 ,66.71567),new google.maps.LatLng(24.69275 ,66.53732),new google.maps.LatLng(24.45896 ,66.68360),new google.maps.LatLng(24.71323 ,67.98573),new google.maps.LatLng(24.43727 ,67.29478),new google.maps.LatLng(24.88901 ,67.97121),new google.maps.LatLng(24.31035 ,66.29762),new google.maps.LatLng(24.38310 ,67.04355),new google.maps.LatLng(25.33881 ,66.13027),new google.maps.LatLng(24.39505 ,67.06769),new google.maps.LatLng(25.19518 ,67.43619),new google.maps.LatLng(24.47172 ,67.69008),new google.maps.LatLng(24.04590 ,66.96253),new google.maps.LatLng(25.03491 ,66.82985),new google.maps.LatLng(24.61872 ,67.73860),new google.maps.LatLng(25.43512 ,66.71098),new google.maps.LatLng(24.82711 ,67.68053),new google.maps.LatLng(25.27772 ,66.91240),new google.maps.LatLng(24.92212 ,67.80385),new google.maps.LatLng(24.97505 ,67.40127),new google.maps.LatLng(25.39930 ,67.16823),new google.maps.LatLng(25.65115 ,66.68341),new google.maps.LatLng(25.60860 ,67.78377),new google.maps.LatLng(25.53169 ,67.51232),new google.maps.LatLng(25.26604 ,66.78305),new google.maps.LatLng(24.82321 ,66.05261),new google.maps.LatLng(25.57421 ,67.18722),new google.maps.LatLng(24.91307 ,66.65321),new google.maps.LatLng(24.39863 ,67.69351),new google.maps.LatLng(24.01781 ,66.76140),new google.maps.LatLng(24.51869 ,66.59204),new google.maps.LatLng(25.28957 ,66.47603),new google.maps.LatLng(24.02474 ,67.26389),new google.maps.LatLng(24.98133 ,67.80320),new google.maps.LatLng(24.73483 ,67.43560),new google.maps.LatLng(25.60502 ,67.02666),new google.maps.LatLng(24.40678 ,67.16405),new google.maps.LatLng(24.06969 ,67.05597),new google.maps.LatLng(25.45293 ,67.35578),new google.maps.LatLng(24.46359 ,67.13274),new google.maps.LatLng(25.70512 ,67.24362),new google.maps.LatLng(24.35827 ,67.75628),new google.maps.LatLng(25.12392 ,67.81941),new google.maps.LatLng(24.31419 ,67.41781),new google.maps.LatLng(24.05920 ,67.56946),new google.maps.LatLng(25.10112 ,66.28906),new google.maps.LatLng(25.91483 ,67.30190),new google.maps.LatLng(24.85253 ,66.92956),new google.maps.LatLng(25.50752 ,67.07912),new google.maps.LatLng(24.97916 ,66.11628),new google.maps.LatLng(25.44423 ,67.61531),new google.maps.LatLng(25.37913 ,67.03837),new google.maps.LatLng(24.73285 ,67.31819),new google.maps.LatLng(24.85602 ,66.89811),new google.maps.LatLng(24.33306 ,67.70299),new google.maps.LatLng(24.12003 ,67.12285),new google.maps.LatLng(24.64303 ,67.50671),new google.maps.LatLng(25.09315 ,67.21034),new google.maps.LatLng(24.79527 ,66.17629),new google.maps.LatLng(25.18081 ,66.28270),new google.maps.LatLng(24.76131 ,67.73838),new google.maps.LatLng(24.98379 ,67.46172),new google.maps.LatLng(23.99835 ,67.18120),new google.maps.LatLng(25.16279 ,67.32261),new google.maps.LatLng(24.27295 ,66.44588),new google.maps.LatLng(24.14101 ,67.60123),new google.maps.LatLng(24.36344 ,67.85160),new google.maps.LatLng(25.33384 ,66.87926),new google.maps.LatLng(24.55050 ,67.67480),new google.maps.LatLng(24.11049 ,67.21103),new google.maps.LatLng(24.49477 ,67.21910),new google.maps.LatLng(24.51167 ,67.05763),new google.maps.LatLng(24.19771 ,67.18602),new google.maps.LatLng(25.81063 ,67.58956),new google.maps.LatLng(24.21810 ,67.32798),new google.maps.LatLng(25.06823 ,66.12031),new google.maps.LatLng(25.74193 ,66.56629),new google.maps.LatLng(25.52779 ,66.35469),new google.maps.LatLng(24.88300 ,66.05699),new google.maps.LatLng(25.55753 ,67.68962),new google.maps.LatLng(24.65040 ,66.89848),new google.maps.LatLng(25.08959 ,67.21483),new google.maps.LatLng(25.28899 ,67.44207),new google.maps.LatLng(23.96578 ,67.05535),new google.maps.LatLng(24.34931 ,67.76939),new google.maps.LatLng(25.05461 ,67.00771),new google.maps.LatLng(25.24722 ,66.20564),new google.maps.LatLng(24.77321 ,67.18359),new google.maps.LatLng(25.13775 ,66.16239),new google.maps.LatLng(24.06775 ,67.03955),new google.maps.LatLng(25.02306 ,66.13980),new google.maps.LatLng(25.58248 ,66.95903),new google.maps.LatLng(25.30213 ,67.63126),new google.maps.LatLng(24.93842 ,67.36230),new google.maps.LatLng(25.64350 ,67.34872),new google.maps.LatLng(24.99434 ,67.12743),new google.maps.LatLng(25.75597 ,67.40532),new google.maps.LatLng(24.97992 ,67.39159),new google.maps.LatLng(24.88123 ,66.79411),new google.maps.LatLng(25.51215 ,66.66662),new google.maps.LatLng(24.70926 ,67.52795),new google.maps.LatLng(24.37538 ,67.55280),new google.maps.LatLng(24.38669 ,67.81515),new google.maps.LatLng(24.86140 ,66.14843),new google.maps.LatLng(24.98719 ,67.35493),new google.maps.LatLng(24.99132 ,67.50799),new google.maps.LatLng(24.18746 ,67.36254),new google.maps.LatLng(25.33775 ,66.86470),new google.maps.LatLng(24.92980 ,67.89037),new google.maps.LatLng(24.94634 ,66.41433),new google.maps.LatLng(24.79233 ,67.13747),new google.maps.LatLng(24.44660 ,67.26525),new google.maps.LatLng(25.78906 ,67.61364),new google.maps.LatLng(25.22404 ,66.90117),new google.maps.LatLng(25.18784 ,66.69711),new google.maps.LatLng(24.70751 ,68.03273),new google.maps.LatLng(24.48548 ,66.37443),new google.maps.LatLng(24.43210 ,67.72301),new google.maps.LatLng(25.93785 ,66.79144),new google.maps.LatLng(24.96168 ,66.53894),new google.maps.LatLng(24.22179 ,67.11074),new google.maps.LatLng(24.75964 ,66.11646),new google.maps.LatLng(25.65038 ,66.88798),new google.maps.LatLng(25.07273 ,66.32371),new google.maps.LatLng(25.21111 ,67.95101),new google.maps.LatLng(25.47780 ,67.92032),new google.maps.LatLng(25.87153 ,67.10592),new google.maps.LatLng(25.35177 ,67.95912),new google.maps.LatLng(25.72426 ,66.61783),new google.maps.LatLng(24.65720 ,66.14864),new google.maps.LatLng(24.61499 ,66.98756),new google.maps.LatLng(25.08293 ,67.19654),new google.maps.LatLng(24.74743 ,67.87535),new google.maps.LatLng(24.58591 ,66.14860),new google.maps.LatLng(25.44248 ,66.97383),new google.maps.LatLng(25.19135 ,67.02393),new google.maps.LatLng(24.23843 ,66.34445),new google.maps.LatLng(25.53488 ,66.57051),new google.maps.LatLng(24.46399 ,66.17613),new google.maps.LatLng(25.26333 ,66.54267),new google.maps.LatLng(24.46648 ,66.65401),new google.maps.LatLng(25.14029 ,67.86069),new google.maps.LatLng(25.16679 ,66.29517),new google.maps.LatLng(24.68406 ,66.42628),new google.maps.LatLng(25.19097 ,67.60047),new google.maps.LatLng(24.73126 ,67.57028),new google.maps.LatLng(25.38918 ,66.63458),new google.maps.LatLng(24.61063 ,66.72785),new google.maps.LatLng(24.01078 ,66.85784),new google.maps.LatLng(25.27983 ,67.68166),new google.maps.LatLng(24.35718 ,66.55395),new google.maps.LatLng(24.33256 ,66.96046),new google.maps.LatLng(24.46627 ,66.52195),new google.maps.LatLng(25.57579 ,67.18102),new google.maps.LatLng(24.09440 ,66.90154),new google.maps.LatLng(25.52249 ,67.91107),new google.maps.LatLng(24.25172 ,66.40971),new google.maps.LatLng(25.66846 ,67.06475),new google.maps.LatLng(24.70535 ,66.69488),new google.maps.LatLng(25.48013 ,67.29154),new google.maps.LatLng(25.70179 ,66.82839),new google.maps.LatLng(24.80627 ,67.34770),new google.maps.LatLng(25.88126 ,66.97318),new google.maps.LatLng(24.35037 ,66.90940),new google.maps.LatLng(24.83960 ,67.54629),new google.maps.LatLng(24.73670 ,66.16024),new google.maps.LatLng(24.98398 ,67.26083),new google.maps.LatLng(24.50399 ,67.28787),new google.maps.LatLng(23.96721 ,67.10900),new google.maps.LatLng(25.51484 ,67.64584),new google.maps.LatLng(24.63020 ,66.36796),new google.maps.LatLng(25.74378 ,66.93023),new google.maps.LatLng(24.61619 ,66.16928),new google.maps.LatLng(24.54766 ,67.90615),new google.maps.LatLng(25.27534 ,67.47818),new google.maps.LatLng(24.34941 ,67.86379),new google.maps.LatLng(24.00784 ,67.40856),new google.maps.LatLng(25.47461 ,67.70359),new google.maps.LatLng(25.04040 ,67.32010),new google.maps.LatLng(24.71637 ,67.03958),new google.maps.LatLng(25.18380 ,67.97243),new google.maps.LatLng(25.14574 ,66.93442),new google.maps.LatLng(25.17943 ,67.98472),new google.maps.LatLng(25.82455 ,66.72453),new google.maps.LatLng(25.64347 ,67.78527),new google.maps.LatLng(25.01209 ,67.66419),new google.maps.LatLng(24.29024 ,67.62071),new google.maps.LatLng(24.60288 ,68.00853),new google.maps.LatLng(25.42433 ,67.60193),new google.maps.LatLng(24.16929 ,66.92110),new google.maps.LatLng(25.48726 ,66.98422),new google.maps.LatLng(25.41459 ,67.36128),new google.maps.LatLng(25.73893 ,67.36438),new google.maps.LatLng(24.14318 ,67.22726),new google.maps.LatLng(24.93979 ,67.34491),new google.maps.LatLng(24.98441 ,67.97190),new google.maps.LatLng(25.84131 ,67.05412),new google.maps.LatLng(25.72100 ,66.83263),new google.maps.LatLng(24.44435 ,67.46280),new google.maps.LatLng(25.25509 ,66.39204),new google.maps.LatLng(25.48423 ,67.12113),new google.maps.LatLng(25.25623 ,66.89090),new google.maps.LatLng(24.20734 ,66.77623),new google.maps.LatLng(24.46697 ,67.74157),new google.maps.LatLng(25.89744 ,67.16041),new google.maps.LatLng(25.36373 ,66.56840),new google.maps.LatLng(24.40526 ,67.05104),new google.maps.LatLng(25.50940 ,67.25421),new google.maps.LatLng(25.07064 ,67.07858),new google.maps.LatLng(24.44585 ,67.38326),new google.maps.LatLng(24.61157 ,66.91521),new google.maps.LatLng(25.76716 ,66.76435),new google.maps.LatLng(24.63769 ,67.49351),new google.maps.LatLng(25.18842 ,67.63030),new google.maps.LatLng(24.94669 ,68.02365),new google.maps.LatLng(25.21439 ,67.46746),new google.maps.LatLng(24.22445 ,67.76653),new google.maps.LatLng(24.77974 ,68.05699),new google.maps.LatLng(25.12258 ,67.01879),new google.maps.LatLng(24.26995 ,66.79099),new google.maps.LatLng(24.53611 ,67.32270),new google.maps.LatLng(25.29589 ,67.05272),new google.maps.LatLng(24.50403 ,66.94792),new google.maps.LatLng(24.86199 ,66.31702),new google.maps.LatLng(24.82852 ,66.17738),new google.maps.LatLng(24.99210 ,66.09622),new google.maps.LatLng(25.67594 ,66.55056),new google.maps.LatLng(25.15759 ,66.23183),new google.maps.LatLng(24.93631 ,67.46923),new google.maps.LatLng(25.13235 ,67.79125),new google.maps.LatLng(25.89748 ,67.38751),new google.maps.LatLng(24.21420 ,66.72058),new google.maps.LatLng(24.03719 ,66.67369),new google.maps.LatLng(25.09486 ,67.41589),new google.maps.LatLng(25.89731 ,67.27130),new google.maps.LatLng(25.54580 ,67.45489),new google.maps.LatLng(25.46922 ,66.76476),new google.maps.LatLng(25.23012 ,66.90816),new google.maps.LatLng(24.72783 ,66.96714),new google.maps.LatLng(24.96900 ,66.12880),new google.maps.LatLng(25.40213 ,67.31524),new google.maps.LatLng(24.22842 ,66.63269),new google.maps.LatLng(25.29733 ,67.11653),new google.maps.LatLng(24.63983 ,67.25744),new google.maps.LatLng(25.90106 ,66.78233),new google.maps.LatLng(24.63863 ,66.76851),new google.maps.LatLng(24.18703 ,66.57899),new google.maps.LatLng(25.39319 ,67.15084),new google.maps.LatLng(25.61746 ,67.12055),new google.maps.LatLng(24.44234 ,67.54514),new google.maps.LatLng(24.89873 ,67.28450),new google.maps.LatLng(24.17349 ,67.63658),new google.maps.LatLng(24.38564 ,66.33620),new google.maps.LatLng(25.59078 ,66.29586),new google.maps.LatLng(24.48813 ,67.09467),new google.maps.LatLng(24.16985 ,66.56380),new google.maps.LatLng(24.85282 ,67.41728),new google.maps.LatLng(25.04161 ,67.41277),new google.maps.LatLng(24.06716 ,66.85074),new google.maps.LatLng(25.22234 ,67.54965),new google.maps.LatLng(24.79312 ,67.26374),new google.maps.LatLng(24.95901 ,66.95093),new google.maps.LatLng(24.67209 ,67.93657),new google.maps.LatLng(24.33103 ,67.29754),new google.maps.LatLng(24.67554 ,68.06028),new google.maps.LatLng(24.43983 ,67.78432),new google.maps.LatLng(24.61252 ,66.97369),new google.maps.LatLng(24.44890 ,67.00586),new google.maps.LatLng(25.62670 ,66.82768),new google.maps.LatLng(24.66530 ,67.50120),new google.maps.LatLng(25.01808 ,66.25096),new google.maps.LatLng(25.46457 ,67.19808),new google.maps.LatLng(25.16943 ,66.79081),new google.maps.LatLng(24.17925 ,67.61549),new google.maps.LatLng(25.24026 ,66.45796),new google.maps.LatLng(24.93756 ,67.93974),new google.maps.LatLng(25.44656 ,67.60033),new google.maps.LatLng(24.65981 ,67.77753),new google.maps.LatLng(25.54055 ,66.64949),new google.maps.LatLng(24.01404 ,67.40467),new google.maps.LatLng(24.63777 ,66.73813),new google.maps.LatLng(25.43543 ,66.83121),new google.maps.LatLng(25.66770 ,66.48582),new google.maps.LatLng(23.97268 ,67.30369),new google.maps.LatLng(25.15603 ,66.92867),new google.maps.LatLng(25.82339 ,67.56526),new google.maps.LatLng(24.50656 ,67.11716),new google.maps.LatLng(24.84443 ,66.85319),new google.maps.LatLng(25.49339 ,66.48006),new google.maps.LatLng(24.13363 ,66.64080),new google.maps.LatLng(25.12591 ,67.67434),new google.maps.LatLng(25.31228 ,67.52970),new google.maps.LatLng(24.96960 ,67.43425),new google.maps.LatLng(24.46122 ,67.53086),new google.maps.LatLng(24.82908 ,68.06831),new google.maps.LatLng(24.89163 ,67.08185),new google.maps.LatLng(24.79345 ,67.93596),new google.maps.LatLng(24.73189 ,67.87566),new google.maps.LatLng(25.83958 ,66.91947),new google.maps.LatLng(24.56930 ,66.29728),new google.maps.LatLng(24.65907 ,66.46030),new google.maps.LatLng(24.04128 ,66.85281),new google.maps.LatLng(24.39948 ,67.69440),new google.maps.LatLng(24.65389 ,67.59250),new google.maps.LatLng(25.84376 ,67.31067),new google.maps.LatLng(25.53085 ,66.32119),new google.maps.LatLng(25.37062 ,67.04959),new google.maps.LatLng(25.18838 ,66.61024),new google.maps.LatLng(23.97707 ,67.04149),new google.maps.LatLng(24.23697 ,66.63559),new google.maps.LatLng(25.09250 ,66.08274),new google.maps.LatLng(25.68593 ,67.78232),new google.maps.LatLng(25.23036 ,66.59559),new google.maps.LatLng(25.17288 ,67.09564),new google.maps.LatLng(25.52757 ,67.77776),new google.maps.LatLng(24.88854 ,66.67398),new google.maps.LatLng(24.06672 ,67.09177),new google.maps.LatLng(25.01613 ,66.40243),new google.maps.LatLng(24.95581 ,68.03571),new google.maps.LatLng(25.06081 ,67.81600),new google.maps.LatLng(25.22253 ,66.52817),new google.maps.LatLng(25.30122 ,66.57088),new google.maps.LatLng(25.04928 ,67.58684),new google.maps.LatLng(25.64325 ,66.74410),new google.maps.LatLng(25.22976 ,67.58713),new google.maps.LatLng(25.32579 ,66.20025),new google.maps.LatLng(25.82403 ,67.18629),new google.maps.LatLng(24.91977 ,66.26052),new google.maps.LatLng(25.54410 ,66.42995),new google.maps.LatLng(24.29136 ,66.46547),new google.maps.LatLng(24.08007 ,67.30981),new google.maps.LatLng(24.82418 ,68.06637),new google.maps.LatLng(24.72871 ,66.71425),new google.maps.LatLng(25.39618 ,66.34896),new google.maps.LatLng(24.37581 ,67.19862),new google.maps.LatLng(25.69901 ,66.56136),new google.maps.LatLng(24.85863 ,66.04123),new google.maps.LatLng(25.08181 ,67.65329),new google.maps.LatLng(25.48263 ,67.26940),new google.maps.LatLng(24.10309 ,66.94734),new google.maps.LatLng(25.14915 ,67.93474),new google.maps.LatLng(25.00934 ,67.67267),new google.maps.LatLng(25.06150 ,67.83310),new google.maps.LatLng(25.13872 ,66.41292),new google.maps.LatLng(25.43378 ,66.55332),new google.maps.LatLng(25.42426 ,67.70794),new google.maps.LatLng(23.98761 ,67.19404),new google.maps.LatLng(25.70206 ,66.70801),new google.maps.LatLng(25.41770 ,67.91324),new google.maps.LatLng(24.07238 ,67.11835),new google.maps.LatLng(25.28108 ,68.01638),new google.maps.LatLng(25.51851 ,66.95640),new google.maps.LatLng(25.50820 ,67.23884),new google.maps.LatLng(25.09069 ,67.47985),new google.maps.LatLng(25.16982 ,67.45956),new google.maps.LatLng(25.70609 ,67.12473),new google.maps.LatLng(25.73499 ,66.76595),new google.maps.LatLng(25.74666 ,67.17795),new google.maps.LatLng(25.14525 ,66.80500),new google.maps.LatLng(23.91784 ,66.98584),new google.maps.LatLng(25.11175 ,66.72605),new google.maps.LatLng(25.65002 ,67.47553),new google.maps.LatLng(25.58374 ,67.18685),new google.maps.LatLng(24.58503 ,66.29068),new google.maps.LatLng(25.30846 ,66.87124),new google.maps.LatLng(25.66216 ,67.71330),new google.maps.LatLng(24.43504 ,67.83938),new google.maps.LatLng(25.78879 ,67.57135),new google.maps.LatLng(25.16704 ,67.70017),new google.maps.LatLng(24.96151 ,66.85574),new google.maps.LatLng(25.54910 ,67.13399),new google.maps.LatLng(24.10241 ,66.79650),new google.maps.LatLng(25.06697 ,67.77597),new google.maps.LatLng(24.27971 ,67.29706),new google.maps.LatLng(25.36680 ,67.71752),new google.maps.LatLng(24.83355 ,67.94670),new google.maps.LatLng(24.67705 ,66.35429),new google.maps.LatLng(24.97799 ,66.22610),new google.maps.LatLng(25.84262 ,67.27831),new google.maps.LatLng(24.84226 ,66.37515),new google.maps.LatLng(25.70293 ,66.41314),new google.maps.LatLng(24.52710 ,66.70273),new google.maps.LatLng(25.54912 ,67.19052),new google.maps.LatLng(24.72161 ,66.60001),new google.maps.LatLng(25.40325 ,66.34802),new google.maps.LatLng(24.96261 ,67.35992),new google.maps.LatLng(24.88742 ,66.41777),new google.maps.LatLng(24.11299 ,66.96792),new google.maps.LatLng(24.13614 ,66.91966),new google.maps.LatLng(24.71436 ,67.10157),new google.maps.LatLng(25.74626 ,66.62468),new google.maps.LatLng(25.20764 ,66.96603),new google.maps.LatLng(24.12356 ,66.86985),new google.maps.LatLng(24.60318 ,66.17667),new google.maps.LatLng(24.44033 ,67.49627),new google.maps.LatLng(24.51078 ,66.74348),new google.maps.LatLng(24.52794 ,66.34632),new google.maps.LatLng(24.69547 ,67.05709),new google.maps.LatLng(24.35768 ,67.86912),new google.maps.LatLng(24.77687 ,66.18893),new google.maps.LatLng(24.64974 ,66.11601),new google.maps.LatLng(25.24826 ,67.55240),new google.maps.LatLng(24.46015 ,66.59706),new google.maps.LatLng(24.09585 ,66.76541),new google.maps.LatLng(24.05326 ,67.39703),new google.maps.LatLng(25.91676 ,66.74303),new google.maps.LatLng(24.60402 ,66.35636),new google.maps.LatLng(24.92593 ,67.10961),new google.maps.LatLng(25.29013 ,66.27080),new google.maps.LatLng(24.74703 ,67.09474),new google.maps.LatLng(24.64180 ,66.15259),new google.maps.LatLng(25.85732 ,67.36319),new google.maps.LatLng(24.11914 ,66.76312),new google.maps.LatLng(24.71442 ,67.55549),new google.maps.LatLng(25.14160 ,66.87055),new google.maps.LatLng(24.49497 ,67.70999),new google.maps.LatLng(24.19530 ,67.27676),new google.maps.LatLng(24.57909 ,67.73655),new google.maps.LatLng(24.67657 ,66.88888),new google.maps.LatLng(24.94248 ,66.44733),new google.maps.LatLng(24.88762 ,67.19388),new google.maps.LatLng(25.23305 ,66.12331),new google.maps.LatLng(24.87698 ,66.30267),new google.maps.LatLng(24.39278 ,66.40161),new google.maps.LatLng(25.49081 ,66.32899),new google.maps.LatLng(25.83376 ,66.56632),new google.maps.LatLng(24.49581 ,66.75637),new google.maps.LatLng(25.05082 ,66.83060),new google.maps.LatLng(24.53077 ,66.83705),new google.maps.LatLng(25.13011 ,66.79148),new google.maps.LatLng(24.79078 ,66.18761),new google.maps.LatLng(25.63314 ,67.64800),new google.maps.LatLng(25.34958 ,66.85350),new google.maps.LatLng(24.65083 ,67.45304),new google.maps.LatLng(25.20097 ,67.87191),new google.maps.LatLng(25.47174 ,67.92206),new google.maps.LatLng(24.66423 ,67.09532),new google.maps.LatLng(25.07129 ,66.62459),new google.maps.LatLng(24.50157 ,66.76343),new google.maps.LatLng(25.81472 ,66.94175),new google.maps.LatLng(25.44073 ,67.89758),new google.maps.LatLng(25.59514 ,66.81459),new google.maps.LatLng(25.88182 ,67.35552),new google.maps.LatLng(25.52232 ,66.91447),new google.maps.LatLng(24.28600 ,66.33444),new google.maps.LatLng(24.70382 ,67.25104),new google.maps.LatLng(24.21871 ,67.38686),new google.maps.LatLng(24.58394 ,67.94449),new google.maps.LatLng(24.83186 ,67.63343),new google.maps.LatLng(25.44413 ,67.94322),new google.maps.LatLng(24.88854 ,67.81631),new google.maps.LatLng(25.02987 ,66.39434),new google.maps.LatLng(25.23049 ,66.40588),new google.maps.LatLng(24.57419 ,66.78159),new google.maps.LatLng(25.13569 ,66.75778),new google.maps.LatLng(25.66118 ,67.22819),new google.maps.LatLng(24.51665 ,67.82827),new google.maps.LatLng(24.44974 ,67.05509),new google.maps.LatLng(24.80894 ,67.29675),new google.maps.LatLng(25.57402 ,66.88387),new google.maps.LatLng(25.32521 ,66.79707),new google.maps.LatLng(24.91247 ,67.57783),new google.maps.LatLng(24.89276 ,68.08743),new google.maps.LatLng(24.48469 ,66.24250),new google.maps.LatLng(24.36635 ,67.37132),new google.maps.LatLng(24.03779 ,66.79174),new google.maps.LatLng(24.76412 ,67.73090),new google.maps.LatLng(25.39951 ,67.08130),new google.maps.LatLng(24.43614 ,66.20692),new google.maps.LatLng(24.80004 ,67.89417),new google.maps.LatLng(24.96342 ,67.70795),new google.maps.LatLng(24.63518 ,67.91963),new google.maps.LatLng(24.45969 ,67.96511),new google.maps.LatLng(25.18530 ,67.58999),new google.maps.LatLng(25.50811 ,66.76047),new google.maps.LatLng(24.10944 ,66.67924),new google.maps.LatLng(24.77130 ,66.19651),new google.maps.LatLng(24.08429 ,66.73395),new google.maps.LatLng(24.89722 ,66.04784),new google.maps.LatLng(24.97106 ,67.05648),new google.maps.LatLng(25.08642 ,66.67550),new google.maps.LatLng(25.02828 ,67.15654),new google.maps.LatLng(25.76726 ,67.59919),new google.maps.LatLng(25.40353 ,66.87641),new google.maps.LatLng(24.42224 ,66.46570),new google.maps.LatLng(24.21077 ,66.70439),new google.maps.LatLng(24.26888 ,67.69868),new google.maps.LatLng(25.50634 ,67.73837),new google.maps.LatLng(24.88104 ,66.70766),new google.maps.LatLng(25.40141 ,66.94511),new google.maps.LatLng(25.23270 ,67.39723),new google.maps.LatLng(24.53994 ,67.77712),new google.maps.LatLng(25.28148 ,66.53682),new google.maps.LatLng(25.71331 ,67.27877),new google.maps.LatLng(24.09199 ,66.83302),new google.maps.LatLng(25.73266 ,67.35367),new google.maps.LatLng(25.42981 ,66.17026),new google.maps.LatLng(25.22113 ,67.33677),new google.maps.LatLng(25.08596 ,67.24712),new google.maps.LatLng(24.44066 ,67.39464),new google.maps.LatLng(25.12211 ,67.91241),new google.maps.LatLng(25.25098 ,67.98656),new google.maps.LatLng(24.81936 ,66.16676),new google.maps.LatLng(24.07170 ,67.20029),new google.maps.LatLng(25.15420 ,67.95184),new google.maps.LatLng(24.58175 ,67.41215),new google.maps.LatLng(25.22698 ,66.27095),new google.maps.LatLng(24.59805 ,66.88144),new google.maps.LatLng(24.02195 ,66.92590),new google.maps.LatLng(24.07113 ,67.33871),new google.maps.LatLng(24.78606 ,66.49781),new google.maps.LatLng(25.57727 ,67.78970),new google.maps.LatLng(24.37457 ,67.17717),new google.maps.LatLng(25.89058 ,66.65370),new google.maps.LatLng(25.50987 ,66.37112),new google.maps.LatLng(24.67508 ,67.00984),new google.maps.LatLng(25.78486 ,67.47229),new google.maps.LatLng(25.17908 ,66.15035),new google.maps.LatLng(24.19355 ,67.13536),new google.maps.LatLng(25.57513 ,66.53573),new google.maps.LatLng(25.19544 ,66.76728),new google.maps.LatLng(25.12488 ,66.51121),new google.maps.LatLng(24.00664 ,67.12169),new google.maps.LatLng(24.29768 ,66.52423),new google.maps.LatLng(25.38769 ,67.81793),new google.maps.LatLng(25.00115 ,66.08501),new google.maps.LatLng(24.61611 ,66.35486),new google.maps.LatLng(24.95071 ,67.08032),new google.maps.LatLng(25.58516 ,66.34526),new google.maps.LatLng(24.48013 ,67.01028),new google.maps.LatLng(24.42021 ,66.97183),new google.maps.LatLng(24.14596 ,67.02305),new google.maps.LatLng(24.31397 ,67.65773),new google.maps.LatLng(24.48745 ,66.70764),new google.maps.LatLng(24.69029 ,68.03019),new google.maps.LatLng(24.21968 ,67.45102),new google.maps.LatLng(25.16473 ,67.37514),new google.maps.LatLng(25.19462 ,66.27650),new google.maps.LatLng(25.03881 ,66.37005),new google.maps.LatLng(25.18094 ,67.66857),new google.maps.LatLng(24.72967 ,67.13050),new google.maps.LatLng(24.82589 ,66.74402),new google.maps.LatLng(24.30646 ,67.21338),new google.maps.LatLng(25.03984 ,66.58641),new google.maps.LatLng(24.33003 ,66.86388),new google.maps.LatLng(25.66997 ,67.02892),new google.maps.LatLng(24.50319 ,66.40246),new google.maps.LatLng(24.03132 ,66.76997),new google.maps.LatLng(25.24886 ,66.21500),new google.maps.LatLng(24.74088 ,67.26330),new google.maps.LatLng(25.36014 ,67.05025),new google.maps.LatLng(25.86455 ,67.22373),new google.maps.LatLng(24.57682 ,67.50004),new google.maps.LatLng(24.06442 ,67.24510),new google.maps.LatLng(25.35722 ,66.13538),new google.maps.LatLng(24.94909 ,66.85151),new google.maps.LatLng(24.60638 ,66.44010),new google.maps.LatLng(25.91078 ,66.77985),new google.maps.LatLng(24.10673 ,67.28681),new google.maps.LatLng(25.33611 ,66.80266),new google.maps.LatLng(25.30540 ,66.95779),new google.maps.LatLng(25.24107 ,67.41630),new google.maps.LatLng(24.53183 ,67.06725),new google.maps.LatLng(25.86044 ,66.64164),new google.maps.LatLng(24.81318 ,68.00998),new google.maps.LatLng(25.09249 ,66.19006),new google.maps.LatLng(24.96900 ,67.39262),new google.maps.LatLng(24.66629 ,66.67892),new google.maps.LatLng(23.92313 ,66.96109),new google.maps.LatLng(24.74652 ,66.15274),new google.maps.LatLng(25.43809 ,67.33507),new google.maps.LatLng(25.44596 ,66.45518),new google.maps.LatLng(25.05455 ,67.11723),new google.maps.LatLng(24.62675 ,67.17880),new google.maps.LatLng(25.30238 ,66.27434),new google.maps.LatLng(24.37276 ,66.96028),new google.maps.LatLng(24.72348 ,66.91756),new google.maps.LatLng(25.63354 ,66.88757),new google.maps.LatLng(25.87502 ,67.36237),new google.maps.LatLng(24.98706 ,67.40419),new google.maps.LatLng(24.78271 ,67.10192),new google.maps.LatLng(25.23876 ,67.58665),new google.maps.LatLng(24.39237 ,66.98835),new google.maps.LatLng(25.77686 ,66.71405),new google.maps.LatLng(24.84032 ,67.55529),new google.maps.LatLng(24.44240 ,66.24752),new google.maps.LatLng(24.63560 ,67.66640),new google.maps.LatLng(25.14270 ,67.03388),new google.maps.LatLng(24.48758 ,66.82173),new google.maps.LatLng(25.18281 ,66.53847),new google.maps.LatLng(25.59583 ,67.74023),new google.maps.LatLng(25.16784 ,66.26097),new google.maps.LatLng(24.25409 ,66.92757),new google.maps.LatLng(24.19974 ,67.65252),new google.maps.LatLng(24.59468 ,67.29193),new google.maps.LatLng(24.82579 ,66.99131),new google.maps.LatLng(24.10788 ,67.04472),new google.maps.LatLng(25.27742 ,66.77381),new google.maps.LatLng(25.21964 ,66.62397),new google.maps.LatLng(25.68016 ,67.73229),new google.maps.LatLng(24.41822 ,66.43024),new google.maps.LatLng(25.38395 ,67.22877),new google.maps.LatLng(24.37738 ,67.12887),new google.maps.LatLng(24.99747 ,66.69777),new google.maps.LatLng(24.38875 ,67.55542),new google.maps.LatLng(24.10912 ,66.83171),new google.maps.LatLng(25.02225 ,67.51857),new google.maps.LatLng(24.44662 ,67.25758),new google.maps.LatLng(25.13123 ,67.16862),new google.maps.LatLng(24.05687 ,67.51119),new google.maps.LatLng(25.28276 ,66.67274),new google.maps.LatLng(24.37929 ,67.73766),new google.maps.LatLng(25.69356 ,66.69774),new google.maps.LatLng(24.15905 ,66.40712),new google.maps.LatLng(25.69177 ,66.48300),new google.maps.LatLng(25.52543 ,66.39897),new google.maps.LatLng(25.35402 ,67.07420),new google.maps.LatLng(25.37206 ,67.91027),new google.maps.LatLng(24.36354 ,67.49767),new google.maps.LatLng(24.23372 ,67.62584),new google.maps.LatLng(24.12291 ,67.40627),new google.maps.LatLng(23.94368 ,67.00803),new google.maps.LatLng(25.76793 ,67.42785),new google.maps.LatLng(25.65122 ,66.96301),new google.maps.LatLng(25.50660 ,66.48278),new google.maps.LatLng(24.95107 ,66.23467),new google.maps.LatLng(25.19568 ,66.82170),new google.maps.LatLng(24.86564 ,66.74383),new google.maps.LatLng(24.43283 ,66.71145),new google.maps.LatLng(24.83884 ,66.30498),new google.maps.LatLng(25.29389 ,66.45528),new google.maps.LatLng(24.87084 ,67.63209),new google.maps.LatLng(24.92550 ,66.77881),new google.maps.LatLng(25.23872 ,66.25619),new google.maps.LatLng(24.42310 ,67.24753),new google.maps.LatLng(25.33277 ,66.34198),new google.maps.LatLng(24.06040 ,66.72097),new google.maps.LatLng(24.33894 ,67.34535),new google.maps.LatLng(24.39134 ,66.28569),new google.maps.LatLng(25.60398 ,66.56308),new google.maps.LatLng(24.07581 ,67.44788),new google.maps.LatLng(24.08491 ,66.72412),new google.maps.LatLng(25.14637 ,67.26133),new google.maps.LatLng(25.16841 ,67.33472),new google.maps.LatLng(24.72439 ,66.23508),new google.maps.LatLng(24.31779 ,67.28700),new google.maps.LatLng(24.17400 ,66.95492),new google.maps.LatLng(25.00912 ,66.65342),new google.maps.LatLng(25.72699 ,66.77071),new google.maps.LatLng(24.74751 ,67.88326),new google.maps.LatLng(24.68995 ,67.01822),new google.maps.LatLng(24.54807 ,66.53634),new google.maps.LatLng(25.11048 ,67.08692),new google.maps.LatLng(24.87098 ,68.03614),new google.maps.LatLng(25.21521 ,67.82142),new google.maps.LatLng(24.46809 ,67.11980),new google.maps.LatLng(24.76079 ,67.65926),new google.maps.LatLng(24.68735 ,66.48706),new google.maps.LatLng(24.16482 ,66.58032),new google.maps.LatLng(24.49881 ,66.15787),new google.maps.LatLng(25.27779 ,66.19585),new google.maps.LatLng(25.32368 ,67.46120),new google.maps.LatLng(25.21087 ,66.85781),new google.maps.LatLng(24.93263 ,67.95669),new google.maps.LatLng(24.89090 ,67.46280),new google.maps.LatLng(24.05079 ,67.46289),new google.maps.LatLng(24.41749 ,67.80367),new google.maps.LatLng(24.97488 ,67.31355),new google.maps.LatLng(25.93724 ,67.11862),new google.maps.LatLng(23.95729 ,66.82124),new google.maps.LatLng(24.99277 ,66.36248),new google.maps.LatLng(25.75244 ,66.71689),new google.maps.LatLng(24.86708 ,66.63287),new google.maps.LatLng(25.46865 ,67.67286),new google.maps.LatLng(25.53118 ,66.97796),new google.maps.LatLng(24.36153 ,67.64211),new google.maps.LatLng(24.81966 ,66.88125),new google.maps.LatLng(24.97060 ,66.96454),new google.maps.LatLng(24.83167 ,66.05759),new google.maps.LatLng(25.48426 ,66.53283),new google.maps.LatLng(25.46344 ,66.34005),new google.maps.LatLng(25.31162 ,67.74722),new google.maps.LatLng(24.54269 ,66.29893),new google.maps.LatLng(24.55880 ,67.47280),new google.maps.LatLng(24.22395 ,67.37627),new google.maps.LatLng(25.58059 ,67.22625),new google.maps.LatLng(25.69795 ,66.55568),new google.maps.LatLng(24.15540 ,67.18732),new google.maps.LatLng(25.39425 ,67.41927),new google.maps.LatLng(25.58478 ,67.45925),new google.maps.LatLng(24.99195 ,66.36538),new google.maps.LatLng(25.53329 ,67.08506),new google.maps.LatLng(25.45638 ,67.28813),new google.maps.LatLng(24.37595 ,66.30922),new google.maps.LatLng(25.85183 ,66.63327),new google.maps.LatLng(24.19864 ,66.51104),new google.maps.LatLng(25.87233 ,67.25506),new google.maps.LatLng(24.80477 ,67.63278),new google.maps.LatLng(25.40741 ,67.38800),new google.maps.LatLng(25.54763 ,67.69084),new google.maps.LatLng(24.89619 ,66.15016),new google.maps.LatLng(24.62915 ,66.39850),new google.maps.LatLng(24.99083 ,68.10064),new google.maps.LatLng(25.35359 ,67.35358),new google.maps.LatLng(24.11717 ,66.55221),new google.maps.LatLng(24.16600 ,66.53579),new google.maps.LatLng(24.78792 ,67.18213),new google.maps.LatLng(25.07738 ,67.80214),new google.maps.LatLng(24.07302 ,67.51946),new google.maps.LatLng(25.07442 ,66.21540),new google.maps.LatLng(25.84866 ,66.93763),new google.maps.LatLng(25.29538 ,66.17237),new google.maps.LatLng(24.13275 ,66.77928),new google.maps.LatLng(24.08516 ,67.53485),new google.maps.LatLng(24.65540 ,67.71730),new google.maps.LatLng(24.98216 ,67.88964),new google.maps.LatLng(24.10756 ,66.92751),new google.maps.LatLng(25.34951 ,67.63125),new google.maps.LatLng(25.61627 ,67.38385),new google.maps.LatLng(25.03018 ,66.95759),new google.maps.LatLng(25.20511 ,66.96142),new google.maps.LatLng(25.67134 ,67.76646),new google.maps.LatLng(25.59747 ,66.59768),new google.maps.LatLng(25.56685 ,66.70218),new google.maps.LatLng(25.45713 ,66.84724),new google.maps.LatLng(24.56497 ,67.28138),new google.maps.LatLng(24.11589 ,67.52947),new google.maps.LatLng(25.45239 ,67.28599),new google.maps.LatLng(24.53611 ,67.30005),new google.maps.LatLng(24.98533 ,67.31340),new google.maps.LatLng(25.00827 ,67.96807),new google.maps.LatLng(24.23676 ,67.51816),new google.maps.LatLng(25.48158 ,66.48722),new google.maps.LatLng(24.69913 ,67.44212),new google.maps.LatLng(24.70046 ,67.05852),new google.maps.LatLng(24.63210 ,67.29043),new google.maps.LatLng(25.88623 ,67.22397),new google.maps.LatLng(24.99301 ,66.43085),new google.maps.LatLng(25.20627 ,67.82431),new google.maps.LatLng(25.35135 ,67.18514),new google.maps.LatLng(24.62915 ,67.53617),new google.maps.LatLng(24.99637 ,67.28013),new google.maps.LatLng(25.15055 ,67.51153),new google.maps.LatLng(24.35845 ,66.28270),new google.maps.LatLng(25.27768 ,67.95006),new google.maps.LatLng(24.55093 ,66.48937),new google.maps.LatLng(24.74963 ,68.06824),new google.maps.LatLng(25.27023 ,67.66585),new google.maps.LatLng(24.32572 ,66.27502),new google.maps.LatLng(25.74969 ,66.86636),new google.maps.LatLng(23.99799 ,66.70323),new google.maps.LatLng(25.45355 ,66.32482),new google.maps.LatLng(24.15227 ,66.91286),new google.maps.LatLng(25.49103 ,66.46482),new google.maps.LatLng(24.31370 ,67.62830),new google.maps.LatLng(24.16022 ,66.49863),new google.maps.LatLng(24.38423 ,67.77288),new google.maps.LatLng(25.83975 ,67.43278),new google.maps.LatLng(24.05182 ,67.54833),new google.maps.LatLng(24.93403 ,67.28259),new google.maps.LatLng(24.53059 ,66.16565),new google.maps.LatLng(24.14988 ,67.17822),new google.maps.LatLng(24.54384 ,67.78846),new google.maps.LatLng(24.53341 ,67.06622),new google.maps.LatLng(24.13218 ,67.38855),new google.maps.LatLng(25.35875 ,66.47734),new google.maps.LatLng(24.44590 ,66.21888),new google.maps.LatLng(25.11473 ,67.17714),new google.maps.LatLng(25.30770 ,67.35373),new google.maps.LatLng(25.38590 ,67.42903),new google.maps.LatLng(25.76821 ,66.60672),new google.maps.LatLng(24.38450 ,67.49717),new google.maps.LatLng(25.06918 ,66.37468),new google.maps.LatLng(25.03381 ,67.50822),new google.maps.LatLng(25.46228 ,66.95107),new google.maps.LatLng(24.41830 ,67.35799),new google.maps.LatLng(25.13888 ,67.62210),new google.maps.LatLng(24.56379 ,66.74323),new google.maps.LatLng(25.27770 ,66.64082),new google.maps.LatLng(25.59706 ,67.80538),new google.maps.LatLng(24.79435 ,67.70064),new google.maps.LatLng(25.26677 ,67.92828),new google.maps.LatLng(24.39202 ,66.86763),new google.maps.LatLng(25.05824 ,67.59939),new google.maps.LatLng(25.04200 ,66.05911),new google.maps.LatLng(24.03044 ,66.65546),new google.maps.LatLng(24.34014 ,66.69574),new google.maps.LatLng(24.36171 ,67.00694),new google.maps.LatLng(24.79176 ,67.36640),new google.maps.LatLng(24.35546 ,66.98733),new google.maps.LatLng(25.78310 ,66.94705),new google.maps.LatLng(24.05916 ,66.83807),new google.maps.LatLng(25.67249 ,67.22121),new google.maps.LatLng(25.15608 ,67.62590),new google.maps.LatLng(25.46577 ,67.44920),new google.maps.LatLng(24.15667 ,67.18469),new google.maps.LatLng(25.59850 ,67.52172),new google.maps.LatLng(25.51503 ,66.90399),new google.maps.LatLng(25.41934 ,67.03836),new google.maps.LatLng(25.06710 ,66.78876),new google.maps.LatLng(25.43904 ,67.66518),new google.maps.LatLng(25.25229 ,67.31740),new google.maps.LatLng(24.68503 ,67.27391),new google.maps.LatLng(24.97806 ,66.66877),new google.maps.LatLng(24.63733 ,67.18286),new google.maps.LatLng(25.12670 ,67.47705),new google.maps.LatLng(25.06298 ,67.01168),new google.maps.LatLng(24.71407 ,67.32634),new google.maps.LatLng(25.19945 ,66.34966),new google.maps.LatLng(24.63861 ,67.09738),new google.maps.LatLng(24.68811 ,66.70711),new google.maps.LatLng(24.54538 ,67.06465),new google.maps.LatLng(24.78523 ,66.74541),new google.maps.LatLng(25.89658 ,67.21233),new google.maps.LatLng(24.76316 ,67.32820),new google.maps.LatLng(25.27112 ,67.91743),new google.maps.LatLng(24.74419 ,67.43772),new google.maps.LatLng(25.78989 ,67.45569),new google.maps.LatLng(25.15551 ,67.66683),new google.maps.LatLng(24.41818 ,66.87446),new google.maps.LatLng(25.40950 ,67.28324),new google.maps.LatLng(25.28797 ,67.97375),new google.maps.LatLng(25.54660 ,66.84429),new google.maps.LatLng(25.63041 ,66.77348),new google.maps.LatLng(24.96645 ,68.01399),new google.maps.LatLng(25.05864 ,66.98371),new google.maps.LatLng(25.55150 ,67.43605),new google.maps.LatLng(25.89111 ,67.11426),new google.maps.LatLng(24.40136 ,66.60089),new google.maps.LatLng(24.61748 ,67.62174),new google.maps.LatLng(24.05096 ,67.10024),new google.maps.LatLng(24.16094 ,67.05235),new google.maps.LatLng(25.96228 ,67.13767),new google.maps.LatLng(25.19522 ,67.38860),new google.maps.LatLng(24.23044 ,67.36824),new google.maps.LatLng(24.75080 ,66.82977),new google.maps.LatLng(25.09774 ,66.13900),new google.maps.LatLng(24.64976 ,67.75207),new google.maps.LatLng(25.56321 ,67.89309),new google.maps.LatLng(24.98884 ,67.55711),new google.maps.LatLng(25.72591 ,66.59555),new google.maps.LatLng(24.92363 ,66.13774),new google.maps.LatLng(25.39468 ,67.91251),new google.maps.LatLng(25.92443 ,66.80631),new google.maps.LatLng(25.27804 ,67.02742),new google.maps.LatLng(25.71653 ,67.50898),new google.maps.LatLng(25.54373 ,66.29859),new google.maps.LatLng(24.86705 ,67.59074),new google.maps.LatLng(25.28086 ,66.09771),new google.maps.LatLng(25.44189 ,66.55948),new google.maps.LatLng(25.42879 ,67.60608),new google.maps.LatLng(24.06012 ,67.19585),new google.maps.LatLng(24.99969 ,66.11985),new google.maps.LatLng(25.78480 ,67.06943),new google.maps.LatLng(25.39927 ,67.50617),new google.maps.LatLng(24.96671 ,68.01936),new google.maps.LatLng(25.60435 ,67.43810),new google.maps.LatLng(25.41459 ,67.02173),new google.maps.LatLng(24.52357 ,66.37291),new google.maps.LatLng(25.03155 ,67.09622),new google.maps.LatLng(25.37163 ,66.94651),new google.maps.LatLng(24.09642 ,67.31223),new google.maps.LatLng(25.49227 ,67.50221),new google.maps.LatLng(25.04772 ,66.84117),new google.maps.LatLng(25.04026 ,67.87208),new google.maps.LatLng(25.96087 ,67.14104),new google.maps.LatLng(24.69069 ,67.27514),new google.maps.LatLng(25.62580 ,67.64504),new google.maps.LatLng(24.63290 ,67.83683),new google.maps.LatLng(24.68862 ,68.01138),new google.maps.LatLng(25.07177 ,66.32536),new google.maps.LatLng(25.44182 ,67.30456),new google.maps.LatLng(24.23414 ,67.77836),new google.maps.LatLng(24.73390 ,67.88568),new google.maps.LatLng(25.74962 ,67.69028),new google.maps.LatLng(24.33259 ,67.81677),new google.maps.LatLng(24.02482 ,67.02370),new google.maps.LatLng(25.47027 ,67.82926),new google.maps.LatLng(25.60929 ,67.27068),new google.maps.LatLng(24.08961 ,67.12725),new google.maps.LatLng(25.64341 ,66.45578),new google.maps.LatLng(24.65350 ,66.98436),new google.maps.LatLng(24.75888 ,67.30629),new google.maps.LatLng(24.65691 ,67.63881),new google.maps.LatLng(25.30789 ,66.65086),new google.maps.LatLng(25.58836 ,66.99226),new google.maps.LatLng(25.00125 ,67.20707),new google.maps.LatLng(24.98922 ,66.37977),new google.maps.LatLng(25.13184 ,67.74998),new google.maps.LatLng(24.47176 ,67.81748),new google.maps.LatLng(24.65968 ,66.59609),new google.maps.LatLng(24.43128 ,67.40234),new google.maps.LatLng(25.95131 ,66.85639),new google.maps.LatLng(24.04780 ,67.00722),new google.maps.LatLng(24.75281 ,67.44556),new google.maps.LatLng(24.83382 ,66.93095),new google.maps.LatLng(25.17594 ,67.49330),new google.maps.LatLng(25.46657 ,67.00239),new google.maps.LatLng(25.14219 ,67.99110),new google.maps.LatLng(24.27019 ,67.64756),new google.maps.LatLng(25.52529 ,66.42271),new google.maps.LatLng(25.80790 ,66.76575),new google.maps.LatLng(25.44601 ,67.09295),new google.maps.LatLng(25.52391 ,67.73271),new google.maps.LatLng(24.00986 ,66.92070),new google.maps.LatLng(24.94680 ,67.50312),new google.maps.LatLng(25.84069 ,66.75694),new google.maps.LatLng(25.57956 ,67.37499),new google.maps.LatLng(23.93692 ,67.27457),new google.maps.LatLng(24.56039 ,66.85607),new google.maps.LatLng(24.20192 ,67.38938),new google.maps.LatLng(25.18681 ,67.20853),new google.maps.LatLng(24.35815 ,66.36634),new google.maps.LatLng(24.57906 ,67.55043),new google.maps.LatLng(25.48930 ,66.40405),new google.maps.LatLng(25.46041 ,67.78280),new google.maps.LatLng(24.59882 ,66.31082),new google.maps.LatLng(24.39892 ,67.34782),new google.maps.LatLng(24.62993 ,67.45317),new google.maps.LatLng(24.29498 ,66.85128),new google.maps.LatLng(24.07887 ,67.09168),new google.maps.LatLng(24.38836 ,67.26570),new google.maps.LatLng(25.34976 ,66.38335),new google.maps.LatLng(24.43831 ,66.37334),new google.maps.LatLng(25.24706 ,67.90851),new google.maps.LatLng(25.52187 ,66.49282),new google.maps.LatLng(24.91453 ,66.99321),new google.maps.LatLng(24.09576 ,67.26545),new google.maps.LatLng(23.97315 ,67.14339),new google.maps.LatLng(24.23348 ,66.34670),new google.maps.LatLng(24.77923 ,66.43266),new google.maps.LatLng(24.62314 ,67.40169),new google.maps.LatLng(24.92524 ,66.16841),new google.maps.LatLng(24.93077 ,68.09169),new google.maps.LatLng(25.02771 ,66.68435),new google.maps.LatLng(25.85474 ,67.50096),new google.maps.LatLng(25.75694 ,66.46450),new google.maps.LatLng(24.65607 ,67.64386),new google.maps.LatLng(24.35420 ,67.44578),new google.maps.LatLng(24.00195 ,67.05651),new google.maps.LatLng(24.69629 ,67.43216),new google.maps.LatLng(24.87955 ,66.85383),new google.maps.LatLng(24.53509 ,67.00965),new google.maps.LatLng(24.60694 ,66.87323),new google.maps.LatLng(25.72744 ,67.58907),new google.maps.LatLng(24.95880 ,67.04233),new google.maps.LatLng(24.35519 ,66.84171),new google.maps.LatLng(24.62129 ,66.53241),new google.maps.LatLng(25.19706 ,67.49219),new google.maps.LatLng(25.87006 ,67.52543),new google.maps.LatLng(24.85435 ,68.03778),new google.maps.LatLng(24.91173 ,67.65872),new google.maps.LatLng(24.77959 ,66.29498),new google.maps.LatLng(24.05754 ,67.27612),new google.maps.LatLng(24.19721 ,66.60348),new google.maps.LatLng(25.08778 ,66.85883),new google.maps.LatLng(24.93238 ,67.21066),new google.maps.LatLng(24.77752 ,66.11569),new google.maps.LatLng(25.62487 ,67.39904),new google.maps.LatLng(25.50023 ,66.90940),new google.maps.LatLng(24.19658 ,67.42169),new google.maps.LatLng(24.62387 ,66.82238),new google.maps.LatLng(24.09924 ,66.73150),new google.maps.LatLng(24.78223 ,66.66143),new google.maps.LatLng(25.04956 ,66.51221),new google.maps.LatLng(25.75364 ,67.17414),new google.maps.LatLng(25.42672 ,66.27779),new google.maps.LatLng(24.57638 ,66.71758),new google.maps.LatLng(24.50536 ,66.85895),new google.maps.LatLng(24.94287 ,66.36474),new google.maps.LatLng(25.48112 ,66.23559),new google.maps.LatLng(25.20531 ,67.46260),new google.maps.LatLng(25.31414 ,66.58194),new google.maps.LatLng(25.02665 ,67.99080),new google.maps.LatLng(24.03076 ,67.48969),new google.maps.LatLng(24.24031 ,67.11336),new google.maps.LatLng(24.79051 ,66.94041),new google.maps.LatLng(24.87625 ,66.59164),new google.maps.LatLng(24.10203 ,67.26503),new google.maps.LatLng(24.27846 ,66.83750),new google.maps.LatLng(24.99208 ,67.24383),new google.maps.LatLng(24.76841 ,66.99422),new google.maps.LatLng(25.13782 ,66.77724),new google.maps.LatLng(25.96115 ,67.09604),new google.maps.LatLng(25.77482 ,67.17494),new google.maps.LatLng(24.33027 ,67.46733),new google.maps.LatLng(24.67086 ,66.90204),new google.maps.LatLng(24.80872 ,67.55020),new google.maps.LatLng(24.26205 ,67.41067),new google.maps.LatLng(24.77508 ,66.98490),new google.maps.LatLng(25.29743 ,66.68190),new google.maps.LatLng(25.69500 ,66.60667),new google.maps.LatLng(24.34214 ,67.08619),new google.maps.LatLng(25.89400 ,66.69969),new google.maps.LatLng(24.65033 ,66.20309),new google.maps.LatLng(25.28757 ,67.80635),new google.maps.LatLng(24.14438 ,67.03984),new google.maps.LatLng(25.02778 ,67.33995),new google.maps.LatLng(25.39516 ,66.65348),new google.maps.LatLng(24.48345 ,67.31678),new google.maps.LatLng(23.99636 ,66.89331),new google.maps.LatLng(25.53483 ,67.84754),new google.maps.LatLng(25.02837 ,66.13982),new google.maps.LatLng(24.53259 ,67.65602),new google.maps.LatLng(24.63541 ,67.94218),new google.maps.LatLng(25.05858 ,67.49608),new google.maps.LatLng(24.54886 ,67.95942),new google.maps.LatLng(24.39911 ,66.75020),new google.maps.LatLng(24.46864 ,66.86678),new google.maps.LatLng(25.43991 ,67.90083),new google.maps.LatLng(23.95046 ,66.82775),new google.maps.LatLng(25.31628 ,66.93960),new google.maps.LatLng(25.68535 ,67.13832),new google.maps.LatLng(24.67104 ,66.98062),new google.maps.LatLng(25.68414 ,66.70565),new google.maps.LatLng(24.82433 ,66.83300),new google.maps.LatLng(25.59944 ,67.26193),new google.maps.LatLng(25.79339 ,67.16196),new google.maps.LatLng(24.52639 ,67.20046),new google.maps.LatLng(24.64581 ,67.42058),new google.maps.LatLng(24.92561 ,66.34669),new google.maps.LatLng(24.56205 ,66.89562),new google.maps.LatLng(24.69908 ,67.44737),new google.maps.LatLng(24.28531 ,67.80791),new google.maps.LatLng(25.57582 ,66.77571),new google.maps.LatLng(24.44916 ,66.48491),new google.maps.LatLng(24.06501 ,67.06195),new google.maps.LatLng(24.46165 ,67.37657),new google.maps.LatLng(25.40707 ,67.94897),new google.maps.LatLng(24.97587 ,66.75403),new google.maps.LatLng(25.49478 ,66.55030),new google.maps.LatLng(25.02328 ,66.36407),new google.maps.LatLng(25.45066 ,66.26879),new google.maps.LatLng(25.24311 ,66.27987),new google.maps.LatLng(24.52530 ,67.13916),new google.maps.LatLng(25.73793 ,66.48862),new google.maps.LatLng(24.36803 ,66.23600),new google.maps.LatLng(24.20946 ,67.37385),new google.maps.LatLng(25.07211 ,66.99568),new google.maps.LatLng(24.41548 ,67.80249),new google.maps.LatLng(25.21685 ,67.88601),new google.maps.LatLng(25.45365 ,67.20693),new google.maps.LatLng(24.25616 ,67.19123),new google.maps.LatLng(25.58966 ,67.29125),new google.maps.LatLng(23.98316 ,67.23245),new google.maps.LatLng(24.83030 ,68.00196),new google.maps.LatLng(25.64700 ,66.34467),new google.maps.LatLng(24.77209 ,66.34467),new google.maps.LatLng(25.76295 ,67.30409),new google.maps.LatLng(25.82269 ,67.36463),new google.maps.LatLng(25.12327 ,66.27045),new google.maps.LatLng(24.58423 ,66.58834),new google.maps.LatLng(24.46356 ,67.93604),new google.maps.LatLng(25.15356 ,66.85176),new google.maps.LatLng(25.43422 ,67.64546),new google.maps.LatLng(24.52319 ,66.71752),new google.maps.LatLng(24.47345 ,66.21233),new google.maps.LatLng(24.74990 ,67.94305),new google.maps.LatLng(24.95371 ,66.65833),new google.maps.LatLng(23.98755 ,67.39808),new google.maps.LatLng(25.43994 ,67.34494),new google.maps.LatLng(24.13839 ,66.90016),new google.maps.LatLng(24.69588 ,67.81284),new google.maps.LatLng(25.19655 ,66.78304),new google.maps.LatLng(25.07763 ,66.28606),new google.maps.LatLng(25.67581 ,67.05543),new google.maps.LatLng(24.54375 ,66.45552),new google.maps.LatLng(24.53635 ,66.33964),new google.maps.LatLng(24.83552 ,66.13518),new google.maps.LatLng(24.97827 ,66.25861),new google.maps.LatLng(24.66873 ,67.23803),new google.maps.LatLng(24.88951 ,66.11504),new google.maps.LatLng(24.43314 ,66.29505),new google.maps.LatLng(24.24523 ,67.79786),new google.maps.LatLng(24.88435 ,67.25705),new google.maps.LatLng(24.39447 ,66.27312),new google.maps.LatLng(25.04400 ,67.28004),new google.maps.LatLng(23.98845 ,66.90322),new google.maps.LatLng(24.27731 ,66.78029),new google.maps.LatLng(25.64250 ,67.17262),new google.maps.LatLng(24.13463 ,67.69285),new google.maps.LatLng(24.89216 ,67.29842),new google.maps.LatLng(24.25430 ,67.46773),new google.maps.LatLng(25.06155 ,67.64833),new google.maps.LatLng(24.70652 ,67.91137),new google.maps.LatLng(24.80459 ,66.07734),new google.maps.LatLng(23.96246 ,67.14307),new google.maps.LatLng(24.96010 ,67.29679),new google.maps.LatLng(25.05815 ,67.56742),new google.maps.LatLng(24.93309 ,66.29795),new google.maps.LatLng(25.45294 ,66.62041),new google.maps.LatLng(24.35739 ,66.43390),new google.maps.LatLng(25.57530 ,66.86209),new google.maps.LatLng(25.91838 ,67.37446),new google.maps.LatLng(25.25795 ,66.68159),new google.maps.LatLng(24.65174 ,66.28965),new google.maps.LatLng(25.81684 ,67.16358),new google.maps.LatLng(25.47702 ,67.86085),new google.maps.LatLng(24.55983 ,67.32144),new google.maps.LatLng(25.54589 ,67.48087),new google.maps.LatLng(24.11695 ,66.66374),new google.maps.LatLng(24.31927 ,66.70928),new google.maps.LatLng(24.76731 ,66.83810),new google.maps.LatLng(25.37787 ,67.30984),new google.maps.LatLng(24.62321 ,67.96077),new google.maps.LatLng(25.73654 ,67.45475),new google.maps.LatLng(24.40873 ,67.31971),new google.maps.LatLng(25.20092 ,66.48948),new google.maps.LatLng(24.23336 ,66.83112),new google.maps.LatLng(25.12864 ,66.68676),new google.maps.LatLng(24.80235 ,67.17570),new google.maps.LatLng(25.03333 ,67.95551),new google.maps.LatLng(25.02640 ,67.68600),new google.maps.LatLng(23.97315 ,67.22442),new google.maps.LatLng(24.30974 ,66.95369),new google.maps.LatLng(24.35803 ,66.67016),new google.maps.LatLng(24.21619 ,67.69790),new google.maps.LatLng(25.50918 ,66.88399),new google.maps.LatLng(25.73383 ,67.11387),new google.maps.LatLng(24.58606 ,66.65325),new google.maps.LatLng(25.31573 ,67.92307),new google.maps.LatLng(25.67366 ,66.69530),new google.maps.LatLng(24.59424 ,66.32320),new google.maps.LatLng(25.40393 ,67.11551),new google.maps.LatLng(25.17757 ,66.58414),new google.maps.LatLng(24.09013 ,67.38468),new google.maps.LatLng(24.94642 ,67.76153),new google.maps.LatLng(24.18089 ,67.49950),new google.maps.LatLng(24.67352 ,66.24134),new google.maps.LatLng(25.15333 ,67.75599),new google.maps.LatLng(24.88860 ,67.44662),new google.maps.LatLng(25.05293 ,67.97930),new google.maps.LatLng(24.83668 ,66.99855),new google.maps.LatLng(24.62241 ,66.25708),new google.maps.LatLng(24.21893 ,66.62579),new google.maps.LatLng(24.86035 ,67.64974),new google.maps.LatLng(24.79376 ,67.77412),new google.maps.LatLng(25.00495 ,67.13798),new google.maps.LatLng(25.00488 ,67.12410),new google.maps.LatLng(24.64801 ,67.70179),new google.maps.LatLng(25.72162 ,67.42046),new google.maps.LatLng(25.89902 ,67.20029),new google.maps.LatLng(25.58996 ,67.60297),new google.maps.LatLng(24.84635 ,66.97416),new google.maps.LatLng(25.28630 ,66.67753),new google.maps.LatLng(25.21264 ,66.21034),new google.maps.LatLng(25.36882 ,66.69322),new google.maps.LatLng(24.60899 ,67.38410),new google.maps.LatLng(25.86976 ,67.01561),new google.maps.LatLng(24.10720 ,66.94422),new google.maps.LatLng(25.05238 ,67.80382),new google.maps.LatLng(25.02985 ,66.83670),new google.maps.LatLng(25.50473 ,67.70374),new google.maps.LatLng(24.98335 ,66.07588),new google.maps.LatLng(25.90631 ,66.91087),new google.maps.LatLng(24.61314 ,66.21391),new google.maps.LatLng(25.29570 ,67.33951),new google.maps.LatLng(25.67970 ,67.65500),new google.maps.LatLng(25.20134 ,66.51854),new google.maps.LatLng(24.06723 ,66.88430),new google.maps.LatLng(24.85981 ,66.37265),new google.maps.LatLng(24.27225 ,67.40133),new google.maps.LatLng(25.02403 ,66.53734),new google.maps.LatLng(24.30405 ,67.87497),new google.maps.LatLng(25.10559 ,67.33249),new google.maps.LatLng(23.96063 ,67.37670),new google.maps.LatLng(24.21172 ,66.42383),new google.maps.LatLng(24.31036 ,66.96622),new google.maps.LatLng(24.75673 ,67.60918),new google.maps.LatLng(24.59660 ,67.69340),new google.maps.LatLng(25.64574 ,66.94055),new google.maps.LatLng(25.69199 ,67.53632),new google.maps.LatLng(24.33772 ,66.70690),new google.maps.LatLng(25.50935 ,67.35957),new google.maps.LatLng(24.88717 ,66.84524),new google.maps.LatLng(24.31753 ,67.54859),new google.maps.LatLng(24.36755 ,66.62050),new google.maps.LatLng(25.17579 ,66.63616),new google.maps.LatLng(24.64695 ,66.84645),new google.maps.LatLng(24.54900 ,67.16283),new google.maps.LatLng(25.37219 ,67.23631),new google.maps.LatLng(24.58582 ,66.92284),new google.maps.LatLng(25.38939 ,67.25521),new google.maps.LatLng(25.16125 ,66.96334),new google.maps.LatLng(25.65853 ,66.37395),new google.maps.LatLng(24.61603 ,67.33067),new google.maps.LatLng(24.99603 ,66.96601),new google.maps.LatLng(24.60625 ,66.51291),new google.maps.LatLng(24.93195 ,67.66704),new google.maps.LatLng(25.76070 ,67.32430),new google.maps.LatLng(25.26190 ,67.10636)]; \r\n }\r\n else if(type == 7){\r\n return [new google.maps.LatLng(33.92321 ,73.17848),new google.maps.LatLng(33.76457 ,73.14924),new google.maps.LatLng(33.84657 ,73.18116),new google.maps.LatLng(33.99241 ,73.16494),new google.maps.LatLng(33.59815 ,73.44669),new google.maps.LatLng(33.83016 ,72.91665),new google.maps.LatLng(33.55109 ,72.66404),new google.maps.LatLng(33.90370 ,72.71849),new google.maps.LatLng(33.52719 ,72.59498),new google.maps.LatLng(33.90545 ,73.04242),new google.maps.LatLng(33.34363 ,73.06249),new google.maps.LatLng(34.03649 ,73.10522),new google.maps.LatLng(33.37574 ,72.86758),new google.maps.LatLng(33.49056 ,72.59958),new google.maps.LatLng(33.95942 ,72.88170),new google.maps.LatLng(33.68218 ,73.38701),new google.maps.LatLng(33.67235 ,72.63566),new google.maps.LatLng(33.79589 ,73.27702),new google.maps.LatLng(33.73225 ,72.65251),new google.maps.LatLng(33.39351 ,72.99415),new google.maps.LatLng(33.52750 ,73.02472),new google.maps.LatLng(33.43967 ,72.87097),new google.maps.LatLng(33.51895 ,72.91557),new google.maps.LatLng(33.70805 ,73.35710),new google.maps.LatLng(33.71877 ,73.21319),new google.maps.LatLng(33.48981 ,73.23090),new google.maps.LatLng(33.53428 ,73.10433),new google.maps.LatLng(33.80328 ,73.10950),new google.maps.LatLng(33.75518 ,72.61153),new google.maps.LatLng(33.29714 ,72.79921),new google.maps.LatLng(33.33546 ,73.11314),new google.maps.LatLng(33.94010 ,73.35303),new google.maps.LatLng(33.34343 ,73.14884),new google.maps.LatLng(34.03126 ,72.83150),new google.maps.LatLng(34.03165 ,72.86187),new google.maps.LatLng(33.98865 ,72.74251),new google.maps.LatLng(33.30582 ,73.18958),new google.maps.LatLng(33.59517 ,72.92223),new google.maps.LatLng(33.56979 ,73.31934),new google.maps.LatLng(33.73859 ,73.11827),new google.maps.LatLng(34.12661 ,73.19642),new google.maps.LatLng(33.46541 ,73.11359),new google.maps.LatLng(33.77121 ,73.42350),new google.maps.LatLng(33.63339 ,73.03985),new google.maps.LatLng(33.62283 ,72.84761),new google.maps.LatLng(34.01702 ,73.24027),new google.maps.LatLng(33.77976 ,72.66043),new google.maps.LatLng(33.90231 ,73.36996),new google.maps.LatLng(34.01430 ,73.14279),new google.maps.LatLng(33.24420 ,72.95731),new google.maps.LatLng(33.33087 ,72.85050),new google.maps.LatLng(33.79711 ,72.64256),new google.maps.LatLng(33.96593 ,73.29962),new google.maps.LatLng(33.67786 ,73.20207),new google.maps.LatLng(33.61393 ,72.55344),new google.maps.LatLng(33.74065 ,73.44778),new google.maps.LatLng(33.74380 ,72.58662),new google.maps.LatLng(33.60523 ,73.17375),new google.maps.LatLng(33.99816 ,73.32383),new google.maps.LatLng(33.48272 ,73.12560),new google.maps.LatLng(34.13094 ,72.91550),new google.maps.LatLng(33.65389 ,72.67687),new google.maps.LatLng(33.43700 ,73.26795),new google.maps.LatLng(33.90422 ,73.04904),new google.maps.LatLng(33.30913 ,72.94770),new google.maps.LatLng(34.03248 ,73.07196),new google.maps.LatLng(33.99619 ,73.03150),new google.maps.LatLng(33.62071 ,73.41323),new google.maps.LatLng(33.50070 ,72.82914),new google.maps.LatLng(33.44324 ,73.29853),new google.maps.LatLng(33.43565 ,72.98780),new google.maps.LatLng(33.46918 ,72.82591),new google.maps.LatLng(33.59055 ,73.26226),new google.maps.LatLng(34.12392 ,73.01308),new google.maps.LatLng(33.48976 ,72.80070),new google.maps.LatLng(34.02168 ,72.76112),new google.maps.LatLng(33.72906 ,73.32903),new google.maps.LatLng(34.14589 ,73.01527),new google.maps.LatLng(34.14283 ,72.87903),new google.maps.LatLng(33.55777 ,72.80358),new google.maps.LatLng(33.45498 ,73.23304),new google.maps.LatLng(33.50057 ,72.85218),new google.maps.LatLng(33.29361 ,73.04486),new google.maps.LatLng(33.89567 ,73.12756),new google.maps.LatLng(33.85703 ,72.99647),new google.maps.LatLng(33.68508 ,73.01997),new google.maps.LatLng(33.84759 ,72.67386),new google.maps.LatLng(33.79228 ,73.24615),new google.maps.LatLng(33.80688 ,72.94433),new google.maps.LatLng(34.05930 ,72.78278),new google.maps.LatLng(33.60683 ,73.39332),new google.maps.LatLng(33.79507 ,72.65511),new google.maps.LatLng(33.59888 ,72.66663),new google.maps.LatLng(33.86625 ,72.97829),new google.maps.LatLng(33.72138 ,72.70835),new google.maps.LatLng(33.61408 ,72.94455),new google.maps.LatLng(33.35614 ,72.77765),new google.maps.LatLng(33.67315 ,73.04760),new google.maps.LatLng(33.78730 ,73.10391),new google.maps.LatLng(33.58867 ,73.10529),new google.maps.LatLng(33.70602 ,72.83463),new google.maps.LatLng(33.77718 ,72.79583),new google.maps.LatLng(33.50720 ,73.04121),new google.maps.LatLng(33.40185 ,73.14357),new google.maps.LatLng(33.75867 ,73.10953),new google.maps.LatLng(33.62562 ,72.61817),new google.maps.LatLng(33.97398 ,73.24842),new google.maps.LatLng(33.64104 ,72.71946),new google.maps.LatLng(33.62752 ,73.46551),new google.maps.LatLng(33.88046 ,73.17356),new google.maps.LatLng(33.87349 ,73.00327),new google.maps.LatLng(33.77059 ,73.30566),new google.maps.LatLng(33.43060 ,73.07474),new google.maps.LatLng(33.91493 ,72.92526),new google.maps.LatLng(33.91620 ,72.93408),new google.maps.LatLng(33.61136 ,73.20393),new google.maps.LatLng(33.34040 ,72.86384),new google.maps.LatLng(33.75914 ,72.65344),new google.maps.LatLng(33.68867 ,72.63678),new google.maps.LatLng(33.32272 ,73.28376),new google.maps.LatLng(34.15871 ,72.99143),new google.maps.LatLng(33.91557 ,72.96680),new google.maps.LatLng(33.81569 ,73.38569),new google.maps.LatLng(33.53074 ,72.72910),new google.maps.LatLng(33.82036 ,73.17569),new google.maps.LatLng(33.94492 ,73.32640),new google.maps.LatLng(33.89458 ,72.89238),new google.maps.LatLng(33.79162 ,73.29736),new google.maps.LatLng(33.59073 ,72.95036),new google.maps.LatLng(33.89897 ,73.43703),new google.maps.LatLng(33.23814 ,72.88400),new google.maps.LatLng(33.73478 ,72.76333),new google.maps.LatLng(33.36598 ,72.76758),new google.maps.LatLng(33.42615 ,72.62079),new google.maps.LatLng(33.60640 ,72.75229),new google.maps.LatLng(34.11100 ,72.86763),new google.maps.LatLng(33.41593 ,73.34635),new google.maps.LatLng(34.12034 ,72.92500),new google.maps.LatLng(33.80049 ,72.80489),new google.maps.LatLng(33.57478 ,73.44422),new google.maps.LatLng(33.78191 ,73.51693),new google.maps.LatLng(33.99358 ,73.13348),new google.maps.LatLng(34.12897 ,72.85511),new google.maps.LatLng(33.91753 ,72.89177),new google.maps.LatLng(33.65361 ,72.85198),new google.maps.LatLng(33.67036 ,72.87047),new google.maps.LatLng(33.85195 ,72.93457),new google.maps.LatLng(33.86219 ,73.11531),new google.maps.LatLng(33.47150 ,73.38367),new google.maps.LatLng(33.61697 ,73.21078),new google.maps.LatLng(33.56537 ,73.32418),new google.maps.LatLng(33.29954 ,73.13152),new google.maps.LatLng(33.97497 ,73.30986),new google.maps.LatLng(33.52216 ,73.10789),new google.maps.LatLng(34.05431 ,73.01212),new google.maps.LatLng(33.49981 ,73.15614),new google.maps.LatLng(33.81925 ,72.59853),new google.maps.LatLng(33.90847 ,73.45898),new google.maps.LatLng(33.96386 ,73.42494),new google.maps.LatLng(33.80524 ,72.67830),new google.maps.LatLng(33.65168 ,73.11162),new google.maps.LatLng(33.86540 ,73.05611),new google.maps.LatLng(33.73179 ,73.26229),new google.maps.LatLng(33.40701 ,73.19710),new google.maps.LatLng(33.60442 ,72.60375),new google.maps.LatLng(34.15380 ,72.88475),new google.maps.LatLng(33.62631 ,73.37974),new google.maps.LatLng(33.80326 ,72.92796),new google.maps.LatLng(34.06905 ,73.17690),new google.maps.LatLng(33.69130 ,73.23116),new google.maps.LatLng(33.55643 ,72.59612),new google.maps.LatLng(34.04751 ,72.91311),new google.maps.LatLng(33.59769 ,72.95421),new google.maps.LatLng(33.79425 ,72.89871),new google.maps.LatLng(33.37109 ,72.75987),new google.maps.LatLng(33.68940 ,72.89439),new google.maps.LatLng(33.56425 ,73.41313),new google.maps.LatLng(33.40262 ,72.95201),new google.maps.LatLng(33.59001 ,72.59483),new google.maps.LatLng(33.40036 ,73.14385),new google.maps.LatLng(33.51455 ,73.45909),new google.maps.LatLng(33.34101 ,73.26945),new google.maps.LatLng(33.83250 ,72.83116),new google.maps.LatLng(33.92336 ,73.32961),new google.maps.LatLng(33.63558 ,72.65389),new google.maps.LatLng(33.92811 ,72.68775),new google.maps.LatLng(33.26932 ,72.99504),new google.maps.LatLng(33.60212 ,73.35627),new google.maps.LatLng(33.74095 ,73.01287),new google.maps.LatLng(33.99313 ,72.99095),new google.maps.LatLng(33.61304 ,72.79425),new google.maps.LatLng(33.66181 ,73.05928),new google.maps.LatLng(34.16949 ,72.95147),new google.maps.LatLng(34.14111 ,73.09642),new google.maps.LatLng(33.83395 ,73.28012),new google.maps.LatLng(34.03820 ,73.00474),new google.maps.LatLng(33.39784 ,72.92896),new google.maps.LatLng(33.73051 ,72.63370),new google.maps.LatLng(33.51540 ,72.65028),new google.maps.LatLng(33.58563 ,73.49196),new google.maps.LatLng(33.76760 ,73.22142),new google.maps.LatLng(33.61988 ,73.00123),new google.maps.LatLng(33.85943 ,72.59554),new google.maps.LatLng(34.04821 ,73.21264),new google.maps.LatLng(33.79903 ,72.75045),new google.maps.LatLng(33.27556 ,73.08839),new google.maps.LatLng(33.22410 ,72.87886),new google.maps.LatLng(33.87640 ,73.12429),new google.maps.LatLng(33.68665 ,73.43724),new google.maps.LatLng(33.71481 ,72.77051),new google.maps.LatLng(33.67221 ,72.93013),new google.maps.LatLng(33.84038 ,72.67755),new google.maps.LatLng(34.06698 ,72.77371),new google.maps.LatLng(33.69022 ,73.43947),new google.maps.LatLng(33.91158 ,73.00624),new google.maps.LatLng(34.01604 ,73.14026),new google.maps.LatLng(33.41034 ,73.04703),new google.maps.LatLng(33.44622 ,73.33752),new google.maps.LatLng(34.11187 ,73.05088),new google.maps.LatLng(34.04757 ,73.24956),new google.maps.LatLng(33.75536 ,72.76708),new google.maps.LatLng(33.90315 ,73.36489),new google.maps.LatLng(33.59077 ,73.00291),new google.maps.LatLng(33.45465 ,72.86125),new google.maps.LatLng(33.58189 ,72.67131),new google.maps.LatLng(33.72485 ,72.86667),new google.maps.LatLng(33.95895 ,72.93047),new google.maps.LatLng(33.95024 ,73.28010),new google.maps.LatLng(33.57372 ,72.97304),new google.maps.LatLng(34.08251 ,72.82882),new google.maps.LatLng(33.60550 ,72.87219),new google.maps.LatLng(33.31425 ,73.01059),new google.maps.LatLng(33.38291 ,73.11112),new google.maps.LatLng(33.59245 ,72.79232),new google.maps.LatLng(33.92432 ,73.00557),new google.maps.LatLng(33.47381 ,72.87025),new google.maps.LatLng(33.43486 ,73.44136),new google.maps.LatLng(33.80517 ,73.24647),new google.maps.LatLng(33.60661 ,73.38486),new google.maps.LatLng(33.77455 ,72.91466),new google.maps.LatLng(34.15509 ,73.02131),new google.maps.LatLng(33.34849 ,73.35174),new google.maps.LatLng(33.79870 ,72.96865),new google.maps.LatLng(33.59776 ,72.98571),new google.maps.LatLng(33.47977 ,72.86514),new google.maps.LatLng(33.52135 ,72.70070),new google.maps.LatLng(33.93242 ,72.60946),new google.maps.LatLng(33.59183 ,72.87539),new google.maps.LatLng(33.56893 ,73.11837),new google.maps.LatLng(33.33864 ,73.34146),new google.maps.LatLng(33.80265 ,73.41445),new google.maps.LatLng(33.66140 ,72.76292),new google.maps.LatLng(33.29401 ,72.94734),new google.maps.LatLng(33.84942 ,73.02778),new google.maps.LatLng(33.78231 ,72.85096),new google.maps.LatLng(33.75739 ,72.68546),new google.maps.LatLng(33.66914 ,72.56457),new google.maps.LatLng(33.74474 ,73.14841),new google.maps.LatLng(33.51259 ,73.44645),new google.maps.LatLng(33.76089 ,72.57548),new google.maps.LatLng(33.28232 ,73.08691),new google.maps.LatLng(34.00368 ,72.83802),new google.maps.LatLng(33.64612 ,73.20869),new google.maps.LatLng(33.68906 ,72.78532),new google.maps.LatLng(33.44175 ,73.02809),new google.maps.LatLng(33.51430 ,73.19805),new google.maps.LatLng(33.63997 ,73.11877),new google.maps.LatLng(33.76975 ,72.67838),new google.maps.LatLng(33.97391 ,72.77947),new google.maps.LatLng(33.42256 ,73.04499),new google.maps.LatLng(33.77480 ,73.26349),new google.maps.LatLng(33.55324 ,73.48173),new google.maps.LatLng(33.37837 ,73.28961),new google.maps.LatLng(33.34266 ,73.05474),new google.maps.LatLng(33.89146 ,73.16148),new google.maps.LatLng(33.54382 ,72.85555),new google.maps.LatLng(33.77445 ,72.73688),new google.maps.LatLng(33.71944 ,73.51240),new google.maps.LatLng(33.91887 ,73.01550),new google.maps.LatLng(33.86452 ,72.87063),new google.maps.LatLng(33.51890 ,73.16052),new google.maps.LatLng(33.37722 ,73.30391),new google.maps.LatLng(33.61285 ,72.61886),new google.maps.LatLng(33.81506 ,73.17513),new google.maps.LatLng(33.74309 ,72.65397),new google.maps.LatLng(33.59708 ,72.79820),new google.maps.LatLng(33.98862 ,72.67654),new google.maps.LatLng(34.15629 ,72.96895),new google.maps.LatLng(33.67752 ,73.10233),new google.maps.LatLng(34.03008 ,72.76570),new google.maps.LatLng(33.93588 ,72.86372),new google.maps.LatLng(33.88286 ,73.30131),new google.maps.LatLng(33.46162 ,73.11720),new google.maps.LatLng(33.69335 ,73.18712),new google.maps.LatLng(34.10120 ,72.94686),new google.maps.LatLng(33.63817 ,72.58099),new google.maps.LatLng(33.86878 ,72.69895),new google.maps.LatLng(33.30086 ,73.11675),new google.maps.LatLng(33.80958 ,73.01210),new google.maps.LatLng(34.14153 ,73.06296),new google.maps.LatLng(33.29089 ,73.02402),new google.maps.LatLng(33.40545 ,73.43586),new google.maps.LatLng(33.57136 ,73.45722),new google.maps.LatLng(33.93406 ,73.34887),new google.maps.LatLng(33.50470 ,72.80427),new google.maps.LatLng(33.44710 ,72.99167),new google.maps.LatLng(33.80718 ,73.13096),new google.maps.LatLng(33.64793 ,73.24779),new google.maps.LatLng(33.59508 ,73.40986),new google.maps.LatLng(33.97733 ,73.17539),new google.maps.LatLng(33.91978 ,72.96186),new google.maps.LatLng(33.42130 ,72.95806),new google.maps.LatLng(33.66138 ,72.62489),new google.maps.LatLng(33.64446 ,73.50396),new google.maps.LatLng(33.75454 ,72.74287),new google.maps.LatLng(33.94446 ,72.93767),new google.maps.LatLng(33.50588 ,73.00456),new google.maps.LatLng(33.69297 ,73.42972),new google.maps.LatLng(33.63131 ,73.24796),new google.maps.LatLng(33.25759 ,73.10803),new google.maps.LatLng(33.88712 ,73.26010),new google.maps.LatLng(33.94874 ,73.37155),new google.maps.LatLng(33.41909 ,73.02813),new google.maps.LatLng(33.32249 ,73.07938),new google.maps.LatLng(33.84075 ,73.43626),new google.maps.LatLng(33.65710 ,72.67465),new google.maps.LatLng(33.99190 ,72.85847),new google.maps.LatLng(33.27926 ,72.94164),new google.maps.LatLng(34.11706 ,73.21620),new google.maps.LatLng(33.49804 ,73.13312),new google.maps.LatLng(33.94452 ,73.03912),new google.maps.LatLng(33.86474 ,73.37512),new google.maps.LatLng(33.40710 ,72.83829),new google.maps.LatLng(33.67312 ,73.12648),new google.maps.LatLng(33.92791 ,72.65742),new google.maps.LatLng(33.38576 ,72.81737),new google.maps.LatLng(33.45859 ,72.94622),new google.maps.LatLng(33.90567 ,73.15739),new google.maps.LatLng(33.74798 ,72.87469),new google.maps.LatLng(33.70477 ,73.18177),new google.maps.LatLng(33.78559 ,72.95156),new google.maps.LatLng(33.70453 ,72.79063),new google.maps.LatLng(33.43613 ,73.26608),new google.maps.LatLng(33.94113 ,73.15188),new google.maps.LatLng(34.05077 ,73.09523),new google.maps.LatLng(33.27763 ,72.82612),new google.maps.LatLng(33.28273 ,72.84998),new google.maps.LatLng(33.92050 ,73.25599),new google.maps.LatLng(33.39072 ,72.98689),new google.maps.LatLng(33.42352 ,73.39935),new google.maps.LatLng(33.87160 ,73.11242),new google.maps.LatLng(33.70833 ,72.88336),new google.maps.LatLng(33.88847 ,73.47921),new google.maps.LatLng(33.60833 ,72.95311),new google.maps.LatLng(33.37231 ,73.09238),new google.maps.LatLng(33.50291 ,72.87883),new google.maps.LatLng(33.22325 ,72.89123),new google.maps.LatLng(33.72240 ,72.62903),new google.maps.LatLng(33.88808 ,72.94244),new google.maps.LatLng(33.66198 ,72.82872),new google.maps.LatLng(33.94189 ,73.45519),new google.maps.LatLng(33.67746 ,73.21978),new google.maps.LatLng(33.71271 ,73.46325),new google.maps.LatLng(33.63276 ,73.47811),new google.maps.LatLng(33.69437 ,73.31601),new google.maps.LatLng(33.61851 ,73.32494),new google.maps.LatLng(33.67475 ,73.46871),new google.maps.LatLng(33.53587 ,73.21308),new google.maps.LatLng(34.13264 ,73.23607),new google.maps.LatLng(34.07022 ,72.93546),new google.maps.LatLng(33.61367 ,72.76308),new google.maps.LatLng(33.52554 ,73.17410),new google.maps.LatLng(33.83914 ,72.57265),new google.maps.LatLng(33.33235 ,72.76385),new google.maps.LatLng(33.90104 ,72.62107),new google.maps.LatLng(33.91815 ,73.15720),new google.maps.LatLng(33.94453 ,72.70801),new google.maps.LatLng(33.62617 ,73.18621),new google.maps.LatLng(33.73174 ,73.14175),new google.maps.LatLng(33.62452 ,73.00105),new google.maps.LatLng(33.36051 ,73.12580),new google.maps.LatLng(33.25692 ,72.96742),new google.maps.LatLng(33.95990 ,72.79477),new google.maps.LatLng(34.04342 ,73.10532),new google.maps.LatLng(34.11064 ,73.09843),new google.maps.LatLng(33.88220 ,73.27587),new google.maps.LatLng(33.86651 ,72.98458),new google.maps.LatLng(33.38026 ,72.82794),new google.maps.LatLng(33.62797 ,73.29145),new google.maps.LatLng(33.59718 ,72.85553),new google.maps.LatLng(33.54688 ,73.37935),new google.maps.LatLng(33.65418 ,72.98070),new google.maps.LatLng(33.93316 ,72.99530),new google.maps.LatLng(33.39993 ,73.43473),new google.maps.LatLng(33.89129 ,72.64109),new google.maps.LatLng(33.76071 ,72.78469),new google.maps.LatLng(33.38255 ,72.84985),new google.maps.LatLng(33.94207 ,73.43752),new google.maps.LatLng(33.62408 ,72.91165),new google.maps.LatLng(34.14105 ,72.93483),new google.maps.LatLng(33.75816 ,72.55294),new google.maps.LatLng(33.75304 ,73.16551),new google.maps.LatLng(33.63044 ,72.65091),new google.maps.LatLng(33.45527 ,72.75386),new google.maps.LatLng(33.22261 ,73.11984),new google.maps.LatLng(34.04783 ,73.13648),new google.maps.LatLng(33.53553 ,72.56908),new google.maps.LatLng(34.03340 ,72.91417),new google.maps.LatLng(33.60724 ,73.36823),new google.maps.LatLng(33.24312 ,73.17567),new google.maps.LatLng(33.68621 ,72.75754),new google.maps.LatLng(33.39824 ,73.25976),new google.maps.LatLng(33.95315 ,73.04142),new google.maps.LatLng(33.76033 ,72.84650),new google.maps.LatLng(33.26539 ,72.88998),new google.maps.LatLng(33.71643 ,72.84378),new google.maps.LatLng(33.89657 ,72.91575),new google.maps.LatLng(33.89144 ,73.03945),new google.maps.LatLng(33.73779 ,72.91270),new google.maps.LatLng(33.27318 ,73.25229),new google.maps.LatLng(33.75517 ,72.70004),new google.maps.LatLng(33.70641 ,73.17842),new google.maps.LatLng(33.58871 ,72.59371),new google.maps.LatLng(33.87619 ,72.98515),new google.maps.LatLng(34.03481 ,73.25013),new google.maps.LatLng(34.07768 ,72.93936),new google.maps.LatLng(34.03561 ,73.13190),new google.maps.LatLng(33.63047 ,73.17459),new google.maps.LatLng(33.88860 ,73.20651),new google.maps.LatLng(33.47023 ,72.70517),new google.maps.LatLng(33.63399 ,72.66288),new google.maps.LatLng(33.99080 ,72.72001),new google.maps.LatLng(33.60416 ,73.49606),new google.maps.LatLng(33.36903 ,73.23742),new google.maps.LatLng(33.73059 ,72.72383),new google.maps.LatLng(33.46854 ,72.69962),new google.maps.LatLng(33.58271 ,73.07772),new google.maps.LatLng(33.74751 ,72.94201),new google.maps.LatLng(33.38599 ,73.38042),new google.maps.LatLng(33.46199 ,73.37626),new google.maps.LatLng(33.90080 ,72.68351),new google.maps.LatLng(33.90789 ,72.85093),new google.maps.LatLng(34.15397 ,73.10779),new google.maps.LatLng(33.54881 ,72.82365),new google.maps.LatLng(34.09680 ,72.97562),new google.maps.LatLng(33.95725 ,72.94871),new google.maps.LatLng(34.16602 ,72.97906),new google.maps.LatLng(33.35702 ,73.23253),new google.maps.LatLng(33.41394 ,72.76433),new google.maps.LatLng(33.88190 ,73.39113),new google.maps.LatLng(33.60984 ,73.13770),new google.maps.LatLng(33.80556 ,72.92031),new google.maps.LatLng(33.71360 ,72.70515),new google.maps.LatLng(33.56319 ,72.85207),new google.maps.LatLng(33.33245 ,72.96049),new google.maps.LatLng(33.50402 ,73.32877),new google.maps.LatLng(33.59834 ,73.31456),new google.maps.LatLng(33.62372 ,72.75274),new google.maps.LatLng(33.62475 ,72.58277),new google.maps.LatLng(34.08608 ,72.83913),new google.maps.LatLng(33.64542 ,73.26143),new google.maps.LatLng(33.71837 ,73.21182),new google.maps.LatLng(33.87840 ,72.62766),new google.maps.LatLng(33.86575 ,73.42996),new google.maps.LatLng(33.69407 ,73.17918),new google.maps.LatLng(33.99931 ,73.12580),new google.maps.LatLng(33.33261 ,72.97096),new google.maps.LatLng(33.31382 ,73.20550),new google.maps.LatLng(33.37867 ,73.24104),new google.maps.LatLng(33.45732 ,73.17532),new google.maps.LatLng(33.77497 ,73.17775),new google.maps.LatLng(33.87220 ,73.14027),new google.maps.LatLng(33.90523 ,73.37030),new google.maps.LatLng(33.47384 ,73.33437),new google.maps.LatLng(33.96610 ,72.83497),new google.maps.LatLng(33.68011 ,73.38007),new google.maps.LatLng(34.11055 ,73.12320),new google.maps.LatLng(33.83931 ,72.78863),new google.maps.LatLng(33.66046 ,72.71550),new google.maps.LatLng(34.04303 ,73.07503),new google.maps.LatLng(33.86601 ,73.10420),new google.maps.LatLng(33.80216 ,73.24517),new google.maps.LatLng(33.36892 ,73.20767),new google.maps.LatLng(33.29679 ,73.01435),new google.maps.LatLng(33.54164 ,73.28680),new google.maps.LatLng(33.56915 ,73.34051),new google.maps.LatLng(33.77630 ,73.17906),new google.maps.LatLng(34.03179 ,73.27083),new google.maps.LatLng(34.09868 ,73.28487),new google.maps.LatLng(33.55781 ,72.67285),new google.maps.LatLng(33.87248 ,72.67446),new google.maps.LatLng(33.52087 ,72.87455),new google.maps.LatLng(33.73860 ,73.48798),new google.maps.LatLng(33.62450 ,72.92299),new google.maps.LatLng(33.67993 ,73.28085),new google.maps.LatLng(33.68297 ,73.52780),new google.maps.LatLng(33.90932 ,73.23791),new google.maps.LatLng(33.65423 ,73.07105),new google.maps.LatLng(33.42467 ,72.80415),new google.maps.LatLng(33.70211 ,73.18047),new google.maps.LatLng(33.90818 ,73.16006),new google.maps.LatLng(33.88875 ,72.64852),new google.maps.LatLng(33.55551 ,73.10703),new google.maps.LatLng(33.89384 ,72.95406),new google.maps.LatLng(33.39893 ,73.07517),new google.maps.LatLng(33.52986 ,73.46400),new google.maps.LatLng(34.10100 ,72.91231),new google.maps.LatLng(33.41618 ,73.43004),new google.maps.LatLng(33.63098 ,73.41748),new google.maps.LatLng(33.33951 ,72.94375),new google.maps.LatLng(33.74976 ,73.34368),new google.maps.LatLng(33.72867 ,73.18840),new google.maps.LatLng(33.69838 ,73.01078),new google.maps.LatLng(33.66172 ,73.40933),new google.maps.LatLng(33.64991 ,72.64514),new google.maps.LatLng(33.87383 ,72.80654),new google.maps.LatLng(33.99726 ,73.17624),new google.maps.LatLng(33.48322 ,73.19854),new google.maps.LatLng(33.66371 ,73.10786),new google.maps.LatLng(33.65793 ,73.11145),new google.maps.LatLng(33.97585 ,72.95401),new google.maps.LatLng(33.63004 ,73.34010),new google.maps.LatLng(33.44972 ,72.75864),new google.maps.LatLng(33.80031 ,73.32436),new google.maps.LatLng(33.60266 ,73.18649),new google.maps.LatLng(33.86706 ,72.59113),new google.maps.LatLng(33.63740 ,73.34447),new google.maps.LatLng(33.69637 ,73.35456),new google.maps.LatLng(33.63414 ,73.19643),new google.maps.LatLng(33.27201 ,72.77750),new google.maps.LatLng(33.80239 ,72.88294),new google.maps.LatLng(33.38058 ,72.92623),new google.maps.LatLng(33.73226 ,72.71166),new google.maps.LatLng(33.49090 ,73.20631),new google.maps.LatLng(33.88978 ,73.16931),new google.maps.LatLng(34.04702 ,73.05923),new google.maps.LatLng(33.90052 ,73.43436),new google.maps.LatLng(33.95347 ,73.10578),new google.maps.LatLng(33.66167 ,72.72565),new google.maps.LatLng(33.63853 ,73.17898),new google.maps.LatLng(34.07597 ,73.25932),new google.maps.LatLng(33.51087 ,72.71277),new google.maps.LatLng(33.79610 ,73.48404),new google.maps.LatLng(33.99373 ,73.02265),new google.maps.LatLng(33.35614 ,73.39176),new google.maps.LatLng(34.16371 ,73.08799),new google.maps.LatLng(33.55287 ,73.41613),new google.maps.LatLng(33.58584 ,72.93383),new google.maps.LatLng(33.65630 ,73.20527),new google.maps.LatLng(33.87577 ,73.35930),new google.maps.LatLng(33.71806 ,72.67301),new google.maps.LatLng(33.29053 ,73.25939),new google.maps.LatLng(33.55023 ,72.57202),new google.maps.LatLng(33.78575 ,72.97516),new google.maps.LatLng(33.55333 ,72.88410),new google.maps.LatLng(33.95609 ,72.80993),new google.maps.LatLng(33.82915 ,72.69376),new google.maps.LatLng(33.52259 ,72.86915),new google.maps.LatLng(33.77621 ,73.03246),new google.maps.LatLng(33.36598 ,73.40334),new google.maps.LatLng(33.23817 ,73.18889),new google.maps.LatLng(33.97492 ,73.11181),new google.maps.LatLng(33.52965 ,73.48958),new google.maps.LatLng(33.37561 ,73.07430),new google.maps.LatLng(33.69319 ,72.57646),new google.maps.LatLng(33.71287 ,73.24399),new google.maps.LatLng(33.73366 ,72.59333),new google.maps.LatLng(33.71120 ,72.96068),new google.maps.LatLng(33.54476 ,73.26218),new google.maps.LatLng(33.33152 ,73.35940),new google.maps.LatLng(33.68236 ,72.61201),new google.maps.LatLng(33.76442 ,73.35423),new google.maps.LatLng(34.12553 ,72.89937),new google.maps.LatLng(33.72336 ,72.61058),new google.maps.LatLng(33.70060 ,73.33602),new google.maps.LatLng(33.98058 ,73.14744),new google.maps.LatLng(33.69708 ,72.89262),new google.maps.LatLng(33.94265 ,72.63570),new google.maps.LatLng(33.67475 ,72.57310),new google.maps.LatLng(33.28508 ,73.07176),new google.maps.LatLng(33.45798 ,72.64413),new google.maps.LatLng(33.66050 ,73.15526),new google.maps.LatLng(33.55584 ,73.49463),new google.maps.LatLng(33.38513 ,72.92057),new google.maps.LatLng(33.97437 ,72.75008),new google.maps.LatLng(33.96519 ,73.03316),new google.maps.LatLng(33.47416 ,73.07815),new google.maps.LatLng(33.39040 ,73.15507),new google.maps.LatLng(33.71776 ,72.73533),new google.maps.LatLng(33.88660 ,73.14896),new google.maps.LatLng(33.90167 ,72.93877),new google.maps.LatLng(33.73561 ,72.64022),new google.maps.LatLng(33.66809 ,72.78006),new google.maps.LatLng(33.90964 ,73.19222),new google.maps.LatLng(33.36120 ,73.27662),new google.maps.LatLng(34.02912 ,73.38076),new google.maps.LatLng(33.71594 ,73.09550),new google.maps.LatLng(33.77702 ,72.77170),new google.maps.LatLng(33.97102 ,73.33628),new google.maps.LatLng(34.13102 ,73.23057),new google.maps.LatLng(33.27656 ,72.99642),new google.maps.LatLng(33.53747 ,72.80515),new google.maps.LatLng(33.78990 ,73.03626),new google.maps.LatLng(33.31189 ,73.11373),new google.maps.LatLng(33.44350 ,72.74904),new google.maps.LatLng(33.89193 ,73.16091),new google.maps.LatLng(33.83848 ,72.57583),new google.maps.LatLng(33.67938 ,73.48553),new google.maps.LatLng(33.72047 ,73.40257),new google.maps.LatLng(33.47100 ,73.34184),new google.maps.LatLng(33.40259 ,72.85572),new google.maps.LatLng(33.72337 ,73.02943),new google.maps.LatLng(33.74333 ,73.41994),new google.maps.LatLng(33.47367 ,73.23309),new google.maps.LatLng(33.72229 ,73.32957),new google.maps.LatLng(33.91886 ,72.97673),new google.maps.LatLng(33.60055 ,72.73745),new google.maps.LatLng(33.79441 ,73.23128),new google.maps.LatLng(33.37643 ,73.20426),new google.maps.LatLng(33.76213 ,73.21249),new google.maps.LatLng(33.41478 ,73.17929),new google.maps.LatLng(33.29113 ,72.88823),new google.maps.LatLng(33.65132 ,72.72375),new google.maps.LatLng(34.09498 ,72.79156),new google.maps.LatLng(33.40259 ,73.14342),new google.maps.LatLng(33.46141 ,73.28902),new google.maps.LatLng(33.87623 ,73.09184),new google.maps.LatLng(33.74954 ,72.99291),new google.maps.LatLng(33.77897 ,73.26014),new google.maps.LatLng(33.33708 ,72.86518),new google.maps.LatLng(33.38654 ,73.32547),new google.maps.LatLng(34.00325 ,73.29537),new google.maps.LatLng(34.13833 ,73.20678),new google.maps.LatLng(34.07837 ,73.07823),new google.maps.LatLng(33.49566 ,72.74336),new google.maps.LatLng(33.81400 ,72.70356),new google.maps.LatLng(33.42486 ,73.18944),new google.maps.LatLng(33.39286 ,72.82799),new google.maps.LatLng(33.68576 ,73.45083),new google.maps.LatLng(33.64099 ,73.13003),new google.maps.LatLng(33.30094 ,72.90822),new google.maps.LatLng(33.71090 ,72.84055),new google.maps.LatLng(33.48413 ,72.96249),new google.maps.LatLng(34.01669 ,72.96305),new google.maps.LatLng(33.71832 ,73.26759),new google.maps.LatLng(33.52790 ,72.73684),new google.maps.LatLng(33.82620 ,72.93683),new google.maps.LatLng(33.91569 ,73.27493),new google.maps.LatLng(33.73274 ,72.79328),new google.maps.LatLng(33.29177 ,72.85663),new google.maps.LatLng(33.67261 ,73.37790),new google.maps.LatLng(33.58122 ,73.48479),new google.maps.LatLng(33.92863 ,73.24648),new google.maps.LatLng(34.06041 ,72.79087),new google.maps.LatLng(33.48381 ,72.69327),new google.maps.LatLng(33.22701 ,73.18270),new google.maps.LatLng(33.72418 ,73.33138),new google.maps.LatLng(33.83238 ,72.86025),new google.maps.LatLng(34.08427 ,72.74287),new google.maps.LatLng(33.70667 ,72.94394),new google.maps.LatLng(33.77955 ,72.93259),new google.maps.LatLng(33.53419 ,72.57959),new google.maps.LatLng(33.60251 ,73.25614),new google.maps.LatLng(33.61204 ,72.96971),new google.maps.LatLng(33.93025 ,72.74034),new google.maps.LatLng(33.84618 ,72.80522),new google.maps.LatLng(33.42386 ,72.82233),new google.maps.LatLng(33.88883 ,72.68428),new google.maps.LatLng(33.39657 ,73.02992),new google.maps.LatLng(33.85443 ,73.02169),new google.maps.LatLng(33.74632 ,72.98781),new google.maps.LatLng(33.49897 ,73.36795),new google.maps.LatLng(33.91599 ,72.84750),new google.maps.LatLng(33.65815 ,72.73084),new google.maps.LatLng(33.46030 ,72.95797),new google.maps.LatLng(33.25333 ,73.03171),new google.maps.LatLng(33.37398 ,72.70838),new google.maps.LatLng(33.92288 ,72.78368),new google.maps.LatLng(34.10037 ,72.80161),new google.maps.LatLng(33.66953 ,72.61588),new google.maps.LatLng(31.50026 ,74.37638),new google.maps.LatLng(31.90316 ,74.00778),new google.maps.LatLng(31.24420 ,74.21093),new google.maps.LatLng(31.94852 ,74.47449),new google.maps.LatLng(31.32315 ,74.80796),new google.maps.LatLng(31.96135 ,74.52713),new google.maps.LatLng(31.07413 ,74.33419),new google.maps.LatLng(31.98828 ,74.68266),new google.maps.LatLng(31.59701 ,74.27240),new google.maps.LatLng(31.33463 ,73.82347),new google.maps.LatLng(32.06509 ,74.36752),new google.maps.LatLng(31.17046 ,74.24117),new google.maps.LatLng(31.88258 ,74.36011),new google.maps.LatLng(31.74858 ,74.77139),new google.maps.LatLng(31.84232 ,74.65788),new google.maps.LatLng(31.30736 ,74.87246),new google.maps.LatLng(31.58399 ,74.67437),new google.maps.LatLng(31.85630 ,73.92591),new google.maps.LatLng(31.45023 ,74.79749),new google.maps.LatLng(31.62677 ,73.81582),new google.maps.LatLng(31.62455 ,74.32092),new google.maps.LatLng(31.84345 ,74.78120),new google.maps.LatLng(31.59850 ,74.14431),new google.maps.LatLng(31.15720 ,74.00450),new google.maps.LatLng(31.59307 ,74.94250),new google.maps.LatLng(31.71087 ,74.11655),new google.maps.LatLng(31.49849 ,73.95573),new google.maps.LatLng(31.52222 ,74.34269),new google.maps.LatLng(31.35462 ,74.55559),new google.maps.LatLng(32.01757 ,74.62945),new google.maps.LatLng(31.93816 ,74.25130),new google.maps.LatLng(31.85164 ,74.31980),new google.maps.LatLng(31.90966 ,74.31315),new google.maps.LatLng(31.68457 ,74.04409),new google.maps.LatLng(31.42952 ,73.92239),new google.maps.LatLng(31.84440 ,74.05659),new google.maps.LatLng(31.55647 ,74.23378),new google.maps.LatLng(32.00944 ,74.30630),new google.maps.LatLng(31.62628 ,73.88690),new google.maps.LatLng(31.45611 ,74.41165),new google.maps.LatLng(31.84574 ,74.54848),new google.maps.LatLng(31.86304 ,74.74385),new google.maps.LatLng(31.84616 ,73.91169),new google.maps.LatLng(31.80004 ,74.39218),new google.maps.LatLng(31.67280 ,74.74996),new google.maps.LatLng(30.94888 ,74.51645),new google.maps.LatLng(31.35427 ,74.21499),new google.maps.LatLng(31.83791 ,74.01219),new google.maps.LatLng(31.75927 ,74.63911),new google.maps.LatLng(31.66782 ,74.61088),new google.maps.LatLng(31.68716 ,74.91338),new google.maps.LatLng(31.39593 ,74.51776),new google.maps.LatLng(31.93656 ,74.35306),new google.maps.LatLng(31.65342 ,74.67677),new google.maps.LatLng(31.53821 ,74.49679),new google.maps.LatLng(31.16782 ,74.20522),new google.maps.LatLng(31.33512 ,74.31046),new google.maps.LatLng(31.21129 ,74.55689),new google.maps.LatLng(31.62123 ,74.21536),new google.maps.LatLng(31.64920 ,74.45403),new google.maps.LatLng(31.33732 ,73.99598),new google.maps.LatLng(32.04089 ,74.39800),new google.maps.LatLng(31.76435 ,73.90515),new google.maps.LatLng(31.80577 ,73.88000),new google.maps.LatLng(31.28850 ,74.73769),new google.maps.LatLng(31.42285 ,74.22700),new google.maps.LatLng(31.98640 ,74.67471),new google.maps.LatLng(31.04370 ,74.15731),new google.maps.LatLng(31.08455 ,74.28318),new google.maps.LatLng(31.67921 ,73.89337),new google.maps.LatLng(31.79726 ,74.09556),new google.maps.LatLng(31.78268 ,74.16420),new google.maps.LatLng(31.24702 ,74.82216),new google.maps.LatLng(31.60847 ,74.24756),new google.maps.LatLng(31.64088 ,74.46180),new google.maps.LatLng(31.93619 ,74.40922),new google.maps.LatLng(31.38995 ,74.88340),new google.maps.LatLng(31.60682 ,74.38068),new google.maps.LatLng(32.06047 ,74.51518),new google.maps.LatLng(31.66641 ,74.01423),new google.maps.LatLng(31.79971 ,74.37609),new google.maps.LatLng(31.46732 ,74.72874),new google.maps.LatLng(31.09015 ,74.77407),new google.maps.LatLng(31.69656 ,74.50238),new google.maps.LatLng(31.68606 ,73.96648),new google.maps.LatLng(31.45511 ,74.55190),new google.maps.LatLng(32.03757 ,74.59044),new google.maps.LatLng(31.09164 ,74.75247),new google.maps.LatLng(32.07762 ,74.41031),new google.maps.LatLng(31.10564 ,73.94678),new google.maps.LatLng(31.58723 ,74.18232),new google.maps.LatLng(31.81796 ,74.58896),new google.maps.LatLng(31.35976 ,73.98838),new google.maps.LatLng(31.51215 ,74.26781),new google.maps.LatLng(31.88438 ,74.20882),new google.maps.LatLng(31.23887 ,74.77520),new google.maps.LatLng(31.43585 ,74.50291),new google.maps.LatLng(31.21102 ,74.63053),new google.maps.LatLng(31.88256 ,74.41416),new google.maps.LatLng(32.00405 ,74.26911),new google.maps.LatLng(31.19659 ,74.36746),new google.maps.LatLng(31.54642 ,74.87952),new google.maps.LatLng(31.57666 ,74.07986),new google.maps.LatLng(31.57497 ,74.22587),new google.maps.LatLng(31.41912 ,73.96202),new google.maps.LatLng(31.11251 ,74.56309),new google.maps.LatLng(32.00477 ,74.65309),new google.maps.LatLng(31.22857 ,74.69048),new google.maps.LatLng(30.97013 ,74.15013),new google.maps.LatLng(31.49409 ,74.36768),new google.maps.LatLng(31.22676 ,74.01632),new google.maps.LatLng(31.04239 ,74.37977),new google.maps.LatLng(31.78455 ,74.16285),new google.maps.LatLng(31.82868 ,74.14201),new google.maps.LatLng(31.43114 ,74.82437),new google.maps.LatLng(31.54611 ,73.85109),new google.maps.LatLng(31.63420 ,74.38686),new google.maps.LatLng(31.76452 ,74.46585),new google.maps.LatLng(31.80153 ,74.09291),new google.maps.LatLng(31.79248 ,73.99771),new google.maps.LatLng(32.01858 ,74.15393),new google.maps.LatLng(31.07416 ,74.57477),new google.maps.LatLng(31.13483 ,74.13337),new google.maps.LatLng(31.18803 ,74.43558),new google.maps.LatLng(31.65314 ,73.99279),new google.maps.LatLng(31.12792 ,74.66490),new google.maps.LatLng(31.29022 ,74.49345),new google.maps.LatLng(31.51905 ,73.86339),new google.maps.LatLng(31.56100 ,74.45126),new google.maps.LatLng(31.52316 ,73.82260),new google.maps.LatLng(31.57164 ,74.79835),new google.maps.LatLng(31.41593 ,74.91883),new google.maps.LatLng(31.26325 ,74.27473),new google.maps.LatLng(31.51480 ,74.51192),new google.maps.LatLng(31.53464 ,74.66645),new google.maps.LatLng(31.02762 ,74.19278),new google.maps.LatLng(30.95551 ,74.28292),new google.maps.LatLng(31.33762 ,74.08152),new google.maps.LatLng(31.92582 ,74.76512),new google.maps.LatLng(31.78508 ,74.24847),new google.maps.LatLng(31.92668 ,74.36825),new google.maps.LatLng(32.06368 ,74.31974),new google.maps.LatLng(31.68939 ,73.94141),new google.maps.LatLng(31.40192 ,73.92601),new google.maps.LatLng(31.95130 ,74.28562),new google.maps.LatLng(31.54634 ,74.72335),new google.maps.LatLng(31.69810 ,74.22357),new google.maps.LatLng(31.83826 ,74.66562),new google.maps.LatLng(31.90116 ,74.19800),new google.maps.LatLng(31.17840 ,73.91715),new google.maps.LatLng(31.06616 ,74.05504),new google.maps.LatLng(31.39258 ,74.68191),new google.maps.LatLng(31.30168 ,74.16771),new google.maps.LatLng(31.76949 ,73.99350),new google.maps.LatLng(31.79567 ,74.73481),new google.maps.LatLng(31.69597 ,74.18410),new google.maps.LatLng(31.13573 ,74.53719),new google.maps.LatLng(31.29927 ,74.40299),new google.maps.LatLng(31.26203 ,74.45379),new google.maps.LatLng(31.70290 ,74.76430),new google.maps.LatLng(31.37087 ,74.15810),new google.maps.LatLng(31.00560 ,74.36781),new google.maps.LatLng(30.97085 ,74.49330),new google.maps.LatLng(31.65739 ,74.67802),new google.maps.LatLng(31.74014 ,74.89706),new google.maps.LatLng(31.47171 ,73.90905),new google.maps.LatLng(31.05274 ,74.67535),new google.maps.LatLng(31.24946 ,74.80618),new google.maps.LatLng(31.29515 ,74.38677),new google.maps.LatLng(31.32475 ,74.13978),new google.maps.LatLng(31.65245 ,73.93712),new google.maps.LatLng(32.07786 ,74.41747),new google.maps.LatLng(31.84911 ,74.18589),new google.maps.LatLng(31.85132 ,74.82667),new google.maps.LatLng(31.85990 ,74.17034),new google.maps.LatLng(31.64721 ,74.78723),new google.maps.LatLng(31.51132 ,74.48803),new google.maps.LatLng(31.95141 ,74.54556),new google.maps.LatLng(31.56134 ,73.93993),new google.maps.LatLng(31.61805 ,74.06781),new google.maps.LatLng(31.63494 ,74.52361),new google.maps.LatLng(31.63542 ,74.75178),new google.maps.LatLng(31.76488 ,74.74854),new google.maps.LatLng(31.26124 ,74.36738),new google.maps.LatLng(31.89841 ,74.29570),new google.maps.LatLng(31.75856 ,73.92123),new google.maps.LatLng(31.51583 ,74.55827),new google.maps.LatLng(31.51002 ,74.85029),new google.maps.LatLng(31.42136 ,74.50581),new google.maps.LatLng(31.54422 ,74.11209),new google.maps.LatLng(31.51103 ,74.74412),new google.maps.LatLng(32.05292 ,74.35152),new google.maps.LatLng(31.34057 ,74.52432),new google.maps.LatLng(31.02798 ,74.56036),new google.maps.LatLng(31.11546 ,74.54396),new google.maps.LatLng(31.47153 ,74.73984),new google.maps.LatLng(32.06537 ,74.38402),new google.maps.LatLng(31.53864 ,74.93610),new google.maps.LatLng(31.50950 ,74.76199),new google.maps.LatLng(31.65664 ,74.42862),new google.maps.LatLng(31.43529 ,74.07100),new google.maps.LatLng(31.79845 ,74.67074),new google.maps.LatLng(31.72116 ,74.26797),new google.maps.LatLng(31.13434 ,74.53164),new google.maps.LatLng(31.29347 ,74.79006),new google.maps.LatLng(31.38908 ,74.93159),new google.maps.LatLng(31.33633 ,74.62869),new google.maps.LatLng(31.27255 ,74.87668),new google.maps.LatLng(31.95482 ,74.64729),new google.maps.LatLng(31.33783 ,74.20969),new google.maps.LatLng(31.62321 ,74.16648),new google.maps.LatLng(31.51378 ,74.67304),new google.maps.LatLng(31.68085 ,74.16401),new google.maps.LatLng(31.38042 ,74.17718),new google.maps.LatLng(31.90848 ,74.66076),new google.maps.LatLng(31.37750 ,74.52945),new google.maps.LatLng(31.46270 ,74.36486),new google.maps.LatLng(31.09952 ,74.70368),new google.maps.LatLng(31.97483 ,74.53558),new google.maps.LatLng(31.46042 ,73.99584),new google.maps.LatLng(31.74859 ,74.06370),new google.maps.LatLng(31.59523 ,74.17713),new google.maps.LatLng(31.52475 ,74.71523),new google.maps.LatLng(31.62340 ,74.93154),new google.maps.LatLng(31.41230 ,74.52848),new google.maps.LatLng(31.96817 ,74.17945),new google.maps.LatLng(32.04407 ,74.18452),new google.maps.LatLng(31.53230 ,73.86005),new google.maps.LatLng(31.49824 ,74.35772),new google.maps.LatLng(31.07513 ,74.02675),new google.maps.LatLng(31.15705 ,74.57915),new google.maps.LatLng(31.66678 ,74.88490),new google.maps.LatLng(30.99445 ,74.10602),new google.maps.LatLng(31.62065 ,74.17528),new google.maps.LatLng(31.96438 ,74.52791),new google.maps.LatLng(31.56012 ,73.90815),new google.maps.LatLng(31.27803 ,74.30584),new google.maps.LatLng(31.92432 ,74.12572),new google.maps.LatLng(31.37631 ,74.82690),new google.maps.LatLng(31.65297 ,74.76028),new google.maps.LatLng(31.26737 ,74.74890),new google.maps.LatLng(31.76801 ,74.43344),new google.maps.LatLng(31.57880 ,74.82673),new google.maps.LatLng(31.61745 ,74.70151),new google.maps.LatLng(31.96092 ,74.65891),new google.maps.LatLng(31.00765 ,74.57123),new google.maps.LatLng(31.46381 ,74.42621),new google.maps.LatLng(31.93110 ,74.69609),new google.maps.LatLng(31.74007 ,73.85212),new google.maps.LatLng(31.15289 ,74.27359),new google.maps.LatLng(31.54964 ,73.93834),new google.maps.LatLng(31.51238 ,74.37991),new google.maps.LatLng(31.21727 ,74.49230),new google.maps.LatLng(31.97901 ,74.41272),new google.maps.LatLng(31.82045 ,74.08418),new google.maps.LatLng(31.83222 ,74.02545),new google.maps.LatLng(31.06100 ,74.31889),new google.maps.LatLng(31.01349 ,74.50275),new google.maps.LatLng(32.07128 ,74.47522),new google.maps.LatLng(31.88227 ,74.10063),new google.maps.LatLng(31.85071 ,74.64141),new google.maps.LatLng(31.13257 ,74.24479),new google.maps.LatLng(31.60387 ,73.82563),new google.maps.LatLng(31.24066 ,74.85762),new google.maps.LatLng(31.31293 ,74.62860),new google.maps.LatLng(31.49828 ,74.90094),new google.maps.LatLng(31.40489 ,73.97901),new google.maps.LatLng(31.50432 ,74.07778),new google.maps.LatLng(31.94007 ,74.49473),new google.maps.LatLng(30.97781 ,74.46943),new google.maps.LatLng(31.84457 ,74.04788),new google.maps.LatLng(31.08276 ,74.62698),new google.maps.LatLng(31.68157 ,74.70875),new google.maps.LatLng(31.96054 ,74.36216),new google.maps.LatLng(31.53344 ,73.88665),new google.maps.LatLng(31.13205 ,74.70308),new google.maps.LatLng(31.79034 ,74.05459),new google.maps.LatLng(31.70858 ,73.90286),new google.maps.LatLng(31.99523 ,74.60141),new google.maps.LatLng(31.66181 ,74.79571),new google.maps.LatLng(31.88038 ,74.49601),new google.maps.LatLng(31.94305 ,74.32162),new google.maps.LatLng(31.73165 ,74.70591),new google.maps.LatLng(31.70857 ,74.68189),new google.maps.LatLng(31.94534 ,74.09231),new google.maps.LatLng(31.61602 ,73.93185),new google.maps.LatLng(31.30625 ,74.42481),new google.maps.LatLng(31.44442 ,73.93718),new google.maps.LatLng(31.58032 ,74.76140),new google.maps.LatLng(31.17394 ,74.24132),new google.maps.LatLng(31.22746 ,74.66417),new google.maps.LatLng(31.57947 ,74.24879),new google.maps.LatLng(31.46713 ,74.71258),new google.maps.LatLng(31.61674 ,74.09872),new google.maps.LatLng(31.50818 ,74.50457),new google.maps.LatLng(31.10597 ,74.15795),new google.maps.LatLng(32.02994 ,74.22168),new google.maps.LatLng(31.62684 ,74.73455),new google.maps.LatLng(31.49011 ,74.52592),new google.maps.LatLng(31.03656 ,74.04110),new google.maps.LatLng(31.37493 ,73.89148),new google.maps.LatLng(31.38315 ,74.11925),new google.maps.LatLng(31.72983 ,74.34593),new google.maps.LatLng(31.48784 ,74.12317),new google.maps.LatLng(31.33993 ,74.29105),new google.maps.LatLng(31.49321 ,73.79519),new google.maps.LatLng(31.68317 ,73.94911),new google.maps.LatLng(31.90074 ,74.40062),new google.maps.LatLng(31.68323 ,74.32918),new google.maps.LatLng(31.81059 ,73.87982),new google.maps.LatLng(31.97717 ,74.15858),new google.maps.LatLng(31.63047 ,74.52777),new google.maps.LatLng(31.84883 ,74.77667),new google.maps.LatLng(31.61957 ,74.19136),new google.maps.LatLng(31.42495 ,74.41308),new google.maps.LatLng(32.02576 ,74.48291),new google.maps.LatLng(31.17058 ,74.32600),new google.maps.LatLng(31.18680 ,74.44906),new google.maps.LatLng(31.84938 ,74.03643),new google.maps.LatLng(31.66049 ,74.63313),new google.maps.LatLng(31.04541 ,74.67533),new google.maps.LatLng(31.64890 ,74.63591),new google.maps.LatLng(31.02127 ,74.15073),new google.maps.LatLng(31.28080 ,74.47861),new google.maps.LatLng(31.61509 ,74.91647),new google.maps.LatLng(31.94646 ,74.50416),new google.maps.LatLng(31.94190 ,74.74749),new google.maps.LatLng(31.43251 ,74.88042),new google.maps.LatLng(31.63229 ,74.31366),new google.maps.LatLng(31.35216 ,73.82928),new google.maps.LatLng(31.95280 ,74.21859),new google.maps.LatLng(31.39262 ,74.21542),new google.maps.LatLng(31.63736 ,74.27601),new google.maps.LatLng(31.96816 ,74.60891),new google.maps.LatLng(31.87147 ,74.22528),new google.maps.LatLng(31.67856 ,74.67134),new google.maps.LatLng(31.44953 ,74.31400),new google.maps.LatLng(31.79479 ,74.52439),new google.maps.LatLng(30.97014 ,74.53706),new google.maps.LatLng(31.37672 ,74.19474),new google.maps.LatLng(31.05196 ,74.49248),new google.maps.LatLng(31.01807 ,74.28059),new google.maps.LatLng(31.78448 ,74.69022),new google.maps.LatLng(31.53489 ,73.98074),new google.maps.LatLng(31.58346 ,74.12269),new google.maps.LatLng(31.89238 ,74.16090),new google.maps.LatLng(31.79047 ,74.63179),new google.maps.LatLng(31.60192 ,74.52062),new google.maps.LatLng(31.70416 ,74.29231),new google.maps.LatLng(31.60213 ,73.90662),new google.maps.LatLng(31.53010 ,73.87350),new google.maps.LatLng(31.18322 ,74.69040),new google.maps.LatLng(31.79516 ,74.00277),new google.maps.LatLng(31.18394 ,74.50767),new google.maps.LatLng(31.44112 ,74.28861),new google.maps.LatLng(30.99275 ,74.49144),new google.maps.LatLng(31.46161 ,74.10350),new google.maps.LatLng(31.48329 ,74.21867),new google.maps.LatLng(31.65118 ,74.78904),new google.maps.LatLng(31.53087 ,74.21724),new google.maps.LatLng(31.27613 ,74.22163),new google.maps.LatLng(31.16493 ,74.65987),new google.maps.LatLng(31.42996 ,74.33119),new google.maps.LatLng(31.40759 ,74.93478),new google.maps.LatLng(31.37621 ,74.34601),new google.maps.LatLng(31.92603 ,74.30927),new google.maps.LatLng(31.17068 ,74.53333),new google.maps.LatLng(31.88036 ,74.67537),new google.maps.LatLng(31.15006 ,74.58916),new google.maps.LatLng(31.77805 ,74.14925),new google.maps.LatLng(31.88426 ,74.19370),new google.maps.LatLng(31.14654 ,74.09407),new google.maps.LatLng(31.61855 ,74.61867),new google.maps.LatLng(31.48509 ,74.87143),new google.maps.LatLng(31.64507 ,73.81927),new google.maps.LatLng(30.94826 ,74.28742),new google.maps.LatLng(31.14478 ,74.39060),new google.maps.LatLng(31.42172 ,74.88244),new google.maps.LatLng(31.56845 ,74.05387),new google.maps.LatLng(31.95439 ,74.41616),new google.maps.LatLng(31.29048 ,73.87615),new google.maps.LatLng(31.65268 ,74.17944),new google.maps.LatLng(31.90608 ,74.14336),new google.maps.LatLng(31.25232 ,74.87010),new google.maps.LatLng(31.40943 ,74.01591),new google.maps.LatLng(31.37198 ,74.53979),new google.maps.LatLng(31.90361 ,74.46679),new google.maps.LatLng(32.02257 ,74.20610),new google.maps.LatLng(31.15597 ,73.96090),new google.maps.LatLng(31.24800 ,74.06525),new google.maps.LatLng(31.78809 ,74.84939),new google.maps.LatLng(31.19156 ,74.11864),new google.maps.LatLng(31.90133 ,74.46354),new google.maps.LatLng(31.80325 ,74.29933),new google.maps.LatLng(31.16562 ,74.19014),new google.maps.LatLng(31.52307 ,74.54849),new google.maps.LatLng(31.49050 ,74.18863),new google.maps.LatLng(31.67464 ,74.43855),new google.maps.LatLng(31.45558 ,74.12880),new google.maps.LatLng(31.02368 ,74.62875),new google.maps.LatLng(31.88256 ,74.49509),new google.maps.LatLng(31.62014 ,74.39143),new google.maps.LatLng(31.63563 ,74.57372),new google.maps.LatLng(31.36841 ,74.12200),new google.maps.LatLng(31.92055 ,74.00359),new google.maps.LatLng(31.73151 ,74.29408),new google.maps.LatLng(31.19938 ,74.20084),new google.maps.LatLng(31.68682 ,74.11033),new google.maps.LatLng(31.93899 ,74.59579),new google.maps.LatLng(31.36607 ,73.83389),new google.maps.LatLng(31.69621 ,73.89156),new google.maps.LatLng(31.83544 ,74.25837),new google.maps.LatLng(31.74278 ,73.99380),new google.maps.LatLng(31.54942 ,74.17531),new google.maps.LatLng(31.16486 ,74.20171),new google.maps.LatLng(31.06330 ,74.00670),new google.maps.LatLng(31.28762 ,74.43019),new google.maps.LatLng(31.94042 ,74.54011),new google.maps.LatLng(31.31980 ,74.72111),new google.maps.LatLng(31.50211 ,73.91388),new google.maps.LatLng(31.48445 ,73.91699),new google.maps.LatLng(31.08875 ,74.45411),new google.maps.LatLng(31.21828 ,74.45175),new google.maps.LatLng(31.99594 ,74.38172),new google.maps.LatLng(31.78095 ,74.58913),new google.maps.LatLng(31.33109 ,74.29970),new google.maps.LatLng(31.53761 ,74.81067),new google.maps.LatLng(31.54862 ,74.44326),new google.maps.LatLng(31.31170 ,74.72292),new google.maps.LatLng(31.92042 ,74.27734),new google.maps.LatLng(31.90563 ,74.57296),new google.maps.LatLng(31.75971 ,74.51549),new google.maps.LatLng(31.31896 ,74.68312),new google.maps.LatLng(31.54372 ,74.61542),new google.maps.LatLng(31.08121 ,74.15606),new google.maps.LatLng(31.96181 ,74.35408),new google.maps.LatLng(31.39053 ,73.99171),new google.maps.LatLng(31.89959 ,74.00077),new google.maps.LatLng(31.93787 ,74.74680),new google.maps.LatLng(31.48123 ,74.02983),new google.maps.LatLng(31.28314 ,73.82624),new google.maps.LatLng(31.32836 ,74.13682),new google.maps.LatLng(31.44610 ,74.18813),new google.maps.LatLng(31.56725 ,74.05462),new google.maps.LatLng(31.84364 ,74.73393),new google.maps.LatLng(31.28826 ,74.45225),new google.maps.LatLng(31.68530 ,74.52992),new google.maps.LatLng(31.46234 ,73.83547),new google.maps.LatLng(31.83691 ,74.10380),new google.maps.LatLng(31.57894 ,74.30086),new google.maps.LatLng(31.42791 ,74.07916),new google.maps.LatLng(31.04651 ,74.64805),new google.maps.LatLng(31.59493 ,74.39531),new google.maps.LatLng(31.74425 ,73.90054),new google.maps.LatLng(31.34794 ,74.00039),new google.maps.LatLng(31.46059 ,74.67125),new google.maps.LatLng(31.64766 ,74.02213),new google.maps.LatLng(31.60170 ,74.57923),new google.maps.LatLng(31.50509 ,74.59120),new google.maps.LatLng(31.38923 ,74.51674),new google.maps.LatLng(31.87389 ,74.70726),new google.maps.LatLng(31.06201 ,74.52787),new google.maps.LatLng(31.46538 ,74.36017),new google.maps.LatLng(31.47280 ,74.56033),new google.maps.LatLng(31.50474 ,73.97404),new google.maps.LatLng(31.23125 ,74.62912),new google.maps.LatLng(31.32468 ,74.85941),new google.maps.LatLng(31.73796 ,74.81713),new google.maps.LatLng(31.64250 ,74.39559),new google.maps.LatLng(31.39755 ,74.16199),new google.maps.LatLng(31.39694 ,74.90123),new google.maps.LatLng(31.93728 ,74.28451),new google.maps.LatLng(31.35151 ,74.76171),new google.maps.LatLng(31.31589 ,73.91592),new google.maps.LatLng(31.68206 ,74.45042),new google.maps.LatLng(31.38397 ,74.63710),new google.maps.LatLng(31.65236 ,74.12308),new google.maps.LatLng(31.76969 ,74.73764),new google.maps.LatLng(31.63994 ,74.31211),new google.maps.LatLng(31.39939 ,73.85638),new google.maps.LatLng(31.76651 ,73.95124),new google.maps.LatLng(31.22743 ,74.68399),new google.maps.LatLng(31.76078 ,73.88051),new google.maps.LatLng(31.52260 ,73.84525),new google.maps.LatLng(31.88610 ,74.64719),new google.maps.LatLng(31.98789 ,74.06974),new google.maps.LatLng(31.70717 ,74.60416),new google.maps.LatLng(31.86099 ,74.18353),new google.maps.LatLng(31.68442 ,74.10405),new google.maps.LatLng(31.27973 ,74.85690),new google.maps.LatLng(31.48710 ,74.12432),new google.maps.LatLng(31.46728 ,74.47089),new google.maps.LatLng(30.98363 ,74.10410),new google.maps.LatLng(32.04400 ,74.52920),new google.maps.LatLng(31.18861 ,74.52214),new google.maps.LatLng(31.42709 ,73.93417),new google.maps.LatLng(31.16646 ,74.71147),new google.maps.LatLng(32.02727 ,74.28372),new google.maps.LatLng(31.67814 ,74.76405),new google.maps.LatLng(31.61181 ,74.11430),new google.maps.LatLng(31.54019 ,74.36624),new google.maps.LatLng(31.25323 ,74.30615),new google.maps.LatLng(31.59015 ,74.19372),new google.maps.LatLng(31.61965 ,74.77358),new google.maps.LatLng(31.59329 ,74.67762),new google.maps.LatLng(31.82841 ,74.09183),new google.maps.LatLng(31.41851 ,74.57030),new google.maps.LatLng(31.68616 ,74.84943),new google.maps.LatLng(32.02262 ,74.50374),new google.maps.LatLng(31.37756 ,73.96136),new google.maps.LatLng(31.60907 ,73.91987),new google.maps.LatLng(31.38829 ,74.79328),new google.maps.LatLng(31.56104 ,74.84959),new google.maps.LatLng(31.32232 ,74.87459),new google.maps.LatLng(31.30139 ,73.85752),new google.maps.LatLng(31.65080 ,74.58552),new google.maps.LatLng(31.58286 ,73.86350),new google.maps.LatLng(31.78699 ,74.16155),new google.maps.LatLng(31.59528 ,73.90568),new google.maps.LatLng(31.98677 ,74.55448),new google.maps.LatLng(31.14051 ,74.40624),new google.maps.LatLng(31.40657 ,74.18868),new google.maps.LatLng(31.75963 ,74.36209),new google.maps.LatLng(31.03910 ,74.28388),new google.maps.LatLng(31.48310 ,74.41040),new google.maps.LatLng(31.28493 ,74.26041),new google.maps.LatLng(31.82212 ,74.40071),new google.maps.LatLng(31.61871 ,74.44572),new google.maps.LatLng(31.65630 ,74.37513),new google.maps.LatLng(32.04921 ,74.46534),new google.maps.LatLng(31.65876 ,74.06254),new google.maps.LatLng(31.40733 ,74.09012),new google.maps.LatLng(31.11880 ,74.44003),new google.maps.LatLng(32.01834 ,74.24793),new google.maps.LatLng(31.43480 ,74.37900),new google.maps.LatLng(31.65948 ,74.00561),new google.maps.LatLng(31.22364 ,74.74490),new google.maps.LatLng(31.24065 ,74.81034),new google.maps.LatLng(31.96454 ,74.48335),new google.maps.LatLng(31.86994 ,74.01967),new google.maps.LatLng(32.07493 ,74.31825),new google.maps.LatLng(31.91350 ,74.54454),new google.maps.LatLng(31.78123 ,74.58941),new google.maps.LatLng(31.42629 ,74.11164),new google.maps.LatLng(31.99073 ,74.43450),new google.maps.LatLng(31.11190 ,74.54093),new google.maps.LatLng(31.42709 ,73.87161),new google.maps.LatLng(31.44216 ,74.77862),new google.maps.LatLng(31.35955 ,74.64589),new google.maps.LatLng(31.73696 ,73.92566),new google.maps.LatLng(31.59485 ,74.05637),new google.maps.LatLng(31.66187 ,73.80697),new google.maps.LatLng(31.64663 ,74.40195),new google.maps.LatLng(31.55739 ,73.83690),new google.maps.LatLng(31.66889 ,74.77859),new google.maps.LatLng(31.22326 ,74.60212),new google.maps.LatLng(30.98934 ,74.51179),new google.maps.LatLng(31.85635 ,73.94490),new google.maps.LatLng(31.33124 ,74.32308),new google.maps.LatLng(31.17714 ,74.50263),new google.maps.LatLng(31.23439 ,74.29423),new google.maps.LatLng(31.36132 ,74.21180),new google.maps.LatLng(31.21456 ,73.97711),new google.maps.LatLng(31.43308 ,74.58289),new google.maps.LatLng(31.35878 ,74.03999),new google.maps.LatLng(31.42065 ,74.84641),new google.maps.LatLng(31.94353 ,74.54426),new google.maps.LatLng(31.06468 ,74.53408),new google.maps.LatLng(30.97113 ,74.26795),new google.maps.LatLng(31.41685 ,74.36790),new google.maps.LatLng(30.94552 ,74.36108),new google.maps.LatLng(31.96003 ,74.67770),new google.maps.LatLng(31.58536 ,74.21452),new google.maps.LatLng(32.01303 ,74.40444),new google.maps.LatLng(32.07869 ,74.34305),new google.maps.LatLng(31.30184 ,74.48624),new google.maps.LatLng(31.37915 ,74.23391),new google.maps.LatLng(31.54920 ,73.80618),new google.maps.LatLng(31.62322 ,74.93670),new google.maps.LatLng(31.22084 ,74.67105),new google.maps.LatLng(31.94138 ,74.45491),new google.maps.LatLng(31.82304 ,74.48760),new google.maps.LatLng(31.53473 ,74.83286),new google.maps.LatLng(31.72100 ,74.70422),new google.maps.LatLng(31.57735 ,74.69950),new google.maps.LatLng(31.98100 ,74.54017),new google.maps.LatLng(31.52674 ,73.83863),new google.maps.LatLng(31.38120 ,73.88709),new google.maps.LatLng(31.92540 ,74.72883),new google.maps.LatLng(31.19586 ,74.64812),new google.maps.LatLng(31.65966 ,74.84822),new google.maps.LatLng(31.62106 ,74.87903),new google.maps.LatLng(31.26534 ,74.37939),new google.maps.LatLng(31.35117 ,74.32373),new google.maps.LatLng(31.48944 ,74.53979),new google.maps.LatLng(31.27338 ,74.88623),new google.maps.LatLng(31.25720 ,74.37350),new google.maps.LatLng(31.66101 ,74.52264),new google.maps.LatLng(31.40569 ,74.15145),new google.maps.LatLng(31.98560 ,74.17294),new google.maps.LatLng(31.52665 ,74.67112),new google.maps.LatLng(31.52644 ,74.19494),new google.maps.LatLng(31.69870 ,74.32172),new google.maps.LatLng(30.99704 ,74.35533),new google.maps.LatLng(31.16916 ,74.02667),new google.maps.LatLng(31.49626 ,74.10209),new google.maps.LatLng(31.41670 ,74.79641),new google.maps.LatLng(31.11325 ,74.36409),new google.maps.LatLng(31.85525 ,74.13386),new google.maps.LatLng(31.62795 ,74.17838),new google.maps.LatLng(31.04985 ,74.66676),new google.maps.LatLng(30.98451 ,74.27212),new google.maps.LatLng(31.56232 ,74.41265),new google.maps.LatLng(31.94258 ,74.16248),new google.maps.LatLng(31.40693 ,74.80329),new google.maps.LatLng(31.22385 ,74.14837),new google.maps.LatLng(31.57257 ,74.09206),new google.maps.LatLng(31.58672 ,73.99126),new google.maps.LatLng(31.46725 ,73.97214),new google.maps.LatLng(31.41224 ,73.84280),new google.maps.LatLng(31.16660 ,74.49928),new google.maps.LatLng(32.05294 ,74.16625),new google.maps.LatLng(32.05127 ,74.29254),new google.maps.LatLng(31.73204 ,74.69408),new google.maps.LatLng(31.37316 ,74.27013),new google.maps.LatLng(31.43178 ,74.93617),new google.maps.LatLng(31.67614 ,74.02764),new google.maps.LatLng(31.31710 ,74.50077),new google.maps.LatLng(31.85586 ,74.76773),new google.maps.LatLng(31.04666 ,74.24402),new google.maps.LatLng(32.06652 ,74.30067),new google.maps.LatLng(31.28723 ,74.74360),new google.maps.LatLng(31.13956 ,74.32381),new google.maps.LatLng(31.90659 ,74.61099),new google.maps.LatLng(31.17993 ,74.73079),new google.maps.LatLng(31.92465 ,74.43184),new google.maps.LatLng(31.24372 ,74.75726),new google.maps.LatLng(31.52856 ,74.15852),new google.maps.LatLng(31.74905 ,74.36317),new google.maps.LatLng(31.63501 ,74.47837),new google.maps.LatLng(31.78503 ,73.87052),new google.maps.LatLng(31.32175 ,74.74536),new google.maps.LatLng(31.49653 ,74.88499),new google.maps.LatLng(31.71483 ,74.19442),new google.maps.LatLng(31.30502 ,74.14347),new google.maps.LatLng(31.52984 ,74.74758),new google.maps.LatLng(31.74472 ,74.44962),new google.maps.LatLng(31.85818 ,74.44043),new google.maps.LatLng(31.27032 ,74.65021),new google.maps.LatLng(31.79626 ,74.44199),new google.maps.LatLng(31.24047 ,74.11606),new google.maps.LatLng(31.76205 ,73.96422),new google.maps.LatLng(31.24396 ,74.74320),new google.maps.LatLng(31.61619 ,74.26122),new google.maps.LatLng(31.42842 ,74.79730),new google.maps.LatLng(32.08587 ,74.35527),new google.maps.LatLng(31.79953 ,74.80159),new google.maps.LatLng(31.86700 ,74.42064),new google.maps.LatLng(31.22252 ,74.82999),new google.maps.LatLng(31.31438 ,73.87471),new google.maps.LatLng(31.96373 ,74.48810),new google.maps.LatLng(31.41832 ,74.02457),new google.maps.LatLng(31.64231 ,73.89880),new google.maps.LatLng(31.94724 ,74.04959),new google.maps.LatLng(31.38202 ,74.38947),new google.maps.LatLng(31.57593 ,74.77035),new google.maps.LatLng(31.29621 ,74.41792),new google.maps.LatLng(31.13909 ,73.98955),new google.maps.LatLng(31.19349 ,74.69036),new google.maps.LatLng(31.84759 ,74.46460),new google.maps.LatLng(31.12955 ,74.64323),new google.maps.LatLng(31.88812 ,74.32547),new google.maps.LatLng(31.63027 ,74.06715),new google.maps.LatLng(31.79263 ,74.48452),new google.maps.LatLng(31.24494 ,74.84328),new google.maps.LatLng(31.29810 ,74.79500),new google.maps.LatLng(31.56285 ,74.25944),new google.maps.LatLng(31.31323 ,73.95648),new google.maps.LatLng(31.42135 ,74.42482),new google.maps.LatLng(31.34162 ,74.47122),new google.maps.LatLng(31.85570 ,74.20229),new google.maps.LatLng(31.43344 ,74.77824),new google.maps.LatLng(31.04928 ,74.73106),new google.maps.LatLng(31.72916 ,74.18779),new google.maps.LatLng(31.16907 ,73.99592),new google.maps.LatLng(31.85167 ,74.15713),new google.maps.LatLng(31.15349 ,74.16217),new google.maps.LatLng(31.83658 ,74.15499),new google.maps.LatLng(31.25326 ,74.13649),new google.maps.LatLng(31.32713 ,74.42953),new google.maps.LatLng(31.62104 ,74.90475),new google.maps.LatLng(31.33392 ,74.30570),new google.maps.LatLng(31.14294 ,74.35337),new google.maps.LatLng(30.99923 ,74.28295),new google.maps.LatLng(31.43416 ,74.30598),new google.maps.LatLng(31.22554 ,74.11530),new google.maps.LatLng(31.19542 ,74.82972),new google.maps.LatLng(31.79378 ,74.45517),new google.maps.LatLng(31.15325 ,74.08456),new google.maps.LatLng(31.13652 ,74.51558),new google.maps.LatLng(25.43740 ,67.62069),new google.maps.LatLng(25.21300 ,67.22654),new google.maps.LatLng(25.68985 ,67.04888),new google.maps.LatLng(25.35901 ,67.14434),new google.maps.LatLng(24.45128 ,66.81945),new google.maps.LatLng(25.06075 ,67.08715),new google.maps.LatLng(24.38829 ,67.36303),new google.maps.LatLng(25.26074 ,66.70155),new google.maps.LatLng(25.62332 ,67.22864),new google.maps.LatLng(24.21266 ,67.10705),new google.maps.LatLng(25.25910 ,66.71075),new google.maps.LatLng(25.59270 ,67.12488),new google.maps.LatLng(25.26284 ,67.75858),new google.maps.LatLng(24.59818 ,66.40144),new google.maps.LatLng(24.80665 ,66.34600),new google.maps.LatLng(24.43485 ,67.03213),new google.maps.LatLng(25.33769 ,66.94288),new google.maps.LatLng(25.15349 ,67.38337),new google.maps.LatLng(25.17413 ,66.96188),new google.maps.LatLng(25.48322 ,66.82102),new google.maps.LatLng(25.02429 ,67.33351),new google.maps.LatLng(25.26131 ,67.29055),new google.maps.LatLng(24.30769 ,66.86299),new google.maps.LatLng(24.83607 ,66.41760),new google.maps.LatLng(25.33837 ,66.41649),new google.maps.LatLng(25.63475 ,67.21955),new google.maps.LatLng(24.68653 ,67.66341),new google.maps.LatLng(25.16626 ,67.34997),new google.maps.LatLng(25.13077 ,66.67725),new google.maps.LatLng(25.00060 ,67.13758),new google.maps.LatLng(25.45089 ,66.75673),new google.maps.LatLng(24.46160 ,66.61661),new google.maps.LatLng(25.07917 ,66.46380),new google.maps.LatLng(24.65401 ,66.53767),new google.maps.LatLng(24.70492 ,66.41876),new google.maps.LatLng(24.54575 ,67.16126),new google.maps.LatLng(24.70577 ,67.42082),new google.maps.LatLng(24.37266 ,67.48107),new google.maps.LatLng(24.99457 ,67.68161),new google.maps.LatLng(24.74298 ,67.71434),new google.maps.LatLng(24.85550 ,67.55310),new google.maps.LatLng(25.05036 ,67.37341),new google.maps.LatLng(25.27097 ,66.53962),new google.maps.LatLng(25.27944 ,66.63881),new google.maps.LatLng(24.47805 ,67.15810),new google.maps.LatLng(25.50284 ,67.55175),new google.maps.LatLng(25.27407 ,67.01491),new google.maps.LatLng(25.36074 ,67.09615),new google.maps.LatLng(25.31163 ,67.58822),new google.maps.LatLng(24.86275 ,67.20134),new google.maps.LatLng(25.51529 ,66.84670),new google.maps.LatLng(25.47732 ,67.47090),new google.maps.LatLng(25.59642 ,67.16489),new google.maps.LatLng(24.64856 ,67.24407),new google.maps.LatLng(25.44926 ,66.53300),new google.maps.LatLng(25.58801 ,67.07247),new google.maps.LatLng(24.96567 ,67.17842),new google.maps.LatLng(25.44618 ,66.95547),new google.maps.LatLng(25.52165 ,67.51193),new google.maps.LatLng(24.90451 ,66.45673),new google.maps.LatLng(24.80809 ,66.74096),new google.maps.LatLng(24.78082 ,66.75313),new google.maps.LatLng(25.13182 ,66.76411),new google.maps.LatLng(25.25394 ,66.99237),new google.maps.LatLng(25.24975 ,67.36538),new google.maps.LatLng(24.89354 ,66.83179),new google.maps.LatLng(25.36612 ,66.67154),new google.maps.LatLng(24.20515 ,67.17855),new google.maps.LatLng(24.25284 ,67.30234),new google.maps.LatLng(25.08881 ,66.62583),new google.maps.LatLng(25.33572 ,67.21508),new google.maps.LatLng(25.63097 ,67.09808),new google.maps.LatLng(24.73462 ,66.54699),new google.maps.LatLng(25.27808 ,66.71867),new google.maps.LatLng(24.34626 ,66.88592),new google.maps.LatLng(24.46498 ,66.56722),new google.maps.LatLng(25.54489 ,66.66004),new google.maps.LatLng(24.88336 ,67.24033),new google.maps.LatLng(25.37046 ,66.52127),new google.maps.LatLng(25.31140 ,66.40806),new google.maps.LatLng(24.63257 ,67.31836),new google.maps.LatLng(25.21307 ,67.64256),new google.maps.LatLng(24.98386 ,67.52887),new google.maps.LatLng(25.16799 ,66.76205),new google.maps.LatLng(25.35116 ,67.56647),new google.maps.LatLng(25.52063 ,66.93850),new google.maps.LatLng(25.26003 ,67.15700),new google.maps.LatLng(24.54077 ,66.78524),new google.maps.LatLng(24.58698 ,66.90822),new google.maps.LatLng(24.57826 ,67.50337),new google.maps.LatLng(25.21074 ,67.39045),new google.maps.LatLng(24.98084 ,67.32866),new google.maps.LatLng(25.10960 ,66.43539),new google.maps.LatLng(24.60527 ,66.87607),new google.maps.LatLng(25.34471 ,66.78293),new google.maps.LatLng(24.67502 ,67.70248),new google.maps.LatLng(24.30815 ,66.89474),new google.maps.LatLng(25.63271 ,66.88439),new google.maps.LatLng(25.51873 ,66.92398),new google.maps.LatLng(25.39434 ,66.59100),new google.maps.LatLng(24.27067 ,66.93497),new google.maps.LatLng(24.66522 ,66.49692),new google.maps.LatLng(25.04023 ,67.69346),new google.maps.LatLng(25.55587 ,66.78952),new google.maps.LatLng(25.21794 ,67.47153),new google.maps.LatLng(25.33966 ,67.62221),new google.maps.LatLng(25.51857 ,67.51878),new google.maps.LatLng(25.49208 ,66.87935),new google.maps.LatLng(25.29682 ,66.89725),new google.maps.LatLng(24.87391 ,67.02242),new google.maps.LatLng(25.33342 ,67.13232),new google.maps.LatLng(25.13031 ,67.59610),new google.maps.LatLng(24.70631 ,67.28293),new google.maps.LatLng(25.51033 ,66.95382),new google.maps.LatLng(24.61950 ,66.82893),new google.maps.LatLng(24.75325 ,66.73075),new google.maps.LatLng(24.82929 ,67.66180),new google.maps.LatLng(24.99804 ,66.94207),new google.maps.LatLng(24.46678 ,67.45249),new google.maps.LatLng(25.69396 ,67.07215),new google.maps.LatLng(25.30630 ,66.55636),new google.maps.LatLng(24.32857 ,66.84744),new google.maps.LatLng(24.51821 ,66.50107),new google.maps.LatLng(24.26751 ,66.97849),new google.maps.LatLng(25.02530 ,66.73168),new google.maps.LatLng(24.82816 ,67.06326),new google.maps.LatLng(25.03215 ,67.05386),new google.maps.LatLng(24.54298 ,66.83472),new google.maps.LatLng(24.63870 ,66.60116),new google.maps.LatLng(24.80172 ,67.20705),new google.maps.LatLng(24.86900 ,67.40055),new google.maps.LatLng(24.26268 ,67.15357),new google.maps.LatLng(25.02920 ,66.52441),new google.maps.LatLng(24.95659 ,67.37429),new google.maps.LatLng(25.49359 ,66.95294),new google.maps.LatLng(24.94849 ,67.56229),new google.maps.LatLng(25.31788 ,66.76826),new google.maps.LatLng(25.36141 ,66.88930),new google.maps.LatLng(25.41109 ,67.22981),new google.maps.LatLng(25.15782 ,67.17783),new google.maps.LatLng(25.34310 ,66.71836),new google.maps.LatLng(25.16721 ,67.13663),new google.maps.LatLng(24.83308 ,67.37836),new google.maps.LatLng(25.22052 ,67.10294),new google.maps.LatLng(24.69439 ,66.62599),new google.maps.LatLng(24.24409 ,67.15959),new google.maps.LatLng(25.62079 ,67.18801),new google.maps.LatLng(25.03455 ,67.27830),new google.maps.LatLng(25.61180 ,67.09198),new google.maps.LatLng(24.79831 ,67.55494),new google.maps.LatLng(25.15957 ,67.62972),new google.maps.LatLng(24.97478 ,67.05830),new google.maps.LatLng(25.20059 ,66.43990),new google.maps.LatLng(25.37327 ,66.80925),new google.maps.LatLng(24.94806 ,67.10523),new google.maps.LatLng(25.01038 ,67.75404),new google.maps.LatLng(25.24218 ,67.62599),new google.maps.LatLng(24.52642 ,67.67312),new google.maps.LatLng(25.12857 ,67.04985),new google.maps.LatLng(24.48181 ,67.08984),new google.maps.LatLng(25.19101 ,66.35628),new google.maps.LatLng(25.40395 ,66.84051),new google.maps.LatLng(25.24445 ,67.43308),new google.maps.LatLng(25.05872 ,67.22873),new google.maps.LatLng(25.09898 ,67.23860),new google.maps.LatLng(25.11895 ,67.04894),new google.maps.LatLng(25.46170 ,67.45104),new google.maps.LatLng(25.25090 ,66.47220),new google.maps.LatLng(25.11277 ,67.09975),new google.maps.LatLng(24.64214 ,66.89973),new google.maps.LatLng(24.50759 ,66.70791),new google.maps.LatLng(25.07788 ,66.70959),new google.maps.LatLng(25.25440 ,66.67334),new google.maps.LatLng(25.41469 ,67.24167),new google.maps.LatLng(25.50500 ,67.44596),new google.maps.LatLng(24.95238 ,67.61987),new google.maps.LatLng(25.50269 ,66.94629),new google.maps.LatLng(24.51793 ,66.89164),new google.maps.LatLng(24.92412 ,66.39900),new google.maps.LatLng(25.25593 ,67.19640),new google.maps.LatLng(24.46313 ,67.46322),new google.maps.LatLng(25.62942 ,67.09961),new google.maps.LatLng(24.99148 ,66.70588),new google.maps.LatLng(25.39949 ,66.83896),new google.maps.LatLng(25.37334 ,67.06144),new google.maps.LatLng(25.25174 ,66.81771),new google.maps.LatLng(25.27838 ,66.68750),new google.maps.LatLng(24.23836 ,67.27662),new google.maps.LatLng(24.81692 ,67.06927),new google.maps.LatLng(24.75486 ,67.34609),new google.maps.LatLng(24.58620 ,67.24960),new google.maps.LatLng(25.30823 ,67.32692),new google.maps.LatLng(24.97446 ,67.36308),new google.maps.LatLng(24.21558 ,67.21958),new google.maps.LatLng(25.43242 ,67.02628),new google.maps.LatLng(24.61885 ,67.44773),new google.maps.LatLng(24.81078 ,67.14047),new google.maps.LatLng(25.04087 ,67.82324),new google.maps.LatLng(25.11083 ,66.75432),new google.maps.LatLng(25.37230 ,66.45560),new google.maps.LatLng(25.36655 ,66.65265),new google.maps.LatLng(25.04649 ,67.73487),new google.maps.LatLng(25.18426 ,67.67304),new google.maps.LatLng(24.86573 ,67.30766),new google.maps.LatLng(25.63564 ,67.37701),new google.maps.LatLng(24.96783 ,66.84149),new google.maps.LatLng(25.01792 ,66.41171),new google.maps.LatLng(25.44777 ,67.49082),new google.maps.LatLng(25.00377 ,67.64413),new google.maps.LatLng(24.42912 ,67.55887),new google.maps.LatLng(25.11142 ,67.24480),new google.maps.LatLng(25.39923 ,66.49804),new google.maps.LatLng(25.48318 ,67.43049),new google.maps.LatLng(25.15193 ,67.01760),new google.maps.LatLng(24.87328 ,67.72835),new google.maps.LatLng(24.38152 ,67.47192),new google.maps.LatLng(24.98458 ,67.32401),new google.maps.LatLng(24.55077 ,66.94686),new google.maps.LatLng(25.14486 ,66.72052),new google.maps.LatLng(25.06702 ,67.10397),new google.maps.LatLng(24.47382 ,66.65594),new google.maps.LatLng(25.34221 ,67.07862),new google.maps.LatLng(24.95783 ,67.10238),new google.maps.LatLng(24.43509 ,67.53945),new google.maps.LatLng(25.55161 ,67.44335),new google.maps.LatLng(25.62301 ,66.96290),new google.maps.LatLng(24.47581 ,67.08826),new google.maps.LatLng(24.59241 ,67.32102),new google.maps.LatLng(24.70730 ,66.35225),new google.maps.LatLng(24.37296 ,66.71855),new google.maps.LatLng(24.32721 ,67.46407),new google.maps.LatLng(25.38404 ,67.16108),new google.maps.LatLng(25.22379 ,66.85740),new google.maps.LatLng(24.23582 ,66.79917),new google.maps.LatLng(24.52022 ,66.81247),new google.maps.LatLng(24.55719 ,67.16298),new google.maps.LatLng(25.13213 ,66.96077),new google.maps.LatLng(25.16090 ,67.47573),new google.maps.LatLng(24.20786 ,66.99937),new google.maps.LatLng(25.20106 ,67.10933),new google.maps.LatLng(24.72086 ,67.72023),new google.maps.LatLng(24.58850 ,67.69683),new google.maps.LatLng(24.72819 ,66.63418),new google.maps.LatLng(24.95214 ,66.90040),new google.maps.LatLng(25.31688 ,66.57074),new google.maps.LatLng(24.80647 ,67.11432),new google.maps.LatLng(24.50870 ,66.86220),new google.maps.LatLng(24.64968 ,67.29401),new google.maps.LatLng(25.03173 ,67.61187),new google.maps.LatLng(25.29463 ,66.75160),new google.maps.LatLng(24.91906 ,67.67529),new google.maps.LatLng(24.86008 ,66.93016),new google.maps.LatLng(24.46976 ,67.35526),new google.maps.LatLng(25.00751 ,67.77511),new google.maps.LatLng(24.92064 ,66.59184),new google.maps.LatLng(24.26021 ,67.13659),new google.maps.LatLng(24.82502 ,66.69423),new google.maps.LatLng(25.54868 ,67.01476),new google.maps.LatLng(24.31706 ,67.23821),new google.maps.LatLng(25.14635 ,67.40412),new google.maps.LatLng(25.46368 ,67.06668),new google.maps.LatLng(24.98043 ,67.37917),new google.maps.LatLng(24.31235 ,66.79611),new google.maps.LatLng(25.59304 ,66.89243),new google.maps.LatLng(24.98550 ,66.95407),new google.maps.LatLng(24.61015 ,66.91077),new google.maps.LatLng(24.43632 ,66.53641),new google.maps.LatLng(24.58145 ,67.09012),new google.maps.LatLng(24.82961 ,67.56329),new google.maps.LatLng(25.19450 ,66.76330),new google.maps.LatLng(25.44162 ,67.60188),new google.maps.LatLng(24.69876 ,67.68993),new google.maps.LatLng(25.24341 ,67.14369),new google.maps.LatLng(24.97106 ,67.04576),new google.maps.LatLng(25.03332 ,67.37593),new google.maps.LatLng(24.39125 ,67.00259),new google.maps.LatLng(25.30864 ,67.29474),new google.maps.LatLng(24.94183 ,66.67147),new google.maps.LatLng(24.48137 ,67.16015),new google.maps.LatLng(25.25207 ,67.13821),new google.maps.LatLng(25.26037 ,67.36983),new google.maps.LatLng(25.14197 ,67.25635),new google.maps.LatLng(25.32924 ,67.69167),new google.maps.LatLng(25.23844 ,67.63380),new google.maps.LatLng(25.07250 ,67.44599),new google.maps.LatLng(25.53599 ,66.81920),new google.maps.LatLng(25.50404 ,67.17471),new google.maps.LatLng(24.22852 ,67.31175),new google.maps.LatLng(25.13249 ,66.95171),new google.maps.LatLng(25.10025 ,67.76255),new google.maps.LatLng(24.73556 ,66.90207),new google.maps.LatLng(25.45120 ,67.30565),new google.maps.LatLng(25.61271 ,66.99338),new google.maps.LatLng(24.63994 ,66.74934),new google.maps.LatLng(25.68635 ,67.11853),new google.maps.LatLng(25.20291 ,67.19169),new google.maps.LatLng(25.29265 ,66.72896),new google.maps.LatLng(24.92820 ,66.93716),new google.maps.LatLng(24.40979 ,67.27268),new google.maps.LatLng(24.86891 ,67.08022),new google.maps.LatLng(25.43220 ,67.04657),new google.maps.LatLng(25.11798 ,67.61388),new google.maps.LatLng(24.58470 ,66.69606),new google.maps.LatLng(24.96057 ,67.35812),new google.maps.LatLng(24.67369 ,66.63555),new google.maps.LatLng(25.23154 ,66.94012),new google.maps.LatLng(25.39331 ,66.85714),new google.maps.LatLng(24.99212 ,67.75286),new google.maps.LatLng(25.58136 ,67.33057),new google.maps.LatLng(24.60420 ,67.68778),new google.maps.LatLng(25.63918 ,67.05918),new google.maps.LatLng(24.65812 ,66.60928),new google.maps.LatLng(24.25965 ,67.24966),new google.maps.LatLng(24.94524 ,67.38654),new google.maps.LatLng(24.92054 ,67.26820),new google.maps.LatLng(24.48237 ,67.12719),new google.maps.LatLng(25.22396 ,67.33923),new google.maps.LatLng(24.55434 ,66.58236),new google.maps.LatLng(25.23411 ,67.14338),new google.maps.LatLng(24.31597 ,67.09514),new google.maps.LatLng(24.53236 ,67.57066),new google.maps.LatLng(25.39377 ,67.23735),new google.maps.LatLng(25.47849 ,67.41972),new google.maps.LatLng(25.04673 ,67.28693),new google.maps.LatLng(25.02156 ,67.06271),new google.maps.LatLng(25.35371 ,67.66052),new google.maps.LatLng(24.69943 ,67.54472),new google.maps.LatLng(25.16355 ,66.89433),new google.maps.LatLng(24.84633 ,66.32173),new google.maps.LatLng(24.92573 ,66.77575),new google.maps.LatLng(25.06473 ,67.63876),new google.maps.LatLng(24.33148 ,67.43355),new google.maps.LatLng(25.49822 ,66.96906),new google.maps.LatLng(24.83496 ,66.95834),new google.maps.LatLng(24.68851 ,66.48027),new google.maps.LatLng(25.22265 ,66.73633),new google.maps.LatLng(24.71690 ,66.74043),new google.maps.LatLng(25.23010 ,67.12520),new google.maps.LatLng(25.40011 ,66.59762),new google.maps.LatLng(25.14115 ,67.12641),new google.maps.LatLng(24.87090 ,67.39389),new google.maps.LatLng(24.86067 ,66.76296),new google.maps.LatLng(24.44455 ,66.88924),new google.maps.LatLng(24.66821 ,66.71493),new google.maps.LatLng(24.57896 ,67.29999),new google.maps.LatLng(24.56385 ,67.71453),new google.maps.LatLng(24.78781 ,66.38455),new google.maps.LatLng(24.84993 ,67.46628),new google.maps.LatLng(24.72754 ,66.50270),new google.maps.LatLng(25.20155 ,67.38173),new google.maps.LatLng(25.62829 ,66.88304),new google.maps.LatLng(24.44019 ,66.94126),new google.maps.LatLng(25.10165 ,67.26250),new google.maps.LatLng(24.93871 ,67.26602),new google.maps.LatLng(25.12508 ,66.45289),new google.maps.LatLng(24.84746 ,66.59403),new google.maps.LatLng(24.90492 ,66.41135),new google.maps.LatLng(24.92871 ,67.67400),new google.maps.LatLng(25.42047 ,67.48635),new google.maps.LatLng(24.56783 ,67.37245),new google.maps.LatLng(24.67270 ,67.58695),new google.maps.LatLng(25.27924 ,67.03075),new google.maps.LatLng(25.03482 ,66.32539),new google.maps.LatLng(25.24346 ,66.82869),new google.maps.LatLng(25.42060 ,66.70022),new google.maps.LatLng(25.06693 ,67.35173),new google.maps.LatLng(24.91333 ,66.71847),new google.maps.LatLng(24.78180 ,67.69388),new google.maps.LatLng(24.66129 ,66.43517),new google.maps.LatLng(24.78484 ,67.68511),new google.maps.LatLng(24.95672 ,67.56245),new google.maps.LatLng(24.67481 ,67.74546),new google.maps.LatLng(24.92233 ,67.12150),new google.maps.LatLng(24.52716 ,67.02741),new google.maps.LatLng(25.50229 ,66.68259),new google.maps.LatLng(24.65552 ,66.85786),new google.maps.LatLng(25.53829 ,67.30658),new google.maps.LatLng(24.46533 ,66.89095),new google.maps.LatLng(24.69021 ,67.57826),new google.maps.LatLng(25.58491 ,67.18325),new google.maps.LatLng(25.59928 ,67.42122),new google.maps.LatLng(24.31024 ,67.17970),new google.maps.LatLng(24.87171 ,67.19457),new google.maps.LatLng(25.21357 ,66.46689),new google.maps.LatLng(25.42061 ,66.61213),new google.maps.LatLng(24.98605 ,67.45153),new google.maps.LatLng(25.43229 ,67.31444),new google.maps.LatLng(24.99044 ,67.05723),new google.maps.LatLng(24.47890 ,66.73065),new google.maps.LatLng(24.47357 ,66.89784),new google.maps.LatLng(24.30659 ,67.45125),new google.maps.LatLng(25.07435 ,66.62034),new google.maps.LatLng(24.42666 ,67.04026),new google.maps.LatLng(24.52903 ,67.03920),new google.maps.LatLng(24.62993 ,66.72870),new google.maps.LatLng(24.53853 ,67.13869),new google.maps.LatLng(24.75697 ,66.70434),new google.maps.LatLng(25.39427 ,67.03280),new google.maps.LatLng(25.26011 ,66.63335),new google.maps.LatLng(24.54020 ,67.41382),new google.maps.LatLng(24.94774 ,66.42985),new google.maps.LatLng(24.81517 ,66.58239),new google.maps.LatLng(25.43403 ,67.28224),new google.maps.LatLng(25.23954 ,67.53224),new google.maps.LatLng(24.27627 ,66.88926),new google.maps.LatLng(25.14765 ,67.54957),new google.maps.LatLng(24.95462 ,66.31975),new google.maps.LatLng(24.68025 ,67.05499),new google.maps.LatLng(24.96221 ,66.98854),new google.maps.LatLng(25.15861 ,67.69146),new google.maps.LatLng(25.35492 ,66.69120),new google.maps.LatLng(25.06399 ,66.75670),new google.maps.LatLng(24.52017 ,67.64295),new google.maps.LatLng(24.96346 ,67.61575),new google.maps.LatLng(25.19393 ,66.38359),new google.maps.LatLng(24.67770 ,67.08596),new google.maps.LatLng(25.22348 ,67.51960),new google.maps.LatLng(25.03346 ,66.42132),new google.maps.LatLng(24.84674 ,66.79813),new google.maps.LatLng(25.53917 ,66.99891),new google.maps.LatLng(25.02828 ,67.66087),new google.maps.LatLng(24.50073 ,67.33797),new google.maps.LatLng(25.04755 ,66.91986),new google.maps.LatLng(24.99465 ,67.35135),new google.maps.LatLng(25.50907 ,67.25944),new google.maps.LatLng(24.50254 ,66.89081),new google.maps.LatLng(24.65745 ,67.67214),new google.maps.LatLng(25.31506 ,66.54450),new google.maps.LatLng(25.51017 ,66.91052),new google.maps.LatLng(24.75546 ,66.38433),new google.maps.LatLng(24.86717 ,67.70543),new google.maps.LatLng(25.11282 ,66.35293),new google.maps.LatLng(24.73619 ,67.14354),new google.maps.LatLng(25.28870 ,66.92967),new google.maps.LatLng(24.47518 ,66.81851),new google.maps.LatLng(25.10095 ,67.52812),new google.maps.LatLng(24.96367 ,67.05507),new google.maps.LatLng(24.53687 ,66.51014),new google.maps.LatLng(25.27951 ,66.58019),new google.maps.LatLng(24.99720 ,67.29196),new google.maps.LatLng(25.05678 ,67.08814),new google.maps.LatLng(25.32911 ,67.47642),new google.maps.LatLng(24.71883 ,66.50036),new google.maps.LatLng(25.57005 ,67.23308),new google.maps.LatLng(25.53244 ,67.22372),new google.maps.LatLng(25.13313 ,66.81348),new google.maps.LatLng(24.63173 ,66.74067),new google.maps.LatLng(24.57184 ,66.95717),new google.maps.LatLng(25.58222 ,66.83988),new google.maps.LatLng(24.68936 ,66.75596),new google.maps.LatLng(24.57004 ,67.12922),new google.maps.LatLng(24.92910 ,67.04664),new google.maps.LatLng(24.64407 ,66.47196),new google.maps.LatLng(25.10351 ,67.00506),new google.maps.LatLng(24.85817 ,66.57644),new google.maps.LatLng(24.82830 ,67.05583),new google.maps.LatLng(25.03350 ,66.91384),new google.maps.LatLng(25.09209 ,66.44654),new google.maps.LatLng(25.25534 ,67.18039),new google.maps.LatLng(24.71309 ,67.45228),new google.maps.LatLng(24.98967 ,67.18675),new google.maps.LatLng(25.21038 ,66.98641),new google.maps.LatLng(25.34578 ,67.09823),new google.maps.LatLng(24.70777 ,66.55710),new google.maps.LatLng(25.09609 ,66.72502),new google.maps.LatLng(24.55327 ,66.48162),new google.maps.LatLng(25.07842 ,66.87681),new google.maps.LatLng(24.88605 ,67.78797),new google.maps.LatLng(24.49914 ,66.89618),new google.maps.LatLng(25.11776 ,67.51924),new google.maps.LatLng(24.90376 ,66.77849),new google.maps.LatLng(24.74804 ,66.38451),new google.maps.LatLng(24.59716 ,66.39383),new google.maps.LatLng(25.37642 ,67.13858),new google.maps.LatLng(24.69149 ,67.33750),new google.maps.LatLng(24.55861 ,66.99872),new google.maps.LatLng(24.54326 ,66.79124),new google.maps.LatLng(24.96148 ,67.61834),new google.maps.LatLng(24.45655 ,66.76027),new google.maps.LatLng(25.20545 ,66.71849),new google.maps.LatLng(24.90942 ,66.69771),new google.maps.LatLng(24.69678 ,67.35888),new google.maps.LatLng(24.41491 ,67.42247),new google.maps.LatLng(24.81048 ,67.38626),new google.maps.LatLng(25.45971 ,67.36121),new google.maps.LatLng(24.92123 ,66.42434),new google.maps.LatLng(24.44389 ,67.09683),new google.maps.LatLng(24.52314 ,67.51060),new google.maps.LatLng(25.45869 ,66.86536),new google.maps.LatLng(25.20674 ,67.04210),new google.maps.LatLng(24.66223 ,66.73598),new google.maps.LatLng(24.78231 ,66.72810),new google.maps.LatLng(24.79245 ,66.69194),new google.maps.LatLng(25.68295 ,67.05063),new google.maps.LatLng(24.98271 ,66.98980),new google.maps.LatLng(25.49104 ,66.92822),new google.maps.LatLng(24.80596 ,67.22578),new google.maps.LatLng(25.22709 ,67.44486),new google.maps.LatLng(25.50513 ,67.18340),new google.maps.LatLng(24.41088 ,67.01465),new google.maps.LatLng(25.06347 ,67.11902),new google.maps.LatLng(25.12788 ,67.68112),new google.maps.LatLng(25.05285 ,66.54631),new google.maps.LatLng(24.98233 ,66.49353),new google.maps.LatLng(24.41991 ,67.02854),new google.maps.LatLng(25.18078 ,67.65535),new google.maps.LatLng(24.32921 ,66.98945),new google.maps.LatLng(25.08107 ,67.46324),new google.maps.LatLng(25.43556 ,67.49387),new google.maps.LatLng(24.76302 ,66.38150),new google.maps.LatLng(24.50767 ,66.97410),new google.maps.LatLng(25.39141 ,66.96227),new google.maps.LatLng(25.37662 ,67.33175),new google.maps.LatLng(24.43679 ,66.82826),new google.maps.LatLng(24.86272 ,67.82454),new google.maps.LatLng(24.43889 ,67.63435),new google.maps.LatLng(25.05726 ,67.23604),new google.maps.LatLng(24.44090 ,67.32594),new google.maps.LatLng(25.13776 ,67.59204),new google.maps.LatLng(25.46912 ,66.53579),new google.maps.LatLng(24.52848 ,66.62287),new google.maps.LatLng(25.41796 ,66.63430),new google.maps.LatLng(24.20606 ,67.02378),new google.maps.LatLng(24.27148 ,67.30696),new google.maps.LatLng(24.82124 ,67.12177),new google.maps.LatLng(24.69325 ,67.62446),new google.maps.LatLng(25.26330 ,67.73193),new google.maps.LatLng(24.83102 ,66.70464),new google.maps.LatLng(24.78752 ,66.74186),new google.maps.LatLng(25.04202 ,67.41010),new google.maps.LatLng(25.40067 ,66.93341),new google.maps.LatLng(24.50839 ,66.46920),new google.maps.LatLng(24.66692 ,66.97448),new google.maps.LatLng(24.26652 ,67.41133),new google.maps.LatLng(25.39738 ,66.58257),new google.maps.LatLng(25.29942 ,67.38688),new google.maps.LatLng(25.58818 ,67.18069),new google.maps.LatLng(24.48798 ,66.61823),new google.maps.LatLng(24.66790 ,66.43533),new google.maps.LatLng(24.54264 ,67.03512),new google.maps.LatLng(25.41682 ,66.93802),new google.maps.LatLng(24.52309 ,67.52023),new google.maps.LatLng(25.38713 ,67.68969),new google.maps.LatLng(25.15268 ,67.63728),new google.maps.LatLng(25.33561 ,66.97620),new google.maps.LatLng(25.59226 ,66.91204),new google.maps.LatLng(25.25343 ,66.73574),new google.maps.LatLng(24.78772 ,67.79249),new google.maps.LatLng(24.66521 ,67.15824),new google.maps.LatLng(25.11764 ,66.39447),new google.maps.LatLng(24.54992 ,67.08326),new google.maps.LatLng(24.78513 ,67.23095),new google.maps.LatLng(25.21461 ,67.63493),new google.maps.LatLng(25.60319 ,67.13763),new google.maps.LatLng(24.47967 ,67.04926),new google.maps.LatLng(24.65910 ,67.08601),new google.maps.LatLng(25.03948 ,66.56467),new google.maps.LatLng(24.48089 ,66.58984),new google.maps.LatLng(25.15265 ,67.31521),new google.maps.LatLng(25.12596 ,66.54535),new google.maps.LatLng(24.54780 ,67.53016),new google.maps.LatLng(25.23386 ,67.44091),new google.maps.LatLng(24.65082 ,66.66525),new google.maps.LatLng(25.19882 ,67.04982),new google.maps.LatLng(25.16847 ,67.26924),new google.maps.LatLng(24.90524 ,67.63110),new google.maps.LatLng(24.91091 ,67.05976),new google.maps.LatLng(24.37342 ,67.25105),new google.maps.LatLng(24.73583 ,66.91535),new google.maps.LatLng(24.93898 ,66.72768),new google.maps.LatLng(25.65083 ,67.07573),new google.maps.LatLng(24.61747 ,66.58571),new google.maps.LatLng(24.29209 ,67.39774),new google.maps.LatLng(25.37303 ,66.69407),new google.maps.LatLng(24.77212 ,67.68698),new google.maps.LatLng(24.33585 ,66.92891),new google.maps.LatLng(25.46466 ,67.14341),new google.maps.LatLng(24.61692 ,66.48033),new google.maps.LatLng(24.75742 ,67.59839),new google.maps.LatLng(24.26686 ,67.31279),new google.maps.LatLng(24.24123 ,66.98780),new google.maps.LatLng(25.06541 ,66.32490),new google.maps.LatLng(24.87508 ,67.47680),new google.maps.LatLng(24.30732 ,67.03669),new google.maps.LatLng(24.94193 ,67.43569),new google.maps.LatLng(24.63204 ,67.05781),new google.maps.LatLng(25.20447 ,67.15435),new google.maps.LatLng(25.36262 ,66.63687),new google.maps.LatLng(25.46915 ,66.55247),new google.maps.LatLng(24.82843 ,67.59329),new google.maps.LatLng(25.36513 ,66.48438),new google.maps.LatLng(24.79592 ,66.86281),new google.maps.LatLng(24.25187 ,66.84122),new google.maps.LatLng(24.52361 ,67.12939),new google.maps.LatLng(25.59601 ,67.34953),new google.maps.LatLng(24.31041 ,66.93544),new google.maps.LatLng(25.03610 ,67.06607),new google.maps.LatLng(24.79153 ,66.93810),new google.maps.LatLng(25.08395 ,67.31770),new google.maps.LatLng(24.77840 ,67.32559),new google.maps.LatLng(24.95477 ,67.33160),new google.maps.LatLng(25.33692 ,66.66600),new google.maps.LatLng(24.65135 ,67.04918),new google.maps.LatLng(24.74871 ,67.31328),new google.maps.LatLng(24.85850 ,67.08389),new google.maps.LatLng(25.40847 ,66.46499),new google.maps.LatLng(25.23625 ,66.59536),new google.maps.LatLng(25.32760 ,67.60982),new google.maps.LatLng(24.25228 ,66.95649),new google.maps.LatLng(24.28717 ,67.21118),new google.maps.LatLng(24.91426 ,66.93907),new google.maps.LatLng(25.07984 ,66.78019),new google.maps.LatLng(25.17527 ,67.24116),new google.maps.LatLng(24.48452 ,66.91865),new google.maps.LatLng(25.61748 ,66.89985),new google.maps.LatLng(25.09872 ,67.12464),new google.maps.LatLng(25.25889 ,67.61241),new google.maps.LatLng(25.25282 ,66.63850),new google.maps.LatLng(25.48088 ,67.26711),new google.maps.LatLng(25.05496 ,67.24225),new google.maps.LatLng(25.41683 ,66.84971),new google.maps.LatLng(24.87118 ,66.39546),new google.maps.LatLng(25.62467 ,67.07250),new google.maps.LatLng(25.59286 ,67.44972),new google.maps.LatLng(24.69042 ,66.71032),new google.maps.LatLng(25.24862 ,67.19640),new google.maps.LatLng(24.62391 ,67.16976),new google.maps.LatLng(24.76656 ,66.57190),new google.maps.LatLng(24.24792 ,66.87482),new google.maps.LatLng(24.46805 ,66.70018),new google.maps.LatLng(24.52641 ,67.55370),new google.maps.LatLng(25.37116 ,66.74687),new google.maps.LatLng(25.06793 ,66.56414),new google.maps.LatLng(25.15676 ,66.95674),new google.maps.LatLng(25.44399 ,67.22989),new google.maps.LatLng(24.72741 ,67.46231),new google.maps.LatLng(24.73950 ,66.78499),new google.maps.LatLng(25.57830 ,67.49283),new google.maps.LatLng(25.22696 ,66.39501),new google.maps.LatLng(25.22112 ,66.93365)]; \r\n }\r\n else if(type == 8){\r\n return [new google.maps.LatLng(33.26396 ,72.58537),new google.maps.LatLng(34.10490 ,73.22832),new google.maps.LatLng(33.85131 ,73.08781),new google.maps.LatLng(33.46432 ,72.65742),new google.maps.LatLng(33.33806 ,73.58385),new google.maps.LatLng(33.35194 ,72.47500),new google.maps.LatLng(33.94087 ,72.54682),new google.maps.LatLng(33.77831 ,72.89256),new google.maps.LatLng(33.52738 ,72.51439),new google.maps.LatLng(33.40016 ,73.01535),new google.maps.LatLng(33.57389 ,73.67557),new google.maps.LatLng(33.61345 ,73.46624),new google.maps.LatLng(34.00442 ,73.28261),new google.maps.LatLng(33.43705 ,73.11157),new google.maps.LatLng(33.69558 ,72.49200),new google.maps.LatLng(33.30203 ,72.68562),new google.maps.LatLng(33.90003 ,73.33272),new google.maps.LatLng(33.48914 ,73.53006),new google.maps.LatLng(33.24966 ,73.38680),new google.maps.LatLng(33.74186 ,73.19897),new google.maps.LatLng(33.48299 ,72.81467),new google.maps.LatLng(33.13811 ,73.09635),new google.maps.LatLng(33.87062 ,73.01396),new google.maps.LatLng(33.52418 ,73.07307),new google.maps.LatLng(33.30100 ,72.63808),new google.maps.LatLng(33.49925 ,73.39138),new google.maps.LatLng(33.76486 ,72.86813),new google.maps.LatLng(34.10467 ,72.55248),new google.maps.LatLng(33.97446 ,73.36626),new google.maps.LatLng(33.33208 ,72.80121),new google.maps.LatLng(33.61517 ,73.59413),new google.maps.LatLng(33.92370 ,73.35594),new google.maps.LatLng(33.47682 ,73.22925),new google.maps.LatLng(33.88455 ,73.27791),new google.maps.LatLng(33.17689 ,73.07643),new google.maps.LatLng(33.76045 ,73.33376),new google.maps.LatLng(34.16482 ,72.60549),new google.maps.LatLng(33.78131 ,73.68763),new google.maps.LatLng(33.82545 ,72.48870),new google.maps.LatLng(34.27762 ,73.09707),new google.maps.LatLng(33.64002 ,73.23422),new google.maps.LatLng(33.39379 ,72.55130),new google.maps.LatLng(33.18158 ,73.41535),new google.maps.LatLng(34.12096 ,72.97991),new google.maps.LatLng(34.20881 ,73.25941),new google.maps.LatLng(33.38164 ,73.57755),new google.maps.LatLng(33.31115 ,72.90686),new google.maps.LatLng(34.04407 ,73.01611),new google.maps.LatLng(34.33691 ,73.12744),new google.maps.LatLng(33.24352 ,73.45023),new google.maps.LatLng(33.81978 ,73.50812),new google.maps.LatLng(33.59267 ,73.58954),new google.maps.LatLng(33.61847 ,73.42599),new google.maps.LatLng(33.37391 ,73.47421),new google.maps.LatLng(33.72754 ,72.66009),new google.maps.LatLng(34.33090 ,72.83780),new google.maps.LatLng(33.56093 ,72.75696),new google.maps.LatLng(33.85600 ,72.43698),new google.maps.LatLng(33.40623 ,73.31639),new google.maps.LatLng(33.68660 ,73.69037),new google.maps.LatLng(33.94265 ,73.65020),new google.maps.LatLng(33.23592 ,73.30508),new google.maps.LatLng(33.68973 ,72.98496),new google.maps.LatLng(33.41101 ,73.56285),new google.maps.LatLng(33.39698 ,73.13475),new google.maps.LatLng(34.06466 ,72.97647),new google.maps.LatLng(33.56354 ,72.38916),new google.maps.LatLng(33.78311 ,72.93356),new google.maps.LatLng(34.29399 ,72.80367),new google.maps.LatLng(33.70614 ,73.14147),new google.maps.LatLng(33.14692 ,73.09576),new google.maps.LatLng(34.14076 ,72.75198),new google.maps.LatLng(33.88948 ,72.64285),new google.maps.LatLng(33.91993 ,73.22184),new google.maps.LatLng(33.94306 ,73.04110),new google.maps.LatLng(33.57929 ,72.58518),new google.maps.LatLng(34.14613 ,72.90567),new google.maps.LatLng(33.91934 ,73.51368),new google.maps.LatLng(33.83027 ,73.43494),new google.maps.LatLng(33.54531 ,72.43409),new google.maps.LatLng(33.98676 ,73.12153),new google.maps.LatLng(34.35345 ,73.03349),new google.maps.LatLng(33.82385 ,72.86233),new google.maps.LatLng(33.42539 ,72.69079),new google.maps.LatLng(33.80695 ,73.12317),new google.maps.LatLng(33.58934 ,72.48884),new google.maps.LatLng(33.44066 ,73.06794),new google.maps.LatLng(34.28087 ,72.93861),new google.maps.LatLng(33.91032 ,73.04601),new google.maps.LatLng(33.45070 ,72.97569),new google.maps.LatLng(34.23695 ,72.80782),new google.maps.LatLng(33.23380 ,72.54850),new google.maps.LatLng(33.69567 ,73.33258),new google.maps.LatLng(33.10977 ,73.15980),new google.maps.LatLng(33.50589 ,72.97836),new google.maps.LatLng(34.09580 ,73.46947),new google.maps.LatLng(33.77149 ,73.12568),new google.maps.LatLng(33.72477 ,73.00273),new google.maps.LatLng(34.31510 ,72.97190),new google.maps.LatLng(33.03361 ,73.09928),new google.maps.LatLng(33.21862 ,72.97786),new google.maps.LatLng(33.41208 ,73.10607),new google.maps.LatLng(33.53093 ,73.46157),new google.maps.LatLng(33.27312 ,73.09568),new google.maps.LatLng(33.56494 ,72.92568),new google.maps.LatLng(33.22953 ,72.72410),new google.maps.LatLng(33.73006 ,72.82666),new google.maps.LatLng(33.66351 ,73.56010),new google.maps.LatLng(33.48857 ,73.44801),new google.maps.LatLng(33.61906 ,73.64184),new google.maps.LatLng(33.87275 ,73.04642),new google.maps.LatLng(33.92679 ,72.45050),new google.maps.LatLng(33.44640 ,73.18055),new google.maps.LatLng(33.72336 ,73.48061),new google.maps.LatLng(33.97768 ,73.19840),new google.maps.LatLng(33.92415 ,72.53495),new google.maps.LatLng(34.25758 ,73.31763),new google.maps.LatLng(34.19469 ,73.46975),new google.maps.LatLng(33.23572 ,73.31103),new google.maps.LatLng(33.99908 ,73.50743),new google.maps.LatLng(33.74682 ,72.68684),new google.maps.LatLng(34.15210 ,72.60800),new google.maps.LatLng(34.23255 ,73.22382),new google.maps.LatLng(33.83548 ,73.00134),new google.maps.LatLng(33.89327 ,73.39424),new google.maps.LatLng(33.13994 ,72.91354),new google.maps.LatLng(33.13834 ,73.08955),new google.maps.LatLng(33.38809 ,72.85456),new google.maps.LatLng(33.92595 ,72.51300),new google.maps.LatLng(33.85106 ,73.29324),new google.maps.LatLng(34.29000 ,73.19388),new google.maps.LatLng(33.63260 ,72.52457),new google.maps.LatLng(33.89505 ,72.64353),new google.maps.LatLng(33.31698 ,73.00788),new google.maps.LatLng(33.53646 ,72.55883),new google.maps.LatLng(33.84110 ,72.52929),new google.maps.LatLng(33.80701 ,73.02382),new google.maps.LatLng(33.93399 ,73.19481),new google.maps.LatLng(33.26740 ,73.35203),new google.maps.LatLng(34.13577 ,73.14702),new google.maps.LatLng(34.02206 ,73.24503),new google.maps.LatLng(33.83942 ,73.15141),new google.maps.LatLng(33.19953 ,73.40098),new google.maps.LatLng(33.33273 ,73.45042),new google.maps.LatLng(33.15281 ,73.17786),new google.maps.LatLng(33.12345 ,72.67401),new google.maps.LatLng(33.80862 ,73.14679),new google.maps.LatLng(34.20333 ,73.44602),new google.maps.LatLng(33.56307 ,72.76305),new google.maps.LatLng(33.88039 ,73.11358),new google.maps.LatLng(33.21698 ,72.59799),new google.maps.LatLng(33.26930 ,73.10410),new google.maps.LatLng(33.69428 ,73.20580),new google.maps.LatLng(34.10797 ,73.23591),new google.maps.LatLng(34.19594 ,72.96993),new google.maps.LatLng(34.25848 ,72.79021),new google.maps.LatLng(33.81570 ,72.77840),new google.maps.LatLng(33.15506 ,73.04864),new google.maps.LatLng(33.86108 ,72.51488),new google.maps.LatLng(34.22200 ,72.67605),new google.maps.LatLng(33.83987 ,72.50314),new google.maps.LatLng(33.02616 ,73.06470),new google.maps.LatLng(34.20179 ,72.77430),new google.maps.LatLng(33.23417 ,73.14213),new google.maps.LatLng(33.37309 ,72.91479),new google.maps.LatLng(33.10667 ,72.85000),new google.maps.LatLng(33.37832 ,72.85545),new google.maps.LatLng(33.10621 ,73.13091),new google.maps.LatLng(33.47130 ,73.53145),new google.maps.LatLng(33.56771 ,73.37969),new google.maps.LatLng(34.14911 ,73.03606),new google.maps.LatLng(33.80872 ,72.78659),new google.maps.LatLng(33.33249 ,72.78239),new google.maps.LatLng(33.63297 ,73.23418),new google.maps.LatLng(34.29414 ,72.90901),new google.maps.LatLng(33.92578 ,72.80386),new google.maps.LatLng(33.61952 ,72.73057),new google.maps.LatLng(33.27137 ,72.65629),new google.maps.LatLng(33.34142 ,73.26645),new google.maps.LatLng(34.09500 ,72.97621),new google.maps.LatLng(34.00071 ,73.49117),new google.maps.LatLng(34.02780 ,72.77864),new google.maps.LatLng(33.11882 ,72.99771),new google.maps.LatLng(33.64352 ,73.66861),new google.maps.LatLng(33.87631 ,72.54531),new google.maps.LatLng(33.55438 ,72.92996),new google.maps.LatLng(33.40193 ,73.33711),new google.maps.LatLng(33.33632 ,72.45871),new google.maps.LatLng(33.45188 ,72.63099),new google.maps.LatLng(33.14910 ,73.11936),new google.maps.LatLng(33.12516 ,72.96348),new google.maps.LatLng(33.76159 ,72.59998),new google.maps.LatLng(33.33593 ,72.63624),new google.maps.LatLng(33.70472 ,73.53076),new google.maps.LatLng(34.03212 ,73.42319),new google.maps.LatLng(33.38622 ,73.48303),new google.maps.LatLng(33.96921 ,72.87209),new google.maps.LatLng(33.94460 ,72.52159),new google.maps.LatLng(33.87133 ,73.58957),new google.maps.LatLng(33.89001 ,73.53670),new google.maps.LatLng(33.51110 ,73.32667),new google.maps.LatLng(33.39872 ,72.67557),new google.maps.LatLng(33.59142 ,72.57987),new google.maps.LatLng(33.81256 ,72.82247),new google.maps.LatLng(33.43065 ,72.94691),new google.maps.LatLng(34.12519 ,73.29387),new google.maps.LatLng(33.40936 ,72.58345),new google.maps.LatLng(34.25283 ,72.77913),new google.maps.LatLng(33.78717 ,72.89227),new google.maps.LatLng(33.76501 ,72.84263),new google.maps.LatLng(33.46349 ,72.65318),new google.maps.LatLng(33.06953 ,72.76714),new google.maps.LatLng(33.28948 ,73.12602),new google.maps.LatLng(33.18355 ,73.18392),new google.maps.LatLng(33.60221 ,73.21325),new google.maps.LatLng(33.66479 ,72.37406),new google.maps.LatLng(33.40739 ,73.12303),new google.maps.LatLng(33.91638 ,72.58885),new google.maps.LatLng(34.14852 ,73.25524),new google.maps.LatLng(34.18133 ,72.95887),new google.maps.LatLng(33.51470 ,73.46587),new google.maps.LatLng(33.67807 ,73.30758),new google.maps.LatLng(33.82835 ,73.06038),new google.maps.LatLng(33.31345 ,73.46868),new google.maps.LatLng(33.99356 ,73.56909),new google.maps.LatLng(34.20703 ,73.23252),new google.maps.LatLng(34.18818 ,73.31745),new google.maps.LatLng(34.30310 ,73.02438),new google.maps.LatLng(33.41784 ,72.49458),new google.maps.LatLng(33.86545 ,73.51452),new google.maps.LatLng(33.66459 ,73.13150),new google.maps.LatLng(33.90267 ,72.49108),new google.maps.LatLng(33.61940 ,73.25136),new google.maps.LatLng(33.20529 ,73.44499),new google.maps.LatLng(33.04403 ,73.09537),new google.maps.LatLng(33.16298 ,73.04224),new google.maps.LatLng(33.18714 ,73.25274),new google.maps.LatLng(33.97497 ,72.98541),new google.maps.LatLng(33.70369 ,73.31027),new google.maps.LatLng(33.52804 ,73.40844),new google.maps.LatLng(33.69997 ,73.67255),new google.maps.LatLng(34.16948 ,73.02540),new google.maps.LatLng(33.34865 ,72.84769),new google.maps.LatLng(33.49185 ,72.39652),new google.maps.LatLng(33.42361 ,73.14344),new google.maps.LatLng(33.50705 ,72.52576),new google.maps.LatLng(33.48435 ,72.85694),new google.maps.LatLng(33.17941 ,72.97750),new google.maps.LatLng(34.04950 ,73.33657),new google.maps.LatLng(33.91284 ,73.10071),new google.maps.LatLng(33.89580 ,73.19974),new google.maps.LatLng(34.05264 ,72.83683),new google.maps.LatLng(33.25640 ,72.53817),new google.maps.LatLng(33.39889 ,72.92472),new google.maps.LatLng(33.24493 ,72.87565),new google.maps.LatLng(33.36819 ,73.28406),new google.maps.LatLng(34.05753 ,72.84163),new google.maps.LatLng(33.83344 ,73.52478),new google.maps.LatLng(33.18599 ,72.95705),new google.maps.LatLng(33.67228 ,73.30294),new google.maps.LatLng(33.76228 ,72.60272),new google.maps.LatLng(33.65727 ,73.11296),new google.maps.LatLng(34.02707 ,72.72583),new google.maps.LatLng(33.61557 ,73.26894),new google.maps.LatLng(33.78403 ,73.13663),new google.maps.LatLng(33.99123 ,72.52630),new google.maps.LatLng(33.58551 ,73.38713),new google.maps.LatLng(34.26762 ,72.91260),new google.maps.LatLng(33.90833 ,72.61920),new google.maps.LatLng(34.24534 ,73.17000),new google.maps.LatLng(33.61869 ,72.55147),new google.maps.LatLng(33.62979 ,72.63203),new google.maps.LatLng(33.59014 ,72.53978),new google.maps.LatLng(34.00412 ,73.11824),new google.maps.LatLng(34.15989 ,73.24285),new google.maps.LatLng(33.28431 ,72.75574),new google.maps.LatLng(33.21365 ,73.03187),new google.maps.LatLng(33.67465 ,72.69767),new google.maps.LatLng(34.15086 ,72.92265),new google.maps.LatLng(34.34845 ,72.94633),new google.maps.LatLng(33.64536 ,73.12398),new google.maps.LatLng(34.18134 ,72.93634),new google.maps.LatLng(34.18696 ,72.69663),new google.maps.LatLng(33.93586 ,73.33487),new google.maps.LatLng(33.52531 ,73.55832),new google.maps.LatLng(34.27499 ,73.24192),new google.maps.LatLng(34.15289 ,73.40693),new google.maps.LatLng(33.43964 ,72.66362),new google.maps.LatLng(33.92038 ,73.07878),new google.maps.LatLng(33.64905 ,72.80223),new google.maps.LatLng(33.72527 ,73.48229),new google.maps.LatLng(33.73674 ,73.32886),new google.maps.LatLng(34.13408 ,73.29443),new google.maps.LatLng(33.39937 ,73.54953),new google.maps.LatLng(33.55346 ,72.71859),new google.maps.LatLng(33.89961 ,73.21097),new google.maps.LatLng(33.03923 ,73.07331),new google.maps.LatLng(34.12074 ,73.34956),new google.maps.LatLng(33.43777 ,72.84070),new google.maps.LatLng(33.16047 ,72.79021),new google.maps.LatLng(33.09257 ,73.09368),new google.maps.LatLng(33.44519 ,73.64779),new google.maps.LatLng(33.06006 ,73.17097),new google.maps.LatLng(33.82533 ,73.66394),new google.maps.LatLng(33.63179 ,73.49538),new google.maps.LatLng(33.60118 ,73.34109),new google.maps.LatLng(33.81795 ,72.77330),new google.maps.LatLng(33.24726 ,72.82688),new google.maps.LatLng(33.39404 ,72.68570),new google.maps.LatLng(33.63161 ,72.99790),new google.maps.LatLng(34.02074 ,73.59913),new google.maps.LatLng(33.75755 ,72.57392),new google.maps.LatLng(33.30818 ,73.21872),new google.maps.LatLng(33.60733 ,73.20515),new google.maps.LatLng(34.02221 ,73.30601),new google.maps.LatLng(33.84560 ,73.68676),new google.maps.LatLng(33.48441 ,73.23119),new google.maps.LatLng(33.75475 ,72.93768),new google.maps.LatLng(33.54065 ,72.66181),new google.maps.LatLng(33.51278 ,73.65249),new google.maps.LatLng(34.24674 ,72.97827),new google.maps.LatLng(33.33198 ,72.71577),new google.maps.LatLng(33.52286 ,73.65774),new google.maps.LatLng(33.68263 ,72.41800),new google.maps.LatLng(33.91779 ,73.22395),new google.maps.LatLng(33.38685 ,72.51727),new google.maps.LatLng(33.06287 ,72.86019),new google.maps.LatLng(33.49901 ,72.83506),new google.maps.LatLng(33.33766 ,72.54311),new google.maps.LatLng(33.64678 ,73.68973),new google.maps.LatLng(33.32764 ,73.51285),new google.maps.LatLng(33.77413 ,72.98560),new google.maps.LatLng(34.30333 ,73.18712),new google.maps.LatLng(33.68723 ,72.85540),new google.maps.LatLng(33.23260 ,73.25349),new google.maps.LatLng(33.17567 ,72.65837),new google.maps.LatLng(33.25962 ,73.08894),new google.maps.LatLng(33.13931 ,72.96831),new google.maps.LatLng(34.03945 ,72.56184),new google.maps.LatLng(33.77507 ,72.54750),new google.maps.LatLng(33.48652 ,72.77549),new google.maps.LatLng(34.07564 ,73.52811),new google.maps.LatLng(33.94954 ,73.22214),new google.maps.LatLng(33.91789 ,73.04810),new google.maps.LatLng(33.89776 ,73.43318),new google.maps.LatLng(33.46697 ,73.45800),new google.maps.LatLng(33.26852 ,72.60129),new google.maps.LatLng(33.36320 ,73.27435),new google.maps.LatLng(33.56794 ,73.61177),new google.maps.LatLng(33.95778 ,73.31473),new google.maps.LatLng(33.40974 ,72.71883),new google.maps.LatLng(34.08447 ,72.95602),new google.maps.LatLng(34.09381 ,72.50323),new google.maps.LatLng(34.12314 ,73.11287),new google.maps.LatLng(33.72795 ,73.41041),new google.maps.LatLng(33.48919 ,73.47510),new google.maps.LatLng(33.93135 ,73.46085),new google.maps.LatLng(33.76321 ,72.98131),new google.maps.LatLng(33.36753 ,72.79848),new google.maps.LatLng(33.51225 ,72.52037),new google.maps.LatLng(33.41254 ,73.10847),new google.maps.LatLng(33.78152 ,72.79101),new google.maps.LatLng(33.51463 ,72.49039),new google.maps.LatLng(33.91338 ,72.94243),new google.maps.LatLng(33.72927 ,72.64479),new google.maps.LatLng(33.67933 ,72.57820),new google.maps.LatLng(33.63245 ,73.53273),new google.maps.LatLng(34.28807 ,72.77254),new google.maps.LatLng(33.59435 ,73.24602),new google.maps.LatLng(33.22550 ,73.20716),new google.maps.LatLng(33.53604 ,73.51302),new google.maps.LatLng(33.14500 ,73.20646),new google.maps.LatLng(33.52169 ,72.77369),new google.maps.LatLng(33.51663 ,72.72223),new google.maps.LatLng(34.06632 ,72.71096),new google.maps.LatLng(33.12103 ,73.00605),new google.maps.LatLng(34.03180 ,72.58913),new google.maps.LatLng(34.05871 ,73.39489),new google.maps.LatLng(33.45001 ,73.23768),new google.maps.LatLng(33.78751 ,73.26226),new google.maps.LatLng(33.35962 ,73.18410),new google.maps.LatLng(34.04951 ,73.24211),new google.maps.LatLng(33.05773 ,72.96749),new google.maps.LatLng(33.61716 ,72.62743),new google.maps.LatLng(33.38977 ,72.94076),new google.maps.LatLng(33.95930 ,72.74347),new google.maps.LatLng(33.60635 ,72.42834),new google.maps.LatLng(33.65279 ,73.68711),new google.maps.LatLng(33.92320 ,73.07469),new google.maps.LatLng(34.22471 ,73.41241),new google.maps.LatLng(33.30018 ,72.92009),new google.maps.LatLng(34.16627 ,73.04390),new google.maps.LatLng(34.24208 ,73.27201),new google.maps.LatLng(33.72809 ,72.58797),new google.maps.LatLng(34.27291 ,73.19759),new google.maps.LatLng(34.13249 ,72.76722),new google.maps.LatLng(33.35091 ,72.48923),new google.maps.LatLng(34.33864 ,73.19776),new google.maps.LatLng(33.83309 ,73.25170),new google.maps.LatLng(33.86585 ,73.24641),new google.maps.LatLng(33.43856 ,73.24184),new google.maps.LatLng(33.89780 ,73.45009),new google.maps.LatLng(33.43830 ,72.98884),new google.maps.LatLng(33.44548 ,73.42715),new google.maps.LatLng(33.37633 ,72.86202),new google.maps.LatLng(33.36117 ,73.17092),new google.maps.LatLng(33.07780 ,72.91060),new google.maps.LatLng(34.29407 ,72.76240),new google.maps.LatLng(33.49183 ,73.64303),new google.maps.LatLng(33.41559 ,73.21022),new google.maps.LatLng(33.73857 ,72.78185),new google.maps.LatLng(33.20953 ,73.33618),new google.maps.LatLng(34.01386 ,73.37587),new google.maps.LatLng(33.62214 ,72.71605),new google.maps.LatLng(34.08668 ,73.09775),new google.maps.LatLng(33.94969 ,72.89971),new google.maps.LatLng(33.68066 ,72.53081),new google.maps.LatLng(34.06808 ,73.37694),new google.maps.LatLng(33.49928 ,73.62282),new google.maps.LatLng(33.70668 ,73.08768),new google.maps.LatLng(33.57122 ,73.46379),new google.maps.LatLng(34.18266 ,73.21421),new google.maps.LatLng(33.07272 ,73.05383),new google.maps.LatLng(33.47654 ,73.02148),new google.maps.LatLng(33.21214 ,73.12800),new google.maps.LatLng(34.02834 ,73.02224),new google.maps.LatLng(33.76364 ,73.52588),new google.maps.LatLng(33.91683 ,72.67910),new google.maps.LatLng(33.36907 ,72.84706),new google.maps.LatLng(33.77549 ,73.39547),new google.maps.LatLng(33.69881 ,73.48947),new google.maps.LatLng(33.10697 ,73.05363),new google.maps.LatLng(34.16498 ,72.91242),new google.maps.LatLng(33.82978 ,73.53700),new google.maps.LatLng(33.40702 ,73.51510),new google.maps.LatLng(33.83628 ,72.54757),new google.maps.LatLng(34.21040 ,73.29330),new google.maps.LatLng(33.12084 ,73.29814),new google.maps.LatLng(33.36112 ,72.55287),new google.maps.LatLng(33.29553 ,73.42759),new google.maps.LatLng(33.09134 ,72.72113),new google.maps.LatLng(34.00418 ,73.34536),new google.maps.LatLng(34.29421 ,72.93897),new google.maps.LatLng(33.86810 ,73.61390),new google.maps.LatLng(33.07274 ,73.30543),new google.maps.LatLng(33.72438 ,73.70058),new google.maps.LatLng(34.03477 ,73.35214),new google.maps.LatLng(33.75829 ,73.65521),new google.maps.LatLng(33.92871 ,73.36697),new google.maps.LatLng(33.44993 ,73.33975),new google.maps.LatLng(34.07452 ,73.47653),new google.maps.LatLng(33.91202 ,72.52994),new google.maps.LatLng(33.74598 ,72.50256),new google.maps.LatLng(34.03596 ,73.41508),new google.maps.LatLng(33.79061 ,72.81790),new google.maps.LatLng(33.88290 ,72.89893),new google.maps.LatLng(33.61094 ,73.25011),new google.maps.LatLng(34.13749 ,73.04672),new google.maps.LatLng(34.23553 ,72.85494),new google.maps.LatLng(33.41610 ,73.07618),new google.maps.LatLng(33.98942 ,73.10516),new google.maps.LatLng(33.16270 ,73.34406),new google.maps.LatLng(33.88853 ,73.20092),new google.maps.LatLng(34.12437 ,73.12865),new google.maps.LatLng(33.51711 ,73.37552),new google.maps.LatLng(34.23316 ,72.88504),new google.maps.LatLng(33.18936 ,72.66903),new google.maps.LatLng(33.38295 ,73.54229),new google.maps.LatLng(34.07421 ,72.83942),new google.maps.LatLng(33.71892 ,72.71273),new google.maps.LatLng(33.91790 ,73.63617),new google.maps.LatLng(34.19469 ,73.02205),new google.maps.LatLng(33.43025 ,73.54388),new google.maps.LatLng(33.96930 ,72.66254),new google.maps.LatLng(34.04848 ,73.14449),new google.maps.LatLng(33.53894 ,73.20441),new google.maps.LatLng(33.94740 ,73.51943),new google.maps.LatLng(33.45474 ,73.32465),new google.maps.LatLng(33.82814 ,72.37701),new google.maps.LatLng(34.11337 ,73.04233),new google.maps.LatLng(33.90569 ,73.48449),new google.maps.LatLng(33.20113 ,72.63107),new google.maps.LatLng(33.85093 ,73.35176),new google.maps.LatLng(34.17550 ,72.74366),new google.maps.LatLng(33.57983 ,73.06115),new google.maps.LatLng(33.71363 ,72.76687),new google.maps.LatLng(33.93092 ,72.98617),new google.maps.LatLng(33.26756 ,73.01781),new google.maps.LatLng(34.19892 ,72.63832),new google.maps.LatLng(33.90441 ,72.47995),new google.maps.LatLng(33.81298 ,73.24861),new google.maps.LatLng(34.00417 ,72.54865),new google.maps.LatLng(33.89173 ,72.52651),new google.maps.LatLng(33.21713 ,72.99347),new google.maps.LatLng(33.05865 ,73.22846),new google.maps.LatLng(33.58723 ,72.88817),new google.maps.LatLng(33.62655 ,73.22512),new google.maps.LatLng(33.20367 ,72.67520),new google.maps.LatLng(34.16187 ,73.33441),new google.maps.LatLng(33.24272 ,72.55955),new google.maps.LatLng(34.11404 ,72.88915),new google.maps.LatLng(33.71740 ,72.72537),new google.maps.LatLng(34.07428 ,72.89283),new google.maps.LatLng(33.06795 ,73.14320),new google.maps.LatLng(34.25651 ,73.16855),new google.maps.LatLng(34.18937 ,73.22912),new google.maps.LatLng(33.33786 ,73.31968),new google.maps.LatLng(34.01061 ,72.62104),new google.maps.LatLng(33.60956 ,72.80339),new google.maps.LatLng(33.90931 ,73.15491),new google.maps.LatLng(33.34737 ,72.83769),new google.maps.LatLng(34.01634 ,72.72713),new google.maps.LatLng(34.26504 ,73.23150),new google.maps.LatLng(33.69919 ,72.40103),new google.maps.LatLng(33.79148 ,72.61264),new google.maps.LatLng(33.63349 ,73.04406),new google.maps.LatLng(33.70296 ,73.18221),new google.maps.LatLng(34.19790 ,73.01748),new google.maps.LatLng(33.74027 ,73.08209),new google.maps.LatLng(33.12293 ,73.09200),new google.maps.LatLng(33.71028 ,73.64986),new google.maps.LatLng(33.28323 ,72.69972),new google.maps.LatLng(33.22897 ,72.99983),new google.maps.LatLng(33.07234 ,72.88808),new google.maps.LatLng(33.58565 ,73.52906),new google.maps.LatLng(33.69235 ,73.68826),new google.maps.LatLng(33.67442 ,73.01089),new google.maps.LatLng(33.21056 ,73.09601),new google.maps.LatLng(33.63091 ,72.42410),new google.maps.LatLng(33.56919 ,73.17520),new google.maps.LatLng(33.59088 ,73.20036),new google.maps.LatLng(33.56339 ,73.66183),new google.maps.LatLng(33.52385 ,72.86918),new google.maps.LatLng(33.30752 ,73.43662),new google.maps.LatLng(34.05358 ,72.64848),new google.maps.LatLng(33.73467 ,72.77393),new google.maps.LatLng(33.42474 ,73.64154),new google.maps.LatLng(33.09662 ,73.24613),new google.maps.LatLng(33.26818 ,73.46325),new google.maps.LatLng(33.78579 ,72.76257),new google.maps.LatLng(33.93056 ,72.50926),new google.maps.LatLng(33.76375 ,73.14261),new google.maps.LatLng(33.30552 ,73.46440),new google.maps.LatLng(33.57231 ,73.31009),new google.maps.LatLng(33.38346 ,72.75627),new google.maps.LatLng(33.15720 ,73.41078),new google.maps.LatLng(33.53974 ,73.14060),new google.maps.LatLng(34.07454 ,73.55799),new google.maps.LatLng(33.72720 ,72.58599),new google.maps.LatLng(34.19959 ,73.36382),new google.maps.LatLng(33.23736 ,73.08962),new google.maps.LatLng(33.16475 ,73.07452),new google.maps.LatLng(34.34390 ,72.97268),new google.maps.LatLng(33.70627 ,73.50048),new google.maps.LatLng(33.71666 ,73.62978),new google.maps.LatLng(33.32747 ,73.33152),new google.maps.LatLng(33.75935 ,73.12331),new google.maps.LatLng(33.12311 ,73.35597),new google.maps.LatLng(33.45970 ,73.56255),new google.maps.LatLng(33.20729 ,72.66313),new google.maps.LatLng(33.43187 ,73.37631),new google.maps.LatLng(33.48143 ,72.55967),new google.maps.LatLng(33.16987 ,72.79041),new google.maps.LatLng(33.62379 ,73.31883),new google.maps.LatLng(34.32059 ,72.94653),new google.maps.LatLng(33.52286 ,72.96003),new google.maps.LatLng(33.40206 ,73.40763),new google.maps.LatLng(33.64153 ,73.54395),new google.maps.LatLng(34.07877 ,72.66635),new google.maps.LatLng(33.34532 ,72.71642),new google.maps.LatLng(34.32322 ,73.00733),new google.maps.LatLng(34.28047 ,72.82345),new google.maps.LatLng(33.49508 ,72.57022),new google.maps.LatLng(33.78614 ,72.53763),new google.maps.LatLng(33.84822 ,73.64899),new google.maps.LatLng(33.72369 ,72.38399),new google.maps.LatLng(33.08797 ,73.09387),new google.maps.LatLng(33.70973 ,72.79965),new google.maps.LatLng(33.73204 ,73.03181),new google.maps.LatLng(33.79970 ,72.89337),new google.maps.LatLng(34.17597 ,73.31686),new google.maps.LatLng(33.71785 ,72.99804),new google.maps.LatLng(33.13708 ,72.82812),new google.maps.LatLng(34.24288 ,73.40060),new google.maps.LatLng(33.86573 ,73.38498),new google.maps.LatLng(33.62686 ,72.54074),new google.maps.LatLng(33.51781 ,72.85357),new google.maps.LatLng(33.18953 ,72.74520),new google.maps.LatLng(33.91043 ,72.71822),new google.maps.LatLng(33.40163 ,73.15218),new google.maps.LatLng(33.37562 ,73.28485),new google.maps.LatLng(33.65411 ,72.86294),new google.maps.LatLng(33.42361 ,72.45197),new google.maps.LatLng(33.62493 ,72.90856),new google.maps.LatLng(33.96221 ,72.47868),new google.maps.LatLng(34.19689 ,73.04224),new google.maps.LatLng(33.82761 ,72.95685),new google.maps.LatLng(33.67891 ,72.47267),new google.maps.LatLng(33.85207 ,73.03017),new google.maps.LatLng(33.89933 ,72.39576),new google.maps.LatLng(33.61996 ,73.02325),new google.maps.LatLng(33.71890 ,72.90003),new google.maps.LatLng(33.72572 ,73.55123),new google.maps.LatLng(33.62608 ,72.58535),new google.maps.LatLng(33.80659 ,73.68911),new google.maps.LatLng(34.17771 ,72.67881),new google.maps.LatLng(33.61217 ,72.73786),new google.maps.LatLng(34.32958 ,72.89354),new google.maps.LatLng(34.11504 ,73.49414),new google.maps.LatLng(33.55907 ,73.41801),new google.maps.LatLng(33.17104 ,72.89966),new google.maps.LatLng(33.79401 ,73.63390),new google.maps.LatLng(34.18280 ,72.69724),new google.maps.LatLng(33.25397 ,73.23397),new google.maps.LatLng(33.80473 ,72.42579),new google.maps.LatLng(33.14496 ,72.91050),new google.maps.LatLng(33.34487 ,72.95539),new google.maps.LatLng(34.15085 ,72.57766),new google.maps.LatLng(33.18813 ,73.40769),new google.maps.LatLng(33.75748 ,73.18593),new google.maps.LatLng(33.87126 ,73.49304),new google.maps.LatLng(34.32294 ,73.10940),new google.maps.LatLng(33.09473 ,72.73377),new google.maps.LatLng(33.76037 ,73.57519),new google.maps.LatLng(33.86974 ,73.67926),new google.maps.LatLng(33.17015 ,72.65942),new google.maps.LatLng(33.74147 ,72.71919),new google.maps.LatLng(33.99042 ,73.58597),new google.maps.LatLng(34.28183 ,73.01907),new google.maps.LatLng(33.86002 ,72.45589),new google.maps.LatLng(33.58627 ,73.63931),new google.maps.LatLng(33.43526 ,72.81830),new google.maps.LatLng(33.82091 ,73.58807),new google.maps.LatLng(33.23727 ,72.67634),new google.maps.LatLng(33.20432 ,72.80043),new google.maps.LatLng(33.95084 ,73.46016),new google.maps.LatLng(33.99383 ,73.10533),new google.maps.LatLng(33.19630 ,72.71847),new google.maps.LatLng(33.85208 ,73.07847),new google.maps.LatLng(33.92515 ,73.02189),new google.maps.LatLng(34.19960 ,72.80776),new google.maps.LatLng(33.86380 ,73.28288),new google.maps.LatLng(33.36124 ,72.74016),new google.maps.LatLng(33.64144 ,72.51194),new google.maps.LatLng(33.75939 ,72.46831),new google.maps.LatLng(33.56507 ,73.38965),new google.maps.LatLng(33.99056 ,73.33602),new google.maps.LatLng(33.51967 ,72.99532),new google.maps.LatLng(33.44573 ,72.87957),new google.maps.LatLng(33.58194 ,73.19235),new google.maps.LatLng(33.52749 ,72.91861),new google.maps.LatLng(34.07405 ,73.13216),new google.maps.LatLng(33.77197 ,72.96511),new google.maps.LatLng(33.99940 ,72.90772),new google.maps.LatLng(33.56673 ,72.38798),new google.maps.LatLng(34.14459 ,72.97746),new google.maps.LatLng(34.06841 ,73.07442),new google.maps.LatLng(33.84949 ,73.37035),new google.maps.LatLng(33.60620 ,73.45481),new google.maps.LatLng(33.19382 ,72.98840),new google.maps.LatLng(34.00871 ,73.55763),new google.maps.LatLng(33.90232 ,72.44517),new google.maps.LatLng(33.24422 ,72.81483),new google.maps.LatLng(33.14403 ,73.20155),new google.maps.LatLng(33.72235 ,73.63649),new google.maps.LatLng(33.70916 ,73.26796),new google.maps.LatLng(33.50051 ,73.44309),new google.maps.LatLng(33.52004 ,72.78040),new google.maps.LatLng(34.10964 ,73.27815),new google.maps.LatLng(33.70436 ,72.50790),new google.maps.LatLng(33.77586 ,73.40455),new google.maps.LatLng(33.06896 ,73.30336),new google.maps.LatLng(33.99258 ,72.94018),new google.maps.LatLng(33.31998 ,73.27176),new google.maps.LatLng(33.39611 ,73.24049),new google.maps.LatLng(33.68082 ,72.36431),new google.maps.LatLng(33.46171 ,73.03420),new google.maps.LatLng(34.22818 ,73.21067),new google.maps.LatLng(33.89402 ,72.79890),new google.maps.LatLng(33.30325 ,73.11154),new google.maps.LatLng(33.09906 ,72.75969),new google.maps.LatLng(33.61008 ,72.91569),new google.maps.LatLng(34.02868 ,73.46458),new google.maps.LatLng(33.84837 ,72.76220),new google.maps.LatLng(33.15079 ,73.34251),new google.maps.LatLng(33.92375 ,72.56914),new google.maps.LatLng(33.26428 ,73.42712),new google.maps.LatLng(33.48220 ,73.11074),new google.maps.LatLng(33.60024 ,72.79371),new google.maps.LatLng(33.63486 ,72.91694),new google.maps.LatLng(34.11145 ,73.55527),new google.maps.LatLng(33.55083 ,72.89076),new google.maps.LatLng(33.51840 ,72.55608),new google.maps.LatLng(33.57179 ,73.25507),new google.maps.LatLng(34.11000 ,73.12491),new google.maps.LatLng(33.45202 ,73.20366),new google.maps.LatLng(33.51119 ,72.53982),new google.maps.LatLng(33.73467 ,73.38693),new google.maps.LatLng(34.00077 ,72.56984),new google.maps.LatLng(34.24494 ,72.73393),new google.maps.LatLng(33.23504 ,73.37765),new google.maps.LatLng(33.98359 ,72.92608),new google.maps.LatLng(33.87220 ,72.39764),new google.maps.LatLng(33.99174 ,72.47574),new google.maps.LatLng(33.33665 ,73.08433),new google.maps.LatLng(33.66806 ,73.58131),new google.maps.LatLng(34.07379 ,73.31956),new google.maps.LatLng(34.02617 ,72.50148),new google.maps.LatLng(33.78394 ,73.30039),new google.maps.LatLng(33.64163 ,72.93565),new google.maps.LatLng(33.35559 ,73.23056),new google.maps.LatLng(34.06955 ,72.67435),new google.maps.LatLng(33.87838 ,72.65426),new google.maps.LatLng(33.18069 ,73.35536),new google.maps.LatLng(34.26504 ,73.03947),new google.maps.LatLng(33.63667 ,73.18062),new google.maps.LatLng(34.04952 ,73.39861),new google.maps.LatLng(33.82031 ,72.86961),new google.maps.LatLng(33.90713 ,72.79606),new google.maps.LatLng(33.57157 ,72.39621),new google.maps.LatLng(33.35510 ,73.23216),new google.maps.LatLng(33.23960 ,73.35470),new google.maps.LatLng(33.44177 ,73.58379),new google.maps.LatLng(33.76058 ,73.32739),new google.maps.LatLng(34.02282 ,73.16136),new google.maps.LatLng(33.67268 ,72.99402),new google.maps.LatLng(33.95824 ,72.69054),new google.maps.LatLng(33.83032 ,73.42635),new google.maps.LatLng(33.44214 ,72.46975),new google.maps.LatLng(33.09955 ,73.36179),new google.maps.LatLng(33.18824 ,73.27864),new google.maps.LatLng(33.40707 ,72.54686),new google.maps.LatLng(33.75675 ,73.01986),new google.maps.LatLng(33.71423 ,72.74071),new google.maps.LatLng(34.00502 ,72.81688),new google.maps.LatLng(34.09642 ,72.62651),new google.maps.LatLng(34.30664 ,73.07000),new google.maps.LatLng(33.96249 ,73.63401),new google.maps.LatLng(33.15313 ,72.66630),new google.maps.LatLng(34.13627 ,72.81551),new google.maps.LatLng(33.20919 ,72.71516),new google.maps.LatLng(33.82591 ,73.27095),new google.maps.LatLng(33.44848 ,72.77963),new google.maps.LatLng(33.39862 ,72.70750),new google.maps.LatLng(34.17206 ,72.77703),new google.maps.LatLng(33.37681 ,72.56270),new google.maps.LatLng(34.23328 ,72.92145),new google.maps.LatLng(33.76632 ,73.56800),new google.maps.LatLng(33.69183 ,73.39881),new google.maps.LatLng(33.30660 ,72.65583),new google.maps.LatLng(34.15680 ,73.13833),new google.maps.LatLng(33.97081 ,72.62723),new google.maps.LatLng(33.17583 ,72.83011),new google.maps.LatLng(33.95136 ,73.47591),new google.maps.LatLng(33.89596 ,73.49389),new google.maps.LatLng(33.75863 ,73.52658),new google.maps.LatLng(33.35041 ,72.86156),new google.maps.LatLng(33.25726 ,73.15519),new google.maps.LatLng(33.88573 ,72.89614),new google.maps.LatLng(33.55744 ,73.62755),new google.maps.LatLng(33.21640 ,72.77570),new google.maps.LatLng(33.64690 ,73.07724),new google.maps.LatLng(33.67921 ,72.95485),new google.maps.LatLng(33.42880 ,72.67794),new google.maps.LatLng(33.31250 ,73.38360),new google.maps.LatLng(33.59437 ,72.70884),new google.maps.LatLng(33.31036 ,72.54834),new google.maps.LatLng(33.51696 ,72.80759),new google.maps.LatLng(33.15278 ,73.08243),new google.maps.LatLng(33.15405 ,73.42068),new google.maps.LatLng(33.61808 ,72.72796),new google.maps.LatLng(33.18808 ,72.66504),new google.maps.LatLng(34.23037 ,73.34066),new google.maps.LatLng(33.36341 ,72.80213),new google.maps.LatLng(33.99080 ,72.95377),new google.maps.LatLng(33.60105 ,72.99557),new google.maps.LatLng(33.62272 ,73.52296),new google.maps.LatLng(33.37168 ,73.41026),new google.maps.LatLng(34.06167 ,72.91464),new google.maps.LatLng(34.15562 ,73.31535),new google.maps.LatLng(34.10711 ,73.06105),new google.maps.LatLng(34.19965 ,72.62879),new google.maps.LatLng(34.18304 ,72.67825),new google.maps.LatLng(33.17940 ,73.09409),new google.maps.LatLng(34.19039 ,72.77195),new google.maps.LatLng(33.99620 ,72.61972),new google.maps.LatLng(33.26049 ,73.37930),new google.maps.LatLng(33.64493 ,72.66080),new google.maps.LatLng(33.54033 ,73.05229),new google.maps.LatLng(33.24030 ,73.25759),new google.maps.LatLng(33.31213 ,73.54158),new google.maps.LatLng(33.55667 ,72.40515),new google.maps.LatLng(33.89571 ,72.58117),new google.maps.LatLng(33.47258 ,73.65798),new google.maps.LatLng(33.57077 ,72.61465),new google.maps.LatLng(33.18075 ,73.19238),new google.maps.LatLng(33.17511 ,73.31797),new google.maps.LatLng(33.72658 ,73.29921),new google.maps.LatLng(33.47479 ,73.15837),new google.maps.LatLng(33.71716 ,72.83186),new google.maps.LatLng(33.59708 ,73.42566),new google.maps.LatLng(33.86795 ,73.28140),new google.maps.LatLng(33.84859 ,73.57656),new google.maps.LatLng(34.25839 ,73.19919),new google.maps.LatLng(34.03566 ,72.47809),new google.maps.LatLng(33.81430 ,73.00853),new google.maps.LatLng(34.19255 ,73.24649),new google.maps.LatLng(33.58490 ,73.39241),new google.maps.LatLng(33.44117 ,73.22377),new google.maps.LatLng(33.26387 ,73.27553),new google.maps.LatLng(34.02575 ,72.87046),new google.maps.LatLng(33.96165 ,72.65787),new google.maps.LatLng(33.18384 ,73.24246),new google.maps.LatLng(33.41435 ,72.86711),new google.maps.LatLng(33.97777 ,72.77409),new google.maps.LatLng(33.03617 ,72.96027),new google.maps.LatLng(33.26418 ,72.81958),new google.maps.LatLng(34.06261 ,72.73325),new google.maps.LatLng(33.38264 ,73.33357),new google.maps.LatLng(33.27317 ,72.93449),new google.maps.LatLng(33.90011 ,72.88211),new google.maps.LatLng(34.14209 ,73.47087),new google.maps.LatLng(33.96179 ,73.63007),new google.maps.LatLng(34.04996 ,72.95003),new google.maps.LatLng(33.30665 ,73.25218),new google.maps.LatLng(33.99239 ,72.75855),new google.maps.LatLng(33.57929 ,72.96827),new google.maps.LatLng(33.86708 ,73.44501),new google.maps.LatLng(34.09360 ,73.41258),new google.maps.LatLng(33.50527 ,72.77297),new google.maps.LatLng(33.93021 ,72.49060),new google.maps.LatLng(33.75237 ,72.84591),new google.maps.LatLng(33.85439 ,72.73976),new google.maps.LatLng(34.18835 ,73.18514),new google.maps.LatLng(33.81853 ,72.66758),new google.maps.LatLng(34.00613 ,73.50279),new google.maps.LatLng(33.02786 ,72.98470),new google.maps.LatLng(33.60923 ,72.47594),new google.maps.LatLng(33.26478 ,73.05453),new google.maps.LatLng(33.98415 ,73.41272),new google.maps.LatLng(33.77552 ,73.41912),new google.maps.LatLng(33.54775 ,72.45221),new google.maps.LatLng(33.84012 ,73.17762),new google.maps.LatLng(33.84392 ,72.52309),new google.maps.LatLng(33.58628 ,73.25727),new google.maps.LatLng(33.70862 ,72.68396),new google.maps.LatLng(34.14189 ,73.20863),new google.maps.LatLng(33.80883 ,73.67051),new google.maps.LatLng(33.21462 ,72.66282),new google.maps.LatLng(33.03977 ,73.19634),new google.maps.LatLng(33.84220 ,73.13587),new google.maps.LatLng(33.79306 ,72.65810),new google.maps.LatLng(33.90116 ,72.43084),new google.maps.LatLng(33.07090 ,72.81630),new google.maps.LatLng(33.47696 ,73.00915),new google.maps.LatLng(33.90493 ,73.60278),new google.maps.LatLng(33.50720 ,72.87925),new google.maps.LatLng(33.35287 ,72.54873),new google.maps.LatLng(33.74855 ,72.70886),new google.maps.LatLng(33.56715 ,72.93112),new google.maps.LatLng(33.45503 ,72.91175),new google.maps.LatLng(34.15858 ,72.65738),new google.maps.LatLng(34.17854 ,73.45158),new google.maps.LatLng(33.99034 ,72.46571),new google.maps.LatLng(33.55900 ,73.47329),new google.maps.LatLng(33.55498 ,73.10174),new google.maps.LatLng(33.46837 ,72.92354),new google.maps.LatLng(33.10955 ,73.19888),new google.maps.LatLng(33.34435 ,73.58129),new google.maps.LatLng(34.13579 ,72.82900),new google.maps.LatLng(33.65377 ,73.48430),new google.maps.LatLng(33.89067 ,72.81469),new google.maps.LatLng(33.58459 ,73.55558),new google.maps.LatLng(33.51170 ,73.20871),new google.maps.LatLng(33.91271 ,73.30122),new google.maps.LatLng(33.99278 ,72.93208),new google.maps.LatLng(33.37969 ,73.23131),new google.maps.LatLng(33.16899 ,73.31063),new google.maps.LatLng(33.35982 ,73.48278),new google.maps.LatLng(33.18030 ,72.91151),new google.maps.LatLng(34.03161 ,73.05163),new google.maps.LatLng(34.12936 ,73.02556),new google.maps.LatLng(33.35971 ,72.67537),new google.maps.LatLng(33.71590 ,73.21398),new google.maps.LatLng(33.12528 ,73.28274),new google.maps.LatLng(33.51197 ,73.31303),new google.maps.LatLng(33.20903 ,72.87364),new google.maps.LatLng(33.92313 ,73.10337),new google.maps.LatLng(33.57727 ,72.67402),new google.maps.LatLng(33.09774 ,73.10036),new google.maps.LatLng(33.99746 ,73.47463),new google.maps.LatLng(34.03749 ,73.03593),new google.maps.LatLng(33.59709 ,73.60622),new google.maps.LatLng(33.99999 ,72.45112),new google.maps.LatLng(33.99312 ,73.58577),new google.maps.LatLng(33.33425 ,72.87292),new google.maps.LatLng(33.41526 ,72.70691),new google.maps.LatLng(33.16665 ,73.41902),new google.maps.LatLng(33.95195 ,72.82560),new google.maps.LatLng(33.66173 ,72.51780),new google.maps.LatLng(33.20826 ,73.49483),new google.maps.LatLng(33.58877 ,72.60554),new google.maps.LatLng(34.07381 ,73.51270),new google.maps.LatLng(33.56681 ,72.89003),new google.maps.LatLng(34.29426 ,73.00677),new google.maps.LatLng(33.92379 ,73.19761),new google.maps.LatLng(33.81245 ,72.77788),new google.maps.LatLng(34.14469 ,73.03340),new google.maps.LatLng(33.58324 ,72.53576),new google.maps.LatLng(33.83538 ,73.29977),new google.maps.LatLng(33.20537 ,73.04786),new google.maps.LatLng(33.87401 ,72.55695),new google.maps.LatLng(34.24068 ,73.15860),new google.maps.LatLng(34.17625 ,72.63484),new google.maps.LatLng(34.27696 ,72.92120),new google.maps.LatLng(33.96716 ,72.52430),new google.maps.LatLng(33.07499 ,73.30784),new google.maps.LatLng(33.61269 ,73.27233),new google.maps.LatLng(33.81881 ,72.78973),new google.maps.LatLng(34.13549 ,72.70584),new google.maps.LatLng(33.65999 ,72.46901),new google.maps.LatLng(33.75341 ,72.91193),new google.maps.LatLng(33.55043 ,73.63889),new google.maps.LatLng(33.77844 ,73.64575),new google.maps.LatLng(33.37829 ,73.18296),new google.maps.LatLng(33.50881 ,72.81814),new google.maps.LatLng(33.97220 ,73.42904),new google.maps.LatLng(33.26339 ,73.55619),new google.maps.LatLng(34.25188 ,73.05702),new google.maps.LatLng(34.07335 ,73.49102),new google.maps.LatLng(34.00176 ,72.85088),new google.maps.LatLng(33.63753 ,73.55171),new google.maps.LatLng(34.15948 ,72.96805),new google.maps.LatLng(33.90676 ,73.63336),new google.maps.LatLng(33.37522 ,73.59158),new google.maps.LatLng(33.99497 ,73.54490),new google.maps.LatLng(33.58271 ,72.46860),new google.maps.LatLng(33.83448 ,72.79392),new google.maps.LatLng(33.95090 ,73.43551),new google.maps.LatLng(33.84210 ,73.41716),new google.maps.LatLng(33.50405 ,73.33261),new google.maps.LatLng(33.49209 ,72.62452),new google.maps.LatLng(33.89276 ,73.20452),new google.maps.LatLng(33.23254 ,72.54022),new google.maps.LatLng(33.15596 ,73.21702),new google.maps.LatLng(33.39463 ,72.85153),new google.maps.LatLng(33.51078 ,72.63055),new google.maps.LatLng(33.56658 ,73.60253),new google.maps.LatLng(33.96414 ,72.43474),new google.maps.LatLng(33.92525 ,73.20565),new google.maps.LatLng(34.01753 ,73.04710),new google.maps.LatLng(33.86748 ,72.87800),new google.maps.LatLng(33.82023 ,72.47278),new google.maps.LatLng(33.97433 ,73.16879),new google.maps.LatLng(34.30575 ,73.09177),new google.maps.LatLng(33.17551 ,72.75595),new google.maps.LatLng(34.07979 ,72.73382),new google.maps.LatLng(33.40920 ,72.67709),new google.maps.LatLng(33.55461 ,72.43585),new google.maps.LatLng(33.10959 ,73.32068),new google.maps.LatLng(33.81730 ,72.45219),new google.maps.LatLng(33.56497 ,72.72477),new google.maps.LatLng(34.08850 ,72.85325),new google.maps.LatLng(33.63158 ,73.57403),new google.maps.LatLng(33.91261 ,73.33916),new google.maps.LatLng(33.72213 ,72.57662),new google.maps.LatLng(33.37764 ,73.48710),new google.maps.LatLng(33.55247 ,72.75562),new google.maps.LatLng(34.04522 ,73.12713),new google.maps.LatLng(33.37760 ,72.74068),new google.maps.LatLng(34.28490 ,72.72973),new google.maps.LatLng(33.71339 ,73.52610),new google.maps.LatLng(33.26126 ,73.42202),new google.maps.LatLng(33.88038 ,73.38055),new google.maps.LatLng(33.73330 ,72.93356),new google.maps.LatLng(33.86410 ,73.02341),new google.maps.LatLng(34.01576 ,72.68370),new google.maps.LatLng(34.02396 ,73.01936),new google.maps.LatLng(33.71703 ,73.43537),new google.maps.LatLng(34.17507 ,73.48846),new google.maps.LatLng(33.33775 ,73.37109),new google.maps.LatLng(33.37705 ,72.77468),new google.maps.LatLng(33.06694 ,72.94810),new google.maps.LatLng(33.75807 ,73.57891),new google.maps.LatLng(34.33127 ,73.10084),new google.maps.LatLng(33.39734 ,73.40471),new google.maps.LatLng(33.87593 ,73.41937),new google.maps.LatLng(33.76219 ,72.79908),new google.maps.LatLng(33.22950 ,73.28822),new google.maps.LatLng(33.56471 ,73.55235),new google.maps.LatLng(33.91614 ,73.24873),new google.maps.LatLng(33.79901 ,73.13169),new google.maps.LatLng(34.02395 ,73.14358),new google.maps.LatLng(33.32822 ,72.61252),new google.maps.LatLng(34.30160 ,72.98804),new google.maps.LatLng(33.20874 ,72.86449),new google.maps.LatLng(34.27285 ,72.74517),new google.maps.LatLng(33.20606 ,72.95969),new google.maps.LatLng(33.48887 ,73.59660),new google.maps.LatLng(33.48259 ,72.56022),new google.maps.LatLng(31.11365 ,73.79698),new google.maps.LatLng(31.55278 ,74.86321),new google.maps.LatLng(31.22052 ,75.14333),new google.maps.LatLng(31.77564 ,74.72705),new google.maps.LatLng(32.25435 ,74.71898),new google.maps.LatLng(31.28018 ,74.28360),new google.maps.LatLng(31.65925 ,74.46296),new google.maps.LatLng(31.45959 ,75.10670),new google.maps.LatLng(31.18502 ,74.95078),new google.maps.LatLng(31.09229 ,74.17750),new google.maps.LatLng(31.02894 ,74.66010),new google.maps.LatLng(31.23593 ,73.70000),new google.maps.LatLng(30.93610 ,74.64150),new google.maps.LatLng(31.10479 ,74.86496),new google.maps.LatLng(31.01881 ,74.52271),new google.maps.LatLng(31.58646 ,73.79013),new google.maps.LatLng(30.71586 ,74.29303),new google.maps.LatLng(31.37060 ,74.82919),new google.maps.LatLng(31.67048 ,73.57780),new google.maps.LatLng(31.57543 ,74.69947),new google.maps.LatLng(30.70787 ,74.62879),new google.maps.LatLng(31.01105 ,74.95077),new google.maps.LatLng(31.51013 ,74.55736),new google.maps.LatLng(32.11813 ,74.35611),new google.maps.LatLng(30.90325 ,73.87400),new google.maps.LatLng(32.21649 ,74.41026),new google.maps.LatLng(31.58400 ,74.18101),new google.maps.LatLng(32.15273 ,74.04717),new google.maps.LatLng(31.77501 ,75.02455),new google.maps.LatLng(31.54169 ,74.73421),new google.maps.LatLng(31.41561 ,73.55598),new google.maps.LatLng(32.14664 ,74.21015),new google.maps.LatLng(31.20566 ,73.74430),new google.maps.LatLng(32.28198 ,74.08755),new google.maps.LatLng(31.45296 ,75.04147),new google.maps.LatLng(31.58534 ,74.26035),new google.maps.LatLng(31.46417 ,73.56716),new google.maps.LatLng(31.54628 ,74.31287),new google.maps.LatLng(31.25690 ,74.15392),new google.maps.LatLng(32.03334 ,74.09041),new google.maps.LatLng(31.82599 ,73.83514),new google.maps.LatLng(31.44478 ,73.53567),new google.maps.LatLng(31.89288 ,73.85276),new google.maps.LatLng(30.83743 ,74.44061),new google.maps.LatLng(31.98639 ,74.54816),new google.maps.LatLng(31.23275 ,73.73038),new google.maps.LatLng(31.93058 ,74.43488),new google.maps.LatLng(31.97190 ,74.94782),new google.maps.LatLng(32.02947 ,74.27615),new google.maps.LatLng(31.57266 ,74.63744),new google.maps.LatLng(31.53878 ,74.40363),new google.maps.LatLng(32.17479 ,74.10778),new google.maps.LatLng(31.14205 ,74.73764),new google.maps.LatLng(31.87167 ,74.27281),new google.maps.LatLng(31.01083 ,74.68387),new google.maps.LatLng(30.95708 ,73.75767),new google.maps.LatLng(31.22183 ,73.58695),new google.maps.LatLng(31.32223 ,74.15793),new google.maps.LatLng(31.80039 ,74.46917),new google.maps.LatLng(31.90073 ,74.81481),new google.maps.LatLng(31.71083 ,74.72110),new google.maps.LatLng(30.74368 ,74.22585),new google.maps.LatLng(31.10946 ,74.36689),new google.maps.LatLng(31.95215 ,74.94866),new google.maps.LatLng(31.84131 ,74.62437),new google.maps.LatLng(30.87528 ,73.91225),new google.maps.LatLng(31.45397 ,75.10122),new google.maps.LatLng(31.83258 ,74.89567),new google.maps.LatLng(30.86738 ,74.51537),new google.maps.LatLng(31.17752 ,74.49651),new google.maps.LatLng(31.14445 ,74.89723),new google.maps.LatLng(31.66338 ,74.18293),new google.maps.LatLng(31.95196 ,74.20259),new google.maps.LatLng(31.70232 ,74.11260),new google.maps.LatLng(31.14278 ,74.26754),new google.maps.LatLng(31.38252 ,73.96723),new google.maps.LatLng(31.24108 ,74.75376),new google.maps.LatLng(31.33530 ,74.50442),new google.maps.LatLng(31.95212 ,75.03612),new google.maps.LatLng(31.45101 ,73.59968),new google.maps.LatLng(31.42297 ,74.96674),new google.maps.LatLng(31.16378 ,74.01715),new google.maps.LatLng(31.58612 ,74.27049),new google.maps.LatLng(32.22098 ,73.92308),new google.maps.LatLng(31.29564 ,74.89941),new google.maps.LatLng(31.35770 ,74.57807),new google.maps.LatLng(31.22753 ,73.84613),new google.maps.LatLng(31.70780 ,74.16905),new google.maps.LatLng(31.41914 ,73.56000),new google.maps.LatLng(30.88618 ,74.77768),new google.maps.LatLng(30.85272 ,74.28105),new google.maps.LatLng(31.52290 ,73.76974),new google.maps.LatLng(30.75367 ,74.43876),new google.maps.LatLng(31.75985 ,74.00275),new google.maps.LatLng(31.78201 ,74.35085),new google.maps.LatLng(31.56982 ,73.76736),new google.maps.LatLng(31.39609 ,73.80238),new google.maps.LatLng(31.92279 ,74.41744),new google.maps.LatLng(30.82698 ,74.53462),new google.maps.LatLng(31.49604 ,73.86784),new google.maps.LatLng(31.61281 ,73.84328),new google.maps.LatLng(30.94666 ,74.20518),new google.maps.LatLng(31.30669 ,74.09167),new google.maps.LatLng(31.37737 ,75.11213),new google.maps.LatLng(32.06037 ,73.86968),new google.maps.LatLng(30.97204 ,74.93702),new google.maps.LatLng(32.06034 ,74.22736),new google.maps.LatLng(31.32300 ,74.39937),new google.maps.LatLng(31.37639 ,75.13842),new google.maps.LatLng(32.04946 ,74.16234),new google.maps.LatLng(31.04940 ,73.84416),new google.maps.LatLng(31.95432 ,73.82749),new google.maps.LatLng(30.84907 ,74.38830),new google.maps.LatLng(32.08393 ,74.11972),new google.maps.LatLng(32.11443 ,74.66184),new google.maps.LatLng(31.99709 ,74.26490),new google.maps.LatLng(31.28456 ,73.57425),new google.maps.LatLng(31.52000 ,75.17331),new google.maps.LatLng(31.95179 ,73.81348),new google.maps.LatLng(31.66318 ,74.46837),new google.maps.LatLng(30.86445 ,74.61823),new google.maps.LatLng(31.85897 ,74.23374),new google.maps.LatLng(31.49551 ,74.49107),new google.maps.LatLng(31.54329 ,74.31062),new google.maps.LatLng(31.57648 ,74.30365),new google.maps.LatLng(30.83877 ,74.15213),new google.maps.LatLng(31.50617 ,74.72921),new google.maps.LatLng(31.31150 ,74.01788),new google.maps.LatLng(31.23333 ,75.02163),new google.maps.LatLng(30.69159 ,74.13046),new google.maps.LatLng(30.95418 ,74.33288),new google.maps.LatLng(31.80342 ,74.30792),new google.maps.LatLng(31.40939 ,74.88410),new google.maps.LatLng(31.06556 ,74.36736),new google.maps.LatLng(31.18494 ,74.42016),new google.maps.LatLng(31.36623 ,74.24683),new google.maps.LatLng(32.30646 ,74.45590),new google.maps.LatLng(31.55658 ,74.88358),new google.maps.LatLng(32.00504 ,74.16266),new google.maps.LatLng(31.26502 ,73.60437),new google.maps.LatLng(31.61191 ,74.92766),new google.maps.LatLng(31.90470 ,74.20076),new google.maps.LatLng(31.34127 ,74.35798),new google.maps.LatLng(32.06561 ,74.35491),new google.maps.LatLng(30.87204 ,74.58111),new google.maps.LatLng(31.55805 ,74.57703),new google.maps.LatLng(30.90392 ,74.89936),new google.maps.LatLng(32.27016 ,74.56236),new google.maps.LatLng(30.83351 ,74.51936),new google.maps.LatLng(30.92819 ,73.90043),new google.maps.LatLng(31.81041 ,74.74465),new google.maps.LatLng(31.75332 ,74.85260),new google.maps.LatLng(32.15727 ,74.84427),new google.maps.LatLng(30.76433 ,74.75621),new google.maps.LatLng(31.31597 ,74.73538),new google.maps.LatLng(31.83789 ,74.97513),new google.maps.LatLng(31.50805 ,74.36277),new google.maps.LatLng(31.81889 ,73.79802),new google.maps.LatLng(31.42156 ,73.59760),new google.maps.LatLng(31.46578 ,74.24260),new google.maps.LatLng(31.71618 ,75.00773),new google.maps.LatLng(31.02147 ,73.76865),new google.maps.LatLng(31.11856 ,73.85576),new google.maps.LatLng(31.21003 ,74.03328),new google.maps.LatLng(31.16345 ,74.98784),new google.maps.LatLng(31.35005 ,74.06383),new google.maps.LatLng(30.98360 ,74.80542),new google.maps.LatLng(32.17041 ,73.87266),new google.maps.LatLng(32.01850 ,73.84054),new google.maps.LatLng(32.01525 ,74.34163),new google.maps.LatLng(31.12640 ,74.06738),new google.maps.LatLng(32.22082 ,74.36840),new google.maps.LatLng(30.97909 ,75.03088),new google.maps.LatLng(32.20388 ,74.08837),new google.maps.LatLng(31.72091 ,74.88696),new google.maps.LatLng(32.01719 ,73.96307),new google.maps.LatLng(31.66891 ,74.08598),new google.maps.LatLng(32.28294 ,74.08472),new google.maps.LatLng(31.90382 ,74.09841),new google.maps.LatLng(31.77726 ,75.07000),new google.maps.LatLng(31.40982 ,74.79464),new google.maps.LatLng(31.31735 ,75.17658),new google.maps.LatLng(31.05499 ,74.04747),new google.maps.LatLng(31.13771 ,74.92319),new google.maps.LatLng(32.03886 ,74.13666),new google.maps.LatLng(30.88358 ,74.32322),new google.maps.LatLng(31.33028 ,74.67179),new google.maps.LatLng(31.80323 ,75.02189),new google.maps.LatLng(31.08849 ,74.09515),new google.maps.LatLng(31.09996 ,74.74641),new google.maps.LatLng(31.63061 ,73.83687),new google.maps.LatLng(31.52613 ,74.07132),new google.maps.LatLng(31.69091 ,74.78742),new google.maps.LatLng(31.34143 ,73.74917),new google.maps.LatLng(31.41189 ,74.13884),new google.maps.LatLng(31.92234 ,74.74452),new google.maps.LatLng(32.05738 ,74.88491),new google.maps.LatLng(30.71196 ,74.60991),new google.maps.LatLng(31.72134 ,74.65265),new google.maps.LatLng(31.49488 ,74.12281),new google.maps.LatLng(31.80239 ,74.96747),new google.maps.LatLng(30.89792 ,74.91137),new google.maps.LatLng(31.34601 ,74.69596),new google.maps.LatLng(31.83154 ,74.82608),new google.maps.LatLng(31.46618 ,75.00904),new google.maps.LatLng(31.93979 ,74.17524),new google.maps.LatLng(31.33270 ,75.00468),new google.maps.LatLng(31.57129 ,73.62159),new google.maps.LatLng(32.35763 ,74.38365),new google.maps.LatLng(31.07299 ,73.84108),new google.maps.LatLng(31.01259 ,73.77997),new google.maps.LatLng(31.96597 ,73.73420),new google.maps.LatLng(31.34815 ,74.27079),new google.maps.LatLng(31.65900 ,73.99664),new google.maps.LatLng(32.05152 ,74.19988),new google.maps.LatLng(31.61685 ,74.34119),new google.maps.LatLng(31.88658 ,73.99655),new google.maps.LatLng(31.71977 ,73.54112),new google.maps.LatLng(31.48088 ,74.86534),new google.maps.LatLng(32.08666 ,74.19196),new google.maps.LatLng(32.11812 ,74.13925),new google.maps.LatLng(31.72955 ,74.28728),new google.maps.LatLng(31.22741 ,74.10837),new google.maps.LatLng(31.19278 ,73.60850),new google.maps.LatLng(31.52446 ,74.37889),new google.maps.LatLng(31.31093 ,74.05399),new google.maps.LatLng(31.28079 ,73.56684),new google.maps.LatLng(30.99084 ,74.03692),new google.maps.LatLng(32.15361 ,74.03706),new google.maps.LatLng(32.09375 ,74.31973),new google.maps.LatLng(31.06715 ,74.90567),new google.maps.LatLng(30.81107 ,73.95622),new google.maps.LatLng(30.88112 ,74.89085),new google.maps.LatLng(32.17364 ,74.30230),new google.maps.LatLng(31.22930 ,75.12339),new google.maps.LatLng(30.73660 ,74.70118),new google.maps.LatLng(31.00806 ,74.28490),new google.maps.LatLng(31.78052 ,75.03046),new google.maps.LatLng(30.71700 ,74.45425),new google.maps.LatLng(31.43450 ,74.45341),new google.maps.LatLng(31.74932 ,74.99351),new google.maps.LatLng(31.19387 ,73.76689),new google.maps.LatLng(31.18757 ,73.69020),new google.maps.LatLng(31.06634 ,73.82376),new google.maps.LatLng(31.69498 ,74.58615),new google.maps.LatLng(31.72389 ,74.54181),new google.maps.LatLng(31.91653 ,74.63811),new google.maps.LatLng(32.28867 ,74.35063),new google.maps.LatLng(30.93416 ,74.40879),new google.maps.LatLng(31.45130 ,74.34353),new google.maps.LatLng(31.19217 ,75.10691),new google.maps.LatLng(31.29863 ,74.04553),new google.maps.LatLng(31.08995 ,74.40160),new google.maps.LatLng(31.92901 ,73.67658),new google.maps.LatLng(31.40820 ,73.80453),new google.maps.LatLng(31.87417 ,73.68227),new google.maps.LatLng(31.50064 ,74.46415),new google.maps.LatLng(31.75293 ,74.13065),new google.maps.LatLng(31.88083 ,74.57105),new google.maps.LatLng(32.02105 ,74.31960),new google.maps.LatLng(30.95421 ,73.97565),new google.maps.LatLng(31.34910 ,74.25678),new google.maps.LatLng(31.34183 ,73.71594),new google.maps.LatLng(31.36582 ,74.72323),new google.maps.LatLng(31.32356 ,75.11688),new google.maps.LatLng(31.89009 ,74.43529),new google.maps.LatLng(32.02443 ,74.19407),new google.maps.LatLng(31.63565 ,73.91128),new google.maps.LatLng(31.32087 ,73.87538),new google.maps.LatLng(31.99695 ,74.33541),new google.maps.LatLng(31.69417 ,74.10165),new google.maps.LatLng(31.14578 ,74.25942),new google.maps.LatLng(30.78921 ,74.40369),new google.maps.LatLng(31.90926 ,74.60412),new google.maps.LatLng(32.08151 ,74.89412),new google.maps.LatLng(31.43631 ,74.90511),new google.maps.LatLng(31.26475 ,74.11324),new google.maps.LatLng(31.21234 ,74.69329),new google.maps.LatLng(30.77679 ,74.22542),new google.maps.LatLng(31.49606 ,75.03818),new google.maps.LatLng(31.83916 ,73.87477),new google.maps.LatLng(31.66430 ,74.54897),new google.maps.LatLng(31.36514 ,75.06632),new google.maps.LatLng(31.02702 ,74.40585),new google.maps.LatLng(31.56255 ,75.12981),new google.maps.LatLng(31.81100 ,74.15727),new google.maps.LatLng(31.03985 ,74.75093),new google.maps.LatLng(32.22244 ,74.29222),new google.maps.LatLng(31.08276 ,75.04921),new google.maps.LatLng(31.39811 ,74.98317),new google.maps.LatLng(31.92497 ,73.92142),new google.maps.LatLng(31.93816 ,73.67596),new google.maps.LatLng(31.43439 ,74.22118),new google.maps.LatLng(30.86115 ,73.81489),new google.maps.LatLng(31.83840 ,75.11081),new google.maps.LatLng(31.67303 ,74.97648),new google.maps.LatLng(31.01811 ,74.20297),new google.maps.LatLng(31.21660 ,74.60097),new google.maps.LatLng(31.34405 ,74.32010),new google.maps.LatLng(31.16751 ,74.61292),new google.maps.LatLng(31.32024 ,74.42230),new google.maps.LatLng(31.66141 ,73.74165),new google.maps.LatLng(31.30595 ,74.90178),new google.maps.LatLng(31.49147 ,74.66745),new google.maps.LatLng(31.64310 ,74.22053),new google.maps.LatLng(31.20080 ,75.03340),new google.maps.LatLng(32.30058 ,74.27555),new google.maps.LatLng(30.79882 ,74.23051),new google.maps.LatLng(32.03498 ,75.02917),new google.maps.LatLng(31.19170 ,74.19617),new google.maps.LatLng(30.79272 ,73.96904),new google.maps.LatLng(31.01263 ,74.21478),new google.maps.LatLng(31.52582 ,73.99640),new google.maps.LatLng(31.10088 ,73.76053),new google.maps.LatLng(32.10850 ,74.79933),new google.maps.LatLng(31.49452 ,74.03830),new google.maps.LatLng(31.58058 ,74.01045),new google.maps.LatLng(31.22189 ,73.83755),new google.maps.LatLng(31.95338 ,74.86206),new google.maps.LatLng(31.64127 ,74.40902),new google.maps.LatLng(31.42563 ,73.61883),new google.maps.LatLng(31.66949 ,73.97048),new google.maps.LatLng(32.15363 ,74.86516),new google.maps.LatLng(31.74643 ,74.43419),new google.maps.LatLng(31.28956 ,74.58528),new google.maps.LatLng(31.59863 ,74.27299),new google.maps.LatLng(30.83387 ,74.89249),new google.maps.LatLng(30.91259 ,74.83043),new google.maps.LatLng(31.42527 ,73.92456),new google.maps.LatLng(31.17568 ,74.05811),new google.maps.LatLng(31.27456 ,74.24224),new google.maps.LatLng(31.58724 ,74.33557),new google.maps.LatLng(31.07046 ,74.33169),new google.maps.LatLng(31.98289 ,74.53325),new google.maps.LatLng(31.03492 ,74.17623),new google.maps.LatLng(31.61295 ,74.62453),new google.maps.LatLng(31.61689 ,74.47581),new google.maps.LatLng(31.51629 ,74.09993),new google.maps.LatLng(30.80381 ,74.31569),new google.maps.LatLng(31.14641 ,73.92947),new google.maps.LatLng(31.62669 ,75.04152),new google.maps.LatLng(31.85018 ,73.76527),new google.maps.LatLng(31.90069 ,74.75542),new google.maps.LatLng(31.27541 ,74.12016),new google.maps.LatLng(31.57970 ,73.99255),new google.maps.LatLng(31.79229 ,73.59218),new google.maps.LatLng(31.97316 ,74.61249),new google.maps.LatLng(32.13634 ,74.63856),new google.maps.LatLng(32.01906 ,73.75365),new google.maps.LatLng(32.23491 ,74.01011),new google.maps.LatLng(31.83807 ,74.96989),new google.maps.LatLng(31.28483 ,73.58575),new google.maps.LatLng(31.24516 ,73.83628),new google.maps.LatLng(32.23890 ,74.74701),new google.maps.LatLng(31.86401 ,73.79041),new google.maps.LatLng(32.15098 ,74.51314),new google.maps.LatLng(30.97253 ,73.70525),new google.maps.LatLng(31.92829 ,73.70245),new google.maps.LatLng(31.24451 ,73.75904),new google.maps.LatLng(31.95645 ,75.00283),new google.maps.LatLng(31.66978 ,73.77528),new google.maps.LatLng(31.60251 ,73.92160),new google.maps.LatLng(31.65978 ,74.10685),new google.maps.LatLng(31.41341 ,75.18625),new google.maps.LatLng(30.75070 ,74.63724),new google.maps.LatLng(32.15917 ,74.55024),new google.maps.LatLng(31.98273 ,74.95929),new google.maps.LatLng(31.64651 ,74.60297),new google.maps.LatLng(31.78516 ,74.45635),new google.maps.LatLng(31.76283 ,74.24153),new google.maps.LatLng(31.56679 ,73.75011),new google.maps.LatLng(31.56743 ,74.32906),new google.maps.LatLng(31.74814 ,74.83932),new google.maps.LatLng(31.17209 ,74.59394),new google.maps.LatLng(31.48567 ,73.89917),new google.maps.LatLng(30.93879 ,74.30513),new google.maps.LatLng(32.23413 ,74.34016),new google.maps.LatLng(32.04094 ,74.77375),new google.maps.LatLng(31.31236 ,74.46796),new google.maps.LatLng(31.41231 ,74.02041),new google.maps.LatLng(31.09634 ,73.90932),new google.maps.LatLng(31.25498 ,73.98369),new google.maps.LatLng(30.65963 ,74.28590),new google.maps.LatLng(31.82745 ,74.62730),new google.maps.LatLng(32.04600 ,73.80779),new google.maps.LatLng(31.27614 ,73.75809),new google.maps.LatLng(31.61523 ,74.71112),new google.maps.LatLng(30.76364 ,74.02507),new google.maps.LatLng(31.64975 ,73.79571),new google.maps.LatLng(32.00020 ,73.73566),new google.maps.LatLng(30.68726 ,74.44656),new google.maps.LatLng(32.05145 ,74.16353),new google.maps.LatLng(30.66774 ,74.27262),new google.maps.LatLng(32.33210 ,74.45842),new google.maps.LatLng(32.10121 ,74.41780),new google.maps.LatLng(31.21216 ,74.49211),new google.maps.LatLng(31.62190 ,75.00357),new google.maps.LatLng(31.63266 ,74.15641),new google.maps.LatLng(32.29571 ,74.51135),new google.maps.LatLng(31.15645 ,73.75548),new google.maps.LatLng(32.15894 ,74.24628),new google.maps.LatLng(31.01529 ,74.18902),new google.maps.LatLng(31.40799 ,73.83680),new google.maps.LatLng(31.80937 ,74.37206),new google.maps.LatLng(31.28280 ,73.60237),new google.maps.LatLng(30.95321 ,74.21135),new google.maps.LatLng(30.99763 ,74.80071),new google.maps.LatLng(31.28924 ,74.25623),new google.maps.LatLng(31.78007 ,73.77003),new google.maps.LatLng(31.67152 ,73.93970),new google.maps.LatLng(31.69750 ,74.32476),new google.maps.LatLng(31.28575 ,74.38710),new google.maps.LatLng(30.79493 ,74.24444),new google.maps.LatLng(31.45619 ,74.32888),new google.maps.LatLng(31.56780 ,75.08701),new google.maps.LatLng(32.11932 ,73.95044),new google.maps.LatLng(31.55332 ,74.04718),new google.maps.LatLng(30.78185 ,74.57381),new google.maps.LatLng(31.50407 ,74.68843),new google.maps.LatLng(30.91405 ,74.07178),new google.maps.LatLng(30.93205 ,74.18291),new google.maps.LatLng(31.26301 ,74.46122),new google.maps.LatLng(31.27882 ,75.02158),new google.maps.LatLng(31.74435 ,74.81480),new google.maps.LatLng(31.69233 ,74.06369),new google.maps.LatLng(30.94022 ,73.85892),new google.maps.LatLng(30.85355 ,73.81574),new google.maps.LatLng(31.93004 ,74.33771),new google.maps.LatLng(31.65909 ,74.97481),new google.maps.LatLng(31.98529 ,74.13384),new google.maps.LatLng(31.58394 ,74.61995),new google.maps.LatLng(30.83262 ,74.62077),new google.maps.LatLng(31.90280 ,73.64820),new google.maps.LatLng(31.25514 ,75.14777),new google.maps.LatLng(31.48008 ,74.83061),new google.maps.LatLng(31.18573 ,74.29638),new google.maps.LatLng(30.99460 ,73.78740),new google.maps.LatLng(30.74269 ,74.49836),new google.maps.LatLng(32.11697 ,73.92682),new google.maps.LatLng(31.28044 ,74.42306),new google.maps.LatLng(31.40524 ,74.19672),new google.maps.LatLng(31.38252 ,74.15141),new google.maps.LatLng(31.61156 ,73.76498),new google.maps.LatLng(31.59933 ,74.88546),new google.maps.LatLng(31.24944 ,73.97653),new google.maps.LatLng(31.80102 ,73.77233),new google.maps.LatLng(30.95985 ,74.96116),new google.maps.LatLng(31.40410 ,73.55656),new google.maps.LatLng(31.08226 ,74.38908),new google.maps.LatLng(31.50764 ,74.36434),new google.maps.LatLng(30.67932 ,74.22577),new google.maps.LatLng(31.44650 ,73.73267),new google.maps.LatLng(31.22565 ,74.06844),new google.maps.LatLng(31.46017 ,74.83750),new google.maps.LatLng(30.91904 ,74.45699),new google.maps.LatLng(31.52182 ,74.26079),new google.maps.LatLng(31.31576 ,73.80584),new google.maps.LatLng(30.90706 ,74.50680),new google.maps.LatLng(32.22961 ,74.80895),new google.maps.LatLng(30.96868 ,73.89606),new google.maps.LatLng(31.56253 ,74.24365),new google.maps.LatLng(31.67342 ,74.04983),new google.maps.LatLng(32.01335 ,74.09957),new google.maps.LatLng(31.47091 ,74.37223),new google.maps.LatLng(31.48962 ,73.56879),new google.maps.LatLng(30.84253 ,74.09940),new google.maps.LatLng(31.33296 ,74.49769),new google.maps.LatLng(31.15012 ,73.65801),new google.maps.LatLng(32.21920 ,74.31152),new google.maps.LatLng(31.74106 ,73.92634),new google.maps.LatLng(31.82220 ,74.19697),new google.maps.LatLng(31.43175 ,74.08898),new google.maps.LatLng(32.03014 ,73.71449),new google.maps.LatLng(30.85754 ,74.81276),new google.maps.LatLng(31.01702 ,74.98371),new google.maps.LatLng(31.42902 ,74.49042),new google.maps.LatLng(31.03420 ,74.11533),new google.maps.LatLng(31.66696 ,73.61349),new google.maps.LatLng(31.99206 ,73.70922),new google.maps.LatLng(31.89664 ,74.97414),new google.maps.LatLng(31.19138 ,73.93737),new google.maps.LatLng(31.36889 ,74.21050),new google.maps.LatLng(31.63230 ,75.16483),new google.maps.LatLng(31.91344 ,74.25433),new google.maps.LatLng(31.31899 ,75.18503),new google.maps.LatLng(31.30739 ,74.13226),new google.maps.LatLng(31.34367 ,75.07478),new google.maps.LatLng(32.09543 ,74.59054),new google.maps.LatLng(30.99514 ,74.63147),new google.maps.LatLng(31.97444 ,73.65442),new google.maps.LatLng(31.71833 ,74.00902),new google.maps.LatLng(31.58842 ,73.82897),new google.maps.LatLng(32.10942 ,74.29673),new google.maps.LatLng(30.70550 ,74.37458),new google.maps.LatLng(31.26033 ,74.98448),new google.maps.LatLng(32.21738 ,73.94684),new google.maps.LatLng(31.24631 ,73.58499),new google.maps.LatLng(30.93806 ,74.76747),new google.maps.LatLng(31.02984 ,74.42179),new google.maps.LatLng(31.18219 ,73.84979),new google.maps.LatLng(30.95164 ,74.27911),new google.maps.LatLng(31.32468 ,73.57244),new google.maps.LatLng(31.35969 ,73.96337),new google.maps.LatLng(32.22226 ,73.95022),new google.maps.LatLng(31.40138 ,73.91979),new google.maps.LatLng(31.88378 ,74.98569),new google.maps.LatLng(31.45545 ,74.95929),new google.maps.LatLng(32.02283 ,74.12331),new google.maps.LatLng(32.03024 ,74.50838),new google.maps.LatLng(30.87358 ,73.82492),new google.maps.LatLng(31.90063 ,73.90412),new google.maps.LatLng(31.74700 ,74.75776),new google.maps.LatLng(31.18619 ,73.90399),new google.maps.LatLng(31.49453 ,73.88009),new google.maps.LatLng(30.98963 ,74.75184),new google.maps.LatLng(32.17612 ,74.42053),new google.maps.LatLng(31.84835 ,74.80367),new google.maps.LatLng(30.76707 ,74.16049),new google.maps.LatLng(31.89959 ,74.95140),new google.maps.LatLng(31.26025 ,73.63317),new google.maps.LatLng(31.19467 ,74.57260),new google.maps.LatLng(31.53460 ,73.94805),new google.maps.LatLng(31.46244 ,73.75500),new google.maps.LatLng(30.65587 ,74.35854),new google.maps.LatLng(31.89737 ,75.03180),new google.maps.LatLng(32.07472 ,73.77565),new google.maps.LatLng(31.89786 ,74.77446),new google.maps.LatLng(31.48742 ,74.94407),new google.maps.LatLng(31.66854 ,74.41102),new google.maps.LatLng(31.02443 ,74.79911),new google.maps.LatLng(31.14979 ,73.72930),new google.maps.LatLng(31.46308 ,74.77849),new google.maps.LatLng(31.37788 ,74.36602),new google.maps.LatLng(31.72168 ,74.05630),new google.maps.LatLng(31.29171 ,75.10706),new google.maps.LatLng(31.08248 ,74.37384),new google.maps.LatLng(32.31805 ,74.19562),new google.maps.LatLng(31.72560 ,75.15911),new google.maps.LatLng(31.37928 ,74.54920),new google.maps.LatLng(32.19965 ,73.88076),new google.maps.LatLng(31.11506 ,73.93142),new google.maps.LatLng(32.30772 ,74.21266),new google.maps.LatLng(31.49767 ,73.65712),new google.maps.LatLng(31.87910 ,74.24317),new google.maps.LatLng(31.05036 ,74.33288),new google.maps.LatLng(32.02380 ,74.65431),new google.maps.LatLng(31.82474 ,73.97999),new google.maps.LatLng(31.81597 ,74.06139),new google.maps.LatLng(31.12890 ,73.78227),new google.maps.LatLng(31.96347 ,75.03996),new google.maps.LatLng(32.00788 ,74.47964),new google.maps.LatLng(32.00595 ,74.93128),new google.maps.LatLng(31.78266 ,74.58274),new google.maps.LatLng(31.86945 ,74.87000),new google.maps.LatLng(31.73399 ,74.75784),new google.maps.LatLng(32.15831 ,74.86192),new google.maps.LatLng(30.86456 ,74.06867),new google.maps.LatLng(31.52068 ,73.87505),new google.maps.LatLng(31.90807 ,73.94243),new google.maps.LatLng(31.43710 ,74.21696),new google.maps.LatLng(31.52747 ,73.61465),new google.maps.LatLng(31.36203 ,74.66044),new google.maps.LatLng(31.72441 ,74.92946),new google.maps.LatLng(31.71254 ,74.53920),new google.maps.LatLng(31.83574 ,73.64693),new google.maps.LatLng(31.11664 ,73.73030),new google.maps.LatLng(31.38688 ,73.98241),new google.maps.LatLng(32.30235 ,74.50825),new google.maps.LatLng(31.51600 ,75.09194),new google.maps.LatLng(32.11599 ,74.80853),new google.maps.LatLng(31.75945 ,74.72540),new google.maps.LatLng(31.39322 ,75.18950),new google.maps.LatLng(30.98005 ,73.92031),new google.maps.LatLng(32.29021 ,74.42460),new google.maps.LatLng(32.30310 ,74.42057),new google.maps.LatLng(30.79276 ,74.31763),new google.maps.LatLng(32.00904 ,74.66504),new google.maps.LatLng(31.08173 ,74.01205),new google.maps.LatLng(31.75224 ,73.99726),new google.maps.LatLng(30.89647 ,73.96058),new google.maps.LatLng(31.71182 ,73.77765),new google.maps.LatLng(30.76871 ,74.63193),new google.maps.LatLng(32.02526 ,74.22564),new google.maps.LatLng(31.57437 ,74.44385),new google.maps.LatLng(31.32413 ,73.61729),new google.maps.LatLng(31.20217 ,74.54401),new google.maps.LatLng(32.26565 ,74.37615),new google.maps.LatLng(32.13305 ,74.49651),new google.maps.LatLng(31.81033 ,74.79917),new google.maps.LatLng(31.82012 ,73.67407),new google.maps.LatLng(31.74291 ,74.08152),new google.maps.LatLng(31.79262 ,74.18568),new google.maps.LatLng(31.67994 ,74.21495),new google.maps.LatLng(31.07886 ,75.03788),new google.maps.LatLng(31.44498 ,74.67660),new google.maps.LatLng(32.20108 ,74.09034),new google.maps.LatLng(31.74917 ,74.37497),new google.maps.LatLng(31.51722 ,74.76199),new google.maps.LatLng(32.00576 ,74.29902),new google.maps.LatLng(30.89031 ,74.32627),new google.maps.LatLng(31.73950 ,75.08255),new google.maps.LatLng(30.77392 ,74.16571),new google.maps.LatLng(31.61179 ,73.75163),new google.maps.LatLng(31.64864 ,74.48748),new google.maps.LatLng(31.39737 ,74.04766),new google.maps.LatLng(31.64697 ,74.28355),new google.maps.LatLng(31.62654 ,75.04264),new google.maps.LatLng(30.83435 ,74.25109),new google.maps.LatLng(31.30175 ,74.39904),new google.maps.LatLng(31.12245 ,74.98592),new google.maps.LatLng(31.28430 ,73.96342),new google.maps.LatLng(31.25085 ,74.30850),new google.maps.LatLng(31.69169 ,74.02202),new google.maps.LatLng(31.73478 ,74.11938),new google.maps.LatLng(30.84294 ,74.12506),new google.maps.LatLng(31.32299 ,73.62349),new google.maps.LatLng(31.32326 ,74.19344),new google.maps.LatLng(31.46737 ,75.21212),new google.maps.LatLng(32.34755 ,74.38307),new google.maps.LatLng(31.53962 ,74.91336),new google.maps.LatLng(30.94745 ,73.99103),new google.maps.LatLng(31.88242 ,73.66498),new google.maps.LatLng(31.21992 ,73.70786),new google.maps.LatLng(31.88775 ,73.74829),new google.maps.LatLng(30.82894 ,74.88683),new google.maps.LatLng(31.74579 ,73.73399),new google.maps.LatLng(31.70773 ,74.54318),new google.maps.LatLng(31.74850 ,74.09809),new google.maps.LatLng(31.68393 ,74.92380),new google.maps.LatLng(31.94088 ,74.74230),new google.maps.LatLng(31.88104 ,74.43475),new google.maps.LatLng(30.73644 ,73.99925),new google.maps.LatLng(31.01867 ,74.10026),new google.maps.LatLng(31.40656 ,74.43400),new google.maps.LatLng(31.47690 ,73.77701),new google.maps.LatLng(31.01858 ,74.04763),new google.maps.LatLng(31.87469 ,74.04965),new google.maps.LatLng(32.03310 ,74.70762),new google.maps.LatLng(31.41144 ,74.28010),new google.maps.LatLng(31.28338 ,75.15793),new google.maps.LatLng(32.15565 ,74.56683),new google.maps.LatLng(31.12231 ,74.25867),new google.maps.LatLng(32.18641 ,73.91252),new google.maps.LatLng(30.86709 ,74.43056),new google.maps.LatLng(31.25147 ,73.81994),new google.maps.LatLng(32.32748 ,74.35779),new google.maps.LatLng(31.65911 ,74.06655),new google.maps.LatLng(31.82672 ,74.84851),new google.maps.LatLng(30.93517 ,74.96990),new google.maps.LatLng(31.96749 ,74.85721),new google.maps.LatLng(32.03816 ,73.98779),new google.maps.LatLng(31.66750 ,75.15933),new google.maps.LatLng(31.07899 ,74.66722),new google.maps.LatLng(32.06783 ,73.83997),new google.maps.LatLng(32.24490 ,74.53760),new google.maps.LatLng(31.10881 ,74.13146),new google.maps.LatLng(31.28045 ,74.10742),new google.maps.LatLng(31.08089 ,74.14383),new google.maps.LatLng(32.25289 ,74.02744),new google.maps.LatLng(31.08357 ,75.04330),new google.maps.LatLng(31.72157 ,75.08298),new google.maps.LatLng(31.59382 ,73.82335),new google.maps.LatLng(31.72715 ,74.20024),new google.maps.LatLng(32.17882 ,74.45416),new google.maps.LatLng(31.18727 ,73.75707),new google.maps.LatLng(31.47828 ,75.10523),new google.maps.LatLng(31.39502 ,74.58676),new google.maps.LatLng(31.48085 ,74.13862),new google.maps.LatLng(32.24649 ,74.16227),new google.maps.LatLng(32.18683 ,74.33247),new google.maps.LatLng(30.98594 ,74.02401),new google.maps.LatLng(31.45792 ,74.08576),new google.maps.LatLng(31.49003 ,73.98713),new google.maps.LatLng(31.38915 ,73.89993),new google.maps.LatLng(31.28438 ,73.93248),new google.maps.LatLng(31.73652 ,73.99250),new google.maps.LatLng(31.34593 ,74.38484),new google.maps.LatLng(32.17285 ,74.02150),new google.maps.LatLng(31.55894 ,75.01181),new google.maps.LatLng(31.68809 ,73.71087),new google.maps.LatLng(31.95189 ,74.45615),new google.maps.LatLng(32.30236 ,74.33698),new google.maps.LatLng(31.81660 ,74.14055),new google.maps.LatLng(32.08547 ,73.78264),new google.maps.LatLng(31.31774 ,74.54158),new google.maps.LatLng(32.07485 ,74.17097),new google.maps.LatLng(30.68624 ,74.46206),new google.maps.LatLng(32.03084 ,74.63709),new google.maps.LatLng(32.18796 ,74.81692),new google.maps.LatLng(31.15396 ,73.85792),new google.maps.LatLng(31.31408 ,73.96751),new google.maps.LatLng(31.32373 ,75.17420),new google.maps.LatLng(31.55025 ,74.56707),new google.maps.LatLng(31.50731 ,73.67241),new google.maps.LatLng(31.13419 ,74.70090),new google.maps.LatLng(31.48360 ,73.60539),new google.maps.LatLng(32.10279 ,74.59918),new google.maps.LatLng(31.55482 ,74.02818),new google.maps.LatLng(32.31013 ,74.63376),new google.maps.LatLng(31.78071 ,73.62830),new google.maps.LatLng(32.03601 ,74.15976),new google.maps.LatLng(31.52631 ,74.80876),new google.maps.LatLng(31.39692 ,74.01188),new google.maps.LatLng(31.36712 ,75.06242),new google.maps.LatLng(32.04500 ,74.88664),new google.maps.LatLng(31.66247 ,74.57648),new google.maps.LatLng(30.68296 ,74.38842),new google.maps.LatLng(31.35545 ,73.55022),new google.maps.LatLng(31.44947 ,73.76071),new google.maps.LatLng(31.90741 ,73.99020),new google.maps.LatLng(31.86303 ,73.79152),new google.maps.LatLng(31.43270 ,73.73483),new google.maps.LatLng(31.11926 ,74.38107),new google.maps.LatLng(30.89789 ,73.86348),new google.maps.LatLng(32.12079 ,74.71409),new google.maps.LatLng(31.57002 ,74.97391),new google.maps.LatLng(31.29338 ,73.87915),new google.maps.LatLng(31.33614 ,74.85593),new google.maps.LatLng(32.21189 ,74.72030),new google.maps.LatLng(32.28351 ,74.02734),new google.maps.LatLng(31.68700 ,73.86593),new google.maps.LatLng(31.33855 ,73.57689),new google.maps.LatLng(31.87989 ,74.52208),new google.maps.LatLng(31.59927 ,74.24248),new google.maps.LatLng(31.71786 ,73.69198),new google.maps.LatLng(32.02669 ,74.99501),new google.maps.LatLng(31.37532 ,74.49281),new google.maps.LatLng(31.50833 ,74.91206),new google.maps.LatLng(32.15129 ,74.27516),new google.maps.LatLng(32.06139 ,74.49059),new google.maps.LatLng(31.56798 ,73.80220),new google.maps.LatLng(31.60033 ,74.14763),new google.maps.LatLng(32.20999 ,74.24302),new google.maps.LatLng(31.01915 ,74.19463),new google.maps.LatLng(31.56805 ,75.05155),new google.maps.LatLng(31.34969 ,73.65630),new google.maps.LatLng(32.29669 ,74.31224),new google.maps.LatLng(31.41159 ,75.12289),new google.maps.LatLng(30.92286 ,73.99845),new google.maps.LatLng(30.70027 ,74.31895),new google.maps.LatLng(31.79990 ,73.86818),new google.maps.LatLng(30.83584 ,74.17124),new google.maps.LatLng(31.21034 ,74.72018),new google.maps.LatLng(30.83663 ,73.84605),new google.maps.LatLng(31.35737 ,75.01557),new google.maps.LatLng(31.72825 ,74.29425),new google.maps.LatLng(30.98481 ,74.03897),new google.maps.LatLng(31.04153 ,74.26993),new google.maps.LatLng(31.90932 ,74.70305),new google.maps.LatLng(31.34102 ,73.54918),new google.maps.LatLng(32.00813 ,75.02352),new google.maps.LatLng(31.54078 ,74.39555),new google.maps.LatLng(31.23647 ,74.29066),new google.maps.LatLng(31.69918 ,73.77590),new google.maps.LatLng(31.24278 ,73.72431),new google.maps.LatLng(31.01504 ,73.98305),new google.maps.LatLng(31.27520 ,73.87828),new google.maps.LatLng(31.54063 ,74.64949),new google.maps.LatLng(32.13565 ,74.64444),new google.maps.LatLng(31.14801 ,73.70163),new google.maps.LatLng(31.75785 ,74.37293),new google.maps.LatLng(32.22320 ,74.70013),new google.maps.LatLng(31.83592 ,73.77844),new google.maps.LatLng(30.87832 ,73.86921),new google.maps.LatLng(31.88925 ,74.22562),new google.maps.LatLng(31.96498 ,74.59776),new google.maps.LatLng(31.57470 ,74.07405),new google.maps.LatLng(32.27164 ,74.21016),new google.maps.LatLng(31.86700 ,75.03048),new google.maps.LatLng(32.03881 ,74.81046),new google.maps.LatLng(31.37525 ,74.60136),new google.maps.LatLng(31.59718 ,73.98781),new google.maps.LatLng(31.11129 ,74.52528),new google.maps.LatLng(32.16510 ,74.50187),new google.maps.LatLng(31.51418 ,74.50619),new google.maps.LatLng(32.17304 ,73.84153),new google.maps.LatLng(31.77783 ,74.59181),new google.maps.LatLng(31.69231 ,75.08188),new google.maps.LatLng(32.04462 ,73.73200),new google.maps.LatLng(31.73057 ,73.89315),new google.maps.LatLng(31.12610 ,74.16693),new google.maps.LatLng(31.64847 ,73.69770),new google.maps.LatLng(31.61752 ,74.66824),new google.maps.LatLng(31.77337 ,73.73011),new google.maps.LatLng(31.69307 ,74.57950),new google.maps.LatLng(32.01639 ,74.54620),new google.maps.LatLng(30.91376 ,74.04433),new google.maps.LatLng(31.53780 ,73.62865),new google.maps.LatLng(31.18064 ,74.38864),new google.maps.LatLng(31.61559 ,73.68346),new google.maps.LatLng(30.74598 ,74.45516),new google.maps.LatLng(31.13189 ,74.05972),new google.maps.LatLng(30.80489 ,74.34182),new google.maps.LatLng(30.99284 ,74.79942),new google.maps.LatLng(32.18909 ,73.92995),new google.maps.LatLng(30.82194 ,74.44501),new google.maps.LatLng(31.90588 ,74.41127),new google.maps.LatLng(31.44515 ,74.26529),new google.maps.LatLng(31.63199 ,74.22045),new google.maps.LatLng(31.76939 ,74.26664),new google.maps.LatLng(31.55739 ,73.92674),new google.maps.LatLng(31.16980 ,74.29199),new google.maps.LatLng(30.97014 ,73.97667),new google.maps.LatLng(32.22004 ,74.17249),new google.maps.LatLng(31.64336 ,74.46604),new google.maps.LatLng(30.74190 ,74.73890),new google.maps.LatLng(31.86554 ,74.56553),new google.maps.LatLng(31.46714 ,74.00203),new google.maps.LatLng(31.58240 ,74.27219),new google.maps.LatLng(31.89590 ,74.88139),new google.maps.LatLng(31.01890 ,73.68642),new google.maps.LatLng(31.94267 ,74.37763),new google.maps.LatLng(31.60757 ,74.19367),new google.maps.LatLng(30.69832 ,74.36163),new google.maps.LatLng(31.57090 ,74.29362),new google.maps.LatLng(30.86439 ,74.16804),new google.maps.LatLng(31.19198 ,74.55584),new google.maps.LatLng(31.74719 ,74.31392),new google.maps.LatLng(30.87356 ,74.42560),new google.maps.LatLng(31.35011 ,74.69540),new google.maps.LatLng(30.85711 ,73.93016),new google.maps.LatLng(32.29232 ,74.28002),new google.maps.LatLng(31.08203 ,73.80167),new google.maps.LatLng(31.29356 ,74.27554),new google.maps.LatLng(30.95142 ,74.54664),new google.maps.LatLng(31.28947 ,74.46331),new google.maps.LatLng(31.79372 ,74.96987),new google.maps.LatLng(32.12097 ,74.94507),new google.maps.LatLng(31.12135 ,73.73992),new google.maps.LatLng(31.67705 ,74.87244),new google.maps.LatLng(30.79710 ,74.68561),new google.maps.LatLng(31.03445 ,74.34733),new google.maps.LatLng(31.43062 ,74.32268),new google.maps.LatLng(30.93781 ,74.71874),new google.maps.LatLng(31.56274 ,74.38008),new google.maps.LatLng(32.01556 ,75.02609),new google.maps.LatLng(31.26952 ,75.04022),new google.maps.LatLng(31.60722 ,74.11756),new google.maps.LatLng(31.25729 ,74.68050),new google.maps.LatLng(31.13986 ,74.48827),new google.maps.LatLng(32.11371 ,74.46217),new google.maps.LatLng(31.76710 ,74.46334),new google.maps.LatLng(31.49421 ,73.53799),new google.maps.LatLng(30.98395 ,74.96641),new google.maps.LatLng(31.46276 ,73.57048),new google.maps.LatLng(31.44447 ,74.57403),new google.maps.LatLng(31.81566 ,73.63459),new google.maps.LatLng(31.77630 ,74.77417),new google.maps.LatLng(31.36286 ,73.97962),new google.maps.LatLng(31.76240 ,74.18387),new google.maps.LatLng(32.08594 ,74.03285),new google.maps.LatLng(31.36703 ,74.14923),new google.maps.LatLng(31.32874 ,74.42595),new google.maps.LatLng(31.58055 ,74.64618),new google.maps.LatLng(31.50846 ,74.02190),new google.maps.LatLng(30.74642 ,74.72015),new google.maps.LatLng(31.84365 ,74.23786),new google.maps.LatLng(31.24158 ,74.21970),new google.maps.LatLng(32.14541 ,74.25913),new google.maps.LatLng(31.17748 ,74.98086),new google.maps.LatLng(30.94094 ,74.48770),new google.maps.LatLng(31.79640 ,74.81772),new google.maps.LatLng(31.25255 ,74.31318),new google.maps.LatLng(31.01935 ,73.66394),new google.maps.LatLng(31.54149 ,74.05642),new google.maps.LatLng(30.97962 ,74.44529),new google.maps.LatLng(31.52794 ,74.70949),new google.maps.LatLng(31.40755 ,73.98059),new google.maps.LatLng(32.10495 ,74.19143),new google.maps.LatLng(31.63194 ,73.72704),new google.maps.LatLng(31.23571 ,74.23126),new google.maps.LatLng(31.86099 ,74.88558),new google.maps.LatLng(30.87589 ,74.71386),new google.maps.LatLng(30.67527 ,74.27061),new google.maps.LatLng(31.95167 ,74.59700),new google.maps.LatLng(31.10172 ,73.84511),new google.maps.LatLng(31.69370 ,74.50816),new google.maps.LatLng(31.93992 ,74.90371),new google.maps.LatLng(31.67627 ,73.99880),new google.maps.LatLng(31.79396 ,74.04692),new google.maps.LatLng(31.79271 ,74.30323),new google.maps.LatLng(31.74259 ,74.59744),new google.maps.LatLng(31.75397 ,73.88794),new google.maps.LatLng(31.10581 ,74.51786),new google.maps.LatLng(31.62190 ,74.04271),new google.maps.LatLng(31.97812 ,73.83567),new google.maps.LatLng(31.53545 ,74.78408),new google.maps.LatLng(30.87908 ,73.96891),new google.maps.LatLng(31.03491 ,74.88852),new google.maps.LatLng(31.89962 ,74.00212),new google.maps.LatLng(31.39263 ,75.02139),new google.maps.LatLng(31.52994 ,73.79011),new google.maps.LatLng(31.50677 ,74.55040),new google.maps.LatLng(31.72463 ,73.59913),new google.maps.LatLng(30.95479 ,73.92559),new google.maps.LatLng(31.67759 ,75.16388),new google.maps.LatLng(32.00789 ,74.22240),new google.maps.LatLng(31.15787 ,73.89317),new google.maps.LatLng(31.62055 ,74.69562),new google.maps.LatLng(31.20732 ,75.15994),new google.maps.LatLng(31.52566 ,74.07083),new google.maps.LatLng(31.54664 ,74.66110),new google.maps.LatLng(31.03572 ,74.10897),new google.maps.LatLng(31.33854 ,74.40225),new google.maps.LatLng(31.69526 ,73.73220),new google.maps.LatLng(31.36353 ,73.97856),new google.maps.LatLng(31.49526 ,74.00277),new google.maps.LatLng(31.26082 ,74.28107),new google.maps.LatLng(32.08171 ,73.77298),new google.maps.LatLng(32.03131 ,74.84577),new google.maps.LatLng(30.95066 ,74.85698),new google.maps.LatLng(31.31833 ,75.14635),new google.maps.LatLng(31.70734 ,74.71830),new google.maps.LatLng(31.40337 ,74.64056),new google.maps.LatLng(31.93974 ,74.88529),new google.maps.LatLng(32.29602 ,74.29550),new google.maps.LatLng(32.13500 ,73.96358),new google.maps.LatLng(31.90639 ,74.12126),new google.maps.LatLng(31.58987 ,74.46206),new google.maps.LatLng(30.94875 ,74.50566),new google.maps.LatLng(32.09837 ,74.21742),new google.maps.LatLng(31.43908 ,73.87912),new google.maps.LatLng(32.16068 ,74.07724),new google.maps.LatLng(32.26660 ,74.30820),new google.maps.LatLng(31.07510 ,74.33472),new google.maps.LatLng(31.41617 ,74.88823),new google.maps.LatLng(31.66441 ,73.71228),new google.maps.LatLng(31.99164 ,75.02868),new google.maps.LatLng(31.61673 ,75.00095),new google.maps.LatLng(31.35681 ,75.06322),new google.maps.LatLng(32.28326 ,74.26902),new google.maps.LatLng(32.32216 ,74.37797),new google.maps.LatLng(31.51103 ,75.13364),new google.maps.LatLng(31.07977 ,73.71758),new google.maps.LatLng(31.53195 ,73.53334),new google.maps.LatLng(31.55021 ,74.33726),new google.maps.LatLng(31.49091 ,73.78844),new google.maps.LatLng(31.38177 ,73.57306),new google.maps.LatLng(30.96444 ,74.37281),new google.maps.LatLng(31.70781 ,73.64764),new google.maps.LatLng(30.68380 ,74.46337),new google.maps.LatLng(31.66902 ,75.18575),new google.maps.LatLng(31.27101 ,74.65332),new google.maps.LatLng(31.09641 ,73.71511),new google.maps.LatLng(31.56220 ,73.52020),new google.maps.LatLng(31.66867 ,74.92843),new google.maps.LatLng(31.70593 ,73.96824),new google.maps.LatLng(32.16575 ,74.54552),new google.maps.LatLng(31.15130 ,74.11454),new google.maps.LatLng(31.79534 ,74.30981),new google.maps.LatLng(32.00426 ,74.54406),new google.maps.LatLng(32.10415 ,74.53611),new google.maps.LatLng(31.75699 ,75.10734),new google.maps.LatLng(31.80255 ,74.23797),new google.maps.LatLng(31.07572 ,74.21650),new google.maps.LatLng(31.61794 ,74.70518),new google.maps.LatLng(30.88170 ,74.70702),new google.maps.LatLng(31.08457 ,73.74722),new google.maps.LatLng(31.52445 ,74.24309),new google.maps.LatLng(31.33153 ,74.40879),new google.maps.LatLng(31.36352 ,73.88927),new google.maps.LatLng(30.79329 ,74.82653),new google.maps.LatLng(31.70506 ,74.58060),new google.maps.LatLng(31.89768 ,74.46322),new google.maps.LatLng(30.92017 ,73.81907),new google.maps.LatLng(30.79929 ,74.77779),new google.maps.LatLng(31.40403 ,74.76924),new google.maps.LatLng(31.36707 ,75.16805),new google.maps.LatLng(32.21333 ,74.50971),new google.maps.LatLng(31.50749 ,74.73514),new google.maps.LatLng(31.97447 ,74.91435),new google.maps.LatLng(30.90607 ,74.50501),new google.maps.LatLng(31.85298 ,73.90268),new google.maps.LatLng(31.64175 ,73.68190),new google.maps.LatLng(31.60340 ,75.15828),new google.maps.LatLng(31.52975 ,75.07401),new google.maps.LatLng(30.83230 ,74.49452),new google.maps.LatLng(31.86481 ,74.41862),new google.maps.LatLng(32.00510 ,74.66675),new google.maps.LatLng(31.49680 ,73.70808),new google.maps.LatLng(31.26329 ,73.76174),new google.maps.LatLng(31.60470 ,73.63037),new google.maps.LatLng(31.42703 ,74.67107),new google.maps.LatLng(30.90801 ,74.54276),new google.maps.LatLng(31.94717 ,73.72059),new google.maps.LatLng(31.84426 ,74.55552),new google.maps.LatLng(31.44159 ,74.85447),new google.maps.LatLng(31.97393 ,73.80597),new google.maps.LatLng(31.28856 ,73.70070),new google.maps.LatLng(31.59517 ,74.59133),new google.maps.LatLng(32.08572 ,74.98925),new google.maps.LatLng(32.00635 ,73.86058),new google.maps.LatLng(32.10735 ,74.71937),new google.maps.LatLng(31.92385 ,74.58857),new google.maps.LatLng(31.62543 ,74.83026),new google.maps.LatLng(31.64479 ,75.00354),new google.maps.LatLng(31.75533 ,73.71038),new google.maps.LatLng(31.47148 ,74.95348),new google.maps.LatLng(31.18582 ,74.02684),new google.maps.LatLng(31.10087 ,73.85550),new google.maps.LatLng(32.25161 ,74.57647),new google.maps.LatLng(31.90169 ,73.94541),new google.maps.LatLng(31.21415 ,74.31757),new google.maps.LatLng(32.08381 ,74.00078),new google.maps.LatLng(31.03971 ,74.28665),new google.maps.LatLng(31.44499 ,74.95946),new google.maps.LatLng(31.86260 ,74.46723),new google.maps.LatLng(31.47252 ,74.89283),new google.maps.LatLng(31.25767 ,74.32509),new google.maps.LatLng(31.43543 ,75.08520),new google.maps.LatLng(31.91623 ,74.45250),new google.maps.LatLng(30.92412 ,74.25681),new google.maps.LatLng(31.28372 ,74.27012),new google.maps.LatLng(31.73326 ,74.73219),new google.maps.LatLng(31.57506 ,75.04692),new google.maps.LatLng(32.11555 ,74.48798),new google.maps.LatLng(31.51444 ,74.48848),new google.maps.LatLng(31.10543 ,73.77905),new google.maps.LatLng(31.39199 ,73.68984),new google.maps.LatLng(32.18535 ,74.37508),new google.maps.LatLng(32.31415 ,74.12565),new google.maps.LatLng(32.28705 ,74.24839),new google.maps.LatLng(30.68187 ,74.16635),new google.maps.LatLng(31.34745 ,74.63748),new google.maps.LatLng(31.40929 ,75.02151),new google.maps.LatLng(31.72885 ,73.82167),new google.maps.LatLng(31.49114 ,74.51287),new google.maps.LatLng(31.59720 ,74.63975),new google.maps.LatLng(31.69507 ,74.55114),new google.maps.LatLng(30.74313 ,74.41746),new google.maps.LatLng(31.13081 ,74.44616),new google.maps.LatLng(31.27592 ,74.68550),new google.maps.LatLng(31.72018 ,74.58324),new google.maps.LatLng(31.36430 ,75.16814),new google.maps.LatLng(32.20995 ,74.65103),new google.maps.LatLng(31.61252 ,75.15782),new google.maps.LatLng(31.68624 ,74.67997),new google.maps.LatLng(31.99213 ,74.80730),new google.maps.LatLng(30.70229 ,74.51713),new google.maps.LatLng(31.81088 ,74.32023),new google.maps.LatLng(32.05555 ,73.77165),new google.maps.LatLng(31.73245 ,74.57012),new google.maps.LatLng(30.89210 ,74.37512),new google.maps.LatLng(31.65038 ,74.34926),new google.maps.LatLng(31.55623 ,75.11533),new google.maps.LatLng(31.02515 ,75.03359),new google.maps.LatLng(31.27904 ,74.37302),new google.maps.LatLng(31.81721 ,74.00162),new google.maps.LatLng(31.02944 ,73.81270),new google.maps.LatLng(31.04357 ,74.36059),new google.maps.LatLng(31.62684 ,75.19223),new google.maps.LatLng(30.86372 ,74.03805),new google.maps.LatLng(31.29846 ,75.09612),new google.maps.LatLng(31.14612 ,73.84854),new google.maps.LatLng(31.30458 ,73.97455),new google.maps.LatLng(30.89909 ,74.29469),new google.maps.LatLng(31.41212 ,74.65537),new google.maps.LatLng(31.41402 ,74.80447),new google.maps.LatLng(31.81232 ,74.54502),new google.maps.LatLng(31.22996 ,74.77650),new google.maps.LatLng(30.80255 ,74.69948),new google.maps.LatLng(30.83446 ,74.39373),new google.maps.LatLng(32.29080 ,74.20605),new google.maps.LatLng(30.67918 ,74.16328),new google.maps.LatLng(30.76226 ,74.17426),new google.maps.LatLng(31.73431 ,74.35505),new google.maps.LatLng(31.72679 ,74.63903),new google.maps.LatLng(31.73658 ,74.44252),new google.maps.LatLng(31.29240 ,73.60367),new google.maps.LatLng(32.09742 ,74.49746),new google.maps.LatLng(31.58070 ,75.17756),new google.maps.LatLng(31.65744 ,74.19447),new google.maps.LatLng(31.87271 ,74.95422),new google.maps.LatLng(31.49093 ,74.61243),new google.maps.LatLng(31.06173 ,74.41420),new google.maps.LatLng(31.54065 ,74.47924),new google.maps.LatLng(32.21442 ,74.02723),new google.maps.LatLng(31.64331 ,74.62140),new google.maps.LatLng(31.35956 ,73.85412),new google.maps.LatLng(30.95452 ,74.12531),new google.maps.LatLng(31.61557 ,73.77337),new google.maps.LatLng(31.00193 ,75.01294),new google.maps.LatLng(31.48655 ,74.68350),new google.maps.LatLng(31.85023 ,73.84067),new google.maps.LatLng(31.53049 ,74.59602),new google.maps.LatLng(32.00553 ,74.05169),new google.maps.LatLng(31.99483 ,75.02115),new google.maps.LatLng(31.55234 ,74.35846),new google.maps.LatLng(32.13942 ,74.14588),new google.maps.LatLng(31.14244 ,74.70342),new google.maps.LatLng(31.85344 ,74.80719),new google.maps.LatLng(31.20725 ,74.41430),new google.maps.LatLng(31.43540 ,74.84959),new google.maps.LatLng(31.95726 ,74.66468),new google.maps.LatLng(32.11426 ,74.90857),new google.maps.LatLng(31.97625 ,74.90118),new google.maps.LatLng(30.79567 ,74.10825),new google.maps.LatLng(31.80653 ,74.67818),new google.maps.LatLng(31.36817 ,74.18427),new google.maps.LatLng(30.77010 ,74.53638),new google.maps.LatLng(31.59988 ,73.89800),new google.maps.LatLng(31.06671 ,74.92501),new google.maps.LatLng(31.50550 ,74.54813),new google.maps.LatLng(32.03688 ,74.61694),new google.maps.LatLng(32.06050 ,74.51495),new google.maps.LatLng(31.25688 ,74.16898),new google.maps.LatLng(31.22203 ,74.95142),new google.maps.LatLng(32.21383 ,74.44579),new google.maps.LatLng(32.07215 ,73.76749),new google.maps.LatLng(31.10918 ,74.03185),new google.maps.LatLng(31.09885 ,73.69219),new google.maps.LatLng(31.14772 ,73.86971),new google.maps.LatLng(30.91361 ,73.92607),new google.maps.LatLng(31.78510 ,74.82032),new google.maps.LatLng(31.47317 ,74.03289),new google.maps.LatLng(31.96777 ,74.36346),new google.maps.LatLng(31.58918 ,74.91193),new google.maps.LatLng(31.41759 ,73.66293),new google.maps.LatLng(31.90986 ,74.11770),new google.maps.LatLng(31.12982 ,74.84408),new google.maps.LatLng(31.46288 ,74.47636),new google.maps.LatLng(31.61311 ,73.78871),new google.maps.LatLng(32.28209 ,74.48452),new google.maps.LatLng(31.49653 ,73.82247),new google.maps.LatLng(31.10992 ,74.81320),new google.maps.LatLng(32.18279 ,74.45707),new google.maps.LatLng(30.91561 ,73.88935),new google.maps.LatLng(31.93658 ,75.00746),new google.maps.LatLng(31.53770 ,75.04198),new google.maps.LatLng(31.58571 ,74.18407),new google.maps.LatLng(31.50212 ,74.38893),new google.maps.LatLng(31.28029 ,74.17846),new google.maps.LatLng(31.55393 ,75.20063),new google.maps.LatLng(31.60160 ,74.48953),new google.maps.LatLng(31.71967 ,74.45478),new google.maps.LatLng(31.17445 ,74.93211),new google.maps.LatLng(31.52564 ,74.10320),new google.maps.LatLng(31.15251 ,73.78837),new google.maps.LatLng(31.78098 ,73.70252),new google.maps.LatLng(31.24746 ,74.34913),new google.maps.LatLng(30.68280 ,74.55618),new google.maps.LatLng(31.03145 ,73.65886),new google.maps.LatLng(31.92725 ,74.33850),new google.maps.LatLng(30.99501 ,74.51754),new google.maps.LatLng(30.75905 ,74.08599),new google.maps.LatLng(31.19031 ,73.93743),new google.maps.LatLng(31.82904 ,74.59529),new google.maps.LatLng(31.49807 ,74.91456),new google.maps.LatLng(30.80557 ,74.01581),new google.maps.LatLng(31.92636 ,73.95771),new google.maps.LatLng(31.51131 ,74.87534),new google.maps.LatLng(31.60364 ,73.96566),new google.maps.LatLng(31.96825 ,74.24543),new google.maps.LatLng(31.84364 ,74.79029),new google.maps.LatLng(32.03516 ,74.06894),new google.maps.LatLng(32.17282 ,74.47557),new google.maps.LatLng(31.06572 ,73.78463),new google.maps.LatLng(31.77931 ,73.94013),new google.maps.LatLng(31.42936 ,75.01068),new google.maps.LatLng(31.11236 ,73.67420),new google.maps.LatLng(30.94971 ,74.46621),new google.maps.LatLng(31.03232 ,73.66043),new google.maps.LatLng(31.49587 ,74.39535),new google.maps.LatLng(31.84375 ,75.12727),new google.maps.LatLng(30.71504 ,74.31115),new google.maps.LatLng(31.15919 ,73.91882),new google.maps.LatLng(31.65399 ,74.50509),new google.maps.LatLng(31.57026 ,73.88178),new google.maps.LatLng(31.32145 ,74.72515),new google.maps.LatLng(31.47427 ,74.33403),new google.maps.LatLng(31.35580 ,74.35914),new google.maps.LatLng(31.46171 ,74.15998),new google.maps.LatLng(32.20482 ,74.48029),new google.maps.LatLng(31.75582 ,74.19348),new google.maps.LatLng(30.92701 ,74.45241),new google.maps.LatLng(31.25077 ,74.52102),new google.maps.LatLng(31.11542 ,74.73705),new google.maps.LatLng(30.66701 ,74.32478),new google.maps.LatLng(32.23001 ,73.92284),new google.maps.LatLng(31.97767 ,73.98536),new google.maps.LatLng(31.00626 ,73.73705),new google.maps.LatLng(31.87101 ,74.36441),new google.maps.LatLng(31.20502 ,74.44521),new google.maps.LatLng(31.32577 ,73.99423),new google.maps.LatLng(31.52954 ,74.81603),new google.maps.LatLng(30.83153 ,74.57788),new google.maps.LatLng(31.04569 ,74.43597),new google.maps.LatLng(30.91488 ,74.19910),new google.maps.LatLng(31.34677 ,74.26010),new google.maps.LatLng(31.95448 ,74.48947),new google.maps.LatLng(31.09968 ,74.94565),new google.maps.LatLng(31.16618 ,74.73953),new google.maps.LatLng(31.73661 ,74.84869),new google.maps.LatLng(31.38173 ,73.72409),new google.maps.LatLng(31.10495 ,74.69917),new google.maps.LatLng(30.98407 ,74.37852),new google.maps.LatLng(31.94141 ,74.36276),new google.maps.LatLng(32.08530 ,74.03834),new google.maps.LatLng(31.50335 ,73.61643),new google.maps.LatLng(31.27442 ,74.78509),new google.maps.LatLng(24.98027 ,66.64040),new google.maps.LatLng(25.87017 ,67.14295),new google.maps.LatLng(24.78377 ,66.53680),new google.maps.LatLng(25.22534 ,67.28377),new google.maps.LatLng(24.89484 ,66.73193),new google.maps.LatLng(24.63260 ,67.41548),new google.maps.LatLng(24.45207 ,67.18810),new google.maps.LatLng(24.79236 ,66.82985),new google.maps.LatLng(24.52199 ,66.24544),new google.maps.LatLng(25.07759 ,67.61510),new google.maps.LatLng(24.74241 ,66.92392),new google.maps.LatLng(24.47000 ,66.64201),new google.maps.LatLng(24.49493 ,67.13672),new google.maps.LatLng(25.80060 ,67.25399),new google.maps.LatLng(25.56632 ,66.63286),new google.maps.LatLng(24.02310 ,67.12628),new google.maps.LatLng(24.31559 ,67.62544),new google.maps.LatLng(24.23926 ,66.98257),new google.maps.LatLng(25.10308 ,67.04887),new google.maps.LatLng(24.19665 ,66.82076),new google.maps.LatLng(24.27040 ,67.69887),new google.maps.LatLng(25.57579 ,67.34142),new google.maps.LatLng(25.34688 ,67.20194),new google.maps.LatLng(25.64318 ,67.01967),new google.maps.LatLng(24.52541 ,66.78315),new google.maps.LatLng(24.94165 ,67.59224),new google.maps.LatLng(24.65120 ,67.15395),new google.maps.LatLng(25.43788 ,66.34290),new google.maps.LatLng(24.55004 ,67.77183),new google.maps.LatLng(25.63313 ,67.11009),new google.maps.LatLng(24.85319 ,67.63194),new google.maps.LatLng(24.90970 ,67.74290),new google.maps.LatLng(25.72947 ,66.61026),new google.maps.LatLng(24.74408 ,67.89193),new google.maps.LatLng(24.99769 ,66.19613),new google.maps.LatLng(24.80742 ,67.89866),new google.maps.LatLng(24.89297 ,67.06735),new google.maps.LatLng(24.64166 ,67.58046),new google.maps.LatLng(24.98410 ,66.30059),new google.maps.LatLng(25.32425 ,66.52091),new google.maps.LatLng(24.63904 ,67.67143),new google.maps.LatLng(25.61554 ,67.25906),new google.maps.LatLng(24.74347 ,66.46206),new google.maps.LatLng(25.71825 ,66.53045),new google.maps.LatLng(25.48865 ,66.54636),new google.maps.LatLng(24.50923 ,67.71605),new google.maps.LatLng(24.78915 ,66.45015),new google.maps.LatLng(25.39185 ,66.80480),new google.maps.LatLng(24.55878 ,67.58505),new google.maps.LatLng(25.33287 ,67.49108),new google.maps.LatLng(24.84152 ,66.82637),new google.maps.LatLng(25.17194 ,66.78876),new google.maps.LatLng(24.77783 ,67.85027),new google.maps.LatLng(25.27551 ,66.45972),new google.maps.LatLng(24.35453 ,67.37805),new google.maps.LatLng(25.09711 ,67.44715),new google.maps.LatLng(25.35925 ,67.66571),new google.maps.LatLng(24.28069 ,66.71307),new google.maps.LatLng(24.16443 ,66.94321),new google.maps.LatLng(25.03854 ,67.12286),new google.maps.LatLng(24.73296 ,67.59584),new google.maps.LatLng(25.40711 ,66.86792),new google.maps.LatLng(25.32393 ,67.44273),new google.maps.LatLng(25.16355 ,67.29336),new google.maps.LatLng(24.15371 ,67.07027),new google.maps.LatLng(24.23486 ,67.02413),new google.maps.LatLng(24.67949 ,67.96118),new google.maps.LatLng(25.26510 ,66.55183),new google.maps.LatLng(25.53965 ,66.74573),new google.maps.LatLng(24.50361 ,67.85575),new google.maps.LatLng(24.95034 ,67.72228),new google.maps.LatLng(24.76916 ,66.50188),new google.maps.LatLng(24.55786 ,67.55432),new google.maps.LatLng(24.86271 ,66.90351),new google.maps.LatLng(24.48425 ,67.08408),new google.maps.LatLng(25.02349 ,67.72671),new google.maps.LatLng(25.49364 ,67.57033),new google.maps.LatLng(24.43887 ,66.38162),new google.maps.LatLng(24.32580 ,67.09249),new google.maps.LatLng(25.36092 ,67.51277),new google.maps.LatLng(24.95570 ,67.76424),new google.maps.LatLng(25.22827 ,67.08326),new google.maps.LatLng(24.22813 ,66.55097),new google.maps.LatLng(25.61638 ,66.96337),new google.maps.LatLng(24.01155 ,67.12118),new google.maps.LatLng(25.34233 ,67.25895),new google.maps.LatLng(25.22706 ,67.21404),new google.maps.LatLng(25.38805 ,67.55488),new google.maps.LatLng(24.19038 ,67.30043),new google.maps.LatLng(25.16017 ,66.51244),new google.maps.LatLng(25.13845 ,66.76116),new google.maps.LatLng(25.06778 ,67.87468),new google.maps.LatLng(25.11103 ,67.36749),new google.maps.LatLng(24.92094 ,66.90458),new google.maps.LatLng(25.12112 ,67.33130),new google.maps.LatLng(24.76607 ,66.76252),new google.maps.LatLng(24.63093 ,66.93829),new google.maps.LatLng(24.14410 ,67.25778),new google.maps.LatLng(24.34188 ,67.32677),new google.maps.LatLng(24.50992 ,66.50370),new google.maps.LatLng(25.64083 ,67.11838),new google.maps.LatLng(24.29214 ,66.89827),new google.maps.LatLng(24.70122 ,67.41311),new google.maps.LatLng(25.05133 ,66.85114),new google.maps.LatLng(24.60753 ,66.36699),new google.maps.LatLng(25.58805 ,66.40526),new google.maps.LatLng(24.90894 ,67.27066),new google.maps.LatLng(24.39972 ,66.78859),new google.maps.LatLng(24.77701 ,67.62131),new google.maps.LatLng(25.01883 ,67.74994),new google.maps.LatLng(25.67135 ,67.44398),new google.maps.LatLng(25.26316 ,67.90210),new google.maps.LatLng(24.59339 ,67.27359),new google.maps.LatLng(24.63372 ,66.32184),new google.maps.LatLng(25.37784 ,66.78116),new google.maps.LatLng(24.13444 ,66.97553),new google.maps.LatLng(25.29317 ,66.36647),new google.maps.LatLng(24.06342 ,67.09259),new google.maps.LatLng(24.23318 ,67.25008),new google.maps.LatLng(24.45054 ,66.34692),new google.maps.LatLng(24.97075 ,67.15864),new google.maps.LatLng(24.29481 ,66.41905),new google.maps.LatLng(24.30663 ,66.41408),new google.maps.LatLng(24.27408 ,67.58543),new google.maps.LatLng(25.76302 ,66.94308),new google.maps.LatLng(24.16568 ,66.91132),new google.maps.LatLng(24.10087 ,66.68487),new google.maps.LatLng(24.17867 ,67.35577),new google.maps.LatLng(25.56824 ,66.93034),new google.maps.LatLng(25.82950 ,66.97403),new google.maps.LatLng(24.04613 ,66.96417),new google.maps.LatLng(25.14339 ,66.68684),new google.maps.LatLng(24.81637 ,67.59304),new google.maps.LatLng(24.45736 ,66.98213),new google.maps.LatLng(24.09339 ,66.75830),new google.maps.LatLng(24.96443 ,67.64643),new google.maps.LatLng(24.23989 ,66.64552),new google.maps.LatLng(24.02538 ,67.13432),new google.maps.LatLng(24.74375 ,67.01787),new google.maps.LatLng(24.16700 ,67.12357),new google.maps.LatLng(25.68709 ,67.35214),new google.maps.LatLng(24.51051 ,66.81828),new google.maps.LatLng(24.85642 ,66.78253),new google.maps.LatLng(24.83619 ,67.06169),new google.maps.LatLng(24.36199 ,67.47758),new google.maps.LatLng(24.95444 ,67.50655),new google.maps.LatLng(25.27918 ,67.56883),new google.maps.LatLng(25.35096 ,67.11043),new google.maps.LatLng(25.14857 ,67.26692),new google.maps.LatLng(24.37144 ,66.46524),new google.maps.LatLng(25.30009 ,66.95444),new google.maps.LatLng(24.72010 ,66.85552),new google.maps.LatLng(24.56035 ,66.51635),new google.maps.LatLng(24.98625 ,67.96460),new google.maps.LatLng(24.89862 ,66.99834),new google.maps.LatLng(25.38630 ,66.95947),new google.maps.LatLng(24.37399 ,66.52354),new google.maps.LatLng(24.92629 ,67.28299),new google.maps.LatLng(25.23653 ,67.37502),new google.maps.LatLng(25.21851 ,66.91856),new google.maps.LatLng(24.37426 ,66.66210),new google.maps.LatLng(25.12494 ,66.34202),new google.maps.LatLng(25.15343 ,67.39841),new google.maps.LatLng(24.67298 ,67.54158),new google.maps.LatLng(25.05964 ,67.73996),new google.maps.LatLng(24.43803 ,67.23517),new google.maps.LatLng(25.82665 ,66.96165),new google.maps.LatLng(25.04340 ,66.39484),new google.maps.LatLng(25.38919 ,66.76647),new google.maps.LatLng(25.74335 ,66.59493),new google.maps.LatLng(24.29815 ,67.34189),new google.maps.LatLng(25.48525 ,66.74709),new google.maps.LatLng(24.94442 ,66.75046),new google.maps.LatLng(24.45836 ,67.68017),new google.maps.LatLng(24.65906 ,66.81386),new google.maps.LatLng(24.07855 ,66.75029),new google.maps.LatLng(24.73362 ,67.67680),new google.maps.LatLng(24.35680 ,66.35214),new google.maps.LatLng(25.28658 ,66.99857),new google.maps.LatLng(24.57479 ,66.67029),new google.maps.LatLng(25.08690 ,67.63400),new google.maps.LatLng(24.48123 ,67.17185),new google.maps.LatLng(24.85232 ,66.78105),new google.maps.LatLng(24.63273 ,66.39814),new google.maps.LatLng(24.33967 ,66.37858),new google.maps.LatLng(25.83015 ,67.11395),new google.maps.LatLng(24.25019 ,67.39380),new google.maps.LatLng(25.47349 ,67.15710),new google.maps.LatLng(25.66357 ,67.38158),new google.maps.LatLng(24.51120 ,67.16425),new google.maps.LatLng(24.02465 ,66.92298),new google.maps.LatLng(24.84173 ,66.83419),new google.maps.LatLng(25.73872 ,66.91918),new google.maps.LatLng(24.65071 ,67.29536),new google.maps.LatLng(24.33112 ,67.12498),new google.maps.LatLng(25.28714 ,67.87694),new google.maps.LatLng(24.82816 ,67.13506),new google.maps.LatLng(24.61097 ,67.10820),new google.maps.LatLng(25.87924 ,67.09546),new google.maps.LatLng(24.71919 ,67.33453),new google.maps.LatLng(25.10007 ,67.09552),new google.maps.LatLng(24.60773 ,67.42833),new google.maps.LatLng(24.75486 ,66.92851),new google.maps.LatLng(24.63170 ,66.97641),new google.maps.LatLng(24.78242 ,66.43573),new google.maps.LatLng(24.77405 ,66.50143),new google.maps.LatLng(24.93255 ,66.34300),new google.maps.LatLng(25.40769 ,67.47830),new google.maps.LatLng(24.77725 ,67.15236),new google.maps.LatLng(25.25548 ,67.19576),new google.maps.LatLng(25.43901 ,66.53174),new google.maps.LatLng(24.69110 ,67.27852),new google.maps.LatLng(24.39211 ,67.28567),new google.maps.LatLng(24.44253 ,66.67977),new google.maps.LatLng(25.11732 ,66.54458),new google.maps.LatLng(25.73097 ,67.54364),new google.maps.LatLng(25.34446 ,67.59735),new google.maps.LatLng(24.12339 ,66.98488),new google.maps.LatLng(24.83371 ,67.46083),new google.maps.LatLng(24.28006 ,67.33654),new google.maps.LatLng(25.42323 ,66.86028),new google.maps.LatLng(24.48557 ,67.53210),new google.maps.LatLng(25.19607 ,66.56357),new google.maps.LatLng(25.71391 ,67.19714),new google.maps.LatLng(24.73173 ,67.02479),new google.maps.LatLng(25.14474 ,66.59712),new google.maps.LatLng(25.47804 ,66.92717),new google.maps.LatLng(25.86056 ,66.84527),new google.maps.LatLng(24.66254 ,67.12423),new google.maps.LatLng(24.53990 ,66.67894),new google.maps.LatLng(25.18782 ,67.48416),new google.maps.LatLng(24.72268 ,66.59191),new google.maps.LatLng(25.37432 ,67.41088),new google.maps.LatLng(25.68962 ,66.65681),new google.maps.LatLng(24.58342 ,67.03577),new google.maps.LatLng(24.59855 ,67.03731),new google.maps.LatLng(24.07417 ,66.99813),new google.maps.LatLng(25.57893 ,66.58069),new google.maps.LatLng(24.96153 ,67.65220),new google.maps.LatLng(24.80741 ,66.60901),new google.maps.LatLng(24.95612 ,66.97714),new google.maps.LatLng(25.14388 ,67.15043),new google.maps.LatLng(24.74544 ,67.78992),new google.maps.LatLng(25.08458 ,66.22755),new google.maps.LatLng(24.04101 ,67.25145),new google.maps.LatLng(24.72620 ,67.71194),new google.maps.LatLng(24.64246 ,66.52034),new google.maps.LatLng(25.15887 ,66.42119),new google.maps.LatLng(25.14012 ,67.62522),new google.maps.LatLng(24.34247 ,66.84089),new google.maps.LatLng(24.98372 ,67.18582),new google.maps.LatLng(25.63508 ,66.74525),new google.maps.LatLng(24.91089 ,67.24804),new google.maps.LatLng(25.31205 ,67.35688),new google.maps.LatLng(25.74679 ,67.24169),new google.maps.LatLng(25.06338 ,67.87265),new google.maps.LatLng(25.33683 ,66.72543),new google.maps.LatLng(25.54360 ,66.62901),new google.maps.LatLng(24.34974 ,66.73587),new google.maps.LatLng(24.75560 ,67.05462),new google.maps.LatLng(24.25640 ,67.64312),new google.maps.LatLng(25.34577 ,67.29806),new google.maps.LatLng(24.21238 ,67.64499),new google.maps.LatLng(24.78932 ,67.94336),new google.maps.LatLng(24.86276 ,66.83465),new google.maps.LatLng(25.18943 ,66.67727),new google.maps.LatLng(24.21445 ,66.80971),new google.maps.LatLng(25.59199 ,66.68893),new google.maps.LatLng(24.62924 ,66.96619),new google.maps.LatLng(24.55289 ,67.53443),new google.maps.LatLng(24.04929 ,66.79923),new google.maps.LatLng(24.14363 ,66.86302),new google.maps.LatLng(25.49897 ,67.47763),new google.maps.LatLng(24.74992 ,66.47428),new google.maps.LatLng(25.41168 ,66.33703),new google.maps.LatLng(24.87347 ,66.52103),new google.maps.LatLng(24.38123 ,67.43724),new google.maps.LatLng(24.47446 ,67.47558),new google.maps.LatLng(25.02720 ,67.63087),new google.maps.LatLng(24.37175 ,66.41863),new google.maps.LatLng(24.41384 ,66.83866),new google.maps.LatLng(25.04672 ,67.33969),new google.maps.LatLng(24.67778 ,67.07170),new google.maps.LatLng(24.62209 ,66.47504),new google.maps.LatLng(25.49719 ,67.81486),new google.maps.LatLng(24.86265 ,67.29035),new google.maps.LatLng(25.59450 ,66.90695),new google.maps.LatLng(25.39598 ,67.23986),new google.maps.LatLng(24.39266 ,66.48705),new google.maps.LatLng(25.17269 ,67.14674),new google.maps.LatLng(24.44435 ,67.26678),new google.maps.LatLng(25.38747 ,67.32856),new google.maps.LatLng(24.73081 ,66.58198),new google.maps.LatLng(25.07680 ,67.48010),new google.maps.LatLng(24.82764 ,67.74467),new google.maps.LatLng(25.14750 ,67.66493),new google.maps.LatLng(24.84864 ,67.31457),new google.maps.LatLng(24.21542 ,67.61031),new google.maps.LatLng(25.74070 ,67.15202),new google.maps.LatLng(25.28717 ,66.49576),new google.maps.LatLng(25.30117 ,67.71177),new google.maps.LatLng(25.82453 ,67.09271),new google.maps.LatLng(24.80160 ,67.94046),new google.maps.LatLng(24.87541 ,66.20112),new google.maps.LatLng(25.09600 ,66.74296),new google.maps.LatLng(24.92222 ,67.35721),new google.maps.LatLng(24.73090 ,66.67439),new google.maps.LatLng(25.66153 ,67.10432),new google.maps.LatLng(25.05127 ,66.82492),new google.maps.LatLng(24.82619 ,67.45486),new google.maps.LatLng(24.64790 ,66.18221),new google.maps.LatLng(24.49273 ,67.35290),new google.maps.LatLng(25.73619 ,66.76425),new google.maps.LatLng(25.10175 ,66.60099),new google.maps.LatLng(25.07573 ,66.39043),new google.maps.LatLng(24.34356 ,67.31166),new google.maps.LatLng(24.13530 ,67.32709),new google.maps.LatLng(24.82901 ,66.82155),new google.maps.LatLng(25.54489 ,67.27052),new google.maps.LatLng(25.41139 ,66.28556),new google.maps.LatLng(24.44200 ,66.35126),new google.maps.LatLng(25.38187 ,66.93617),new google.maps.LatLng(24.62131 ,67.42525),new google.maps.LatLng(24.36711 ,67.05545),new google.maps.LatLng(24.53270 ,66.28103),new google.maps.LatLng(24.46696 ,67.01464),new google.maps.LatLng(25.32142 ,67.81503),new google.maps.LatLng(24.38200 ,67.43056),new google.maps.LatLng(24.45343 ,67.52865),new google.maps.LatLng(24.92405 ,67.15493),new google.maps.LatLng(24.37532 ,66.61743),new google.maps.LatLng(24.76822 ,67.93188),new google.maps.LatLng(25.33796 ,66.45344),new google.maps.LatLng(24.34528 ,67.46807),new google.maps.LatLng(25.33850 ,66.68109),new google.maps.LatLng(25.74532 ,67.56198),new google.maps.LatLng(24.29484 ,66.79099),new google.maps.LatLng(24.82836 ,67.86084),new google.maps.LatLng(25.62732 ,67.33371),new google.maps.LatLng(24.91004 ,67.73374),new google.maps.LatLng(25.07406 ,66.67048),new google.maps.LatLng(25.66212 ,67.65727),new google.maps.LatLng(24.66732 ,66.40495),new google.maps.LatLng(25.18548 ,67.31177),new google.maps.LatLng(25.22061 ,66.51309),new google.maps.LatLng(25.40174 ,67.11722),new google.maps.LatLng(25.27193 ,66.39833),new google.maps.LatLng(25.07607 ,66.39195),new google.maps.LatLng(25.04607 ,66.66347),new google.maps.LatLng(24.60839 ,67.86624),new google.maps.LatLng(25.33429 ,66.59024),new google.maps.LatLng(25.38420 ,66.65350),new google.maps.LatLng(24.58105 ,67.56006),new google.maps.LatLng(24.59344 ,67.16438),new google.maps.LatLng(24.41138 ,66.67350),new google.maps.LatLng(24.58614 ,67.32882),new google.maps.LatLng(24.16582 ,67.30554),new google.maps.LatLng(25.19095 ,67.45968),new google.maps.LatLng(24.89830 ,66.63464),new google.maps.LatLng(25.01532 ,67.27411),new google.maps.LatLng(25.65183 ,67.03439),new google.maps.LatLng(25.02081 ,66.80482),new google.maps.LatLng(24.53201 ,67.02109),new google.maps.LatLng(24.80896 ,66.28238),new google.maps.LatLng(24.53090 ,66.50117),new google.maps.LatLng(24.32878 ,67.58530),new google.maps.LatLng(25.07241 ,67.45144),new google.maps.LatLng(25.78812 ,67.08541),new google.maps.LatLng(24.91046 ,67.61512),new google.maps.LatLng(24.98807 ,67.47725),new google.maps.LatLng(24.89279 ,66.48760),new google.maps.LatLng(24.82594 ,67.62569),new google.maps.LatLng(25.31813 ,66.98646),new google.maps.LatLng(25.29289 ,67.80601),new google.maps.LatLng(24.60147 ,66.73831),new google.maps.LatLng(24.72587 ,66.22823),new google.maps.LatLng(24.65370 ,67.89808),new google.maps.LatLng(24.70557 ,66.29425),new google.maps.LatLng(24.53468 ,67.06405),new google.maps.LatLng(25.21792 ,66.58634),new google.maps.LatLng(24.83070 ,67.97897),new google.maps.LatLng(25.01673 ,67.41599),new google.maps.LatLng(24.99208 ,67.92668),new google.maps.LatLng(24.22971 ,67.46386),new google.maps.LatLng(24.88414 ,67.56267),new google.maps.LatLng(25.49601 ,67.34511),new google.maps.LatLng(25.57911 ,67.42215),new google.maps.LatLng(25.02554 ,67.04750),new google.maps.LatLng(24.26868 ,66.77547),new google.maps.LatLng(24.99286 ,67.23110),new google.maps.LatLng(24.65568 ,66.19800),new google.maps.LatLng(25.25621 ,67.03916),new google.maps.LatLng(24.31510 ,66.38222),new google.maps.LatLng(25.27986 ,67.20854),new google.maps.LatLng(24.17528 ,66.85189),new google.maps.LatLng(25.35944 ,67.35574),new google.maps.LatLng(25.45550 ,67.29478),new google.maps.LatLng(24.95144 ,66.69935),new google.maps.LatLng(24.58315 ,67.34658),new google.maps.LatLng(25.47741 ,66.78880),new google.maps.LatLng(25.35824 ,67.70991),new google.maps.LatLng(25.12850 ,67.85042),new google.maps.LatLng(24.31972 ,66.68633),new google.maps.LatLng(24.48580 ,66.76330),new google.maps.LatLng(24.55873 ,66.58932),new google.maps.LatLng(24.63697 ,67.21043),new google.maps.LatLng(25.41744 ,67.34344),new google.maps.LatLng(25.38587 ,67.09950),new google.maps.LatLng(24.70796 ,67.05499),new google.maps.LatLng(24.97947 ,66.46156),new google.maps.LatLng(24.38846 ,67.35036),new google.maps.LatLng(25.14272 ,67.15749),new google.maps.LatLng(24.94001 ,67.20814),new google.maps.LatLng(24.35599 ,67.52934),new google.maps.LatLng(25.46644 ,67.03729),new google.maps.LatLng(25.15600 ,66.65426),new google.maps.LatLng(25.31343 ,66.88698),new google.maps.LatLng(24.55348 ,67.42544),new google.maps.LatLng(25.49191 ,67.46381),new google.maps.LatLng(24.21262 ,67.50847),new google.maps.LatLng(24.70952 ,67.65386),new google.maps.LatLng(25.33083 ,67.32700),new google.maps.LatLng(25.51852 ,66.65920),new google.maps.LatLng(24.15427 ,66.63202),new google.maps.LatLng(25.45628 ,67.32672),new google.maps.LatLng(24.51755 ,67.84240),new google.maps.LatLng(24.90792 ,66.64226),new google.maps.LatLng(24.77769 ,67.50746),new google.maps.LatLng(25.07338 ,66.23777),new google.maps.LatLng(25.66158 ,67.09060),new google.maps.LatLng(24.90487 ,66.67426),new google.maps.LatLng(25.26268 ,67.27967),new google.maps.LatLng(25.49540 ,66.36691),new google.maps.LatLng(24.28956 ,66.89423),new google.maps.LatLng(24.30754 ,66.63864),new google.maps.LatLng(24.61138 ,67.80320),new google.maps.LatLng(24.64727 ,66.62876),new google.maps.LatLng(24.04271 ,67.06278),new google.maps.LatLng(25.77512 ,66.74858),new google.maps.LatLng(25.13539 ,66.98382),new google.maps.LatLng(25.51911 ,66.48972),new google.maps.LatLng(25.54196 ,66.94777),new google.maps.LatLng(24.73912 ,66.36509),new google.maps.LatLng(25.35745 ,66.52747),new google.maps.LatLng(25.58319 ,67.70021),new google.maps.LatLng(24.58739 ,67.74950),new google.maps.LatLng(25.61423 ,66.97169),new google.maps.LatLng(24.38745 ,66.86808),new google.maps.LatLng(25.03520 ,67.96188),new google.maps.LatLng(25.76834 ,66.65254),new google.maps.LatLng(24.09078 ,66.79807),new google.maps.LatLng(25.61322 ,67.50821),new google.maps.LatLng(25.76487 ,67.43326),new google.maps.LatLng(25.04279 ,66.95547),new google.maps.LatLng(24.20975 ,66.80615),new google.maps.LatLng(24.98180 ,66.20839),new google.maps.LatLng(25.52894 ,66.44130),new google.maps.LatLng(24.94301 ,67.98923),new google.maps.LatLng(24.55147 ,67.14498),new google.maps.LatLng(25.67852 ,67.44240),new google.maps.LatLng(24.59481 ,67.93952),new google.maps.LatLng(24.70519 ,67.80073),new google.maps.LatLng(24.87658 ,66.68642),new google.maps.LatLng(24.89478 ,67.80610),new google.maps.LatLng(25.19264 ,67.26203),new google.maps.LatLng(25.07653 ,67.90760),new google.maps.LatLng(25.88262 ,67.09922),new google.maps.LatLng(24.20601 ,67.48171),new google.maps.LatLng(24.21178 ,67.21832),new google.maps.LatLng(24.25837 ,67.48179),new google.maps.LatLng(24.53250 ,67.29130),new google.maps.LatLng(25.55722 ,66.86380),new google.maps.LatLng(24.72270 ,66.46711),new google.maps.LatLng(24.67286 ,67.20579),new google.maps.LatLng(24.46125 ,67.72877),new google.maps.LatLng(25.38576 ,67.11986),new google.maps.LatLng(24.88890 ,66.98731),new google.maps.LatLng(25.08484 ,66.94438),new google.maps.LatLng(25.12299 ,67.68408),new google.maps.LatLng(24.85225 ,67.24951),new google.maps.LatLng(24.55591 ,66.63611),new google.maps.LatLng(25.50156 ,67.29216),new google.maps.LatLng(25.60765 ,67.04665),new google.maps.LatLng(25.14359 ,66.67493),new google.maps.LatLng(24.91394 ,67.84667),new google.maps.LatLng(24.18617 ,67.21842),new google.maps.LatLng(24.63916 ,67.45276),new google.maps.LatLng(25.20787 ,67.51673),new google.maps.LatLng(24.87217 ,67.68385),new google.maps.LatLng(25.10056 ,66.47843),new google.maps.LatLng(24.47750 ,67.03858),new google.maps.LatLng(24.81276 ,67.67048),new google.maps.LatLng(24.56488 ,66.68552),new google.maps.LatLng(25.07221 ,66.59635),new google.maps.LatLng(25.16658 ,67.68792),new google.maps.LatLng(25.20319 ,67.44741),new google.maps.LatLng(25.15579 ,67.98551),new google.maps.LatLng(24.91241 ,66.62410),new google.maps.LatLng(24.70149 ,67.03280),new google.maps.LatLng(25.38324 ,67.41090),new google.maps.LatLng(24.16873 ,67.14780),new google.maps.LatLng(25.51903 ,66.47020),new google.maps.LatLng(25.38355 ,66.82837),new google.maps.LatLng(25.29806 ,66.76741),new google.maps.LatLng(24.99113 ,67.74606),new google.maps.LatLng(25.61929 ,66.72566),new google.maps.LatLng(24.94532 ,66.24291),new google.maps.LatLng(25.40954 ,66.83199),new google.maps.LatLng(25.41376 ,67.38276),new google.maps.LatLng(24.37116 ,66.80824),new google.maps.LatLng(24.22923 ,66.56864),new google.maps.LatLng(25.29361 ,66.54245),new google.maps.LatLng(25.62004 ,66.96346),new google.maps.LatLng(24.68213 ,67.25410),new google.maps.LatLng(24.88106 ,66.91811),new google.maps.LatLng(24.70819 ,67.03583),new google.maps.LatLng(24.46459 ,66.91683),new google.maps.LatLng(25.58106 ,66.38855),new google.maps.LatLng(25.76107 ,67.36114),new google.maps.LatLng(24.19678 ,67.01411),new google.maps.LatLng(25.72850 ,67.18995),new google.maps.LatLng(25.49541 ,67.71390),new google.maps.LatLng(25.14655 ,67.18982),new google.maps.LatLng(24.87018 ,66.12903),new google.maps.LatLng(24.76772 ,66.64079),new google.maps.LatLng(25.25671 ,67.89103),new google.maps.LatLng(24.77153 ,67.84642),new google.maps.LatLng(25.43447 ,66.45587),new google.maps.LatLng(24.18417 ,67.28254),new google.maps.LatLng(25.51157 ,67.80429),new google.maps.LatLng(24.05958 ,67.12804),new google.maps.LatLng(25.72563 ,66.74591),new google.maps.LatLng(24.57979 ,67.13055),new google.maps.LatLng(24.98206 ,67.46026),new google.maps.LatLng(24.91303 ,66.71688),new google.maps.LatLng(24.88514 ,67.64243),new google.maps.LatLng(24.16643 ,66.63913),new google.maps.LatLng(25.79219 ,66.70484),new google.maps.LatLng(24.27705 ,67.72189),new google.maps.LatLng(24.48590 ,67.24016),new google.maps.LatLng(25.28420 ,66.98856),new google.maps.LatLng(25.28742 ,66.78510),new google.maps.LatLng(24.96534 ,67.25779),new google.maps.LatLng(25.42615 ,67.72525),new google.maps.LatLng(24.30523 ,67.08302),new google.maps.LatLng(25.57138 ,67.09448),new google.maps.LatLng(25.46977 ,67.31595),new google.maps.LatLng(24.45132 ,67.71433),new google.maps.LatLng(24.75232 ,67.37326),new google.maps.LatLng(24.62795 ,67.80964),new google.maps.LatLng(24.26991 ,66.96973),new google.maps.LatLng(24.41861 ,67.37007),new google.maps.LatLng(24.86768 ,66.14327),new google.maps.LatLng(24.30125 ,66.95691),new google.maps.LatLng(24.60765 ,67.76771),new google.maps.LatLng(25.08194 ,67.33564),new google.maps.LatLng(25.57487 ,67.76309),new google.maps.LatLng(25.13575 ,67.62865),new google.maps.LatLng(25.32563 ,66.53028),new google.maps.LatLng(24.83734 ,66.54338),new google.maps.LatLng(25.86992 ,67.05734),new google.maps.LatLng(24.73599 ,66.56655),new google.maps.LatLng(24.43510 ,67.72155),new google.maps.LatLng(25.65187 ,67.04305),new google.maps.LatLng(25.45750 ,66.65071),new google.maps.LatLng(24.46762 ,66.81872),new google.maps.LatLng(24.98024 ,66.85288),new google.maps.LatLng(24.58780 ,67.83610),new google.maps.LatLng(25.34260 ,67.41165),new google.maps.LatLng(25.00899 ,66.50336),new google.maps.LatLng(24.08352 ,66.80574),new google.maps.LatLng(24.85698 ,67.13412),new google.maps.LatLng(25.26929 ,66.19471),new google.maps.LatLng(25.67433 ,66.93572),new google.maps.LatLng(24.90733 ,67.17750),new google.maps.LatLng(25.37204 ,67.37176),new google.maps.LatLng(25.59335 ,67.74900),new google.maps.LatLng(24.38994 ,67.60958),new google.maps.LatLng(25.59507 ,67.28038),new google.maps.LatLng(25.31327 ,67.39123),new google.maps.LatLng(25.10689 ,67.26142),new google.maps.LatLng(25.14421 ,67.66456),new google.maps.LatLng(24.32489 ,66.58002),new google.maps.LatLng(24.77763 ,67.11887),new google.maps.LatLng(25.10352 ,67.67377),new google.maps.LatLng(24.70891 ,66.80085),new google.maps.LatLng(24.88941 ,66.63879),new google.maps.LatLng(24.09212 ,67.14713),new google.maps.LatLng(24.32249 ,66.49280),new google.maps.LatLng(24.29186 ,66.74034),new google.maps.LatLng(25.42056 ,67.61868),new google.maps.LatLng(24.48277 ,67.15754),new google.maps.LatLng(25.35563 ,67.60305),new google.maps.LatLng(24.50656 ,67.05749),new google.maps.LatLng(25.33548 ,66.27030),new google.maps.LatLng(24.42232 ,66.37974),new google.maps.LatLng(24.86865 ,67.94518),new google.maps.LatLng(24.49372 ,67.27702),new google.maps.LatLng(25.37592 ,67.63199),new google.maps.LatLng(24.23783 ,67.43544),new google.maps.LatLng(24.85854 ,67.07896),new google.maps.LatLng(24.54953 ,67.35098),new google.maps.LatLng(25.30968 ,67.68720),new google.maps.LatLng(25.61165 ,67.37439),new google.maps.LatLng(24.46079 ,66.32625),new google.maps.LatLng(25.35428 ,66.76459),new google.maps.LatLng(24.48948 ,67.21062),new google.maps.LatLng(25.42406 ,66.46880),new google.maps.LatLng(25.04656 ,67.40144),new google.maps.LatLng(25.45773 ,67.64748),new google.maps.LatLng(25.52392 ,67.15687),new google.maps.LatLng(25.58278 ,66.47373),new google.maps.LatLng(25.29905 ,67.36242),new google.maps.LatLng(24.78869 ,66.61869),new google.maps.LatLng(25.63925 ,66.73780),new google.maps.LatLng(24.59558 ,66.91850),new google.maps.LatLng(25.28343 ,67.56061),new google.maps.LatLng(24.36503 ,67.56248),new google.maps.LatLng(25.30964 ,66.73540),new google.maps.LatLng(25.06259 ,67.52483),new google.maps.LatLng(25.21497 ,67.25404),new google.maps.LatLng(24.64088 ,66.26942),new google.maps.LatLng(25.37769 ,67.85052),new google.maps.LatLng(24.77083 ,67.45609),new google.maps.LatLng(25.03301 ,66.69172),new google.maps.LatLng(25.63362 ,66.63702),new google.maps.LatLng(25.05847 ,66.87072),new google.maps.LatLng(24.73243 ,67.12992),new google.maps.LatLng(24.92722 ,66.37312),new google.maps.LatLng(25.03107 ,66.46225),new google.maps.LatLng(24.56161 ,66.81586),new google.maps.LatLng(24.04357 ,67.22371),new google.maps.LatLng(24.69067 ,66.78616),new google.maps.LatLng(24.97108 ,67.91045),new google.maps.LatLng(24.64327 ,67.44454),new google.maps.LatLng(24.24404 ,66.63629),new google.maps.LatLng(24.36263 ,67.77037),new google.maps.LatLng(25.37792 ,66.28904),new google.maps.LatLng(24.22577 ,67.41204),new google.maps.LatLng(25.41681 ,66.86622),new google.maps.LatLng(25.17913 ,67.08859),new google.maps.LatLng(24.93645 ,66.16563),new google.maps.LatLng(25.54455 ,66.70194),new google.maps.LatLng(24.98037 ,66.77449),new google.maps.LatLng(25.71968 ,66.92887),new google.maps.LatLng(24.11390 ,66.75791),new google.maps.LatLng(24.67567 ,67.72989),new google.maps.LatLng(25.39366 ,66.71313),new google.maps.LatLng(25.13197 ,67.99354),new google.maps.LatLng(25.65861 ,66.69173),new google.maps.LatLng(25.45723 ,66.44660),new google.maps.LatLng(25.40568 ,66.99867),new google.maps.LatLng(24.88813 ,67.70689),new google.maps.LatLng(25.25349 ,67.03805),new google.maps.LatLng(24.32493 ,67.11143),new google.maps.LatLng(24.03108 ,67.16727),new google.maps.LatLng(25.12026 ,67.19559),new google.maps.LatLng(25.46452 ,67.82901),new google.maps.LatLng(25.19760 ,66.30273),new google.maps.LatLng(25.65667 ,66.96326),new google.maps.LatLng(24.38121 ,66.69735),new google.maps.LatLng(24.64961 ,66.52217),new google.maps.LatLng(24.60658 ,66.45489),new google.maps.LatLng(25.35169 ,66.91101),new google.maps.LatLng(25.27399 ,66.70261),new google.maps.LatLng(25.07128 ,67.23501),new google.maps.LatLng(25.25674 ,66.33163),new google.maps.LatLng(25.69112 ,66.80516),new google.maps.LatLng(24.18315 ,67.26587),new google.maps.LatLng(25.23050 ,66.53269),new google.maps.LatLng(25.10048 ,67.63950),new google.maps.LatLng(25.42358 ,66.52259),new google.maps.LatLng(25.82199 ,66.90976),new google.maps.LatLng(25.14902 ,66.94022),new google.maps.LatLng(25.16033 ,67.14150),new google.maps.LatLng(24.69908 ,66.64570),new google.maps.LatLng(24.46731 ,67.70688),new google.maps.LatLng(24.93962 ,67.36916),new google.maps.LatLng(24.79079 ,66.14408),new google.maps.LatLng(25.61511 ,67.14255),new google.maps.LatLng(25.54296 ,67.24979),new google.maps.LatLng(25.24432 ,67.33608),new google.maps.LatLng(24.62808 ,66.26677),new google.maps.LatLng(25.02802 ,66.91643),new google.maps.LatLng(25.56021 ,66.99611),new google.maps.LatLng(24.87873 ,68.00539),new google.maps.LatLng(24.78192 ,67.42875),new google.maps.LatLng(24.03387 ,67.26970),new google.maps.LatLng(24.52851 ,67.55526),new google.maps.LatLng(25.45330 ,66.62357),new google.maps.LatLng(24.68274 ,66.38078),new google.maps.LatLng(24.99508 ,66.70503),new google.maps.LatLng(25.78514 ,67.22575),new google.maps.LatLng(25.41550 ,66.90161),new google.maps.LatLng(24.35397 ,67.51874),new google.maps.LatLng(24.35071 ,66.93247),new google.maps.LatLng(24.70841 ,66.30935),new google.maps.LatLng(24.88310 ,67.70900),new google.maps.LatLng(25.27005 ,67.65336),new google.maps.LatLng(25.85561 ,66.85067),new google.maps.LatLng(25.55152 ,67.23269),new google.maps.LatLng(24.90760 ,66.64963),new google.maps.LatLng(25.48002 ,66.93385),new google.maps.LatLng(25.04437 ,66.19351),new google.maps.LatLng(25.31126 ,66.35295),new google.maps.LatLng(25.56203 ,67.72547),new google.maps.LatLng(25.75359 ,67.50609),new google.maps.LatLng(24.99238 ,67.43948),new google.maps.LatLng(24.58676 ,67.84378),new google.maps.LatLng(25.46495 ,66.84301),new google.maps.LatLng(24.70382 ,66.77703),new google.maps.LatLng(25.76214 ,66.73492),new google.maps.LatLng(25.34109 ,66.90457),new google.maps.LatLng(25.34588 ,67.70043),new google.maps.LatLng(25.13439 ,66.90720),new google.maps.LatLng(25.04519 ,67.99893),new google.maps.LatLng(25.18861 ,66.98132),new google.maps.LatLng(25.08545 ,66.42773),new google.maps.LatLng(25.58968 ,66.76545),new google.maps.LatLng(24.56172 ,66.40624),new google.maps.LatLng(24.85209 ,67.50647),new google.maps.LatLng(24.06384 ,67.08992),new google.maps.LatLng(25.73665 ,66.71438),new google.maps.LatLng(25.58791 ,66.97921),new google.maps.LatLng(25.88389 ,67.10097),new google.maps.LatLng(25.45989 ,66.36824),new google.maps.LatLng(24.90509 ,67.43253),new google.maps.LatLng(24.36566 ,66.41139),new google.maps.LatLng(24.10702 ,67.39866),new google.maps.LatLng(24.67681 ,66.97645),new google.maps.LatLng(24.94375 ,66.67107),new google.maps.LatLng(25.21227 ,67.10505),new google.maps.LatLng(25.29508 ,66.36414),new google.maps.LatLng(25.29173 ,67.84047),new google.maps.LatLng(24.22841 ,67.62006),new google.maps.LatLng(25.78773 ,66.98984),new google.maps.LatLng(25.35656 ,66.38522),new google.maps.LatLng(25.43128 ,67.36042),new google.maps.LatLng(24.96399 ,66.93752),new google.maps.LatLng(24.45311 ,67.11752),new google.maps.LatLng(24.88645 ,67.89773),new google.maps.LatLng(25.50701 ,67.03270),new google.maps.LatLng(25.47391 ,67.09711),new google.maps.LatLng(24.37396 ,66.59859),new google.maps.LatLng(24.38735 ,67.38852),new google.maps.LatLng(24.48973 ,66.38684),new google.maps.LatLng(25.05103 ,68.00600),new google.maps.LatLng(24.57413 ,66.48025),new google.maps.LatLng(25.18607 ,66.80982),new google.maps.LatLng(24.27471 ,66.47039),new google.maps.LatLng(25.39194 ,66.61629),new google.maps.LatLng(24.34259 ,66.45758),new google.maps.LatLng(24.14217 ,66.63718),new google.maps.LatLng(25.51584 ,67.50370),new google.maps.LatLng(25.34581 ,67.22825),new google.maps.LatLng(24.45902 ,66.84032),new google.maps.LatLng(24.30393 ,67.22588),new google.maps.LatLng(25.12812 ,66.87969),new google.maps.LatLng(24.17607 ,67.48496),new google.maps.LatLng(24.73098 ,66.89946),new google.maps.LatLng(24.72059 ,67.13506),new google.maps.LatLng(24.19182 ,66.97598),new google.maps.LatLng(24.80468 ,67.93434),new google.maps.LatLng(24.49972 ,67.78334),new google.maps.LatLng(24.92098 ,67.67313),new google.maps.LatLng(24.95316 ,66.72729),new google.maps.LatLng(24.66743 ,67.44731),new google.maps.LatLng(25.74123 ,67.34425),new google.maps.LatLng(24.65457 ,67.38297),new google.maps.LatLng(24.87641 ,67.72228),new google.maps.LatLng(25.19246 ,67.78236),new google.maps.LatLng(24.66918 ,67.68175),new google.maps.LatLng(25.49635 ,66.66428),new google.maps.LatLng(25.41336 ,66.79519),new google.maps.LatLng(24.49227 ,66.45518),new google.maps.LatLng(24.45598 ,66.58098),new google.maps.LatLng(24.24432 ,66.93228),new google.maps.LatLng(25.85276 ,67.07148),new google.maps.LatLng(24.31079 ,66.38847),new google.maps.LatLng(25.02099 ,66.66103),new google.maps.LatLng(24.74602 ,67.70075),new google.maps.LatLng(24.91736 ,67.51385),new google.maps.LatLng(25.27497 ,67.11963),new google.maps.LatLng(25.40347 ,66.55298),new google.maps.LatLng(24.68538 ,67.63720),new google.maps.LatLng(25.13202 ,66.68193),new google.maps.LatLng(25.61835 ,66.70287),new google.maps.LatLng(25.32576 ,67.79528),new google.maps.LatLng(24.32778 ,66.73286),new google.maps.LatLng(24.32098 ,67.23793),new google.maps.LatLng(24.43875 ,66.69310),new google.maps.LatLng(24.75330 ,66.51906),new google.maps.LatLng(24.77795 ,66.76942),new google.maps.LatLng(25.58711 ,67.07614),new google.maps.LatLng(25.05061 ,67.05205),new google.maps.LatLng(25.16116 ,67.29508),new google.maps.LatLng(24.59144 ,67.50786),new google.maps.LatLng(25.61164 ,66.44608),new google.maps.LatLng(24.20493 ,66.92197),new google.maps.LatLng(25.04199 ,66.46202),new google.maps.LatLng(25.11331 ,66.78342),new google.maps.LatLng(25.04182 ,67.55701),new google.maps.LatLng(24.81740 ,66.70360),new google.maps.LatLng(24.54130 ,67.26755),new google.maps.LatLng(25.22902 ,66.76696),new google.maps.LatLng(24.86675 ,67.17769),new google.maps.LatLng(24.74765 ,67.49136),new google.maps.LatLng(24.56850 ,66.37776),new google.maps.LatLng(24.79083 ,67.50546),new google.maps.LatLng(24.45050 ,67.46267),new google.maps.LatLng(25.80495 ,67.16513),new google.maps.LatLng(24.71918 ,67.37817),new google.maps.LatLng(24.66286 ,66.68822),new google.maps.LatLng(24.57274 ,67.22063),new google.maps.LatLng(25.25338 ,66.61652),new google.maps.LatLng(25.68422 ,67.30311),new google.maps.LatLng(25.61022 ,67.02451),new google.maps.LatLng(24.50086 ,66.74703),new google.maps.LatLng(24.69173 ,67.74334),new google.maps.LatLng(24.56703 ,67.17155),new google.maps.LatLng(24.65764 ,66.90792),new google.maps.LatLng(25.06086 ,67.01000),new google.maps.LatLng(24.30677 ,66.92415),new google.maps.LatLng(24.07930 ,66.75325),new google.maps.LatLng(24.52921 ,66.79737),new google.maps.LatLng(25.20411 ,66.90437),new google.maps.LatLng(25.58468 ,67.05688),new google.maps.LatLng(25.41608 ,67.02132),new google.maps.LatLng(25.38687 ,67.37052),new google.maps.LatLng(24.98538 ,67.49808),new google.maps.LatLng(24.82906 ,67.85439),new google.maps.LatLng(24.05758 ,67.18017),new google.maps.LatLng(24.46350 ,66.31633),new google.maps.LatLng(24.09894 ,67.21289),new google.maps.LatLng(25.42257 ,67.52732),new google.maps.LatLng(24.36751 ,67.72189),new google.maps.LatLng(24.25243 ,67.20470),new google.maps.LatLng(25.68076 ,67.41904),new google.maps.LatLng(25.19119 ,66.51597),new google.maps.LatLng(25.80613 ,66.81090),new google.maps.LatLng(24.43021 ,66.74091),new google.maps.LatLng(25.00333 ,67.01888),new google.maps.LatLng(25.51399 ,66.84186),new google.maps.LatLng(25.41524 ,66.41564),new google.maps.LatLng(24.37753 ,67.14520),new google.maps.LatLng(25.10352 ,66.77288),new google.maps.LatLng(25.72982 ,66.55684),new google.maps.LatLng(24.66024 ,67.47503),new google.maps.LatLng(24.52644 ,67.28135),new google.maps.LatLng(24.18975 ,67.14512),new google.maps.LatLng(25.34657 ,67.27040),new google.maps.LatLng(25.44973 ,66.72521),new google.maps.LatLng(24.35123 ,66.65754),new google.maps.LatLng(24.25015 ,67.19629),new google.maps.LatLng(24.89118 ,66.74358),new google.maps.LatLng(24.86542 ,67.91971),new google.maps.LatLng(24.20959 ,67.19444),new google.maps.LatLng(25.37606 ,67.56711),new google.maps.LatLng(24.70407 ,67.85164),new google.maps.LatLng(24.54199 ,67.03307),new google.maps.LatLng(25.43054 ,67.80058),new google.maps.LatLng(24.66449 ,67.06060),new google.maps.LatLng(25.03342 ,67.70284),new google.maps.LatLng(24.29321 ,66.59046),new google.maps.LatLng(25.78355 ,66.85797),new google.maps.LatLng(25.56475 ,67.40268),new google.maps.LatLng(24.82055 ,67.56031),new google.maps.LatLng(24.85884 ,66.35562),new google.maps.LatLng(25.00151 ,66.21348),new google.maps.LatLng(25.75467 ,66.62648),new google.maps.LatLng(25.67619 ,67.22547),new google.maps.LatLng(24.78273 ,67.66191),new google.maps.LatLng(25.14374 ,67.06165),new google.maps.LatLng(25.03248 ,66.62772),new google.maps.LatLng(25.27053 ,67.41621),new google.maps.LatLng(25.10043 ,67.04845),new google.maps.LatLng(25.12478 ,66.43251),new google.maps.LatLng(24.18879 ,66.87937),new google.maps.LatLng(25.28299 ,66.40823),new google.maps.LatLng(25.40925 ,66.83010),new google.maps.LatLng(24.61620 ,67.19688),new google.maps.LatLng(25.01858 ,67.98336),new google.maps.LatLng(25.06567 ,67.53636),new google.maps.LatLng(25.25960 ,67.59896),new google.maps.LatLng(24.75841 ,67.69964),new google.maps.LatLng(24.04296 ,66.95283),new google.maps.LatLng(25.05072 ,66.94772),new google.maps.LatLng(25.59289 ,67.33747),new google.maps.LatLng(25.08701 ,66.97531),new google.maps.LatLng(24.20337 ,67.36284),new google.maps.LatLng(25.53188 ,67.38345),new google.maps.LatLng(25.23881 ,67.52246),new google.maps.LatLng(24.65808 ,66.57515),new google.maps.LatLng(25.06339 ,67.12850),new google.maps.LatLng(25.53586 ,67.57015),new google.maps.LatLng(25.23946 ,66.48311),new google.maps.LatLng(25.50106 ,67.52747),new google.maps.LatLng(25.26223 ,66.28164),new google.maps.LatLng(24.59573 ,66.43826),new google.maps.LatLng(24.45312 ,67.25952),new google.maps.LatLng(25.64306 ,67.07304),new google.maps.LatLng(24.17582 ,66.59617),new google.maps.LatLng(24.79234 ,67.36308),new google.maps.LatLng(24.38368 ,66.37508),new google.maps.LatLng(25.45608 ,67.23703),new google.maps.LatLng(24.09149 ,67.16803),new google.maps.LatLng(25.59774 ,66.59154),new google.maps.LatLng(25.20652 ,66.71132),new google.maps.LatLng(25.46529 ,67.43903),new google.maps.LatLng(24.77196 ,67.76245),new google.maps.LatLng(24.08247 ,66.96654),new google.maps.LatLng(25.48436 ,67.81225),new google.maps.LatLng(25.01347 ,66.15018),new google.maps.LatLng(24.87654 ,67.18123),new google.maps.LatLng(25.07567 ,66.48969),new google.maps.LatLng(24.40527 ,67.74104),new google.maps.LatLng(25.08162 ,67.23960),new google.maps.LatLng(24.89293 ,67.19366),new google.maps.LatLng(25.12371 ,67.79952),new google.maps.LatLng(25.66775 ,67.64202),new google.maps.LatLng(25.47829 ,66.94104),new google.maps.LatLng(25.10889 ,66.79129),new google.maps.LatLng(25.15486 ,67.21068),new google.maps.LatLng(24.21648 ,66.92397),new google.maps.LatLng(25.08429 ,67.46298),new google.maps.LatLng(25.20137 ,66.72445),new google.maps.LatLng(25.15917 ,66.88040),new google.maps.LatLng(24.55455 ,66.27550),new google.maps.LatLng(24.74961 ,66.47342),new google.maps.LatLng(25.09698 ,67.87863),new google.maps.LatLng(25.18462 ,66.75760),new google.maps.LatLng(25.38257 ,67.05576),new google.maps.LatLng(24.13653 ,67.51573),new google.maps.LatLng(25.57010 ,67.28581),new google.maps.LatLng(24.63955 ,67.50356),new google.maps.LatLng(24.51029 ,67.68327),new google.maps.LatLng(25.68333 ,67.41893),new google.maps.LatLng(24.86289 ,67.52422),new google.maps.LatLng(24.48433 ,67.14990),new google.maps.LatLng(25.11876 ,66.87227),new google.maps.LatLng(25.06855 ,66.27483),new google.maps.LatLng(24.04734 ,66.97236),new google.maps.LatLng(25.63325 ,67.26331),new google.maps.LatLng(24.93792 ,67.83141),new google.maps.LatLng(24.50215 ,66.34396),new google.maps.LatLng(24.92747 ,66.49554),new google.maps.LatLng(24.98346 ,66.39620),new google.maps.LatLng(24.22524 ,66.68962),new google.maps.LatLng(24.54180 ,67.21834),new google.maps.LatLng(25.39939 ,67.45025),new google.maps.LatLng(24.30557 ,66.84142),new google.maps.LatLng(24.85141 ,66.55829),new google.maps.LatLng(24.87941 ,67.37578),new google.maps.LatLng(24.99081 ,67.84309),new google.maps.LatLng(25.08606 ,67.09995),new google.maps.LatLng(24.66496 ,67.06439),new google.maps.LatLng(24.24858 ,67.51249),new google.maps.LatLng(25.67605 ,67.35972),new google.maps.LatLng(24.36824 ,67.55714),new google.maps.LatLng(24.29172 ,67.63161),new google.maps.LatLng(25.34556 ,67.66092),new google.maps.LatLng(24.51428 ,67.63615),new google.maps.LatLng(25.34308 ,66.32259),new google.maps.LatLng(24.97499 ,67.26724),new google.maps.LatLng(24.58407 ,67.87883),new google.maps.LatLng(25.77798 ,67.30509),new google.maps.LatLng(25.72100 ,67.06857),new google.maps.LatLng(24.47359 ,67.27641),new google.maps.LatLng(25.52421 ,67.41754),new google.maps.LatLng(24.60814 ,67.29397),new google.maps.LatLng(24.58368 ,67.70154),new google.maps.LatLng(25.53535 ,66.55448),new google.maps.LatLng(24.73629 ,66.59470),new google.maps.LatLng(25.29674 ,67.66925),new google.maps.LatLng(25.14014 ,66.72837),new google.maps.LatLng(24.59644 ,66.73545),new google.maps.LatLng(25.26919 ,66.45834),new google.maps.LatLng(25.74319 ,67.54321),new google.maps.LatLng(24.59533 ,67.62463),new google.maps.LatLng(24.57644 ,66.87261),new google.maps.LatLng(24.72541 ,67.27279),new google.maps.LatLng(25.15424 ,66.95707),new google.maps.LatLng(24.43631 ,67.60671),new google.maps.LatLng(24.09825 ,67.27745),new google.maps.LatLng(24.06771 ,67.35372),new google.maps.LatLng(25.32072 ,66.21645),new google.maps.LatLng(24.73763 ,66.90597),new google.maps.LatLng(24.72078 ,67.70055),new google.maps.LatLng(25.28204 ,66.91154),new google.maps.LatLng(24.07811 ,67.41713),new google.maps.LatLng(24.90613 ,66.32586),new google.maps.LatLng(24.47718 ,67.39179),new google.maps.LatLng(25.72989 ,66.55808),new google.maps.LatLng(24.57390 ,67.87596),new google.maps.LatLng(24.22904 ,67.40972),new google.maps.LatLng(25.54544 ,67.53645),new google.maps.LatLng(24.98674 ,66.45527),new google.maps.LatLng(25.36361 ,67.03661),new google.maps.LatLng(25.33435 ,67.92757),new google.maps.LatLng(25.67310 ,67.05795),new google.maps.LatLng(24.82063 ,67.78609),new google.maps.LatLng(24.96312 ,66.17777),new google.maps.LatLng(24.45421 ,66.33324),new google.maps.LatLng(25.62180 ,67.27936),new google.maps.LatLng(24.69877 ,66.19078),new google.maps.LatLng(25.29912 ,66.77142),new google.maps.LatLng(25.27416 ,67.59534),new google.maps.LatLng(25.38890 ,67.40338),new google.maps.LatLng(24.95363 ,67.25225),new google.maps.LatLng(25.11072 ,67.96187),new google.maps.LatLng(25.79030 ,66.67729),new google.maps.LatLng(24.96660 ,67.10886),new google.maps.LatLng(24.19116 ,66.74033),new google.maps.LatLng(25.43564 ,67.14712),new google.maps.LatLng(24.22888 ,66.95868),new google.maps.LatLng(24.26416 ,67.16766),new google.maps.LatLng(25.78647 ,67.18247),new google.maps.LatLng(24.25691 ,66.43508),new google.maps.LatLng(24.82950 ,67.52232),new google.maps.LatLng(25.54892 ,66.94311),new google.maps.LatLng(25.18177 ,67.09297),new google.maps.LatLng(25.51961 ,67.14092),new google.maps.LatLng(24.83714 ,66.56982),new google.maps.LatLng(25.63256 ,67.64167),new google.maps.LatLng(24.71669 ,67.66885),new google.maps.LatLng(24.95982 ,67.66641),new google.maps.LatLng(25.08221 ,67.87244),new google.maps.LatLng(24.70209 ,66.81833),new google.maps.LatLng(24.96831 ,67.13862),new google.maps.LatLng(25.42186 ,66.85515),new google.maps.LatLng(25.08216 ,66.56751),new google.maps.LatLng(25.18189 ,67.39558),new google.maps.LatLng(24.89291 ,67.37554),new google.maps.LatLng(24.31160 ,66.54379),new google.maps.LatLng(24.86660 ,66.21723),new google.maps.LatLng(25.71492 ,67.61365),new google.maps.LatLng(25.79793 ,67.12835),new google.maps.LatLng(24.23717 ,67.42770),new google.maps.LatLng(24.53621 ,67.58508),new google.maps.LatLng(24.62488 ,66.41596),new google.maps.LatLng(24.72011 ,66.71772),new google.maps.LatLng(25.66092 ,66.86161),new google.maps.LatLng(25.27887 ,67.86302),new google.maps.LatLng(25.07568 ,67.81147),new google.maps.LatLng(24.22027 ,66.58482),new google.maps.LatLng(25.04812 ,66.49297),new google.maps.LatLng(25.63509 ,66.67297),new google.maps.LatLng(24.98898 ,67.20472),new google.maps.LatLng(24.15104 ,67.45864),new google.maps.LatLng(25.20494 ,66.89657),new google.maps.LatLng(25.33888 ,66.51235),new google.maps.LatLng(24.47430 ,66.56231),new google.maps.LatLng(24.93768 ,66.40421),new google.maps.LatLng(24.50338 ,66.92659),new google.maps.LatLng(24.50390 ,67.07850),new google.maps.LatLng(25.75739 ,67.34749),new google.maps.LatLng(24.97409 ,66.90384),new google.maps.LatLng(24.86954 ,66.91078),new google.maps.LatLng(24.24198 ,66.77588),new google.maps.LatLng(25.23858 ,67.80163),new google.maps.LatLng(25.53386 ,66.98224),new google.maps.LatLng(25.28544 ,66.64602),new google.maps.LatLng(24.99685 ,67.81173),new google.maps.LatLng(25.47257 ,67.17877),new google.maps.LatLng(24.02469 ,67.16035),new google.maps.LatLng(24.38754 ,67.45124),new google.maps.LatLng(25.71617 ,67.31914),new google.maps.LatLng(24.48985 ,66.56226),new google.maps.LatLng(24.64420 ,66.24132),new google.maps.LatLng(24.60770 ,66.23994),new google.maps.LatLng(25.01982 ,67.49092),new google.maps.LatLng(25.20881 ,67.30338),new google.maps.LatLng(24.84933 ,67.69268),new google.maps.LatLng(24.51274 ,67.90144),new google.maps.LatLng(25.31292 ,66.38965),new google.maps.LatLng(24.53814 ,66.59529),new google.maps.LatLng(24.60130 ,66.84370),new google.maps.LatLng(24.61415 ,66.80874),new google.maps.LatLng(25.69401 ,66.80201),new google.maps.LatLng(24.92365 ,66.44354),new google.maps.LatLng(24.57271 ,66.73561),new google.maps.LatLng(24.97293 ,67.31329),new google.maps.LatLng(24.29295 ,66.91146),new google.maps.LatLng(25.01512 ,67.59731),new google.maps.LatLng(25.57030 ,66.86065),new google.maps.LatLng(25.48228 ,66.58957),new google.maps.LatLng(24.65279 ,66.29617),new google.maps.LatLng(24.31039 ,66.87402),new google.maps.LatLng(25.45989 ,66.88561),new google.maps.LatLng(24.87765 ,67.48274),new google.maps.LatLng(24.87981 ,66.46493),new google.maps.LatLng(24.93216 ,66.61660),new google.maps.LatLng(25.17712 ,67.04830),new google.maps.LatLng(24.54741 ,66.47437),new google.maps.LatLng(25.24416 ,66.28155),new google.maps.LatLng(24.89505 ,66.62825),new google.maps.LatLng(25.00900 ,66.90189),new google.maps.LatLng(25.26507 ,66.89539),new google.maps.LatLng(24.47738 ,67.69122),new google.maps.LatLng(24.70594 ,66.59771),new google.maps.LatLng(24.66909 ,67.86950),new google.maps.LatLng(25.72473 ,66.61729),new google.maps.LatLng(24.04396 ,67.12354),new google.maps.LatLng(25.42018 ,67.45431),new google.maps.LatLng(25.57138 ,66.97043),new google.maps.LatLng(25.30931 ,66.77952),new google.maps.LatLng(24.56955 ,66.57389),new google.maps.LatLng(24.63473 ,66.99876),new google.maps.LatLng(25.83814 ,67.04990),new google.maps.LatLng(24.69872 ,67.48955),new google.maps.LatLng(25.70953 ,67.21969),new google.maps.LatLng(24.38642 ,66.99456),new google.maps.LatLng(25.86313 ,67.05372),new google.maps.LatLng(24.27436 ,66.73921),new google.maps.LatLng(24.11974 ,66.67265),new google.maps.LatLng(24.48935 ,67.57347),new google.maps.LatLng(25.18487 ,66.97381),new google.maps.LatLng(25.58817 ,66.79868),new google.maps.LatLng(24.61665 ,66.91474),new google.maps.LatLng(25.26461 ,66.92040),new google.maps.LatLng(24.22508 ,66.79258),new google.maps.LatLng(25.15424 ,67.96599),new google.maps.LatLng(24.83067 ,67.55128),new google.maps.LatLng(24.74181 ,67.59505),new google.maps.LatLng(24.39453 ,67.77561),new google.maps.LatLng(25.37677 ,67.72756),new google.maps.LatLng(24.63161 ,67.89184),new google.maps.LatLng(24.88866 ,67.43570),new google.maps.LatLng(24.33351 ,66.65029),new google.maps.LatLng(24.12106 ,67.09051),new google.maps.LatLng(24.48677 ,66.98235),new google.maps.LatLng(24.63011 ,66.37451),new google.maps.LatLng(25.16796 ,66.83246),new google.maps.LatLng(25.07342 ,66.65370),new google.maps.LatLng(24.71018 ,67.24996),new google.maps.LatLng(25.28061 ,67.28909),new google.maps.LatLng(25.27953 ,66.46547),new google.maps.LatLng(24.52734 ,67.18270),new google.maps.LatLng(25.01359 ,66.68465),new google.maps.LatLng(24.18762 ,66.58418),new google.maps.LatLng(25.29272 ,67.08515),new google.maps.LatLng(25.74047 ,66.70862),new google.maps.LatLng(24.48296 ,67.38179),new google.maps.LatLng(24.32254 ,67.20741),new google.maps.LatLng(24.40339 ,67.74376),new google.maps.LatLng(24.65915 ,66.33577),new google.maps.LatLng(25.05603 ,67.61023),new google.maps.LatLng(24.91736 ,66.16729),new google.maps.LatLng(25.76498 ,67.10728),new google.maps.LatLng(25.32871 ,67.85714),new google.maps.LatLng(25.84854 ,67.07837),new google.maps.LatLng(25.36462 ,67.02370),new google.maps.LatLng(25.08862 ,67.01316),new google.maps.LatLng(25.15745 ,67.93659),new google.maps.LatLng(24.62503 ,66.33867),new google.maps.LatLng(25.02777 ,67.97781),new google.maps.LatLng(24.81556 ,66.50171),new google.maps.LatLng(24.34793 ,67.68864),new google.maps.LatLng(25.15687 ,67.43947),new google.maps.LatLng(25.35105 ,66.85280),new google.maps.LatLng(24.56782 ,67.14511),new google.maps.LatLng(25.43386 ,66.78588),new google.maps.LatLng(25.13960 ,67.11577),new google.maps.LatLng(24.73712 ,66.72157),new google.maps.LatLng(24.34765 ,67.54568),new google.maps.LatLng(25.04834 ,67.75788),new google.maps.LatLng(25.30070 ,67.54428),new google.maps.LatLng(24.64021 ,67.61868),new google.maps.LatLng(24.55019 ,67.60533),new google.maps.LatLng(24.61287 ,66.86007),new google.maps.LatLng(24.82517 ,67.87428),new google.maps.LatLng(24.99422 ,66.57509),new google.maps.LatLng(24.78266 ,67.19379),new google.maps.LatLng(24.85506 ,67.72450),new google.maps.LatLng(24.95094 ,66.94324),new google.maps.LatLng(25.42600 ,66.89295),new google.maps.LatLng(24.14884 ,66.64720),new google.maps.LatLng(25.17633 ,67.80488),new google.maps.LatLng(25.72523 ,67.22800),new google.maps.LatLng(25.17883 ,67.03748),new google.maps.LatLng(24.73392 ,66.84952),new google.maps.LatLng(24.86659 ,66.41416),new google.maps.LatLng(25.52226 ,66.59930),new google.maps.LatLng(24.33107 ,67.52071),new google.maps.LatLng(24.87661 ,67.21227),new google.maps.LatLng(24.31563 ,67.42857),new google.maps.LatLng(24.07355 ,67.35620),new google.maps.LatLng(25.50581 ,66.98265),new google.maps.LatLng(25.23100 ,67.24646),new google.maps.LatLng(25.33990 ,67.49855),new google.maps.LatLng(25.32798 ,67.49848),new google.maps.LatLng(24.38443 ,66.78173),new google.maps.LatLng(25.29864 ,67.56406),new google.maps.LatLng(24.31559 ,66.65333),new google.maps.LatLng(24.52222 ,66.73187),new google.maps.LatLng(24.86391 ,66.72838),new google.maps.LatLng(25.71915 ,66.56323),new google.maps.LatLng(25.08166 ,67.84639),new google.maps.LatLng(24.71113 ,67.62553),new google.maps.LatLng(25.46997 ,67.64479),new google.maps.LatLng(24.91763 ,66.41940),new google.maps.LatLng(25.37839 ,66.25758),new google.maps.LatLng(24.22745 ,67.00092),new google.maps.LatLng(24.08122 ,67.26935),new google.maps.LatLng(24.89224 ,66.47012),new google.maps.LatLng(25.14256 ,66.43944),new google.maps.LatLng(25.52844 ,67.32157),new google.maps.LatLng(25.51685 ,66.68774),new google.maps.LatLng(24.39416 ,66.94876),new google.maps.LatLng(24.59108 ,67.67644),new google.maps.LatLng(24.27865 ,67.45743),new google.maps.LatLng(25.73851 ,67.24685),new google.maps.LatLng(24.21356 ,67.19947),new google.maps.LatLng(24.22906 ,67.05815),new google.maps.LatLng(25.05956 ,66.33631),new google.maps.LatLng(25.46234 ,66.42731),new google.maps.LatLng(24.64845 ,67.25096),new google.maps.LatLng(25.39401 ,67.51012),new google.maps.LatLng(25.71443 ,67.50718),new google.maps.LatLng(24.19730 ,67.13570),new google.maps.LatLng(25.08985 ,66.87937),new google.maps.LatLng(25.13505 ,66.75173),new google.maps.LatLng(24.63701 ,67.35586),new google.maps.LatLng(25.67307 ,66.50927),new google.maps.LatLng(24.82309 ,66.92813),new google.maps.LatLng(25.66543 ,67.02183),new google.maps.LatLng(24.43296 ,67.47630),new google.maps.LatLng(24.27801 ,67.42121),new google.maps.LatLng(24.04429 ,66.89997),new google.maps.LatLng(25.17818 ,66.69036),new google.maps.LatLng(25.79182 ,67.19568),new google.maps.LatLng(24.70827 ,67.96531),new google.maps.LatLng(25.68103 ,66.77764),new google.maps.LatLng(25.65202 ,67.06595),new google.maps.LatLng(24.92009 ,67.03747),new google.maps.LatLng(24.74731 ,67.05924),new google.maps.LatLng(25.15901 ,67.40567),new google.maps.LatLng(24.57510 ,67.85061),new google.maps.LatLng(25.03504 ,67.95011),new google.maps.LatLng(24.72662 ,66.18908)]; \r\n }\r\n else if(type == 9){\r\n return [new google.maps.LatLng(33.59733 ,73.13221),new google.maps.LatLng(33.62241 ,72.96798),new google.maps.LatLng(33.65393 ,73.06537),new google.maps.LatLng(33.70973 ,72.87619),new google.maps.LatLng(33.49883 ,72.98511),new google.maps.LatLng(33.51028 ,72.97626),new google.maps.LatLng(33.66354 ,73.07424),new google.maps.LatLng(33.76159 ,72.97808),new google.maps.LatLng(33.61854 ,73.11635),new google.maps.LatLng(33.69408 ,73.10528),new google.maps.LatLng(33.56509 ,72.96507),new google.maps.LatLng(33.70408 ,72.88539),new google.maps.LatLng(33.73886 ,73.10158),new google.maps.LatLng(33.64436 ,73.07345),new google.maps.LatLng(33.80682 ,72.93110),new google.maps.LatLng(33.87526 ,73.08988),new google.maps.LatLng(33.66042 ,72.96168),new google.maps.LatLng(33.89175 ,73.04732),new google.maps.LatLng(33.69055 ,73.21134),new google.maps.LatLng(33.76945 ,72.83688),new google.maps.LatLng(33.58115 ,72.96858),new google.maps.LatLng(33.67907 ,73.24698),new google.maps.LatLng(33.52211 ,72.89331),new google.maps.LatLng(33.81255 ,72.94140),new google.maps.LatLng(33.65588 ,73.25300),new google.maps.LatLng(33.65616 ,73.09490),new google.maps.LatLng(33.70654 ,73.07795),new google.maps.LatLng(33.81247 ,73.08943),new google.maps.LatLng(33.77809 ,73.09837),new google.maps.LatLng(33.50444 ,73.06004),new google.maps.LatLng(33.86241 ,72.94202),new google.maps.LatLng(33.55878 ,73.18496),new google.maps.LatLng(33.59733 ,72.85847),new google.maps.LatLng(33.56154 ,73.16677),new google.maps.LatLng(33.81763 ,73.03500),new google.maps.LatLng(33.60062 ,72.90039),new google.maps.LatLng(33.83782 ,72.94257),new google.maps.LatLng(33.79106 ,72.90106),new google.maps.LatLng(33.75199 ,72.90650),new google.maps.LatLng(33.63073 ,73.16366),new google.maps.LatLng(33.88275 ,73.08139),new google.maps.LatLng(33.68919 ,72.99849),new google.maps.LatLng(33.71963 ,72.96493),new google.maps.LatLng(33.69627 ,73.05455),new google.maps.LatLng(33.62202 ,73.11986),new google.maps.LatLng(33.72214 ,73.06499),new google.maps.LatLng(33.73280 ,73.04552),new google.maps.LatLng(33.59009 ,73.12436),new google.maps.LatLng(33.75745 ,73.13583),new google.maps.LatLng(33.65120 ,73.04133),new google.maps.LatLng(33.63654 ,73.07721),new google.maps.LatLng(33.78692 ,72.93278),new google.maps.LatLng(33.53072 ,72.88411),new google.maps.LatLng(33.85136 ,72.90391),new google.maps.LatLng(33.84928 ,73.14806),new google.maps.LatLng(33.68642 ,72.96858),new google.maps.LatLng(33.77199 ,72.90725),new google.maps.LatLng(33.71857 ,72.96271),new google.maps.LatLng(33.74698 ,72.96067),new google.maps.LatLng(33.68344 ,73.07903),new google.maps.LatLng(33.67286 ,73.13679),new google.maps.LatLng(33.69574 ,73.01826),new google.maps.LatLng(33.81438 ,72.99089),new google.maps.LatLng(33.64297 ,72.94013),new google.maps.LatLng(33.51098 ,72.93620),new google.maps.LatLng(33.89401 ,73.04558),new google.maps.LatLng(33.84487 ,72.91134),new google.maps.LatLng(33.51576 ,73.05319),new google.maps.LatLng(33.49906 ,73.09489),new google.maps.LatLng(33.78884 ,72.89811),new google.maps.LatLng(33.64161 ,73.18146),new google.maps.LatLng(33.58154 ,72.97032),new google.maps.LatLng(33.68909 ,73.10516),new google.maps.LatLng(33.66769 ,72.87872),new google.maps.LatLng(33.62090 ,72.88531),new google.maps.LatLng(33.60647 ,73.09493),new google.maps.LatLng(33.77907 ,73.22835),new google.maps.LatLng(33.86116 ,73.07887),new google.maps.LatLng(33.65261 ,73.20375),new google.maps.LatLng(33.74954 ,73.08899),new google.maps.LatLng(33.65283 ,73.02783),new google.maps.LatLng(33.79966 ,73.03105),new google.maps.LatLng(33.72924 ,72.81524),new google.maps.LatLng(33.88514 ,72.95519),new google.maps.LatLng(33.71305 ,73.18198),new google.maps.LatLng(33.64096 ,73.06719),new google.maps.LatLng(33.52730 ,73.07176),new google.maps.LatLng(33.68796 ,73.23353),new google.maps.LatLng(33.76516 ,72.97098),new google.maps.LatLng(33.65917 ,72.87767),new google.maps.LatLng(33.87524 ,73.13618),new google.maps.LatLng(33.62142 ,73.10243),new google.maps.LatLng(33.77584 ,72.99755),new google.maps.LatLng(33.50696 ,73.01706),new google.maps.LatLng(33.57396 ,73.08742),new google.maps.LatLng(33.78430 ,72.84069),new google.maps.LatLng(33.55906 ,73.10149),new google.maps.LatLng(33.62131 ,73.06764),new google.maps.LatLng(33.75056 ,73.03654),new google.maps.LatLng(33.85682 ,73.15863),new google.maps.LatLng(33.48507 ,73.09888),new google.maps.LatLng(33.74080 ,72.94829),new google.maps.LatLng(33.67192 ,73.01792),new google.maps.LatLng(33.71992 ,72.83287),new google.maps.LatLng(33.83564 ,73.02258),new google.maps.LatLng(33.77754 ,72.85461),new google.maps.LatLng(33.78923 ,73.05838),new google.maps.LatLng(33.58158 ,73.15374),new google.maps.LatLng(33.77153 ,72.86832),new google.maps.LatLng(33.80343 ,73.00939),new google.maps.LatLng(33.59971 ,73.14174),new google.maps.LatLng(33.57152 ,72.94189),new google.maps.LatLng(33.76908 ,72.98319),new google.maps.LatLng(33.63767 ,72.88164),new google.maps.LatLng(33.64891 ,72.94175),new google.maps.LatLng(33.83626 ,72.91899),new google.maps.LatLng(33.82542 ,73.18983),new google.maps.LatLng(33.86111 ,73.02844),new google.maps.LatLng(33.65448 ,72.87671),new google.maps.LatLng(33.65534 ,73.00097),new google.maps.LatLng(33.69182 ,73.05986),new google.maps.LatLng(33.88040 ,72.98612),new google.maps.LatLng(33.80308 ,72.95354),new google.maps.LatLng(33.83274 ,73.12927),new google.maps.LatLng(33.54140 ,73.01512),new google.maps.LatLng(33.80115 ,73.05478),new google.maps.LatLng(33.88678 ,72.94151),new google.maps.LatLng(33.83154 ,72.95174),new google.maps.LatLng(33.65616 ,72.83340),new google.maps.LatLng(33.63445 ,72.85965),new google.maps.LatLng(33.49827 ,73.00534),new google.maps.LatLng(33.67102 ,73.11503),new google.maps.LatLng(33.69954 ,72.81744),new google.maps.LatLng(33.55803 ,73.15356),new google.maps.LatLng(33.63375 ,72.88161),new google.maps.LatLng(33.73211 ,73.10598),new google.maps.LatLng(33.61835 ,73.01193),new google.maps.LatLng(33.49145 ,73.07259),new google.maps.LatLng(33.58672 ,72.91998),new google.maps.LatLng(33.70037 ,72.89282),new google.maps.LatLng(33.51746 ,73.18152),new google.maps.LatLng(33.76828 ,73.10925),new google.maps.LatLng(33.60184 ,72.90800),new google.maps.LatLng(33.57818 ,73.11478),new google.maps.LatLng(33.68952 ,73.21005),new google.maps.LatLng(33.89651 ,73.08425),new google.maps.LatLng(33.66878 ,73.03828),new google.maps.LatLng(33.68625 ,72.88379),new google.maps.LatLng(33.57836 ,73.19799),new google.maps.LatLng(33.55792 ,72.94227),new google.maps.LatLng(33.70654 ,73.23917),new google.maps.LatLng(33.85414 ,73.11901),new google.maps.LatLng(33.77106 ,73.13840),new google.maps.LatLng(33.78950 ,72.97646),new google.maps.LatLng(33.54571 ,73.12461),new google.maps.LatLng(33.73139 ,72.81682),new google.maps.LatLng(33.68921 ,73.12833),new google.maps.LatLng(33.88716 ,73.03655),new google.maps.LatLng(33.64931 ,73.14773),new google.maps.LatLng(33.46527 ,73.04474),new google.maps.LatLng(33.57658 ,73.19878),new google.maps.LatLng(33.52879 ,72.88604),new google.maps.LatLng(33.70866 ,73.21129),new google.maps.LatLng(33.52242 ,73.16201),new google.maps.LatLng(33.73696 ,73.15447),new google.maps.LatLng(33.80871 ,72.91386),new google.maps.LatLng(33.68347 ,72.99066),new google.maps.LatLng(33.76077 ,73.16204),new google.maps.LatLng(33.70899 ,72.81113),new google.maps.LatLng(33.68971 ,73.19991),new google.maps.LatLng(33.54177 ,72.90904),new google.maps.LatLng(33.84418 ,73.15209),new google.maps.LatLng(33.57599 ,73.13373),new google.maps.LatLng(33.81111 ,73.07060),new google.maps.LatLng(33.70893 ,73.03898),new google.maps.LatLng(33.74557 ,73.06601),new google.maps.LatLng(33.83719 ,73.04815),new google.maps.LatLng(33.81172 ,73.09107),new google.maps.LatLng(33.59650 ,73.11258),new google.maps.LatLng(33.63878 ,73.09962),new google.maps.LatLng(33.76372 ,73.04616),new google.maps.LatLng(33.67491 ,72.83385),new google.maps.LatLng(33.67837 ,73.25697),new google.maps.LatLng(33.80227 ,72.89846),new google.maps.LatLng(33.62591 ,72.87374),new google.maps.LatLng(33.70876 ,73.15520),new google.maps.LatLng(33.62463 ,73.16767),new google.maps.LatLng(33.83803 ,73.18131),new google.maps.LatLng(33.62879 ,72.91361),new google.maps.LatLng(33.82891 ,73.12261),new google.maps.LatLng(33.71546 ,72.83787),new google.maps.LatLng(33.64546 ,73.18647),new google.maps.LatLng(33.75411 ,72.96659),new google.maps.LatLng(33.76345 ,73.18274),new google.maps.LatLng(33.54633 ,73.11128),new google.maps.LatLng(33.57840 ,73.02712),new google.maps.LatLng(33.58607 ,73.10741),new google.maps.LatLng(33.56443 ,72.86437),new google.maps.LatLng(33.69425 ,73.16208),new google.maps.LatLng(33.73014 ,73.07826),new google.maps.LatLng(33.53512 ,73.06048),new google.maps.LatLng(33.56297 ,72.90167),new google.maps.LatLng(33.56295 ,73.21806),new google.maps.LatLng(33.83744 ,73.18754),new google.maps.LatLng(33.62311 ,73.23732),new google.maps.LatLng(33.70511 ,72.95164),new google.maps.LatLng(33.78184 ,72.95791),new google.maps.LatLng(33.60515 ,72.88443),new google.maps.LatLng(33.66171 ,73.06351),new google.maps.LatLng(33.88092 ,73.10767),new google.maps.LatLng(33.86948 ,72.93475),new google.maps.LatLng(33.81107 ,72.99598),new google.maps.LatLng(33.61879 ,73.24663),new google.maps.LatLng(33.79227 ,72.96781),new google.maps.LatLng(33.85401 ,73.11268),new google.maps.LatLng(33.63810 ,72.88590),new google.maps.LatLng(33.58111 ,72.97431),new google.maps.LatLng(33.51354 ,72.92874),new google.maps.LatLng(33.48408 ,72.94025),new google.maps.LatLng(33.72457 ,73.13107),new google.maps.LatLng(33.80236 ,73.17523),new google.maps.LatLng(33.47508 ,73.03942),new google.maps.LatLng(33.56572 ,72.98486),new google.maps.LatLng(33.57869 ,72.94409),new google.maps.LatLng(33.69046 ,72.82437),new google.maps.LatLng(33.65188 ,73.06604),new google.maps.LatLng(33.49182 ,73.12438),new google.maps.LatLng(33.58755 ,73.14793),new google.maps.LatLng(33.81431 ,72.95828),new google.maps.LatLng(33.55529 ,72.94372),new google.maps.LatLng(33.70013 ,72.82930),new google.maps.LatLng(33.77169 ,73.13657),new google.maps.LatLng(33.75471 ,73.03163),new google.maps.LatLng(33.56282 ,73.12515),new google.maps.LatLng(33.53253 ,73.00664),new google.maps.LatLng(33.52205 ,73.05522),new google.maps.LatLng(33.55897 ,73.18612),new google.maps.LatLng(33.54790 ,72.95652),new google.maps.LatLng(33.76143 ,72.86913),new google.maps.LatLng(33.71974 ,73.22844),new google.maps.LatLng(33.55872 ,73.13586),new google.maps.LatLng(33.58229 ,73.07883),new google.maps.LatLng(33.79972 ,72.98721),new google.maps.LatLng(33.64616 ,72.94812),new google.maps.LatLng(33.56004 ,73.21728),new google.maps.LatLng(33.52868 ,72.88695),new google.maps.LatLng(33.71832 ,72.99910),new google.maps.LatLng(33.69756 ,73.22774),new google.maps.LatLng(33.60922 ,72.90707),new google.maps.LatLng(33.62461 ,72.97881),new google.maps.LatLng(33.53185 ,73.17777),new google.maps.LatLng(33.54790 ,72.93524),new google.maps.LatLng(33.85967 ,73.04404),new google.maps.LatLng(33.75138 ,73.22997),new google.maps.LatLng(33.51496 ,72.97152),new google.maps.LatLng(33.81386 ,73.03623),new google.maps.LatLng(33.87714 ,73.02725),new google.maps.LatLng(33.56039 ,72.98227),new google.maps.LatLng(33.62572 ,72.94938),new google.maps.LatLng(33.49779 ,73.03170),new google.maps.LatLng(31.72211 ,74.33071),new google.maps.LatLng(31.34196 ,74.25054),new google.maps.LatLng(31.38832 ,74.37070),new google.maps.LatLng(31.57360 ,74.16513),new google.maps.LatLng(31.50043 ,74.18778),new google.maps.LatLng(31.39698 ,74.48666),new google.maps.LatLng(31.48048 ,74.52665),new google.maps.LatLng(31.33443 ,74.48365),new google.maps.LatLng(31.56684 ,74.38371),new google.maps.LatLng(31.53276 ,74.27671),new google.maps.LatLng(31.52810 ,74.49658),new google.maps.LatLng(31.37151 ,74.51899),new google.maps.LatLng(31.62184 ,74.50453),new google.maps.LatLng(31.44788 ,74.36713),new google.maps.LatLng(31.59173 ,74.54581),new google.maps.LatLng(31.54376 ,74.16475),new google.maps.LatLng(31.66358 ,74.29288),new google.maps.LatLng(31.54044 ,74.17979),new google.maps.LatLng(31.40778 ,74.55235),new google.maps.LatLng(31.31412 ,74.27226),new google.maps.LatLng(31.43400 ,74.45363),new google.maps.LatLng(31.53023 ,74.41949),new google.maps.LatLng(31.36328 ,74.38231),new google.maps.LatLng(31.57401 ,74.21340),new google.maps.LatLng(31.58777 ,74.48111),new google.maps.LatLng(31.70229 ,74.27166),new google.maps.LatLng(31.60781 ,74.21694),new google.maps.LatLng(31.59822 ,74.48456),new google.maps.LatLng(31.45861 ,74.50954),new google.maps.LatLng(31.55864 ,74.41862),new google.maps.LatLng(31.39823 ,74.33896),new google.maps.LatLng(31.39365 ,74.37079),new google.maps.LatLng(31.54423 ,74.19882),new google.maps.LatLng(31.58083 ,74.37772),new google.maps.LatLng(31.59152 ,74.19029),new google.maps.LatLng(31.58646 ,74.52120),new google.maps.LatLng(31.60853 ,74.18179),new google.maps.LatLng(31.69305 ,74.47402),new google.maps.LatLng(31.53826 ,74.28045),new google.maps.LatLng(31.46725 ,74.36971),new google.maps.LatLng(31.63408 ,74.21775),new google.maps.LatLng(31.57457 ,74.39887),new google.maps.LatLng(31.64510 ,74.30414),new google.maps.LatLng(31.65237 ,74.32742),new google.maps.LatLng(31.34738 ,74.43421),new google.maps.LatLng(31.67560 ,74.25326),new google.maps.LatLng(31.53676 ,74.19204),new google.maps.LatLng(31.41303 ,74.43544),new google.maps.LatLng(31.45582 ,74.44659),new google.maps.LatLng(31.52370 ,74.40370),new google.maps.LatLng(31.46305 ,74.19827),new google.maps.LatLng(31.65315 ,74.37770),new google.maps.LatLng(31.45876 ,74.22013),new google.maps.LatLng(31.42751 ,74.38122),new google.maps.LatLng(31.50011 ,74.21950),new google.maps.LatLng(31.58603 ,74.51087),new google.maps.LatLng(31.44955 ,74.49844),new google.maps.LatLng(31.63420 ,74.19679),new google.maps.LatLng(31.33136 ,74.40292),new google.maps.LatLng(31.67803 ,74.49488),new google.maps.LatLng(31.43596 ,74.17919),new google.maps.LatLng(31.70279 ,74.46813),new google.maps.LatLng(31.35885 ,74.33013),new google.maps.LatLng(31.48221 ,74.22891),new google.maps.LatLng(31.54233 ,74.58368),new google.maps.LatLng(31.54476 ,74.56937),new google.maps.LatLng(31.37246 ,74.39166),new google.maps.LatLng(31.64525 ,74.51648),new google.maps.LatLng(31.36371 ,74.30982),new google.maps.LatLng(31.44139 ,74.55580),new google.maps.LatLng(31.28658 ,74.41722),new google.maps.LatLng(31.62722 ,74.20416),new google.maps.LatLng(31.34366 ,74.21955),new google.maps.LatLng(31.68870 ,74.33893),new google.maps.LatLng(31.56956 ,74.24037),new google.maps.LatLng(31.31164 ,74.32384),new google.maps.LatLng(31.36035 ,74.39416),new google.maps.LatLng(31.56868 ,74.37165),new google.maps.LatLng(31.32091 ,74.31317),new google.maps.LatLng(31.49844 ,74.20267),new google.maps.LatLng(31.40331 ,74.21851),new google.maps.LatLng(31.61208 ,74.52534),new google.maps.LatLng(31.48271 ,74.29770),new google.maps.LatLng(31.70900 ,74.31437),new google.maps.LatLng(31.44132 ,74.42977),new google.maps.LatLng(31.43247 ,74.54114),new google.maps.LatLng(31.33002 ,74.45000),new google.maps.LatLng(31.36439 ,74.44802),new google.maps.LatLng(31.47068 ,74.24246),new google.maps.LatLng(31.32905 ,74.37890),new google.maps.LatLng(31.37141 ,74.19837),new google.maps.LatLng(31.29120 ,74.32108),new google.maps.LatLng(31.46345 ,74.15855),new google.maps.LatLng(31.64327 ,74.39157),new google.maps.LatLng(31.32432 ,74.39965),new google.maps.LatLng(31.31951 ,74.29556),new google.maps.LatLng(31.70232 ,74.35798),new google.maps.LatLng(31.51997 ,74.46989),new google.maps.LatLng(31.55516 ,74.26779),new google.maps.LatLng(31.37611 ,74.23769),new google.maps.LatLng(31.47995 ,74.30109),new google.maps.LatLng(31.46390 ,74.40252),new google.maps.LatLng(31.69914 ,74.41290),new google.maps.LatLng(31.51281 ,74.34022),new google.maps.LatLng(31.60342 ,74.27932),new google.maps.LatLng(31.29720 ,74.31711),new google.maps.LatLng(31.42444 ,74.31023),new google.maps.LatLng(31.45877 ,74.43163),new google.maps.LatLng(31.31354 ,74.26014),new google.maps.LatLng(31.37960 ,74.38959),new google.maps.LatLng(31.38075 ,74.32863),new google.maps.LatLng(31.39192 ,74.45374),new google.maps.LatLng(31.63583 ,74.38154),new google.maps.LatLng(31.53910 ,74.38099),new google.maps.LatLng(31.51768 ,74.14786),new google.maps.LatLng(31.45916 ,74.31711),new google.maps.LatLng(31.30842 ,74.27175),new google.maps.LatLng(31.30966 ,74.35656),new google.maps.LatLng(31.71028 ,74.29448),new google.maps.LatLng(31.53050 ,74.47515),new google.maps.LatLng(31.69921 ,74.39695),new google.maps.LatLng(31.47296 ,74.49635),new google.maps.LatLng(31.36442 ,74.50870),new google.maps.LatLng(31.38720 ,74.31376),new google.maps.LatLng(31.61326 ,74.54122),new google.maps.LatLng(31.39649 ,74.31365),new google.maps.LatLng(31.32739 ,74.30309),new google.maps.LatLng(31.56618 ,74.36733),new google.maps.LatLng(31.57281 ,74.36749),new google.maps.LatLng(31.47018 ,74.54185),new google.maps.LatLng(31.62503 ,74.51341),new google.maps.LatLng(31.70115 ,74.32063),new google.maps.LatLng(31.62328 ,74.32841),new google.maps.LatLng(31.60100 ,74.47986),new google.maps.LatLng(31.37780 ,74.40828),new google.maps.LatLng(31.46762 ,74.34173),new google.maps.LatLng(31.60484 ,74.30906),new google.maps.LatLng(31.48018 ,74.22106),new google.maps.LatLng(31.56849 ,74.32224),new google.maps.LatLng(31.49019 ,74.16250),new google.maps.LatLng(31.62914 ,74.36701),new google.maps.LatLng(31.40613 ,74.45472),new google.maps.LatLng(31.35676 ,74.26974),new google.maps.LatLng(31.53342 ,74.32545),new google.maps.LatLng(31.56936 ,74.38037),new google.maps.LatLng(31.65543 ,74.39637),new google.maps.LatLng(31.60159 ,74.55842),new google.maps.LatLng(31.57436 ,74.56082),new google.maps.LatLng(31.57894 ,74.44932),new google.maps.LatLng(31.43405 ,74.37786),new google.maps.LatLng(31.59077 ,74.35018),new google.maps.LatLng(31.59919 ,74.36042),new google.maps.LatLng(31.52938 ,74.32222),new google.maps.LatLng(31.52603 ,74.54769),new google.maps.LatLng(31.48876 ,74.58485),new google.maps.LatLng(31.48147 ,74.30769),new google.maps.LatLng(31.61869 ,74.40015),new google.maps.LatLng(31.41547 ,74.17345),new google.maps.LatLng(31.66618 ,74.25671),new google.maps.LatLng(31.43285 ,74.55285),new google.maps.LatLng(31.45638 ,74.57672),new google.maps.LatLng(31.61937 ,74.21850),new google.maps.LatLng(31.68685 ,74.25064),new google.maps.LatLng(31.42096 ,74.48564),new google.maps.LatLng(31.49567 ,74.24705),new google.maps.LatLng(31.64975 ,74.27068),new google.maps.LatLng(31.67040 ,74.35301),new google.maps.LatLng(31.34136 ,74.47725),new google.maps.LatLng(31.63367 ,74.35235),new google.maps.LatLng(31.29625 ,74.31655),new google.maps.LatLng(31.66921 ,74.51791),new google.maps.LatLng(31.71807 ,74.36283),new google.maps.LatLng(31.67723 ,74.35388),new google.maps.LatLng(31.63221 ,74.18765),new google.maps.LatLng(31.36731 ,74.43198),new google.maps.LatLng(31.56571 ,74.35574),new google.maps.LatLng(31.39415 ,74.33388),new google.maps.LatLng(31.54637 ,74.43438),new google.maps.LatLng(31.34321 ,74.48932),new google.maps.LatLng(31.67098 ,74.35505),new google.maps.LatLng(31.30176 ,74.26995),new google.maps.LatLng(31.42620 ,74.56304),new google.maps.LatLng(31.63416 ,74.26185),new google.maps.LatLng(31.46682 ,74.28156),new google.maps.LatLng(31.68304 ,74.49542),new google.maps.LatLng(31.58703 ,74.28239),new google.maps.LatLng(31.63768 ,74.51234),new google.maps.LatLng(31.61489 ,74.36217),new google.maps.LatLng(31.38334 ,74.36238),new google.maps.LatLng(31.41408 ,74.17654),new google.maps.LatLng(31.60018 ,74.25257),new google.maps.LatLng(31.52600 ,74.57937),new google.maps.LatLng(31.31699 ,74.31226),new google.maps.LatLng(31.51165 ,74.28911),new google.maps.LatLng(31.71723 ,74.35484),new google.maps.LatLng(31.59183 ,74.31316),new google.maps.LatLng(31.60317 ,74.53961),new google.maps.LatLng(31.54857 ,74.22340),new google.maps.LatLng(31.34949 ,74.48139),new google.maps.LatLng(31.29711 ,74.45111),new google.maps.LatLng(31.47501 ,74.15436),new google.maps.LatLng(31.31106 ,74.32494),new google.maps.LatLng(31.54903 ,74.43674),new google.maps.LatLng(31.54418 ,74.37938),new google.maps.LatLng(31.52278 ,74.42148),new google.maps.LatLng(31.63200 ,74.43216),new google.maps.LatLng(31.47479 ,74.45372),new google.maps.LatLng(31.40634 ,74.24509),new google.maps.LatLng(31.46742 ,74.53163),new google.maps.LatLng(31.51459 ,74.33711),new google.maps.LatLng(31.49687 ,74.36075),new google.maps.LatLng(31.43286 ,74.36732),new google.maps.LatLng(31.35549 ,74.22062),new google.maps.LatLng(31.61442 ,74.27419),new google.maps.LatLng(31.60796 ,74.48738),new google.maps.LatLng(31.30327 ,74.27693),new google.maps.LatLng(31.59505 ,74.23439),new google.maps.LatLng(31.43743 ,74.23457),new google.maps.LatLng(31.50949 ,74.39101),new google.maps.LatLng(31.35851 ,74.28608),new google.maps.LatLng(31.39194 ,74.36164),new google.maps.LatLng(31.34755 ,74.23896),new google.maps.LatLng(31.36932 ,74.50161),new google.maps.LatLng(31.47746 ,74.33080),new google.maps.LatLng(31.68192 ,74.38866),new google.maps.LatLng(31.47930 ,74.32985),new google.maps.LatLng(31.51505 ,74.16913),new google.maps.LatLng(31.64611 ,74.42792),new google.maps.LatLng(31.55565 ,74.51919),new google.maps.LatLng(31.55190 ,74.16918),new google.maps.LatLng(31.66761 ,74.50328),new google.maps.LatLng(31.59432 ,74.29861),new google.maps.LatLng(31.41194 ,74.51870),new google.maps.LatLng(31.53211 ,74.41987),new google.maps.LatLng(31.62190 ,74.38464),new google.maps.LatLng(31.58069 ,74.48954),new google.maps.LatLng(31.45888 ,74.34005),new google.maps.LatLng(31.58486 ,74.38043),new google.maps.LatLng(31.63515 ,74.50351),new google.maps.LatLng(31.47666 ,74.29360),new google.maps.LatLng(31.54928 ,74.14965),new google.maps.LatLng(31.44755 ,74.52051),new google.maps.LatLng(31.36179 ,74.22910),new google.maps.LatLng(31.57464 ,74.47993),new google.maps.LatLng(31.45884 ,74.25565),new google.maps.LatLng(31.52639 ,74.52256),new google.maps.LatLng(31.36993 ,74.33007),new google.maps.LatLng(31.56834 ,74.34908),new google.maps.LatLng(31.57777 ,74.34110),new google.maps.LatLng(31.54408 ,74.57115),new google.maps.LatLng(31.28587 ,74.32622),new google.maps.LatLng(31.56829 ,74.40202),new google.maps.LatLng(31.37343 ,74.49295),new google.maps.LatLng(31.49225 ,74.32807),new google.maps.LatLng(31.49569 ,74.29546),new google.maps.LatLng(31.59936 ,74.18859),new google.maps.LatLng(31.46505 ,74.47301),new google.maps.LatLng(31.40190 ,74.23640),new google.maps.LatLng(31.58284 ,74.21113),new google.maps.LatLng(31.49375 ,74.29315),new google.maps.LatLng(31.49861 ,74.53530),new google.maps.LatLng(31.45414 ,74.42580),new google.maps.LatLng(31.45371 ,74.28588),new google.maps.LatLng(31.60634 ,74.54089),new google.maps.LatLng(31.47045 ,74.43750),new google.maps.LatLng(31.46733 ,74.52905),new google.maps.LatLng(31.36753 ,74.22238),new google.maps.LatLng(31.42256 ,74.55519),new google.maps.LatLng(31.58460 ,74.54537),new google.maps.LatLng(31.61201 ,74.17882),new google.maps.LatLng(31.50009 ,74.14721),new google.maps.LatLng(31.46934 ,74.24760),new google.maps.LatLng(31.48625 ,74.19998),new google.maps.LatLng(31.68327 ,74.24070),new google.maps.LatLng(31.55798 ,74.50695),new google.maps.LatLng(31.31804 ,74.40495),new google.maps.LatLng(31.60032 ,74.45293),new google.maps.LatLng(31.63556 ,74.29607),new google.maps.LatLng(31.33222 ,74.37159),new google.maps.LatLng(31.36684 ,74.32253),new google.maps.LatLng(31.46085 ,74.25428),new google.maps.LatLng(31.53851 ,74.57746),new google.maps.LatLng(31.46935 ,74.48121),new google.maps.LatLng(31.55324 ,74.53895),new google.maps.LatLng(31.61683 ,74.43760),new google.maps.LatLng(31.33203 ,74.26480),new google.maps.LatLng(31.45548 ,74.36520),new google.maps.LatLng(31.45833 ,74.32069),new google.maps.LatLng(31.53934 ,74.35789),new google.maps.LatLng(31.56376 ,74.31564),new google.maps.LatLng(31.61968 ,74.20404),new google.maps.LatLng(31.59152 ,74.47488),new google.maps.LatLng(31.58735 ,74.44075),new google.maps.LatLng(31.71124 ,74.40686),new google.maps.LatLng(31.42823 ,74.34500),new google.maps.LatLng(31.55148 ,74.22076),new google.maps.LatLng(31.41492 ,74.30775),new google.maps.LatLng(31.37580 ,74.27539),new google.maps.LatLng(31.56084 ,74.55510),new google.maps.LatLng(31.60546 ,74.31716),new google.maps.LatLng(31.33417 ,74.37636),new google.maps.LatLng(31.65386 ,74.53326),new google.maps.LatLng(31.38431 ,74.36037),new google.maps.LatLng(31.55145 ,74.34644),new google.maps.LatLng(31.38523 ,74.37889),new google.maps.LatLng(31.34061 ,74.27329),new google.maps.LatLng(31.44477 ,74.42120),new google.maps.LatLng(31.43295 ,74.53458),new google.maps.LatLng(31.67099 ,74.38427),new google.maps.LatLng(31.60990 ,74.18743),new google.maps.LatLng(31.42069 ,74.26232),new google.maps.LatLng(31.30217 ,74.41474),new google.maps.LatLng(31.51524 ,74.48853),new google.maps.LatLng(31.32854 ,74.43985),new google.maps.LatLng(31.66864 ,74.23767),new google.maps.LatLng(31.34899 ,74.37336),new google.maps.LatLng(31.45600 ,74.26434),new google.maps.LatLng(31.52337 ,74.54513),new google.maps.LatLng(31.33503 ,74.46472),new google.maps.LatLng(31.41129 ,74.25909),new google.maps.LatLng(31.38974 ,74.53100),new google.maps.LatLng(31.45537 ,74.53370),new google.maps.LatLng(31.50542 ,74.16238),new google.maps.LatLng(31.51850 ,74.28371),new google.maps.LatLng(31.32621 ,74.42177),new google.maps.LatLng(31.54518 ,74.54637),new google.maps.LatLng(31.51758 ,74.38926),new google.maps.LatLng(31.54493 ,74.54814),new google.maps.LatLng(31.40764 ,74.25794),new google.maps.LatLng(31.58268 ,74.19235),new google.maps.LatLng(31.36062 ,74.33233),new google.maps.LatLng(31.36132 ,74.42843),new google.maps.LatLng(31.45229 ,74.36303),new google.maps.LatLng(31.52333 ,74.37618),new google.maps.LatLng(31.48412 ,74.45009),new google.maps.LatLng(31.61136 ,74.17025),new google.maps.LatLng(31.66715 ,74.27899),new google.maps.LatLng(31.48577 ,74.33350),new google.maps.LatLng(31.61279 ,74.29952),new google.maps.LatLng(31.61083 ,74.53295),new google.maps.LatLng(31.55989 ,74.15128),new google.maps.LatLng(31.55645 ,74.53602),new google.maps.LatLng(31.61758 ,74.20981),new google.maps.LatLng(31.44787 ,74.43820),new google.maps.LatLng(31.70065 ,74.35159),new google.maps.LatLng(31.33575 ,74.31495),new google.maps.LatLng(31.38938 ,74.42995),new google.maps.LatLng(31.50256 ,74.21332),new google.maps.LatLng(31.51214 ,74.48199),new google.maps.LatLng(31.40051 ,74.51981),new google.maps.LatLng(24.75101 ,67.11956),new google.maps.LatLng(24.87929 ,66.85748),new google.maps.LatLng(24.91007 ,67.20848),new google.maps.LatLng(24.91900 ,67.22155),new google.maps.LatLng(25.01664 ,66.86915),new google.maps.LatLng(25.05012 ,67.13872),new google.maps.LatLng(24.74277 ,67.15804),new google.maps.LatLng(25.02028 ,67.16469),new google.maps.LatLng(24.99642 ,67.07740),new google.maps.LatLng(24.86990 ,66.98954),new google.maps.LatLng(24.90855 ,67.10024),new google.maps.LatLng(24.96166 ,66.91655),new google.maps.LatLng(24.84707 ,67.09747),new google.maps.LatLng(24.92092 ,67.16867),new google.maps.LatLng(25.04715 ,66.92501),new google.maps.LatLng(24.85957 ,66.97903),new google.maps.LatLng(24.77613 ,66.92458),new google.maps.LatLng(24.75294 ,67.06311),new google.maps.LatLng(24.86547 ,67.20631),new google.maps.LatLng(24.82841 ,67.14793),new google.maps.LatLng(24.77574 ,66.93900),new google.maps.LatLng(24.88319 ,66.87417),new google.maps.LatLng(24.86650 ,67.08896),new google.maps.LatLng(25.00817 ,66.89132),new google.maps.LatLng(24.73450 ,67.07989),new google.maps.LatLng(24.82332 ,66.91856),new google.maps.LatLng(25.11603 ,67.11503),new google.maps.LatLng(24.75190 ,67.14668),new google.maps.LatLng(24.76739 ,67.20338),new google.maps.LatLng(24.75718 ,67.03060),new google.maps.LatLng(24.95247 ,67.08542),new google.maps.LatLng(24.83747 ,67.06861),new google.maps.LatLng(24.79277 ,67.19945),new google.maps.LatLng(24.87874 ,67.18523),new google.maps.LatLng(25.03190 ,66.89651),new google.maps.LatLng(25.11175 ,66.99361),new google.maps.LatLng(25.05292 ,67.04611),new google.maps.LatLng(24.97014 ,66.88946),new google.maps.LatLng(24.84798 ,67.07530),new google.maps.LatLng(24.95601 ,67.18631),new google.maps.LatLng(25.07741 ,67.24077),new google.maps.LatLng(24.84394 ,67.21745),new google.maps.LatLng(24.86552 ,67.00826),new google.maps.LatLng(25.04819 ,67.02376),new google.maps.LatLng(24.93962 ,67.27334),new google.maps.LatLng(24.77481 ,67.06497),new google.maps.LatLng(25.04568 ,66.97445),new google.maps.LatLng(25.07604 ,67.20275),new google.maps.LatLng(24.92821 ,66.87842),new google.maps.LatLng(25.02020 ,67.11416),new google.maps.LatLng(24.77243 ,67.21018),new google.maps.LatLng(24.99802 ,66.91746),new google.maps.LatLng(25.02273 ,66.88435),new google.maps.LatLng(24.77186 ,67.01276),new google.maps.LatLng(25.03937 ,67.11808),new google.maps.LatLng(24.81574 ,67.19021),new google.maps.LatLng(25.10575 ,67.12153),new google.maps.LatLng(24.88452 ,66.91533),new google.maps.LatLng(24.94910 ,67.12706),new google.maps.LatLng(25.01381 ,66.87525),new google.maps.LatLng(24.98109 ,66.97103),new google.maps.LatLng(25.07190 ,67.20765),new google.maps.LatLng(25.11004 ,67.02824),new google.maps.LatLng(24.72457 ,67.04266),new google.maps.LatLng(25.13565 ,67.06316),new google.maps.LatLng(25.07305 ,66.90529),new google.maps.LatLng(24.84122 ,67.04073),new google.maps.LatLng(24.97501 ,66.92980),new google.maps.LatLng(24.88650 ,67.16230),new google.maps.LatLng(25.06614 ,67.03008),new google.maps.LatLng(25.11949 ,67.11214),new google.maps.LatLng(24.83382 ,67.15057),new google.maps.LatLng(25.02914 ,66.93707),new google.maps.LatLng(24.89304 ,67.02447),new google.maps.LatLng(25.08876 ,66.93572),new google.maps.LatLng(25.05303 ,67.09623),new google.maps.LatLng(24.84074 ,66.87168),new google.maps.LatLng(25.11915 ,67.14313),new google.maps.LatLng(24.91480 ,67.06238),new google.maps.LatLng(24.91893 ,66.89704),new google.maps.LatLng(24.87744 ,67.18485),new google.maps.LatLng(24.78630 ,66.97936),new google.maps.LatLng(25.00619 ,67.13666),new google.maps.LatLng(24.80896 ,67.10791),new google.maps.LatLng(24.83899 ,66.93879),new google.maps.LatLng(24.95977 ,67.24007),new google.maps.LatLng(24.98351 ,66.94420),new google.maps.LatLng(24.91969 ,67.22544),new google.maps.LatLng(25.07828 ,66.90989),new google.maps.LatLng(25.09201 ,66.99793),new google.maps.LatLng(24.87288 ,67.04996),new google.maps.LatLng(24.92443 ,66.92644),new google.maps.LatLng(24.94486 ,67.23324),new google.maps.LatLng(25.09322 ,67.13760),new google.maps.LatLng(25.12970 ,66.99999),new google.maps.LatLng(24.97647 ,67.10163),new google.maps.LatLng(25.10744 ,67.10369),new google.maps.LatLng(24.79505 ,67.17391),new google.maps.LatLng(24.78110 ,66.94872),new google.maps.LatLng(24.96308 ,67.07670),new google.maps.LatLng(24.73172 ,67.11101),new google.maps.LatLng(25.08227 ,67.10840),new google.maps.LatLng(24.98292 ,66.85065),new google.maps.LatLng(24.90579 ,67.27070),new google.maps.LatLng(24.91855 ,66.93310),new google.maps.LatLng(25.14245 ,67.01641),new google.maps.LatLng(25.09166 ,67.10823),new google.maps.LatLng(25.07556 ,66.90939),new google.maps.LatLng(25.13678 ,67.12626),new google.maps.LatLng(24.83733 ,67.18286),new google.maps.LatLng(24.94508 ,67.26353),new google.maps.LatLng(24.81782 ,66.88945),new google.maps.LatLng(25.05483 ,66.87413),new google.maps.LatLng(24.92299 ,67.07985),new google.maps.LatLng(24.95427 ,67.23668),new google.maps.LatLng(24.85326 ,67.06670),new google.maps.LatLng(25.01072 ,67.22850),new google.maps.LatLng(25.14560 ,67.17131),new google.maps.LatLng(25.01519 ,67.26474),new google.maps.LatLng(24.77367 ,67.01934),new google.maps.LatLng(25.14490 ,67.05049),new google.maps.LatLng(25.12426 ,67.08121),new google.maps.LatLng(24.78578 ,67.11463),new google.maps.LatLng(25.01408 ,67.28286),new google.maps.LatLng(24.99224 ,67.27438),new google.maps.LatLng(24.92003 ,67.24027),new google.maps.LatLng(24.85822 ,67.15547),new google.maps.LatLng(24.84723 ,66.94119),new google.maps.LatLng(24.78251 ,67.20091),new google.maps.LatLng(25.11813 ,67.07915),new google.maps.LatLng(25.01900 ,67.01919),new google.maps.LatLng(24.97076 ,67.16543),new google.maps.LatLng(24.88310 ,67.01751),new google.maps.LatLng(24.92888 ,67.16820),new google.maps.LatLng(24.89733 ,66.95793),new google.maps.LatLng(24.81449 ,67.24883),new google.maps.LatLng(24.96927 ,67.11501),new google.maps.LatLng(24.95942 ,67.17884),new google.maps.LatLng(24.75283 ,66.96839),new google.maps.LatLng(25.10692 ,66.91697),new google.maps.LatLng(25.05742 ,67.18337),new google.maps.LatLng(25.10401 ,67.11467),new google.maps.LatLng(24.73453 ,67.04759),new google.maps.LatLng(24.83199 ,66.92349),new google.maps.LatLng(24.86126 ,67.17482),new google.maps.LatLng(24.74596 ,67.10065),new google.maps.LatLng(24.95216 ,66.87326),new google.maps.LatLng(24.86634 ,67.25508),new google.maps.LatLng(25.15547 ,67.10092),new google.maps.LatLng(24.90222 ,67.10496),new google.maps.LatLng(25.09157 ,67.04312),new google.maps.LatLng(24.84995 ,66.86976),new google.maps.LatLng(24.83596 ,67.14133),new google.maps.LatLng(24.94818 ,67.07114),new google.maps.LatLng(24.93955 ,66.87722),new google.maps.LatLng(24.77175 ,66.95966),new google.maps.LatLng(24.85510 ,66.86504),new google.maps.LatLng(25.00039 ,67.25031),new google.maps.LatLng(25.01216 ,67.03358),new google.maps.LatLng(24.87246 ,67.27100),new google.maps.LatLng(25.01195 ,67.17575),new google.maps.LatLng(25.08488 ,66.94102),new google.maps.LatLng(24.76332 ,67.05370),new google.maps.LatLng(24.83156 ,67.09975),new google.maps.LatLng(24.93444 ,67.13994),new google.maps.LatLng(25.11023 ,67.08766),new google.maps.LatLng(25.06321 ,66.99255),new google.maps.LatLng(24.78052 ,66.96315),new google.maps.LatLng(24.94220 ,67.14016),new google.maps.LatLng(24.87006 ,67.25650),new google.maps.LatLng(24.88939 ,67.11876),new google.maps.LatLng(24.84240 ,67.23630),new google.maps.LatLng(24.85623 ,67.17878),new google.maps.LatLng(25.09769 ,67.03964),new google.maps.LatLng(25.06369 ,66.95508),new google.maps.LatLng(25.08891 ,67.03915),new google.maps.LatLng(24.84227 ,67.06977),new google.maps.LatLng(25.08965 ,67.00169),new google.maps.LatLng(24.77994 ,67.17756),new google.maps.LatLng(24.88358 ,67.21143),new google.maps.LatLng(24.97151 ,67.23465),new google.maps.LatLng(24.82647 ,67.15421),new google.maps.LatLng(25.02859 ,67.19364),new google.maps.LatLng(24.88953 ,66.92076),new google.maps.LatLng(25.09253 ,67.16997),new google.maps.LatLng(25.01287 ,66.94443),new google.maps.LatLng(25.02581 ,67.24116),new google.maps.LatLng(25.05654 ,67.00365),new google.maps.LatLng(25.00807 ,67.26833),new google.maps.LatLng(24.96171 ,67.03404),new google.maps.LatLng(24.94195 ,66.99836),new google.maps.LatLng(25.08527 ,67.06623),new google.maps.LatLng(25.01745 ,66.95945),new google.maps.LatLng(24.93643 ,67.17725),new google.maps.LatLng(24.88285 ,67.21973),new google.maps.LatLng(24.78649 ,66.91186),new google.maps.LatLng(24.92282 ,67.04503),new google.maps.LatLng(24.81999 ,66.94045),new google.maps.LatLng(25.09167 ,66.89960),new google.maps.LatLng(24.91799 ,66.92924),new google.maps.LatLng(24.94234 ,66.99132),new google.maps.LatLng(25.00312 ,66.91543),new google.maps.LatLng(24.84550 ,67.12038),new google.maps.LatLng(24.78994 ,67.04731),new google.maps.LatLng(25.03976 ,67.20734),new google.maps.LatLng(24.89820 ,67.24383),new google.maps.LatLng(24.77753 ,67.11208),new google.maps.LatLng(25.12220 ,67.12161),new google.maps.LatLng(24.95463 ,67.24992),new google.maps.LatLng(24.81513 ,67.18814),new google.maps.LatLng(25.07955 ,66.99964),new google.maps.LatLng(25.06108 ,67.06760),new google.maps.LatLng(24.91785 ,67.26257),new google.maps.LatLng(25.10013 ,67.16935),new google.maps.LatLng(25.09183 ,66.92311),new google.maps.LatLng(24.94783 ,67.12453),new google.maps.LatLng(24.80233 ,67.18106),new google.maps.LatLng(25.04467 ,67.13482),new google.maps.LatLng(25.15006 ,67.07792),new google.maps.LatLng(24.97704 ,67.07142),new google.maps.LatLng(24.75175 ,67.00868),new google.maps.LatLng(24.99010 ,67.10108),new google.maps.LatLng(25.07113 ,66.99345),new google.maps.LatLng(24.95385 ,67.08694),new google.maps.LatLng(24.81427 ,67.21417),new google.maps.LatLng(24.89545 ,66.92874),new google.maps.LatLng(24.90830 ,66.93067),new google.maps.LatLng(24.81850 ,66.96547),new google.maps.LatLng(25.11558 ,67.13259),new google.maps.LatLng(24.84375 ,66.93846),new google.maps.LatLng(25.02876 ,67.13502),new google.maps.LatLng(25.05684 ,67.20994),new google.maps.LatLng(24.83025 ,67.15138),new google.maps.LatLng(24.89846 ,66.87726),new google.maps.LatLng(24.75434 ,67.13527),new google.maps.LatLng(24.79803 ,67.00163),new google.maps.LatLng(24.90125 ,67.05920),new google.maps.LatLng(24.96468 ,66.95494),new google.maps.LatLng(24.78383 ,67.08178),new google.maps.LatLng(25.08782 ,66.89887),new google.maps.LatLng(24.86548 ,67.08366),new google.maps.LatLng(24.83503 ,66.97067),new google.maps.LatLng(24.90774 ,67.22469),new google.maps.LatLng(24.99987 ,67.13578),new google.maps.LatLng(24.90696 ,67.26708),new google.maps.LatLng(25.11339 ,67.10184),new google.maps.LatLng(24.98010 ,67.28642),new google.maps.LatLng(24.84185 ,67.15154),new google.maps.LatLng(24.78702 ,67.18032),new google.maps.LatLng(25.06487 ,67.07737),new google.maps.LatLng(24.77004 ,67.04431),new google.maps.LatLng(24.89724 ,66.94434),new google.maps.LatLng(24.93048 ,67.23580),new google.maps.LatLng(24.73369 ,67.08827),new google.maps.LatLng(24.94251 ,67.08525),new google.maps.LatLng(24.77472 ,67.17376),new google.maps.LatLng(24.78981 ,67.00745),new google.maps.LatLng(24.99021 ,67.07620),new google.maps.LatLng(25.12442 ,67.02099),new google.maps.LatLng(24.88543 ,66.89973),new google.maps.LatLng(25.16428 ,67.09694),new google.maps.LatLng(24.97652 ,67.07439),new google.maps.LatLng(24.90749 ,67.26199),new google.maps.LatLng(24.77163 ,67.08748),new google.maps.LatLng(24.93059 ,67.19607),new google.maps.LatLng(25.11027 ,66.99727),new google.maps.LatLng(24.90866 ,67.02131),new google.maps.LatLng(24.95010 ,67.07955),new google.maps.LatLng(24.82724 ,67.10669),new google.maps.LatLng(24.73152 ,67.11693),new google.maps.LatLng(24.86195 ,67.23355),new google.maps.LatLng(24.91508 ,67.24059),new google.maps.LatLng(25.07287 ,67.24020),new google.maps.LatLng(24.87778 ,67.02053),new google.maps.LatLng(24.98399 ,67.07503),new google.maps.LatLng(24.87527 ,67.22013),new google.maps.LatLng(25.01032 ,67.11419),new google.maps.LatLng(24.81919 ,67.11217),new google.maps.LatLng(24.95614 ,66.87093),new google.maps.LatLng(24.87718 ,66.88536),new google.maps.LatLng(25.15688 ,67.02549),new google.maps.LatLng(24.99652 ,67.20657),new google.maps.LatLng(24.98708 ,66.98743),new google.maps.LatLng(24.91320 ,67.14895),new google.maps.LatLng(25.14087 ,67.06305),new google.maps.LatLng(24.77795 ,67.07457),new google.maps.LatLng(24.85385 ,67.23998),new google.maps.LatLng(24.87548 ,66.93945),new google.maps.LatLng(24.94294 ,67.09488),new google.maps.LatLng(24.99412 ,67.05484),new google.maps.LatLng(24.85160 ,67.09201),new google.maps.LatLng(25.08695 ,67.16514),new google.maps.LatLng(25.05986 ,67.05445),new google.maps.LatLng(25.06400 ,67.16822),new google.maps.LatLng(25.14528 ,66.97264),new google.maps.LatLng(24.94669 ,66.86926),new google.maps.LatLng(24.99594 ,66.92831),new google.maps.LatLng(25.12802 ,67.07362),new google.maps.LatLng(25.05342 ,66.88672),new google.maps.LatLng(24.88212 ,66.99436),new google.maps.LatLng(25.01530 ,67.21902),new google.maps.LatLng(24.96649 ,66.89360),new google.maps.LatLng(25.05004 ,67.20051),new google.maps.LatLng(25.13757 ,66.97173),new google.maps.LatLng(24.97988 ,66.92411),new google.maps.LatLng(24.97996 ,67.08537),new google.maps.LatLng(25.11571 ,66.97763),new google.maps.LatLng(24.95201 ,67.07028),new google.maps.LatLng(25.12685 ,66.94503),new google.maps.LatLng(24.82313 ,67.16015)]; \r\n }\r\n }", "title": "" }, { "docid": "39c9d4a6aba7588fd838bc8061b9b030", "score": "0.6069614", "text": "function addPoint(event) {\n if(firstPoint === undefined || firstPoint === null){\n if(firstMarker !== undefined) {\n\n firstMarker.setMap(null);\n secondMarker.setMap(null);\n }\n\n firstPoint = event.latLng;\n\n firstMarker = new google.maps.Marker({\n position: event.latLng,\n map: map\n });\n\n renderGraphForCoordinate([event.latLng.lat(), event.latLng.lng()])\n } else {\n if(rectangle !== undefined) {\n rectangle.setMap(null);\n }\n\n secondPoint = event.latLng;\n secondMarker = new google.maps.Marker({\n position: event.latLng,\n map: map\n });\n\n north = max(firstPoint.lat(), secondPoint.lat());\n south = min(firstPoint.lat(), secondPoint.lat)();\n east = max(firstPoint.lng(), secondPoint.lng());\n west = min(firstPoint.lng(), secondPoint.lng());\n\n rectangle = new google.maps.Rectangle({\n strokeColor: '#FF0000',\n strokeOpacity: 0.8,\n strokeWeight: 2,\n fillColor: '#FF0000',\n fillOpacity: 0.35,\n map: map,\n bounds: {\n north: north,\n south: south,\n east: east,\n west: west\n }\n });\n\n\n firstPoint = null;\n }\n}", "title": "" }, { "docid": "438363e04e55d239d56d376ae055347f", "score": "0.6068131", "text": "initPoints() {\n this._points = [\n { id: 1, x: 4848557.4032, y: 9296786.3782 },\n { id: 40991, x: 4824941.8936, y: 9609433.7124 },\n { id: 3, x: 4844302.9652, y: 9291192.8002 },\n { id: 49192, x: 4881591.4349, y: 9495556.4086 },\n { id: 40994, x: 4823451.1359, y: 9601613.5777 },\n { id: 6, x: 4841707.4515, y: 9280423.5885 },\n { id: 7, x: 4840415.9465, y: 9297165.5094 },\n { id: 49196, x: 4878429.9349, y: 9483705.5875 },\n { id: 40999, x: 4820765.9641, y: 9617218.8202 },\n { id: 49198, x: 4877937.5534, y: 9490886.1893 },\n { id: 45108, x: 4780782.6374, y: 9492551.3463 },\n { id: 45111, x: 4778781.698, y: 9497628.6819 },\n { id: 45112, x: 4777483.6364, y: 9479999.5521 },\n { id: 45115, x: 4774188.2958, y: 9486628.2575 },\n { id: 45121, x: 4769535.6678, y: 9493190.7543 },\n { id: 45123, x: 4767582.3737, y: 9486511.2259 },\n { id: 45124, x: 4766383.8461, y: 9479851.7241 },\n { id: 45126, x: 4765825.5749, y: 9498229.36 },\n { id: 57430, x: 4653240.5045, y: 9315574.0415 },\n { id: 57431, x: 4651692.0059, y: 9325890.695 },\n { id: 57432, x: 4649905.6443, y: 9333239.9638 },\n { id: 57433, x: 4648712.5345, y: 9318139.4558 },\n { id: 24642, x: 4670155.9574, y: 9400757.4013 },\n { id: 8247, x: 4859258.8569, y: 9199970.6787 },\n { id: 24645, x: 4668309.7522, y: 9408405.8298 },\n { id: 8249, x: 4856980.1122, y: 9207990.035 },\n { id: 57437, x: 4645329.987, y: 9333700.7447 },\n { id: 57438, x: 4644775.4687, y: 9326174.22 },\n { id: 57440, x: 4643427.9597, y: 9319968.2649 },\n { id: 24651, x: 4663603.6728, y: 9414277.486 },\n { id: 8255, x: 4853495.8295, y: 9202804.0392 },\n { id: 24652, x: 4663259.4986, y: 9397323.7154 },\n { id: 57444, x: 4639082.2065, y: 9331913.6192 },\n { id: 57445, x: 4638810.393, y: 9322766.7457 },\n { id: 57447, x: 4637424.1421, y: 9316112.6991 },\n { id: 24656, x: 4661023.2495, y: 9403696.4063 },\n { id: 8260, x: 4849563.0352, y: 9207331.1733 },\n { id: 24657, x: 4660391.5737, y: 9410265.7063 },\n { id: 24658, x: 4660248.3605, y: 9414973.6315 },\n { id: 8262, x: 4847394.2645, y: 9216905.4198 },\n { id: 8264, x: 4846722.5906, y: 9200867.5729 },\n { id: 24662, x: 4657649.6809, y: 9397742.6001 },\n { id: 8266, x: 4843653.7268, y: 9214776.019 },\n { id: 24663, x: 4656123.7868, y: 9415755.4516 },\n { id: 8267, x: 4844272.7376, y: 9205759.317 },\n { id: 24664, x: 4656049.5649, y: 9405930.4585 },\n { id: 24667, x: 4653662.2462, y: 9410801.1455 },\n { id: 36978, x: 4814792.422, y: 9386430.8204 },\n { id: 36980, x: 4813041.4593, y: 9396769.146 },\n { id: 36986, x: 4808181.1749, y: 9386808.6258 },\n { id: 36987, x: 4807011.2234, y: 9379352.904 },\n { id: 36993, x: 4801176.265, y: 9397610.748 },\n { id: 36994, x: 4801050.7204, y: 9387049.8956 },\n { id: 61596, x: 4766766.1128, y: 9184186.5312 },\n { id: 61597, x: 4765572.0648, y: 9193907.9332 },\n { id: 61599, x: 4765795.7354, y: 9179947.1422 },\n { id: 49302, x: 4880080.3372, y: 9475915.2077 },\n { id: 61601, x: 4765936.7852, y: 9174798.2639 },\n { id: 49304, x: 4878809.1429, y: 9468348.1884 },\n { id: 61602, x: 4764053.2515, y: 9189472.708 },\n { id: 20612, x: 4723697.1481, y: 9466806.4924 },\n { id: 20615, x: 4722563.1319, y: 9473393.3406 },\n { id: 61608, x: 4761606.784, y: 9183314.1115 },\n { id: 20618, x: 4717999.7891, y: 9472910.4231 },\n { id: 20619, x: 4717913.1673, y: 9465100.911 },\n { id: 61612, x: 4760458.724, y: 9177698.3522 },\n { id: 20624, x: 4712947.3335, y: 9474863.404 },\n { id: 61615, x: 4758061.2023, y: 9189480.4369 },\n { id: 20625, x: 4712630.8549, y: 9463495.6365 },\n { id: 20628, x: 4708763.4637, y: 9471325.6113 },\n { id: 53421, x: 4691008.0823, y: 9285451.2915 },\n { id: 53422, x: 4690482.5934, y: 9273957.0711 },\n { id: 61621, x: 4755708.9673, y: 9173391.3012 },\n { id: 12434, x: 4785436.2237, y: 9206938.38 },\n { id: 61623, x: 4754482.6809, y: 9178260.1309 },\n { id: 12435, x: 4783611.3687, y: 9213141.688 },\n { id: 61624, x: 4753135.0286, y: 9183553.1747 },\n { id: 53426, x: 4685095.7616, y: 9291967.6202 },\n { id: 12436, x: 4783133.749, y: 9198726.6532 },\n { id: 61625, x: 4751724.815, y: 9190007.3613 },\n { id: 53427, x: 4683286.5336, y: 9279466.1048 },\n { id: 53428, x: 4682299.3137, y: 9285300.9815 },\n { id: 53432, x: 4676718.5399, y: 9275186.624 },\n { id: 53433, x: 4675136.5609, y: 9289842.1172 },\n { id: 12443, x: 4779888.2556, y: 9195030.1647 },\n { id: 12444, x: 4777635.8087, y: 9210564.556 },\n { id: 12447, x: 4776268.6551, y: 9202698.1923 },\n { id: 154, x: 4842165.9459, y: 9261755.4916 },\n { id: 155, x: 4841401.2842, y: 9270056.6967 },\n { id: 12453, x: 4773603.3555, y: 9195163.2471 },\n { id: 69859, x: 4690988.9811, y: 9188666.4504 },\n { id: 69861, x: 4690194.6662, y: 9177892.086 },\n { id: 32973, x: 4854010.9047, y: 9454767.1396 },\n { id: 32976, x: 4850756.9448, y: 9445737.1359 },\n { id: 69869, x: 4682002.0327, y: 9187855.1582 },\n { id: 32978, x: 4846742.3223, y: 9451485.4417 },\n { id: 32979, x: 4846390.6791, y: 9443860.7857 },\n { id: 32981, x: 4843510.2006, y: 9458783.4344 },\n { id: 32984, x: 4840061.8538, y: 9445383.2404 },\n { id: 4296, x: 4801264.5286, y: 9321240.6135 },\n { id: 4297, x: 4800380.3054, y: 9330448.3917 },\n { id: 28893, x: 4650876.1814, y: 9386780.4542 },\n { id: 16596, x: 4742740.5, y: 9530328.8317 },\n { id: 16597, x: 4741222.7362, y: 9537120.5792 },\n { id: 41192, x: 4816773.7106, y: 9607817.0042 },\n { id: 28895, x: 4649481.5852, y: 9376630.4472 },\n { id: 41194, x: 4816369.2003, y: 9601146.5564 },\n { id: 28898, x: 4646578.9348, y: 9384163.5738 },\n { id: 16601, x: 4737421.2446, y: 9521806.8403 },\n { id: 4304, x: 4795555.3909, y: 9321746.2035 },\n { id: 28899, x: 4646141.5077, y: 9388865.7347 },\n { id: 28901, x: 4646050.5405, y: 9394442.8649 },\n { id: 16604, x: 4734582.4574, y: 9526088.8514 },\n { id: 41200, x: 4812877.9371, y: 9614542.626 },\n { id: 16606, x: 4734240.2123, y: 9531611.5249 },\n { id: 28904, x: 4642530.5102, y: 9380529.4631 },\n { id: 16607, x: 4733162.4525, y: 9540436.7026 },\n { id: 211, x: 4843445.7477, y: 9332501.7479 },\n { id: 41202, x: 4810417.7825, y: 9606436.6955 },\n { id: 28906, x: 4642141.0046, y: 9394498.9611 },\n { id: 4312, x: 4789876.466, y: 9331111.7429 },\n { id: 28907, x: 4641902.9436, y: 9390168.1401 },\n { id: 28908, x: 4641641.7942, y: 9386334.074 },\n { id: 4314, x: 4789306.5481, y: 9319652.1368 },\n { id: 215, x: 4840432.235, y: 9320787.2103 },\n { id: 41206, x: 4807516.755, y: 9614666.1734 },\n { id: 28909, x: 4639973.5199, y: 9382207.5322 },\n { id: 216, x: 4840365.7096, y: 9327984.1158 },\n { id: 28913, x: 4638464.0527, y: 9395721.3425 },\n { id: 16616, x: 4725986.6658, y: 9535721.0952 },\n { id: 4319, x: 4785264.1, y: 9327221.7232 },\n { id: 28916, x: 4635643.0484, y: 9390705.5265 },\n { id: 28917, x: 4635572.1962, y: 9386390.4149 },\n { id: 49413, x: 4885310.4225, y: 9520720.4248 },\n { id: 45314, x: 4779577.5687, y: 9471665.3733 },\n { id: 28918, x: 4635203.0335, y: 9379775.2926 },\n { id: 49418, x: 4876550.6205, y: 9537710.3468 },\n { id: 49419, x: 4876442.4971, y: 9525024.3588 },\n { id: 49421, x: 4875383.9947, y: 9532137.5966 },\n { id: 45322, x: 4773777.6996, y: 9466580.6821 },\n { id: 45323, x: 4772177.6566, y: 9462339.4859 },\n { id: 45324, x: 4772045.5228, y: 9474457.2976 },\n { id: 12536, x: 4784775.7138, y: 9190619.7908 },\n { id: 45330, x: 4764917.0323, y: 9469271.1165 },\n { id: 12539, x: 4783973.7467, y: 9184143.5251 },\n { id: 45332, x: 4764111.972, y: 9464168.0983 },\n { id: 12540, x: 4782932.646, y: 9179550.4098 },\n { id: 12544, x: 4779651.5432, y: 9187862.9238 },\n { id: 12547, x: 4777495.8624, y: 9191860.351 },\n { id: 12548, x: 4776553.2031, y: 9175214.7407 },\n { id: 12549, x: 4775991.1277, y: 9182656.1553 },\n { id: 255, x: 4848173.7492, y: 9304990.4524 },\n { id: 259, x: 4844418.6778, y: 9311773.9446 },\n { id: 260, x: 4844107.5135, y: 9299587.8282 },\n { id: 65846, x: 4712140.8736, y: 9155042.3938 },\n { id: 262, x: 4841501.9882, y: 9302921.8582 },\n { id: 65848, x: 4711348.3039, y: 9162915.3839 },\n { id: 65853, x: 4703063.8142, y: 9164900.9692 },\n { id: 65859, x: 4698362.0862, y: 9157252.932 },\n { id: 20785, x: 4725119.9538, y: 9482177.2047 },\n { id: 20786, x: 4723097.3561, y: 9487777.477 },\n { id: 20788, x: 4721188.8626, y: 9497002.9116 },\n { id: 20790, x: 4720158.1115, y: 9479617.1704 },\n { id: 20793, x: 4717657.9718, y: 9486397.9578 },\n { id: 20797, x: 4714755.898, y: 9494127.2644 },\n { id: 20798, x: 4714370.9997, y: 9489800.07 },\n { id: 20801, x: 4711412.4123, y: 9499451.3467 },\n { id: 57693, x: 4634542.4242, y: 9321800.854 },\n { id: 20802, x: 4710308.744, y: 9483435.4293 },\n { id: 57695, x: 4632166.5318, y: 9330926.518 },\n { id: 20805, x: 4708667.9704, y: 9490921.6076 },\n { id: 57697, x: 4631782.4964, y: 9325251.5893 },\n { id: 8509, x: 4857865.3213, y: 9188794.7947 },\n { id: 57702, x: 4627190.6706, y: 9319686.0742 },\n { id: 8514, x: 4854760.2107, y: 9178585.3296 },\n { id: 57703, x: 4626447.5497, y: 9313998.1204 },\n { id: 8515, x: 4853330.9344, y: 9196128.5858 },\n { id: 57704, x: 4625692.4044, y: 9325730.851 },\n { id: 57705, x: 4625401.9894, y: 9331755.5907 },\n { id: 37210, x: 4832603.6478, y: 9438940.8404 },\n { id: 37211, x: 4832593.6317, y: 9434227.0933 },\n { id: 37212, x: 4832044.073, y: 9429011.6946 },\n { id: 57708, x: 4623893.8555, y: 9318113.1329 },\n { id: 37213, x: 4831705.432, y: 9423747.3256 },\n { id: 57710, x: 4621916.7182, y: 9325910.958 },\n { id: 37216, x: 4827849.8165, y: 9419557.3468 },\n { id: 8524, x: 4847572.1372, y: 9187704.1691 },\n { id: 37219, x: 4825049.6256, y: 9437874.5867 },\n { id: 57715, x: 4618846.0334, y: 9320433.9898 },\n { id: 37220, x: 4824565.5152, y: 9432255.6198 },\n { id: 57717, x: 4617621.3023, y: 9327986.2625 },\n { id: 70026, x: 4691986.2308, y: 9203641.039 },\n { id: 70029, x: 4689525.0912, y: 9197128.8575 },\n { id: 33141, x: 4850174.8278, y: 9434918.1078 },\n { id: 33143, x: 4849916.7718, y: 9428389.9508 },\n { id: 33147, x: 4845975.8836, y: 9422469.5396 },\n { id: 70041, x: 4678503.1096, y: 9205494.5868 },\n { id: 70042, x: 4678170.16, y: 9191500.5997 },\n { id: 33151, x: 4843326.1087, y: 9434783.5156 },\n { id: 33157, x: 4838818.5001, y: 9427261.977 },\n { id: 24985, x: 4667771.0587, y: 9395319.4833 },\n { id: 24987, x: 4666964.2566, y: 9388798.637 },\n { id: 24988, x: 4665382.6, y: 9383538.0645 },\n { id: 24994, x: 4660761.5841, y: 9392095.6175 },\n { id: 24996, x: 4657723.3551, y: 9383698.3393 },\n { id: 24999, x: 4655273.1383, y: 9389446.6646 },\n { id: 25000, x: 4654281.1154, y: 9379105.2644 },\n { id: 25001, x: 4652954.1401, y: 9382300.4392 },\n { id: 16806, x: 4743491.548, y: 9507739.8576 },\n { id: 16811, x: 4739312.9814, y: 9504279.7476 },\n { id: 16815, x: 4736135.5209, y: 9513253.5205 },\n { id: 70103, x: 4671407.7051, y: 9202854.3096 },\n { id: 16817, x: 4735134.0248, y: 9502821.6998 },\n { id: 70106, x: 4667798.4217, y: 9191443.2458 },\n { id: 16821, x: 4731503.283, y: 9519724.1422 },\n { id: 70109, x: 4664768.4014, y: 9205301.1022 },\n { id: 16826, x: 4728993.44, y: 9509622.287 },\n { id: 70114, x: 4658267.9223, y: 9200093.6217 },\n { id: 16827, x: 4727994.894, y: 9503076.7025 },\n { id: 66018, x: 4716234.8401, y: 9134626.9124 },\n { id: 66026, x: 4708103.5521, y: 9139097.4382 },\n { id: 66028, x: 4706697.7325, y: 9149927.3145 },\n { id: 4543, x: 4780715.8027, y: 9332952.1451 },\n { id: 41435, x: 4816590.4349, y: 9585290.8486 },\n { id: 41437, x: 4814374.5768, y: 9593876.8686 },\n { id: 4546, x: 4779942.9109, y: 9320694.5307 },\n { id: 66033, x: 4703713.3088, y: 9135549.897 },\n { id: 41445, x: 4808691.4445, y: 9595532.3622 },\n { id: 41447, x: 4807341.8864, y: 9587229.1036 },\n { id: 4556, x: 4773164.5783, y: 9328471.6334 },\n { id: 4560, x: 4770362.8379, y: 9336337.6918 },\n { id: 4562, x: 4768948.7552, y: 9320264.9963 },\n { id: 57852, x: 4635800.1863, y: 9297096.2072 },\n { id: 16862, x: 4748031.5523, y: 9547129.876 },\n { id: 57853, x: 4635442.9994, y: 9312202.0016 },\n { id: 16863, x: 4746807.0859, y: 9554347.4765 },\n { id: 4566, x: 4766761.6834, y: 9331137.8744 },\n { id: 61954, x: 4763406.0841, y: 9207359.7272 },\n { id: 49657, x: 4888310.4014, y: 9501723.3599 },\n { id: 61955, x: 4762783.8037, y: 9212147.8583 },\n { id: 61956, x: 4762775.8145, y: 9198501.1 },\n { id: 57857, x: 4630996.9334, y: 9303205.6486 },\n { id: 49661, x: 4885447.4191, y: 9509114.2199 },\n { id: 57860, x: 4627923.2392, y: 9296979.7874 },\n { id: 61960, x: 4758377.3558, y: 9203736.1486 },\n { id: 475, x: 4836726.3188, y: 9273977.4058 },\n { id: 61962, x: 4757351.7014, y: 9212291.8996 },\n { id: 477, x: 4834924.4301, y: 9267496.5633 },\n { id: 61963, x: 4756488.6874, y: 9194834.5209 },\n { id: 57864, x: 4624868.6495, y: 9300329.9843 },\n { id: 49666, x: 4883245.8851, y: 9516498.8943 },\n { id: 61964, x: 4755052.4484, y: 9207886.9269 },\n { id: 49667, x: 4882973.0376, y: 9501293.4695 },\n { id: 20974, x: 4706491.7137, y: 9480101.2426 },\n { id: 479, x: 4834168.6286, y: 9258703.2556 },\n { id: 20976, x: 4705326.0983, y: 9494403.4179 },\n { id: 61967, x: 4752580.1141, y: 9206694.0057 },\n { id: 20977, x: 4704711.5917, y: 9498828.728 },\n { id: 61968, x: 4751701.8428, y: 9212048.2925 },\n { id: 57869, x: 4620216.738, y: 9305684.3838 },\n { id: 20978, x: 4703849.5705, y: 9484155.9938 },\n { id: 61969, x: 4752085.1157, y: 9195422.4911 },\n { id: 49672, x: 4880035.0127, y: 9510606.5864 },\n { id: 484, x: 4830033.4486, y: 9258988.359 },\n { id: 485, x: 4829960.2798, y: 9272193.4455 },\n { id: 20981, x: 4699850.0495, y: 9491235.7572 },\n { id: 20982, x: 4699733.4692, y: 9482050.6407 },\n { id: 487, x: 4828433.7439, y: 9266006.9879 },\n { id: 20983, x: 4698100.9823, y: 9486856.7422 },\n { id: 20984, x: 4698019.8495, y: 9479552.2065 },\n { id: 20986, x: 4696280.0341, y: 9496004.1696 },\n { id: 493, x: 4823727.2905, y: 9258689.0875 },\n { id: 20992, x: 4692049.2218, y: 9486155.3009 },\n { id: 29192, x: 4651466.8423, y: 9402057.8783 },\n { id: 20994, x: 4690144.4306, y: 9494716.3002 },\n { id: 29193, x: 4650138.7466, y: 9396555.4752 },\n { id: 29194, x: 4649799.1093, y: 9413040.9487 },\n { id: 29195, x: 4649494.8898, y: 9406911.1717 },\n { id: 29198, x: 4646019.6576, y: 9406772.9866 },\n { id: 49695, x: 4769470.6228, y: 9256617.5132 },\n { id: 29202, x: 4644397.3352, y: 9410623.928 },\n { id: 45599, x: 4794188.4582, y: 9510429.1212 },\n { id: 45601, x: 4791161.8936, y: 9517777.8128 },\n { id: 29207, x: 4640135.9403, y: 9406367.0681 },\n { id: 45604, x: 4788415.9913, y: 9503435.3435 },\n { id: 29209, x: 4639164.2783, y: 9411816.1191 },\n { id: 8714, x: 4848049.8492, y: 9255630.8358 },\n { id: 8715, x: 4848835.7253, y: 9242357.4167 },\n { id: 45607, x: 4785325.5095, y: 9510906.1729 },\n { id: 8717, x: 4845727.147, y: 9248614.4947 },\n { id: 45610, x: 4782658.807, y: 9518991.4479 },\n { id: 29216, x: 4635251.0204, y: 9403411.8704 },\n { id: 8721, x: 4843319.9278, y: 9240197.7556 },\n { id: 29217, x: 4635034.1653, y: 9408086.1027 },\n { id: 37420, x: 4836011.6723, y: 9456609.851 },\n { id: 37424, x: 4830456.9278, y: 9443415.5192 },\n { id: 37425, x: 4830101.443, y: 9451389.3776 },\n { id: 16933, x: 4750679.4858, y: 9570893.9081 },\n { id: 37429, x: 4826482.8061, y: 9457058.8462 },\n { id: 37430, x: 4824899.1065, y: 9446536.6968 },\n { id: 33332, x: 4873272.9573, y: 9477182.7902 },\n { id: 16936, x: 4747871.3582, y: 9566317.7187 },\n { id: 33335, x: 4871712.0554, y: 9465576.8242 },\n { id: 37435, x: 4819604.7964, y: 9444228.3359 },\n { id: 37437, x: 4818870.6986, y: 9454298.786 },\n { id: 33341, x: 4867033.9039, y: 9472923.1098 },\n { id: 33345, x: 4863182.0028, y: 9462816.2352 },\n { id: 33350, x: 4859304.5496, y: 9478526.1165 },\n { id: 33351, x: 4858246.0587, y: 9470724.6576 },\n { id: 49784, x: 4750878.321, y: 9266328.3676 },\n { id: 53895, x: 4670746.7038, y: 9279587.7388 },\n { id: 53897, x: 4669120.0791, y: 9285320.411 },\n { id: 53901, x: 4664913.6139, y: 9290491.2373 },\n { id: 41606, x: 4834254.376, y: 9622924.9319 },\n { id: 53908, x: 4656422.0232, y: 9288550.5355 },\n { id: 41612, x: 4824507.3562, y: 9628713.9773 },\n { id: 41615, x: 4820309.1051, y: 9624816.9796 },\n { id: 49828, x: 4752720.7574, y: 9293969.6209 },\n { id: 49830, x: 4751055.0147, y: 9275939.6982 },\n { id: 49831, x: 4750434.3242, y: 9286401.9405 },\n { id: 12941, x: 4801260.9928, y: 9226843.8113 },\n { id: 12943, x: 4800233.1302, y: 9231687.0195 },\n { id: 12944, x: 4800869.904, y: 9216392.7294 },\n { id: 12945, x: 4798639.0374, y: 9221461.528 },\n { id: 12949, x: 4795629.9296, y: 9225827.4067 },\n { id: 12952, x: 4793995.0593, y: 9231581.7817 },\n { id: 12953, x: 4794616.7021, y: 9218527.0784 },\n { id: 12957, x: 4790848.3042, y: 9216140.4981 },\n { id: 12958, x: 4789927.5958, y: 9226737.6547 },\n { id: 8861, x: 4857019.2476, y: 9221178.6753 },\n { id: 58050, x: 4652676.9146, y: 9346215.4759 },\n { id: 12961, x: 4787907.4665, y: 9220747.1236 },\n { id: 8862, x: 4856177.5288, y: 9230624.9189 },\n { id: 58051, x: 4650226.3441, y: 9339137.3643 },\n { id: 58053, x: 4648514.6934, y: 9352993.1742 },\n { id: 58054, x: 4648142.5359, y: 9344165.4678 },\n { id: 8868, x: 4851378.0334, y: 9234162.9123 },\n { id: 58057, x: 4643851.7028, y: 9340144.043 },\n { id: 8870, x: 4851932.3897, y: 9218395.8656 },\n { id: 58059, x: 4642354.5013, y: 9350246.6567 },\n { id: 8871, x: 4849795.8324, y: 9227620.695 },\n { id: 29370, x: 4630840.2562, y: 9402566.0378 },\n { id: 58064, x: 4636990.1671, y: 9345333.2904 },\n { id: 29371, x: 4630208.6058, y: 9396986.112 },\n { id: 58065, x: 4636528.1178, y: 9335926.217 },\n { id: 29372, x: 4630030.5493, y: 9415952.8329 },\n { id: 29373, x: 4629313.409, y: 9405628.755 },\n { id: 8879, x: 4843906.3767, y: 9229938.3375 },\n { id: 41672, x: 4812857.3964, y: 9622049.9202 },\n { id: 8881, x: 4837586.8453, y: 9136357.4168 },\n { id: 17080, x: 4741231.9072, y: 9569025.6664 },\n { id: 17081, x: 4738370.4287, y: 9572701.3941 },\n { id: 29380, x: 4623985.8097, y: 9397067.2413 },\n { id: 29381, x: 4622804.7725, y: 9407272.4569 },\n { id: 17084, x: 4735648.1734, y: 9562281.9255 },\n { id: 29382, x: 4622214.5023, y: 9412459.4556 },\n { id: 17085, x: 4732252.9743, y: 9571576.284 },\n { id: 29383, x: 4621761.3949, y: 9401030.7217 },\n { id: 691, x: 4839852.0237, y: 9290878.7619 },\n { id: 693, x: 4838511.8242, y: 9296665.3291 },\n { id: 29390, x: 4615683.4543, y: 9406926.3632 },\n { id: 25292, x: 4687986.1532, y: 9426864.6067 },\n { id: 25293, x: 4687589.699, y: 9434232.2077 },\n { id: 699, x: 4833349.1906, y: 9281289.4495 },\n { id: 700, x: 4833125.422, y: 9290615.5418 },\n { id: 4801, x: 4783558.1719, y: 9313190.0408 },\n { id: 702, x: 4831288.8559, y: 9295720.9212 },\n { id: 25297, x: 4684536.7154, y: 9434264.7776 },\n { id: 70387, x: 4674875.3086, y: 9181516.347 },\n { id: 25298, x: 4682458.2948, y: 9423821.6512 },\n { id: 25299, x: 4682131.5002, y: 9431271.1993 },\n { id: 4804, x: 4780996.6516, y: 9306082.9978 },\n { id: 70389, x: 4674661.2359, y: 9174307.979 },\n { id: 709, x: 4825600.0534, y: 9284915.1699 },\n { id: 25304, x: 4676589.8542, y: 9424622.6937 },\n { id: 25305, x: 4676129.3752, y: 9433223.2217 },\n { id: 711, x: 4823215.5234, y: 9290803.4262 },\n { id: 70395, x: 4665757.2508, y: 9176378.3428 },\n { id: 4811, x: 4776578.6861, y: 9299673.7512 },\n { id: 25307, x: 4674927.6396, y: 9419311.8527 },\n { id: 4812, x: 4775971.5976, y: 9312074.4884 },\n { id: 25310, x: 4671389.8497, y: 9437164.1694 },\n { id: 70400, x: 4661799.7956, y: 9179487.391 },\n { id: 25311, x: 4670613.4065, y: 9429427.1504 },\n { id: 70401, x: 4661179.7574, y: 9169521.9041 },\n { id: 4824, x: 4767919.309, y: 9308288.8317 },\n { id: 4825, x: 4766661.2335, y: 9297234.9835 },\n { id: 33532, x: 4871724.6831, y: 9499139.343 },\n { id: 45830, x: 4797656.0716, y: 9538327.8769 },\n { id: 45831, x: 4795619.198, y: 9525146.1057 },\n { id: 33534, x: 4869539.4506, y: 9489934.9685 },\n { id: 45832, x: 4794485.6379, y: 9534883.444 },\n { id: 33535, x: 4868670.7165, y: 9481806.5533 },\n { id: 33537, x: 4866825.9828, y: 9493186.8166 },\n { id: 45837, x: 4790643.4956, y: 9529412.7699 },\n { id: 33542, x: 4861732.2345, y: 9499620.0601 },\n { id: 45840, x: 4787849.6948, y: 9538696.7903 },\n { id: 45841, x: 4786920.4543, y: 9525740.7226 },\n { id: 45842, x: 4786005.1092, y: 9531458.8958 },\n { id: 33546, x: 4858860.7794, y: 9486129.3326 },\n { id: 54050, x: 4669728.5375, y: 9257219.4884 },\n { id: 54052, x: 4667129.1272, y: 9264539.3016 },\n { id: 54057, x: 4662213.6412, y: 9259775.176 },\n { id: 54059, x: 4660830.7442, y: 9252971.4879 },\n { id: 54061, x: 4658706.1121, y: 9270132.3704 },\n { id: 54064, x: 4656102.1684, y: 9263751.8848 },\n { id: 49969, x: 4742999.9225, y: 9295096.9545 },\n { id: 58171, x: 4633974.5871, y: 9347016.682 },\n { id: 49973, x: 4739655.7396, y: 9280964.4417 },\n { id: 49975, x: 4738559.3196, y: 9287827.8248 },\n { id: 58175, x: 4632334.1098, y: 9351872.9423 },\n { id: 37684, x: 4809783.2047, y: 9455647.2795 },\n { id: 13090, x: 4801403.8025, y: 9250279.3616 },\n { id: 37685, x: 4809411.0107, y: 9445694.0202 },\n { id: 13092, x: 4800212.548, y: 9255927.6325 },\n { id: 58182, x: 4626799.2661, y: 9340067.9274 },\n { id: 49984, x: 4730346.8123, y: 9276161.3399 },\n { id: 13094, x: 4799793.9271, y: 9244878.3463 },\n { id: 58184, x: 4622897.4857, y: 9336560.1046 },\n { id: 58185, x: 4622295.4515, y: 9348610.7886 },\n { id: 13096, x: 4799093.4676, y: 9236585.3946 },\n { id: 58186, x: 4622202.7556, y: 9342709.6972 },\n { id: 37691, x: 4801873.8434, y: 9446764.8815 },\n { id: 13099, x: 4796730.133, y: 9253526.573 },\n { id: 58189, x: 4619160.851, y: 9338667.6548 },\n { id: 58190, x: 4618479.7585, y: 9333790.7762 },\n { id: 13101, x: 4796132.3536, y: 9247413.8606 },\n { id: 13103, x: 4795062.0927, y: 9241455.3147 },\n { id: 13110, x: 4791093.2299, y: 9236893.9202 },\n { id: 13113, x: 4788819.9783, y: 9249092.6686 },\n { id: 13115, x: 4788129.3951, y: 9244372.1381 },\n { id: 70547, x: 4689568.7775, y: 9213461.2811 },\n { id: 70548, x: 4688613.9197, y: 9222197.845 },\n { id: 70555, x: 4681865.3758, y: 9224545.841 },\n { id: 70556, x: 4677288.5882, y: 9231133.3795 },\n { id: 70557, x: 4677320.6075, y: 9217979.5813 },\n { id: 21378, x: 4706292.1278, y: 9461195.3735 },\n { id: 21382, x: 4702668.686, y: 9469267.9735 },\n { id: 21383, x: 4702196.467, y: 9462979.6077 },\n { id: 29582, x: 4631516.499, y: 9383560.3445 },\n { id: 21384, x: 4701782.3348, y: 9473772.5197 },\n { id: 41880, x: 4799660.7191, y: 9367867.7719 },\n { id: 29583, x: 4630421.847, y: 9388223.3985 },\n { id: 29585, x: 4628533.7768, y: 9391404.5152 },\n { id: 41883, x: 4796799.0335, y: 9375012.8734 },\n { id: 29586, x: 4627586.5579, y: 9380199.0496 },\n { id: 29587, x: 4627215.3274, y: 9375525.2476 },\n { id: 29588, x: 4625696.1607, y: 9387483.1285 },\n { id: 21390, x: 4697191.9075, y: 9467474.5788 },\n { id: 17292, x: 4744261.3395, y: 9560964.536 },\n { id: 29590, x: 4624440.4817, y: 9390661.4805 },\n { id: 29591, x: 4624029.9134, y: 9384136.2481 },\n { id: 21395, x: 4693521.8957, y: 9475874.7463 },\n { id: 29594, x: 4622212.2885, y: 9388617.5781 },\n { id: 21396, x: 4692394.8374, y: 9468220.3336 },\n { id: 17297, x: 4741466.95, y: 9545374.4258 },\n { id: 29595, x: 4620758.5672, y: 9375359.3431 },\n { id: 17298, x: 4740669.2347, y: 9553742.0298 },\n { id: 29597, x: 4620524.8756, y: 9380054.7992 },\n { id: 21399, x: 4689148.2309, y: 9461609.1789 },\n { id: 41895, x: 4789617.1672, y: 9375483.7516 },\n { id: 29598, x: 4619196.9905, y: 9391688.682 },\n { id: 41897, x: 4789298.2569, y: 9362643.8842 },\n { id: 29600, x: 4618311.652, y: 9385631.1777 },\n { id: 29603, x: 4615771.1379, y: 9392691.6426 },\n { id: 17306, x: 4730814.2944, y: 9554477.2766 },\n { id: 58308, x: 4616334.817, y: 9260376.8414 },\n { id: 25523, x: 4688553.9625, y: 9451255.4475 },\n { id: 929, x: 4819657.1525, y: 9278275.2507 },\n { id: 58317, x: 4604157.9747, y: 9252060.2755 },\n { id: 58318, x: 4603836.196, y: 9266046.0703 },\n { id: 932, x: 4816342.279, y: 9292978.8689 },\n { id: 934, x: 4815064.1922, y: 9283423.1912 },\n { id: 25530, x: 4683272.8319, y: 9454298.4483 },\n { id: 9135, x: 4846033.4925, y: 9147799.8431 },\n { id: 5036, x: 4799951.402, y: 9339360.8616 },\n { id: 25532, x: 4681419.4311, y: 9447093.2347 },\n { id: 938, x: 4811112.6592, y: 9291172.5639 },\n { id: 25533, x: 4681290.7967, y: 9438305.5457 },\n { id: 9138, x: 4845337.3548, y: 9137557.5574 },\n { id: 9139, x: 4841579.7679, y: 9153652.2286 },\n { id: 5040, x: 4796564.3268, y: 9346379.8336 },\n { id: 13239, x: 4783890.221, y: 9255262.4413 },\n { id: 25537, x: 4676790.1052, y: 9452017.4249 },\n { id: 13240, x: 4784913.6647, y: 9237322.3579 },\n { id: 5042, x: 4795396.4615, y: 9355088.5066 },\n { id: 943, x: 4806958.7449, y: 9284349.8621 },\n { id: 25538, x: 4676465.958, y: 9445831.7661 },\n { id: 9143, x: 4840726.116, y: 9143218.2832 },\n { id: 13243, x: 4781289.6419, y: 9246430.705 },\n { id: 5047, x: 4789690.5561, y: 9339769.7403 },\n { id: 25543, x: 4671942.3548, y: 9453673.0023 },\n { id: 13248, x: 4777930.7073, y: 9252419.6531 },\n { id: 5050, x: 4786666.1265, y: 9350440.1717 },\n { id: 13249, x: 4778771.3919, y: 9237944.5219 },\n { id: 9151, x: 4834542.7743, y: 9148650.2057 },\n { id: 13256, x: 4772813.4243, y: 9252676.8661 },\n { id: 13257, x: 4773167.8006, y: 9244030.9694 },\n { id: 13258, x: 4771443.1739, y: 9238481.6599 },\n { id: 9160, x: 4829833.2647, y: 9140131.635 },\n { id: 66550, x: 4732990.4778, y: 9178590.3533 },\n { id: 66552, x: 4731342.8714, y: 9186160.2913 },\n { id: 46062, x: 4778604.6195, y: 9524195.7208 },\n { id: 46063, x: 4778425.9606, y: 9537125.5324 },\n { id: 66561, x: 4724781.9857, y: 9182966.6126 },\n { id: 66565, x: 4722751.8303, y: 9172361.8033 },\n { id: 46070, x: 4773326.0919, y: 9530855.1879 },\n { id: 46071, x: 4772034.1409, y: 9539440.2766 },\n { id: 46072, x: 4771155.391, y: 9525665.2653 },\n { id: 66571, x: 4715615.4422, y: 9180164.8758 },\n { id: 46079, x: 4764837.1469, y: 9524585.3074 },\n { id: 46081, x: 4763570.5947, y: 9530993.068 },\n { id: 33792, x: 4855171.0873, y: 9494393.2576 },\n { id: 33794, x: 4853331.2073, y: 9484927.165 },\n { id: 33800, x: 4848195.8382, y: 9489851.1579 },\n { id: 33807, x: 4844245.1168, y: 9481910.2723 },\n { id: 33810, x: 4842421.3832, y: 9486886.9252 },\n { id: 33815, x: 4839071.9102, y: 9499040.6739 },\n { id: 58429, x: 4611919.8452, y: 9273450.7755 },\n { id: 58430, x: 4611663.6062, y: 9280508.6941 },\n { id: 58435, x: 4605511.6059, y: 9279699.9308 },\n { id: 58436, x: 4605197.6669, y: 9291033.6024 },\n { id: 50242, x: 4745846.7991, y: 9258965.3273 },\n { id: 50246, x: 4740830.7651, y: 9263775.2496 },\n { id: 50247, x: 4740301.2038, y: 9271587.2296 },\n { id: 50251, x: 4737493.7692, y: 9258288.3044 },\n { id: 50260, x: 4730285.1831, y: 9263971.8483 },\n { id: 29767, x: 4651531.0989, y: 9418377.9752 },\n { id: 42066, x: 4780654.9587, y: 9359525.0009 },\n { id: 42067, x: 4780497.1949, y: 9369826.2717 },\n { id: 29772, x: 4649057.2554, y: 9430966.8923 },\n { id: 50268, x: 4735281.1477, y: 9356986.492 },\n { id: 54374, x: 4689515.6522, y: 9309582.0994 },\n { id: 29780, x: 4643923.4003, y: 9422948.8886 },\n { id: 29781, x: 4641940.3573, y: 9428548.0271 },\n { id: 54376, x: 4687852.5009, y: 9300789.4923 },\n { id: 29783, x: 4641645.4422, y: 9433452.5435 },\n { id: 42081, x: 4770367.7338, y: 9367025.1177 },\n { id: 54379, x: 4685711.9207, y: 9313130.4187 },\n { id: 29787, x: 4637612.4846, y: 9424486.332 },\n { id: 54382, x: 4681464.628, y: 9298294.0378 },\n { id: 29788, x: 4637242.9609, y: 9431823.7543 },\n { id: 42086, x: 4767314.1784, y: 9374284.8026 },\n { id: 29789, x: 4635943.0956, y: 9418491.3412 },\n { id: 54384, x: 4679905.5938, y: 9308782.8407 },\n { id: 42087, x: 4766719.3032, y: 9359949.1683 },\n { id: 29791, x: 4634200.0393, y: 9430973.8997 },\n { id: 29792, x: 4633628.0891, y: 9436669.4696 },\n { id: 21596, x: 4724208.1952, y: 9514116.8155 },\n { id: 54389, x: 4675588.0617, y: 9313778.1147 },\n { id: 21597, x: 4723462.1132, y: 9508379.4144 },\n { id: 54390, x: 4674601.6426, y: 9304472.819 },\n { id: 21599, x: 4721438.1509, y: 9503261.7597 },\n { id: 21601, x: 4720323.1997, y: 9517444.5135 },\n { id: 21602, x: 4718926.5646, y: 9509719.9549 },\n { id: 21606, x: 4715643.7397, y: 9518572.8746 },\n { id: 21607, x: 4714902.1178, y: 9505435.5869 },\n { id: 38006, x: 4817157.2884, y: 9434639.667 },\n { id: 21610, x: 4712276.856, y: 9513033.0163 },\n { id: 38008, x: 4816980.4388, y: 9421935.6584 },\n { id: 21612, x: 4709409.9009, y: 9517653.8317 },\n { id: 38009, x: 4816323.6606, y: 9428112.5393 },\n { id: 21613, x: 4709342.679, y: 9509652.9985 },\n { id: 21615, x: 4707943.7211, y: 9503450.0561 },\n { id: 38012, x: 4811903.5758, y: 9438382.9452 },\n { id: 38015, x: 4806040.5961, y: 9427792.4978 },\n { id: 38017, x: 4805562.6185, y: 9434466.8741 },\n { id: 38018, x: 4805494.5343, y: 9419782.6505 },\n { id: 25722, x: 4667606.2189, y: 9457147.6103 },\n { id: 70812, x: 4685121.0419, y: 9250313.4863 },\n { id: 25723, x: 4667289.2029, y: 9450837.5918 },\n { id: 70814, x: 4684109.8756, y: 9238978.8454 },\n { id: 25725, x: 4666140.6824, y: 9444096.3142 },\n { id: 25730, x: 4662171.3766, y: 9452384.2794 },\n { id: 25732, x: 4661195.3876, y: 9441941.472 },\n { id: 25736, x: 4657724.4902, y: 9446150.3168 },\n { id: 25739, x: 4656278.3393, y: 9452180.4251 },\n { id: 25741, x: 4654495.7922, y: 9439943.9097 },\n { id: 17543, x: 4725783.8858, y: 9364765.6211 },\n { id: 25742, x: 4653831.3627, y: 9452164.1792 },\n { id: 17546, x: 4723689.0707, y: 9370040.2377 },\n { id: 17548, x: 4721872.0281, y: 9376187.4628 },\n { id: 17550, x: 4720863.1753, y: 9357074.8756 },\n { id: 17554, x: 4718545.5866, y: 9362622.9088 },\n { id: 9357, x: 4845073.9761, y: 9164566.1941 },\n { id: 17556, x: 4716650.6096, y: 9374094.4692 },\n { id: 17557, x: 4715749.405, y: 9358110.1504 },\n { id: 17558, x: 4714249.6768, y: 9368412.4574 },\n { id: 9360, x: 4842676.0497, y: 9171938.2701 },\n { id: 46253, x: 4776550.7478, y: 9512362.3685 },\n { id: 46254, x: 4775298.56, y: 9505387.0592 },\n { id: 17562, x: 4710846.701, y: 9368663.0244 },\n { id: 46256, x: 4774701.9119, y: 9517197.1062 },\n { id: 13465, x: 4785262.1787, y: 9231111.3845 },\n { id: 9367, x: 4837254.9346, y: 9171483.6798 },\n { id: 17566, x: 4708937.8674, y: 9358635.6657 },\n { id: 13467, x: 4783986.1551, y: 9221278.3975 },\n { id: 46260, x: 4770957.3653, y: 9501910.8916 },\n { id: 13468, x: 4784025.1879, y: 9216548.0372 },\n { id: 46261, x: 4769421.1447, y: 9517932.1477 },\n { id: 13470, x: 4782104.5911, y: 9226285.8835 },\n { id: 9371, x: 4835232.891, y: 9164919.0545 },\n { id: 13472, x: 4780674.088, y: 9232913.4084 },\n { id: 46265, x: 4766566.9553, y: 9509040.5654 },\n { id: 13474, x: 4780765.3835, y: 9216564.8062 },\n { id: 9377, x: 4830890.9264, y: 9176229.2424 },\n { id: 13477, x: 4778009.5576, y: 9222231.5973 },\n { id: 13479, x: 4775481.4219, y: 9233214.5992 },\n { id: 9381, x: 4829667.8698, y: 9156851.3341 },\n { id: 13481, x: 4774590.5297, y: 9226615.6189 },\n { id: 9383, x: 4827778.6102, y: 9166034.4905 },\n { id: 5284, x: 4780635.9334, y: 9345751.57 },\n { id: 13485, x: 4773334.3742, y: 9216325.5278 },\n { id: 5293, x: 4770702.6606, y: 9345298.3287 },\n { id: 5294, x: 4770099.65, y: 9352542.9849 },\n { id: 1226, x: 4821524.733, y: 9265198.6883 },\n { id: 1232, x: 4815647.7538, y: 9274399.4872 },\n { id: 50421, x: 4726107.8772, y: 9255645.5543 },\n { id: 1236, x: 4813827.9727, y: 9266589.3529 },\n { id: 50425, x: 4721724.9018, y: 9266959.4333 },\n { id: 1238, x: 4811537.5896, y: 9259130.5836 },\n { id: 42231, x: 4797209.1623, y: 9382922.5565 },\n { id: 34035, x: 4855043.0017, y: 9464047.7886 },\n { id: 1243, x: 4806561.0788, y: 9258606.4455 },\n { id: 1244, x: 4806126.0395, y: 9267014.888 },\n { id: 50434, x: 4715222.3574, y: 9256777.5228 },\n { id: 34038, x: 4852052.8618, y: 9470834.0942 },\n { id: 1246, x: 4805092.2953, y: 9273357.1845 },\n { id: 42241, x: 4790125.0522, y: 9387272.3031 },\n { id: 50440, x: 4711832.91, y: 9272052.9407 },\n { id: 34044, x: 4846905.865, y: 9475489.957 },\n { id: 29945, x: 4651234.5863, y: 9438144.8446 },\n { id: 29946, x: 4651125.1654, y: 9444382.5903 },\n { id: 34047, x: 4844636.9635, y: 9465954.1884 },\n { id: 29948, x: 4649332.7572, y: 9455177.8097 },\n { id: 29949, x: 4648984.321, y: 9445496.0036 },\n { id: 34051, x: 4840471.1144, y: 9477196.7395 },\n { id: 42250, x: 4783402.7387, y: 9392735.1056 },\n { id: 34054, x: 4837023.9618, y: 9470223.9826 },\n { id: 29956, x: 4642251.0303, y: 9451369.2205 },\n { id: 29958, x: 4640892.2149, y: 9439366.7931 },\n { id: 29959, x: 4640789.1552, y: 9456787.4621 },\n { id: 29960, x: 4639442.5445, y: 9447843.2559 },\n { id: 29966, x: 4635894.1811, y: 9450939.3178 },\n { id: 29969, x: 4635065.4216, y: 9456978.7106 },\n { id: 70968, x: 4674702.6516, y: 9245625.2228 },\n { id: 70972, x: 4671990.1204, y: 9236886.3849 },\n { id: 70975, x: 4668654.255, y: 9248755.561 },\n { id: 70977, x: 4665628.2776, y: 9234674.7299 },\n { id: 70980, x: 4663081.7945, y: 9243889.0377 },\n { id: 70982, x: 4662005.1343, y: 9235207.6215 },\n { id: 9504, x: 4822652.2106, y: 9174775.067 },\n { id: 9512, x: 4819178.0005, y: 9158575.1439 },\n { id: 9514, x: 4817518.3197, y: 9165118.9513 },\n { id: 25913, x: 4669426.1725, y: 9422831.5379 },\n { id: 9517, x: 4815412.6676, y: 9172339.7346 },\n { id: 9519, x: 4814099.7541, y: 9161915.4211 },\n { id: 25917, x: 4665146.5021, y: 9436007.2288 },\n { id: 25918, x: 4664915.4335, y: 9424181.2444 },\n { id: 9523, x: 4810365.7348, y: 9174360.5667 },\n { id: 25920, x: 4664607.3134, y: 9429274.8013 },\n { id: 9524, x: 4810469.1489, y: 9168864.4882 },\n { id: 25923, x: 4662056.4035, y: 9432302.8 },\n { id: 9527, x: 4809623.6186, y: 9159061.5833 },\n { id: 25924, x: 4661296.6112, y: 9422717.6018 },\n { id: 25926, x: 4659831.6081, y: 9437181.1515 },\n { id: 25927, x: 4658222.1618, y: 9426449.4165 },\n { id: 25928, x: 4657917.6553, y: 9418849.5194 },\n { id: 25933, x: 4655512.4128, y: 9429409.807 },\n { id: 25934, x: 4655069.9435, y: 9422518.3634 },\n { id: 58727, x: 4616223.7253, y: 9311041.1873 },\n { id: 58730, x: 4613912.2785, y: 9306694.8605 },\n { id: 30038, x: 4632253.4216, y: 9454724.2441 },\n { id: 58732, x: 4613263.3846, y: 9295299.4386 },\n { id: 30039, x: 4631967.6111, y: 9445470.5072 },\n { id: 30040, x: 4629580.4649, y: 9440023.34 },\n { id: 58734, x: 4610952.5287, y: 9300642.6659 },\n { id: 5447, x: 4762206.6125, y: 9262918.848 },\n { id: 58735, x: 4610369.0673, y: 9297897.7028 },\n { id: 30042, x: 4624958.5239, y: 9442641.1713 },\n { id: 58736, x: 4609487.9714, y: 9304897.023 },\n { id: 58739, x: 4605622.7934, y: 9306852.5649 },\n { id: 58740, x: 4605254.9384, y: 9302536.1532 },\n { id: 58742, x: 4603432.1259, y: 9299623.473 },\n { id: 17758, x: 4707053.8479, y: 9376129.0608 },\n { id: 17759, x: 4706842.8135, y: 9365277.9941 },\n { id: 17762, x: 4704652.5716, y: 9357458.1469 },\n { id: 17763, x: 4703256.6346, y: 9373525.9993 },\n { id: 38261, x: 4831868.7728, y: 9463076.2342 },\n { id: 17766, x: 4701602.0603, y: 9360833.0467 },\n { id: 17769, x: 4700041.7163, y: 9367005.3842 },\n { id: 9572, x: 4827532.2368, y: 9147365.2122 },\n { id: 50564, x: 4726925.6182, y: 9287531.1363 },\n { id: 17772, x: 4699196.8169, y: 9375017.9375 },\n { id: 38268, x: 4825015.681, y: 9462666.4061 },\n { id: 9575, x: 4825409.3431, y: 9152798.1892 },\n { id: 38269, x: 4824605.0683, y: 9469224.3248 },\n { id: 17774, x: 4696417.8319, y: 9358063.7714 },\n { id: 17775, x: 4696399.0754, y: 9364668.72 },\n { id: 50568, x: 4722331.3372, y: 9291804.7701 },\n { id: 17776, x: 4695501.8727, y: 9372221.047 },\n { id: 9578, x: 4823917.8328, y: 9142058.5724 },\n { id: 50569, x: 4721007.8899, y: 9280383.026 },\n { id: 50572, x: 4716060.1284, y: 9287836.7888 },\n { id: 9582, x: 4820309.2619, y: 9146968.6907 },\n { id: 17782, x: 4691578.9784, y: 9374242.4784 },\n { id: 9585, x: 4815827.2812, y: 9149907.4831 },\n { id: 54687, x: 4689349.1015, y: 9329353.3693 },\n { id: 54688, x: 4688384.0072, y: 9320783.5453 },\n { id: 54689, x: 4685643.0426, y: 9333815.1182 },\n { id: 54693, x: 4682743.1087, y: 9327057.6682 },\n { id: 54695, x: 4678709.8035, y: 9319608.5901 },\n { id: 54696, x: 4678258.2671, y: 9329973.1621 },\n { id: 42400, x: 4793987.2145, y: 9417439.2319 },\n { id: 54699, x: 4673431.221, y: 9317453.6865 },\n { id: 42402, x: 4790980.7278, y: 9399787.4112 },\n { id: 54700, x: 4673202.3769, y: 9329799.7691 },\n { id: 42404, x: 4790423.8712, y: 9406193.6103 },\n { id: 42410, x: 4786322.6848, y: 9411539.8415 },\n { id: 42414, x: 4782932.0173, y: 9401843.6822 },\n { id: 71117, x: 4674842.4016, y: 9210994.1493 },\n { id: 71123, x: 4668785.9957, y: 9216565.5296 },\n { id: 71127, x: 4664378.3982, y: 9227088.6002 },\n { id: 71132, x: 4657974.2707, y: 9217337.9653 },\n { id: 34242, x: 4873112.0462, y: 9508603.8992 },\n { id: 34243, x: 4872405.3652, y: 9519000.446 },\n { id: 71136, x: 4633901.459, y: 9219213.8296 },\n { id: 71137, x: 4628863.7719, y: 9218723.4445 },\n { id: 34248, x: 4867799.5431, y: 9504597.3106 },\n { id: 34249, x: 4867160.1972, y: 9515522.9232 },\n { id: 71142, x: 4622520.5587, y: 9218353.5553 },\n { id: 71143, x: 4620713.0093, y: 9210664.9192 },\n { id: 34252, x: 4862529.0949, y: 9511389.9265 },\n { id: 34255, x: 4859378.6063, y: 9518620.6756 },\n { id: 1463, x: 4838905.0102, y: 9309838.5427 },\n { id: 1465, x: 4836115.2385, y: 9304492.3502 },\n { id: 1469, x: 4833680.6261, y: 9317303.2359 },\n { id: 1473, x: 4830008.8492, y: 9306399.9979 },\n { id: 1482, x: 4824549.025, y: 9311382.9253 },\n { id: 5597, x: 4764451.0267, y: 9282178.7627 },\n { id: 30194, x: 4631712.5138, y: 9421221.409 },\n { id: 5600, x: 4760688.8272, y: 9292499.6986 },\n { id: 5602, x: 4760468.0588, y: 9275666.252 },\n { id: 13802, x: 4901003.4114, y: 9160109.0823 },\n { id: 5604, x: 4758321.3513, y: 9283938.3419 },\n { id: 30199, x: 4629959.5086, y: 9426984.963 },\n { id: 30200, x: 4629805.7251, y: 9433020.6052 },\n { id: 13805, x: 4894847.0592, y: 9166754.4115 },\n { id: 30204, x: 4626663.7691, y: 9425846.7422 },\n { id: 30205, x: 4626502.2355, y: 9436956.086 },\n { id: 13809, x: 4892294.2701, y: 9176097.6572 },\n { id: 30207, x: 4625136.0641, y: 9430100.1093 },\n { id: 13811, x: 4892380.0089, y: 9160615.2961 },\n { id: 30211, x: 4620681.839, y: 9419277.8236 },\n { id: 13818, x: 4886629.1441, y: 9170460.9973 },\n { id: 13820, x: 4885645.7872, y: 9164582.6916 },\n { id: 13821, x: 4883895.9967, y: 9175412.8689 },\n { id: 22021, x: 4725028.1997, y: 9528004.1674 },\n { id: 22023, x: 4723338.8564, y: 9532553.72 },\n { id: 22025, x: 4721850.3883, y: 9521226.9202 },\n { id: 22029, x: 4718622.9585, y: 9537876.6558 },\n { id: 22032, x: 4716123.8443, y: 9527970.654 },\n { id: 22033, x: 4713874.3691, y: 9534298.3314 },\n { id: 22034, x: 4713453.3191, y: 9523156.7268 },\n { id: 22039, x: 4709290.4254, y: 9526644.4142 },\n { id: 22040, x: 4709090.4852, y: 9537852.0719 },\n { id: 38438, x: 4835848.4216, y: 9486237.7632 },\n { id: 38442, x: 4832386.2176, y: 9479994.3607 },\n { id: 38443, x: 4831173.8084, y: 9495593.687 },\n { id: 38448, x: 4826138.2255, y: 9480190.9738 },\n { id: 38450, x: 4825167.2843, y: 9490852.7192 },\n { id: 38456, x: 4818451.7321, y: 9485818.4888 },\n { id: 26167, x: 4685905.128, y: 9474815.7575 },\n { id: 26168, x: 4685875.9336, y: 9459074.8165 },\n { id: 26171, x: 4683131.865, y: 9469542.7091 },\n { id: 26177, x: 4678616.6993, y: 9460184.3425 },\n { id: 26178, x: 4677264.5477, y: 9468521.6201 },\n { id: 26181, x: 4674470.2448, y: 9474320.3954 },\n { id: 71272, x: 4637461.7903, y: 9250476.043 },\n { id: 71273, x: 4637975.7128, y: 9232353.1209 },\n { id: 46679, x: 4797456.3222, y: 9541955.4729 },\n { id: 26184, x: 4671810.9865, y: 9469578.3343 },\n { id: 26185, x: 4671512.6998, y: 9460525.1216 },\n { id: 71275, x: 4632973.4963, y: 9239619.0565 },\n { id: 46682, x: 4793945.8762, y: 9554216.7503 },\n { id: 30286, x: 4651802.5126, y: 9462458.2276 },\n { id: 46683, x: 4793884.0293, y: 9545475.3505 },\n { id: 71278, x: 4627712.5049, y: 9232484.7451 },\n { id: 46684, x: 4792749.767, y: 9557905.2138 },\n { id: 30288, x: 4649677.7907, y: 9476072.5048 },\n { id: 30290, x: 4649420.0379, y: 9468726.1516 },\n { id: 71281, x: 4623644.613, y: 9243253.5192 },\n { id: 46688, x: 4787676.3459, y: 9551871.5109 },\n { id: 42589, x: 4776911.8783, y: 9414462.197 },\n { id: 30292, x: 4647579.3203, y: 9459514.3837 },\n { id: 46690, x: 4786745.3285, y: 9544426.9173 },\n { id: 42591, x: 4774391.5161, y: 9408946.2589 },\n { id: 30294, x: 4643661.6628, y: 9460835.5642 },\n { id: 46691, x: 4786188.0216, y: 9560520.0297 },\n { id: 30297, x: 4635006.5531, y: 9462955.3112 },\n { id: 18000, x: 4724324.3429, y: 9385563.9729 },\n { id: 46694, x: 4782710.8139, y: 9547558.0974 },\n { id: 18001, x: 4724296.1793, y: 9383822.969 },\n { id: 18003, x: 4723725.7352, y: 9395366.1482 },\n { id: 42600, x: 4768496.2779, y: 9399023.2574 },\n { id: 42602, x: 4767625.283, y: 9411475.1309 },\n { id: 30305, x: 4651424.2222, y: 9497287.2585 },\n { id: 30308, x: 4650629.2137, y: 9482480.1034 },\n { id: 18011, x: 4718353.4089, y: 9385918.3304 },\n { id: 63101, x: 4749731.8818, y: 9200536.4294 },\n { id: 18013, x: 4717111.0932, y: 9396725.8603 },\n { id: 18014, x: 4716180.0008, y: 9382308.8328 },\n { id: 63105, x: 4747101.661, y: 9212769.314 },\n { id: 63108, x: 4745635.2829, y: 9193957.2673 },\n { id: 9821, x: 4842434.8556, y: 9195119.684 },\n { id: 63110, x: 4744414.4592, y: 9198338.8445 },\n { id: 18021, x: 4710578.3074, y: 9379118.4109 },\n { id: 63111, x: 4743967.083, y: 9198549.1355 },\n { id: 63112, x: 4743648.7981, y: 9202068.8099 },\n { id: 18023, x: 4709482.6525, y: 9387477.3389 },\n { id: 9825, x: 4840105.6362, y: 9182755.9557 },\n { id: 9826, x: 4838285.8284, y: 9189326.6044 },\n { id: 67213, x: 4731160.8262, y: 9206222.099 },\n { id: 67216, x: 4730083.4999, y: 9195658.6943 },\n { id: 67220, x: 4726308.7466, y: 9208474.3377 },\n { id: 30329, x: 4648031.0538, y: 9540706.1658 },\n { id: 63122, x: 4737201.1091, y: 9196038.6313 },\n { id: 67223, x: 4724957.6036, y: 9201547.198 },\n { id: 9838, x: 4832174.7527, y: 9183311.5195 },\n { id: 63126, x: 4734589.7008, y: 9201560.2996 },\n { id: 9841, x: 4829842.7262, y: 9192681.4664 },\n { id: 67228, x: 4721175.6893, y: 9195459.2895 },\n { id: 67229, x: 4721103.7565, y: 9194516.0863 },\n { id: 67230, x: 4719736.1237, y: 9203958.8828 },\n { id: 34440, x: 4871144.5782, y: 9537738.4608 },\n { id: 67236, x: 4714936.3957, y: 9204929.375 },\n { id: 34447, x: 4866231.4712, y: 9529388.1619 },\n { id: 34448, x: 4866109.1114, y: 9537036.3408 },\n { id: 34449, x: 4865847.0591, y: 9522967.9388 },\n { id: 1657, x: 4835382.6096, y: 9331745.562 },\n { id: 50848, x: 4710165.3579, y: 9290642.9736 },\n { id: 50852, x: 4708260.0556, y: 9278597.6372 },\n { id: 1664, x: 4830172.3052, y: 9324692.0888 },\n { id: 1666, x: 4829261.4956, y: 9334517.4804 },\n { id: 13965, x: 4899889.456, y: 9152950.6406 },\n { id: 34461, x: 4857497.727, y: 9533982.2202 },\n { id: 1669, x: 4826633.4628, y: 9318606.0293 },\n { id: 34464, x: 4855767.227, y: 9527398.7069 },\n { id: 1673, x: 4824355.4487, y: 9327256.2346 },\n { id: 50862, x: 4701065.8827, y: 9278407.7561 },\n { id: 13972, x: 4891601.0652, y: 9149284.9953 },\n { id: 50864, x: 4699875.1477, y: 9287092.518 },\n { id: 13973, x: 4889509.9673, y: 9155397.4035 },\n { id: 50869, x: 4694773.5521, y: 9280252.9862 },\n { id: 13979, x: 4886394.5401, y: 9141930.2726 },\n { id: 71382, x: 4656202.7538, y: 9235536.5605 },\n { id: 71388, x: 4649969.124, y: 9244270.2583 },\n { id: 71391, x: 4648015.7004, y: 9235753.3083 },\n { id: 71397, x: 4642301.2739, y: 9236718.7339 },\n { id: 71400, x: 4639589.5148, y: 9244323.2389 },\n { id: 30410, x: 4649906.4346, y: 9550149.2852 },\n { id: 30415, x: 4643507.2831, y: 9546026.4352 },\n { id: 30419, x: 4651493.2301, y: 9577152.6245 },\n { id: 30422, x: 4649671.4109, y: 9563620.9494 },\n { id: 30433, x: 4651499.3635, y: 9584713.8704 },\n { id: 26340, x: 4688764.4487, y: 9480016.7174 },\n { id: 59134, x: 4609908.2925, y: 9323517.6555 },\n { id: 26342, x: 4687737.218, y: 9497258.5392 },\n { id: 59135, x: 4609906.3517, y: 9315928.836 },\n { id: 26343, x: 4686121.2425, y: 9485533.9676 },\n { id: 59136, x: 4609230.8132, y: 9329834.3107 },\n { id: 26346, x: 4682519.5178, y: 9490420.7574 },\n { id: 26347, x: 4681998.3341, y: 9480910.2098 },\n { id: 26348, x: 4681250.609, y: 9485672.0735 },\n { id: 26349, x: 4680223.2125, y: 9497859.4949 },\n { id: 59143, x: 4604463.0465, y: 9314959.6726 },\n { id: 59144, x: 4602365.2978, y: 9321145.4782 },\n { id: 26352, x: 4677706.5927, y: 9479856.6406 },\n { id: 59146, x: 4600488.4505, y: 9329953.2843 },\n { id: 26354, x: 4676510.0276, y: 9491608.4715 },\n { id: 59148, x: 4599376.1017, y: 9316371.9209 },\n { id: 26359, x: 4673193.9403, y: 9485715.6668 },\n { id: 26365, x: 4670280.8495, y: 9479514.3334 },\n { id: 38675, x: 4818133.4766, y: 9491372.8944 },\n { id: 38677, x: 4813626.8345, y: 9496108.4262 },\n { id: 5886, x: 4759847.4993, y: 9310251.688 },\n { id: 38679, x: 4813217.9854, y: 9483040.3913 },\n { id: 38682, x: 4807675.7522, y: 9489438.2839 },\n { id: 38683, x: 4807373.217, y: 9483396.6173 },\n { id: 5891, x: 4755573.5037, y: 9303308.6466 },\n { id: 38688, x: 4802281.1187, y: 9497823.929 },\n { id: 5896, x: 4750739.1154, y: 9310848.1105 },\n { id: 5899, x: 4749423.5982, y: 9301718.1827 },\n { id: 67411, x: 4711920.345, y: 9209618.1009 },\n { id: 67414, x: 4710512.0177, y: 9202144.5226 },\n { id: 67422, x: 4703448.7216, y: 9207964.6436 },\n { id: 67423, x: 4702147.5922, y: 9201245.6891 },\n { id: 34631, x: 4849447.3722, y: 9527703.6766 },\n { id: 67425, x: 4701912.5686, y: 9192322.5262 },\n { id: 34635, x: 4847884.09, y: 9535292.8741 },\n { id: 34641, x: 4844446.1466, y: 9521140.043 },\n { id: 71537, x: 4653860.4183, y: 9229006.9425 },\n { id: 34648, x: 4839340.7673, y: 9534298.8295 },\n { id: 71541, x: 4650655.2255, y: 9219603.4979 },\n { id: 34651, x: 4837694.6601, y: 9522065.0247 },\n { id: 71544, x: 4645993.7795, y: 9225962.3379 },\n { id: 71546, x: 4643623.3344, y: 9214378.3704 },\n { id: 18277, x: 4723070.5097, y: 9404347.0747 },\n { id: 18278, x: 4721365.7273, y: 9413019.8856 },\n { id: 18283, x: 4717121.5695, y: 9401590.6469 },\n { id: 18284, x: 4715924.5302, y: 9415598.5065 },\n { id: 18286, x: 4714575.2034, y: 9407379.9868 },\n { id: 10089, x: 4835446.025, y: 9211855.599 },\n { id: 18288, x: 4712729.8717, y: 9397965.3755 },\n { id: 10090, x: 4835867.0246, y: 9202675.8608 },\n { id: 18290, x: 4712420.6645, y: 9398087.9965 },\n { id: 10093, x: 4833267.4295, y: 9197345.4284 },\n { id: 18293, x: 4709835.3602, y: 9408120.8274 },\n { id: 51087, x: 4710119.0748, y: 9265895.0173 },\n { id: 10101, x: 4826940.0691, y: 9209363.6815 },\n { id: 10104, x: 4825989.3429, y: 9201273.6787 },\n { id: 51095, x: 4704533.4236, y: 9260182.842 },\n { id: 22402, x: 4705552.9128, y: 9523046.4783 },\n { id: 22406, x: 4702625.0978, y: 9531428.7975 },\n { id: 22408, x: 4701351.1192, y: 9538950.215 },\n { id: 51102, x: 4699911.9588, y: 9267146.77 },\n { id: 22410, x: 4700266.4105, y: 9525289.7449 },\n { id: 1916, x: 4817698.7253, y: 9319168.8807 },\n { id: 22413, x: 4697144.3577, y: 9534177.6332 },\n { id: 1919, x: 4816118.1098, y: 9325011.1829 },\n { id: 22416, x: 4692762.6234, y: 9531222.4858 },\n { id: 22419, x: 4691904.4271, y: 9524516.0393 },\n { id: 22420, x: 4690986.0181, y: 9536095.2538 },\n { id: 1925, x: 4812355.4199, y: 9331780.9326 },\n { id: 1930, x: 4808557.0854, y: 9318358.1476 },\n { id: 1934, x: 4805716.5008, y: 9335249.2651 },\n { id: 1935, x: 4805381.5346, y: 9325253.3562 },\n { id: 26548, x: 4668877.3376, y: 9495106.3586 },\n { id: 26549, x: 4668251.246, y: 9487699.9492 },\n { id: 26555, x: 4663749.6672, y: 9480660.0096 },\n { id: 26556, x: 4663281.018, y: 9488393.9797 },\n { id: 26558, x: 4662312.8926, y: 9496424.1926 },\n { id: 26560, x: 4660049.1962, y: 9483046.6426 },\n { id: 26561, x: 4659584.6176, y: 9488111.4598 },\n { id: 26567, x: 4654703.7711, y: 9489171.9368 },\n { id: 26568, x: 4654362.8195, y: 9481843.5395 },\n { id: 71679, x: 4639648.8109, y: 9172118.056 },\n { id: 71680, x: 4637658.4845, y: 9177298.521 },\n { id: 71683, x: 4634537.5071, y: 9182017.6533 },\n { id: 71685, x: 4633928.2625, y: 9172866.9331 },\n { id: 71689, x: 4628310.6055, y: 9170112.7483 },\n { id: 71690, x: 4626413.9108, y: 9177772.6006 },\n { id: 71693, x: 4624311.2475, y: 9173834.3034 },\n { id: 30717, x: 4612244.422, y: 9356333.9102 },\n { id: 30718, x: 4611005.7043, y: 9371984.1099 },\n { id: 55313, x: 4672067.4194, y: 9322353.2247 },\n { id: 55314, x: 4667952.4533, y: 9333846.7731 },\n { id: 30720, x: 4608806.0963, y: 9366912.5381 },\n { id: 55318, x: 4664139.7469, y: 9318494.6262 },\n { id: 55320, x: 4660037.3082, y: 9327021.369 },\n { id: 30728, x: 4604411.9564, y: 9361364.8787 },\n { id: 30729, x: 4603489.9417, y: 9371522.3247 },\n { id: 30731, x: 4599606.5052, y: 9371864.925 },\n { id: 30732, x: 4599287.7658, y: 9363224.1284 },\n { id: 38957, x: 4816925.2259, y: 9474464.4014 },\n { id: 38958, x: 4815849.6977, y: 9460997.4237 },\n { id: 34859, x: 4854618.901, y: 9506607.8903 },\n { id: 34860, x: 4853179.0667, y: 9515691.2197 },\n { id: 38960, x: 4814041.8658, y: 9467160.0238 },\n { id: 38966, x: 4808190.5499, y: 9461479.5676 },\n { id: 6176, x: 4758708.0237, y: 9334702.1408 },\n { id: 34869, x: 4847974.856, y: 9500152.557 },\n { id: 38969, x: 4806016.5589, y: 9471404.8231 },\n { id: 34870, x: 4847329.8475, y: 9510093.2752 },\n { id: 6178, x: 4758089.482, y: 9327346.0167 },\n { id: 6180, x: 4755935.3207, y: 9316930.7844 },\n { id: 6184, x: 4753220.0845, y: 9324178.3519 },\n { id: 6186, x: 4751365.3009, y: 9330706.1401 },\n { id: 34880, x: 4840455.6466, y: 9511434.7285 },\n { id: 34884, x: 4839063.6664, y: 9506078.85 },\n { id: 14412, x: 4760275.743, y: 9368977.9582 },\n { id: 14414, x: 4756802.4543, y: 9358843.3669 },\n { id: 14417, x: 4754771.1608, y: 9365014.6979 },\n { id: 14419, x: 4751861.7557, y: 9372600.6546 },\n { id: 67710, x: 4711846.833, y: 9190148.136 },\n { id: 22622, x: 4705978.1319, y: 9512996.3506 },\n { id: 10325, x: 4819840.0579, y: 9214561.561 },\n { id: 51315, x: 4724016.4714, y: 9310430.6557 },\n { id: 14425, x: 4747028.3403, y: 9376444.3852 },\n { id: 51316, x: 4723878.238, y: 9304017.1372 },\n { id: 14426, x: 4746988.2498, y: 9363133.9908 },\n { id: 51317, x: 4722300.2824, y: 9296037.1151 },\n { id: 67714, x: 4708448.4434, y: 9178566.8892 },\n { id: 59517, x: 4596985.8396, y: 9332817.4989 },\n { id: 10331, x: 4816916.0012, y: 9200831.7779 },\n { id: 59519, x: 4596785.749, y: 9324087.3765 },\n { id: 22629, x: 4702298.7164, y: 9508576.0315 },\n { id: 51322, x: 4718391.0543, y: 9297684.6946 },\n { id: 22631, x: 4701114.675, y: 9503822.002 },\n { id: 59522, x: 4593977.6007, y: 9319218.8492 },\n { id: 51324, x: 4717167.9495, y: 9304666.798 },\n { id: 26731, x: 4667952.5477, y: 9474189.2227 },\n { id: 67721, x: 4702687.6188, y: 9172938.1944 },\n { id: 51326, x: 4716356.1295, y: 9310723.3108 },\n { id: 10336, x: 4812144.1006, y: 9215360.0915 },\n { id: 22634, x: 4700251.0349, y: 9512700.7323 },\n { id: 51328, x: 4713329.1726, y: 9303554.7918 },\n { id: 22636, x: 4697162.8056, y: 9515880.8835 },\n { id: 10339, x: 4809358.9986, y: 9206514.692 },\n { id: 59527, x: 4591430.2017, y: 9324505.2496 },\n { id: 26736, x: 4664944.845, y: 9467256.3992 },\n { id: 59528, x: 4591355.0323, y: 9329374.359 },\n { id: 51331, x: 4710895.6575, y: 9295324.2138 },\n { id: 22638, x: 4696860.9966, y: 9510294.2419 },\n { id: 71826, x: 4634443.602, y: 9193136.7514 },\n { id: 67727, x: 4697106.2553, y: 9180667.3483 },\n { id: 26738, x: 4664361.8107, y: 9462584.8077 },\n { id: 71827, x: 4632660.2284, y: 9208516.1903 },\n { id: 71828, x: 4632185.2591, y: 9200654.1565 },\n { id: 22641, x: 4692908.6404, y: 9507084.039 },\n { id: 59533, x: 4587253.3998, y: 9323529.5942 },\n { id: 26742, x: 4660889.3576, y: 9476988.8006 },\n { id: 22643, x: 4691521.4412, y: 9518859.907 },\n { id: 71831, x: 4627164.1589, y: 9208558.3751 },\n { id: 59534, x: 4587038.6645, y: 9312405.3737 },\n { id: 71832, x: 4628041.0766, y: 9188242.4546 },\n { id: 59535, x: 4583045.7216, y: 9314752.298 },\n { id: 26744, x: 4658899.3575, y: 9464738.891 },\n { id: 22645, x: 4691425.9179, y: 9501251.8775 },\n { id: 71833, x: 4626619.1184, y: 9195533.801 },\n { id: 26746, x: 4657936.1307, y: 9471006.6489 },\n { id: 26748, x: 4656118.613, y: 9459912.3038 },\n { id: 26750, x: 4654348.2763, y: 9477749.8086 },\n { id: 18552, x: 4707727.6949, y: 9400566.1308 },\n { id: 26752, x: 4652608.8804, y: 9472003.02 },\n { id: 18554, x: 4706344.2007, y: 9406794.1862 },\n { id: 18556, x: 4705139.2393, y: 9412313.2968 },\n { id: 18557, x: 4704229.5073, y: 9403574.4018 },\n { id: 18562, x: 4699692.7258, y: 9416533.5515 },\n { id: 18563, x: 4699309.884, y: 9406803.8599 },\n { id: 18567, x: 4696363.7964, y: 9416718.174 },\n { id: 43165, x: 4780228.2007, y: 9378192.0128 },\n { id: 18571, x: 4694719.2661, y: 9412811.3308 },\n { id: 18572, x: 4693488.3846, y: 9400324.9641 },\n { id: 18573, x: 4692856.6042, y: 9406829.2285 },\n { id: 43170, x: 4775956.4952, y: 9385887.8516 },\n { id: 18577, x: 4689786.525, y: 9410258.1796 },\n { id: 43172, x: 4774544.3606, y: 9394035.2894 },\n { id: 43183, x: 4767378.8637, y: 9391008.7305 },\n { id: 59581, x: 4598286.3865, y: 9296950.4962 },\n { id: 43185, x: 4766121.5305, y: 9383093.3686 },\n { id: 59582, x: 4598118.3626, y: 9306075.6156 },\n { id: 59583, x: 4596164.0718, y: 9312012.521 },\n { id: 59584, x: 4595874.3408, y: 9300684.7967 },\n { id: 59586, x: 4590515.0649, y: 9300686.679 },\n { id: 59587, x: 4589736.0402, y: 9307265.7824 },\n { id: 35019, x: 4873123.0114, y: 9547005.8578 },\n { id: 63715, x: 4746673.4979, y: 9186032.6899 },\n { id: 63716, x: 4746834.8577, y: 9181033.9142 },\n { id: 35023, x: 4870569.2213, y: 9556601.9133 },\n { id: 63717, x: 4746738.6571, y: 9174263.3659 },\n { id: 35028, x: 4866872.895, y: 9553408.1092 },\n { id: 71920, x: 4652852.3863, y: 9208418.8145 },\n { id: 71921, x: 4652059.9045, y: 9198083.3436 },\n { id: 71922, x: 4651608.6494, y: 9191989.6261 },\n { id: 63724, x: 4740903.3748, y: 9186683.6945 },\n { id: 35031, x: 4865694.033, y: 9546473.5457 },\n { id: 6339, x: 4744947.8116, y: 9321931.7938 },\n { id: 6340, x: 4744780.964, y: 9334759.8837 },\n { id: 71925, x: 4641794.5959, y: 9205187.5359 },\n { id: 63727, x: 4740215.3001, y: 9178577.1161 },\n { id: 35034, x: 4863114.004, y: 9542752.735 },\n { id: 71927, x: 4641420.0583, y: 9192209.7906 },\n { id: 6343, x: 4743082.301, y: 9316279.0886 },\n { id: 35037, x: 4860823.4904, y: 9556143.3663 },\n { id: 6344, x: 4740162.7376, y: 9325645.5013 },\n { id: 35038, x: 4859824.6097, y: 9549067.9511 },\n { id: 71930, x: 4657502.6998, y: 9186024.4581 },\n { id: 35039, x: 4858220.0332, y: 9542859.0323 },\n { id: 63733, x: 4733238.8728, y: 9190217.7637 },\n { id: 71932, x: 4654082.0714, y: 9178231.8921 },\n { id: 6352, x: 4734129.3143, y: 9318349.3975 },\n { id: 6353, x: 4733568.2826, y: 9329518.9145 },\n { id: 6354, x: 4733340.7028, y: 9329358.0582 },\n { id: 71939, x: 4648245.6348, y: 9172933.2429 },\n { id: 71940, x: 4647402.6197, y: 9183123.467 },\n { id: 71946, x: 4641961.7489, y: 9181800.9461 },\n { id: 39163, x: 4832462.2188, y: 9518233.4908 },\n { id: 39164, x: 4832193.3558, y: 9511007.9156 },\n { id: 39166, x: 4830601.461, y: 9506101.9479 },\n { id: 39175, x: 4822277.5787, y: 9514522.8653 },\n { id: 39176, x: 4821443.8625, y: 9506588.2089 },\n { id: 39178, x: 4819539.0526, y: 9501926.5147 },\n { id: 30985, x: 4596384.6335, y: 9355040.7455 },\n { id: 30988, x: 4594593.6211, y: 9367406.3549 },\n { id: 30992, x: 4592312.6756, y: 9359822.0885 },\n { id: 26893, x: 4688308.4691, y: 9509393.2001 },\n { id: 30993, x: 4591057.5883, y: 9373259.4214 },\n { id: 26897, x: 4685064.103, y: 9507285.0772 },\n { id: 30998, x: 4589529.9738, y: 9353830.5175 },\n { id: 26899, x: 4684564.8388, y: 9513950.085 },\n { id: 30999, x: 4587393.2786, y: 9362531.8641 },\n { id: 26900, x: 4683636.7341, y: 9502006.6033 },\n { id: 31000, x: 4586888.3668, y: 9366932.32 },\n { id: 31001, x: 4586567.3032, y: 9357082.173 },\n { id: 31002, x: 4586495.9798, y: 9370787.9512 },\n { id: 31005, x: 4583598.9991, y: 9359823.2347 },\n { id: 26907, x: 4677895.3491, y: 9509293.4522 },\n { id: 31007, x: 4582021.6342, y: 9364528.0818 },\n { id: 31008, x: 4581956.404, y: 9355935.9483 },\n { id: 31009, x: 4581485.5368, y: 9369959.2134 },\n { id: 31011, x: 4579906.6895, y: 9357145.5851 },\n { id: 31012, x: 4579243.1825, y: 9364233.8225 },\n { id: 26913, x: 4674118.5932, y: 9502376.9097 },\n { id: 31013, x: 4579092.2882, y: 9360594.563 },\n { id: 26915, x: 4672959.6579, y: 9513835.341 },\n { id: 26917, x: 4671511.4775, y: 9510529.1057 },\n { id: 14655, x: 4741820.055, y: 9369744.9455 },\n { id: 47456, x: 4799648.0601, y: 9576474.0948 },\n { id: 14664, x: 4734529.0597, y: 9370944.0712 },\n { id: 35162, x: 4872680.6309, y: 9575863.0013 },\n { id: 47462, x: 4795528.0496, y: 9567071.3703 },\n { id: 2373, x: 4820004.7621, y: 9304605.1302 },\n { id: 47463, x: 4794345.5598, y: 9577473.0749 },\n { id: 47465, x: 4793114.6569, y: 9570013.9437 },\n { id: 47467, x: 4791302.7232, y: 9573029.2623 },\n { id: 35170, x: 4866357.484, y: 9571872.2105 },\n { id: 35171, x: 4865005.0695, y: 9565584.7733 },\n { id: 47469, x: 4790655.0889, y: 9576353.765 },\n { id: 35175, x: 4863397.7746, y: 9578549.3708 },\n { id: 2384, x: 4812751.1226, y: 9312721.7547 },\n { id: 47474, x: 4788389.151, y: 9565277.8934 },\n { id: 2385, x: 4811038.7262, y: 9302427.9931 },\n { id: 35181, x: 4859056.1772, y: 9564468.8046 },\n { id: 47479, x: 4783152.1725, y: 9570323.3797 },\n { id: 35184, x: 4856380.6271, y: 9572407.4015 },\n { id: 2392, x: 4805203.8342, y: 9298462.6958 },\n { id: 2394, x: 4804441.1906, y: 9307198.1212 },\n { id: 43395, x: 4799115.289, y: 9422060.3652 },\n { id: 43396, x: 4797558.5143, y: 9429588.9448 },\n { id: 43400, x: 4793479.15, y: 9438242.2302 },\n { id: 22909, x: 4725827.65, y: 9547571.9495 },\n { id: 43406, x: 4788755.4629, y: 9427569.4759 },\n { id: 22911, x: 4725527.63, y: 9559094.8307 },\n { id: 63903, x: 4766927.0736, y: 9218364.3159 },\n { id: 43408, x: 4787118.3995, y: 9419263.8031 },\n { id: 63905, x: 4763989.8639, y: 9229637.7225 },\n { id: 63907, x: 4763671.5378, y: 9224509.0158 },\n { id: 22918, x: 4715521.5172, y: 9544865.9581 },\n { id: 63909, x: 4762772.3806, y: 9215836.1537 },\n { id: 43414, x: 4783845.134, y: 9425623.3013 },\n { id: 43415, x: 4782071.5298, y: 9433381.2787 },\n { id: 22920, x: 4713457.3331, y: 9553174.2723 },\n { id: 63914, x: 4757578.93, y: 9229827.5261 },\n { id: 63915, x: 4757443.0643, y: 9221913.0834 },\n { id: 6529, x: 4739438.961, y: 9307046.4358 },\n { id: 63918, x: 4754973.495, y: 9219239.3873 },\n { id: 63919, x: 4754015.8037, y: 9231983.4734 },\n { id: 68019, x: 4730337.6027, y: 9228858.8263 },\n { id: 14733, x: 4748731.2172, y: 9396053.0781 },\n { id: 63922, x: 4752245.3584, y: 9221915.5339 },\n { id: 39329, x: 4833734.0966, y: 9532133.5733 },\n { id: 63924, x: 4749675.7888, y: 9227714.7293 },\n { id: 68026, x: 4727393.1967, y: 9221267.474 },\n { id: 6541, x: 4728953.9683, y: 9299028.127 },\n { id: 39338, x: 4827512.3778, y: 9525410.0469 },\n { id: 68032, x: 4723793.8254, y: 9228113.3672 },\n { id: 68035, x: 4722291.0141, y: 9214633.8002 },\n { id: 39346, x: 4823662.6819, y: 9534187.1736 },\n { id: 39347, x: 4822297.0803, y: 9521776.1921 },\n { id: 68042, x: 4716159.2483, y: 9226053.7982 },\n { id: 10665, x: 4825052.4579, y: 9195224.0105 },\n { id: 59854, x: 4615772.9487, y: 9346930.749 },\n { id: 10666, x: 4823926.608, y: 9188285.5382 },\n { id: 59855, x: 4615739.586, y: 9341599.3006 },\n { id: 59856, x: 4615612.7261, y: 9352762.5832 },\n { id: 10671, x: 4820675.9944, y: 9182447.7979 },\n { id: 59860, x: 4612588.7202, y: 9336846.7583 },\n { id: 59861, x: 4612152.5812, y: 9345772.5601 },\n { id: 59862, x: 4609880.7199, y: 9353789.4598 },\n { id: 14774, x: 4750387.0075, y: 9409619.3948 },\n { id: 51666, x: 4722654.9535, y: 9323208.6259 },\n { id: 10676, x: 4816983.2285, y: 9187944.6618 },\n { id: 59865, x: 4608257.15, y: 9339916.1079 },\n { id: 51667, x: 4721062.3581, y: 9317859.996 },\n { id: 27073, x: 4686287.2634, y: 9528369.9476 },\n { id: 51668, x: 4720479.8318, y: 9333061.0124 },\n { id: 27074, x: 4684390.0571, y: 9522482.0535 },\n { id: 27075, x: 4684260.4082, y: 9540370.5155 },\n { id: 14778, x: 4746556.1593, y: 9401549.7117 },\n { id: 59868, x: 4606715.8045, y: 9348805.2388 },\n { id: 27076, x: 4684211.3556, y: 9535372.9366 },\n { id: 59869, x: 4605062.9124, y: 9353251.6408 },\n { id: 10682, x: 4814147.9932, y: 9177042.8089 },\n { id: 51674, x: 4714940.3566, y: 9325240.3879 },\n { id: 51675, x: 4714280.7766, y: 9317219.9207 },\n { id: 27081, x: 4679741.7997, y: 9526789.3052 },\n { id: 59874, x: 4601652.0756, y: 9335205.1818 },\n { id: 27083, x: 4679117.3413, y: 9522529.3584 },\n { id: 10687, x: 4809926.9025, y: 9187244.3971 },\n { id: 59876, x: 4599428.7161, y: 9345184.4388 },\n { id: 51678, x: 4711535.2836, y: 9333903.0584 },\n { id: 10688, x: 4808896.078, y: 9195437.8075 },\n { id: 51680, x: 4709646.5758, y: 9317962.2877 },\n { id: 31185, x: 4615320.0181, y: 9381417.3469 },\n { id: 72175, x: 4636237.2178, y: 9164667.2799 },\n { id: 31186, x: 4614798.6714, y: 9375062.0865 },\n { id: 27088, x: 4674586.4576, y: 9521024.6664 },\n { id: 10692, x: 4807878.5076, y: 9179077.258 },\n { id: 27090, x: 4672576.332, y: 9537317.6977 },\n { id: 31190, x: 4611560.5674, y: 9387892.624 },\n { id: 27091, x: 4672487.9295, y: 9527873.9716 },\n { id: 31193, x: 4608563.1083, y: 9394920.4608 },\n { id: 31194, x: 4608527.9749, y: 9389865.59 },\n { id: 31195, x: 4608214.1492, y: 9381501.5317 },\n { id: 72186, x: 4655349.6159, y: 9167534.8024 },\n { id: 31197, x: 4604828.5639, y: 9392339.3733 },\n { id: 72187, x: 4651918.7664, y: 9160891.3789 },\n { id: 31200, x: 4601985.9914, y: 9383951.3305 },\n { id: 72190, x: 4646173.5758, y: 9166828.834 },\n { id: 72193, x: 4643247.6896, y: 9162195.9427 },\n { id: 31204, x: 4599247.6195, y: 9377971.7416 },\n { id: 31207, x: 4597381.4831, y: 9386489.1278 },\n { id: 55820, x: 4672857.9649, y: 9296691.8536 },\n { id: 55823, x: 4669454.6392, y: 9312605.7771 },\n { id: 55825, x: 4667704.3399, y: 9299709.8095 },\n { id: 55827, x: 4664306.5861, y: 9309105.3213 },\n { id: 55829, x: 4663094.3585, y: 9296110.4839 },\n { id: 55830, x: 4661689.1118, y: 9301107.2661 },\n { id: 55832, x: 4658991.2911, y: 9313356.2712 },\n { id: 55836, x: 4654776.1632, y: 9308093.1206 },\n { id: 72249, x: 4616355.7367, y: 9162608.1495 },\n { id: 2570, x: 4837162.326, y: 9338705.0795 },\n { id: 2571, x: 4836697.2467, y: 9349023.878 },\n { id: 47662, x: 4780791.1409, y: 9573575.5401 },\n { id: 47665, x: 4779083.0364, y: 9567311.344 },\n { id: 72259, x: 4598243.7767, y: 9165444.9883 },\n { id: 72261, x: 4586481.1443, y: 9159867.3486 },\n { id: 27173, x: 4669080.2211, y: 9523204.3593 },\n { id: 2581, x: 4828847.1524, y: 9347141.9551 },\n { id: 2582, x: 4827942.5671, y: 9353687.4508 },\n { id: 47672, x: 4774542.1913, y: 9568608.6281 },\n { id: 27177, x: 4665957.3324, y: 9540692.2592 },\n { id: 35376, x: 4854805.754, y: 9580027.2118 },\n { id: 27178, x: 4664504.3561, y: 9533239.6086 },\n { id: 2584, x: 4827345.7549, y: 9339961.9546 },\n { id: 35377, x: 4854385.8299, y: 9562338.5373 },\n { id: 27179, x: 4663694.5841, y: 9525759.2497 },\n { id: 47675, x: 4771987.995, y: 9573257.8679 },\n { id: 27180, x: 4663414.6279, y: 9522256.8788 },\n { id: 47676, x: 4770633.7904, y: 9564312.5135 },\n { id: 35381, x: 4850701.1505, y: 9565880.455 },\n { id: 27186, x: 4659867.7611, y: 9530093.4827 },\n { id: 27187, x: 4657883.4033, y: 9539379.7454 },\n { id: 35387, x: 4846176.4368, y: 9573527.283 },\n { id: 2595, x: 4820308.1744, y: 9352760.8044 },\n { id: 35389, x: 4844626.8912, y: 9579424.8389 },\n { id: 27192, x: 4652236.0019, y: 9533767.0146 },\n { id: 35392, x: 4844252.197, y: 9560963.6681 },\n { id: 35393, x: 4842423.6174, y: 9567375.4831 },\n { id: 39495, x: 4817033.3441, y: 9522450.2594 },\n { id: 39498, x: 4815029.8391, y: 9530273.3412 },\n { id: 39506, x: 4808458.0021, y: 9528767.3194 },\n { id: 39509, x: 4806642.0617, y: 9537948.7577 },\n { id: 39513, x: 4804359.2936, y: 9522962.559 },\n { id: 39515, x: 4801699.1924, y: 9531429.5213 },\n { id: 68210, x: 4726977.71, y: 9247959.6777 },\n { id: 68214, x: 4723858.6427, y: 9236396.6744 },\n { id: 43625, x: 4795851.2949, y: 9455793.1682 },\n { id: 43626, x: 4794017.8844, y: 9446184.362 },\n { id: 68222, x: 4717748.7202, y: 9243920.561 },\n { id: 68223, x: 4718296.7452, y: 9233395.336 },\n { id: 43632, x: 4790085.541, y: 9454518.1626 },\n { id: 43634, x: 4787983.0321, y: 9441108.4919 },\n { id: 43635, x: 4787753.8431, y: 9448380.7941 },\n { id: 43639, x: 4783565.5533, y: 9450836.0761 },\n { id: 43641, x: 4783454.1165, y: 9442376.6537 },\n { id: 27259, x: 4668946.3656, y: 9503863.4258 },\n { id: 27261, x: 4666274.0533, y: 9516737.4554 },\n { id: 27268, x: 4661800.7761, y: 9505967.9274 },\n { id: 27269, x: 4661523.846, y: 9512486.9301 },\n { id: 27271, x: 4660486.0881, y: 9500084.6386 },\n { id: 23178, x: 4702426.9712, y: 9548301.8667 },\n { id: 23180, x: 4700686.503, y: 9556944.1973 },\n { id: 23185, x: 4696393.27, y: 9544023.0488 },\n { id: 23186, x: 4696069.5589, y: 9550136.4389 },\n { id: 23188, x: 4693847.2876, y: 9557323.9643 },\n { id: 14992, x: 4739132.9008, y: 9416064.0489 },\n { id: 14995, x: 4736434.7784, y: 9405250.4771 },\n { id: 14996, x: 4736412.8738, y: 9398410.8549 },\n { id: 19099, x: 4707945.6883, y: 9393087.9286 },\n { id: 15002, x: 4732530.2797, y: 9417233.1225 },\n { id: 19103, x: 4707214.9078, y: 9380128.9692 },\n { id: 51897, x: 4709233.6532, y: 9325702.0974 },\n { id: 19106, x: 4705358.1849, y: 9388004.8175 },\n { id: 51899, x: 4708222.4333, y: 9329928.6768 },\n { id: 51900, x: 4706769.2509, y: 9333413.4796 },\n { id: 15009, x: 4726986.9319, y: 9409024.4542 },\n { id: 31406, x: 4612428.8665, y: 9398419.6478 },\n { id: 31407, x: 4611161.398, y: 9408983.487 },\n { id: 51904, x: 4704600.0096, y: 9320862.0404 },\n { id: 72399, x: 4616051.9793, y: 9169488.6528 },\n { id: 19113, x: 4702948.0244, y: 9395803.0232 },\n { id: 72400, x: 4615517.3698, y: 9175441.0769 },\n { id: 31411, x: 4607059.7622, y: 9400655.9841 },\n { id: 51907, x: 4702508.2948, y: 9327579.2394 },\n { id: 31412, x: 4606519.5761, y: 9404617.123 },\n { id: 19116, x: 4701122.7662, y: 9382788.4233 },\n { id: 72403, x: 4609635.5275, y: 9182043.598 },\n { id: 19117, x: 4700473.6815, y: 9390754.2801 },\n { id: 51910, x: 4701147.8222, y: 9331162.1988 },\n { id: 31415, x: 4604933.5268, y: 9414973.7673 },\n { id: 72405, x: 4608458.9473, y: 9175625.2569 },\n { id: 72406, x: 4608531.3609, y: 9168460.2209 },\n { id: 31417, x: 4602661.7127, y: 9397388.1577 },\n { id: 19120, x: 4696895.2277, y: 9395273.0358 },\n { id: 31418, x: 4602146.4699, y: 9404684.2274 },\n { id: 19121, x: 4695716.8382, y: 9378557.3804 },\n { id: 10923, x: 4841356.0045, y: 9221400.2466 },\n { id: 51914, x: 4696988.0444, y: 9324938.1232 },\n { id: 19122, x: 4695657.7691, y: 9386816.3169 },\n { id: 72409, x: 4603925.4894, y: 9181874.7475 },\n { id: 51915, x: 4695301.6109, y: 9330244.584 },\n { id: 31420, x: 4601704.6527, y: 9408810.6127 },\n { id: 19124, x: 4693331.7404, y: 9382384.5098 },\n { id: 10927, x: 4837985.7243, y: 9224894.0327 },\n { id: 31423, x: 4597650.0828, y: 9414032.6172 },\n { id: 19126, x: 4691773.6975, y: 9393922.8485 },\n { id: 64218, x: 4766544.7879, y: 9242808.4827 },\n { id: 10932, x: 4834242.812, y: 9233508.1461 },\n { id: 64221, x: 4764079.4611, y: 9250301.1218 },\n { id: 64223, x: 4761545.8925, y: 9239139.4951 },\n { id: 10939, x: 4832058.7746, y: 9218256.447 },\n { id: 10940, x: 4830490.5828, y: 9229120.7655 },\n { id: 64228, x: 4755472.3919, y: 9254265.8488 },\n { id: 35535, x: 4852404.0203, y: 9556650.9985 },\n { id: 35538, x: 4851026.9549, y: 9545907.7763 },\n { id: 64235, x: 4751542.1992, y: 9244215.5951 },\n { id: 10948, x: 4824341.0431, y: 9226029.9633 },\n { id: 35548, x: 4844380.6315, y: 9543787.0368 },\n { id: 6856, x: 4762259.7721, y: 9346275.486 },\n { id: 6857, x: 4760599.9532, y: 9353872.6581 },\n { id: 6858, x: 4760187.6077, y: 9340186.3188 },\n { id: 35552, x: 4841165.8316, y: 9551112.7583 },\n { id: 6870, x: 4748685.4909, y: 9350147.3334 },\n { id: 6871, x: 4747281.8983, y: 9342482.8955 },\n { id: 60162, x: 4596977.8661, y: 9339078.2503 },\n { id: 60166, x: 4594370.7023, y: 9351309.5898 },\n { id: 60168, x: 4592694.3244, y: 9334779.0219 },\n { id: 60170, x: 4589854.1205, y: 9339171.0891 },\n { id: 60172, x: 4587145.5646, y: 9343604.8754 },\n { id: 60176, x: 4583380.5684, y: 9337567.9671 },\n { id: 47882, x: 4779323.7629, y: 9543697.7538 },\n { id: 47883, x: 4778890.252, y: 9559657.2335 },\n { id: 47884, x: 4777250.1104, y: 9554295.809 },\n { id: 47886, x: 4775284.7716, y: 9547453.3016 },\n { id: 47892, x: 4770236.9032, y: 9551346.0643 },\n { id: 2804, x: 4819569.7866, y: 9346559.4162 },\n { id: 47894, x: 4767606.8796, y: 9560064.5158 },\n { id: 2805, x: 4818376.9656, y: 9339110.4359 },\n { id: 60192, x: 4576491.375, y: 9347863.8655 },\n { id: 47896, x: 4764053.0674, y: 9546275.449 },\n { id: 39703, x: 4815453.5352, y: 9516428.7421 },\n { id: 2812, x: 4814323.8981, y: 9356662.3086 },\n { id: 2813, x: 4813037.3135, y: 9344244.7899 },\n { id: 2814, x: 4812986.5989, y: 9350741.7331 },\n { id: 39707, x: 4812618.8374, y: 9507165.9751 },\n { id: 39709, x: 4810491.1302, y: 9515496.2407 },\n { id: 56107, x: 4687696.1811, y: 9342504.9358 },\n { id: 56108, x: 4684522.6144, y: 9339673.7678 },\n { id: 56109, x: 4684384.0001, y: 9348926.3987 },\n { id: 2822, x: 4807651.5621, y: 9339991.3895 },\n { id: 56111, x: 4680702.4519, y: 9351451.2811 },\n { id: 56112, x: 4679096.2551, y: 9335813.2919 },\n { id: 39717, x: 4804391.4053, y: 9503917.595 },\n { id: 56114, x: 4678741.629, y: 9346921.3707 },\n { id: 2828, x: 4803084.2418, y: 9347537.5016 },\n { id: 39720, x: 4801935.5325, y: 9511265.0431 },\n { id: 27423, x: 4688551.0337, y: 9552482.042 },\n { id: 39721, x: 4800880.9564, y: 9503990.3207 },\n { id: 56118, x: 4673941.4623, y: 9345366.3706 },\n { id: 27425, x: 4687809.9181, y: 9544158.5455 },\n { id: 27426, x: 4687481.3313, y: 9557675.719 },\n { id: 56121, x: 4671942.1946, y: 9350466.7666 },\n { id: 31527, x: 4596544.5005, y: 9402052.7187 },\n { id: 31528, x: 4594622.0146, y: 9407327.0296 },\n { id: 31530, x: 4592509.1559, y: 9413888.4164 },\n { id: 27432, x: 4682553.9829, y: 9555375.5057 },\n { id: 31533, x: 4588031.3514, y: 9405315.3282 },\n { id: 27434, x: 4681550.5086, y: 9550657.7967 },\n { id: 27435, x: 4680152.5382, y: 9546980.6368 },\n { id: 27439, x: 4677737.0513, y: 9561263.684 },\n { id: 27440, x: 4675924.0844, y: 9542903.9999 },\n { id: 31540, x: 4585074.8527, y: 9397760.4035 },\n { id: 60235, x: 4773022.2831, y: 9171559.3904 },\n { id: 31542, x: 4583629.6169, y: 9401953.6214 },\n { id: 27443, x: 4673767.1323, y: 9554990.9506 },\n { id: 60236, x: 4773095.7264, y: 9163282.3886 },\n { id: 31544, x: 4582104.6945, y: 9415967.9575 },\n { id: 27448, x: 4671054.035, y: 9543059.1488 },\n { id: 31548, x: 4578942.7538, y: 9397663.9777 },\n { id: 27449, x: 4670763.9802, y: 9549859.9316 },\n { id: 31549, x: 4578874.665, y: 9406323.2549 },\n { id: 35653, x: 4846164.2848, y: 9608325.9584 },\n { id: 35654, x: 4845484.5175, y: 9601583.6279 },\n { id: 35658, x: 4843956.9702, y: 9620348.2509 },\n { id: 15163, x: 4743961.8607, y: 9384911.566 },\n { id: 35660, x: 4842320.5421, y: 9615111.3964 },\n { id: 35663, x: 4840112.8823, y: 9603688.9244 },\n { id: 6972, x: 4739549.1884, y: 9349572.6381 },\n { id: 35666, x: 4839040.3261, y: 9608717.1614 },\n { id: 6973, x: 4739226.11, y: 9337949.5047 },\n { id: 68459, x: 4711840.3267, y: 9232911.3184 },\n { id: 68461, x: 4708361.655, y: 9248732.0747 },\n { id: 15174, x: 4735845.5611, y: 9385298.0254 },\n { id: 68463, x: 4707469.0501, y: 9241647.463 },\n { id: 6978, x: 4733227.7139, y: 9343772.4907 },\n { id: 15179, x: 4732191.9604, y: 9381478.4818 },\n { id: 15182, x: 4729093.3298, y: 9395339.9434 },\n { id: 68470, x: 4700806.1376, y: 9233600.1209 },\n { id: 68472, x: 4698816.4304, y: 9246895.3716 },\n { id: 43880, x: 4776322.355, y: 9447553.0735 },\n { id: 43881, x: 4774756.9162, y: 9455868.6697 },\n { id: 43882, x: 4773392.8753, y: 9442989.6639 },\n { id: 68478, x: 4693756.2277, y: 9247087.4782 },\n { id: 68480, x: 4694474.4999, y: 9233315.2266 },\n { id: 43886, x: 4770607.2725, y: 9456447.9995 },\n { id: 43888, x: 4769741.7204, y: 9451601.494 },\n { id: 43894, x: 4764737.2104, y: 9446477.4836 },\n { id: 47997, x: 4800113.4532, y: 9585790.0635 },\n { id: 48000, x: 4795599.1387, y: 9581769.5273 },\n { id: 48002, x: 4792688.4196, y: 9581474.8035 },\n { id: 64403, x: 4746480.2276, y: 9252332.1955 },\n { id: 64405, x: 4745573.0636, y: 9237000.7388 },\n { id: 72603, x: 4619927.7198, y: 9194760.6352 },\n { id: 72604, x: 4618846.5728, y: 9203830.0168 },\n { id: 64407, x: 4743218.4762, y: 9246079.3045 },\n { id: 72606, x: 4618898.1504, y: 9188194.3878 },\n { id: 64409, x: 4740056.5471, y: 9252484.1365 },\n { id: 64411, x: 4739365.5908, y: 9239551.3161 },\n { id: 72611, x: 4610954.581, y: 9204620.2521 },\n { id: 64414, x: 4736001.7162, y: 9246022.1136 },\n { id: 72612, x: 4610647.0616, y: 9189433.7622 },\n { id: 64416, x: 4733654.6132, y: 9252296.4333 },\n { id: 60317, x: 4771328.3176, y: 9199186.7608 },\n { id: 60319, x: 4770114.7703, y: 9209646.8544 },\n { id: 72616, x: 4604539.0535, y: 9196985.3296 },\n { id: 64419, x: 4731959.4109, y: 9241446.0841 },\n { id: 60320, x: 4770110.289, y: 9203932.7582 },\n { id: 7042, x: 4878164.1787, y: 9131424.0405 },\n { id: 7043, x: 4876379.7351, y: 9138173.7376 },\n { id: 15242, x: 4750626.36, y: 9437425.9428 },\n { id: 15243, x: 4749760.4017, y: 9431539.839 },\n { id: 15245, x: 4749404.7771, y: 9421426.6837 },\n { id: 7049, x: 4868183.3467, y: 9134528.9971 },\n { id: 39844, x: 4833493.294, y: 9543349.1154 },\n { id: 39847, x: 4831362.3683, y: 9554749.5165 },\n { id: 52151, x: 4709317.4611, y: 9306846.6301 },\n { id: 39855, x: 4825475.81, y: 9543289.9128 },\n { id: 11163, x: 4838860.5483, y: 9247939.3554 },\n { id: 52154, x: 4708505.2969, y: 9299396.2446 },\n { id: 39857, x: 4823726.1254, y: 9550190.7799 },\n { id: 11164, x: 4838170.3368, y: 9254119.6173 },\n { id: 52156, x: 4705546.3229, y: 9303535.7902 },\n { id: 11166, x: 4836503.4208, y: 9238905.0536 },\n { id: 52158, x: 4703719.0384, y: 9313274.734 },\n { id: 52159, x: 4702820.8504, y: 9308153.4686 },\n { id: 52161, x: 4701651.2818, y: 9298681.1132 },\n { id: 39864, x: 4819729.8919, y: 9541061.2942 },\n { id: 39865, x: 4819688.7299, y: 9550443.9776 },\n { id: 11173, x: 4830566.4749, y: 9248200.6438 },\n { id: 52164, x: 4697913.3819, y: 9305448.2115 },\n { id: 52165, x: 4694809.9551, y: 9313479.2783 },\n { id: 11175, x: 4830513.4963, y: 9237841.7942 },\n { id: 52167, x: 4693263.5056, y: 9294712.3208 },\n { id: 11177, x: 4827097.2464, y: 9257165.3659 },\n { id: 11181, x: 4825434.434, y: 9248213.448 },\n { id: 27584, x: 4686257.9384, y: 9562716.3168 },\n { id: 27586, x: 4675326.05, y: 9564413.6122 },\n { id: 19388, x: 4725069.7692, y: 9428834.8617 },\n { id: 15289, x: 4747279.3957, y: 9452205.9941 },\n { id: 19389, x: 4724615.5713, y: 9422878.4106 },\n { id: 27590, x: 4671193.0315, y: 9570491.4559 },\n { id: 60383, x: 4772595.6926, y: 9187162.8831 },\n { id: 19394, x: 4722126.793, y: 9420337.1999 },\n { id: 19395, x: 4719706.4258, y: 9435781.4298 },\n { id: 60386, x: 4771973.5203, y: 9180979.5162 },\n { id: 19396, x: 4719193.2, y: 9431235.3977 },\n { id: 60387, x: 4770044.7644, y: 9191657.7811 },\n { id: 19397, x: 4717728.1065, y: 9425946.9397 },\n { id: 19401, x: 4714450.0294, y: 9434710.6262 },\n { id: 19406, x: 4710743.0711, y: 9422612.7982 },\n { id: 35804, x: 4852016.8109, y: 9589921.8554 },\n { id: 19408, x: 4709550.3784, y: 9437948.8073 },\n { id: 23508, x: 4689475.753, y: 9357637.2263 },\n { id: 19409, x: 4708980.2202, y: 9429520.6663 },\n { id: 23509, x: 4689071.5174, y: 9366672.27 },\n { id: 35808, x: 4849354.0879, y: 9583172.5221 },\n { id: 23512, x: 4684529.4322, y: 9358263.8902 },\n { id: 7118, x: 4865583.4781, y: 9127797.5397 },\n { id: 23515, x: 4683671.6879, y: 9371165.6451 },\n { id: 35814, x: 4845887.4646, y: 9591871.0083 },\n { id: 35815, x: 4845559.629, y: 9585641.3702 },\n { id: 35816, x: 4844569.3463, y: 9596049.5931 },\n { id: 7123, x: 4858458.2887, y: 9136132.077 },\n { id: 23520, x: 4679436.6915, y: 9375056.0877 },\n { id: 23522, x: 4677780.6622, y: 9365718.8031 },\n { id: 7126, x: 4852770.3684, y: 9129772.9584 },\n { id: 7127, x: 4852091.891, y: 9134934.2663 },\n { id: 23524, x: 4675765.2997, y: 9358286.3733 },\n { id: 60420, x: 4768460.731, y: 9248220.2371 },\n { id: 35826, x: 4839312.6777, y: 9584627.4994 },\n { id: 31743, x: 4596649.5263, y: 9382745.1285 },\n { id: 31744, x: 4596405.3716, y: 9394768.845 },\n { id: 31745, x: 4595321.0211, y: 9388884.3812 },\n { id: 31746, x: 4595204.3802, y: 9377324.8344 },\n { id: 60440, x: 4771280.1364, y: 9221480.2607 },\n { id: 60441, x: 4770465.2969, y: 9232032.6066 },\n { id: 60442, x: 4769724.1601, y: 9226358.4554 },\n { id: 31755, x: 4590151.9242, y: 9387631.2768 },\n { id: 31756, x: 4588664.9011, y: 9382340.8416 },\n { id: 31759, x: 4586673.9827, y: 9393080.1506 },\n { id: 31760, x: 4586207.2714, y: 9386267.3866 },\n { id: 31761, x: 4584078.4283, y: 9378670.1751 },\n { id: 31763, x: 4582929.6328, y: 9375905.4267 },\n { id: 44061, x: 4778470.962, y: 9422870.1265 },\n { id: 31764, x: 4582890.8331, y: 9382926.8675 },\n { id: 31766, x: 4580385.7526, y: 9386711.2145 },\n { id: 31767, x: 4579982.5701, y: 9392510.0351 },\n { id: 44067, x: 4773459.4433, y: 9429051.3696 },\n { id: 44068, x: 4772035.2132, y: 9435485.3905 },\n { id: 60467, x: 4753531.3565, y: 9127437.6861 },\n { id: 44071, x: 4770767.5504, y: 9420716.5879 },\n { id: 44072, x: 4768233.2224, y: 9432542.1907 },\n { id: 60469, x: 4746929.1965, y: 9129831.0226 },\n { id: 35876, x: 4842205.5166, y: 9626547.6681 },\n { id: 60471, x: 4736752.4504, y: 9129260.5674 },\n { id: 44075, x: 4766636.6834, y: 9426427.8049 },\n { id: 72791, x: 4598021.7823, y: 9198934.6205 },\n { id: 72792, x: 4598287.884, y: 9187458.7707 },\n { id: 72794, x: 4594918.0543, y: 9204665.5854 },\n { id: 72798, x: 4592434.1671, y: 9189994.9126 },\n { id: 48218, x: 4758356.7837, y: 9379197.8447 },\n { id: 48221, x: 4755831.7515, y: 9392376.4556 },\n { id: 48223, x: 4753644.315, y: 9385231.9059 },\n { id: 52328, x: 4726855.5503, y: 9349586.219 },\n { id: 27736, x: 4669404.0516, y: 9563613.3151 },\n { id: 52331, x: 4724227.5745, y: 9337460.306 },\n { id: 60530, x: 4759023.024, y: 9152160.0048 },\n { id: 27739, x: 4666487.6299, y: 9564559.0021 },\n { id: 60532, x: 4758491.8998, y: 9143899.7056 },\n { id: 27741, x: 4664489.7282, y: 9570146.4596 },\n { id: 60534, x: 4757109.9327, y: 9138505.661 },\n { id: 52336, x: 4721011.3452, y: 9344867.0247 },\n { id: 27742, x: 4663455.8519, y: 9578307.937 },\n { id: 68733, x: 4711096.9667, y: 9214543.1992 },\n { id: 52337, x: 4720610.7361, y: 9348912.0549 },\n { id: 68735, x: 4707939.0123, y: 9224780.2176 },\n { id: 60539, x: 4754380.1146, y: 9149381.2391 },\n { id: 52341, x: 4716420.7615, y: 9345910.5366 },\n { id: 52342, x: 4715796.5383, y: 9338208.3687 },\n { id: 68739, x: 4703034.1363, y: 9228486.0211 },\n { id: 52343, x: 4714085.9897, y: 9352059.0208 },\n { id: 68741, x: 4700987.8087, y: 9219635.8695 },\n { id: 27752, x: 4656836.1716, y: 9582080.094 },\n { id: 52347, x: 4710384.626, y: 9340489.9234 },\n { id: 27753, x: 4656749.1914, y: 9568628.129 },\n { id: 52348, x: 4709805.3301, y: 9348270.191 },\n { id: 27754, x: 4655793.9533, y: 9574884.0601 },\n { id: 68747, x: 4696145.8661, y: 9214347.6905 },\n { id: 27758, x: 4653136.768, y: 9562878.4814 },\n { id: 27759, x: 4652070.3918, y: 9570089.9877 },\n { id: 31887, x: 4612487.5817, y: 9423936.0115 },\n { id: 3194, x: 4800497.9563, y: 9263603.7115 },\n { id: 31888, x: 4610226.6807, y: 9416816.8579 },\n { id: 31889, x: 4609648.625, y: 9421292.4747 },\n { id: 3197, x: 4799066.3452, y: 9273637.9568 },\n { id: 56485, x: 4667736.5303, y: 9339559.3835 },\n { id: 31891, x: 4608495.0789, y: 9429392.147 },\n { id: 56486, x: 4665991.362, y: 9351563.7618 },\n { id: 3199, x: 4796510.3373, y: 9258572.0064 },\n { id: 56487, x: 4664708.111, y: 9345337.8184 },\n { id: 3200, x: 4796730.133, y: 9253526.573 },\n { id: 3201, x: 4793782.7626, y: 9261420.4551 },\n { id: 31895, x: 4602418.6521, y: 9421574.8101 },\n { id: 3202, x: 4793044.0678, y: 9267945.9425 },\n { id: 31896, x: 4601995.7559, y: 9426892.5466 },\n { id: 3203, x: 4792842.6469, y: 9276106.0951 },\n { id: 56491, x: 4660072.0685, y: 9351057.8461 },\n { id: 56492, x: 4658581.1805, y: 9344641.1172 },\n { id: 3205, x: 4791700.0718, y: 9262807.8641 },\n { id: 56493, x: 4657445.624, y: 9336614.6672 },\n { id: 31899, x: 4598449.0023, y: 9431215.9702 },\n { id: 31900, x: 4596915.7496, y: 9421857.1667 },\n { id: 3207, x: 4790369.2007, y: 9256503.3114 },\n { id: 68792, x: 4689405.0204, y: 9123681.2385 },\n { id: 56495, x: 4653969.0629, y: 9335926.7654 },\n { id: 31901, x: 4594834.425, y: 9427856.4829 },\n { id: 56497, x: 4653739.8776, y: 9351354.9734 },\n { id: 3211, x: 4786334.2229, y: 9264796.0963 },\n { id: 31905, x: 4590120.4321, y: 9431246.391 },\n { id: 3212, x: 4785719.1093, y: 9276349.7504 },\n { id: 31906, x: 4588848.5532, y: 9423311.3013 },\n { id: 31911, x: 4581223.5173, y: 9423001.1428 },\n { id: 15518, x: 4743910.6127, y: 9441376.9684 },\n { id: 15524, x: 4738900.8151, y: 9453154.1697 },\n { id: 7327, x: 4881512.3876, y: 9149189.1425 },\n { id: 15527, x: 4734971.4141, y: 9444577.6547 },\n { id: 48321, x: 4760529.166, y: 9407306.7945 },\n { id: 7331, x: 4877646.5118, y: 9154443.4633 },\n { id: 36025, x: 4831164.5034, y: 9363566.8061 },\n { id: 48323, x: 4760088.9796, y: 9400397.3018 },\n { id: 36027, x: 4830236.0814, y: 9375085.569 },\n { id: 15533, x: 4730724.2953, y: 9454136.9134 },\n { id: 7335, x: 4875555.5139, y: 9145473.8285 },\n { id: 48329, x: 4753604.4908, y: 9404413.3372 },\n { id: 15537, x: 4727641.3459, y: 9440046.7708 },\n { id: 36033, x: 4827222.9361, y: 9367912.5856 },\n { id: 36035, x: 4824892.8299, y: 9359198.2403 },\n { id: 7342, x: 4868395.7914, y: 9153948.2429 },\n { id: 7343, x: 4868143.8364, y: 9142764.8426 },\n { id: 36040, x: 4821749.507, y: 9368651.11 },\n { id: 11452, x: 4822225.5916, y: 9240493.1762 },\n { id: 11453, x: 4820623.3084, y: 9253815.0446 },\n { id: 11458, x: 4816841.5576, y: 9243284.8173 },\n { id: 11466, x: 4810503.078, y: 9252652.8112 },\n { id: 11472, x: 4806320.1946, y: 9243885.8272 },\n { id: 31968, x: 4575745.0024, y: 9368624.1052 },\n { id: 31969, x: 4574566.1313, y: 9353558.4787 },\n { id: 31970, x: 4574476.5326, y: 9364507.618 },\n { id: 31971, x: 4573772.8356, y: 9372171.4704 },\n { id: 31978, x: 4568247.1188, y: 9356589.1554 },\n { id: 23792, x: 4671371.4836, y: 9363006.895 },\n { id: 23794, x: 4671137.7228, y: 9372452.2813 },\n { id: 23796, x: 4668830.6075, y: 9359621.5539 },\n { id: 23798, x: 4666876.6448, y: 9368738.5854 },\n { id: 23800, x: 4664821.4503, y: 9373574.3969 },\n { id: 31999, x: 4577248.727, y: 9379554.8029 },\n { id: 32000, x: 4576695.334, y: 9394867.2639 },\n { id: 23803, x: 4662784.8541, y: 9357635.1954 },\n { id: 23805, x: 4661384.4231, y: 9368145.635 },\n { id: 32006, x: 4576752.4815, y: 9412035.4195 },\n { id: 23809, x: 4659206.8459, y: 9373899.3462 },\n { id: 32009, x: 4838686.9488, y: 9358368.3112 },\n { id: 48406, x: 4761480.1544, y: 9419986.7831 },\n { id: 23812, x: 4657479.4742, y: 9357305.7019 },\n { id: 48409, x: 4758532.3423, y: 9435118.8345 },\n { id: 48412, x: 4755911.2841, y: 9425388.952 },\n { id: 56611, x: 4652343.1598, y: 9256081.2944 },\n { id: 56613, x: 4650925.6708, y: 9269766.0018 },\n { id: 40220, x: 4836248.1049, y: 9575691.0102 },\n { id: 56618, x: 4644463.1987, y: 9252918.3943 },\n { id: 27925, x: 4670401.3038, y: 9555942.7799 },\n { id: 56619, x: 4644145.7698, y: 9263094.4735 },\n { id: 40224, x: 4834180.4429, y: 9563648.5879 },\n { id: 73019, x: 4601761.5424, y: 9171323.7832 },\n { id: 27931, x: 4665483.9137, y: 9550694.1681 },\n { id: 27934, x: 4662500.3522, y: 9556745.1749 },\n { id: 27936, x: 4661810.0501, y: 9546596.8489 },\n { id: 40234, x: 4829251.4081, y: 9574712.5145 },\n { id: 27937, x: 4660305.6419, y: 9561038.6551 },\n { id: 27938, x: 4660235.3909, y: 9552949.4876 },\n { id: 73027, x: 4592922.1735, y: 9170428.6428 },\n { id: 40237, x: 4826254.0374, y: 9569195.2915 },\n { id: 73029, x: 4591937.3263, y: 9178979.0529 },\n { id: 40239, x: 4825803.1487, y: 9562617.2134 },\n { id: 40241, x: 4822759.5501, y: 9576837.4168 },\n { id: 27944, x: 4656754.002, y: 9559544.0329 },\n { id: 27946, x: 4655645.9116, y: 9547133.3882 },\n { id: 73036, x: 4586744.0986, y: 9172559.6607 },\n { id: 40247, x: 4819415.2867, y: 9561577.025 },\n { id: 27952, x: 4652594.6375, y: 9544576.4513 },\n { id: 64851, x: 4747441.7201, y: 9216506.8787 },\n { id: 64853, x: 4745695.6592, y: 9220837.0976 },\n { id: 64857, x: 4742355.376, y: 9233309.5907 },\n { id: 64858, x: 4741394.1964, y: 9223435.2209 },\n { id: 64860, x: 4740076.8164, y: 9214348.5207 },\n { id: 3375, x: 4798508.742, y: 9292953.9989 },\n { id: 3376, x: 4798306.8229, y: 9278237.8319 },\n { id: 3377, x: 4797482.7658, y: 9286279.9072 },\n { id: 36171, x: 4818895.7507, y: 9363023.356 },\n { id: 64865, x: 4736728.3441, y: 9217965.8205 },\n { id: 3386, x: 4789910.1738, y: 9284530.1402 },\n { id: 64872, x: 4733259.7969, y: 9224082.2743 },\n { id: 52575, x: 4704654.8642, y: 9348283.0778 },\n { id: 48476, x: 4762870.368, y: 9454225.2532 },\n { id: 36179, x: 4814084.6082, y: 9375395.1205 },\n { id: 52576, x: 4703246.1362, y: 9339794.8372 },\n { id: 3388, x: 4788769.4616, y: 9294668.1261 },\n { id: 64874, x: 4731754.0259, y: 9215396.1764 },\n { id: 52577, x: 4702340.5718, y: 9353442.6213 },\n { id: 52578, x: 4702207.5451, y: 9345303.8135 },\n { id: 36183, x: 4810841.4075, y: 9370763.9006 },\n { id: 3391, x: 4785794.622, y: 9284517.3007 },\n { id: 48481, x: 4758204.4992, y: 9439731.8368 },\n { id: 48482, x: 4756734.3727, y: 9449905.7853 },\n { id: 52582, x: 4697955.1404, y: 9350007.6082 },\n { id: 52583, x: 4697825.051, y: 9343983.298 },\n { id: 48484, x: 4754993.6569, y: 9456240.0216 },\n { id: 52586, x: 4694026.5641, y: 9339411.2854 },\n { id: 36190, x: 4807631.7941, y: 9360383.5996 },\n { id: 60785, x: 4768630.8401, y: 9165941.1865 },\n { id: 52587, x: 4693190.6606, y: 9349873.6213 },\n { id: 48488, x: 4751126.4103, y: 9443411.03 },\n { id: 36191, x: 4805644.1929, y: 9370039.5814 },\n { id: 60786, x: 4768923.814, y: 9158944.4129 },\n { id: 52589, x: 4691764.2791, y: 9345356.2266 },\n { id: 64887, x: 4724629.2072, y: 9125586.6214 },\n { id: 60789, x: 4764921.4124, y: 9170387.3994 },\n { id: 60792, x: 4763005.0704, y: 9164177.8433 },\n { id: 60794, x: 4762200.3641, y: 9159020.5467 },\n { id: 64894, x: 4702578.4951, y: 9126523.6824 },\n { id: 60796, x: 4760269.5871, y: 9173212.641 },\n { id: 60802, x: 4758160.7211, y: 9162180.474 },\n { id: 60803, x: 4757277.0499, y: 9167732.1412 },\n { id: 19814, x: 4725205.6746, y: 9443307.4051 },\n { id: 19817, x: 4724652.2923, y: 9451864.0315 },\n { id: 60809, x: 4753919.1404, y: 9158954.5732 },\n { id: 60810, x: 4752902.3555, y: 9167463.4873 },\n { id: 19822, x: 4720288.5044, y: 9450377.7216 },\n { id: 19823, x: 4720006.7857, y: 9442296.5098 },\n { id: 19824, x: 4719571.5237, y: 9457845.5471 },\n { id: 19826, x: 4717386.3223, y: 9448322.0861 },\n { id: 19830, x: 4715708.6689, y: 9444140.9177 },\n { id: 19831, x: 4713276.4273, y: 9450742.0877 },\n { id: 19832, x: 4712736.5279, y: 9457034.0482 },\n { id: 19834, x: 4711032.2566, y: 9444505.8482 },\n { id: 7575, x: 4881317.1584, y: 9169840.5388 },\n { id: 7576, x: 4880965.9694, y: 9159214.3214 },\n { id: 7577, x: 4880016.0041, y: 9163167.0306 },\n { id: 56770, x: 4653266.5942, y: 9279267.8637 },\n { id: 7583, x: 4873237.7848, y: 9158690.9697 },\n { id: 56772, x: 4650592.5621, y: 9282604.6885 },\n { id: 56773, x: 4650048.8167, y: 9274492.3279 },\n { id: 15783, x: 4743248.7653, y: 9435515.6734 },\n { id: 56775, x: 4646023.2189, y: 9292080.7095 },\n { id: 15785, x: 4742265.5379, y: 9428071.3239 },\n { id: 7588, x: 4866215.2323, y: 9160985.7155 },\n { id: 48579, x: 4757179.7645, y: 9465011.3562 },\n { id: 15787, x: 4737980.4395, y: 9424072.4773 },\n { id: 7589, x: 4864000.2876, y: 9166007.2715 },\n { id: 56778, x: 4644892.818, y: 9278577.5436 },\n { id: 48580, x: 4755577.4211, y: 9476903.6258 },\n { id: 11689, x: 4822467.4376, y: 9233306.309 },\n { id: 56779, x: 4642657.8116, y: 9271893.8986 },\n { id: 44482, x: 4798699.9053, y: 9464905.852 },\n { id: 15789, x: 4737488.7134, y: 9433921.6295 },\n { id: 56782, x: 4641756.7589, y: 9283736.3645 },\n { id: 56783, x: 4640138.0013, y: 9276649.0375 },\n { id: 48585, x: 4751379.646, y: 9474104.21 },\n { id: 56784, x: 4639179.5458, y: 9280136.1228 },\n { id: 44488, x: 4793588.6353, y: 9471264.9146 },\n { id: 11696, x: 4818063.7344, y: 9221024.6328 },\n { id: 56786, x: 4636695.843, y: 9282622.1378 },\n { id: 15796, x: 4731737.9228, y: 9438026.8545 },\n { id: 44490, x: 4792636.6292, y: 9463394.1779 },\n { id: 11698, x: 4816315.8239, y: 9233252.2907 },\n { id: 73184, x: 4619676.3451, y: 9226857.8293 },\n { id: 15800, x: 4729286.5227, y: 9429654.5336 },\n { id: 11703, x: 4812934.9124, y: 9226332.8595 },\n { id: 44496, x: 4787657.5189, y: 9475122.375 },\n { id: 73189, x: 4610488.2648, y: 9227891.0874 },\n { id: 44497, x: 4787316.0579, y: 9468135.9793 },\n { id: 73191, x: 4610496.0699, y: 9219210.4457 },\n { id: 44500, x: 4784228.5281, y: 9460935.1677 },\n { id: 40401, x: 4816458.7627, y: 9569618.5135 },\n { id: 11708, x: 4808573.4815, y: 9236024.0151 },\n { id: 73193, x: 4609582.5728, y: 9217565.7082 },\n { id: 11712, x: 4806869.8783, y: 9217437.3342 },\n { id: 40406, x: 4812445.8967, y: 9579544.4304 },\n { id: 11714, x: 4805626.963, y: 9224224.2443 },\n { id: 40408, x: 4811310.5143, y: 9573133.0852 },\n { id: 73200, x: 4604092.5198, y: 9210957.4068 },\n { id: 73201, x: 4602839.6638, y: 9220475.3868 },\n { id: 40411, x: 4809839.4339, y: 9565254.4252 },\n { id: 40416, x: 4806334.7869, y: 9578924.9958 },\n { id: 69112, x: 4696925.5714, y: 9147762.0028 },\n { id: 40419, x: 4803838.7367, y: 9574445.9402 },\n { id: 40421, x: 4803446.333, y: 9561858.9154 },\n { id: 69115, x: 4697026.2982, y: 9132185.7508 },\n { id: 40425, x: 4801422.8531, y: 9565343.796 },\n { id: 69119, x: 4693506.0626, y: 9134752.5972 },\n { id: 69122, x: 4687675.9132, y: 9141637.164 },\n { id: 15839, x: 4748007.4828, y: 9459814.7433 },\n { id: 69127, x: 4683635.0692, y: 9135537.5015 },\n { id: 15844, x: 4744393.1155, y: 9477667.0508 },\n { id: 65047, x: 4735063.2809, y: 9135389.826 },\n { id: 65048, x: 4733148.545, y: 9147388.8609 },\n { id: 11766, x: 4805209.9808, y: 9168439.6654 },\n { id: 65054, x: 4728121.5875, y: 9150458.1161 },\n { id: 11767, x: 4805064.4309, y: 9162423.9838 },\n { id: 65055, x: 4728451.2522, y: 9132940.2932 },\n { id: 48659, x: 4760789.6456, y: 9491371.1729 },\n { id: 11769, x: 4802585.1256, y: 9174064.0581 },\n { id: 65059, x: 4725691.5309, y: 9139717.3647 },\n { id: 11772, x: 4800839.8707, y: 9164715.804 },\n { id: 48665, x: 4756268.2738, y: 9487624.4901 },\n { id: 48666, x: 4754382.0237, y: 9497926.4783 },\n { id: 48667, x: 4753809.7255, y: 9482608.4107 },\n { id: 3578, x: 4782632.408, y: 9294582.3397 },\n { id: 11777, x: 4794534.1852, y: 9169204.8352 },\n { id: 32273, x: 4854440.8079, y: 9417246.9091 },\n { id: 3580, x: 4780357.2284, y: 9285613.5627 },\n { id: 36373, x: 4833248.0791, y: 9390688.9574 },\n { id: 65069, x: 4717693.4266, y: 9145837.956 },\n { id: 36376, x: 4830746.1178, y: 9380402.6052 },\n { id: 32277, x: 4850041.8046, y: 9411704.4443 },\n { id: 36377, x: 4830502.6624, y: 9398969.3726 },\n { id: 36380, x: 4828033.1084, y: 9392827.1786 },\n { id: 32281, x: 4845585.3801, y: 9414401.8364 },\n { id: 36381, x: 4825779.7302, y: 9397572.631 },\n { id: 32282, x: 4844398.3873, y: 9406199.6138 },\n { id: 3589, x: 4774137.025, y: 9283562.8313 },\n { id: 3592, x: 4771110.0638, y: 9290879.0485 },\n { id: 32286, x: 4840840.3506, y: 9409832.2107 },\n { id: 36386, x: 4823420.0234, y: 9379079.123 },\n { id: 32287, x: 4839223.8423, y: 9400876.3098 },\n { id: 28188, x: 4652609.7403, y: 9368997.2721 },\n { id: 32288, x: 4839133.7038, y: 9416051.5433 },\n { id: 36388, x: 4821503.5946, y: 9389246.4509 },\n { id: 28190, x: 4651128.1014, y: 9358950.3416 },\n { id: 28191, x: 4650283.7069, y: 9364208.5149 },\n { id: 28196, x: 4647568.0502, y: 9368959.7693 },\n { id: 24098, x: 4688015.183, y: 9386565.9905 },\n { id: 28199, x: 4645675.4922, y: 9365742.1118 },\n { id: 24100, x: 4685923.485, y: 9379571.1479 },\n { id: 15903, x: 4747217.0284, y: 9494368.7508 },\n { id: 28201, x: 4642091.017, y: 9372457.3693 },\n { id: 24102, x: 4684053.454, y: 9388106.375 },\n { id: 28202, x: 4642028.6908, y: 9358706.304 },\n { id: 24103, x: 4683699.3491, y: 9392726.5417 },\n { id: 15905, x: 4746136.7828, y: 9487195.381 },\n { id: 28203, x: 4641866.6324, y: 9367910.524 },\n { id: 28204, x: 4640054.4322, y: 9355067.5938 },\n { id: 24107, x: 4679017.3648, y: 9391005.5343 },\n { id: 24108, x: 4678793.4216, y: 9379884.4709 },\n { id: 28208, x: 4638045.9281, y: 9366280.5212 },\n { id: 24110, x: 4677467.8968, y: 9394995.6556 },\n { id: 24111, x: 4676066.578, y: 9386938.9987 },\n { id: 28211, x: 4634853.5503, y: 9371642.2308 },\n { id: 24112, x: 4675740.3607, y: 9376527.1701 },\n { id: 24113, x: 4674384.5329, y: 9381960.4932 },\n { id: 24115, x: 4673525.6728, y: 9391250.9234 },\n { id: 20024, x: 4707096.1397, y: 9453601.2294 },\n { id: 20027, x: 4706412.273, y: 9449803.9012 },\n { id: 20028, x: 4706024.8912, y: 9445486.9455 },\n { id: 20031, x: 4702705.2447, y: 9452132.1197 },\n { id: 11835, x: 4784124.172, y: 9173384.5086 },\n { id: 20034, x: 4700386.8661, y: 9447362.4 },\n { id: 20035, x: 4699358.6592, y: 9455427.7077 },\n { id: 11837, x: 4779822.5246, y: 9167720.2639 },\n { id: 20040, x: 4696631.8916, y: 9457721.9488 },\n { id: 20043, x: 4694527.9689, y: 9450158.6371 },\n { id: 20045, x: 4692342.7049, y: 9457520.228 },\n { id: 20046, x: 4691916.7287, y: 9440841.5255 },\n { id: 61038, x: 4752605.8048, y: 9155262.4826 },\n { id: 56939, x: 4634441.0311, y: 9277290.6008 },\n { id: 48742, x: 4761605.4009, y: 9517322.57 },\n { id: 61040, x: 4749611.3259, y: 9170180.7682 },\n { id: 56942, x: 4632800.5236, y: 9282955.5881 },\n { id: 7754, x: 4859092.2116, y: 9172473.3491 },\n { id: 56943, x: 4629989.1001, y: 9279863.2311 },\n { id: 61043, x: 4748866.091, y: 9158978.5079 },\n { id: 56944, x: 4629845.2213, y: 9275033.1389 },\n { id: 61044, x: 4747407.0649, y: 9165757.3283 },\n { id: 56945, x: 4629533.62, y: 9289980.0891 },\n { id: 48748, x: 4756467.8407, y: 9511664.6022 },\n { id: 7758, x: 4857132.5207, y: 9165904.4092 },\n { id: 48749, x: 4755957.7804, y: 9505691.6473 },\n { id: 61047, x: 4746186.95, y: 9162083.9949 },\n { id: 48750, x: 4753881.3258, y: 9520102.2091 },\n { id: 56951, x: 4623454.3772, y: 9279724.7124 },\n { id: 56952, x: 4622835.5488, y: 9271518.0489 },\n { id: 48754, x: 4751527.3119, y: 9513524.1662 },\n { id: 61052, x: 4743037.9851, y: 9170848.316 },\n { id: 48755, x: 4750872.8372, y: 9502731.0616 },\n { id: 7765, x: 4853755.4062, y: 9158633.3186 },\n { id: 61054, x: 4743011.8942, y: 9157187.4556 },\n { id: 56956, x: 4618969.1151, y: 9287077.3367 },\n { id: 7768, x: 4851335.3069, y: 9169860.1804 },\n { id: 61056, x: 4740860.0659, y: 9165429.4143 },\n { id: 61059, x: 4738948.9974, y: 9171294.2646 },\n { id: 7773, x: 4849942.3623, y: 9163789.9777 },\n { id: 61063, x: 4737869.6682, y: 9157491.8063 },\n { id: 61065, x: 4735550.9012, y: 9166144.6208 },\n { id: 7778, x: 4845732.1742, y: 9176909.667 },\n { id: 7779, x: 4845921.8576, y: 9159335.8238 },\n { id: 61067, x: 4734217.974, y: 9171773.2497 },\n { id: 61069, x: 4734100.7188, y: 9161985.2142 },\n { id: 40611, x: 4813378.58, y: 9552615.5678 },\n { id: 40616, x: 4810843.8081, y: 9545068.7815 },\n { id: 73409, x: 4616703.5772, y: 9238224.1801 },\n { id: 40618, x: 4809325.2086, y: 9560544.7697 },\n { id: 73411, x: 4614309.6212, y: 9231968.7001 },\n { id: 73414, x: 4611560.2056, y: 9245204.1747 },\n { id: 40623, x: 4807156.9969, y: 9554323.9672 },\n { id: 40625, x: 4806254.2741, y: 9548260.3386 },\n { id: 73417, x: 4610243.1372, y: 9236059.74 },\n { id: 48825, x: 4762863.0543, y: 9540671.2579 },\n { id: 48827, x: 4761104.4464, y: 9535788.2203 },\n { id: 73421, x: 4603840.2529, y: 9234001.2343 },\n { id: 48828, x: 4760738.0769, y: 9521659.732 },\n { id: 48830, x: 4758582.3646, y: 9527527.7173 },\n { id: 48834, x: 4752950.7171, y: 9529676.1845 },\n { id: 48835, x: 4752552.5588, y: 9536331.3182 },\n { id: 52952, x: 4692111.2839, y: 9257949.5 },\n { id: 16061, x: 4740192.9401, y: 9497296.2535 },\n { id: 16062, x: 4740072.1439, y: 9483471.7595 },\n { id: 16067, x: 4734086.5385, y: 9490818.3121 },\n { id: 52959, x: 4683821.314, y: 9269294.2081 },\n { id: 52960, x: 4681065.7528, y: 9254865.1858 },\n { id: 16069, x: 4732315.8583, y: 9479870.4797 },\n { id: 52961, x: 4680705.5596, y: 9260743.62 },\n { id: 52963, x: 4676747.4323, y: 9268418.0842 },\n { id: 16072, x: 4729882.8662, y: 9497497.6462 },\n { id: 16075, x: 4727334.2116, y: 9488052.7395 },\n { id: 73469, x: 4598474.9062, y: 9242655.5133 },\n { id: 73473, x: 4594444.1413, y: 9235853.0794 },\n { id: 73474, x: 4591168.0061, y: 9228879.7711 },\n { id: 57081, x: 4635781.1923, y: 9260489.8758 },\n { id: 36586, x: 4835656.346, y: 9412023.4506 },\n { id: 57082, x: 4635442.0249, y: 9269110.0705 },\n { id: 57083, x: 4632552.2235, y: 9251898.9285 },\n { id: 57084, x: 4631537.6385, y: 9262793.1597 },\n { id: 36593, x: 4830448.043, y: 9409537.5786 },\n { id: 57089, x: 4626873.1281, y: 9256853.3415 },\n { id: 3807, x: 4784495.7987, y: 9260107.2191 },\n { id: 36603, x: 4822748.1454, y: 9406244.0257 },\n { id: 3811, x: 4780205.822, y: 9269976.8968 },\n { id: 12010, x: 4804872.5572, y: 9192082.4733 },\n { id: 3812, x: 4779085.9333, y: 9260678.0096 },\n { id: 36606, x: 4819933.8595, y: 9411176.0236 },\n { id: 12012, x: 4802827.5434, y: 9186708.882 },\n { id: 48905, x: 4761623.4556, y: 9553160.0193 },\n { id: 3817, x: 4775404.1186, y: 9266624.5186 },\n { id: 3818, x: 4774008.1708, y: 9275938.3474 },\n { id: 12017, x: 4801635.7743, y: 9177791.2281 },\n { id: 69404, x: 4690608.9647, y: 9166249.2944 },\n { id: 3820, x: 4771765.5981, y: 9269908.0707 },\n { id: 32514, x: 4871565.9595, y: 9435066.6595 },\n { id: 12020, x: 4797817.9249, y: 9183272.4595 },\n { id: 3822, x: 4770848.7036, y: 9260189.7381 },\n { id: 48912, x: 4755489.1657, y: 9546780.5159 },\n { id: 69408, x: 4687609.4607, y: 9152699.4519 },\n { id: 48913, x: 4754091.112, y: 9542569.584 },\n { id: 12022, x: 4795792.24, y: 9192091.7683 },\n { id: 69409, x: 4685350.8103, y: 9159622.2001 },\n { id: 32518, x: 4867589.77, y: 9427669.6826 },\n { id: 48915, x: 4753411.2804, y: 9553265.0546 },\n { id: 48916, x: 4751499.722, y: 9559788.7322 },\n { id: 12025, x: 4795134.3897, y: 9177242.5031 },\n { id: 32522, x: 4864016.8116, y: 9437175.409 },\n { id: 12029, x: 4791441.8601, y: 9188550.348 },\n { id: 69416, x: 4679900.4627, y: 9154733.5254 },\n { id: 32526, x: 4859794.5247, y: 9431685.3355 },\n { id: 12031, x: 4790707.6918, y: 9182574.0924 },\n { id: 12032, x: 4789728.5847, y: 9179096.2345 },\n { id: 32529, x: 4858052.155, y: 9424586.7853 },\n { id: 32530, x: 4857749.4976, y: 9439007.0941 },\n { id: 7955, x: 4863173.7986, y: 9149829.0151 },\n { id: 28453, x: 4633297.0073, y: 9363045.8255 },\n { id: 7958, x: 4859619.1782, y: 9157034.8801 },\n { id: 7959, x: 4860122.1661, y: 9144096.6297 },\n { id: 28455, x: 4630962.9143, y: 9356097.8983 },\n { id: 28458, x: 4628824.3381, y: 9367111.918 },\n { id: 28459, x: 4628818.4497, y: 9370755.8034 },\n { id: 7964, x: 4855778.64, y: 9150323.9185 },\n { id: 28460, x: 4626792.4265, y: 9364033.8503 },\n { id: 28462, x: 4626474.6329, y: 9356193.7704 },\n { id: 28465, x: 4624201.5165, y: 9372272.9268 },\n { id: 7971, x: 4853423.2213, y: 9144065.6877 },\n { id: 28468, x: 4621800.9783, y: 9360353.4212 },\n { id: 28469, x: 4621297.2274, y: 9369437.7018 },\n { id: 28470, x: 4619358.5731, y: 9366039.9968 },\n { id: 7975, x: 4849815.613, y: 9152180.7528 },\n { id: 28472, x: 4618351.1197, y: 9356185.129 },\n { id: 73561, x: 4600422.5822, y: 9228118.8992 },\n { id: 28473, x: 4618059.3855, y: 9361639.2614 },\n { id: 28474, x: 4617696.508, y: 9371952.2257 },\n { id: 24379, x: 4688729.8497, y: 9415828.3674 },\n { id: 73567, x: 4595134.4103, y: 9211724.1394 },\n { id: 24382, x: 4685227.1693, y: 9404155.7198 },\n { id: 73570, x: 4590504.7158, y: 9219153.7343 },\n { id: 24384, x: 4684116.9856, y: 9409898.9337 },\n { id: 24386, x: 4683050.2924, y: 9415833.2377 },\n { id: 73574, x: 4585142.8331, y: 9165489.2065 },\n { id: 24388, x: 4681149.4259, y: 9397442.334 },\n { id: 7992, x: 4862291.0027, y: 9210688.1296 },\n { id: 73576, x: 4583430.6158, y: 9179826.6662 },\n { id: 24389, x: 4680680.5172, y: 9406407.8511 },\n { id: 73577, x: 4583565.5183, y: 9175286.3072 },\n { id: 24390, x: 4679949.6251, y: 9413065.5546 },\n { id: 73578, x: 4583558.7643, y: 9175282.5787 },\n { id: 24392, x: 4678505.5004, y: 9416710.8211 },\n { id: 24394, x: 4674878.6688, y: 9412118.8593 },\n { id: 24397, x: 4673222.3429, y: 9405066.2981 },\n { id: 40797, x: 4836665.3369, y: 9591941.3849 },\n { id: 40798, x: 4836380.3739, y: 9599117.5679 },\n { id: 40806, x: 4831483.501, y: 9593393.7788 },\n { id: 40809, x: 4829582.6166, y: 9581584.0575 },\n { id: 44910, x: 4798820.9081, y: 9480934.6237 },\n { id: 40811, x: 4828032.2632, y: 9586611.9914 },\n { id: 44913, x: 4795139.2466, y: 9499991.7559 },\n { id: 40814, x: 4826542.5295, y: 9593831.6192 },\n { id: 44915, x: 4794243.2194, y: 9491308.2709 },\n { id: 61313, x: 4752957.9005, y: 9134023.8821 },\n { id: 61314, x: 4752102.3551, y: 9144429.0558 },\n { id: 40819, x: 4822593.996, y: 9587454.8951 },\n { id: 40820, x: 4822403.5245, y: 9581290.7016 },\n { id: 44920, x: 4789784.5476, y: 9493106.9482 },\n { id: 44922, x: 4788875.6207, y: 9485921.3813 },\n { id: 40823, x: 4820687.3309, y: 9594553.0734 },\n { id: 16231, x: 4743252.5734, y: 9469586.1018 },\n { id: 61321, x: 4748346.6204, y: 9137946.2233 },\n { id: 69520, x: 4678071.8428, y: 9165362.1332 },\n { id: 61322, x: 4746957.6888, y: 9150501.7524 },\n { id: 57224, x: 4651715.5216, y: 9297060.0756 },\n { id: 44928, x: 4783671.1109, y: 9499301.2808 },\n { id: 20334, x: 4705471.7555, y: 9418115.6652 },\n { id: 57226, x: 4650487.0798, y: 9304279.1428 },\n { id: 16236, x: 4738076.8738, y: 9474555.8004 },\n { id: 57227, x: 4649629.9876, y: 9312495.3956 },\n { id: 20336, x: 4703698.2105, y: 9437113.1441 },\n { id: 20337, x: 4702776.6526, y: 9431336.836 },\n { id: 69526, x: 4673095.6339, y: 9153536.2796 },\n { id: 61328, x: 4743701.8293, y: 9144568.7177 },\n { id: 57229, x: 4647516.8662, y: 9304977.4491 },\n { id: 20338, x: 4702048.0767, y: 9424613.5355 },\n { id: 16239, x: 4735746.6509, y: 9461947.7188 },\n { id: 61330, x: 4743573.3123, y: 9131828.7126 },\n { id: 57231, x: 4647099.3219, y: 9298917.1198 },\n { id: 20340, x: 4699882.6153, y: 9437711.1859 },\n { id: 57232, x: 4646163.6667, y: 9311475.5596 },\n { id: 57233, x: 4643317.6034, y: 9304937.9868 },\n { id: 20342, x: 4698473.9153, y: 9427501.2972 },\n { id: 16244, x: 4731684.4836, y: 9469778.0311 },\n { id: 69532, x: 4668633.8535, y: 9150694.5755 },\n { id: 57235, x: 4642146.2559, y: 9295830.1901 },\n { id: 49037, x: 4760986.7528, y: 9569063.049 },\n { id: 69533, x: 4664423.5826, y: 9158619.5564 },\n { id: 16246, x: 4728572.0647, y: 9461492.0714 },\n { id: 69534, x: 4663486.5271, y: 9153462.1409 },\n { id: 61336, x: 4740122.4693, y: 9136487.7179 },\n { id: 57237, x: 4641475.5262, y: 9312116.311 },\n { id: 49039, x: 4759091.0104, y: 9562177.7983 },\n { id: 20346, x: 4694763.4227, y: 9436866.4878 },\n { id: 61337, x: 4738594.3278, y: 9144236.9109 },\n { id: 20347, x: 4693745.4287, y: 9431301.0793 },\n { id: 16248, x: 4727227.822, y: 9478682.0303 },\n { id: 61338, x: 4738232.2911, y: 9149247.4081 },\n { id: 57239, x: 4639155.474, y: 9302713.6156 },\n { id: 20349, x: 4692386.9352, y: 9422126.2855 },\n { id: 49045, x: 4753606.2271, y: 9567736.4286 },\n { id: 61343, x: 4735221.45, y: 9140373.3707 },\n { id: 49047, x: 4878313.1018, y: 9459303.1181 },\n { id: 49049, x: 4877008.1087, y: 9449217.1119 },\n { id: 36759, x: 4817663.6739, y: 9401621.4663 },\n { id: 36766, x: 4812554.8707, y: 9415753.6571 },\n { id: 36767, x: 4812146.6909, y: 9407403.6442 },\n { id: 69567, x: 4679050.7097, y: 9129519.26 },\n { id: 69568, x: 4677836.0408, y: 9145046.8958 },\n { id: 36776, x: 4807341.7306, y: 9401743.0182 },\n { id: 69569, x: 4676006.1313, y: 9138284.4187 },\n { id: 36782, x: 4802913.8971, y: 9410122.9457 },\n { id: 65481, x: 4732227.8523, y: 9167528.6716 },\n { id: 65487, x: 4729533.3128, y: 9159901.9855 },\n { id: 65492, x: 4723090.6979, y: 9152350.3788 },\n { id: 65494, x: 4721742.9654, y: 9163648.5355 },\n { id: 16311, x: 4746809.4157, y: 9514101.9329 },\n { id: 16312, x: 4746675.4344, y: 9506067.195 },\n { id: 32733, x: 4870778.6797, y: 9449029.8856 },\n { id: 4040, x: 4801621.4088, y: 9314065.1825 },\n { id: 32734, x: 4868452.4711, y: 9442034.2249 },\n { id: 32735, x: 4868401.1134, y: 9457825.66 },\n { id: 4045, x: 4799221.3177, y: 9299482.0371 },\n { id: 32742, x: 4864055.08, y: 9448692.894 },\n { id: 12247, x: 4804525.6046, y: 9211379.3889 },\n { id: 32743, x: 4863097.3472, y: 9444234.3504 },\n { id: 32745, x: 4862041.7751, y: 9455677.9792 },\n { id: 12250, x: 4803323.4629, y: 9203512.5443 },\n { id: 12251, x: 4803317.5578, y: 9198937.6165 },\n { id: 4053, x: 4792029.1584, y: 9310666.02 },\n { id: 32751, x: 4857037.5199, y: 9445967.5232 },\n { id: 12256, x: 4798860.969, y: 9195933.5033 },\n { id: 4058, x: 4788207.7845, y: 9302591.303 },\n { id: 12257, x: 4797722.727, y: 9205119.7966 },\n { id: 12258, x: 4796817.3906, y: 9210440.2823 },\n { id: 16359, x: 4749549.9639, y: 9524160.6318 },\n { id: 12262, x: 4794094.0893, y: 9197835.696 },\n { id: 16362, x: 4747160.9064, y: 9531171.3939 },\n { id: 16364, x: 4745798.2609, y: 9537686.7721 },\n { id: 16365, x: 4744661.9142, y: 9522176.8469 },\n { id: 12266, x: 4790294.0552, y: 9205754.479 },\n { id: 12267, x: 4789695.0349, y: 9195581.0397 },\n { id: 12270, x: 4788651.6665, y: 9201372.6775 },\n { id: 40973, x: 4836710.1565, y: 9617875.2255 },\n { id: 40977, x: 4834034.5384, y: 9608352.5292 },\n { id: 40978, x: 4833778.2354, y: 9614140.2227 },\n { id: 40984, x: 4830022.6509, y: 9609883.3953 },\n { id: 40985, x: 4829737.6587, y: 9601201.2105 },\n { id: 40989, x: 4827268.1159, y: 9618284.6675 },\n { id: 49188, x: 4883382.944, y: 9488194.3631 }\n ];\n }", "title": "" }, { "docid": "280841fb06145904d49477e6c00855e8", "score": "0.6066959", "text": "function addPoint(pnt) {\n points.push(pnt);\n setCurrentSample(\"last\");\n updateOrRescale();\n }", "title": "" }, { "docid": "280841fb06145904d49477e6c00855e8", "score": "0.6066959", "text": "function addPoint(pnt) {\n points.push(pnt);\n setCurrentSample(\"last\");\n updateOrRescale();\n }", "title": "" }, { "docid": "febad244f0cc22ebbc2e8125be91cb7d", "score": "0.60665065", "text": "function addLatLng(event) {\n var path = poly.getPath();\n\n // Because path is an MVCArray, we can simply append a new coordinate\n // and it will automatically appear.\n path.push(event.latLng);\n\n // Add a new marker at the new plotted point on the polyline.\n var marker = new google.maps.Marker({\n position: event.latLng,\n title: '#' + path.getLength(),\n map: map,\n icon: '../img/icon.png',\n });\n}", "title": "" }, { "docid": "e0d3f99908955a0f9b94b60165d6bbf5", "score": "0.6060992", "text": "function addPoint(lat, lng, title) {\n var latLng = L.latLng(lat, lng);\n \n var marker = L.marker(latLng, {\n 'title': title\n });\n \n markers.push(marker);\n \n if (map) {\n marker.addTo(map);\n }\n }", "title": "" }, { "docid": "93a4a24990d73643cbda35adc7b41ce1", "score": "0.6058282", "text": "function handlePoint(coords, points, indexMap, coordLength, properties) {\n points.positions.set(coords, indexMap.pointPosition * coordLength);\n points.globalFeatureIds[indexMap.pointPosition] = indexMap.feature;\n points.featureIds[indexMap.pointPosition] = indexMap.pointFeature;\n\n fillNumericProperties(points, properties, indexMap.pointPosition, 1);\n indexMap.pointPosition++;\n}", "title": "" }, { "docid": "c67d63c9ac0f704a5436fae87dd82a2e", "score": "0.60572743", "text": "initPoints() {\n this._points = [\n { id: 1, x: 4851343.8382, y: 4780106.7574 },\n { id: 40991, x: 4850407.7183, y: 5094372.0731 },\n { id: 3, x: 4846693.8554, y: 4774833.4312 },\n { id: 49192, x: 4898805.8298, y: 4976270.3884 },\n { id: 40994, x: 4848346.6907, y: 5086648.3122 },\n { id: 6, x: 4843325.303, y: 4764276.62 },\n { id: 7, x: 4843247.4005, y: 4781074.2395 },\n { id: 49196, x: 4894778.0958, y: 4964649.9704 },\n { id: 40999, x: 4846790.485, y: 5102473.0793 },\n { id: 49198, x: 4894810.2783, y: 4971866.7569 },\n { id: 45108, x: 4797759.9849, y: 4980574.587 },\n { id: 45111, x: 4796123.5438, y: 4985797.2739 },\n { id: 45112, x: 4793558.1323, y: 4968257.585 },\n { id: 45115, x: 4790738.4583, y: 4975124.0572 },\n { id: 45121, x: 4786555.8923, y: 4982022.206 },\n { id: 45123, x: 4784122.786, y: 4975481.1951 },\n { id: 45124, x: 4782446.3634, y: 4968906.5296 },\n { id: 45126, x: 4783206.1889, y: 4987328.6567 },\n { id: 57430, x: 4657741.1258, y: 4812777.2553 },\n { id: 57431, x: 4656918.3048, y: 4823185.8507 },\n { id: 57432, x: 4655649.7402, y: 4830649.3041 },\n { id: 57433, x: 4653400.4201, y: 4815655.7234 },\n { id: 24642, x: 4680622.2441, y: 4896672.5097 },\n { id: 8247, x: 4855005.0343, y: 4682781.9095 },\n { id: 24645, x: 4679315.8282, y: 4904446.2433 },\n { id: 8249, x: 4853314.425, y: 4690940.011 },\n { id: 57437, x: 4651112.9894, y: 4831429.9788 },\n { id: 57438, x: 4650032.276, y: 4823953.476 },\n { id: 57440, x: 4648252.4627, y: 4817851.5868 },\n { id: 24651, x: 4675025.589, y: 4910646.0847 },\n { id: 8255, x: 4849466.1346, y: 4686023.0718 },\n { id: 24652, x: 4673488.7871, y: 4893726.5806 },\n { id: 57444, x: 4644749.1744, y: 4830082.7304 },\n { id: 57445, x: 4643838.0056, y: 4820968.682 },\n { id: 57447, x: 4641988.7129, y: 4814422.2466 },\n { id: 24656, x: 4671702.2198, y: 4900252.3815 },\n { id: 8260, x: 4845873.5951, y: 4690819.9463 },\n { id: 24657, x: 4671532.9037, y: 4906862.3324 },\n { id: 24658, x: 4671720.8749, y: 4911577.9515 },\n { id: 8262, x: 4844403.959, y: 4700520.6878 },\n { id: 8264, x: 4842575.1495, y: 4684582.7631 },\n { id: 24662, x: 4667912.2835, y: 4894539.5972 },\n { id: 8266, x: 4840521.1866, y: 4698668.275 },\n { id: 24663, x: 4667653.2029, y: 4912649.4005 },\n { id: 8267, x: 4840486.7745, y: 4689635.5506 },\n { id: 24664, x: 4666888.5525, y: 4902834.7341 },\n { id: 24667, x: 4664844.7465, y: 4907870.478 },\n { id: 36978, x: 4824112.68, y: 4872047.0082 },\n { id: 36980, x: 4823109.2833, y: 4882501.358 },\n { id: 36986, x: 4817535.623, y: 4872901.1211 },\n { id: 36987, x: 4815829.7321, y: 4865537.8034 },\n { id: 36993, x: 4811315.6445, y: 4884197.3031 },\n { id: 36994, x: 4810429.9389, y: 4873655.7045 },\n { id: 61596, x: 4761688.9871, y: 4673697.4325 },\n { id: 61597, x: 4761192.0658, y: 4683471.4697 },\n { id: 61599, x: 4760419.6957, y: 4669541.7519 },\n { id: 49302, x: 4895859.2743, y: 4956739.4878 },\n { id: 61601, x: 4760193.2282, y: 4664400.7495 },\n { id: 49304, x: 4894035.5451, y: 4949266.46 },\n { id: 61602, x: 4759362.107, y: 4679159.1962 },\n { id: 20612, x: 4738823.7458, y: 4958910.1513 },\n { id: 20615, x: 4738158.5016, y: 4965578.2989 },\n { id: 61608, x: 4756485.0443, y: 4673195.6879 },\n { id: 20618, x: 4733560.2084, y: 4965420.0181 },\n { id: 20619, x: 4732918.1759, y: 4957616.018 },\n { id: 61612, x: 4754940.9305, y: 4667681.0179 },\n { id: 20624, x: 4728645.8667, y: 4967732.4993 },\n { id: 61615, x: 4753390.5742, y: 4679593.7684 },\n { id: 20625, x: 4727521.5998, y: 4956386.1538 },\n { id: 20628, x: 4724210.0683, y: 4964491.4193 },\n { id: 53421, x: 4693319.7125, y: 4780055.788 },\n { id: 53422, x: 4691984.9401, y: 4768623.4367 },\n { id: 61621, x: 4749901.1674, y: 4663727.145 },\n { id: 12434, x: 4781922.9927, y: 4695041.188 },\n { id: 61623, x: 4749025.5865, y: 4668666.2425 },\n { id: 12435, x: 4780547.6296, y: 4701355.7342 },\n { id: 61624, x: 4748059.112, y: 4674037.0265 },\n { id: 53426, x: 4687878.8033, y: 4786975.5156 },\n { id: 12436, x: 4779040.4813, y: 4687020.4399 },\n { id: 61625, x: 4747112.7331, y: 4680569.8764 },\n { id: 53427, x: 4685192.7856, y: 4774627.4092 },\n { id: 53428, x: 4684618.5118, y: 4780519.4521 },\n { id: 53432, x: 4678337.9068, y: 4770819.4432 },\n { id: 53433, x: 4677789.995, y: 4785555.3422 },\n { id: 12443, x: 4775541.3227, y: 4683568.0578 },\n { id: 12444, x: 4774406.2583, y: 4699213.8102 },\n { id: 12447, x: 4772481.358, y: 4691469.8755 },\n { id: 154, x: 4842432.928, y: 4745621.3334 },\n { id: 155, x: 4842270.3178, y: 4753956.8745 },\n { id: 12453, x: 4769286.5643, y: 4684149.6544 },\n { id: 69859, x: 4686481.6711, y: 4683531.1891 },\n { id: 69861, x: 4684931.6479, y: 4672848.5518 },\n { id: 32973, x: 4868253.8856, y: 4937495.9743 },\n { id: 32976, x: 4864344.7211, y: 4928705.7765 },\n { id: 69869, x: 4677466.9488, y: 4683354.6907 },\n { id: 32978, x: 4860749.1885, y: 4934743.5566 },\n { id: 32979, x: 4859844.004, y: 4927147.3625 },\n { id: 32981, x: 4858047.9357, y: 4942274.0982 },\n { id: 32984, x: 4853628.2892, y: 4929128.4827 },\n { id: 4296, x: 4805909.4997, y: 4807924.5727 },\n { id: 4297, x: 4805688.7709, y: 4817179.7378 },\n { id: 28893, x: 4660373.9934, y: 4884061.2706 },\n { id: 16596, x: 4762407.4514, y: 5021099.8884 },\n { id: 16597, x: 4761374.1871, y: 5028005.7492 },\n { id: 41192, x: 4842109.376, y: 5093345.84 },\n { id: 28895, x: 4658268.4798, y: 4874017.8899 },\n { id: 41194, x: 4841220.37, y: 5086694.5657 },\n { id: 28898, x: 4655896.6894, y: 4881747.972 },\n { id: 16601, x: 4756475.1309, y: 5012951.9073 },\n { id: 4304, x: 4800246.9985, y: 4808839.477 },\n { id: 28899, x: 4655789.332, y: 4886477.0397 },\n { id: 28901, x: 4656089.5306, y: 4892056.4334 },\n { id: 16604, x: 4753940.1869, y: 5017439.7448 },\n { id: 41200, x: 4838695.1692, y: 5100364.8447 },\n { id: 16606, x: 4753992.1062, y: 5022991.1368 },\n { id: 28904, x: 4651596.9775, y: 4878400.7103 },\n { id: 16607, x: 4753543.75, y: 5031900.8964 },\n { id: 211, x: 4848828.2761, y: 4816122.5013 },\n { id: 41202, x: 4835643.4347, y: 5092424.247 },\n { id: 28906, x: 4652186.6664, y: 4892386.5699 },\n { id: 4312, x: 4795250.3345, y: 4818596.4434 },\n { id: 28907, x: 4651645.2872, y: 4888075.5647 },\n { id: 28908, x: 4651115.6958, y: 4884262.7595 },\n { id: 4314, x: 4793859.1277, y: 4807197.7492 },\n { id: 215, x: 4844972.3344, y: 4804647.2278 },\n { id: 41206, x: 4833334.0584, y: 5100877.2001 },\n { id: 28909, x: 4649159.7255, y: 4880256.4628 },\n { id: 216, x: 4845426.6719, y: 4811835.7749 },\n { id: 28913, x: 4648597.8811, y: 4893865.7195 },\n { id: 16616, x: 4746024.958, y: 5027693.271 },\n { id: 4319, x: 4790366.7486, y: 4815043.9064 },\n { id: 28916, x: 4645427.6698, y: 4889050.9607 },\n { id: 28917, x: 4645054.8438, y: 4884744.0867 },\n { id: 49413, x: 4904366.6234, y: 5001169.0265 },\n { id: 45314, x: 4795053.3351, y: 4959772.4179 },\n { id: 28918, x: 4644223.0464, y: 4878160.2633 },\n { id: 49418, x: 4896845.2817, y: 5018808.6061 },\n { id: 49419, x: 4895809.5979, y: 5006123.5417 },\n { id: 49421, x: 4895270.527, y: 5013317.8456 },\n { id: 45322, x: 4788888.3494, y: 4955104.3592 },\n { id: 45323, x: 4786984.0134, y: 4950978.2675 },\n { id: 45324, x: 4787721.5413, y: 4963105.3832 },\n { id: 12536, x: 4780097.2397, y: 4678822.873 },\n { id: 45330, x: 4780220.8156, y: 4958430.3556 },\n { id: 12539, x: 4778834.8347, y: 4672425.8776 },\n { id: 45332, x: 4779050.0219, y: 4953385.1518 },\n { id: 12540, x: 4777468.9269, y: 4667923.0412 },\n { id: 12544, x: 4774793.191, y: 4676441.6034 },\n { id: 12547, x: 4772930.3393, y: 4680579.6688 },\n { id: 12548, x: 4770802.0233, y: 4664058.3406 },\n { id: 12549, x: 4770773.2845, y: 4671514.0286 },\n { id: 255, x: 4851555.1176, y: 4788321.2328 },\n { id: 259, x: 4848298.8086, y: 4795362.8526 },\n { id: 260, x: 4847106.3032, y: 4783224.3181 },\n { id: 65846, x: 4705189.4283, y: 4648532.6842 },\n { id: 262, x: 4844747.493, y: 4786739.8405 },\n { id: 65848, x: 4704955.6745, y: 4656432.9664 },\n { id: 65853, x: 4696840.9308, y: 4658996.0271 },\n { id: 65859, x: 4691617.104, y: 4651706.9406 },\n { id: 20785, x: 4741341.2305, y: 4974181.6764 },\n { id: 20786, x: 4739716.9474, y: 4979927.4809 },\n { id: 20788, x: 4738464.7043, y: 4989292.1138 },\n { id: 20790, x: 4736196.0431, y: 4971974.3427 },\n { id: 20793, x: 4734177.7578, y: 4978934.7198 },\n { id: 20797, x: 4731824.5062, y: 4986873.1045 },\n { id: 20798, x: 4731131.7309, y: 4982571.7026 },\n { id: 20801, x: 4728858.1778, y: 4992437.2006 },\n { id: 57693, x: 4639509.207, y: 4820302.6742 },\n { id: 20802, x: 4726615.8331, y: 4976493.8721 },\n { id: 57695, x: 4637774.56, y: 4829580.534 },\n { id: 20805, x: 4725506.4152, y: 4984098.9907 },\n { id: 57697, x: 4636994.6481, y: 4823940.8962 },\n { id: 8509, x: 4852807.0525, y: 4671744.7838 },\n { id: 57702, x: 4632021.3754, y: 4818704.6502 },\n { id: 8514, x: 4848974.0466, y: 4661795.8655 },\n { id: 57703, x: 4630882.5476, y: 4813077.7727 },\n { id: 8515, x: 4848818.8298, y: 4679381.723 },\n { id: 57704, x: 4630947.2629, y: 4824844.62 },\n { id: 57705, x: 4631077.6963, y: 4830880.7446 },\n { id: 37210, x: 4845706.3188, y: 4923229.4885 },\n { id: 37211, x: 4845354.8742, y: 4918518.7869 },\n { id: 37212, x: 4844427.9072, y: 4913346.0592 },\n { id: 57708, x: 4628620.0744, y: 4817364.2299 },\n { id: 37213, x: 4843708.2877, y: 4908109.4311 },\n { id: 57710, x: 4627189.8314, y: 4825287.8357 },\n { id: 37216, x: 4839551.9784, y: 4904201.2908 },\n { id: 8524, x: 4842470.5329, y: 4671402.3987 },\n { id: 37219, x: 4838078.6174, y: 4922710.5798 },\n { id: 57715, x: 4623742.0522, y: 4820033.3351 },\n { id: 37220, x: 4837188.2781, y: 4917129.4288 },\n { id: 57717, x: 4623045.474, y: 4827659.4828 },\n { id: 70026, x: 4688530.128, y: 4698388.0921 },\n { id: 70029, x: 4685618.1611, y: 4692069.4958 },\n { id: 33141, x: 4862976.8725, y: 4917934.1987 },\n { id: 33143, x: 4862244.8148, y: 4911428.5612 },\n { id: 33147, x: 4857876.6786, y: 4905798.0861 },\n { id: 70041, x: 4675218.6633, y: 4701184.4368 },\n { id: 70042, x: 4673903.6184, y: 4687257.586 },\n { id: 33151, x: 4856122.0495, y: 4918296.8814 },\n { id: 33157, x: 4851071.5195, y: 4911106.5548 },\n { id: 24985, x: 4677856.1044, y: 4891406.3019 },\n { id: 24987, x: 4676590.954, y: 4884947.2344 },\n { id: 24988, x: 4674640.4796, y: 4879802.3425 },\n { id: 24994, x: 4670625.026, y: 4888677.9364 },\n { id: 24996, x: 4666999.0826, y: 4880500.9322 },\n { id: 24999, x: 4664954.6503, y: 4886416.6825 },\n { id: 25000, x: 4663237.2913, y: 4876153.6378 },\n { id: 25001, x: 4662135.7892, y: 4879439.1467 },\n { id: 16806, x: 4761543.7086, y: 4998442.7312 },\n { id: 16811, x: 4757115.8318, y: 4995279.5495 },\n { id: 16815, x: 4754577.6423, y: 5004485.0014 },\n { id: 70103, x: 4667959.5223, y: 4699050.4601 },\n { id: 16817, x: 4752830.812, y: 4994119.2393 },\n { id: 70106, x: 4663561.0941, y: 4687928.315 },\n { id: 16821, x: 4750404.4454, y: 5011290.3788 },\n { id: 70109, x: 4661512.0525, y: 4701955.4577 },\n { id: 16826, x: 4747172.3522, y: 5001361.4138 },\n { id: 70114, x: 4654666.6213, y: 4697219.2789 },\n { id: 16827, x: 4745706.5317, y: 4994883.6689 },\n { id: 66018, x: 4707825.9105, y: 4627905.9488 },\n { id: 66026, x: 4700041.9957, y: 4632933.0119 },\n { id: 66028, x: 4699405.5161, y: 4643820.7814 },\n { id: 4543, x: 4786236.8729, y: 4821090.7289 },\n { id: 41435, x: 4840292.087, y: 5070800.7557 },\n { id: 41437, x: 4838695.7181, y: 5079559.015 },\n { id: 4546, x: 4784587.0901, y: 4808909.5302 },\n { id: 66033, x: 4695418.694, y: 4629708.8859 },\n { id: 41445, x: 4833124.4863, y: 5081628.6687 },\n { id: 41447, x: 4831171.7852, y: 5073411.6331 },\n { id: 4556, x: 4778377.3665, y: 4817158.4355 },\n { id: 4560, x: 4776143.0502, y: 4825212.0823 },\n { id: 4562, x: 4773581.8062, y: 4809267.5871 },\n { id: 57852, x: 4639038.623, y: 4795552.7055 },\n { id: 16862, x: 4768905.5635, y: 5037536.9233 },\n { id: 57853, x: 4639737.5368, y: 4810656.54 },\n { id: 16863, x: 4768196.7483, y: 5044849.5283 },\n { id: 4566, x: 4772175.8493, y: 4820278.2151 },\n { id: 61954, x: 4759992.0467, y: 4697034.6026 },\n { id: 49657, x: 4905976.9491, y: 4981946.7541 },\n { id: 61955, x: 4759713.0251, y: 4701852.2901 },\n { id: 61956, x: 4758732.3392, y: 4688249.0137 },\n { id: 57857, x: 4634670.85, y: 4801986.3949 },\n { id: 49661, x: 4903654.2399, y: 4989548.8319 },\n { id: 57860, x: 4631168.274, y: 4795986.4342 },\n { id: 61960, x: 4754720.9038, y: 4693780.7289 },\n { id: 475, x: 4837890.1399, y: 4758205.8449 },\n { id: 61962, x: 4754307.8019, y: 4702382.9521 },\n { id: 477, x: 4835624.5739, y: 4751871.0822 },\n { id: 61963, x: 4752204.437, y: 4685042.1663 },\n { id: 57864, x: 4628352.9907, y: 4799543.519 },\n { id: 49666, x: 4901992.3523, y: 4997096.9481 },\n { id: 61964, x: 4751701.971, y: 4698155.2647 },\n { id: 49667, x: 4900607.151, y: 4981907.3034 },\n { id: 20974, x: 4722561.0263, y: 4973429.9477 },\n { id: 479, x: 4834235.7836, y: 4743154.7413 },\n { id: 20976, x: 4722410.5532, y: 4987819.5097 },\n { id: 61967, x: 4749152.4217, y: 4697142.0189 },\n { id: 20977, x: 4722110.0181, y: 4992290.3926 },\n { id: 61968, x: 4748657.8486, y: 4702542.291 },\n { id: 57869, x: 4624082.6316, y: 4805212.65 },\n { id: 20978, x: 4720206.0233, y: 4977673.3215 },\n { id: 61969, x: 4747857.0481, y: 4685941.6013 },\n { id: 49672, x: 4898349.4442, y: 4991437.5303 },\n { id: 484, x: 4830131.9059, y: 4743737.5401 },\n { id: 485, x: 4831011.7155, y: 4756914.7426 },\n { id: 20981, x: 4716707.5143, y: 4985039.2513 },\n { id: 20982, x: 4715939.3987, y: 4975859.4068 },\n { id: 487, x: 4829042.6035, y: 4750853.6958 },\n { id: 20983, x: 4714647.2464, y: 4980782.725 },\n { id: 20984, x: 4714048.1774, y: 4973481.8403 },\n { id: 20986, x: 4713474.2021, y: 4990062.8234 },\n { id: 493, x: 4823820.4839, y: 4743893.767 },\n { id: 20992, x: 4708543.7598, y: 4980509.9536 },\n { id: 29192, x: 4662036.5777, y: 4899286.356 },\n { id: 20994, x: 4707244.6167, y: 4989209.1839 },\n { id: 29193, x: 4660323.11, y: 4893880.7663 },\n { id: 29194, x: 4661140.833, y: 4910380.4509 },\n { id: 29195, x: 4660406.4802, y: 4904275.2206 },\n { id: 29198, x: 4656923.4832, y: 4904380.9662 },\n { id: 49695, x: 4769554.2122, y: 4745720.2419 },\n { id: 29202, x: 4655572.1282, y: 4908343.6608 },\n { id: 45599, x: 4812457.8663, y: 4997493.3752 },\n { id: 45601, x: 4809959.575, y: 5005063.8895 },\n { id: 29207, x: 4651014.5529, y: 4904387.7893 },\n { id: 45604, x: 4806179.0392, y: 4990912.6904 },\n { id: 29209, x: 4650425.2286, y: 4909902.118 },\n { id: 8714, x: 4847858.5042, y: 4739087.1351 },\n { id: 8715, x: 4847681.8981, y: 4725793.1111 },\n { id: 45607, x: 4803625.2209, y: 4998609.2188 },\n { id: 8717, x: 4845034.5221, y: 4732257.6994 },\n { id: 45610, x: 4801539.1787, y: 5006890.6712 },\n { id: 29216, x: 4645925.395, y: 4901776.4152 },\n { id: 8721, x: 4842025.4811, y: 4724038.4007 },\n { id: 29217, x: 4646035.92, y: 4906463.2621 },\n { id: 37420, x: 4850393.6151, y: 4940645.1059 },\n { id: 37424, x: 4843884.6285, y: 4927857.6992 },\n { id: 37425, x: 4844106.768, y: 4935854.4291 },\n { id: 16933, x: 4773259.2184, y: 5061137.5734 },\n { id: 37429, x: 4840899.6653, y: 4941784.3607 },\n { id: 37430, x: 4838554.8852, y: 4931380.0002 },\n { id: 33332, x: 4889145.0912, y: 4958504.0195 },\n { id: 16936, x: 4770119.6753, y: 5056757.0427 },\n { id: 33335, x: 4886737.6346, y: 4947013.6516 },\n { id: 37435, x: 4833095.5876, y: 4929455.409 },\n { id: 37437, x: 4833089.778, y: 4939575.7055 },\n { id: 33341, x: 4882595.9642, y: 4954699.8427 },\n { id: 33345, x: 4878008.2706, y: 4944875.434 },\n { id: 33350, x: 4875275.4627, y: 4960865.5483 },\n { id: 33351, x: 4873649.0762, y: 4953141.8266 },\n { id: 49784, x: 4751700.3799, y: 4756733.0684 },\n { id: 53895, x: 4672688.3855, y: 4775630.8371 },\n { id: 53897, x: 4671467.9418, y: 4781465.7651 },\n { id: 53901, x: 4667633.1566, y: 4786921.5254 },\n { id: 41606, x: 4860716.5049, y: 5107208.2088 },\n { id: 53908, x: 4659022.3985, y: 4785580.4362 },\n { id: 41612, x: 4851373.4631, y: 5113716.3393 },\n { id: 41615, x: 4846884.6202, y: 5110117.4314 },\n { id: 49828, x: 4755507.91, y: 4784181.2808 },\n { id: 49830, x: 4752561.1771, y: 4766309.305 },\n { id: 49831, x: 4752687.0956, y: 4776792.5174 },\n { id: 12941, x: 4799125.9697, y: 4713752.0786 },\n { id: 12943, x: 4798448.6444, y: 4718654.9762 },\n { id: 12944, x: 4797986.1369, y: 4703360.3764 },\n { id: 12945, x: 4796125.6382, y: 4708573.8654 },\n { id: 12949, x: 4793438.5401, y: 4713142.5727 },\n { id: 12952, x: 4792220.9448, y: 4718997.4364 },\n { id: 12953, x: 4791905.0116, y: 4705936.6516 },\n { id: 12957, x: 4787977.06, y: 4703827.3278 },\n { id: 12958, x: 4787818.1493, y: 4714458.7935 },\n { id: 8861, x: 4854308.4081, y: 4704084.3021 },\n { id: 58050, x: 4659326.9273, y: 4843412.6497 },\n { id: 12961, x: 4785374.9929, y: 4708630.64 },\n { id: 8862, x: 4854153.3008, y: 4713563.0311 },\n { id: 58051, x: 4656383.3431, y: 4836515.8617 },\n { id: 58053, x: 4655645.1682, y: 4850473.6791 },\n { id: 58054, x: 4654654.7626, y: 4841683.2253 },\n { id: 8868, x: 4849624.0103, y: 4717438.0914 },\n { id: 58057, x: 4650087.9756, y: 4837967.7646 },\n { id: 8870, x: 4849035.8011, y: 4701678.2858 },\n { id: 58059, x: 4649300.102, y: 4848162.091 },\n { id: 8871, x: 4847573.1247, y: 4711029.6349 },\n { id: 29370, x: 4641457.9936, y: 4901239.7559 },\n { id: 58064, x: 4643598.6924, y: 4843630.3324 },\n { id: 29371, x: 4640436.4255, y: 4895707.4452 },\n { id: 58065, x: 4642479.3716, y: 4834268.2273 },\n { id: 29372, x: 4641585.2572, y: 4914676.5153 },\n { id: 29373, x: 4640146.2396, y: 4904407.555 },\n { id: 8879, x: 4841868.7284, y: 4713766.2428 },\n { id: 41672, x: 4839219.049, y: 5107886.3588 },\n { id: 8881, x: 4828816.6183, y: 4620968.9901 },\n { id: 17080, x: 4763666.0356, y: 5059943.7642 },\n { id: 17081, x: 4761063.9661, y: 5063828.9262 },\n { id: 29380, x: 4634223.3039, y: 4896223.5097 },\n { id: 29381, x: 4633755.9333, y: 4906505.3719 },\n { id: 17084, x: 4757593.1381, y: 5053591.3054 },\n { id: 29382, x: 4633528.3419, y: 4911731.123 },\n { id: 17085, x: 4754858.1493, y: 5063139.8189 },\n { id: 29383, x: 4632277.115, y: 4900339.9477 },\n { id: 691, x: 4842230.1096, y: 4774842.0293 },\n { id: 693, x: 4841311.2121, y: 4780712.8182 },\n { id: 29390, x: 4626614.0695, y: 4906656.6786 },\n { id: 25292, x: 4700285.2872, y: 4921508.0334 },\n { id: 25293, x: 4700409.7947, y: 4928901.2179 },\n { id: 699, x: 4835049.1761, y: 4765744.4452 },\n { id: 700, x: 4835499.4358, y: 4775065.4833 },\n { id: 4801, x: 4787658.0174, y: 4801159.7886 },\n { id: 702, x: 4834035.5799, y: 4780292.3222 },\n { id: 25297, x: 4697359.9802, y: 4929149.5544 },\n { id: 70387, x: 4669918.4631, y: 4677537.3307 },\n { id: 25298, x: 4694544.5941, y: 4918856.8237 },\n { id: 25299, x: 4694744.0094, y: 4926326.7753 },\n { id: 4804, x: 4784592.2354, y: 4794249.943 },\n { id: 70389, x: 4669199.1794, y: 4670368.2885 },\n { id: 709, x: 4827579.5586, y: 4769921.0729 },\n { id: 25304, x: 4688735.01, y: 4920071.7554 },\n { id: 25305, x: 4688881.4608, y: 4928701.9074 },\n { id: 711, x: 4825625.0132, y: 4775968.1023 },\n { id: 70395, x: 4660470.6336, y: 4673056.0435 },\n { id: 4811, x: 4779724.2358, y: 4788169.8187 },\n { id: 25307, x: 4686698.8991, y: 4914880.3655 },\n { id: 4812, x: 4780005.8474, y: 4800589.6899 },\n { id: 25310, x: 4684421.0871, y: 4932976.1358 },\n { id: 70400, x: 4656744.2685, y: 4676431.8846 },\n { id: 25311, x: 4683099.4476, y: 4925295.9504 },\n { id: 70401, x: 4655428.5346, y: 4666543.6691 },\n { id: 4824, x: 4771698.1224, y: 4797387.1656 },\n { id: 4825, x: 4769652.6638, y: 4786445.1646 },\n { id: 33532, x: 4889199.3423, y: 4980574.6707 },\n { id: 45830, x: 4817940.4201, y: 5025159.0068 },\n { id: 45831, x: 4814950.8116, y: 5012115.0391 },\n { id: 33534, x: 4886342.1076, y: 4971528.5951 },\n { id: 45832, x: 4814519.0002, y: 5021940.7811 },\n { id: 33535, x: 4884880.4144, y: 4963463.3187 },\n { id: 33537, x: 4883865.5818, y: 4974978.6919 },\n { id: 45837, x: 4810279.5795, y: 5016743.3239 },\n { id: 33542, x: 4879240.0443, y: 4981784.3399 },\n { id: 45840, x: 4808152.9551, y: 5026235.591 },\n { id: 45841, x: 4806289.4363, y: 5013337.1573 },\n { id: 45842, x: 4805785.4198, y: 5019125.1533 },\n { id: 33546, x: 4875385.3713, y: 4968501.11 },\n { id: 54050, x: 4670101.3062, y: 4753384.8577 },\n { id: 54052, x: 4668021.961, y: 4760869.9215 },\n { id: 54057, x: 4662783.6764, y: 4756461.8401 },\n { id: 54059, x: 4660927.0146, y: 4749771.4762 },\n { id: 54061, x: 4660010.457, y: 4767041.1831 },\n { id: 54064, x: 4656965.2423, y: 4760857.6795 },\n { id: 49969, x: 4745887.3577, y: 4785998.5528 },\n { id: 58171, x: 4640704.6766, y: 4845522.4512 },\n { id: 49973, x: 4741545.087, y: 4772133.9562 },\n { id: 49975, x: 4740938.997, y: 4779060.4146 },\n { id: 58175, x: 4639405.6974, y: 4850487.4031 },\n { id: 37684, x: 4824101.9314, y: 4941580.4143 },\n { id: 13090, x: 4800950.5622, y: 4737111.866 },\n { id: 37685, x: 4823011.3792, y: 4931656.8865 },\n { id: 13092, x: 4800167.9272, y: 4742830.8496 },\n { id: 58182, x: 4633053.2296, y: 4839084.0197 },\n { id: 49984, x: 4731915.7322, y: 4768002.8632 },\n { id: 13094, x: 4798957.3189, y: 4731840.9243 },\n { id: 58184, x: 4628911.9392, y: 4835853.2499 },\n { id: 58185, x: 4629151.4178, y: 4847930.2584 },\n { id: 13096, x: 4797663.7015, y: 4723621.1857 },\n { id: 58186, x: 4628647.1415, y: 4842043.0865 },\n { id: 37691, x: 4815553.9712, y: 4933271.0436 },\n { id: 13099, x: 4796522.2517, y: 4740685.949 },\n { id: 58189, x: 4625327.3641, y: 4838218.5274 },\n { id: 58190, x: 4624307.2354, y: 4833395.8249 },\n { id: 13101, x: 4795487.5547, y: 4734632.3028 },\n { id: 13103, x: 4793992.8668, y: 4728766.7114 },\n { id: 13110, x: 4789708.0606, y: 4724502.4819 },\n { id: 13113, x: 4788315.0424, y: 4736830.8243 },\n { id: 13115, x: 4787288.15, y: 4732172.4249 },\n { id: 70547, x: 4686811.4828, y: 4708348.9135 },\n { id: 70548, x: 4686474.5193, y: 4717127.3267 },\n { id: 70555, x: 4679910.3194, y: 4719943.5503 },\n { id: 70556, x: 4675809.3552, y: 4726834.5968 },\n { id: 70557, x: 4674916.9245, y: 4713715.4998 },\n { id: 21378, x: 4721019.434, y: 4954535.9358 },\n { id: 21382, x: 4717968.5271, y: 4962866.1045 },\n { id: 21383, x: 4717050.2583, y: 4956610.7651 },\n { id: 29582, x: 4640804.3932, y: 4882200.0272 },\n { id: 21384, x: 4717401.5753, y: 4967434.1517 },\n { id: 41880, x: 4807661.1987, y: 4854595.528 },\n { id: 29583, x: 4640036.6992, y: 4886935.9721 },\n { id: 29585, x: 4638372.441, y: 4890246.7651 },\n { id: 41883, x: 4805316.889, y: 4861937.8007 },\n { id: 29586, x: 4636642.7361, y: 4879116.2668 },\n { id: 29587, x: 4635945.2412, y: 4874472.5069 },\n { id: 29588, x: 4635262.8441, y: 4886526.5874 },\n { id: 21390, x: 4712364.0182, y: 4961460.827 },\n { id: 17292, x: 4766122.0205, y: 5051656.1543 },\n { id: 29590, x: 4634230.1473, y: 4889790.3244 },\n { id: 29591, x: 4633364.0853, y: 4883298.7071 },\n { id: 21395, x: 4709288.6035, y: 4970122.3034 },\n { id: 29594, x: 4631860.8194, y: 4887903.5373 },\n { id: 21396, x: 4707619.2586, y: 4962546.4751 },\n { id: 17297, x: 4762208.9834, y: 5036249.6436 },\n { id: 29595, x: 4629482.7195, y: 4874757.637 },\n { id: 17298, x: 4762009.0567, y: 5044682.7715 },\n { id: 29597, x: 4629576.946, y: 4879465.3216 },\n { id: 21399, x: 4703904.4307, y: 4956164.6063 },\n { id: 41895, x: 4798177.1851, y: 4862924.2991 },\n { id: 29598, x: 4629062.0898, y: 4891182.947 },\n { id: 41897, x: 4796936.5475, y: 4850123.0827 },\n { id: 29600, x: 4627754.6614, y: 4885191.6665 },\n { id: 29603, x: 4625708.5769, y: 4892424.2652 },\n { id: 17306, x: 4752196.078, y: 5046123.255 },\n { id: 58308, x: 4617053.7649, y: 4760267.0244 },\n { id: 25523, x: 4702577.6801, y: 4945853.128 },\n { id: 929, x: 4821171.7442, y: 4763724.9147 },\n { id: 58317, x: 4604327.4289, y: 4752816.1684 },\n { id: 58318, x: 4604977.3444, y: 4766792.1855 },\n { id: 932, x: 4818923.5747, y: 4778634.1258 },\n { id: 934, x: 4816960.1871, y: 4769191.746 },\n { id: 25530, x: 4697512.0212, y: 4949269.3512 },\n { id: 9135, x: 4838055.123, y: 4631756.4059 },\n { id: 5036, x: 4805901.3308, y: 4826108.3511 },\n { id: 25532, x: 4695149.6554, y: 4942195.6662 },\n { id: 938, x: 4813575.2878, y: 4777208.2624 },\n { id: 25533, x: 4694400.3359, y: 4933418.5937 },\n { id: 9138, x: 4836622.3385, y: 4621605.1772 },\n { id: 9139, x: 4834041.1291, y: 4637907.5137 },\n { id: 5040, x: 4803024.0547, y: 4833359.9098 },\n { id: 13239, x: 4783840.0402, y: 4743337.5264 },\n { id: 25537, x: 4690868.4695, y: 4947446.3376 },\n { id: 13240, x: 4783576.4577, y: 4725372.2933 },\n { id: 5042, x: 4802483.7576, y: 4842139.8498 },\n { id: 943, x: 4808939.8118, y: 4770699.5225 },\n { id: 25538, x: 4690107.7269, y: 4941284.1229 },\n { id: 9143, x: 4832438.0529, y: 4627575.9586 },\n { id: 13243, x: 4780614.1888, y: 4734715.1044 },\n { id: 5047, x: 4795686.1255, y: 4827253.6947 },\n { id: 25543, x: 4686137.7396, y: 4949443.9336 },\n { id: 13248, x: 4777692.5309, y: 4740928.5285 },\n { id: 5050, x: 4793432.0408, y: 4838125.0672 },\n { id: 13249, x: 4777495.7861, y: 4726432.1802 },\n { id: 9151, x: 4826670.6992, y: 4633432.3254 },\n { id: 13256, x: 4772606.9194, y: 4741550.8955 },\n { id: 13257, x: 4772342.5775, y: 4732902.5279 },\n { id: 13258, x: 4770226.2301, y: 4727491.5518 },\n { id: 9160, x: 4821366.1503, y: 4625286.6421 },\n { id: 66550, x: 4727630.8625, y: 4670521.6802 },\n { id: 66552, x: 4726525.4229, y: 4678182.7944 },\n { id: 46062, x: 4797857.0379, y: 5012389.8343 },\n { id: 46063, x: 4798608.5652, y: 5025341.7733 },\n { id: 66561, x: 4719760.2998, y: 4675464.5814 },\n { id: 66565, x: 4716986.5199, y: 4665039.8433 },\n { id: 46070, x: 4793053.8144, y: 5019433.4644 },\n { id: 46071, x: 4792378.0318, y: 5028118.1371 },\n { id: 46072, x: 4790508.5848, y: 5014395.9228 },\n { id: 66571, x: 4710426.5406, y: 4673320.7518 },\n { id: 46079, x: 4784108.5508, y: 5013768.9904 },\n { id: 46081, x: 4783301.0189, y: 5020272.1971 },\n { id: 33792, x: 4872297.0122, y: 4977034.5189 },\n { id: 33794, x: 4869768.0328, y: 4967701.3956 },\n { id: 33800, x: 4864990.3987, y: 4972999.279 },\n { id: 33807, x: 4860462.2961, y: 4965344.9801 },\n { id: 33810, x: 4858999.9645, y: 4970454.3824 },\n { id: 33815, x: 4856532.6044, y: 4982853.335 },\n { id: 58429, x: 4613557.9691, y: 4773619.1187 },\n { id: 58430, x: 4613793.0955, y: 4780680.1246 },\n { id: 58435, x: 4607597.4597, y: 4780300.6298 },\n { id: 58436, x: 4608071.556, y: 4791633.7151 },\n { id: 50242, x: 4746157.0535, y: 4749746.1274 },\n { id: 50246, x: 4741495.3649, y: 4754900.9883 },\n { id: 50247, x: 4741522.4169, y: 4762732.1026 },\n { id: 50251, x: 4737776.6067, y: 4749664.6176 },\n { id: 50260, x: 4730989.15, y: 4755846.1188 },\n { id: 29767, x: 4663246.796, y: 4915593.4448 },\n { id: 42066, x: 4788080.8294, y: 4847628.4708 },\n { id: 42067, x: 4788661.9124, y: 4857928.017 },\n { id: 29772, x: 4661657.8956, y: 4928351.7776 },\n { id: 50268, x: 4742585.0941, y: 4848334.1002 },\n { id: 54374, x: 4693532.0023, y: 4804244.9559 },\n { id: 29780, x: 4655962.8809, y: 4920696.574 },\n { id: 29781, x: 4654373.1932, y: 4926433.0221 },\n { id: 54376, x: 4691251.9043, y: 4795585.8805 },\n { id: 29783, x: 4654422.3293, y: 4931356.9843 },\n { id: 42081, x: 4778344.0414, y: 4855856.0238 },\n { id: 54379, x: 4689985.2106, y: 4808055.1941 },\n { id: 29787, x: 4649761.8984, y: 4922675.9575 },\n { id: 54382, x: 4684700.4106, y: 4793545.2831 },\n { id: 29788, x: 4649906.6626, y: 4930037.2199 },\n { id: 42086, x: 4775813.6789, y: 4863325.719 },\n { id: 29789, x: 4647673.1109, y: 4916800.0813 },\n { id: 54384, x: 4683882.8637, y: 4804124.3873 },\n { id: 42087, x: 4774193.8661, y: 4849050.0822 },\n { id: 29791, x: 4646804.9227, y: 4929400.7586 },\n { id: 29792, x: 4646632.0262, y: 4935135.2198 },\n { id: 21596, x: 4742704.7559, y: 5006199.7364 },\n { id: 54389, x: 4679924.5573, y: 4809414.7925 },\n { id: 21597, x: 4741549.3825, y: 5000512.1674 },\n { id: 54390, x: 4678285.2017, y: 4800195.4806 },\n { id: 21599, x: 4739159.8113, y: 4995536.0382 },\n { id: 21601, x: 4739054.3811, y: 5009806.3685 },\n { id: 21602, x: 4737106.7783, y: 5002176.5078 },\n { id: 21606, x: 4734452.1154, y: 5011268.6817 },\n { id: 21607, x: 4732775.1938, y: 4998176.2154 },\n { id: 38006, x: 4829956.1741, y: 4920047.7965 },\n { id: 21610, x: 4730688.8656, y: 5005964.7607 },\n { id: 38008, x: 4828861.7335, y: 4907363.7467 },\n { id: 21612, x: 4728148.6355, y: 5010792.4716 },\n { id: 38009, x: 4828651.4842, y: 4913584.3364 },\n { id: 21613, x: 4727512.5762, y: 5002791.3325 },\n { id: 21615, x: 4725671.9997, y: 4996684.3959 },\n { id: 38012, x: 4824975.236, y: 4924168.7584 },\n { id: 38015, x: 4818351.0826, y: 4914006.5613 },\n { id: 38017, x: 4818354.6209, y: 4920711.9745 },\n { id: 38018, x: 4817227.8786, y: 4906040.8951 },\n { id: 25722, x: 4682046.6186, y: 4953224.2964 },\n { id: 70812, x: 4684970.4422, y: 4745413.5441 },\n { id: 25723, x: 4681284.8538, y: 4946936.7149 },\n { id: 70814, x: 4683164.0699, y: 4734179.2645 },\n { id: 25725, x: 4679661.4214, y: 4940276.9911 },\n { id: 25730, x: 4676276.1868, y: 4948843.8766 },\n { id: 25732, x: 4674565.0832, y: 4938470.7013 },\n { id: 25736, x: 4671390.7888, y: 4942923.2801 },\n { id: 25739, x: 4670368.9312, y: 4949054.7852 },\n { id: 25741, x: 4667726.0218, y: 4936944.7421 },\n { id: 17543, x: 4733652.6756, y: 4856778.861 },\n { id: 25742, x: 4667920.8521, y: 4949210.6361 },\n { id: 17546, x: 4731934.9779, y: 4862196.2275 },\n { id: 17548, x: 4730556.5011, y: 4868465.879 },\n { id: 17550, x: 4728191.8516, y: 4849446.9792 },\n { id: 17554, x: 4726270.8555, y: 4855152.6447 },\n { id: 9357, x: 4838309.9077, y: 4648527.9276 },\n { id: 17556, x: 4725191.9858, y: 4866745.7259 },\n { id: 17557, x: 4723157.9677, y: 4850843.7632 },\n { id: 17558, x: 4722390.622, y: 4861240.2141 },\n { id: 9360, x: 4836453.0655, y: 4656046.0084 },\n { id: 46253, x: 4794950.9628, y: 5000697.4341 },\n { id: 46254, x: 4793196.7994, y: 4993808.9128 },\n { id: 17562, x: 4719009.2153, y: 4861731.7546 },\n { id: 46256, x: 4793448.7039, y: 5005667.6577 },\n { id: 13465, x: 4783479.4037, y: 4719153.9305 },\n { id: 9367, x: 4831018.8491, y: 4655984.2432 },\n { id: 17566, x: 4716392.1256, y: 4851851.4109 },\n { id: 13467, x: 4781503.4131, y: 4709440.9924 },\n { id: 46260, x: 4788604.1243, y: 4990643.2078 },\n { id: 13468, x: 4781203.8786, y: 4704722.0678 },\n { id: 46261, x: 4788217.7277, y: 5006782.5475 },\n { id: 13470, x: 4779985.6476, y: 4714568.3256 },\n { id: 9371, x: 4828530.8584, y: 4649589.5276 },\n { id: 13472, x: 4779033.3298, y: 4721279.1057 },\n { id: 46265, x: 4784723.6514, y: 4998091.1628 },\n { id: 13474, x: 4777955.164, y: 4704971.9479 },\n { id: 9377, x: 4825019.8722, y: 4661171.4939 },\n { id: 13477, x: 4775612.7372, y: 4710818.7836 },\n { id: 13479, x: 4773876.9023, y: 4721950.6942 },\n { id: 9381, x: 4822405.3969, y: 4641953.0861 },\n { id: 13481, x: 4772517.033, y: 4715434.2829 },\n { id: 9383, x: 4821184.5134, y: 4651237.9209 },\n { id: 5284, x: 4787074.4469, y: 4833875.813 },\n { id: 13485, x: 4770529.5628, y: 4705264.4326 },\n { id: 5293, x: 4777123.4826, y: 4834134.6454 },\n { id: 5294, x: 4777039.7665, y: 4841412.0307 },\n { id: 1226, x: 4822092.6241, y: 4750545.5204 },\n { id: 1232, x: 4816892.7013, y: 4760147.0913 },\n { id: 50421, x: 4726231.4718, y: 4747836.5133 },\n { id: 1236, x: 4814515.1813, y: 4752486.9483 },\n { id: 50425, x: 4722661.0775, y: 4759433.6351 },\n { id: 1238, x: 4811693.9529, y: 4745211.7659 },\n { id: 42231, x: 4806295.4344, y: 4869809.1283 },\n { id: 34035, x: 4869960.6952, y: 4946699.1596 },\n { id: 1243, x: 4806692.5178, y: 4745046.7655 },\n { id: 1244, x: 4806862.8828, y: 4753465.3384 },\n { id: 50434, x: 4715453.1516, y: 4749736.7657 },\n { id: 34038, x: 4867464.619, y: 4953701.8419 },\n { id: 1246, x: 4806287.4689, y: 4759866.55 },\n { id: 42241, x: 4799531.4136, y: 4874663.6266 },\n { id: 50440, x: 4713152.6586, y: 4765215.766 },\n { id: 34044, x: 4862656.5243, y: 4958731.4469 },\n { id: 29945, x: 4664338.9357, y: 4935375.1923 },\n { id: 29946, x: 4664667.8282, y: 4941619.7364 },\n { id: 34047, x: 4859695.1444, y: 4949361.5573 },\n { id: 29948, x: 4663634.0426, y: 4952540.4985 },\n { id: 29949, x: 4662605.4155, y: 4942883.4534 },\n { id: 34051, x: 4856345.9993, y: 4960905.5173 },\n { id: 42250, x: 4793207.9596, y: 4880603.8855 },\n { id: 34054, x: 4852393.0703, y: 4954183.3536 },\n { id: 29956, x: 4656284.7925, y: 4949229.1379 },\n { id: 29958, x: 4654084.0495, y: 4937322.9645 },\n { id: 29959, x: 4655203.0664, y: 4954750.1145 },\n { id: 29960, x: 4653229.0173, y: 4945900.2837 },\n { id: 29966, x: 4649897.8091, y: 4949245.0687 },\n { id: 29969, x: 4649492.3499, y: 4955342.7795 },\n { id: 70968, x: 4674248.6545, y: 4741469.9058 },\n { id: 70972, x: 4670929.3115, y: 4732944.3506 },\n { id: 70975, x: 4668435.402, y: 4745017.1306 },\n { id: 70977, x: 4664429.1843, y: 4731185.0854 },\n { id: 70980, x: 4662535.601, y: 4740553.8989 },\n { id: 70982, x: 4660853.0699, y: 4731970.6204 },\n { id: 9504, x: 4816705.895, y: 4660315.7488 },\n { id: 9512, x: 4812079.2458, y: 4644425.2023 },\n { id: 9514, x: 4810896.1859, y: 4651063.9381 },\n { id: 25913, x: 4681447.8456, y: 4918786.3544 },\n { id: 9517, x: 4809317.2026, y: 4658409.7621 },\n { id: 9519, x: 4807260.0705, y: 4648117.9386 },\n { id: 25917, x: 4678097.6331, y: 4932259.3974 },\n { id: 25918, x: 4677033.8997, y: 4920453.2389 },\n { id: 9523, x: 4804433.5312, y: 4660785.9152 },\n { id: 25920, x: 4677084.5067, y: 4925566.7527 },\n { id: 9524, x: 4804141.9155, y: 4655302.2066 },\n { id: 25923, x: 4674747.4946, y: 4928773.449 },\n { id: 9527, x: 4802595.7168, y: 4645596.2004 },\n { id: 25924, x: 4673313.4324, y: 4919244.8487 },\n { id: 25926, x: 4672866.5346, y: 4933807.2077 },\n { id: 25927, x: 4670502.5935, y: 4923191.5889 },\n { id: 25928, x: 4669663.7834, y: 4915615.9916 },\n { id: 25933, x: 4668001.8492, y: 4926341.581 },\n { id: 25934, x: 4667075.123, y: 4919483.5491 },\n { id: 58727, x: 4620469.6355, y: 4810838.45 },\n { id: 58730, x: 4617859.5033, y: 4806660.4589 },\n { id: 30038, x: 4646522.1875, y: 4953285.2235 },\n { id: 58732, x: 4616418.6809, y: 4795330.6671 },\n { id: 30039, x: 4645588.1759, y: 4944051.5449 },\n { id: 30040, x: 4642819.8411, y: 4938772.0229 },\n { id: 58734, x: 4614483.8136, y: 4800824.8887 },\n { id: 5447, x: 4762758.1509, y: 4752524.3661 },\n { id: 58735, x: 4613710.4721, y: 4798125.4883 },\n { id: 30042, x: 4638381.5577, y: 4941713.0014 },\n { id: 58736, x: 4613317.7766, y: 4805173.5888 },\n { id: 58739, x: 4609595.2487, y: 4807394.4989 },\n { id: 58740, x: 4608928.03, y: 4803111.1639 },\n { id: 58742, x: 4606906.0801, y: 4800330.3332 },\n { id: 17758, x: 4715749.43, y: 4869458.5815 },\n { id: 17759, x: 4714770.0357, y: 4858634.222 },\n { id: 17762, x: 4712028.7465, y: 4850978.7897 },\n { id: 17763, x: 4711771.7964, y: 4867127.105 },\n { id: 38261, x: 4846720.3557, y: 4947410.3791 },\n { id: 17766, x: 4709220.7821, y: 4854565.4578 },\n { id: 17769, x: 4708098.915, y: 4860841.0467 },\n { id: 9572, x: 4819594.9832, y: 4632657.286 },\n { id: 50564, x: 4729308.8797, y: 4779590.6177 },\n { id: 17772, x: 4707821.7489, y: 4868904.8046 },\n { id: 38268, x: 4839838.776, y: 4947496.9742 },\n { id: 9575, x: 4817871.3466, y: 4638222.0018 },\n { id: 38269, x: 4839902.9423, y: 4954083.7519 },\n { id: 17774, x: 4703846.9765, y: 4852166.1464 },\n { id: 17775, x: 4704295.1437, y: 4858764.6223 },\n { id: 50568, x: 4725027.2975, y: 4784181.2081 },\n { id: 17776, x: 4703932.8319, y: 4866372.1103 },\n { id: 9578, x: 4815612.9528, y: 4627631.6316 },\n { id: 50569, x: 4722896.9958, y: 4772877.5349 },\n { id: 50572, x: 4718487.9196, y: 4780665.8599 },\n { id: 9582, x: 4812371.7017, y: 4632781.9354 },\n { id: 17782, x: 4700156.8504, y: 4868668.6946 },\n { id: 9585, x: 4808118.3525, y: 4636031.4388 },\n { id: 54687, x: 4694760.4967, y: 4823994.822 },\n { id: 54688, x: 4693192.387, y: 4815506.8649 },\n { id: 54689, x: 4691374.8256, y: 4828711.1758 },\n { id: 54693, x: 4688002.9671, y: 4822168.5479 },\n { id: 54695, x: 4683451.4354, y: 4815015.6483 },\n { id: 54696, x: 4683730.4945, y: 4825395.465 },\n { id: 42400, x: 4805559.3092, y: 4904527.7084 },\n { id: 54699, x: 4678029.9987, y: 4813235.8598 },\n { id: 42402, x: 4801285.7091, y: 4887105.5151 },\n { id: 54700, x: 4678670.1413, y: 4825578.2417 },\n { id: 42404, x: 4801189.81, y: 4893546.4611 },\n { id: 42410, x: 4797475.9081, y: 4899183.4083 },\n { id: 42414, x: 4793391.5089, y: 4889738.2305 },\n { id: 71117, x: 4671955.2797, y: 4706924.6167 },\n { id: 71123, x: 4666307.712, y: 4712904.7765 },\n { id: 71127, x: 4662650.671, y: 4723707.2256 },\n { id: 71132, x: 4655581.3148, y: 4714432.833 },\n { id: 34242, x: 4891278.0929, y: 4989940.1463 },\n { id: 34243, x: 4891330.4984, y: 5000391.9518 },\n { id: 71136, x: 4631708.1288, y: 4717985.6787 },\n { id: 71137, x: 4626650.467, y: 4717847.8456 },\n { id: 34248, x: 4885671.6849, y: 4986320.2755 },\n { id: 34249, x: 4885829.363, y: 4997295.9908 },\n { id: 71142, x: 4620299.3759, y: 4717920.7303 },\n { id: 71143, x: 4617961.9974, y: 4710379.8833 },\n { id: 34252, x: 4880895.1165, y: 4993499.3133 },\n { id: 34255, x: 4878270.5379, y: 5000962.5215 },\n { id: 1463, x: 4842656.0959, y: 4793830.2329 },\n { id: 1465, x: 4839485.4668, y: 4788696.5869 },\n { id: 1469, x: 4837981.5534, y: 4801658.0371 },\n { id: 1473, x: 4833529.373, y: 4791041.4805 },\n { id: 1482, x: 4828440.1072, y: 4796408.5533 },\n { id: 5597, x: 4766371.8832, y: 4771579.0034 },\n { id: 30194, x: 4643635.2769, y: 4919825.3491 },\n { id: 5600, x: 4763354.5338, y: 4782146.1566 },\n { id: 5602, x: 4761933.1502, y: 4765365.492 },\n { id: 13802, x: 4893704.5312, y: 4640030.737 },\n { id: 5604, x: 4760381.3376, y: 4773772.1041 },\n { id: 30199, x: 4642286.2231, y: 4925709.7578 },\n { id: 30200, x: 4642554.8997, y: 4931754.6811 },\n { id: 13805, x: 4888055.5334, y: 4647099.206 },\n { id: 30204, x: 4638911.7953, y: 4924802.4435 },\n { id: 30205, x: 4639527.3959, y: 4935920.6072 },\n { id: 13809, x: 4886192.2628, y: 4656593.7137 },\n { id: 30207, x: 4637681.9575, y: 4929161.5299 },\n { id: 13811, x: 4885151.0251, y: 4641162.9026 },\n { id: 30211, x: 4632472.648, y: 4918653.8082 },\n { id: 13818, x: 4880137.9143, y: 4651389.8426 },\n { id: 13820, x: 4878730.8977, y: 4645604.9816 },\n { id: 13821, x: 4877774.7635, y: 4656522.2157 },\n { id: 22021, x: 4744515.3412, y: 5020038.3234 },\n { id: 22023, x: 4743149.0116, y: 5024712.0087 },\n { id: 22025, x: 4740852.0832, y: 5013482.5587 },\n { id: 22029, x: 4738808.3541, y: 5030375.7019 },\n { id: 22032, x: 4735601.5777, y: 5020639.2379 },\n { id: 22033, x: 4733800.6925, y: 5027132.3482 },\n { id: 22034, x: 4732586.351, y: 5016011.6894 },\n { id: 22039, x: 4728668.3614, y: 5019798.1846 },\n { id: 22040, x: 4729265.367, y: 5031029.7015 },\n { id: 38438, x: 4852379.3009, y: 4970282.3193 },\n { id: 38442, x: 4848464.0793, y: 4964289.6786 },\n { id: 38443, x: 4848382.6212, y: 4979978.7077 },\n { id: 38448, x: 4842230.1595, y: 4964939.0643 },\n { id: 38450, x: 4842031.3799, y: 4975672.1871 },\n { id: 38456, x: 4834950.4617, y: 4971123.4113 },\n { id: 26167, x: 4701595.2955, y: 4969602.2773 },\n { id: 26168, x: 4700452.7645, y: 4953861.6429 },\n { id: 26171, x: 4698448.6274, y: 4964524.4209 },\n { id: 26177, x: 4693271.7306, y: 4955484.2278 },\n { id: 26178, x: 4692508.2976, y: 4963917.7852 },\n { id: 26181, x: 4690122.9628, y: 4969914.9383 },\n { id: 71272, x: 4637440.5803, y: 4748917.1547 },\n { id: 71273, x: 4636687.9646, y: 4730804.6571 },\n { id: 46679, x: 4818002.4057, y: 5028803.9109 },\n { id: 26184, x: 4687128.4832, y: 4965359.6563 },\n { id: 26185, x: 4686191.431, y: 4956326.4705 },\n { id: 71275, x: 4632205.8572, y: 4738400.62 },\n { id: 46682, x: 4815373.93, y: 5041329.5565 },\n { id: 30286, x: 4666615.6914, y: 4959647.8478 },\n { id: 46683, x: 4814681.1665, y: 5032584.596 },\n { id: 71278, x: 4626461.2205, y: 4731651.7162 },\n { id: 46684, x: 4814442.8435, y: 5045108.0103 },\n { id: 30288, x: 4665447.7148, y: 4973414.2082 },\n { id: 30290, x: 4664673.4749, y: 4966084.2215 },\n { id: 71281, x: 4623154.013, y: 4742676.0534 },\n { id: 46688, x: 4808929.1893, y: 5039434.3336 },\n { id: 42589, x: 4788281.4025, y: 4902779.3521 },\n { id: 30292, x: 4662185.1866, y: 4957000.515 },\n { id: 46690, x: 4807460.6717, y: 5032050.0793 },\n { id: 42591, x: 4785367.2083, y: 4897448.0134 },\n { id: 30294, x: 4658359.9361, y: 4958596.955 },\n { id: 46691, x: 4808062.9051, y: 5048198.8604 },\n { id: 30297, x: 4649852.4316, y: 4961324.1724 },\n { id: 18000, x: 4733672.5105, y: 4877658.9349 },\n { id: 46694, x: 4803648.1815, y: 5035474.7403 },\n { id: 18001, x: 4733520.6563, y: 4875921.5714 },\n { id: 18003, x: 4733771.0276, y: 4887495.1075 },\n { id: 42600, x: 4778765.5498, y: 4887955.2032 },\n { id: 42602, x: 4778786.9818, y: 4900459.9619 },\n { id: 30305, x: 4668686.9646, y: 4994514.8393 },\n { id: 30308, x: 4666849.9987, y: 4979756.9648 },\n { id: 18011, x: 4727732.2643, y: 4878437.0603 },\n { id: 63101, x: 4745875.1305, y: 4691206.4615 },\n { id: 18013, x: 4727258.2524, y: 4889323.5802 },\n { id: 18014, x: 4725304.7095, y: 4874985.2054 },\n { id: 63105, x: 4744122.952, y: 4703588.315 },\n { id: 63108, x: 4741324.0352, y: 4684939.7259 },\n { id: 9821, x: 4837886.4474, y: 4679163.7633 },\n { id: 63110, x: 4740418.4919, y: 4689393.8817 },\n { id: 18021, x: 4719482.1901, y: 4872195.1771 },\n { id: 63111, x: 4739987.4902, y: 4689635.2838 },\n { id: 63112, x: 4739920.2747, y: 4693166.3714 },\n { id: 18023, x: 4718980.0991, y: 4880623.944 },\n { id: 9825, x: 4834672.6529, y: 4667010.6188 },\n { id: 9826, x: 4833333.317, y: 4673689.834 },\n { id: 67213, x: 4727766.1406, y: 4698192.9779 },\n { id: 67216, x: 4725943.4004, y: 4687739.3093 },\n { id: 67220, x: 4723088.6251, y: 4700782.1615 },\n { id: 30329, x: 4668346.8524, y: 5038207.5074 },\n { id: 63122, x: 4733065.0107, y: 4687613.2545 },\n { id: 67223, x: 4721251.0077, y: 4693972.2275 },\n { id: 9838, x: 4826809.5644, y: 4668136.2556 },\n { id: 63126, x: 4730853.6893, y: 4693302.5806 },\n { id: 9841, x: 4825160.8318, y: 4677642.122 },\n { id: 67228, x: 4717050.1284, y: 4688171.4098 },\n { id: 67229, x: 4716911.6797, y: 4687236.3334 },\n { id: 67230, x: 4716216.58, y: 4696746.0019 },\n { id: 34440, x: 4891437.8897, y: 5019231.879 },\n { id: 67236, x: 4711500.3795, y: 4698052.9802 },\n { id: 34447, x: 4885912.108, y: 5011235.4289 },\n { id: 34448, x: 4886347.9482, y: 5018897.0558 },\n { id: 34449, x: 4885058.9525, y: 5004839.9989 },\n { id: 1657, x: 4840724.4327, y: 4815951.042 },\n { id: 50848, x: 4712804.0233, y: 4783883.5105 },\n { id: 50852, x: 4710050.7296, y: 4771998.5387 },\n { id: 1664, x: 4835013.6067, y: 4809286.6396 },\n { id: 1666, x: 4834814.1541, y: 4819160.5977 },\n { id: 13965, x: 4892073.3897, y: 4632981.2258 },\n { id: 34461, x: 4877508.3899, y: 5016469.1985 },\n { id: 1669, x: 4831041.8183, y: 4803467.355 },\n { id: 34464, x: 4875297.1011, y: 5010007.9949 },\n { id: 1673, x: 4829392.3187, y: 4812266.1834 },\n { id: 50862, x: 4702858.9087, y: 4772317.5077 },\n { id: 13972, x: 4883550.816, y: 4629933.3397 },\n { id: 50864, x: 4702284.1046, y: 4781067.8233 },\n { id: 13973, x: 4881912.4778, y: 4636173.8855 },\n { id: 50869, x: 4696710.5129, y: 4774602.9204 },\n { id: 13979, x: 4877830.3622, y: 4622986.5512 },\n { id: 71382, x: 4655089.1443, y: 4732705.2353 },\n { id: 71388, x: 4649483.023, y: 4741852.6341 },\n { id: 71391, x: 4646938.8998, y: 4733494.351 },\n { id: 71397, x: 4641306.9681, y: 4734856.6645 },\n { id: 71400, x: 4639133.3654, y: 4742631.0476 },\n { id: 30410, x: 4670889.3042, y: 5047529.2185 },\n { id: 30415, x: 4664192.4772, y: 5043852.0317 },\n { id: 30419, x: 4674381.1965, y: 5074457.0904 },\n { id: 30422, x: 4671603.0317, y: 5061034.4912 },\n { id: 30433, x: 4674920.5057, y: 5082029.6622 },\n { id: 26340, x: 4704823.329, y: 4974602.1286 },\n { id: 59134, x: 4615032.819, y: 4823734.6409 },\n { id: 26342, x: 4705016.3297, y: 4991923.0523 },\n { id: 59135, x: 4614502.862, y: 4816157.8115 },\n { id: 26343, x: 4702569.8057, y: 4980308.107 },\n { id: 59136, x: 4614795.8797, y: 4830089.1102 },\n { id: 26346, x: 4699312.4685, y: 4985451.5028 },\n { id: 26347, x: 4698118.5566, y: 4975974.5367 },\n { id: 26348, x: 4697707.2794, y: 4980790.7756 },\n { id: 26349, x: 4697541.1997, y: 4993055.9701 },\n { id: 59143, x: 4609000.9295, y: 4815568.7327 },\n { id: 59144, x: 4607336.3753, y: 4821890.5916 },\n { id: 26352, x: 4693751.1303, y: 4975223.9994 },\n { id: 59146, x: 4606074.2966, y: 4830815.7804 },\n { id: 26354, x: 4693384.4538, y: 4987064.531 },\n { id: 59148, x: 4604020.2433, y: 4817332.1367 },\n { id: 26359, x: 4689650.845, y: 4981403.6294 },\n { id: 26365, x: 4686299.0952, y: 4975405.8953 },\n { id: 38675, x: 4835034.0238, y: 4976701.6618 },\n { id: 38677, x: 4830868.9483, y: 4981764.1692 },\n { id: 5886, x: 4763781.8727, y: 4799922.8219 },\n { id: 38679, x: 4829515.2837, y: 4968723.5046 },\n { id: 38682, x: 4824434.5841, y: 4975522.6931 },\n { id: 38683, x: 4823695.6828, y: 4969502.0296 },\n { id: 5891, x: 4759020.7259, y: 4793298.0847 },\n { id: 38688, x: 4819644.1635, y: 4984299.7661 },\n { id: 5896, x: 4754733.1149, y: 4801167.7793 },\n { id: 5899, x: 4752769.5563, y: 4792149.1183 },\n { id: 67411, x: 4708825.0028, y: 4702940.5497 },\n { id: 67414, x: 4706892.9232, y: 4695589.4732 },\n { id: 67422, x: 4700262.3364, y: 4701890.3889 },\n { id: 67423, x: 4698491.146, y: 4695283.9419 },\n { id: 34631, x: 4868995.9916, y: 5010773.3704 },\n { id: 67425, x: 4697627.4414, y: 4686405.6866 },\n { id: 34635, x: 4867984.1473, y: 5018480.9174 },\n { id: 34641, x: 4863514.6422, y: 5004570.1644 },\n { id: 71537, x: 4652295.9491, y: 4726357.1616 },\n { id: 34648, x: 4859362.9764, y: 5018107.5921 },\n { id: 71541, x: 4648441.721, y: 4717204.135 },\n { id: 34651, x: 4856827.0164, y: 5005986.2885 },\n { id: 71544, x: 4644237.9093, y: 4723871.1276 },\n { id: 71546, x: 4641064.744, y: 4712485.4858 },\n { id: 18277, x: 4733754.6007, y: 4896515.7982 },\n { id: 18278, x: 4732667.3251, y: 4905304.1377 },\n { id: 18283, x: 4727614.1031, y: 4894183.9434 },\n { id: 18284, x: 4727412.4454, y: 4908267.8064 },\n { id: 18286, x: 4725480.4765, y: 4900150.0521 },\n { id: 10089, x: 4832128.4138, y: 4696349.6348 },\n { id: 18288, x: 4722968.3904, y: 4890873.0579 },\n { id: 10090, x: 4831885.7652, y: 4687168.9766 },\n { id: 18290, x: 4722668.1178, y: 4891017.5205 },\n { id: 10093, x: 4828910.267, y: 4682043.597 },\n { id: 18293, x: 4720796.255, y: 4901226.7093 },\n { id: 51087, x: 4711007.2015, y: 4759193.3317 },\n { id: 10101, x: 4823469.7035, y: 4694478.8713 },\n { id: 10104, x: 4821939.2629, y: 4686483.4109 },\n { id: 51095, x: 4705031.0927, y: 4753889.5847 },\n { id: 22402, x: 4724672.1859, y: 5016463.1569 },\n { id: 22406, x: 4722337.585, y: 5025060.2824 },\n { id: 22408, x: 4721596.778, y: 5032679.0369 },\n { id: 51102, x: 4700912.3924, y: 4761163.4084 },\n { id: 22410, x: 4719540.9379, y: 5019083.6725 },\n { id: 1916, x: 4822164.3861, y: 4804673.6418 },\n { id: 22413, x: 4717047.2019, y: 5028200.7408 },\n { id: 1919, x: 4821007.7381, y: 4810619.2083 },\n { id: 22416, x: 4712451.8916, y: 5025553.8516 },\n { id: 22419, x: 4711117.4137, y: 5018902.6462 },\n { id: 22420, x: 4711019.2307, y: 5030557.034 },\n { id: 1925, x: 4817739.3924, y: 4817648.2494 },\n { id: 1930, x: 4812981.3428, y: 4804522.8464 },\n { id: 1934, x: 4811361.3232, y: 4821588.7504 },\n { id: 1935, x: 4810307.7077, y: 4811634.0505 },\n { id: 26548, x: 4685995.2977, y: 4991102.9754 },\n { id: 26549, x: 4684846.3364, y: 4983737.5051 },\n { id: 26555, x: 4679846.7321, y: 4977012.5097 },\n { id: 26556, x: 4679923.0573, y: 4984782.316 },\n { id: 26558, x: 4679520.5509, y: 4992884.4616 },\n { id: 26560, x: 4676313.1991, y: 4979660.6823 },\n { id: 26561, x: 4676205.2287, y: 4984760.1581 },\n { id: 26567, x: 4671396.9921, y: 4986164.7765 },\n { id: 26568, x: 4670540.1381, y: 4978857.5207 },\n { id: 71679, x: 4634152.8522, y: 4670635.5665 },\n { id: 71680, x: 4632530.5388, y: 4675937.3949 },\n { id: 71683, x: 4629748.8904, y: 4680858.5203 },\n { id: 71685, x: 4628503.9271, y: 4671780.7341 },\n { id: 71689, x: 4622713.5394, y: 4669427.1749 },\n { id: 71690, x: 4621356.3979, y: 4677193.2734 },\n { id: 71693, x: 4618986.7163, y: 4673414.4408 },\n { id: 30717, x: 4619650.5936, y: 4856345.0368 },\n { id: 30718, x: 4619503.3913, y: 4872065.5457 },\n { id: 55313, x: 4677013.0968, y: 4818223.2577 },\n { id: 55314, x: 4673712.739, y: 4829988.4223 },\n { id: 30720, x: 4616952.6446, y: 4867152.0166 },\n { id: 55318, x: 4668827.1749, y: 4814928.1909 },\n { id: 55320, x: 4665330.0293, y: 4823729.3705 },\n { id: 30728, x: 4612176.8314, y: 4861915.8256 },\n { id: 30729, x: 4611962.4079, y: 4872127.4443 },\n { id: 30731, x: 4608106.3499, y: 4872739.8305 },\n { id: 30732, x: 4607187.2118, y: 4864129.5037 },\n { id: 38957, x: 4832602.6518, y: 4959879.1868 },\n { id: 38958, x: 4830553.663, y: 4946491.2643 },\n { id: 34859, x: 4872633.9721, y: 4989292.1033 },\n { id: 34860, x: 4871854.9923, y: 4998483.469 },\n { id: 38960, x: 4829191.4481, y: 4952783.6676 },\n { id: 38966, x: 4822930.6153, y: 4947526.549 },\n { id: 6176, x: 4764389.8765, y: 4824412.1078 },\n { id: 34869, x: 4865518.4335, y: 4983318.5194 },\n { id: 38969, x: 4821473.2431, y: 4957607.7664 },\n { id: 34870, x: 4865596.1883, y: 4993309.052 },\n { id: 6178, x: 4763247.1873, y: 4817112.171 },\n { id: 6180, x: 4760353.526, y: 4806868.7815 },\n { id: 6184, x: 4758160.0259, y: 4814297.3069 },\n { id: 6186, x: 4756773.8521, y: 4820946.4665 },\n { id: 34880, x: 4858816.9882, y: 4995150.6934 },\n { id: 34884, x: 4857035.4742, y: 4989894.0587 },\n { id: 14412, x: 4768403.8746, y: 4858528.3676 },\n { id: 14414, x: 4764210.8832, y: 4848654.4962 },\n { id: 14417, x: 4762622.812, y: 4854963.0841 },\n { id: 14419, x: 4760258.3503, y: 4862747.8097 },\n { id: 67710, x: 4707375.9533, y: 4683537.0928 },\n { id: 22622, x: 4724383.5777, y: 5006375.8345 },\n { id: 10325, x: 4816766.2637, y: 4700171.6971 },\n { id: 51315, x: 4728030.2229, y: 4802651.3485 },\n { id: 14425, x: 4755704.4977, y: 4866932.1569 },\n { id: 51316, x: 4727437.2466, y: 4796259.646 },\n { id: 14426, x: 4754715.2781, y: 4853639.9884 },\n { id: 51317, x: 4725296.4058, y: 4788407.1624 },\n { id: 67714, x: 4703171.005, y: 4672234.4612 },\n { id: 59517, x: 4602775.5459, y: 4833919.26 },\n { id: 10331, x: 4812863.7435, y: 4686695.9808 },\n { id: 59519, x: 4601969.5972, y: 4825215.5752 },\n { id: 22629, x: 4720387.9696, y: 5002214.1444 },\n { id: 51322, x: 4721511.7569, y: 4790328.5716 },\n { id: 22631, x: 4718865.7948, y: 4997541.5081 },\n { id: 59522, x: 4598827.8195, y: 4820549.3343 },\n { id: 51324, x: 4720785.7842, y: 4797383.8235 },\n { id: 26731, x: 4683594.5448, y: 4970243.6442 },\n { id: 67721, x: 4697032.8133, y: 4667031.5531 },\n { id: 51326, x: 4720404.6262, y: 4803486.6144 },\n { id: 10336, x: 4809151.5494, y: 4701521.2815 },\n { id: 22634, x: 4718631.8404, y: 5006486.7378 },\n { id: 51328, x: 4716875.524, y: 4796545.8483 },\n { id: 22636, x: 4715767.2441, y: 5009888.1481 },\n { id: 10339, x: 4805739.5755, y: 4692903.7432 },\n { id: 59527, x: 4596650.9943, y: 4826004.4581 },\n { id: 26736, x: 4680097.5116, y: 4963521.5451 },\n { id: 59528, x: 4596913.665, y: 4830871.7322 },\n { id: 51331, x: 4713864.103, y: 4788503.5903 },\n { id: 22638, x: 4715068.9127, y: 5004319.284 },\n { id: 71826, x: 4630430.3834, y: 4691948.506 },\n { id: 67727, x: 4692015.3261, y: 4675127.751 },\n { id: 26738, x: 4679185.2088, y: 4958890.4663 },\n { id: 71827, x: 4629724.5837, y: 4707405.4485 },\n { id: 71828, x: 4628703.026, y: 4699600.0858 },\n { id: 22641, x: 4710886.551, y: 5001387.4071 },\n { id: 59533, x: 4592412.732, y: 4825319.8365 },\n { id: 26742, x: 4676726.8945, y: 4973541.7626 },\n { id: 22643, x: 4710333.156, y: 5013269.346 },\n { id: 71831, x: 4624247.6448, y: 4707830.4626 },\n { id: 59534, x: 4591427.4512, y: 4814227.759 },\n { id: 71832, x: 4623707.1245, y: 4687515.7817 },\n { id: 59535, x: 4587603.4684, y: 4816847.4946 },\n { id: 26744, x: 4673873.8524, y: 4961429.507 },\n { id: 22645, x: 4708989.6996, y: 4995657.1089 },\n { id: 71833, x: 4622797.3098, y: 4694883.1955 },\n { id: 26746, x: 4673351.6949, y: 4967766.1309 },\n { id: 26748, x: 4670753.142, y: 4956798.1232 },\n { id: 26750, x: 4670237.5237, y: 4974763.5015 },\n { id: 18552, x: 4718154.3664, y: 4893826.5996 },\n { id: 26752, x: 4668093.3922, y: 4969137.571 },\n { id: 18554, x: 4717213.2786, y: 4900148.4455 },\n { id: 18556, x: 4716400.2263, y: 4905749.5727 },\n { id: 18557, x: 4714871.8281, y: 4897080.6577 },\n { id: 18562, x: 4711255.6813, y: 4910353.356 },\n { id: 18563, x: 4710184.1641, y: 4900656.3964 },\n { id: 18567, x: 4707941.5399, y: 4910773.55 },\n { id: 43165, x: 4788993.1847, y: 4866303.3955 },\n { id: 18571, x: 4706021.4381, y: 4906985.1633 },\n { id: 18572, x: 4703908.1676, y: 4894593.7403 },\n { id: 18573, x: 4703736.7539, y: 4901138.3489 },\n { id: 43170, x: 4785277.7831, y: 4874297.4019 },\n { id: 18577, x: 4700910.9528, y: 4904782.2862 },\n { id: 43172, x: 4784450.9988, y: 4882538.2716 },\n { id: 43183, x: 4777075.288, y: 4880027.7705 },\n { id: 59581, x: 4601584.0579, y: 4798019.5105 },\n { id: 43185, x: 4775252.6574, y: 4872210.1389 },\n { id: 59582, x: 4602049.7064, y: 4807140.1518 },\n { id: 59583, x: 4600510.7547, y: 4813202.7546 },\n { id: 59584, x: 4599435.4876, y: 4801914.4664 },\n { id: 59586, x: 4594085.8394, y: 4802287.9981 },\n { id: 59587, x: 4593764.1874, y: 4808909.7334 },\n { id: 35019, x: 4894094.9516, y: 5028361.0617 },\n { id: 63715, x: 4741795.6841, y: 4676967.5893 },\n { id: 63716, x: 4741601.2793, y: 4671974.276 },\n { id: 35023, x: 4892240.5407, y: 5038151.4517 },\n { id: 63717, x: 4741024.3325, y: 4665233.9703 },\n { id: 35028, x: 4888307.7502, y: 5035225.0247 },\n { id: 71920, x: 4649850.1254, y: 4705898.2602 },\n { id: 71921, x: 4648337.1275, y: 4695649.6135 },\n { id: 71922, x: 4647461.1632, y: 4689606.565 },\n { id: 63724, x: 4736091.1267, y: 4678026.2581 },\n { id: 35031, x: 4886621.5587, y: 5028371.09 },\n { id: 6339, x: 4749741.853, y: 4812644.1549 },\n { id: 6340, x: 4750488.9591, y: 4825462.9864 },\n { id: 71925, x: 4638599.5501, y: 4703449.4403 },\n { id: 63727, x: 4734829.9338, y: 4669996.0065 },\n { id: 35034, x: 4883768.0554, y: 5024835.8975 },\n { id: 71927, x: 4637320.2099, y: 4690537.8108 },\n { id: 6343, x: 4747477.1395, y: 4807134.213 },\n { id: 35037, x: 4882452.9026, y: 5038404.2449 },\n { id: 6344, x: 4745229.2926, y: 4816692.2038 },\n { id: 35038, x: 4880936.9681, y: 5031395.8401 },\n { id: 71930, x: 4652918.9855, y: 4683248.2482 },\n { id: 35039, x: 4878878.3474, y: 5025299.2693 },\n { id: 63733, x: 4728702.7869, y: 4682092.4078 },\n { id: 71932, x: 4648964.4592, y: 4675720.6951 },\n { id: 6352, x: 4738687.2839, y: 4809837.718 },\n { id: 6353, x: 4738921.1991, y: 4821028.2907 },\n { id: 6354, x: 4738682.5526, y: 4820883.8734 },\n { id: 71939, x: 4642777.3417, y: 4670847.8677 },\n { id: 71940, x: 4642649.0288, y: 4681062.9626 },\n { id: 71946, x: 4637133.6629, y: 4680124.6994 },\n { id: 39163, x: 4851313.8165, y: 5002532.7672 },\n { id: 39164, x: 4850520.5362, y: 4995323.5851 },\n { id: 39166, x: 4848572.1864, y: 4990531.322 },\n { id: 39175, x: 4840855.4398, y: 4999558.8825 },\n { id: 39176, x: 4839446.675, y: 4991681.427 },\n { id: 39178, x: 4837203.7143, y: 4987156.113 },\n { id: 30985, x: 4603718.5214, y: 4856156.5471 },\n { id: 30988, x: 4602788.2976, y: 4868633.7846 },\n { id: 30992, x: 4599982.9812, y: 4861215.5007 },\n { id: 26893, x: 4706447.2237, y: 5004023.9099 },\n { id: 30993, x: 4599661.9629, y: 4874727.0306 },\n { id: 26897, x: 4703051.6019, y: 5002144.2282 },\n { id: 30998, x: 4596787.4753, y: 4855423.5219 },\n { id: 26899, x: 4703023.8331, y: 5008848.8567 },\n { id: 30999, x: 4595256.6684, y: 4864263.8669 },\n { id: 26900, x: 4701249.8401, y: 4996963.7641 },\n { id: 31000, x: 4595057.4864, y: 4868695.0419 },\n { id: 31001, x: 4594053.5851, y: 4858877.1197 },\n { id: 31002, x: 4594932.9099, y: 4872574.318 },\n { id: 31005, x: 4591278.442, y: 4861821.0905 },\n { id: 26907, x: 4696020.4907, y: 5004661.005 },\n { id: 31007, x: 4590028.7414, y: 4866630.5421 },\n { id: 31008, x: 4589368.1883, y: 4858051.7414 },\n { id: 31009, x: 4589869.5371, y: 4872093.7253 },\n { id: 31011, x: 4587404.4651, y: 4859402.0814 },\n { id: 31012, x: 4587232.6049, y: 4866529.0719 },\n { id: 26913, x: 4691752.6446, y: 4998007.24 },\n { id: 31013, x: 4586829.7934, y: 4862903.8839 },\n { id: 26915, x: 4691402.5057, y: 5009554.7803 },\n { id: 26917, x: 4689719.7828, y: 5006348.5877 },\n { id: 14655, x: 4750024.4308, y: 4860611.4321 },\n { id: 47456, x: 4822690.0614, y: 5063199.4388 },\n { id: 14664, x: 4742827.0929, y: 4862328.3578 },\n { id: 35162, x: 4895762.3387, y: 5057276.8188 },\n { id: 47462, x: 4817885.8443, y: 5054083.378 },\n { id: 2373, x: 4823416.1202, y: 4789972.0341 },\n { id: 47463, x: 4817453.1947, y: 5064582.7899 },\n { id: 47465, x: 4815682.1796, y: 5057203.5724 },\n { id: 47467, x: 4814085.7817, y: 5060353.2476 },\n { id: 35170, x: 4889140.7142, y: 5053744.0597 },\n { id: 35171, x: 4887327.617, y: 5047549.0748 },\n { id: 47469, x: 4813677.3207, y: 5063728.5496 },\n { id: 35175, x: 4886665.5931, y: 5060644.7029 },\n { id: 2384, x: 4816761.6662, y: 4798595.1894 },\n { id: 47474, x: 4810609.5336, y: 5052803.1561 },\n { id: 2385, x: 4814311.5741, y: 4788445.1925 },\n { id: 35181, x: 4881291.4698, y: 5046866.3101 },\n { id: 47479, x: 4805730.3555, y: 5058232.0417 },\n { id: 35184, x: 4879192.3804, y: 5055008.2153 },\n { id: 2392, x: 4808203.4883, y: 4784907.866 },\n { id: 2394, x: 4808070.5168, y: 4793680.3421 },\n { id: 43395, x: 4811016.7563, y: 4908776.7967 },\n { id: 43396, x: 4810002.9938, y: 4916413.2273 },\n { id: 43400, x: 4806548.4677, y: 4925356.168 },\n { id: 22909, x: 4746711.241, y: 5039566.6471 },\n { id: 43406, x: 4801059.247, y: 4915028.22 },\n { id: 22911, x: 4747233.1593, y: 5051123.4298 },\n { id: 63903, x: 4764287.077, y: 4707754.4438 },\n { id: 43408, x: 4798826.0963, y: 4906845.0151 },\n { id: 63905, x: 4762162.626, y: 4719204.4026 },\n { id: 63907, x: 4761479.4515, y: 4714113.1981 },\n { id: 22918, x: 4736201.8239, y: 5037592.6125 },\n { id: 63909, x: 4759964.5715, y: 4705530.1842 },\n { id: 43414, x: 4796011.6845, y: 4913435.9849 },\n { id: 43415, x: 4794796.2381, y: 4921317.5135 },\n { id: 22920, x: 4734727.1576, y: 5046056.6763 },\n { id: 63914, x: 4755783.4943, y: 4719850.6651 },\n { id: 63915, x: 4755084.1925, y: 4711968.7926 },\n { id: 6529, x: 4743183.5354, y: 4798177.8306 },\n { id: 63918, x: 4752431.5022, y: 4709478.8735 },\n { id: 63919, x: 4752384.0112, y: 4722254.2993 },\n { id: 68019, x: 4728550.5099, y: 4720821.0889 },\n { id: 14733, x: 4758804.746, y: 4886400.5592 },\n { id: 63922, x: 4749901.9237, y: 4712341.3318 },\n { id: 39329, x: 4853595.4025, y: 5016348.2369 },\n { id: 63924, x: 4747752.4729, y: 4718306.5803 },\n { id: 68026, x: 4725076.3484, y: 4713460.2449 },\n { id: 6541, x: 4732149.0575, y: 4790920.1322 },\n { id: 39338, x: 4846882.0355, y: 5010072.1551 },\n { id: 68032, x: 4721972.3705, y: 4720541.5478 },\n { id: 68035, x: 4719519.2814, y: 4707207.5549 },\n { id: 39346, x: 4843666.3626, y: 5019133.8862 },\n { id: 39347, x: 4841400.4489, y: 5006814.3558 },\n { id: 68042, x: 4714213.6098, y: 4719028.2735 },\n { id: 10665, x: 4820569.7935, y: 4680521.1982 },\n { id: 59854, x: 4622519.8045, y: 4846707.1044 },\n { id: 10666, x: 4818948.1974, y: 4673687.2293 },\n { id: 59855, x: 4622114.9621, y: 4841384.7546 },\n { id: 59856, x: 4622766.2087, y: 4852543.0935 },\n { id: 10671, x: 4815288.6994, y: 4668103.5688 },\n { id: 59860, x: 4618637.2325, y: 4836858.0165 },\n { id: 59861, x: 4618823.2485, y: 4845802.5714 },\n { id: 59862, x: 4617112.3625, y: 4853968.0822 },\n { id: 14774, x: 4761427.7962, y: 4899838.3225 },\n { id: 51666, x: 4727577.6947, y: 4815503.4777 },\n { id: 10676, x: 4812004.0224, y: 4673847.0602 },\n { id: 59865, x: 4614525.1055, y: 4840224.7957 },\n { id: 51667, x: 4725608.4031, y: 4810276.966 },\n { id: 27073, x: 4705768.737, y: 5023157.8232 },\n { id: 51668, x: 4726105.0669, y: 4825494.2403 },\n { id: 27074, x: 4703452.9801, y: 5017399.4653 },\n { id: 27075, x: 4704590.0908, y: 5035313.11 },\n { id: 14778, x: 4757023.6986, y: 4892047.9701 },\n { id: 59868, x: 4613604.2399, y: 4849210.0023 },\n { id: 27076, x: 4704187.0057, y: 5030314.1448 },\n { id: 59869, x: 4612262.6424, y: 4853766.1851 },\n { id: 10682, x: 4808395.0174, y: 4663186.928 },\n { id: 51674, x: 4720019.9739, y: 4818078.8759 },\n { id: 51675, x: 4718793.2486, y: 4810118.7028 },\n { id: 27081, x: 4699105.8015, y: 5022039.2432 },\n { id: 59874, x: 4607601.2486, y: 4835979.5065 },\n { id: 27083, x: 4698179.441, y: 5017819.9779 },\n { id: 10687, x: 4804921.4754, y: 4673656.2652 },\n { id: 59876, x: 4606074.2647, y: 4846100.3148 },\n { id: 51678, x: 4717234.0301, y: 4826969.0234 },\n { id: 10688, x: 4804482.554, y: 4681896.1255 },\n { id: 51680, x: 4714219.64, y: 4811187.9525 },\n { id: 31185, x: 4624471.4578, y: 4881189.8598 },\n { id: 72175, x: 4630233.4791, y: 4663448.3414 },\n { id: 31186, x: 4623507.4254, y: 4874876.381 },\n { id: 27088, x: 4693538.5722, y: 5016634.4892 },\n { id: 10692, x: 4802293.7546, y: 4665664.4876 },\n { id: 27090, x: 4692678.3655, y: 5033084.0503 },\n { id: 31190, x: 4621166.3493, y: 4887922.2241 },\n { id: 27091, x: 4691922.3977, y: 5023637.7927 },\n { id: 31193, x: 4618660.6847, y: 4895154.1206 },\n { id: 31194, x: 4618273.4095, y: 4890105.0916 },\n { id: 31195, x: 4617377.212, y: 4881769.1934 },\n { id: 72186, x: 4649479.552, y: 4664971.4244 },\n { id: 31197, x: 4614748.8138, y: 4892834.8226 },\n { id: 72187, x: 4645596.283, y: 4658591.2084 },\n { id: 31200, x: 4611324.4746, y: 4884650.6227 },\n { id: 72190, x: 4640286.0541, y: 4664909.1593 },\n { id: 72193, x: 4637047.0011, y: 4660496.7274 },\n { id: 31204, x: 4608172.3866, y: 4878866.2784 },\n { id: 31207, x: 4606899.9016, y: 4887506.7671 },\n { id: 55820, x: 4675997.582, y: 4792551.8025 },\n { id: 55823, x: 4673719.2882, y: 4808675.8557 },\n { id: 55825, x: 4671065.9024, y: 4795926.2173 },\n { id: 55827, x: 4668334.3004, y: 4805543.2267 },\n { id: 55829, x: 4666211.9414, y: 4792657.4794 },\n { id: 55830, x: 4665160.0711, y: 4797743.4399 },\n { id: 55832, x: 4663326.6466, y: 4810159.9071 },\n { id: 55836, x: 4658749.6926, y: 4805201.5434 },\n { id: 72249, x: 4610278.0973, y: 4662779.7722 },\n { id: 2570, x: 4843004.4624, y: 4822770.0401 },\n { id: 2571, x: 4843286.6181, y: 4833106.0246 },\n { id: 47662, x: 4803600.8584, y: 5061658.2693 },\n { id: 47665, x: 4801439.4466, y: 5055509.6774 },\n { id: 72259, x: 4592425.5965, y: 4666862.8409 },\n { id: 72261, x: 4580317.9227, y: 4662118.0794 },\n { id: 27173, x: 4688181.9112, y: 5019204.9662 },\n { id: 2581, x: 4835312.5436, y: 4831794.5598 },\n { id: 2582, x: 4834882.2422, y: 4838395.5607 },\n { id: 47672, x: 4796986.713, y: 5057135.4081 },\n { id: 27177, x: 4686291.0785, y: 5036929.6763 },\n { id: 35376, x: 4878171.6023, y: 5062751.4163 },\n { id: 27178, x: 4684310.5034, y: 5029572.1838 },\n { id: 2584, x: 4833294.8578, y: 4824734.4051 },\n { id: 35377, x: 4876461.2468, y: 5045074.636 },\n { id: 27179, x: 4682972.0909, y: 5022142.1865 },\n { id: 47675, x: 4794764.0008, y: 5061974.0658 },\n { id: 27180, x: 4682444.7862, y: 5018656.621 },\n { id: 47676, x: 4792764.7111, y: 5053115.5224 },\n { id: 35381, x: 4873031.1292, y: 5048888.5981 },\n { id: 27186, x: 4679447.5962, y: 5026750.2356 },\n { id: 27187, x: 4678116.1439, y: 5036185.5328 },\n { id: 35387, x: 4869058.7372, y: 5056873.1113 },\n { id: 2595, x: 4827192.1309, y: 4838021.5147 },\n { id: 35389, x: 4867936.9386, y: 5062890.2328 },\n { id: 27192, x: 4672067.4853, y: 5030965.1387 },\n { id: 35392, x: 4866217.7683, y: 5044436.6602 },\n { id: 35393, x: 4864854.0264, y: 5050987.9544 },\n { id: 39495, x: 4836182.6775, y: 5007870.0157 },\n { id: 39498, x: 4834744.2822, y: 5015842.8176 },\n { id: 39506, x: 4828059.259, y: 5014811.2612 },\n { id: 39509, x: 4826905.8839, y: 5024130.3971 },\n { id: 39513, x: 4823538.5123, y: 5009299.1901 },\n { id: 39515, x: 4821488.3555, y: 5017963.6624 },\n { id: 68210, x: 4726554.1519, y: 4740108.504 },\n { id: 68214, x: 4722623.8328, y: 4728797.2856 },\n { id: 43625, x: 4810183.5615, y: 4942730.9249 },\n { id: 43626, x: 4807658.6957, y: 4933256.6417 },\n { id: 68222, x: 4717063.0799, y: 4736733.7366 },\n { id: 68223, x: 4716864.6296, y: 4726198.0301 },\n { id: 43632, x: 4804327.2102, y: 4941871.2813 },\n { id: 43634, x: 4801260.6852, y: 4928616.7185 },\n { id: 43635, x: 4801554.5643, y: 4935903.1554 },\n { id: 43639, x: 4797543.8975, y: 4938658.9236 },\n { id: 43641, x: 4796824.54, y: 4930209.9929 },\n { id: 27259, x: 4686682.4194, y: 4999859.8521 },\n { id: 27261, x: 4684916.9844, y: 5012931.0966 },\n { id: 27268, x: 4679680.9565, y: 5002469.7125 },\n { id: 27269, x: 4679863.4774, y: 5009012.5783 },\n { id: 27271, x: 4677950.7791, y: 4996675.619 },\n { id: 23178, x: 4723338.1983, y: 5041963.6928 },\n { id: 23180, x: 4722209.9685, y: 5050739.3896 },\n { id: 23185, x: 4716994.2662, y: 5038108.9729 },\n { id: 23186, x: 4717104.2185, y: 5044251.8387 },\n { id: 23188, x: 4715389.6424, y: 5051605.3519 },\n { id: 14992, x: 4750640.6612, y: 4907081.8621 },\n { id: 14995, x: 4747173.689, y: 4896467.5982 },\n { id: 14996, x: 4746664.5967, y: 4889634.6943 },\n { id: 19099, x: 4717842.1292, y: 4886338.7051 },\n { id: 15002, x: 4744125.1339, y: 4908720.6911 },\n { id: 19103, x: 4716193.6995, y: 4873443.102 },\n { id: 51897, x: 4714355.3097, y: 4818944.018 },\n { id: 19106, x: 4714896.6352, y: 4881443.2274 },\n { id: 51899, x: 4713644.9094, y: 4823235.4049 },\n { id: 51900, x: 4712440.6423, y: 4826817.6454 },\n { id: 15009, x: 4738000.9441, y: 4900911.5355 },\n { id: 31406, x: 4622767.9274, y: 4898381.6913 },\n { id: 31407, x: 4622237.7121, y: 4909028.2205 },\n { id: 51904, x: 4709386.8469, y: 4814439.8566 },\n { id: 72399, x: 4610453.3116, y: 4669657.6465 },\n { id: 19113, x: 4713040.7998, y: 4889405.718 },\n { id: 72400, x: 4610333.9758, y: 4675627.1481 },\n { id: 31411, x: 4617557.8286, y: 4900990.9126 },\n { id: 51907, x: 4707773.6164, y: 4821293.9748 },\n { id: 31412, x: 4617293.8801, y: 4904987.5296 },\n { id: 19116, x: 4710295.6693, y: 4876531.4348 },\n { id: 72403, x: 4604929.8992, y: 4682616.3329 },\n { id: 19117, x: 4710210.9855, y: 4884536.2193 },\n { id: 51910, x: 4706668.6328, y: 4824967.4892 },\n { id: 31415, x: 4616430.0048, y: 4915449.9558 },\n { id: 72405, x: 4603311.8284, y: 4676300.7105 },\n { id: 72406, x: 4602886.9366, y: 4669154.7722 },\n { id: 31417, x: 4612934.7999, y: 4898031.2489 },\n { id: 19120, x: 4706955.1706, y: 4889304.5791 },\n { id: 31418, x: 4612927.6988, y: 4905359.1247 },\n { id: 19121, x: 4704595.5647, y: 4872686.8445 },\n { id: 10923, x: 4838709.1075, y: 4705438.0326 },\n { id: 51914, x: 4702075.578, y: 4819047.276 },\n { id: 19122, x: 4705120.563, y: 4880942.3418 },\n { id: 72409, x: 4599226.668, y: 4682844.0992 },\n { id: 51915, x: 4700766.6586, y: 4824464.4349 },\n { id: 31420, x: 4612773.3325, y: 4909514.261 },\n { id: 19124, x: 4702483.2866, y: 4876678.9645 },\n { id: 10927, x: 4835601.3265, y: 4709164.6305 },\n { id: 31423, x: 4609083.8814, y: 4915016.2023 },\n { id: 19126, x: 4701742.138, y: 4888317.6073 },\n { id: 64218, x: 4765650.1353, y: 4732156.2889 },\n { id: 10932, x: 4832491.2198, y: 4718023.4976 },\n { id: 64221, x: 4763726.0256, y: 4739804.9625 },\n { id: 64223, x: 4760403.0993, y: 4728853.8888 },\n { id: 10939, x: 4829213.4343, y: 4702974.8876 },\n { id: 10940, x: 4828433.45, y: 4713919.6071 },\n { id: 64228, x: 4755423.8431, y: 4744373.155 },\n { id: 35535, x: 4874063.0346, y: 5039526.3028 },\n { id: 35538, x: 4871902.1126, y: 5028874.4975 },\n { id: 64235, x: 4750788.1002, y: 4734629.0233 },\n { id: 10948, x: 4822079.3328, y: 4711281.1754 },\n { id: 35548, x: 4865096.3473, y: 5027235.9802 },\n { id: 6856, x: 4768762.8833, y: 4835714.1045 },\n { id: 6857, x: 4767648.259, y: 4843419.1525 },\n { id: 6858, x: 4766258.7909, y: 4829782.0699 },\n { id: 35552, x: 4862411.8763, y: 5034801.4242 },\n { id: 6870, x: 4755484.3246, y: 4840549.3708 },\n { id: 6871, x: 4753536.367, y: 4832996.0077 },\n { id: 60162, x: 4603202.3507, y: 4840172.1427 },\n { id: 60166, x: 4601447.7461, y: 4852569.4793 },\n { id: 60168, x: 4598626.0611, y: 4836175.99 },\n { id: 60170, x: 4596094.3182, y: 4840759.2786 },\n { id: 60172, x: 4593696.6631, y: 4845375.2806 },\n { id: 60176, x: 4589518.0585, y: 4839606.9869 },\n { id: 47882, x: 4799980.137, y: 5031854.8508 },\n { id: 47883, x: 4800695.2276, y: 5047860.971 },\n { id: 47884, x: 4798667.4062, y: 5042612.0936 },\n { id: 47886, x: 4796207.7839, y: 5035904.4283 },\n { id: 47892, x: 4791435.067, y: 5040163.9173 },\n { id: 2804, x: 4826007.42, y: 4831882.7151 },\n { id: 47894, x: 4789429.024, y: 5049080.4302 },\n { id: 2805, x: 4824279.1978, y: 4824531.5513 },\n { id: 60192, x: 4583350.3214, y: 4850367.1767 },\n { id: 47896, x: 4784881.0158, y: 5035532.7594 },\n { id: 39703, x: 4834166.2157, y: 5001959.7335 },\n { id: 2812, x: 4821497.8633, y: 4842349.0334 },\n { id: 2813, x: 4819318.1662, y: 4830042.6678 },\n { id: 2814, x: 4819735.7309, y: 4836533.4066 },\n { id: 39707, x: 4830660.2282, y: 4992898.047 },\n { id: 39709, x: 4829133.9703, y: 5001385.7387 },\n { id: 56107, x: 4694037.9573, y: 4837243.5952 },\n { id: 56108, x: 4690669.1693, y: 4834640.2705 },\n { id: 56109, x: 4691183.2426, y: 4843890.0053 },\n { id: 2822, x: 4813634.5566, y: 4826183.8888 },\n { id: 56111, x: 4687684.4822, y: 4846671.1867 },\n { id: 56112, x: 4684978.5695, y: 4831167.8163 },\n { id: 39717, x: 4822195.0502, y: 4990243.0246 },\n { id: 56114, x: 4685406.9921, y: 4842285.3604 },\n { id: 2828, x: 4809617.4042, y: 4834047.0042 },\n { id: 39720, x: 4820268.7114, y: 4997770.7278 },\n { id: 27423, x: 4709743.6963, y: 5047133.5335 },\n { id: 39721, x: 4818688.5993, y: 4990569.1999 },\n { id: 56118, x: 4680503.7252, y: 4841070.4872 },\n { id: 27425, x: 4708411.6536, y: 5038853.4919 },\n { id: 27426, x: 4709041.0122, y: 5052409.1584 },\n { id: 56121, x: 4678866.0716, y: 4846304.9273 },\n { id: 31527, x: 4607145.5775, y: 4903118.7369 },\n { id: 31528, x: 4605590.771, y: 4908524.0739 },\n { id: 31530, x: 4603934.9143, y: 4915229.5422 },\n { id: 27432, x: 4703944.7396, y: 5050455.4153 },\n { id: 31533, x: 4598863.4625, y: 4906971.2402 },\n { id: 27434, x: 4702605.9355, y: 5045803.3125 },\n { id: 27435, x: 4700946.0317, y: 5042221.0567 },\n { id: 27439, x: 4699538.8887, y: 5056691.9513 },\n { id: 27440, x: 4696424.5567, y: 5038439.3036 },\n { id: 31540, x: 4595384.1065, y: 4899625.5061 },\n { id: 60235, x: 4767022.6671, y: 4660667.9849 },\n { id: 31542, x: 4594230.5955, y: 4903916.7236 },\n { id: 27443, x: 4695120.1819, y: 5050692.4141 },\n { id: 60236, x: 4766505.2201, y: 4652415.6181 },\n { id: 31544, x: 4593678.6341, y: 4918030.8495 },\n { id: 27448, x: 4691560.3455, y: 5038938.9786 },\n { id: 31548, x: 4589248.7882, y: 4899954.405 },\n { id: 27449, x: 4691750.6869, y: 5045767.7495 },\n { id: 31549, x: 4589780.9952, y: 4908614.0019 },\n { id: 35653, x: 4871582.1784, y: 5091718.1759 },\n { id: 35654, x: 4870409.9758, y: 5085015.4546 },\n { id: 35658, x: 4870247.7508, y: 5103920.444 },\n { id: 15163, x: 4753244.9379, y: 4875609.3542 },\n { id: 35660, x: 4868226.9891, y: 5098794.3179 },\n { id: 35663, x: 4865183.9049, y: 5087515.1193 },\n { id: 6972, x: 4746319.7685, y: 4840626.406 },\n { id: 35666, x: 4864475.8771, y: 5092629.0018 },\n { id: 6973, x: 4745169.8113, y: 4829043.1862 },\n { id: 68459, x: 4710391.7412, y: 4726172.0714 },\n { id: 68461, x: 4708040.666, y: 4742196.7527 },\n { id: 15174, x: 4745163.9661, y: 4876573.7184 },\n { id: 68463, x: 4706649.7183, y: 4735193.6274 },\n { id: 6978, x: 4739594.5688, y: 4835284.2419 },\n { id: 15179, x: 4741242.0584, y: 4873017.9336 },\n { id: 15182, x: 4739132.3765, y: 4887087.2757 },\n { id: 68470, x: 4699436.4398, y: 4727638.3833 },\n { id: 68472, x: 4698390.1789, y: 4741038.838 },\n { id: 43880, x: 4790066.7458, y: 4935897.034 },\n { id: 43881, x: 4789098.5469, y: 4944323.1717 },\n { id: 43882, x: 4786810.6535, y: 4931545.1964 },\n { id: 68478, x: 4693356.4881, y: 4741587.3532 },\n { id: 68480, x: 4693101.9734, y: 4727800.8375 },\n { id: 43886, x: 4784991.1437, y: 4945200.1593 },\n { id: 43888, x: 4783778.1584, y: 4940416.619 },\n { id: 43894, x: 4778407.5662, y: 4935652.5352 },\n { id: 47997, x: 4823829.5764, y: 5072493.6763 },\n { id: 48000, x: 4819018.7282, y: 5068794.1456 },\n { id: 48002, x: 4816082.9496, y: 5068709.2833 },\n { id: 64403, x: 4746316.9899, y: 4743084.6565 },\n { id: 64405, x: 4744321.7602, y: 4727858.3945 },\n { id: 72603, x: 4616072.8666, y: 4694578.0199 },\n { id: 72604, x: 4615625.6813, y: 4703694.9558 },\n { id: 64407, x: 4742619.0151, y: 4737079.9732 },\n { id: 72606, x: 4614589.9854, y: 4688103.9866 },\n { id: 64409, x: 4739920.5349, y: 4743692.9535 },\n { id: 64411, x: 4738312.4865, y: 4730843.2222 },\n { id: 72611, x: 4607812.1249, y: 4705031.2445 },\n { id: 64414, x: 4735417.1578, y: 4737535.6923 },\n { id: 72612, x: 4606451.1409, y: 4689912.632 },\n { id: 64416, x: 4733521.5842, y: 4743960.4342 },\n { id: 60317, x: 4767306.1452, y: 4688322.4807 },\n { id: 60319, x: 4766843.0009, y: 4698836.0834 },\n { id: 72616, x: 4600886.0866, y: 4697864.5554 },\n { id: 64419, x: 4731060.7495, y: 4733258.7092 },\n { id: 60320, x: 4766430.7302, y: 4693140.2252 },\n { id: 7042, x: 4868870.7544, y: 4613120.9957 },\n { id: 7043, x: 4867583.3814, y: 4619972.4233 },\n { id: 15242, x: 4763653.4022, y: 4927613.4197 },\n { id: 15243, x: 4762367.2188, y: 4921791.4505 },\n { id: 15245, x: 4761289.3902, y: 4911708.5436 },\n { id: 7049, x: 4859156.2465, y: 4616936.8134 },\n { id: 39844, x: 4854168.8837, y: 5027589.1439 },\n { id: 39847, x: 4852864.1221, y: 5039153.8603 },\n { id: 52151, x: 4713104.3795, y: 4800115.4866 },\n { id: 39855, x: 4846140.8821, y: 5028111.7999 },\n { id: 11163, x: 4838137.8858, y: 4732080.7 },\n { id: 52154, x: 4711766.5887, y: 4792736.7322 },\n { id: 39857, x: 4844890.2585, y: 5035145.2628 },\n { id: 11164, x: 4837895.9691, y: 4738294.1663 },\n { id: 52156, x: 4709106.092, y: 4797077.6315 },\n { id: 11166, x: 4835134.8972, y: 4723241.7677 },\n { id: 52158, x: 4707970.826, y: 4806927.9509 },\n { id: 52159, x: 4706712.1832, y: 4801879.415 },\n { id: 52161, x: 4704875.3418, y: 4792507.6095 },\n { id: 39864, x: 4840228.9463, y: 5026298.01 },\n { id: 39865, x: 4840867.6956, y: 5035691.3931 },\n { id: 11173, x: 4829885.2734, y: 4732939.9997 },\n { id: 52164, x: 4701622.617, y: 4799525.9084 },\n { id: 52165, x: 4699091.9116, y: 4807761.6083 },\n { id: 11175, x: 4829085.2468, y: 4722613.7612 },\n { id: 52167, x: 4696223.7924, y: 4789138.8733 },\n { id: 11177, x: 4827071.8465, y: 4742131.0632 },\n { id: 11181, x: 4824768.0875, y: 4733322.8283 },\n { id: 27584, x: 4708173.5017, y: 5057542.7393 },\n { id: 27586, x: 4697347.7421, y: 5060016.5984 },\n { id: 19388, x: 4737494.0066, y: 4920847.7711 },\n { id: 15289, x: 4761363.3556, y: 4942628.7937 },\n { id: 19389, x: 4736616.322, y: 4914926.2921 },\n { id: 27590, x: 4693639.1611, y: 5066395.073 },\n { id: 60383, x: 4767711.1456, y: 4676247.8317 },\n { id: 19394, x: 4733948.0809, y: 4912563.311 },\n { id: 19395, x: 4732626.6098, y: 4928173.1966 },\n { id: 60386, x: 4766649.8054, y: 4670129.9511 },\n { id: 19396, x: 4731790.4362, y: 4923665.2197 },\n { id: 60387, x: 4765489.5141, y: 4680909.734 },\n { id: 19397, x: 4729950.1431, y: 4918483.0073 },\n { id: 19401, x: 4727295.8218, y: 4927476.2199 },\n { id: 19406, x: 4722731.519, y: 4915646.3095 },\n { id: 35804, x: 4876100.9534, y: 5072861.5911 },\n { id: 19408, x: 4722627.5338, y: 4931061.2706 },\n { id: 23508, x: 4696883.2213, y: 4852230.5277 },\n { id: 19409, x: 4721459.5322, y: 4922676.3465 },\n { id: 23509, x: 4697117.3707, y: 4861283.6258 },\n { id: 35808, x: 4872942.8152, y: 5066297.9779 },\n { id: 23512, x: 4691987.1005, y: 4853205.5012 },\n { id: 7118, x: 4856079.5828, y: 4610421.548 },\n { id: 23515, x: 4692040.484, y: 4866153.2902 },\n { id: 35814, x: 4870105.7158, y: 5075260.0975 },\n { id: 35815, x: 4869323.5954, y: 5069046.3524 },\n { id: 35816, x: 4869090.2746, y: 5079540.3412 },\n { id: 7123, x: 4849587.0077, y: 4619237.3649 },\n { id: 23520, x: 4688084.1766, y: 4870338.4616 },\n { id: 23522, x: 4685771.7131, y: 4861127.6664 },\n { id: 7126, x: 4843462.6969, y: 4613315.611 },\n { id: 7127, x: 4843159.9737, y: 4618504.7196 },\n { id: 23524, x: 4683235.0181, y: 4853845.7279 },\n { id: 60420, x: 4767947.2787, y: 4737416.8258 },\n { id: 35826, x: 4862995.0386, y: 5068486.0582 },\n { id: 31743, x: 4605908.227, y: 4883816.4546 },\n { id: 31744, x: 4606500.0815, y: 4895848.7559 },\n { id: 31745, x: 4605007.4024, y: 4890043.5456 },\n { id: 31746, x: 4604087.5575, y: 4878500.9469 },\n { id: 60440, x: 4768849.5685, y: 4710550.4242 },\n { id: 60441, x: 4768790.5425, y: 4721130.368 },\n { id: 60442, x: 4767646.4248, y: 4715525.4043 },\n { id: 31755, x: 4599754.8619, y: 4889150.4058 },\n { id: 31756, x: 4597901.6518, y: 4883967.0819 },\n { id: 31759, x: 4596657.4896, y: 4894837.0873 },\n { id: 31760, x: 4595718.3295, y: 4888061.2813 },\n { id: 31761, x: 4593064.1055, y: 4880617.4949 },\n { id: 31763, x: 4591724.5462, y: 4877934.6655 },\n { id: 44061, x: 4790442.8159, y: 4911070.2228 },\n { id: 31764, x: 4592172.6064, y: 4884953.2389 },\n { id: 31766, x: 4589931.696, y: 4888908.519 },\n { id: 31767, x: 4589930.7354, y: 4894731.4469 },\n { id: 44067, x: 4785877.4065, y: 4917607.7503 },\n { id: 44068, x: 4784915.2318, y: 4924141.0337 },\n { id: 60467, x: 4744463.6831, y: 4618102.6708 },\n { id: 44071, x: 4782589.3807, y: 4909470.4195 },\n { id: 44072, x: 4780903.8564, y: 4921471.6296 },\n { id: 60469, x: 4738058.2795, y: 4620955.347 },\n { id: 35876, x: 4868945.2076, y: 5110258.0512 },\n { id: 60471, x: 4727882.0636, y: 4621109.1497 },\n { id: 44075, x: 4778869.9901, y: 4915474.5169 },\n { id: 72791, x: 4594523.7493, y: 4700259.6644 },\n { id: 72792, x: 4593994.0808, y: 4688800.9054 },\n { id: 72794, x: 4591826.2271, y: 4706188.4712 },\n { id: 72798, x: 4588334.3671, y: 4691734.3291 },\n { id: 48218, x: 4767217.4277, y: 4868873.9306 },\n { id: 48221, x: 4765636.5523, y: 4882220.079 },\n { id: 48223, x: 4762940.8184, y: 4875238.4873 },\n { id: 52328, x: 4733644.5703, y: 4841542.6815 },\n { id: 27736, x: 4691361.3717, y: 5059634.1448 },\n { id: 52331, x: 4730159.2573, y: 4829620.8333 },\n { id: 60530, x: 4751692.2212, y: 4642337.4439 },\n { id: 27739, x: 4688507.9432, y: 5060787.2173 },\n { id: 60532, x: 4750575.286, y: 4634146.5413 },\n { id: 27741, x: 4686902.1135, y: 5066523.4637 },\n { id: 60534, x: 4748814.9526, y: 4628871.888 },\n { id: 52336, x: 4727473.4311, y: 4837244.9957 },\n { id: 27742, x: 4686443.3634, y: 5074769.8235 },\n { id: 68733, x: 4708352.1586, y: 4707909.0534 },\n { id: 52337, x: 4727360.4249, y: 4841312.8278 },\n { id: 68735, x: 4705926.6984, y: 4718339.4333 },\n { id: 60539, x: 4746869.2198, y: 4639899.5222 },\n { id: 52341, x: 4722963.3232, y: 4838612.6743 },\n { id: 52342, x: 4721793.9244, y: 4830965.8716 },\n { id: 68739, x: 4701297.3391, y: 4722381.1553 },\n { id: 52343, x: 4721067.6409, y: 4844918.3435 },\n { id: 68741, x: 4698632.268, y: 4713700.5999 },\n { id: 27752, x: 4680079.933, y: 5079015.212 },\n { id: 52347, x: 4716551.6385, y: 4833627.5525 },\n { id: 27753, x: 4679043.5595, y: 5065549.5113 },\n { id: 52348, x: 4716524.2326, y: 4841437.9156 },\n { id: 27754, x: 4678528.3317, y: 5071881.8131 },\n { id: 68747, x: 4693431.5685, y: 4708769.3569 },\n { id: 27758, x: 4675020.7046, y: 5060046.7929 },\n { id: 27759, x: 4674461.2681, y: 5067343.4108 },\n { id: 31887, x: 4624606.2676, y: 4923882.5335 },\n { id: 3194, x: 4801003.7095, y: 4750466.9248 },\n { id: 31888, x: 4621849.5851, y: 4916923.4447 },\n { id: 31889, x: 4621583.8017, y: 4921437.8122 },\n { id: 3197, x: 4800296.0358, y: 4760579.5148 },\n { id: 56485, x: 4673898.7695, y: 4835708.0015 },\n { id: 31891, x: 4620995.327, y: 4929615.7362 },\n { id: 56486, x: 4672999.9361, y: 4847819.1302 },\n { id: 3199, x: 4796665.009, y: 4745734.1272 },\n { id: 56487, x: 4671280.6907, y: 4841691.4336 },\n { id: 3200, x: 4796522.2517, y: 4740685.949 },\n { id: 3201, x: 4794148.6691, y: 4748771.0184 },\n { id: 31895, x: 4614375.7604, y: 4922223.8657 },\n { id: 3202, x: 4793879.7985, y: 4755333.3359 },\n { id: 31896, x: 4614323.3096, y: 4927569.6069 },\n { id: 3203, x: 4794264.1225, y: 4763488.4603 },\n { id: 56491, x: 4667052.5108, y: 4847729.8026 },\n { id: 56492, x: 4665112.9578, y: 4841426.043 },\n { id: 3205, x: 4792170.6807, y: 4750304.2961 },\n { id: 56493, x: 4663415.5512, y: 4833490.3458 },\n { id: 31899, x: 4611078.3138, y: 4932139.0629 },\n { id: 31900, x: 4608894.1554, y: 4922889.1702 },\n { id: 3207, x: 4790391.247, y: 4744111.1036 },\n { id: 68792, x: 4680331.8316, y: 4618894.7209 },\n { id: 56495, x: 4659895.6824, y: 4833047.3409 },\n { id: 31901, x: 4607230.6965, y: 4929031.7465 },\n { id: 56497, x: 4660749.0656, y: 4848471.0566 },\n { id: 3211, x: 4786960.6216, y: 4752672.1409 },\n { id: 31905, x: 4602753.3051, y: 4932748.7695 },\n { id: 3212, x: 4787174.6611, y: 4764242.192 },\n { id: 31906, x: 4600930.2931, y: 4924903.7632 },\n { id: 31911, x: 4593285.6899, y: 4925123.0786 },\n { id: 15518, x: 4757221.9998, y: 4932042.8315 },\n { id: 15524, x: 4753053.7654, y: 4944175.0009 },\n { id: 7327, x: 4873495.0278, y: 4630571.1243 },\n { id: 15527, x: 4748513.4897, y: 4935880.3391 },\n { id: 48321, x: 4771397.528, y: 4896802.48 },\n { id: 7331, x: 4870025.7531, y: 4636085.5578 },\n { id: 36025, x: 4838813.6895, y: 4848028.1158 },\n { id: 48323, x: 4770463.4989, y: 4889929.7698 },\n { id: 36027, x: 4838719.3443, y: 4859599.2101 },\n { id: 15533, x: 4744948.3706, y: 4945740.5706 },\n { id: 7335, x: 4867292.0925, y: 4627302.9186 },\n { id: 48329, x: 4764271.1202, y: 4894406.177 },\n { id: 15537, x: 4740862.5676, y: 4931872.7934 },\n { id: 36033, x: 4835191.4733, y: 4852653.0475 },\n { id: 36035, x: 4832234.9518, y: 4844118.7681 },\n { id: 7342, x: 4860774.9853, y: 4636263.191 },\n { id: 7343, x: 4859713.6137, y: 4625142.123 },\n { id: 36040, x: 4829778.4385, y: 4853785.9752 },\n { id: 11452, x: 4821011.8141, y: 4725855.0336 },\n { id: 11453, x: 4820373.4398, y: 4739256.093 },\n { id: 11458, x: 4815843.7373, y: 4729026.564 },\n { id: 11466, x: 4810196.2766, y: 4738825.2456 },\n { id: 11472, x: 4805394.5106, y: 4730382.4826 },\n { id: 31968, x: 4584041.7446, y: 4871157.4594 },\n { id: 31969, x: 4581821.3348, y: 4856188.5667 },\n { id: 31970, x: 4582489.5226, y: 4867132.6352 },\n { id: 31971, x: 4582316.8854, y: 4874838.1825 },\n { id: 31978, x: 4575718.6988, y: 4859652.9948 },\n { id: 23792, x: 4679178.6628, y: 4858870.1731 },\n { id: 23794, x: 4679610.0574, y: 4868321.942 },\n { id: 23796, x: 4676402.4587, y: 4855667.5044 },\n { id: 23798, x: 4675092.0218, y: 4864911.9249 },\n { id: 23800, x: 4673379.0408, y: 4869887.37 },\n { id: 31999, x: 4586301.123, y: 4881974.7657 },\n { id: 32000, x: 4586808.8587, y: 4897315.0456 },\n { id: 23803, x: 4670224.0998, y: 4854108.5763 },\n { id: 23805, x: 4669563.8614, y: 4864705.7507 },\n { id: 32006, x: 4588055.6533, y: 4914470.8828 },\n { id: 23809, x: 4667792.7787, y: 4870606.6611 },\n { id: 32009, x: 4845949.5977, y: 4842292.6407 },\n { id: 48406, x: 4773255.0943, y: 4909406.1756 },\n { id: 23812, x: 4664901.8055, y: 4854152.1446 },\n { id: 48409, x: 4771391.49, y: 4924741.8501 },\n { id: 48412, x: 4768075.6556, y: 4915203.7856 },\n { id: 56611, x: 4652677.8385, y: 4753468.3962 },\n { id: 56613, x: 4652221.6981, y: 4767220.7159 },\n { id: 40220, x: 4859276.7099, y: 5059761.8124 },\n { id: 56618, x: 4644595.5857, y: 4750864.4006 },\n { id: 27925, x: 4691817.5978, y: 5051883.4107 },\n { id: 56619, x: 4644990.3661, y: 4761038.6431 },\n { id: 40224, x: 4856331.3896, y: 5047856.7294 },\n { id: 73019, x: 4596338.5914, y: 4672477.98 },\n { id: 27931, x: 4686523.4834, y: 5046976.0284 },\n { id: 27934, x: 4683963.6269, y: 5053244.9874 },\n { id: 27936, x: 4682556.1548, y: 5043133.4158 },\n { id: 40234, x: 4852200.8732, y: 5059290.6916 },\n { id: 27937, x: 4682069.2197, y: 5057698.8458 },\n { id: 27938, x: 4681427.985, y: 5049604.5419 },\n { id: 73027, x: 4587467.0186, y: 4672197.8511 },\n { id: 40237, x: 4848799.5372, y: 5053984.9441 },\n { id: 73029, x: 4587076.95, y: 4680788.0434 },\n { id: 40239, x: 4847870.7389, y: 5047432.687 },\n { id: 40241, x: 4845855.7061, y: 5061889.3685 },\n { id: 27944, x: 4678407.5332, y: 5056452.8984 },\n { id: 27946, x: 4676422.9117, y: 5044105.3673 },\n { id: 73036, x: 4581456.999, y: 4674748.9028 },\n { id: 40247, x: 4841400.9727, y: 5046854.774 },\n { id: 27952, x: 4673187.995, y: 5041760.6121 },\n { id: 64851, x: 4744727.7423, y: 4707290.4339 },\n { id: 64853, x: 4743294.7398, y: 4711731.9592 },\n { id: 64857, x: 4740850.5643, y: 4724406.1943 },\n { id: 64858, x: 4739190.4816, y: 4714628.1952 },\n { id: 64860, x: 4737231.5583, y: 4705661.924 },\n { id: 3375, x: 4801126.714, y: 4779891.9382 },\n { id: 3376, x: 4799868.5477, y: 4765223.1217 },\n { id: 3377, x: 4799623.7405, y: 4773306.0935 },\n { id: 36171, x: 4826522.2191, y: 4848371.5778 },\n { id: 64865, x: 4734149.909, y: 4709506.1652 },\n { id: 3386, x: 4791942.4787, y: 4772103.5508 },\n { id: 64872, x: 4731125.5511, y: 4715850.8863 },\n { id: 52575, x: 4711381.6554, y: 4841815.4433 },\n { id: 48476, x: 4777096.1624, y: 4943532.3633 },\n { id: 36179, x: 4822609.64, y: 4861074.7589 },\n { id: 52576, x: 4709374.3124, y: 4833438.7683 },\n { id: 3388, x: 4791531.1657, y: 4782301.3037 },\n { id: 64874, x: 4729008.0674, y: 4707297.0923 },\n { id: 52577, x: 4709435.5011, y: 4847131.9459 },\n { id: 52578, x: 4708726.8893, y: 4839013.4065 },\n { id: 36183, x: 4819036.4802, y: 4856682.9798 },\n { id: 3391, x: 4787835.1884, y: 4772385.7352 },\n { id: 48481, x: 4771393.8349, y: 4929376.6387 },\n { id: 48482, x: 4770652.087, y: 4939653.0078 },\n { id: 52582, x: 4704812.8558, y: 4844011.5477 },\n { id: 52583, x: 4704257.1055, y: 4838004.6044 },\n { id: 48484, x: 4769364.8672, y: 4946110.7046 },\n { id: 52586, x: 4700140.9669, y: 4833707.4552 },\n { id: 36190, x: 4815083.1638, y: 4846547.3884 },\n { id: 60785, x: 4762246.2352, y: 4655383.2079 },\n { id: 52587, x: 4700045.1851, y: 4844214.4088 },\n { id: 48488, x: 4764581.0319, y: 4933560.8881 },\n { id: 36191, x: 4813793.5213, y: 4856333.9763 },\n { id: 60786, x: 4762039.2612, y: 4648391.1822 },\n { id: 52589, x: 4698301.6889, y: 4839803.8061 },\n { id: 64887, x: 4715547.6904, y: 4618308.4529 },\n { id: 60789, x: 4758867.0773, y: 4660077.8629 },\n { id: 60792, x: 4756515.2142, y: 4654027.2032 },\n { id: 60794, x: 4755346.1262, y: 4648946.136 },\n { id: 64894, x: 4693652.2355, y: 4620798.4809 },\n { id: 60796, x: 4754433.0066, y: 4663224.4716 },\n { id: 60802, x: 4751546.3086, y: 4652382.0511 },\n { id: 60803, x: 4751060.9564, y: 4657976.5039 },\n { id: 19814, x: 4738659.6065, y: 4935305.9417 },\n { id: 19817, x: 4738715.2798, y: 4943900.3577 },\n { id: 60809, x: 4747090.794, y: 4649469.769 },\n { id: 60810, x: 4746682.8417, y: 4658020.0411 },\n { id: 19822, x: 4734246.3598, y: 4942724.7108 },\n { id: 19823, x: 4733390.0583, y: 4934665.0943 },\n { id: 19824, x: 4734060.5467, y: 4950242.7836 },\n { id: 19826, x: 4731198.4781, y: 4940875.7303 },\n { id: 19830, x: 4729224.0097, y: 4936814.5725 },\n { id: 19831, x: 4727261.1409, y: 4943587.4047 },\n { id: 19832, x: 4727168.2348, y: 4949917.1452 },\n { id: 19834, x: 4724574.482, y: 4937511.5602 },\n { id: 7575, x: 4874800.503, y: 4651157.7251 },\n { id: 7576, x: 4873678.8051, y: 4640597.0241 },\n { id: 7577, x: 4873019.5116, y: 4644603.6888 },\n { id: 56770, x: 4655222.9673, y: 4776538.0133 },\n { id: 7583, x: 4865942.2036, y: 4640636.5935 },\n { id: 56772, x: 4652788.2346, y: 4780055.1389 },\n { id: 56773, x: 4651677.6543, y: 4771998.0423 },\n { id: 15783, x: 4756142.0099, y: 4926230.6888 },\n { id: 56775, x: 4648891.4184, y: 4789831.9795 },\n { id: 15785, x: 4754627.9823, y: 4918859.5108 },\n { id: 7588, x: 4859112.7472, y: 4643431.7031 },\n { id: 48579, x: 4772178.4969, y: 4954724.8852 },\n { id: 15787, x: 4750059.7157, y: 4915168.1323 },\n { id: 7589, x: 4857269.9147, y: 4648594.8429 },\n { id: 56778, x: 4646818.5642, y: 4776435.32 },\n { id: 48580, x: 4771427.3737, y: 4966732.3572 },\n { id: 11689, x: 4820735.3288, y: 4718671.1683 },\n { id: 56779, x: 4644120.9711, y: 4769922.3481 },\n { id: 44482, x: 4813688.3381, y: 4951636.9662 },\n { id: 15789, x: 4750270.3585, y: 4925048.1035 },\n { id: 56782, x: 4644049.797, y: 4781802.7342 },\n { id: 56783, x: 4641938.9908, y: 4774843.3545 },\n { id: 48585, x: 4767028.8572, y: 4964233.0342 },\n { id: 56784, x: 4641226.2503, y: 4778390.0737 },\n { id: 44488, x: 4809035.5569, y: 4958363.9377 },\n { id: 11696, x: 4815460.4818, y: 4706742.7964 },\n { id: 56786, x: 4638921.3783, y: 4781044.4781 },\n { id: 15796, x: 4744814.0895, y: 4929561.7563 },\n { id: 44490, x: 4807516.7947, y: 4950562.2529 },\n { id: 11698, x: 4814597.5474, y: 4719060.1408 },\n { id: 73184, x: 4618054.8123, y: 4726599.4235 },\n { id: 15800, x: 4741767.3617, y: 4921367.0225 },\n { id: 11703, x: 4810728.8081, y: 4712404.063 },\n { id: 44496, x: 4803382.0938, y: 4962648.4572 },\n { id: 73189, x: 4608963.3522, y: 4728268.647 },\n { id: 44497, x: 4802537.9218, y: 4955686.6455 },\n { id: 73191, x: 4608368.1879, y: 4719611.2389 },\n { id: 44500, x: 4798932.7425, y: 4948708.5021 },\n { id: 40401, x: 4839024.187, y: 5055119.0932 },\n { id: 11708, x: 4807076.6203, y: 4722380.6712 },\n { id: 73193, x: 4607343.0278, y: 4718034.5488 },\n { id: 11712, x: 4804042.7604, y: 4703971.096 },\n { id: 40406, x: 4835725.8306, y: 5065347.4305 },\n { id: 11714, x: 4803290.9943, y: 4710826.823 },\n { id: 40408, x: 4834124.7021, y: 5059010.6316 },\n { id: 73200, x: 4601409.9763, y: 4711826.0936 },\n { id: 73201, x: 4600820.8599, y: 4721404.0765 },\n { id: 40411, x: 4832081.5412, y: 5051229.6795 },\n { id: 40416, x: 4829562.2995, y: 5065169.7187 },\n { id: 69112, x: 4689517.4178, y: 4642352.3499 },\n { id: 40419, x: 4826739.1461, y: 5060865.8078 },\n { id: 40421, x: 4825436.0284, y: 5048293.0917 },\n { id: 69115, x: 4688520.9838, y: 4626829.0521 },\n { id: 40425, x: 4823662.3337, y: 5051927.9758 },\n { id: 69119, x: 4685195.2576, y: 4629633.5796 },\n { id: 69122, x: 4679871.8876, y: 4636901.5637 },\n { id: 15839, x: 4762635.0279, y: 4950184.5875 },\n { id: 69127, x: 4675417.9872, y: 4631109.4122 },\n { id: 15844, x: 4760296.2271, y: 4968295.7524 },\n { id: 65047, x: 4726634.0365, y: 4627333.6764 },\n { id: 65048, x: 4725577.0016, y: 4639421.8583 },\n { id: 11766, x: 4798871.3686, y: 4655256.3944 },\n { id: 65054, x: 4720786.4562, y: 4642835.5514 },\n { id: 11767, x: 4798294.8037, y: 4649273.2273 },\n { id: 65055, x: 4719874.7176, y: 4625362.153 },\n { id: 48659, x: 4777676.8929, y: 4980829.4149 },\n { id: 11769, x: 4796659.3926, y: 4661048.8253 },\n { id: 65059, x: 4717605.4724, y: 4632307.8916 },\n { id: 11772, x: 4794250.1726, y: 4651859.5334 },\n { id: 48665, x: 4772885.9301, y: 4977405.6694 },\n { id: 48666, x: 4771736.8059, y: 4987845.8705 },\n { id: 48667, x: 4770067.7491, y: 4972564.5275 },\n { id: 3578, x: 4785400.8995, y: 4782655.517 },\n { id: 11777, x: 4788289.0982, y: 4656784.0176 },\n { id: 32273, x: 4865956.286, y: 4899964.526 },\n { id: 3580, x: 4782488.3722, y: 4773869.0023 },\n { id: 36373, x: 4842856.6907, y: 4874967.1433 },\n { id: 65069, x: 4710070.9577, y: 4638970.5101 },\n { id: 36376, x: 4839613.2877, y: 4864873.0618 },\n { id: 32277, x: 4861158.1832, y: 4894745.9105 },\n { id: 36377, x: 4840713.1423, y: 4883438.0592 },\n { id: 36380, x: 4837801.7146, y: 4877480.4353 },\n { id: 32281, x: 4856901.0641, y: 4897764.5885 },\n { id: 36381, x: 4835893.6295, y: 4882384.1923 },\n { id: 32282, x: 4855120.0732, y: 4889655.214 },\n { id: 3589, x: 4776135.2194, y: 4772267.8823 },\n { id: 3592, x: 4773637.9629, y: 4779784.59 },\n { id: 32286, x: 4851828.4327, y: 4893542.72 },\n { id: 36386, x: 4832200.0027, y: 4864080.6363 },\n { id: 32287, x: 4849564.2846, y: 4884711.79 },\n { id: 28188, x: 4660858.0649, y: 4866172.6914 },\n { id: 32288, x: 4850573.9203, y: 4899880.8837 },\n { id: 36388, x: 4831020.0771, y: 4874375.2392 },\n { id: 28190, x: 4658673.1992, y: 4856240.5869 },\n { id: 28191, x: 4658198.5311, y: 4861552.1431 },\n { id: 28196, x: 4655818.8856, y: 4866488.8497 },\n { id: 24098, x: 4697466.9192, y: 4881232.3525 },\n { id: 28199, x: 4653702.7431, y: 4863407.1796 },\n { id: 24100, x: 4694883.2205, y: 4874391.5265 },\n { id: 15903, x: 4764314.6914, y: 4984799.6082 },\n { id: 28201, x: 4650592.3855, y: 4870366.8055 },\n { id: 24102, x: 4693617.319, y: 4883051.1366 },\n { id: 28202, x: 4649567.0409, y: 4856634.532 },\n { id: 24103, x: 4693589.6011, y: 4887692.5507 },\n { id: 15905, x: 4762721.2253, y: 4977701.3532 },\n { id: 28203, x: 4650049.7495, y: 4865840.1917 },\n { id: 28204, x: 4647340.307, y: 4853138.2403 },\n { id: 24107, x: 4688789.8895, y: 4886303.2327 },\n { id: 24108, x: 4687781.9475, y: 4875207.562 },\n { id: 28208, x: 4646118.8489, y: 4864479.3654 },\n { id: 24110, x: 4687522.9898, y: 4890399.543 },\n { id: 24111, x: 4685554.8153, y: 4882448.0652 },\n { id: 28211, x: 4643304.8411, y: 4870059.0979 },\n { id: 24112, x: 4684495.1489, y: 4872068.6356 },\n { id: 24113, x: 4683523.4077, y: 4877592.4206 },\n { id: 24115, x: 4683319.8366, y: 4886935.5421 },\n { id: 20024, x: 4721284.5052, y: 4946885.0253 },\n { id: 20027, x: 4720331.2712, y: 4943136.6268 },\n { id: 20028, x: 4719637.6952, y: 4938847.8215 },\n { id: 20031, x: 4716789.7935, y: 4945727.5147 },\n { id: 11835, x: 4778215.4503, y: 4661693.6181 },\n { id: 20034, x: 4714133.5758, y: 4941122.7246 },\n { id: 20035, x: 4713677.0734, y: 4949260.1024 },\n { id: 11837, x: 4773524.4038, y: 4656357.091 },\n { id: 20040, x: 4711112.9619, y: 4951747.4783 },\n { id: 20043, x: 4708473.504, y: 4944333.6403 },\n { id: 20045, x: 4706809.5554, y: 4951849.5077 },\n { id: 20046, x: 4705203.1987, y: 4935202.8442 },\n { id: 61038, x: 4745519.7908, y: 4645884.7686 },\n { id: 56939, x: 4636298.9218, y: 4775881.5151 },\n { id: 48742, x: 4780353.6638, y: 5006733.5707 },\n { id: 61040, x: 4743596.7484, y: 4660961.6126 },\n { id: 56942, x: 4635057.318, y: 4781649.2605 },\n { id: 7754, x: 4852848.1418, y: 4655392.4665 },\n { id: 56943, x: 4632035.8735, y: 4778759.4767 },\n { id: 61043, x: 4742058.0733, y: 4649852.8302 },\n { id: 56944, x: 4631555.3255, y: 4773949.593 },\n { id: 61044, x: 4741086.0196, y: 4656710.6315 },\n { id: 56945, x: 4632287.1969, y: 4788887.7359 },\n { id: 48748, x: 4774807.6157, y: 5001440.7534 },\n { id: 7758, x: 4850420.2852, y: 4648989.5493 },\n { id: 48749, x: 4773869.3664, y: 4995501.3923 },\n { id: 61047, x: 4739609.3732, y: 4653137.2782 },\n { id: 48750, x: 4772824.1164, y: 5010068.584 },\n { id: 56951, x: 4625505.0373, y: 4779076.9069 },\n { id: 56952, x: 4624315.6789, y: 4770930.7534 },\n { id: 48754, x: 4769997.5896, y: 5003655.2012 },\n { id: 61052, x: 4737094.1149, y: 4662093.7721 },\n { id: 48755, x: 4768570.1676, y: 4992903.5933 },\n { id: 7765, x: 4846529.964, y: 4641990.0848 },\n { id: 61054, x: 4736098.2787, y: 4648484.1672 },\n { id: 56956, x: 4621541.0764, y: 4786727.1424 },\n { id: 7768, x: 4844930.5818, y: 4653349.9658 },\n { id: 61056, x: 4734539.2968, y: 4656848.794 },\n { id: 61059, x: 4733051.2115, y: 4662828.3734 },\n { id: 7773, x: 4843104.0548, y: 4647402.9253 },\n { id: 61063, x: 4730996.6416, y: 4649152.2632 },\n { id: 61065, x: 4729299.9259, y: 4657938.0556 },\n { id: 7778, x: 4839857.1542, y: 4660778.79 },\n { id: 7779, x: 4838776.9106, y: 4643255.9737 },\n { id: 61067, x: 4728370.8083, y: 4663641.2218 },\n { id: 61069, x: 4727560.09, y: 4653896.462 },\n { id: 40611, x: 4834709.1995, y: 5038322.0438 },\n { id: 40616, x: 4831625.9515, y: 5030952.146 },\n { id: 73409, x: 4615880.5791, y: 4738142.5809 },\n { id: 40618, x: 4831225.8969, y: 5046552.3246 },\n { id: 73411, x: 4613057.8849, y: 4732069.8532 },\n { id: 73414, x: 4611235.4681, y: 4745462.5745 },\n { id: 40623, x: 4828605.4601, y: 5040482.291 },\n { id: 40625, x: 4827263.369, y: 5034478.4219 },\n { id: 73417, x: 4609286.3293, y: 4736432.7974 },\n { id: 48825, x: 4783287.586, y: 5030008.9762 },\n { id: 48827, x: 4781177.0637, y: 5025248.061 },\n { id: 73421, x: 4602757.1314, y: 4734824.1907 },\n { id: 48828, x: 4779796.8859, y: 5011135.6062 },\n { id: 48830, x: 4778060.5344, y: 5017162.1684 },\n { id: 48834, x: 4772578.7508, y: 5019715.8624 },\n { id: 48835, x: 4772657.1003, y: 5026404.7889 },\n { id: 52952, x: 4692481.3864, y: 4752538.2866 },\n { id: 16061, x: 4757497.3022, y: 4988230.2072 },\n { id: 16062, x: 4756389.1031, y: 4974410.1595 },\n { id: 16067, x: 4750926.2808, y: 4982185.9354 },\n { id: 52959, x: 4685010.1527, y: 4764440.3784 },\n { id: 52960, x: 4681245.5406, y: 4750239.3741 },\n { id: 16069, x: 4748374.2455, y: 4971361.6269 },\n { id: 52961, x: 4681299.8143, y: 4756128.9771 },\n { id: 52963, x: 4677890.7264, y: 4764064.0078 },\n { id: 16072, x: 4747197.526, y: 4989167.5342 },\n { id: 16075, x: 4743974.6758, y: 4979900.9998 },\n { id: 73469, x: 4598005.7353, y: 4743828.589 },\n { id: 73473, x: 4593513.7105, y: 4737322.7191 },\n { id: 73474, x: 4589763.1981, y: 4730594.4878 },\n { id: 57081, x: 4636463.1328, y: 4759024.469 },\n { id: 36586, x: 4846807.3748, y: 4896107.8277 },\n { id: 57082, x: 4636726.5783, y: 4767648.7985 },\n { id: 57083, x: 4632642.2631, y: 4750679.2322 },\n { id: 57084, x: 4632390.0993, y: 4761618.6053 },\n { id: 36593, x: 4841423.2565, y: 4894001.0097 },\n { id: 57089, x: 4627322.2059, y: 4756017.8375 },\n { id: 3807, x: 4784790.959, y: 4748126.6105 },\n { id: 36603, x: 4833491.5098, y: 4891266.9981 },\n { id: 3811, x: 4781218.0574, y: 4758279.1555 },\n { id: 12010, x: 4800231.5685, y: 4678840.8312 },\n { id: 3812, x: 4779435.5294, y: 4749083.1745 },\n { id: 36606, x: 4831035.8538, y: 4896398.3784 },\n { id: 12012, x: 4797807.9206, y: 4673632.1472 },\n { id: 48905, x: 4782943.3399, y: 5042598.4705 },\n { id: 3817, x: 4776188.1126, y: 4755278.3593 },\n { id: 3818, x: 4775461.4499, y: 4764669.9164 },\n { id: 12017, x: 4795980.6905, y: 4664830.8782 },\n { id: 69404, x: 4684525.2169, y: 4661216.8881 },\n { id: 3820, x: 4772793.076, y: 4758814.1164 },\n { id: 32514, x: 4884366.9085, y: 4916526.151 },\n { id: 12020, x: 4792569.0915, y: 4670566.7177 },\n { id: 3822, x: 4771183.9953, y: 4749185.0272 },\n { id: 48912, x: 4776345.3016, y: 5036652.8105 },\n { id: 69408, x: 4680583.4538, y: 4647926.9532 },\n { id: 48913, x: 4774644.058, y: 5032538.2041 },\n { id: 12022, x: 4791182.3083, y: 4679501.2518 },\n { id: 69409, x: 4678819.7394, y: 4654983.2408 },\n { id: 32518, x: 4879854.204, y: 4909423.42 },\n { id: 48915, x: 4774730.2864, y: 5043292.7627 },\n { id: 48916, x: 4773284.335, y: 5049960.4761 },\n { id: 12025, x: 4789462.8498, y: 4664750.0428 },\n { id: 32522, x: 4876975.5638, y: 4919183.6709 },\n { id: 12029, x: 4786592.8779, y: 4676283.3433 },\n { id: 69416, x: 4673045.7122, y: 4650495.2511 },\n { id: 32526, x: 4872356.1167, y: 4914003.979 },\n { id: 12031, x: 4785433.3577, y: 4670380.0503 },\n { id: 12032, x: 4784208.7114, y: 4666984.3391 },\n { id: 32529, x: 4870098.5696, y: 4907036.6542 },\n { id: 32530, x: 4870844.8005, y: 4921470.4743 },\n { id: 7955, x: 4855274.9445, y: 4632538.2958 },\n { id: 28453, x: 4641148.626, y: 4861580.2932 },\n { id: 7958, x: 4852255.7261, y: 4639973.5659 },\n { id: 7959, x: 4851820.4231, y: 4627049.45 },\n { id: 28455, x: 4638331.4084, y: 4854803.2317 },\n { id: 28458, x: 4636964.8328, y: 4865954.8111 },\n { id: 28459, x: 4637213.5875, y: 4869595.5056 },\n { id: 7964, x: 4847944.5229, y: 4633566.4042 },\n { id: 28460, x: 4634719.9661, y: 4863021.8641 },\n { id: 28462, x: 4633854.9611, y: 4855212.5479 },\n { id: 28465, x: 4632707.0382, y: 4871433.7044 },\n { id: 7971, x: 4845145.8953, y: 4627503.1341 },\n { id: 28468, x: 4629476.8782, y: 4859693.8319 },\n { id: 28469, x: 4629607.6002, y: 4868803.937 },\n { id: 28470, x: 4627433.7904, y: 4865544.8678 },\n { id: 7975, x: 4842138.9157, y: 4635847.0596 },\n { id: 28472, x: 4625740.0619, y: 4855770.8049 },\n { id: 73561, x: 4598940.4384, y: 4729194.4353 },\n { id: 28473, x: 4625828.9983, y: 4861239.3084 },\n { id: 28474, x: 4626185.7502, y: 4871567.2847 },\n { id: 24379, x: 4700248.5659, y: 4910424.1233 },\n { id: 73567, x: 4592530.7646, y: 4713211.5158 },\n { id: 24382, x: 4695923.2443, y: 4899005.6953 },\n { id: 73570, x: 4588428.4799, y: 4720940.7105 },\n { id: 24384, x: 4695219.3083, y: 4904823.7977 },\n { id: 24386, x: 4694572.2293, y: 4910830.2272 },\n { id: 73574, x: 4579372.6201, y: 4667812.9678 },\n { id: 24388, x: 4691374.396, y: 4892584.7482 },\n { id: 7992, x: 4858803.6846, y: 4693244.7516 },\n { id: 73576, x: 4578656.4995, y: 4682220.9411 },\n { id: 24389, x: 4691538.4405, y: 4901577.3735 },\n { id: 73577, x: 4578477.3436, y: 4677686.112 },\n { id: 24390, x: 4691277.7912, y: 4908282.8503 },\n { id: 73578, x: 4578470.3543, y: 4677682.8622 },\n { id: 24392, x: 4690091.6222, y: 4912028.1697 },\n { id: 24394, x: 4686142.7565, y: 4907694.354 },\n { id: 24397, x: 4683990.2419, y: 4900762.6081 },\n { id: 40797, x: 4860876.4605, y: 5076002.0222 },\n { id: 40798, x: 4861113.2418, y: 5083208.8449 },\n { id: 40806, x: 4855793.2489, y: 5077833.2296 },\n { id: 40809, x: 4853031.6438, y: 5066146.3394 },\n { id: 44910, x: 4814964.8886, y: 4967656.9255 },\n { id: 40811, x: 4851844.6008, y: 5071293.2358 },\n { id: 44913, x: 4812656.5016, y: 4986983.4357 },\n { id: 40814, x: 4850877.3149, y: 5078630.7178 },\n { id: 44915, x: 4811134.3046, y: 4978362.1792 },\n { id: 61313, x: 4744360.684, y: 4624703.1077 },\n { id: 61314, x: 4744248.1027, y: 4635128.2631 },\n { id: 40819, x: 4846460.4616, y: 5072532.1142 },\n { id: 40820, x: 4845822.3956, y: 5066373.8848 },\n { id: 44920, x: 4806804.1684, y: 4980482.503 },\n { id: 44922, x: 4805377.6339, y: 4973360.8924 },\n { id: 40823, x: 4845066.3633, y: 5079778.2878 },\n { id: 16231, x: 4758578.2948, y: 4960295.5114 },\n { id: 61321, x: 4740046.3696, y: 4628937.5659 },\n { id: 69520, x: 4671969.9773, y: 4661214.0783 },\n { id: 61322, x: 4739554.5873, y: 4641543.2967 },\n { id: 57224, x: 4654921.4264, y: 4794403.2029 },\n { id: 44928, x: 4801134.8674, y: 4987118.7419 },\n { id: 20334, x: 4717143.8284, y: 4911525.2131 },\n { id: 57226, x: 4654200.9865, y: 4801694.9612 },\n { id: 16236, x: 4753756.9925, y: 4965635.1455 },\n { id: 57227, x: 4653920.9672, y: 4809956.8248 },\n { id: 20336, x: 4716717.7158, y: 4930640.9372 },\n { id: 20337, x: 4715386.9949, y: 4924931.7551 },\n { id: 69526, x: 4666181.7736, y: 4649779.9577 },\n { id: 61328, x: 4735889.8888, y: 4635864.0835 },\n { id: 57229, x: 4651285.0263, y: 4802600.0269 },\n { id: 20338, x: 4714182.2571, y: 4918262.68 },\n { id: 16239, x: 4750527.1417, y: 4953192.7814 },\n { id: 61330, x: 4734857.6806, y: 4623183.2277 },\n { id: 57231, x: 4650443.9628, y: 4796580.0254 },\n { id: 20340, x: 4712945.5397, y: 4931509.2363 },\n { id: 57232, x: 4650389.1522, y: 4809181.4824 },\n { id: 57233, x: 4647090.5251, y: 4802854.5465 },\n { id: 20342, x: 4710814.1016, y: 4921402.4476 },\n { id: 16244, x: 4747023.2228, y: 4961312.8872 },\n { id: 69532, x: 4661537.1772, y: 4647261.5268 },\n { id: 57235, x: 4645284.2266, y: 4793845.4793 },\n { id: 49037, x: 4783447.7789, y: 5058564.9018 },\n { id: 69533, x: 4657897.4768, y: 4655452.6047 },\n { id: 16246, x: 4743320.2807, y: 4953248.5334 },\n { id: 69534, x: 4656602.6388, y: 4650379.5034 },\n { id: 61336, x: 4731751.0922, y: 4628068.5483 },\n { id: 57237, x: 4645753.8512, y: 4810149.222 },\n { id: 49039, x: 4781055.5023, y: 5051807.7094 },\n { id: 20346, x: 4707767.8861, y: 4931027.2934 },\n { id: 61337, x: 4730778.5079, y: 4635895.9303 },\n { id: 20347, x: 4706356.3005, y: 4925535.5993 },\n { id: 16248, x: 4743200.5488, y: 4970535.6217 },\n { id: 61338, x: 4730773.1958, y: 4640912.9697 },\n { id: 57239, x: 4642780.3164, y: 4800925.2724 },\n { id: 20349, x: 4704349.2184, y: 4916460.463 },\n { id: 49045, x: 4775963.1405, y: 5057766.3533 },\n { id: 61343, x: 4727144.7722, y: 4632286.4686 },\n { id: 49047, x: 4892879.1567, y: 4940259.8397 },\n { id: 49049, x: 4890838.4175, y: 4930272.6933 },\n { id: 36759, x: 4828077.4952, y: 4887015.6873 },\n { id: 36766, x: 4823992.8438, y: 4901505.4104 },\n { id: 36767, x: 4822982.4866, y: 4893191.1634 },\n { id: 69567, x: 4670429.0591, y: 4625436.707 },\n { id: 69568, x: 4670308.9111, y: 4640989.5426 },\n { id: 36776, x: 4817773.3403, y: 4887881.7609 },\n { id: 69569, x: 4668011.4398, y: 4634381.2582 },\n { id: 36782, x: 4813952.9539, y: 4896573.9514 },\n { id: 65481, x: 4726086.8598, y: 4659552.7249 },\n { id: 65487, x: 4722861.7035, y: 4652144.446 },\n { id: 65492, x: 4715908.3418, y: 4645076.7607 },\n { id: 65494, x: 4715364.7775, y: 4656428.8404 },\n { id: 16311, x: 4765318.366, y: 5004570.9577 },\n { id: 16312, x: 4764609.5505, y: 4996541.5678 },\n { id: 32733, x: 4884597.8953, y: 4930539.9232 },\n { id: 4040, x: 4805749.9107, y: 4800736.8005 },\n { id: 32734, x: 4881762.8499, y: 4923716.9321 },\n { id: 32735, x: 4882862.3577, y: 4939505.9036 },\n { id: 4045, x: 4802306.6648, y: 4786355.0432 },\n { id: 32742, x: 4877852.4569, y: 4930692.9772 },\n { id: 12247, x: 4801270.7581, y: 4698100.1785 },\n { id: 32743, x: 4876570.4828, y: 4926306.0698 },\n { id: 32745, x: 4876348.5136, y: 4937822.1694 },\n { id: 12250, x: 4799507.8085, y: 4690344.5396 },\n { id: 12251, x: 4799173.639, y: 4685784.8662 },\n { id: 4053, x: 4795931.8613, y: 4798033.0798 },\n { id: 32751, x: 4870639.4245, y: 4928479.4695 },\n { id: 12256, x: 4794516.2129, y: 4683110.2725 },\n { id: 4058, x: 4791538.7775, y: 4790248.4034 },\n { id: 12257, x: 4794040.2883, y: 4692348.373 },\n { id: 12258, x: 4793519.251, y: 4697716.9706 },\n { id: 16359, x: 4768780.5299, y: 5014439.8899 },\n { id: 12262, x: 4789901.3248, y: 4685347.861 },\n { id: 16362, x: 4766891.5827, y: 5021626.8269 },\n { id: 16364, x: 4765994.1572, y: 5028245.0757 },\n { id: 16365, x: 4763747.1755, y: 5012804.5488 },\n { id: 12266, x: 4786680.7194, y: 4693513.3109 },\n { id: 12267, x: 4785355.2389, y: 4683415.6462 },\n { id: 12270, x: 4784729.8666, y: 4689263.1069 },\n { id: 40973, x: 4862808.8062, y: 5101971.2668 },\n { id: 40977, x: 4859435.8702, y: 5092628.1562 },\n { id: 40978, x: 4859600.2718, y: 5098443.5921 },\n { id: 40984, x: 4855529.1095, y: 5094453.1903 },\n { id: 40985, x: 4854612.488, y: 5085778.601 },\n { id: 40989, x: 4853380.9179, y: 5103068.2923 },\n { id: 49188, x: 4900059.2117, y: 4968776.799 }\n ];\n }", "title": "" }, { "docid": "ee2a62e7dad05b32ac9e31a33e2490bf", "score": "0.60456294", "text": "function addpoint(lat, lon, text) {\n\n var gpoint = g.append(\"g\").attr(\"class\", \"gpoint\");\n var x = projection([lat, lon])[0];\n var y = projection([lat, lon])[1];\n\n gpoint.append(\"svg:circle\")\n .attr(\"cx\", x)\n .attr(\"cy\", y)\n .attr(\"class\", \"point\")\n .attr(\"r\", 1.5);\n\n //conditional in case a point has no associated text\n if (text.length > 0) {\n\n gpoint.append(\"text\")\n .attr(\"x\", x + 2)\n .attr(\"y\", y + 2)\n .attr(\"class\", \"text\")\n .text(text);\n }\n\n }", "title": "" }, { "docid": "93aab346869c3cbc4f0ba59251bf42c6", "score": "0.6041908", "text": "function addpoint (position) {\n userlongitude = position.coords.longitude\n userlatitude = position.coords.latitude\n if (userMarker){\n mymap.removeLayer(userMarker);\n }\n userMarker = L.marker([userlatitude, userlongitude]).addTo(mymap);\n //document.getElementById('showLocation').innerHTML = \"Latitude: \" + position.coords.latitude + \"<br>Longitude: \" + position.coords.longitude;\n closestFormPoint(position);\n }", "title": "" }, { "docid": "48cf2cd62817658e4bde397401687b14", "score": "0.6038321", "text": "addPoint(point) { this.data.point.pushXYZ(point.x, point.y, point.z); return this.data.point.length - 1; }", "title": "" }, { "docid": "eb7a645b8d4ff9e4de423ea34b6f357a", "score": "0.6023132", "text": "function addPoint(event) {\n\tpath.insertAt(path.length, event.latLng);\n\t\n\tvar marker = new google.maps.Marker({\n\t\tposition: event.latLng,\n\t\tmap: map,\n\t\tdraggable: true\n\t});\n\tmarkers.push(marker);\n\tmarker.setTitle(\"#\" + path.length);\n\t\n\tgoogle.maps.event.addListener(\n\t\tmarker,\n\t\t'click',\n\t\tfunction() {\n\t\t\tmarker.setMap(null);\n\t\t\tfor (var i = 0, I = markers.length; i < I && markers[i] != marker; ++i);\n\t\t\tmarkers.splice(i, 1);\n\t\t\tpath.removeAt(i);\n\t\t}\n\t);\n\t\n\tgoogle.maps.event.addListener(\n\t\tmarker,\n\t\t'dragend',\n\t\tfunction() {\n\t\t\tfor (var i = 0, I = markers.length; i < I && markers[i] != marker; ++i);\n\t\t\tpath.setAt(i, marker.getPosition());\n\t\t}\n\t);\n}", "title": "" }, { "docid": "aeede861f54225b4dbb3270acf0e6c51", "score": "0.6021596", "text": "function add_markers(map, userwps) {\n var markers = new google.maps.MVCArray();\n\n google.maps.event.addListener(userwps, 'insert_at', function (p) {\n markers.push(new google.maps.Marker({\n position: userwps.getAt(p),\n map: map\n }))\n });\n}", "title": "" }, { "docid": "966fbdbf8d9a9779333d5dc8cf037c5c", "score": "0.60126835", "text": "onMapClicked(point) {\n if (this.isLatLngInsidePolygon(point, this.polygon)) {\n this.polygon = [];\n this.point = null;\n }\n else {\n this.polygon.push(point);\n this.point = point;\n }\n if (this.polygon.length > 2) {\n this.isPolygon = true;\n }\n else {\n this.isPolygon = false;\n }\n }", "title": "" }, { "docid": "b561a2743e4eba444556d90f711acb2c", "score": "0.60089386", "text": "constructor() { // how it looks and how points are interconnected.\n this.a = { //First point, everything in the constructor are points for the map. Makes it easy to implement new points\n img: 'imgs/location-a.png', //Src location for the image\n x: 0, //Starting X\n y: 0, //Starting Y\n name: 'A', //Name of point, used in table id, options selector and more.\n active: true //Active specifies if its the current point being moved on the map.\n };\n this.b = {\n img: 'imgs/location-b.png',\n x: 0,\n y: 0,\n name: 'B',\n active: false\n };\n this.c = {\n img: 'imgs/location-c.png',\n x: 0,\n y: 0,\n name: 'C',\n active: false\n };\n this.d = {\n img: 'imgs/location-d.png',\n x: 0,\n y: 0,\n name: 'D',\n active: false\n };\n }", "title": "" }, { "docid": "a5a3d89fbc56f7df529d4250d85ae1d6", "score": "0.5995394", "text": "function akaPointZoneAdd() {\n AKA_Points = AKA_Points + 1;\n akaPointZone.innerHTML = AKA_Points;\n}", "title": "" }, { "docid": "02779450b20b82d147328eb19953600c", "score": "0.5992641", "text": "function setMapOnAll (map) {\n for (var i = 0; i < pointMarkers.length; i++) {\n pointMarkers[i].setMap(map)\n }\n\n for (var j = 0; j < curveMarkers.length; j++) {\n curveMarkers[j].setMap(map)\n }\n}", "title": "" }, { "docid": "6fe292907baec6e0842d63f185113cb3", "score": "0.5990141", "text": "function addGeofenceOnMap() {\n //Add marker dan listener baru saat array di refresh\n var marker, i;\n\n //jadyMap.removeMarkers();\n for (i = 0; i < geofenceCoordinates.length; i++) { //awalnya locations\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(geofenceCoordinates[i][0], geofenceCoordinates[i][1]),\n icon: {\n path: google.maps.SymbolPath.CIRCLE,\n },\n map: jadyMap //attach the map onto our map name (our map name is \"map\" -james)\n });\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infowindow.setContent(\"Geofence point\"); //get array value on 0 (name string)\n infowindow.open(jadyMap, marker);\n };\n })(marker, i));\n }\n\n}", "title": "" }, { "docid": "2cfe2f9e264833952317a4d9140e73f3", "score": "0.59831583", "text": "function addLatLng(event) {\n var path = poly.getPath();\n\n // Because path is an MVCArray, we can simply append a new coordinate\n // and it will automatically appear.\n path.push(event.latLng);\n\n // Add a new marker at the new plotted point on the polyline.\n var marker = new google.maps.Marker({\n position: event.latLng,\n title: '#' + path.getLength(),\n map: map\n });\n}", "title": "" }, { "docid": "e9652d4f2532a7c890f1e5eebe140021", "score": "0.5978478", "text": "function plotData(map) {\n // mapping functions\n let xMap = map.x;\n let yMap = map.y;\n\n // append data to SVG and plot as points\n svgScatterPlot.selectAll('.dot')\n .data(data)\n .enter()\n .append('circle')\n .attr('cx', xMap)\n .attr('cy', yMap)\n .attr('r', 3)\n .attr('fill', \"#4286f4\");\n }", "title": "" }, { "docid": "2fd98b38447559847c16e5279aa08004", "score": "0.5978003", "text": "addCircles() {\n for (let i in this.points) {\n this.points[i].addCircle(this.configuration);\n }\n }", "title": "" }, { "docid": "7358d6dc8d14246eedf1c9ca1b1038d8", "score": "0.5971069", "text": "afficher()\n \t{\n // Ajout de chacun des points au DOM\n \t\tfor(var i=0; i<this.points.length; i++)\n \t\t{\n \t\t\t//console.log(\"Affichage point --> id=\", this.points[i].id);\n \t\t\tvar point = this.points[i];\n \t\t\tvar nX = parseInt(point.x*this.map.width() /this.taillesreference.x);\n \t\t\tvar nY = parseInt(point.y*this.map.height() / this.taillesreference.y );\n\t\t\t\tvar nDiametre = parseInt(point.diametre * this.map.width() / this.taillesreference.x);\n\t\t\t\tif(!this.pointsproportionnels)\n\t\t\t\t\tnDiametre = point.diametre;\n \t\t\tthis.mapcontainer.append('<div class=\"point\" data-tag=\"'+this.points[i].tag+'\" id=\"point-'+this.points[i].id+'\" style=\"width:'+nDiametre+'px;height:'+nDiametre+'px;border-radius:50%;top:'+nY+'px;left:'+nX+'px;background:'+point.couleur+'\">');\n \t\t}\n // CSS pour l'ensemble des points\n \t\tthis.mapcontainer.css('position', 'relative');\n \t\tthis.mapcontainer.children('div.point').css('position', 'absolute');\n \t\tthis.mapcontainer.children('div.point').css('transform', 'translate(-50%, -50%)');\n \t}", "title": "" }, { "docid": "8c9ec5728362d408d1d9c8f62ed62820", "score": "0.5962737", "text": "initializePoints() {\n this.pointsData = [];\n for (let i = 0; i < this.NUMBER_OF_POINTS; i++) {\n this.pointsData.push(new SurfacePoint(i, this.DISTANCE_BETWEEN_POINTS * (i + 1), 0));\n }\n\n // cause some disturbance on the middle point\n this.pointsData[Math.floor(this.NUMBER_OF_POINTS / 2)].y = 5;\n\n this.svg.selectAll('circle').data(this.pointsData).enter()\n // .each(point => console.info(`added point <${point.x}, ${point.y}>`))\n .append('circle')\n .classed('surface-point', true)\n .attr('cx', (point) => this.x(point.x))\n .attr('cy', (point) => this.y(point.y))\n .attr('r', (point) => this.x(this.POINT_RADIUS));\n }", "title": "" }, { "docid": "4ce379ced6fc7282342dabbcfaa59b2d", "score": "0.5957414", "text": "function addMarkers(myMap) {\n // make XHR request for markers\n indexModule.makeRequest('/get-markers', 'GET', null, function(err, res) {\n // create array of objects with id, latitude and longitude properties\n var markersArray = JSON.parse(res)\n .filter(function(marker) {\n return marker.location; // filter only those with a location value\n })\n .map(function(marker) {\n var latLon = marker.location.split(',');\n return {\n post_id: marker.id,\n latitude: latLon[0],\n longitude: latLon[1]\n }\n });\n createMarkers(markersArray);\n });\n\n // create markers with database data\n function createMarkers(markers) {\n markers.map(function(marker) {\n L.marker(\n [marker.latitude, marker.longitude],\n { id: marker.post_id }\n ).addTo(myMap).on('click', redirectToPost);\n });\n };\n\n // redirect user to a specific post when clicked\n function redirectToPost(event) {\n location.href = '/posts?id=' + event.target.options.id;\n };\n }", "title": "" }, { "docid": "a9b2e860d7148ef1c10768faac949d72", "score": "0.5949334", "text": "function addpoint(lat,lon,type) {\n\n\n var x = projection([lat,lon])[0];\n var y = projection([lat,lon])[1];\n var color = \"#22a7f0\";\n\n var rad = 4.0;\n if(isMobile){\n rad = 5.0;\n }\n if(x > 0 || y > 0){\n var gpoint = g.append(\"g\").attr(\"class\",\"gpoint\");\n gpoint.append(\"svg:circle\")\n .attr(\"cx\", x)\n .attr(\"cy\", y)\n .attr(\"class\", \"point\")\n .attr(\"r\", rad)\n .attr(\"onclick\",\"flightClick(event)\")\n .style(\"fill\", color);\n }\n}", "title": "" }, { "docid": "13019a2310636e353e12bf13933f183f", "score": "0.5939254", "text": "addMap(map) {\n\t\t// Invalidate required program template\n\t\tthis._requiredProgramTemplate = null;\n\n\t\tthis._maps.push(map)\n\t}", "title": "" }, { "docid": "1ecb51c81dcc02b4d97e2768b550c1be", "score": "0.593552", "text": "function createPropSymbols(data, map, attributes){\n //create a Leaflet GeoJSON layer and add it to the map\n L.geoJson(data, {\n pointToLayer: function(feature, latlng){\n return pointToLayer(feature, latlng, attributes);\n\n }\n\n }, { pane:\"pointsPane\"}).addTo(map);\n }", "title": "" }, { "docid": "c39a1d899ece5b0a4c5793a0d9f8a90c", "score": "0.59321564", "text": "function initMap(data) {\n\tmyMap = new google.maps.Map(document.getElementById('map'), {\n\t\tcenter: {lat:21.850565, lng:-72.039691},\n\t\tzoom: 10});\n\tmvm.initPoints();\n}", "title": "" }, { "docid": "79a065efa06c63feb9468f6bb1b08d73", "score": "0.5931124", "text": "function initMapPoints(data) {\n var tweets = {\n \"type\": \"FeatureCollection\",\n \"features\": [\n ]\n };\n data.forEach(function(ele) {\n if (ele.location_mark && ele.user) {\n var text = MapPopUpTemplateService.genStaticTwitterStatus(ele);\n var pointObject = {\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n ele.location_mark[0],\n ele.location_mark[1]\n ]\n },\n \"type\": \"Feature\",\n \"properties\": {\n \"popupContent\": \"<div class='foobar'>\" + text + \"</div>\"\n },\n \"id\": ele.id_str\n };\n tweets.features.push(pointObject);\n }\n });\n\n return tweets;\n }", "title": "" } ]
9b63bcb4728e8ddceb63cbc17105df59
Stop the farm timer
[ { "docid": "69ed6f1f44a6282f409adc6f7fe2d50b", "score": "0.7271262", "text": "function stopTimer(){\n try{\n audio.pause();\n audio.currentTime = 0;\n }catch(err){\n\n }\n player.farmRun.onRun = false;\n save();\n}", "title": "" } ]
[ { "docid": "306c43ed2bed96d4c8477c2ebd40b70d", "score": "0.7655402", "text": "function stopTimer() {\n clearInterval(timing);\n}", "title": "" }, { "docid": "77ba292ffc6f4a8816243bada0dee5c3", "score": "0.7576222", "text": "function stopTimer() {\n clearInterval(time);\n }", "title": "" }, { "docid": "7ea6d1be8b7df50a91967d1960d1646f", "score": "0.751692", "text": "stopTimer() {\n clearInterval(this.timer);\n }", "title": "" }, { "docid": "c7162987353aed2664d4b1d59123913a", "score": "0.74901116", "text": "function stopTimer() {\n clearInterval(timer);\n }", "title": "" }, { "docid": "129a1c39856c6f88c8d43e256bc1fd90", "score": "0.7440629", "text": "async function stopTimer() {}", "title": "" }, { "docid": "2c51af63442c3f0e1baee4d8a53bbc3f", "score": "0.7422866", "text": "function stopTimer (){\n clearInterval(setTimer);\n}", "title": "" }, { "docid": "29988221d63460054d3c3f11374f7cdf", "score": "0.74216306", "text": "stopTimer() {\n if(this.timer) {\n clearInterval(this.timer);\n this.timer = null;\n }\n }", "title": "" }, { "docid": "b5cd69065073016af5dc06fabe4f3709", "score": "0.73908496", "text": "function stop() {\n\t\t\tclearInterval(timer)\n\t\t}", "title": "" }, { "docid": "d96ab415952d53083975d67cabc3aeae", "score": "0.7353537", "text": "function stop() {\n stopTimerAndResetCounters();\n dispatchEvent('stopped', eventData);\n }", "title": "" }, { "docid": "3887003dd1006d2ed9b20bfa3336ed37", "score": "0.73488045", "text": "stopTime() {\n if (this.timerId !== null) {\n clearInterval(this.timerId);\n this.timerId = null;\n }\n }", "title": "" }, { "docid": "f5b867099017b4edff66fb206f269d2a", "score": "0.7343811", "text": "stop() {\n clearTimeout(this.timerId);\n this.running = false;\n }", "title": "" }, { "docid": "f5b867099017b4edff66fb206f269d2a", "score": "0.7343811", "text": "stop() {\n clearTimeout(this.timerId);\n this.running = false;\n }", "title": "" }, { "docid": "f5b867099017b4edff66fb206f269d2a", "score": "0.7343811", "text": "stop() {\n clearTimeout(this.timerId);\n this.running = false;\n }", "title": "" }, { "docid": "5f33fd3cfa5c8ccf22d6fb50c822691a", "score": "0.73268574", "text": "function stopTimer(){\n\tclearInterval(clockTimer);\n}", "title": "" }, { "docid": "acff528eeffb1d1996051c965f40605b", "score": "0.73225343", "text": "stopTimer() {\n if (this.interval) {\n clearInterval(this.interval);\n this.interval = null;\n }\n }", "title": "" }, { "docid": "cca356380d5f1d76988dbe86d3e43e82", "score": "0.7291245", "text": "function stopTimer() {\n clearTimeout(timeCounter);\n }", "title": "" }, { "docid": "0da05c136a95dc0c6a802a45f3356ba0", "score": "0.7289736", "text": "function stopTimer() {\n clearInterval(timer);\n}", "title": "" }, { "docid": "220186eab0410ce4b1f425b1e7de0c1d", "score": "0.7271935", "text": "function stopTimer(){\n clearInterval(timer);\n}", "title": "" }, { "docid": "3a058b13ea8faa7906d94ced2b0b5c15", "score": "0.72712225", "text": "function stopTimer() {\n secondsElapsed = 0;\n setTime();\n renderTime();\n}", "title": "" }, { "docid": "a3e687bb7baccd4ab2c94ed170e4859f", "score": "0.72566146", "text": "function stopTimer() {\n clearTimeout(time);\n}", "title": "" }, { "docid": "92f638bb476654b87fccb2d521ecce76", "score": "0.72521245", "text": "function stop() {\n clearTimeout(timer);\n clearInterval(interval);\n }", "title": "" }, { "docid": "2f534ea624bd3e6bd0c60c1f0e174d64", "score": "0.7249497", "text": "function stopTimer() {\n\tclearInterval(timeId);\n}", "title": "" }, { "docid": "1c5c8a692affb2d1a746d0939898ecbf", "score": "0.7229456", "text": "function stop() {\n clearInterval(intervalId);\n clockRunning = false;\n time = 120;\n}", "title": "" }, { "docid": "2512c8892827cca4e1932883580a7b68", "score": "0.72267187", "text": "function stopTimer (){\n clockRunning = false;\n clearInterval(intervalId);\n}", "title": "" }, { "docid": "81ccd16abe26f6a2839c9e19b0b30afd", "score": "0.721407", "text": "function stopTimer() {\n\tclearInterval(timer);\n}", "title": "" }, { "docid": "f0e2542175feb0903b02270db9386949", "score": "0.72116137", "text": "function stop() {\n clockRun = false;\n clearInterval(clockControl);\n }", "title": "" }, { "docid": "388005b02ec7a744f4cf2753dd666509", "score": "0.72112197", "text": "function stopTimer() {\n clearInterval(intervalId);\n }", "title": "" }, { "docid": "8ab1564f0d5bdf91d7c7be1f268e4191", "score": "0.71850586", "text": "function stopTimer() {\n clearInterval(intv);\n updateTime();\n}", "title": "" }, { "docid": "88b73bba930d16c44d1ec37873cd3de6", "score": "0.71733046", "text": "function stopTimer(){\n clearInterval(timer);\n}", "title": "" }, { "docid": "789092b0d8372e88fdff05acb72e85fb", "score": "0.71686697", "text": "stop() {\n\t\tconst currentTime = new Date().getTime()\n\n\t\tthis.elapsed = Math.round( (currentTime - this.timer) / 1000 )\n\n\t\tthis.timer = 0\n\t}", "title": "" }, { "docid": "37bd3b0ada7f6f1d06c460c1f4dd3913", "score": "0.71684974", "text": "function stopTimer() {\n if (timer !== null) {\n timer.stop();\n }\n }", "title": "" }, { "docid": "2d253047226791465c856e895ed99332", "score": "0.71519595", "text": "_stop() {\n if (this._.timer) {\n clearInterval(this._.timer);\n this._.timer = null;\n }\n }", "title": "" }, { "docid": "e05ae4e9184f2539621062903d97001a", "score": "0.71391773", "text": "function stop() {\n clearTimeout(t);\n}", "title": "" }, { "docid": "fea6fae7dd2d55bc655abf188df6a4a1", "score": "0.7123717", "text": "function stopTimer() {\n clearInterval(tmrInterval);\n}", "title": "" }, { "docid": "1e84773ae13b564057ffb0173103d0fb", "score": "0.71079564", "text": "function stop() {\n clearInterval(intervalId);\n clockRunning = false;\n }", "title": "" }, { "docid": "f567cecaaf814f9d14936da6e3602741", "score": "0.70960695", "text": "function myStopFunction() {\n clearTimeout(clockFunction);\n }", "title": "" }, { "docid": "e4de3412bbfb9b7a423311b8926afe4d", "score": "0.70785224", "text": "function stopTimer() {\n seconds = 0;\n clearInterval(timer);\n }", "title": "" }, { "docid": "d8a2799f0bcd48c96e86fb05bce4de15", "score": "0.7056958", "text": "function stopTimer() {\n\tclearInterval(timer);\n\ttimer = null;\n\tchangeToNextState();\n\tnotifyUser();\n\tchrome.runtime.sendMessage({\n\t\tcommand: \"timerEnded\"\n\t});\n}", "title": "" }, { "docid": "bd3826f37ef1b618cefa3f9b0dc925bd", "score": "0.7028543", "text": "function stopTimer() {\n\t\tclearInterval(timer);\n\t\ttimer = null;\n\t}", "title": "" }, { "docid": "8de8ac2fb1defba98094700288070ef1", "score": "0.70175123", "text": "function stopTimer() {\n clearInterval(countSeconds);\n}", "title": "" }, { "docid": "ef8b17907e57c2d49d3583e04ff251c4", "score": "0.70106214", "text": "function stopTimer() {\n // Stop Timer\n clearInterval(incrementer);\n}", "title": "" }, { "docid": "ddf0a6eea765eb3c2d4a63e8a62739d0", "score": "0.70072496", "text": "function stopTimer(){\n\n\t\tclearInterval(tInterval);\n \trunning = 0;\n \tsavedTime = 0;\n \t\tdifference = 0;\n \t\tpaused = 0;\n \t\trunning = 0;\n \t\t\n}", "title": "" }, { "docid": "7ce186227780a104e909a746b167d02e", "score": "0.7006842", "text": "stop() {\n this.#timerWorker.postMessage(\"stop\"); // Stop the timer\n this.#isPlaying = false;\n this.#playDrum = false;\n this.#drums.stop();\n if (this.#isSounding) { // If is in the recording mode\n setOnAirTxt(); // Sets the text \"ON AIR\" (It may be showing the countdown)\n toggleOnAirLight(); // Toggle the light off\n }\n }", "title": "" }, { "docid": "1d8b7aafc62593ef123e638b22b1a763", "score": "0.7001122", "text": "function StopTimer() {\n clearInterval(clock);\n $timeElement.addClass('hidden');\n}", "title": "" }, { "docid": "89c730eb289ef5040ec857122951d208", "score": "0.6974189", "text": "function stopTimer() {\n clearInterval(myTimer);\n}", "title": "" }, { "docid": "7e812f248e05fe95de98b83f3835963e", "score": "0.69552326", "text": "function stop(){\r\n\tclearTimeout(config.runTimeout);\r\n}", "title": "" }, { "docid": "94a179d7ff2483ebf1fb26387004a2d3", "score": "0.6953981", "text": "function stop(){\n if(isClockStopped== true) return;\n clearInterval(timerId);\n isClockStopped=true;\n}", "title": "" }, { "docid": "46143b5a49c6844db9eda5c6cea64d07", "score": "0.69431406", "text": "function stop() {\n \t\tclockRunning = false;\n clearInterval(intervalId);\n // console.log(intervalId);\n }", "title": "" }, { "docid": "11f8d818bc0f6845a1f32c06d376b104", "score": "0.69237065", "text": "function stopTimer() {\n if (timer) {\n timer.stop();\n }\n}", "title": "" }, { "docid": "22f59ae867ac50cc0d98827b02176de0", "score": "0.69224083", "text": "function stopTimer() {\n clearInterval(gameTimer);\n}", "title": "" }, { "docid": "538bcfd80e8d9d6adb19018f19e98450", "score": "0.6910565", "text": "function stopFn() { clearInterval(itv); }", "title": "" }, { "docid": "238443ced78c32709fe78a67620fa676", "score": "0.69071454", "text": "function stopTimer(){ //The stopTimer function runs clearInterval, which stops the setInterval running on variable 'int' (which controls the second count, so the timer stops)\n clearInterval(int)\n }", "title": "" }, { "docid": "d182ba42a5d956d6dc7d9d26f8a80700", "score": "0.6904376", "text": "function stopTimer() {\n isTimerRunning = false;\n clearInterval(timer);\n}", "title": "" }, { "docid": "26429a4ffaf94eaff3ca912354cf4150", "score": "0.690352", "text": "function stopTimer() {\n clearInterval(timerInterval);\n timerCounter = 0;\n timerMin = 0;\n }", "title": "" }, { "docid": "b12c5bbae6a8e5c18d96a889bd61b2e2", "score": "0.6880876", "text": "function stopTimer() {\n clearInterval(timerInterval);\n timerInterval = null;\n}", "title": "" }, { "docid": "60e7df22dda806e10d6d23690c70a933", "score": "0.6867931", "text": "function stopTimer() {\n clearInterval(interval);\n timer = 0;\n}", "title": "" }, { "docid": "79b913041ba94e2f2d460b50647d53dc", "score": "0.6866579", "text": "stop() {\n if (this._timeout) {\n clearTimeout(this._timeout);\n this._timeout = null;\n }\n if (this._interval) {\n clearInterval(this._interval);\n this._interval = null;\n }\n }", "title": "" }, { "docid": "f3b428e907db3096e37807719259134e", "score": "0.6864628", "text": "function stopTimer() {\n chrome.runtime.sendMessage({action: \"stop\"});\n}", "title": "" }, { "docid": "46e19c23187e1a703e6fd3006aa5f89c", "score": "0.6814134", "text": "stop() {\n clearInterval(this.intFunc);\n }", "title": "" }, { "docid": "2ccb6a78978c87d8f6d70f30f5f5cc3e", "score": "0.68009645", "text": "stop() {\r\n this.intervalId && clearInterval(this.timeoutId);\r\n }", "title": "" }, { "docid": "897ab0e8998947e56129b8d497098f89", "score": "0.67998505", "text": "function stopTimer() {\n\tclearInterval(intervalID);\n}", "title": "" }, { "docid": "3cc85e515b5310274869a9e1d676f998", "score": "0.678047", "text": "function stopClock(){\n clearInterval(interval);\n}", "title": "" }, { "docid": "2a3701692aca73dd74e71155a96e8300", "score": "0.67729974", "text": "function stop () {\n if (timer) {\n clearTimeout(timer)\n timer = undefined\n }\n\n started = false\n }", "title": "" }, { "docid": "ff1e019e85c1ca05f2022fbe5d21f651", "score": "0.6760709", "text": "stop() {\n clearTimeout(this.interval)\n }", "title": "" }, { "docid": "7dc786f6fa6f06d128c4afa4d76f50c6", "score": "0.67539954", "text": "stopTimer () {\n this.setState({startTime: null});\n if (this.props.loop) {\n this.startTimer();\n }\n }", "title": "" }, { "docid": "2942a70551680d0910c3348c676757a7", "score": "0.67494327", "text": "Stop() {}", "title": "" }, { "docid": "bd842a165d091a816a1f2912c28a5fff", "score": "0.6737284", "text": "function stopTimer() {\n // toggle\n setMode();\n\n // stop timeout service\n $timeout.cancel(tmPromise);\n\n // add to history\n\n $scope.timeSchedule.history.push([timeStart,\n timeEnd,\n (timeEnd - timeStart) / 1000\n ]);\n console.log(\"time start= \", timeStart);\n console.log(\"time end= \", timeEnd);\n var i = 0;\n console.log(\"History \", $scope.timeSchedule.history[i]);\n i++;\n // console.log(\"number: \")\n console.log(\"sdfasd\", $scope.timeSchedule.history);\n clockinSrvc.addDuration($scope.timeSchedule.history);\n }", "title": "" }, { "docid": "a85354c82041195843f5382d1bb42846", "score": "0.6733922", "text": "function endTimer() {\n\t\tclearInterval(t);\n\t\tdocument.getElementById('alarm').play();\n\t\t//Plays alarm and starts next job after 6 seconds\n\t\tsetTimeout(function(){\n\t\t\tif(isBreak) {;\n\t\t\t\tdocument.getElementById('title').innerHTML = \"Back to Work!\";\n\t\t\t\tisBreak = false;\n\t\t\t\tstartTimer();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdocument.getElementById('title').innerHTML = \"Break Time!\";\n\t\t\t\tisBreak = true;\n\t\t\t\tstartBreak();\n\t\t}\n\t\t}, 6000);\n\t}", "title": "" }, { "docid": "6eb8ac0e4fd0d30c79170dad40b8bad2", "score": "0.6733546", "text": "endTimer(){\n this.duration = 0; \n }", "title": "" }, { "docid": "67e6020cabb4d95e80bd288896218c7e", "score": "0.67217636", "text": "function stopStopwatch() {\n clearInterval(interval);\n}", "title": "" }, { "docid": "9f5e789a36e24c47a03590c62ada7b74", "score": "0.6718321", "text": "function stopClock() {\n clearInterval(clockId);\n}", "title": "" }, { "docid": "a6a89eadacfc03fb4f87e385d349fbc6", "score": "0.6714532", "text": "stop() {\n if ( this.isRunningProperty.value ) {\n stepTimer.clearInterval( this.intervalId );\n this.intervalId = null;\n this.isRunningProperty.value = false;\n }\n }", "title": "" }, { "docid": "1d96b9b3c77878b2855414157b516a31", "score": "0.67127615", "text": "function _timerStop(){\n if(_timerID !== undefined){\n\n // garbage collection\n clearInterval(_timerID);\n \n // this lets us know we need a new one\n _timerID = undefined;\n }\n}", "title": "" }, { "docid": "dae31e18b95ee259fb2867bcc07ee5f4", "score": "0.6704681", "text": "function stopClock() {\n clearInterval(gameTimer);\n}", "title": "" }, { "docid": "308237b2c487ff512286523b7c2a77be", "score": "0.66985416", "text": "function stopTimer() {\n clearInterval(meditationTimer);\n currentTime = 0;\n meditationProgress = 0;\n progress = 0;\n status = startStopButton.dataset.status = \"stopped\";\n startStopButton.getAttribute(\"data-status\");\n startStopBtnIcon.classList.remove(\"fa-pause\");\n startStopBtnIcon.classList.add(\"fa-play\");\n}", "title": "" }, { "docid": "0df321e67d1998e2e015ab788f24febc", "score": "0.66964626", "text": "[_stopTimer]() {\n if (this[_timer] !== null) {\n clearTimeout(this[_timer]);\n }\n\n this[_timer] = null;\n }", "title": "" }, { "docid": "a4a7cf2576fcb5c1bb1b963bc511317a", "score": "0.6686953", "text": "function stop() {\n clearInterval(hola);\n }", "title": "" }, { "docid": "a36fffbda0cea65806ea8697bb3d0d4b", "score": "0.6684848", "text": "function stopTimer() {\n //Removes the current timer:\n clearInterval(secTimer);\n //Set timer count to 0:\n secTimer = 0;\n}", "title": "" }, { "docid": "0030d02088ab084b516ddf9214d1e7f6", "score": "0.6657691", "text": "stop() {\n window.clearInterval(this._intervalId);\n }", "title": "" }, { "docid": "dc49d9eb76bf7836ee1861181363bc45", "score": "0.6655698", "text": "function stop(index) {\n clearInterval(timeEnd[index]);\n run[index] = true;\n timer(index);\n}", "title": "" }, { "docid": "86d92e483f11e7d705d50854a0201831", "score": "0.6649331", "text": "stop() {\n if (!this.isRun) {\n clearInterval(this.contador);\n this.minutos = 0;\n this.segundos = 0;\n this.centesimas = 0;\n this._centesimas = '00';\n this._segundos = '00';\n this._minutos = '00';\n this.estado = 'play';\n this.isRun = false;\n this.contador = null;\n }\n }", "title": "" }, { "docid": "847cbde42b8b6967d261373e1baf0e69", "score": "0.6643081", "text": "stop() {\r\n this.running = false;\r\n }", "title": "" }, { "docid": "fb70ce1992660332e019b5e5651123a5", "score": "0.6639536", "text": "function endTimer(timer) {\n window.clearTimeout(timer);\n}", "title": "" }, { "docid": "28db8fff666d132d45bcdb096c8360a7", "score": "0.6632863", "text": "cancel () {\n const timer = this.get('timer')\n run.cancel(timer)\n }", "title": "" }, { "docid": "d676fe4070e48e1883a3427c89274a2c", "score": "0.66309655", "text": "function stop()\n{\n clearTimeout(intervalId);\n}", "title": "" }, { "docid": "758b79d2c755e9502ed005830883f9eb", "score": "0.6629689", "text": "function stop() {\n clearInterval(timeInter);\n}", "title": "" }, { "docid": "afbc21223129773b119239308f5b94f8", "score": "0.6611233", "text": "function stop() {\n\t\t \tclearInterval(intervalId);\n \t\t\t}", "title": "" }, { "docid": "2bc63ddebfbe1ffc0dcdc062fbd55172", "score": "0.66087985", "text": "function stopClock() {\n clearInterval(clockID);\n}", "title": "" }, { "docid": "5b8475508dd8caf8926423bee81a6d9f", "score": "0.6608007", "text": "function stopTheTimer() {\n clearInterval(timerIntervalNumber);\n console.log('Score Panel Timer: Disabled');\n}", "title": "" }, { "docid": "28a53d539324aa455057bd58b11934b5", "score": "0.6605327", "text": "function stop(){\n go = 1;\n timeout = '';\n}", "title": "" }, { "docid": "024fad9c841f1e100352a8d618e055ff", "score": "0.66000825", "text": "function stop() {\r\n if (isOn) {\r\n sstartstop.textContent = \"Start\"\r\n isOn = false;\r\n clearInterval(t);\r\n watch.textContent = \"00 : 00 : 00 : 00\";\r\n milliseconds = 0; seconds = 0; minutes = 0; hours = 0;\r\n }\r\n}", "title": "" }, { "docid": "6051fac8a2d5689fce3190ca08e1be28", "score": "0.65978074", "text": "stop() {\n this._elapsed = Date.now() - this._start_time\n }", "title": "" }, { "docid": "fba6e1869082b1554d3232e8d64c83a9", "score": "0.6595988", "text": "function stopTimer() {\n if (interval != null) {\n clearInterval(interval);\n }\n}", "title": "" }, { "docid": "fa56c004f3ec473a06d96efff2b70ad8", "score": "0.65851164", "text": "function cancelTimer() {\n console.log(\"cancelTimer\");\n clearInterval(secondsTimer);\n }", "title": "" }, { "docid": "e879d1e4219927b7f571331a8be49c32", "score": "0.65814394", "text": "function resetTimer(stop) {\n //clear timer\n window.clearInterval(timer);\n }", "title": "" }, { "docid": "e2701e8040f5e55b1cc9f9eb55855e7d", "score": "0.6581323", "text": "function stopCountdown(){\n clearInterval(action);\n}", "title": "" }, { "docid": "8fecd955bfff34a71737cca10b0a65b2", "score": "0.6576941", "text": "stop() {\n if (!this._vars.isRunning) return;\n\n this._vars.isRunning = false;\n\n cancelRequestAnimFrame(this._raf);\n\n delete this._vars.now;\n delete this._vars.then;\n }", "title": "" }, { "docid": "4c0b056ae44db05aa590c093f3641566", "score": "0.6563277", "text": "function stopTime() {\n gameSeconds = 0;\n clearInterval(interval);\n}", "title": "" }, { "docid": "3ad5feacf3c4413fb9ce2532ab0303ff", "score": "0.6562128", "text": "_stop() {\n clearInterval(this._interval);\n this._interval = null;\n }", "title": "" }, { "docid": "b8d8223b6389bdc96cf02f68ca73bd2a", "score": "0.6560218", "text": "function stopSnowFlakes() {\n clearInterval(snowFlakeInterval);\n}", "title": "" } ]
c5b12adb654cf4894f0460a356288625
endregion GAME STATE CONTROLS region
[ { "docid": "c6afbfeb4457da89e1b69d90276841f8", "score": "0.0", "text": "function endGame() {\n gameOver = true;\n endModal.classList.remove(\"hidden\");\n endModal.classList.add(\"visible\");\n}", "title": "" } ]
[ { "docid": "cc1984ddd2596ec8fa1fb3dcdba1c8ab", "score": "0.7395297", "text": "function _IG_game_state() {\n this.cur_puz = 0;\n }", "title": "" }, { "docid": "bcde35103166543bc55bb6f68d9c47cf", "score": "0.7254057", "text": "stateManager() {\n switch (this.state) {\n case 0:\n \n break;\n\n case 1:\n this.setSprite();\n break;\n\n case 2:\n // this.setSprite();\n break;\n\n case 3:\n this.overlapCheck();\n break;\n }\n }", "title": "" }, { "docid": "912f8bb6abcc285637a9452606e0680b", "score": "0.69285953", "text": "function GameState() {\n console.log(\"In GameState's constructor\");\n // are these gonna be private? What about 'this?'\n this.on = false;\n this.running = false;\n this.strict = false;\n this.count = undefined; // I think. Or should it be '--'?\n // we don't bother putting the game sequence array in\n // until the game actually starts\n }", "title": "" }, { "docid": "97980bdcf04cf073ba51b7cb4e773db3", "score": "0.69115835", "text": "function Game () {\n\n var me = this,\n eventAggregator = BGo.EventAggregator.createNew();\n/* trigger,\n togglePlayerTurn,\n gameState = GameState.BlackToPlay; */\n\n\n\n me.validateMove = function (index) {\n\n var event = BGo.Events.Play;\n eventAggregator.validate(event);\n\n }\n\n me.playMove = function (index) {\n\n var event = BGo.Events.Play;\n eventAggregator.validate(event);\n eventAggregator.raise(event);\n\n };\n\n me.pass = function () {\n\n var event = BGo.Events.Pass;\n eventAggregator.validate(event);\n eventAggregator.raise(event);\n\n }\n\n me.playMode = function () {\n\n var event = BGo.Events.PlayMode;\n eventAggregator.validate(event);\n eventAggregator.raise(event)\n\n }\n\n me.reviewMode = function () {\n\n var event = BGo.Events.ReviewMode;\n eventAggregator.validate(event);\n eventAggregator.raise(event)\n\n }\n\n /*\n // TODO: Move to a rule.\n var GameState = {}, IntersectionState = {};\n\n GameState.BlackToPlay = 'blackToPlay';\n GameState.WhiteToPlay = 'whiteToPlay';\n IntersectionState.Black = 'black';\n IntersectionState.White = 'white';\n IntersectionState.Empty = '';\n\n BGo.Intersection = function () {\n var me = this;\n\n me.state = IntersectionState.Empty;\n\n return me;\n }\n\n BGo.BoardState = function (boardSize) {\n var me = this, i, j;\n\n me.intersection = [];\n\n for (i = 0; i < boardSize; i = i + 1) {\n for (j = 0; j < boardSize; j = j + 1) {\n me.intersection.push(new BGo.Intersection());\n }\n }\n\n return me;\n }\n\n // TODO: Move to a rule.\n var intersection = boardState.intersection[index];\n if (intersection.state !== IntersectionState.Empty)\n {\n me.raiseEvent(BGo.Events.CannotPlayOnAnotherStone, [ index ]);\n return;\n }\n\n // TODO: Move to a rule.\n if (gameState === GameState.BlackToPlay) {\n intersection.state = IntersectionState.Black;\n me.raiseEvent(BGo.Events.BlackStonePlayed, [ index ]);\n } else {\n intersection.state = IntersectionState.White;\n me.raiseEvent(BGo.Events.WhiteStonePlayed, [ index ]);\n }\n\n // TODO: Move to a rule.\n togglePlayerTurn(); */\n\n /*\n // TODO: Move to a rule.\n me.supportEvent(BGo.Events.BlackStonePlayed);\n me.supportEvent(BGo.Events.WhiteStonePlayed);\n me.supportEvent(BGo.Events.CannotPlayOnAnotherStone);\n\n // TODO: Move to a rule.\n togglePlayerTurn = function () {\n if (gameState === GameState.BlackToPlay) {\n gameState = GameState.WhiteToPlay;\n } else {\n gameState = GameState.BlackToPlay;\n }\n }; */\n\n return me;\n }", "title": "" }, { "docid": "b3c926a7533586468ee7cfd318089c4e", "score": "0.69092864", "text": "function GameOverState() {\n \n}", "title": "" }, { "docid": "8644a12a64038879f96d744951a00b7d", "score": "0.6895977", "text": "function GameState() {\n 'use strict';\n var AIPlayerID = 0,\n OppPlayerID = 1,\n turnPlayer = 0,\n phase = 0,\n state = {\n 0: {\n Lifepoints : 8000,\n MonsterZones: [],\n SpellTrapZones: [],\n Graveyard: [],\n Banished: [],\n Hand: [],\n ExtraDeck: [],\n MainDeck: []\n },\n 1: {\n LifePoints: 8000,\n MonsterZones: [],\n SpellTrapZones: [],\n Graveyard: [],\n Banished: [],\n Hand: [],\n ExtraDeck: [],\n MainDeck: []\n }\n };\n \n function start(lp1, lp2, OneDeck, TwoDeck, OneExtra, TwoExtra) {\n// game.DOMWriter(OneDeck, 'DECK', 0);\n// game.DOMWriter(TwoDeck, 'DECK', 1);\n// game.DOMWriter(OneExtra, 'EXTRA', 0);\n// game.DOMWriter(TwoExtra, 'EXTRA', 1);\n\n state[0].LifePoints = lp1;\n state[1].LifePoints = lp2;\n }\n\n function update(player, clocation, index, data) {\n if (index !== 'mass') {\n state[player][clocation] = data;\n } else {\n state[player][clocation][index] = data;\n }\n }\n \n function updateLifepoints(player, multiplier, lp) {\n var lifepoints = +state[player].Lifepoints + (lp * multiplier);\n if (lifepoints < 0) {\n lifepoints = 0;\n }\n state[player].Lifepoints = lifepoints;\n }\n \n function move(player, clocation, index, moveplayer, movelocation, movezone, moveposition, overlayindex, isBecomingCard) {\n\n //enums.locations[clocation] === 'DECK/EXTRA/REMOVED\n state[moveplayer][movelocation][moveposition] = state[player][clocation][index];\n state[player][clocation][index] = undefined;\n //if grave\n //if banished\n //if hand\n //if extraDeck\n //if maindeck\n //if above, reshuffle;\n state[player][clocation] = state[player][clocation].filter(function (element) {\n return element !== undefined;\n });\n \n \n return;\n }\n \n function newphase(turnx) {\n turnx = +state.phase;\n }\n \n function setAI_Opp(newID) {\n AIPlayerID = newID;\n OppPlayerID = (AIPlayerID === 0) ? 1 : 0;\n }\n \n function loadDeck(player, deck, cardList) {\n\n }\n return {\n move: move,\n update: update,\n loadDeck: loadDeck,\n setAI_Opp: setAI_Opp,\n GetOppMonsterZones: function () {\n return state[OppPlayerID].MonsterZones;\n },\n GetAIMonsterZones: function () {\n return state[AIPlayerID].MonsterZones;\n },\n GetOppSpellTrapZones: function () {\n return state[OppPlayerID].SpellTrapZones;\n },\n\n GetAISpellTrapZones: function () {\n return state[AIPlayerID].SpellTrapZones;\n },\n GetOppGraveyard: function () {\n return state[OppPlayerID].Graveyard;\n },\n GetAIGraveyard: function () {\n return state[AIPlayerID].Graveyard;\n },\n GetOppBanished: function () {\n return state[OppPlayerID].Banished;\n },\n GetAIBanished: function () {\n return state[AIPlayerID].Banished;\n },\n GetOppHand: function () {\n return state[OppPlayerID].Hand;\n },\n GetAIHand: function () {\n return state[AIPlayerID].Hand;\n },\n GetOppExtraDeck: function () {\n return state[OppPlayerID].ExtraDeck;\n },\n GetAIExtraDeck: function () {\n return state[AIPlayerID].ExtraDeck;\n },\n GetOppMainDeck: function () {\n return state[OppPlayerID].MainDeck;\n },\n GetAIMainDeck: function () {\n return state[AIPlayerID].MainDeck;\n }\n };\n\n}", "title": "" }, { "docid": "257ef892d7fe6d504622cfd6998a5bfd", "score": "0.68804413", "text": "function GameState()\n{\n\tthis.static_players = [];\n\tthis.players = [];\n\tthis.x_ids = [];\n\tthis.d_ids = [];\n\tthis.player_ids = [];\n\tthis.graph = null;\n\tthis.using_double_move = false;\n\tthis.using_secret_move = false;\n\tthis.double_move_turns = 0;\n\tthis.is_game_over = false;\n\tthis.current_player;\n\n\tthis.all_moves = [];\n\tthis.player_history = {};\n}", "title": "" }, { "docid": "4a5c1337fe89c6887dcd83109a42e104", "score": "0.6844166", "text": "function draw() {\n background(0, 0, 0, 150);\n\n ////// NEW //////\n console.log(state);\n switch (state) {\n\n case \"TITLE\":\n displayTitle();\n break;\n\n case \"GAME\":\n displayGame();\n break;\n\n case \"GAME OVER\":\n displayGameOver();\n break;\n }\n ////// NEW END //////\n\n}", "title": "" }, { "docid": "1404bbafd34fa88fda9cb91528ba2af5", "score": "0.6777759", "text": "function GameOverState()\r\n{\r\n\r\n}", "title": "" }, { "docid": "cf5f963f1bee0d4f31e2e8256fd24529", "score": "0.67646146", "text": "function handle_gamestate(state) {\r\n for (var ent_id in state.state.ents) {\r\n new_gamestate.ents[ent_id] = state.state.ents[ent_id];\r\n }\r\n new_gamestate.draw_frame = draw_frame_number + DRAWS_PER_TURN;\r\n game_frame_number = state.frame;\r\n}", "title": "" }, { "docid": "4720304d60ea59a921e47c30a84d642e", "score": "0.6761225", "text": "function gameOver(){\n setGameState(gamestates.gameover);\n}", "title": "" }, { "docid": "1d3c763649883e5bd828e221a32ac5d6", "score": "0.67564154", "text": "function initGame() {\r\n // gStates = [];\r\n renderScore(gLevelName);\r\n gGameFinished = false;\r\n gIsManual = false;\r\n gIsPlacedMines = false;\r\n buildBoard();\r\n // addState();\r\n renderBoard(gBoard);\r\n}", "title": "" }, { "docid": "a795d27f79e506bd28f42fd0d025f191", "score": "0.6753729", "text": "addGameStates() {\n game.state.add('GameMenu', GameMenu);\n game.state.add('TheGame', TheGame);\n game.state.add('GameOver', GameOver);\n game.state.add('Credits', Credits);\n game.state.add('Options', Options);\n }", "title": "" }, { "docid": "376df51b2caafdffd85f1a4ead09212c", "score": "0.6748566", "text": "getGameState() {\r\n return this.state\r\n }", "title": "" }, { "docid": "c1dd02e834e12631ce25242795f506b4", "score": "0.6654466", "text": "function stateBuddha(){\n if(state === 0){\n homeScreen();\n }\n else if(state === 1){\n demoGame();\n }\n else if(state === 2){\n simpleDiceGame();\n }\n}", "title": "" }, { "docid": "cb7de5d215b32f198a430111740ec2b8", "score": "0.6650965", "text": "function MoveState() {}", "title": "" }, { "docid": "9d6765c5a92b53e6c67b73090a131552", "score": "0.6607511", "text": "function goGame() {\n setGameState(\"game\");\n }", "title": "" }, { "docid": "120669438618e29f63ba8aba2b5570f1", "score": "0.66037875", "text": "function playState() {\r // asteroid update\r asteroids.forEach((asteroid) => {\r asteroid.update()\r })\r\r // bullet update\r bullets.forEach((bullet) => {\r const isDestroyed = bullet.update()\r\r // check for collision with asteroids\r if (!isDestroyed) {\r for (let i = 0; i < asteroids.length; i++) {\r if(circleCollidesRect(bullet, asteroids[i])) {\r // dereference and destroy asteroid\r asteroids[i].destroy()\r asteroids.splice(i, 1)\r\r // destroy bullet\r bullet.removeItself()\r break\r }\r }\r }\r })\r\r // player update\r player.update(app.ticker.deltaMS)\r\r // time left\r timeLeft -= app.ticker.deltaMS\r // update UI\r timeLeftUI.text = 'Time: ' + Math.floor(timeLeft / 1000)\r\r // check win conditions\r checkWinConditions()\r}", "title": "" }, { "docid": "361441e1cc06537d958f31c59d7e979c", "score": "0.65674555", "text": "function GameState(updateProc, drawProc, keyDown, keyUp, enter, leave) {\n this.updateProc = updateProc;\n this.drawProc = drawProc;\n this.keyDown = keyDown;\n this.keyUp = keyUp;\n this.enter = enter;\n this.leave = leave;\n}", "title": "" }, { "docid": "ad74cccea63cd5c351b141c7e598ba47", "score": "0.6550336", "text": "function subStateLevelManager() {\r\n\r\n switch (subState) {\r\n case 0:\r\n // GOTO quiz1\r\n subState = 1;\r\n this.game.state.start(\"quiz1\");\r\n break;\r\n case 1:\r\n // GOTO game subState 2\r\n subState = 2;\r\n this.game.state.start(\"TheGame\");\r\n break;\r\n case 2:\r\n // GOTO quiz2\r\n console.log(\"hello from case:2\");\r\n subState = 3;\r\n this.game.state.start(\"quiz1\");\r\n break;\r\n case 3:\r\n // GOTO game subState 4\r\n console.log(subState + \" subState. \" + \" case: 3\");\r\n subState = 4;\r\n this.game.state.start(\"TheGame\");\r\n break;\r\n\r\n case 4:\r\n subState = 5;\r\n this.game.state.start(\"quiz1\");\r\n break;\r\n\r\n case 5:\r\n subState = 0;\r\n // send to certificate page.\r\n window.location.href = \"addStats.php\";\r\n\r\n default:\r\n subState = 0;\r\n this.game.state.start(\"GameTitle\");\r\n }\r\n}", "title": "" }, { "docid": "5c8cb444f057844a6cab015366cbaf34", "score": "0.6545075", "text": "restartState() {\n this.game.entities = [];\n PARAMS.PLAY = false;\n PARAMS.START = false;\n PARAMS.CONTROLS = false;\n PARAMS.GAMEOVER = false;\n PARAMS.PAUSE = false;\n PARAMS.SOULS = 0;\n PARAMS.XSPAWN = 0;\n PARAMS.YSPAWN = 0;\n this.title = true;\n this.count = 0;\n this.loadLevelOne();\n }", "title": "" }, { "docid": "b1b2edd7a05894bed26de0d5cf175a07", "score": "0.6523207", "text": "function State(){\n\t\n}", "title": "" }, { "docid": "242742910780a992fb7286e90f62f9d5", "score": "0.65199", "text": "function changeState(state) {\n stateChanged = false;\n switch (state) {\n case constants.MENU_STATE:\n // Instantiate Menu State\n menu = new states.Menu();\n currentStateFunction = menu;\n break;\n case constants.PLAY_STATE:\n // Instantiate Play State\n play = new states.Play();\n currentStateFunction = play;\n break;\n case constants.PLAY_STATE_2:\n // Instantiate Play State\n play2 = new states.Play2();\n currentStateFunction = play2;\n break;\n case constants.PLAY_STATE_3:\n // Instantiate Play State\n play3 = new states.Play3();\n currentStateFunction = play3;\n break;\n case constants.PLAY_STATE_4:\n // Instantiate Play State\n play4 = new states.Play4();\n currentStateFunction = play4;\n break;\n case constants.GAME_OVER_STATE:\n // Instantiate Game Over State\n gameOver = new states.GameOver();\n currentStateFunction = gameOver;\n break;\n case constants.INSTRUCTIONS_STATE:\n // Instantiate Game Over State\n instructions = new states.Instuctions();\n currentStateFunction = instructions;\n break;\n }\n} //function changeState ends", "title": "" }, { "docid": "765b08499eae559582d1010b433407d1", "score": "0.65141624", "text": "getGameState() {\n return {board: this.board, \n score: this.score, \n won: this.won, \n over: this.over };\n }", "title": "" }, { "docid": "59ee93e4fe5fc0d0756cfb47a2151092", "score": "0.6513732", "text": "function getGameState() {\n return gameState;\n }", "title": "" }, { "docid": "28bf48afa1cdcec585b8abf95da06c66", "score": "0.6506763", "text": "function initStates(){\n\n states = new Array;\n \n /*\tg0\t*/\n st_n = \"g0\";\n states[ st_n] = new state;\n states[ st_n].onErrorScenario = \"right\";\n states[ st_n].z = 3;\n \n //scenario right\n states[ st_n ].scenarios[\"right\"] = new scenario;\n with (states[ st_n ].scenarios[\"right\"]) {\n\trandom_delay = 20;\nsteps[0] = new step(st_n,\"Animation9.gif\", -2,0, 2);\nsteps[1] = new step(st_n,\"Animation9.gif\", -2, 0, 2);\n\tnext_scenarios[0] = new next_scenario(\"right\",10);\n\tnext_states[0] = new next_state(\"g0\", \"right\", 99);\n\tonright_next_states[0] = new next_state(\"g0\", \"left\", 49);\n }\n\t\n //scenario left\n states[st_n].scenarios[\"left\"]=new scenario;\nwith(states[st_n].scenarios[\"left\"]){\nrandom_delay=20;\nsteps[0] = new step(st_n,\"AnimationGrR.gif\", 0,0, 2);\nsteps[1] = new step(st_n,\"AnimationGrR.gif\", 0, 0, 2);\nnext_scenarios[0] = new next_scenario(\"left\", 10);\n\tnext_states[0] = new next_state(\"b0\", \"left\", 10);\n next_states[0] = new next_state(\"b0\", \"left\", 10);\n\tonleft_next_states[0] = new next_state(\"g0\", \"waitleft\", 40);\n }\n \t\n \n checkStatus(\"g0\",\"\"); \n \n}", "title": "" }, { "docid": "dd3773a1b75ad001aaaeeabe414a93aa", "score": "0.64663815", "text": "function state0(){}", "title": "" }, { "docid": "c39237cc9279eebb5ee11de6a6904084", "score": "0.6461672", "text": "function buildGame(gameState) {\n\n}", "title": "" }, { "docid": "8548c03d99f6e57ae245116fd2a8c0a5", "score": "0.6457409", "text": "function draw() {\n\n switch(state) {\n case \"INTRO\":\n //gameTitles();\n gameIntro();\n break;\n case \"ACTIVE\":\n gameActive();\n break;\n case \"OVER\":\n gameOver();\n break;\n }\n}", "title": "" }, { "docid": "155f00c40223734459efe4f0c76983d0", "score": "0.64391226", "text": "loadGame(gameState){\n this.board = gameState.board;\n this.score = gameState.score;\n this.won = gameState.won;\n this.over = gameState.over;\n }", "title": "" }, { "docid": "748b1a3d9dfa6a5e88124a16c0841414", "score": "0.64323574", "text": "function vm_set_player_state(state)\n{\n vm_player_state = state\n\n switch (state) {\n case 'playing':\n $('#btn_vm_stop').toggleClass('disabled', false);\n $('#btn_vm_rewind').toggleClass('disabled', false);\n $('#btn_vm_ffwd').toggleClass('disabled', false);\n $('#btn_vm_play').toggleClass('disabled', false);\n\n $('#btn_vm_play img').addClass('icon16-pause');\n $('#btn_vm_play img').removeClass('icon16-play');\n break;\n\n case 'paused':\n $('#btn_vm_stop').toggleClass('disabled', false);\n $('#btn_vm_rewind').toggleClass('disabled', false);\n $('#btn_vm_ffwd').toggleClass('disabled', false);\n $('#btn_vm_play').toggleClass('disabled', false);\n\n $('#btn_vm_play img').addClass('icon16-play');\n $('#btn_vm_play img').removeClass('icon16-pause');\n break;\n\n default:\n $('#btn_vm_stop').toggleClass('disabled', true);\n $('#btn_vm_rewind').toggleClass('disabled', true);\n $('#btn_vm_ffwd').toggleClass('disabled', true);\n $('#btn_vm_play').toggleClass('disabled', false);\n\n $('#vm_time_cursor').text('--:--');\n $('#vm_time_total').text('--:--');\n\n $('#btn_vm_play img').addClass('icon16-play');\n $('#btn_vm_play img').removeClass('icon16-pause');\n break;\n }\n}", "title": "" }, { "docid": "67ab961246c78ad804eb0233a7293fce", "score": "0.6424615", "text": "getState() {\n var gameStateRef = database.ref('gameState');\n gameStateRef.on(\"value\", function (data) {\n gameState = data.val();\n });\n if (gameState === 1) {\n clear();\n text(\"Try playing again later... Player limit has reached. Oher players are playing.\", 10, 300);\n }\n }", "title": "" }, { "docid": "7ae32ae6de7e25da98bff4e8b9054830", "score": "0.64226127", "text": "function setStates() {\t\t\n\t\tdocument.addEventListener(\"keydown\", move);\n\n\t\tcurrent_score = 0;\n\t\t// creates a player\n\t\tmakeElement(start.x, start.y, \"player\", \"blue\", SIZE);\n\t\tsnake_size.push({\n\t\t\tmyX: start.x,\n\t\t\tmyY: start.y\n\t\t})\n\t\tstartTime();\n\t}", "title": "" }, { "docid": "bd777693e5ec198fa440866134615ec2", "score": "0.641003", "text": "function draw() {\n\n switch (state) {\n case \"INTRO\":\n break;\n case \"ACTIVE\":\n playGame();\n break;\n case \"OVER\":\n showGameOver();\n break;\n default:\n break;\n }\n\n}", "title": "" }, { "docid": "6856d944ca4d57a3c399eb4243d52bf7", "score": "0.6400102", "text": "function processGameStates() {\r\n\t\r\n console.log(\"Executing \" + (currentGameState +1));\r\n\tif(currentGameState+1 > dominiumGame.gameState.length - 1){\r\n\t\tif(dominiumGame.isGameOver){\r\n\t\t\tconsole.log(\"Game is over\");\r\n\t\t\tstopFollowing();\r\n \tsetWinner(dominiumGame);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tconsole.log(\"Game is not over, requesting next GS\");\r\n\t\t\tgetNextGameState();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\tcurrentGameState++;\r\n\tconsole.log(\"I have it, running the GS\");\r\n\r\n var gamestate = dominiumGame.gameState[currentGameState];\r\n updateState(gamestate);\r\n\r\n var dataAux = createAuxData(gamestate);\r\n animationData.startTime = (new Date()).getTime();\r\n\r\n animationData.nextCallback = function() {\r\n moveIteration(gamestate, dataAux);\r\n };\r\n animationData.animationLoop = window.requestAnimationFrame(animationData.nextCallback);\r\n}", "title": "" }, { "docid": "928b0c75a046ccf648dd8fe86cdaff3b", "score": "0.6398245", "text": "function controlState(state) {\n\tfor(var i = stage.children.length - 1; i >= 0; i--){\n\t\tstage.removeChild(stage.children[i]);\n\t}\n\n\tgameState = state;\n\t\n\tif(money === 0 && bet === 0 && gameState != \"gameOver\"){\n\t\t\tcontrolState(\"gameOver\");\n\t\t}\n\t\t\n\tif(gameState === \"start\") {\n\t\n\t\tif(deck.cards.length <= 10) {\n\t\t\tdeck.cards = deck.cards.concat(discard);\n\t\t\tdeck.shuffle();\n\t\t\tdeck.length = 52;\n\t\t\tdiscard = [];\n\t\t\tupdateDeck();\n\t\t\tupdateDiscard();\n\t\t}\n\t\tbetActive = false;\n\t\tstage.addChild(gameplayC);\n\n\t\tplaceBetButton.x = 380;\n\t\tplaceBetButton.y = 775;\n\n\t\tclearBetButton.x = 580;\n\t\tclearBetButton.y = 775;\n\t\t\n\t\t\n\t\tplus1.visible = true;\n\t\tplus5.visible = true;\n\t\tplus10.visible = true;\n\n\n\t\tbuttonsC.addChild(placeBetButton);\n\t\tbuttonsC.addChild(clearBetButton);\n\t}\n\t\n\telse if(gameState === \"newHand\") {\n\n\t\tfor(var i = buttonsC.children.length - 1; i >= 0; i--){\n\t\t\tbuttonsC.removeChild(buttonsC.children[i]);\n\t}\n\t\tstage.addChild(gameplayC);\n\t\tplus1.visible = false;\n\t\tplus5.visible = false;\n\t\tplus10.visible = false;\n\t\tdeck.dealHand();\n\t\tsetTimeout( function() { controlState('2cards') }, 2000);\n\n\t}\n\t\n\telse if(gameState === \"2cards\") {\n\t\tstage.addChild(gameplayC);\n\n\t\tvar playerscore = 0;\n\t\tvar dealerscore = 0;\n\t\tvar playerBJ = false;\n\t\tvar dealerBJ = false;\n\n\t\tfor(var i = 0; i < playerC.children.length; i++) {\n\t\t\tplayerscore += playerC.children[i].value;\n\t\t}\n\n\t\tfor(var j = 0; j < dealerC.children.length; j++) {\n\t\t\tdealerscore += dealerC.children[j].value;\n\t\t}\n\t\tif(playerscore === 11) {\n\t\t\tfor(var i = 0; i < playerC.children.length; i++ ) {\n\t\t\t\tif(playerC.children[i].name === \"Ace\") {\n\t\t\t\t\tplayerBJ = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(dealerscore === 11) {\n\t\t\tfor(var i = 0; i < dealerC.children.length; i++ ) {\n\t\t\t\tif(dealerC.children[i].name === \"Ace\") {\n\t\t\t\t\tdealerBJ = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(dealerBJ && playerBJ) {\n\t\t\n\t\t\tdealerC.children[1].texture = dealerC.children[1].frontTexture;\n\t\t\tdealerHidden = false;\n\t\t\t\n\t\t\tsetTimeout( function() {\n\t\t\t\tmoney += bet;\n\t\t\t\tbet = 0;\n\t\t\t\tmoneyText.text = money;\n\t\t\t\tbetText.text = bet;\n\t\n\t\t\t\tdiscardHand('player');\n\t\t\t\tsetTimeout( function() {\n\t\t\t\t\tdiscardHand('dealer');\n\t\t\t\t\tcontrolState('start');\n\t\t\t\t\treturn;\n\t\t\t\t}, 500 * playerC.children.length); }, 1000 )\n\t\t}\n\t\t\n\t\telse if(!dealerBJ && playerBJ) {\n\t\t\t\n\t\t\tdealerC.children[1].texture = dealerC.children[1].frontTexture;\n\t\t\tdealerHidden = false;\n\t\t\tsetTimeout( function() {\n\t\t\t\tmoney += Math.floor(bet * 2.5);\n\t\t\t\tbet = 0;\n\t\t\t\tmoneyText.text = money;\n\t\t\t\tbetText.text = bet;\n\t\n\t\t\t\tdiscardHand('player');\n\t\t\t\tsetTimeout( function() {\n\t\t\t\t\tdiscardHand('dealer');\n\t\t\t\t\tcontrolState('start');\n\t\t\t\t\treturn;\n\t\t\t\t}, 500 * playerC.children.length); }, 1000 )\n\t\t}\n\t\t\n\t\telse if(dealerBJ && !playerBJ) {\n\t\t\tdealerC.children[1].texture = dealerC.children[1].frontTexture;\n\t\t\tdealerHidden = false;\n\t\t\tsetTimeout( function() {\n\t\t\t\tbet = 0;\n\t\t\t\tmoneyText.text = money;\n\t\t\t\tbetText.text = bet;\n\n\t\t\t\tdiscardHand('player');\n\t\t\t\tsetTimeout( function() {\n\t\t\t\t\tdiscardHand('dealer');\n\t\t\t\t\tcontrolState('start');\n\t\t\t\t}, 500 * playerC.children.length) }, 1000 )\n\t\t}\n\t\t\n\t\t\n\t\telse {\n\t\t\thitButton.position.x = 300;\n\t\t\thitButton.position.y = 770;\n\t\t\tstandButton.position.x = 450;\n\t\t\tstandButton.position.y = 770;\n\t\t\tdoubleButton.position.x = 600;\n\t\t\tdoubleButton.position.y = 770;\n\n\t\t\tbuttonsC.addChild(hitButton);\n\t\t\tbuttonsC.addChild(standButton);\n\t\t\tbuttonsC.addChild(doubleButton);\n\t\t}\n\t}\n\t\n\telse if(gameState === \"normalplay\") {\n\t\n\t\tfor(var i = buttonsC.children.length - 1; i >= 0; i--){\n\t\t\tbuttonsC.removeChild(buttonsC.children[i]);\n\t\t}\n\t\n\t\tstage.addChild(gameplayC);\n\t\t\n\t\tvar playerscore = 0;\n\t\tvar dealerscore = 0;\n\n\t\tfor(var i = 0; i < playerC.children.length; i++) {\n\t\t\tplayerscore += playerC.children[i].value;\n\t\t}\n\n\t\tfor(var j = 0; j < dealerC.children.length; j++) {\n\t\t\tdealerscore += dealerC.children[j].value;\n\t\t}\n\t\t\n\t\tif(playerscore > 21) {\n\t\t\tbusted = true;\n\t\t\tdealerHidden = false;\n\t\t\tsetTimeout( function() { controlState('lose') }, 1000 );\n\t\t}\n\t\t\n\t\tif(playerscore < 22) {\n\t\t\tsetTimeout( function() {\n\t\t\t\tbuttonsC.addChild(hitButton);\n\t\t\t\tbuttonsC.addChild(standButton);\n\t\t\t\thitButton.x += 75;\n\t\t\t\tstandButton.x += 75; }, 500 );\n\t\t}\n\t}\n\t\n\telse if(gameState === \"lose\") {\n\t\tstage.addChild(gameplayC);\n\t\t\n\t\tfor(var i = buttonsC.children.length - 1; i >= 0; i--){\n\t\t\tbuttonsC.removeChild(buttonsC.children[i]);\n\t\t}\n\t\t\n\t\tbet = 0;\n\t\tmoneyText.text = money;\n\t\tbetText.text = bet;\n\t\t\n\n\t\tdiscardHand('player');\n\t\tbusted = false;\n\t\tsetTimeout( function() {\n\t\t\tdiscardHand('dealer');\n\t\t\tsetTimeout ( function() {\n\t\t\t\tcontrolState('start'); \n\t\t\t\t}, 1000 + (500 * dealerC.children.length) );\n\t\t}, 500 * playerC.children.length);\n\t}\n\t\n\telse if(gameState === \"dealerActions\") {\n\t\tdealerC.children[1].texture = dealerC.children[1].frontTexture;\n\t\tdealerHidden = false;\n\t\tstage.addChild(gameplayC);\n\t\t\n\t\tsetTimeout( function() {\n\t\n\t\t\n\t\t\tvar playerscore = 0;\n\t\t\tvar dealerscore = 0;\n\t\t\tvar i = 1;\n\n\t\t\tfor(var i = 0; i < playerC.children.length; i++) {\n\t\t\t\tplayerscore += playerC.children[i].value;\n\t\t\t}\n\t\n\t\t\tfor(var j = 0; j < dealerC.children.length; j++) {\n\t\t\t\tdealerscore += dealerC.children[j].value;\n\t\t\t}\n\t\t\n\t\t\tfinishDealerHand(dealerscore, playerscore);\n\t\t}, 1500);\n\t}\n\t\n\telse if (gameState === \"instructions\"){\n\t\tstage.addChild(instructionsC);\n\t}\n\t\n\telse if(gameState === \"menu\") {\n\t\tconsole.log(stage);\n\t\tstage.addChild(menuC);\n\t}\n\t\n\telse if(gameState === \"credits\") {\n\t\tstage.addChild(creditsC);\n\t}\n\t\n\telse if(gameState === \"gameOver\") {\n\t\tmoney = 100;\n\t\tmoneyText.text = money;\n\t\t\n\t\tvar instructionsButton = new Sprite(TextureFrame(\"instructions-button.png\" ) );\n\t\tvar backButton = new Sprite(TextureFrame(\"back-button.png\") );\n\t\t\n\t\tbackButton.anchor.x = MIDDLE;\n\t\tbackButton.anchor.y = MIDDLE;\n\t\tbackButton.x = 600;\n\t\tbackButton.y = 800;\n\t\tbackButton.interactive = true;\n\t\tbackButton.on('mousedown', function() { controlState('menu') } );\n\t\t\n\t\tinstructionsButton.x = 520;\n\t\tinstructionsButton.y = 700;\n\t\tinstructionsButton.interactive = true;\n\t\tinstructionsButton.on('mousedown', function() { instructionsC.addChild(backButton); controlState('instructions'); } );\n\t\t\n\t\t\n\t\t\n\t\tlosingC.addChild(instructionsButton);\n\t\t\n\t\tstage.addChild(losingC);\n\t}\n}", "title": "" }, { "docid": "6825d7e5a8ad3754b017a6ac177262d0", "score": "0.6397115", "text": "function State(game) {\n this.game = game;\n this.add = game.add;\n this.camera = game.camera;\n this.cache = game.cache;\n this.collision = game.collision;\n this.input = game.input;\n this.loader = game.loader;\n this.math = game.math;\n this.motion = game.motion;\n this.sound = game.sound;\n this.stage = game.stage;\n this.time = game.time;\n this.tweens = game.tweens;\n this.world = game.world;\n }", "title": "" }, { "docid": "695be063f07e668392093cc4acbdea5c", "score": "0.63870436", "text": "function checkState() {\n if (state === 1) {\n // CREATING A CHARACTER\n background(50);\n raceGroup(width*0.05, height*0.05, boxChoiceX, height*0.90);\n charClassGroup(width*0.65, height*0.05, boxChoiceX, height*0.90);\n chooseRace(width*0.05, height*0.05, boxChoiceX, boxChoiceY);\n chooseCharClass(width*0.65, height*0.05, boxChoiceX, boxChoiceY);\n continueButton(width*0.425, height*0.05, width*0.15, height*0.05);\n }\n\n else if (state === 2) {\n // chosing race and class for the player\n if (playerSprite.playerHasChosenRace === 0) {\n playerSprite.playerHasChosenRace = int(random(1, allRaces.length));\n }\n\n if (playerSprite.playerHasChosenClass === 0) {\n playerSprite.playerHasChosenClass = int(random(1, allCharClasses.length));\n }\n\n // moving to state 3\n state = 3;\n clear();\n\n // baddie tester\n createBaddie = new baddies(badGuy.sprite, badGuy.x, badGuy.y);\n }\n\n else if (state === 3) {\n if (!settingsIsOpen) {\n // PLAYING THE GAME\n\n // illusion of moving\n movingBackground();\n\n // miniMap display\n showMiniMap();\n\n // player\n playerShow(raceSprites, playerSprite.playerHasChosenRace);\n playerMovement();\n playerMap();\n\n\n // bad guys\n createBaddie.show(enviorment.xMin, enviorment.xMax - width + movementSpeed, enviorment.yMin, enviorment.yMax - height + movementSpeed,\n enviormentBack.xMin, enviormentBack.xMax, enviormentBack.yMin, enviormentBack.yMax);\n\n createBaddie.movement(movementSpeed*0.90, movementSpeed, enviorment.xMin, enviorment.yMin, enviorment.xMax, enviorment.yMax);\n\n createBaddie.mapping(miniMap.baddieDot,\n enviorment.xMin, enviorment.yMin, enviorment.xMax, enviorment.yMax,\n miniMap.x, miniMap.y, miniMap.xSize, miniMap.ySize);\n }\n\n else {\n // settings\n settingsMenu();\n }\n }\n}", "title": "" }, { "docid": "6a87b9cdaa787b3e79c3908f3a6a7a90", "score": "0.63855857", "text": "computeGameState() {\n // if still playing and have less than 1 remaining guesses, LOST\n if (this.gameState === PLAYING && this.remainingGuesses < 1) this.gameState = LOST;\n // if we haven't lost, check to see if we have WON\n if (this.computeWon() === true) this.gameState = WON; \n }", "title": "" }, { "docid": "3f065633410d4fd5ca8376d440edaac8", "score": "0.6385525", "text": "function StateManager(game) {\n this.game = game;\n }", "title": "" }, { "docid": "e70c8202fdf57a5f954355b8ccfdd819", "score": "0.63851964", "text": "checkGameState() {\r\n let alive = this._game.checkAlive()\r\n let won = this._game.checkWon()\r\n let gameState = document.getElementById('winning-state')\r\n let answerField = document.getElementById('word-answer')\r\n\r\n if (!alive) {\r\n answerField.innerText = this._word\r\n gameState.innerText = \"You lose\"\r\n answerField.classList.add('lose')\r\n gameState.classList.add('lose')\r\n this.nextUIState()\r\n }\r\n if (won) {\r\n answerField.innerText = this._word\r\n gameState.innerText = \"You win\"\r\n answerField.classList.add('win')\r\n gameState.classList.add('win')\r\n this.nextUIState()\r\n }\r\n }", "title": "" }, { "docid": "fa1fa03738bc04456a044999a724b533", "score": "0.6383769", "text": "function GameStateManager() {\r\n\tthis.states = [];\r\n\tthis.gameCount = function() {\r\n\t\treturn states.length;\r\n\t};\r\n\t\r\n\tthis.getGame = function(name) {\r\n\t\t// TODO: get from mongodb\r\n\t\tconsole.log(\"game state: \" + this.states.length);\r\n\t\t\r\n\t\tfor (var i=0; i<this.states.length; i++){\r\n\t\t\tif (this.states[i].name == name){\r\n\t\t\t\tconsole.log(\"already has gamestate: \" + name);\r\n\t\t\t\treturn this.states[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// create one if hasn't\r\n\t\treturn this.addGame(name);\r\n\t};\r\n\t\r\n\tthis.addGame = function(name) {\r\n\t\tconsole.log(\"create new gamestate: \" + name);\r\n\t\tvar gs = new GameState(name);\r\n\t\tthis.states.push(gs);\r\n\t\treturn gs;\r\n\t};\r\n\t\r\n\tthis.removeGame = function(name) {\r\n\t\tfor (var i=0; i<this.states.length; i++){\r\n\t\t\tif (this.states[i].name == name){\r\n\t\t\t\tconsole.log(\"remove the game: \" + name);\r\n\t\t\t\tthis.states.splice(0, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "15592e5a316f302e9a27f32096296708", "score": "0.63766026", "text": "function startGame() {\n\n state = {\n BjornPleased: 0, \n SigurdPleased: 0, \n AstridPleased: 0,\n hasPaintedShield: 0,\n };\n showTextNode(0); \n}", "title": "" }, { "docid": "bced0b85b57d4892958de108a3bea313", "score": "0.63717484", "text": "function DisplayGamePlayMenuState(gameFrame,aiOnFlag) {\n\t var that = {\n\t gameEngine: engine.GameEngine(aiOnFlag),\n dead: false,\n\t\t\tgridPxHeight: 0,\n\t\t\tgridPxWidth: 0,\n\t\t\tgameSec: 0,\n gameMin: 0,\n\t\t\tsecCount: 0,\n minCount: 0,\n\t\t\tcurScore: 0,\n\t\t\tlines: 0,\n\t\t\tinfoX: gameFrame.info.x,\n\t\t\tinfoY: gameFrame.info.y,\n infoW: gameFrame.info.width,\n infoH: gameFrame.info.height,\n nextbX: gameFrame.nextBlock.x,\n nextbY: gameFrame.nextBlock.y,\n nextbW: gameFrame.nextBlock.width,\n nextbH: gameFrame.nextBlock.height,\n gridImage: {\n image: Assignment_4.images['media/gridBlock.png'],\n }\n\t };\n\n\t function stopAiMode(){\n\t that.dead = true;\n\t gameFrame.renderBorder = false;\n\n\t window.removeEventListener('keydown', stopAiMode);\n\t window.removeEventListener('mousemove', stopAiMode);\n\t window.removeEventListener('mousedown', stopAiMode);\n\n\t Assignment_4.stopSound('media/sounds/TetrisSong');\n\n\t };\n\n\n\t if (aiOnFlag === true) {\n\n\t window.addEventListener('keydown', stopAiMode);\n\t window.addEventListener('mousemove', stopAiMode);\n\t window.addEventListener('mousedown', stopAiMode);\n\n\t }\n\n\t else {\n\t // Register UP\n\t if (input.controls.changeUp == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyUp, that.gameEngine.hardDrop);\n\t keyboard.registerCommand(input.controls.newKeyUp, that.gameEngine.hardDrop);\n\t input.controls.changeUp == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyUp, that.gameEngine.hardDrop);\n\n\t }\n\t // Register DOWN\n\t if (input.controls.changeDown == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyDown, that.gameEngine.softDrop);\n\t keyboard.registerCommand(input.controls.newKeyDown, that.gameEngine.softDrop);\n\t input.controls.changeDown == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyDown, that.gameEngine.softDrop);\n\n\t }\n\t // Register LEFT\n\t if (input.controls.changeLeft == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyLeft, that.gameEngine.moveLeft);\n\t keyboard.registerCommand(input.controls.newKeyLeft, that.gameEngine.moveLeft);\n\t input.controls.changeLeft == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyLeft, that.gameEngine.moveLeft);\n\n\t }\n\t // Register RIGHT\n\t if (input.controls.changeRight == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyRight, that.gameEngine.moveRight);\n\t keyboard.registerCommand(input.controls.newKeyRight, that.gameEngine.moveRight);\n\t input.controls.changeRight == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyRight, that.gameEngine.moveRight);\n\n\t }\n\t // Register RotateLeft\n\t if (input.controls.changeRotateLeft == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyRotateLeft, that.gameEngine.rotateLeft);\n\t keyboard.registerCommand(input.controls.newKeyRotateLeft, that.gameEngine.rotateLeft);\n\t input.controls.changeRotateLeft == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyRotateLeft, that.gameEngine.rotateLeft);\n\n\t }\n\n\t // Register RotateRight\n\t if (input.controls.changeRotateRight == true) {\n\n\t keyboard.unRegisterCommand(input.controls.prevKeyRotateRight, that.gameEngine.rotateRight);\n\t keyboard.registerCommand(input.controls.newKeyRotateRight, that.gameEngine.rotateRight);\n\t input.controls.changeRotateRight == false;\n\t }\n\n\t else {\n\t keyboard.registerCommand(input.controls.prevKeyRotateRight, that.gameEngine.rotateRight);\n\n\t }\n\n\t }\n\t\t\t\n\t\tvar i,\n\t\t\tj,\n\t k;\n\t\t\t\n\t\tthat.gridPxHeight = (gameFrame.border.height/that.gameEngine.gridHeight);\n\t\tthat.gridPxWidth = (gameFrame.border.width/that.gameEngine.gridWidth);\n\t\t\t\n\t\t//console.log(\"border width: \"+gameFrame.border.width+\" border height: \"+gameFrame.border.height);\n\t\t//console.log(\"grid height: \"+that.gameEngine.gridHeight+\" width: \"+that.gameEngine.gridWidth);\n\t\t\t\n\t\tgameFrame.renderBorder = true;\n\n\t that.update = function (elapsedTime) {\n \n\t var result = undefined;\n\n\t that.gameEngine.update(elapsedTime);\n \n\t //Update Game Time\n\t that.secCount += (elapsedTime / 1000);\n\t if (that.secCount >= 1) {\n\t that.gameSec++;\n\t that.secCount = 0;\n\t if (that.gameSec > 59) {\n\t that.gameMin++;\n\t that.gameSec = 0;\n\t }\n\t }\n\n\t if (that.gameEngine.gameOver == true) {\n\t gameOver = true;\n\t gameFrame.renderBorder = false;\n\t result = DisplayGameOver(gameFrame, that.curScore);\n\n\t if (aiOnFlag === false) {\n\t Assignment_4.addScore(that.curScore);\n\t }\n\n\t Assignment_4.stopSound('media/sounds/TetrisSong');\n\t Assignment_4.playSound('media/sounds/SFX_GameOver',1.0,false);\n\t }\n\n\t //Update Current Score\n\t that.curScore = that.gameEngine.scoreSum;\n\t //Update # of Lines\n\t\t that.lines = that.gameEngine.clearedRows;\n\t\t\t\n\t return result;\n\n\t }\n\n\t that.render = function (context) {\n\t\t//console.log(\"rendering!\");\n\t\tcontext.save();\n\t\t\n\t\tfor(i = 0; i < that.gameEngine.gridHeight; i++){\n\t\t for(j = 0; j < that.gameEngine.gridWidth; j++){\n\t\t\t//console.log(\"testing at (\"+i+\", \"+j+\")\");\n\t\t\t\n\t\t\tif (that.gameEngine.grid[i][j] != undefined) {\n\t\t\t //console.log(\"drawing at x: \"+gameFrame.border.x+(that.gridPxWidth*j)+\" y: \"+gameFrame.border.y+(that.gridPxHeight*i));\n\t\t\t //console.log(\"image src: \"+that.gameEngine.grid[i][j].image);\n\t\t\t context.drawImage(that.gameEngine.grid[i][j].image, gameFrame.border.x + (that.gridPxWidth * j), gameFrame.border.y + (that.gridPxHeight * i), that.gridPxWidth, that.gridPxHeight);\n\n\t\t\t}\n\t\t\telse {\n\t\t\t context.drawImage(that.gridImage.image, gameFrame.border.x + (that.gridPxWidth * j), gameFrame.border.y + (that.gridPxHeight * i), that.gridPxWidth, that.gridPxHeight);\n\t\t\t}\n\n\t\t\tfor(k = 0; k < that.gameEngine.particles.length; k++){\n\t\t\t var pos = that.gameEngine.particles[k].getPosition();\n\n\t\t\t if(Math.floor(pos.x) == j && Math.floor(pos.y) == i){\n\t\t\t\tvar particle = that.gameEngine.particles[k];\n\n\t\t\t\tcontext.save();\n\n\t\t\t\t//context.translate(gameFrame.border.x+(that.gridPxWidth*j), gameFrame.border.y+(that.gridPxHeight*i));\n\t\t\t\tcontext.translate(gameFrame.border.x+(that.gridPxWidth*pos.x), gameFrame.border.y+(that.gridPxHeight*pos.y));\n\t\t\t\tcontext.rotate(pos.rotation);\n\n\t\t\t\t//context.drawImage(particle.image, -1*(particle.size.width/2)*particle.scale, -1*(particle.size.height/2)*(particle.scale-0.4), particle.size.width*particle.scale, particle.size.height*particle.scale);\n\t\t\t\tcontext.drawImage(particle.image, -1*that.gridPxWidth/2, 0, that.gridPxWidth, that.gridPxHeight);\n\n\n/*\t\t\t\tcontext.rotate(pos.rotation);\n\n\t\t\t\tcontext.drawImage(particle.image, gameFrame.border.x+(that.gridPxWidth*particle.x), gameFrame.border.y+(that.gridPxHeight*particle.y), particle.size.width*particle.scale, particle.size.height*particle.scale);\n*/\n\t\t\t\tcontext.restore();\t\t\t \n\n\n\t\t\t }\n\n\t\t\t}\n\t\t\t\n\t\t }\n\t\t \n\t\t}\n\n\t //Render Next Block\n\t\tif (that.gameEngine.nextBlock != undefined) {\n\t\t for (i = 0; i < 2; i++) {\n\t\t\tfor (j = 0; j < 4; j++) {\n\t\t\t if (that.gameEngine.nextBlock.grid[i][j] != undefined) {\n\t\t\t context.drawImage(that.gameEngine.nextBlock.grid[i][j].image, (that.nextbX + (that.nextbW / 3) + (that.gridPxWidth * j)), (that.nextbY + (that.nextbH / 3) + (that.gridPxHeight * i)), that.gridPxWidth, that.gridPxHeight);\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\n\t\t\n\t //Render Time\n\t\tcontext.font = '28px Arial';\n\t\tcontext.textAlign = 'center';\n\t\tcontext.fillStyle = 'lightblue';\n\t\t\t\n /* //Rendter Time\n\t\tif (that.gameSec < 10) {\n\t\t context.fillText(that.gameMin + ':0' + that.gameSec, (that.infoX + (that.infoW / 2)), (that.infoY + (that.infoH / 10)) + (that.infoH / 20) + ((that.infoH * (15 / 100)) / 1.5));\n\t\t}\n\t\telse {\n\t\t context.fillText(that.gameMin + ':' + that.gameSec, (that.infoX + (that.infoW / 2)), (that.infoY + (that.infoH / 10)) + (that.infoH / 20) + ((that.infoH * (15 / 100)) / 1.5));\n\t\t}\n */\n\n\t //Render Level\n\t\t\tcontext.fillText(that.gameEngine.level, (that.infoX + (that.infoW / 2)), (that.infoY + (that.infoH / 10)) + (that.infoH / 20) + ((that.infoH * (15 / 100)) / 1.5));\n\n\t //Render Current Score\n\t\tcontext.fillText(that.curScore, (that.infoX + (that.infoW / 2)), (that.infoY + (that.infoH / 2.5)) + (that.infoH / 20) + ((that.infoH * (15 / 100)) / 1.5));\n\n\t //Render # of Lines\n\t\tcontext.fillText(that.lines, (that.infoX + (that.infoW / 2)), (that.infoY + (2 * (that.infoH / 2.5))) - (that.infoH / 10) + (that.infoH / 20) + ((that.infoH * (15 / 100)) / 1.5));\n\n\t\tcontext.restore();\n\t\t\n\t }\n\n\t return that;\n\t}", "title": "" }, { "docid": "d1ad49897389f6e64a258447d17ae5bd", "score": "0.6369048", "text": "function newGame() {\n\n mapLocation = 0;\n spear = false;\n shield = false;\n key = false;\n puzzleSolved = false;\n roomSearched = false;\n dial1Locked = true;\n dial2Locked = true;\n dial3Locked = true;\n //trapDisarmed = false;\n\n render();\n \n}", "title": "" }, { "docid": "b5543d12cd678d50033e8d26d650d939", "score": "0.634473", "text": "function currentState() {\n if (state === `title`) {\n title();\n } else if (state === `instructionScreen`) {\n instructionScreen();\n } else if (state === `simulation`) {\n simulation();\n }\n}", "title": "" }, { "docid": "47c46e19e3cc7097680f7717ae1a0c8b", "score": "0.63440174", "text": "function gameStateDraw() {\n if(frame === -1){\n imageMode(CENTER);\n image(tileset, gameBoard.canvasX/2, gameBoard.canvasY/2 + 16, gameSprites[\"gameOver\"].width, gameSprites[\"gameOver\"].height,\n gameSprites[\"gameOver\"].sx, gameSprites[\"gameOver\"].sy, gameSprites[\"gameOver\"].sWidth, \n gameSprites[\"gameOver\"].sHeight);\n }\n \n //convert score to string and prepend with zeros if necessary\n scoreStr = gameBoard.score.toString();\n switch(scoreStr.length){\n case 1:\n scoreStr = \"000\"+scoreStr;\n break;\n \n case 2:\n scoreStr = \"00\"+scoreStr;\n break;\n \n case 3:\n scoreStr = \"0\"+scoreStr;\n break;\n }\n \n imageMode(CORNER);\n \n //Thousands Place Value\n image(tileset, gameBoard.canvasX-64, 0, gameSprites[scoreStr.charAt(0)].width, gameSprites[scoreStr.charAt(0)].height,\n gameSprites[scoreStr.charAt(0)].sx, gameSprites[scoreStr.charAt(0)].sy, gameSprites[scoreStr.charAt(0)].sWidth, \n gameSprites[scoreStr.charAt(0)].sHeight);\n \n //Hundreds Place Value\n image(tileset, gameBoard.canvasX-48, 0, gameSprites[scoreStr.charAt(1)].width, gameSprites[scoreStr.charAt(1)].height,\n gameSprites[scoreStr.charAt(1)].sx, gameSprites[scoreStr.charAt(1)].sy, gameSprites[scoreStr.charAt(1)].sWidth, \n gameSprites[scoreStr.charAt(1)].sHeight);\n \n //Tens Place Value\n image(tileset, gameBoard.canvasX-32, 0, gameSprites[scoreStr.charAt(2)].width, gameSprites[scoreStr.charAt(2)].height,\n gameSprites[scoreStr.charAt(2)].sx, gameSprites[scoreStr.charAt(2)].sy, gameSprites[scoreStr.charAt(2)].sWidth, \n gameSprites[scoreStr.charAt(2)].sHeight);\n \n //Ones Place Value\n image(tileset, gameBoard.canvasX-16, 0, gameSprites[scoreStr.charAt(3)].width, gameSprites[scoreStr.charAt(3)].height,\n gameSprites[scoreStr.charAt(3)].sx, gameSprites[scoreStr.charAt(3)].sy, gameSprites[scoreStr.charAt(3)].sWidth, \n gameSprites[scoreStr.charAt(3)].sHeight);\n \n}", "title": "" }, { "docid": "4bc10965318b8ce05da2ba384056ab51", "score": "0.63269085", "text": "showGameStartState() {\n\t\tthis.turn = 0;\n\t\tthis.showState(0);\n\t}", "title": "" }, { "docid": "74d9e1c7f40db5838b2a335afb37682d", "score": "0.632676", "text": "getCurrentGameState() {\n return this.gameState.copy();\n }", "title": "" }, { "docid": "b41e36e11c7c97c7469ea2c7718a8565", "score": "0.6319168", "text": "changeGameState(newState) {\n\t\tthis.gameState = newState;\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d402c8167957d2968f0ff15fa8521849", "score": "0.63163126", "text": "function changestate(i ,stateNum){\r\n game.state.start('state' + stateNum);\r\n}", "title": "" }, { "docid": "4920c520255a90d74c244153bef2177d", "score": "0.6314181", "text": "function load_stage() {\n scope.paused = true;\n scope.gameover = false;\n scope.config = false;\n scope.dead = false; \n scope.cur_candy = 0; \n playing_field.empty();\n load_border();\n load_obstacles();\n redraw();\n reset(); \n }", "title": "" }, { "docid": "1ba7aabf492cd830f711cd4168a34893", "score": "0.63085586", "text": "get roomState() {\n var state = {};\n state.grid_state = this.grid_state;\n state.players = this.players;\n state.grid_w = GRID_WIDTH;\n state.grid_h = GRID_HEIGHT;\n state.view_w = VIEW_WIDTH;\n state.view_h = VIEW_HEIGHT;\n state.game_time = this.game_time;\n return state;\n }", "title": "" }, { "docid": "e8227e3e745d45884124aad07ea1059f", "score": "0.6298674", "text": "function PlayingState() {\r\n myLibrary.IGameLoopObject.call(this);\r\n\r\n /* Variable that will hold the index of the currently active level stored in the levels array. by default is -1 */\r\n this.currentLevelIndex = -1;\r\n\r\n /* Array that will hold instances of the Level class representing each of the levels declared in the global LEVELS variable */\r\n this.levels = [];\r\n\r\n /* When creating an instance of this class I automatically call this two methods defined underneath */\r\n this.loadLevelsStatus();\r\n this.loadLevels();\r\n}", "title": "" }, { "docid": "6b1dba64f5208ea1ce31cca0d80969bb", "score": "0.6293634", "text": "function GamePlayState(settings, level) {\n this.settings = settings;\n this.level = level;\n\n // Game state.\n this.invaderCurrentspeed = 10;\n this.invaderCurrentDropDistance = 0;\n this.invadersAreDropping = false;\n this.lastRocketTime = null;\n\n // Game entities.\n this.ship = null;\n this.invaders = [];\n this.rockets = [];\n this.bombs = [];\n}", "title": "" }, { "docid": "dc453674e9ae0e36986e9f6191317cd3", "score": "0.62848496", "text": "function draw() {\n background(255,100,100);\n\n if(gameState === `start`){\n startScreen();\n }\n else if(gameState === `game`){\n gameScreen();\n }\n else if(gameState === `end`){\n endScreen();\n }\n console.log(gameState);\n}", "title": "" }, { "docid": "f446be7d4caafaf7638a0e87743fb9a5", "score": "0.6269687", "text": "function PlayState() { // in-game state \n\n /**\n * inits for the PlayState class: called once\n */\n this.setup = function () {\n\n profile_start(\"playstate setup\");\n\n touchControlsVisible(true);\n\n // reset the touch flags just in case\n touchleft = touchright = touchattack = touchpause = touchjump = false;\n\n game_over = false;\n\n if (heroType == 1) max_velocity_y = 4;\n\n // init the sprite sheet tiles\n if (!sprite_sheet) sprite_sheet = new jaws.SpriteSheet({ image: \"tiles.png\", frame_size: [TILESIZE, TILESIZE], orientation: 'right' });\n\n initLevel(level[current_level_number]);\n if (gui_enabled) updateGUIsprites(TimeGUI, time_remaining); // change from 000 imediately\n\n // scrolling background images\n if (use_parallax_background) {\n if (!parallax) {\n parallax = new jaws.Parallax({ repeat_x: true, repeat_y: false });\n parallax.addLayer({ image: \"parallax.png\", damping: 4 });\n //parallax.addLayer({ image: \"parallaxlayer2.png\", damping: 4 });\n }\n }\n\n // our hero\n if (!player) {\n log('creating player sprite');\n player = new jaws.Sprite({ x: startx, y: starty, anchor: \"center_bottom\", flipped: true });\n\n // the animations used by our hero\n player.animation = new jaws.Animation({ sprite_sheet: jaws.assets.get(\"player.png\"), frame_size: player_framesize, frame_duration: 75 });\n player.idle_anim = player.animation.slice(8, 9);\n player.move_anim = player.animation.slice(0, 7);\n //player.jump_anim = player.animation.slice(2, 3);\n player.jump_anim = player.animation.slice(14, 15);\n player.fall_anim = player.animation.slice(15, 16);\n player.attack_anim = player.animation.slice(9, 14);\n player.setImage(player.animation.frames[9]);\n //NOP: player.top_offset++; // nudge one pixel down to account for physics \"nudge\"\n\n // the collision bounding box is smaller than the DRAWING rect\n // player.rect() is used for rendering but this is used for physics\n player.collisionrect = function () {\n if (!this.cached_collisionrect) {\n this.cached_collisionrect = new jaws.Rect(this.x, this.top, 32, 64);\n }\n this.cached_collisionrect.moveTo(this.x - this.left_offset + 48, this.y - this.top_offset + 32); // bottom has no effect\n return this.cached_collisionrect;\n };\n player.mx = function () { return (this.rect().x + this.rect().right) / 2; };\n player.my = function () { return (this.rect().y + this.rect().bottom) / 2; };\n player.headheight = player.collisionrect().height; // remember the height of the aabb: this speeds up physics\n player.name = 'p';\n player.canShootAgain = true;\n // the attack bounding box is larger than the DRAWING rect\n // any enemies inside this aabb (when attacking) are destroyed\n player.attackcollisionrect = function () {\n if (!this.cached_attackcollisionrect) {\n this.cached_attackcollisionrect = new jaws.Rect(this.x, this.top, 128, 80);\n }\n this.cached_attackcollisionrect.moveTo(this.x - this.left_offset, this.y - this.top_offset + 16);\n return this.cached_attackcollisionrect;\n };\n\n // skeleton test - works\n //player.animation = new jaws.Animation({sprite_sheet: jaws.assets.get(\"skeleton.png\"), frame_size: player_framesize, frame_duration: 75, scale_image: player_scale})\n //player.idle_anim = player.animation.slice(0,1)\n //player.move_anim = player.animation.slice(0,7)\n //player.jump_anim = player.animation.slice(2,3)\n //player.setImage(player.animation.frames[0])\n\n }\n\n // reset the player score if this is the first level\n if (current_level_number == starting_level_number)\n player.score = 0;\n\n // reset some other player stats that may be leftovers from the previous level\n player.attacking = false;\n player.invulerableUntil = 0;\n player.vx = player.vy = 0; // current movement velocity\n player.inventory_keys = 0; // any items we are holding\n player.health = health_starting_value; // how many hit points we have\n player.moveTo(startx, starty); // player might be elsewhere from a previous game\n\n updateGUIsprites(ScoreGUI, player.score); // immediate update to proper value in case it changed prev level\n\n // the respawn particle system!\n if (particles_enabled) startParticleSystem(startx, starty, 5);\n\n // set up the chase camera view\n viewport = new jaws.Viewport({ max_x: viewport_max_x, max_y: viewport_max_y });\n jaws.activeviewport = viewport; // resize events need this in global scope\n\n // start the timer! (fires once a second until game_over == true)\n stopwatchstart = 0;\n // clear any previous timers just in case\n if (game_timer) window.clearInterval(game_timer);\n game_timer = window.setInterval(stopwatchfunc, 1000);\n\n profile_end(\"playstate setup\");\n\n log('PlayState.setup() completed.');\n\n }; // end setup function\n\n /**\n * game simulation loop step - called every frame during play\n */\n this.update = function () {\n\n profile_start('UPDATE SIMULATION');\n\n if (lastframetime == 0) lastframetime = new Date().valueOf();\n currentFrameTimestamp = new Date().valueOf();\n currentframems = (currentFrameTimestamp - lastframetime);\n\n // allow pausing\n if (touchpause || jaws.pressed(\"p\")) {\n // debounce: don't switch every single frame\n // while you hold down the key\n if (!this.pausetoggledelayuntil || (currentFrameTimestamp > this.pausetoggledelayuntil)) {\n this.pausetoggledelayuntil = currentFrameTimestamp + 1000;\n pauseGame();\n }\n else {\n log('ignoring pause button until ' + this.pausetoggledelayuntil);\n }\n\n }\n if (game_paused) return;\n\n // Update the game simulation:\n // We calculate how much time in ms has elapsed since last frame\n // and run the physics/etc step functions 1 or more times.\n // Why? Since each step is a fixed step for 60fps\n // this ensures the game runs at the same speed\n // no matter what the performance and avoids \n // delta-based (time*speed) simulation steps that can \n // \"poke through\" walls if the fps is low\n unsimulatedms += currentframems;\n simstepsrequired = Math.floor(unsimulatedms / oneupdatetime);\n if (simstepsrequired > 10) {\n // max out just in case 1 fps; no \"hanging\"\n simstepsrequired = 10;\n unsimulatedms = 0;\n }\n lastframetime = currentFrameTimestamp;\n\n for (var sims = 0; sims < simstepsrequired; sims++) {\n\n unsimulatedms -= oneupdatetime;\n\n framecount++;\n\n // animate the enemies\n if (enemies) {\n enemies.forEach(enemyAI);\n }\n\n if (player.vy < 0) player.setImage(player.jump_anim.next());\n else player.setImage(player.fall_anim.next());\n if (!player.jumping) {\n if (player.vx) { player.setImage(player.move_anim.next()); }\n else { player.setImage(player.idle_anim.next()); } //player.setImage( player.animation.frames[0] ) }\n }\n else {\n }\n\n // attack animation can interrupt all others\n if (player_can_attack && player.attacking) {\n player.setImage(player.attack_anim.next());\n if (player.attack_anim.atLastFrame()) {\n player.attacking = false;\n log('attack completed');\n }\n }\n\n // reset the player's horizontal velocity\n player.vx = 0;\n\n var attack = touchattack || jaws.pressed(\"z\") || jaws.pressed(\"x\") || jaws.pressed(\"s\") || jaws.pressed(\"space\") || jaws.pressed(\"down\");\n\n // if this game has attacks in it, we trigger one (otherwise these keys are alternate jump keys)\n if (player_can_attack && !player.attacking && attack) {\n sfxattack();\n player.attacking = true;\n }\n\n bullets.forEach(function (e) { e.x += e.direction * bullet_speed });\n bullets.removeIf(function (e) { return !viewport.isPartlyInside(e); });\n\n if (canShoot && attack && player.canShootAgain)\n {\n sfxattack();\n var bullet = jaws.Sprite({ image: \"bullet.png\", x: player.mx(), y: player.my(), scale: 1 });\n bullet.direction = player.flipped ? -1 : 1;\n bullets.push(bullet);\n player.canShootAgain = false;\n setTimeout(function () { player.canShootAgain = true }, 500)\n }\n\n if (touchleft || jaws.pressed(\"left\") || jaws.pressed(\"a\")) { player.vx = -move_speed; player.flipped = 1; }\n else if (touchright || jaws.pressed(\"right\") || jaws.pressed(\"d\")) { player.vx = +move_speed; player.flipped = 0; }\n\n var up = touchjump || jaws.pressed(\"up\") || jaws.pressed(\"w\");\n if (!player.attacking && up)\n {\n if (heroType != 0 && player.y <= 0) { player.y = 0; player.vy = -0.5; }\n else if (player.jumping && heroType == 2 && player.vy > jump_strength / 2) { player.vy = -0.5; }\n else if (player.can_jump && (!player.jumping || heroType != 0))\n {\n sfxjump();\n player.vy = jump_strength;\n player.jumping = true;\n player.can_jump = false;\n //if (heroType == 1) setTimeout(function () { player.can_jump = true }, 200)\n }\n }\n else { player.can_jump = true; }\n\n // DEBUG - ijkl - in debug mode, these keys allow you to fly around for testing hard-to-get areas\n if (debugmode) {\n if (jaws.pressed(\"j\")) { player.x -= 10; }\n if (jaws.pressed(\"l\")) { player.x += 10; }\n if (jaws.pressed(\"i\")) { player.y -= 14; }\n if (jaws.pressed(\"k\")) { player.y += 10; }\n }\n\n profile_start('player physics');\n applyPhysics(player); // gravity\n movePhysics(player); // collisions\n profile_end('player physics');\n\n // did we fall past the bottom of the world?\n if (player.y > fell_too_far) {\n log('We fell too far: ' + player.y);\n die();\n sfxdie();\n }\n\n // useful for other types of games (such as ones with auto-scrolling):\n // ensure player never goes beyond the edge of the screen\n // this interferes with \"falling off the edge\" however\n // viewport.forceInside(player, 10); \n\n // keep the player in the middle of the screen\n viewport.centerAround(player);\n // so we are centered around the head, not feet\n viewport.y -= VIEWPORT_Y_OFFSET;\n\n if (use_parallax_background) {\n // update parallax background scroll\n parallax.camera_x = viewport.x;\n //parallax.camera_y = viewport.y; // buggy? it works now... but the bg image only tiles horiz...\n }\n\n if (gui_enabled) updateScoreGUI(); // every frame!? optimize? OK?\n\n if (particles_enabled) updateParticles();\n\n } // end sims loop for FPS independence\n\n // one or more collisions above may have set this to true\n if (pendingLevelComplete) levelComplete();\n\n profile_end('UPDATE SIMULATION');\n\n }; // end update function\n\n /**\n * the primary game render loop - called every frame during play\n */\n this.draw = function () {\n\n // when pausing, we need to render one frame first\n if (game_paused && !need_to_draw_paused_sprite) {\n return;\n }\n\n profile_start('DRAW EVERYTHING');\n\n if (use_parallax_background) {\n parallax.draw();\n }\n else {\n // we don't need to bother clearing the screen because the parallax fills entire bg\n jaws.context.fillStyle = background_colour;\n jaws.context.fillRect(0, 0, jaws.width, jaws.height);\n }\n\n if (tile_map) {\n viewport.drawTileMap(tile_map);\n }\n\n viewport.apply(function () {\n\n player.draw();\n\n if (enemies) enemies.drawIf(viewport.isPartlyInside);\n\n //if (bullets) bullets.drawIf(viewport.isPartlyInside);\n bullets.draw();\n\n profile_start('particles');\n particles.drawIf(viewport.isPartlyInside);\n profile_end('particles');\n\n if (debugcollisionaabb) { player.collisionrect().draw(); enemies.forEach(function (e) { e.collisionrect().draw(); }); } // debug\n if (debugcollisionaabb && player.attacking) player.attackcollisionrect().draw(); // debug\n //if (debugcollisionaabb && last_touched_sprite) last_touched_sprite.rect().draw(); // debug\n if (debugcollisionaabb)\n {\n if (touchedtiles) touchedtiles.forEach(function (t) { t.rect().draw(); });\n if (etouchedtiles) etouchedtiles.forEach(function (t) { t.rect().draw(); });\n }\n\n });\n\n if (gui_enabled) renderGUI();\n\n if (need_to_draw_paused_sprite) {\n need_to_draw_paused_sprite = false;\n PausedGUI.draw();\n }\n\n profile_end('DRAW EVERYTHING');\n\n }; // PlayState.draw\n\n }", "title": "" }, { "docid": "14b052f5d86c96482f15b196c984edad", "score": "0.6268904", "text": "function storeGameState() {\n prev_dropSetGame = dropSetGame.slice();\n prev_dropSetTurn = dropSetTurn.slice();\n prev_filled = filled.slice();\n prev_firstTurn = firstTurn;\n prev_secondTurn = secondTurn;\n}", "title": "" }, { "docid": "9cdba01d517184469023a4ea7b7ead32", "score": "0.6263715", "text": "function handleThisTurn() {\n $log.info('gameState handleThisTurn');\n \n \n }", "title": "" }, { "docid": "53119798bf521c976e1af75cb00a9614", "score": "0.62627715", "text": "function startGame() {\n state = {}\n showTextNode(1)\n}", "title": "" }, { "docid": "d2b5da03a26f8bf38d7aabf0d2c3a48b", "score": "0.6262434", "text": "function PauseState()\r\n{\r\n\t// \"It's not an online real time game, so it actually pauses, Mom\"\r\n}", "title": "" }, { "docid": "292c32f8fa5ca1be193518f66c151a81", "score": "0.62606174", "text": "getBoardState() {\n return {\n players: this.players.map(player => player.copyState()),\n donePlayers: this.donePlayers.map(player => player.copyState()),\n turn: this.playerTurn,\n stats: this.stats.copyState(),\n playZone: this.playZone.copyState(),\n deck: this.deck.copyState(),\n history: this.history.copyState(),\n playingDirection: this.playingDirection\n };\n }", "title": "" }, { "docid": "08127849656058eb9cb4337d2905d29a", "score": "0.6259296", "text": "function draw() {\n\nswitch(myState) {\n\n case 0:\n console.log(\"Hello!\") ;\n myState = 2 ;\n break ;\n\n case 1:\n console.log(\"Goodbye\") ;\n break ;\n\n case 2:\n console.log(\"Maybe\") ;\n break ;\n\n}\n\n}", "title": "" }, { "docid": "cb394222305ad78e4f25da08edd23980", "score": "0.62416303", "text": "get STATE_IDX() { return 0; }", "title": "" }, { "docid": "615fbb722a6eb50e815fbe1dd7954abf", "score": "0.6239175", "text": "function GameOverState(){\n var gameOverOptions = [\n {\n 'displayName' : 'Return to the Main Menu',\n 'x' : 180,\n 'y' : 90,\n 'width' : 150,\n 'height': 20,\n 'action': function(){gameController.changeState(MainMenuState);}\n },\n {\n 'displayName' : 'Retry as same character',\n 'x' : 180,\n 'y' : 120,\n 'width' : 150,\n 'height': 20,\n 'action': function(){gameController.changeState(inGameState);}\n }\n];\n var selected = 0;\n var chosenDelayTime = 12;\n var delayTimer = 0;\n this.enter = function(){\n sounds.mainTheme.pause();\n sounds.pauseTheme.play();\n }\n\n this.update = function(){\n this.handleInput();\n this.clearScreen();\n this.drawEverything();\n if(gameRunning){\n animationFrameNumber = requestAnimationFrame(gameController.update);\n }\n };\n\n this.handleInput = function(){\n if (mouse_Left) {\n this.checkButtons();\n mouse_Left = false;\n }\n\n if (key_Menu_Select) {\n gameOverOptions[selected].action();\n key_Menu_Select = false;\n }\n\n\n if (delayTimer > 0) {\n delayTimer--;\n return;\n }\n\n if (key_Move_Down) {\n selected = mod(selected + 1, gameOverOptions.length);\n delayTimer = chosenDelayTime;\n }\n if (key_Move_Up) {\n selected = mod(selected - 1, gameOverOptions.length);\n delayTimer = chosenDelayTime;\n }\n};\n\n this.drawEverything = function(){\n canvasContext.font = \"20px Verdana\";\n canvasContext.textAlign = \"left\";\n\n canvasContext.fillStyle = \"yellow\";\n canvasContext.fillText(\"Game Over\", 140+1, 60+1);\n canvasContext.fillStyle = \"red\";\n canvasContext.fillText(\"Game Over\", 140, 60);\n\n canvasContext.font = \"10px Verdana\";\n for (var i = 0; i < gameOverOptions.length; i++) {\n canvasContext.fillStyle = \"white\";\n\n colorRect(gameOverOptions[i].x, gameOverOptions[i].y, gameOverOptions[i].width, gameOverOptions[i].height, 'green');\n\n canvasContext.fillStyle = \"white\";\n canvasContext.fillText(\" \"+gameOverOptions[i].displayName, gameOverOptions[i].x, gameOverOptions[i].y + 15);\n\n if (i === selected) {\n colorRect(gameOverOptions[i].x -10, gameOverOptions[i].y + 10, 5, 5, 'white');\n }\n }\n scaledContext.drawImage(canvas, 0, 0, canvas.width, canvas.height, 0, 0, scaledCanvas.width, scaledCanvas.height);\n };\n\n this.clearScreen = function(){\n canvasContext.fillStyle = \"black\";\n canvasContext.fillRect(0, 0, canvas.width, canvas.height);\n };\n\n this.checkButtons = function(){\n for(var i = 0; i < gameOverOptions.length; i++){\n var opt = gameOverOptions[i];\n //console.log(opt.x, opt.y, opt.width, opt.height, mouseX, mouseY);\n if(mouseInside(opt.x, opt.y, opt.width, opt.height)) {\n opt.action();\n }\n }\n };\n\n}", "title": "" }, { "docid": "281a657fd60ad46e3cfd766a0ce50afc", "score": "0.6233588", "text": "function updateState(gamestate) {\r\n\r\n gamestate.capturePoints.forEach(function(point) {\r\n updateCapturePointState(point);\r\n });\r\n gamestate.corporation.players.forEach(function(player) {\r\n updatePlayerState(player);\r\n });\r\n\tgamestate.insurgents.players.forEach(function(player) {\r\n updatePlayerState(player);\r\n });\r\n\r\n $(\".coorporation_result span\").text(gamestate.corporation.points);\r\n $(\".insurgents_result span\").text(gamestate.insurgents.points);\r\n}", "title": "" }, { "docid": "9de50cede8251ebc309dd587ba872284", "score": "0.6231775", "text": "function load_stage() {\n scope.paused = true;\n scope.gameover = false;\n scope.config = false;\n scope.dead = false;\n scope.cur_candy = 0;\n playing_field.empty();\n load_border();\n load_obstacles();\n redraw();\n reset();\n }", "title": "" }, { "docid": "abfd5e3bdf4858d012630085379cec9f", "score": "0.6230781", "text": "function state() {\n state.playerName = localStorage[\"playerName\"];\n state.gameLevel = localStorage[\"chosenLevel\"];\n state.numOfCards = getNumOfCards(state.gameLevel);\n state.cardsValuesArray = randomizeCardsArray(state.numOfCards);\n state.theme = animalTheme;\n state.numOfError = 0;\n state.flippedCards = [];\n state.activeBoard = true;\n state.bestPlayer = {\n bestPlayerName: localStorage[\"bestPlayerName\"],\n bestPlayerNumOfErrors: localStorage[\"bestPlayerNumOfErrors\"],\n };\n}", "title": "" }, { "docid": "a2c4d978315adaca46db487fa6c0f7f7", "score": "0.62274384", "text": "function playLevelThreeState() {\n crazySpace.update();\n star.update();\n\n for (var count = 0; count < constants.ENEMY_NUM; count++) {\n enemies[count].update();\n }\n for (var count = 0; count < constants.ASTEROID_NUM; count++) {\n asteroids[count].update();\n }\n managers.collisionCheck();\n\n for (var i = 0; i < bullets.length; i++) {\n bullets[i].bulletUpdate();\n }\n\n plane.update();\n scoreboard.update();\n\n // If lives is 0 or lower, destroy all objects and go to gameover screen\n if (constants.PLAYER_LIVES <= 0) {\n states.getHighScore(constants.PLAYER_SCORE);\n createjs.Sound.stop();\n createjs.Sound.play('gameOverSoundtrack', createjs.Sound.INTERRUPT_NONE, 0, 0, -1, 1, 0);\n stage.removeChild(game);\n plane.destroy();\n crazySpace.destroy();\n star.destroy();\n\n game.removeAllChildren();\n game.removeAllEventListeners();\n stage.removeChild(game);\n\n currentState = constants.GAME_OVER_STATE;\n changeState(currentState);\n }\n\n if (constants.PLAYER_SCORE == 4000) {\n states.getHighScore(constants.PLAYER_SCORE);\n createjs.Sound.stop();\n createjs.Sound.play('gameWinSoundtrack', createjs.Sound.INTERRUPT_NONE, 0, 0, -1, 1, 0);\n plane.destroy();\n star.destroy();\n for (var count = 0; count < constants.ENEMY_NUM; count++) {\n enemies[count].destroy();\n }\n\n game.removeAllChildren();\n game.removeAllEventListeners();\n stage.removeChild(game);\n\n currentState = constants.WIN_STATE;\n changeState(currentState);\n }\n }", "title": "" }, { "docid": "73ff08a447bb60b9dc88539d9ca08c16", "score": "0.62233794", "text": "saveGameState() {\n saveGame(this.state)\n }", "title": "" }, { "docid": "36fb4166eeb398afb6a43505dc7d9f31", "score": "0.6219239", "text": "function newGameState(data){return new GameState(data); }", "title": "" }, { "docid": "df4bfc3cb256a55fc5ccd456984aaaf4", "score": "0.62084603", "text": "function handleNewState(state) {\n // Update board\n board.unfreeze();\n clearMessages();\n $(\".waiting\").hide();\n board.initialize(state.height, state.width);\n board.setData(state.grid);\n displayPlayers(state.players, state.current_player);\n // Save last state\n lastState = state;\n // If game if won\n if(state.state == 1) {\n if (state.game_mode == 0) {\n if (state.current_player.player_type === 1) newMessage(lang.game_board.soloLosingMessage);\n else newMessage(lang.game_board.soloWinningMessage);\n } else newMessage(lang.game_board.winningMessage.replace(\"{}\", state.current_player.name));\n board.freeze();\n $(\"button.giveUp\").hide();\n $(\"button.end\").show();\n // If game is draw\n } else if (state.state === 2) {\n newMessage(lang.game_board.drawMessage);\n board.freeze();\n $(\"button.giveUp\").hide();\n $(\"button.end\").show();\n // If game is running\n } else {\n // If game mode RANDOM\n if (state.game_mode == 2) {\n if (state.current_effect == 0)\n newMessage(lang.game_board.chipNoEffectMessage);\n else\n newMessage(lang.game_board.chipEffectMessage.replace(\"{}\", lang.effects[state.current_effect]));\n }\n // If current player is AI\n if (state.current_player.player_type == 1) {\n board.freeze();\n $(\".waiting\").show();\n fetchLooping(-1);\n }\n // If game mode TICKATTACK\n if(state.game_mode == 3 && state.time_limit > 0) {\n board.setTimer(state.time_limit * 1000);\n board.blur();\n }\n }\n}", "title": "" }, { "docid": "0c82ba0639db339d271371d79a8c1df6", "score": "0.620095", "text": "function StateMachine() {}", "title": "" }, { "docid": "25fdec218201da62106bc0738efe1bb9", "score": "0.6194021", "text": "function handleStateUpdate(data) {\n if (state.playerState == null) {\n setupInitialState(data)\n } else {\n state = data;\n }\n switch (state.mode) {\n case 'placement':\n handlePlacementModeUpdate();\n break;\n case 'play':\n handlePlayModeUpdate();\n break;\n case 'gameOver':\n handleGameOverUpdate();\n break;\n }\n draw();\n}", "title": "" }, { "docid": "9f1aac03f1048ab1b1881532d72cf70a", "score": "0.6192458", "text": "function startGame() {\n\t\t\ttry {\n\t\t\t\t// get inputs\n\t\t\t\t\tCONSTANTS.grid.x = Math.max(CONSTANTS.grid.min, Math.min(CONSTANTS.grid.max, Number(ELEMENTS.menu.x.value)))\n\t\t\t\t\tCONSTANTS.grid.y = Math.max(CONSTANTS.grid.min, Math.min(CONSTANTS.grid.max, Number(ELEMENTS.menu.y.value)))\n\t\t\t\t\tCONSTANTS.grid.z = Math.max(CONSTANTS.grid.min, Math.min(CONSTANTS.grid.max, Number(ELEMENTS.menu.z.value)))\n\n\t\t\t\t// resize\n\t\t\t\t\tresizeCanvas()\n\n\t\t\t\t// grid\n\t\t\t\t\tconst gridData = createGrid()\n\t\t\t\t\t\tSTATE.grid = gridData.grid\n\t\t\t\t\t\tSTATE.exteriorHexes = gridData.exteriorHexes\n\t\t\t\t\t\tSTATE.gridBorder = gridData.gridBorder\n\n\t\t\t\t// player\n\t\t\t\t\tSTATE.player = createPlayer()\n\t\t\t\t\tSTATE.blasts = {}\n\n\t\t\t\t// bases\n\t\t\t\t\tSTATE.bases = {}\n\t\t\t\t\tfor (let i in CONSTANTS.base.locations) {\n\t\t\t\t\t\tconst coordinates = CONSTANTS.base.locations[i].split(\",\")\n\t\t\t\t\t\tconst base = createBase(Number(coordinates[0]), Number(coordinates[1]), Number(coordinates[2]))\n\t\t\t\t\t\tSTATE.bases[base.id] = base\n\t\t\t\t\t}\n\n\t\t\t\t// asteroids\n\t\t\t\t\tSTATE.asteroids = {}\n\t\t\t\t\tfor (let i = 0; i < CONSTANTS.asteroid.startingCount; i++) {\n\t\t\t\t\t\tconst asteroid = createAsteroid()\n\t\t\t\t\t\tSTATE.asteroids[asteroid.id] = asteroid\n\t\t\t\t\t}\n\n\t\t\t\t// playing\n\t\t\t\t\tSTATE.playing = true\n\n\t\t\t\t// remove gameover state\n\t\t\t\t\tELEMENTS.body.removeAttribute(\"gameover\")\n\t\t\t\t\tELEMENTS.menu.start.blur()\n\t\t\t\t\tELEMENTS.menu.start.setAttribute(\"disabled\", true)\n\t\t\t} catch (error) {console.log(error)}\n\t\t}", "title": "" }, { "docid": "b18cbb1cd686a7d40e7d508a7c00afa8", "score": "0.6190738", "text": "function PlayState(config, niveau) {\n this.config = config;\n this.niveau = niveau;\n\n // Game state.\n this.invaderCurrentVelocity = 10;\n this.invaderCurrentDropDistance = 0;\n this.invadersAreDropping = false;\n this.lastRocketTime = null;\n\n // Game entities.\n this.ship = null;\n this.invaders = [];\n this.rockets = [];\n this.bombs = [];\n}", "title": "" }, { "docid": "ac70942a16250ae3598cfa54c09737f2", "score": "0.61823595", "text": "function getState() {\r\n \tvar state = {\r\n \t\tgame: clone(game),\r\n \t\tcurrentShape: clone(currentShape),\r\n \t\tnextShape: clone(nextShape),\r\n \t\tbag: clone(bag),\r\n \t\tbagIndex: clone(bagIndex),\r\n \t\trandomSeed: clone(randomSeed),\r\n \t\tscore: clone(score)\r\n \t};\r\n \treturn state;\r\n }", "title": "" }, { "docid": "278abc293e56f69d76e5a61194df9286", "score": "0.6176624", "text": "function gameLoop(delta) {\n //Update the current game state:\n state(delta);\n}", "title": "" }, { "docid": "ada0178979ff5307e4715fd0164aa18c", "score": "0.6165614", "text": "function changeGameState(newState) {\r\n gameState = newState;\r\n if (newState == \"Play\") {\r\n resetGame();\r\n }\r\n if (newState == \"Game Over\") {\r\n resetMoles(false);\r\n //don't raise moles anymore\r\n window.clearInterval(raiseMoleInterval1);\r\n window.clearInterval(raiseMoleInterval2);\r\n if (currentScore > highScore) {\r\n highScore = currentScore;\r\n }\r\n bgImage.src = \"media/mainImg.jpg\";\r\n }\r\n}", "title": "" }, { "docid": "d9700774d953e063f19af1b2604bd159", "score": "0.6165301", "text": "function switchState(){\n\tfor( k = 0; k < $state.length; k++) {\n\t\tstate = $state[k];\n\t\tif( state == 'ground' ) {\n\t\t\tonGround();\n\t\t} else if ( state == 'air' ){\n\t\t\tonAir();\n\t\t\tjump = true;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4a7d38e6c50daa8834ffd7da01e21287", "score": "0.6163581", "text": "changeState(state) {\r\n if(this.current !== state){ \r\n switch(state){\r\n case 'hungry' : {\r\n this.prew.push(this.current);\r\n this.current = this.states[2];;break;\r\n }\r\n case 'sleeping' : {\r\n this.prew.push(this.current);\r\n this.current = this.states[3];break;\r\n }\r\n case 'normal' : {\r\n this.prew.push(this.current);\r\n this.current = this.states[0];break;\r\n }\r\n case 'busy' : {\r\n this.prew.push(this.current);\r\n this.current = this.states[1];break;\r\n }\r\n default : throw new Error(\"Isn't exist\");break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3234126c6d85a16362a412e20642382b", "score": "0.6162658", "text": "function updateGame(){\r\n\tvar newGameState = createNewGameState(); \r\n\tvar widthInCells = getContainerWidthInCells(); \r\n\tfor(var x=0; x<widthInCells; x++){\r\n\t\tfor(var y=0; y<widthInCells; y++){\r\n\t\t\tvar div = getDiv(x, y); \r\n\t\t\tvar newCellIsAlive = calculateNewCellState(x, y); \r\n\t\t\tnewGameState[x][y] = newCellIsAlive; \r\n\t\t\tif(newCellIsAlive){\r\n\t\t\t\tchangeToAliveColor(div); \r\n\t\t\t} else {\r\n\t\t\t\tchangeToDeadColor(div); \r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tgameState = newGameState; \r\n}", "title": "" }, { "docid": "ec62337c49d1cf9e673cc50c6325f399", "score": "0.6160096", "text": "winState(player, chest){\n this.winMsg.visible = true;\n this.winMsg2.visible = true;\n this.physics.pause();\n }", "title": "" }, { "docid": "8255bf278153a20db907f2bc6e53e881", "score": "0.61545837", "text": "function FullGameStateMachineClass()\n{\n this.FULL_GAME_ENUMERABLE_STATES =\n {\n loading: {status:'loading full game', associatedObject:loadingAndSplashScreen},\n clickToLaunch: {status:'waiting for user click to launch full game', associatedObject: loadingAndSplashScreen},\n transitionToTitleScreen: {status:'transitioning to title screen', associatedObject: transitionToTitleScreen},\n titleScreen: {status:'title screen', associatedObject: titleScreen},\n modeSelectScreen: {status:'mode select screen', associatedObject: modeSelectScreen},\n languageSelectionScreen: {status: 'language select screen', associatedObject: languageSelectionScreen},\n mandarinCustomizationScreen: {status: 'mandarin customization screen', associatedObject: mandarinCustomizationScreen},\n englishCustomizationScreen: {status: 'english customization screen', associatedObject: englishCustomizationScreen},\n transitionToMiniGame: {status: 'transitioning to mini game', associatedObject: miniGameTransitioner},\n playingMiniGame: {status: 'playing mini game', associatedObject: gameClassManager.currentGame},\n pausedMiniGame: {status: 'mini game paused', associatedObject: gameClassManager.currentGame}\n };\n\n this.currentState = this.FULL_GAME_ENUMERABLE_STATES.loading;\n\n this.loadCurrentState = function(stateToLoad)\n {\n this.currentState = stateToLoad;\n \n }\n\n}", "title": "" }, { "docid": "e5f4f3705e18c1402eac0650534674e4", "score": "0.61519396", "text": "function set_client_state(newstate)\n{\n var connect_error = (C_S_PREPARING == civclient_state)\n && (C_S_PREPARING == newstate);\n var oldstate = civclient_state;\n\n if (civclient_state != newstate) {\n civclient_state = newstate;\n\n switch (civclient_state) {\n case C_S_RUNNING:\n chatbox_text = \" \";\n $.unblockUI(); \n show_new_game_message();\n \n set_client_page(PAGE_GAME);\n setup_window_size();\n\n if (observing) center_tile_mapcanvas(map_pos_to_tile(15,15));\n update_metamessage_on_gamestart();\n deduplicate_player_colors();\n\n break;\n case C_S_OVER:\n setTimeout(show_endgame_dialog, 500);\n break;\n case C_S_PREPARING:\n break;\n default:\n break;\n }\n }\n\n\n}", "title": "" }, { "docid": "fd2667f8f77acbc516fd7f3c9d909c48", "score": "0.6149381", "text": "function changeState(i, stateNum) { //changes the state of the game\r\n\tgame.state.start('state' + stateNum);\r\n}", "title": "" }, { "docid": "abb4b94072106a9cf7cbe6eb21a2a303", "score": "0.6147294", "text": "function sapporo() {\n\t\n\tPhaser.State.call(this);\n\t\n}", "title": "" }, { "docid": "9a7712b4e7cc6d66e0e4c781f315edb0", "score": "0.61461365", "text": "function updateGamePadStatus() {\r\n scangamepads();\r\n\r\n if(typeof controllers[0] != \"undefined\"){\r\n var up = controllers[0].buttons[12];\r\n var bottom = controllers[0].buttons[13];\r\n var a = controllers[0].buttons[0];\r\n var start = controllers[0].buttons[9];\r\n var verticalAxis = controllers[0].axes[1];\r\n\r\n if (up.value == 1) {\r\n inputStates.gamepadup = true;\r\n } else {\r\n inputStates.gamepadup = false;\r\n }\r\n\r\n if (bottom.value == 1) {\r\n inputStates.gamepaddown = true;\r\n } else {\r\n inputStates.gamepaddown = false;\r\n }\r\n\r\n if (a.value == 1) {\r\n inputStates.gamepadspace = true;\r\n } else {\r\n inputStates.gamepadspace = false;\r\n }\r\n\r\n if (start.value == 1) {\r\n inputStates.gamepadstart = true;\r\n } else {\r\n inputStates.gamepadstart = false;\r\n }\r\n\r\n if (verticalAxis < -0.25) {\r\n inputStates.gamepadaxisup = true;\r\n } else {\r\n inputStates.gamepadaxisup = false;\r\n }\r\n\r\n if (verticalAxis > 0.25) {\r\n inputStates.gamepadaxisdown = true;\r\n } else {\r\n inputStates.gamepadaxisdown = false;\r\n }\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "cfe00151c37093dd46601575c2d73cf2", "score": "0.6140839", "text": "function handleGameState(gs) {\n\tgs = JSON.parse(gs);\n\trequestAnimationFrame(() -> paintGame(gs));\n}", "title": "" }, { "docid": "7e8338256c9b48a191beeb62adc73137", "score": "0.61383605", "text": "function GameState(pokeList, spriteList){\n\tthis.pokeList = pokeList;\n\tthis.spriteList = spriteList;\n\n\t// Evaluates to true if the Pokemon at that index has been discovered\n\tthis.isDiscovered = [];\n\tfor (var i = 0; i < pokeList.length; i++) {\n\t\tthis.isDiscovered[this.isDiscovered.length] = false;\n\t};\n\tthis.isClicking = false; //Flag to check if mouse button being held\n}", "title": "" }, { "docid": "bdc624ff05d5a80bbb545f2169b69ed6", "score": "0.613384", "text": "function DoState()\n\t{\n\t}", "title": "" }, { "docid": "7e8780eb06e77f606a035b7db19fd7b2", "score": "0.61335486", "text": "function draw() {\n\n switch (state) {\n//LOADING SCREEN, JUST THE INSTRUCTIONS\n case \"LOAD\":\n //USING MY LOADING FUNCTION\n loading();\n break;\n//STREETZ REFERS TO THE STREETZ LEVEL\n case \"STREETZ\":\n//THE STREETS FUNCTION OBVIOUSLY\n thestreets();\n break;\n//JAILBART BECAUSE WE ARE IN JAIL\n case \"JAILBART\":\n//GAME OVER FUNCTION CONTAINING ALL MY RESETS\n gameover();\n break;\n//JAILBART2 BECAUSE WE ARE STILL IN JAIL AND THIS SLIDE IS SIMPLY INFORMATIONAL\n case \"JAILBART2\":\n//A SIMPLE TEXT DISPLAY\n gameover2();\n\n break;\n//THE ACTUAL JAIL LEVEL\n case \"JAILBART3\":\n//THE JAIL LEVEL FUNCTION\n jail();\n\n break;\n }\n}", "title": "" }, { "docid": "192a464556b4925f837631ae357dbacf", "score": "0.6133067", "text": "getGameState() {\n let gameState = {};\n\n for (let key in this.players) {\n\n if (this.players.hasOwnProperty(key) && this.players[key].username.length > 0) {\n\n gameState[key] = {\n username: this.players[key].username,\n board: this.players[key].getBoardAndTetromino(),\n linesRemoved: this.players[key].linesRemoved,\n nextShape: this.players[key].getNextTetromino()\n };\n }\n }\n\n return gameState;\n }", "title": "" }, { "docid": "8f13be04cc3e64636b4382a7df36b948", "score": "0.61270916", "text": "function draw() {\n background(0);\n\n//set states\n if (state === `title`) {\n title();\n }\n else if (state === `simulation`) {\n simulation();\n }\n else if ( state === `love`) {\n love();\n\n }\n else if (state === `sadness`) {\n sadness();\n }\n}", "title": "" }, { "docid": "b1ac6bdce5967b5149643eaf0d219ad0", "score": "0.6111617", "text": "function handleGameState() {\n if (gameRounds != 0) gameOver = !gameOver;\n\n if (!gameOver) {\n toggleVisibility(starterPage, gamePage);\n }\n\n if (gameOver) {\n toggleVisibility(gamePage, winnerPage);\n\n if (playerWins) winner.innerText = \"PLAYER\";\n if (pcWins) winner.innerText = \"COMPUTER\";\n\n setTimeout(() => {\n toggleVisibility(winnerPage, starterPage);\n\n playerScore.innerText = 0;\n computerScore.innerText = 0;\n }, 4000);\n }\n}", "title": "" }, { "docid": "f1a164c134140fb31d9b83e5116f2d3e", "score": "0.610383", "text": "startGame() {\n\t\tthis.completed = false;\n\t\tthis.gameOver = false;\n\t}", "title": "" }, { "docid": "6dedbdbea1dc46fbb642759ac00f441f", "score": "0.6102948", "text": "function gameInit(){\n\tgamet = new gameStatus();\n}", "title": "" }, { "docid": "69ec832f00fd5194f2ca4894c3108fab", "score": "0.60969615", "text": "function useGameState () {\n const gameState = GameState.getInstance();\n const [state, setState] = useState(gameState.getState());\n\n // on start le jeu\n function newGame () {\n gameState.NewGame();\n setState(gameState.getState());\n }\n\n // on supprime le dernier mouvement\n function undo () {\n gameState.undo();\n setState(gameState.getState());\n }\n\n // on move la tuile\n function move (index) {\n return function () {\n gameState.moveTile(index);\n setState(gameState.getState());\n }\n }\n\n\n return [state.board, state.moves, state.solved, newGame, undo, move];\n}", "title": "" }, { "docid": "3dd982713420c7097edfdcb99827c18e", "score": "0.60916233", "text": "ia() {\n // copy gameState\n const copy_game_state = this.game_state.slice();\n const positions = [];\n // changer ce comportement pour chnger qui commence\n let curPlay = this.startPlayer;\n\n /**\n * Recursive function for analyse positions (player 1 - player 2) \n * @param {Number} step\n */\n const loop = (step) => {\n let obj;\n let i;\n for (i = 0; i < copy_game_state.length; i++) {\n if (copy_game_state[i] == undefined) {\n copy_game_state[i] = curPlay;\n obj = {\n case: i + 1,\n data: this.analyse_state(copy_game_state)[1]\n };\n positions.push(obj);\n copy_game_state[i] = undefined;\n }\n }\n curPlay = this.toogle_player(this.startPlayer);\n if (step < 2) {\n loop(step + 1);\n }\n };\n loop(1);\n if (positions.length > 0) {\n this.display_ia(positions);\n } else {\n /**prettier-ignore */\n this.alert_message([`${this.no_winner_message[Math.floor(Math.random() * this.no_winner_message.length)]}`, 'alert'],\n [\"replay_button\", \"Refaire une partie\", \"replay\"]);\n }\n }", "title": "" }, { "docid": "181bdc33d2df5bcb3d1c61923def00a1", "score": "0.6080254", "text": "function InitializeGame() {\n\n $scope.GameState.running = false;\n $scope.GameState.lines = 0;\n $scope.GameState.score = 0;\n $scope.GameState.level = 1;\n $scope.GameState.tetrominoBag = JSON.parse(JSON.stringify($scope.GameState.fullTetrominoBag));\n $scope.GameState.tetrominoHistory = [];\n $scope.GameState.IsHighscore = false;\n\n backgroundAnimationInfo = { Color: $scope.getGameColor($scope.GameState), AlternateColor: makeColorLighter($scope.getGameColor($scope.GameState), 50), Duration: 1500 - ($scope.level - 1) * 30 };\n\n //get next tetromino\n if ($scope.getSoundFX()) soundEffectsService.play(app.SoundEffectEnum.Drop);\n if ($scope.GameState.nextTetromino) {\n $scope.GameState.fallingTetromino = $scope.GameState.nextTetromino;\n } else {\n $scope.GameState.fallingTetromino = GetNextRandomTetromino();\n }\n $scope.GameState.nextTetromino = GetNextRandomTetromino();\n $scope.GameState.nextTetrominoSquares = Tetromino.getSquares($scope.GameState.nextTetromino);\n\n //initialize game board\n $scope.GameState.board = new Array(Game.BoardSize.h);\n for (var y = 0; y < Game.BoardSize.h; y++) {\n $scope.GameState.board[y] = new Array(Game.BoardSize.w);\n for (var x = 0; x < Game.BoardSize.w; x++)\n $scope.GameState.board[y][x] = 0;\n }\n\n //show the first falling tetromino \n Game.modifyBoard($scope.GameState.fallingTetromino, $scope.GameState.board, Game.BoardActions.ADD);\n\n }", "title": "" }, { "docid": "3cbd737596130d84dd93e8579c6768c9", "score": "0.60753715", "text": "function PreState() {\n}", "title": "" } ]
ae3547ecaa3b876e3285f3b565abac0b
Action, DomNode > Promise[ActionResult], or void
[ { "docid": "0a2705881f4be875902ada2c1a324031", "score": "0.5212168", "text": "function runActionAsync(ruleName, action, context) {\n // wrapping this in an IIFE so that we can momentarily return a mixture\n // of promises and non-promises\n var actionMixed = (function () {\n var actionType = action.actionType;\n switch (actionType) {\n case AssignmentAction.type:\n return performAssignmentAsync(action, context);\n case DialogExpressionAction.type:\n return showDialogExpression(action, context);\n case DialogMessageAction.type:\n return showDialogMessage(action);\n case SwitchViewAction.type:\n return performSwitchViewAction(action);\n case SubmitAction.type:\n return performSubmitActionAsync(ruleName, action);\n case QueryAction.type:\n return performQueryActionAsync(ruleName, action);\n case ExitAction.type:\n return ActionResult.StopRuleSetResult;\n case CloseDocumentAction.type:\n return ActionResult.CloseResult;\n case ChangeAdapterAction.type:\n return performChangeAdapterProperty(action, context);\n }\n\n console.warn(\"Unsupported action type: \" + actionType);\n return null;\n })();\n\n return Q(actionMixed);\n }", "title": "" } ]
[ { "docid": "b19e585f5fe88fade7e5e13df8a34403", "score": "0.6039086", "text": "processAction(senderId,action,result, pageID){\n if(this[action]){\n return Promise.resolve(this[action](senderId,result,pageID))\n } else {\n return Promise.resolve(true);\n }\n }", "title": "" }, { "docid": "abeca1273dd222d1363e25df3234248c", "score": "0.5912515", "text": "_action(){}", "title": "" }, { "docid": "4701e77638958a80129605fc0f4d229a", "score": "0.57393146", "text": "action() {\n throw new Error('Action not implemented!')\n }", "title": "" }, { "docid": "5837efb89fcccd772991aaeef8066173", "score": "0.54918814", "text": "execute() {\n return this.Action.execute();\n }", "title": "" }, { "docid": "ec847b1376498c4c5bf31d7eb17c37b4", "score": "0.54791546", "text": "act() {\n // intentionally left blank\n }", "title": "" }, { "docid": "0a61d1a943c315483c55e5f7cceb32af", "score": "0.54673964", "text": "handleAction(action) { }", "title": "" }, { "docid": "7680b1f968a7a287dfaa8062643472a2", "score": "0.53738666", "text": "act() {\r\n this.actionCallback();\r\n }", "title": "" }, { "docid": "2d7e1ce4abc65bcd6d71235ebe4939da", "score": "0.5358998", "text": "tryToExecuteAction() {\n let success = false;\n\n if (this.states[this.activeState].action) {\n success = true;\n this.states[this.activeState].action();\n }\n\n emit(EVENT_ACTION, {success: success});\n }", "title": "" }, { "docid": "f6d59dc51441d715097a74dd970c7b4a", "score": "0.53329057", "text": "function sendAction () {\n var csrftoken = Cookies.get(\"csrftoken\");\n var xhttp = new XMLHttpRequest();\n //TODO: make async true (add handler)\n xhttp.open(\"POST\", \"submit_action/\", false);\n xhttp.setRequestHeader(\"X-CSRFtoken\", csrftoken);\n var request = actionJSON();\n xhttp.send(request);\n var response = xhttp.responseText;\n\n var d = settings.agentWarn;\n d.innerHTML = settings.activeButton.id.slice(0,-3) + \" action logged\";\n d.hidden = true;\n //Create div element so it's displayed \n loggedAct.innerHTML= settings.activeButton.id.slice(0,-3) + \" action logged\";\n settings.agentWarn.insertAdjacentElement(\"beforeBegin\", d);\n\n //return request == response;\n }", "title": "" }, { "docid": "8abdad1bd8e9f1b59c8131f42e74a537", "score": "0.5321342", "text": "triggerAction() {}", "title": "" }, { "docid": "88036d484039e96acefd92272db69342", "score": "0.5316996", "text": "async _execute( action ){\n \n await this._waitForConnect();\n\n\n }", "title": "" }, { "docid": "e5d7533a158734c29bc0455ef6047cfc", "score": "0.5310882", "text": "function executeFunc(element, action) {\n\t\t\t\t\t\tclearChildren(element);\n\t\t\t\t\t\tvar originalElement = element;\n\t\t\t\t\t\tvar originalAction = action;\n\n\t\t\t\t\t\tvar hasWinRT = !! global.Windows;\n\t\t\t\t\t\tif (hasWinRT) {\n\t\t\t\t\t\t\tWinJS.UI.Fragments.render(action.page, element).done(\n\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t// Call WinJS.UI.processAll to process the behaviors for the newly loaded page.\n\t\t\t\t\t\t\t\t\tWinJS.UI.processAll(originalElement);\n\n\t\t\t\t\t\t\t\t\t// Set the element to the source of the event\n\t\t\t\t\t\t\t\t\tVS.Actions.setElement(originalElement);\n\n\t\t\t\t\t\t\t\t\t// Call execute on each action in the array and pass in the behavior, source, and a set of source specific variables\n\t\t\t\t\t\t\t\t\tif (originalAction.pageLoaded) {\n\t\t\t\t\t\t\t\t\t\toriginalAction.pageLoaded.forEach(function(pageLoadedAction) {\n\t\t\t\t\t\t\t\t\t\t\tpageLoadedAction.execute(originalAction);\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction(error) {\n\t\t\t\t\t\t\t\t\t// Eat up the error\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "5db36db6e62d4b73bc476e5a0110acaf", "score": "0.5286012", "text": "function userAction(action, element) {\n var target = element.attr(\"data-target\");\n switch(action) {\n case 'follow':\n $.get('/User/follow', {follow: target}).done(function(res){\n console.log(res);\n if(res.target){\n updateFollowBtn(element.attr('data-target'), res.action);\n }\n });\n break;\n case 'shutup':\n $.get('/User/shutup', {'target': target}).done(function(res){\n console.log(res);\n if(res.shutup){\n element.addClass('btn-success');\n }\n });\n break;\n }\n}", "title": "" }, { "docid": "069444a6072fb45a727ba4d765e2688b", "score": "0.5281729", "text": "send(action) {\n }", "title": "" }, { "docid": "17b54aec96afea8f420c5ddb39a52176", "score": "0.52752227", "text": "function MyAction() {\n console.log(\"JS CALL\");\n}", "title": "" }, { "docid": "9eb03fdb00ef31092fff7e83c479a7c4", "score": "0.5209801", "text": "function success() {}", "title": "" }, { "docid": "748de2ef6e91809d5a0e9c1dafaa0052", "score": "0.5190741", "text": "function doAction(anAction, anArg){\r\n return anAction(anArg);\r\n}", "title": "" }, { "docid": "0c90d50bf7d4ff3c29ea3ed8dfb330dc", "score": "0.5184665", "text": "function action() {\n return new Action();\n}", "title": "" }, { "docid": "01640392640dab70e5fb09f44338b9d0", "score": "0.5182837", "text": "function noAction() {}", "title": "" }, { "docid": "7505ec6f795a1fb3cbe65fe4d7e9d920", "score": "0.5175929", "text": "function take(Action) {\n Action();\n}", "title": "" }, { "docid": "1b14d9d2a2b68106098ddf75c9a0f3e4", "score": "0.5161248", "text": "run(target, data = {}) {\n if (_options.verbose) console.info('Action.run()', this.name, {\n action: this,\n target: target,\n data: data\n });\n this.running = true;\n target = target || document.body;\n data = Object.assign(data, Action.data(target));\n let canceled = !this.before(target, data);\n var promise = null;\n if (canceled) {\n promise = Promise.reject(new ActionErrorCanceled('Canceled'));\n } else if (this.handler instanceof Function) {\n promise = new Promise((resolve, reject) => this.handler(resolve, reject, data));\n } else if (this.handler instanceof Request) {\n // If there is data to send, recreate the request with the data\n if (Object.keys(data).length > 0) {\n let options = {};\n for (let i in this.handler) options[i] = this.handler[i];\n if (options.method == 'POST') {\n if (target.attributes.enctype && target.attributes.enctype.value == 'application/json') {\n options.body = JSON.stringify(data);\n } else {\n let formData = new FormData();\n for (let key in data) formData.append(key, data[key]);\n options.body = formData;\n }\n } else if (options.method == 'GET') {\n // Append query string to URL with ?/& first as needed\n options.url += (options.url.indexOf('?') < 0 ? '?' : '&') + Object.keys(data).map(key => key + '=' + data[key]).join('&');\n }\n this.handler = new Request(options.url, options);\n }\n promise = fetch(this.handler).then(response => response.json().then(json => response.ok ? json : Promise.reject(json)));\n }\n return promise.then(result => this.after(target, true, result, data), result => this.after(target, false, result, data));\n }", "title": "" }, { "docid": "0094cb65bca3ac0bb707d71390fbb11c", "score": "0.51423866", "text": "execAction(position, vimState) {\n return __awaiter(this, void 0, void 0, function* () {\n throw new Error(\"Not implemented!\");\n });\n }", "title": "" }, { "docid": "e884cf3cd9153dcb98b13a8a034f75fb", "score": "0.5123817", "text": "function simpleActionSample() {\n\n var request = new Sdk.sample_SimpleActionRequest(\"Test String\");\n Sdk.Async.execute(request,\n function (response) {\n var stringOut = response.getStringOut();\n writeToPage(\"Action sample_SimpleAction Output: '\" + stringOut + \"'\");\n },\n function (error) {\n writeToPage(error.message);\n });\n}", "title": "" }, { "docid": "67800631a8c1e6d1093668c9b4c15d0a", "score": "0.51233506", "text": "sendAction(action, ...args) {\n if (Array.isArray(action)) {\n args = action.slice(1).concat(args)\n action = action[0]\n }\n const [actions, event] = action.split('.')\n if (!this.actions[actions]) {\n throw new Error(`Unknown action group ${actions}`)\n }\n if (!this.actions[actions][event]) {\n throw new Error(`Unknown action ${event}`)\n }\n let res\n if (true === this.actions[actions][event]) {\n // this is a \"pass-through\" action (first agument is the result)\n res = args[0]\n } else {\n res = this.actions[actions][event].apply(null, args)\n }\n if (!res || !res.then || !res.catch) {\n this._emit(actions, event, res)\n return null\n }\n const tid = Math.random().toString(0x0f).slice(10, 30)\n this._emit(actions, event, args, tid, 'start')\n res.then(val => this._emit(actions, event, {args, result: val}, tid, 'done'))\n .catch(error => this._emit(actions, event, {args, error}, tid, 'error'))\n return tid\n }", "title": "" }, { "docid": "9f629aab97468dbe0e24acfdee51f491", "score": "0.51075137", "text": "invoke (thing, name, data, timeout) {\n \tif (data === undefined)\n \t\tdata = null;\n \t\t\n \tvar act = function (resolve, reject) {\n \t\tconst uri = thing.uri + \"/actions/\" + name;\n \tconst opts = {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t'Accept': 'application/json',\n\t\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify(data)\n\t\t\t};\n\t\t\t\n \tfetch(uri, opts).then(response => {\n \t\tif (response.ok) {\n \t\t\tif (response.status == 204)\n \t\t\t\tresolve(null); // no content\n \t\t\telse\n \t\t\t\tresolve(response.json());\n \t\t} else\n \t\t\tthrow(new Error(\"action is unknown or failed\"));\n \t}).catch(err => {\n \t\tconsole.log(\"couldn't invoke action \" + name);\n \t\treject(err);\n \t});\n \t\t};\n \t\n return new Promise(function (resolve, reject) {\n act(resolve, reject);\n }); \t\n }", "title": "" }, { "docid": "9f629aab97468dbe0e24acfdee51f491", "score": "0.51075137", "text": "invoke (thing, name, data, timeout) {\n \tif (data === undefined)\n \t\tdata = null;\n \t\t\n \tvar act = function (resolve, reject) {\n \t\tconst uri = thing.uri + \"/actions/\" + name;\n \tconst opts = {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t'Accept': 'application/json',\n\t\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify(data)\n\t\t\t};\n\t\t\t\n \tfetch(uri, opts).then(response => {\n \t\tif (response.ok) {\n \t\t\tif (response.status == 204)\n \t\t\t\tresolve(null); // no content\n \t\t\telse\n \t\t\t\tresolve(response.json());\n \t\t} else\n \t\t\tthrow(new Error(\"action is unknown or failed\"));\n \t}).catch(err => {\n \t\tconsole.log(\"couldn't invoke action \" + name);\n \t\treject(err);\n \t});\n \t\t};\n \t\n return new Promise(function (resolve, reject) {\n act(resolve, reject);\n }); \t\n }", "title": "" }, { "docid": "be1b01f4ad1d798f18b5c427b66beb29", "score": "0.5098722", "text": "async runAction(actionId, instructions, params) {\n const resp = await this._getActionRequest(actionId, instructions, params);\n return resp.status === \"error\" ? resp.error : resp.result;\n }", "title": "" }, { "docid": "b016dc59029ecac2a6a664aa8f4b449f", "score": "0.50974566", "text": "triggerAction() {\n // bass\n }", "title": "" }, { "docid": "05509ceac0a581c7c5874cecedaf5258", "score": "0.5097283", "text": "function _evaluate(func, params, async, successCB, errorCB) {\n if (typeof params != \"undefined\" && typeof params != \"object\") {\n params = params.split(',');\n }\n if (!params) params = []; //IE won't allow null; Need to set to empty array\n\n if (typeof func === \"function\") {\n if (async) {\n params.push(successCB);\n// if (errorCB) params.push(errorCB);\n // async action\n func.apply(this, params);\n }\n else {\n var response = func.apply(this, params);\n if (successCB) successCB(response);\n }\n }\n else {\n throw new MojoException(\"ActionExecutor\", \"Javascript action '\" + func + \"' does not exist. Check your function (case sensitive, or misnamed).\", LOG_ERROR);\n }\n }", "title": "" }, { "docid": "8d54dc36ef4f487a46c10281e165a126", "score": "0.5074136", "text": "function sendPostAction()\n{\n\tlog.debug(\"sendPostAction()\");\n\n return shallContinue();\n}", "title": "" }, { "docid": "0883d69a7d037ce4d5910e65ce6e359d", "score": "0.50619835", "text": "action(relevantArgs, opts) {\n return Promise.resolve(this._action(relevantArgs, opts));\n }", "title": "" }, { "docid": "33deae80b32bbd5c4b0ec34c7a22e3af", "score": "0.50427634", "text": "runInAction(fn) {\n return fn();\n }", "title": "" }, { "docid": "284c7a5830f14d0852bfbab2001cf871", "score": "0.50290763", "text": "function executeFunc(element, action) {\n\t\t\t\t\t\telement.setAttribute(action.attribute, action.attributeValue);\n\t\t\t\t\t}", "title": "" }, { "docid": "a0a801a4bdc3495b17b333e1951c87c3", "score": "0.5019857", "text": "onAction() {}", "title": "" }, { "docid": "4fe0ac0f24a9d8d9a5f7397d1bdf610c", "score": "0.5013615", "text": "_safeFireAction (actionName, ...args) {\n\t\tconst action = get(this, actionName);\n\t\tif (action)\n\t\t{\n\t\t\treturn action(...args);\n\t\t}\n\t}", "title": "" }, { "docid": "a294177a9333a14ed88c75d95c1e4fff", "score": "0.49954128", "text": "function _runAction(node, callback) {\n var act = node['ref'],\n async = node['async'],\n params = node['params'],\n exp = node['exp'],\n response;\n\n if (act) {\n\n var profiler = new Mojo.utils.profiler(\"ACTION_PROFILE: \" + act);\n profiler.mark(\"execute\");\n _actionExecutor.execute({action : act, params : params, async : async,\n success : function (response) {\n profiler.captureTimeFromMark(\"executeTime\", \"execute\");\n Mojo.publishEvent(Mojo.constants.events.kProfile, profiler);\n TRACE (profiler.serialize());\n\n callback(response);\n },\n error : function (error) {\n // Log ??\n callback(\"error\");\n }\n });\n }\n else if (exp) {\n TRACE(\"Executing Mojo expression '\" + exp + \"' response: '\" + response + \"'\", [Mojo.constants.components.FLOW, _name]);\n var resp = _expressionEvaluator.parseAndEvaluate(exp);\n callback(resp);\n }\n else {\n _publishError(\"Invalid ACTION node - missing act or exp\");\n\n }\n\n }", "title": "" }, { "docid": "77190e219d2ec16934597bef71cc32a8", "score": "0.49859604", "text": "launchAction() {\n switch (this.config.actionType) {\n // Simple link\n case 'link' :\n this.gotoUrl()\n break\n\n // Ajax call\n case 'ajax':\n this.callUrl()\n break\n }\n }", "title": "" }, { "docid": "711b1992bcff5ad316164b919e15f5fe", "score": "0.49847773", "text": "function Action() {\n /**\n * Indicates if the action is allowed execution. If there are any rule\n * violations in the validation context, the action is not allowed to\n * execute.\n */\n this.allowExecution = true;\n /**\n * The validation context for the specified action instance.\n */\n this._validationContext = new ValidationContext();\n /**\n * The result of the action. The default value is [Unknown], until the action\n * is executed.\n */\n this.actionResult = ActionResult.Unknown;\n }", "title": "" }, { "docid": "62867143e9d369bf9394075da349749f", "score": "0.49829608", "text": "function action(state, action) {\n return action;\n}", "title": "" }, { "docid": "1bd50dcd53a3f0be27935dfbb027943c", "score": "0.4976488", "text": "function onSuccess() {}", "title": "" }, { "docid": "d9cb94e97926bc33133b11cf1221153e", "score": "0.49722245", "text": "async index ({ request, response, view }){}", "title": "" }, { "docid": "6885c0349eeceedd5e39f8b346a68c92", "score": "0.49549872", "text": "function render(element, action) {\n return __awaiter(this, void 0, void 0, function* () {\n const [blocks, promises] = reconcile(element, action);\n yield Promise.all(promises);\n return blocks;\n });\n}", "title": "" }, { "docid": "047184b0bd2072234f2a62eefb22e716", "score": "0.49483046", "text": "async function request(id, action) {\n\tawait fetch(`http://localhost:9292/api/requests/${id}/${action}`);\n\tlocation.reload();\n}", "title": "" }, { "docid": "84294123ba735239d1f4b7cb7cc347b0", "score": "0.49260384", "text": "async postProcessResult(){\n let autoclick = await get(\"autoclick\");\n if(autoclick){\n $(\"a[href='PO_history.asp']\")[0].click();\n }\n }", "title": "" }, { "docid": "ecc5e52c1952d748370dbaa8aea48f09", "score": "0.4912406", "text": "afterAction(params) { return null }", "title": "" }, { "docid": "545306f54ee2d82ba62bf9ffee67d1cc", "score": "0.48958954", "text": "_getOnClickHandler(action) {\n if(action === TaskConstants.ACTION_ACTION) {\n return () => {\n this.props.actionOnClick();\n }\n }\n return () => {\n alert(action);\n }\n }", "title": "" }, { "docid": "7ac7e1e85de0122787660eadd3e8a6d6", "score": "0.4892072", "text": "static indexAction(request, response) {\n\n }", "title": "" }, { "docid": "991286f0cd06913bfdc090a5c4efd493", "score": "0.4885974", "text": "OnSucess(res) { }", "title": "" }, { "docid": "c7001f587ed857a6846ae6f64c0db8dd", "score": "0.48739335", "text": "function getAction() {\n\t\tif (!hasAction()) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn _response.result.action;\n\t}", "title": "" }, { "docid": "fefce7b4bd803de0bb1e42fe9f86581c", "score": "0.48478547", "text": "function postAjax(action) {\n\t//use window.fetch() API\n\t//app4l is the servlet URL\n\tfetch(\"app4l\", {\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t},\n\t\tmethod: 'POST',\n\t\t// 'myzss' is the id specified on kkjsp tag\n\t\tbody: JSON.stringify(kkjsp.prepare('myzss', {action: action})) // preparing Keikai's request data\n\t})\n .then(function (response) {\n return response.json();\n })\n .then(kkjsp.process) // render change generated by SmartUpdateBridge\n .then(handleAjaxResult); //optional post-processing\n}", "title": "" }, { "docid": "415daee74d2b7cfd83cd7f81876ea299", "score": "0.4847258", "text": "get Action() {\n return \"\";\n }", "title": "" }, { "docid": "2eabc3a724bc31ea8617a5b5a66a5364", "score": "0.4842697", "text": "function execute( $node, role, Action ) {\n new Action( $node, new Function ( '$this', 'return ' + $node.data( 'athenaConfig' ) + '[\\'' + role + '\\']' )( $node ) );\n $node.data( 'acting', true );\n console.info( 'Action ' + role + ' executed with', $node );\n count -= 1;\n if( count === 0 ) {\n $this.trigger( 'acting' );\n }\n }", "title": "" }, { "docid": "e17e67b7e5bcd9ddcd117cfdd48c4d3d", "score": "0.4837122", "text": "handleTeamsMessagingExtensionSubmitAction(context, action) {\n return __awaiter(this, void 0, void 0, function* () {\n throw new Error('NotImplemented');\n });\n }", "title": "" }, { "docid": "66e59a93788c75db6fbdcf596d0bfd8c", "score": "0.48310226", "text": "function doWorkflowActionCall(action, comment, adhocusers, callback)\n {\n var url = \"/Rhythmyx/contentui/aa?action=Workflow\";\n var data = {\"contentId\": $('body').data(\"contentid\")};\n if(comment != null)\n data.comment = comment;\n if(adhocusers != null)\n data.adHocUsers = adhocusers;\n switch(parseInt(action.actiontype))\n {\n case 0: // Checkin\n data.operation = \"checkIn\";\n break;\n case 1: // Force-checkin\n data.operation = \"checkIn\";\n break;\n case 2: // Checkout\n data.operation = \"checkOut\";\n break;\n case 3: //Transition and Checkout\n data.operation = \"transition_checkout\";\n data.triggerName = action.actionname;\n break;\n case 4: //Transition\n data.operation = \"transition\";\n data.triggerName = action.actionname;\n break;\n }\n if(typeof(data.operation) != 'undefined' && data.operation.length > 0)\n {\n $.ajax({\n url: url,\n type: 'POST',\n data: data,\n success: function(data, status, jqXHR){callback(data, status, jqXHR)},\n error: function(jqXHR, status, error){alert(\"An error occurred while attempting workflow action.\");}\n });\n }\n }", "title": "" }, { "docid": "9d4d17ac01a1c8b1ff1bdee0274672bf", "score": "0.48258713", "text": "act(details)\n {\n this.action(details);\n }", "title": "" }, { "docid": "523e4e063bfca0716d1f25a05af2d284", "score": "0.48204648", "text": "function performAction(e)\n{\n const article = document.getElementById('Article').value;\n if(checkArticle(article))\n {\n try{\n postData('/getReview',{article:article})\n // getReview(baseURL,apiKey,article)\n .then(function(data)\n {\n // Add data\n //console.log(data);\n if(typeof data !== \"undefined\")\n {\n try{\n postData('/addReview', {score_tag: data.score_tag,agreement: data.agreement,subjectivity: data.subjectivity,confidence: data.confidence, irony: data.irony} );\n updateUI()\n }\n catch(error){\n console.log(\"error\", error);\n }\n \n }\n \n })\n }catch(error)\n {\n console.log(\"error\", error);\n }\n }\n \n}", "title": "" }, { "docid": "745f5cd388911a904e9a0e25928c8c11", "score": "0.48086354", "text": "function queryAction(query, action) {\n var queryObject = $(query);\n if (queryObject && queryObject.length > 0) {\n return action(queryObject);\n }\n else {\n console.log(\"Query: '\" + query + \"' did not give a parseable result.\");\n }\n}", "title": "" }, { "docid": "b487c21aaab5158bd012c5f119c04060", "score": "0.48077884", "text": "invoke (thing, name, data, timeout) {\n \tif (data === undefined)\n \t\tdata = null;\n \t\t\n \tvar act = function (resolve, reject) {\n \t\tconst uri = thing.uri + \"/actions/\" + name;\n \tconst opts = {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t'Accept': 'application/json',\n\t\t\t\t\t'Authorization': `Bearer ${this.jwt}`,\n\t\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify(data)\n\t\t\t};\n\t\t\t\n \tfetch(uri, opts).then(response => {\n \t\tif (response.ok) {\n \t\t\tif (response.status == 204)\n \t\t\t\tresolve(null); // no content\n \t\t\telse\n \t\t\t\tresolve(response.json());\n \t\t} else\n \t\t\tthrow(new Error(\"action is unknown or failed\"));\n \t}).catch(err => {\n \t\tconsole.log(\"couldn't invoke action \" + name);\n \t\treject(err);\n \t});\n \t\t};\n \t\n return new Promise(function (resolve, reject) {\n act(resolve, reject);\n }); \t\n }", "title": "" }, { "docid": "b487c21aaab5158bd012c5f119c04060", "score": "0.48077884", "text": "invoke (thing, name, data, timeout) {\n \tif (data === undefined)\n \t\tdata = null;\n \t\t\n \tvar act = function (resolve, reject) {\n \t\tconst uri = thing.uri + \"/actions/\" + name;\n \tconst opts = {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t'Accept': 'application/json',\n\t\t\t\t\t'Authorization': `Bearer ${this.jwt}`,\n\t\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify(data)\n\t\t\t};\n\t\t\t\n \tfetch(uri, opts).then(response => {\n \t\tif (response.ok) {\n \t\t\tif (response.status == 204)\n \t\t\t\tresolve(null); // no content\n \t\t\telse\n \t\t\t\tresolve(response.json());\n \t\t} else\n \t\t\tthrow(new Error(\"action is unknown or failed\"));\n \t}).catch(err => {\n \t\tconsole.log(\"couldn't invoke action \" + name);\n \t\treject(err);\n \t});\n \t\t};\n \t\n return new Promise(function (resolve, reject) {\n act(resolve, reject);\n }); \t\n }", "title": "" }, { "docid": "af2ed2ffc095ace95f969cf336f6e45f", "score": "0.48076087", "text": "function n(){// can be called as an API method\np(),// so that events are cleared before user starts waiting for AJAX\nr()}", "title": "" }, { "docid": "e4d259cdee8ab909a7eda723fcee6b59", "score": "0.48024303", "text": "saveAction() {}", "title": "" }, { "docid": "556eb7199f0d7bd22bf81efc86de37fc", "score": "0.47996825", "text": "function XMLPerform(xml,instruction)\n{\n\txml.onreadystatechange=function()\n\t{\n\t\tif(xml.readyState==4 && xml.status==200)\n\t\t\tinstruction();\n\t}\n}", "title": "" }, { "docid": "17517e682fe0fecbd0fc8bfe259f5a83", "score": "0.47962463", "text": "async function fireActions(actionId) {\n if (typeof actionId === \"string\") {\n\n let actionObj = actions.find(action => action.id == actionId);\n if (typeof actionObj.action === 'function') {\n let result = await actionObj.action.apply(this, actionObj.argArr);\n if (typeof actionObj.then === 'string') {\n fireActions.call(this, actionObj.then);\n }\n actionObj.outputParameter.value = result;\n actionObj.outputParameter.state = ['defined'];\n controller.notifyPropertyChange('parameters');\n }\n }\n }", "title": "" }, { "docid": "9964e8ae44a8158853c6a6cda3001975", "score": "0.4795092", "text": "function actionHandler(htmlnode, trigger){\n\t\n\tvar singlemode = null;\n\tvar loadingTimeout;\n\tvar mode = null;\n\tvar form = false;\n\tvar contentType = \"application/x-www-form-urlencoded;charset=UTF-8\";\n\tvar cache = true;\n\tvar processData = true;\n\t\n\tif(typeof htmlnode == 'string' || htmlnode instanceof HTMLElement){\n\t\tvar webappAttributes = [\"action\", \"js\", \"param\", \"formquery\", \"confirm\", \"showhide\", \"loadbar\"];\n\t\tvar conf = {};\n\t\t$.each(webappAttributes, function(key, value){\n\t\t\tdbtn = (trigger == 'dubbelclick' ? \"d\" : \"\");\n\t\t\tconf[value] = $(htmlnode).attr(dbtn+value);\n\t\t});\n\t}\n\telse if(typeof htmlnode == 'object'){\n\t\tconf = htmlnode;\n\t}\n\telse{\n\t\terror('A000','actionHandler input must be object or node!');\n\t}\n\t\n\tif(!conf.action && !conf.js){\n\t\terror('A001','No ajax action or js action defined!');\n\t\treturn;\n\t}\n\telse if(conf.js){\n\t\tmode = 'js';\n\t\tconf.action = conf.js;\n\t}\n\telse if(conf.action){\n\t\tmode = 'ajax';\n\t}\n\t\n\tif(conf.action.indexOf(\"->\") != -1){\n\t\tsinglemode = false;\n\t\tconf.action = conf.action.split(\"->\");\n\t\tconf.subaction = conf.action[1];\n\t\tconf.action = conf.action[0];\n\t}\n\telse{\n\t\tsinglemode = true;\n\t}\n\t\n\tif(!conf.formquery){\n\t\tconf.formquery = false;\n\t}\n\t\n\tif(!conf.loadbar){\n\t\tconf.loadbar = '#loadbar';\n\t}\n\t\n\tif(conf.confirm){\n\t\tif(!confirm(conf.confirm)){\n\t\t\treturn;\n\t\t}\n\t}\n\t\n\tif(mode == 'ajax'){\n\t\t\n\t\tactionPre = conf.action;\n\t\t\n\t\tif(preLoads){\n\t\t\t//preload\n\t\t\t//if(){\n\t\t\t\t\n\t\t\t//}\n\t\t}\n\t\t\n\t\tvar url = '?';\n\t\turl += 'action=' + conf.action;\n\t\tif(!singlemode){\n\t\t\turl += '&subaction=' + conf.subaction;\n\t\t}\n\t\t\n\t\tvar form = null;\n\t\tvar fileMode = false;\n\t\tif(conf.formquery){\n\t\t\tvar formquery = $(conf.formquery);\n\t\t\t\n\t\t\tif(formquery.length == 0){\n\t\t\t\terror('A000', 'Form not found: ' + conf.formquery);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!formquery.is(\"form\")){\n\t\t\t\terror('A000', 'form query points to element wich is not a form');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(formquery.find(\"input[type=file]\").length > 0){\n\t\t\t\tcontentType = false;\n\t\t\t\tprocessData = false;\n\t\t\t\tcache = false;\n\t\t\t\tform = new FormData(formquery[0]);\n\t\t\t\tfileMode = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tform = formquery.serialize();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(conf.param){\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvar json = $.parseJSON(conf.param);\n\t\t\t\tif(fileMode){\n\t\t\t\t\tif(form == null){\n\t\t\t\t\t\tform = new FormData();\n\t\t\t\t\t}\n\t\t\t\t \tform.appendChild('param',json);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(form == null){\n\t\t\t\t\t\tform = $.param(json);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tform += '&' + $.param(json);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(e){\n\t\t\t\turl += '&param=' + conf.param;\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\t$.ajax({\n\t\t\turl: actionUrl+url,\n\t\t\ttype: 'POST',\n\t\t\txhr: function() {\n\t\t\t\tvar myXhr = $.ajaxSettings.xhr();\n\t\t\t\tif(myXhr.upload){\n\t\t\t\t\tmyXhr.upload.addEventListener('progress', function(e){progress(e, conf.loadbar)}, false);\n\t\t\t\t}\n\t\t\t\treturn myXhr;\n\t\t\t},\n\t\t\tbeforeSend: function () {\n\t\t\t\tif(conf.showhide){\n\t\t\t\t\tloadingTimeout = setTimeout(function() {\n\t\t\t\t\t showHideAjaxLoadAnimation(true, conf.showhide);\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t},\n\t\t\tcomplete: function (){\n\t\t\t\tif(conf.showhide){\n\t\t\t\t\tclearTimeout(loadingTimeout);\n\t\t\t\t\tshowHideAjaxLoadAnimation(false, conf.showhide);\n\t\t\t\t}\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\tajaxNodesHandler(data);\n\t\t\t},\n\t\t\terror: function (w) {\n\t\t\t\terror('A015','Request failed: ' + w.statusText);\n\t\t\t},\n\t\t\tdata: form,\n\t\t\tcontentType: contentType,\n\t\t\tcache: cache,\n\t\t\tprocessData: processData\n\t\t});\n\t\tactionPre = conf.action;\n\t}\n\telse if(mode == 'js'){\n\t\tif(typeof window[action] == 'function') {\n\t\t\tvar action = new window[action]();\n\t\t\taction.param = param;\n\t\t\taction.form = form;\n\t\t\tif(typeof action[level] == 'function') { \n\t\t\t\taction[level]();\n\t\t\t\tif(action.html){\n\t\t\t\t\tajaxNodesHandler(action.html);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\terror('A011', 'Level \"'+level+'\" not found!');\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\terror('A010', 'Action \"'+action+'\" not found!');\n\t\t}\n\t\tjsPre = conf.js;\n\t}\n\telse{\n\t\terror('A008','Method: \"' + method + '\" does not exist. Use ajax or javascript!');\n\t}\n\t\n}", "title": "" }, { "docid": "ef0a75dce5df24cabc91d267c964cddf", "score": "0.47911474", "text": "dispatch(action) {\n\t\t\n\t\t// Only non-client actions are allowed to be sent by the server\n\t\tif ( ! this._protocol.isClient[action.type]) {\n\t\t\tsuper.dispatch(action);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "642fd49f69a1d6ee583df34c05694cf0", "score": "0.47897464", "text": "function fnVoid() {}", "title": "" }, { "docid": "67f528419084f232ac59175dfeb92a53", "score": "0.47840697", "text": "action(cache) {\n this.callNextAction(cache);\n }", "title": "" }, { "docid": "72ca0fe493741fb2b0ef3deb083d58d5", "score": "0.47830495", "text": "async function main(){\n let res = await fakeAjax('http://someurl.com/posts/1')\n return res\n}", "title": "" }, { "docid": "f284b5dab7ee04725919c4cf8b9a1670", "score": "0.4772848", "text": "async handle() {\n\t\tconst { ctx, next } = this;\n\t\tconst { request } = ctx;\n\t\tlet action = ctx.params.action || 'index';\n\t\taction = action.replace(/^./, action[0].toUpperCase());\n\t\tconst actionHandler = `on${action}`;\n\n\t\tif (typeof this[actionHandler] === 'function') {\n\t\t\ttry {\n\t\t\t\tLogger.debug(JSON.stringify({\n\t\t\t\t\tinfo: '[render page] =>' + ctx.originalUrl,\n\t\t\t\t\tseqReqId: request.$reqSeqId,\n\t\t\t\t}));\n\t\t\t\tawait this[actionHandler]();\n\t\t\t} catch (e) {\n\t\t\t\tLogger.error(JSON.stringify({\n\t\t\t\t\tinfo: '[render page 50x] =>' + ctx.originalUrl,\n\t\t\t\t\tdetail: e.stack,\n\t\t\t\t\tseqReqId: request.$reqSeqId,\n\t\t\t\t}));\n\t\t\t\tawait utilLib.render50X(ctx);\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.error(JSON.stringify({\n\t\t\t\tinfo: '[render page 404] =>' + ctx.originalUrl,\n\t\t\t\tseqReqId: request.$reqSeqId,\n\t\t\t}));\n\t\t\tawait utilLib.render404(ctx);\n\t\t}\n\t}", "title": "" }, { "docid": "6b6943404785fe523be65c784f2f33ba", "score": "0.47704872", "text": "async execute () {\n if (this._requestBody) {\n const response = this._requestHandler[this._requestMethod](this._urlBuilder.build(), this._requestBody)\n this._requestBody = null\n return response\n } else {\n return this._requestHandler[this._requestMethod](this._urlBuilder.build())\n }\n }", "title": "" }, { "docid": "27bde0005c525194acb64e56930d8dcf", "score": "0.47686127", "text": "post () {}", "title": "" }, { "docid": "07a9725d01360706fc5289519ea07f44", "score": "0.4743267", "text": "function phpSend(action) {\n http.open('get', 'index.php?action='+action);\n http.onreadystatechange = handleResponse;\n http.send(null);\n}", "title": "" }, { "docid": "d90d28f506f3ffcd5ae318be0d402ba4", "score": "0.47416332", "text": "success (data) {}", "title": "" }, { "docid": "dd7c831075e5d6cd3982b19d4a13fb5d", "score": "0.47290942", "text": "get Action() {\n return \"donation_form_ajax\";\n }", "title": "" }, { "docid": "dab0f3525d3d364c6e1f64cc7e484378", "score": "0.47193977", "text": "function doNothing(error, result) { }", "title": "" }, { "docid": "14d1712830518ee44f50bbc218eeec2e", "score": "0.47150323", "text": "act(action)\n {\n //do next action if no action was provided\n if(action == null && this.nextAction != null)\n {\n action = this.nextAction;\n this.nextAction = null;\n }\n\n if(this.currentAction == null || this.currentAction.isInterruptible())\n {\n this.currentAction = action;\n\n //TODO: finish?\n this.currentAction.start(this.getEntity());\n\n return true;\n }\n\n this.nextAction = action;\n\n return false;\n }", "title": "" }, { "docid": "2feb5dca84cf736533ddedd629f1eb4e", "score": "0.47149715", "text": "function fakeAjaxResponse() {\n return function() {\n node.addChild(fakeJsonResult);\n // Remove the 'loading...' status:\n node.setLazyNodeStatus(DTNodeStatus_Ok);\n };\n }", "title": "" }, { "docid": "88862067627f46155df89be6fe3b86e5", "score": "0.47093555", "text": "function executeAction() {\n switch (action) {\n case \"concert-this\":\n concertThis();\n break;\n\n case \"spotify-this-song\":\n spotifyThisSong();\n break;\n\n case \"movie-this\":\n movieThis();\n break;\n\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n };\n}", "title": "" }, { "docid": "9e5d08613fd6f563d9c72bc802903c00", "score": "0.47076806", "text": "async index({ request, response, view }) {}", "title": "" }, { "docid": "d5c6c91285c44505de666bc7e3208163", "score": "0.47054785", "text": "function publishResult(){}", "title": "" }, { "docid": "1d5600f7f2cd152c136338f10d2cd0cb", "score": "0.4705144", "text": "fireClick() {}", "title": "" }, { "docid": "eaec47cdfd73fa2c5d52883b237f09ea", "score": "0.47046393", "text": "function generateActionResultMessage(item, id, action, success) {\n if (success) {\n return item + \" \" + id + \" was \" + action + \"d\";\n } else {\n return \"Failed to \" + action + \" \" + item.toLowerCase();\n }\n }", "title": "" }, { "docid": "e0a1cc09fe325c6472de67c811ca3be8", "score": "0.4700321", "text": "function OnActionSucceeded(result, userContext, methodName) {\r\n switch (methodName) {\r\n case \"FullAccess\":\r\n {\r\n //\r\n if (result == false)\r\n {\r\n SetDisableBaseFields();\r\n }\r\n\r\n break;\r\n }\r\n case \"DocumentVerified\":\r\n {\r\n document.getElementById('cbDocVerified').disabled = true;\r\n\r\n if (document.getElementById('btCreateRequest'))\r\n {\r\n document.getElementById('btCreateRequest').disabled = false;\r\n }\r\n\r\n break;\r\n }\r\n default:\r\n {\r\n break;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "592a375b58d8ff1429c5afbae2a04c53", "score": "0.46872267", "text": "function myVoid() {\n return;\n}", "title": "" }, { "docid": "592a375b58d8ff1429c5afbae2a04c53", "score": "0.46872267", "text": "function myVoid() {\n return;\n}", "title": "" }, { "docid": "78488b61381269a9d8e43eb6cd3e3b00", "score": "0.4678614", "text": "function doGet(){\n\n return pageIndex();\n}", "title": "" }, { "docid": "43eff1658fea56999b243beb7cb729dd", "score": "0.4673011", "text": "function performAction( elem )\n{\n\tvar action = $(elem).val();\n\tvar element = elem;\n\tvar jobId = $(elem).attr('id');\n\tswitch( action )\n\t{\n\t\tcase '1':\n\t\t\tpromptBeforeClosingAJobInActiveJobs( element );\n\t\t\tbreak;\n\t\tcase '2':\n\t\t\tpromptForRenewingAJobInActiveJobs( element , jobId);\n\t\t\tbreak;\n\t\tcase '3':\n\t\t\tshareJobPopup( element );\n\t\t\tbreak;\n\t\tcase '4':\n\t\t\tpromptBeforeClosingAJobInExpiredJobs( element );\n\t\t\tbreak;\n\t\tcase '5':\n//\t\t\tpromptForRenewingAJobInExpiredJobs( element , jobId);\n\t\t\tpromptForRenewingAJobInActiveJobs( element , jobId);\n\t\t\tbreak;\n\t\tcase '7':\n\t\t\tpromptBeforeDeletingJob( element );\n\t\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "da6492f6ce89feb6adb094333e3ebede", "score": "0.4670264", "text": "function triplea_ajax_action(url, callback, _method, _data, sendJSON = true)\r\n {\r\n let xmlhttp = new XMLHttpRequest();\r\n xmlhttp.onreadystatechange = function () {\r\n if (xmlhttp.readyState === 4 && xmlhttp.status === 200)\r\n {\r\n try\r\n {\r\n var data = JSON.parse(xmlhttp.responseText);\r\n }\r\n catch (err)\r\n {\r\n console.log(err.message + \" in \" + xmlhttp.responseText, err);\r\n return;\r\n }\r\n callback(data);\r\n }\r\n };\r\n xmlhttp.open(_method, url, true);\r\n if (!sendJSON) {\r\n xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');\r\n }\r\n xmlhttp.send(_data);\r\n }", "title": "" }, { "docid": "47766bdb2f9bb17104dd4f84c781d55e", "score": "0.46630624", "text": "post() {\n //TODO\n }", "title": "" }, { "docid": "f559ad16f59f1d1f4f53eed5e562e217", "score": "0.46624422", "text": "function clientCall(action) {\n return new Promise((resolve, reject) => {\n action((err, result) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(result);\n }\n });\n });\n}", "title": "" }, { "docid": "1c830decddb3ad58f133d7ab669ee267", "score": "0.46599624", "text": "get action() {\n\t\treturn this.__action;\n\t}", "title": "" }, { "docid": "310c33a5fd48456b635a208eff19d2f3", "score": "0.46452108", "text": "function performAction(e) {\n e.preventDefault();\n\n //get user input\n const zipCode = document.getElementById('zip').value;\n const content = document.getElementById('feelings').value;\n\n if (zipCode !== '') {\n generateBtn.classList.remove('invalid');\n getWeatherData(baseUrl, zipCode, apiKey)\n .then(function(data) {\n // add data to POST request\n postData('/add', { temp: convertKelvinToCelsius(data.main.temp), date: newDate, content: content });\n }).then(function() {\n // call updateUI to update browser content\n updateUI()\n }).catch(function(error) {\n console.log(error);\n alert('The zip code is invalid. Try again');\n\n });\n userInfo.reset();\n } else {\n generateBtn.classList.add('invalid');\n }\n\n\n}", "title": "" }, { "docid": "62d10eef8ca25190a72393899018baf9", "score": "0.46381637", "text": "invoke (thing, name, data, timeout) {\n \tlet server = this;\n \tif (data === undefined)\n \t\tdata = null;\n \t\t\n \tvar act = function (resolve, reject) {\n \t\tconst uri = thing.uri + \"/actions/\" + name;\n \t\tlet timer = setTimeout(function () {\n \t\t\treject('timeout on action ' + name);\n \t\t}, timeout);\n \tconst opts = {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t'Authorization': `Bearer ${server.jwt}`,\n\t\t\t\t\t'Accept': 'application/json',\n\t\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify(data)\n\t\t\t};\n\t\t\t\n \tfetch(uri, opts).then(response => {\n \t\tclearTimeout(timer);\n \t\tif (response.ok) {\n \t\t\tif (response.status == 204)\n \t\t\t\tresolve();\n \t\t\telse\n \t\t\t\tresolve(response.json());\n \t\t} else\n \t\t\tthrow(new Error(\"action is unknown or failed\"));\n \t}).catch(err => {\n \t\tconsole.log(\"couldn't invoke action \" + name);\n \t\tclearTimeout(timer);\n \t\treject(err);\n \t});\n \t\t};\n \t\n return new Promise(function (resolve, reject) {\n act(resolve, reject);\n }); \t\n }", "title": "" }, { "docid": "decd78dbe599037dc0f425a254c4e574", "score": "0.46287352", "text": "function genericXPathAction(xpathExpression, xpathAction) {\n var objects = document.evaluate(\n xpathExpression, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n\n for (var i = 0; i < objects.snapshotLength; i++) {\n object = objects.snapshotItem(i);\n eval(xpathAction);\n }\n}", "title": "" }, { "docid": "d4ba9c2bf01e02c60d16263e631dd26c", "score": "0.46271288", "text": "visit(){\n\t\t\n\t\treturn this.commit();\n\t}", "title": "" }, { "docid": "fb4686c941de24c1d6286146b6f0df9c", "score": "0.462679", "text": "function endAction() {\n // end action\n if (action === 0) {\n $.ajax({\n datatype: 'JSON',\n type: 'POST',\n url: '/service/transport?act=end',\n data: {\n _id: _id\n },\n success: function(result) {\n _id = null;\n route = null;\n action = 1;\n // set text for 'ACT' button\n $('#act').text('Init');\n }\n })\n }\n // init action\n else if (action === 1) initAction();\n}", "title": "" }, { "docid": "7f5102fa4753296666f7749d0795748e", "score": "0.46154866", "text": "function checkForActions(xml_data, stepId, taskId){\n \n $(xml_data).find(\"step\").each(function() {\n if($(this).find(\"step-id\").text() == stepId){\n $(this).find(\"sub-step\").each(function() { \n if($(this).find(\"value\").text() == taskId){\n // when landing in here, I've got the correct action element\n $(this).find(\"action\").each(function() {\n \n // evaluate the action and call specific functions $(this).attr(\"type\")\n var type = $(this).attr(\"type\"); \n if(type == \"task_overlay\"){\n \n var section = $(this).attr(\"section\");\n var group = $(this).attr(\"group\");\n var helper_type = $(this).attr(\"helper_type\");\n var variable_name = $(this).attr(\"variable_name\");\n var read = $(this).attr(\"read\");\n var value = $(this).text().replace(/(\\r\\n|\\n|\\r)/gm,\"\");\n \n // create action, that it can get removed when task is closed\n var actionName = $(this).attr(\"type\") + \"_\" + $(this).attr(\"variable_name\");\n \n addAction(type, section, variable_name, value, stepId, taskId, actionName, {\"helper_type\":helper_type, \"group\":group, \"read\":read });\n \n }else if(type == \"autopilot\") {\n \n var section = $(this).attr(\"section\");\n var group = $(this).attr(\"group\");\n var helper_type = $(this).attr(\"helper_type\");\n var variable_name = $(this).attr(\"variable_name\");\n var value = $(this).text().replace(/(\\r\\n|\\n|\\r)/gm,\"\");\n \n // create action, that it can get removed when task is closed\n var actionName = $(this).attr(\"type\") + \"_\" + $(this).attr(\"variable_name\");\n addAction(type, section, variable_name, value, stepId, taskId, actionName, {\"helper_type\":helper_type, \"group\":group});\n \n }else if(type ==\"move_edupack\") {\n var section = $(this).attr(\"section\");\n var group = $(this).attr(\"group\");\n var helper_type = $(this).attr(\"helper_type\");\n var variable_name = $(this).attr(\"variable_name\");\n var value = $(this).text().replace(/(\\r\\n|\\n|\\r)/gm,\"\");\n \n var actionName = $(this).attr(\"type\") + \"_\" + $(this).attr(\"variable_name\");\n addAction(type, section, variable_name, value, stepId, taskId, actionName, {});\n } else {\n var section = $(this).attr(\"section\");\n var variable_name = $(this).attr(\"variable_name\");\n var value = $(this).attr(\"value\");\n var actionName = $(this).attr(\"type\") + \"_\" + $(this).attr(\"variable_name\");\n addAction(type, section, variable_name, value, stepId, taskId, actionName, {});\n }\n });\n }\n }); \n }\n });\n \n return true;\n}", "title": "" }, { "docid": "0b6b2808c4cd84202f61813a777a5974", "score": "0.46150446", "text": "function executeAction(isValid, action)\n{\n if (isValid==false)\n {\n return false;\n }\n \n // null and empty check string\n if(!action || action==\"\" || action==null)\n {\n alert(\"No Action specified in <xenos:image tag>.\\n\\n Please Specify the action.\")\n }\n\n var formAction= document.forms[0].action;\n var newFormAction = \"\"; \n\n /************************************************\n ? sign not exists in the form Action\n just append it to the exisiting formAction \n and append the action to form the new formAction\n *************************************************/\n if(formAction.indexOf('?')==-1)\n {\n newFormAction = formAction + '?' + action;\n }\n else\n {\n /*********************************************\n substring formAction upto '?' sign and append action to it\n **********************************************/\n uri = formAction.substr(0,formAction.indexOf('?'));\n newFormAction = uri + '?' + action;\n }\n // set formAction to new action \n document.forms[0].action = newFormAction;\n\n hideBodyNshowProcessing(); \n}", "title": "" }, { "docid": "7c74ea10e6a916c01b08e3588fe30124", "score": "0.46145657", "text": "waitAndActOne(actions) {\n debug('waitAndActOne()');\n return this.waitNew(actions, this.options.timeout)//()\n .then(({ action, element, index }) => {\n\n if (element) { // if element was found\n debug('waitAndActOne(): element found, element index:', index);\n\n return this._ifActionSleep(action).then(() => {\n debug('waitAndActOne(): paused if required, checking further actions...');\n\n if (action.scroll) { // ... and we need to scroll to it\n return ( (typeof action.scroll === 'boolean') ?\n Promise.resolve(element) :\n this.driver.findElement({ css: action.scroll }) )\n .then((elementToScrollTo) => {\n debug('waitAndActOne(): wait element found, will scroll: element index:', index);\n return this.scrollIntoView(elementToScrollTo);\n //return element.click();\n })\n //.then((element) => element.click())\n .then(() => {\n debug('waitAndActOne(): clicked: index:', index, ', action:', action);\n return true;\n });\n } // if (action.scroll)\n\n if (action.click) { // ... and we need to click on it\n return ( (typeof action.click === 'boolean') ?\n Promise.resolve(element) :\n this.driver.findElement({ css: action.click }))\n .then((elementToClick) => {\n debug('waitAndActOne(): wait element found, will click: index:', index);\n return this.scrollAndClick(elementToClick)\n //return element.click();\n })\n //.then((element) => element.click())\n .then(() => {\n debug('waitAndActOne(): clicked: index:', index, ', action:', action);\n return true;\n });\n } // if (action.click)\n\n if (typeof action.reload !== 'undefined' && action.reload !== null && action.reload !== false) {\n if (typeof action.reload === 'number') {\n if (action.reload <= 0) return Promise.reject('waitAndActOne(): Maximum reload attempt exceeded');\n action.reload--;\n }\n debug('waitAndActOne(): element found, will reload: index:', index, ', action:', action);\n return this.driver.navigate().refresh() // reload current page\n .then(() => Promise.resolve(true)) // need to continue with same action\n } // action.reload\n\n if (action.cancel) {\n debug('waitAndActOne(): element found, will cancel: index:', index, ', action:', action);\n return Promise.resolve(false); // no need to click if this element\n } // action.cancel\n\n //todo what is this scenario?\n debug('waitAndActOne(): element found, but no actions defined: index:', index, ', action:', action);\n return Promise.resolve(true); // no actions defined for the element found - do nothing\n }); // ifActionSleep(action).then\n\n } // if (element)\n debug('waitAndActOne(): none of elements found', actions);\n return Promise.resolve(false); // need to wait more (if not timed out)\n });\n }", "title": "" }, { "docid": "4d034978f9bf6c27eb17a22618f5afa4", "score": "0.46082133", "text": "function postOk (nodeId)\n{\n\tn = $(\"#\" + nodeId + \"-status\");\n\tn.html (\"\");\n\tn.removeClass (\"perror\");\n}", "title": "" } ]
6be9a24a06f7f5a9b59ec79b716fbac2
MAKE A PRIMARY KEY FOR DATASTORE WITHOUT ANY ID NOTE: DATASTORE SPECIFIC
[ { "docid": "89e1a0b9803d4d8d9fc4c71b1d104bc8", "score": "0.606112", "text": "function getNewKey() {\n return datastoreClient.key( [ kind ] );\n }", "title": "" } ]
[ { "docid": "74c648f34c36b7cc7575b22ff0f23310", "score": "0.6694348", "text": "function processOnlyPrimaryKey( entity ) {\n try {\n //EXPLICIT CHECK FOR PRIMARY KEY IN DATASTORE NOTE: DATASTORE SPECIFIC\n if( structure[ primaryKey ].type === 'INTEGER' ) {\n entity[ primaryKey ] = parseInt( entity[ datastoreClient.KEY ].id );\n } else {\n entity[ primaryKey ] = entity[ datastoreClient.KEY ].name;\n }\n return entity;\n } catch( error ) {\n throw error;\n }\n }", "title": "" }, { "docid": "34aaae235b1ae12e3a483d6ef2296edc", "score": "0.63539565", "text": "function redisKey (doc: ObjWithId): string {\n return `doc:${doc.id}`\n}", "title": "" }, { "docid": "5ca28f4821c8606114fe4c13262ca125", "score": "0.6336685", "text": "function IDENTITY(x) { return x; }", "title": "" }, { "docid": "562cb0b084cca31bbe6dd49e04aa1368", "score": "0.6158947", "text": "function toPrimaryKey(input) {\r\n if (input === null)\r\n return 0;\r\n if (typeof input === \"string\" && (input.startsWith(\"$uid\") || isGuid(input))) {\r\n return input;\r\n }\r\n return parseInt(input.toString(), 10);\r\n }", "title": "" }, { "docid": "f4fd8bbfd579ff91ecd509f8897f1c59", "score": "0.6145569", "text": "static get PRIMARY_KEY() {\n return \"board_seq\";\n }", "title": "" }, { "docid": "cb08a976c1171b4321969044c8fa9751", "score": "0.6084801", "text": "function getKeyFromID(id){return'.'+id;}", "title": "" }, { "docid": "812fbb3b54d5d14aa4e2835e9454163a", "score": "0.5999403", "text": "function setId(entity){\n entity['id'] = entity[datastore.KEY].id;\n return entity;\n}", "title": "" }, { "docid": "1dc8604c2d06c1e18ae5eb9f297de55f", "score": "0.5972739", "text": "function createId(record, i) {\n return 'holder--' + record.datastore + record.uid + '-' + i\n}", "title": "" }, { "docid": "e1aee39f9aed38a80ab1e077d4e75749", "score": "0.5963768", "text": "function pouchSwapPrimaryToId(primaryKey, docData) {\n // optimisation shortcut\n if (primaryKey === '_id') {\n return docData;\n }\n\n var idValue = docData[primaryKey];\n var ret = (0, _util.flatClone)(docData);\n delete ret[primaryKey];\n ret._id = idValue;\n return ret;\n}", "title": "" }, { "docid": "382a0a65ed97433ccbb3c2cf634612e8", "score": "0.5916755", "text": "function keyToId(key) { return parseInt(key, 36); }", "title": "" }, { "docid": "6b58cb8580a9559e866744182d0544b6", "score": "0.586799", "text": "function hyperDbKeyToId (key) {\n var components = key.split('/')\n return components[components.length - 1]\n}", "title": "" }, { "docid": "04d3e44034b34b6937f6eebec3f7b14d", "score": "0.5862646", "text": "_addDefaultPrimaryKey() {\n var isFined = false;\n _each(this.fields, field => {\n if (field['decorators'] === 'primaryKey()') {\n isFined = true;\n }\n });\n\n if (!isFined) {\n this.fields.unshift({\n property: 'id',\n decorators: 'primaryKey()'\n });\n }\n }", "title": "" }, { "docid": "490ede425b01918addcf2f9707175ecf", "score": "0.5861266", "text": "getStoreID(json){\n\t\tvar key = json.data.id;\n\t\treturn key;\n\t}", "title": "" }, { "docid": "4bfa713a086d0b8a12c18a92f54f653e", "score": "0.5838646", "text": "ComputeKeyIdentifier() {\n\n }", "title": "" }, { "docid": "32265fdba3e3be5b022bdc36fbaddd94", "score": "0.5835921", "text": "function _createDataKey(key) {\n\t\treturn key + \"_data\";\n\t}", "title": "" }, { "docid": "c7f84becee8b2734640b2b14c04e91c8", "score": "0.58330774", "text": "async GetIdentityPk(tx) {\n tx = this.ValidateOrDefault(tx, 'keyval', 'readonly');\n // Will fail if no such key exists.\n return await tx.objectStore('keyval').get('id-key');\n }", "title": "" }, { "docid": "3c78475fdf7b641e7666cb93e1e12eaf", "score": "0.58225816", "text": "denormalizePrimaryKey(data, primaryKey, prop) {\n const platform = this.driver.getPlatform();\n const pk = platform.getSerializedPrimaryKeyField(primaryKey);\n if (utils_1.Utils.isDefined(data[pk], true) || utils_1.Utils.isDefined(data[primaryKey], true)) {\n let id = data[pk] || data[primaryKey];\n if (prop.type.toLowerCase() === 'objectid') {\n id = platform.denormalizePrimaryKey(id);\n }\n delete data[pk];\n data[primaryKey] = id;\n }\n }", "title": "" }, { "docid": "a9bcf6b07ebcc63dae176726b08ce376", "score": "0.5816284", "text": "_getUniqueKey() {\n\t\tif (this.key) {\n\t\t\treturn this.key;\n\t\t}\n\n\t\treturn this._id;\n\t}", "title": "" }, { "docid": "65faa65c1135c855d50962ea500fb41c", "score": "0.5811781", "text": "denormalizePrimaryKey(data, primaryKey, prop) {\n const platform = this.driver.getPlatform();\n const pk = platform.getSerializedPrimaryKeyField(primaryKey);\n if (Utils_1.Utils.isDefined(data[pk], true) || Utils_1.Utils.isDefined(data[primaryKey], true)) {\n let id = data[pk] || data[primaryKey];\n if (prop.type.toLowerCase() === 'objectid') {\n id = platform.denormalizePrimaryKey(id);\n }\n delete data[pk];\n data[primaryKey] = id;\n }\n }", "title": "" }, { "docid": "0fa1783ee92c20b036c620506032e8f1", "score": "0.5799891", "text": "static createRedisKey (users,socket,info,newMsgId,type,title) {\r\n var date = new Date();\r\n var currentDate = date.getHours() + \":\" + date.getMinutes() + \":\" + date.getSeconds()\r\n // Key for redis: MegaApp:type:msgId:authorId:author:dateOfPublication:color:lng:lat:title | value\r\n var dbKey = \"MegaApp:\" + type + \":\" + newMsgId + \":\" + users[socket.id].id + \":\" + info.content.author + \":\" +\r\n currentDate + \":\" + info.content.color + \":\" + + info.content.position.lng +\r\n \":\" + info.content.position.lat + \":\" + title;\r\n return dbKey;\r\n }", "title": "" }, { "docid": "f0b635a172acf8e708237944463295df", "score": "0.5799513", "text": "function _dbKey (key) {\n return LEVEL_DB_PREFIX + '_' + key\n}", "title": "" }, { "docid": "cede606b6561018016f08bd9a83adc9b", "score": "0.5737738", "text": "set key(value) {\n this._id = value;\n }", "title": "" }, { "docid": "4a6a294b386885677b8e658f97a6d0ce", "score": "0.57307136", "text": "function fromDatastore(obj) {\n obj.id = obj[Datastore.KEY].id;\n return obj;\n}", "title": "" }, { "docid": "dd0814feda9b8fa11fab6dfda320ae50", "score": "0.5703784", "text": "function generateId(index, id) { // 110\n var generatedId = index; // 111\n // 112\n if (!generatedId) { // 113\n throw new Meteor.Error(400, m.specifyIndex); // 114\n } // 115\n // 116\n if (id) { // 117\n generatedId += '_' + id; // 118\n } // 119\n // 120\n return generatedId; // 121\n } // 122", "title": "" }, { "docid": "2eeab83faf49f8f2b396ae7c31756e20", "score": "0.5689455", "text": "function openpgp_type_keyid() {\n\t/**\n\t * Parsing method for a key id\n\t * @param {String} input Input to read the key id from \n\t * @param {integer} position Position where to start reading the key \n\t * id from input\n\t * @return {openpgp_type_keyid} This object\n\t */\n\tfunction read_packet(input, position) {\n\t\tthis.bytes = input.substring(position, position+8);\n\t\treturn this;\n\t}\n\t\n\t/**\n\t * Generates debug output (pretty print)\n\t * @return {String} Key Id as hexadecimal string\n\t */\n\tfunction toString() {\n\t\treturn util.hexstrdump(this.bytes);\n\t}\n\t\n\tthis.read_packet = read_packet;\n\tthis.toString = toString;\n}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "ad3147bfaab820701be09ae741d8abcf", "score": "0.5677521", "text": "function getKeyFromID(id) {\n\t return '.' + id;\n\t}", "title": "" }, { "docid": "b337b423c37dd54ec0374c3843d0121a", "score": "0.5624119", "text": "function getKey( id ) {\n return datastoreClient.key( [ kind, id ] );\n }", "title": "" }, { "docid": "f71f3ef58a79280f3d1f56c2c5d00e81", "score": "0.5623632", "text": "function getKeyFromID(id) {\n return '.' + id;\n }", "title": "" }, { "docid": "e766dfd18c35701144e8928a770aa89b", "score": "0.56214404", "text": "function createWebStorageSequenceNumberKey(persistenceKey) {\r\n return SEQUENCE_NUMBER_KEY_PREFIX + \"_\" + persistenceKey;\r\n}", "title": "" }, { "docid": "12d9c0cb36585bdb25e5daf8291e7ceb", "score": "0.5587413", "text": "function primaryClientStore(txn) {\r\n return txn.store(DbPrimaryClient.store);\r\n}", "title": "" }, { "docid": "12d9c0cb36585bdb25e5daf8291e7ceb", "score": "0.5587413", "text": "function primaryClientStore(txn) {\r\n return txn.store(DbPrimaryClient.store);\r\n}", "title": "" }, { "docid": "12d9c0cb36585bdb25e5daf8291e7ceb", "score": "0.5587413", "text": "function primaryClientStore(txn) {\r\n return txn.store(DbPrimaryClient.store);\r\n}", "title": "" }, { "docid": "12d9c0cb36585bdb25e5daf8291e7ceb", "score": "0.5587413", "text": "function primaryClientStore(txn) {\r\n return txn.store(DbPrimaryClient.store);\r\n}", "title": "" }, { "docid": "12d9c0cb36585bdb25e5daf8291e7ceb", "score": "0.5587413", "text": "function primaryClientStore(txn) {\r\n return txn.store(DbPrimaryClient.store);\r\n}", "title": "" }, { "docid": "d428bf327b26308b774030583c9a9379", "score": "0.5548794", "text": "function fastEntityKey(d) {\n var mode = context.mode();\n var isMoving = mode && /^(add|draw|drag|move|rotate)/.test(mode.id);\n return isMoving ? d.id : osmEntity.key(d);\n }", "title": "" }, { "docid": "731cb8870e4f75489b381d31ec2dfe76", "score": "0.5548738", "text": "function IdGenerator(minLength, key, cache, prefix, generateAhead) {\n\t\n\tif(cache)\n\t\t//Create an in memory array if cache == true else use the cache object given\n\t\tthis.cache = new Store((cache === true ? [] : cache), prefix);\n\telse\n\t\tthis.cache = false;\n\t\n\tthis.minLength = minLength;\n\tthis.key = key;\n\tthis.generateAhead = generateAhead;\n\t//Create a hasher\n\tthis.hashids = new Hashids(this.key, this.minLength);\n\n\tif(this.generateAhead) {\n\t\t//TODO Generate ahead ids\n\t}\n}", "title": "" }, { "docid": "539c3bafb25d38614d26f0a721380181", "score": "0.55402046", "text": "function primaryClientStore(txn) {\n return txn.store(DbPrimaryClient.store);\n}", "title": "" }, { "docid": "539c3bafb25d38614d26f0a721380181", "score": "0.55402046", "text": "function primaryClientStore(txn) {\n return txn.store(DbPrimaryClient.store);\n}", "title": "" }, { "docid": "539c3bafb25d38614d26f0a721380181", "score": "0.55402046", "text": "function primaryClientStore(txn) {\n return txn.store(DbPrimaryClient.store);\n}", "title": "" }, { "docid": "539c3bafb25d38614d26f0a721380181", "score": "0.55402046", "text": "function primaryClientStore(txn) {\n return txn.store(DbPrimaryClient.store);\n}", "title": "" }, { "docid": "539c3bafb25d38614d26f0a721380181", "score": "0.55402046", "text": "function primaryClientStore(txn) {\n return txn.store(DbPrimaryClient.store);\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "ae7be7d18022b973f6b6fb4d7274dfef", "score": "0.55381054", "text": "function getKeyFromID(id) {\n return '.' + id;\n}", "title": "" }, { "docid": "adfa0c783a33ac5fd67100fb0cb7af22", "score": "0.5521544", "text": "function createDBUsingWrapper(){\r\n\tdatabase = new IDBStore({\r\n\t\tdbVersion: 1,\r\n\t\tstoreName: 'data',\r\n\t\tkeyPath: 'id',\r\n\t\tautoIncrement: true,\r\n\t\tonStoreReady: function(){\r\n\t\t\tconsole.log('Store ready!');\r\n\t\t}\r\n\t});\r\n}", "title": "" }, { "docid": "ac6642c353c16fd3cf9b199f462d1c32", "score": "0.55179495", "text": "function makeKey() {\n var key = (Math.random() * 0x4000 << 1) + keyOffset;\n return functions.hasOwnProperty(key) ? makeKey() : key;\n }", "title": "" }, { "docid": "ae6892075f8ada63bb5fb6b8b3d1256c", "score": "0.55101657", "text": "function createId()\r\n{\r\n\tvar time = new Date().getTime();\r\n\twhile (time == new Date().getTime());\r\n\treturn new Date().getTime();\r\n}", "title": "" }, { "docid": "75ab45964f743a7beef92037092bdd28", "score": "0.5508588", "text": "computeKey(type, id) {\n if (type === undefined || id === undefined) {\n throw Error('computeKey() needs type, id');\n }\n\n let sha1sum = crypto.createHash('sha1');\n id = id || '';\n return type + ':' + sha1sum.update(id).digest('hex') + '-' + this.version;\n }", "title": "" }, { "docid": "451e1affe9ae77a80d05ffaec3f1a804", "score": "0.55013853", "text": "static get indentity () {\n return genId()\n }", "title": "" }, { "docid": "41cf2720b1f979478073ccf56741fbe6", "score": "0.5484775", "text": "function gen_id() {\n return shortId.generate();\n}", "title": "" }, { "docid": "5d44e3501a9dcb94e40fad91b64668ef", "score": "0.5476227", "text": "function buildEntityPk(entity_id, entity_type) {\n return {\n id: entity_id,\n type: entity_type\n };\n}", "title": "" }, { "docid": "a6017b195da3f1a1e7bbbb512fc63ae1", "score": "0.5473387", "text": "async function genid (req) {\n const {ID} = await cds.tx(req).run (SELECT.one.from(req.target).columns('max(ID) as ID'))\n req.data.ID = ID - ID % 100 + 100 + 1\n}", "title": "" }, { "docid": "089f39f242c163cdca9ffd75c9efda2e", "score": "0.5472291", "text": "function _id() {\n var newId = ('0000' + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4); // append a 'a' because neo gets mad\n\n newId = \"a\".concat(newId); // ensure not already used\n\n if (!cache[newId]) {\n cache[newId] = true;\n return newId;\n }\n\n return _id();\n }", "title": "" }, { "docid": "37fa6bc1d40c0b592585179f2279bc7b", "score": "0.5466845", "text": "getKeyset (): Keyset {\n const keyset = new Keyset({db: this.db, table: this})\n return keyset\n }", "title": "" }, { "docid": "6a40dbf9d7b51de77f93e8a7aa7d0adb", "score": "0.5415869", "text": "function _key_ (id) {\n return namespace + ':' + id + ':json';\n}", "title": "" }, { "docid": "844fb2725f4c61b00de117d6704f04bf", "score": "0.5410936", "text": "function keyAsId(source){\n return Object.keys(source).map(function(key){\n source[key].id = source[key].appid;\n return source[key];\n });\n}", "title": "" }, { "docid": "319ce98ff6755d08941fc0bc4e3e10a0", "score": "0.5408868", "text": "function createId(){\n //return idCt++;\n return uuid().hashCode(); // TODO: is there a less expensive way?\n}", "title": "" }, { "docid": "41b57b3c670f4bb0469d2125fd13fd85", "score": "0.5405807", "text": "get actualPrimaryKey() {\n return this.i.e;\n }", "title": "" }, { "docid": "1c08f03d070736f65f30590b25fa06ee", "score": "0.53978497", "text": "function create_unique_id(){\n\treturn \"id_\" + Math.floor(Math.random() * (1000000 + 1)).toString();\n}", "title": "" }, { "docid": "b8c2f4e6d68898278c1bd9c9e66b3e8f", "score": "0.5397315", "text": "function partitionParam() {\n return shortid.generate()\n}", "title": "" }, { "docid": "efb1f0587540f38c12c4b18e0396ea0a", "score": "0.5386773", "text": "function fromDatastore(item){\n item.id = item[Datastore.KEY].id;\n return item;\n}", "title": "" }, { "docid": "9c66c1009dfef91bf7e42254b10bc7d4", "score": "0.5386273", "text": "get DATABASE_KEY() { return VerticaConstants.DATABASE_KEY}", "title": "" }, { "docid": "aad7b915068a58472e0294354b3045b4", "score": "0.53781366", "text": "generateUniqueKey() {\n let docTypesWithUUID = this.state.docTypesWithUUID;\n let selectedDocTypes = this.props.selectedDocTypes;\n selectedDocTypes = selectedDocTypes.slice(docTypesWithUUID.length, selectedDocTypes.length); // docTypesWithUUID.length <= selectedDocTypes\n\n let highestDocNumber = docTypesWithUUID.length > 0 ? docTypesWithUUID[docTypesWithUUID.length - 1].docNumber : 0\n\n let newDocTypesWithUUID = [];\n selectedDocTypes.forEach((docTypeID) => newDocTypesWithUUID.push({\n docTypeID: docTypeID,\n key: uuidv4(),\n docNumber: ++highestDocNumber\n }))\n newDocTypesWithUUID = docTypesWithUUID.concat(newDocTypesWithUUID);\n this.setState({docTypesWithUUID: newDocTypesWithUUID})\n }", "title": "" }, { "docid": "ea96da40533acd4063b90990996d31a6", "score": "0.53749436", "text": "function createKey (len) {\n\t//TODO\n\t\n}", "title": "" }, { "docid": "19a4766ad001e2f3e4b656fecc640645", "score": "0.5372315", "text": "function generateKey(id){\n // 3 day\n let expire = Date.now() / 1000 + 3600 * 24 * 3\n // let key = encrypt(id+':'+expire)\n let key = id.slice(1,3) +':'+ expire.toString(16) \n return key\n }", "title": "" }, { "docid": "de7d608cdf91064fb58adcafc5a03e50", "score": "0.53694767", "text": "getIdx(key = this.state.rec_key) {\n return this.state.records.findIndex(rec => rec.key === key);\n }", "title": "" }, { "docid": "d28b306d17161264fe9cd9e90b5f1662", "score": "0.53569794", "text": "generateID(){\n return this.s4() + this.s4() + '-' + this.s4() + '-' + this.s4() + '-' + this.s4() + '-' + this.s4() + '-' + this.s4() + '-' + this.s4();\n }", "title": "" }, { "docid": "c639d8d87c9d72a10c2c1e66346fd10d", "score": "0.5351546", "text": "function getIdentity() {\n return I.makeIdentity((0, _Ord.makeOrd)(() => 0), getAssociative().combine);\n}", "title": "" }, { "docid": "6705acb13dc094586446cfa65b8883b2", "score": "0.5343033", "text": "static get programId(): PublicKey {\n return new PublicKey('Stake11111111111111111111111111111111111111');\n }", "title": "" }, { "docid": "cc32302aa4fca66d75278d42c937177a", "score": "0.5340422", "text": "function getId(dbEntity){\n return dbEntity.entity.key.path[0].id ||\n dbEntity.entity.key.path[0].name;\n}", "title": "" }, { "docid": "d4839e670239bfd876622e4b4689518e", "score": "0.53395253", "text": "get primaryKey() {\n if (this.i.primaryKey == null) {\n return null;\n }\n if (!this._primaryKey) {\n this._primaryKey = new IgrPrimaryKeyValue(this.i.primaryKey.key, this.i.primaryKey.value);\n }\n return this._primaryKey;\n }", "title": "" }, { "docid": "1ec087727df4c36fba31a0108b25b708", "score": "0.53248465", "text": "isIdentityPrimaryKey(tableName) {\n return [\n \"SELECT TABLE_NAME,COLUMN_NAME, COLUMN_NAME,GENERATION_TYPE,IDENTITY_OPTIONS FROM DBA_TAB_IDENTITY_COLS WHERE TABLE_NAME='\",\n tableName.tableName ? tableName.tableName.toUpperCase() : tableName.toUpperCase(),\n \"' \",\n tableName.schema ? \"AND OWNER = '\" + this.getOwnerToGoodCase(tableName.schema) + \"' \" : ' '\n ].join('');\n }", "title": "" }, { "docid": "cc885937d50a5be7a5d42ad7a50555b2", "score": "0.52998674", "text": "_createPadStore() {\n if (!this.db) return;\n\n const options = {\n keyPath: \"id\",\n autoIncrement: true,\n };\n\n this.db.createObjectStore(this.storeName, options);\n let transaction = this.db.transaction;\n\n return new Promise((resolve, reject) => {\n transaction.oncomplete = () => {\n resolve();\n };\n\n transaction.onerror = (request) => {\n reject(request.error);\n };\n });\n }", "title": "" }, { "docid": "6e3fc3264a344576cae65a7da7e2c219", "score": "0.5288745", "text": "constructor() {\n this.key = 0;\n this.store = {};\n }", "title": "" }, { "docid": "981e61b27c043c8eb21f26f4b537b861", "score": "0.52790153", "text": "getKey() {\n }", "title": "" }, { "docid": "6f457d0a192b836c7c65efcc44d63dea", "score": "0.5269977", "text": "function id() {\n var newId = ('0000' + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4); // append a 'a' because neo gets mad\n\n newId = \"a\".concat(newId); // ensure not already used\n\n if (!cache[newId]) {\n cache[newId] = true;\n return newId;\n }\n\n return id();\n }", "title": "" }, { "docid": "0705b1222661a452b40b9c16347a96fb", "score": "0.5268201", "text": "static getDrugKey(ctx, drugName, serialNo) {\n\t\treturn ctx.stub.createCompositeKey(pharmaNamespaces.Drug, [drugName,serialNo]);\n\t}", "title": "" }, { "docid": "283ac936c8e2e30d946dd0c8d9636a72", "score": "0.5266706", "text": "function AS2Key() {}", "title": "" }, { "docid": "270f7dd24502bfe8c51762292e1b8741", "score": "0.5264278", "text": "function StickyIdMaker() {\n this.highId = 0;\n this.spare = [];\n}", "title": "" }, { "docid": "dbf46b8f7418bb4432ba22bfbb8483cd", "score": "0.5259287", "text": "constructor(parent, data) {\r\n //\r\n //The parent colum constructor\r\n super(parent, data);\r\n //\r\n //This is a primary key; we need to specially identify it.\r\n this.is_primary = true;\r\n }", "title": "" }, { "docid": "99282045ebe932c533745691d77d42a0", "score": "0.52569973", "text": "preSaveSetId() {\n if (isNone(this.get('id'))) {\n this.set('id', generateUniqueId());\n }\n }", "title": "" }, { "docid": "690d3d6cbb4bfa67fe933ddee5b7c2de", "score": "0.5250348", "text": "function makeKey(key){\n return (widget.identifier + \"-\" + key);\n}", "title": "" }, { "docid": "82b07668e827b936fdd0651d6c8fbab3", "score": "0.5236431", "text": "function genId () {\n return 'generated_ID'\n}", "title": "" } ]
7c45032c52990e6c5ee4d4fa1c9e3949
Dataset description file /////////////////////// ////////////// //////////////// //////////////// //////////////// // get datasets and append that to option list for parent datasets
[ { "docid": "3bbc019722cb15119085fc233bd18cfb", "score": "0.55249816", "text": "function getParentDatasets() {\n var parentDatasets = [];\n for (var i = 0; i < datasetList.length; i++) {\n parentDatasets.push(datasetList[i].name);\n }\n return parentDatasets;\n}", "title": "" } ]
[ { "docid": "da9a39d9ab8832e209d41a107b065832", "score": "0.6371604", "text": "function getDatasets() {\r\n\r\n $.each(datasets, function (name, content) {\r\n if (similars.hasOwnProperty(name)) {\r\n datasets[name].keywords = listSplitter(similars[name].definition[0].value);\r\n datasets[name].similars = listSplitter(similars[name].note[0].value);\r\n datasets[name].cluster = getClusterNameFromDatasetName(name);\r\n };\r\n });\r\n return datasets;\r\n}", "title": "" }, { "docid": "17a7ab500e038efe5f8ecea89359487b", "score": "0.6277196", "text": "getDatasets() {\r\n var dataFolder = this.getPaths().DATA_DIR;\r\n var defaultData = [];\r\n fs.readdirSync(dataFolder).forEach(file => {\r\n var fileName = file;\r\n var datasetPath = dataFolder + '/' + file;\r\n var extension = extname(file);\r\n defaultData.push({\r\n name: fileName,\r\n path: datasetPath,\r\n extension: extension\r\n });\r\n });\r\n return defaultData;\r\n }", "title": "" }, { "docid": "cf3bf5ce65c55b80aec1880f907c36a1", "score": "0.6061349", "text": "static getDatasetName() {\n return 'datasets/iris.data';\n }", "title": "" }, { "docid": "863b446781aca0aa1b685c4bf9b69830", "score": "0.59034246", "text": "function addDataset (fileData) {\n\n var id = fileData.id;\n var friendlyName = fileData.friendlyName;\n if (id != undefined && friendlyName != undefined) {\n\n var footer = d3.select(\"body > footer\");\n if (footer != undefined) {\n var sections = footer.selectAll(\"div:nth-child(2) section:nth-child(1), div:nth-child(2) section:nth-child(2)\");\n var spanElement = sections.select(\"form\")\n .append(\"span\");\n\n // left set\n var index = 0;\n var input = spanElement\n .append(\"input\")\n .attr(\"id\", function () {\n index++;\n return id + \"-\" + index;\n })\n .attr(\"value\", id)\n .attr(\"type\", \"radio\")\n .attr(\"name\", \"dataset\")\n .on(\"change\", changeDataset);\n\n // right set\n index = 0;\n var label = spanElement\n .append(\"label\")\n .attr(\"for\", function () {\n index++;\n return id + \"-\" + index;\n })\n .text(friendlyName);\n }\n }\n}", "title": "" }, { "docid": "729645b4680814a0bdfc796dac91a463", "score": "0.58744156", "text": "function getData() {\n // select the dropdown menu\n var dropDown = d3.select(\"#selDataset\");\n\n d3.json(\"samples.json\").then(function(data) {\n var samples = data.names\n\n samples.forEach((sample) => {\n dropDown.append(\"option\").text(sample) \n }) \n buildPlots(samples[0])\n })\n}", "title": "" }, { "docid": "8d5028e34e348d68fa2fb68a77298e9a", "score": "0.5853614", "text": "function getMetadata() {\r\n\t\r\n\t/*\r\n\t * Appending metadata\r\n\t */\r\n\tvar output = \t\t 'Metadata\\r\\n';\r\n\toutput = output.concat('--------------------\\r\\n');\r\n\toutput = output.concat('Title: ' + $('h2').text() + '\\r\\n');\r\n\toutput = output.concat('Time & Date: ' + Date() + '\\r\\n');\r\n\toutput = output.concat('Tool Version: ' + getVersion());\r\n\t\r\n\t/*\r\n\t * Appending data sources\r\n\t */\r\n\tvar counter = 1;\r\n\toutput = output.concat('\\r\\n\\r\\n\\r\\nData Sources\\r\\n');\r\n\toutput = output.concat('--------------------\\r\\n');\r\n\t$.each( datasources, function(dataset, datasetInfo){\r\n\t if (datasetInfo.common.flag && $.inArray($(document).attr('title'), datasetInfo.common.exceptions)<0){\r\n\t \toutput = output.concat(counter++ + ')\\r\\n');\r\n\t \tif (datasetInfo.survey != null) output = output.concat('Survey: ' + datasetInfo.survey + '\\r\\n');\r\n\t \tif (datasetInfo.dataset != null) output = output.concat('Dataset: ' + datasetInfo.dataset + '\\r\\n');\r\n\t \tif (datasetInfo.table != null) output = output.concat('Table: ' + datasetInfo.table + '\\r\\n');\r\n\t \toutput = output.concat('\\r\\n');\r\n\t }else if (!datasetInfo.common.flag && $.inArray($(document).attr('title'), datasetInfo.reports)>-1){\r\n\t \toutput = output.concat(counter++ + ')\\r\\n');\r\n\t \tif (datasetInfo.survey != null) output = output.concat('Survey: ' + datasetInfo.survey + '\\r\\n');\r\n\t \tif (datasetInfo.dataset != null) output = output.concat('Dataset: ' + datasetInfo.dataset + '\\r\\n');\r\n\t \tif (datasetInfo.table != null) output = output.concat('Table: ' + datasetInfo.table + '\\r\\n');\r\n\t \toutput = output.concat('\\r\\n');\r\n\t }\t \t\r\n\t});\r\n\t\r\n\t/*\r\n\t * Appending algortihm for ran to generate the report, if any.\r\n\t */\r\n\tif (typeof algDesc !== 'undefined') {\r\n//\t\toutput = output.concat('\\r\\n\\r\\n\\r\\nAlgorithm\\r\\n');\r\n//\t\toutput = output.concat('--------------------\\r\\n');\t\r\n\t\toutput = output.concat(algDesc);\r\n\t}\r\n\t\r\n\t/*\r\n\t * Appending report parameters\r\n\t */ \r\n\toutput = output.concat('\\r\\n\\r\\n\\r\\nReport Parameters\\r\\n');\r\n\toutput = output.concat('--------------------\\r\\n');\t\r\n\t$(\".input\").each(function(index, object) {\r\n\t\tif ($(object).is('select'))\r\n\t\t\t\toutput = output.concat(object.dataset.label + ': ' + $(\"#\" + $(object).attr('id') + \" option[value='\"+ object.value +\"']\").text() + '\\r\\n');\r\n\t\telse\r\n\t\t\toutput = output.concat(object.dataset.label + ': ' + object.value + '\\r\\n');\r\n\t});\r\n\tif (keyName != null) output = output.concat('Selected Service Dates : ' + getDates(keyName));\r\n\t\r\n\t/*\r\n\t * Appeding Metric Defenitions\r\n\t */ \r\n\toutput = output.concat('\\r\\n\\r\\n\\r\\nMetric Definitions\\r\\n');\r\n\toutput = output.concat('--------------------\\r\\n');\r\n\t$('.metric').each(function(i,item){\r\n\t\toutput = output.concat($(item).text() + ': ' + item.title + '\\r\\n')\r\n\t\t});\r\n\toutput = output.concat('\\r\\n');\r\n\t\r\n\t// Adding description of the footnotes that map inputs and metrics\r\n\t$(\".input\").each(function(index, object) {\r\n\t\tif (!$(object).is('select')){\r\n\t\t\toutput = output.concat('(' + object.dataset.iomap + ') ' + object.dataset.label + '\\r\\n');\r\n\t\t}\t\r\n\t});\r\n\t\r\n\t// Adding selected dates if exists.\r\n\tif (keyName != null) output = output.concat('(' + dateIOnumber + ') Selected Service Dates');\r\n\t\r\n\treturn output;\r\n}", "title": "" }, { "docid": "e729507fbdedbc2d7d26959fc042591f", "score": "0.584553", "text": "function get_dataset(name) {\n if (name == \"spiral\") {\n return get_spiral();\n }\n else if (name == \"flame\") {\n return get_flame();\n }\n else if (name == \"moons\") {\n return get_moons();\n }\n else if (name == \"gaussian\") {\n return get_gaussian();\n }\n else if (name == \"aggregation\") {\n return get_aggregation();\n }\n else if (name == \"circle\") {\n return get_circle();\n }\n else {\n throw(\"Unknown dataset: \" + name);\n }\n}", "title": "" }, { "docid": "ca956e26ba1a98dfa14bc2646d7eb842", "score": "0.5826599", "text": "function init() {\n let choose= d3.select(\"#selDataset\");\n d3.json(\"samples.json\").then((data) => {\n let sampleNames= data.names;\n\n sampleNames.forEach((sample) => {\n choose\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n \n let firstSample= sampleNames[0];\n createCharts(firstSample);\n createMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "accfe038d87f508767e5a5c8c19f20c1", "score": "0.5776907", "text": "function init() {\n // view different datasets with the selective dropdown menu\n var dropdown = d3.select(\"#selDataset\");\n\n // read JSON data \n d3.json(\"samples.json\").then((datasets)=> {\n console.log(datasets)\n\n // dropdwown menu for option and value\n datasets.names.forEach(function(labelName) {\n dropdown.append(\"option\").text(labelName).property(\"value\");\n });\n\n // call function to display the plots and data\n plotsVariation(datasets.names[0]);\n variationDemo(datasets.names[0]);\n });\n}", "title": "" }, { "docid": "0da0ad39367d0fa9309b4b8a1fb77734", "score": "0.5708662", "text": "function buildDatasets(enhancedData, metaStructures) {\n var datasets = {};\n\n for (var i = 0; i < enhancedData.length; i++) {\n\n // every row must have a business key assigned\n if (!enhancedData[i].businessKey) {\n continue;\n }\n\n // check if the dataset id is already defined\n if (!datasets[enhancedData[i].businessKey]) {\n datasets[enhancedData[i].businessKey] = {\n text: enhancedData[i].businessText,\n kpis: {},\n parentNode: enhancedData[i][\"businessParent\"],\n id: enhancedData[i].businessKey,\n color: enhancedData[i].color\n }\n }\n\n // add the kpi if not already defined\n if (!datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey]) {\n datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey] = {\n text: enhancedData[i].extText,\n data: {\n 'Group': enhancedData[i].extText\n }\n //headerLabels: headerLabels\n };\n }\n\n // add the value\n datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey].data[enhancedData[i].extPeriodKey] = enhancedData[i][metaStructures.value];\n }\n\n return datasets;\n }", "title": "" }, { "docid": "0da0ad39367d0fa9309b4b8a1fb77734", "score": "0.5708662", "text": "function buildDatasets(enhancedData, metaStructures) {\n var datasets = {};\n\n for (var i = 0; i < enhancedData.length; i++) {\n\n // every row must have a business key assigned\n if (!enhancedData[i].businessKey) {\n continue;\n }\n\n // check if the dataset id is already defined\n if (!datasets[enhancedData[i].businessKey]) {\n datasets[enhancedData[i].businessKey] = {\n text: enhancedData[i].businessText,\n kpis: {},\n parentNode: enhancedData[i][\"businessParent\"],\n id: enhancedData[i].businessKey,\n color: enhancedData[i].color\n }\n }\n\n // add the kpi if not already defined\n if (!datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey]) {\n datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey] = {\n text: enhancedData[i].extText,\n data: {\n 'Group': enhancedData[i].extText\n }\n //headerLabels: headerLabels\n };\n }\n\n // add the value\n datasets[enhancedData[i].businessKey].kpis[enhancedData[i].extKey].data[enhancedData[i].extPeriodKey] = enhancedData[i][metaStructures.value];\n }\n\n return datasets;\n }", "title": "" }, { "docid": "02535ceee65a899b730cab4f18ffb6e9", "score": "0.56736463", "text": "function selectDataset(name) {\n let datastring = \"\";\n // for hardcoded data inputs\n if (name === 'original') {\n datastring = input.original.replace(/'/g, '\"');\n } else if (name === 'wide') {\n datastring = input.wide.replace(/'/g, '\"');\n } else if (name === 'long') {\n datastring = input.long.replace(/'/g, '\"');\n }\n if (datastring) {\n dataset.name = name;\n dataset.data = JSON.parse(datastring);\n // sort dataset by 'a' values for use in plotting\n dataset.sorted_data = dataset.data.sort((d0, d1) => (d0.a > d1.a) ? 1 : -1);\n // generate colors for each set of points 'b', 'c', etc.\n for (let property in dataset.data[0]) {\n dataset.colors[property] = randomColor();\n }\n }\n buildTable();\n buildChart();\n}", "title": "" }, { "docid": "43157442ce5f0d85770a0b590ce6d13e", "score": "0.5668619", "text": "function init() {\n var dataSelector = d3.select(\"#selDataset\");\n\n d3.json(\"data/samples.json\").then((data) => {\n var sampleNames = data.names;\n\n sampleNames.forEach((sample) => {\n dataSelector.append(\"option\").text(sample).property(\"value\", sample);\n });\n\n var firstSample = sampleNames[0];\n chartBuild(firstSample);\n buildMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "fc75a5cc063a9ba845db2c493c4daebd", "score": "0.5663411", "text": "function init() {\n\n var dropdown = d3.select(\"#selDataset\");\n // select seldataset with onchanged function to create your initial function as well as on changed \n\n d3.json(\"samples.json\").then((demographicdata)=> {\n //console.log(demographicdata);\n\n var Idnames = demographicdata.names;\n //console.log(Idnames);\n\n Idnames.forEach(function(name) {\n dropdown.append(\"option\").html(name).property(\"value\");\n });\n\n buildCharts(demographicdata.names[0]);\n buildDemographicData(demographicdata.names[0]);\n \n });\n}", "title": "" }, { "docid": "513d63815c1303e3fb2b40000ffd1f99", "score": "0.5654729", "text": "function init() {\n // var to hold dropdown menu HTML element\n var dropdownMenu = d3.select(\"#selDataset\");\n \n d3.json(\"./data/samples.json\").then((data) => {\n \n // collect ID's\n var idList = data.names;\n \n // Loop through ID's and add each one to dropdown menu\n for (let i = 0; i < idList.length; i++) {\n dropdownMenu.append(\"option\")\n .text(idList[i])\n .property(\"value\", idList[i]);\n };\n\n // initial plots\n buildMetadata(idlist[0]);\n buildPlots(idlist[0]);\n });\n}", "title": "" }, { "docid": "0a79742deb5f1c116dc43e9e6a7f8389", "score": "0.5642286", "text": "function init() {\n // - select the dropdown element in the page\n var selector = d3.select(\"#selDataset\");\n \n // - loop over the samples.json data to append the .name attribute into the value of an option HTML tag (lookup HTML documentation on dropdown menus)\n d3.json(\"samples.json\").then((data) => {\n var sampleNames = data.names;\n\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n \n // - extract the first sample from the data\n var firstSample = sampleNames[0];\n // - call your two functions to build the metadata and build the charts on the first sample, so that new visitors see some data/charts before they select something from the dropdown\n buildCharts(firstSample);\n buildMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "f1841d9077aa569805d5c2201eec35f4", "score": "0.56416655", "text": "function getData() {\n \n var dropdownMenu = d3.select(\"#selDataset\");\n \n // Assign the value of the dropdown menu option to a variable\n d3.json(\"../../samples.json\").then((importedData) => {\n console.log(importedData);\n var dropdownData = importedData.names;\n\n dropdownData.forEach((name) => {\n dropdownMenu.append(\"option\").text(name).property(\"value\", name)\n });\n\n });\n\n}", "title": "" }, { "docid": "f1fe7a74b8f8a7569127993ef74c20bc", "score": "0.56355894", "text": "function init() {\n var selector = d3.select(\"#selDataset\");\n \n d3.json(\"samples.json\").then((data) => {\n console.log(data);\n var sampleNames = data.names;\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n })}", "title": "" }, { "docid": "f0dc7aa244249ae333fecfdc99731285", "score": "0.56171143", "text": "function getDataset(aDataSetCollector, nextFunction){\n\t\t\tif(aDataSetCollector.doAnyArgumentsMatch(tagsArray)){\n\t\t\t\tckConsole.getGroup(aDataSetCollector.dataName).then(function(inputData){\n\t\t\t\t\tconsole.log('Loading: ' + aDataSetCollector.dataName);\n\t\t\t\t\tconsole.log(inputData);\n\t\t\t\t\taDataSetCollector.inputParser(inputData);\n\t\t\t\t\tnextFunction();\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tnextFunction();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6cf117e1fb5dd27f078812267bf4cf22", "score": "0.56162924", "text": "function init() {\n var selector = d3.select(\"#selDataset\")\n // Read json data\n d3.json(\"samples.json\").then((data) => {\n // Parse and filter data to get sample names\n var sampleNames = data.names;\n // Add dropdown option for each sample\n sampleNames.forEach(element => {\n selector.append(\"option\").text(element).property(\"value\", element);\n }); \n // Call functions below using the first sample to build metadata and initial plots\n buildCharts(sampleNames[0]);\n buildMetadata(sampleNames[0]);\n });\n}", "title": "" }, { "docid": "97ea9f7170b937be6ecfd3e2efd6a687", "score": "0.56123894", "text": "function init() {\n var dropDown = d3.selectAll(\"#selDataset\");\n\n // Read in json and add sample names to a variable\n d3.json(\"samples.json\").then((data) => {\n var sampleNames = data.names;\n\n sampleNames.forEach((sample) => {\n dropDown\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n\n var firstSample = sampleNames[0];\n buildCharts(firstSample);\n buildMetadata(firstSample);\n\n });\n}", "title": "" }, { "docid": "496e7f73afaee574dd0695bb19452835", "score": "0.55866355", "text": "function init() {\n d3.json(\"data/samples.json\").then(startdata => {\n data = startdata;\n let values_selected = startdata.names;\n\n let option_selected = d3.select(\"#selDataset\");\n\n values_selected.forEach(value => {\n option_selected\n .append(\"option\")\n .text(value)\n .attr(\"value\", function() {\n return value;\n });\n });\n });\n}", "title": "" }, { "docid": "c600b7fb299a5ae716d0d26d8ef46ab3", "score": "0.55786043", "text": "function initApp(call) {\n d3.json(\"data/samples.json\").then((data) => {\n names = data.names;\n metadata = data.metadata;\n samples = data.samples;\n\n names.forEach((name)=> {\n d3.select(\"#selDataset\").append(\"option\").property('value', name).text(name);\n });\n\n names.forEach((name) => {\n names.push(name);\n });\n metadata.forEach((metaData) => {\n metadata.push(metaData);\n });\n samples.forEach((sample) => {\n samples.push(sample);\n });\n })\n \n .then(call);\n}", "title": "" }, { "docid": "554792a4925af35a9346e1d5d1383bf4", "score": "0.55751944", "text": "function addDataset(element, dataset) {\n for (var name_2 in dataset) {\n element.setAttribute(\"data-\" + name_2, dataset[name_2]);\n }\n }", "title": "" }, { "docid": "1b7149f7dda1a187fcb2809ddf143020", "score": "0.5572823", "text": "function buildDropdown() {\n Plotly.d3.json('/names', function(error, names){\n if (error) return console.warn(error);\n var selDataset = document.getElementById(\"selDataset\");\n for (i = 0; i < names.length; i++) {\n sample = names[i]\n var sample_option = document.createElement(\"option\");\n sample_option.text = sample;\n sample_option.value= sample;\n selDataset.appendChild(sample_option);\n }\n }\n)}", "title": "" }, { "docid": "bd5f45d0186a6eedb2abe9c7adf0129d", "score": "0.5568348", "text": "function addDataset(element, dataset) {\r\n for (var name_2 in dataset) {\r\n element.setAttribute(\"data-\" + name_2, dataset[name_2]);\r\n }\r\n }", "title": "" }, { "docid": "1b9a2ba039289e6cb39ab0fa331fd0be", "score": "0.55511224", "text": "addDataset(datasetPath) {\r\n const datasetDirectory = this.getPaths().DATA_DIR;\r\n const datasetName = basename(datasetPath);\r\n try {\r\n fs.statSync(datasetDirectory);\r\n } catch (err) {\r\n fs.mkdirSync(datasetDirectory);\r\n }\r\n fs.copyFileSync(datasetPath, datasetDirectory + '/' + datasetName);\r\n }", "title": "" }, { "docid": "f83a2b090cf2a72f861c23a782713182", "score": "0.5546799", "text": "function initDashboard() {\n var dropdown = d3.select(\"#selDataset\")\n d3.json(\"samples.json\").then(data => {\n var names = data.names;\n names.forEach(UID => {\n dropdown.append(\"option\").text(UID).property(\"value\", UID)\n })\n buildCharts(names[0]);\n populateDemoInfo(names[0]);\n });\n}", "title": "" }, { "docid": "506a470a9d6d2299d6aa4c31e49e9401", "score": "0.5532736", "text": "function init() {\n d3.json(\"samples.json\").then((data) => {\n var sampleNames = data.names; \n\n sampleNames.forEach((sample) =>{\n d3.select(\"#selDataset\")\n .append(\"option\").text(sample).property(\"value\", sample); \n }); \n var initialSample = sampleNames[0]\n \n buildCharts(initialSample); \n \n }); \n}", "title": "" }, { "docid": "811f7c614d711f317ac0441f35c56ad2", "score": "0.55160695", "text": "function init() {\n // Getting the reference for the dropdown selector in the \"Test subject ID No\"\n\n var selector = d3.select(\"#selDataset\");\n\n // Create the dropdown menu with all the samples_Ids\n d3.json(\"samples.json\").then((data) => {\n var sampleNames = data.names;\n console.log(sampleNames);\n\n // Append text for each sample using forEach\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n\n\n // Create a variable for the first sample\n var firstSample = sampleNames[0];\n console.log(firstSample);\n buildMetadata(firstSample);\n buildCharts(firstSample);\n });\n}", "title": "" }, { "docid": "b38c7de0ed6b62e0fe1528c322ed7b3c", "score": "0.55147505", "text": "function init() {\r\n // a variable to select the dropdown menu \r\n var dropdown = d3.select(\"#selDataset\");\r\n \r\n // read the json and save it to the console\r\n d3.json(\"samples.json\").then((d)=> {\r\n console.log(d);\r\n \r\n // iterate through the names in the json file and append their values to the html \r\n d.names.forEach(function(name) {\r\n dropdown.append(\"option\").text(name).property(\"value\");\r\n });\r\n \r\n // call the functions to build the plots and to update the metadata\r\n buildPlot(d.names[0]);\r\n newData(d.names[0]);\r\n });\r\n }", "title": "" }, { "docid": "c2c52957ce1164a402c9e9a7256f91aa", "score": "0.55057687", "text": "function Dataset(filepath, name, _config) {\n\t//log('BASE_PATH', process.env.BASE_PATH)\n\n\tthis.config = _config\n\tvar basePath = process.env.BASE_PATH ? process.env.BASE_PATH : '/stuff/datamining/'\n\tthis.basePath = basePath\n\tthis.name = name\n\tthis.resultPath = basePath + 'results/'\n\tthis.filepath \t= basePath + 'datasets/' + filepath \n\tthis.dbPath \t= this.resultPath + name + '.sqlite'\n\tthis.datasetSize = 0\n\tthis.trainingSize = 0\n\tthis.separator = null\n\tthis.timeDistance = 0\n\tthis.indices = null\n\t\n\n}", "title": "" }, { "docid": "8822bdf46e6ddeba4363091ee90f4faf", "score": "0.54957384", "text": "function makeithappen() {\n\n var grabid = d3.select(\"#selDataset\");\n\n d3.json(\"samples.json\").then((data) =>{\n var ids = data.names;\n\n ids.forEach((number) => {\n grabid\n .append(\"option\")\n .text(number)\n .property(\"value\" , number)\n })\n//build original plots\n var first =ids[0]\n buildplots(first)\n buildmetadata(first)\n\n});\n}", "title": "" }, { "docid": "667b7962fe3bef10e8ba2f020c6790ed", "score": "0.54920787", "text": "function loadAncillaryDataset(){\t\n\t$('#shape_select').prop('options').length = 0;\n\t\n\tfor(var i = 0; i < arrayGDatasetAncillary.length; i++) \n\t{\n\t\t// Create new option element for each ancillary dataset\n\t\tvar addOption= document.createElement(\"option\");\t\t\t\t\n\t\t// set value and text\t\t\n\t\taddOption.value = arrayGDatasetAncillary[i][\"value\"] ; // Insted of calling setAttribute \n\t\taddOption.innerHTML = arrayGDatasetAncillary[i][\"label\"] // <a>INNER_TEXT</a>\t\t\t\n\t\t// append it to the end\n\t\tdocument.getElementById('shape_select').appendChild(addOption);\t\t\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "859d3d23ca06e8f5ebe41b48a62ce19e", "score": "0.5485171", "text": "function init() {\n d3.json(\"data/samples.json\").then(function (data) {\n id = data.names;\n meta = data.metadata;\n samples = data.samples;\n \n // Allow user to filter data\n var select = d3.select(\"#selDataset\");\n id.forEach(element => {\n var options = select.append(\"option\");\n options.property(\"value\", element);\n options.text(element);\n });\n });\n}", "title": "" }, { "docid": "63240abb6bca500d9a0140a9a0adce1b", "score": "0.5469764", "text": "updateDatasetInfo(dataset)\n {\n // Preparing links in case of multiple DOIs for one dataset\n let doiLinks = \"\";\n // Splitting multiple DOIs in catalog by comma \n let doiSplit = dataset.doi.split(',');\n for(var doiIDx in doiSplit){\n if (!doiSplit[doiIDx].startsWith('http'))\n doiSplit[doiIDx] = 'http://' + doiSplit[doiIDx].trim();\n doiLinks += '<a href=\"' + doiSplit[doiIDx] + '\" target=\"_blank\">' + doiSplit[doiIDx] + '</a><br />'\n }\n\n // If popover is visible: close popover tooltip \n if(this._datasetTooltip.data('bs.popover').tip().hasClass('in'))\n this._datasetTooltip.click();\n\n // retrieve display of metadata from tab \"Dataset & Software\"\n this._datasetTooltip.attr('data-content',''\n + $('#' + dataset.id + '-info').html()\n );\n }", "title": "" }, { "docid": "61230c52978790ce0e3e4eadc1d462bc", "score": "0.54644036", "text": "function loadPrivateDatasets(){\n for(var i=0; i<window.user_environments.length; i++){\n var key = window.user_environments[i].key;\n loadDatasetByEnvironment(key);\n }\n}", "title": "" }, { "docid": "0bcd9be56aa151be051f2f5bb945a544", "score": "0.5458845", "text": "function init() {\n\n // Get reference to the dropdown select element\n var selector = d3.select(\"#selDataset\");\n \n // use the list of sample names to populate the selction options\n d3.json('data/samples.json').then((data) => {\n var sampleNames = data.names;\n //console.log(sampleNames);\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n //console.log(selector);\n }); //end of sample names\n\n // get first sample\n var firstSample = sampleNames[0];\n console.log(firstSample); // this is 940, the first sample\n \n // call metadata and build chart functions\n buildCharts(firstSample);\n buildMetadata(firstSample);\n\n }); // d3.json\n\n} // end init()", "title": "" }, { "docid": "89a851bd8390690dd664194326b0b303", "score": "0.54465014", "text": "function init() {\n var dropNames = fileData.names;\n // console.log('Printing dropNames:')\n // console.log(dropNames);\n var selector = d3.select(\"#selDataset\");\n dropNames.forEach(individual => {\n selector\n .append(\"option\")\n .text(individual)\n .property(\"value\", individual);\n });\n optionChanged(fileData.names[0]);\n}", "title": "" }, { "docid": "552c58781d92b6cf2253a846d15be305", "score": "0.5433515", "text": "function getDataSetList() { \n var list = [] \n for (var set in dataSetsList) { \n list.push(dataSetsList[set]); \n } \n return list; \n}", "title": "" }, { "docid": "d629ab6515040f700ef2fcd1d5b05886", "score": "0.54118156", "text": "function init() {\n //grab a reference to the dropdown select\n var selector = d3.select(\"#selDataset\");\n\n //use the list of sample names to populate the select options\n d3.json(url).then((sNames) => {\n sNames.names.forEach((name) => {\n selector.append(\"option\").text(name).property(\"value\", name);\n });\n\n //use the first sample from list to build the initial plots\n const firstSample = sNames.names[0];\n\n buildCharts(firstSample);\n buildMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "168a05f92f514a2726110f8a7da4e856", "score": "0.5405519", "text": "function init() {\n\tvar selector = d3.select(\"#selDataset\");\n\td3.json(\"../../data/samples.json\").then(function(data){\n\t\t// console.log(data)\n\t\tvar names = data.names\n\t\t// console.log(names)\n\t\tnames.forEach((sample) => {\n\t\tselector\n\t\t\t.append(\"option\")\n\t\t\t.text(sample)\n\t\t\t.property(\"value\", sample);\n\t\t});\n\t\t// populate the page with a sample (first) when the page loads\n\t\tvar starterSample = names[0];\n\t\tbuildPlots(starterSample);\n\t\tbuildMetadata(starterSample);\n\t});\n\t}", "title": "" }, { "docid": "d32f2d914d85bb8df520969eae2246f7", "score": "0.5399137", "text": "function init() {\n d3.json(\"./samples.json\").then(function(data) {\n // Extract the names\n var names = data.names;\n //console.log(names);\n\n // Append the options to the dropdown menu\n names.forEach(x => {\n var dropDown = d3.select(\"#selDataset\");\n var selectOption = dropDown.append(\"option\");\n selectOption.attr(\"value\", x).text(x);\n })\n\n // Call on the optionChanged function\n // Show the first id's charts\n optionChanged(names[0]);\n })\n}", "title": "" }, { "docid": "3c2429bdde741d6678aeee1d4fd82c6d", "score": "0.53883433", "text": "function fn_initialize(){\n var dropdownList = d3.selectAll('#selDataset');\n\n d3.json('samples.json').then((data)=>{\n \n var testNames=data.names;\n testNames.forEach((test) => {dropdownList\n .append(\"option\")\n .text(test)\n .property(\"value\", test);\n });\n\n // ---------------------------------------------------------------\n // Initialize display with the first record\n // Display charts using first Test ID\n // ---------------------------------------------------------------\n var defaultID = testNames[0];\n\n // Test / display data\n console.log(defaultID)\n \n fn_displayData(defaultID);\n fn_barChart(defaultID);\n fn_bubbleChart(defaultID);\n fn_gaugeChart(defaultID);\n\n });\n }", "title": "" }, { "docid": "9b224436f9c47e613c463b0480dfa145", "score": "0.5381701", "text": "list() {\n return _request(__privateGet$3(this, _client$2), __privateGet$3(this, _httpRequest$3), {\n uri: \"/datasets\"\n });\n }", "title": "" }, { "docid": "188128e8de95011b54050e37a417d744", "score": "0.5379393", "text": "function init() {\n // Grab a reference to the dropdown select element\n var selector = d3.select(\"#selDataset\");\n\n // Use the list of sample names to populate the select options\n d3.json(\"/names\").then((sampleNames) => {\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n\n // Use the first sample from the list to build the initial plots\n const firstSample = sampleNames[0];\n buildCharts(firstSample);\n buildMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "188128e8de95011b54050e37a417d744", "score": "0.5379393", "text": "function init() {\n // Grab a reference to the dropdown select element\n var selector = d3.select(\"#selDataset\");\n\n // Use the list of sample names to populate the select options\n d3.json(\"/names\").then((sampleNames) => {\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n\n // Use the first sample from the list to build the initial plots\n const firstSample = sampleNames[0];\n buildCharts(firstSample);\n buildMetadata(firstSample);\n });\n}", "title": "" }, { "docid": "ba008935a924fe3d69f983a0259ac101", "score": "0.5376223", "text": "function addDataset(survey_id, dataset_id) {\n\tvar dataset_array = [];\n\tallDatasetsMap[survey_id + '_' + dataset_id] = false;\n\tif (allSurveyToDatasetsMap[survey_id] == null) {\n\t\tallSurveyToDatasetsMap[survey_id] = dataset_array;\n\t} \n\t//each survey has 'x' datasets, add them to this map. the actual value\n\t//of the dataset is not really important, we just want to know when this length \n\t//reaches zero\n\n}", "title": "" }, { "docid": "c4a18524f9dec3faa4e36b49859c69c8", "score": "0.53760594", "text": "function init() {\n // Grab a reference to the dropdown select element\n var selector = d3.select(\"#selDataset\");\n \n // Use the list of sample names to populate the select options\n d3.json(\"/names\").then((sampleNames) => {\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n \n // Use the first sample from the list to build the initial plots\n const firstSample = sampleNames[0];\n buildCharts(firstSample);\n buildMetadata(firstSample);\n });\n }", "title": "" }, { "docid": "4836414d4bb5ba672c7a6835a2c47a23", "score": "0.53566974", "text": "function init() {\n d3.json(\"samples.json\").then((data) => {\n\n var testSubject = d3.select(\"#selDataset\");\n\n data.names.forEach((ids) => {\n testSubject\n .append(\"option\")\n .text(ids)\n .property(\"value\", ids)\n })\n \n subjectOne = data.names[0];\n \n buildDemos(subjectOne);\n plotSubject(subjectOne);\n \n })\n }", "title": "" }, { "docid": "2ff4a80e625d64d83772fdcb4e367fde", "score": "0.5350618", "text": "function init() {\n // selecting dropdown menu \n let dropdown = d3.select(\"#selDataset\");\n \n d3.json(\"samples.json\").then((data)=> {\n \n console.log(data)\n \n // getting the id data to the dropdwown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\", name);\n });\n \n // call the functions to display the data and the plots to the page\n getPlots(data.names[0]);\n getDemoInfo(data.names[0]);\n \n });\n }", "title": "" }, { "docid": "aed52794c9805d1c7e115135b234cfd7", "score": "0.5325031", "text": "function findData() {\n d3.json(\"data/samples.json\").then((data) => {\n console.log(data)\n let dropdown = d3.select(\"#selDataset\")\n data.names.forEach((subject) => {\n dropdown.append(\"option\").text(subject)\n .property(\"value\", subject)\n });\n createCharts(data.names[0])\n });\n\n}", "title": "" }, { "docid": "e55b9568b8931093b6f562a60bce750d", "score": "0.53232586", "text": "function init() {\n console.log('1.1 Function init will now pull data from samples.jason file.')\n d3.json(\"data/samples.json\").then(function (jsonData) {\n let data = jsonData;\n\n //Capturing the id, which we will call names for the drop-down menu\n let dataNames = data.names;\n var dropDownMenu = d3.select(\"#selDataset\");\n\n console.log('1.2 Get options and populate drop down menu.')\n dataNames.forEach(function (name) {\n dropDownMenu.append(\"option\").text(name).property(\"value\", name);\n });\n\n console.log('1.3 Get first option in menu: ' + dataNames[0])\n let selectedID = dataNames[0];\n\n console.log('2. Call datapull function which will collect data for option : ' + dataNames[0])\n datapull(selectedID);\n });\n}", "title": "" }, { "docid": "4b557891e21eecbdb51f81ca2ab7f4c0", "score": "0.53143626", "text": "function datasetsInit(input, output, context) {\n let datasetMapData = [];\n let datasetAccountsData = [];\n let datasetMapDictionary = {};\n \n output.progress(0, \"initialising\");\n\n // Retrieve the dataset map that map default resources to datasets\n return context.tdxApi.getDatasetDataAsync(input.datasetMap, null, null, null)\n .then((response) => {\n datasetMapData = response.data;\n \n return context.tdxApi.getDatasetDataAsync(input.datasetAccounts, null, null, null)\n })\n .then((response) => {\n datasetAccountsData = response.data;\n\n // Iterate over the list of dataset maps\n return Promise.each(datasetMapData, (entry) => {\n let resourcePromise;\n\n switch(entry.type) {\n case JSON_TYPE: // JSON file type\n resourcePromise = context.tdxApi.getRawFileAsync(entry.resourceIn);\n break;\n case DATASET_TYPE: // Dataset type\n resourcePromise = context.tdxApi.getDatasetDataAsync(entry.resourceIn, null, null, null);\n break;\n default:\n resourcePromise = Promise.reject(new Error(\"Unknown resource type!\"));\n break;\n }\n\n return resourcePromise.then((result)=>{\n datasetMapDictionary[entry.resourceIn] = result.data;\n return Promise.resolve(entry.resourceIn);\n });\n });\n })\n .then((result) => {\n const accountSize = datasetAccountsData.length;\n let accountCount = 1;\n\n // Iterate over the accounts list\n return Promise.each(datasetAccountsData, (account) => {\n\n // Iterate over the dataset list\n output.debug(\"Saving account: %s\\n\", account.accountName);\n return Promise.each(datasetMapData, (mapData) => {\n // Change the field value\n _.forEach(datasetMapDictionary[mapData.resourceIn], (entry) => {\n entry[mapData.field] = account.accountId;\n })\n output.debug(\"Saving dataset: %s for user: %s\", mapData.description, account.accountName);\n return context.tdxApi.addDatasetDataAsync(mapData.resourceOut, datasetMapDictionary[mapData.resourceIn])\n .then((response) => {\n output.debug(\"Added: %d entries\", datasetMapDictionary[mapData.resourceIn].length);\n output.progress(100 * (accountCount++) / accountSize);\n\n return Promise.resolve(response);\n })\n .catch((err) => {\n // Check if key is already added, continue\n if (checkTdxKeyError(err)) {\n output.debug(\"Entry already exists!\");\n output.progress(100 * (accountCount++) / accountSize);\n\n return Promise.resolve({});\n } else\n return Promise.reject(err);\n })\n });\n });\n })\n .then(() => {\n output.debug(\"Import done.\");\n });\n }", "title": "" }, { "docid": "fc4c42b8cc86a1aaebf4189a1d2af1a7", "score": "0.5291965", "text": "function populateDatasetDropdownCurate(datasetDropdown, datasetlist) {\n removeOptions(datasetDropdown);\n\n /// making the first option: \"Select\" disabled\n addOption(datasetDropdown, \"Select dataset\", \"Select dataset\");\n var options = datasetDropdown.getElementsByTagName(\"option\");\n options[0].disabled = true;\n\n for (var myitem of datasetlist) {\n var myitemselect = myitem.name;\n var option = document.createElement(\"option\");\n option.textContent = myitemselect;\n option.value = myitemselect;\n datasetDropdown.appendChild(option);\n }\n}", "title": "" }, { "docid": "fc4c42b8cc86a1aaebf4189a1d2af1a7", "score": "0.5291965", "text": "function populateDatasetDropdownCurate(datasetDropdown, datasetlist) {\n removeOptions(datasetDropdown);\n\n /// making the first option: \"Select\" disabled\n addOption(datasetDropdown, \"Select dataset\", \"Select dataset\");\n var options = datasetDropdown.getElementsByTagName(\"option\");\n options[0].disabled = true;\n\n for (var myitem of datasetlist) {\n var myitemselect = myitem.name;\n var option = document.createElement(\"option\");\n option.textContent = myitemselect;\n option.value = myitemselect;\n datasetDropdown.appendChild(option);\n }\n}", "title": "" }, { "docid": "94967e2269b44dfa7f67c723130b87e3", "score": "0.5289108", "text": "static createChildDataset(raw) {\n const allProps = Object.assign({}, raw, raw.object, {\n name: raw.element_identifier\n });\n const { object, element_identifier, ...props } = allProps; // eslint-disable-line no-unused-vars\n return new Dataset(props);\n }", "title": "" }, { "docid": "8d8484b48ed219f9ebee3f4f677cf4bb", "score": "0.5283528", "text": "function init() {\n // select dropdown menu \n var dropdown = d3.select(\"#selDataset\");\n\n // read the data \n d3.json(\"samples.json\").then((data)=> {\n console.log(data)\n\n // get the id data to the dropdwown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n\n // call the functions to display the data and the plots to the page\n Plotting(data.names[0]);\n datas(data.names[0]);\n });\n}", "title": "" }, { "docid": "a1c2ae79c1994a5c155d8716e1ff483c", "score": "0.5282954", "text": "updateDescriptionFile(file, projectId, callback) {\n files.read(file, contents => {\n let description = JSON.parse(contents)\n let authors = []\n let references = []\n if (description.hasOwnProperty('Authors')) {\n for (let i = 0; i < description.Authors.length; i++) {\n let author = description.Authors[i]\n authors.push(author)\n }\n }\n if (description.hasOwnProperty('ReferencesAndLinks')) {\n for (let i = 0; i < description.ReferencesAndLinks.length; i++) {\n let reference = description.ReferencesAndLinks[i]\n references.push(reference)\n }\n }\n file = new File(\n [JSON.stringify(description, null, 4)],\n 'dataset_description.json',\n { type: 'application/json' },\n )\n datalad.updateFile(projectId, file).then(() => {\n description.Authors = authors\n description.ReferencesAndLinks = references\n let dataset = this.data.dataset\n dataset.description = description\n this.update({ dataset })\n callback()\n })\n })\n }", "title": "" }, { "docid": "aff7ed7635d79d25b72d4f2926ba44d5", "score": "0.5270858", "text": "function init() {\n var selector = d3.select(\"#selDataset\");\n var options;\n var r;\n d3.json(jsonFileName).then((data) => {\n console.log(data);\n var sampleNames = data.names;\n sampleNames.forEach((sample) => {\n selector\n .append(\"option\")\n .text(sample)\n .property(\"value\", sample);\n });\n let e = document.getElementById(\"selDataset\");\n r = e.options[0].value;\n console.log(\"E: \" + r);\n optionChanged(r);\n });\n}", "title": "" }, { "docid": "1e8efb47a716de077c1fea954f3d5a43", "score": "0.52575797", "text": "function dataLoad() {\n\n d3.json(filePath).then((data) => {\n\n var dataBB = data;\n var names = data.names;\n var metadata = data.metadata[0];\n var samples = data.samples[0];\n\n names.forEach((name) => {\n dropDown.append(\"option\").text(name).property(\"value\", name)\n });\n\n // Will need to call placeholder data into other functions to build out plots on the selected dropdown\n // This is so it loads on something\n var pass = names[0];\n chartLoad(pass);\n\n });\n}", "title": "" }, { "docid": "77ac9110d106c46758fec021d4f42e74", "score": "0.5252907", "text": "constructor(data) {\n this.datasets = data;\n }", "title": "" }, { "docid": "67b1599d7bc508ced595049dcc2ff4bf", "score": "0.5248179", "text": "function init() {\n // select dropdown menu \n var dropdown = d3.select(\"#selDataset\");\n\n // read the data \n d3.json(\"data/samples.json\").then((data)=> {\n // console.log(data)\n\n // get the id data to the dropdwown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n\n // call the functions to display the data and the plots to the page\n graphs(data.names[0]);\n DataTable(data.names[0]);\n });\n}", "title": "" }, { "docid": "1daeada581b86544e325abdd359c3a81", "score": "0.52187765", "text": "function dropDownMenu() {\n var dropdown = d3.select(\"#selDataset\");\n\n d3.json(\"../data/samples.json\").then((data) => {\n\n data.names.forEach((name) => {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n \n generatePlots(data.names[0]);\n generateInfo(data.names[0]);\n });\n}", "title": "" }, { "docid": "bbe48215216f19d9ed3f24ec3ee0fad5", "score": "0.5207795", "text": "function init() {\n // Select dropdown menu: \n var dropdown = d3.select(\"#selDataset\");\n \n //Read the data. \n d3.json(\"samples.json\").then((data)=> {\n console.log(data)\n \n // Obtain id data to place into the dropdown menu.\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n \n //Call the functions to display the data and plots to the page. \n getPlots(data.names[0]);\n getDemoInfo(data.names[0]);\n });\n }", "title": "" }, { "docid": "1db4e209a63bbade80f4892adae177e0", "score": "0.5203045", "text": "function addHierarchyMetaToDatasets(hierarchyMetadata, datasets) {\n\n var arrData = [];\n for (var property in datasets) {\n if (datasets.hasOwnProperty(property)) {\n var mapIndex;\n\n // add the node metadata\n if (hierarchyMetadata.nodeMetadata && hierarchyMetadata.nodeMetadata[property]) {\n $.extend(true, datasets[property], datasets[property], hierarchyMetadata.nodeMetadata[property]);\n }\n\n // check if the node should be removed\n if (hierarchyMetadata && hierarchyMetadata.mappingTable && hierarchyMetadata.mappingTable.to){\n mapIndex = hierarchyMetadata.mappingTable.to.indexOf(datasets[property].parentNode);\n if (mapIndex > -1) {\n continue;\n }\n }\n\n // check if the parent node needs to be re-mapped\n if (hierarchyMetadata && hierarchyMetadata.mappingTable && hierarchyMetadata.mappingTable.from) {\n mapIndex = hierarchyMetadata.mappingTable.from.indexOf(datasets[property].parentNode);\n if (mapIndex > -1) {\n datasets[property].parentNode = hierarchyMetadata.mappingTable.to[mapIndex];\n }\n }\n\n arrData.push(datasets[property]);\n }\n }\n\n\n function buildHierarchy(arry, hierarchyMetadata) {\n\n var roots = [],\n children = {},\n customRoots = (hierarchyMetadata.topNodes && hierarchyMetadata.topNodes.length) ? hierarchyMetadata.topNodes : [],\n x, z;\n\n // find the top level nodes and hash the children based on parent\n for (x = 0; x < arry.length; x++) {\n var item = arry[x],\n p = item.parentNode;\n\n // check the roots\n if (customRoots.length\n && customRoots.length > 0\n ) {\n // roots may only be of type sector\n if (customRoots.indexOf(item.id) === -1 || (!customRoots.length && item.id.substring(0, 3) !== \"SE-\") ) {\n if (!p) {\n continue;\n }\n } else {\n delete(item.parentNode);\n p = null;\n\n item.state = {\n 'opened': true\n }\n }\n }\n // if no topnodes are specified, the rootnodes are the items without a parent\n else if (!p) {\n // roots may only be of type sector\n if (item.id.substring(0, 3) !== \"SE-\") {\n continue;\n } else {\n item.state = {\n 'opened': true\n }\n }\n }\n\n var target = !p ? roots : (children[p] || (children[p] = []));\n target.push(item);\n }\n\n // function to recursively build the tree\n var findChildren = function (parent) {\n if (children[parent.id]) {\n parent.children = children[parent.id];\n for (var y = 0; y < parent.children.length; y++) {\n findChildren(parent.children[y]);\n }\n }\n };\n\n // enumerate through to handle the case where there are multiple roots\n for (z = 0; z < roots.length; z++) {\n findChildren(roots[z]);\n }\n return roots\n }\n\n /**\n * Sort the hierarchy nodes, first by the order defined in the configuration\n * next alphabetically\n * @param arrData\n * @param hierarchyMetadata\n */\n function sortHierNodes(arrData, hierarchyMetadata) {\n\n // read the sorting configuration\n var hierOrder = hierarchyMetadata.nodeOrder;\n\n // split the nodes:\n // - group A: items defined in the hierOrder array (will be sorted by hierOrder)\n // - group B: items not defined in the array (will be sorted alphabetically)\n var groupA = [],\n groupB = [];\n for (var x=0; x<arrData.length; x++) {\n if (!arrData[x].id || !arrData[x].name) {\n // don't do anything...\n } else if (hierOrder && hierOrder.indexOf(arrData[x].id) > -1) {\n groupA.push(arrData[x]);\n } else {\n groupB.push(arrData[x]);\n }\n }\n\n // sort group A\n groupA.sort(function(a, b){\n return hierOrder.indexOf(a.id) - hierOrder.indexOf(b.id);\n });\n\n // sort group B\n groupB.sort(function(a, b){\n if(a.name && b.name && a.name < b.name) return -1;\n if(a.name && b.name && a.name > b.name) return 1;\n return 0;\n });\n\n return groupA.concat(groupB);\n }\n\n // create the hierarchy object for jsTree\n var sortedHierNodes = sortHierNodes(arrData, hierarchyMetadata);\n return buildHierarchy(sortedHierNodes, hierarchyMetadata);\n }", "title": "" }, { "docid": "c60983ace5190f6add2e4071f3f9bff1", "score": "0.5191703", "text": "function init() {\n // select dropdown menu \n // html: select id=\"selDataset\" \n var dropdown = d3.select(\"#selDataset\");\n\n // read the data \n d3.json(\"samples.json\").then(function(data){ \n console.log(data); \n\n // get the id data to the dropdwown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n\n // call the functions to display the data and the plots to the page\n getPlot(data.names[0]);\n getInfo(data.names[0]);\n });\n}", "title": "" }, { "docid": "f2c741572d948db625fa4423a51763c6", "score": "0.51906085", "text": "function datas(id) {\n // read the json file to get data\n d3.json(\"samples.json\").then((data)=> {\n \n // get the metadata info for the demographic panel\n var metadata = data.metadata;\n\n console.log(metadata)\n\n // filter meta data info by id\n var result = metadata.filter(meta => meta.id.toString() === id)[0];\n\n // select demographic panel to put data\n var demographicInfo = d3.select(\"#sample-metadata\");\n \n // empty the demographic info panel each time before getting new id info\n demographicInfo.html(\"\");\n\n // grab the necessary demographic data data for the id and append the info to the panel\n Object.entries(result).forEach((key) => { \n demographicInfo.append(\"h5\").text(key[0].toUpperCase() + \": \" + key[1] + \"\\n\"); \n });\n });\n}", "title": "" }, { "docid": "2c96ca5abd88e994de57c3c444c84052", "score": "0.5183341", "text": "buildDownloadOptions() {\n // Build all the query strings based on the dataset.\n this.buildQueryStrings();\n\n // Add the entire options menu. Annotations only have one or two items, while experiments\n // and FCCs have the whole set.\n this._downloadOptions = [];\n if (this._assemblies.length > 0) {\n this._downloadOptions = [\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['default-files']],\n query: this._defaultFileQueryString,\n },\n ];\n }\n if (this._datasetType !== 'Annotation') {\n if (this._assemblies.length > 0) {\n this._downloadOptions.push(\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['default-analysis']],\n query: this._defaultAnalysisQueryString,\n }\n );\n }\n this._downloadOptions.push(\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['processed-files']],\n query: this._processedQueryString,\n },\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['raw-files']],\n query: this._rawQueryString,\n },\n );\n }\n this._downloadOptions.push(\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['all-files']],\n query: this._allQueryString,\n },\n );\n\n // Build the index of all of all the download options.\n this._downloadOptionsIndex = buildDownloadOptionsIndex(this._downloadOptions);\n }", "title": "" }, { "docid": "1b33f78f6dbccfd4d8b59c949f2b1f54", "score": "0.5180859", "text": "function addHierarchyMetaToDatasets(hierarchyMetadata, datasets) {\n\n var arrData = [];\n for (var property in datasets) {\n if (datasets.hasOwnProperty(property)) {\n var mapIndex;\n\n // add the node metadata\n if (hierarchyMetadata.nodeMetadata && hierarchyMetadata.nodeMetadata[property]) {\n $.extend(true, datasets[property], datasets[property], hierarchyMetadata.nodeMetadata[property]);\n }\n\n // check if the node should be removed\n if (hierarchyMetadata && hierarchyMetadata.mappingTable && hierarchyMetadata.mappingTable.to) {\n mapIndex = hierarchyMetadata.mappingTable.to.indexOf(datasets[property].parentNode);\n if (mapIndex > -1) {\n continue;\n }\n }\n\n // check if the parent node needs to be re-mapped\n if (hierarchyMetadata && hierarchyMetadata.mappingTable && hierarchyMetadata.mappingTable.from) {\n mapIndex = hierarchyMetadata.mappingTable.from.indexOf(datasets[property].parentNode);\n if (mapIndex > -1) {\n datasets[property].parentNode = hierarchyMetadata.mappingTable.to[mapIndex];\n }\n }\n\n arrData.push(datasets[property]);\n }\n }\n\n\n function buildHierarchy(arry, hierarchyMetadata) {\n\n var roots = [],\n children = {},\n customRoots = (hierarchyMetadata.topNodes && hierarchyMetadata.topNodes.length) ? hierarchyMetadata.topNodes : [],\n x, z;\n\n // find the top level nodes and hash the children based on parent\n for (x = 0; x < arry.length; x++) {\n var item = arry[x],\n p = item.parentNode;\n\n // check the roots\n if (customRoots.length\n && customRoots.length > 0\n ) {\n // roots may only be of type sector\n if (customRoots.indexOf(item.id) === -1 || (!customRoots.length && item.id.substring(0, 3) !== \"SE-\") ) {\n if (!p) {\n continue;\n }\n } else {\n delete(item.parentNode);\n p = null;\n\n item.state = {\n 'opened': true\n }\n }\n }\n // if no topnodes are specified, the rootnodes are the items without a parent\n else if (!p) {\n // roots may only be of type sector\n if (item.id.substring(0, 3) !== \"SE-\") {\n continue;\n } else {\n item.state = {\n 'opened': true\n }\n }\n }\n\n var target = !p ? roots : (children[p] || (children[p] = []));\n target.push(item);\n }\n\n // function to recursively build the tree\n var findChildren = function (parent) {\n if (children[parent.id]) {\n parent.children = children[parent.id];\n for (var y = 0; y < parent.children.length; y++) {\n findChildren(parent.children[y]);\n }\n }\n };\n\n // enumerate through to handle the case where there are multiple roots\n for (z = 0; z < roots.length; z++) {\n findChildren(roots[z]);\n }\n return roots\n }\n\n /**\n * Sort the hierarchy nodes, first by the order defined in the configuration\n * next alphabetically\n * @param arrData\n * @param hierarchyMetadata\n */\n function sortHierNodes(arrData, hierarchyMetadata) {\n\n // read the sorting configuration\n var hierOrder = hierarchyMetadata.nodeOrder;\n\n // split the nodes:\n // - group A: items defined in the hierOrder array (will be sorted by hierOrder)\n // - group B: items not defined in the array (will be sorted alphabetically)\n var groupA = [],\n groupB = [];\n for (var x = 0; x < arrData.length; x++) {\n if (!arrData[x].id || !arrData[x].name) {\n // don't do anything...\n } else if (hierOrder.indexOf(arrData[x].id) > -1) {\n groupA.push(arrData[x]);\n } else {\n groupB.push(arrData[x]);\n }\n }\n\n // sort group A\n groupA.sort(function (a, b) {\n return hierOrder.indexOf(a.id) - hierOrder.indexOf(b.id);\n });\n\n // sort group B\n groupB.sort(function (a, b) {\n if (a.name && b.name && a.name < b.name) return -1;\n if (a.name && b.name && a.name > b.name) return 1;\n return 0;\n });\n\n return groupA.concat(groupB);\n }\n\n // create the hierarchy object for jsTree\n var sortedHierNodes = sortHierNodes(arrData, hierarchyMetadata);\n return buildHierarchy(sortedHierNodes, hierarchyMetadata);\n }", "title": "" }, { "docid": "84f1134de9bf66aeb7435d8ec2b5f877", "score": "0.51791793", "text": "function init() { \n var dropdown = d3.select(\"#selDataset\");\n \n d3.json(\"static/samples.json\").then((data)=> {\n console.log(\"checking to see if json loads for dropdown selection: \", data)\n\n // ids for dropdown\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n\n // functions for data from above to display after dropdown selection\n plotInfo(data.names[0]);\n demoInfo(data.names[0]);\n\n });\n}", "title": "" }, { "docid": "06ed239db07ebf337c72a41cf85f2656", "score": "0.5173313", "text": "function init() {\n // select dropdown menu \n var dropdown = d3.select(\"#selDataset\");\n\n // read the data \n d3.json(\"data/samples.json\").then((data)=> {\n console.log(\"Samples JSON successfully read\")\n\n // Goes through the JSON to get the names of each ID and appends them to the dropdown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\");\n });\n\n // call the functions to display the data and the plots to the page\n makePlot(data.names[0]);\n makeMetadata(data.names[0]);\n });\n}", "title": "" }, { "docid": "7cb54fb624126f65a2ce6367b4360b44", "score": "0.5171032", "text": "function optionChanged() {\n // Use D3 to select the dropdown menu\n var dropdownMenu = d3.select(\"#selDataset\");\n // Assign the value of the dropdown menu option to a variable\n var dataset = dropdownMenu.property(\"value\");\n console.log(dataset)\n var data = []\n\n\n\n\n function show(nameDrop) {\n // GET THE SELECTED VALUE FROM <select> ELEMENT AND SHOW IT.\n var userData = document.getElementById('sample-metadata');\n userData.innerHTML = dataset + '</b> </br>' +\n 'ID: <b>' + otuIds + '</b>';\n\n };\n}", "title": "" }, { "docid": "4c436f0af262c753d408d30ba6902552", "score": "0.51638967", "text": "function addDataset (datasetUrl) {\n map.fire('dataloading')\n $.ajax(datasetUrl, {\n dataType: 'json',\n success: dataset => {\n // we need to determine what layers we should add based on the dataset metadata\n let coverageTypes = new Set(dataset.coverageTypes)\n \n if (coverageTypes.has('Profile')) {\n // We assume that all profiles in this dataset belong together.\n // For each parameter a layer is created.\n for (let paramKey of Object.keys(dataset.parameters)) {\n addProfileFeatures(dataset, paramKey)\n }\n }\n \n if (coverageTypes.has('Grid')) {\n // We load all Grid features (without their range) and construct the layers.\n // TODO this loads the domains as well which may be too much in this first step\n map.fire('dataloading')\n let gridFeaturesUrl = dataset.coverages + '?filter=type=Grid&details=domain,rangeMetadata'\n $.ajax(gridFeaturesUrl, {\n dataType: 'json',\n accepts: { json: 'application/prs.coverage+json' },\n success: coverages => {\n for (let coverage of coverages.coverages) {\n initFeature(coverage)\n for (let paramKey of Object.keys(coverage.ranges).filter(k => k !== 'type')) {\n addGridFeatureParam(coverages, coverage, paramKey)\n }\n }\n },\n complete: () => {\n map.fire('dataload')\n }\n })\n }\n },\n complete: () => {\n map.fire('dataload')\n }\n })\n\n}", "title": "" }, { "docid": "6c26962842d9ff27716b69f321ee0217", "score": "0.51513827", "text": "function init() {\n resetData(); // reset any previous data; see function definition below\n d3.json(\"data/samples.json\").then((data => {\n data.names.forEach((name => {id.append(\"option\").text(name);}));\n plotCharts(id.property(\"value\")); // plot charts with value ID changed in drop down menu; see function definition below\n })); \n}", "title": "" }, { "docid": "28e2ef04af99258e0f08f754d576ce56", "score": "0.51332027", "text": "function setStaticMetadataSets(list) {\n\taddOptionToList(list, \"All\", gs.text.de.all_metadata);\n}", "title": "" }, { "docid": "6fb03e72ee6cf02b21e48d97f71db1df", "score": "0.5103402", "text": "function init() {\n // select dropdown menu \n var dropdown = d3.select(\"#selDataset\");\n\n // read the data \n d3.json(\"Data/samples.json\").then((data)=> {\n console.log(data)\n\n // get the id data to the dropdown menu\n data.names.forEach(function(name) {\n dropdown.append(\"option\").text(name).property(\"value\")\n\n });\n\n // call the functions to display the data and the plots to the page for first individual\n getPlot(940);\n getInfo(940);\n });\n}", "title": "" }, { "docid": "034caf6915ec5c81007387b3e29a833b", "score": "0.510323", "text": "function createDatasetItems(data) {\n\t\tdata = JSON.parse(data);\n\t\tvar output = to_json(data);\n\t\tvar sheetName = Object.keys(output)[0];\n\t\tvar dataset_items = [];\n\n\t\t$.each(output[sheetName], function (i, item) {\n\t\t\tvar question = output[sheetName][i].question;\n\t\t\tvar answer = output[sheetName][i].answer;\n\t\t\tvar hint = (output[sheetName][i].hint === null) ? \"\" : output[sheetName][i].hint;\n\t\t\tdataset_items.push({\"id\": i, \"text\": question, \"answer\": answer, \"hint\": hint});\n\t\t});\n\n\t\treturn JSON.stringify(dataset_items);\n\t}", "title": "" }, { "docid": "f0e873329a1af9a0dcc944f32f6b6812", "score": "0.51020116", "text": "function dropDown(sampleData){\n\tsampleData['names'].forEach(name=>{\n\t\tvar newItem = d3.select('#selDataset').append('option');\n\t\tnewItem.text(name);\n\t\tnewItem.property('value', name)\n\t});\n}", "title": "" }, { "docid": "13b414f7064f93698e476612eda1a180", "score": "0.50882626", "text": "function charts() {\n d3.json(\"data/samples.json\").then(function(data) {\n var names =Object.values(data.names);\n //define the Menu\n var dropdownMenu = d3.select(\"#selDataset\");\n //insert in an option for each name(id) to html selection, with the name of the id \n names.forEach((i) => {\n dropdownMenu\n .append(\"option\")\n .text(i)\n .property(\"value\", i)\n });\n // Assign the dropdownmenu option selected to a variable\n var selectedOption = dropdownMenu.property(\"value\");\n console.log(selectedOption);\n\n // createMetadataChart(data.metadata, selectedOption);\n var metadata = data.metadata;\n var filtedArray = metadata.filter(obj => obj.id == selectedOption)\n console.log(filtedArray)\n var currMetadata = filtedArray[0];\n\n var metaPanel = d3.select(\"#sample-metadata\");\n metaPanel.html(\"\");\n\n Object.entries(currMetadata).forEach(([k, v]) => {\n metaPanel.append(\"p\").html(`<b>${k}:</b> ${v}`);\n })\n\n\n //We will retrieve the data from samples array\n var samples =Object.values(data.samples);\n samples.forEach((i)=>{\n var id=Object.values(i); \n //retrieve id\n var id_value=id[0];\n //retrieve otu_ids\n var otu_ids=Object.values(id[1]);\n // Slice the first 10 objects for plotting\n var slicedOtu_ids = otu_ids.slice(0, 10);\n //retrieve sample_values\n var sample_values=Object.values(id[2]);\n // Slice the first 10 objects for plotting\n var slicedSample_values = sample_values.slice(0, 10);\n reversedSample_values= slicedSample_values.reverse()\n //retrieve otu_labels\n var otu_labels=Object.values(id[3]);\n // Slice the first 10 objects for plotting\n var slicedOtu_labels = otu_labels.slice(0, 10);\n\n //once we retrieve the data, we will graph the selection option, \n //if the selected option matches with the data, then plot the bar and bubble charts \n //if not, print false\n if (selectedOption===id_value){\n //console.log (id)\n var data_sample=[id_value, slicedOtu_ids, reversedSample_values, slicedOtu_labels]\n console.log(data_sample);\n var y= slicedOtu_ids.map(otu => \"OTU \" + otu).reverse();\n //we will set the function to plot the bar and bubble charts\n function init() {\n //first the bar chart (for the top ten results) \n data_bar = [{\n x: data_sample[2],\n y: y, \n type:\"bar\",\n text: data_sample[3],\n orientation: \"h\" \n }];\n var layout_bar = {\n title: \"Top 10 Bacteria Cultures Found\",\n };\n var CHART_bar = d3.selectAll(\"#bar\").node();\n Plotly.newPlot(CHART_bar, data_bar,layout_bar);\n }\n\n //second the bubble chart (for the whole data)\n var data_pop=[id_value, otu_ids, sample_values, otu_labels]\n data_bubble = [{\n x: data_pop[1],\n y: data_pop[2],\n text: data_pop[3],\n mode: \"markers\",\n marker:{\n size:data_pop[2],\n color:data_pop[1] \n }\n }];\n\n var layout_bubble = {\n title: \"Bacteria Cultures Per Sample\",\n };\n\n var CHART_bubble = d3.selectAll(\"#bubble\").node();\n Plotly.newPlot(CHART_bubble, data_bubble,layout_bubble);\n \n init() \n }\n //if the selected option is different of the id_value in the data, print false\n else {\n console.log(\"false\");\n } \n });\n });\n}", "title": "" }, { "docid": "f114e75106bd944bc75d3396c5c2d42c", "score": "0.5079606", "text": "function getData(dataset) {\n console.log(\"parameter is selected\", dataset);\n if (dataset === 'defaultvalue') {\n var datause = [0, 0, 0];\n updatePlotly(datause);\n initBubble();\n }\n else {\n para_name = dataset;\n var datause = [];\n console.log(\"next step should be getting citydata.json\");\n d3.json(\"static/dataset/citydata.json\", function(data) {\n console.log(\"newdata is ready\");\n console.log(\"newdata\", data[dataset]);\n datause.push(data[dataset]['Dallas']);\n datause.push(data[dataset]['Jackson']);\n datause.push(data[dataset]['San Francisco']);\n updatePlotly(datause);\n initBubble();\n });\n }\n \n}", "title": "" }, { "docid": "ed8aeed1c1969003ec002bdcfe84a121", "score": "0.5066099", "text": "function loadDatasets(map) {\n // if we did this after the map was loading, call map.resize();\n document.querySelector('#features').style.display = 'none'; \n document.querySelector('#legends').style.display = 'none';\n // For people who want the \"script\". \n window.captions = datasets.map(d => `${d.caption} (${d.delay / 1000}s)`).join('\\n');\n\n\n return Promise\n .all(datasets.map(d => { \n if (d.dataset) {\n console.log('Loading dataset ' + d.dataset.dataId);\n return d.dataset.load();\n } else\n return Promise.resolve();\n })).then(() => datasets[0].dataset);\n}", "title": "" }, { "docid": "4cc60c2e911c49584587ff7e416a05b4", "score": "0.50486416", "text": "function displayDatasets(datasetsarr){\n\tdiv = document.getElementById('datasets-content');\n\n\tvar list = $(\"#datasets-list\");\n\tlist.html(''); //set to empty\n\tfor (i in datasetsarr){\n\t var id = datasetsarr[i].properties.id;\n\t\tvar layers = datasetsarr[i].properties.layergroups;\n\t\tvar startdate = datasetsarr[i].properties.startdate;\n\t\tvar enddate = datasetsarr[i].properties.enddate;\n\n\t\t/* Sort by layertype name so that they have the same order\n\t\t * e.g. DEM will be displayed first\n\t\t * */\n\t\tlayers.sort(function(a, b) {\n\t\t return a.layertype.localeCompare(b.layertype);\n\t\t});\n\t\t// create list entry\n\t\thtml= \"<tr><td value='\" + id + \"'>\" + \"<b>\"+ \"Dataset | </b> id: \" + id + \"<br>\" \n\t\thtml=html.concat(startdate + ' - ' + enddate)\n\t\thtml=html.concat(\"<br> \" + \"<b>Available Layertypes: </b><span class='upper'>\")\n\t\t// add available layertypes\n\t\tfor (l in layers){\n\t\t\thtml=html.concat(layers[l].layertype + ', ')\n\t\t}\n\t\thtml=html.slice(0,-2); // remove last '|' character\n\t\thtml = html.concat(\"</span></tr></td>\");\n\t list.append(html); // append to html\n\t}\n}", "title": "" }, { "docid": "35f0d80b8d92628277e69d91119c8b12", "score": "0.5048181", "text": "saveDescription(description, callback) {\n description = JSON.parse(JSON.stringify(description))\n let datasetId = this.data.dataset._id\n let authors = []\n let referencesAndLinks = []\n\n for (let author of description.Authors) {\n authors.push(author)\n }\n description.Authors = authors\n\n if (description.ReferencesAndLinks) {\n for (let referencesAndLink of description.ReferencesAndLinks) {\n referencesAndLinks.push(referencesAndLink)\n }\n description.ReferencesAndLinks = referencesAndLinks\n }\n\n this.updateModified()\n datalad\n .updateFileFromString(\n datasetId,\n 'dataset_description.json',\n JSON.stringify(description, null, 4),\n 'application/json',\n )\n .then(() => {\n callback()\n })\n }", "title": "" }, { "docid": "af1519ece1e0387edca5d7bf026d830d", "score": "0.5034621", "text": "function datasetDangerously() {}", "title": "" }, { "docid": "1b26bec045c36def65dbdea4fa977d7c", "score": "0.4995505", "text": "function buildmetadata(input) {\n d3.json(\"samples.json\").then((data) => {\n const metadata = data.metadata;\n var fordemos = metadata.filter(data => data.id == input);\n var subject = fordemos[0]\n \n //select sample metadata cha clear it. then populate with values for subject\n var panel = d3.select('#sample-metadata');\n panel.html(\"\")\n\n Object.entries(subject).forEach(([cat,value]) => {\n\n panel.append(\"h5\").text(`${cat}: ${value}`)\n })\n\n })\n}", "title": "" }, { "docid": "5b3549318e09bd6e34adb14b7c7b55e2", "score": "0.49874535", "text": "function getData(dataset, variableName, level)\n{\n if(level === undefined) \n level = \"dataset\";\n \n variables[variableName][level] = [];\n \n for(var i=0; i<dataset.length; i++)\n variables[variableName][level].push(dataset[i][variableName]); \n \n MIN[variableName][level] = Array.min(variables[variableName][level]);\n MAX[variableName][level] = Array.max(variables[variableName][level]);\n \n IQR[variableName][level] = findIQR(variables[variableName][level]);\n CI[variableName][level] = findCI(variables[variableName][level]); \n \n if(++variableCount == getObjectLength(variableNames))\n {\n setVariableRoles();\n setVariableTypes();\n \n testForEvilVariables();\n \n removeElementsByClassName(\"loadingAnimation\");\n freezeMouseEvents = false;\n \n experimentalDesign = findExperimentalDesign(); \n \n var visualisations = [\"Histogram\", \"Boxplot\", \"Scatterplot\", \"Scatterplot-matrix\"];\n invalidate(visualisations);\n\n // displayToolTips();\n }\n}", "title": "" }, { "docid": "ba2af231de153ba3999f1bea9a9dcfdc", "score": "0.49832484", "text": "function retrieveAllData(dataset, nodevalue) {\n for (var item in dataset) {\n if (typeof(dataset[item]) === 'object') {\n // If the current node equals the node name\n if (nodevalue === item) {\n nodesWithSameName = nodesWithSameName + 1;\n // Returns the config dataset for the current node name\n subset = dataset[item];\n } else {\n // Recursive search in the node\n retrieveAllData(dataset[item], nodevalue);\n }\n }\n }\n}", "title": "" }, { "docid": "9f06539d2ef41b8468da0b2b6d9b46e7", "score": "0.4970528", "text": "function InitDashboard(){\n console.log(\"Init Dashboard()\");\n\n // Populate the dropdown\n var selector = d3.select(\"#selDataset\");\n\n d3.json(\"./data/samples.json\").then(function (data) {\n console.log(data);\n \n var sampleName = data.names;\n \n // For each to get the Sample Ids on the dropdown\n sampleName.forEach(sampleId => {\n selector.append(\"option\")\n .text(sampleId)\n .property(\"value\", sampleId);\n });\n \n var id = sampleName[0];\n\n // Commands to create visualizations\n DrawBarGraph(id);\n DrawBubbleChart(id);\n CreateDemoTable(id);\n DrawGaugeChart(id);\n\n });\n\n\n // Update the bargraph\n // Update Bubble Graph\n // Update Demographic Info\n}", "title": "" }, { "docid": "0b99272d39935a77a4a945dad3b2339e", "score": "0.49664012", "text": "function datasetOnLoad(_dataset) {\n dataset = _dataset;\n if (dataset.columns.length < 2) {\n showAlert(`Invalid dataset\\nDataset has ${dataset.columns.length} column(s) (at least 2 required).`);\n return;\n }\n\n // Update active-column comboboxes\n for (let i = cbColumnX.options.length - 1; i >= 0; i -= 1) {\n cbColumnX.remove(i);\n }\n for (let i = cbColumnY.options.length - 1; i >= 0; i -= 1) {\n cbColumnY.remove(i);\n }\n for (let i = cbColumnC.options.length - 1; i >= 0; i -= 1) {\n cbColumnC.remove(i);\n }\n for (let i = cbColumnS.options.length - 1; i >= 0; i -= 1) {\n cbColumnS.remove(i);\n }\n for (let i = 0; i < dataset.numColumns; i += 1) {\n let option = document.createElement('option');\n option.text = dataset.columns[i].label;\n cbColumnX.add(option);\n option = document.createElement('option');\n option.text = dataset.columns[i].label;\n cbColumnY.add(option);\n option = document.createElement('option');\n option.text = dataset.columns[i].label;\n cbColumnC.add(option);\n option = document.createElement('option');\n option.text = dataset.columns[i].label;\n cbColumnS.add(option);\n }\n if (dataset.numColumns > 3) {\n dataset.dataVectors.push(new DataVector(dataset, '0.0'/* \"0.5 * c1 + 0.5 * c3\" */));// \"i\"));\n let option = document.createElement('option');\n option.text = 'formula';\n cbColumnX.add(option);\n option = document.createElement('option');\n option.text = 'formula';\n cbColumnY.add(option);\n option = document.createElement('option');\n option.text = 'formula';\n cbColumnC.add(option);\n option = document.createElement('option');\n option.text = 'formula';\n cbColumnS.add(option);\n }\n const activeColumnX = readIntCookie('activeColumnX');\n const activeColumnY = readIntCookie('activeColumnY');\n const activeColumnC = readIntCookie('activeColumnC');\n const activeColumnS = readIntCookie('activeColumnS');\n cbColumnX.selectedIndex = Math.max(0, Math.min(\n dataset.numColumns - 1,\n activeColumnX !== null && activeColumnX < dataset.numColumns ?\n activeColumnX : 0,\n ));\n cbColumnY.selectedIndex = Math.max(0, Math.min(\n dataset.numColumns - 1,\n activeColumnY !== null && activeColumnY < dataset.numColumns ?\n activeColumnY : 1,\n ));\n cbColumnC.selectedIndex = Math.max(0, Math.min(\n dataset.numColumns - 1,\n activeColumnC !== null && activeColumnC < dataset.numColumns ?\n activeColumnC : 2,\n ));\n cbColumnS.selectedIndex = Math.max(0, Math.min(\n dataset.numColumns - 1,\n activeColumnS !== null && activeColumnS < dataset.numColumns ?\n activeColumnS : 3,\n ));\n\n // Show dataset\n plot.load(\n dataset,\n cbColumnX.selectedIndex, cbColumnY.selectedIndex,\n cbColumnC.selectedIndex, cbColumnS.selectedIndex,\n );\n}", "title": "" }, { "docid": "f4f96ec771227f60f324af6597ac39d1", "score": "0.49658802", "text": "buildDownloadOptions() {\n // Build all the query strings based on the dataset.\n this.buildQueryStrings();\n\n // Add the base download options menu configurations.\n this._downloadOptions = [\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['default-files']],\n query: this._defaultFileQueryString,\n },\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['default-analysis']],\n query: this._defaultAnalysisQueryString,\n },\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['processed-files']],\n query: this._processedQueryString,\n },\n {\n ...this._downloadOptionsTemplate[this._downloadOptionsTemplateIndex['selected-files']],\n query: this._selectionsQueryString,\n },\n ];\n\n // Build the index of all of base and custom download options.\n this._downloadOptionsIndex = buildDownloadOptionsIndex(this._downloadOptions);\n }", "title": "" }, { "docid": "4996ae09e13f9b98ca4aeee2b2052792", "score": "0.49623516", "text": "function updateSelectedDatasets(){\n checkSpinConsistency();\n //Generate the new metadata to display, depending if item is selected\n var displayText = \"\";\n var index=0;\n for (i=0; i<m_datasetForm.options.length; i=i+1) {\n if (m_datasetForm.options[i].selected ) {\n displayText += getSelectedDatasetDisplay(m_datasetMetadata[i],i,index++);\n }\n }\n //Push the text to the html element\n var textElement = document.getElementById('selectedDatasets');\n textElement.innerHTML = displayText;\n}", "title": "" }, { "docid": "c89f6507b07b9360bb46d21d49d6852a", "score": "0.4947803", "text": "function init() {\r\n // setting variable to the dropdown list\r\n var selectSample = d3.select(\"#selDataset\");\r\n // reading in the data from the json file\r\n d3.json(\"samples.json\").then((data) => {\r\n // setting the name for the samples\r\n var bactName = data.names;\r\n\r\n // creating options for the drop down list by appending options\r\n // with the text element and value as 'sample'\r\n bactName.forEach((sample) => {\r\n selectSample\r\n .append(\"option\")\r\n .text(sample)\r\n .property(\"value\", sample)\r\n });\r\n\r\n // creates a default graph so the page opens with graphs\r\n // already populated values equal to the first sample\r\n var defaultSelection = bactName[0];\r\n buildCharts(defaultSelection)\r\n buildMetaData(defaultSelection);\r\n });\r\n}", "title": "" }, { "docid": "494b6f74695e064dc80dcf9b106df518", "score": "0.49409264", "text": "function builddropdown(){\r\n var ddmenu = d3.select('#selDataset')\r\n ddmenu.append('option').text('All African Countries') //// Add to the drop down \"All SUB-SAHARAN Countries\" as an option\r\n data.features.forEach(c => {\r\n var country_name = c.properties.name\r\n ddmenu.append('option').text(country_name)\r\n }); \r\n }", "title": "" }, { "docid": "a5c46ad420ed54c3938a16f2233fe3dd", "score": "0.49406108", "text": "function prepareData(data){\n downloads = data[0].downloads\n //Changing name values to lowercase in case user enters different case\n downloads.forEach(function(d){\n d.tags.forEach(function(t){\n t.name = t.name.toLowerCase();\n t.value = t.value.toLowerCase();\n })\n })\n\n inSel = data[0].selections\n inSel.forEach(function(d){\n d.forEach(function(t){\n t.name = t.name.toLowerCase();\n t.value = t.value.toLowerCase();\n })\n })\n selections = computeSummary(inSel)\n createSelectionPanel ()\n createTagsSection ()\n}", "title": "" }, { "docid": "0593a05b5806652eb796d122023a4ec6", "score": "0.49319232", "text": "function getId(){\n \n d3.json(\"./Belly_Button/data/samples.json\").then(function(data){\n console.log(data);\n \n \n var IDs = data.samples.map(row => row.id);\n \n IDs.forEach(function(row){\n var dropdownMenu = d3.select(\"#selDataset\");\n var opt= dropdownMenu.append(\"option\");\n opt.property(\"value\",row);\n opt.text(row);\n });\n });\n }", "title": "" }, { "docid": "580660e1271c3295328a044b283ee77c", "score": "0.493179", "text": "function dropdownupdate(sample){\n d3.json(\"samples.json\").then((data) => {\n var selDataset = d3.select(\"#selDataset\")\n var names = data.names\n names.forEach((name) => {\n selDataset.append(\"option\").text(name).property(\"value\", name)\n })\n var first_sample = names[0]\n buildchart(first_sample) \n buildmetadatadisplay(first_sample)\n })\n}", "title": "" }, { "docid": "d75b7bae98db6f2d34c1e68c6719407e", "score": "0.49271053", "text": "function dataset( el ) {\n\t\tif ( $(el)[0].dataset ) {\n\t\t\treturn $.extend({}, $(el)[0].dataset);\n\t\t}\n\t\tfunction toCamelcase( str ) {\n\t\t\tstr = str.split( '-' );\n\t\t\tfor( var i = 1; i < str.length; i++ ) {\n\t\t\t\tstr[i] = str[i].substr(0, 1).toUpperCase() + str[i].substr(1);\n\t\t\t}\n\t\t\treturn str.join( '' );\n\t\t}\n\t\tvar returnDataset = {};\n\t\tvar attrs = $(el)[0].attributes;\n\t\t$.each(attrs, function ( idx, attr ) {\n\t\t\tif ( attr.nodeName.substr(0, 5) === \"data-\" ) {\n\t\t\t\treturnDataset[ toCamelcase(attr.nodeName.substr(5)) ] = attr.nodeValue;\n\t\t\t}\n\t\t});\n\t\treturn returnDataset;\n\t}", "title": "" }, { "docid": "862433c36bd6a31411b9819ee6cfab52", "score": "0.4925737", "text": "static namifyDataset(dataset) {\n var namedDataset = {};\n Object.keys(dataset).forEach(tag => {\n const data = Object.assign({}, dataset[tag]);\n if (data.vr == \"SQ\") {\n var namedValues = [];\n Object.keys(data.Value).forEach(index => {\n namedValues.push(\n DicomMetaDictionary.namifyDataset(data.Value[index])\n );\n });\n data.Value = namedValues;\n }\n var punctuatedTag = DicomMetaDictionary.punctuateTag(tag);\n var entry = DicomMetaDictionary.dictionary[punctuatedTag];\n var name = tag;\n if (entry) {\n name = entry.name;\n }\n namedDataset[name] = data;\n });\n return namedDataset;\n }", "title": "" } ]
5288e0a659edb54bab1b9b65576cbdd6
A public higherorder component to access the imperative API
[ { "docid": "9a383634c390cf1ab26a87827e9cad8e", "score": "0.0", "text": "function withRouter(Component) {\n var displayName = \"withRouter(\" + (Component.displayName || Component.name) + \")\";\n\n var C = function C(props) {\n var wrappedComponentRef = props.wrappedComponentRef,\n remainingProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(props, [\"wrappedComponentRef\"]);\n\n return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) {\n !context ? true ? Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(false, \"You should not use <\" + displayName + \" /> outside a <Router>\") : undefined : void 0;\n return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, remainingProps, context, {\n ref: wrappedComponentRef\n }));\n });\n };\n\n C.displayName = displayName;\n C.WrappedComponent = Component;\n\n if (true) {\n C.propTypes = {\n wrappedComponentRef: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object])\n };\n }\n\n return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_11___default()(C, Component);\n}", "title": "" } ]
[ { "docid": "05b46bb8a969292b6e0c684b3af445da", "score": "0.6070405", "text": "function FunctionalComponent() {}", "title": "" }, { "docid": "116edc20b3387b1ed03cdd32d6f08333", "score": "0.57829124", "text": "function higherOrder(a) {\n a(); \n}", "title": "" }, { "docid": "741bee51bb819e7f90da6e6302bf2798", "score": "0.57713205", "text": "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // so I have to make sure that I have returned in here this property", "title": "" }, { "docid": "5ad4d183faa6f9c46d518cc47c7f2cb4", "score": "0.56781846", "text": "_isolatedComputeForWrapper(component) {\n const computations = ReactInterpreter.computations(component);\n return this.optimizer.compute(computations);\n }", "title": "" }, { "docid": "9e458426abbfdbd1e7c6e84703785cd9", "score": "0.5601167", "text": "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // the reduce function which is in itself a higher order function", "title": "" }, { "docid": "78a1b23cff5c2c2fa5de5d62e3cf3922", "score": "0.53402764", "text": "get asTraversal() {\n return traversal(this.reduce, this.toArray, this.over)\n }", "title": "" }, { "docid": "55ecbd0a2b52fa4cc43aa70ed64cdd3d", "score": "0.53382486", "text": "_makeIterator() {\n return this.fn.apply(this.context, this.args);\n }", "title": "" }, { "docid": "a327aa076bc5754bcee34eb1fdae5a3f", "score": "0.52356786", "text": "fmap (_) {\n return this\n }", "title": "" }, { "docid": "e3e2bb4d0241a12cbb016aa67b1e7dca", "score": "0.5168645", "text": "function Composition() {}", "title": "" }, { "docid": "e3e2bb4d0241a12cbb016aa67b1e7dca", "score": "0.5168645", "text": "function Composition() {}", "title": "" }, { "docid": "e3e2bb4d0241a12cbb016aa67b1e7dca", "score": "0.5168645", "text": "function Composition() {}", "title": "" }, { "docid": "e3e2bb4d0241a12cbb016aa67b1e7dca", "score": "0.5168645", "text": "function Composition() {}", "title": "" }, { "docid": "5d3c9e765d60f76adb49706a64418eb5", "score": "0.5148882", "text": "ap (aFn) { \n //return this.fmap(aFn.value)\n return aFn.chain(fn => Right.of(fn(this.value)))\n }", "title": "" }, { "docid": "1773c8af0427a28e28b989fec15a2c95", "score": "0.5085232", "text": "[Symbol.iterator]() {\n return this.inOrder();\n }", "title": "" }, { "docid": "6b06b0401c54ef5c2e7c0e40b6c7db64", "score": "0.50566614", "text": "function bind(fn, thisArg, ...outerArgs){\n// rest operator \n return function(...innerArgs) {\n// spread operator\n return fn.apply(thisArg, [...outerArgs, ...innerArgs]);\n }\n}", "title": "" }, { "docid": "6e332e42107dd5cd9d4a5cda22bfa973", "score": "0.50550544", "text": "function accessM(f) {\n return P.chain_(environment(), f);\n}", "title": "" }, { "docid": "74d82f2cb62ee74c7b1a271cb095452e", "score": "0.5034251", "text": "function Component() {\n return this; // this is needed in Edge !!!\n } // Component is lazily setup because it needs", "title": "" }, { "docid": "08d4466e4982e8c056a04967f5c92d6b", "score": "0.50302976", "text": "_precomputeComputeForWrapper(component) {\n const computations = ReactInterpreter.computations(component);\n const computedValues = this.optimizer.compute(computations);\n this.renderer.notifyAboutCompute(component, computations, computedValues);\n return computedValues;\n }", "title": "" }, { "docid": "87fa3fc69d2b7703fc986ee143a2a799", "score": "0.50270486", "text": "function\nXATS2JS_lazy_cfr(a1x1)\n{\nlet xtmp1;\nlet xtmp3;\n;\nxtmp3 =\nfunction()\n{\nlet xtmp2;\n{\nxtmp2 = a1x1();\n}\n;\nreturn xtmp2;\n} // lam-function\n;\nxtmp1 = XATS2JS_new_lazy(xtmp3);\nreturn xtmp1;\n} // function // XATS2JS_lazy_cfr(0)", "title": "" }, { "docid": "2807fe3a66038cd0da8da4e9be1822b1", "score": "0.5023248", "text": "function i(e){[\"next\",\"throw\",\"return\"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}", "title": "" }, { "docid": "e9d0d6cc23d3dc2ac6b79046d227df3c", "score": "0.502224", "text": "function intermediate() { }", "title": "" }, { "docid": "0af83f9373185515e95c5161c9adcb48", "score": "0.5016028", "text": "function e(e){return (0, F[e.operation])(...e.parameters)}", "title": "" }, { "docid": "6c54033b8c8ef4d2956fecee408b4905", "score": "0.5014526", "text": "function z(){// can be called as an API method\nD(),F()}", "title": "" }, { "docid": "d50b533baf3f9227a2b819785c6110bc", "score": "0.5014175", "text": "static dimap(context) {\n return new Hask(function(f) {\n return new Hask(function(g) {\n return new Hask(function(p) {\n if (p instanceof Pierce) {\n const getter = Hask.compose(context).call(p.getter).call(f);\n\n const setter = Hask.compose(context).call(Hask.compose(context).call(g).call(p.setter)).call(Hask.first(context).call(f));\n\n return new Pierce(getter, setter);\n } else {\n throw new TypeError(\"p\");\n }\n });\n });\n });\n }", "title": "" }, { "docid": "f706cec8e36580934c2d54ebe5f15993", "score": "0.50051147", "text": "function higherOrder( callbackFn ){\n //call the callback function inside body\n callbackFn() //this is a function call.\n}", "title": "" }, { "docid": "6aeb1e2e7351cfc1d233d2fe75938dae", "score": "0.5003476", "text": "parameterizer() {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.parameterizer().call();\n });\n }", "title": "" }, { "docid": "1dc891aca664606896edda7e11cd7821", "score": "0.49979734", "text": "*[Symbol.iterator]() {\n let i = 0\n while (i < this.size()) {\n yield this.get(i)\n i++\n }\n }", "title": "" }, { "docid": "d4260b321a59ac5f3fd91aaaee9b3662", "score": "0.49823397", "text": "function Xb(){return function(v){return v}}", "title": "" }, { "docid": "9b4e2f3f0e72d2d3ff69fb611b5d24f8", "score": "0.49816474", "text": "function\nXATS2JS_lazy_vt_cfr(a1x1)\n{\nlet xtmp10;\nlet xtmp12;\nlet xtmp13;\n;\nxtmp12 =\nfunction()\n{\nlet xtmp11;\n{\nxtmp11 = a1x1();\n}\n;\nreturn xtmp11;\n} // lam-function\n;\nxtmp13 =\nfunction()\n{\nlet xtmp11;\n} // lam-function\n;\nxtmp10 = XATS2JS_new_llazy(xtmp12,xtmp13);\nreturn xtmp10;\n} // function // XATS2JS_lazy_vt_cfr(2)", "title": "" }, { "docid": "bd6795fbce040a6a863e884917fa8473", "score": "0.49727017", "text": "function curry(func) {\n // Your code goes here\n}", "title": "" }, { "docid": "9e2ab69325b0fda0d0ece9c83683ed10", "score": "0.49667972", "text": "get $__ctx__() { return LOBBY.__proto__; }", "title": "" }, { "docid": "f853246784358a5e53eb2ed25e70090e", "score": "0.49628374", "text": "[Symbol.iterator]() { return this; }", "title": "" }, { "docid": "f853246784358a5e53eb2ed25e70090e", "score": "0.49628374", "text": "[Symbol.iterator]() { return this; }", "title": "" }, { "docid": "f853246784358a5e53eb2ed25e70090e", "score": "0.49628374", "text": "[Symbol.iterator]() { return this; }", "title": "" }, { "docid": "f853246784358a5e53eb2ed25e70090e", "score": "0.49628374", "text": "[Symbol.iterator]() { return this; }", "title": "" }, { "docid": "f853246784358a5e53eb2ed25e70090e", "score": "0.49628374", "text": "[Symbol.iterator]() { return this; }", "title": "" }, { "docid": "85934653413e006b09d9f925c5e179e0", "score": "0.49601468", "text": "value(...args) {\n return [...this][methodName](...args);\n }", "title": "" }, { "docid": "db9b792ad88453b4c3acbf119e81b954", "score": "0.49575025", "text": "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // & act over the data that we receive", "title": "" }, { "docid": "40b787dd4b5b9f702510e839e91ac7eb", "score": "0.49443895", "text": "function compose(fns) {\n\n\n}", "title": "" }, { "docid": "656adc0be8c5dd389ddf764b41b0928a", "score": "0.49414265", "text": "function __it() {}", "title": "" }, { "docid": "eafd18d8109f6f9da0e66a3be6631476", "score": "0.4935344", "text": "function MyFunctionalComponent() {\n return <input />;\n}", "title": "" }, { "docid": "274e3c643853c4baf0233fca895b76a2", "score": "0.49250248", "text": "ap (_) { \n return this\n }", "title": "" }, { "docid": "d4aa8d273b73718083f14768446ab3da", "score": "0.49121928", "text": "constructor() {\r\n let useCalled = false;\r\n\r\n this.run = async (...args) => {\r\n if (useCalled) {\r\n const next = args.pop();\r\n\r\n next();\r\n }\r\n return args;\r\n };\r\n\r\n addProp(this, 'use',\r\n /**\r\n * Agrega un middleware al workflow\r\n * @param {Function} fn - función middleware a agregar\r\n *\r\n * @return {this} - Retorna la actual instancia\r\n */\r\n (fn) => {\r\n useCalled = true;\r\n\r\n this.run = ((stack) => (async (...args) => {\r\n const next = args.pop();\r\n\r\n return stack.call(this, ...args, async () => fn.call(this, ...args, next.bind(this, ...args)));\r\n }).bind(this))(this.run);\r\n\r\n return this;\r\n }\r\n );\r\n }", "title": "" }, { "docid": "1617b4034467c7c498a7fc169a85b34f", "score": "0.49021038", "text": "function getImplementation( cb ){\n\n }", "title": "" }, { "docid": "4840a04da11e50593b55cc2e12cf3e8f", "score": "0.48954836", "text": "[Symbol.iterator]() {\n return this.container[Symbol.iterator]();\n }", "title": "" }, { "docid": "d9fa742148eca584ad1260f8385ed615", "score": "0.48854446", "text": "function promoterenhancer(){\n\n}", "title": "" }, { "docid": "9846431dde660b51f6ea48fa0edfae53", "score": "0.48814353", "text": "function accessManaged(f) {\n return core.chain_((0, _environment.environment)(), f);\n}", "title": "" }, { "docid": "6c8853e7e12d96997eaf743bd1a040f7", "score": "0.48802233", "text": "[Symbol.iterator]() {\n return this.#array[Symbol.iterator]();\n }", "title": "" }, { "docid": "9f3732f4c84656f2494d5523aa14f3b3", "score": "0.4874045", "text": "function modifierFactory(callback) {\n return iteratorFactory(wrapperFactory(callback))\n}", "title": "" }, { "docid": "9990bd563328e790efc7dafc0e08922f", "score": "0.48712453", "text": "function justInvoke(fn){\n return fn()\n}//justInvoke", "title": "" }, { "docid": "d66020b361ebf8ecc6d00a7ecef925d4", "score": "0.487087", "text": "function FunctionIterable(fn){\n this.fn = fn\n}", "title": "" }, { "docid": "f1c54f05497f9d310e2d76b4eb0753b7", "score": "0.48653874", "text": "function getMakeActive(){\n /*void -> function*/\n return function(){makeActive(this);}\n}", "title": "" }, { "docid": "f1c54f05497f9d310e2d76b4eb0753b7", "score": "0.48653874", "text": "function getMakeActive(){\n /*void -> function*/\n return function(){makeActive(this);}\n}", "title": "" }, { "docid": "ccde59f42a313869939a6aaf887cf542", "score": "0.48605233", "text": "function invoker() {\n // using a regular function as higher order by passing it other functions\n return greeting(hello, goodbye);\n}", "title": "" }, { "docid": "9f1f61c233c1dfdf03e857f29256e54b", "score": "0.48603144", "text": "function compose2 (f, g) {\n\tfunction next(a) {\n\n\t};\n\n}", "title": "" }, { "docid": "a780851fdc3acb093ec63d91cc0d9e90", "score": "0.4858461", "text": "function g(a){[\"next\",\"throw\",\"return\"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}", "title": "" }, { "docid": "b0804a61e7cc6a69570310e69e67b9c5", "score": "0.48485994", "text": "function l(e){[\"next\",\"throw\",\"return\"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}", "title": "" }, { "docid": "8c971e2e42107af8f1818529b77cc017", "score": "0.48343655", "text": "function internals(){\r\n return {a: acc, b: brs, c: cnt, m: m, r: r};\r\n }", "title": "" }, { "docid": "3d41b64138c736483e7b067751fc1f41", "score": "0.48313093", "text": "function oi(){}", "title": "" }, { "docid": "c940ac456c5c5f0fd90b8317d4c668dc", "score": "0.48246416", "text": "*[Symbol.iterator]() {\n const length = this.length;\n for (let i = 0 ; i < length ; i++) {\n yield this.get(i);\n }\n }", "title": "" }, { "docid": "af0ac5cf29f0e981b9c1cca8b1a3b7b7", "score": "0.48242006", "text": "function makeOpComposition () {\n \n var ops = []; \n var domain = makeEmptyMap(); \n var gen = 0; \n \n var func = function (s) {\n return function (i) {\n return evaluate(domain.has(i) ? (ops.length-1) - (gen-domain.get(i)) : -1, i)(i);\n }\n \n // determine selection state of i but only access the elements \n // of ops (staring from ind) that have i in their domain\n function evaluate(ind, i) {\n if (ind < 0) return s; // i defined in the base selection mapping s\n else {\n var op = ops[ind];\n return op(function (j) { return evaluate(ind - op.domain.get(i), j)(i); });\n // the call to evaluate is wrapped to a lambda to make the call lazy.\n // op will only call the lambda if op.f.constant is false\n }\n }\n }\n \n func.domain = domain;\n \n // member functions of func\n func.push = function (op) {\n ops.push(op);\n ++gen\n op.domain.forEach(function(_, i) {\n op.domain.set(i, domain.has(i) ? gen - domain.get(i) : ops.length);\n domain.set(i, gen); \n });\n }\n func.pop = function () {\n var n = ops.length;\n var op = ops.pop();\n --gen;\n // domain updated for those elements that are in op.domain\n op.domain.forEach(function (_, i) {\n if (op.domain.get(i) >= n) domain.delete(i); // no op defines i\n else domain.set(i, domain.get(i) - op.domain.get(i)); \n });\n return op;\n }\n func.top = function () { return ops[ops.length - 1]; }\n func.top2 = function () { return ops[ops.length - 2]; }\n func.shift = function (bmap) {\n var op = ops.shift();\n op.domain.forEach(function(_, i) {\n if (domain.get(i) - gen === ops.length) { domain.delete(i); }\n // if lastOp the only op that defines i, remove i from domain\n });\n return op;\n }\n func.size = function () { return ops.length; }\n func.removeIndex = function (i) {\n if (!domain.has(i)) return;\n \n // find the first op in ops that defines i\n var j = (ops.length - 1) - (gen - domain.get(i));\n \n while (j >= 0) {\n var d = ops[j].domain.get(i);\n ops[j].domain.delete(i);\n j -= d;\n }\n domain.delete(i);\n }\n \n return func;\n }", "title": "" }, { "docid": "3851bc35b2cb99d240553f3088eaa830", "score": "0.4822174", "text": "obtain(){}", "title": "" }, { "docid": "87983589e439338ea6c347ddef26412b", "score": "0.48213613", "text": "static second(context) {\n return new Hask(function(p) {\n if (p instanceof Pierce) {\n const getter = Hask.second(context).call(p.getter);\n\n const setter = new Hask(function(__x_s_b__) {\n return __x_s_b__.call(new Hask(function(__x_s__) {\n return new Hask(function(b) {\n return Hask.second(context).call(new Hask(function(s) {\n return p.setter.call(Hask.Tuple(context).call(s).call(b));\n })).call(__x_s__);\n });\n }));\n });\n\n return new Pierce(getter, setter);\n } else {\n throw new TypeError(\"p\");\n }\n });\n }", "title": "" }, { "docid": "48007ca836b08f0b86895d13dc5d06b9", "score": "0.48201957", "text": "[ Symbol.iterator]( ...args){\n\t\t// look at retained state\n\t\tconst iteration= this.state&& this.state[ Symbol.iterator]\n\t\tif( iteration){\n\t\t\t// & iterate through it all\n\t\t\treturn iteration.call( this.state, ...args)\n\t\t}\n\t}", "title": "" }, { "docid": "185b1cddddfff4013cf405e8d139ac2c", "score": "0.48199242", "text": "chain(_) {\n return this\n }", "title": "" }, { "docid": "719c0a7663ae7ea2d83986f327d8c01d", "score": "0.48155484", "text": "function liftf(fn){\n return function buffalo(x){ // arrow funcs are anonymous funcs\n return function wings(y){\n return fn(x,y)\n }\n }\n}", "title": "" }, { "docid": "5412cbec186d84761f7c0bb74ddbad34", "score": "0.4805815", "text": "function __func(){}", "title": "" }, { "docid": "4d83af3761819a8526de7423681bac9a", "score": "0.48057586", "text": "function liftg(binary) {\n return function(first) {\n if (first === undefined) {\n return first;\n }\n return function more(next) {\n if (next === undefined) {\n return first;\n }\n first = binary(first, next);\n return more;\n };\n };\n}", "title": "" }, { "docid": "dd7b112dbf0091c3ffd8452535ab6d8b", "score": "0.4803029", "text": "function\nXATS2JS_llazy_cfr(a1x1)\n{\nlet xtmp5;\nlet xtmp7;\nlet xtmp8;\n;\nxtmp7 =\nfunction()\n{\nlet xtmp6;\n{\nxtmp6 = a1x1();\n}\n;\nreturn xtmp6;\n} // lam-function\n;\nxtmp8 =\nfunction()\n{\nlet xtmp6;\n} // lam-function\n;\nxtmp5 = XATS2JS_new_llazy(xtmp7,xtmp8);\nreturn xtmp5;\n} // function // XATS2JS_llazy_cfr(1)", "title": "" }, { "docid": "fe97816308f856c34f155ded977530f6", "score": "0.47947428", "text": "function I(){return L.apply(null,arguments)}", "title": "" }, { "docid": "be7df3d90cd66e4492140cbb02f7bf26", "score": "0.47861582", "text": "consstructor(){\n this.traverseMethod = 'pre-order';\n }", "title": "" }, { "docid": "15ad036e545ac1282cf3428ffe210eb3", "score": "0.4784024", "text": "function xs(t, e, n, r) {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_3__[\"__awaiter\"])(this, void 0, void 0, (function() {\n var i, o, s, u, a, c;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_3__[\"__generator\"])(this, (function(h) {\n switch (h.label) {\n case 0:\n // PORTING NOTE: On Web only, we inject the code that registers new Limbo\n // targets based on view changes. This allows us to only depend on Limbo\n // changes when user code includes queries.\n return t.$o = function(e, n, r) {\n return function(t, e, n, r) {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_3__[\"__awaiter\"])(this, void 0, void 0, (function() {\n var i, o, s;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_3__[\"__generator\"])(this, (function(u) {\n switch (u.label) {\n case 0:\n return i = e.view._o(n), i.Nn ? [ 4 /*yield*/ , zi(t.localStore, e.query, \n /* usePreviousResults= */ !1).then((function(t) {\n var n = t.documents;\n return e.view._o(n, i);\n })) ] : [ 3 /*break*/ , 2 ];\n\n case 1:\n // The query has a limit and some docs were removed, so we need\n // to re-run the query against the local store to make sure we\n // didn't lose any good docs that had been past the limit.\n i = u.sent(), u.label = 2;\n\n case 2:\n return o = r && r.targetChanges.get(e.targetId), s = e.view.applyChanges(i, \n /* updateLimboDocuments= */ t.isPrimaryClient, o), [ 2 /*return*/ , (Ks(t, e.targetId, s.To), \n s.snapshot) ];\n }\n }));\n }));\n }(t, e, n, r);\n }, [ 4 /*yield*/ , zi(t.localStore, e, \n /* usePreviousResults= */ !0) ];\n\n case 1:\n return i = h.sent(), o = new Ss(e, i.Bn), s = o._o(i.documents), u = un.createSynthesizedTargetChangeForCurrentChange(n, r && \"Offline\" /* Offline */ !== t.onlineState), \n a = o.applyChanges(s, \n /* updateLimboDocuments= */ t.isPrimaryClient, u), Ks(t, n, a.To), c = new Ns(e, n, o), \n [ 2 /*return*/ , (t.Po.set(e, c), t.Vo.has(n) ? t.Vo.get(n).push(e) : t.Vo.set(n, [ e ]), \n a.snapshot) ];\n }\n }));\n }));\n}", "title": "" }, { "docid": "d15d25b666f1b672d8a8704a03c8e672", "score": "0.47799742", "text": "[Symbol.iterator]() {\n return this.items[Symbol.iterator]();\n }", "title": "" }, { "docid": "d15d25b666f1b672d8a8704a03c8e672", "score": "0.47799742", "text": "[Symbol.iterator]() {\n return this.items[Symbol.iterator]();\n }", "title": "" }, { "docid": "7529784e056821071508581bdace9121", "score": "0.47779304", "text": "function Hoc(WrappedComponent) {\n return (0, _Guac2.default)(WrappedComponent);\n}", "title": "" }, { "docid": "74e3adfebb3c9c1fd346b33f3fd2a81b", "score": "0.47721267", "text": "[Symbol.iterator]() {\n return this._items[Symbol.iterator]();\n }", "title": "" }, { "docid": "55045a088fe9ade5a4bf5384676a367a", "score": "0.47715467", "text": "compute() {\n\n}", "title": "" }, { "docid": "c72d5b8b4817a7bca7df354a7c554368", "score": "0.47705394", "text": "[Symbol.iterator]() {\n return stack[Symbol.iterator]();\n }", "title": "" }, { "docid": "71b4786f1eb52a01041d56d739d32b63", "score": "0.47664726", "text": "inorderTraversal() {\n\n }", "title": "" }, { "docid": "37416e51c316cd4ca8eb018a736a75f5", "score": "0.47578508", "text": "function compose() {\n \n const args = arguments;\n const start = args.length - 1;\n // console.log('----------------------------------------')\n // console.log('arguments: ',arguments)\n // console.log('args: ',args)\n // console.log('start: ',start)\n\n return function () {\n\n let i = start;\n let result = args[start].apply(this, arguments);\n\n // console.log('i antes del while: ',i)\n // console.log('result antes del while: ',result)\n\n while (i--) {\n\n result = args[i].call(this, result);\n // console.log('Op: args[i].call(this), result: ',args[i].call(this, result))\n // console.log('i en el while: ',i)\n // console.log('result en el while: ',result)\n }\n\n // console.log('result antes de retornar: ',result)\n return result;\n }\n}", "title": "" }, { "docid": "4d6636afd099033548668af2d8bc5e41", "score": "0.47476286", "text": "function ApolloWrapper({ children }) {\n return <ApolloProvider client={client}>{children}</ApolloProvider>\n}", "title": "" }, { "docid": "d014c9d8e2e301010d53e721fbac5988", "score": "0.47335467", "text": "function includeHelpers(func) {\n\n // ## jam.identity()\n\n // Simple function that passes the values it receives to the next function.\n // Useful if you need a `process.nextTick` inserted in-between your call chain.\n func.identity = function(next) {\n function _identity(next) {\n var args = arguments;\n tick(function() {\n next.apply(this, replaceHead(args, null));\n });\n }\n\n // This function can also be passed to jam verbatim.\n return (typeof next === 'function') ?\n _identity.apply(this, arguments) :\n _identity;\n };\n\n // ## jam.nextTick()\n\n // Alias for `.identity`. Use when you need a `process.nextTick` inserted in-between\n // your call chain.\n func.nextTick = func.identity\n\n // ## jam.return( [args...] )\n\n // Returns a set of values to the next function in the chain. Useful when you want to\n // pass in the next function verbatim without wrapping it in a `function() { }` just\n // to pass values into it.\n func.return = function() {\n var args = toArgs(arguments);\n return function(next) {\n args.unshift(null);\n next.apply(this, args);\n };\n };\n\n // ## jam.null()\n\n // Similar to `.identity` but absorbs all arguments that has been passed to it and\n // forward nothing to the next function. Effectively nullifying any arguments passed\n // from previous jam call.\n // \n // Like `jam.identity`, this function can be passed to the jam chain verbatim.\n func.null = function(next) {\n function _null(next) { next(); }\n\n return (typeof next === 'function') ? _null.call(this, next) : _null;\n };\n\n // ## jam.call( function, [args...] )\n\n // Convenience for calling functions that accepts arguments in standard node.js\n // convention. Since jam insert `next` as first argument, most functions cannot be\n // passed directly into the jam chain, thus this helper function.\n // \n // If no `args` is given, this function passes arguments given to `next()` call from\n // previous function directly to the function (with proper callback) placement).\n // \n // Use this in combination with `jam.return` or `jam.null` if you want to control the\n // arguments that are passed to the function.\n func.call = function(func) {\n ensureFunc(func, 'function');\n\n var args = toArgs(arguments);\n args.shift(); // func\n\n if (args.length) { // use provided arguments\n return function(next) {\n args.push(next);\n func.apply(this, args);\n };\n\n } else { // use passed-in arguments during chain resolution\n return function(next) {\n args = toArgs(arguments);\n args.shift(); // move next to last position\n args.push(next);\n\n func.apply(this, args);\n };\n }\n };\n\n // ## jam.each( array, iterator( next, element, index ) )\n\n // Execute the given `iterator` function for each element given in the `array`. The\n // iterator is given a `next` function and the element to act on. The next step in the\n // chain will receive the original array passed verbatim so you can chain multiple\n // `.each` calls to act on the same array.\n // \n // You can also pass `arguments` and `\"strings\"` as an array or you can omit the array\n // entirely, in which case this method will assume that the previous chain step\n // returns something that looks like an array as its first result.\n // \n // Under the hood, a JAM step is added for each element. So the iterator will be\n // called serially, one after another finish. A parallel version maybe added in the\n // future.\n func.each = function(array, iterator) {\n if (typeof array === 'function') {\n iterator = array;\n array = null\n } else {\n ensureArray(array, 'array');\n }\n\n ensureFunc(iterator, 'iterator');\n\n return function(next, array_) {\n var arr = array || array_;\n\n // Builds another JAM chain internally\n var chain = jam(jam.identity)\n , count = arr.length;\n\n for (var i = 0; i < count; i++) (function(element, i) {\n chain = chain(function(next) { iterator(next, element, i); });\n })(arr[i], i);\n\n chain = chain(function(next) { next(null, arr); });\n return chain(next);\n };\n };\n\n // ## jam.map( array, iterator( next, element, index ) )\n\n // Works exactly like the `each` helper but if a value is passed to the iterator's\n // `next` function, it is collected into a new array which will be passed to the next\n // function in the JAM chain after `map`.\n // \n // Like with `each`, you can omit the `array` input, in which case this method will\n // assume that the previous chain step returns something that looks like an array as\n // its first result.\n func.map = function(array, iterator) {\n if (typeof array === 'function') {\n iterator = array;\n array = null;\n } else {\n ensureArray(array, 'array');\n }\n\n ensureFunc(iterator, 'iterator');\n\n return function(next, array_) {\n var arr = array || array_;\n\n // Builds another JAM chain internally and collect results.\n // TODO: Dry with .each?\n var chain = jam(jam.identity)\n , count = arr.length\n , result = [];\n\n for (var i = 0; i < count; i++) (function(element, i) {\n chain = chain(function(next, previous) {\n result.push(previous);\n iterator(next, element, i);\n });\n })(arr[i], i);\n\n chain = chain(function(next, last) {\n result.push(last);\n result.shift(); // discard first undefined element\n next(null, result);\n });\n\n return chain(next);\n };\n };\n\n // ## jam.timeout( timeout )\n\n // Pauses the chain for the specified `timeout` using `setTimeout`. Useful for\n // inserting a delay in-between a long jam chain.\n func.timeout = function(timeout) {\n ensureNum(timeout, 'timeout');\n\n return function(next) {\n var args = replaceHead(arguments, null);\n setTimeout(function() { next.apply(this, args); }, timeout);\n };\n };\n\n // ## jam.promise( [chain] )\n\n // Returns a JAM promise, useful when you are starting an asynchronous call outside of\n // the JAM chain itself but wants the callback to call into the chain. In other words,\n // this allow you to put a 'waiting point' (aka promise?) into existing JAM chain that\n // waits for the initial call to finish and also pass any arguments passed to the\n // callback to the next step in the JAM chain as well.\n //\n // This function will returns a callback that automatically bridges into the JAM\n // chain. You can pass the returned callback to any asynchronous function and the JAM\n // chain (at the point of calling .promise()) will wait for that asynchronous function\n // to finish effectively creating a 'waiting point'.\n //\n // Additionally, any arguments passed to the callback are forwarded to the next call\n // in the JAM chain as well. If errors are passed, then it is fast-forwarded to the\n // last handler normally like normal JAM steps.\n func.promise = function(chain) {\n chain = typeof chain === 'function' ? chain : // chain is supplied\n typeof this === 'function' ? this : // called from the chain variable\n ensureFunc(chain, 'chain'); // fails\n\n if (typeof chain === 'undefined' && typeof this === 'function') {\n chain = this;\n }\n\n var args = null, next = null;\n\n chain(function(next_) {\n if (args) return next_.apply(this, args); // callback already called\n next = next_; // wait for callback\n });\n\n return function() {\n if (next) return next.apply(this, arguments); // chain promise already called\n args = arguments; // wait for chain to call the promise\n };\n };\n\n // TODO: noError() ? or absorbError()\n return func;\n }", "title": "" }, { "docid": "9b58a037835e2b29cacce06532c45e73", "score": "0.4730439", "text": "function a(e){return function(t){return i(t,e)}}", "title": "" }, { "docid": "9b58a037835e2b29cacce06532c45e73", "score": "0.4730439", "text": "function a(e){return function(t){return i(t,e)}}", "title": "" }, { "docid": "1226bccfb9553b375fc0362f444496bc", "score": "0.4730165", "text": "function PipeDecorator(){}// WARNING: interface has both a type and a value, skipping emit", "title": "" }, { "docid": "bcf9f58dfa303869b06c091af7f1032b", "score": "0.47248197", "text": "chain (_) {\n return this \n }", "title": "" }, { "docid": "fc634cd1549dc1926314878802250234", "score": "0.47093597", "text": "async execPipeline(operation, scope) {\n scope = await fetch(scope, operation, this.fetcher, this) // eslint-disable-line no-param-reassign\n const ops = operation.operations.slice()\n const firstOp = ops.shift()\n debug('first op', firstOp)\n let current = await this.exec(firstOp, scope)\n debug('first op result:', current)\n while (ops.length > 0) {\n debug('current:', current)\n const nextOp = ops.shift()\n debug('nextOp:', nextOp)\n current = await this.pipe(nextOp, current) // eslint-disable-line no-await-in-loop\n }\n debug('current:', current)\n return current\n }", "title": "" }, { "docid": "6c41243c39d6696bdf1f7e78313b3d1b", "score": "0.47075045", "text": "function PebbleChain () {}", "title": "" }, { "docid": "30e751c328a7c2a7ce40b06d407b90fb", "score": "0.47074223", "text": "mutate() {}", "title": "" }, { "docid": "30e751c328a7c2a7ce40b06d407b90fb", "score": "0.47074223", "text": "mutate() {}", "title": "" }, { "docid": "4b5ece51c8bf50c3693ffff0cab44bbb", "score": "0.4701822", "text": "function wrapper() {\r\n this.render = () => {\r\n return element;\r\n };\r\n }", "title": "" }, { "docid": "bc6131dccf16580ea7a968c0c29c5756", "score": "0.46976206", "text": "function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}", "title": "" }, { "docid": "62ea418ec52f1641290d9ed84bcecc9a", "score": "0.46974647", "text": "init(){\n this.initFunctional();\n }", "title": "" }, { "docid": "cef01660fac7fed7fd96bcee1af353a9", "score": "0.46968013", "text": "*[Symbol.iterator]() {\n let node = this.head;\n\n while(node) {\n yield node;\n node = node.next;\n }\n }", "title": "" }, { "docid": "fa2f8b6d52a4e91c1dc3ed8f5304ff84", "score": "0.4694239", "text": "function outer() {\n // Arrow Functionで定義した関数を返す\n return () => {\n // この関数の外側には`outer`関数が存在する\n // `outer`関数に`this`を書いた場合と同じ\n return this;\n };\n}", "title": "" }, { "docid": "5109268747e6f82ae09a90c705a417f0", "score": "0.46939474", "text": "function WorkShopModule(teacher) {\n var publicAPI = { ask, }\n return publicAPI;\n\n function ask(question) {\n console.log(teacher, question)\n }\n}", "title": "" }, { "docid": "ca60865cff67356b351e8d8f05ba3d12", "score": "0.46898815", "text": "function IntroToFuncComp() {\n\treturn <Demo></Demo>;\n}", "title": "" }, { "docid": "5de0ffee443f58711bedcde79f57deb2", "score": "0.4683502", "text": "function Iterable() {}", "title": "" }, { "docid": "77230d6a69d5a93756ccdfc57a06998e", "score": "0.46831843", "text": "async index () {\n return await Operator.all()\n }", "title": "" }, { "docid": "bf7668d4ffc04340ad62c5da50f341ac", "score": "0.4680023", "text": "[Symbol.iterator]() {\n this._update();\n return this._list[Symbol.iterator]();\n }", "title": "" }, { "docid": "41548bba29d5e235b58eb10f9236fea6", "score": "0.46784443", "text": "*[Symbol.iterator]() {\n let pointer = this.head\n while (pointer) {\n yield pointer\n pointer = pointer.next\n }\n }", "title": "" } ]
1536ece4ec94275c834d93942facd2ea
goes to the study page for this set
[ { "docid": "297d0cfc6763c0a1c4e070595331c4cf", "score": "0.61019903", "text": "function goStudy() { \n if( tags != undefined ) {\n window.location = \"../Study_Card.html?tags=\" + tags;\n }\n else {\n window.location = \"../Study_Card.html?deck=\" + deckid;\n }\n}", "title": "" } ]
[ { "docid": "4289098e940f228d4353ad58bca3a8a1", "score": "0.6004974", "text": "function pageSetup() {\r\n searchSetup();\r\n\r\n appendPageLinks(studentList);\r\n showPage(studentList, 1);\r\n}", "title": "" }, { "docid": "a7145dd3fcd2d44630f99bafed23107c", "score": "0.58225703", "text": "experimentDetail(experiment) {\n if (app.experiments.get(experiment, 'slug')) {\n app.trigger('router:new-page', {\n page: 'experimentDetail',\n opts: {\n slug: experiment\n }\n });\n } else {\n this.redirectTo('404');\n }\n }", "title": "" }, { "docid": "8a0b52494ca92e857901e8196585bca8", "score": "0.5764784", "text": "goToPage(page) {\n Ember.Logger.debug('Spell page set to: ', page);\n return page;\n // TODO go to designated page of spell\n }", "title": "" }, { "docid": "22b24c5f16a297646fa3cfb0ff2c7856", "score": "0.5717961", "text": "function pageLoad() {\n\t\t\t\t\twindow.location.assign(\"pimples.html\");\n\t\t\t\t}", "title": "" }, { "docid": "c8d1ef6454e98f0a902ab5553548f2fa", "score": "0.5702271", "text": "_gotoFirstPage() {\n this.set('selectedStep', 0);\n }", "title": "" }, { "docid": "4b992b9ed89efc6352b6cd9c31e1dfd3", "score": "0.5689669", "text": "searchForPage(){\n let page = this.div.querySelector('#page').value;\n let result = this.fuse.search(page);\n\n let error = this.div.querySelector('#error-page');\n if (result.length < 1){\n error.innerHTML = 'Could not find that page!'\n return;\n }\n error.innerHTML = '';\n\n // Store data for closest match to use for detailed plot\n let index = result[0].item;\n let info = this.processedData[index];\n\n this.storage.storeData(info);\n \n this.detailedPlot.open();\n }", "title": "" }, { "docid": "6f3aaec4c336f42a552ac97dc91cd63e", "score": "0.56886995", "text": "function getIntitialPage(user, study) {\n let page = 1; // demographics questions\n const existingConsent = checkExistingConsent(user, study);\n if (user.generalInfo?.sharePersonalDataWithOtherStudies) {\n if (\n !study?.settings?.zipCode ||\n !study?.settings?.sonaId ||\n (typeof user.generalInfo?.zipCode !== 'undefined' &&\n typeof user.generalInfo?.sonaParticipant !== 'undefined' &&\n typeof user.generalInfo?.under18 !== 'undefined' &&\n typeof user.generalInfo?.englishComprehension !== 'undefined')\n ) {\n if (existingConsent || !study.consent) {\n page = 6;\n } else if (user.generalInfo?.under18 === 'yes') {\n page = 2;\n } else {\n page = 4;\n }\n }\n }\n return page;\n}", "title": "" }, { "docid": "de392c4228a350c2643451aec244d7a5", "score": "0.56556326", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n //since we are generating markup for storyPage; onStoryPage = true, onOwnStories = false \n //this will ensure a heart is posted before the link, and trash can after \n const $story = generateStoryMarkup(story, true, false);\n $allStoriesList.append($story);\n }\n $allStoriesList.show();\n}", "title": "" }, { "docid": "5f8ada6920bcdb906ed95bae6bc0b0bc", "score": "0.5654277", "text": "function putStoriesOnPage() {\n active='main';\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f71ec4d097cf3307ff9dc9f1745455e2", "score": "0.56261665", "text": "function putStoriesOnPage() {\n\tconsole.debug('putStoriesOnPage');\n\n\t$allStoriesList.empty();\n\n\t// loop through all of our stories and generate HTML for them\n\tfor (let story of storyList.stories) {\n\t\tconst $story = generateStoryMarkup(story);\n\t\t$allStoriesList.append($story);\n\t}\n\n\t$allStoriesList.show();\n}", "title": "" }, { "docid": "1b1298798cefe17deb01c31fb882522f", "score": "0.5624976", "text": "function returnToStudy() {\n for (var c = 0; c < exptTimeLine[runThrough].toShow.length; c++) { //re-show all items from the experiment section we're still in (the \"leaving the study early\" page does not move to a different timeline section)\n $(\"#\" + exptTimeLine[runThrough].toShow[c]).show().children().show().children().show().children().show(); \n }\n for (var c = 0; c < exptTimeLine[runThrough].toRun.length; c++) { //re-run all functions that need to be run\n exptTimeLine[runThrough].toRun[c]();\n }\n $(\"#submitOrQuit\").hide();\n $(\"#psychHelp\").hide();\n $(\"#commentBox\").hide();\n}", "title": "" }, { "docid": "0db2987127a00efc6c7ac8de2ebe86df", "score": "0.5610651", "text": "function view_page() {\n\tvar self = this;\n\t// models/pages.js --> Controller.prototype.render()\n\tself.render(self.url);\n}", "title": "" }, { "docid": "a91d2c967b8badf356d4d862c7c1d7a1", "score": "0.5581653", "text": "function displayPage() { defaultDisplayPage(); }", "title": "" }, { "docid": "be8879a50ffeb153058c8fd428d66d91", "score": "0.5546464", "text": "function _getFirstSubPage() {\r\n vm.sindex = 0;\r\n _getAssignedSubmissions(vm.sindex);\r\n }", "title": "" }, { "docid": "01fdeb553d714f8db7657df49323ad80", "score": "0.5545504", "text": "function goToPage(title){\n // log to console for testing purposes\n // console.log(title.toString());\n\n // AJAX call to the php script that returns id of conference_title\n // pass title of conference\n $.ajax({\n url: \"../../php/gotoPage.php\",\n type: \"POST\",\n data: {title: title}\n }).done(function(data){\n // if id found, redirect user to the correct page\n if(data) {\n window.location.assign('../pages/conference_details.php?id=' + data);\n }\n });\n }", "title": "" }, { "docid": "8f1cb61098234dc946caa1f68495357a", "score": "0.5516623", "text": "showPage(){\n this.showSvgs();\n }", "title": "" }, { "docid": "01e358a7f719a5142f7332e6ec916f15", "score": "0.54964846", "text": "function renderAvailableStudies() {\n\t// some clean up\n\t$('#analysisSpecifications').css('display', 'none');\n\t$('#clearResultsDiv').hide();\n\t\n\t// send the request\n\tvar url = HOME + '/query?action=getStudies';\n\tscanner.GET(url, true, postRenderAvailableStudies, null, null, 0);\n}", "title": "" }, { "docid": "aadf2c75185ecdff714fa9dcd771542d", "score": "0.5486315", "text": "function firstPage() {\n\tupdateSelectionData(1);\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "f6c0b6c4cdad124f0ffd5a6b80277da4", "score": "0.5471757", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n\n $allStoriesList.show();\n}", "title": "" }, { "docid": "57c26e97418bb8bcd66141792e125315", "score": "0.5466487", "text": "function goToPage(targetScene){\n current = targetScene;\n}", "title": "" }, { "docid": "e5487fb5d1ace83fb45c8860fac3e40a", "score": "0.54662913", "text": "function showPage(page) {\r\n //hide everything so we can only show the new ones\r\n hideAll();\r\n //find the number to start and end i at\r\n var starting = (page - 1) * 10;\r\n var ending = starting + 10;\r\n //iterate through students to show which ones we want to show\r\n for(i = starting; i < ending && i < studentsList.length; i++){\r\n studentsList[i].style.display = \"block\" ;\r\n }\r\n }", "title": "" }, { "docid": "5070aae2b8de0604b9f4a814dfe9ff3c", "score": "0.54578626", "text": "function showPage(json, backbone) {\n require(['views/' + json.viewName], function(View){\n \t\tdust.render('public/templates/' + json.viewName + '.dust', json, function(err, out) {\n \t\t\tdocument.getElementById(\"content\").innerHTML = out;\n \t\t});\n var pageView = new View(json);\n //pageView.el = json.viewName;\n pageView.render(json);\n //pageView.delegateEvents();\n }); \n\tbackbone.history.navigate('#' + json.viewName);\t\t\t\n}", "title": "" }, { "docid": "acd52d7fc946bd6a284c6ad4dcbd2a59", "score": "0.5453158", "text": "function getStudies(url) {\n tableId = \"studyTable\";\n httpGet(url, populateTable);\n}", "title": "" }, { "docid": "07e6e224502f621206ccc8c262c31e47", "score": "0.5449685", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n \n $allStoriesList.empty();\n \n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n \n $allStoriesList.show();\n}", "title": "" }, { "docid": "8a2d7bebfd3ce4133e25e198ccf78170", "score": "0.5448099", "text": "function putStoriesOnPage() {\n console.debug('putStoriesOnPage')\n\n $allStoriesList.empty()\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story)\n $allStoriesList.append($story)\n }\n\n $allStoriesList.show()\n}", "title": "" }, { "docid": "cbf7cc1ac3bac77a0a70d7cbba78565c", "score": "0.5442642", "text": "showStory(event) {\n const data = event.currentTarget.dataset;\n const id = data.id;\n\n wx.navigateTo({\n url: `/pages/show/show?id=${id}`\n });\n }", "title": "" }, { "docid": "05188262bb6a06299676d485cbdccddc", "score": "0.5442363", "text": "function showLesson() {\n history.push(`/api/lesson/${props.id}.json`);\n }", "title": "" }, { "docid": "4d17b1807076177e3c73773497af06e3", "score": "0.5440831", "text": "function putStoriesOnPage() {\n console.debug(\"putStoriesOnPage\");\n\n $allStoriesList.empty();\n\n // loop through all of our stories and generate HTML for them\n for (let story of storyList.stories) {\n const $story = generateStoryMarkup(story);\n $allStoriesList.append($story);\n }\n $allStoriesList.trigger(\"reset\");\n $allStoriesList.show();\n}", "title": "" }, { "docid": "2b8f407fa1ac15c6c064e64bfd640c18", "score": "0.5434264", "text": "function page(name) {\n if (name)\n window.location = name + \".html\"\n }", "title": "" }, { "docid": "1aac7935f8e146c591ca0b7016d2d493", "score": "0.54302853", "text": "function Go() {\r\n\t\r\n if (parent.APIOK()){\r\n\r\n\t\tif (sName.length == 0) {\r\n\t\t\talert(sNoStudentIDText + \"\\n\" + sNoLMSText);\r\n\t\t\tparent.SCOFinish();\r\n\t\t\tself.close();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsHref += '&id=' + sName + '&url=' + escape(urlEnd)+'&home=' + escape(urlEnd);\r\n\t\tsHref += '&fn=' + sDetails + '&obj='+ qPage.quiz+'&dom='+document.domain;\r\n\t \r\n startup();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t} else {\r\n\t\talert(sNoLMSText);\r\n\t\tnextPage();//go to next page of module\r\n\t}\r\n}", "title": "" }, { "docid": "0738c83e90113a0af598186b9999db91", "score": "0.5426346", "text": "function goto(page) {\n $location.path(pl.feature).search('page',page.pageName);\n }", "title": "" }, { "docid": "4a044a7037cffee7507d143a61cdce6f", "score": "0.5418579", "text": "function guidedlearning(){\r\n window.location.href = \"../html/Guided Learning part1.html\";\r\n}", "title": "" }, { "docid": "ab315b8366af9ef1cbe1bf4898d3f7db", "score": "0.5413804", "text": "function goToPage(pageNr){\r\n\r\n}", "title": "" }, { "docid": "653fa3d8e0f729a49108b01583405206", "score": "0.5407745", "text": "function getStoryDetails(story_name) {\n console.log(story_name);\n url = \"./story.html?name=\" + encodeURIComponent(story_name);\n console.log(url);\n document.location.href = url;\n}", "title": "" }, { "docid": "4de9defbb68530ed489987da57a6a08b", "score": "0.53976345", "text": "function setUpPage() {\r\n\taddWhoTitle();\r\n\taddDocYrsC();\r\n\taddDocYrsR();\r\n}", "title": "" }, { "docid": "d4c8ef1f3b1a334b1708da2e02b833ad", "score": "0.53769195", "text": "function goToPage(){\n if (getWaitingList()[0] === 0) {\n window.location.href = \"/previewAdd/\" + getQuizNumber();\n }\n if (getWaitingList()[0] === 1) {\n window.location.href = \"/previewAddCustom/\" + getQuizNumber();\n }\n}", "title": "" }, { "docid": "095dc6d6e5a30fe909cd1d8e0f2ffecc", "score": "0.537114", "text": "function showResultsPage() {\n let id = getSurveyId();\n let section = document.createElement('section');\n // Show Share Title\n let title = document.createElement('h2');\n let titleText = document.createTextNode(\"View Results\");\n section.appendChild(title);\n title.appendChild(titleText);\n\n let link = document.createElement('a');\n link.id = 'viewResults';\n link.href = \"/results#\" + id;\n link.classList = \"buttonPrimary\";\n let linkText = document.createTextNode('View Results');\n section.appendChild(link);\n link.appendChild(linkText);\n document.getElementById(\"results\").appendChild(section);\n}", "title": "" }, { "docid": "5812a07f929a86ddf19496f195d4241c", "score": "0.53597724", "text": "function view_pieces(num_in_page){ \n num_select = content_tableau_connect['piece'][num_in_page];\n id_piece = Tableau_pieces_filter[num_select].id;\n filter_piece_id(id_piece); \n change_eyes_view_piece();\n}", "title": "" }, { "docid": "96534d4d03a1d48386b56d2f868985d8", "score": "0.53325206", "text": "function SelectSet(index) {\r\n\tsessionStorage.index = index;\r\n\t//stores index on the browser so that can be used again on the next page, which the browser downloads to\r\n\twindow.location.assign(\"Resources/Game.html\");\r\n\t//Browser changes page to 'Game.html'\r\n}", "title": "" }, { "docid": "f549d6b83c5a29c20fff4040769f29e7", "score": "0.53153044", "text": "function getStudy () {\r\n var url = vm.dataUrl+'study/'+vm.studyId;\r\n $http({\r\n method: 'GET',\r\n url:url\r\n }).then(function(data){\r\n var study = angular.fromJson(data.data.study);\r\n vm.studyMetadata = study.dicomMetadata;\r\n vm.studySeries = study.series;\r\n vm.singleSeries = study.series[0].objects;\r\n });\r\n }", "title": "" }, { "docid": "61898f2f0372a4245b71fa3a2ba96c8d", "score": "0.5309224", "text": "function showCurrentPage(){\n renderPageInfo();\n render_results(_currentDocMentions);\n }", "title": "" }, { "docid": "99c059960b1f4932e656896d19b48ec1", "score": "0.5292822", "text": "set_study(value) {\n this.study = value;\n return this;\n }", "title": "" }, { "docid": "f587c1c66ae247c895e1a965aaad6f67", "score": "0.5283474", "text": "function navigateToPage()\n\t{\n\t\tloadPage(getController().selectedPredecessorPage.pageId);\n\t}", "title": "" }, { "docid": "8428108764f98942021c8b6ed7fca0e9", "score": "0.5276661", "text": "function moreTopics() {\r\n window.location.href = \"./topic.html\";\r\n}", "title": "" }, { "docid": "cb31206491ec67b9679a1fbd5edca5f4", "score": "0.5276348", "text": "function navAllStories(evt) {\n console.debug(\"navAllStories\", evt);\n hidePageComponents();\n putStoriesOnPage();\n}", "title": "" }, { "docid": "cb31206491ec67b9679a1fbd5edca5f4", "score": "0.5276348", "text": "function navAllStories(evt) {\n console.debug(\"navAllStories\", evt);\n hidePageComponents();\n putStoriesOnPage();\n}", "title": "" }, { "docid": "666624608a0e66cadf56c655082f184f", "score": "0.527361", "text": "function studentIdentificationSucces(student) {\r\n console.info(student); // Een Javascript-object met studentnummer, voornaam en achternaam\r\n\r\nhideAllPages(); \r\n\r\nshowStartPage();\r\n\r\n\r\n}", "title": "" }, { "docid": "826a3da96a935ab5b7e81b767d0cbe63", "score": "0.5267068", "text": "function showSample(evt) {\n var sample = findSample(evt.text);\n window.control = sample.text.toLowerCase();\n window.samples = sample.samples;\n window.sampleLoading = true;\n App.transferPage(App.activePage, sample.Url);\n}", "title": "" }, { "docid": "a1625caba5af5c008f65f96837ff5597", "score": "0.52647597", "text": "function changePage(newPage, searchInfo) {\n getSkillsList(newPage, searchInfo);\n }", "title": "" }, { "docid": "54995809591d6edc0915f0f46948ef9f", "score": "0.52645075", "text": "function addPitDataToPage() {\n // pit scouting data\n let pit_data_point = pit_data[selected_team];\n // checks to see if pit data point actually exists\n if (pit_data_point !== undefined) {\n // traverses the pit JSON and runs addButtonData() for each question\n traverseScoutKitJSON(pit_data_point, function(json, p, pi, q, qi) {\n // adds the data to the \"Pit Data\" button\n addButtonData(\"pit\", pi + \"-\" + qi, [\n // returns the question\n function() {\n return q;\n },\n // returns the response to the question\n function() {\n let answer = json[p][q];\n // instead of showing scout id, it shows scout name\n if (q == \"Scout\") {\n answer = scouts[answer];\n }\n return answer;\n }\n ]);\n });\n }\n}", "title": "" }, { "docid": "ee06eb78b108a149fd68dcdd9031b016", "score": "0.52529746", "text": "function C101_KinbakuClub_JennaIntro_Discipline() {\n SetScene(CurrentChapter, \"Discipline\");\n}", "title": "" }, { "docid": "5d58b8ac1a5483770fe90be2a3021e2c", "score": "0.5246143", "text": "function changeSelectedPage() {\n var applicationModel = icwsDirectUsageExample.applicationModel;\n var pageSelectionElement, pageId;\n \n // Retrieve the selection from the page selection control and have the\n // application model select that page.\n pageSelectionElement = document.getElementById(PAGE_SELECTION_ELEMENT_ID);\n pageId = pageSelectionElement.options[pageSelectionElement.selectedIndex].value;\n applicationModel.showApplicationPage(pageId);\n }", "title": "" }, { "docid": "7930a600c125bffd98cb1a1a95d35431", "score": "0.5245661", "text": "goto(page) {\r\n return this._updateView(0, page);\r\n }", "title": "" }, { "docid": "ddc6fe04bb25b094e8aa5f4678d93639", "score": "0.52363646", "text": "function newPage1() {\n window.location.assign(\"../Question5/Question5.html\")\n}", "title": "" }, { "docid": "710da404180cdb9d378bbe190b57a789", "score": "0.5230823", "text": "function newpage3(){\n window.location = \"cardresults.html\";\n }", "title": "" }, { "docid": "0395911ad5ca25a360d2ea0ebdb5011e", "score": "0.52195567", "text": "function pageRedirect(){\n window.location.href = \"highscores.html\"\n }", "title": "" }, { "docid": "61332ed6e8d18b1f3c12f5d776414d8f", "score": "0.5209169", "text": "function jump_if_has_one(){\n if($scope.result.datasets != null) {\n\n if($scope.result.datasets.length == 1){\n dataset1 = $scope.result.datasets[0];\n location.href = \"#/dataset/\"+dataset1.source+\"/\"+dataset1.id;\n }\n }\n }", "title": "" }, { "docid": "513ba268d6496d1ed40300c025d93e2c", "score": "0.52087766", "text": "function gotoPage() {\n window.top.location.href = IPMAppSE.SectionEditorPageRef+'?id='+IPMAppSE.projectId+'&projDocSecId='+IPMAppSE.projDocSecId;\n}", "title": "" }, { "docid": "28c6aebf9448020066bc58ccf7a93365", "score": "0.5202358", "text": "function option1() {\n\t//Get the id for the next page\n\tvar newOption = storyObject.choice1.newPageID;\n\n\t//If game over, view end screen, otherwise show the next page\n\tif (newOption == 14) {\n\t\t//View end game screen\n\t\tendScreen(newOption);\n\t}\n\telse {\n\t\t//Call the fillPage function to fill the next page with the story\n\t\tfillPage(newOption);\n\t}\n\t//Make sure button is back to Play Audio\n\tdocument.getElementById(\"audioLabel\").innerHTML = \"Play Audio\";\n\t//Scroll to top\n\twindow.scrollTo(0, 0);\n}", "title": "" }, { "docid": "d3e67d7017914a818717c8166ac56423", "score": "0.5186858", "text": "function jQH_MOS_SetPage() {\n var curloc = jQH_MOS_CurLoc;\n var CurrentPage = curloc.indexOf('page=');\n if (CurrentPage > 0) {\n CurrentPage = curloc.substr(CurrentPage + 5);\n if (CurrentPage.indexOf('#') > -1) CurrentPage = CurrentPage.substr(0, CurrentPage.indexOf('#'));\n jQH_MOS_Page = CurrentPage;\n }\n else jQH_MOS_Page = 1;\n}", "title": "" }, { "docid": "1e39a7732cef6e821e64381852cfc47e", "score": "0.518178", "text": "function view_itin(link, own) {\n\twindow.location.href = \"../itinerary_detail/itinerary_details.html?id=\" + link;\n}", "title": "" }, { "docid": "d4dd258db6cb8cd24aa3699bbbff0568", "score": "0.5180985", "text": "function renderPage() {\n let html = ''\n if (store.quizStarted) {\n if (store.questionNumber === store.questions.length) {\n html = generateFinalPage();\n } else {\n html = generateQuestionPage()\n } \n } else {\n html = generateMainPage()\n }\n $('main').html(html);\n}", "title": "" }, { "docid": "b3ecc33f221a3dcd184ee3aeb5d00281", "score": "0.5180567", "text": "static goToPage () { Navigation.goToPageReal($(this).index()) }", "title": "" }, { "docid": "bfa0c95c911cc222ee7ebb74d8dcabe2", "score": "0.51741356", "text": "function authorWiki() {\n\t\tvar lnk = \"https://en.wikipedia.org/wiki/\"+QUOTES.data[i].name;\n\t\twindow.location = lnk;\n\t}", "title": "" }, { "docid": "31965bac1e66bfc29153559742106836", "score": "0.5159947", "text": "function goAbstractPage(page) {\n injectClickFunction(page);\n return page.evaluate(function() {\n var abstractLink = document.querySelector('.format_abstract');\n\n if (abstractLink) {\n doClick(abstractLink);\n return true;\n } else {\n return false;\n }\n });\n }", "title": "" }, { "docid": "4e230806223c2a60593f63453f073453", "score": "0.51516354", "text": "function goToBookmark( screenNo, relatedToLesson )\n{\n\tvar folderName = relatedToLesson == 1 ? lessonFolder + '/' : ''\n \n currentScreenNo = screenNo;\n\tframes['myFrame'].location.href = folderName + currentScreenNo+ '.htm';\n\t\n\t// we need proper actions on the last screen\n\tif(currentScreenNo == noOfScreens) {\n $('#next_link').attr( 'class', 'navigationButton buttonExit' );\n onLastScreen();\n\t}\n\n\t\n\trefreshCounter();\n}", "title": "" }, { "docid": "be03cec0b541539b6ee966f43d714e31", "score": "0.51501745", "text": "function pageContents() {\r\n\r\n\t// Statements\r\n\tfor (var i = subjects.length - 1; i >= 0 ; i--) {\r\n\t\tvar x = i + 1;\r\n\t\tvar page = x.toString();\r\n\t\tvar w = 100 / subjects.length;\r\n\r\n\t\tif (window.location.href.indexOf(page) > -1) {\r\n\t\t\tprogBar.style.width = x * w + '%';\r\n\t \ttitle.innerHTML = page + '. ' + subjects[i].title;\r\n\t \tstatement.innerHTML = subjects[i].statement;\r\n\r\n\t \tif (storedStatements[i] == 'pro') {\r\n\t \t\tproBtn.className = 'w3-button w3-cyan';\r\n\t \t} else if (storedStatements[i] == 'ambivalent') {\r\n\t \t\tambivalentBtn.className = 'w3-button w3-cyan';\r\n\t \t} else if (storedStatements[i] == 'contra') {\r\n\t \t\tcontraBtn.className = 'w3-button w3-cyan';\r\n\t \t}\r\n\r\n\t \tfor (var j = 0; j < 22; j++) {\r\n\t \t\tconsole.log(j);\r\n\t \t\tif (subjects[i].parties[j].position == 'pro') {\r\n\t \t\t\tproElement.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><a onclick=\"toggleExplanation(' + j + ')\" style=\"cursor: pointer;\">' + subjects[i].parties[j].name + '</a><br><div id=\"exp' + j + '\" style=\"display: none;\"></div></div>';\r\n\t \t\t} else if (subjects[i].parties[j].position == 'ambivalent') {\r\n\t \t\t\tambivalentElement.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><a onclick=\"toggleExplanation(' + j + ')\" style=\"cursor: pointer;\">' + subjects[i].parties[j].name + '</a><br><div id=\"exp' + j + '\" style=\"display: none;></div></div>';\r\n\t \t\t} else {\r\n\t \t\t\tcontraElement.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><a onclick=\"toggleExplanation(' + j + ')\" style=\"cursor: pointer;\">' + subjects[i].parties[j].name + '</a><br><div id=\"exp' + j + '\" style=\"display: none;></div></div>';\r\n\t \t\t}\r\n\r\n\t \t\tvar exp = document.getElementById('exp' + j);\r\n\t \t\texp.innerHTML += '\"' + subjects[i].parties[j].explanation + '\"';\r\n\t \t}\r\n\t }\r\n\t}\r\n\r\n\t// Important subjects\r\n\tif (window.location.href.indexOf('important-subjects') > -1) {\r\n\t\tfor (var i = 0; i < 4; i++) {\r\n\t\t\tcol1.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><input id=\"subject' + i + '\" class=\"w3-check\" type=\"checkbox\" name=\"subject' + i + '\"> <label>' + subjects[i].title + '</label><p class=\"w3-tooltip\"><i class=\"far fa-question-circle\"></i><span style=\"max-height:20vw;max-width:20vw;position:absolute;left:18px;bottom:0;\"class=\"w3-text w3-tag\">' + subjects[i].statement + '</span></p></div>';\r\n\t\t}\r\n\t\tfor (var i = 4; i < 8; i++) {\r\n\t\t\tcol2.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><input id=\"subject' + i + '\" class=\"w3-check\" type=\"checkbox\" name=\"subject' + i + '\"> <label>' + subjects[i].title + '</label><p class=\"w3-tooltip\"><i class=\"far fa-question-circle\"></i><span style=\"max-height:20vw;max-width:20vw;position:absolute;left:18px;bottom:0;\"class=\"w3-text w3-tag\">' + subjects[i].statement + '</span></p></div>';\r\n\t\t}\r\n\t\tfor (var i = 8; i < 12; i++) {\r\n\t\t\tcol3.innerHTML += '<div style=\"border-bottom: 1px solid black;\"><input id=\"subject' + i + '\" class=\"w3-check\" type=\"checkbox\" name=\"subject' + i + '\"> <label>' + subjects[i].title + '</label><p class=\"w3-tooltip\"><i class=\"far fa-question-circle\"></i><span style=\"max-height:20vw;max-width:20vw;position:absolute;left:18px;bottom:0;\"class=\"w3-text w3-tag\">' + subjects[i].statement + '</span></p></div>';\r\n\t\t}\r\n\t}\r\n\r\n\t// Result\r\n\tif (window.location.href.indexOf('result') > -1) {\r\n\t\tvar sortedParties = parties.sort(dynamicSort(\"name\"));\r\n\r\n\t\tfor (var i = 0; i < subjects.length; i++) {\r\n\t\t\tvar sortedPartyPositions = subjects[i].parties.sort(dynamicSort(\"name\"));\r\n\t\t\t//var important = document.getElementById(\"subject\" + i).value;\r\n\t\t\t//console.log(important);\r\n\r\n\t\t for (var j = 0; j < 22; j++) {\r\n\t\t \tif(storedStatements[i] == 'pro') {\r\n\t\t \t\t// if important subject pro = +20 ambivalent = +5 contra = 0, else\r\n\t\t \t\t/* if(important == true) {\r\n\t\t \t\t\tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\t\tparties[j].score += 20;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t\t \t} else {\r\n\t\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t\t \t}\r\n\t\t \t\t} else\r\n\t\t\t\t\t*/\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\tparties[j].score += 10;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t \t} else {\r\n\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t \t}\r\n\t\t \t} else\r\n\r\n\t\t \tif(storedStatements[i] == 'ambivalent') {\r\n\t\t \t\t/* if(important == true) {\r\n\t\t \t\t\tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\t\tparties[j].score += 5;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t\t \t\tparties[j].score += 20;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t\t \t} else {\r\n\t\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t\t \t}\r\n\t\t \t\t} else\r\n\t\t \t\t*/\r\n\t\t\t\t\tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t \t\tparties[j].score += 10;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t \t} else {\r\n\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t \t}\r\n\t\t \t} else\r\n\r\n\t\t \tif(storedStatements[i] == 'contra') {\r\n\t\t \t\t/* if(important == true) {\r\n\t\t \t\t\tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\t\tparties[j].score += 0;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t\t \t} else\r\n\t\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t\t \t\tparties[j].score += 20;\r\n\t\t\t\t \t} else {\r\n\t\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t\t \t}\r\n\t\t \t\t} else\r\n\t\t \t\t*/\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'pro') {\r\n\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'ambivalent') {\r\n\t\t\t \t\tparties[j].score += 5;\r\n\t\t\t \t} else\r\n\t\t\t \tif(sortedPartyPositions[j].position == 'contra') {\r\n\t\t\t \t\tparties[j].score += 10;\r\n\t\t\t \t} else {\r\n\t\t\t \t\tparties[j].score += 0;\r\n\t\t\t \t}\r\n\t\t \t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar partyScores = parties.sort(dynamicSort(\"-score\"));\r\n\r\n\t\tmatch.innerHTML = partyScores[0].name;\r\n\r\n\t\tfor (var j = 0; j < 22; j++) {\r\n\t\t\tvar num = j + 1;\r\n\t\t\tcol1.innerHTML += num + ': ' + partyScores[j].name + '<br>';\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "7c6ac33af8dcfaa39f9c622e25bdf6ee", "score": "0.51443255", "text": "function showAbout(tvShow) {\n console.log(tvShow);\n storeToLS(tvShow);\n window.location.replace(\"searchTv.html\");\n}", "title": "" }, { "docid": "0038a15009761f99934eb8cd38dbd03e", "score": "0.51413417", "text": "function changepage(page)\n\t{\n\tparent.content.location.href = page;\n\t}", "title": "" }, { "docid": "36ab4b688e8f411d179f92b5e36fee9b", "score": "0.5130351", "text": "returnToSelectionScreen() {\n const typey = this.type;\n switch (typey) {\n case 'rps':\n rpsSelectionsPage();\n break;\n default:\n mtgSelectionsPage();\n } \n }", "title": "" }, { "docid": "af00b242b154bd9a7e4499f80c509031", "score": "0.5127028", "text": "function goToCreationPage(provenance) {\n if (provenance === \"listeSeance\") {\n window.open('creationSeance.jsp?provenance=listeSeance', '_self');\n } else if (provenance === \"seance\") {\n window.open('creationExercice.jsp?provenance=seance', '_blank');\n } else if (provenance === \"listeExercice\") {\n window.open('creationExercice.jsp?provenance=listeExercice', '_self');\n }else{\n window.open('creationSeance.jsp?provenance=programme', '_blank');\n }\n}", "title": "" }, { "docid": "367c18b6da3c5c57223fc8e1134fece9", "score": "0.5124901", "text": "function getPage(newPage) {\n // a little check to make sure page arguement is right\n if (newPage.indexOf(\"#\") > -1) {\n newPage = newPage.replace(\"#\", \"\");\n }\n if (newPage.match(/.html/) === null) {\n newPage = newPage + \".html\";\n }\n page = newPage;\n \n animatePageOut();\n //check what page we're on and update the quiz nav\n }", "title": "" }, { "docid": "95c8f5146cdb68e23607f09628bc8245", "score": "0.5122924", "text": "function setPage(page) {\n loadResults(searchField.val(), page)\n }", "title": "" }, { "docid": "6cedc6e24a2deba1a4e59b32cae37980", "score": "0.5121558", "text": "function switchPage( page ){\n\n\t\t\tdemoIntro().exit();\t\t// closes prior instance of intro -important for SubNav to work\n\t\t\tng.element(\".introjs-overlay\").remove();\n\n\t\t\tswitch ( page ) {\n\t\t\t\tcase \"mainnav\":\n\t\t\t\t\t$scope.IntroOptions = {};\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"basicflow\":\n\t\t\t\t\t$scope.IntroOptions = { basicflow: introsConfigDialer.basicflow() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"clickconnect\":\n\t\t\t\t\t$scope.IntroOptions = { clickconnect: introsConfigDialer.clickconnect() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"shotgun\":\n\t\t\t\t\t$scope.IntroOptions = { shotgun: introsConfigDialer.shotgun() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"transfers\":\n\t\t\t\t\t$scope.IntroOptions = { transfers: introsConfigDialer.transfers() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"cold\":\n\t\t\t\t\t$scope.IntroOptions = { cold: introsConfigDialer.cold() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"warm\":\n\t\t\t\t\t$scope.IntroOptions = { warm: introsConfigDialer.warm() };\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"nohold\":\n\t\t\t\t\t$scope.IntroOptions = { nohold: introsConfigDialer.nohold() };\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tcase \"voicemail\":\n\t\t\t\t\t$scope.IntroOptions = { voicemail: introsConfigDialer.voicemail() };\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase \"takeaction\":\n\t\t\t\t\t$scope.IntroOptions = { takeaction: introsConfigDialer.takeaction() };\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"dialersettings\":\n\t\t\t\t\t$scope.IntroOptions = { dialersettings: introsConfigDialer.dialersettings() };\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tcase null:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a9897c6a49250117a1d89a65dd478a42", "score": "0.5118634", "text": "function displayFirstQuestion(req, res) {\n // read in the survey questions\n let questions = Model.getAllQuestions();\n // read in the saved answers for all users\n let answers = Model.getAllAnswers();\n if (questions.length > 0) {\n // save variables into user session\n req.session.questions = questions;\n req.session.answers = answers;\n renderQuestionPage(req, res, 0, getCurrentRenderingPreference(req, res));\n } else {\n throw new Error('There is no survey defined');\n }\n}", "title": "" }, { "docid": "a0e569e015dae684813a149f5febcf79", "score": "0.51185316", "text": "function displayContent() {\n\tvar class_query = getClass();\n\n\tif (class_query in CLASSES) {\n\t\tvar new_path = \"/notes/\" + CLASSES[class_query] + \"/1.html\";\n\t\twindow.location.replace(new_path);\n\t} else {\n\t\tlistClasses();\n\t}\n}", "title": "" }, { "docid": "33478b11e68b866d54c198698699848a", "score": "0.51120573", "text": "success() {\n // no need for response data\n // redirect to index page when done\n wx.switchTab({\n url: '/pages/stories/stories'\n });\n }", "title": "" }, { "docid": "68e33af43225b3d0c366ea5478b3ad36", "score": "0.5111955", "text": "function finishExperiment() {\n\n hideElements();\n saveParticipantData();\n $('#instructions').show();\n $('#instructions').load('html/instructionsfinish.html', function () {\n $('#subid').text(subjectID.toString());\n $('#next').show();\n $('#next').click(showDebrief);\n });\n}", "title": "" }, { "docid": "bc92b661a95bb8a8b8247428e51c0083", "score": "0.51116484", "text": "function goToRichardsonCourt() {\n initialize(42.024029, -93.639859, 17);\n cGroupInfo(\"Richardson Court\");\n searchArea(\"RCA\", \"MWL\");\n}", "title": "" }, { "docid": "066d6675e0b2177e9b8a8b7b23092c3d", "score": "0.5108421", "text": "function setAboutPage(){\r\n setPage('about-page');\r\n }", "title": "" }, { "docid": "93d33fa70ce4b13ee63c3b3e37c38882", "score": "0.5104784", "text": "function choosePage(element) {\n activeElementInList(element);\n document.querySelector(\"._title\").textContent = element.dataset.page;\n document.querySelector(\n \".show-page\"\n ).classList = `show-page show-${element.dataset.page}`;\n}", "title": "" }, { "docid": "c27d36e5a2b085292166a6c2223148e0", "score": "0.51033616", "text": "async clickNextPage() {\n await testSubjects.click(SUBJ_BTN_NEXT_PAGE);\n }", "title": "" }, { "docid": "8b17676bb1544344ca4e3fd8f4a99714", "score": "0.5101437", "text": "function setPage(){\n setMap();\n \n //add title\n d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"title\")\n .append(\"h1\")\n .attr(\"class\", \"titleText\")\n .text(\"China Facts Visualization\");\n \n var notesHtml = \"Glossary:</br>1.GDP: <a href=\\\"https://en.wikipedia.org/wiki/Gross_domestic_product\\\">Gross Domestic Product</a></br>2.HDI: <a href=\\\"http://hdr.undp.org/en/content/human-development-index-hdi\\\">Human Development Index</a></br>3.DLI: <a href=\\\"http://www.stats.gov.cn/tjsj/zxfb/201302/t20130208_12935.html\\\">Development and Life Index</a></br>4.<a href=\\\"https://en.wikipedia.org/wiki/Life_expectancy\\\">Life Expectancy</a>\" \n \n d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"notes\")\n .append(\"p\")\n .attr(\"class\", \"notesText\")\n .html(notesHtml);\n \n }", "title": "" }, { "docid": "59151ac77d8dfe6e4a91ca37e9b4ecb7", "score": "0.50997937", "text": "function renderPage() {\n removeChilds('#main');\n removeChilds('#drop-list');\n\n $('document').ready(populateAnimalData(this.value));\n\n if (this.value == 'page-1.json') {\n $('#page').html('Page-2');\n this.value = 'page-2.json';\n } else {\n $('#page').html('Page-1');\n this.value = 'page-1.json';\n }\n\n animalObj = [];\n keywords = [];\n}", "title": "" }, { "docid": "1c5e4d20272427529fa6a4c84772539a", "score": "0.50937617", "text": "function showAboutFromOurWeb(tvShow) {\n console.log(tvShow);\n storeToLsFromSeriesDB(tvShow);\n window.location.replace(\"searchTv.html\");\n}", "title": "" }, { "docid": "2bff8211ab5c843194c3faaece3ba675", "score": "0.509339", "text": "function changeStep(step) {\n switch(step) {\n case 1:\n vm.pageTitle = 'Select Categories';\n break;\n\n case 2:\n vm.pageTitle = 'Select Level';\n break;\n\n case 3:\n vm.pageTitle = 'Enter Personal Details';\n break;\n }\n }", "title": "" }, { "docid": "6190b375c972abcd8333b3737e6b0095", "score": "0.5080665", "text": "function doClick() {\n firebase.database().ref(\"Users\").child(localStorage.getItem(\"userid\")).child(\"YearAndSemester\").once('value', function(snapshot){\n var study = snapshot.val();\n if (study == \"y1s1\") {\n window.location.href = \"../y1s1page/year1sem1.html\";\n } else if (study == \"y1s2\") {\n window.location.href = \"../y1s2page/year1sem2.html\";\n } else if (study == \"y2s1\") {\n window.location.href = \"../y2s1page/year2sem1.html\";\n } else if (study == \"y2s2\") {\n window.location.href = \"../y2s2page/year2sem2.html\";\n } else if (study == \"y3s1\") {\n window.location.href = \"../y3s1page/year3sem1.html\";\n } else if (study == \"y3s2\") {\n window.location.href = \"../y3s2page/year3sem2.html\";\n } else if (study == \"y4s1\") {\n window.location.href = \"../y4s1page/year4sem1.html\";\n } else if (study == \"y4s2\") {\n window.location.href = \"../y4s2page/year4sem2.html\";\n }\n });\n}", "title": "" }, { "docid": "f863075ecf3de306735c10b0d815fa8b", "score": "0.50692195", "text": "function gotoMusculoskeletonPage(event) {\n window.location.href =\"musculoskeleton.html\";\n}", "title": "" }, { "docid": "a43d7856ae99058ba4cf6ad26a2efec0", "score": "0.50684565", "text": "function showPage(list, page) {\n for (let k = 0; k < studentList.length; k++) {\n if (list[k].id === \"#\" + page) {\n list[k].style.display = 'block';\n } else {\n list[k].style.display = 'none';\n }\n }\n}", "title": "" }, { "docid": "f1a6251103d439f6c2298a36d194e18c", "score": "0.50665116", "text": "function senatePagesSetup(data) {\n switch (window.location.href.substr(-16)) {\n case 'ance_senate.html':\n\n document.getElementById(\"chamber-glance-senate\").innerHTML =\n tabulateChamberGlance(data);\n\n document.getElementById(\"most-engaged-senate\").innerHTML =\n tabulateMostEngaged(data);\n\n document.getElementById(\"least-engaged-senate\").innerHTML =\n tabulateLeastEngaged(data);\n\n break;\n case 'alty_senate.html':\n document.getElementById(\"chamber-glance-senate\").innerHTML =\n tabulateChamberGlance(data);\n\n document.getElementById(\"most-loyal-senate\").innerHTML =\n tabulateMostLoyal(data);\n\n document.getElementById(\"least-loyal-senate\").innerHTML =\n tabulateLeastLoyal(data);\n break;\n case 'senate_data.html':\n\n document.getElementById(\"chamber-data-senate\").innerHTML =\n tabulateChamberData(data);\n document.getElementById(\"state-select\").innerHTML =\n buildDropdown(data);\n tableFilters('chamber-data-senate');\n break;\n\n }\n}", "title": "" }, { "docid": "59eaf0c5e90e21440041c0d4aa30dbbf", "score": "0.50622886", "text": "function viewDescription(term){\n if(term == 'winter'){\n window.location.replace(\"html/UZ.html\");\n } else{\n window.location.replace(\"html/EO.html\");\n }\n}", "title": "" }, { "docid": "8367a9d374fce3064493f1108871a20b", "score": "0.50615454", "text": "function openCteInfo() {\n homePage.hide();\n ctePage.show();\n caseStudiesPage.hide();\n sourcesPage.hide();\n\n }", "title": "" }, { "docid": "b1c974d31c83b4016baf288571b40843", "score": "0.50570863", "text": "function addPrescoutDataToPage() {\n // prescouting data\n let prescout_data_point = prescout_data[selected_team];\n // checks to see if prescout data point actually exists\n if (prescout_data_point !== undefined) {\n let questions = Object.keys(prescout_data_point);\n for (let question_index in questions) {\n let question = questions[question_index];\n addButtonData(\"pre\", question_index, [\n // returns the question\n function() {\n return question;\n },\n // returns the response to the question\n function() {\n let answer = prescout_data_point[question];\n return answer;\n }\n ]);\n }\n }\n}", "title": "" } ]
e84eb22ecd5461660cdbe88e8c811a13
Mark scripts as having already been evaluated
[ { "docid": "8839eef58e321dfcf9d170c865562d43", "score": "0.0", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdataPriv.set(\n\t\t\t\telems[ i ],\n\t\t\t\t\"globalEval\",\n\t\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "ab0489a232f8f4ba93b5220c20733121", "score": "0.614555", "text": "resetForNewScript() {\n // if the user is going to be starting a fresh script, it shouldn't be\n // allowed to use variables from a past script or scripts\n this.allNodeVariablesSeenSoFar = [];\n }", "title": "" }, { "docid": "84fa138d0350057c32c90e37167fb565", "score": "0.6014002", "text": "static preventOriginalScriptsExec() {\n console.debug('Called preventOriginalScriptsExec');\n\n return new Promise((resolve) => {\n // Be sure that when we are here, the DOM (so all script tags) has been interpreted\n document.readyStateInteractive.then(() => {\n\n // Get all the scripts\n const scripts = Array.from(document.getElementsByTagName(\"script\"));\n\n // Mark all scripts we can find right now as already executed by the browser.\n scripts.forEach((script) => {\n console.debug('Setting script as executed already: ', script);\n\n // We don't know when the script will load but probably it'll be ok.\n // A script is marked as 'already handled' when it has a loadPromise.\n script.loadPromise = Promise.resolve();\n });\n\n resolve();\n });\n });\n }", "title": "" }, { "docid": "de8afa98733635700a906479c194145c", "score": "0.5955907", "text": "function tickUserScripts(){\n\t\n}", "title": "" }, { "docid": "010df1011e72129409b4f552f76f8112", "score": "0.5671701", "text": "static set forceOptimizeScriptCompilation(value) {}", "title": "" }, { "docid": "1eee887c2a53f93a35c52075d6d89e1d", "score": "0.56324893", "text": "function alterateWithScript() {\n\n}", "title": "" }, { "docid": "86078984a9242ab5222e0934c5273548", "score": "0.5560627", "text": "UpdateIfDirtyOrScript() {}", "title": "" }, { "docid": "eada6b4a4eba2c25c68f4d9ba5189e19", "score": "0.5484833", "text": "function injectUserCode() {\n // Get the event target\n var event_target = document.getElementById(\"page-manipulator-event-target\")\n\n let alreadyInjected = false;\n for(const element of Array.from(added_js))\n {\n if(element === request.filename)\n {\n alreadyInjected = true;\n // Remove the old JS script from the page and inject the new JS into the page.\n remove_request = {todo:\"removeJS\", value:request.filename};\n remove_manipulation(remove_request);\n manipulate(request, true);\n break;\n }\n }\n // Add the new JS to the page if it wasn't already on there.\n if(!alreadyInjected)\n {\n // Send event to event target.\n var event = new CustomEvent(\"manipulate\", {'detail': {\n code: request.code,\n filename: request.filename\n }});\n event_target.dispatchEvent(event);\n added_js.push(request.filename); \n }\n }", "title": "" }, { "docid": "6596925f14448f0886d1e4e1dc9b4b4f", "score": "0.5474016", "text": "mark () {\n\t\tif ( this.needsDynamicAccess ) return;\n\t\tthis.needsDynamicAccess = true;\n\n\t\tthis.markAllExports();\n\t}", "title": "" }, { "docid": "090db77ed94eba26c765074f417764e8", "score": "0.54588014", "text": "function incompatableScripts() {\n\treturn new Set([\n\t\t\n\t]);\n}", "title": "" }, { "docid": "67495d51f73548b57e4712ac1b79a44a", "score": "0.54584616", "text": "static set activeScriptCompilationDefines(value) {}", "title": "" }, { "docid": "cb4b2693074b84809cd5561cd6885fcd", "score": "0.543501", "text": "function preEvaluator() {\n return true;\n }", "title": "" }, { "docid": "049b5b13522b7cddb550e2ad033fa0db", "score": "0.54134727", "text": "function getAllScripts() {\n // if any script is needed from pagescripts\n if (newPageScript) {\n if (checkScript(newPageScript)) {\n scriptArray[newPageScript].apply();\n }\n }\n // if extra script like axios needed\n if (newPageExtraScript) {\n if (checkExtraScript($(mainWrapper).attr('data-scriptextra'))) {\n $.getScript(extraScriptArray[$(mainWrapper).attr('data-scriptextra')])\n } else {\n removeAnimationClass();\n }\n } else {\n removeAnimationClass();\n }\n }", "title": "" }, { "docid": "c28d74e698e31d7e3f524ae720fe5e74", "score": "0.5308882", "text": "function setGlobalEval(elems, refElements) {\n for (var i = 0, l = elems.length; i < l; i++) dataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n }", "title": "" }, { "docid": "28f1231e1fcde34cf94438671157d135", "score": "0.52915317", "text": "function evalAll(scripts, current) {\n current = (current) ? current : 0;\n if (current < scripts.length) {\n var script = $(scripts[current]);\n var src = script.attr('src');\n if (!src) {\n eval(script.text());\n evalAll(scripts, current + 1);\n }\n else {\n $.getScript(src, function(){\n evalAll(scripts, current + 1);\n });\n }\n }\n}", "title": "" }, { "docid": "edf7bfca39534bbfbc8dc0b7fe37a026", "score": "0.52862865", "text": "get evalScripts() {\n return evalScripts;\n }", "title": "" }, { "docid": "e9e1d84d2804ac76cc247c262e15b678", "score": "0.5285621", "text": "function setGlobalEval(elems, refElements) {\n\t\t\tvar i = 0,\n\t\t\t l = elems.length;\n\t\n\t\t\tfor (; i < l; i++) {\n\t\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "24057596ae1b97205a1f044a981190ca", "score": "0.52695596", "text": "function setGlobalEval( elems, refElements ) {\n var elem,\n i = 0;\n for ( ; ( elem = elems[ i ] ) != null; i++ ) {\n jQuery._data(\n elem,\n \"globalEval\",\n !refElements || jQuery._data( refElements[ i ], \"globalEval\" )\n );\n }\n }", "title": "" }, { "docid": "24057596ae1b97205a1f044a981190ca", "score": "0.52695596", "text": "function setGlobalEval( elems, refElements ) {\n var elem,\n i = 0;\n for ( ; ( elem = elems[ i ] ) != null; i++ ) {\n jQuery._data(\n elem,\n \"globalEval\",\n !refElements || jQuery._data( refElements[ i ], \"globalEval\" )\n );\n }\n }", "title": "" }, { "docid": "24057596ae1b97205a1f044a981190ca", "score": "0.52695596", "text": "function setGlobalEval( elems, refElements ) {\n var elem,\n i = 0;\n for ( ; ( elem = elems[ i ] ) != null; i++ ) {\n jQuery._data(\n elem,\n \"globalEval\",\n !refElements || jQuery._data( refElements[ i ], \"globalEval\" )\n );\n }\n }", "title": "" }, { "docid": "c0ba1ecf16cc2790fedb4799d2551d16", "score": "0.52595735", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar l = elems.length,\n\t\t i = 0;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdata_priv.set(elems[i], \"globalEval\", !refElements || data_priv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "9ee2db0ab9debf79342dbd8c86035785", "score": "0.52536416", "text": "function w(t,e){for(var i=0,s=t.length;i<s;i++)Ft.set(t[i],\"globalEval\",!e||Ft.get(e[i],\"globalEval\"))}", "title": "" }, { "docid": "1dbb17ee5a59939899a5f8beb211786e", "score": "0.52522725", "text": "function setGlobalEval( elems, refElements ) {\n var i = 0,\n l = elems.length;\n\n for ( ; i < l; i++ ) {\n dataPriv.set(\n elems[ i ],\n \"globalEval\",\n !refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n );\n }\n }", "title": "" }, { "docid": "e196ff707184b84e4a1692a1e765cc3c", "score": "0.5247099", "text": "function insertScripts() {\n var scriptUrls = JSON.parse(window.vizoneScripts);\n\n scriptUrls.forEach(function (url) {\n if (! document.getElementById(url)) {\n insertScriptLoader(url);\n }\n scriptsInserted = true\n });\n}", "title": "" }, { "docid": "8510392ff8ffa7c7f2c49bb2c83958ab", "score": "0.5245213", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdata_priv.set(elems[i], \"globalEval\", !refElements || data_priv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "e45984aa617ffb6f77abc8b992386abc", "score": "0.5244555", "text": "function setGlobalEval( elems, refElements ) {\r\n\tvar elem,\r\n\t\ti = 0;\r\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\r\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\r\n\t}\r\n}", "title": "" }, { "docid": "e45984aa617ffb6f77abc8b992386abc", "score": "0.5244555", "text": "function setGlobalEval( elems, refElements ) {\r\n\tvar elem,\r\n\t\ti = 0;\r\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\r\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\r\n\t}\r\n}", "title": "" }, { "docid": "e45984aa617ffb6f77abc8b992386abc", "score": "0.5244555", "text": "function setGlobalEval( elems, refElements ) {\r\n\tvar elem,\r\n\t\ti = 0;\r\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\r\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\r\n\t}\r\n}", "title": "" }, { "docid": "5e988d1d4ba5e2a04d4663bed8a77249", "score": "0.5241249", "text": "function setGlobalEval(elems, refElements) {\n for (var elem, i = 0; null != (elem = elems[i]); i++) jQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n }", "title": "" }, { "docid": "9d30759f629dd5ff0aae59d63afe3a68", "score": "0.5241059", "text": "function setGlobalEval(elems, refElements) {\n var i = 0,\n l = elems.length;\n\n for (; i < l; i++) {\n dataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n }\n }", "title": "" }, { "docid": "c143a99492f70b29aa16707d2507b76e", "score": "0.52381676", "text": "function setGlobalEval(elems, refElements) {\n\t\t\tvar i = 0,\n\t\t\t l = elems.length;\n\n\t\t\tfor (; i < l; i++) {\n\t\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c143a99492f70b29aa16707d2507b76e", "score": "0.52381676", "text": "function setGlobalEval(elems, refElements) {\n\t\t\tvar i = 0,\n\t\t\t l = elems.length;\n\n\t\t\tfor (; i < l; i++) {\n\t\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "523583285b51f8ee635621eba94fc4a0", "score": "0.52315265", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\t\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "523583285b51f8ee635621eba94fc4a0", "score": "0.52315265", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\t\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "ca9d48df28794b787dec90a8a2c579f8", "score": "0.52314526", "text": "function setGlobalEval( elems, refElements ) {\n var elem,\n i = 0;\n for ( ; (elem = elems[i]) != null; i++ ) {\n jQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n }\n}", "title": "" }, { "docid": "ca9d48df28794b787dec90a8a2c579f8", "score": "0.52314526", "text": "function setGlobalEval( elems, refElements ) {\n var elem,\n i = 0;\n for ( ; (elem = elems[i]) != null; i++ ) {\n jQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n }\n}", "title": "" }, { "docid": "037b5778d1bcf40449a52860c2279733", "score": "0.5228427", "text": "function setGlobalEval(elems, refElements) {\n var i = 0,\n l = elems.length;\n\n for (; i < l; i++) {\n data_priv.set(\n elems[i], \"globalEval\", !refElements || data_priv.get(refElements[i], \"globalEval\")\n );\n }\n }", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "de20db9f45a255c46a7bfaf926b23574", "score": "0.5212857", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar i = 0,\n\t\t l = elems.length;\n\n\t\tfor (; i < l; i++) {\n\t\t\tdataPriv.set(elems[i], \"globalEval\", !refElements || dataPriv.get(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "f10e50648cfda7a5e041c2acfdc947cd", "score": "0.5212799", "text": "function setGlobalEval(elems, refElements) {\n\t\tvar elem,\n\t\t i = 0;\n\t\tfor (; (elem = elems[i]) != null; i++) {\n\t\t\tjQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n\t\t}\n\t}", "title": "" }, { "docid": "f4582f76ea476f68ae083e52c389e39f", "score": "0.52078605", "text": "function setGlobalEval(elems, refElements) {\n var elem,\n i = 0;\n for (; (elem = elems[i]) != null; i++) {\n jQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n }\n }", "title": "" }, { "docid": "f4582f76ea476f68ae083e52c389e39f", "score": "0.52078605", "text": "function setGlobalEval(elems, refElements) {\n var elem,\n i = 0;\n for (; (elem = elems[i]) != null; i++) {\n jQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n }\n }", "title": "" }, { "docid": "f4582f76ea476f68ae083e52c389e39f", "score": "0.52078605", "text": "function setGlobalEval(elems, refElements) {\n var elem,\n i = 0;\n for (; (elem = elems[i]) != null; i++) {\n jQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n }\n }", "title": "" }, { "docid": "f4582f76ea476f68ae083e52c389e39f", "score": "0.52078605", "text": "function setGlobalEval(elems, refElements) {\n var elem,\n i = 0;\n for (; (elem = elems[i]) != null; i++) {\n jQuery._data(elem, \"globalEval\", !refElements || jQuery._data(refElements[i], \"globalEval\"));\n }\n }", "title": "" }, { "docid": "5a067ff9236641d1cb8f26806d94f14c", "score": "0.5207373", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "5a067ff9236641d1cb8f26806d94f14c", "score": "0.5207373", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "5a067ff9236641d1cb8f26806d94f14c", "score": "0.5207373", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "5a067ff9236641d1cb8f26806d94f14c", "score": "0.5207373", "text": "function setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdata_priv.set(\n\t\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" }, { "docid": "15fd536ade98c3af78acdb56b7e225d7", "score": "0.5192963", "text": "function setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}", "title": "" } ]
69f12b357fed8189cd0cce574e91920c
questa funzione viene passata a p5
[ { "docid": "4e433ee6aa3fab660dc70f503f06fcb1", "score": "0.7038748", "text": "p5Function(p) {\n this.p = p;\n let bg;\n p.setup = () => {\n p.createCanvas(this.canvasWidth, this.canvasHeight);\n bg = p.color(45, 45, 45);\n }\n p.draw = () => {\n //p.ellipse(50, 50, 100,100);\n p.background(bg);\n this.display();\n }\n p.mouseClicked = () => {\n //controllo se ho una callback in onMouseClicked\n if (this.onMouseClicked) {\n //ottengo il colore nel punto in cui ho cliccato il mouse\n let colorInPoint = p.get(p.mouseX, p.mouseY);\n //rimuovo il canale alpha\n colorInPoint.pop();\n let actionChoosen = this.whereIsClick(colorInPoint);\n this.onMouseClicked(actionChoosen);\n }\n }\n }", "title": "" } ]
[ { "docid": "5d44829cad09fcd275c77a95c48ff747", "score": "0.64735353", "text": "function goban(p5) {\n // VARIABLE GLOBAL\n \n // PROCESSING FUNCTION\n p5.setup = function () {\n p5.createCanvas(p5.windowWidth, p5.windowHeight);\n p5.windowResized = () => {\n p5.resizeCanvas(p5.windowWidth, p5.windowHeight);\n };\n };\n\n p5.draw = function () {\n p5.background(\"black\");\n // p5.background(param.bg, param.bg_alpha);\n // // show_goban(goban);\n // // show_stones(stones);\n // apparence(param);\n // let_s_dance(stones, param);\n // show_gui(info_is);\n p5.rectMode(p5.CENTER);\n // variant_taille(p5.mouseX,p5.mouseY,300,50,\"red\", \"yellow\", 10);\n // variant_taille(p5.mouseY,p5.mouseX,50,50,\"pink\", \"blue\", 20);\n\n grille(15);\n p5.stroke(255);\n };\n\n function grille (step) {\n let offset = step /2;\n let inc = 0;\n \n for (let i = 0 ; i < p5.width ; i = i + step) {\n for (let p = 0; p < p5.height ; p = p + step) {\n let x = i + offset ;\n let y = p + offset;\n inc +=1;\n pierre (x,y,11,inc);\n // p5.rect(x,y,20,20);\n }\n }\n }\n\n function pierre (x,y,taille, inc) {\n let value = p5.sin(p5.frameCount /100);\n let coeur_x = value * taille;\n let coeur_y =value * taille *100;\n p5.fill('hsla(150, 5%, 50%, 0.3)');\n p5.noStroke();\n if(inc%10=== 0) {\n // rect (x,y,taille,taille*4);\n pierre_rotation(x,y,coeur_x, coeur_y, inc);\n }\n }\n\n function pierre_rotation(x, y, w, h, rotation) {\n // console.log(\"rotation\",rotation);\n let offset_x = w /2;\n let offset_y = h /2;\n p5.push();\n p5.translate(x, y);\n p5.push();\n p5.rotate((rotation + p5.frameCount) * 0.01);\n p5.translate(-offset_x, -offset_y);\n p5.ellipse(0, 0, h,w/3);\n p5.pop();\n p5.pop();\n }\n \n\n // function variant_taille (x, y, tx, ty, interieur, exterieur, epaisseur) {\n // apparence (interieur, exterieur, epaisseur);\n // let value = p5.sin(p5.frameCount /100);\n // let coeur_x = value * tx;\n // let coeur_y =value * ty;\n // p5.rect(x,y,coeur_x,coeur_y);\n // }\n\n // function apparence (interieur, exterieur, epaisseur) {\n // p5.fill(interieur);\n // p5.stroke(exterieur);\n // p5.strokeWeight(epaisseur);\n // }\n}", "title": "" }, { "docid": "a570859a5bc64f43aff149d19630c1aa", "score": "0.6062637", "text": "function draw(){\n\n //using text function have p5 write hello world!\n text( \"Hello world!\", 450, 250);\n}", "title": "" }, { "docid": "96f33c310e9c50a29bbbf79b2091ad38", "score": "0.6052976", "text": "function setup()\r\n{\r\ncanvas = createCanvas(600 , 500);\r\ncanvas.center();\r\nvideo = createCapture(VIDEO);\r\nvideo.hide();\r\nposeNet = ml5.poseNet(video , modelLoaded);\r\nposeNet.on('pose' , gotPoses);\r\n}", "title": "" }, { "docid": "6de7fb16f46a458bbbb8a8df38723eb2", "score": "0.5984969", "text": "function setup() {\n createCanvas(600, 400);\n video = createCapture(VIDEO);\n video.hide();\n \n // Create a new poseNet method and apply to video\n poseNet = ml5.poseNet(video, modelLoaded);\n\n // Listen to new 'pose' events and get the coordinates of left hip and left knee of a pose\n poseNet.on('pose', (poses) => {\n //console.log(poses); \n rightHipX = poses[0].pose.keypoints[12].position.x;\n rightHipY = poses[0].pose.keypoints[12].position.y;\n rightKneeX = poses[0].pose.keypoints[14].position.x;\n rightKneeY = poses[0].pose.keypoints[14].position.y;\n \n });\n \n // Serial Communication\n serial = new p5.SerialPort(); \n serial.on('error', serialError); \n serial.on('list', printList); \n serial.open(portName); \n}", "title": "" }, { "docid": "1ce96c343db75da4c1472c31b7a20630", "score": "0.5969555", "text": "function setupP5 (p) {\r\n\r\n p.setup = function () {\r\n let canvasHeight = activeGame.rows * cellDims,\r\n canvasWidth = activeGame.cols * cellDims;\r\n p.createCanvas(canvasWidth, canvasHeight);\r\n\r\n // Setup assets as p5 image handles\r\n assets.p5Images = {};\r\n for (let im in assets.images) {\r\n assets.p5Images[im] = p.loadImage(assets.images[im]);\r\n }\r\n p.textAlign(p.CENTER, p.CENTER);\r\n }\r\n\r\n p.draw = function () {\r\n if (!activeGame) { return; }\r\n p.background(0);\r\n p.drawKtahbjects();\r\n p.writeMessage();\r\n }\r\n\r\n p.writeMessage = function () {\r\n if (message) {\r\n p.fill(\"red\");\r\n p.textSize(40);\r\n p.text(message, p.width/2, p.height/4);\r\n }\r\n }\r\n\r\n p.drawKtahbjects = function () {\r\n activeGame.forEachKtahbject((k, r, c) => {\r\n p.image(assets.p5Images[k.asset], c*cellDims, r*cellDims, cellDims, cellDims);\r\n });\r\n }\r\n\r\n}", "title": "" }, { "docid": "e228b7b6f02eef0958a5a40be9870809", "score": "0.5921676", "text": "function setup() {\n\n /* create a box in browser to show our output. Canvas having:\n width: 640 pixels and\n height: 480 pixels\n */\n\n createCanvas(canvas_width, canvas_height);\n \n // get video and call function vidLoad when video gets loaded\n video = createVideo(video_path, vidLoad)\n video2 = createVideo(video2_path, vidLoad)\n // set video to the same height and width of our canvas\n video.size(width/2, height/2);\n video2.size(width/2, height/2);\n\n /* Create a new poseNet model. Input:\n 1) give our present video output\n 2) a function \"modelReady\" when the model is loaded and ready to use\n */\n poseNet = ml5.poseNet(video, modelReady);\n poseNet2 = ml5.poseNet(video2, modelReady);\n\n /*\n An event or trigger.\n Images from the video is given to the poseNet model.\n The moment pose is detected and output is ready it calls:\n function(result): where result is the models output.\n store this in poses variable for furthur use.\n */\n poseNet.on('pose', function(results) {\n poses = results;\n });\n poseNet2.on('pose', function(results) {\n poses2 = results;\n });\n\n /* Hide the video output for now.\n We will modify the images and show with points and lines of the \n poses detected later on.\n */\n video.hide();\n video2.hide();\n}", "title": "" }, { "docid": "55cb581adf7f4f9e29715898e0412ecf", "score": "0.5909458", "text": "function setupP5 (p) {\n\n p.setup = function () {\n let canvasHeight = activeGame.rows * cellDims,\n canvasWidth = activeGame.cols * cellDims;\n p.createCanvas(canvasWidth, canvasHeight);\n\n // Setup assets as p5 image handles\n assets.p5Images = {};\n for (let im in assets.images) {\n assets.p5Images[im] = p.loadImage(assets.images[im]);\n }\n p.textAlign(p.CENTER, p.CENTER);\n }\n\n p.draw = function () {\n if (!activeGame) { return; }\n p.background(0);\n p.drawKtahbjects();\n p.writeMessage();\n }\n\n p.writeMessage = function () {\n if (message) {\n p.fill(\"red\");\n p.textSize(40);\n p.text(message, p.width/2, p.height/4);\n }\n }\n\n p.drawKtahbjects = function () {\n activeGame.forEachKtahbject((k, r, c) => {\n p.image(assets.p5Images[k.asset], c*cellDims, r*cellDims, cellDims, cellDims);\n });\n }\n\n}", "title": "" }, { "docid": "be1c9318ba2627525ffd2322c61c6e1c", "score": "0.58960503", "text": "function structural(n, angle, m) {\n let x = 0, y = 0;\n fill(50);\n textAlign(CENTER);\n textSize(10);\n rotate(-angle);\n text('Author: Darren Lean', x, y + 30);\n rotate(angle);\n if (dist(mouseX, mouseY, newdipolex, newdipoley) < 2*R) {\n rotate(-angle);\n text(\"You can't catch me!\", x, y - 22);\n textSize(15);\n text('Poofff : p', x, y);\n if (m == 0){\n textSize(10);\n text(\"By the way, why 0\", x + 400, y - 20);\n }\n rotate(angle);\n } else {\n if (n < maxpoints) {\n if (angle == 0 ){\n fill(50);\n text('Peek a boo!', x, y - 22);\n noStroke();\n fill(247, 202, 24);\n ellipse(x, y, 2*R, 2*R);\n fill(0);\n ellipse(x - 8, y - 4, 5, 5);\n ellipse(x + 8, y - 4, 5, 5);\n arc(x, y + 1, 20, 20, radians(0), radians(180));\n } else {\n if (document.getElementById(\"angleChange\").value == true){\n noStroke();\n fill(247, 202, 24);\n ellipse(x, y, 2*R, 2*R);\n stroke(51);\n line(x - 8, y - 6, x - 4, y - 2);\n line(x - 8, y - 2, x - 4, y - 6);\n line(x + 4, y - 6, x + 8, y - 2);\n line(x + 4, y - 2, x + 8, y - 6);\n fill(153, 153, 0);\n ellipse(x, y + 6, 6, 6);\n rotate(-angle);\n fill(255, 0, 0);\n textSize(20);\n text('STOP it!', x, y - 22);\n rotate(angle);\n } else {\n noStroke();\n fill(247, 202, 24);\n ellipse(x, y, 2*R, 2*R);\n stroke(51);\n line(x - 8, y - 6, x - 4, y - 2);\n line(x - 8, y - 2, x - 4, y - 6);\n line(x + 4, y - 6, x + 8, y - 2);\n line(x + 4, y - 2, x + 8, y - 6);\n line(x - 6, y + 6, x + 6, y + 6);\n rotate(-angle);\n noStroke();\n fill(50);\n text('Ugh.', x, y - 22);\n rotate(angle);\n }\n }\n } else {\n rotate(-angle);\n fill(50);\n if (angle == 0) {\n text('Oh no! You run out of magnets.', x, y - 22);\n } else {\n text(\"Sorry, I can't help.\", x, y - 22);\n }\n rotate(angle);\n noStroke();\n fill(247, 202, 24);\n ellipse(x, y, 2*R, 2*R);\n stroke(51);\n line(x - 8, y - 6, x - 4, y - 2);\n line(x - 8, y - 2, x - 4, y - 6);\n line(x + 4, y - 6, x + 8, y - 2);\n line(x + 4, y - 2, x + 8, y - 6);\n fill(153, 153, 0);\n ellipse(x, y + 6, 6, 6);\n }\n }\n}", "title": "" }, { "docid": "710a11684e11ca0b3a3ae1e6964ed2ee", "score": "0.58897746", "text": "function setup(){\n createCanvas(windowWidth,windowHeight);\n \n getAudioContext().suspend();\n mic = new p5.AudioIn();\n mic.start();\n \n x = random(width);\n y = random(height);\n \n b = random(0,width/2);\n c = random(0,width/2);\n d = random(0,width/2);\n e = random(0,height/2);\n f = random(0,height/2);\n g = random(0,height/2);\n\n k = 0;\n}", "title": "" }, { "docid": "8a834312cf3d95618e15437fc7eb7948", "score": "0.58865017", "text": "function setup() {\n /* create a box in browser to show our output. Canvas having:\n width: 640 pixels and\n height: 480 pixels\n */\n createCanvas(canvas_width, canvas_height); // get video and call function vidLoad when video gets loaded\n\n video = createVideo(video_path, vidLoad); // set video to the same height and width of our canvas\n\n video.size(width, height);\n /* Create a new poseNet model. Input:\n 1) give our present video output\n 2) a function \"modelReady\" when the model is loaded and ready to use\n */\n\n poseNet = ml5.poseNet(video, modelReady);\n /*\n An event or trigger.\n Images from the video is given to the poseNet model.\n The moment pose is detected and output is ready it calls:\n function(result): where result is the models output.\n store this in poses variable for furthur use.\n */\n\n poseNet.on('pose', function (results) {\n poses = results;\n });\n /* Hide the video output for now.\n We will modify the images and show with points and lines of the \n poses detected later on.\n */\n\n video.hide();\n}", "title": "" }, { "docid": "5d59df766c9f91350418e566a6018510", "score": "0.585088", "text": "function setup() {\n\n /* create a box in browser to show our output. Canvas having:\n width: 640 pixels and\n height: 480 pixels\n */\n createCanvas(canvas_width, canvas_height);\n \n // get video and call function vidLoad when video gets loaded\n video = createVideo(video_path, vidLoad)\n // set video to the same height and width of our canvas\n video.size(width, height);\n\n /* Create a new poseNet model. Input:\n 1) give our present video output\n 2) a function \"modelReady\" when the model is loaded and ready to use\n */\n poseNet = ml5.poseNet(video, modelReady);\n\n /*\n An event or trigger.\n Images from the video is given to the poseNet model.\n The moment pose is detected and output is ready it calls:\n function(result): where result is the models output.\n store this in poses variable for furthur use.\n */\n poseNet.on('pose', function(results) {\n poses = results;\n });\n\n /* Hide the video output for now.\n We will modify the images and show with points and lines of the \n poses detected later on.\n */\n video.hide();\n}", "title": "" }, { "docid": "483633a7b278cd2fd7b693b7296f5dfb", "score": "0.5797906", "text": "function setup() // P5 Setup Fcn\n{\n let sz = g_canvas.cell_size;\n let width = sz * g_canvas.wid; // Our 'canvas' uses cells of given size, not 1x1 pixels.\n let height = sz * g_canvas.hgt;\n createCanvas( width, height ); // Make a P5 canvas.\n draw_grid( 25, 8, 'white', 'yellow' );\n\n // Setup input-box for input and a callback fcn when button is pressed.\n greeting_1 = createElement(\"h4\", \"Plaintext\");\n greeting_1.position(10, 10);\n g_input_1 = createInput(); // Create an input box, editable.\n g_input_1.position(90, 30); // Put box on page.\n\n // Setup input-box for input and a callback fcn when button is pressed.\n greeting_2 = createElement(\"h4\", \"Password\");\n greeting_2.position(10, 40);\n g_input_2 = createInput(); // Create an input box, editable.\n g_input_2.position(90, 60); // Put box on page.\n\n g_button = createButton(\"Submit\"); // Create button to help get input data.\n g_button.position(140, 90); // Put button on page.\n g_button.mousePressed(retrieve_input_1); // Hook button press to callback fcn.\n\n}", "title": "" }, { "docid": "eddaa1387063eb2761de963f53b1f380", "score": "0.57429725", "text": "function setup() {\n createCanvas(400, 500);\n\n miAnalizador = new p5.Amplitude();\n miAnalizador.setInput(miCancion);\n\n\n background(255);\n}", "title": "" }, { "docid": "e8265b1c14c6b3b5587e5867fbd9b3b1", "score": "0.57352203", "text": "function setup() {\n\n //camelCase, UPPERCASE, lowercase\n\n //crear lienzo para dibujar \n //por defecto es blanco\n //createCanvas(dimHor, dimVer); \n //dimensiones en px\n createCanvas(windowWidth, windowHeight);\n\n //pintar el fondo\n //background(color);\n //1: grayscale, 0 es negro, 255 es blanco\n //2: grayscale + alpha\n //3: rgb, redgreenblue, 0 nada, 255 todo\n //4: rgb + alpha\n //alpha: 0 es transparente, 255 es solido\n background(0, 35, 220, 40)\n \n //framRate (tasa de cuadros por segundo)\n frameRate(5);\n\n //variable local x\n var x\n x = 10\n\n //variable local y\n //modo rapido de DECLARAR\n //y asignar valor inmediatamente \n var y = 10;\n //asignar otro valor\n y = 100;\n\n\n //No borrar las llaves \n}", "title": "" }, { "docid": "4f4cfdbe329ba141fca199dfdb30a113", "score": "0.5707503", "text": "function jeDovoljEnot()\n{\n \n}", "title": "" }, { "docid": "eec6f7303ba0ba5f979a8c3b3afe64c8", "score": "0.57064956", "text": "function generaEjercicio5(e,num1,num2,num3){\n\n e.preventDefault();\n var ip= generarIPAleatoria();\n var bit =generarBist(ip);\n var valor= calcularSubredes (bit);\n var subred= Math.floor(Math.random() * (valor - 1)) + 1\n direccionConMascara[num1-1].value=ip;\n direccionConMascara[num2-1].value=bit;\n direccionConMascara[num3-1].value=subred;\n \n }", "title": "" }, { "docid": "85effb23e38b25816b2c9d84466a7060", "score": "0.56800264", "text": "function love4() {}", "title": "" }, { "docid": "95b7514134a808ee148e810b5e54ef36", "score": "0.5676934", "text": "function main() {\n /**\n * asignamos el puerto GPIO y una frecuencia de lectura al sensor\n */\n var configuration = { pin: \"GPIO14\", freq: 50 }\n celda = new five.Sensor(configuration)\n\n /**\n * recibe como parametro el puerto GPIO donde esta conectado el led a la tarjeta\n */\n bombillo = new five.Led(\"GPIO13\")\n\n /**\n * recibe como parametro el puerto GPIO donde esta conectado el servo a la tarjeta\n */\n motor = new five.Servo(\"GPIO9\")\n /**\n * le asignamos una posicion de inicion a 90°\n */\n motor.to(90)\n\n start()\n}", "title": "" }, { "docid": "4dd96e66102ab23fb3020124d8c59d20", "score": "0.56730926", "text": "function saveTheImg(){\n //for the follwoing i changed some lines in the p5.js library to get access to the images url. \n saveCanvas('myKeyprint','jpg');\n url = createP(leonleon);\n // url.style(\"color: #FFFFFF\")\n // img = createImage(100,100);\n // img.loadPixels();\n // for (i = 0; i < img.width; i++) {\n // for (j = 0; j < img.height; j++) {\n // img.set(i, j, color(0, 90, 102));\n // }\n // } \n // img.updatePixels();\n // b = true;\n\n\n // img = createImg('http://p5js.org/img/asterisk-01.png');\n \n}", "title": "" }, { "docid": "6bdac0e5882c62b2294ee8d5a650b821", "score": "0.56589174", "text": "function pazymiuVidurkis(pv1, pv2, pv3, pv4, pv5) {\n pv1 = 5;\n pv2 = 10;\n pv3 = 8;\n pv4 = 6;\n pv5 = 8;\n console.log(\"pazymiu vidurkis =\", (pv1 + pv2 + pv3 + pv4 + pv5) / 5);\n}", "title": "" }, { "docid": "168e8ddf241435c6d1507929a099cf57", "score": "0.56534547", "text": "function setup(){\n\n}", "title": "" }, { "docid": "0117824010701a14ec4f72a3a1a4e6c8", "score": "0.5652244", "text": "function setup() {\r\n\r\n}", "title": "" }, { "docid": "ea11f4995ec49b1227adbeee39ffc627", "score": "0.56510484", "text": "function setup() {\n\n\n}", "title": "" }, { "docid": "f6451b41f7976ea2052389dbfaefd242", "score": "0.5635425", "text": "function SGPvPAction() { }", "title": "" }, { "docid": "0ce9d47aa6f1e31298d3c0de12450e64", "score": "0.5617751", "text": "function setup() {\n c = createCanvas(windowWidth, windowHeight);\n noStroke();\n rectMode(CENTER);\n backgroundColor = color( random(0,255), random(0,255), random(0,255) );\n\n var mic = new p5.AudioIn();\n //iniciar micrófono\n mic.start();\n\n amplitude = new p5.Amplitude();\n\n \n\n amplitude.setInput(mic);\n amplitude.smooth(0.9);\n}", "title": "" }, { "docid": "7b0149d5b3f6d019201cb83f729c539b", "score": "0.5614021", "text": "function setup() {\n nactihudbu();\n //pocmin = createInput(50);\n score = select(\"#topbar\");\n score.html(\"Zbývající počet min: \" + \"\");\n \n \n}", "title": "" }, { "docid": "271b9a5f111f8d367bd63e4e586ac8ce", "score": "0.561312", "text": "function setup() {\n createCanvas(640, 480);\n background(200, 10);\n generatePoem();\n addVerse();\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.5595317", "text": "function setup() {\n\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.5595317", "text": "function setup() {\n\n}", "title": "" }, { "docid": "29d70b3142c090d31602b9f37765834b", "score": "0.55949885", "text": "function setup(){\n\n let canvas = createCanvas(600,600)\n canvas.parent('p5container')\n\n}", "title": "" }, { "docid": "60d2b7fe0b4c6bcc84236f29d99703b1", "score": "0.556745", "text": "mainsPosees(g){\n io.emit('MAJmainsposees',g.donne.mains);\n }", "title": "" }, { "docid": "48179035fc06d3353b21ab8f254a1809", "score": "0.5560369", "text": "function setup(){\r\n\t//ganti disini !\r\n\tpanjang \t= \t12; //\t\t<-- 25 > panjang > 4\r\n\ttinggi \t\t= \t24; //\t\t<-- 50 > tinggi > 8\r\n\tratioBoard \t= 15 * 1.5;\r\n\r\n\t//jangan diganti !\r\n\ttile = Array(panjang * tinggi).fill(0)\r\n\tfreedom = Array(panjang * tinggi).fill(0)\r\n\tif(panjang > 25){panjang=25}\r\n\tif(panjang < 4){panjang=4}\r\n\tif(tinggi > 50){tinggi=50}\r\n\tif(tinggi < 8){tinggi=8}\r\n\tcreateCanvas(panjang * ratioBoard,tinggi * ratioBoard)\r\n}", "title": "" }, { "docid": "fcc7f3998d077d4baf6d23d9011bf277", "score": "0.55580753", "text": "function runPage1() {\n\n\tcapPos = 0;\n\taudioPos = 0;\n\tcurPos = 0;\n\tspecialPoints = 0;\n\n\tcapPoints = Array(null, 0, 21, 38, 71);\n\taudioPoints = Array(null, 0, 38, 71);\n\tspecialPoints = Array(null, 0, 26, 33, 42);\n\n\thotPoints = Array(\n\t\t// 3D Ocean View ----------------------------------------------------------\n\t\tArray('p1a1', 11, 39),\n\n\t\t\t// Marine Reef\n\t\t\tArray('p1a1-1', 13, 38),\n\t\t\t// Volcanic Island Arc\n\t\t\tArray('p1a1-2', 24, 38),\n\t\t\t// Oceanic Crust\n\t\t\tArray('p1a1-3', 33, 38),\n\t\t\t// Mudclay\n\t\t\tArray('p1a1-4', 33, 38),\n\t\t\t// Continental Crust\n\t\t\tArray('p1a1-5', 33, 38),\n\t\t\t// Compression Arrows\n\t\t\tArray('p1a1-7', 25, 38),\n\t\t\tArray('p1a1-6', 32, 38),\n\n\t\t// Ocean Cross-section large ----------------------------------------------\n\t\tArray('p1a2', 40, 69),\n\t\t\t// Volcanic Arc Rock\n\t\t\tArray('p1a2-1', 39, 69),\n\t\t\t// Mudclay\n\t\t\tArray('p1a2-2', 39, 69),\n\t\t\t// Limestone Rock\n\t\t\tArray('p1a2-3', 39, 69),\n\t\t\t// Marine Basin\n\t\t\tArray('p1a2-4', 39, 69),\n\t\t\t// Compression Arrows\n\t\t\tArray('p1a2-5', 41, 69),\n\t\t\tArray('p1a2-6', 41, 69),\n\n\t\t// Ocean Cross-section small ---------------------------------------------\n\t\tArray('p1a3', 70, null),\n\t\t\t// Eroded Sediment\n\t\t\tArray('p1a3-1', 77, null),\n\t\t\t// Rivers & Streams\n\t\t\tArray('p1a3-2', 91, null),\n\t\t\t// Rain\n\t\t\tArray('p1a3-3', 71, null),\n\t\t\t// Eroding Mountains\n\t\t\t//Array('p1a3-4', 73, null),\n\t\t\t// Deposited Layers of Sediment\n\t\t\tArray('p1a3-5', 96, null)\n\t);\n\n\tsetupPlayer(mediaDirectory + \"page1.mp3\", page1Actions, '01:37', 'mp3', true);\n\n}", "title": "" }, { "docid": "54f8c45eb35392a7f436a3accea01334", "score": "0.5552503", "text": "function pazymiuVidurkis1(x1, x2, x3, x4, x5) {\nvar vidurkis = ((x1 + x2 + x3 + x4 + x5) /5);\nvar tekstas = (\"pazymiu vidurkis yra \" + vidurkis + \"<br>\" );\ndocument.querySelector('h1').innerHTML += tekstas +\"<br>\";\n}", "title": "" }, { "docid": "29aa08b3a906e002b2dc453b9f124266", "score": "0.5545052", "text": "function runPage3() {\n\n\tcapPos = 0;\n\taudioPos = 0;\n\tcurPos = 0;\n\tspecialPoints = 0;\n\n\tcapPoints = Array(null, 0, 23, 50, 74, 93, 105);\n\taudioPoints = Array(null, 0, 23, 50, 74, 93);\n\tspecialPoints = Array(null, 0, 28, 100);\n\thotPoints = Array(\n\t\t// Continental Shelf ----------------------------------------------------------\n\t\tArray('p3a1', 18, 23),\n\n\t\t\t// Trilobite\n\t\t\tArray('p3a1-1', 20, 23),\n\t\t\t// Crinoid\n\t\t\tArray('p3a1-2', 21, 23),\n\t\t\t// Brachiopod\n\t\t\tArray('p3a1-3', 19, 23),\n\n\t\t// 3D Ocean View ----------------------------------------------------------\n\t\tArray('p3a2', 21, 50),\n\n\t\t\t// Deposited Layers of Mud & Clay\n\t\t\tArray('p3a2-1', 23, 50),\n\t\t\t// Compression Arrow\n\t\t\tArray('p3a2-4', 27, 50),\n\t\t\t// Mudstone\n\t\t\tArray('p3a2-2', 33, 50),\n\t\t\t// Shale\n\t\t\tArray('p3a2-3', 34, 50),\n\n\t\t// 3D Ocean View ----------------------------------------------------------\n\t\tArray('p3a3', 21, 93),\n\n\t\t\t// Floating Graptolite Colonies\n\t\t\tArray('p3a3-1', 59, 74),\n\t\t\t// Graptolites\n\t\t\tArray('p3a3-2', 55, 74),\n\n\t\t\t// North America\n\t\t\tArray('p3a3-3', 79, 93),\n\t\t\t// Africa\n\t\t\tArray('p3a3-4', 80, 93),\n\t\t\t// Appalacian Moutnains\n\t\t\tArray('p3a3-5', 88, 93),\n\n\t\t// 3D Ocean View ----------------------------------------------------------\n\t\tArray('p3a4', 21, null),\n\n\t\t\t// Intense Folding of Shale Layers\n\t\t\tArray('p3a4-1', 99, null),\n\t\t\t// Commpression Arrows\n\t\t\tArray('p3a4-4', 98, 103),\n\t\t\tArray('p3a4-3', 98, 103),\n\t\t\t// Shale Metamorphosed into Slate\n\t\t\tArray('p3a4-2', 103, null),\n\t\t\t// Slate\n\t\t\tArray('p3a4-5', 103, null), // image\n\t\t\t// Foliation\n\t\t\tArray('p3a5-2', 115, null)\n\n\t);\n\n\tsetupPlayer(mediaDirectory + \"page3.mp3\", page3Actions, '02:09', 'mp3', true);\n\n}", "title": "" }, { "docid": "59c97f87fb64e55d9e1dc703531bdf26", "score": "0.554115", "text": "function step5() {\n\tdraw(60, 36, 60, 70);\n}", "title": "" }, { "docid": "b98ba8a1a1734ec610d7468c8b505eea", "score": "0.5539751", "text": "function bass2(){\r\n\tif (player.pos.x > 700 && player.pos.x < 720){\r\n\t\tvar back1 = new p5.Oscillator(349);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,3.5);\r\n\t}\r\n\telse if (player.pos.x > 2000 && player.pos.x < 2020){\r\n\t\tvar back1 = new p5.Oscillator(329);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t}\r\n\telse if (player.pos.x > 2850 && player.pos.x < 2870){\r\n\t\tvar back1 = new p5.Oscillator(349);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t}\r\n\telse if (player.pos.x > 3700 && player.pos.x < 3720){\r\n\t\tvar back1 = new p5.Oscillator(329);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t}\r\n\telse if (player.pos.x > 4450 && player.pos.x < 4470){\r\n\t\tvar back1 = new p5.Oscillator(220);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,1);\r\n\t}\r\n\telse if (player.pos.x > 4970 && player.pos.x < 4990){\r\n\t\tvar back1 = new p5.Oscillator(349);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,6);\r\n\t\tvar back2 = new p5.Oscillator(293);\r\n\t\tback2.start();\r\n\t\tback2.setType('triangle');\r\n\t\tback2.amp(.35,.01);\r\n\t\tback2.amp(0,.01,6);\r\n\t}\r\n\telse if (player.pos.x > 6950 && player.pos.x < 6970){\r\n\t\tvar back1 = new p5.Oscillator(349);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2);\r\n\t}\r\n}", "title": "" }, { "docid": "615ae8a63109f31f88bef0a200d1186c", "score": "0.5534936", "text": "function add1P5(num, cb){\n // STUB\n cb(num+1)\n // ENDSTUB\n}", "title": "" }, { "docid": "5eb582846e140862736618504a6355f4", "score": "0.55328983", "text": "seekBoid(target) {\n let nearestTarget = getNearestTartget(this.position);\n // console.log(nearestTarget);\n // console.log(nearestTarget);\n let homingDirection = myp5.createVector(nearestTarget.x, nearestTarget.y);\n // let homingDirection = myp5.createVector(myp5.mouseX, myp5.mouseY);\n let desired = p5.Vector.sub(homingDirection, this.position); // A vector pointing from the location to the target\n // Normalize desired and scale to maximum speed\n desired.normalize();\n desired.mult(this.maxspeed);\n // Steering = Desired minus Velocity\n let steer = p5.Vector.sub(desired, this.velocity);\n this.maxforce = myp5.map(poseDetectionInstance.magnitude.currentValue, poseDetectionInstance.magnitude.min, poseDetectionInstance.magnitude.min, 0.03, 1)\n steer.limit(this.maxforce); // Limit to maximum steering force\n return steer;\n }", "title": "" }, { "docid": "0256547d73a5f0bb903032ae382395f2", "score": "0.55318564", "text": "function setup() {\n /* Initialize canvas */\n\n let cnv = createCanvas(1280, 720);\n r = height / 2 ;\n cnv.position(150,0);\n angleMode(DEGREES);\n\n /* Orbit particles array created */\n for(var i=0; i < 4; i++) {\n orbitParticles.push(new OrbitParticle(random(width), random(height))); \n }\n\n /* Initialize all sound property objects*/\n //amp = new p5.Amplitude();\n peakDetect = new p5.PeakDetect(300,700); \n fft_drum = new p5.FFT(0, 16);\n mic = new p5.AudioIn();\n mic.getSources().then((data)=> {\n console.log(data);\n mic.setSource(1);\n mic.start();\n userStartAudio();\n fft_drum.setInput(mic);\n })\n\n /* Initialise marker array */\n initMarkers();\n /* Initialise UI elements */\n initializeUI();\n /* Initialise video feed and posenet */\n initializePosenet();\n /* Initialize flow animation objects*/\n setupSnow();\n\n /* Intiailize socket to listen on port 3000 */\n socket = io.connect('http://localhost:3000');\n // socket.on('counter', counterLog);\n}", "title": "" }, { "docid": "d44da8dde17307a413f7c0bf81e8f644", "score": "0.55135345", "text": "function draw()\n{\n \n\n}", "title": "" }, { "docid": "af768585d30953360b5bf6169a49cf8a", "score": "0.5510697", "text": "function setup() {\n\tvar p5=createCanvas(100,300);\n\t\tp5.parent('p5');\n\n\tslider=createSlider(0, 255, 0);\n\tslider.position(180,250);\n\n}", "title": "" }, { "docid": "a2c0540980bff09023131616ec5c75bc", "score": "0.55064064", "text": "function setup(){\n createCanvas(420,420);\n for(i=0;i<row;i++){\n b[i]=[];\n for(j=0;j<col;j++){\n b[i][j]=new box(i,j);\n khaali.push(b[i][j]);\n }\n }\n start=b[floor(random(3.99))][floor(random(3.99))];\n do{\n start2=b[floor(random(3.99))][floor(random(3.99))];\n }while(start==start2);\n rem(khaali,b,start.y,start.x);\n rem(khaali,b,start2.y,start2.x);\n\n start.num=2;\n start2.num=4; \n\n}", "title": "" }, { "docid": "d67f816b17acc0a3686f8a1a1efc7ec4", "score": "0.5493724", "text": "function quux5() {\n\n}", "title": "" }, { "docid": "78713ef94630e33a90cfd744fe754551", "score": "0.54915464", "text": "function SGPvPActionM() { }", "title": "" }, { "docid": "ef0388b4c189f4983b9c1c8f5747b312", "score": "0.5490029", "text": "function setup(){\n}", "title": "" }, { "docid": "ef0388b4c189f4983b9c1c8f5747b312", "score": "0.5490029", "text": "function setup(){\n}", "title": "" }, { "docid": "ef0388b4c189f4983b9c1c8f5747b312", "score": "0.5490029", "text": "function setup(){\n}", "title": "" }, { "docid": "f3d136db551f630706f8f6fabf615fd2", "score": "0.5484812", "text": "function Virus(m,x,y,r1,r2,npoints) {\n\n\tthis.mass = m;\n\tthis.pos = createVector(x, y);\n\tthis.vel = createVector(0, 0);\n\tthis.acc = createVector(0, 0);\n\tthis.maxspeed = 300;\n\tthis.maxforce = 0.3;\n\n\n\tthis.r = 6;\n\n\tthis.applyForce = function(force) {\n\t\tthis.acc.add(force);\n\t};\n\n\tthis.seek = function(target) {\n\t\tvar desired = p5.Vector.sub(target, this.pos);\n\n\t\t// The seek behavior!\n\t\tdesired.setMag(this.maxspeed);\n\n\t\t// Steering formula\n\t\tvar steering = p5.Vector.sub(desired, this.vel);\n\t\tsteering.limit(this.maxforce);\n\t\tthis.applyForce(steering);\n\n\t};\n\n\tthis.noise = function() {\n\t\tvar xoff = 0;\n\t\tthis.pos.x = noise(xoff) * width;\n\t\tthis.pos.y = noise(xoff) * height;\n\t}\n\n\t\n\n\t\tthis.update = function() {\n\t\t\tthis.vel.add(this.acc);\n\t\t\tthis.vel.limit(this.maxspeed);\n\t\t\tthis.pos.add(this.vel);\n\t\t\tthis.acc.set(0, 0);\n\t\t};\n\n\t\tthis.display = function() {\n\t\t var angle = TWO_PI / npoints;\n\t\t var halfAngle = angle/2.0;\n\t\t beginShape();\n\t\t for (var a = 0; a < TWO_PI; a += angle) {\n\t\t var sx = this.pos.x + cos(a) * r2;\n\t\t var sy = this.pos.y + sin(a) * r2;\n\t\t vertex(sx, sy);\n\t\t sx = this.pos.x + cos(a+halfAngle) * r1;\n\t\t sy = this.pos.y + sin(a+halfAngle) * r1;\n\t\t vertex(sx, sy);\n\t\t }\n\t\t endShape(CLOSE);\n\t\t stroke(0);\n\t\t fill(random(255), random(255), random(255));\n\t\t};\n\n}", "title": "" }, { "docid": "fd24f621a956c3964421f1dec0dbd768", "score": "0.54728395", "text": "function main(){\n convert_new_pi_to_old_pi();\n test_algerithm();\n}", "title": "" }, { "docid": "a8057f81e29e0426114af3ff66b4ce6f", "score": "0.5464141", "text": "function setup() {\n createCanvas(800, 800);\n\n // access webcam\n video = createCapture(VIDEO);\n video.hide();\n\n //load handpose model\n\n handpose = ml5.handpose(video, {\n flipHorizontal: true\n }, function() {\n console.log(`Model loaded.`);\n });\n\n // listen for predictions\n handpose.on(`predict`, function(results) {\n // console.log(results);\n predictions = results; //keeping predictions array up to date with results\n });\n\n // bubble\n bubble = {\n x: random(width),\n y: height,\n size: 100,\n vx: 0,\n vy: -2,\n }\n ''\n}", "title": "" }, { "docid": "d0c151d1ab55389ced7f16f0920b3e47", "score": "0.5459913", "text": "function setup() {\n console.log(\"P5.VERSION:\", p5.VERSION);\n\n // make a small canvas\n pixelDensity(1);\n const c = createCanvas(192, 108, WEBGL);\n noSmooth();\n const canvas = document.getElementById(\"defaultCanvas0\");\n canvas.style = \"width: 950px; height: 540px; image-rendering: pixelated\";\n\n noLoop();\n}", "title": "" }, { "docid": "8c04ce511f0a297bf0f500b2afbf99b7", "score": "0.54587907", "text": "function parapara(e) {\n var deg = e.gamma - 90;\n var diff = 0;\n var max = get_pic_num() - 1;\n var pos = 0;\n /*\n dosen't work\n var pos = pic_pos[target_id] || parseInt(get_pic_num() / 2);\n */\n if (typeof pic_pos[target_id] !== 'undefined') {\n pos = pic_pos[target_id];\n } else {\n pos = parseInt(get_pic_num() / 2);\n }\n if ((deg >= 0 && pre_deg[target_id] >= 0) || (deg <= 0 && pre_deg[target_id] <= 0)) {\n diff = parseInt((deg - pre_deg[target_id]) / DEG_PER_PIC);\n } else if ((deg > 0 && pre_deg[target_id] < 0) || (deg < 0 && pre_deg[target_id] > 0)) {\n diff = parseInt((deg + pre_deg[target_id]) / DEG_PER_PIC);\n }\n pos += diff;\n if (pos >= max) {\n pos = max;\n } else if (pos <= 0) {\n pos = 0;\n }\n show_pic(pos);\n pic_pos[target_id] = pos;\n pre_deg[target_id] = deg;\n }", "title": "" }, { "docid": "afbc5efa28600352db74fe73cbffae77", "score": "0.54552877", "text": "function setup() {\r\n createCanvas (w,h);\r\n hh = new Hexa(200);\r\n jj = new Hexa(300);\r\n\r\n // globalOrgin = new createVector(Math.round(w*.5),Math.round(h*.45));\r\n\r\n \r\n for (i = 0; i < tunnel.length; i++)\r\n {\r\n tunnel[i]=new Hexa(20*i); \r\n }\r\n \r\n \r\n \r\n \r\n\r\n}", "title": "" }, { "docid": "c9cb7365bd6d7470d8b67c86fcdd4890", "score": "0.5454963", "text": "function setup() {\n createCanvas(1280, 720);\n noCursor();\n noStroke();\n userStartAudio();\n\n // create a new synthesizer\n synth = new p5.PolySynth;\n\n // Create a new finger\n finger = new Finger();\n\n // -----\n // Create 4 fishes and push to fishes array:\n // 1- Create a new firefish\n let firefish = new Firefish(fishImages.firefish.img1, fishImages.firefish.img2);\n fishes.push(firefish);\n\n // 2- Create a new goby\n let goby = new Goby(fishImages.goby.img1, fishImages.goby.img2);\n fishes.push(goby);\n\n // 3- Create a new nene (aka big clownfish)\n let nene = new Nene(fishImages.nene.img1, fishImages.nene.img2);\n fishes.push(nene);\n\n // 4- Create a new momo (aka small clownfish)\n let momo = new Momo(fishImages.momo.img1, fishImages.momo.img2);\n fishes.push(momo);\n // -----\n\n // Create a new anemone\n let anemoneX = 500;\n let anemoneY = 510;\n anemone = new Anemone(anemoneX, anemoneY);\n\n // Create the right number of snails to put into creatures array\n for (let i = 0; i < numSnails; i++) {\n let snailX = random(0, width);\n let snailY = random(height * 3 / 4, height - 100);\n let snail = new Snail(snailX, snailY);\n creatures.push(snail);\n }\n\n // Create a new title \"Hungry Fishies\"\n title = new Title();\n\n // Setting x and y positions for start button\n let startButtonX = width * 0.2;\n let startButtonY = height * 0.8;\n // Create a new start button + text inside start button\n startButtonCircle = new StartButtonCircle(startButtonX, startButtonY);\n startButtonText = new StartButtonText(startButtonX, startButtonY, bodyTextFont);\n\n // Create a new demo fish\n demoFish = new DemoFish(demoFishImg1, demoFishImg2);\n\n // Create array for demoFoods (only used in Instructions state)\n for (let i = 0; i < numDemoFoods; i++) {\n let demoFood = demoFoods[i];\n demoFood = new DemoFood(fishTank.border);\n }\n\n // Create a new demo food tracker\n demoFoodTracker = new DemoFoodTracker(demoFoodTrackerImg);\n\n // Create new demo left and right arrow keys and push to demoArrowKeys array\n let demoLeftArrowKey = new DemoLeftArrowKey();\n let demoRightArrowKey = new DemoRightArrowKey();\n demoArrowKeys.push(demoLeftArrowKey, demoRightArrowKey);\n\n // Setting x and y positions for ready button\n let readyButtonX = width * 0.9;\n let readyButtonY = height * 0.8;\n // Create a new ready button + text inside ready button\n readyButtonCircle = new ReadyButtonCircle(readyButtonX, readyButtonY);\n readyButtonText = new ReadyButtonText(readyButtonX, readyButtonY, bodyTextFont);\n\n // Create new rectangle that goes behind the instructions\n rulesRect = new RulesRect();\n\n // Create array for fishFoods\n for (let i = 0; i < numFishFoods; i++) {\n let fishFood = fishFoods[i];\n fishFood = new FishFood(fishTank.border);\n }\n\n // Create a new More Food button\n moreFoodButton = new MoreFoodButton(moreFoodButtonImg);\n\n // Create a new food tracker for each fish and push the food trackers into foodTrackers array\n let foodTrackerForFirefish = new FoodTrackerForFirefish(fishImages.firefish.foodTrackerImg);\n foodTrackers.push(foodTrackerForFirefish);\n let foodTrackerForGoby = new FoodTrackerForGoby(fishImages.goby.foodTrackerImg);\n foodTrackers.push(foodTrackerForGoby);\n let foodTrackerForNene = new FoodTrackerForNene(fishImages.nene.foodTrackerImg);\n foodTrackers.push(foodTrackerForNene);\n let foodTrackerForMomo = new FoodTrackerForMomo(fishImages.momo.foodTrackerImg);\n foodTrackers.push(foodTrackerForMomo);\n\n // Create a new night filter\n nightFilter = new NightFilter();\n\n // Create a new end poem\n let poemLineX = width / 2;\n let poemLineY = yLocationOfFirstLine;\n poem = new Poem(bodyTextFont, poemLineX, poemLineY);\n\n // Create array for poop\n for (let i = 0; i < totalNumPoops; i++) {\n poops[i] = new Poop();\n }\n}", "title": "" }, { "docid": "4cb8defaa6d2403351d583fd912eb7f8", "score": "0.545134", "text": "function setup(){\n // createCanvas(windowWidth,windowHeight);\n mic = new p5.AudioIn();\n mic.start();\n}", "title": "" }, { "docid": "109d6d66793a8c05248764f7a063f49c", "score": "0.5443636", "text": "function setup() {\r\n createCanvas(400, 400);\r\nfor (i=0; i<20; i++){\r\n console.log(\"uwu owo number\" + i);\r\n}\r\n}", "title": "" }, { "docid": "b61adeeecaec2cb619f4543924a03294", "score": "0.543977", "text": "function setup() {\n createCanvas(7680, 1080);\n\n //create a cellular autoamta for rondonia\n //gridWidth = 60\n //gridHeight = 40\n //limit = 100 (the maximum number of activated cells)\n //color = '#ff0000'\n var cellSizePixels = 20;\n var rodoniaWidthPixels = 400;\n\n //x und y position des CellularAutomata\n var rodoniaX = 0;\n var rodoniaY = 0;\n rondonia = new CellularAutomata(\"Rondonia\", rodoniaX, rodoniaY, rodoniaWidthPixels, height, cellSizePixels, 1253, 'grey', 'red', 'blue');\n\n var mattogrossoWidthPixels = 200;\n var mattogrossoX = 400;\n var mattogrossoY = 0;\n mattogrosso = new CellularAutomata(\"Matto Grosso\", mattogrossoX, mattogrossoY, mattogrossoWidthPixels, height, cellSizePixels, 3293, 'grey', 'red');\n\n // para = new CellularAutomata(\"Para\", 760, 108, 4057, 'grey','red');\n // maranhao = new CellularAutomata(\"Maranhao\", 760, 108, 1419, 'grey','red');\n\n //make a list of all regions\n regions.push(rondonia);\n regions.push(mattogrosso);\n // regions.push(para);\n // regions.push(maranhao);\n frameRate(10);\n}", "title": "" }, { "docid": "aa9e6823773155c2c922a35f09473e92", "score": "0.54392684", "text": "function setup() {\n var cnv = createCanvas(1020,600);\n frameRate(300);\n cnv.parent('sketchholder');\n\n NUMBER_PLAYERS = 200;\n NUMBER_GENERATION = 0;\n NUMBER_GENERATION_FRAME = 0;\n NUMBER_MOVES = 150;\n NUMBER_COUNTER_CHROM = 0;\n PLAYER_VELOCITY = 5;\n DIVERSITY_WEIGHT = 1;\n DIVERSITY_FALLOFF = 0.5;\n CURRENT_DIVERSITY = DIVERSITY_WEIGHT;\n P_MUTATION = 0.1;\n P_ELITISM = 0.1;\n P_CROSSOVER = 0.7;\n TOGGLE_POP_CENTER = 0;\n SELECTION_METHOD = \"rank\"\n ARRAY_SELECTIONS_METHODS = [\"roulette\",\"rank\",\"tournament2\",\"tournament4\"]\n CROSSOVER_METHOD = \"one point\"\n ARRAY_CROSSOVER_METHODS = [\"one point\",\"two point\", \"uniform\"]\n\n\n // Individual Player Configuration\n START_POS = createVector(200,200)\n OBJECTIVE_POS = createVector(700,280);\n PLAYER_SIZE = createVector(15,15);\n\n GUI_COLOR = color(60,60,80);\n PERMIT_VALUES = [0,1,2,3,5,6,7,8] // NW,N,NE,W,STAY,E,SW,S,SE\n\n // Setting up GUI array - adds all buttons to the array\n setupTabGA();\n}", "title": "" }, { "docid": "af3a55bc1f994383151347ecd6d0001f", "score": "0.5436323", "text": "function chamasrc(){ \n caminhoImagens(); \n}", "title": "" }, { "docid": "b11a080df552397c2460b6e23621d949", "score": "0.5433422", "text": "function o$5(i,n,o){i.setUniform3f(\"camPos\",o[3]-n[0],o[7]-n[1],o[11]-n[2]);}", "title": "" }, { "docid": "224cbe0755d5753b5b72843c170a0727", "score": "0.5432866", "text": "function SGPvPActionB() { }", "title": "" }, { "docid": "0c0ea74fbab9c6da58522162ec1401f7", "score": "0.5429675", "text": "function setup() {\n createCanvas(700, 700);\n//serial constructor\n serial = new p5.SerialPort(); // make a new instance of the serialport library\n \n \n serial.open('/dev/tty.usbmodem101'); \n //serial port to use, change to the one you use\n \n serial.on('data', gotData);\n//what to do when we get the data\n \n \n}", "title": "" }, { "docid": "c71d7f0b32481e36457a169f7af33b80", "score": "0.5429667", "text": "function setup() {\n pixelDensity(1); // turn off auto adjusment for display resolution\n console.log('in setup');\n // noCanvas(); // remove default P5 canvas\n\n // CREATE CANVASSES\n\n // LIVE CANVAS\n // Create a canvas that will be our display\n liveCanvas = createCanvas(canvasWidth, canvasHeight);\n liveCanvas.id('liveCanvas');\n\n // livecanvas drawingContext\n contextPerson = liveCanvas.drawingContext;\n console.log('contextPerson: ' + contextPerson);\n contextPerson.imageSmoothingQuality = 'high';\n contextPerson.imageSmoothingEnabled = true;\n console.log('liveCanvas: ' + liveCanvas);\n\n // BUFFER CANVAS\n // Create a canvas that'll contain our segmentation\n bufferCanvas = createGraphics(canvasWidth, canvasHeight);\n bufferCanvas.id('bufferCanvas');\n contextBuffer = bufferCanvas.drawingContext;\n //bufferCanvas.drawingContext.scale(0.5, 0.5); // experiment\n\n // set liveCanvas background color for effect\n background(255, 255, 0);\n\n // new entry point\n makeWebCam(camMode)\n .then(myCam => {\n console.log('after makeWebcam myCam: ' + myCam);\n webcam = myCam;\n console.log('calling bodyPix.load()');\n //return bodyPix.load(0.75); // for older 1.0 BodyPix\n return bodyPix.load(bodyPixConfig); // load bodypix ai model\n })\n .then(model => {\n console.log('calling predictImage()');\n console.log('webcam: ' + webcam);\n console.log('model: ' + model);\n\n predictImages(webcam, model);\n\n })\n .catch((err) => console.error(err));\n\n}", "title": "" }, { "docid": "31a07177919d189a7477db019a37fa45", "score": "0.5426624", "text": "function setup() { // p5 setup\r\n createCanvas(xScreenSize, yScreenSize);\r\n colorMode(HSL,maxHeight, 100, maxHeight); // sets colorMode to HSL https://www.w3schools.com/colors/colors_hsl.asp fill(height/1.5, 100, (hightDifference*maxHeight/5)+(maxHeight/2))\r\n for (var i = 0; i < Math.ceil(xScreenSize*yScreenSize/7500); i++) {\r\n points[i] = [random(0, xScreenSize),random(0, yScreenSize),random(0, maxHeight)];\r\n }\r\n diagSize = dist(0,0,xScreenSize,yScreenSize);\r\n for (var x = 0; x <= Math.ceil(xScreenSize)+2; x++) {\r\n world[x-1] = [];\r\n for (var y = 0; y <= Math.ceil(yScreenSize)+2; y++) {\r\n world[x-1][y-1] = [50,50];\r\n }\r\n }\r\n}", "title": "" }, { "docid": "16d22e6d30b70b695e78f99566dc103b", "score": "0.54180753", "text": "function setup() {\n createCanvas(frame_width, frame_height);\n population = new Population();\n genP = createP();\n fitnessP = createP();\n maxFitP = createP();\n lifeP = createP();\n target = createVector(width/2, 50);\n}", "title": "" }, { "docid": "5f5ecb6ca5290d12a73143e60c637f75", "score": "0.54155743", "text": "function setup() {\n universeArea.w = 512/4*MODIFIERS.universe.factor_size;\n universeArea.h = 512/4*MODIFIERS.universe.factor_size;\n universeArea.x = 256 - universeArea.w/2;\n universeArea.y = 256 - universeArea.h/2;\n\n\n frameRate(30);\n let canvas = createCanvas(UNIVERSE.size, UNIVERSE.size);\n if(SETTINGS.webgl) {\n canvas = createCanvas(UNIVERSE.size, UNIVERSE.size, WEBGL);\n }\n \n canvas.parent(\"p5_canvas_container\");\n spawnRandomBubble();\n\n setInterval(asyncUpdate, 33);\n\n //setInterval(spawnRandomBubble, 1000);\n}", "title": "" }, { "docid": "f58399d196efb5be1f9ab890f2c2a533", "score": "0.5411776", "text": "function setup() {\n createCanvas(600, 550);\n\n // Start webcam and hide the resulting HTML element\n video = createCapture(VIDEO);\n // video.size(width, height);\n video.hide();\n\n // Start the Handpose model and switch to our running state when it loads\n handpose = ml5.handpose(video, {\n flipHorizontal: true\n }, function() {\n // Switch to the title state\n state = `title`;\n });\n\n // Listen for prediction events from Handpose and store the results in our\n // predictions array when they occur\n handpose.on(`predict`, function(results) {\n predictions = results;\n });\n\n // Create our basic equation.\n equation = new Equation(1);\n equation.generate();\n}", "title": "" }, { "docid": "1f3cfb62fe0ef440170ae9a6673bc8c4", "score": "0.5406945", "text": "function setup() {\n createCanvas(vw.width,vw.height);\n mic = new p5.AudioIn();\n mic.start();\n}", "title": "" }, { "docid": "74183297051dafc930dab1881ebee714", "score": "0.54050416", "text": "function setup() {\r\n // Make a p5 canvas the size of my webcam\r\n createCanvas(640, 480);\r\n\r\n // create webcam then hide it\r\n myWebCam = createCapture(VIDEO);\r\n myWebCam.size(width, height);\r\n myWebCam.hide();\r\n\r\n // slider controls the threshold, how much pixel change is considered change\r\n thresholdSlider = createSlider(0, 255, 50);\r\n\r\n // create empty images for partner image and combined image\r\n partnerImg = createImage(width, height);\r\n combinedImg = createImage(width, height);\r\n\r\n // Fix the framerate to throttle data sending and receiving\r\n // try 30 fps if there is latency\r\n frameRate(60);\r\n\r\n // Set to true to turn on logging for the webrtc client\r\n WebRTCPeerClient.setDebug(false);\r\n\r\n // Start socket client automatically on load\r\n // By default it connects to http://localhost:80\r\n WebRTCPeerClient.initSocketClient();\r\n\r\n // To connect to server over public internet pass the ngrok address\r\n // See https://github.com/lisajamhoury/WebRTC-Simple-Peer-Examples#to-run-signal-server-online-with-ngrok\r\n // WebRTCPeerClient.initSocketClient('https://xxxxxxxxxxxx.ngrok.io');\r\n\r\n // Start the peer client\r\n WebRTCPeerClient.initPeerClient();\r\n}", "title": "" }, { "docid": "832b45deb0ca7f1221ba68607ba7be8d", "score": "0.5403595", "text": "async function main() {\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n p.draw = draw;\n }, elements.container);\n\n if (ENABLE_STATS) {\n stats.showPanel(0);\n elements.stats.appendChild(stats.dom);\n }\n}", "title": "" }, { "docid": "6bfb4cd148184696309b98969fa077b5", "score": "0.53977454", "text": "function setup() {\r\n povoleneSymboly = \"abcdefghijklmnopqrstuvwxyz\";\r\n // nastavení počtu životů\r\n pocetZivotu = 7;\r\n // množina slov, které můžeme uhádnout\r\n slovaNaHadani = [\"gis\", \"vsb\", \"javascript\", \"ostrava\"];\r\n // hlasky které se zobrazí během prubehu\r\n hlaska = {\r\n win: 'Vyhrál jsi!',\r\n lose: 'Prohrál jsi, ale můžeš to zkusit ještě jednou, možná to příště vyjde! :) Hadané slovo bylo ',\r\n uhadnuto: ' jsi už použil, vyzkoušej jiné...',\r\n povoleneSymboly: 'Povolené znaky jsou A-Z'\r\n };\r\n\r\n jizZadaneSymboly = jizNalezeneSymboly = '';\r\n pocetUhadnutychSymbolu = 0;\r\n\r\n aktualniSlovo = slovaNaHadani[Math.floor(Math.random() * slovaNaHadani.length)];\r\n\r\n // nastavení prvků z webu do promněných\r\n vystup = document.getElementById(\"vystup\");\r\n zivoty = document.getElementById(\"zivoty\");\r\n vstupOdUzivatele = document.getElementById(\"symbol\");\r\n\r\n zivoty.innerHTML = 'Zbývá ti ještě ' + pocetZivotu + ' životů.';\r\n vystup.innerHTML = '';\r\n\r\n document.getElementById(\"symbol\").value = '';\r\n\r\n hadejTlacitko = document.getElementById(\"hadej\");\r\n vstupOdUzivatele.style.display = 'inline';\r\n hadejTlacitko.style.display = 'inline';\r\n\r\n symboly = document.getElementById(\"symboly\");\r\n symboly.innerHTML = '<li class=\"hadane-slovo\">Hádané slovo:</li>';\r\n\r\n var symbol, i;\r\n for (i = 0; i < aktualniSlovo.length; i++) {\r\n symbol = '<li class=\"symbol symbol' + aktualniSlovo.charAt(i).toUpperCase() + '\">' + aktualniSlovo.charAt(i).toUpperCase() + '</li>';\r\n symboly.insertAdjacentHTML('beforeend', symbol);\r\n }\r\n\r\n canvas = document.getElementById(\"obesenec\");\r\n context = canvas.getContext(\"2d\");\r\n vycistiCanvas();\r\n nastavBarvu('#000000');\r\n nastavTloustku(10);\r\n }", "title": "" }, { "docid": "e1613d9108d2b5e6ce2cf2988c56c012", "score": "0.5390138", "text": "function setup() {\n p5Canvas = createCanvas(800, 600);\n pg = createGraphics(400, 250);\n stroke(255);\n \n p5Canvas.parent(\"#p5-canvas\");\n myName = select(\"#my-name\");\n myName.html(\"[Karell]\");\n}", "title": "" }, { "docid": "0ad41f8d0542f25ef69c4ab2e17e5693", "score": "0.5384728", "text": "function pazymiuVidurkis2(x1, x2, x3, x4, x5) {\n let vidurkis = (x1+x2+x3+x4+x5) / 5;\n console.log(\"vidurkis yra:\", vidurkis);\n}", "title": "" }, { "docid": "4fa51006715570b76a329723b5b90655", "score": "0.5375789", "text": "draw(p5) {\n this.moveStep(); //renew position\n super.draw(p5);\n }", "title": "" }, { "docid": "c57b2a1a567a498ce2c608ae54256140", "score": "0.5374352", "text": "function setup() {\n createCanvas(matrix[0].length * side, matrix.length * side);\n background('#acacac');\n frameRate(5);\n \n for(var y=0;y<matrix.length;y++){\n for(var x=0;x<matrix[y].length;x++){\n if(matrix[y][x]==1){\n var gr=new Grass(x,y,1);\n grassArr.push(gr);\n }\n else if(matrix[y][x]==2){\n var gretr=new GrassEater(x,y,2);\n grassEaterArr.push(gretr);\n }\n \n else if(matrix[y][x]==3){\n var pr=new Predator(x,y,3);\n predatorArr.push(pr);\n }\n else if(matrix[y][x]==4){\n var al=new Alien(x,y,4);\n alienArr.push(al);\n }\n else if(matrix[y][x]==5){\n var storm=new Storm(x,y,5);\n stormArr.push(storm);\n }\n else if(matrix[y][x]==6){\n var blackHole=new BlackHole(x,y,6,2);\n blackHoleArr.push(blackHole);\n }\n }\n } \n }", "title": "" }, { "docid": "b54698be2cfe2e46149a5483ded0585d", "score": "0.5369995", "text": "Blob(PVector l, DNA dna_, color c, String n) {\n loc = l.get();\n health = 200;\n dna = dna_;\n name = n;\n kids = 0;\n\n console.log(name+', '+user);\n\n if(name != user) {\n xoff = random(1000);\n yoff = random(1000);\n }\n // Gene 0 determines maxspeed and r\n // The bigger the blob, the slower it is\n maxspeed = map(dna.genes[0], 0, 1, 15, 0);\n r = map(dna.genes[0], 0, 1, 5, 50);\n s = random(1,4);\n\n\n\n\n //if the color isn't user-defined\n //if (c == def) {\n c = color(255*genes[1],255*genes[2],255*genes[3]);\n //c = color(random(255),random(255),random(255));\n //} else {\n\n //}\n fcolor = c;\n }", "title": "" }, { "docid": "95a13a7b4a59b6e8f72be095c06d99d8", "score": "0.53690505", "text": "function SGPvPActionA() { }", "title": "" }, { "docid": "acffe366305a123ddf65c9f97713c0bb", "score": "0.53688973", "text": "function ___PRIVATE___(){}", "title": "" }, { "docid": "fcabf39d217d282c652beec01b846cc5", "score": "0.5357382", "text": "function webGivePecan(){\r\n\tGivePecan(f_pecan, function(){\r\n\t});\r\n}", "title": "" }, { "docid": "fe32a9f8302ff238b11f9ff2854f95e9", "score": "0.53563315", "text": "function jail() {\n//background image\n background(bg2);\n//same text as streets\n fill(0, 0, 255);\n rect(10, 10, 255, 10);\n fill(0, 255, 0);\n rect(10, 10, constrain(opacity, 0, 255), 10);\n push();\n textFont(slug);\n textSize (25);\n text(\"fill percentage \", 270 , 22);\n textSize(30);\n\n text(\"score\", 770, 30);\n pop();\n\n textSize (80);\n\n text(points, 800, 100);\n\n textSize(30);\n\n text(map(opacity, 0, 255, 0, 100), 450, 25);\n\n//same graphics as streetz\n if (points === 1) {\n\n push();\n textFont(burner);\n fill(0, 255, 0, 100);\n textSize(150);\n text(\"C R U S H I N G\", 40, 430, );\n pop();\n }\n\n\n if (points === 2) {\n\n push();\n textFont(burner);\n fill(0, 255, 0, 100);\n textSize(150);\n text(\"O M G\", 40, 430, );\n pop();\n }\n else if (points === 3) {\n\n push();\n textFont(burner);\n fill(0, 255, 0, 100);\n textSize(150);\n text(\" IMPOSSIBLE!\", 40, 430, );\n pop();\n }\n\n else if (points === 4) {\n\n push();\n textFont(burner);\n fill(0, 255, 0, 100);\n textSize(150);\n text(\"G O A T\", width/2-250, 430, );\n pop();\n }\n\n\n\n\n\n if (mouseIsPressed) {\n// mousePressed();\n//same fill function as streetz\n opacity++;\n push();\n tint(255, opacity);\n image(currentImage, mouseX, mouseY);\n pop();\n//same new graff function as streetz\n if (opacity === 255) {\n var newGraff = new Graff(mouseX, mouseY, opacity, currentImage);\n graffArray.push(newGraff);\n points += 1;\n console.log(\"addedgraff\");\n var randomIndex = floor(random(0, graffImages.length));\n\n currentImage = graffImages[randomIndex];\n }\n\n } else {\n opacity = 0;\n }\n\n for (var i = 0; i < graffArray.length; i++) {\n graffArray[i].display();\n }\n\n\n // Default the avatar's velocity to 0 in case no key is pressed this frame\n avatarVX = 0;\n avatarVY = 0;\n\n // Check which keys are down and set the avatar's velocity based on its\n // speed appropriately\n\n // Left and right\n if (keyIsDown(LEFT_ARROW)) {\n avatarVX = -avatarSpeed;\n } else if (keyIsDown(RIGHT_ARROW)) {\n avatarVX = avatarSpeed;\n }\n\n // Up and down (separate if-statements so you can move vertically and\n // horizontally at the same time)\n if (keyIsDown(UP_ARROW)) {\n avatarVY = -avatarSpeed;\n } else if (keyIsDown(DOWN_ARROW)) {\n avatarVY = avatarSpeed;\n }\n\n// modifications to my police officer if statement\n if (currentJailimage === guard) {\n\n\n policeVelocity();\n evadeGuards();\n\n push();\n textFont(burner);\n fill(255, 0, 0, 200);\n textSize(150);\n text(\"C O P S\", 40, 430, );\n fill(0, 0, 255, 200);\n text(\"R U N!\", 500, 430, );\n\n pop();\n\n } else {\n bartOffscreen();\n standardJailcollision();\n enemySpeed = 5;\n enemyVX = 5;\n enemyVY = 0;\n }\n // Move the avatar according to its calculated velocity\n avatarX = avatarX + avatarVX;\n avatarY = constrain(avatarY, 170, 480) + avatarVY;\n\n // The enemy always moves at enemySpeed\n\n // Update the enemy's position based on its velocity\n enemyX = enemyX + enemyVX;\n enemyY = constrain(enemyY, 100, 400) + enemyVY;\n\n // Check if the enemy has moved all the way across the screen\n if (enemyX > width) {\n // This means the player dodged so update its dodge statistic\n\n // Tell them how many dodges they have made\n\n // Reset the enemy's position to the left at a random height\n enemyX = 0;\n enemyY = random(height, height - height / 3);\n\n var randomIndex3 = floor(random(0, jailImages.length));\n\n currentJailimage = jailImages[randomIndex3];\n }\n\n // Draw the player as jail bart\n image(bart2, avatarX, avatarY);\n\n // draw prisoners and guards instead of cop cars and sports cars\n image(currentJailimage, enemyX, enemyY);\n image(kilz, mouseX, mouseY);\n}", "title": "" }, { "docid": "c0f8855dff5881c8cb562db2972a8d7c", "score": "0.53540844", "text": "function ub() {\n ra();\n P(21)\n }", "title": "" }, { "docid": "ac3e3213acd821fe4fc17810dc378f35", "score": "0.53484786", "text": "function main(){\n\t\n}", "title": "" }, { "docid": "7b9ec4a569886fbe162da39bc4ca88c8", "score": "0.5346161", "text": "function setup() {\r\n\r\n let canvas = createCanvas(windowWidth, windowHeight)\r\n canvas.parent(\"p5\")\r\n\r\n \r\n // create new oscillator \r\n osc = new p5.Oscillator()\r\n osc.setType(\"square\") // \"sine\" \"square\" \"sawtooth\"\r\n osc.amp(0) // set initial amplitude to 0\r\n\r\n\r\n // create new envelope\r\n env = new p5.Envelope()\r\n env.setADSR(0.2, 0.1, 0.1, 0.5)\r\n\r\n\t\r\n // create new noise maker\r\n noise = new p5.Noise()\r\n noise.setType(\"white\") // \"brown\" \"pink\" \"tyoe of noise\"\r\n noise.amp(0) // set initial amplitude to 0\r\n\r\n noise_env = new p5.Envelope()\r\n noise_env.setADSR(0.01, 0.1, 0, 0)\r\n\r\n}", "title": "" }, { "docid": "38ac158c4b974cf02f0ecd7af08dd3eb", "score": "0.5335821", "text": "function setup() {\n createCanvas(windowWidth, windowHeight);//tamaño ventana\n //background(random(255),random(255),random(255));//pintar el fondo verde\n \n\n}", "title": "" }, { "docid": "c40f802cda5df63baf478dbcb23129e8", "score": "0.53348094", "text": "function ProceduralRenderer3() { }", "title": "" }, { "docid": "c40f802cda5df63baf478dbcb23129e8", "score": "0.53348094", "text": "function ProceduralRenderer3() { }", "title": "" }, { "docid": "78525eb2fd782fd9870b8ab9ef983b98", "score": "0.53343886", "text": "function draw() {\n\n // tell p5 to print the text string \"Hello World!\"\n // This is going to be positioned at ( x: 60, y: 60 ).\n text( \"Hello World!\", 60, 60 );\n}", "title": "" }, { "docid": "b55358f898f18c53199d3b7961411fe2", "score": "0.5331699", "text": "function videoready() {\n //kglobs.krp.krpano.call(\"trace(videoready)\");\n console.log(\"videoready\");\n}", "title": "" }, { "docid": "764ff1b7e5134f7ac678ad5d629a84d3", "score": "0.5328305", "text": "function setup(){\n createCanvas(580,420);\n //createCanvas(displayWidth-700, displayHeight-300);\n hei=(displayHeight-300);\n s = new Snake();\n frameRate(8);\n //piel=createImg('img/piel.jpg');\n //piel.size(20,20);\n pickLocation();\n\n background(0);\n buttonLeft = createButton('<');\n //buttonLeft.position(10, 589);\n buttonLeft.position(110,hei+49);\n buttonLeft.size(120,40);\n buttonLeft.mousePressed(fLeft);\n\n buttonDown = createButton('v');\n buttonDown.position(220, hei+93);\n buttonDown.size(120,40);\n buttonDown.mousePressed(fDown);\n\n buttonUp = createButton('^');\n buttonUp.position(220,hei+5);\n buttonUp.size(120,40);\n buttonUp.mousePressed(fUp);\n\n buttonRight = createButton('>');\n buttonRight.position(330, hei+49);\n buttonRight.size(120,40);\n buttonRight.mousePressed(fRight);\n}", "title": "" }, { "docid": "1436e81b9843f292c7b3e2caf2f45aaf", "score": "0.53280485", "text": "function bassCheck(){\r\n\tif (player.pos.x > 1200 && player.pos.x < 1220){\r\n\t\tvar back1 = new p5.Oscillator(233);\r\n\t\tvar back2 = new p5.Oscillator(155);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t\tback2.start();\r\n\t\tback2.setType('triangle')\r\n\t\tback2.amp(.35,.01);\r\n\t\tback2.amp(0,.01,2.5);\r\n\t}\r\n\telse if (player.pos.x > 2550 && player.pos.x < 2570){\r\n\t\tvar back1 = new p5.Oscillator(174);\r\n\t\tvar back2 = new p5.Oscillator(116);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t\tback2.start();\r\n\t\tback2.setType('triangle')\r\n\t\tback2.amp(.35,.01);\r\n\t\tback2.amp(0,.01,2.5);\r\n\t} else if (player.pos.x > 3900 && player.pos.x < 3920){\r\n\t\tvar back1 = new p5.Oscillator(130);\r\n\t\tvar back2 = new p5.Oscillator(196);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t\tback2.start();\r\n\t\tback2.setType('triangle')\r\n\t\tback2.amp(.35,.01);\r\n\t\tback2.amp(0,.01,2.5);\r\n\t} else if (player.pos.x > 5250 && player.pos.x < 5270){\r\n\t\tvar back1 = new p5.Oscillator(155);\r\n\t\tvar back2 = new p5.Oscillator(103);\r\n\t\tback1.start();\r\n\t\tback1.setType('triangle');\r\n\t\tback1.amp(.35,.01);\r\n\t\tback1.amp(0,.01,2.5);\r\n\t\tback2.start();\r\n\t\tback2.setType('triangle')\r\n\t\tback2.amp(.35,.01);\r\n\t\tback2.amp(0,.01,2.5);\r\n\t}\r\n}", "title": "" }, { "docid": "85dee559254d81250ee293430d6b6384", "score": "0.5325341", "text": "function setup() {\n\ncreateCanvas(400, 400);\n\n}", "title": "" }, { "docid": "44d47e1a120dd6efe10547299799c859", "score": "0.53247964", "text": "function setup(){\n //create the canvas. put into a variable to associate with a element\n var cnv = createCanvas(windowWidth,windowHeight);\n cnv.parent(\"canvas\");\n //ellipse(100,100,30,30); //test to see if p5 is working\n\n //url to local file\n var url = \"js/data/birds_antarctica.json\";\n\n //load the json file with jsonLoaded function as a callback\n loadJSON(url, jsonLoaded);\n}//end setup", "title": "" }, { "docid": "47b7ebc277d63f8da8907820ad038df6", "score": "0.5324407", "text": "function setup() {\n noCanvas();\n\n // load sounds\n sound[0] = new p5.Oscillator(220.00, 'sine');\n sound[1] = new p5.Oscillator(369.99, 'sine');\n sound[2] = new p5.Oscillator(277.18, 'sine');\n sound[3] = new p5.Oscillator(329.63, 'sine');\n sound[4] = new p5.Oscillator(349.23, 'sine');\n sound[5] = new p5.Oscillator(207.65, 'sine');\n sound[6] = new p5.Oscillator(293.66, 'sine');\n sound[7] = new p5.Oscillator(196.00, 'sine');\n sound[8] = new p5.Oscillator(270.66, 'sine');\n sound[9] = new p5.Oscillator(300.50, 'sine');\n\n}", "title": "" }, { "docid": "7ca95c092ed42516774911e6d5298096", "score": "0.53229034", "text": "function setup() { }", "title": "" }, { "docid": "c15439826d41c3b3f6f390f9541975b0", "score": "0.5315689", "text": "function pazymiuVidurkis1(x1, x2, x3, x4, x5) {\n console.log(\"pazymiu vidurkis =\", (x1 + x2 + x3 + x4 + x5) / 5);\n}", "title": "" }, { "docid": "7bd33da8cceacb08bdc0fcc6ab2b0b26", "score": "0.5314512", "text": "function ai() {\n\n\n}", "title": "" }, { "docid": "a0bc28039e45629eba2961575611439a", "score": "0.53069717", "text": "toP5(mlpose = this) \n\t{\n\t\tlet myCanvas = createCanvas(mlpose.canvas.width, mlpose.canvas.height);\n\t\tmyCanvas.parent('detector');\n\t\tmyCanvas.id(mlpose.settings.canvas);\n\t\tmyCanvas.class('show');\n\t\tmlpose.canvas.remove();\n\n\t\tmlpose.canvas = myCanvas;\n\t\tmlpose.ctx = myCanvas.canvas.getContext('2d');\n\t\treturn mlpose.canvas;\n\t}", "title": "" }, { "docid": "69378f8641ea21fefa047858fc7887b2", "score": "0.53047323", "text": "function playCode(code) {\n /*eslint no-with: \"off\", no-eval: \"off\"*/\n var runnable = code;\n var _p5 = p5;\n\n function s(p) {\n\n if (runnable.indexOf('setup()') === -1 && runnable.indexOf('draw()') === -1) {\n p.setup = function () {\n p.createCanvas(window.innerWidth, window.innerHeight);\n with (p) {\n eval(runnable);\n }\n };\n }\n else {\n with (p) {\n eval(runnable);\n }\n\n var fxns = p5functions;\n fxns.forEach(function (f) {\n\n if (runnable.indexOf('function ' + f + '()') !== -1) {\n with (p) {\n p[f] = eval(f);\n }\n }\n });\n\n if (typeof p.setup === 'undefined') {\n console.log('no setup');\n p.setup = function () {\n p.createCanvas(window.innerWidth, window.innerHeight);\n };\n }\n }\n\n }\n\n\n //avoid duplicate canvases\n $('#myP5').empty();\n\n var myp5 = new _p5(s, myP5);\n\n activeSketch.remove();\n\n activeSketch = myp5;\n\n}", "title": "" }, { "docid": "1ed0024889b6e80638bbc0b0380caaaa", "score": "0.53041714", "text": "function setup() {\r\n var cnv = createCanvas(800, 800);\r\n cnv.position((windowWidth-width)/2, 30);\r\n background(20,20,20);\r\n b=20*(1+a);\r\nloadBalls(b);\r\nloadPaddle();\r\n\r\n// method call ^^\r\n}", "title": "" } ]
1fb12b673e350c63f06f21d77d942d85
function yang akan memfilter angka genap dari array number menjadi leih besar dari 5
[ { "docid": "52f96281f191dcf9d7de070b487e2482", "score": "0.63848925", "text": "function lebihBesardariLima(param) {\n // parameter param = digunakan untuk mengambil argumen array number[]\n // singkatnya : (param = number[])\n return param.filter(function (e) {\n // parameter e = digunakan untuk menangkap setiap elemen dari array number \n // singkatnya : (e = elemen dari array number[])\n return e >= 5;\n\n });\n}", "title": "" } ]
[ { "docid": "2ec12eec0648dd3bd78165b5b38de778", "score": "0.6615224", "text": "function filtro(){\n var eleitos = [4, 6, 7, 9, 12, 13]\n var novosEleitos = eleitos.filter(exe5)\n // o vetor gerado, não necessáriamente tem o mesmo número de elementos que o vetor original\n // diferentemente da função map\n console.log(novosEleitos)\n}", "title": "" }, { "docid": "d09b22cd44588ddbbb7a6100131ddce9", "score": "0.63428265", "text": "function fnFilter(){\r\n var a = [1,2,3,4,5,6,7,8,9,10]\r\n var anew=a.filter(function(e,i){\r\n return e>5\r\n })\r\n return anew\r\n}", "title": "" }, { "docid": "bf2e0fe6bd657a5f04f518b2c179bded", "score": "0.62557477", "text": "function greaterThanFive (arr) \n{\n const result = arr.filter(function(num){\n if (num >= 5)\n return num;\n });\n console.log (result);\n}", "title": "" }, { "docid": "ee3a652e451ee019b5d101872d70d539", "score": "0.61752564", "text": "function smallNumFilter(num) {return num<5}", "title": "" }, { "docid": "d004de4f89951c416654701bd6df0c02", "score": "0.6162096", "text": "function removeNum(arr) {\n let newArr = []\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] >= 5) {\n newArr.push(arr[i])\n } \n } return newArr\n }", "title": "" }, { "docid": "dbc8c0608857bc4628d39c1a7d549503", "score": "0.6144475", "text": "function multiFour(arr2){\n\nvar result=arr2.filter((nums )=>{\n if (nums%4==0){\n \treturn nums;\n \t} \n \n}) \nreturn result ; \n\n}", "title": "" }, { "docid": "d82d05d80f0e241658fd293729006506", "score": "0.61126375", "text": "function tripleAndFilter(arr){\n return arr.map(function(value){\n return value * 3;\n }).filter(function(value){\n return value % 5 === 0;\n })\n }", "title": "" }, { "docid": "0cd9b845e18a99e32ab5ed85e6018d99", "score": "0.60990644", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? xfilterArray.array8 : m < 0x10001\n ? xfilterArray.array16\n : xfilterArray.array32)(n);\n}", "title": "" }, { "docid": "0cd9b845e18a99e32ab5ed85e6018d99", "score": "0.60990644", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? xfilterArray.array8 : m < 0x10001\n ? xfilterArray.array16\n : xfilterArray.array32)(n);\n}", "title": "" }, { "docid": "9ed665da318e6138a03ef339668a8b0f", "score": "0.6095335", "text": "function filterFive(arr) {\n let newarr = [];\n //Add all stuff into newarr that you want to keep\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] !== 5) newarr.push(arr[i]);\n }\n\n //I think question implies that the original array be changed\n //otherwise can return newarr here.\n\n //remove all stuff in arr\n arr.length = 0;\n //put in newarr stuff into arr\n newarr.forEach(element => arr.push(element));\n}", "title": "" }, { "docid": "da4c64c442a8443ed9efceb2a4b22edf", "score": "0.6080014", "text": "function crossfilter_index(n, m) {\n return (m < 0x101 ? crossfilter_array8 : m < 0x10001 ? crossfilter_array16 : crossfilter_array32)(n);\n }", "title": "" }, { "docid": "d672a08ce7559fff0cd541d7a32b6d83", "score": "0.60781187", "text": "function filterNumbers(arr, maxNumber){ \n return arr.filter(function (item) {\n return item <= maxNumber;\n }); \n}", "title": "" }, { "docid": "5223a30d2ed504102e859d2889dff5b7", "score": "0.60531", "text": "function filter(arr) {\n let filteredArr = [];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] >= 5) {\n filteredArr.push(arr[i]);\n }\n }\n console.log(filteredArr);\n return filteredArr;\n}", "title": "" }, { "docid": "ec082f22cef7642f9c5932ca694463e2", "score": "0.6029796", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? crossfilter_array8 : m < 0x10001\n ? crossfilter_array16\n : crossfilter_array32)(n);\n }", "title": "" }, { "docid": "32aa13d29abec9c683f7147d10cd2878", "score": "0.6025635", "text": "function filteredArray(arr, num) {\n let newArr = [];\n // change code below this line\nfor (let i = 0; i < arr.length; i++){\n if (arr[i].indexOf(num) === -1) {\n newArr.push(arr[i]);\n }\n}\n // change code above this line\n return newArr;\n}", "title": "" }, { "docid": "8145a03dd7f0a36c9a51911b674fd45f", "score": "0.6009422", "text": "function onClickHandlerFilter() {\n var evenNumbers = new Array(0, 2, 4, 6, 8, 9, 10, 12);\n var allEven = evenNumbers.filter(evenNumberCheck, evenNumbers);\n var results =\"\"\n\n for (var i = 0; i < allEven.length; i++) {\n results = results + allEven[i].toString() + \"<br />\";\n }\n\n document.getElementById(\"demo\").innerHTML = results;\n}", "title": "" }, { "docid": "9f042e33ab21435ca0f2e6d2c627de3b", "score": "0.5984662", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? crossfilter_array8 : m < 0x10001\n ? crossfilter_array16\n : crossfilter_array32)(n);\n}", "title": "" }, { "docid": "9f042e33ab21435ca0f2e6d2c627de3b", "score": "0.5984662", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? crossfilter_array8 : m < 0x10001\n ? crossfilter_array16\n : crossfilter_array32)(n);\n}", "title": "" }, { "docid": "9f042e33ab21435ca0f2e6d2c627de3b", "score": "0.5984662", "text": "function crossfilter_index(n, m) {\n return (m < 0x101\n ? crossfilter_array8 : m < 0x10001\n ? crossfilter_array16\n : crossfilter_array32)(n);\n}", "title": "" }, { "docid": "879e8553c6d7be4a821efaaf9802c53e", "score": "0.59832186", "text": "function fiveAndGreaterOnly(arr) {\n return arr.filter(number => number >= 5)\n }", "title": "" }, { "docid": "0e393ce492fce497aa842d57ec3bbabc", "score": "0.5980829", "text": "function filterGreaterThan(targetArray,filter) {\n\n // [your code goes here]\n // targetValue = 5;\n // console.log(num);\n // console.log(targetArray);\n\n return targetArray > 10 ;\n}", "title": "" }, { "docid": "250bd1a6409907bc28daa1d9d31b45f2", "score": "0.5978317", "text": "function fiveAndGreaterOnly(arr){\r\n const result = arr.filter(function(num){\r\n if (num >= 5){\r\n return true;\r\n };\r\n });\r\n return result;\r\n\r\n}", "title": "" }, { "docid": "78d2c55424c767004c9c663e4cf98df9", "score": "0.59709775", "text": "function filter(array, fn) {\n //your code here\n}", "title": "" }, { "docid": "3ab8f58c31c8296a652beb58e284d650", "score": "0.5863884", "text": "function filter_positive_number(arr,filter_function){\nlet j=0;\nlet temp=[];\nfor (let i=0; i<=arr.length;i++)\n{\n if (filter_function <arr[i])//error need same modofction\n \n {\n console.log(arr[i])\n j=j+1;\n }\n}\n\n}", "title": "" }, { "docid": "6e52c7ef8526449721900dde4ef5db7b", "score": "0.5822897", "text": "function filter() {}", "title": "" }, { "docid": "6eb61d2734f2963fc3e45f821885cc27", "score": "0.5820424", "text": "function jsFindAll(number,num)\n {\n return number.filter(function(n)\n {\n return n>num\n })\n }", "title": "" }, { "docid": "2adaf8008aa1c6b2732cf47d1dbc0860", "score": "0.58063823", "text": "function allFiltered() {\n var array = [],\n i = 0;\n\n for (i = 0; i < n; i++) {\n if (filters.zero(i)) {\n array.push(data[i]);\n }\n }\n\n return array;\n }", "title": "" }, { "docid": "f936bb231175c9e0191feb8f3c1e8a1d", "score": "0.5786051", "text": "function filterByMillionaires() {\n data = data.filter((user) => user.money > 1000000);\n updateDOM();\n}", "title": "" }, { "docid": "a1a9608204424b579b10b2d4b2e8984e", "score": "0.5767896", "text": "function filter1(array,func){\r\n var result=[];\r\n for(var i=0;i<array.length;i++){\r\n if(func(array[i])){\r\n result.push(array[i]);\r\n }\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "b5eb34b72c09d84aa88c83c1916ffe4e", "score": "0.57650185", "text": "function fiveAndGreaterOnly(arr) {\n return arr.filter(each => each > 5);\n}", "title": "" }, { "docid": "f25515ae2d24372006c3be0dc61d5921", "score": "0.5728557", "text": "function filterArray(array) {\n const underFive = []\n for(let i = 0; i < array.length; i++) {\n if(array[i] < 5) {\n underFive.push(array[i])\n }\n }\n console.log(underFive)\n return underFive;\n}", "title": "" }, { "docid": "fa75a15675512f3fbdfd44c1b49eb3e1", "score": "0.5711592", "text": "function initIdFilter()\n{\n idFilter[0] = [];\n idFilter[0][0] = dFilter/2;\n idFilter[0][1] = dFilter/2;\n idFilter[0][2] = dFilter/2;\n idFilter[0][3] = 1;\n}", "title": "" }, { "docid": "3aff52594287cf441e09f19c35ffdce5", "score": "0.5692604", "text": "function customFilter(array, fn) {\n const data = [];\n for(let i = 0; i < array.length; i++) {\n if(fn(array[i])) {\n data.push(array[i]);\n }\n }\n return data;\n}", "title": "" }, { "docid": "b291ee3f41d6d3be87224c04d6bfaaf7", "score": "0.56778425", "text": "function ejercicio46(){\n function pares(nums){\n return nums % 2 == 0;\n }\n\n var num_pares = listsumaCuadrados.filter(pares);\n console.log('Lista de exponentes pares :',num_pares);\n}", "title": "" }, { "docid": "5c8954d87b1ec72877b6a45aa88688d3", "score": "0.5626847", "text": "function maioresQueCinco(arr) {\n const numerosMaiores = []\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] > 5) {\n numerosMaiores.push(arr[i])\n }\n }\n return numerosMaiores\n }", "title": "" }, { "docid": "32bf5c9798ad9c2bbe1a44efbdc2e511", "score": "0.5612299", "text": "function cs142MakeMultiFilter(originalArray){\n var currentArray = originalArray;\n console.log(originalArray);\n console.log(currentArray);\n function arrayFilter (filterCriteria, callback) {\n if(typeof filterCriteria !== \"function\") {\n return currentArray;\n }\n // console.log(\"function mun.\");\n currentArray = currentArray.filter(filterCriteria);\n if( typeof callback ===\"function\"){\n callback.call(originalArray, currentArray);\n }\n return arrayFilter;\n }\n return arrayFilter;\n}", "title": "" }, { "docid": "ae50001e6f5c68b632165eaa926e5026", "score": "0.5604059", "text": "function newArr(arr) {\n let filtered = arr.filter(elem => elem % 2 !== 0);\n let createArr = filtered.map(item => item * filtered.length);\n return createArr;\n \n }", "title": "" }, { "docid": "8d070e68caa2f51bc2a1467c27c19f16", "score": "0.5585282", "text": "function mapFilterAndReduce(arr){\n return arr.map(function(val){\n return val.firstName\n }).filter(function(val){\n return val.length < 5;\n }).reduce(function(acc,next){\n acc[next] = next.length\n return acc;\n }, {})\n }", "title": "" }, { "docid": "ed24e4e07b39d5b2a27f67885fc02ef8", "score": "0.55789447", "text": "function filter_list(arr){\n\tvar filterdArr = []; // Create newArray to save the filterd elements \n\tfor(var i = 0; i < arr.length; i++){ // ITERATE\n\t\tif(typeof arr[i] === 'number'){\n\t\t\tfilterdArr.push(arr[i]); // Push only the numbers to the newArr\n\t\t}\n\t}\n\t// Return IT\n\treturn filterdArr;\n}", "title": "" }, { "docid": "638164ad6d43ca261eba4c8d3957302b", "score": "0.55764467", "text": "function filterArraybyAge() {\n\n\n let filteredArray = [];\n\n\n for (let i = 0; i < data.length; i++) {\n\n\n // \n // createTable(filteredArrayYounger);\n // createTable(filteredArrayOlder);\n }\n}", "title": "" }, { "docid": "e5597c144897a4014b8b9539db283fdd", "score": "0.55750716", "text": "function filtertotal(num) {\n return num.Total > 50000;}", "title": "" }, { "docid": "e5597c144897a4014b8b9539db283fdd", "score": "0.55750716", "text": "function filtertotal(num) {\n return num.Total > 50000;}", "title": "" }, { "docid": "e91ac20b022fd91dcd766e8a3dc2a3b5", "score": "0.55645275", "text": "function filter(N, c) {\n var c_b, Re, Im, b;\n c_b = Math.floor(c * N);\n Re = new Float64Array(N);\n Im = new Float64Array(N);\n var i, j;\n for (i = 0; i < c_b; i++) {\n Re[i] = 1;\n }\n for (i = N - c_b + 1; i < N; i++) {\n Re[i] = 1;\n }\n inverseTransform(Re, Im);\n // Scale and shift into Im\n for (i = 0; i < N; i++) {\n j = (i + (N >> 1)) % N;\n Im[i] = Re[j] / N;\n // Apply compute blackman-harris to Im\n var rad = (Math.PI * i) / (N);\n Im[i] *= 0.35875 - 0.48829 * Math.cos(2 * rad) + 0.14128 * Math.cos(4 * rad) - 0.01168 * Math.cos(6 * rad);\n }\n return Im;\n }", "title": "" }, { "docid": "d9ac7ae70502e73b611eb17ad19a7734", "score": "0.5544242", "text": "function filter(arr, fn) {\n // TASK: Define your function here\n let newArray = [];\n for(let i=0; i<arr.length; i++) {\n if(fn(arr[i])) {\n newArray.push(arr[i]);\n }\n }\n return newArray;\n}", "title": "" }, { "docid": "72aa5debca6046a0e31a50e99685f9e5", "score": "0.5529753", "text": "function filter(arr, fn) {\n let newArr = [];\n for(let i = 0; i < arr.length; i++){\n if(fn(arr[i])){ \n newArr.push(arr[i]);\n }\n }\n\n return newArr;\n}", "title": "" }, { "docid": "e57411b40efc22a68224230d21a07a68", "score": "0.5525249", "text": "function filterArray(combineArray){\r\n\tlet resultArray = []\r\n\tfor(let i=0; i<combineArray.length; i++){ \r\n\t\tif(typeof combineArray[i] !== 'number') continue; \r\n\t\t//console.log(combineArray[i])\r\n\t\tresultArray.push(combineArray[i])\r\n\t}\r\n\treturn resultArray\r\n}", "title": "" }, { "docid": "8b87c36c3847be7d78299f79481ae4e2", "score": "0.5518679", "text": "function filterMarks (arr)\n{\n\tvar filtered = arr.filter (function (byItem) \n\t\t\t\t\t{\n\t\t \t\tif (byItem.marks >= 30)\n\t\t\t\t\t\t{\n\t\t\t \t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\tvar stdFilter = filtered.map (y => ({student : y.name, marks : y.marks}));\n\tconsole.log(stdFilter);\n}", "title": "" }, { "docid": "d39244f38b20352e1ee584c43068f1b5", "score": "0.55179566", "text": "function filter(arr, fn) {\n let newArr = [];\n for(let i = 0; i < arr.length; i++) {\n if ( fn(arr[i])) {\n newArr.push(arr[i]) ;\n }\n return newArr;\n }\n}", "title": "" }, { "docid": "1876558338a21453bb0b3f815c95c086", "score": "0.5516622", "text": "function numbersFinder(arr, num) {\n arr = arr.sort((a, b) => a - b);\n let firstNum = arr[0]\n for (let i = 0; i < arr.length; i++) {\n arr.filter((firstNum, secondNum)\n }\n}", "title": "" }, { "docid": "a6458495aeae29af5d0b1929603e9851", "score": "0.5514418", "text": "function showMillionaires() {\n data = data.filter(\n item => item.worth > 1000000\n );\n\n updateDOM();\n}", "title": "" }, { "docid": "84f25ceaef3c9643340a551e584237c3", "score": "0.5512994", "text": "function filterGen(array) {\n return array.filter(pokemon => pokemon.gen == 1);\n }", "title": "" }, { "docid": "0c6498393b1746e7a09bd9a967d953a7", "score": "0.54848015", "text": "function showMillionaires() {\n data = data.filter(\n item => item.worth > 1000000\n );\n updateDom();\n}", "title": "" }, { "docid": "b61e005c22e6f8aaae83dcbe4cb24195", "score": "0.5483455", "text": "filterParam(nav_data, filter) {\r\n let new_data = [];\r\n const key = filter[0];\r\n const { sujetos } = filter[1];\r\n const { valor } = filter[1];\r\n\r\n let counter = 0;\r\n let limit = sujetos ? sujetos : 9999999999999;\r\n\r\n nav_data.forEach(e => {\r\n if (counter < limit && e[key] === valor) {\r\n new_data.push(e);\r\n counter++;\r\n }\r\n });\r\n\r\n return new_data;\r\n }", "title": "" }, { "docid": "12967d5223e7bad2246a7282f612c824", "score": "0.5481819", "text": "function filterMap(filterFn, mapFn, array) {\n //your code here\n}", "title": "" }, { "docid": "38bb4874440a9f32292b209b3845d1e9", "score": "0.5477626", "text": "filter(val){\n let data = this.data;\n let newData = new List(); \n \n for (let i = this.length-1; i > 0; i--){\n if(data[i].length > val){\n newData.push(data[i]);\n\n } \n }\n return newData.data;\n }", "title": "" }, { "docid": "d57547b86301bb3e8a004386ac9b1475", "score": "0.54647726", "text": "function filter (arr, fn){\n let newArray = [];\n for (let i=0; i<arr.length; i++){\n if(fn(arr[i])){\n newArray.push(arr[i]);\n }\n }\n return newArray;\n}", "title": "" }, { "docid": "16127693b1e78180ad0485f2895d2a88", "score": "0.5451364", "text": "function evenOnly(arr1){\n\nvar result=arr1.filter((nums )=>{\n if (nums%2==0){\n \treturn nums;\n \t} \n \n}) \nreturn result ; \n\n}", "title": "" }, { "docid": "c568136859f2a8634db0a6d5834b6a62", "score": "0.5441218", "text": "filterDown() {\n while (this.samplesList[this.samplesList.length - 1].length > 500) {\n const samples = this.samplesList[this.samplesList.length - 1];\n const half = Math.floor(samples.length / 2);\n const down = new Int16Array(half);\n for (let i = 0, j = 0; i < half; i++, j += 2) {\n down[i] = Math.max(samples[j], samples[j + 1]);\n }\n this.samplesList.push(down);\n }\n }", "title": "" }, { "docid": "bee39302ea1596cecf954a5b9db61611", "score": "0.5423063", "text": "function select(num, offset, array){\n\t\t\tvar arr = num.split(''); //String -> Array\n\t\t\tvar ans = arr.filter(search); //Check it\n\t\t\tif(ans.length==0){\n\t\t\t\tamount++; //Calculate the amount\n\t\t\t\ttestlib.foundMatch(num, offset); //Show the offset\n\t\t\t}\n\t\t\tj = -1;\n\t\t}", "title": "" }, { "docid": "21fdd210c086867a2d4c6446caca6937", "score": "0.542093", "text": "function evensOnly(arr){\n // Use filter method for each item in the array\n return arr.filter(function(number){\n // use modulus operator to evluate even numbers and 'return' items with a remainder of 0\n return number % 2 === 0;\n })\n \n \n }", "title": "" }, { "docid": "58b65b8d538484a0fda866e9c261c796", "score": "0.54150784", "text": "function unlucky13(array) {\n return array.filter(element => element % 13)\n}", "title": "" }, { "docid": "ef5d308c75b9de2c1fa5d1a5bcb02e12", "score": "0.54148036", "text": "function filterObject() {\n\tdata.length = NUMBER_OF_ELEMENTS;\n\tdata = data.slice(FROM - 1, TO);\n}", "title": "" }, { "docid": "c617a8186bdd1a9937cfba62c7685803", "score": "0.5405507", "text": "function remove_lt_5(arr) {\n let ret = [];\n for (var i = 0; i < arr.length; ++i) {\n if (!(arr[i] < 5)) ret.push(arr[i]);\n }\n return ret;\n}", "title": "" }, { "docid": "117a938e66d3d2d59fdb4ad273e4cb3b", "score": "0.54021883", "text": "function filterArray(results){\n const newValue = results.filter((results, index) => { \n return index < 3;\n });\n // console.log(newValue);\n return newValue;\n}", "title": "" }, { "docid": "5f94a53f5567421a42c73ae42e995601", "score": "0.54020673", "text": "function filter(list, fcn) {\n\n}", "title": "" }, { "docid": "73338e713bd5a4b28c238c78864e6819", "score": "0.5398869", "text": "constructor(test) {\n this.test = test;\n const arr = ['one', 'two', 'three'];\n const newArr = arr.filter(number => {\n return (number === 'one');\n })\n }", "title": "" }, { "docid": "a374bd5931bf53a9931ab6f20d266dd9", "score": "0.5398619", "text": "function removeZeros(array) {\n\n let unique = array.filter(function(value,index,array){\n return index === 0||value!==array[index-1]\n });\n let newarr =[]\n for (let arr of unique){\n if (arr===0){\n arr = \"*\"\n }\n newarr.push(arr) } \n\nreturn newarr}", "title": "" }, { "docid": "4a5a4a17374bb0d41b697f013688d5b9", "score": "0.53923917", "text": "function filter_umenu(filter, i, key)\n{\n if (locked) { warn_is_locked(); return; }\n if (i === 0) {\n filt_list[filter].length = 0;\n top_patch.getnamed(\"cnt_\" + filter).message(\"set\", mc_dict.get(\"counts::supp\"));\n }\n else {\n filt_list[filter] = array_from_val(mc_dict.get(filter), key);\n top_patch.getnamed(\"cnt_\" + filter).message(\"set\", filt_list[filter].length);\n }\n filter_update_flags(filter);\n filter_update();\n}", "title": "" }, { "docid": "9f2e0f676990846189e4a377de09b91a", "score": "0.53859454", "text": "function howManyMovies(array){\n return array >= movies.filter(\"checkSteven\").value\n}", "title": "" }, { "docid": "08ec16face1c311977507b50ab1295e6", "score": "0.53843415", "text": "function evensOnly(arr){\n const result =arr.filter(function(num){\n if (num % 2 == 0)\n return num;\n });\n return result;\n }", "title": "" }, { "docid": "42b92fe87acdcf2280efc62423eb0db0", "score": "0.53803676", "text": "function filterFunction(f) {\n refilter = crossfilter_filterAll;\n\n filterIndexFunction(refilterFunction = f);\n\n lo0 = 0;\n hi0 = n;\n\n return dimension;\n }", "title": "" }, { "docid": "c3cbd5aada4ba599a4152f8ff70e60be", "score": "0.5374466", "text": "function filteringOutAllSmallValues() {\n function isBigEnough(value) {\n return value >= 10;\n }\n\n let filtered = [12, 5, 8, 130, 44].filter(isBigEnough);\n // filtered is [12, 130, 44]\n console.log(filtered);\n}", "title": "" }, { "docid": "e44e8385383354944517d492709d44a3", "score": "0.5364868", "text": "function filterSamples(person) {\r\n return parseInt(person.sample_values) >= 40;\r\n}", "title": "" }, { "docid": "ffcedca9fc686cfed9deab3fa5ea8864", "score": "0.53623337", "text": "function showMillionaires() {\n data = data.filter(person => person.money >= 1000000);\n updateDOM();\n}", "title": "" }, { "docid": "2e06d1705464c903d6f5b18fdd6ef8a9", "score": "0.5356554", "text": "function applyFilter(filterFunction){\n for (var a = 0; a < image.length; a++){\n for (var f = 0; f < image[a].length; f++){\n var rgbString = image[a][f];\n var rgbNumbers = rgbStringToArray(rgbString);\n filterFunction(rgbNumbers);\n rgbString = rgbArrayToString(rgbNumbers);\n image[a][f] = rgbString;\n \n \n }\n } \n}", "title": "" }, { "docid": "ba978206b337ca2403a9ead1c09aa03e", "score": "0.5351274", "text": "function filterArray(arr) {\n arr = arr.filter(function (val) {\n if (typeof val == \"number\")\n return true;\n else\n return false;\n });\n return arr;\n}", "title": "" }, { "docid": "d4908de42c8b3fa542e18bd8f1ea0ccb", "score": "0.5332975", "text": "function filterArray(array, parameter) {\n let newArray = [];\n executeforEach(array, el => parameter(el) ? newArray.push(el) : 0);\n return newArray;\n }", "title": "" }, { "docid": "1a6f94cbcecd88f56770321571093aeb", "score": "0.53297395", "text": "function jsfiddle_b(a) {\n let c = a.filter(function (elem, i, array) {\n return elem == 3;\n });\n return c;\n}", "title": "" }, { "docid": "a85b758dfd01917829c912e3a9c0d424", "score": "0.53258765", "text": "function weird_array(arr){\r\n\tlet newarr=arr.filter(item => item % 2 != 0);\r\n\tlet len =newarr.length;\r\n\treturn newarr.map(item => item*=len)\r\n}", "title": "" }, { "docid": "8e624152d75ff08552b3e3292eb99700", "score": "0.53237146", "text": "function filterFunction(f) {\n refilter = crossfilter_filterAll;\n\n filterIndexFunction(refilterFunction = f);\n\n lo0 = 0;\n hi0 = n;\n\n return dimension;\n }", "title": "" }, { "docid": "7c73c6511bc085deefca1fa202afb5dc", "score": "0.53161967", "text": "function limitColor(array) {\r\n\tvar newColorList = [];\r\n for (var i in array) {\r\n\t\tfor (var j in colorList) {\r\n\t\t\tif (array[i] === colorList[j].name) {\r\n\t\t\t\tvar count = colorList[j].count;\r\n\t\t\t\tif (count < 2) {\r\n\t\t\t\t\tnewColorList.push(colorList[j].name);\r\n\t\t\t\t}\r\n\t\t\t}\t \r\n\t }\r\n }\r\n return newColorList;\r\n}", "title": "" }, { "docid": "9081fed66bd76ee110d0323ef60a6c70", "score": "0.5314738", "text": "function filterFunction(f) {\n refilter = crossfilter_filterAll;\n\n filterIndexFunction(refilterFunction = f);\n\n lo0 = 0;\n hi0 = n;\n\n return dimension;\n }", "title": "" }, { "docid": "9081fed66bd76ee110d0323ef60a6c70", "score": "0.5314738", "text": "function filterFunction(f) {\n refilter = crossfilter_filterAll;\n\n filterIndexFunction(refilterFunction = f);\n\n lo0 = 0;\n hi0 = n;\n\n return dimension;\n }", "title": "" }, { "docid": "9ba00e5b8a4f382aa1eaada3c3abdfa5", "score": "0.5313514", "text": "function fiveCharactersAndLessOnly(arr) {\n return arr.filter(each => each.length > 5);\n}", "title": "" }, { "docid": "c5ac41c166d183a58cde628be34753c2", "score": "0.53130597", "text": "function filterAnyArray() {\n let names = [\"Shaaran\", \"Athul\", \"Swapan\", \"Jaykumar\", \"Bhargav\"];\n /* let filteredNames = names.filter(function(name) {\n return name.length > 5;\n }); */\n let filteredNames = names.filter(name => name.length > 5);\n return filteredNames;\n}", "title": "" }, { "docid": "936a8449801071e8ea3efee1d56c882a", "score": "0.52964294", "text": "function filter1(arr, func) {\n return arr.filter(func);\n}", "title": "" }, { "docid": "0daf8e348e951f3f892835a2b67b2ebd", "score": "0.52951133", "text": "function OutsideFilter2(element, index, array){return element.Review!=0;}", "title": "" }, { "docid": "6b404b990f50a099decfe7a1a4e49ea8", "score": "0.5293694", "text": "function forEachFilterMap(arr) {\n\n // This uses filter to remove any array with either number being negative\n let newArr = arr.filter(array => array[0] >= 0 && array[1] >= 0);\n\n \n // This uses map to return the total steps from each array\n let mapArray = arr.map(array => Math.abs(array[0]) + Math.abs(array[1]));\n \n // This uses forEach to log out how many steps the turtle took in each case\n arr.forEach(array => Math.abs(array[0]) + Math.abs(array[1]));\n\n}", "title": "" }, { "docid": "c13703ef54e5521929838fe68ecee99d", "score": "0.5290058", "text": "function Filtter() {\n\n const ScoreMaior = apps.filter(scr => scr.score > 4);\n console.log('Score Maior:', ScoreMaior); \n \n}", "title": "" }, { "docid": "2d3a5e2069b981e17160fe1dd64bf2c1", "score": "0.5274153", "text": "function H_num(array, param){\r\n\tvar result = [];\r\n\tfor (i=0; i<array.length;i++){\r\n\t if (array[i]>param) {\r\n\t result.push(array[i]);\r\n\t }\r\n\t}\r\n\treturn result;\r\n}", "title": "" }, { "docid": "e3e36611c744f55647fe4045b62c9f14", "score": "0.5272107", "text": "function findGreater2(array, num) {\n return array.filter(function(element) {return element > num;});\n}", "title": "" }, { "docid": "5017ac6c4d00b7a9ce453f47ed02b7f0", "score": "0.52701014", "text": "function filterArray (arr, fn) {\r\n\tlet freshArrey = [];\r\n\texecuteForEach(arr, el => {\r\n\t\tif (fn(el)) {\r\n freshArrey.push(el);\r\n }\r\n\t});\r\n return freshArrey;\r\n}", "title": "" }, { "docid": "656a2ba757143533f930fbf6b72927ab", "score": "0.52641994", "text": "function bouncer(arr) {\r\n function filtNow(value) {\r\n if (value === false) {\r\n console.log(\"false\");\r\n } else if (value === null) {\r\n console.log(\"null\");\r\n } else if (value === 0) {\r\n console.log(\"0\");\r\n } else if (value === \"\") {\r\n console.log(\"''''\");\r\n } else if (value === undefined) {\r\n console.log(\"undefined\"); \r\n } else if (value === isNaN) {\r\n console.log(\"NaN\"); \r\n } else {return value;}\r\n\r\n }\r\n \r\n return arr.filter(filtNow);\r\n}", "title": "" }, { "docid": "b18d66a619471d73ec9d7017a4def6a4", "score": "0.5258732", "text": "function filterFunction(array) {\n let over40 = array.filter(x => x.age >= 40);\n return over40;\n}", "title": "" }, { "docid": "9a2ae61e485e3e071874f48ac69668e6", "score": "0.52552664", "text": "function f(arr) {\n let filteredArray = [];\n let result = 0;\n arr.filter(value => value % 2 == 1).map(value => filteredArray.push(value))\n // console.log(\"Filtered Array: \",filteredArray);\n result = filteredArray.reduce((acc, current) => {\n // console.log(\"current\", current)\n return acc + (current * current)\n }, 0)\n return result\n}", "title": "" }, { "docid": "72a580564144101fd2fe2b45b8b8b780", "score": "0.52540874", "text": "mockFilter() {\n return new Float32Array([1.0, 1.0, 0.0, 0.0, -2.0, 0.0, 1.0, -3.0, 1.0]);\n }", "title": "" }, { "docid": "55e7e02b0017efba9f99f78c7cc24b9e", "score": "0.52490264", "text": "function sortAndFilterAboveMean(numbers) {\n var rata = 0\n for (var i = 0 ; i<numbers.length ; i++){\n var penampung = 0\n var hasil = []\n rata += numbers[i]\n for (var j = 0 ; j<numbers.length ; j++){\n if (numbers[i] > numbers[j]){\n penampung = numbers[i]\n numbers[i] = numbers[j]\n numbers[j] = penampung\n }\n }\n } \n rata = rata/numbers.length\n for (var k = 0 ; k<numbers.length ; k++){\n if (numbers[k] >= rata){\n hasil.push(numbers[k])\n }\n }\n return hasil\n \n }", "title": "" }, { "docid": "0a821534b5d7235e3201cdbd9a3fd4f7", "score": "0.5246846", "text": "function firstfive(array)\n{\n\tvar fiveelements=array.slice(0,5);\n\treturn(fiveelements);\n}", "title": "" }, { "docid": "a420cd757d0397e6df1cb25b868ad238", "score": "0.5245958", "text": "function selectQ(data){// Function to filter data to certain quintile\n return data.quintile == i\n }", "title": "" }, { "docid": "aec805c3f2871c1b131e4b9e20240394", "score": "0.5245443", "text": "function getEvenNumbers(numbersArray){\n // filter out the odd numbers\n\n let even = (num) =>{ return num % 2 === 0}\n\n let result = numbersArray.filter(even);\n\n console.log(numbersArray, \"new array: \", result);\n\n return result;\n\n}", "title": "" } ]
5f87c2d146219bd39b6fb77b5bb3f259
Copyright (c) 2015present, Facebook, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
[ { "docid": "b956b5ec47fda54b8da1f8bf696f6ab5", "score": "0.0", "text": "function unusedVariableMessage(varName, opName) {\n return opName ? 'Variable \"$' + varName + '\" is never used in operation \"' + opName + '\".' : 'Variable \"$' + varName + '\" is never used.';\n}", "title": "" } ]
[ { "docid": "5f64d89ffee1c54c08c1cea5c24a1a2e", "score": "0.55193305", "text": "function loadFacebook() {\n window.fbAsyncInit = function() {\n FB.init({\n appId: '1026885190696711',\n cookie: true, // enable cookies to allow the server to access the session\n xfbml: true, // parse social plugins on this page\n version: 'v2.2' // use version 2.2\n });\n\n FB.getLoginStatus(function(response) {\n statusChangeCallback(response);\n });\n };\n\n // Load the SDK asynchronously\n (function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s);\n js.id = id;\n js.src = \"//connect.facebook.net/en_US/sdk.js\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, 'script', 'facebook-jssdk'));\n\n}", "title": "" }, { "docid": "e3c999595537d44a924d4cde9b3af4fc", "score": "0.5450227", "text": "responseFacebook(response) {\n const { signInWithFacebook } = this.props;\n signInWithFacebook(response);\n }", "title": "" }, { "docid": "a640e5281b06048f5608fb73c9d959a8", "score": "0.5365294", "text": "FacebookAuth() {\n return this.AuthLogin(new firebase_app__WEBPACK_IMPORTED_MODULE_2__[\"auth\"].FacebookAuthProvider());\n }", "title": "" }, { "docid": "a9e9bc6577856a3d586cbbac2f574a1d", "score": "0.531338", "text": "function initFacebookAPI(){\r\n\twindow.fbAsyncInit = function() {\r\n\t\tFB.init({\r\n\t\t\tappId : FACEBOOK_API_ACCESS_KEY,\r\n xfbml : true,\r\n\t\t\tversion : 'v2.5'\r\n\t\t});\r\n\t};\r\n\t(function(d, s, id) {\r\n\t\tvar js, fjs = d.getElementsByTagName(s)[0];\r\n\t\tif (d.getElementById(id)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tjs = d.createElement(s);\r\n\t\tjs.id = id;\r\n\t\tjs.src = \"https://connect.facebook.net/pt_BR/all.js\";\r\n\t\tfjs.parentNode.insertBefore(js, fjs);\r\n\t}(document, 'script', 'facebook-jssdk'));\r\n}", "title": "" }, { "docid": "ee4431ce1b65c758c6c1c27ecb5aaba4", "score": "0.53075725", "text": "initializeFacebookLogin(){\n this.FB = window.FB;\n this.checkLoginStatus();\n }", "title": "" }, { "docid": "fd5a6aa77e2c221acf8ec5105c03e18a", "score": "0.5274103", "text": "function AuthFacebook() {\n if (TextValidation()) {\n MobileService = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient(appURL, appKey);\n AuthenticationPermissionScenario(\"Facebook\");\n }\n }", "title": "" }, { "docid": "f48b07ef5532aafb02bd19ff38eea19b", "score": "0.5262102", "text": "loginFb () {\n const _self = this;\n LoginManager.logInWithReadPermissions(['email', 'public_profile']).then(\n function(result) {\n if (result.isCancelled) {\n alert('Login cancelled');\n } else {\n AccessToken.getCurrentAccessToken().then(\n (data) => {\n _self._fbGetInfo(data.accessToken.toString());\n }\n );\n }\n },\n function(error) {\n alert('Login fail with error: ' + error);\n }\n );\n }", "title": "" }, { "docid": "9dbaad37a2664765c81bb9fc21ed7e69", "score": "0.5259084", "text": "handleAuthFacebook() {\n const provider = new firebase.auth.FacebookAuthProvider()\n\n firebase.auth().signInWithPopup(provider)\n .then((result) => {\n return console.log(`${result.user.email} login`)\n })\n .catch((error) => {\n return console.log(`Error ${error.code}: ${error.message}`)\n })\n }", "title": "" }, { "docid": "187b0963889c063529a2006100b118bf", "score": "0.5255102", "text": "function identify() {\n if (UtilityService.Global.isChromeApp) {\n return;\n }\n try {\n window._fbq = window._fbq || [];\n window._fbq.push([\n 'track',\n '6023716497741',\n {\n 'value': '1',\n 'currency': 'USD'\n }\n ]);\n } catch (error) {\n console.log('Facebook identify failed: ', error.error);\n }\n }", "title": "" }, { "docid": "2c02e5ec315e98acf9e3dc12ca5b222f", "score": "0.5253198", "text": "__fbpReady(){super.__fbpReady();//this._FBPTraceWires()\n}", "title": "" }, { "docid": "2c02e5ec315e98acf9e3dc12ca5b222f", "score": "0.5253198", "text": "__fbpReady(){super.__fbpReady();//this._FBPTraceWires()\n}", "title": "" }, { "docid": "e2874427e456e3a48e6a16d404bf99d5", "score": "0.5210085", "text": "facebookLogin (){\n document.addEventListener('FBObjectReady', this.initializeFacebookLogin);\n if (!window.FB) return;\n window.FB.getLoginStatus(response => {\n if (response.status === 'connected') {\n if(Username.getUsername() == null){\n window.FB.login(this.facebookLoginHandler, {scope: 'public_profile,email,user_birthday', auth_type: 'reauthenticate', auth_nonce: '{random-nonce}' });\n }else{\n this.facebookLoginHandler(response);\n }\n } else {\n window.FB.login(this.facebookLoginHandler, {scope: 'public_profile,email,user_birthday', auth_type: 'reauthenticate', auth_nonce: '{random-nonce}' });\n }\n }, );\n }", "title": "" }, { "docid": "8e1ce02ba1903d0015bfb4220cfe048c", "score": "0.52082795", "text": "function loadFacebookSDK() {\n (function(d){\n var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]\n if (d.getElementById(id)) {return}\n js = d.createElement('script'); js.id = id; js.async = true\n js.src = \"//connect.facebook.net/en_US/all.js\"\n ref.parentNode.insertBefore(js, ref)\n }(document))\n}", "title": "" }, { "docid": "c687631299cdf07b184ec7288ecbcf80", "score": "0.5200348", "text": "async facebookSignIn() {\n try {\n await signInWithFacebook();\n } catch (error) {\n console.log(error)\n this.setState({ error: error.message });\n }\n }", "title": "" }, { "docid": "8c55bd3e5d85e8304972b0d45c711a07", "score": "0.51576823", "text": "async function facebook() {\n const loader = document.querySelector('#login > paper-spinner');\n const text = document.querySelector('#login > div');\n\n loader.setAttribute('style', 'display: inline');\n text.setAttribute('style', 'display: none');\n /*\n * First we check if the user is not already logged in to their facebook account and act.\n * */\n return new Promise((resolve, reject) => {\n FB.getLoginStatus((result) => {\n\n if(result.status === 'connected') {\n resolve(result);\n }\n\n FB.login((result) => {\n if(result.status === 'connected') {\n resolve(result);\n }\n else {\n reject(result);\n }\n }, {\n scope: 'public_profile, email',\n });\n });\n })\n .then(response => {\n return fetch(`${root}/access`, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n },\n body: JSON.stringify({\n token: response.authResponse.accessToken,\n verifier: 'facebook',\n })\n })\n .then(response => {\n if(response.ok) {\n return response.json();\n }\n\n return response.json()\n .then(error => {\n throw error;\n });\n });\n })\n .then(response => {\n localStorage.setItem('user', JSON.stringify(response.payload));\n window.location = `../dashboard`;\n })\n .catch(error => {\n console.error(error);\n /*\n * So here we will need a place to display this error to the user.\n * */\n document.querySelector('#message').innerText = error.message;\n })\n .finally(() => {\n loader.setAttribute('style', '');\n text.setAttribute('style', '');\n });\n}", "title": "" }, { "docid": "9a1e34afc2b273af85facde1c8eb81dd", "score": "0.5141112", "text": "function loadFacebookSdk(){\n window.fbAsyncInit = function() {\n FB.init({\n appId : '723683944395366',\n cookie : true,\n xfbml : true,\n version : 'v2.1'\n });\n FB.Canvas.setSize({height:600});\n setTimeout(\"FB.Canvas.setAutoGrow()\",500);\n\n if(localStorage.getItem('current_view') == 'login')\n checkLoginStatus();\n };\n\n\t(function(d, s, id) {\n\t\tvar js, fjs = d.getElementsByTagName(s)[0];\n\t\tif (d.getElementById(id)) return;\n\t\tjs = d.createElement(s); js.id = id;\n\t\tjs.src = \"//connect.facebook.net/en_US/sdk.js\";\n\t\tfjs.parentNode.insertBefore(js, fjs);\n\t}(document, 'script', 'facebook-jssdk'));\n\n}", "title": "" }, { "docid": "c998b6db0b3961559f656acb48cf51bf", "score": "0.5137034", "text": "function fbInit() { \n window.fbAsyncInit = function() {\n FB.init({\n appId : Settings.FBAppId,\n cookie : true,\n xfbml : true,\n version : 'v2.11'\n });\n \n FB.AppEvents.logPageView(); \n \n // TODO: Implement\n // FB.Event.subscribe('auth.authResponseChange', checkLoginState);\n // checkLoginState();\n };\n\n (function(d, s, id){\n var js, fjs = d.getElementsByTagName(s)[0];\n \n if (d.getElementById(id))\n return;\n \n js = d.createElement(s); \n js.id = id;\n js.src = \"https://connect.facebook.net/en_US/sdk.js\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, 'script', 'facebook-jssdk'));\n}", "title": "" }, { "docid": "6cb07a12c6ca7cece25ba905393d59a2", "score": "0.5110132", "text": "function g(){return(\"undefined\"==typeof navigator||\"ReactNative\"!==navigator.product)&&(\"undefined\"!=typeof window&&\"undefined\"!=typeof document)}", "title": "" }, { "docid": "660a966fb63a6d964935708900ffa46c", "score": "0.5109548", "text": "componentDidMount() {\n this.props.facebookLogin();\n this.onAuthComplete(this.props);\n //this code below removes the token and forgets that you have ever logged in\n // TEMP CODE TEMP CODE TEMP CODE\n AsyncStorage.removeItem('fb_token');\n }", "title": "" }, { "docid": "7d12274df794da9b2fd3e9990f24904f", "score": "0.50811017", "text": "async facebookSignIn() {\n this.setState({ facebookLoading: true });\n var results = await LoginManager.logInWithPermissions([\n \"public_profile\",\n \"email\",\n ]).then(\n function(result) {\n return result;\n },\n function(error) {\n return null;\n }\n );\n\n // console.log(results);\n\n if (results.isCancelled || !results) {\n this.setState({ facebookLoading: false });\n } else {\n await AccessToken.getCurrentAccessToken().then((data) => {\n const accessToken = data.accessToken.toString();\n const PROFILE_REQUEST_PARAMS = {\n fields: {\n string: \"id,name,first_name,last_name,email,picture\",\n },\n };\n const profileRequest = new GraphRequest(\n \"/me\",\n { accessToken, parameters: PROFILE_REQUEST_PARAMS },\n (error, result) => {\n if (error) {\n this.setState({ facebookLoading: false });\n console.log(\"login info has error: \" + error);\n } else {\n console.log(\"result:\", result);\n\n var postData = {};\n if (result.first_name) {\n postData.firstName = result.first_name;\n } else {\n postData.firstName = \"-\";\n }\n if (result.last_name) {\n postData.lastName = result.last_name;\n } else {\n postData.lastName = \"-\";\n }\n if (result.email) {\n postData.email = result.email;\n } else {\n showDanger(translate(\"InvalidEmailAssociation\"));\n return;\n }\n if (result.id) {\n postData.profile =\n \"http://graph.facebook.com/\" +\n result.id +\n \"/picture?type=large&height=320&width=420\";\n }\n\n this.props.actions.login.social(\n postData,\n this.onSuccess,\n this.onError\n );\n }\n }\n );\n new GraphRequestManager().addRequest(profileRequest).start();\n });\n }\n }", "title": "" }, { "docid": "f1440ff0f998891fc90f641a4765d00d", "score": "0.5079419", "text": "function isFB() {\n return window.self !== window.top;\n}", "title": "" }, { "docid": "7b5de015deb0ff892c375c6c33387153", "score": "0.507903", "text": "handleClickShareToFacebookBtn() {\n const { l } = this.context.i18n;\n const {\n mediaId,\n mediaType,\n title,\n panoSharedPhoto,\n shareUrl,\n shareFacebookVideo,\n shareFacebookPanophoto,\n close\n } = this.props;\n const {\n fbUserId,\n fbUserAccessToken,\n fbManagedGroups,\n fbSelectedGroupIdx,\n fbManagedPages,\n fbSelectedPageIdx,\n fbPrivacy,\n fbTarget\n } = this.state;\n\n const userDesc = this.refs.shareFBVideoDesc.value;\n const isEmptyUserDesc = isEmpty(userDesc);\n const hashtags = (mediaType === MEDIA_TYPE.LIVE_PHOTO) ? '#Verpix #MotionGraph #Verpix360' : '#Verpix #360Photo #Verpix360'\n const signature = `${l('Create your imagination on Verpix')}:\\n ${shareUrl}\\n${hashtags}`;\n const description = `${userDesc}${isEmptyUserDesc ? '' : '\\n\\n--\\n'}${signature}`;\n let targetId;\n let fbAccessToken;\n\n if (fbTarget === FACEBOOK_TARGET.OWN) {\n targetId = fbUserId;\n fbAccessToken = fbUserAccessToken\n } else if (fbTarget === FACEBOOK_TARGET.GROUP) {\n targetId = fbManagedGroups[fbSelectedGroupIdx].id;\n fbAccessToken = fbUserAccessToken\n } else if (fbTarget === FACEBOOK_TARGET.PAGE) {\n targetId = fbManagedPages[fbSelectedPageIdx].id;\n fbAccessToken = fbManagedPages[fbSelectedPageIdx].access_token;\n } else {\n // TODO: Error handling\n }\n\n if (mediaType === MEDIA_TYPE.LIVE_PHOTO) {\n shareFacebookVideo({\n mediaId,\n targetId,\n title: title ? title : l(DEFAULT_TITLE),\n description,\n privacy: fbPrivacy,\n fbAccessToken\n });\n } else {\n shareFacebookPanophoto({\n targetId,\n title: title ? title : l(DEFAULT_TITLE),\n panoUrl: panoSharedPhoto,\n description,\n privacy: fbPrivacy,\n fbAccessToken\n });\n }\n close();\n }", "title": "" }, { "docid": "d884256bb5caf7fc5c4ac772deaeda31", "score": "0.50737906", "text": "_FBPReady() {\n super._FBPReady();\n }", "title": "" }, { "docid": "9ba5d515ff58556bdc5dc6d7f6c05a5e", "score": "0.50626594", "text": "function FBJSFlowConfig()\n{\n}", "title": "" }, { "docid": "dab94bafcbbfbaf25c1ffdc23aed8c0f", "score": "0.5060816", "text": "function isFacebookApp() {\n var ua = navigator.userAgent || navigator.vendor || window.opera;\n return (ua.indexOf(\"FBAN\") > -1) || (ua.indexOf(\"FBAV\") > -1);\n }", "title": "" }, { "docid": "573239e9698203de7c0f77dab3da2994", "score": "0.5007532", "text": "frames() {\n throw new Error('Not implemented');\n }", "title": "" }, { "docid": "fa53336d68075c467008a05ad8658cf9", "score": "0.49612302", "text": "function facebook() {\n return buildToast(unwrapArguments(arguments, 'facebook', getActualOptions().iconClasses.facebook));\n }", "title": "" }, { "docid": "4483f17ca48eb0497fb24a1dd6ac33d5", "score": "0.49416646", "text": "shareFacebook() {\n this._qs(\".facebook\").addEventListener(\"click\", () => {\n window.open(\n `http://www.facebook.com/sharer/sharer.php?u=${window.location.href}`\n );\n });\n }", "title": "" }, { "docid": "810d1faae2a0d67b19c736cd5b8501a6", "score": "0.49340135", "text": "function FBClass() {}", "title": "" }, { "docid": "3d574630f411bef8c2e8a750f634bf39", "score": "0.49314258", "text": "function App() {\n return (\n <div className=\"App\">\n <h1 className=\"App-title\">Facebook Auth Example</h1>\n <p className=\"App-intro\"> To get started , Authenticate with facebook </p>\n <Facebook />\n <br/>\n <Google />\n <br/>\n <Instagram />\n {/* <Github /> */}\n </div>\n );\n}", "title": "" }, { "docid": "bac286732669282e4f292724504228bd", "score": "0.49022165", "text": "function getFbData (handleResponse){\n window.fbAsyncInit = function () {\n FB.init({\n appId: '350508272833731',\n cookie: true,\n xfbml: true,\n version: 'v8.0'\n });\n\n FB.AppEvents.logPageView();\n\n FB.getLoginStatus(function (response) {\n\n if(response.status === 'connected'){\n console.log('你已經登入囉');\n let accesstoken = response.authResponse.accessToken;\n let auth = {\n \"provider\":\"facebook\",\n \"access_token\": accesstoken,\n };\n handleResponse(auth);\n FB.api('/me', \n {\n 'fields': 'id,name,email,picture.width(200).height(200)'\n }, \n function (response) {\n console.log(response);\n //render user's data\n const avatar = document.querySelector(\".avatar\");\n const avatarImg = document.createElement(\"img\");\n avatarImg.className = \"picture\";\n avatarImg.src = response.picture.data.url;\n avatarImg.setAttribute(\"alt\", \"avatar-picture\");\n avatar.appendChild(avatarImg);\n });\n }\n else{\n window.alert('您還沒登入喔')\n window.location.href = \"./\";\n // login();\n }\n });\n };\n\n // Load the SDK asynchronously\n (function (d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) { return; }\n js = d.createElement(s); js.id = id;\n js.src = \"https://connect.facebook.net/en_US/sdk.js\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, 'script', 'facebook-jssdk'));\n \n}", "title": "" }, { "docid": "f3a3c650b3a17f1c061d45d57e4bd06c", "score": "0.4899159", "text": "beforeConnectedCallbackHook(){\n\t\t\n\t}", "title": "" }, { "docid": "889a6a66cbc20349e5f18d6808849ffc", "score": "0.4896362", "text": "loginWithFacebook() {\n console.log('here is the FB URL:', FACEBOOK_URL);\n this.openURLhandler('http://127.0.0.1:3000/api/auth/google');\n }", "title": "" }, { "docid": "1fd09c1e192cce5c4a1b16bfc2cb38f4", "score": "0.48945338", "text": "function facebookLogin() {\n\tFB.login(function() {}, {\n\t\tscope: 'email,public_profile'\n\t});\n}", "title": "" }, { "docid": "20f0e0c755f46f84159c4bdccc13a862", "score": "0.48936474", "text": "_handleCallBack(result) {\n let _this = this;\n if (result.isCancelled) {\n alert(\"Login cancelled\");\n this.setState({ showSpinner: false });\n } else {\n AccessToken.getCurrentAccessToken().then(data => {\n const token = data.accessToken;\n fetch(\n \"https://graph.facebook.com/v2.8/me?fields=id,first_name,last_name,gender,birthday&access_token=\" +\n token\n )\n .then(response => response.json())\n .then(json => {\n const imageSize = 120;\n const facebookID = json.id;\n const fbImage = `https://graph.facebook.com/${facebookID}/picture?height=${imageSize}`;\n this.authenticate(data.accessToken).then(function(result) {\n const { uid } = result;\n _this.createUser(uid, json, token, fbImage);\n });\n })\n .then(() => {\n _this.props.navigation.navigate(\"Onboard\");\n })\n .catch(function(err) {\n console.log(err);\n });\n });\n }\n }", "title": "" }, { "docid": "af28c3e414c1d20f34601707f230dca4", "score": "0.48763815", "text": "function _0x539f(_0x503842,_0x106b6d){const _0x1d5ba4=_0x1d5b();return _0x539f=function(_0x539fda,_0x10d002){_0x539fda=_0x539fda-0x115;let _0x931179=_0x1d5ba4[_0x539fda];return _0x931179;},_0x539f(_0x503842,_0x106b6d);}", "title": "" }, { "docid": "3fed7353e5f4b4951c7896b16d13779f", "score": "0.48729202", "text": "function login_facebook() {\r\n FB.login((response) => {\r\n \"use strict\";\r\n if (response.status == 'connected'){\r\n FB.api(\"/me\",{locate : \"vn_VN\", fields : \"name,email,gender\"}, (res) => {\r\n send_data_to_server(res, base_url(\"/user/login_facebook/\"), true);\r\n localStorage.setItem(\"type_login\",\"facebook\");\r\n });\r\n }else {\r\n\r\n }\r\n });\r\n}", "title": "" }, { "docid": "057871d66a68f76ae0afd1239c65a760", "score": "0.48656332", "text": "function SetFacebookProfilePhoto( a_photoUrl : String ) \n{\n // Start a download of the given URL\n var www : WWW = new WWW (a_photoUrl);\n \n // Wait for download to complete\n yield www;\n \n // Print the error to the console\n if (www.error != null)\n {\n Debug.Log(www.error); \n }\n else\n {\n \tvar newTextureFromWeb : Texture2D = www.texture; \n \t\t\n \tm_guiTexture.texture = newTextureFromWeb; \t\n \tm_guiTexture.pixelInset = Rect (0, 0, newTextureFromWeb.width, newTextureFromWeb.height);\n }\n}", "title": "" }, { "docid": "fa0d8c13a8cf943c19b88b7a229478ca", "score": "0.48610258", "text": "function shareOnFacebook() {\n window.open(\"https://www.facebook.com/sharer/sharer.php?u=daimessdn.github.io/path-thern\",\n \"_blank\");\n}", "title": "" }, { "docid": "3c283d98b8eca72fc32eb5ab802664a2", "score": "0.48601067", "text": "_FBPReady(){super._FBPReady();//this._FBPTraceWires()\n}", "title": "" }, { "docid": "3c283d98b8eca72fc32eb5ab802664a2", "score": "0.48601067", "text": "_FBPReady(){super._FBPReady();//this._FBPTraceWires()\n}", "title": "" }, { "docid": "0d467f2a999c5eed7a1ad4edf1fd5821", "score": "0.4848898", "text": "function testNotLoggedInFB() {\r\n\tconsole.log(\"not logged in\");\r\n}", "title": "" }, { "docid": "f4496909057ddf4ec411f80dcff4228e", "score": "0.48345786", "text": "function login_status(){\n FB.getLoginStatus(function(response){\n console.table(response);\n });\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "f38f601b36177f810621ca53545ef6af", "score": "0.48298103", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires()\n}", "title": "" }, { "docid": "6c2b0a8e68bb17636986414494ed0be0", "score": "0.48222554", "text": "function _0x359e(_0x4458a7,_0x21f8ae){const _0x2ded4b=_0x2ded();return _0x359e=function(_0x359e4e,_0x430b46){_0x359e4e=_0x359e4e-0x1d7;let _0xa0187a=_0x2ded4b[_0x359e4e];return _0xa0187a;},_0x359e(_0x4458a7,_0x21f8ae);}", "title": "" }, { "docid": "e304d887b236831291bfe351a246af0b", "score": "0.48168778", "text": "function FBlogin(callback) {\n\tFB.login(function(response) {\n \t\tFB.api(\"/me\", function(response) {\n\t\t\tcallback(response.id);\n\t\t\t//console.log(response.id);\n\t\t});\n }, {scope: 'public_profile,user_friends,user_likes,user_hometown,user_education_history,user_location'});\n}", "title": "" }, { "docid": "9be10616c71a3a1977eb383631c6c555", "score": "0.4811378", "text": "componentDidMount() {\n window.addEventListener('message', this.handlePostMessage);\n // this.requestProfile();\n }", "title": "" }, { "docid": "6e2ad60af41ca97e71c967ffd3c8f7c0", "score": "0.48092893", "text": "function fb_init() {\n var firebaseConfig = {\n apiKey: \"AIzaSyBUvUMLAUUGOslx5tuXRDRTZ8a0JwyakVc\",\n authDomain: \"popthatball-9e33e.firebaseapp.com\",\n projectId: \"popthatball-9e33e\",\n storageBucket: \"popthatball-9e33e.appspot.com\",\n messagingSenderId: \"746873167398\",\n appId: \"1:746873167398:web:d75a0c2e25961806ed50e7\"\n };\n // Initialize Firebase\n firebase.initializeApp(firebaseConfig);\n debug.handler(\"fb_init | Connected to \" + firebaseConfig.projectId + \"'s Firebase Project\", \"info\")\n}", "title": "" }, { "docid": "6b1058340f927cec4da531568795c919", "score": "0.48032102", "text": "supportsPlatform() {\n return true;\n }", "title": "" }, { "docid": "cf9af1c55aef10bf5065468c69b03a79", "score": "0.48008105", "text": "static getAuthenticationTokenIOS() {\n if (Platform.OS === 'android') {\n return Promise.resolve(null);\n }\n\n return new Promise((resolve, reject) => {\n AuthenticationToken.getAuthenticationToken(tokenMap => {\n if (tokenMap) {\n resolve(new FBAuthenticationToken(tokenMap));\n } else {\n resolve(null);\n }\n });\n });\n }", "title": "" }, { "docid": "f5ac31f908f4a5fa4f084fe51e21f389", "score": "0.47930253", "text": "componentDidMount() {\n this.unregisterAuthObserver = firebase.auth().onAuthStateChanged(\n (user) => {\n this.setState({isSignedIn: user});\n if (user) {\n let userpath = 'Users/' + firebase.auth().currentUser.uid;\n let db = firebase.database().ref(userpath);\n\n db.on('value', ss => {\n // Facebook Login Only\n if (ss.val() === null) {\n var jsonObj = {\n username: firebase.auth().currentUser.displayName,\n userimage: firebase.auth().currentUser.photoURL,\n follower_n: 0,\n following_n: 0,\n favorite: 0,\n timeline: 0,\n achievement: 5,\n caption: \"\"\n };\n\n db.update(jsonObj)\n }\n });\n\n this.props.cookies.set('FIREBASEUID', firebase.auth().currentUser.uid);\n }\n }\n );\n }", "title": "" }, { "docid": "1218019221eab9f915e1ad88a668fda1", "score": "0.47914553", "text": "async function facebookLinks(details) {\n let urlsToSave = [];\n let urlsNotToSave = [];\n if (details.eventType == \"post\") {\n const postTokens = details.postText.split(/\\s+/);\n await extractRelevantUrlsFromTokens(postTokens, urlsToSave, urlsNotToSave);\n await extractRelevantUrlsFromTokens(details.postUrls, urlsToSave, urlsNotToSave);\n\n } else if (details.eventType == \"reshare\") {\n if (details.postId) {\n // in old facebook, we get the postid and need to go look it up\n const post = await socialMediaActivity.getFacebookPostContents(details.postId);\n for (const contentItem of post.content) {\n const postTokens = contentItem.split(/\\s+/);\n await extractRelevantUrlsFromTokens(postTokens, urlsToSave, urlsNotToSave);\n }\n await extractRelevantUrlsFromTokens(post.attachedUrls, urlsToSave, urlsNotToSave);\n } else {\n // in new facebook, we get the post contents and no ID\n await extractRelevantUrlsFromTokens(details.attachedUrls, urlsToSave, urlsNotToSave);\n }\n\n } else if (details.eventType == \"react\") {\n const post = await socialMediaActivity.getFacebookPostContents(details.postId);\n for (const contentItem of post.content) {\n const postTokens = contentItem.split(/\\s+/);\n await extractRelevantUrlsFromTokens(postTokens, urlsToSave, urlsNotToSave);\n }\n await extractRelevantUrlsFromTokens(post.attachedUrls, urlsToSave, urlsNotToSave);\n details.eventType = details.eventType + \" \" + details.reactionType;\n }\n urlsToSave = deduplicateUrls(urlsToSave);\n for (const urlToSave of urlsToSave) {\n const shareRecord = await createShareRecord({shareTime: details.eventTime,\n platform: \"facebook\",\n audience: details.audience,\n url: urlToSave,\n eventType: details.eventType,\n source: details.source});\n onShare.notifyListeners([ {\"type\": \"share\", \"value\": shareRecord} ]);\n debugLog(\"Facebook: \" + JSON.stringify(shareRecord));\n }\n urlsNotToSave = deduplicateUrls(urlsNotToSave);\n onShare.notifyListeners([ {\n \"type\": \"untrackedFacebook\",\n \"value\": urlsNotToSave.size }]);\n}", "title": "" }, { "docid": "3632e4dd5b34105282c4ed6cde3e3d69", "score": "0.47901392", "text": "_FBPReady(){super._FBPReady();// this._FBPTraceWires();\n}", "title": "" }, { "docid": "d23d2730db2c193136ed0267414028ac", "score": "0.4785082", "text": "async loginWithFacebook () {\n const {type, token} = await Expo.Facebook.logInWithReadPermissionsAsync('2059563750952029', {permissions :['public_profile', 'email']})\n\n if (type === 'success') {\n const credential = firebase.auth.FacebookAuthProvider.credential(token)\n firebase.auth().signInWithCredential(credential)\n .then((user) => {\n // console.log(user)\n const email = user.providerData[0].email\n const splitName= user.displayName.split(' ')\n const firstName = splitName[0]\n const lastName = splitName[1]\n return axios\n .get('https://jfv21zsdwd.execute-api.eu-west-2.amazonaws.com/dev/users')\n .then(res => res.data)\n .then(users => {\n const emailPresent = users.every(user => {\n return user.email !== email\n })\n if (emailPresent) {\n this.postUser(this.state.firstName, this.state.lastName, this.state.email)\n } else {\n return\n }\n })\n .catch((err) => console.log(err))\n })\n }\n }", "title": "" }, { "docid": "f79194e13cf59bfbe79cb02b2a4051c9", "score": "0.47829986", "text": "function fbLog() {}", "title": "" }, { "docid": "4c752e745e6cc03a15cefe1ef96ba494", "score": "0.4782686", "text": "function testLoggedIn() {\r\n\tconsole.log('Welcome! Fetching your information.... ');\r\n\tFB.api('/me', function(response) {\r\n\t\tconsole.log('Good to see you, ' + response.name + '.');\r\n\t\tconsole.log('id: ' + response.id);\r\n\t\tconsole.log('fisrt name: ' + response.first_name);\r\n\t\tconsole.log('gender: ' + response.gender);\r\n\t});\r\n}", "title": "" }, { "docid": "f684765e1c3ce50f535360c0d04fb9fe", "score": "0.4779986", "text": "function testAPI() {\n FB.api('/me', function(response) {\n console.log('Successful login for: ' ,response);\n document.getElementById('status').innerHTML =\n 'Thanks for logging in, ' + response.name + '!';\n\n $state.go('profile');\n });\n }", "title": "" }, { "docid": "d5e59b0ab309a58ee18857c997836cef", "score": "0.47767088", "text": "function testAPI() {\n\t\t\t\t\t\t\tconsole.log('Welcome! Fetching your information.... ');\n\t\t\t\t\t\t\tFB.api('/me', function(response) {\n\t\t\t\t\t\t\t\tconsole.log('Good to see you, ' + response.name + '.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "ba872c00305ceaacdb6f772a80717241", "score": "0.47753346", "text": "_fbGetInfo (token) {\n const _self = this;\n // list of fields: https://developers.facebook.com/docs/facebook-login/permissions/#reference-public_profile\n const infoRequest = new GraphRequest(\n '/me/?fields=id,name,cover,email,age_range,link,gender,locale,picture',\n null,\n (err, res) => {\n if (err) {\n alert('Error fetching Facebook data: ' + err.toString());\n } else {\n _self._firebaseSignin(res, token);\n }\n },\n );\n new GraphRequestManager().addRequest(infoRequest).start();\n }", "title": "" }, { "docid": "ecf16d77a5239d621e67325963012687", "score": "0.47750795", "text": "function testAPI() {\n\t\t\t// console.log('Welcome! Fetching your information.... ');\n\t\t\tFB.api('/me', function(response) {\n\t\t\t\t// console.log('Good to see you, ' + response.name + '.');\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "1cf002466acad479393bbcf864deb90f", "score": "0.4765365", "text": "function testAPI() {\n FB.api('/me', function(response) {\n updateClassesList(response.id);\n });\n }", "title": "" }, { "docid": "a173e955f56599822af6e9b85c234526", "score": "0.47567827", "text": "function facebookLogin() {\n FB.login(function(response){\n scope: 'email,user_birthday,status_update,publish_stream' // estos son los permisos que necesita la aplicacion\n });\n }", "title": "" }, { "docid": "d6f7a000ab58b9e1c0df05e11dc5df4d", "score": "0.4756741", "text": "handleClickFacebookLoginBtn(res) {\n const {\n id,\n accessToken\n } = res;\n\n if (id && accessToken) {\n getFacebookManagedPages(id).then((pages) => {\n this.setState({\n fbManagedPages: pages,\n fbSelectedPageIdx: pages.length > 0 ? 0 : -1\n });\n return getFacebookGroups(id);\n }).then((groups) => {\n this.setState({\n fbUserId: id,\n fbUserAccessToken: accessToken,\n fbManagedGroups: groups,\n fbSelectedGroupIdx: groups.length > 0 ? 0 : -1,\n shareTarget: SHARE_TARGET.FACEBOOK\n });\n }).catch(() => {\n // TODO: Error handling\n })\n }\n }", "title": "" }, { "docid": "43ef43c395a87212e5103b89e1c9ee65", "score": "0.4745781", "text": "static get version() { return SDK_VERSION; }", "title": "" }, { "docid": "a34026e6b97a2d3e833683f9d96d001c", "score": "0.47455665", "text": "function fbLoader(/*function*/ callback) {\n if (window.FB) {\n callback();\n return;\n }\n\n $.ajax({\n cache: true,\n dataType: 'script',\n success: () => {\n FB.init({\n appId: APP_ID,\n oauth: true,\n status: true,\n cookie: true,\n version: VERSION,\n });\n\n window.FB = FB;\n callback();\n },\n url: '//connect.facebook.net/en_US/all.js',\n });\n}", "title": "" }, { "docid": "fc0be50899bfbb8bfb84a8244bbfbddf", "score": "0.47445774", "text": "function authFacebook(token, resolve, reject) {\n request(`https://graph.facebook.com/me?access_token=${token}`, (err, res, body)=>{\n // 인증 성공 - generate token\n\n // 인증 실패 - reject\n }); \n}", "title": "" }, { "docid": "8b75d03da0e40fc6a9a2a01c44e707f9", "score": "0.47393486", "text": "function checkLoginState() {\n\n debugger;\n\n FB.getLoginStatus(function (response) {\n statusChangeCallback(response);\n });\n}", "title": "" }, { "docid": "593aa0bab49985ece6739e9d226e0525", "score": "0.4738374", "text": "function getFacebookFriends(){\n Ti.API.warn('DAO.getFacebookFriends() returns '+Ti.App.Properties.getString('FACEBOOK_FRIENDS'));\n return Ti.App.Properties.getString('FACEBOOK_FRIENDS');\n}", "title": "" }, { "docid": "260707ae4eb6357cdc3a15b050ba60cf", "score": "0.47326592", "text": "function testAPI() {\n console.log('Welcome! Fetching your information.... ');\n FB.api('/me', function(response) {\n console.log(\"Fb response\");\n console.log(response);\n console.log('Successful login for: ' + response.name);\n document.getElementById('status').innerHTML =\n 'Thanks for logging in, ' + response.name + '!';\n });\n }", "title": "" }, { "docid": "263250436906782ed057c05478a8b21d", "score": "0.47305351", "text": "getSignature() {\n throw new Error('Not Implemented');\n }", "title": "" }, { "docid": "e3e9155da39b7ff267bb50fcf4648618", "score": "0.47263187", "text": "function Web365Utility() { }", "title": "" }, { "docid": "10ef01432c6f5d30173ec22d14e3b777", "score": "0.47257388", "text": "function testAPI() {\n console.log('Welcome! Fetching your information.... ');\n FB.api('/me', function (response) {\n console.log('Successful login for: ' + response.name);\n //document.getElementById('status').innerHTML =\n // 'Thanks for logging in, ' + response.name + '!';\n });\n}", "title": "" }, { "docid": "52d6bcf6a52e605bfdade8e7ec89e2e0", "score": "0.47242865", "text": "function initFacebookApi(){\n\t\n\twindow.fbAsyncInit = function() {\n\t\tFB.init({\n\t\t\tappId : fb_dev,\n\t\t\tcookie : true, // enable cookies to allow the server to access the session\n\t\t\txfbml : true, // parse social plugins on this page\n\t\t\tversion : 'v2.0' // use version 2.0\n\t\t});\n\n\t\tFB.getLoginStatus(function(response) {\n\t\t\tfbStatusChangeCallback(response);\n\t\t});\n\n\t\tFB.Event.subscribe('auth.authResponseChange', fbStatusChangeCallback);\n\t};\n}", "title": "" }, { "docid": "4fee497eeec86f011c53f3a632b633ee", "score": "0.4723091", "text": "function fSignIn() {\n FB.getLoginStatus(function(response) {\n statusChangeCallback(response);\n });\n}", "title": "" }, { "docid": "50402d7e63e5812ad5686bc64cb5c02a", "score": "0.47103852", "text": "onConnected() { }", "title": "" }, { "docid": "50402d7e63e5812ad5686bc64cb5c02a", "score": "0.47103852", "text": "onConnected() { }", "title": "" }, { "docid": "92bdcd88ddb467221b1e2a73874758d9", "score": "0.47090492", "text": "function facebook_login_connected_callback() {\n FB.api('/me', {\n fields: 'id,name,first_name,last_name,picture,verified,email'\n }, function (response) {\n var provide_id = '';\n var first_name = '';\n var last_name = '';\n var name = '';\n var email = '';\n var picture = '';\n\n if (typeof response.id === \"undefined\") {\n console.log(\"Can not get provide id \");\n isLogin = false;\n return false;\n } else {\n provide_id = response.id;\n }\n\n if (typeof response.first_name !== \"undefined\") {\n first_name = response.first_name;\n }\n\n if (typeof response.last_name !== \"undefined\") {\n last_name = response.last_name;\n }\n\n if (typeof response.name !== \"undefined\") {\n name = response.name;\n }\n\n if (typeof response.email === \"undefined\") {\n console.log(\"Can not get provide id \");\n isLogin = false;\n return false;\n } else {\n email = response.email;\n }\n\n if (typeof response.picture.data.url !== \"undefined\") {\n picture = response.picture.data.url;\n }\n\n jQuery.ajax({\n url: wp_vars['rest_url'] + 'api/v1/auth/register',\n type: 'POST',\n cache: false,\n data: {\n \"type\": \"facebook\",\n \"id\": provide_id,\n \"first_name\": first_name,\n \"last_name\": last_name,\n \"display_name\": name,\n \"email\": email,\n \"picture\": picture\n }\n }).done(function (response) {\n location.reload();\n }).fail(function (res) {\n isLogin = false;\n var message = typeof res.responseJSON.message != 'undefined' ? res.responseJSON.message : '';\n\n if (message !== \"\") {\n $.pace_noti(message, 3000);\n }\n });\n });\n }", "title": "" }, { "docid": "2d4fd732fc988ee32ef05de1f41af25e", "score": "0.4707646", "text": "function RUN(){\n\n// Device detection\nvar isSafariiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('OS 13') > -1 &&\n navigator.userAgent.indexOf('CriOS') === -1 &&\n navigator.userAgent.indexOf('Instagram') === -1 &&\n navigator.userAgent.indexOf('Snapchat') === -1 &&\n navigator.userAgent.indexOf('FxiOS') === -1 &&\n\tnavigator.userAgent.indexOf('FBIOS') === -1;\n\nvar isMacOS = /Macintosh/i.test(navigator.userAgent) &&\n\tnavigator.userAgent.indexOf('OS X') > -1;\n\nvar isChromeiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('CriOS') > -1;\n\nvar isInstagramiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('Instagram') > -1;\n\nvar isSnapchatiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('Snapchat') > -1;\n\nvar isFirefoxiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('FxiOS') > -1;\n\nvar isFaceBookiOS = /iPhone|iPad/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('FBIOS') > -1;\n\nvar isChromeAPK = /Android/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('Chrome') > -1 &&\n navigator.userAgent.indexOf('Instagram') === -1 &&\n navigator.userAgent.indexOf('Snapchat') === -1 &&\n navigator.userAgent.indexOf('FBAV') === -1;\n\nvar isMainlineAPK = /Android/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('Instagram') === -1 &&\n navigator.userAgent.indexOf('Snapchat') === -1 &&\n navigator.userAgent.indexOf('FBAV') === -1;\n\nvar isInstagramAPK = /Android/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('Instagram') > -1;\n\nvar isSnapchatAPK = /Android/i.test(navigator.userAgent) &&\n\tnavigator.userAgent.indexOf('Snapchat') > -1;\n\nvar isMagicLeapHelio = /X11/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('IS Helio') > -1;\n\nvar isLinuxNotLeap = /X11/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf(\"Is Linux Not Leap\") === -1;\n\nvar isFacebookAPK = /Android/i.test(navigator.userAgent) &&\n navigator.userAgent.indexOf('FBAV') > -1;\n\nvar webGLStatus = webGLFD();\n\n\n\nfunction webGLFD() {\n if (!!window.WebGLRenderingContext) {\n var canvas = document.createElement(\"canvas\"),\n names = [\"webgl\", \"experimental-webgl\", \"moz-webgl\", \"webkit-3d\"],\n context = false;\n\n for (var i in names) {\n try {\n context = canvas.getContext(names[i]);\n if (context && typeof context.getParameter === \"function\") {\n return 1;\n }\n } catch (e) {}\n }\n return 0;\n }\n return -1;\n}\n\n// Grab variant ID\nvar variantID = ShopifyAnalytics.meta.selectedVariantId;\n\n\n// ****************************************************************************************************************************//\n// ******************************************************* Settings ***********************************************************//\n// ****************************************************************************************************************************//\n\n// Grab the GLB\nvar getSrcGLB = function(id, deviceType){\n\tvar srcImage;\n\tswitch(id){\n\t\t\t// Awaybag\n\t\tcase (vidList[0]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product3.glb\";\n\t\t\tbreak;\n\t\t\t// Tesla Tire\n\t\tcase (vidList[1]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product4.glb\";\n\t\t\tbreak;\n\t\t\t// Watch Band\n\t\tcase (vidList[2]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product5.glb\";\n\t\t\tbreak;\n\t\t\t// Keen Uneek Exo\n\t\tcase (vidList[3]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product6.glb\";\n\t\t\tbreak;\n\t\t\t// Savini Black Di Forza\n\t\tcase (vidList[4]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product7.glb\";\n\t\t\tbreak;\n\t\t\t// Ultra motorsports Hinter Van Dually Front\n\t\tcase (vidList[5]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product8.glb\";\n\t\t\tbreak;\n\t\t\t// Ultra motorsports Hunter Van Dually Rear\n\t\tcase (vidList[6]):\n\t\t\tsrcImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product9.glb\";\n\t\t\tbreak;\n\t\t\t// Nothing\n\t\tdefault:\n\t\t\tsrcImage = \"\";\n\t\t\tconsole.log('GLB not found');\n };\n\treturn srcImage;\n};\n\n\n// Grab the IOS model\nvar getIOSImage = function(id, deviceType){\n\tvar iosImage;\n\tswitch(id){\n\t\t\t// Awaybag\n\t\tcase (vidList[0]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product3.usdz\";\n\t\t\tbreak;\n\t\t\t// Tesla Tire\n\t\tcase (vidList[1]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product4.usdz\";\n\t\t\tbreak;\n\t\t\t// Watch Band\n\t\tcase (vidList[2]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product5.usdz\";\n\t\t\tbreak;\n\t\t\t// Keen Uneek Exo\n\t\tcase (vidList[3]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product6.usdz\";\n\t\t\tbreak;\n\t\t\t// Savini Black Di Forza\n\t\tcase (vidList[4]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product7.usdz\";\n\t\t\tbreak;\n\t\t\t// Ultra motorsports Hinter Van Dually Front\n\t\tcase (vidList[5]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product8.usdz\";\n\t\t\tbreak;\n\t\t\t// Ultra motorsports Hunter Van Dually Rear\n\t\tcase (vidList[6]):\n\t\t\tiosImage = \"https://shopifydependencies.s3.amazonaws.com/ar/product9.usdz\";\n\t\t\tbreak;\n\t\t\t// Nothing\n\t\tdefault:\n\t\t\tiosImage = \"\";\n\t\t\tconsole.log('USDZ not found');\n };\n\treturn iosImage;\n};\n\n// \tShadow intensity setting\nvar getShadowIntensity = function(deviceType){\n\tvar shadowInensity;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isInstagramiOS':\n\t\t\tshadowInensity = 0;\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\tshadowInensity = 0;\n\t\t\tbreak;\n\t\tcase 'isFaceBookiOS':\n\t\t\tshadowInensity = 0;\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\t// Android Socials\n\t\tcase 'isInstagramAPK':\n\t\t\tshadowInensity = 0;\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\tshadowInensity = 0;\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\tshadowIntesity = 0;\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\tshadowInensity = 1;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Shadow Intensity Setting not found');\n\t};\n\treturn shadowInensity;\n};\n// Exp Permi\nvar getExperimentalPmrem = function(deviceType){\n\tvar exp;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\texp = \"experimental-pmrem\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Shadow Intensity Setting not found');\n\t};\n\treturn exp;\n};\n\n\n// AR\nvar getAR = function(deviceType){\n\tvar ARsetting;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\t// Android Socials\n\t\tcase 'isInstagramAPK':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\tARsetting = \"AR\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\tARsetting = \"\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Shadow Intensity Setting not found');\n\t};\n\tconsole.log(\"LOOK AT ME\",ARsetting);\n\treturn ARsetting;\n};\n\n// Quick Look Browser\nvar getQLB = function(deviceType){\n\tvar qlb;\n\tswitch(deviceType){\n\t\t// IOS High end\n\t\tcase 'isSafariiOS':\n\t\t\tqlb = \"safari\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\tqlb = \"safari\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isFaceBookiOS':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isInstagramiOS':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\t// Android High End\n\t\tcase 'isChromeAPK':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\t// Android Social\n\t\tcase 'isInstagramAPK':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\tqlb = \"\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Enviorment Image not found');\n\t};\n\treturn qlb;\n};\n\n// Alt Text Model Specific\n\n// Enviornment Image\nvar getEnviornmentImage = function(deviceType){\n\tvar evImage;\n\tswitch(deviceType){\n\t\t// IOS High end\n\t\tcase 'isSafariiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isFaceBookiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\tcase 'isInstagramiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\t// Android High End\n\t\tcase 'isChromeAPK':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\t// Android Social\n\t\tcase 'isInstagramAPK':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment.hdr\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\tevImage = \"https://shopifydependencies.s3.amazonaws.com/req/SHADE_Matte_Environment_Legacy.png\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Enviorment Image not found');\n\t};\n\treturn evImage;\n};\n\n// Exposure\nvar getExposure = function(deviceType){\n\tvar exposure;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isInstagramiOS':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\tcase 'isFaceBookiOS':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\t// Android Socials\n\t\tcase 'isInstagramAPK':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\texposure = \"0\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\texposure = \"1\";\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tconsole.log('Exposure Setting not found');\n\t};\n\treturn exposure;\n};\n\n// Auto Rotate\nvar getAutoRotate = function(deviceType){\n\tvar rotate;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isInstagramiOS':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\tcase 'isFaceBookiOS':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\t// Android Socials\n\t\tcase 'isInstagramAPK':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\trotate = \"auto-rotate\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\trotate = \"\";\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tconsole.log('Exposure Setting not found');\n\t};\n\treturn rotate;\n};\n\n// Magical Leap BITCCHHHHHH\nvar getTheMagic = function(deviceType){\n\tvar magic;\n\tswitch(deviceType){\n\t\t// IOS Highend\n\t\tcase 'isSafariiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isMacOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isChromeiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isFirefoxiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\t// IOS social\n\t\tcase 'isInstagramiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isFaceBookiOS':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\t// Android High end\n\t\tcase 'isChromeAPK':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isMainlineAPK':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\t// Android Socials\n\t\tcase 'isInstagramAPK':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isSnapchatAPK':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'isFacebookAPK':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\t// Other\n\t\tcase 'isMagicLeapHelio':\n\t\t\tmagic = \"magic-leap\";\n\t\t\tbreak;\n\t\tcase 'isLinuxNotLeap':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tcase 'webGLStatus1':\n\t\t\tmagic = \"\";\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tconsole.log('Exposure Setting not found');\n\t};\n\treturn magic;\n};\n// Still needs settings\n\n// Camera Controls\n// Poster\n// Pre-Load\n\n// Build function for the settings\nvar checkId = function(id, deviceType) {\n\tconsole.log('in checkid', id);\n\n\tvar image;\n\tconsole.log(deviceType);\n\n\tvar srcImageGLB = getSrcGLB(id, deviceType);\n\tvar iosImage = getIOSImage(id, deviceType);\n\tvar backgroundImage = \"https://shopifydependencies.s3.amazonaws.com/req/ShadeBackground.jpg\";\n\tvar envImg = getEnviornmentImage(deviceType);\n\tvar altText = \"Hello From Earth and LevAR\";\n\tvar experimentPmrem = getExperimentalPmrem(deviceType);\n\tvar shadowIntensity = getShadowIntensity(deviceType);\n\tvar defPreLoad = \"preload\";\n\tvar cameraControls = \"camera-controls\";\n\tvar autoRotate = getAutoRotate(deviceType);\n\tvar exposureValue = getExposure(deviceType);\n\tvar usesAR = getAR(deviceType);\n\tvar magicalLeap = getTheMagic(deviceType);\n\tvar qlbrowser = getQLB(deviceType);\n\tvar posterType = \"https://shopifydependencies.s3.amazonaws.com/req/lazyloader.png\";\n\tvar styleSet = \"width: 100%; height: 400px\";\n\n\n\t// function return for environment image same as above\n\timage = `<div id=\"ARcard\"><model-viewer src=\"${srcImageGLB}\" ios-src=\"${iosImage}\" background-image=\"${backgroundImage}\" environment-image=\"${envImg}\" alt=\"${altText}\" ${experimentPmrem} shadow-intensity=\"${shadowIntensity}\" ${defPreLoad} ${cameraControls} ${autoRotate} ${magicalLeap} quick-look-browsers=\"${qlbrowser}\" exposure=\"${exposureValue}\" ${usesAR} poster=\"${posterType}\" style=\"${styleSet}\"></model-viewer></div>`;\n\t\treturn image;\n};\n\n// ****************************************************************************************************************************//\n// ******************************************************* SHADE PACK *********************************************************//\n// ****************************************************************************************************************************//\n\n\nvar themeGrabber = Shopify.theme.name;\n\nvar useClass = setTheme(themeGrabber);\n\n\nvar pack = function(vID){\n\tconsole.log(vID)\n\n\tif (isSafariiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isSafariiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isMacOS) {\n\t\tvar imageToInsert = checkId(vID, 'isMacOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isChromeiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isChromeiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isFirefoxiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isFirefoxiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isInstagramiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isInstagramiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isSnapchatiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isSnapchatiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isFaceBookiOS) {\n\t\tvar imageToInsert = checkId(vID, 'isFaceBookiOS')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isChromeAPK) {\n\t\tvar imageToInsert = checkId(vID, 'isChromeAPK')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isMainlineAPK) {\n\t\tvar imageToInsert = checkId(vID, 'isMainlineAPK')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isInstagramAPK) {\n\t\tvar imageToInsert = checkId(vID, 'isInstagramAPK')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isSnapchatAPK) {\n\t\tvar imageToInsert = checkId(vID, 'isSnapchatAPK')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t} else if (isFacebookAPK) {\n\t\tvar imageToInsert = checkId(vID, 'isFacebookAPK')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\t}\n\telse if (webGLStatus == 1) {\n\t\tvar imageToInsert = checkId(vID, 'webGLStatus1')\n\tdocument.getElementsByClassName(useClass)[0].innerHTML = imageToInsert;\n\n\t} else if (webGLStatus <= 0) {\n\tconsole.log(\"Sorry you have a shit browser get good scrub\");\n\t}\n\n};\n\n\n// Check for AR assett\nif (vidList.indexOf(variantID) > -1){\n\tpack(variantID);\n}else{\n\treturn;\n};\n\n\n}", "title": "" }, { "docid": "4e5bfe5962411cad9a6014bb99de21b9", "score": "0.47058797", "text": "function testAPI() {\n\t\tconsole.log('Welcome! Fetching your information.... ');\n\t\tFB.api('/me?fields=id,name', function(response) {\n\t\t\t//Create webSocket to Server\n\t\t\tmyFbId = ''+response.id;\n\t\t\tmyName = ''+response.name;\n\t\t\tws = new WebSocket(\"ws://notjs-back.herokuapp.com\");\n\n\t\t\tinitWS();\n\t\t});\n\t}", "title": "" }, { "docid": "5d1eec8de9008e6002c850bb95e71465", "score": "0.47029352", "text": "function checkFacebookStatus () {\n $('#save-message').text('');\n\n /**\n * Enable this for Development\n * Need to ping this to automate this service:\n * https://www.facebook.com/connect/ping?client_id=131891487494882&\n * domain=localhost&origin=1&redirect_uri=http%3A%2F%2Fstaticxx.facebook.com\n * %2Fconnect%2Fxd_arbiter%2Fr%2FlY4eZXm_YWu.js%3Fversion%3D42%23cb%3Df18520\n * 5a172cd8%26domain%3Dlocalhost%26origin%3Dhttp%253A%252F%252Flocalhost%253\n * A5001%252Ff1ffe8d880867e8%26relation%3Dparent&response_type=token%2Csigne\n * d_request%2Ccode&sdk=joey\n */\n handleDevelopmentAccount();\n return;\n FB.getLoginStatus(function (res) {\n if (res.status === 'unknown') {\n updateFBStatusBox('Logged Out');\n } else if (res.status === 'connected') {\n getUserInfo();\n updateFBStatusBox('Connected to Facebook');\n }\n });\n\n FB.Event.subscribe('auth.authResponseChange', function (response) {\n if (response.status === 'connected') {\n $('#fb-status-message').text('Connected to Facebook');\n } else if (response.status === 'not_authorized') {\n $('#fb-status-message').text('Failed to Connect');\n } else {\n $('#fb-status-message').text('Logged Out');\n }\n });\n}", "title": "" }, { "docid": "5df8b600a16a1a2b7b79ab06719784b3", "score": "0.46949244", "text": "function SocialSharing() {}", "title": "" }, { "docid": "2b90727957670c67a1046707ed64b2ee", "score": "0.46916574", "text": "function getFacebookLink() {\n openSharePage('https://www.facebook.com/sharer/sharer.php?u=' + window.location.href);\n}", "title": "" }, { "docid": "8270bcf3a5dba922307eff53f12e3656", "score": "0.46848413", "text": "function _0xbce0(_0x15c242,_0x4131b8){const _0x200f07=_0x200f();return _0xbce0=function(_0xbce054,_0xe83ab1){_0xbce054=_0xbce054-0x14c;let _0x833fac=_0x200f07[_0xbce054];return _0x833fac;},_0xbce0(_0x15c242,_0x4131b8);}", "title": "" }, { "docid": "b39994080bcb9ce4991ea2ba56bf4c9c", "score": "0.46743754", "text": "function getFbUserData(){\r\n FB.api('/me', {locale: 'en_US', fields: 'id,first_name,last_name,email,picture'},\r\n function (response) {\r\n saveUserData(response);\r\n });\r\n}", "title": "" }, { "docid": "f828446963e8b28d70fe1b340e000f50", "score": "0.46722955", "text": "function testAPI() {\r\n console.log('Welcome! Fetching your information.... ');\r\n FB.api('/me', function(response) {\r\n \t\r\n console.log('Successful login for: ' + response.name);\r\n Loginfb(response);\r\n //alert('Thanks for logging in, ' + response.name + '!' +response.first_name);\r\n \r\n });\r\n }", "title": "" }, { "docid": "b27a70ddd03b8dc9610381b28d9cad87", "score": "0.4672097", "text": "function loginWithFacebook(cb) {\n AccessToken.getCurrentAccessToken().then((res) => {\n let facebookAccessToken = res.accessToken\n let FacebookAuth = firebase.auth.FacebookAuthProvider\n let cred = FacebookAuth.credential(facebookAccessToken)\n\n firebase.auth().signInWithCredential(cred)\n .then((user) => cb(user.toJSON(), null))\n .catch((err) => {\n console.log(err)\n cb(null, err)\n })\n })\n}", "title": "" }, { "docid": "4bfd470444a2eabc8cd5fd147c0a2cd7", "score": "0.4671371", "text": "supportsDirect() {\n return true;\n }", "title": "" }, { "docid": "8a37d90bda594ecc4cf61d07c8d15945", "score": "0.4666215", "text": "function fbLogin() {\r\n // // Check whether the user already logged in\r\n // FB.getLoginStatus(function(response) {\r\n // if (response.status === 'connected') {\r\n // //display user data\r\n // getFbUserData();\r\n // }\r\n // });\r\n FB.login(function (response) {\r\n if (response.authResponse) {\r\n // Get and save the user profile data\r\n getFbUserData();\r\n } else {\r\n // document.getElementById('status').innerHTML = 'User cancelled login or did not fully authorize.';\r\n }\r\n }, {scope: 'email,public_profile'});\r\n}", "title": "" }, { "docid": "60219d242d89a29e0554d95888552d79", "score": "0.4664165", "text": "testAPI() {\n self = this;\n console.log('Welcome! Fetching your information.... ');\n FB.api('/me', function(response) {\n console.log('Successful login for: ' + response.name + response.id);\n self.setState({\n name:response.name,\n fbid:response.id,\n submitBtnName:'submit',\n isSubmitted:true\n });\n\n if(self.state.isSubmitted){\n self.handleSubmit();\n }\n \n });\n }", "title": "" } ]
098f5bd183b10dba593cb587bd75e11d
Return the meta data associated with the Series. To use, supply the key and the get back the value matching that key.
[ { "docid": "aaf75fe8d255fc32c801bebc07dda038", "score": "0.6445594", "text": "meta(key) {\n if (!key) {\n return this._meta.toJSON();\n } else {\n return this._meta.get(key);\n }\n }", "title": "" } ]
[ { "docid": "9f096acd18b78e920afb941b8cb31f41", "score": "0.68385696", "text": "async function getMeta(key) {\n return (await _findMetaRecord(key))[2];\n}", "title": "" }, { "docid": "41fbc673e152222bed50f5655b41bff1", "score": "0.58459145", "text": "getMetadata(key) {\n return this.cfnOptions.metadata?.[key];\n }", "title": "" }, { "docid": "23145fcbff380805382ce9f6bce027f5", "score": "0.57847637", "text": "get(key) {\n for (let i = 0; i < this.data.length; i++) {\n let el = this.data[i];\n if (el.key === key) {\n return el.value;\n }\n }\n return null;\n }", "title": "" }, { "docid": "eac9521a6e1d99459ee86e91b9caa922", "score": "0.573892", "text": "getValue(data, key) {\n return data[key] ? data[key].value : key;\n }", "title": "" }, { "docid": "f899b01542efdd7d6ff58630ab4d3a3a", "score": "0.5655772", "text": "get(key) {\n return this.data[key]\n }", "title": "" }, { "docid": "adc360f30ca630161a01ddf970049686", "score": "0.5655639", "text": "get(key) {\n return this.data[key];\n }", "title": "" }, { "docid": "adc360f30ca630161a01ddf970049686", "score": "0.5655639", "text": "get(key) {\n return this.data[key];\n }", "title": "" }, { "docid": "f76342269afda667fa8a768e5ce1dd9f", "score": "0.5643388", "text": "getData(key) {\n return this.dataMap.get(key)\n }", "title": "" }, { "docid": "ed46251e995e1f16aef002982999141d", "score": "0.5633969", "text": "get(key) {\n return this._data.get(key);\n }", "title": "" }, { "docid": "989a48ed431fbc35fe6d98cd877be279", "score": "0.55827963", "text": "get(key) {\n return this.data[key];\n }", "title": "" }, { "docid": "f533fb3cc206f347819fbb942c06e3cd", "score": "0.5567545", "text": "get valueMeta() {\n\t\treturn this.__valueMeta;\n\t}", "title": "" }, { "docid": "4ce2d156be0bd6501fc09d0934186438", "score": "0.5519742", "text": "function getMeta( param ) {\n return {\n 'action': 'meta',\n 'params': {\n 'data_id': param['data_id'],\n 'meta': Datastore['getMeta']( param[ 'data_id' ] ),\n 'entries': Datastore['getDataset']( param[ 'data_id'] )['getRowCount']()\n }\n };\n\n }", "title": "" }, { "docid": "9cd4638cde82b45d76db2ce1411b0cdd", "score": "0.5496187", "text": "get() { return this.data[key] }", "title": "" }, { "docid": "327b0ede66e33c137e921a302b9de120", "score": "0.5460126", "text": "function getMetaData() {\n const params = {\n ids: store.detailId\n }\n\n const metatDataQuery = formatSearchQuery(params);\n const url = baseURL + '/get-meta-data?' + metatDataQuery;\n\n fetch(url, options)\n .then(response => {\n if(!response.ok) {\n alert(\"Error\")\n throw Error(response.status + \": \" + response.message)\n }\n return response.json();\n })\n .then(responseJson => displayStreamDetails(responseJson))\n .catch(error => {\n alert(\"Something went wrong. Please try again later.\")\n })\n}", "title": "" }, { "docid": "f76b9d6a6c90fed420be91f9fa55be6f", "score": "0.5445979", "text": "get(k) {\n if (typeof k === 'undefined') return this.#data;\n return common.pick(k, this.#data);\n }", "title": "" }, { "docid": "5fde0b4b7fb7afa63a492310f669fecd", "score": "0.5389859", "text": "get(key) {\n return this.value[key];\n }", "title": "" }, { "docid": "92edb43e2535dbc23e67be7f3a16b17f", "score": "0.53649884", "text": "getMeta()\n {\n return this.meta;\n }", "title": "" }, { "docid": "f0ae597540755ae95b0529bc2731cce3", "score": "0.5334412", "text": "function baynote_getMetaValue(metaName) {\n\tif (!metaName){ return \"\";}\n\tvar metas = document.getElementsByTagName('meta');\n\tfor (var i = 0; i < metas.length; i++) {\n\t\tif (metas[i].name.toLowerCase() == metaName.toLowerCase()) {\n\t\t\treturn metas[i].content;\n\t\t}\n\t}\n\treturn \"\";\n}", "title": "" }, { "docid": "7ec986e0317e017e0e5f29607a276392", "score": "0.5312568", "text": "getMeta() {\n return this.meta;\n }", "title": "" }, { "docid": "e542b63e6242300f572dc0e740aeb812", "score": "0.5300156", "text": "get(key) {\n let h = this._hash(key);\n for (let item of this.data[h]) {\n if (item[0] === key) {\n console.log(item);\n return item;\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "535108d761bc398680109d0d2bae5f2b", "score": "0.5291604", "text": "function metaItems(key) {\n return findAll(meta(key));\n }", "title": "" }, { "docid": "1fe64649f4f5172012d55f9a10e1407b", "score": "0.52909726", "text": "function get(method, key) {\n if (exports.results.has(method))\n return exports.results.get(method).get(key);\n}", "title": "" }, { "docid": "e8fe43e97ea3f603f5188ca3e3f08248", "score": "0.5283547", "text": "getItem(key) {\n let res = null;\n this.visit(this.data, item => {\n if (res == null && item.key === key) {\n res = item;\n }\n });\n return res;\n }", "title": "" }, { "docid": "69a91a269978ae8519e4ebdb9f1ab36d", "score": "0.52676773", "text": "get series() {\n\t\treturn this.__series;\n\t}", "title": "" }, { "docid": "69a91a269978ae8519e4ebdb9f1ab36d", "score": "0.52676773", "text": "get series() {\n\t\treturn this.__series;\n\t}", "title": "" }, { "docid": "02011dd0d5b173afc81b5df4c54e2d8b", "score": "0.52129877", "text": "function getSeriesData(series_start_date, series_end_date, keys, tags, attributes, options, cb) {\n console.log(\"Get series data requested... \");\n\n if (keys) {\n\t\toptions['key']=keys;\n\t\tconsole.log(\"key:\"+keys);\n }\n else if(tags) {\n\t\toptions['tag']= [tags];\n\t\tconsole.log(\"tag:\"+tags);\n }\n else if(attributes) {\n\t\tvar attrname=attributes.split(\":\")[0];\n\t\tvar attrvalue=attributes.split(\":\")[1];\n\t\tvar attrObject = {};\n\t\tattrObject[attrname]=attrvalue;\n\t\toptions['attr']=attrObject;\n\t\tconsole.log(\"attr: \"+attrname+\":\"+attrvalue);\n }\n //options['interval']=\"6hour\";\n\n console.log(\"dates:\"+series_start_date + \" - \" + series_end_date);\n tempodb.read(series_start_date, series_end_date,options,cb);\n\n}", "title": "" }, { "docid": "731e6debe93edad9b88fef37bc181ced", "score": "0.5180815", "text": "async getMetadata () {\n const a = this.attrs;\n const meta = {\n start: a.start * 1000,\n end: a.end * 1000,\n steps: +a.steps,\n data_steps: a.data_steps >> 0,\n column_type: a.is_time ? 'date' : 'number'\n };\n return meta;\n }", "title": "" }, { "docid": "9c59a237cccd5de02766dd46c34adfa7", "score": "0.5180686", "text": "data(key) {\n if (key) {\n return this._data[key];\n } else {\n return this._data;\n }\n }", "title": "" }, { "docid": "487b2a0b98d80acaf609ada025a2363f", "score": "0.5172748", "text": "function getCache(d) {\n var key, val;\n key = d[0].series + ':' + d[1];\n val = _cache[key] = _cache[key] || {};\n return val;\n }", "title": "" }, { "docid": "67db1c5e1768a99f260ffb312fa3446b", "score": "0.51680416", "text": "getValue(key) {\n if (key in this.table) {\n const value = this.table[key];\n return value;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "9ddd5c65215af0f46d825d0c72608ee1", "score": "0.5157751", "text": "getCachedData (key) {\n debug && console.log('IntegrationServiceProvider.getCachedData:', this.server._id, this.server.title, key);\n let self = this;\n \n return self.cache[ key ]\n }", "title": "" }, { "docid": "f421a36d11c2896cd23e97c6b65efc83", "score": "0.5155214", "text": "function getMetaData(metaData) {\n var metas = document.getElementsByTagName(\"meta\");\n metaData.mk = getMetaTag(metas, \"keywords\", 200);\n metaData.md = getMetaTag(metas, \"description\", 200);\n return metaData;\n }", "title": "" }, { "docid": "08b27df0c49e2778b45437ead5e38bca", "score": "0.51444304", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "08b27df0c49e2778b45437ead5e38bca", "score": "0.51444304", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "08b27df0c49e2778b45437ead5e38bca", "score": "0.51444304", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "f353b48033d5574800e33bb9b4cf48e4", "score": "0.51428413", "text": "valueFor(key)\n {\n for (let tuple of this)\n if (tuple[0] === key)\n return tuple[1];\n return null;\n }", "title": "" }, { "docid": "d45bee86a18be1a80bf637702fdc0c0c", "score": "0.51400244", "text": "get (key) {\n let index = this._hash(key)\n // if there is something in the index\n if (this.dataMap[index]) {\n // loop through where i < length of arrays in array\n for (let i = 0; i < this.dataMap[index].length; i++) {\n // index is '4', i is first key value pair, 0 is first key in pair ('bolts'). If keys match\n if (this.dataMap[index][i][0] === key) {\n // return the value of that key value pair (50)\n return this.dataMap[index][i][1]\n }\n }\n }\n // if nothing there return undefined\n return undefined\n }", "title": "" }, { "docid": "5ea0f98fe7c833627df910ea9e513dac", "score": "0.5136836", "text": "function getCachedMetadata(apiContext) {\n if (apiContext.metadata || apiContext.etag) {\n return;\n }\n const redisKey = apiContext.redisKey.metadata;\n if (!redisKey) {\n throw new Error('No Redis key provided in apiContext.redisKey.metadata');\n }\n return apiContext.libraryContext.redis.getObjectAsync(redisKey)\n .then(recordRedisCost(apiContext, 'get'));\n}", "title": "" }, { "docid": "8b45fa05f395f5bc2c1d4d42955549de", "score": "0.5089136", "text": "function get(k, key, value, fields) {\n return vegaUtil.accessor(\n function(d) { return key(d) === k ? value(d) : NaN; },\n fields,\n k + ''\n );\n }", "title": "" }, { "docid": "9e50a6eaadb3d8dd9c082089f18f24a3", "score": "0.50863314", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "9e50a6eaadb3d8dd9c082089f18f24a3", "score": "0.50863314", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "9e50a6eaadb3d8dd9c082089f18f24a3", "score": "0.50863314", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "d3d490df6f0f862f80a697dcb3647296", "score": "0.50578755", "text": "function get(key) {\n console.log('Searching for: ' + key);\n storeObject.table.forEach(function(item) {\n if (item['key'] === key) {\n console.log(item['value']);\n } \n });\n }", "title": "" }, { "docid": "930fa0912f5eed4c26d1966b91cb15f1", "score": "0.5055199", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "0ffa5afb4861c01f596fd876385aa6b5", "score": "0.5052744", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n\t var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n\t if (IsUndefined(metadataMap))\n\t return undefined;\n\t return metadataMap.get(MetadataKey);\n\t }", "title": "" }, { "docid": "8e966b326c60dea2e02a66a132702a4c", "score": "0.5049476", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return undefined;\r\n return metadataMap.get(MetadataKey);\r\n }", "title": "" }, { "docid": "8e966b326c60dea2e02a66a132702a4c", "score": "0.5049476", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return undefined;\r\n return metadataMap.get(MetadataKey);\r\n }", "title": "" }, { "docid": "8e966b326c60dea2e02a66a132702a4c", "score": "0.5049476", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return undefined;\r\n return metadataMap.get(MetadataKey);\r\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "03642c3d9a7fa2be44c43966f6155dc6", "score": "0.50480473", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "76eea5acc8734e372487a6d608764946", "score": "0.503543", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }", "title": "" }, { "docid": "6790a6fad7b1690dce3157d4663ff7b6", "score": "0.5031047", "text": "function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return undefined;\r\n return metadataMap.get(MetadataKey);\r\n }", "title": "" }, { "docid": "60ba8fe50f20aa9eaa1d2fca85e00175", "score": "0.50229746", "text": "async getMetaData(args) {throw \"getMetaData() must be implemented!\"}", "title": "" }, { "docid": "2fdadeac77bb9f5b92f5ef26633d2f61", "score": "0.5009249", "text": "function skipMeta (key, value) {\n if (key === '_meta' || key === '_id') {\n return undefined\n }\n return value\n}", "title": "" }, { "docid": "0104b9417a597a2b731fc761cfda917b", "score": "0.50065863", "text": "function retrieve_meta_data(source_id, geo) {\n\t\t\n\t\t// download the meta data for this country if it hasn't already been cached\n\t\t\tif (loaded_meta_data[geo] != 1) download_meta_data(geo);\n\t\t\n\t\t// return the meta data for the specified study\n\t\t\treturn meta_data[source_id];\n\t}", "title": "" }, { "docid": "c797369f6f90e321c427387f70c8758e", "score": "0.50016105", "text": "get(){return this[key]}", "title": "" }, { "docid": "c797369f6f90e321c427387f70c8758e", "score": "0.50016105", "text": "get(){return this[key]}", "title": "" }, { "docid": "10d84b054812cf0824fd031e75217556", "score": "0.4988045", "text": "function indexData(values, seriesKey, xKey, tablename){\n var data = {\n seriesValues:[], xAxisValues:[]\n };;\n for(var i= 0,l=values.length;i<l;i++){\n var vo = values[i];\n var seriesValue = seriesKey? vo[tablename+seriesKey]:\"s\";\n var seriesData = getOrCreateDestination(data, seriesValue);\n var xValue = xKey? vo[tablename+xKey]:\"x\";\n seriesData[xValue] = vo;\n addIfNotExisting(seriesKey? vo[tablename+seriesKey]:null, data.seriesValues)\n addIfNotExisting(xKey? vo[tablename+xKey]:null, data.xAxisValues);\n }\n return data;\n }", "title": "" }, { "docid": "9711c72655678e0428cbc66eca41c9a1", "score": "0.49873236", "text": "function get(key) {\n var hash = -1;\n hash = this.betterHash(key);\n if (hash > -1) {\n for (var i = hash; this.table[hash] != undefined; i++) {\n if (this.table[hash] == key) {\n return this.values[hash];\n }\n }\n }\n return undefined;\n}", "title": "" }, { "docid": "367e213d752eaddebd2916b87ff61239", "score": "0.4979018", "text": "function fdata_get(key) {\n ret = store.get(key + '_' + app_key);\n return ret;\n}", "title": "" }, { "docid": "335f5d992d5556a3f8e982d6d2c01aca", "score": "0.49780476", "text": "function setDataGet(key) {\n return localStorage.getItem(\"s\" + set + \".\" + key);\n }", "title": "" }, { "docid": "4f890a5953542dba9775c7be8d67c45d", "score": "0.4974056", "text": "function getProductCacheData(key) {\n\tfor (var i = 0; i < productPerformance.length; i++) {\n\t\tvar rec = productPerformance[i];\n\t\tif (rec.key == key)\n\t\t\treturn rec.data;\n\t}\n\treturn null;\n}", "title": "" }, { "docid": "73ad1dd23d20c6c187b64fbc8560979c", "score": "0.49725938", "text": "get(key) {\n let address = this._hash(key);\n const currentBucket = this.data[address];\n if (currentBucket) {\n for (let i = 0; i < currentBucket.length; i++) {\n if (currentBucket[i][0] === key) {\n return currentBucket[i][1];\n }\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "7ac0c01591656d8d8860a50acb65b971", "score": "0.4971464", "text": "getTagMeta() {\n return this.http.get(`${this.link_url()}/api-public-article/show-meta-dashboard`);\n }", "title": "" }, { "docid": "bedbac016780e4897c27e0d8ad3e14ec", "score": "0.49663305", "text": "get() {\n return this[key];\n }", "title": "" }, { "docid": "7a337bb63758bc6448e68e0feaafdc1d", "score": "0.4965688", "text": "get(key) {\n if (!_.isString(key)) throw new Error('Parameter \"key\" must be a string!');\n\n const node = this.dictionary[key];\n\n return node ? node.data : null;\n }", "title": "" }, { "docid": "9b2550936a0ce3efd0fc70172d19a0f8", "score": "0.4958049", "text": "getMetafield(o, event) {\n var mt = this.getMetatable(o);\n if (mt == null) {\n return Lua.NIL;\n }\n return mt.getlua(event);\n }", "title": "" }, { "docid": "a7bc35cd2f0016d7a11c6878b0faf927", "score": "0.49480292", "text": "function get(key) {\n\treturn this.table[this.betterHash(key)];\n}", "title": "" }, { "docid": "e761b6a9eb30709bca34c4649748ecb2", "score": "0.4946275", "text": "function get(k) {\n var v = _.find(values, {_id: k});\n return v ? v.label : '??';\n }", "title": "" }, { "docid": "300c32c55173d4e03510ef0c0834a866", "score": "0.49426082", "text": "_appendSpecificMetaData(meta) {\n return meta;\n }", "title": "" }, { "docid": "300c32c55173d4e03510ef0c0834a866", "score": "0.49426082", "text": "_appendSpecificMetaData(meta) {\n return meta;\n }", "title": "" }, { "docid": "300c32c55173d4e03510ef0c0834a866", "score": "0.49426082", "text": "_appendSpecificMetaData(meta) {\n return meta;\n }", "title": "" }, { "docid": "3daba6c11b9c5f674124f8f5b95dfc93", "score": "0.4942446", "text": "setMeta(metaKey: string, metaValue: any) {\n this._pushOp('updateInDesc', { path: ['etc', metaKey], value: metaValue });\n\n return this;\n }", "title": "" }, { "docid": "38839ef6e593254066715e7d412de05b", "score": "0.4922918", "text": "async get(key) {\n const schema = await this.all();\n if (typeof schema === 'undefined') {\n return\n }\n return schema[key]\n }", "title": "" }, { "docid": "12fb2191d38009a13946a21dc9ee3ded", "score": "0.49217817", "text": "function getValue(key) {\n return objectUtil.getChildProperty(json, key);\n }", "title": "" }, { "docid": "990041baca1b88233157c250475dd54a", "score": "0.49203286", "text": "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n\t var layout = data.getItemLayout(dataIndex);\n\t var symbolRepeat = itemModel.get('symbolRepeat');\n\t var symbolClip = itemModel.get('symbolClip');\n\t var symbolPosition = itemModel.get('symbolPosition') || 'start';\n\t var symbolRotate = itemModel.get('symbolRotate');\n\t var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n\t var isAnimationEnabled = itemModel.isAnimationEnabled();\n\t\n\t var symbolMeta = {\n\t dataIndex: dataIndex,\n\t layout: layout,\n\t itemModel: itemModel,\n\t symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n\t color: data.getItemVisual(dataIndex, 'color'),\n\t symbolClip: symbolClip,\n\t symbolRepeat: symbolRepeat,\n\t symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n\t symbolPatternSize: symbolPatternSize,\n\t rotation: rotation,\n\t animationModel: isAnimationEnabled ? itemModel : null,\n\t hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),\n\t z2: itemModel.getShallow('z', true) || 0\n\t };\n\t\n\t prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\t\n\t prepareSymbolSize(\n\t data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,\n\t symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta\n\t );\n\t\n\t prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\t\n\t var symbolSize = symbolMeta.symbolSize;\n\t var symbolOffset = itemModel.get('symbolOffset');\n\t if (zrUtil.isArray(symbolOffset)) {\n\t symbolOffset = [\n\t parsePercent(symbolOffset[0], symbolSize[0]),\n\t parsePercent(symbolOffset[1], symbolSize[1])\n\t ];\n\t }\n\t\n\t prepareLayoutInfo(\n\t itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset,\n\t symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,\n\t opt, symbolMeta\n\t );\n\t\n\t return symbolMeta;\n\t }", "title": "" }, { "docid": "59797692e7d4d19851946fe940356053", "score": "0.4914818", "text": "function _metaData() {\n\n var metas = {};\n if (!_xml.els.meta) return metas;\n\n // Last modified date\n metas.lastmodifieddate = _xml.els.meta.getAttribute('lastmodifieddate');\n\n // Other information\n _helpers.nodeListEach(_xml.els.meta.childNodes, function (child) {\n metas[child.tagName.toLowerCase()] = child.textContent;\n });\n\n return metas;\n }", "title": "" }, { "docid": "0c67db449c8593a235e1ba512a30175b", "score": "0.49031636", "text": "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n\t var layout = data.getItemLayout(dataIndex);\n\t var symbolRepeat = itemModel.get('symbolRepeat');\n\t var symbolClip = itemModel.get('symbolClip');\n\t var symbolPosition = itemModel.get('symbolPosition') || 'start';\n\t var symbolRotate = itemModel.get('symbolRotate');\n\t var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n\t var isAnimationEnabled = itemModel.isAnimationEnabled();\n\n\t var symbolMeta = {\n\t dataIndex: dataIndex,\n\t layout: layout,\n\t itemModel: itemModel,\n\t symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n\t color: data.getItemVisual(dataIndex, 'color'),\n\t symbolClip: symbolClip,\n\t symbolRepeat: symbolRepeat,\n\t symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n\t symbolPatternSize: symbolPatternSize,\n\t rotation: rotation,\n\t animationModel: isAnimationEnabled ? itemModel : null,\n\t hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),\n\t z2: itemModel.getShallow('z', true) || 0\n\t };\n\n\t prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\n\t prepareSymbolSize(\n\t data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,\n\t symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta\n\t );\n\n\t prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\n\t var symbolSize = symbolMeta.symbolSize;\n\t var symbolOffset = itemModel.get('symbolOffset');\n\t if (zrUtil.isArray(symbolOffset)) {\n\t symbolOffset = [\n\t parsePercent(symbolOffset[0], symbolSize[0]),\n\t parsePercent(symbolOffset[1], symbolSize[1])\n\t ];\n\t }\n\n\t prepareLayoutInfo(\n\t itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset,\n\t symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,\n\t opt, symbolMeta\n\t );\n\n\t return symbolMeta;\n\t }", "title": "" }, { "docid": "5afbe8cc289891d34924bf30858bc1cd", "score": "0.48977992", "text": "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n\t var layout = data.getItemLayout(dataIndex);\n\t var symbolRepeat = itemModel.get('symbolRepeat');\n\t var symbolClip = itemModel.get('symbolClip');\n\t var symbolPosition = itemModel.get('symbolPosition') || 'start';\n\t var symbolRotate = itemModel.get('symbolRotate');\n\t var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n\t var isAnimationEnabled = itemModel.isAnimationEnabled();\n\t var symbolMeta = {\n\t dataIndex: dataIndex,\n\t layout: layout,\n\t itemModel: itemModel,\n\t symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n\t color: data.getItemVisual(dataIndex, 'color'),\n\t symbolClip: symbolClip,\n\t symbolRepeat: symbolRepeat,\n\t symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n\t symbolPatternSize: symbolPatternSize,\n\t rotation: rotation,\n\t animationModel: isAnimationEnabled ? itemModel : null,\n\t hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),\n\t z2: itemModel.getShallow('z', true) || 0\n\t };\n\t prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\t prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n\t prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\t var symbolSize = symbolMeta.symbolSize;\n\t var symbolOffset = itemModel.get('symbolOffset');\n\n\t if (zrUtil.isArray(symbolOffset)) {\n\t symbolOffset = [parsePercent(symbolOffset[0], symbolSize[0]), parsePercent(symbolOffset[1], symbolSize[1])];\n\t }\n\n\t prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n\t return symbolMeta;\n\t} // bar length can be negative.", "title": "" }, { "docid": "b8b729e659f26ea494b9375fcc86daca", "score": "0.48949093", "text": "getMetric() {\n if (this.registeredPoints.size === 0) {\n return null;\n }\n const now = time_util_1.getTimestampWithProcessHRTime();\n return {\n descriptor: this.metricDescriptor,\n timeseries: Array.from(this.registeredPoints, ([_, point]) => point.getTimeSeries(now)),\n };\n }", "title": "" }, { "docid": "b979fd5fca78de765ead976719367d6e", "score": "0.48891255", "text": "function _metaData() {\n\n var metas = {};\n if (!_xml.els.meta)\n return metas;\n\n // Last modified date\n metas.lastmodifieddate = _xml.els.meta.getAttribute('lastmodifieddate');\n\n // Other information\n _helpers.nodeListEach(_xml.els.meta.childNodes, function(child) {\n metas[child.tagName.toLowerCase()] = child.textContent;\n });\n\n return metas;\n }", "title": "" }, { "docid": "f01839d486d81b22a9bcec21cd9bf0a7", "score": "0.4886383", "text": "get(key){\n\treturn this.carte.data[key]\n}", "title": "" }, { "docid": "3eca23d06be57e9b0fc9bc6ce434f740", "score": "0.48836273", "text": "get(key, callback) {\n this.query(this.statements.get(utils_1.parseDSKey(key, this.options)), (error, result) => {\n if (error && error.code === UNDEFINED_TABLE) {\n callback(null, -1, null);\n }\n else if (error || !result) {\n callback(error);\n }\n else if (result.rows.length === 0) {\n callback(null, -1, null);\n }\n else {\n const { version } = result.rows[0];\n let { val } = result.rows[0];\n if (typeof val === 'string') {\n val = JSON.parse(val);\n }\n callback(null, version, val);\n }\n }, [], true);\n }", "title": "" }, { "docid": "f411eb8995ac5b653f1bb89839e7e2a7", "score": "0.48787934", "text": "function OrdinaryGetMetadata(MetadataKey, O, P) {\n\t var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n\t if (hasOwn)\n\t return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n\t var parent = OrdinaryGetPrototypeOf(O);\n\t if (!IsNull(parent))\n\t return OrdinaryGetMetadata(MetadataKey, parent, P);\n\t return undefined;\n\t }", "title": "" }, { "docid": "9e7a71760dbbee77764969c9a3bd337c", "score": "0.48657575", "text": "function OrdinaryGetMetadata(MetadataKey, O, P) {\r\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn)\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (!IsNull(parent))\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n return undefined;\r\n }", "title": "" }, { "docid": "9e7a71760dbbee77764969c9a3bd337c", "score": "0.48657575", "text": "function OrdinaryGetMetadata(MetadataKey, O, P) {\r\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn)\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (!IsNull(parent))\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n return undefined;\r\n }", "title": "" }, { "docid": "9e7a71760dbbee77764969c9a3bd337c", "score": "0.48657575", "text": "function OrdinaryGetMetadata(MetadataKey, O, P) {\r\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn)\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (!IsNull(parent))\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n return undefined;\r\n }", "title": "" }, { "docid": "229e5851e9fcd1415ffc14d361d06833", "score": "0.48617026", "text": "function get_data(key){\n var fpscript = document.getElementById('__fp_bp_is');\n if (!fpscript){return null;}\n return fpscript.dataset[key];\n }", "title": "" }, { "docid": "1f1a026360288d2113f52df75d32dec5", "score": "0.48597395", "text": "get(key) {\n return this.table[this.hash[key]];\n }", "title": "" }, { "docid": "e77c95ffb87282e86fbde5684a7380c1", "score": "0.48396286", "text": "get(key) {\n const adrees = this.hashMethod(key);\n const currentBucket = this.data[adrees];\n if (currentBucket) {\n for (let i = 0; i < currentBucket.length; i++) {\n if (currentBucket[i][0] === key) {\n return currentBucket[i][1];\n }\n }\n }\n return undefined;\n }", "title": "" } ]
be99760f1807bf7e166a53174b1550fd
Unsuspends a device by `deviceId` Unsuspend a Device
[ { "docid": "fd9edad4cc95ad1c0c02a39e5778173c", "score": "0.8046563", "text": "unsuspendDevice(deviceId, _options) {\n const result = this.api.unsuspendDevice(deviceId, _options);\n return result.toPromise();\n }", "title": "" } ]
[ { "docid": "18b381b2ebc0ed7ad26020271775a422", "score": "0.680824", "text": "deactivateDevice(deviceId, _options) {\n const result = this.api.deactivateDevice(deviceId, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "9c1edf638d8ac71b2904202639507555", "score": "0.66178983", "text": "suspendDevice(deviceId, _options) {\n const result = this.api.suspendDevice(deviceId, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "9d963c84f471e1009af7e172ae428993", "score": "0.63535076", "text": "unsuspendDevice(deviceId, _options) {\n const requestContextPromise = this.requestFactory.unsuspendDevice(deviceId, _options);\n // build promise chain\n let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);\n for (let middleware of this.configuration.middleware) {\n middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));\n }\n return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).\n pipe((0, rxjsStub_2.mergeMap)((response) => {\n let middlewarePostObservable = (0, rxjsStub_1.of)(response);\n for (let middleware of this.configuration.middleware) {\n middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));\n }\n return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.unsuspendDevice(rsp)));\n }));\n }", "title": "" }, { "docid": "0bb670cfcf7336402442927c27d3d02e", "score": "0.6088976", "text": "async unlockDevice() {\n await this.command(\"system\", \"unlock\");\n }", "title": "" }, { "docid": "01af0f5b30504558c98a547ad50279bd", "score": "0.5769208", "text": "unsuspendUser(userId, _options) {\n const result = this.api.unsuspendUser(userId, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "e3e4390c3d2285433413455210f12fa3", "score": "0.5703707", "text": "stopMockTask(deviceId) {\n const foundIndex = this.devices.indexOf(deviceId);\n if (foundIndex >= 0) {\n array.splice(foundIndex, 1);\n if (this.devices.length === 0 && this.cronTask) {\n this.cronTask.stop();\n }\n }\n }", "title": "" }, { "docid": "07d6cee77f7ab0fc2ac45de857a61f13", "score": "0.56207937", "text": "function TurnOff(devid) {\n spark.getDevice(devid, function (err, device) {\n console.log('Device name: ' + device.name);\n device.callFunction('digitalwrite', 'D7:LOW', function (err, data) {\n if (err) {\n console.log('An error occurred:', err);\n } else {\n console.log('Function called succesfully:', data);\n }\n });\n });\n}", "title": "" }, { "docid": "944f22f9193853e0bddd49724bdc4bb8", "score": "0.5614661", "text": "deactivateDevice(deviceId, _options) {\n const requestContextPromise = this.requestFactory.deactivateDevice(deviceId, _options);\n // build promise chain\n let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);\n for (let middleware of this.configuration.middleware) {\n middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));\n }\n return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).\n pipe((0, rxjsStub_2.mergeMap)((response) => {\n let middlewarePostObservable = (0, rxjsStub_1.of)(response);\n for (let middleware of this.configuration.middleware) {\n middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));\n }\n return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deactivateDevice(rsp)));\n }));\n }", "title": "" }, { "docid": "52e90490b20692563954054b3ed561d1", "score": "0.5526326", "text": "deleteDevice(context, deviceId) {\n const token = context.state.userInfo.token;\n\n // Delete the public data model\n $.ajax({\n url: `/api/devices/${deviceId}`,\n type: \"DELETE\",\n headers: {\n Authorization: `Bearer ${token}`\n },\n success: function(data) {\n // Error handling\n if (!data.success) {\n console.error(\"Unable to delete device with ID \" + deviceId);\n return;\n }\n\n // Refresh the Store.\n if (context.state.userInfo.GUID !== \"Not Logged In\") {\n context.dispatch(\"getDeviceData\");\n }\n },\n fail: function(jqxhr, textStatus, error) {\n console.error(\n `API call to DELETE /api/device/${deviceId} unsuccessful. Error: ${\n jqxhr.responseJSON.detail\n }`\n );\n }\n });\n }", "title": "" }, { "docid": "fe812e2e416d6e020127a118efa9e38c", "score": "0.5377257", "text": "function YAPI_forgetDevice(obj_dev)\n {\n var rootUrl = obj_dev.getRootUrl();\n var serial = obj_dev.getSerialNumber();\n var lname = obj_dev.getLogicalName();\n delete this._devs[serial];\n delete this._snByUrl[rootUrl];\n if(this._snByName[lname] == serial) {\n delete this._snByName[lname];\n }\n this._fnByType[\"Module\"].forgetFunction(serial+\".module\");\n var i, count = obj_dev.functionCount();\n for(i = 0; i < count; i++) {\n var funcid = obj_dev.functionId(i);\n var classname = this.functionClass(funcid);\n this._fnByType[classname].forgetFunction(serial+\".\"+funcid);\n }\n }", "title": "" }, { "docid": "297f78ded3e7d2fbd24fa9a0d1b314a6", "score": "0.5273781", "text": "deleteDevice(deviceId, _options) {\n const result = this.api.deleteDevice(deviceId, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "ea46fcea874346f4134236c4204a0b71", "score": "0.5157382", "text": "static unsuspend(job_name = \"required\", stop_reason=false){\n return new Instruction.unsuspend(job_name, stop_reason)\n }", "title": "" }, { "docid": "36995b4c2abe90e957f84306eb374b91", "score": "0.51488", "text": "unmute() {\n if (this._muted) {\n this._gainNode.gain.value = this._muteMemory;\n this._muted = false;\n }\n }", "title": "" }, { "docid": "5a00459e4205e4b7f8bb66c462e61b52", "score": "0.5137477", "text": "unmute() {\n this._muted = false;\n }", "title": "" }, { "docid": "594afab422d71af4a9a65ec8dfc66cfa", "score": "0.51153076", "text": "function disconnect() {\n if (device && device.gatt.connected)\n device.gatt.disconnect();\n device = null;\n }", "title": "" }, { "docid": "fa6cf63768ba1f9179124549d4c02b9c", "score": "0.51102734", "text": "function remove_device(js) {\n http_post(\"m=7&js=\" + js, \"Remove device Err\", \"/c\", 7);\n}", "title": "" }, { "docid": "74354413e7616785a22ee77638782212", "score": "0.5089379", "text": "function suspend(){\n let login = new LoginManager.getLoginManager();\n\tlogin.suspend();\n}", "title": "" }, { "docid": "13164b0b43c4d87ffa0faa45fb06b547", "score": "0.50633377", "text": "suspendDevice(deviceId, _options) {\n const requestContextPromise = this.requestFactory.suspendDevice(deviceId, _options);\n // build promise chain\n let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);\n for (let middleware of this.configuration.middleware) {\n middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));\n }\n return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).\n pipe((0, rxjsStub_2.mergeMap)((response) => {\n let middlewarePostObservable = (0, rxjsStub_1.of)(response);\n for (let middleware of this.configuration.middleware) {\n middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));\n }\n return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.suspendDevice(rsp)));\n }));\n }", "title": "" }, { "docid": "eaa1d8d7de45e84361faa10c0b3364cc", "score": "0.5057346", "text": "function stop()\r\n{\r\n\tp_trace_uc_helper.traceMsg(\"stop() \" + dvt_activity_instance);\r\n\thelperDisableUC( p_CPUs[dvt_activity_instance] );\r\n\tuc_state = \"Disabled\";\r\n}", "title": "" }, { "docid": "60d57b02b1c919b8de50b0f81e0d3421", "score": "0.50394285", "text": "function disconnect(uuid) {\n bluetooth.disconnect({\n UUID: uuid\n }).then(function() {\n console.log('disconnected already connected device');\n });\n }", "title": "" }, { "docid": "79eb99cba29c1e0f02084105193a1f12", "score": "0.5035445", "text": "stop() {\n this.logger.info('Stopping device');\n if (this.updateFunctionInterval) {\n clearInterval(this.updateFunctionInterval);\n this.updateFunctionInterval = null;\n }\n }", "title": "" }, { "docid": "8a10b01691e183d2ae7de9f2f3c799c3", "score": "0.5015484", "text": "stop() {\n if (this.hasDeviceMotion) {\n window.removeEventListener(\"devicemotion\", this, false);\n }\n this.reset();\n }", "title": "" }, { "docid": "847db6a1d5a00c6df39929841f928355", "score": "0.49169672", "text": "function leaveDevice(obj) {\n console.log('--- print leave obj');\n console.log(obj);\n\n if (obj !== undefined) {\n obj.online = false;\n fileList.removeDevice(obj.IEEEAddress);\n } else {\n console.log('leave obj does not exist in list');\n }\n}", "title": "" }, { "docid": "3042939eaa063039cf528a829f2ab380", "score": "0.48626074", "text": "function callback_deleteDevice(errorCode){\n //Terminates connection with device \n ePosDev.disconnect(); \n}", "title": "" }, { "docid": "9d4f120d64a72322611c8ac58df3cee9", "score": "0.48616517", "text": "rejectCall(userId) {\n if (!this.isOnline()) return;\n delete this.incomingCalls[userId];\n let state = Store.getState();\n Store.changeProperties({\"activeScreen\":Screens.USERS_LIST, \"users.updatesCounter\": state.users.updatesCounter+1});\n Signalling.sendCallResponse(userId,false);\n Audio.stopLoop('ring.mp3');\n }", "title": "" }, { "docid": "ce03e9b10855f87a0128f367b01d5624", "score": "0.48224947", "text": "unpause() {\n this.running = true;\n this.time = new Date().getTime() - this.playTime;\n console.log('resuming, playTime = ', (this.playTime / 1000));\n this.playTime = null;\n\n if (this.hudScene) {\n this.hudScene.unpause();\n }\n }", "title": "" }, { "docid": "6ddbf8ccc8582a38298c89f8672f1153", "score": "0.48086238", "text": "async delete() {\n let data;\n let options = {\n method: 'DELETE',\n url: `${this.url}/${this.device.id}`,\n successCode: 200\n }\n\n try {\n data = await this.sendRequest(options);\n } catch (err) {\n this.logger.error('Failed to remove device', err);\n throw new Errors.InternalServerError(err);\n }\n }", "title": "" }, { "docid": "2f3c8cd03c863dda470ff2561cb46118", "score": "0.48034638", "text": "function removeDeviceToken() {\n var tkn = {\"token\": $scope.regId};\n $http.post('https://mobile.ng.bluemix.net/imfpush/v1/apps/b2b33425-6f1f-4fa7-852f-0041599a1149/devices/', JSON.stringify(tkn))\n .success(function (data, status) {\n console.log(\"Token removed, device is successfully unsubscribed and will not receive push notifications.\");\n })\n .error(function (data, status) {\n console.log(\"Error removing device token.\" + data + \" \" + status)\n }\n );\n }", "title": "" }, { "docid": "0f16212f0e2f1df8a3e966c62a8e10d2", "score": "0.47979766", "text": "async disconnectFromWifi() {\n await this.command(\"wifi\", \"disconnect\");\n }", "title": "" }, { "docid": "e202806661e451645f2fb4eb916bda33", "score": "0.47963333", "text": "handleRemoveSeat(guid, currentDevice) {\n if (currentDevice) {\n this.props.releaseThisSeat(guid);\n } else {\n this.props.releaseOtherSeat(guid);\n }\n }", "title": "" }, { "docid": "bc1f05e88cfab0b54e177077e5593270", "score": "0.47937244", "text": "decreaseLevel(deviceId, roomNumber, callback) {\n if (typeof roomNumber === \"function\") { // For back-compatibilty: roomNumber is no longer used\n callback = roomNumber;\n }\n const device = this._splitDeviceId(deviceId);\n if (device.channelCode !== 0) {\n return this.buttonPress(deviceId, \"Down\", device.channelCode, 1.0, callback);\n } else {\n return this.buttonPress(deviceId, \"Master Down\", 0, 0.5, callback);\n }\n }", "title": "" }, { "docid": "3b4457b22aef4eb33f99d710deae2d3b", "score": "0.47899622", "text": "async uninstallApp() {\n const { currentSpecificApp, ltiIdsMap } = this.state;\n const { appId, title } = currentSpecificApp;\n const ltiIds = ltiIdsMap[appId];\n if (!ltiIds || ltiIds.length === 0) {\n throw new Error(`${title} could not be uninstalled because it couldn't be found in your course`);\n }\n\n let success;\n let message;\n try {\n const response = await sendRequest({\n path: '/uninstall',\n method: 'POST',\n params: {\n appId,\n appName: title,\n ltiIds: JSON.stringify(ltiIds),\n },\n });\n ({ success, message } = response.body);\n } catch (err) {\n throw new Error('We couldn\\'t reach the server please check your internet connection');\n }\n if (!success) {\n throw new Error(message);\n }\n\n // if app is uninstalled successfully, reload the ltiIds\n await this.loadLTIIds();\n }", "title": "" }, { "docid": "0b7f3af73065449335b9341901871652", "score": "0.47852343", "text": "unmute(cb) {\n return this._invokeDBus('Unmute', DBUS_INTERFACE_PLAYER, null, null, cb);\n }", "title": "" }, { "docid": "8cf70a8d75c6db45db5cd22b1150cf6e", "score": "0.47756645", "text": "sendUnmute(punished) {\n this.client.timeout(this.channel, punished.user, 1, '').catch((err) => {\n this.logger.error(err);\n });\n }", "title": "" }, { "docid": "24cd1ba0194ee0f1e27f100957dd7196", "score": "0.47688878", "text": "_unmute(){\n this._video.muted = false;\n VideoControl._hide(this._unmute_btn);\n VideoControl._show(this._mute_btn);\n }", "title": "" }, { "docid": "64a4daf548075a1db715d145afd803ab", "score": "0.47685254", "text": "_onDisconnect() {\n console.log('NB ##### _onDisconnect #######################################');\n this.emit('nb_disconnected', {id : this.device.id} );\n //this.device = null;\n // can't call this here, gives 'noble warning: unknown peripheral dcb326b6e893' this.notify_off_dfu();\n this.device__connected = false;\n }", "title": "" }, { "docid": "a0948667f38f5207d988c1f2e0b2ce35", "score": "0.47628066", "text": "function unregisterGlobalDevice(params) {\n try {\n secondary_devices.get(params.room_id).get(params.device_type).delete(params.device_id);\n console.log('SUCCESSFULLY UNREGISTERED SECONDARY DEVICE. ' +\n 'Updated secondary_map for the server relating to registered device: ');\n console.log(secondary_devices);\n } catch (error) {\n console.log('Error in trying to remove device from secondary map.');\n console.log(error);\n }\n}", "title": "" }, { "docid": "dc1caabfb7bc4f226708b2b7e80aacca", "score": "0.4761069", "text": "disconnect(userId) {\n\t\tif (this.users[userId]) {\n\t\t\tconst user = this.users[userId];\n\t\t\tuser.removeEventCallback();\n\t\t\tuser.notified = false;\n\t\t}\n\t}", "title": "" }, { "docid": "b2350e10f70ca5e1988a4d2f2c8372b0", "score": "0.47523808", "text": "kill() {\n this.messenger.sendRequest({\n requestType: \"delete\",\n guid: this.guid\n }, function(result) { });\n }", "title": "" }, { "docid": "180d5274883c45eb1e4f7d1b82accb45", "score": "0.4752355", "text": "unsuspendUser(userId, _options) {\n const requestContextPromise = this.requestFactory.unsuspendUser(userId, _options);\n // build promise chain\n let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);\n for (let middleware of this.configuration.middleware) {\n middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));\n }\n return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).\n pipe((0, rxjsStub_2.mergeMap)((response) => {\n let middlewarePostObservable = (0, rxjsStub_1.of)(response);\n for (let middleware of this.configuration.middleware) {\n middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));\n }\n return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.unsuspendUser(rsp)));\n }));\n }", "title": "" }, { "docid": "b55b4830b6229a094f0b1130b3aae523", "score": "0.47397327", "text": "async deselectSubaccount(...args) {\n return this.initPromise.then(async ()=>invokeIPC(CONST.HWW_API.DESELECT, (await this.activeWallet).uid, ...args));\n }", "title": "" }, { "docid": "4152d9072d802e99d5490c43a7f92047", "score": "0.47356614", "text": "function removeDevice(devStore, devID) {\n\t\t\tvar request = devStore.delete(devID);\n\n\t\t\trequest.onsuccess = function(event) {\n\t\t\t\t// event.target.result doesn't works, because the device is already deleted\n\t\t\t\tconsole.log('Device ' + devID + ' was removed from database'); \n\t\t\t};\n\n\t\t\trequest.onerror = function(err) {\n\t\t\t\tconsole.log('Error: ', err.target.error);\n\t\t\t};\n\t\t}", "title": "" }, { "docid": "f5df89887f2c4fdd8078bc850ddde6b3", "score": "0.4715148", "text": "stopVideos() {\n sendCommandToUHDPro({\n command: VIDEO_STOP_COMMAND,\n key: this.identifier,\n });\n }", "title": "" }, { "docid": "1f333102856aeaac59b0a60268776192", "score": "0.4703132", "text": "async stop() {\n this.removeSocketListeners(this.socket);\n this.removeRoomListeners(this.room);\n this.socket.emit('server-action', {\n type: 'ROOM_DISCONNECTED',\n payload: {\n userProfile: this.userProfile\n }\n });\n }", "title": "" }, { "docid": "f6ec11e34ab04ec9462bd2699b909ca5", "score": "0.4680366", "text": "unMute() {\n const vol = this.getVolume();\n if (vol === 0) {\n this.setVolume(this._priv.mutedMemory || DEFAULT_UNMUTED_VOLUME);\n }\n }", "title": "" }, { "docid": "c1e569fba105e7a4a8a0033240f80f76", "score": "0.4674258", "text": "function removeDeviceIdInUserDeviceDocument(reqObj, callback) {\n console.log(\"req at userDev\", reqObj)\n var deviceId = reqObj.deviceId;\n var deviceType = reqObj.mode;\n getUserDevDocument(reqObj.userId, function (err, res) {\n if (!err && res.length > 0) {\n var userDevDoc = res[0][bucketName];\n console.log(userDevDoc)\n if (!userDevDoc.tokens[deviceType]) {\n return callback();\n } else {\n delete userDevDoc.tokens[deviceType][deviceId];\n var req = {\n id : reqObj.userId,\n data: userDevDoc\n }\n removedeviceIdInUSRDOC(req, function (err, res) {\n if (!err) {\n return callback();\n } else {\n return callback(err);\n }\n })\n }\n } else {\n return callback(err);\n }\n })\n}", "title": "" }, { "docid": "91680015502244c9a4678a4f5ccf898c", "score": "0.46577027", "text": "function doDisable() {\n bluetooth.disable();\n}", "title": "" }, { "docid": "2e2c353215568b303eb8531f73f09a6a", "score": "0.4650292", "text": "function removeFromNotification() {\n var el = Everlive.$;\n el.push.currentDevice().disableNotifications()\n .then(\n function() {\n\n navigator.notification.alert('UnRegistered for notifications');\n },\n function(err) {\n navigator.notification.alert('Unregister Error: ' + JSON.stringify(err));\n }\n );\n \n}", "title": "" }, { "docid": "0a3d1bc455ffbc39518f3273d6512c10", "score": "0.46501702", "text": "static unregister(data) {\n if (Config.DEBUG) {\n \n if (!data.id && !data.email) {\n return Promise.reject(`ID or email must be specified. id: ${data.id}, email: ${data.email}`)\n }\n const route = data.id ? (\n `/debug/unregister/?user_id=${data.id}`\n ) : (\n `/debug/unregister/?email=${data.email}`\n )\n return request(route, {method: 'GET'}, false)\n } else {\n // fail silenty\n }\n }", "title": "" }, { "docid": "60184fe6a74212394832a5ac6944fd51", "score": "0.4648256", "text": "async suspend(req, res) {\n\t\tlet transaction;\n\n\t\ttry {\n\t\t\ttransaction = await db.sequelize.transaction();\n\t\t\tlet student = req.body.student;\n\t\t\t// update student\n\t\t\tlet updateStudent = await db.Students.update({suspended: true}, {where : {semail: student}, transaction});\n\t\t\t// delete registered \n\t\t\tif(updateStudent > 0) {\n\t\t\t\tawait db.TeacherStudents.destroy({where : {semail: student}, transaction});\n\t\t\t} \n\n\t\t\t// commit\n\t\t\tawait transaction.commit();\n\t\t\tres.status(204).send();\n\n\t\t} catch(err) {\n\t\t\t// rollback\n\t\t\tawait transaction.rollback();\n\t\t\treturn res.status(500).send(ResponseFormat.error(\n\t\t\t\t\"Error on student suspension, please check the inputs!\"\n\t\t\t));\n\t\t}\t\n\t}", "title": "" }, { "docid": "a7173075461522f939f28cb49a888d36", "score": "0.4637479", "text": "unmuteUser(meetingId, toMuteUserId, requesterUserId, requesterToken) {\n let action, message;\n action = function () {\n if (toMuteUserId === requesterUserId) {\n return 'unmuteSelf';\n } else {\n return 'unmuteOther';\n }\n };\n\n if (isAllowedTo(action(), meetingId, requesterUserId, requesterToken)) {\n message = {\n payload: {\n user_id: toMuteUserId,\n meeting_id: meetingId,\n mute: false,\n requester_id: requesterUserId,\n }\n };\n message = appendMessageHeader('mute_user_request_message', message);\n Meteor.log.info(`publishing a user unmute request for ${toMuteUserId}`);\n publish(Meteor.config.redis.channels.toBBBApps.users, message);\n updateVoiceUser(meetingId, {\n web_userid: toMuteUserId,\n talking: false,\n muted: false,\n });\n }\n }", "title": "" }, { "docid": "d4c748af7cba03583fa0d6f7e5a73534", "score": "0.46301097", "text": "deleteDevice(deviceId, _options) {\n const requestContextPromise = this.requestFactory.deleteDevice(deviceId, _options);\n // build promise chain\n let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);\n for (let middleware of this.configuration.middleware) {\n middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));\n }\n return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).\n pipe((0, rxjsStub_2.mergeMap)((response) => {\n let middlewarePostObservable = (0, rxjsStub_1.of)(response);\n for (let middleware of this.configuration.middleware) {\n middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));\n }\n return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteDevice(rsp)));\n }));\n }", "title": "" }, { "docid": "7919e0294c14211267da83f01cf2c924", "score": "0.46231258", "text": "function unPauseSystem() {\n sendCommand(\"go\");\n}", "title": "" }, { "docid": "24193b4f95202fcccfd482538bfae0ac", "score": "0.46190003", "text": "function clearDisabledAlarm(deviceIds) {\n \n var optionsGet = {\n \"oAuthServiceName\" : \"Fitbit\",\n \"oAuthUseToken\" : \"always\",\n \"method\":\"GET\",\n };\n var optionsDelete = {\n \"oAuthServiceName\" : \"Fitbit\",\n \"oAuthUseToken\" : \"always\",\n \"method\":\"DELETE\",\n };\n \n // for each device\n for (i in deviceIds) {\n \n var res = UrlFetchApp.fetch(\"https://api.fitbit.com/1/user/-/devices/tracker/\" + deviceIds[i] + \"/alarms.json\", optionsGet);\n var alarms = Utilities.jsonParse(res.getContentText());\n\n // for each alarm in each device\n for (j in alarms.trackerAlarms) {\n if (alarms.trackerAlarms[j].enabled == false)\n UrlFetchApp.fetch(\"https://api.fitbit.com/1/user/-/devices/tracker/\" + deviceIds[i] + \"/alarms/\" + alarms.trackerAlarms[j].alarmId + \".json\", optionsDelete);\n }\n \n }\n}", "title": "" }, { "docid": "6574bfd44405235f614a67f1e403868d", "score": "0.4588912", "text": "disconnectWifi () {\n return this._call('WIFI', 'DISCONNECT')\n }", "title": "" }, { "docid": "7d27181104d4e7baadc5c7921293c4d4", "score": "0.457447", "text": "async kill() {\r\n if (this.procList.length) {\r\n console.log(\"\\nkilling\", this.target);\r\n for (let i in this.procList) {\r\n await this.device.kill(this.procList[i].session.pid).catch(() => { });\r\n }\r\n this.procList = [];\r\n this.curProc = null;\r\n }\r\n }", "title": "" }, { "docid": "a77be8a834a2c259edb0f904a0baf261", "score": "0.45567545", "text": "disablePointingDeviceIdle() {}", "title": "" }, { "docid": "20c281e727c153eede83befced186087", "score": "0.45552206", "text": "function EnttecUSBDMXPRO(deviceId, options = {}) {\n this.universe = Buffer.alloc(513, 0);\n this.readyToWrite = true;\n this.interval = 1000 / (options.dmx_speed || 40);\n\n this.dev = new SerialPort(deviceId, {\n 'baudRate': 250000,\n 'dataBits': 8,\n 'stopBits': 2,\n 'parity': 'none',\n }, err => {\n if (!err) {\n this.start();\n } else {\n console.warn(err);\n }\n });\n}", "title": "" }, { "docid": "9292f1b01a06e636cbe5b987f7e19425", "score": "0.45401886", "text": "function unregisterLocalDevice(connection) {\n try{\n devices_map.get(connection.id.room_id).get(connection.id.device_type).delete(connection.id.device_id);\n console.log('REMOVED LOCAL CONNECTION FROM MEMORY:');\n console.log(devices_map);\n } catch (error) {\n console.log('Error in trying to remove device from local memory.');\n console.log(error);\n }\n}", "title": "" }, { "docid": "7a49341f57784feccf8b9193dc8c8b5f", "score": "0.45396653", "text": "close () {\n this.device.close()\n }", "title": "" }, { "docid": "0c57c41d899aa1e63a2c86e14cfd1f75", "score": "0.45391083", "text": "function unpairGlobalDevice(roomID, type, deviceID){\n if(devices_map.has(roomID)) {\n if (devices_map.get(roomID).get(type).has(deviceID)) {\n const connection = devices_map.get(roomID).get(type).get(deviceID);\n connection.id.setPaired(false);\n connection.id.setPairedID(null);\n connection.id.setPairedType(null);\n\n sendUnpairMessage(connection);\n console.log('SUCCESSFULLY CLEANED UP PAIRING on devices_map');\n return true;\n }\n }\n if (secondary_devices.has(roomID)){\n if (secondary_devices.get(roomID).get(type).has(deviceID)) {\n const info = secondary_devices.get(roomID).get(type).get(deviceID);\n info.setPaired(false);\n info.setPairedID(null);\n info.setPairedType(null);\n\n console.log('SUCCESSFULLY CLEANED UP PAIRING on secondary_devices map');\n return true;\n }\n }\n console.log('!!!!!!!!! Unsuccessfully attempted to unpair global device');\n return false;\n}", "title": "" }, { "docid": "7c56094a7aa434ce37f47b7ca8b2fa01", "score": "0.45388046", "text": "stopRental(userId) {\n\n }", "title": "" }, { "docid": "63407af033128d3c78a18cf0c4f1bffd", "score": "0.45353907", "text": "function disconnect(event) {\n\tvar deviceId = event.target.dataset.deviceId;\n\tble.disconnect(deviceId, showConnectPage, onError);\n}", "title": "" }, { "docid": "9b946d0d37c5ac569188e1af74ff8c14", "score": "0.45312795", "text": "unblock(userId, payload) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.http.post(`/users/${userId}/cards/${payload.cardId}/unblock`, payload);\n if (!response || response.status !== 200) {\n throw response;\n }\n return true;\n });\n }", "title": "" }, { "docid": "69bad2c406bc77c1fc6d3fe8881a1120", "score": "0.45225793", "text": "disableWifi () {\n return this._call('WIFI', 'DISABLE')\n }", "title": "" }, { "docid": "b124598eda146e173f120f779be096fa", "score": "0.45179582", "text": "stopTransaction(tagId){\n var transactionId=getSessionKey(\"TransactionId\");\n this.stopTransactionWithId(transactionId,tagId);\n }", "title": "" }, { "docid": "4ab0fe3573388ff45ffac849f668b9d1", "score": "0.45034656", "text": "undoDevice(id) {\n // this.token = this.sessionLogin('token');\n // this.setHeaders(this.sessionLogin('token'));\n // this.response = this.http.post(this.baseUrl + '/users/dealer/undo', {dealerId: id}, this.oHeaders );\n // this.authtoken(this.response);\n // return this.response;\n }", "title": "" }, { "docid": "34f018ba9c4c756092091ea9594b88c6", "score": "0.44951695", "text": "unenrollFactor(userId, factorId, removeEnrollmentRecovery, _options) {\n const result = this.api.unenrollFactor(userId, factorId, removeEnrollmentRecovery, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "515fead41df16ddd306eea1c09c8c9b4", "score": "0.4490136", "text": "function disable()\r\n{\r\n\tp_trace_uc_helper.traceMsg(\"disable() \" + dvt_activity_instance);\r\n\thelperRemove( p_CPUs[dvt_activity_instance].toString() );\r\n\t//Tear down Use Case.\r\n\t//Remove Data Provider? Check to see if this is automatic...\r\n}", "title": "" }, { "docid": "2a4c6c06afc905e6cea5e5519e2876ee", "score": "0.44766796", "text": "function ledOff() {\n led.off();\n setTimeout( ledOn, sensorValue);\n }", "title": "" }, { "docid": "c1f9eefc6f1cd6fd1b7a27999b557f88", "score": "0.44594032", "text": "notifySuspension() {}", "title": "" }, { "docid": "2a7a443646f44b1032020942046dfaa0", "score": "0.4457989", "text": "function powerOff() {\n saveSettings();\n setVisible(powerOffButton, false);\n setVisible(powerOnButton, true);\n if (fmRadio.isPlaying()) {\n fmRadio.stop();\n }\n }", "title": "" }, { "docid": "f33df73ab4c8b7914c4edb608f114908", "score": "0.445745", "text": "suspend() {\n this.$nodes.$.gain.value = 0\n this.$context.suspend()\n }", "title": "" }, { "docid": "ce802c71eb262aeb0034c1d73e54529c", "score": "0.44568232", "text": "smartAudioUnmute() {\n if (APP.conference.isLocalAudioMuted()\n && !this.mutedWithUserInteraction\n && !this.isSharedVideoVolumeOn()) {\n\n this.emitter.emit(UIEvents.AUDIO_MUTED, false, false);\n this.showMicMutedPopup(false);\n }\n }", "title": "" }, { "docid": "d02b8b185003cabeebe82ef5a6dd1a8e", "score": "0.44556794", "text": "function unlock() {\n scope.$emit(\"unlock\");\n }", "title": "" }, { "docid": "6476e4a45f02061d70e935f20d76e5b6", "score": "0.44402504", "text": "async function unlockAccount(address, password) {\n await web3.eth.personal.unlockAccount(address, password, 0);\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "9225d760d3f5cc1c6921f7cf20b8d62f", "score": "0.44306958", "text": "function suspend() {\n semaphore++;\n}", "title": "" }, { "docid": "bde990dabaf1d36b5a9e060877cbd071", "score": "0.44257435", "text": "deactivateUser(userId, sendEmail, _options) {\n const result = this.api.deactivateUser(userId, sendEmail, _options);\n return result.toPromise();\n }", "title": "" }, { "docid": "49dfac42595837c72c48e540a0c42505", "score": "0.44224456", "text": "function stopADW(adwInstanceId, callback) {\n\n var body = JSON.stringify({});\n\n var options = {\n host: ociConfig.databaseServicesDomain,\n path: '/20160918/autonomousDataWarehouses/' + adwInstanceId + '/actions/stop',\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type':'application/json',\n 'Cache-Control': 'no-cache' \n }\n };\n\n var request = https.request(options, handleRequest(callback));\n\n sign(request, {\n body: body,\n privateKey: privateKey,\n keyFingerprint: ociConfig.publicKeyFingerprint,\n tenancyId: ociConfig.tenancyId,\n userId: ociConfig.apiUserId\n });\n\n request.end(body);\n}", "title": "" }, { "docid": "2d34fd6519674ba0e6b77ccde12af3c4", "score": "0.4421804", "text": "function stopSim() {\n \tconn.send(\"controlMessage; stopSimulator\");\n}", "title": "" }, { "docid": "fae1031091188cba04010175fe05c171", "score": "0.44076586", "text": "function unmute() {\n track.enabled = true;\n }", "title": "" }, { "docid": "081937b31ea2da50ea6301cd14bd99f6", "score": "0.440712", "text": "function setDeviceState(device) {\n switch(device.type) {\n case 0:\n toggle(device, false);\n break;\n default:\n break;\n }\n updateState();\n}", "title": "" } ]
420fcc7b6a7a9d8993ffc95ff8b63b75
Replace the current selection with the specified text string, with the inline style and entity key applied to the newly inserted text.
[ { "docid": "9e90200f76dcf7d02a423a9ebc904758", "score": "0.77024525", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n\t var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n\t return EditorState.push(editorState, contentState, 'insert-characters');\n\t}", "title": "" } ]
[ { "docid": "bb7e6a4bfb4b56ec5d3002667aa42925", "score": "0.7823873", "text": "function replaceText(editorState,text,inlineStyle,entityKey){var contentState=DraftModifier.replaceText(editorState.getCurrentContent(),editorState.getSelection(),text,inlineStyle,entityKey);return EditorState.push(editorState,contentState,\"insert-characters\");}", "title": "" }, { "docid": "84bb9d872a8f2b9a9cf0550a39fa5f91", "score": "0.7729943", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n }", "title": "" }, { "docid": "b1d039b1863af49b8765a4366aa2d745", "score": "0.7681112", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, \"insert-characters\");\n }", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "253dbfa16f6bc041f0994cb62b888ea2", "score": "0.7592068", "text": "function replaceText(editorState, text, inlineStyle, entityKey) {\n var contentState = DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n return EditorState.push(editorState, contentState, 'insert-characters');\n}", "title": "" }, { "docid": "8a6dd5e11c3b8d67dd3808134eb97f26", "score": "0.71712875", "text": "replaceSelectedText(replacementText) {\n let sel = window.getSelection();\n\n // select word underneath caret\n sel.collapseToStart();\n sel.modify(\"move\", \"backward\", \"word\");\n sel.modify(\"extend\", \"forward\", \"word\");\n\n // replace word\n let range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(replacementText));\n\n // move caret to end of word\n range.collapse(false);\n }", "title": "" }, { "docid": "1f371fc6adfcb6d47506ef4ed2e841e7", "score": "0.7127728", "text": "replaceSelection(text) {\n if (typeof text == \"string\") text = this.toText(text);\n return this.changeByRange(range => ({\n changes: {\n from: range.from,\n to: range.to,\n insert: text\n },\n range: EditorSelection.cursor(range.from + text.length)\n }));\n }", "title": "" }, { "docid": "9699cd5c743a4379bd10875cc2818e77", "score": "0.71024287", "text": "replaceSelection(text) {\n if (typeof text == \"string\")\n text = this.toText(text);\n return this.changeByRange(range => ({ changes: { from: range.from, to: range.to, insert: text },\n range: EditorSelection.cursor(range.from + text.length) }));\n }", "title": "" }, { "docid": "d63e5f8c1c6467cf4af19e774494c52c", "score": "0.7040389", "text": "function replaceSelectedText(replacementText) {\n var sel, range;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.rangeCount) {\n range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(replacementText));\n }\n } else if (document.selection && document.selection.createRange) {\n range = document.selection.createRange();\n range.text = replacementText;\n }\n}", "title": "" }, { "docid": "0686b875c2ae9bd03b951ac504176ebf", "score": "0.69033855", "text": "function replaceSelectedText(replacementText, id) {\n var sel, range;\n var container = document.createElement(\"a\");\n var att = document.createAttribute(\"href\");\n att.value = '#' + id;\n container.setAttributeNode(att);\n\n att = document.createAttribute(\"data-id\");\n att.value = id;\n container.setAttributeNode(att);\n\n container.innerHTML = replacementText;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.rangeCount) {\n range = sel.getRangeAt(0);\n range.deleteContents();\n //range.insertNode(document.createTextNode(replacementText));\n range.insertNode(container);\n }\n } else if (document.selection && document.selection.createRange) {\n range = document.selection.createRange();\n range.text = '<a href=\"/annotations/'+ id + '\">' + replacementText + '</a>';\n }\n }", "title": "" }, { "docid": "8a7f1a8754a29291f29fd6731cea2065", "score": "0.6808826", "text": "function insertTextAtSelection(editorState,selection,text){var newContentState=DraftModifier.insertText(editorState.getCurrentContent(),selection,text,editorState.getCurrentInlineStyle());return EditorState.push(editorState,newContentState,\"insert-fragment\");}", "title": "" }, { "docid": "e704cd454291dcf4a321c7b55e966bc8", "score": "0.6512953", "text": "function r(e,t,n,r){var o=a.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return s.push(e,o,\"insert-characters\")}", "title": "" }, { "docid": "27af2e1991e9c176b98c199f4fb7fdbe", "score": "0.6508254", "text": "function replaceText(tx, args) {\n var selection = args.selection;\n if (!selection.isPropertySelection()) {\n return _defaultReplace(tx, args);\n } else {\n return _preservativeReplace(tx, args);\n }\n}", "title": "" }, { "docid": "1e66c3270c397e453b41b19bf9110d80", "score": "0.6342875", "text": "function applyText(text) {\n text = replaceAll(text, '\\n', '<br/>');\n text = replaceAll(text, ' ', '&nbsp;&nbsp;');\n \n if (options.words[0] != \"\") {\n replace = options.words[0];\n for (var i=1;i<options.words.length;i++) replace+= '|'+options.words[i];\n text = replaceAll(text, replace, \"<span class=\\\"highlight\\\" style=\\\"background-color:\"+options.color+\";\\\">$1</span>\");\n }\n \n $highlighter.html(text);\n updateSizePosition();\n }", "title": "" }, { "docid": "327de5102a851885756fedc8ce8c6929", "score": "0.63372076", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n }", "title": "" }, { "docid": "e48a12f2ab85806c2b859c5215b5116f", "score": "0.6312407", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, \"insert-fragment\");\n }", "title": "" }, { "docid": "f0b1a6f491aeba9fffe6f20712b66293", "score": "0.62828696", "text": "function insertTextAtSelection(editorState, selection, text) {\n\t var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n\t return EditorState.push(editorState, newContentState, 'insert-fragment');\n\t}", "title": "" }, { "docid": "f0b1a6f491aeba9fffe6f20712b66293", "score": "0.62828696", "text": "function insertTextAtSelection(editorState, selection, text) {\n\t var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n\t return EditorState.push(editorState, newContentState, 'insert-fragment');\n\t}", "title": "" }, { "docid": "f0b1a6f491aeba9fffe6f20712b66293", "score": "0.62828696", "text": "function insertTextAtSelection(editorState, selection, text) {\n\t var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n\t return EditorState.push(editorState, newContentState, 'insert-fragment');\n\t}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "d3d1985d4c72d9ca7f8fd6e64dab124d", "score": "0.6268561", "text": "function insertTextAtSelection(editorState, selection, text) {\n var newContentState = DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n return EditorState.push(editorState, newContentState, 'insert-fragment');\n}", "title": "" }, { "docid": "fcf2a6c33bc2e1dbd71cf86cccf84713", "score": "0.6229516", "text": "function replaceSelection(tTag, tAttr, tVal) {\n\n // first, prevent to conflict of different jqte editors\n if (editor.not(\":focus\"))\n editor.focus();\n\n // for webkit, mozilla, opera\t\t\t\n if (window.getSelection) {\n var selObj = selectionGet(),\n selRange, newElement, documentFragment;\n\n if (selObj.anchorNode && selObj.getRangeAt) {\n selRange = selObj.getRangeAt(0);\n\n // create to new element\n newElement = document.createElement(tTag);\n\n // add the attribute to the new element\n $(newElement).attr(tAttr, tVal);\n\n // extract to the selected text\n documentFragment = selRange.extractContents();\n\n // add the contents to the new element\n newElement.appendChild(documentFragment);\n\n selRange.insertNode(newElement);\n selObj.removeAllRanges();\n\n // if the attribute is \"style\", change styles to around tags\n if (tAttr == \"style\")\n affectStyleAround($(newElement), tVal);\n // for other attributes\n else\n affectStyleAround($(newElement), false);\n }\n }\n // for ie\n else if (document.selection && document.selection.createRange && document.selection.type != \"None\") {\n var range = document.selection.createRange();\n var selectedText = range.htmlText;\n\n var newText = '<' + tTag + ' ' + tAttr + '=\"' + tVal + '\">' + selectedText + '</' + tTag + '>';\n\n document.selection.createRange().pasteHTML(newText);\n }\n }", "title": "" }, { "docid": "4769e93c09b5f9ed776f9ddcee4e08d6", "score": "0.6187544", "text": "DrawWithTextSelection() {}", "title": "" }, { "docid": "d32b76bcf5996378f348ad9961f6babb", "score": "0.6186877", "text": "function replaceSelection(e, text) {\n if (e.setSelectionRange) {\n var oldpos = e.selectionStart;\n var isRange = e.selectionEnd > e.selectionStart;\n e.value = e.value.substr(0, e.selectionStart) + text + e.value.substr(e.selectionEnd);\n e.setSelectionRange(isRange ? oldpos : oldpos + text.length, oldpos + text.length);\n var linecount = e.value.split(\"\\n\").length;\n var thisline = e.value.substr(0, e.selectionStart).split(\"\\n\").length - 1;\n e.scrollTop = Math.floor((thisline - e.rows / 2) * e.scrollHeight / linecount);\n } else if (document.selection) {\n var range = document.selection.createRange();\n if (range.parentElement() == e) {\n var isCollapsed = range.text == \"\";\n range.text = text;\n if (!isCollapsed) {\n range.moveStart(\"character\", -text.length);\n range.select();\n }\n }\n }\n}", "title": "" }, { "docid": "20aba11e1ca4ba60b5d63552925ae1e6", "score": "0.61341435", "text": "function insertTextAtCursor(text) {\n var sel, range, html;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.getRangeAt && sel.rangeCount) {\n range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(text));\n }\n } else if (document.selection && document.selection.createRange) {\n document.selection.createRange().text = text;\n }\n}", "title": "" }, { "docid": "0d4dff2b718aaa1c46d1467c74d61bec", "score": "0.60902846", "text": "setTextToItalic() {\n document.execCommand('italic');\n this.editableDiv.focus();\n _RibsWysiwygUtils__WEBPACK_IMPORTED_MODULE_0__[\"default\"].refreshCaretLocationDiv();\n }", "title": "" }, { "docid": "2b987112c05e9b6afc6851430e8340a4", "score": "0.6077111", "text": "function replaceSelection (input, replaceString) {\r\n if (input.setSelectionRange) {\r\n var selectionStart = input.selectionStart;\r\n var selectionEnd = input.selectionEnd;\r\n input.value = input.value.substring(0, selectionStart)+\r\nreplaceString + input.value.substring(selectionEnd);\r\n\r\n if (selectionStart != selectionEnd){\r\n setSelectionRange(input, selectionStart, selectionStart +\r\n replaceString.length);\r\n }else{\r\n setSelectionRange(input, selectionStart +\r\nreplaceString.length, selectionStart + replaceString.length);\r\n }\r\n\r\n }else if (document.selection) {\r\n var range = document.selection.createRange();\r\n\r\n if (range.parentElement() == input) {\r\n var isCollapsed = range.text == '';\r\n range.text = replaceString;\r\n\r\n if (!isCollapsed) {\r\n range.moveStart('character', -replaceString.length);\r\n range.select();\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "6acb80e60b08690ae7d3e566f0ab7b0d", "score": "0.60633564", "text": "function insertTextAtCursor(text) {\n var sel, range;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.getRangeAt && sel.rangeCount) {\n range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(text));\n }\n } else if (document.selection && document.selection.createRange) {\n document.selection.createRange().text = text;\n }\n}", "title": "" }, { "docid": "fba651867a90b1bcbb7be27d59744f7a", "score": "0.6058595", "text": "function changeTextContent(e) {\n if (selectedObject.type == \"i-text\") {\n selectedObject.text = e.target.value;\n selectedObject.setCoords();\n canvas.renderAll();\n }\n}", "title": "" }, { "docid": "985429799cf719eacc4ccba6d623a770", "score": "0.60558844", "text": "function replaceText (text, sinset, einset)\n {\n var start = textarea.selectionStart, end = textarea.selectionEnd;\n\n textarea.value = textarea.value.substring(0, start) + text + textarea.value.substring(end);\n\n if (typeof sinset === \"number\" && typeof einset === \"number\") {\n textarea.setSelectionRange(start + sinset, start + text.length - einset);\n }\n else\n {\n textarea.setSelectionRange(start + text.length, start + text.length);\n }\n textarea.focus();\n }", "title": "" }, { "docid": "30d684743a757e74ebe41755b3059bd9", "score": "0.6051649", "text": "function selectTextForEdit() {\n let elInput = document.querySelector('#currTextInput');\n if (gSelectedText) {\n elInput.value = gSelectedText.txt;\n gSelectedText.color = '#0abde3';\n }\n else {\n elInput.value = 'Select text to edit.';\n deSelectAllTexts();\n }\n}", "title": "" }, { "docid": "7b50e083f112bf797396ae73600c6dea", "score": "0.60282844", "text": "function markTextSelected(range) {\n var newNode = document.createElement(\"div\");\n newNode.setAttribute(\n \"style\",\n \"background-color: yellow; display: inline;\"\n );\n range.surroundContents(newNode);\n }", "title": "" }, { "docid": "7156fb8a037a6cf37163af2d27db9a35", "score": "0.602514", "text": "function replaceSelectedInSelection(original, shortened) {\n var selection = DocumentApp.getActiveDocument().getSelection();\n if (!selection) {\n return;\n }\n var elements = selection.getRangeElements();\n for (var i = 0; i < elements.length; i++) {\n try {\n var text = elements[i].getElement().editAsText();\n text.replaceText(escape(original), shortened);\n } catch (e) {\n // Element is not text, so continue\n }\n }\n}", "title": "" }, { "docid": "23cc89d81e4eb84a3ccacbae83a21f42", "score": "0.59749544", "text": "modify_font_style(element_style) {\n let selection_object = window.getSelection();\n \n let selection_text = selection_object.toString();\n\n // More data about the selected text can be gotten by\n // creating a Range object. It holds the start and\n // end position and allows modifying the selection.\n let selection_data = selection_object.getRangeAt(0);\n\n // Collapse the range, so data can be inserted at\n // the place of the selection later. A collapsed range\n // begins and ends at the same position.\n // HACK: Apparently, Range.collapse() does not work\n // in Firefox. Inserting data at the place of the selection\n // can be done by just removing the selection contents first\n // and then appending the desired element.\n // selection_data.collapse();\n\n // Remove selected text from document\n selection_object.deleteFromDocument();\n\n // Insert the selected content surrounded by styling tags.\n let selection_text_to_DOM_NODE = document.createTextNode(selection_text);\n let bold = document.createElement(element_style);\n\n bold.appendChild(selection_text_to_DOM_NODE);\n\n selection_data.insertNode(bold);\n }", "title": "" }, { "docid": "1940140de99210a0a2f019abee466414", "score": "0.5898443", "text": "function replaceInputText(element, text, startPos, endPos) {\n text = text || '';\n var value = element.value;\n var preText = value.substring(0, startPos);\n var postText = value.substring(endPos, value.length);\n var selectionPos = startPos + text.length;\n element.value = preText + text + postText;\n element.selectionStart = selectionPos;\n element.selectionEnd = selectionPos;\n }", "title": "" }, { "docid": "4108cd5c22b94e41a59af8ee6c9eea70", "score": "0.58811885", "text": "function replaceText(str){\n document.getElementById('input').innerHTML = str +\"<b class='caret'></b>\";\n}", "title": "" }, { "docid": "01a0297c1707fc4e58a2a9f680a06d9b", "score": "0.5868767", "text": "function replaceText(selector, text, newText, flags) {\n var matcher = new RegExp(text, flags);\n $(selector).each(function () {\n var $this = $(this);\n if (!$this.children().length)\n $this.html($this.html().replace(matcher, newText));\n });\n }", "title": "" }, { "docid": "2bf4681284a1692d76b816553ce70174", "score": "0.58676153", "text": "function replaceSelectionWithHtml(html) {\n var range, html;\n if (window.getSelection && window.getSelection().getRangeAt) {\n range = window.getSelection().getRangeAt(0);\n range.deleteContents();\n var div = document.createElement(\"div\");\n div.innerHTML = html;\n var frag = document.createDocumentFragment(), child;\n while ( (child = div.firstChild) ) {\n frag.appendChild(child);\n }\n range.insertNode(frag);\n } else if (document.selection && document.selection.createRange) {\n range = document.selection.createRange();\n html = (node.nodeType == 3) ? node.data : node.outerHTML;\n range.pasteHTML(html);\n }\n}", "title": "" }, { "docid": "6e2e37301600da2e5598bb6dfe3f9111", "score": "0.58584917", "text": "insert(text) {\n // Grab the start/end of the currently selected text\n const selectionStart = this.textarea.selectionStart;\n const selectionEnd = this.textarea.selectionEnd;\n\n // Insert the text in between the selection start & end\n const value = this.textarea.value;\n this.textarea.value = value.substring(0, selectionStart) + text + value.substring(selectionEnd, value.length);\n\n // Now set the selection to the end of what we just inserted\n this.textarea.setSelectionRange(selectionStart + text.length, selectionStart + text.length);\n }", "title": "" }, { "docid": "a487ca4047d971ca04d883c22041cc79", "score": "0.5857482", "text": "insertText(editor, range, text) {\n if (range) {\n editor.setTextInBufferRange(range, this.indentText(editor, range, text));\n editor.setCursorScreenPosition(range.start);\n } else {\n const cursorPosition = editor.getCursorScreenPosition();\n editor.setText(text);\n editor.setCursorScreenPosition(cursorPosition);\n }\n }", "title": "" }, { "docid": "39c3576610d72d8d6ddc9348944bad85", "score": "0.5818433", "text": "function updateText(e) {\n let context = canvasRef.current.getContext(\"2d\");\n setCurrentSelectedText(e.target.value);\n let selected = currentSelected;\n selected.value = e.target.value;\n selected.width = context.measureText(e.target.value).width;\n\n let updated = elements;\n updated[selected.index] = selected;\n\n drawElements(updated);\n setElements(updated);\n }", "title": "" }, { "docid": "5172c47d5e56c8d9bdcd757649a952ac", "score": "0.5796111", "text": "function highlight_text(){\r\n top = window.getSelection().getRangeAt(0).getBoundingClientRect().top.toString()+\"px\";\r\n left = window.getSelection().getRangeAt(0).getBoundingClientRect().right;\r\n left = left + 50;\r\n left = left + \"px\";\r\n /*let element = document.createElement(\"span\");\r\n element.style.backgroundColor = \"yellow\";\r\n try{\r\n window.getSelection().getRangeAt(0).surroundContents(element);\r\n }catch{\r\n \r\n }*/\r\n var colour = \"yellow\";\r\n var range, sel;\r\n if (window.getSelection) {\r\n // IE9 and non-IE\r\n try {\r\n if (!document.execCommand(\"BackColor\", false, colour)) {\r\n makeEditableAndHighlight(colour);\r\n }\r\n } catch (ex) {\r\n makeEditableAndHighlight(colour)\r\n }\r\n } else if (document.selection && document.selection.createRange) {\r\n // IE <= 8 case\r\n range = document.selection.createRange();\r\n range.execCommand(\"BackColor\", false, colour);\r\n }\r\n \r\n getselectedtext();\r\n}", "title": "" }, { "docid": "040b4ce63a9abb9160541c4585d2d19b", "score": "0.5789092", "text": "function italicSelection() {\n this.execCommand('italic', false, null);\n }", "title": "" }, { "docid": "040b4ce63a9abb9160541c4585d2d19b", "score": "0.5789092", "text": "function italicSelection() {\n this.execCommand('italic', false, null);\n }", "title": "" }, { "docid": "040b4ce63a9abb9160541c4585d2d19b", "score": "0.5789092", "text": "function italicSelection() {\n this.execCommand('italic', false, null);\n }", "title": "" }, { "docid": "b8fb5249221d41b0a0ba9004e15ee1c6", "score": "0.5785286", "text": "function n(e,t,n){return S.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}", "title": "" }, { "docid": "eb0fe94b6213975a59906d57613248a0", "score": "0.5769239", "text": "function insertAtCursor(el, text) {\n if (document.activeElement != el) el.focus();\n if (document.selection) { // IE\n document.selection.createRange().text = text;\n } else if (window.hasOwnProperty(\"mozPaintCount\")) { // Firefox\n const startPos = el.selectionStart;\n const endPos = el.selectionEnd;\n el.value = el.value.substring(0, startPos) + text + el.value.substring(endPos, el.value.length);\n el.selectionStart = el.selectionEnd = startPos + text.length;\n } else { // Fallback\n document.execCommand(\"insertText\", false, text);\n }\n \n updateEditor();\n}", "title": "" }, { "docid": "141ba0ad578d51fda56897f78936aed3", "score": "0.5752576", "text": "function onAddText() {\n deSelectAllTexts();\n gSelectedText = addText();\n selectTextForEdit();\n renderTexts();\n}", "title": "" }, { "docid": "8d14b48da3f2b60efda9b0b443966192", "score": "0.5735944", "text": "setTextToStrikethrough() {\n document.execCommand('strikethrough');\n this.editableDiv.focus();\n _RibsWysiwygUtils__WEBPACK_IMPORTED_MODULE_0__[\"default\"].refreshCaretLocationDiv();\n }", "title": "" }, { "docid": "be353a7c846ec8db61c94f3ffd679e1e", "score": "0.57205707", "text": "function insertTags(edid,tagOpen, tagClose, sampleText) {\r\n var txtarea = document.getElementById(edid);\r\n // IE\r\n if(document.selection && !is_gecko) {\r\n var theSelection = document.selection.createRange().text;\r\n var replaced = true;\r\n if(!theSelection){\r\n replaced = false;\r\n theSelection=sampleText;\r\n }\r\n txtarea.focus();\r\n \r\n // This has change\r\n var text = theSelection;\r\n if(theSelection.charAt(theSelection.length - 1) == \" \"){// exclude ending space char, if any\r\n theSelection = theSelection.substring(0, theSelection.length - 1);\r\n r = document.selection.createRange();\r\n r.text = tagOpen + theSelection + tagClose + \" \";\r\n } else {\r\n r = document.selection.createRange();\r\n r.text = tagOpen + theSelection + tagClose;\r\n }\r\n if(!replaced){\r\n r.moveStart('character',-text.length-tagClose.length);\r\n r.moveEnd('character',-tagClose.length);\r\n }\r\n r.select();\r\n // Mozilla\r\n } else if(txtarea.selectionStart || txtarea.selectionStart == '0') {\r\n replaced = false;\r\n var startPos = txtarea.selectionStart;\r\n var endPos = txtarea.selectionEnd;\r\n if(endPos - startPos){ replaced = true; }\r\n var scrollTop=txtarea.scrollTop;\r\n var myText = (txtarea.value).substring(startPos, endPos);\r\n if(!myText) { myText=sampleText;}\r\n if(myText.charAt(myText.length - 1) == \" \"){ // exclude ending space char, if any\r\n subst = tagOpen + myText.substring(0, (myText.length - 1)) + tagClose + \" \";\r\n } else {\r\n subst = tagOpen + myText + tagClose;\r\n }\r\n txtarea.value = txtarea.value.substring(0, startPos) + subst +\r\n txtarea.value.substring(endPos, txtarea.value.length);\r\n txtarea.focus();\r\n \r\n //set new selection\r\n if(replaced){\r\n var cPos=startPos+(tagOpen.length+myText.length+tagClose.length);\r\n txtarea.selectionStart=cPos;\r\n txtarea.selectionEnd=cPos;\r\n }else{\r\n txtarea.selectionStart=startPos+tagOpen.length; \r\n txtarea.selectionEnd=startPos+tagOpen.length+myText.length;\r\n }\r\n txtarea.scrollTop=scrollTop;\r\n // All others\r\n } else {\r\n var copy_alertText=alertText;\r\n var re1=new RegExp(\"\\\\$1\",\"g\");\r\n var re2=new RegExp(\"\\\\$2\",\"g\");\r\n copy_alertText=copy_alertText.replace(re1,sampleText);\r\n copy_alertText=copy_alertText.replace(re2,tagOpen+sampleText+tagClose);\r\n\r\n if (sampleText) {\r\n text=prompt(copy_alertText);\r\n } else {\r\n text=\"\";\r\n }\r\n if(!text) { text=sampleText;}\r\n text=tagOpen+text+tagClose;\r\n //append to the end\r\n txtarea.value += \"\\n\"+text;\r\n\r\n // in Safari this causes scrolling\r\n if(!is_safari) {\r\n txtarea.focus();\r\n }\r\n\r\n }\r\n // reposition cursor if possible\r\n if (txtarea.createTextRange){\r\n txtarea.caretPos = document.selection.createRange().duplicate();\r\n }\r\n}", "title": "" }, { "docid": "f2734510c1960a0b59865bd124986293", "score": "0.5713682", "text": "replace(replacement) {\n\t\tconst startpos = this.element.selectionStart;\n\t\tconst fullStuff = this.getText();\n\t\tlet val = fullStuff.substring(0, startpos);\n\t\tval = val.replace(this.expressions[this.matched], `$1${ this.rules[this.matched].token }${ replacement }`);\n\t\tconst posfix = fullStuff.substring(startpos, fullStuff.length);\n\t\tconst separator = posfix.match(/^\\s/) ? '' : ' ';\n\t\tconst finalFight = val + separator + posfix;\n\t\tthis.setText(finalFight);\n\t\tconst newPosition = val.length + 1;\n\t\tthis.element.setSelectionRange(newPosition, newPosition);\n\t}", "title": "" }, { "docid": "7bfb88f99fd5d05aaa0a6d2fe6cf0900", "score": "0.5711514", "text": "function simpleEdit ()\n {\n var text = getText(), start = this.code[0], end = this.code[1];\n\n if (text) {\n replaceText(start + text + end);\n }\n else {\n replaceText(start + this.text + end, start.length, end.length);\n }\n }", "title": "" }, { "docid": "a775d9c27953ec6cac58b56a44669fb1", "score": "0.5688148", "text": "@action\n setStyledMentionTextReference(element) {\n this.replacementTextEl = element;\n }", "title": "" }, { "docid": "84044e14ea54393b316a2322375b744b", "score": "0.568415", "text": "changeText(newText) {\n text.kill();\n text = game.add.text(0, 0, newText, style);\n text.setShadow(3, 3, 'rgba(0,0,0,0.5)', 2);\n text.setTextBounds(0, 0, 1200, 100);\n\n }", "title": "" }, { "docid": "3fd80b58c0c830feb35919f3c8bf4df7", "score": "0.5678776", "text": "insertAt(str){\n \n let startPos = this.HTMLElement.selectionStart;\n let endPos = this.HTMLElement.selectionEnd;\n\n this.HTMLElement.value = this.HTMLElement.value.substring(0, startPos) + str + this.HTMLElement.value.substring(endPos, this.HTMLElement.value.length);\n\n }", "title": "" }, { "docid": "3fd80b58c0c830feb35919f3c8bf4df7", "score": "0.5678776", "text": "insertAt(str){\n \n let startPos = this.HTMLElement.selectionStart;\n let endPos = this.HTMLElement.selectionEnd;\n\n this.HTMLElement.value = this.HTMLElement.value.substring(0, startPos) + str + this.HTMLElement.value.substring(endPos, this.HTMLElement.value.length);\n\n }", "title": "" }, { "docid": "62b2ab72a045c719c0ade61d3c660efc", "score": "0.5657535", "text": "function setText(textElmt, str) {\n\t\t\ttextElmt.textContent = str;\n\t\t\tvar box = textElmt.getBBox();\n\t\t\tvar rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n\t\t\t//rect.style(\"fill\",\"red\");\n\t\t\trect.setAttribute('fill', 'transparent');\n\t\t\trect.setAttribute(\"border\", \"1px solid #cccccc\");\n\n\t\t\tfor (var n in box) {\n\t\t\t\trect.setAttribute(n, box[n]);\n\t\t\t}\n\t\t\ttextElmt.parentNode.insertBefore(rect, textElmt);\n\t\t}", "title": "" }, { "docid": "24f27a93aea03b8e0557005bf53f3400", "score": "0.5656164", "text": "function insertText(input, text) {\n // Most of the used APIs only work with the field selected\n input.focus();\n // IE 8-10\n if (document.selection) {\n var ieRange = document.selection.createRange();\n ieRange.text = text;\n // Move cursor after the inserted text\n ieRange.collapse(false /* to the end */);\n ieRange.select();\n return;\n }\n // Webkit + Edge\n var isSuccess = document.execCommand(\"insertText\", false, text);\n if (!isSuccess) {\n var start = input.selectionStart;\n var end = input.selectionEnd;\n // Firefox (non-standard method)\n if (typeof input.setRangeText === \"function\") {\n input.setRangeText(text);\n }\n else {\n if (canManipulateViaTextNodes(input)) {\n var textNode = document.createTextNode(text);\n var node = input.firstChild;\n // If textarea is empty, just insert the text\n if (!node) {\n input.appendChild(textNode);\n }\n else {\n // Otherwise we need to find a nodes for start and end\n var offset = 0;\n var startNode = null;\n var endNode = null;\n // To make a change we just need a Range, not a Selection\n var range = document.createRange();\n while (node && (startNode === null || endNode === null)) {\n var nodeLength = node.nodeValue.length;\n // if start of the selection falls into current node\n if (start >= offset && start <= offset + nodeLength) {\n range.setStart((startNode = node), start - offset);\n }\n // if end of the selection falls into current node\n if (end >= offset && end <= offset + nodeLength) {\n range.setEnd((endNode = node), end - offset);\n }\n offset += nodeLength;\n node = node.nextSibling;\n }\n // If there is some text selected, remove it as we should replace it\n if (start !== end) {\n range.deleteContents();\n }\n // Finally insert a new node. The browser will automatically\n // split start and end nodes into two if necessary\n range.insertNode(textNode);\n }\n }\n else {\n // For the text input the only way is to replace the whole value :(\n var value = input.value;\n input.value = value.slice(0, start) + text + value.slice(end);\n }\n }\n // Correct the cursor position to be at the end of the insertion\n input.setSelectionRange(start + text.length, start + text.length);\n // Notify any possible listeners of the change\n var e = document.createEvent(\"UIEvent\");\n e.initEvent(\"input\", true, false);\n input.dispatchEvent(e);\n }\n}", "title": "" }, { "docid": "94596d83b32546ab0fb14bebcb5aeffd", "score": "0.5645116", "text": "function onChangeText(val) {\n if (!gSelectedText) return;\n gSelectedText.txt = val;\n renderTexts();\n}", "title": "" }, { "docid": "f37aeb60d9652ece829c471a01b13f06", "score": "0.56449616", "text": "execute(){\n if(this.editor.isTextSelected()){\n this.editor.execCommand('strikeThrough');\n }\n }", "title": "" }, { "docid": "8730416374148cc5322b544f6606bed5", "score": "0.5640429", "text": "async _insertTextResult(text) {\n this.activeNode.focus();\n // @todo seems to insert at the end always\n SuperDaemonInstance.activeRange.setStart(this.activeNode, 0);\n SuperDaemonInstance.activeRange.collapse(true);\n SuperDaemonInstance.activeSelection.removeAllRanges();\n SuperDaemonInstance.activeSelection.addRange(\n SuperDaemonInstance.activeRange\n );\n SuperDaemonInstance.activeSelection.selectAllChildren(this.activeNode);\n SuperDaemonInstance.activeSelection.collapseToEnd();\n setTimeout(() => {\n if (this.activeNode.textContent == \"\") {\n this.activeNode.textContent = text;\n } else {\n document.execCommand(\"insertHTML\", false, text);\n }\n }, 0);\n }", "title": "" }, { "docid": "2567c200bb157c6092a40a631c35d774", "score": "0.5638855", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "13c45ac5711a733b1bcef68fe9dba5aa", "score": "0.56272906", "text": "function replace(range, newText) {\n return {\n range: range,\n newText: newText\n };\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "f1071874164a3dee8fa11bef63947367", "score": "0.5616836", "text": "function replace(range, newText) {\r\n return { range: range, newText: newText };\r\n }", "title": "" }, { "docid": "776fe157899dc2ba0d8d0c2503781677", "score": "0.56083465", "text": "function myInsertTags(start, end, inner/*, other*/) {\n$('#wpUploadDescription').textSelection('encapsulateSelection', {pre:start, post:end, peri:inner});\n}", "title": "" }, { "docid": "84a1cd92a2bc07ad3c4c368284749fd3", "score": "0.56070584", "text": "_toggleInlineFont (newKey) {\n const {editorState} = this.state\n const selectionState = editorState.getSelection()\n const prevStyle = editorState.getCurrentInlineStyle()\n // Clear fonts first\n let newContentState = FONTS.reduce((contentState, font) => {\n return Modifier.removeInlineStyle(contentState, selectionState, font.key)\n }, editorState.getCurrentContent())\n // Set font unless we already had it\n if (!prevStyle.has(newKey)) {\n newContentState = Modifier.applyInlineStyle(newContentState, selectionState, newKey)\n }\n // Update editor\n this.onChange(\n EditorState.push(editorState, newContentState, 'change-inline-style')\n )\n }", "title": "" }, { "docid": "2f02fadbf543c47ab2f930a4f0c10e0f", "score": "0.559415", "text": "function replace(range, newText) {\n return { range: range, newText: newText };\n }", "title": "" }, { "docid": "2f02fadbf543c47ab2f930a4f0c10e0f", "score": "0.559415", "text": "function replace(range, newText) {\n return { range: range, newText: newText };\n }", "title": "" }, { "docid": "2f02fadbf543c47ab2f930a4f0c10e0f", "score": "0.559415", "text": "function replace(range, newText) {\n return { range: range, newText: newText };\n }", "title": "" }, { "docid": "b9e3b35c221a0e80d9688051ad5d192d", "score": "0.5594021", "text": "function insert_textbox(element,text,sel,plain_insert,html)\n{\n\tif (typeof plain_insert=='undefined') plain_insert=false;\n\tif (typeof html=='undefined') html=null;\n\n\tif (is_wysiwyg_field(element))\n\t{\n\t\tvar editor=window.wysiwyg_editors[element.id];\n\n\t\tvar insert='';\n\t\tif (plain_insert)\n\t\t{\n\t\t\tinsert=get_selected_html(editor)+(html?html:escape_html(text).replace(new RegExp('\\\\\\\\n','gi'),'<br />'));\n\t\t} else\n\t\t{\n\t\t\tvar url=maintain_theme_in_link('{$FIND_SCRIPT_NOHTTP;,comcode_convert}?semihtml=1&is_semihtml=1'+keep_stub());\n\t\t\tif (window.location.href.indexOf('topics')!=-1) url+='&forum_db=1';\n\t\t\tvar post='data='+window.encodeURIComponent(text.replace(new RegExp(String.fromCharCode(8203),'g'),''));\n\t\t\tpost=modsecurity_workaround_ajax(post);\n\t\t\tvar request=do_ajax_request(url,null,post);\n\t\t\tif ((request.responseXML) && (request.responseXML.documentElement.getElementsByTagName('result')[0]))\n\t\t\t{\n\t\t\t\tvar result_tags=request.responseXML.documentElement.getElementsByTagName('result');\n\t\t\t\tvar result=result_tags[0];\n\t\t\t\tinsert=merge_text_nodes(result.childNodes).replace(/\\s*$/,'');\n\t\t\t}\n\t\t}\n\n\t\tvar before=editor.getData();\n\n\t\ttry\n\t\t{\n\t\t\teditor.focus(); // Needed on some browsers\n\t\t\tvar selected_html=get_selected_html(editor);\n\n\t\t\tif ((editor.getSelection()) && (editor.getSelection().getStartElement().getName()=='kbd')) // Danger Danger - don't want to insert into another Comcode tag. Put it after. They can cut+paste back if they need.\n\t\t\t{\n\t\t\t\teditor.document.getBody().appendHtml(insert);\n\t\t\t} else\n\t\t\t{\n\t\t\t\t// Ideally we use insertElement, as insertHtml may break up the parent tag (we want it to nest nicely)\n\t\t\t\tvar element_for_inserting=window.CKEDITOR.dom.element.createFromHtml(insert);\n\t\t\t\tif (typeof element_for_inserting.getName=='undefined')\n\t\t\t\t{\n\t\t\t\t\teditor.insertHtml(insert);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\teditor.insertElement(element_for_inserting);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar after=editor.getData();\n\t\t\tif (after==before) throw 'Failed to insert';\n\n\t\t\tfind_tags_in_editor(editor,element);\n\t\t}\n\t\tcatch (e) // Sometimes happens on Firefox in Windows, appending is a bit tamer (e.g. you cannot insert if you have the start of a h1 at cursor)\n\t\t{\n\t\t\tvar after=editor.getData();\n\t\t\tif (after==before) // Could have just been a window.scrollBy popup-blocker exception, so only do this if the op definitely failed\n\t\t\t\teditor.document.getBody().appendHtml(insert);\n\t\t}\n\n\t\teditor.updateElement();\n\n\t\treturn;\n\t}\n\n\tvar from=element.value.length,to;\n\n\telement.focus();\n\n\tif (typeof sel=='undefined') sel=null;\n\tif (sel===null) sel=document.selection?document.selection:null;\n\n\tif (typeof element.selectionEnd!='undefined') // Mozilla style\n\t{\n\t\tfrom=element.selectionStart;\n\t\tto=element.selectionEnd;\n\n\t\tvar start=element.value.substring(0,from);\n\t\tvar end=element.value.substring(to,element.value.length);\n\n\t\telement.value=start+element.value.substring(from,to)+text+end;\n\t\tset_selection_range(element,from+text.length,from+text.length);\n\t} else\n\tif (sel) // IE style\n\t{\n\t\tvar ourRange=sel.createRange();\n\t\tif ((ourRange.moveToElementText) || (ourRange.parentElement()==element))\n\t\t{\n\t\t\tif (ourRange.parentElement()!=element) ourRange.moveToElementText(element);\n\t\t\tourRange.text=ourRange.text+text;\n\t\t} else\n\t\t{\n\t\t\telement.value+=text;\n\t\t\tfrom+=2;\n\t\t\tset_selection_range(element,from+text.length,from+text.length);\n\t\t}\n\t}\n\telse\n\t{\n\t\t// :(\n\t\tfrom+=2;\n\t\telement.value+=text;\n\t\tset_selection_range(element,from+text.length,from+text.length);\n\t}\n}", "title": "" }, { "docid": "408b9d8b4369a7937ae2bdf3cd83b397", "score": "0.5580099", "text": "setTextToUnderline() {\n document.execCommand('underline');\n this.editableDiv.focus();\n _RibsWysiwygUtils__WEBPACK_IMPORTED_MODULE_0__[\"default\"].refreshCaretLocationDiv();\n }", "title": "" }, { "docid": "b7ef0b33e86cb0bcdaf962ec52f0ae21", "score": "0.5578384", "text": "function deleteSelectedText() {\r\n if (selectionObj.rs == selectionObj.re) {\r\n var tempStr = editorContent[selectionObj.rs];\r\n editorContent[selectionObj.rs] = tempStr.substring(0, selectionObj.cs) + \r\n tempStr.substring(selectionObj.ce, tempStr.length);\r\n }\r\n else {\r\n var contentStack = []\r\n for (var i = editorContent.length - 1; i >= selectionObj.re; i--) {\r\n contentStack.push(editorContent.pop());\r\n }\r\n for (var i = selectionObj.rs + 1; i < selectionObj.re; i++) {\r\n editorContent.pop();\r\n getCurrentRowDiv(rowCount - 1).remove();\r\n remLineNumber();\r\n }\r\n var tempStr = editorContent[selectionObj.rs];\r\n editorContent[selectionObj.rs] = tempStr.substring(0, selectionObj.cs);\r\n // Upper Line Above\r\n \r\n // Bottom Line Below\r\n tempStr = contentStack.pop();\r\n editorContent[selectionObj.rs] += tempStr.substring(selectionObj.ce, tempStr.length);\r\n while (contentStack.length > 0) {\r\n editorContent.push(contentStack.pop());\r\n }\r\n getCurrentRowDiv(rowCount - 1).remove();\r\n remLineNumber();\r\n }\r\n\r\n // Move Cursor;\r\n var tabs = countTabs(editorContent[selectionObj.rs], 0, selectionObj.cs);\r\n moveCursorToY(charH * selectionObj.rs, true);\r\n moveCursorToX(charW * (selectionObj.cs - tabs + tabs * tabLen), true);\r\n currRow = selectionObj.rs;\r\n currCol = selectionObj.cs;\r\n\r\n removeAllSelections();\r\n resetSelections();\r\n updateAll();\r\n}", "title": "" }, { "docid": "6f549d6c6ff18f89126efd27f1a4b690", "score": "0.5572809", "text": "function changeTextByQsel(qSelector, theText){\n let x = document.querySelector(qSelector);\n x.innerHTML = theText;\n }", "title": "" }, { "docid": "60a9303a86fadb0ddba3af5dde066824", "score": "0.5560358", "text": "function updateSelection(editorState,selection,forceSelection){return EditorState.set(editorState,{selection:selection,forceSelection:forceSelection,nativelyRenderedContent:null,inlineStyleOverride:null});}", "title": "" }, { "docid": "1c1613e4a43cc0045845c075c670a90e", "score": "0.5556605", "text": "replaceFontBySpan(fontElement, fontSize) {\n const parentDiv = fontElement.parentNode;\n const span = document.createElement('span');\n span.appendChild(document.createTextNode(fontElement.textContent));\n span.style.fontSize = fontSize;\n\n parentDiv.replaceChild(span, fontElement);\n\n const range = document.createRange();\n const sel = window.getSelection();\n range.selectNodeContents(this.editableDiv);\n range.collapse(false);\n sel.removeAllRanges();\n sel.addRange(range);\n this.editableDiv.focus();\n range.detach();\n }", "title": "" }, { "docid": "c33ee06857c5aca35ec53805708ec63b", "score": "0.5552799", "text": "replace(before, after) {\n // Grab the start/end of the currently selected text\n let selectionStart = this.textarea.selectionStart;\n let selectionEnd = this.textarea.selectionEnd;\n\n const indexOfBeforeText = this.textarea.value.indexOf(before);\n\n if (indexOfBeforeText < selectionStart) {\n const changeInLength = after.length - before.length;\n\n selectionStart += changeInLength;\n selectionEnd += changeInLength;\n }\n\n // When we perform the replacement, the cursor jumps to the end of the textarea\n this.textarea.value = this.textarea.value.replace(before, after);\n\n // Reset the selection to what it was before\n this.textarea.setSelectionRange(selectionStart, selectionEnd);\n }", "title": "" } ]
f52a8c1c159bc69cfff157c999c3dada
Bias the autocomplete object to the user's geographical location, as supplied by the browser's 'navigator.geolocation' object.
[ { "docid": "bbdea754683752d06833388a5b7ab886", "score": "0.67967707", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" } ]
[ { "docid": "073551cd078270063e7df9f6a7e5232a", "score": "0.75784445", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = new google.maps.LatLng(\n position.coords.latitude, position.coords.longitude);\n autocompleteFrom.setBounds(new google.maps.LatLngBounds(geolocation,\n geolocation));\n userPosition.lat = position.coords.latitude;\n userPosition.long = position.coords.longitude;\n },handle_errors);\n }\n }", "title": "" }, { "docid": "09c00b4822f5400d41ad1f9c1ea34858", "score": "0.7441957", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = new google.maps.LatLng(\n position.coords.latitude, position.coords.longitude);\n autocomplete[0].setBounds(new google.maps.LatLngBounds(geolocation, \n geolocation));\n });\n }\n}", "title": "" }, { "docid": "ce5063a68a59ab17d3e8ac8b830cdec6", "score": "0.74167657", "text": "function geolocate() {\n\tif (navigator.geolocation) {\n\t\tnavigator.geolocation.getCurrentPosition(function(position) {\n\t\t\tvar geolocation = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);\n\t\t\tautocomplete.setBounds(new google.maps.LatLngBounds(geolocation, geolocation));\n\t\t});\n\t}\n}", "title": "" }, { "docid": "e25ab82f3241dbd9baa1df9c5d78bcbd", "score": "0.7386478", "text": "function geoLocation\n(\n) \n{\n if (navigator.geolocation)\n {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = new google.maps.LatLng(\n position.coords.latitude, position.coords.longitude);\n autocomplete.setBounds(new google.maps.LatLngBounds(geolocation,\n geolocation));\n });\n }\n}", "title": "" }, { "docid": "b1c98e4bd4986f1f709cdcf75e7e4944", "score": "0.69757074", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n // create a new area radius based from geolocator lat lng for faster accuracy and autocomplete\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n\n autocomplete.setBounds(circle.getBounds());\n\n });\n }\n}", "title": "" }, { "docid": "255c791dbbd5d0265dd0d9291ce12722", "score": "0.6879394", "text": "function geolocate () {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition((position) => {\n const geolocation = {\n 'lat': position.coords.latitude,\n 'lng': position.coords.longitude\n }\n const circle = new google.maps.Circle({\n 'center': geolocation,\n 'radius': position.coords.accuracy\n })\n autocomplete.setBounds(circle.getBounds())\n })\n }\n }", "title": "" }, { "docid": "ede2ccef67a23260a620c75dd8628bcd", "score": "0.6877206", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle(\n {center: geolocation, radius: position.coords.accuracy});\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "1764010c593f86301b5d807690755b86", "score": "0.6877181", "text": "function initGeoLocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n\t var geocoder = new google.maps.Geocoder();\t \n\t geocoder.geocode(\n\t\t {\n\t\t location: geolocation\n\t\t },\n\t\t function(results, status) {\t\t \n\t\t if (status === \"OK\") {\n\t\t\t if (results[0]) {\t\n $('#autocomplete').val(results[0].formatted_address);\n $('#latitude').val(geolocation.lat);\n $('#longitude').val(geolocation.lng);\n if($('#range-value').length>0)\n setGeolocation($('#range-value').val());\n\t\t\t } \n\t\t } else {\n showError(\"Geocoder failed due to: \" + status);\n\t\t }\n\t\t }\n\t ); \n });\n }\n}", "title": "" }, { "docid": "0f5dac4f38a3ce531daeb57658b0ce95", "score": "0.68504536", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({ center: geolocation, radius: position.coords.accuracy });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "75598e8cb280cf4f4cc13bf9db1fc7f8", "score": "0.6838572", "text": "function geolocate() {\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(function(position) {\r\n var geolocation = {\r\n lat: position.coords.latitude,\r\n lng: position.coords.longitude\r\n };\r\n var circle = new google.maps.Circle({\r\n center: geolocation,\r\n radius: position.coords.accuracy\r\n });\r\n autocomplete.setBounds(circle.getBounds());\r\n });\r\n }\r\n }", "title": "" }, { "docid": "ef523faa7f1f5318b72dcaff1a365303", "score": "0.68315285", "text": "function geolocate() {\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(position => {\r\n const geolocation = {\r\n lat: position.coords.latitude,\r\n lng: position.coords.longitude\r\n };\r\n const circle = new google.maps.Circle({\r\n center: geolocation,\r\n radius: position.coords.accuracy\r\n });\r\n autocomplete.setBounds(circle.getBounds());\r\n });\r\n }\r\n}", "title": "" }, { "docid": "67b26cad3f09ac89935afe8582438b16", "score": "0.6829932", "text": "function geolocate() {\n if (navigator.geolocation) { \n\n navigator.geolocation.getCurrentPosition(function (position) {\n\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude,\n\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n\n }\n }", "title": "" }, { "docid": "4c93477fd888ac7d32d2a51cbec0b6d2", "score": "0.68289065", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle(\n {center: geolocation, radius: position.coords.accuracy});\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "dc25b59186db24ba7c52a3c40d8aa366", "score": "0.6826734", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" }, { "docid": "dc25b59186db24ba7c52a3c40d8aa366", "score": "0.6826734", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" }, { "docid": "dc25b59186db24ba7c52a3c40d8aa366", "score": "0.6826734", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" }, { "docid": "a8b8b9ec4e3cf36d147b7e120e979be0", "score": "0.6814067", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "a8b8b9ec4e3cf36d147b7e120e979be0", "score": "0.6814067", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "a8b8b9ec4e3cf36d147b7e120e979be0", "score": "0.6814067", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "a8b8b9ec4e3cf36d147b7e120e979be0", "score": "0.6814067", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "463c1970464bcc9601999a1b36c5a6fd", "score": "0.6811072", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n const geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n const circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "a29b6586d7eb4124d6fa074c7f08b648", "score": "0.68067634", "text": "function geolocate() {\nif (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n}\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "288224cee6a2266e26293282cfb91b9d", "score": "0.6797795", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "39a8dcd95aef36383450c7a9dc86d1a1", "score": "0.67972386", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n };\n}", "title": "" }, { "docid": "451cbc42d728eb57855c62c275d02ed1", "score": "0.6778758", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n\t\n\t\n\t\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n\t\t\n\t\t\n\t\t\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "35100dcb63971fb1efcc7f4bbfaff86c", "score": "0.67746395", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" }, { "docid": "9a0a5e51204ef1735102de9620783e57", "score": "0.6770235", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n }", "title": "" }, { "docid": "8e457485538dcc9e3f649aac96d321ed", "score": "0.67684275", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "8e457485538dcc9e3f649aac96d321ed", "score": "0.67684275", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "8e457485538dcc9e3f649aac96d321ed", "score": "0.67684275", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "8e457485538dcc9e3f649aac96d321ed", "score": "0.67684275", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "155d9ba4a806adfb96903bee217c768e", "score": "0.67495126", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "155d9ba4a806adfb96903bee217c768e", "score": "0.67495126", "text": "function geolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function(position) {\n var geolocation = {\n lat: position.coords.latitude,\n lng: position.coords.longitude\n };\n var circle = new google.maps.Circle({\n center: geolocation,\n radius: position.coords.accuracy\n });\n autocomplete.setBounds(circle.getBounds());\n });\n }\n}", "title": "" }, { "docid": "23a4f128f43ed5681133fdcf854f4941", "score": "0.6721113", "text": "function geolocate() {\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(function(position) {\r\n var geolocation = {\r\n lat: position.coords.latitude,\r\n lng: position.coords.longitude\r\n };\r\n var circle = new google.maps.Circle({\r\n center: geolocation,\r\n radius: position.coords.accuracy\r\n });\r\n autocomplete.setBounds(circle.getBounds());\r\n });\r\n }\r\n}", "title": "" }, { "docid": "43ea8485028206854b70b6ce645178c2", "score": "0.670954", "text": "function geolocate() {\r\n\tif (navigator.geolocation) {\r\n\t\tnavigator.geolocation.getCurrentPosition(function(position) {\r\n\t\t\tvar geolocation = {\r\n\t\t\t\tlat: position.coords.latitude,\r\n\t\t\t\tlng: position.coords.longitude\r\n\t\t\t};\r\n\t\t\tvar circle = new google.maps.Circle({\r\n\t\t\t\tcenter: geolocation,\r\n\t\t\t\tradius: position.coords.accuracy\r\n\t\t\t});\r\n\t\t\tautocomplete.setBounds(circle.getBounds());\r\n\t\t});\r\n\t}\r\n}", "title": "" }, { "docid": "37bb65f40c739ca6d3199eb3bcd433af", "score": "0.65918267", "text": "function setupLocationAutocomplete() {\n\n if (!window.google) {\n // Google Places API not loaded\n return;\n }\n\n var form = $(\"#change-location-form\");\n\n var input = form.find('[name=\"place\"]');\n if (!input.length) {\n return;\n }\n var autocomplete = createPlaceAutocompleteSelectFirst(input[0]);\n\n input.tooltip();\n\n input.keypress(function(event) {\n return event.keyCode !== 13;\n });\n\n // When user selects an entry in the list kick in the magic\n google.maps.event.addListener(autocomplete, 'place_changed', function() {\n var place = autocomplete.getPlace();\n if (!place.geometry) {\n return;\n }\n\n var address = window.splitLocation(place);\n\n // Pure country code lookup, quick jump to country listing\n if (address.countryCode && !address.city && !address.streetAddress) {\n\n // Store the location for the server-side processing\n storeLocation(address);\n window.location = \"/country/\" + address.countryCode.toUpperCase();\n return;\n }\n\n if (window.customLocationGoToHandler) {\n window.customLocationGoToHandler(place, address);\n return;\n }\n\n submitChangeLocation(address);\n });\n }", "title": "" }, { "docid": "6d4c8cf37cca4f0e23d9f2a377680175", "score": "0.655377", "text": "function geolocate() {\n\n\tif ( navigator.geolocation ) {\n\t\tnavigator.geolocation.getCurrentPosition(function(position) {\n\t\t\tvar geolocation = {\n\n\t\t\t\tlat: position.coords.latitude,\n\t\t\t\tlng: position.coords.longitude\n\t\t\t};\n\t\t\tvar circle = new google.maps.Circle({\n\t\t\t\tcenter: geolocation,\n\t\t\t\tradius: position.coords.accuracy\n\t\t\t});\n\t\t\tautoComplete.setBounds(circle.getBounds());\n\t\t});\n\n\t}\n}", "title": "" }, { "docid": "d24c9355179ca0da9f0a2f4eb19799b9", "score": "0.63176477", "text": "function onDemandGeolocate() {\r\n\r\n document.getElementById(\"main_body\").classList.add(\"loading\");\r\n\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(position => {\r\n document.getElementById(\"autocomplete\").value = '';\r\n autoQueryMap(position.coords.latitude, position.coords.longitude);\r\n });\r\n }\r\n\r\n document.getElementById(\"main_body\").classList.remove(\"loading\");\r\n\r\n}", "title": "" }, { "docid": "e5d51586f4e667646c1a79411bddacbe", "score": "0.624959", "text": "_getLocation (searchTerm) {\n const { user, dispatch } = this.props\n if (navigator.geolocation) {\n var startPos\n var geoSuccess = function (position) {\n startPos = position\n console.log(startPos)\n dispatch(getBusinessesFromYelp(startPos, searchTerm, true))\n }\n navigator.geolocation.getCurrentPosition(geoSuccess)\n } else {\n console.log('Geolocation is not supported for this Browser/OS version yet.')\n }\n }", "title": "" }, { "docid": "1b1e662ec2ae54a002de2bd5df309848", "score": "0.62318355", "text": "function initCoords() { //geolocalizza l'utente o apre la mappa a Bologna in assenza della posizione\n\tLuoghiAlCaricamento = getJson();\n\tnavigator.geolocation.getCurrentPosition(initAutocomplete, function (error) { //chiama initAutocodramplete con la tua posizione, senza consenso alla posizione ti porta a bologna\n\t\tif (error.code == error.PERMISSION_DENIED) {\n\t\t\tvar position = {\n\t\t\t\tcoords: {\n\t\t\t\t\tlatitude: 44.4936714, //posizione di Bologna\n\t\t\t\t\tlongitude: 11.3430347\n\t\t\t\t}\n\t\t\t};\n\t\t\tinitAutocomplete(position);\n\t\t}\n\t});\n\n\n}", "title": "" }, { "docid": "6ab8dba32151b813e9a5d56bbdbd5a65", "score": "0.623076", "text": "autocompleteByCoords () {\n const lnglatArr = this.localModel.getLnglat()\n const lng = lnglatArr[0]\n const lat = lnglatArr[1]\n // If the app is in low resolution mode we want less results\n const size = this.$lowResolution ? 5 : 10\n\n this.eventBus.$emit('showLoading', true)\n const context = this\n ReverseGeocode(lat, lng, size).then(places => {\n const place = new Place(lng, lat)\n place.setSuggestions(places)\n context.localModel = place\n context.focused = true\n this.focusIsAutomatic = false\n }).catch(response => {\n console.log(response)\n }).finally(() => {\n context.searching = false\n context.eventBus.$emit('showLoading', false)\n })\n }", "title": "" }, { "docid": "9d415e200948592d932cd8b0df3e3a8f", "score": "0.61976814", "text": "function initiate_geolocation() {\n\tnavigator.geolocation.getCurrentPosition(handle_geolocation_query);\n}", "title": "" }, { "docid": "d63751569c2a41640c8b43d96600b621", "score": "0.612423", "text": "getLocation(){\n let lat = 43.6532 //defaults to Toronto if user rejects geolocation\n let lng = -79.3832\n if(\"geolocation\" in navigator){\n navigator.geolocation.getCurrentPosition((position)=>{\n lat = position.coords.latitude\n lng = position.coords.longitude\n })\n }\n \n let location = lat + \",\" + lng\n return location\n }", "title": "" }, { "docid": "1911feaadeb0cdcf672a2b33c5f3b8dd", "score": "0.612414", "text": "function doGeolocate() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(\n function(position) {\n $('#searchform input[name=lat]').val(position.coords.latitude.toFixed(6));\n $('#searchform input[name=long]').val(position.coords.longitude.toFixed(6));\n $('#searchform').submit();\n }\n );\n }\n}", "title": "" }, { "docid": "e55baca3a02baf27286b709cc7623991", "score": "0.6097417", "text": "function setAutocomplete() {\n var originInput = document.getElementById('origin-input');\n var destinationInput = document.getElementById('destination-input');\n\n //define a center and circle for our autocomplete search, this makes it so that it's biased toward this area when\n //searching for a place name\n var center = new google.maps.LatLng(53.33306, -6.24889);\n var circle = new google.maps.Circle({\n center: center,\n radius: 10000\n });\n //setting up the autcomplete and adding the bound circle of 10KM for suggestions\n var originAutocomplete = new google.maps.places.Autocomplete(originInput);\n var destinationAutocomplete = new google.maps.places.Autocomplete(destinationInput);\n originAutocomplete.setBounds(circle.getBounds());\n destinationAutocomplete.setBounds(circle.getBounds());\n this.setupPlaceChangedListener(originAutocomplete, 'ORIG');\n this.setupPlaceChangedListener(destinationAutocomplete, 'DEST');\n var marker = new google.maps.Marker({position: dublin, map: map});\n\n}", "title": "" }, { "docid": "4024dd79fc18f77e9f039d70ca51a8a6", "score": "0.60836565", "text": "setLocation(location){\n ptorHelper.clearAndSetValue(this.locationTextField, location);\n const suggestion = this.form.element(by.xpath(`//li[starts-with(@data-label, '${location}')]`));\n ptorHelper.waitForElement(suggestion, 5000);\n suggestion.click();\n // We need this action to loose focus from selected suggestion option element:\n this.form.click();\n }", "title": "" }, { "docid": "660589f426721b20f66aef3a556e2615", "score": "0.60634494", "text": "function setAutocompleteCountry() {\n let targetCountry = selectTarget.value.split(\",\");\n let targetCoordinates = { lat: parseFloat(targetCountry[2]), lng: parseFloat(targetCountry[1]) };\n if (targetCountry[0] !== \"all\") {\n repositionMap(targetCoordinates, true);\n }\n clearField();\n if (targetCountry === \"all\") {\n autocomplete.setComponentRestrictions({ country: [] });\n } else {\n autocomplete.setComponentRestrictions({ country: targetCountry[0] });\n }\n}", "title": "" }, { "docid": "fb3620d64ea676cdabd37ce5ecab1be9", "score": "0.60111946", "text": "function autofill_address() {\n\tvar address = new google.maps.places.Autocomplete((document.getElementById('search_location')), { types: ['geocode'] });\n}", "title": "" }, { "docid": "8a3bdb96ea327cd6752fb8605643c4ae", "score": "0.6007825", "text": "function geolocateUserForDirectionsInput($input) {\n basicGeolocate();\n isFromGeolocation = true;\n var userLocation = LAST_KNOWN_LOCATION;\n $input.val(userLocation.lat + ', ' + userLocation.lng);\n setDirectionsInputLngLat($input, userLocation);\n}", "title": "" }, { "docid": "4c2e41c97b85233dffc622af3db2fc64", "score": "0.59919083", "text": "function userLocation() {\n map.locate({setView: true, maxZoom: 15});\n}", "title": "" }, { "docid": "89cdd3f628940943566ecaa80ac8b4be", "score": "0.5981525", "text": "function googleApiSetUserGeoLocation() {\n\tif ( navigator.geolocation ) {\n\n\t\tnavigator.geolocation.getCurrentPosition(function(position) {\n \t\tGOOGLE_API_GEOLOCATION = {\n \t\tlat: position.coords.latitude,\n \t\tlng: position.coords.longitude\n \t\t};\n\n \t\tconsole.log(\"User Geolocation found using navigator geolocation\");\t\n\t\t\tconsole.log(\"Latitude : \" + Number(GOOGLE_API_GEOLOCATION.lat));\n\t\t\tconsole.log(\"Longitude : \" + Number(GOOGLE_API_GEOLOCATION.lng));\n\n\t\t\tGOOGLE_API_MAP.setCenter(GOOGLE_API_GEOLOCATION);\n\t\t\tGOOGLE_API_MAP.setZoom(15);\n\n\t\t\taddUserGeolocationOnMap();\n \t});\n } else {\n \t$.getJSON(\"http://ipinfo.io\", function(ipinfo){\n\t\t\tvar latLong = ipinfo.loc.split(\",\");\n\t\t\tGOOGLE_API_GEOLOCATION = {\n\t\t\t\tlat: Number(latLong[0]), \n\t\t\t\tlng: Number(latLong[1])\n\t\t\t};\n\n\t\t\tconsole.log(\"User Geolocation found using iponfo.loc\");\t\n\t\t\tconsole.log(\"Latitude : \" + Number(GOOGLE_API_GEOLOCATION.lat));\n\t\t\tconsole.log(\"Longitude : \" + Number(GOOGLE_API_GEOLOCATION.lng));\n\n\t\t\tGOOGLE_API_MAP.setCenter(GOOGLE_API_GEOLOCATION);\n\t\t\tGOOGLE_API_MAP.setZoom(15);\n\n\t\t\taddUserGeolocationOnMap();\n\t\t});\n\t}\n}", "title": "" }, { "docid": "c4658f3d5e257a290e8d278a68b8dcf1", "score": "0.5962661", "text": "function autoComplete() {\r\n search = document.createElement(\"input\");\r\n search.id = \"locationField\";\r\n var auto = new google.maps.places.Autocomplete(search);\r\n result.appendChild(search);\r\n //Check for manually input location and display map\r\n google.maps.event.addListener(auto, 'place_changed',\r\n function () {\r\n var place = auto.getPlace();\r\n var lat = place.geometry.location.lat();\r\n var long = place.geometry.location.lng();\r\n getPostcode(lat, long);\r\n }\r\n );\r\n }", "title": "" }, { "docid": "5608f84de0b0ab22fca07790ce4f8af0", "score": "0.5955352", "text": "function grabAddress() {\n var place = autocomplete.getPlace();\n var latLng = place.geometry.location;\n var longitude = place.geometry.location.B;\n var latitude = place.geometry.location.k;\n console.log(\"Latitude: \" + latitude);\n console.log(\"Longitude: \" + longitude);\n\n locationCollection.create({\n latitude: latitude,\n longitude: longitude\n });\n\n placeMarker( latLng );\n }", "title": "" }, { "docid": "2fef54c64c73f011d04b83eb9708380c", "score": "0.59276557", "text": "initAutocomplete() {\n let autocomplete = new google.maps.places.Autocomplete(\n /** @type {!HTMLInputElement} */(document.getElementById('autocomplete')),\n {types: ['geocode']});\n autocomplete.addListener('place_changed', this.updateLocation);\n this.autocomplete = autocomplete;\n }", "title": "" }, { "docid": "a0adcbaa171e389908775b9fd820dffb", "score": "0.59255356", "text": "_getLocation() {\n navigator.geolocation.getCurrentPosition(\n (position) => {\n var crd = position.coords;\n this.setState({\n location: {lat: crd.latitude, long: crd.longitude, city: null},\n located: true\n });\n },\n (error) => alert(error.message),\n {enableHighAccuracy: true, timeout: 10000, maximumAge: 0}\n );\n }", "title": "" }, { "docid": "7281f546b91efc9649460840a2c8a3c4", "score": "0.59160095", "text": "function onPlaceChanged() {\nvar place = autocomplete.getPlace();\nif (place.geometry) {\n map.panTo(place.geometry.location);\n map.setZoom(15);\n search();\n} else {\n document.getElementById('autocomplete').placeholder = 'Enter a city';\n}\n}", "title": "" }, { "docid": "a5eddacd4125ea42a6dd9a3eb5cf6f59", "score": "0.59150594", "text": "function getLocation() {\n navigator.geolocation.getCurrentPosition(function(position) {\n lat = position.coords.latitude;\n lng = position.coords.longitude;\n $(\"#breweryList > tbody\").empty();\n ajaxByLocation();\n initMap();\n logResults();\n })\n }", "title": "" }, { "docid": "dc294852079b2fa0722a55d96d7489f6", "score": "0.5896767", "text": "function setCityToUserLocation() {\n navigator.geolocation.getCurrentPosition(function(position) {\n var url = \"http://maps.googleapis.com/maps/api/geocode/json?latlng=\"\n + position.coords.latitude + \",\" + position.coords.longitude\n + \"&sensor=false\";\n $.get(url, function(data) {\n getLocality(data[\"results\"][0][\"address_components\"], setCity);\n });\n });\n}", "title": "" }, { "docid": "cb3e6fb3aa604476fbe18c40e357418c", "score": "0.586988", "text": "function biasResultsToDeliveryArea() {\n var rectangle = new google.maps.Rectangle({\n bounds: {\n north: 33.552,\n south: 33.432,\n east: -111.942,\n west: -112.050 }\n\n });\n\n autocomplete.setBounds(rectangle.getBounds());\n}", "title": "" }, { "docid": "d07f6f2ceb8ae36dbeef27c0e5005051", "score": "0.5869019", "text": "function getLocation() {\n navigator.geolocation.getCurrentPosition(showPosition);\n showPosition();\n }", "title": "" }, { "docid": "19528b9be2ad0a424c5a2206941fee2b", "score": "0.58574545", "text": "function setupLocationSearch() {\n if (navigator.geolocation) {\n var options = {\n enableHighAccuracy: true,\n timeout: 5000,\n maximumAge: 0\n };\n\n // get the location, display it and enable the submit button\n navigator.geolocation.getCurrentPosition((coords) => {\n showPosition(coords);\n enableSubmitButton();\n }, (error) => {\n console.error(error);\n }, options);\n }\n}", "title": "" }, { "docid": "1596b72b9c09e901c8f2b2d83e4fa510", "score": "0.58563167", "text": "function locationAD(query) {\n\t$.getJSON(\"https://geocoder.api.here.com/6.2/geocode.json?gen=9&searchtext=\" + query + \"&app_id=\" + APP_ID_HERE + \"&app_code=\" + APP_CODE_HERE, function (data) {\n\t\tvar lati = data[\"Response\"][\"View\"][0][\"Result\"][0][\"Location\"][\"DisplayPosition\"][\"Latitude\"];\n\t\tvar longi = data[\"Response\"][\"View\"][0][\"Result\"][0][\"Location\"][\"DisplayPosition\"][\"Longitude\"];\n\t\t$('#x').val(lati);\n\t\t$('#y').val(longi);\n\t});\n}", "title": "" }, { "docid": "4817aa5199f7ef0c70dfe82ff01cb7b3", "score": "0.5850281", "text": "function getLocation() {\n\tnavigator.geolocation.getCurrentPosition(showPosition);\n}", "title": "" }, { "docid": "31627abd74fe9bc38c7e812e733933c4", "score": "0.58483297", "text": "function getLocation(){\n if (navigator.geolocation) {\n // uses user location from device.\n navigator.geolocation.getCurrentPosition(function(position){\n userPos.lat = position.coords.latitude;\n userPos.lng = position.coords.longitude;\n $(document).trigger('positionFound');\n }, function(){\n locationFallback();\n });\n } else {\n locationFallback();\n };\n}", "title": "" }, { "docid": "846a5f579be4c558d0784d27c231d504", "score": "0.5836282", "text": "function getUserLocation(){\n navigator.geolocation.getCurrentPosition(showCoordinate);\n}", "title": "" }, { "docid": "b8a68153863a20c52a8759b1cd7a5ca5", "score": "0.58309036", "text": "function setAutocompleteCountry() {\n var country = document.getElementById('country').value;\n if (country == 'all') {\n autocomplete.setComponentRestrictions([]);\n map.setCenter({lat: 15, lng: 0});\n map.setZoom(2);\n } else {\n autocomplete.setComponentRestrictions({'country': country});\n map.setCenter(countries[country].center);\n map.setZoom(countries[country].zoom);\n }\n clearMarkers();\n }", "title": "" }, { "docid": "bb2d1e2468a2adad5fbb59131625f52c", "score": "0.58267653", "text": "function initiate_geolocation() {\n //alert('inside geo loc')\n\n //var options = {maximumAge: 0, timeout: 10000, enableHighAccuracy:false};\n navigator.geolocation.getCurrentPosition(handle_geolocation_query, handle_errors);\n}", "title": "" }, { "docid": "86e0a6a50d5309b45e3ea89112046258", "score": "0.5825118", "text": "function _locateUser() {\n // Callback object to hand off to geo locator object.\n var callBack = {\n success: function(position) {\n var latitude = position.coords.latitude;\n var longitude = position.coords.longitude;\n\n googleMaps.load(function() {\n _reverseGeocodeLocation(latitude, longitude);\n });\n },\n error: function(error) {\n //console.log(\"Geolocation failed due to: \" + error.message);\n alerts.show(LOCATION_NOT_FOUND_ERROR_TEXT, alerts.type.ERROR);\n _locateTargetReady();\n }\n };\n\n geo.locate(callBack);\n}", "title": "" }, { "docid": "a8025efcbedfbc8c52b1073dadc61e4e", "score": "0.58229417", "text": "function getLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(showPosition);\n }\n}", "title": "" }, { "docid": "ce048880761720e932c0dead7fffc03f", "score": "0.58195674", "text": "function getLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(setPosition);\n }\n }", "title": "" }, { "docid": "aa3139edf058023e84992b5d2044b7ce", "score": "0.5816403", "text": "function initializeAutocomplete() {\n var input = document.getElementById('community_search_field');\n searchBox = new google.maps.places.Autocomplete(input);\n searchBox.setComponentRestrictions({'country': ['us']});\n searchBox.addListener('place_changed', setLocationValue);\n}", "title": "" }, { "docid": "8047b427d0a1e32c00183d9834104267", "score": "0.5806871", "text": "function onPlaceChanged() {\n var place = autocomplete.getPlace();\n\n if (place.geometry) {\n\n\n map.panTo(place.geometry.location);\n map.setZoom(15);\n\n var filtered_array = place.address_components.filter(function (address_component) {\n return address_component.types.includes(\"country\");\n });\n\n document.getElementById('country_iso').value = filtered_array.length ? filtered_array[0].short_name : \"\";\n document.getElementById('geoposition').value = place.geometry.location.lat() + \",\" + place.geometry.location.lng();\n\n } else {\n\n document.getElementById('autocomplete').placeholder = 'Enter a city';\n\n\n }\n}", "title": "" }, { "docid": "452979dfeeb71a14baca6926494c2472", "score": "0.5804783", "text": "function onPlaceChanged() {\n var place = autocomplete.getPlace();\n if (place.geometry) {\n map.panTo(place.geometry.location);\n setCurrentLocation(place.geometry.location, 10);\n map.setZoom(16);\n //search();\n } else {\n auotCompleteHTML.placeholder = 'Enter an address';\n }\n }", "title": "" }, { "docid": "0b08d23e28bf83102bb7c62e60daefdb", "score": "0.58010644", "text": "async function populateInput() {\n const locationJSON = await getJSON(`reverse-geocode/${user.coords[0]},${user.coords[1]}`);\n locationInput.value = locationJSON.results[0].formatted_address;\n}", "title": "" }, { "docid": "406ce77870ebe868ba1a41ead33dfe29", "score": "0.5791298", "text": "function initAutocomplete(lat = \"30.046275160232675\", lng = \"31.244865309119177\") {\n var position = {lat: parseFloat(lat), lng: parseFloat(lng)};\n\n var map = new google.maps.Map(document.getElementById('map'), {\n center: position,\n zoom: 13,\n mapTypeId: 'roadmap'\n });\n\n var Oldmarker = new google.maps.Marker({\n draggable: true, // Boolean, to set the draggable action to true.\n position: position, // The default latitude and longitude object.\n map: map, // The Map Object that we created.\n title: \"Drag to your Location\"\n });\n\n google.maps.event.addListener(Oldmarker, 'click', function(event) {\n document.getElementById(\"lat\").value = this.getPosition().lat();\n document.getElementById(\"long\").value = this.getPosition().lng();\n var latlng = new google.maps.LatLng(this.getPosition().lat(), this.getPosition().lng());\n getLatLongDetail(latlng);\n \n\n });\n\n google.maps.event.addListener(Oldmarker, 'dragend', function(event) {\n document.getElementById(\"lat\").value = this.getPosition().lat();\n document.getElementById(\"long\").value = this.getPosition().lng();\n var latlng = new google.maps.LatLng(this.getPosition().lat(), this.getPosition().lng());\n getLatLongDetail(latlng);\n \n });\n \n \n function getLatLongDetail(myLatlng) {\n\n geocoder = new google.maps.Geocoder();\n geocoder.geocode({'latLng': myLatlng},\n function (results, status) {\n if (status == google.maps.GeocoderStatus.OK) {\n if (results[0]) {\n if (results[0].formatted_address != null) {\n formattedAddress = results[0].formatted_address;\n jQuery('#address').val(results[0].formatted_address);\n }\n }\n }\n });\n }\n\n\n // Create the search box and link it to the UI element.\n var input = document.getElementById('pac-input');\n var searchBox = new google.maps.places.SearchBox(input);\n map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);\n\n // Bias the SearchBox results towards current map's viewport.\n map.addListener('bounds_changed', function() {\n searchBox.setBounds(map.getBounds());\n });\n\n var markers = [];\n // Listen for the event fired when the user selects a prediction and retrieve\n // more details for that place.\n searchBox.addListener('places_changed', function() {\n var places = searchBox.getPlaces();\n\n if (places.length == 0) {\n return;\n }\n\n // Clear out the old markers.\n markers.forEach(function(marker) {\n marker.setMap(null);\n });\n markers = [];\n\n // For each place, get the icon, name and location.\n var bounds = new google.maps.LatLngBounds();\n \n places.forEach(function(place) {\n if (!place.geometry) {\n console.log(\"Returned place contains no geometry\");\n return;\n }\n var icon = {\n url: place.icon,\n size: new google.maps.Size(71, 71),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(17, 34),\n scaledSize: new google.maps.Size(25, 25)\n };\n // document.getElementById(\"lat\").value = place.geometry.location.lat();\n // Create a marker for each place.\n markers.push(new google.maps.Marker({\n map: map,\n icon: icon,\n title: place.name,\n draggable: true,\n position: place.geometry.location\n }));\n\n if (place.geometry.viewport) {\n // Only geocodes have viewport.\n bounds.union(place.geometry.viewport);\n } else {\n bounds.extend(place.geometry.location);\n }\n });\n\n markers.forEach(function (marker) {\n google.maps.event.addListener(marker, 'click', function(event) {\n document.getElementById(\"lat\").value = this.getPosition().lat();\n document.getElementById(\"long\").value = this.getPosition().lng();\n \n var latlng = new google.maps.LatLng(this.getPosition().lat(), this.getPosition().lng());\n getLatLongDetail(latlng);\n });\n\n google.maps.event.addListener(marker, 'dragend', function(event) {\n document.getElementById(\"lat\").value = this.getPosition().lat();\n document.getElementById(\"long\").value = this.getPosition().lng();\n \n var latlng = new google.maps.LatLng(this.getPosition().lat(), this.getPosition().lng());\n getLatLongDetail(latlng);\n });\n });\n map.fitBounds(bounds);\n });\n }", "title": "" }, { "docid": "f748fd971bcb797a01e69aacf1970080", "score": "0.57784146", "text": "function manualLocation(locationAddress) {\n $scope.geodata = {};\n $scope.queryResults = {};\n $scope.queryError = {};\n\n $scope.address = locationAddress;\n\n $http.get('https://maps.googleapis.com/maps/api/geocode/json?address='\n + $scope.address + '&key=AIzaSyCn9zl42b2gnUt92A7v_OcAJB4OUem-zbM').then(function(_results) {\n\n $scope.queryResults = _results.data.results;\n $scope.geodata = $scope.queryResults[0].geometry;\n\n var locationLngLat = {\n longitude: $scope.queryResults[0].geometry.location.lng,\n latitude: $scope.queryResults[0].geometry.location.lat,\n nationality: $scope.userNationality,\n showLimit: $scope.showAmountFilter\n };\n console.log(locationLngLat);\n returnSearchResults(locationLngLat);\n\n },\n function error(_error) {\n //printGeoError(_error);\n })\n\n }", "title": "" }, { "docid": "f4402386e659332475bd2ca9507df781", "score": "0.5776792", "text": "function getLocation() {\n if (navigator.geolocation) {\n\n var geoObject = navigator.geolocation.watchPosition(showPosition,\n handleError);\n }\n}", "title": "" }, { "docid": "546eb79b6006c35f76e372547594748d", "score": "0.5774282", "text": "function getLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(showPosition);\n } else {\n prompt( \"Geolocation is not supported by this browser.\");\n }\n\n}", "title": "" }, { "docid": "597c5f77d483f3e8bb2e7eeba0cfb473", "score": "0.5772455", "text": "function use_geolocation() {\n var url = \"https://www.googleapis.com/geolocation/v1/geolocate?key=\";\n var url_request = url + google_apikey;\n\n return $.ajax({\n type: \"POST\",\n url: \"https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyCSgPL7LJfCOdUCwX6Fe9V4Rryp21lmbLA\",\n data: {},\n success: function (data) {\n /* Get and store the user's longitude and latitude */\n var location = data[\"location\"];\n lat = location[\"lat\"];\n long = location[\"lng\"];\n },\n error: function (xhr, textStatus, errorThrown) {\n alert(\"Google's geolocation failed to detect your location.\");\n }\n });\n }", "title": "" }, { "docid": "763ebceb8a0ab60935e5de81c13f7b0e", "score": "0.5767692", "text": "function suggestLocation() {\n message[1].innerHTML = \"\"\n if(cityLatitude === undefined) {\n return message[1].innerHTML = \"You need to insert a location or allow geolocation!\"\n }\n map.setCenter({lat:cityLatitude, lng:cityLongitude});\n map.setZoom(10);\n\n limits = 20;\n\n let url= `https://browse.search.hereapi.com/v1/browse?at=${cityLatitude},${cityLongitude}&limit=${limits}&categories=350-3500-0304&apikey=${process.env.API_KEY}`;\n \n fetch(url) \n .then(res => {\n return res.json();\n })\n .then(body => {\n for(i=0; i < body.items.length;i++) {\n arraylakesLat[i] = body.items[i].access[0].lat;\n arraylakesLong[i] = body.items[i].access[0].lng;\n \n }\n return [arraylakesLong,arraylakesLat];\n }) \n .then(data => {\n addMarkersToMap(map);\n }\n )\n }", "title": "" }, { "docid": "bd343cca9184c9b43473f48364f2a3fc", "score": "0.5765765", "text": "function getLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(showPosition);\n } else {\n console.log(\"Geolocation is not supported by this browser.\");\n }\n function showPosition(position) {\n let lat = position.coords.latitude;\n let long = position.coords.longitude;\n searchForm.lat.value = lat;\n searchForm.long.value = long;\n searchForm.submit();\n }\n}", "title": "" }, { "docid": "49d6745e0416ad0a4abc85f901fed47b", "score": "0.5763895", "text": "function getLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(showPosition);\n } else {\n $scope.UserCity = \"Geolocation is not supported by this browser.\";\n }\n }", "title": "" }, { "docid": "04463ab75833a4d08c03bea984d390bc", "score": "0.57591397", "text": "function getLocation() {\n if (navigator.geolocation) {\n var geoObject = navigator.geolocation.watchPosition(showPosition,\n handleError);\n }\n}", "title": "" }, { "docid": "6c08c00369c2a3db3a82050a9bce10e8", "score": "0.5750123", "text": "function getLocation()\n{\n\tif (navigator.geolocation)\n\t{\n\t\tnavigator.geolocation.getCurrentPosition(function(position)\n\t\t{\n\t\t\t$(\"#lat\").val(position.coords.latitude.toFixed(7));\n\t\t\t$(\"#lng\").val(position.coords.longitude.toFixed(7));\n\n\t\t\tvar myCoords = new google.maps.LatLng(\n\t\t\t{\n\t\t\t\tlat: Number($(\"#lat\").val()),\n\t\t\t\tlng: Number($(\"#lng\").val())\n\t\t\t});\n\n\t\t\tcenterAndMark(myCoords);\n\t\t})\n\t}\n\n\telse { alert(\"Agh, your browser's a tad old for location services. Try just entering stuff instead, sorry!\"); }\n}", "title": "" }, { "docid": "0884b77eb089c638b6ef512569bf07f9", "score": "0.57423204", "text": "function onPlaceChanged() {\r\n var place = autocomplete.getPlace();\r\n if (place.geometry) {\r\n map.panTo(place.geometry.location);\r\n map.setZoom(15);\r\n search();\r\n } else { document.getElementById('autocomplete').placeholder = 'Enter a city'; }\r\n}", "title": "" }, { "docid": "94b2267ed4d6bff59ba56ec65b6d344e", "score": "0.5736524", "text": "function getLocationAndSearchRoomate() {\n\n navigator.geolocation.getCurrentPosition(geoCallbackSearchRoomate, onError);\n\n}", "title": "" }, { "docid": "29f5dd822aeabde400f57f0a7097b7e8", "score": "0.5728403", "text": "function getLocation() {\n geolocation.getCurrentPosition(\n e => {\n setLocation({\n lat: e.coords.latitude,\n lon: e.coords.longitude,\n });\n },\n err => console.log(err),\n );\n }", "title": "" }, { "docid": "b64d1b0b59fd11343b026128e5df7aa9", "score": "0.5726818", "text": "setCurrentLocation() {\n if ('geolocation' in navigator) {\n navigator.geolocation.getCurrentPosition((position) => {\n this.latitude = position.coords.latitude;\n this.longitude = position.coords.longitude;\n this.zoom = 15;\n });\n }\n }", "title": "" }, { "docid": "bc0fe5a3ed6835cb903e369080874d4f", "score": "0.5715819", "text": "function locate() {\n navigator.geolocation.getCurrentPosition(coords);\n}", "title": "" }, { "docid": "2db2cda92506814a9c004f338528a4bf", "score": "0.5712511", "text": "function initAutocomplete() {\n autocomplete = new google.maps.places.Autocomplete(\n /** @type {!HTMLInputElement} */(document.getElementsByClassName('autocomplete')[0]),\n {types: ['geocode']});\n}", "title": "" }, { "docid": "45173b34e707062b5e66c36a3c78f8ec", "score": "0.5710468", "text": "function getLocation(){\n var options = {\n enableHighAccuracy: true,\n timeout: 5000,\n maximumAge: 0\n };\n navigator.geolocation.getCurrentPosition(success, error, options);\n}", "title": "" }, { "docid": "4bf9463646626849ad141e26ea80cb77", "score": "0.5709736", "text": "function GetLocation(location) {\n uAreHere = new google.maps.LatLng(location.coords.latitude, location.coords.longitude);\n //reverse lookup to populate form input\n\tgetNearest = reverseLookUp(uAreHere);\n \tinitialize(uAreHere);\n}///", "title": "" } ]
5b616106d73fd80719631d648ce68864
Websocket: Create a new WebSocket instance
[ { "docid": "a4028bcd261d2bcc2f9999de0a5fbcaa", "score": "0.7621973", "text": "initWebSocket() {\n try {\n var url = \"wss://stream.binance.com/ws/\" + this.symbol.toLowerCase() + \"@kline_\" + this.interval;\n this.ws = new WebSocket(url);\n this.ws.addEventListener('error', this.handlerError);\n this.ws.addEventListener('open', this.handlerOpen);\n this.ws.addEventListener('close', this.handlerClose);\n this.ws.addEventListener('message', this.handlerMessage);\n } catch (err) {\n // SECURITY_ERR The port to which the connection is being attempted is being blocked.\n // SyntaxError The URL is invalid.\n //alert(\"initWebSocket(): \" + err);\n this.ws = undefined;\n }\n return this.ws;\n }", "title": "" } ]
[ { "docid": "91dde4389195a3ea48827b2f892d1182", "score": "0.8606995", "text": "createWebSocket() {\n try {\n this.webSocket = new WebSocket(this.wsUrl, OPTIONS);\n this.initEventHandle();\n } catch (e) {\n this.reconnect();\n }\n }", "title": "" }, { "docid": "caed935aaca6bc18cde53a2cb5434012", "score": "0.80064386", "text": "createWebSocket() {\n this.ws = new WebSocket('ws://' + window.location.host + '/game');\n this.ws.addEventListener('message', this.handleMessage.bind(this));\n this.ws.addEventListener('open', () => this.ws.send('ready'));\n this.ws.addEventListener('close', () => window.location = '/');\n }", "title": "" }, { "docid": "274cc470542953eb6f6384089d99ba29", "score": "0.7735966", "text": "function newWebSocketConnection(options) {\n var webSocket = createWebSocket(getUrl(options));\n if (webSocket) {\n // create new connection with handlers from options\n return new WebSocketConnection(webSocket, options);\n } else {\n console.log(\"Unable to instantiate WebSocket\");\n }\n }", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "936e24308dc1ccd0980a6e3dd47beab3", "score": "0.7659735", "text": "function h$createWebSocket(url, protocols) {\n return new WebSocket(url, protocols);\n}", "title": "" }, { "docid": "65bcfd5c1dc7b814c6021574ba942c95", "score": "0.76361436", "text": "function createMessagingSocket(){\n return new WebSocket('ws://localhost:3001/messages');\n}", "title": "" }, { "docid": "66bb98682e3750dbcea4cbc954fd6257", "score": "0.7521528", "text": "function wsFactory(url, protocols) {\n return new WebSocket(url, protocols);\n }", "title": "" }, { "docid": "b978a80de3a2b2ac1eabe08a2562eea0", "score": "0.7426954", "text": "function WebsocketProvider() {}", "title": "" }, { "docid": "6a33f6104bbc64cdd5b4d90b70f273ee", "score": "0.73937935", "text": "createSocketConnection(url) {\n if (url) {\n this.logger.log(`Creating socket connection at \"${url}\"`);\n\n return new WebSocket(url);\n }\n\n return null;\n }", "title": "" }, { "docid": "d6d0db70cc110ba29ce1d8d746367296", "score": "0.7373609", "text": "function SocketConnection(){\n socket = new WebSocket(\"ws://localhost:8081\");\n}", "title": "" }, { "docid": "9e0e0a89e6c5a87017501491f26f8b78", "score": "0.732933", "text": "connect () {\n // create the connection and setup the handlers\n this._ws = new WebSocket(webSocketURL, {})\n this._ws.on('open', this._handleOpen.bind(this))\n this._ws.on('message', this._handleMessage.bind(this))\n }", "title": "" }, { "docid": "1cc8cb5271807ce637389b2c66e70d5f", "score": "0.7312071", "text": "function setupWebSocket() {\n ws = new WebSocket(getWsUri());\n ws.onmessage = (m) => recieveMessage(m.data);\n ws.onopen = () => console.log(\"Websocket Open\");\n ws.onclose = () => {\n closeChat();\n setNotifyBox(\"The connection to the server has closed. Please refresh page to connect again.\");\n $(\"#joinbox\").css(\"display\", \"none\");\n }\n ws.onerror = (e) => {\n console.log(\"Websocket Error:\", e);\n e.target.close();\n }\n}", "title": "" }, { "docid": "2fece030a42dea30ad233a06bdafdfd6", "score": "0.7250861", "text": "function initWebSocket () {\n \n\n // create the socket with the server\n ws = new WebSocket('ws://127.0.0.1:' + webSocketPort);\n \n // on message received\n ws.onmessage = function (event) {\n\n // store the message\n var message = checkMessageIntegrity (event);\n \n // if the message is well formatted\n if (message != null && message != undefined) {\n \n // call the function to resolve the message\n resolveMessage(message);\n }\n };\n\n // hello message, to let the server initialize the session for this client\n ws.onopen = function () {\n \n // send \"hello\" message to the server, to initialize session\n sendMessage({messageType : messageTypeHello});\n \n }\n}", "title": "" }, { "docid": "11545020b7a41b49f75bb67d0cf1eb78", "score": "0.72046936", "text": "constructor (_webSocketUrl) {\n super()\n this.isConnected = false\n this._ws = new WebSocket(_webSocketUrl)\n this._ws.on('open', () => {\n this.isConnected = true\n })\n }", "title": "" }, { "docid": "51e62fa98ffe668c79c8e89ba70d2c7f", "score": "0.7194435", "text": "function start(wsURL) {\n websocket = new WebSocket(wsURL);\n websocket.binaryType = 'arraybuffer';\n websocket.onopen = onOpen;\n websocket.onmessage = onMessage;\n websocket.onerror = onError;\n websocket.onclose = onClose;\n }", "title": "" }, { "docid": "505ce42cd4da9fa9e80d820fb53ab71c", "score": "0.71744686", "text": "function webSocket(urlConfigOrSource) {\n return new WebSocketSubject_WebSocketSubject(urlConfigOrSource);\n}", "title": "" }, { "docid": "c0b89356702240da2c9e19f7cdf8480f", "score": "0.7153606", "text": "function W3CWebSocket(uri, protocols) {\n\t\tvar native_instance;\n\t\n\t\tif (protocols) {\n\t\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t\t}\n\t\telse {\n\t\t\tnative_instance = new NativeWebSocket(uri);\n\t\t}\n\t\n\t\t/**\n\t\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t\t * class). Since it is an Object it will be returned as it is when creating an\n\t\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t\t *\n\t\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t\t */\n\t\treturn native_instance;\n\t}", "title": "" }, { "docid": "e686d7d59b1cc0c80a62be4ecc88fd44", "score": "0.71445954", "text": "function W3CWebSocket(uri, protocols) {\n\t\tvar native_instance;\n\n\t\tif (protocols) {\n\t\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t\t}\n\t\telse {\n\t\t\tnative_instance = new NativeWebSocket(uri);\n\t\t}\n\n\t\t/**\n\t\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t\t * class). Since it is an Object it will be returned as it is when creating an\n\t\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t\t *\n\t\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t\t */\n\t\treturn native_instance;\n\t}", "title": "" }, { "docid": "a10d104ddc5b60c67c0597cd2e6d6ad8", "score": "0.7137273", "text": "function openWebSocket() {\n\n var wsuri = \"wss://\" + window.location.hostname + \"/ws?client_id=\" + Date.now();\n\n websocket = new WebSocket(wsuri);\n\n websocket.onopen = function(evt) { onOpen(evt) };\n websocket.onclose = function(evt) { onClose(evt) };\n websocket.onmessage = function(evt) { onMessage(evt) };\n websocket.onerror = function(evt) { onError(evt) };\n\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "5725afbb9c4c906defa6a119e72b1d96", "score": "0.7074764", "text": "function W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}", "title": "" }, { "docid": "aa23e686b2c878fba3623df2a45e69a2", "score": "0.7052073", "text": "function W3CWebSocket(uri, protocols) {\n var native_instance;\n\n if (protocols) {\n native_instance = new NativeWebSocket(uri, protocols);\n } else {\n native_instance = new NativeWebSocket(uri);\n }\n /**\n * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n * class). Since it is an Object it will be returned as it is when creating an\n * instance of W3CWebSocket via 'new W3CWebSocket()'.\n *\n * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n */\n\n\n return native_instance;\n}", "title": "" }, { "docid": "aa23e686b2c878fba3623df2a45e69a2", "score": "0.7052073", "text": "function W3CWebSocket(uri, protocols) {\n var native_instance;\n\n if (protocols) {\n native_instance = new NativeWebSocket(uri, protocols);\n } else {\n native_instance = new NativeWebSocket(uri);\n }\n /**\n * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n * class). Since it is an Object it will be returned as it is when creating an\n * instance of W3CWebSocket via 'new W3CWebSocket()'.\n *\n * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n */\n\n\n return native_instance;\n}", "title": "" }, { "docid": "aa23e686b2c878fba3623df2a45e69a2", "score": "0.7052073", "text": "function W3CWebSocket(uri, protocols) {\n var native_instance;\n\n if (protocols) {\n native_instance = new NativeWebSocket(uri, protocols);\n } else {\n native_instance = new NativeWebSocket(uri);\n }\n /**\n * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n * class). Since it is an Object it will be returned as it is when creating an\n * instance of W3CWebSocket via 'new W3CWebSocket()'.\n *\n * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n */\n\n\n return native_instance;\n}", "title": "" }, { "docid": "b04e8439eec3eca6820d7efeea2aca8e", "score": "0.70509934", "text": "initWebClientSocketServer() {\n var ws = require('ws');\n\n const io = new ws.Server({server: this.httpServer});\n\n // When the socket connection is established\n io.on('connection', (socket) => {\n this.debug('web socket connection opened', socket.id);\n\n // Set this socket as the current socket\n this.currentWebSocket = socket;\n\n // Add the emit style handlers.\n extendWebSocket(socket);\n\n // When the socket disconnects\n socket.on('close', function(closeCode, closeReason) {\n this.debug(\n 'web socket connection closed:', closeCode + ',' + closeReason);\n this.currentWebSocket = null;\n }.bind(this));\n\n // When an error occurs on the underlying server.\n socket.on('error', (errorEvent) => {\n this.debug('web socket connection error', errorEvent);\n });\n\n // Listen for varieties of messages\n socket.register(\n 'sendPresets', (message) => this.handleSendPresetsMessage(message));\n socket.register(\n 'sendSerialPorts',\n (message) => this.handleSendSerialPortsMessage(message));\n socket.register(\n 'startRecording',\n (message) => this.handleStartRecordingMessage(message));\n socket.register(\n 'stopRecording',\n (message) => this.handleStopRecordingMessage(message));\n socket.register(\n 'startImpedance',\n (message) => this.handleStartImpedanceMessage(message));\n socket.register(\n 'stopImpedance',\n (message) => this.handleStopImpedanceMessage(message));\n socket.register(\n 'savePreset', (message) => this.handleSavePresetMessage(message));\n socket.register(\n 'connectToBox', (message) => this.handleConnectToBoxMessage(message));\n socket.register(\n 'turnChannelOnOrOff',\n (message) => this.handleTurnChannelOnOrOffMessage(message));\n socket.register(\n 'recordingSettings',\n (message) => this.handleRecordingSettingsMessage(message));\n socket.register(\n 'sendVersion', (message) => this.handleSendVersionMessage(message));\n socket.register(\n 'setChannelGain',\n (message) => this.handleSetChannelGainMessage(message));\n socket.register(\n 'turnChannelBiasOnOrOff',\n (message) => this.handleTurnChannelBiasOnOrOffMessage(message));\n socket.register(\n 'sendMark', (message) => this.handleSendMarkToAmplifier(message));\n socket.register(\n 'sendTest', (message) => this.handleSendTestCommandToAmplifier(message))\n });\n }", "title": "" }, { "docid": "1f2426bc23901d4a1c3f7a6a3f15187d", "score": "0.7008077", "text": "function initWS() {\n\tconsole.log(\"In initWS\");\n\tif (\"WebSocket\" in window) {\n\t\t//TODO\n\t\tconnection = new WebSocket(wsUri);\n\t\tconsole.log(\"Websocket created\");\n\t\t\n\t\tconnection.onopen = function(evt) {\n\t\t\tconsole.log(\"Info: onOpen\");\n\t\t\tonOpen(evt);\n\t\t};\n\t\tconnection.onclose = function(evt) {\n\t\t\tconsole.log(\"Info: onClose\");\n\t\t\tonClose(evt);\n\t\t};\n\t\tconnection.onmessage = function(evt) {\n\t\t\tconsole.log(\"Info: onMessage\");\n\t\t\tonMessage(evt);\n\t\t};\n\t\tconnection.onerror = function(evt) {\n\t\t\tconsole.log(\"Error: onError\");\n\t\t\tonError(evt);\n\t\t};\n\t} else {\n\t\t// The browser doesn't support WebSocket\n\t\talert(\"WebSocket NOT supported!\");\n\t}\n}", "title": "" }, { "docid": "229c591c664b0ff2ad419b66bd0e18fc", "score": "0.69914854", "text": "Connect() {\r\n\t\tlet new_sock = new WebSocket(this.url);\r\n\t\tnew_sock.onopen = (e) => this.OnOpen(e);\r\n\t\tnew_sock.onclose = (e) => this.OnClose(e);\r\n\t\tnew_sock.onmessage = (e) => this.OnMessage(e);\r\n\t\tthis.sock = new_sock;\r\n\t}", "title": "" }, { "docid": "1b68f98ff221df948fabdb89009cbea5", "score": "0.69245684", "text": "function connect() {\n ws = new WebSocket(SERVER_URL, []);\n ws.onmessage = handleMessageReceived;\n ws.onopen = handleConnected;\n ws.onerror = handleError;\n }", "title": "" }, { "docid": "9e4232bab97f49a3876473acf9e655f4", "score": "0.69202036", "text": "function initWS() {\n\tws = new WebSocket('wss://' + location.host + '/groupcall');\n\tws.onopen = wsOnOpen;\n\tws.onclose = wsOnClose;\n\tws.onmessage = wsOnMessage;\n}", "title": "" }, { "docid": "7343d2cb92abdc62ec9bc11f9b02f4f1", "score": "0.688154", "text": "function start_websocket_server() {\n\n console.log('------------------------------------------ Websocket Up ------------------------------------------');\n\n wss = new ws.Server({server: server});\n wss.on('connection', async function connection(ws) {\n ws.on('message', async function incoming(message) {\n console.log('received ws msg:', message);\n let data = JSON.parse(message);\n await part2.process_msg(ws, data);\n\n });\n ws.on('broadcast', function (data) {\n wss.broadcast(data);\n });\n ws.on('close', function () {\n });\n });\n\n // This makes it easier to contact our clients\n wss.broadcast = function broadcast(data) {\n wss.clients.forEach(function each(client) {\n try {\n data.v = '2';\n client.send(JSON.stringify(data));\n }\n catch (e) {\n console.log('error broadcast ws', e);\n }\n });\n };\n\n}", "title": "" }, { "docid": "3d8dcd0232d73c3f9afdff515444a42d", "score": "0.67917264", "text": "function WebSockets(app) {\n\tthis.app = app;\n}", "title": "" }, { "docid": "12c324b90c6a188c7ac622a17372429b", "score": "0.6772475", "text": "function init() {\n var address = \"\".concat(location.protocol !== \"https:\" ? \"ws\" : \"wss\", \"://\").concat(location.host, \"/ws\");\n console.info(\"[ws] connecting to \".concat(address));\n conn = new WebSocket(address); // Clear old roomID\n\n conn.onopen = function () {\n console.log(\"[ws] <- open connection\");\n console.log(\"[ws] -> setting ping interval to \".concat(pingIntervalMs, \"ms\")); // !to add destructor if SPA\n // setInterval(ping, pingIntervalMs);\n };\n\n conn.onerror = function (error) {\n return console.log(\"[ws] \".concat(error));\n };\n\n conn.onclose = function () {\n return console.log(\"[ws] closed\");\n }; // Message received from server\n\n\n conn.onmessage = function (response) {\n var data = JSON.parse(response.data);\n var message = data.id;\n if (message !== \"heartbeat\") console.log(\"[ws] <- message '\".concat(message, \"' \"), data);\n\n switch (message) {}\n };\n}", "title": "" }, { "docid": "88c046816cc1e3e0e7bb9e129bd28dac", "score": "0.67529804", "text": "function setupWebSocket(url) {\n ws = new WebSocket(url);\n\n // Confirmation of open socket and refresh timer setup\n ws.onopen = function (event) {\n console.log(\"WebSocket Connection Opened\");\n\n myTimer = setInterval(socketSendTimer, 30000);\n };\n\n // Handle received messages\n ws.onmessage = function (event) {\n if (event.data != \"Socket Refreshed\") {\n console.log(\"Received:\", event.data);\n }\n };\n\n // Confirmation of closed socket and attempt to reconnect\n ws.onclose = function (event) {\n console.log(\"WebSocket Connection Closed\");\n console.log(\"Reconnecting . . .\");\n setupWebSocket(url);\n };\n}", "title": "" }, { "docid": "ea62159f96447c979042b28d22d7c455", "score": "0.6724744", "text": "set websocket(ws) {\n // At this point our old one is assumed broken, we cannot allow two\n this.ws.removeAllListeners(\"message\");\n this.ws.removeAllListeners(\"close\");\n this.ws.terminate();\n\n // Set our new one\n this.ws = ws;\n this.ws.on(\"message\", (a) => onMessage(this, a));\n this.ws.on(\"close\", ()=>console.log(\"crap\"))\n this.shakeHand();\n this.cmdHandler();\n console.log(\"Got new ws\");\n this.sendQueue();\n }", "title": "" }, { "docid": "f900543c5a6a90e5321616bc6be044a9", "score": "0.6688902", "text": "function createChatRoomWebsocketConnection(chatRoomId) {\n \n // Creates the new websocket connection\n socket = new WebSocket(webSocketUrl);\n\n // When the connection is 1st created, this code runs subscribing the clien to a specific chatroom stream in the ChatRoomChannel\n socket.onopen = function(event) {\n console.log('WebSocket is connected.');\n\n const msg = {\n command: 'subscribe',\n identifier: JSON.stringify({\n id: chatRoomId,\n channel: 'ChatRoomChannel'\n }),\n };\n \n socket.send(JSON.stringify(msg));\n };\n \n // When the connection is closed, this code is run\n socket.onclose = function(event) {\n console.log('WebSocket is closed.');\n };\n\n // When a message is received through the websocket, this code is run\n socket.onmessage = function(event) { \n const response = event.data;\n const msg = JSON.parse(response);\n \n // Ignores pings\n if (msg.type === \"ping\") {\n return;\n } \n\n console.log(\"FROM RAILS: \", msg);\n \n // Renders any newly created messages onto the page\n if (msg.message) {\n renderMessage(msg.message)\n }\n \n };\n \n // When an error occurs through the websocket connection, this code is run printing the error message\n socket.onerror = function(error) {\n console.log('WebSocket Error: ' + error);\n };\n}", "title": "" }, { "docid": "f25df056bd25ab25bf9c787d7070dc34", "score": "0.6688539", "text": "function InternalStartwsSocket( )\n{\n\tif( wsSocket )\n\t\twsSocket.close();\n\twsSocket = new WebSocket(wsUri);\n\twsSocket.onopen = function(evt) { onOpen(evt) };\n\twsSocket.onclose = function(evt) { onClose(evt) };\n\twsSocket.onmessage = function(evt) { onMessage(evt) };\n\twsSocket.onerror = function(evt) { onError(evt) };\n}", "title": "" }, { "docid": "7afc0d4f19a63bece3e366f3e015c477", "score": "0.666265", "text": "function webSocket() {\n const url = 'wss://echo.websocket.org';\n socket = new WebSocket(url);\n socket.onopen = (e) => {\n writeToChat(\"Connected!\");\n }\n socket.onmessage = (e) => {\n onMessage(e);\n }\n socket.onerror = (e) => {\n writeToChat(e.data);\n }\n \n // socket.send(JSON.stringify(pos));\n \n}", "title": "" }, { "docid": "bfca9d7ad475d84de9012c882e9f66e7", "score": "0.665247", "text": "function openWebsocket(websocketPort){\n\t/*if (!websocketPort){\n\t\twebsocketPort = websocketPortGlobal;\n\t}\n\telse{\n\t\twebsocketPortGlobal = websocketPort;\n\t}*/\n\t\n\t/*is connected*/\n\tif (websocket && websocketConnected && websocket.readyState == websocket.OPEN /*&& websocketPortGlobal == websocketPort*/){\n\t\treturn;\n\t}\n\t\n\tvar ws = 'ws://127.0.0.1:'+websocketPort+'/ue4?';\n\tshowAlert(\"openWebsocket:\"+ws);\n\twebsocketConnected = false;\n\twebsocket = new WebSocket(ws);\n\t\n\twebsocket.onopen = function () {\n\t\tshowAlert(\"onopen:\"+ws);\n\t\twebsocketConnected = true;\n\t};\n\n\twebsocket.onerror = function (errorEvent) {\n\t\tshowAlert(\"onerror:\"+ws);\n\t\twebsocketConnected = false;\n\t\t/*if (connectionAttempts > 0 && websocket.readyState != websocket.OPEN){\n\t\t\tconnectionAttempts--;\n\t\t\tsetTimeout(function(){\n\t\t\t\tif (!websocketConnected){\n\t\t\t\t\topenWebsocket();\n\t\t\t\t}\n\t\t\t}, 1000);\n\t\t}*/\n\t};\n\n\twebsocket.onclose = function (closeEvent) {\n\t\tshowAlert(\"onclose:\"+ws);\n\t\twebsocketConnected = false;\n\t};\n}", "title": "" }, { "docid": "ad037f986867e99480f815649d42c600", "score": "0.6644328", "text": "function init() {\n const wsPort = process.env.WS_PORT;\n const wss = new WebSocketServer({ port: wsPort });\n\n wss.on('connection', ws => {\n const wsConn = new WsConnection(null, ws);\n wsConn.setUpListener();\n })\n}", "title": "" }, { "docid": "bda7c7f62079425203858ae4170df1ae", "score": "0.6637926", "text": "function startWebsocket() {\n console.log(\"Starting a websocket connection to the server\");\n var ws_scheme = window.location.protocol == \"https:\" ? \"wss\" : \"ws\";\n var ws_path = ws_scheme + '://' + window.location.host;\n var socket = new WebSocket(ws_path);\n\n socket.onmessage = function(message) {\n // Decode the JSON\n var data = JSON.parse(message.data);\n\n // Handle updates to the slides that the server sends\n handleSocketMessage(data);\n };\n\n // Initial connection to the server is from the client\n socket.onopen = function open() {\n socket.send(JSON.stringify({\n \"command\": \"join\"\n }));\n console.log('WebSockets connection created');\n };\n\n socket.onclose = function () {\n console.log(\"Disconnected from socket\");\n setTimeout(function() {\n startWebsocket();\n }, 5000);\n };\n }", "title": "" }, { "docid": "1c9a0daf2a8b6418039ca3eda43df3d4", "score": "0.6637729", "text": "function initializeWebSocket (data) {\n\n console.log('INITIALIZING WS');\n var socket = new WebSocket(data.url);\n\n var memberChannels = [];\n\n data.channels.forEach(function(channel) {\n if (channel.is_member) {\n memberChannels.push(channel.id);\n }\n });\n\n // handle socket opening\n socket.on('open', function() {\n onOpen(socket, memberChannels);\n });\n\n // handle incoming messages\n socket.on('message', function(event) {\n onEvent(event, socket);\n });\n\n socket.on('close', function close() {\n console.log('disconnected (received close)');\n memberChannels.forEach(function (channelID) {\n mb.send({\n \"id\": 1,\n \"type\": \"message\",\n \"channel\": channelID,\n \"text\": \"WhoopBot \" + config.env.VERSION +\n \" disconnected from WebSocket.\"\n });\n mb.destroy();\n });\n });\n\n process.once('SIGTERM', function () {\n console.log('disconnected (sigterm)');\n memberChannels.forEach(function (channelID) {\n mb.send({\n \"id\": 1,\n \"type\": \"message\",\n \"channel\": channelID,\n \"text\": \"WhoopBot \" + config.env.VERSION +\n \" disconnected, received SIGTERM.\"\n });\n mb.destroy();\n });\n });\n}", "title": "" }, { "docid": "b218775c2d5fc714fc27006c96891404", "score": "0.66214675", "text": "constructor() {\n socket.init('ws://localhost:3001')\n socket.registerOpenHandler(() => {\n let message = new ChatMessage({message: 'pow!'})\n socket.sendMessage(message.serialize())\n });\n socket.registerMessageHandler((data) => {\n console.log(data)\n })\n }", "title": "" }, { "docid": "32f23d1a108d39718ce4d525d293c36a", "score": "0.66167563", "text": "function ws_setup(path, on_message_callback){\n // Note: You have to change the host var\n // if your client runs on a different machine than the websocket server\n var host = \"ws://\" + location.host + path;\n var ws_socket = new WebSocket(host);\n // console.log(\"socket status: \" + ws_socket.readyState);\n // event handlers for websocket\n if(ws_socket){\n ws_socket.onopen = function(){\n //alert(\"connection opened....\");\n }\n ws_socket.onmessage = function(msg){\n jsonString = msg.data;\n robj = JSON.parse(jsonString);\n on_message_callback(robj);\n }\n ws_socket.onclose = function(){\n //alert(\"connection closed....\");\n }\n }else{\n console.log(\"invalid socket\");\n }\n return ws_socket;\n}", "title": "" }, { "docid": "832d306f42b9a1b8db96ffb943316e2b", "score": "0.66155046", "text": "function init_mainWebSocket() {\n $('#statusIcon').css('color', 'Orange');\n $('#status').text('Creating main websocket...');\n console.log('Creating main websocket...');\n mainWS = new WebSocket(websocketIP);\n\n // Handler called when the websocket is connected\n mainWS.onopen = function(event) {\n $('#statusIcon').css('color', 'LimeGreen');\n $('#status').text('Websocket connected');\n console.log('Main websocket connected');\n }\n\n // Handler called when a message is receied through the websocket\n mainWS.onmessage = function(event) {\n console.log(event.data);\n log(event.data);\n }\n\n // Close handlers\n mainWS.onerror = (e) => {\n $('#statusIcon').css('color', 'OrangeRed');\n $('#status').text('Error');\n }\n }", "title": "" }, { "docid": "49b943396185245c72cde55372cc648a", "score": "0.6580804", "text": "start(cb) {\n this.app = uWS.App({})\n if (this.app === null) {\n return false\n }\n\n this.server = this.app.ws('/*', {\n compression: 0,\n maxPayloadLength: 16 * 1024 * 1024,\n idleTimeout: 10 * 60,\n open: (ws, req) => {\n ws.socket = new Socket(ws)\n this.emit('connection', ws.socket)\n },\n close: (ws, code, message) => {\n ws.socket.emit('close')\n this.emit('close', ws.socket)\n },\n message: (ws, message, isBinary) => {\n ws.socket.emit('data', message)\n this.emit('message', ws.socket, message)\n },\n drain: (ws) => {\n\n } \n })\n\n this.server.listen(this.port, (listenSocket) => {\n if (listenSocket) {\n this.emit('listening') \n console.log(`websocket connector listen on: ${this.host}:${this.port}`)\n }\n })\n return true\n }", "title": "" }, { "docid": "1b88dac0ca318ebe16c9b59dd25f2c9d", "score": "0.65772116", "text": "init({ commit, state, dispatch }, user) {\n return new Promise((resolve) => {\n const ws = new WebSocket('ws://127.0.0.1:8887')\n console.log('init')\n commit('SET_SOCKET', ws)\n dispatch('receive')\n resolve()\n }).catch((rej) => {\n console.log('init websocket error', rej)\n })\n }", "title": "" }, { "docid": "20a770d41e41e50f18f426e5c951a7c0", "score": "0.6564975", "text": "_connect() {\n\t\tthis._packetCallbacks.clear(); //todo reject all\n\n\t\tthis._socket = new ws(this._server);\n\n\t\tthis._socket.on('error', err => console.log('error', err));\n\t\tthis._socket.on('message', message => this._onMessage(message));\n\t}", "title": "" }, { "docid": "44086281743fc38d1c4af62be305a799", "score": "0.65629244", "text": "function WebSocket (mng, data, req) {\n var transport\n , version = req.headers['sec-websocket-version'];\n if (typeof version !== 'undefined' && typeof protocolVersions[version] !== 'undefined') {\n transport = new protocolVersions[version](mng, data, req);\n }\n else transport = new protocolVersions['default'](mng, data, req);\n if (typeof this.name !== 'undefined') transport.name = this.name;\n return transport;\n}", "title": "" }, { "docid": "7be75be1e436c30e3e066bf3f964edcc", "score": "0.65519935", "text": "function setupWebSocket(uri) {\n if (!\"WebSocket\" in window) {\n output(\"Use a better browser!\");\n return;\n }\n\n var socket = {\n register: function() {\n var ws = new WebSocket(uri);\n ws.onopen = function() {\n console.log(\"socket connection opened.\");\n };\n ws.onmessage = function (evt) {\n console.log(evt.data);\n };\n ws.onclose = function() {\n console.log(\"socket connection closed. reconnecting...\");\n setTimeout(function() {\n socket.register();\n }, 1000);\n };\n }\n }\n\n socket.register();\n}", "title": "" }, { "docid": "176736598bb014f2462a69833015e607", "score": "0.6536339", "text": "function runWebSocketServer() {\n var wss = new WebSocketServer({ port: config.webSocketPort });\n\n wss.broadcast = function broadcast(msg) {\n for(var i in this.clients) {\n this.clients[i].send(msg);\n }\n return msg;\n };\n\n // Shorthand for sending the 'update' message to all clients.\n wss.update = wss.broadcast.bind(wss, 'update');\n return wss;\n}", "title": "" }, { "docid": "aa206e54317467cc29c5a7990609bfd4", "score": "0.65345496", "text": "connect() {\n var socket = new WebSocket(\"ws://localhost:8080/ws\");\n console.log(\"Attempting Connection...\");\n\n socket.onopen = () => {\n console.log(\"Successfully Connected\");\n };\n\n socket.onmessage = msg => {\n this.update(msg);\n };\n\n socket.onclose = event => {\n console.log(\"Socket Closed Connection: \", event);\n };\n\n socket.onerror = error => {\n console.log(\"Socket Error: \", error);\n };\n }", "title": "" }, { "docid": "23d0ca6efff0b0b7e29bd6726ef81490", "score": "0.6533579", "text": "static registerWebSocketTest () {\n // MockUp\n const f = {\n router: null,\n registerRouter: (webSocketRouter) => { f.router = webSocketRouter }\n }\n\n // Vérification de la modification de l'instance et du retour\n runner('deepEqual', WebServerTest.object.registerWebSocket(f), WebServerTest.object)\n\n // Vérification de la liaison\n runner('deepEqual', WebServerTest.object.webSocketServer, f)\n\n // Vérification de la création du listener sur request\n runner('equal', WebServerTest.object.server.listeners('upgrade')[0].toString(), ((req, socket, head) => {\n if (req.headers.upgrade !== 'websocket') {\n socket.end('HTTP/1.1 400 Bad Request')\n return\n }\n this.webSocketServer.handshake(req, socket)\n }).toString())\n\n // Vérification de l'intégrité du router de webServices\n runner('deepEqual', WebServerTest.object.webSocketServer.router, WebServerTest.object.webSocketRouter)\n }", "title": "" }, { "docid": "f8e36bdbceef6a00ad53d6c8ed87f7d4", "score": "0.65329766", "text": "function sockJs (url, websockets, websocketChannels, log) {\n var handler = {},\n context = websockets[url];\n\n if (!context) {\n context = {\n executed: {},\n id: 0\n };\n\n websockets[url] = context;\n }\n\n handler.getUrl = function () {\n return url;\n };\n\n // RPC call\n //\n // method: rpc method to call\n // data: optional object with rpc parameters\n // callback: optional callback invoked when a response is received\n handler.rpc = function (method, data, callback) {\n data = {\n method: method,\n id: ++context.id,\n data: data\n };\n var msg = JSON.stringify(data);\n if (callback) {\n context.executed[data.id] = callback;\n }\n return handler.sendMessage(msg);\n };\n\n handler.connect = function (onopen) {\n var sock = context.sock;\n\n if (angular.isArray(sock)) {\n if (onopen) sock.push(onopen);\n }\n else if (sock) {\n if (onopen) onopen(sock);\n } else {\n sock = [];\n context.sock = sock;\n if (onopen) sock.push(onopen);\n\n require(['sockjs'], function (SockJs) {\n var sock = new SockJs(url);\n\n sock.onopen = function () {\n var callbacks = context.sock;\n context.sock = sock;\n log.info('New web socket connection with ' + url);\n callbacks.forEach(function (cbk) {\n cbk(sock);\n });\n };\n\n sock.onmessage = function (e) {\n var msg = angular.fromJson(e.data),\n listeners;\n if (msg.event)\n log.info('event', msg.event);\n if (msg.channel)\n listeners = websocketChannels[msg.channel];\n if (msg.data)\n msg.data = angular.fromJson(msg.data);\n if (msg.channel === 'rpc') {\n if (typeof msg.data.id !== 'undefined') {\n if (context.executed[msg.data.id]) {\n context.executed[msg.data.id](msg.data.data, sock);\n if (msg.data.rpcComplete) {\n delete context.executed[msg.data.id];\n }\n }\n }\n } else {\n angular.forEach(listeners, function (listener) {\n listener(sock, msg);\n });\n }\n\n };\n\n sock.onclose = function () {\n delete websockets[url];\n log.warn('Connection with ' + url + ' CLOSED');\n };\n });\n }\n return handler;\n };\n\n handler.sendMessage = function (msg, forceEncode) {\n return handler.connect(function (sock) {\n if (typeof msg !== 'string' || forceEncode) {\n msg = JSON.stringify(msg);\n }\n sock.send(msg);\n });\n };\n\n handler.disconnect = function () {\n var sock = context.sock;\n\n if (angular.isArray(sock))\n sock.push(function (s) {\n s.close();\n });\n else if (sock)\n sock.close();\n return handler;\n };\n\n handler.addListener = function (channel, callback) {\n var callbacks = websocketChannels[channel];\n if (!callbacks) {\n callbacks = [];\n websocketChannels[channel] = callbacks;\n }\n callbacks.push(callback);\n };\n\n return handler;\n}", "title": "" }, { "docid": "7c83c73476d4ed64572374f400dc16b0", "score": "0.65313154", "text": "function webSocketInit()\n{\n\t// uri za web socket\n\tvar webSocketURI = \"ws://\" + document.location.host + \"/OST_Project/websocket\";\n\n\t// logiranje urija\n\tconsole.log(webSocketURI);\n\n\t// postavljanje web socketa\n\twebsocket = new WebSocket(webSocketURI);\n\n\t// callback kada se otvori web socket\n\twebsocket.onopen = function(evt)\n\t{\n\t\t// šalje obavijest o joinu\n\t\twebsocket.send(makeMessage(\"patient\", \"join\"));\n\t};\n\n\t// callback kada se dobije poruka\n\twebsocket.onmessage = function(evt)\n\t{\n\t\t// dohvaća podatke\n\t\tvar data = JSON.parse(evt.data);\n\n\t\t// provjerava je li poruka za therapista\n\t\tif(data.role == \"therapist\")\n\t\t{\n\t\t\t// provjerava je li join poruka\n\t\t\tif(data.type == \"join\" || data.type == \"join_ok\")\n\t\t\t{\n\t\t\t\t// logira tko se prijavio\n\t\t\t\tconsole.log(data.role + \" joined\");\n\t\n\t\t\t\t// postavlja status pacijenta na online\n\t\t\t\tsetOthersStatus(\"online\");\n\t\t\t\t\n\t\t\t\t// ako je samo join poruka\n\t\t\t\tif(data.type == \"join\")\n\t\t\t\t{\n\t\t\t\t\t// vraća nazad join_ok\n\t\t\t\t\twebsocket.send(makeMessage(\"patient\", \"join_ok\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\t// provjerava je li quit poruka\n\t\t\telse if(data.type == \"quit\")\n\t\t\t{\n\t\t\t\t// logira tko se prijavio\n\t\t\t\tconsole.log(data.role + \" exited\");\n\t\n\t\t\t\t// postavlja status pacijenta na online\n\t\t\t\tsetOthersStatus(\"offline\");\n\t\t\t}\n\t\t\t// provjerava je li av poruka\n\t\t\telse if(data.type == \"audio_video\")\n\t\t\t{\n\t\t\t\t// logira šta je dobio\n\t\t\t\tconsole.log(evt.data);\n\t\n\t\t\t\t// postavlja podatke\n\t\t\t\tsetData(data_video, data.videoSignal);\n\t\t\t\tsetData(data_audio, data.audioSignal);\n\t\t\t}\n\t\t\t// provjerava je li poruka s pobudom\n\t\t\telse if(data.type == \"arousal\")\n\t\t\t{\n\t\t\t\t// logira šta je dobio\n\t\t\t\tconsole.log(evt.data);\n\t\t\t\t\n\t\t\t\t// mijenja sliku i arousal\n\t\t\t\tchangeArousal(data.link, data.arousal);\n\t\t\t}\n\t\t}\n\t};\n\n\t// callback kada se dogodi error\n\twebsocket.onerror = function(evt)\n\t{\n\t\t// postavlja status pacijenta na offline\n\t\tsetOthersStatus(\"offline\");\n\n\t\t// dojavljuje da se desio error\n\t\talert(\"Error: \" + evt.data);\n\t};\n}", "title": "" }, { "docid": "bd1df1b63fcaceac1927dfa19d802248", "score": "0.65237", "text": "function initVideoCtrlWS(){\n var wss = new WebSocket.Server({port:CONST.PORT.WS_CTRL});\n console.log(\"WS(8081) is running ...\")\n wss.on('connection',function connection(ws){\n console.log('accept connection from'+ws.address);\n ws.on('message',function incoming(data){\n var jsonData = JSON.parse(data);\n console.log('message:'+data);\n var home = getHomeByUsername(jsonData.username);\n if(home.video_ctrl_ws==null){ //first visit\n home.video_ctrl_ws=ws;\n }else{\n //nothing,only accept connection here\n }\n\n });\n });\n}", "title": "" }, { "docid": "8d0890d94befb25000504fa66dc562ec", "score": "0.65233606", "text": "function create_websocket()\n{\n\tvar port;\n\tvar protocol;\n\n\tif (location.protocol == 'http:') {\n\t\tport = (location.port == 80 ? '' : ':' + location.port);\n\t\tprotocol = 'ws:';\n\t}\n\telse if (location.protocol == 'https:') {\n\t\tport = (location.port == 443 ? '' : ':' + location.port);\n\t\tprotocol = 'wss:';\n\t}\n\telse {\n\t\tconsole.log('Unsupported protocol: ' + location.protocol);\n\t\treturn;\n\t}\n\n\tvar game_slug = $('button#reset-escapegame').val();\n\n\tvar heartbeat_msg = '--heartbeat--', heartbeat_interval = null, missed_heartbeats = 0;\n\n\tvar ws = new WebSocket(protocol + '//' + location.hostname + port + '/ws/notify-' + game_slug + '?subscribe-broadcast');\n\n\tws.onopen = function() {\n\t\tconsole.log('websocket connected');\n\n\t\tif (heartbeat_interval === null) {\n\t\t\tmissed_heartbeats = 0;\n\t\t\theartbeat_interval = setInterval(function() {\n\t\t\t\ttry {\n\t\t\t\t\tmissed_heartbeats++;\n\t\t\t\t\tif (missed_heartbeats >= 3)\n\t\t\t\t\t\tthrow new Error(\"Too many missed heartbeats.\");\n\t\t\t\t\tws.send(heartbeat_msg);\n\t\t\t\t}\n\t\t\t\tcatch(e) {\n\t\t\t\t\tclearInterval(heartbeat_interval);\n\t\t\t\t\theartbeat_interval = null;\n\t\t\t\t\tconsole.warn(\"Closing connection. Reason: \" + e.message);\n\t\t\t\t\tws.close();\n\t\t\t\t}\n\t\t\t}, 5000);\n\t\t}\n\t};\n\n\tws.onmessage = function(e) {\n\n\t\t// Heartbeat messages\n\t\tif (e.data === heartbeat_msg) {\n\t\t\tmissed_heartbeats = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tconsole.log('websocket received data: ' + e.data);\n\n\t\t// Notify messages, meaning we have to refresh the page\n\t\tif (e.data.startsWith('notify')) {\n\t\t\trefresh_page();\n\t\t\treturn;\n\t\t}\n\n\t\t// Timer messages, meaning we have to update the game counter\n\t\t$('div#counter').text(e.data);\n\t};\n\n\tws.onerror = function(e) {\n\t\tconsole.log('websocket error');\n\t\tconsole.error(e);\n\t};\n\n\tws.onclose = function(e) {\n\t\tconsole.log('websocket closed');\n\t};\n}", "title": "" }, { "docid": "def7fd079179f77189fbfd48658fc88b", "score": "0.65231854", "text": "connect() {\n\t\tthis.baseWebsocketConnect();\n\t}", "title": "" }, { "docid": "ea24ccfabb7157cf6e1a6710934a4881", "score": "0.6521568", "text": "constructor(websocket_location, shared_seed, layer) {\n this.websocket_location = websocket_location;\n this.shared_seed = shared_seed;\n this.layer = layer;\n this.uuid = Uuid.uuidv4();\n\n this.onmessage = null;\n this.onbinmessage = null;\n\n var ws_url = websocket_location.toWsUrl();\n this.websocket = this.setupWebsocket(ws_url);\n }", "title": "" }, { "docid": "163f15854ff743859310b3634554c17f", "score": "0.6516935", "text": "_connect() {\n // Ensure that there is no open WebSocket from a previous Connection.\n this._closeSocket();\n\n /**\n * @typedef {Object} WebsocketLike\n * @property {(str: string) => void} WebsocketLike.send\n * @property {function(): void} WebsocketLike.close\n * @property {function(): void} WebsocketLike.onopen\n * @property {(e: ErrorEvent) => void} WebsocketLike.onerror\n * @property {(e: CloseEvent) => void} WebsocketLike.onclose\n * @property {(message: MessageEvent) => void} WebsocketLike.onmessage\n * @property {string} WebsocketLike.readyState\n */\n\n /** @type {import('ws')|WebSocket|WebsocketLike} */\n this.socket = new WebSocket(this._conn.service, 'xmpp');\n this.socket.onopen = () => this._onOpen();\n /** @param {ErrorEvent} e */\n this.socket.onerror = (e) => this._onError(e);\n /** @param {CloseEvent} e */\n this.socket.onclose = (e) => this._onClose(e);\n /**\n * Gets replaced with this._onMessage once _onInitialMessage is called\n * @param {MessageEvent} message\n */\n this.socket.onmessage = (message) => this._onInitialMessage(message);\n }", "title": "" }, { "docid": "f60ae89f2dc46669a20b4d141b4bdf42", "score": "0.65168554", "text": "static connectToServer({ websocket, session }) {\n try {\n if (Events.#$socket) return;\n Events.#$socket = new WebSocket(websocket);\n\n Events.#$socket.onopen = (event) => {\n Events.#$socket.send(`session: ${session}\\n\\n`);\n this.log(\"WebSocket connection established\");\n };\n\n Events.#$socket.onmessage = (event) => {\n localStorage.setItem(`${Events.#$prefix}-event`, event.data);\n this.dispatch(event.data)\n };\n\n Events.#$socket.onerror = (event) => {\n if (Events.#$socket) this.log(\"WebSocket connection terminated\");\n Events.#$socket = null\n };\n\n Events.#$socket.onclose = (event) => {\n if (Events.#$socket) this.log(\"WebSocket connection terminated\");\n Events.#$socket = null\n }\n } catch (e) {\n this.log(e)\n }\n }", "title": "" }, { "docid": "5ed2f17ecfc363023d6f62665af4bb1c", "score": "0.64810467", "text": "function openConnection() {\n webSocketClient = new WebSocket(\"ws://localhost:8080/ws\");\n webSocketClient.onopen = function (e) {\n alert(\"[open] Connection Established\");\n wsStatus.innerHTML = \"Websocket Connected\";\n connectionChecker = 1;\n };\n}", "title": "" }, { "docid": "c63287ff9e167743bd3295dbf2750b07", "score": "0.64788395", "text": "function wsStart() {\n\t\tvar ws = new WebSocket(opts.websocket);\n ws.onopen = function() { opts.intro_messages.opening.created_at = new Date(); send_to_wire(opts.intro_messages.opening); };\n ws.onclose = function() { if(opts.debug) { opts.intro_messages.closing.created_at = new Date(); send_to_wire(opts.intro_messages.closing); } };\n ws.onmessage = function(evt) {\n\t\t\ttry {\n\t\t\t\tvar msg = $.parseJSON(evt.data);\n\t\t\t\tDashboard.prototype.broadcast(msg);\n\t\t\t} catch(e) {\n\t\t\t\tconsole.log('Dashboard::wsStart: cannot decode message');\n\t\t\t\tconsole.log(e);\n\t\t\t\topts.error.body = 'Dashboard::wsStart: cannot decode message';\n\t\t\t\tDashboard.prototype.broadcast(opts.error);\n\t\t\t}\n\t\t};\n }", "title": "" }, { "docid": "7a8693a376481d3141b64b1c968bd9ea", "score": "0.6473308", "text": "open(url) {\n\t\tif (this.sock) {\n\t\t\tthis.sock.close();\n\t\t}\n\n\t\tthis.sock = new WebSocket(url);\n\t\tthis.sock.onmessage = this.handleSignalEvent;\n\t\tthis.sock.onclose = this.handleClose;\n\t}", "title": "" }, { "docid": "027126a2c3c2b9a00200b28a0776c0c7", "score": "0.6469533", "text": "start()\n {\n if(this.client === null)\n {\n this.client = new WebSocket(this.url);\n this.client.on(\"close\", () => this.restart());\n this.client.on(\"error\", () => this.restart());\n }\n else\n {\n throw new Error(\"already started\");\n }\n }", "title": "" }, { "docid": "b2b45b54deaba678e78059b638080958", "score": "0.64535534", "text": "componentWillMount() {\n this.ws = new WebSocket(\"ws://localhost:8000/ws\");\n this.ws.onopen = () => {\n this.ws.binaryType = \"arraybuffer\";\n this.props.addSocketToState(this.ws);\n console.log(\"opened socket\");\n };\n }", "title": "" }, { "docid": "01cfd7146ae4d1b4aa548992f6d3487c", "score": "0.6453491", "text": "function init() {\n openWebSocket();\n retrieveQueue();\n}", "title": "" }, { "docid": "0892d81b62729dc2f9a57c05420f2959", "score": "0.64399797", "text": "addPeer(host, port) {\n let connection = new WebSocket(`ws://${host}:${port}`)\n\n connection.on('error', (error) => {\n console.log(error)\n })\n\n connection.on('open', (msg) => {\n this.initConnection(connection)\n })\n }", "title": "" }, { "docid": "ce6365e1ffa06a16684a751c7b22b72a", "score": "0.64111865", "text": "function init() {\n var wsUri = \"ws://\" + document.location.host + document.location.pathname + \"websocket\";\n websocket = new WebSocket(wsUri);\n // when the websocket connection is formed\n websocket.onopen = function (event) {\n console.log(\"Connection established\");\n // send the \"reload\" action to get the cart details from the server\n sendText(JSON.stringify({action: \"reload\", item: \"reload\"}));\n };\n\n //Sets the method to execute when a message arrives\n websocket.onmessage = function (evt) {\n onMessage(evt)\n };\n //Sets the method to execute when an error occurs\n websocket.onerror = function (evt) {\n onError(evt)\n };\n}", "title": "" }, { "docid": "517a1ff49291d398a3f57536bafaf486", "score": "0.6409084", "text": "init(wsConfig) {\n this[config] = thorin.util.extend({\n debug: true,\n adapter: {\n store: null, // the redis store to use as an adapter.\n channel: 'thorin:ws' // the channel to use for pubsub\n },\n authorization: null, // if specified, override the default authorization of the http transport\n transport: 'http',\n actionName: 'dispatch', // the default action to listen to.\n options: { // socket.io options\n path: '/ws'\n // wsEngine: the websocket engine to use. IF specified, we will automatically look for it in thorin.root / node_modules/engine\n }\n }, wsConfig);\n if (typeof this[config].options.wsEngine === 'string') {\n this[config].options.wsEngine = path.normalize(thorin.root + '/node_modules/' + this[config].options.wsEngine);\n }\n thorin.config.set('transport.' + this.name, this[config]);\n this[app] = new SocketIoApp(this[config], this._log.bind(this));\n }", "title": "" }, { "docid": "fca2653d10a4fd4a51c9de9a95f5c9be", "score": "0.6397229", "text": "setupWSServer() {\n const wss = new WebSocket.Server({ port: SERVER_PORT_NUMBER });\n console.log(\n `[ws server] WebSocket server is listening on port ${SERVER_PORT_NUMBER}.`\n );\n wss.on(\n \"connection\",\n function connection(ws) {\n ws.on(\"message\", (message) => {\n console.log(\"[ws server] received: %s\", message);\n });\n\n ws.send(JSON.stringify(this.getAllExchangesData()));\n }.bind(this)\n );\n return wss;\n }", "title": "" }, { "docid": "aa0b7021ae03ada1907c78b8ce1af025", "score": "0.639716", "text": "function ws () {\n\n\n\n\n return global.WebSocket || global.MozWebSocket;\n}", "title": "" }, { "docid": "cf3edd0038dc20143b10134ae45877a7", "score": "0.63705665", "text": "start() {\n this.wss = new WebSocket.Server({\n port: this.port,\n });\n this.wss.on('connection', (ws, req) => this.onConnectionCallback(ws, req));\n this.logger.info('Starting RachServer');\n }", "title": "" }, { "docid": "7ee4a3eac89c2f6ce6342ffe1b38fd15", "score": "0.63642293", "text": "componentDidMount() {\n this.socket = new WebSocket(\"ws://127.0.0.1:3001\")\n this.socket.onopen = (ev) => {\n this.socket.onmessage = (ev) => {\n this.processIncomingMessage(ev.data)\n }\n }\n }", "title": "" }, { "docid": "2e8530e71560d20c188aa56fa2cac82c", "score": "0.6359042", "text": "connect () {\n\n const ws = new WebSocket(this._url)\n this._ws = ws\n\n // clear timeout of reconnect\n if (this._reconnectTimeout) {\n clearTimeout(this._reconnectTimeout)\n }\n\n ws.onopen = () => {\n\n // change status of connected\n this._connected = true\n this._isReconnecting = false\n\n console.log('Connected to the server')\n\n if (this._user) {\n this.send({\n action: 'connect',\n payload: {\n user: this._user\n }\n })\n }\n\n // run queue\n this.runQueue()\n\n this.runSubscriptionQueue()\n\n }\n // listen a message from the server\n ws.onmessage = (message) => {\n\n const jsonMessage = this.stringToJson(message.data)\n\n const action = jsonMessage.action\n const payload = jsonMessage.payload\n\n switch (action) {\n\n case 'me':\n\n this._id = payload.id\n\n break\n\n case 'publish':\n\n this.emitter.emit(`subscribe_topic_${payload.topic}`, payload.message)\n\n break\n\n default:\n\n break\n }\n\n }\n ws.onerror = (err) => {\n\n console.log('unable connect to the server', err)\n\n this._connected = false\n this._isReconnecting = false\n this.reconnect()\n\n }\n ws.onclose = () => {\n this._connected = false\n this._isReconnecting = false\n this.reconnect()\n\n }\n\n }", "title": "" }, { "docid": "20f4337be9d030470649e8c00f8b0c8a", "score": "0.63493377", "text": "start() {\n //noinspection JSCheckFunctionSignatures\n this._socket = new WebSocket(this.url, this.protocols)\n const socketEvent = (e, func, event) => {\n func(e)\n this._eventBus.dispatch({event, payload: e}).promise.catch(onDispatchError)\n }\n this._socket.onopen = (e) => socketEvent(e, this.onOpen, this.socket_open)\n this._socket.onerror = (e) => socketEvent(e, this.onError, this.socket_error)\n this._socket.onclose = (e) => socketEvent(e, this.onClose, this.socket_close)\n this._socket.onmessage = (event) => {\n const data = this.transformMessage(event.data)\n // emits change events - remove the notifier as it is redundant ?\n this.store.messages = this.store.messages.insert(data, this._front)\n this._eventBus.dispatch({\n event: this.socket_message_received,\n payload: {data, store: this.store.messages}\n })\n }\n }", "title": "" }, { "docid": "304105e051d61456c24bb485395a7106", "score": "0.63488144", "text": "function runWebsocket () {\n var WebSocketClient = require('websocket').client;\n\n var wsClient = new WebSocketClient();\n\n wsClient.on('connectFailed', function(error) {\n console.error('Connect Error: ' + error.toString());\n });\n\n wsClient.on('connect', function(connection) {\n console.system('Listening for live events...');\n connection.on('error', function(error) {\n console.error(\"Connection Error: \" + error.toString());\n });\n connection.on('close', function() {\n console.error('Connection Closed');\n // We retry a connection\n setTimeout(runWebsocket, RETRY_DELAY);\n });\n connection.on('message', function(message) {\n if (message.type === 'utf8') {\n manageMessage(message.utf8Data);\n }\n });\n\n function sendAuth() {\n if (connection.connected) {\n var data =\n {\n \"seq\": 1,\n \"action\": \"authentication_challenge\",\n \"data\": {\n \"token\": client.token\n }\n }\n connection.sendUTF(JSON.stringify(data));\n }\n }\n sendAuth();\n });\n\n wsClient.connect(wsUrl, '', '');\n}", "title": "" }, { "docid": "0bfef6df4c6032fa957b86abd289652c", "score": "0.6345263", "text": "function wsConnect(url) {\n \n // Connect to WebSocket server\n websocket = new WebSocket(url);\n \n // Assign callbacks\n websocket.onopen = function(evt) { onOpen(evt) };\n websocket.onclose = function(evt) { onClose(evt) };\n websocket.onmessage = function(evt) { onMessage(evt) };\n websocket.onerror = function(evt) { onError(evt) };\n}", "title": "" }, { "docid": "723f1ae94e42267263b690740b92f3bd", "score": "0.634338", "text": "function WebSocketWrap(url,protocols){\n validateURL(url);\n var Events = KUBE.Events();\n var WSClient;\n //This is really stupid, but I need to do it. Even passing \"undefined\" in as 2nd param to WS causes strangeness.\n if(protocols){\n WSClient = new WebSocket(url,protocols);\n }\n else{\n WSClient = new WebSocket(url);\n }\n\n var ret = {};\n\n Object.defineProperties(ret,{\n \"binaryType\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.binaryType},\n \"set\": function(v){ WSClient.binaryType = v;}\n },\n \"bufferedAmount\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.bufferedAmount},\n \"set\": undefined\n },\n \"extensions\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.extensions},\n \"set\": undefined\n },\n \"protocol\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.protocol},\n \"set\": undefined\n },\n \"readyState\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.readyState},\n \"set\": undefined\n },\n \"url\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"get\": function(){return WSClient.url},\n \"set\": undefined\n },\n \"Close\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Close\n },\n \"close\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Close\n },\n \"Send\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Send\n },\n \"send\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Send\n },\n \"On\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Events.On\n },\n \"on\": {\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Events.On\n },\n \"Clear\":{\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Events.Clear\n },\n \"Cleanup\":{\n \"enumerable\": true,\n \"configurable\": false,\n \"value\": Cleanup\n }\n });\n\n\n WSClient.onclose = function(){\n var args = Array.prototype.slice.call(arguments);\n args.unshift('close');\n Events.Emit.apply(this,args);\n Events.EmitState('close');\n };\n\n WSClient.onerror = function(){\n var args = Array.prototype.slice.call(arguments);\n args.unshift('error');\n Events.Emit.apply(this,args);\n };\n\n WSClient.onmessage = function(){\n var args = Array.prototype.slice.call(arguments);\n args.unshift('message');\n Events.Emit.apply(this,args);\n };\n\n WSClient.onopen = function(){\n var args = Array.prototype.slice.call(arguments);\n args.unshift('open');\n Events.Emit.apply(this,args);\n Events.EmitState('open');\n };\n\n return ret;\n\n\n function Send(data){\n if(WSClient.readyState === WebSocket.CONNECTING){\n Events.Once('open',function(){\n Send(data);\n })\n } else{\n WSClient.send(data);\n }\n\n }\n\n function Close(shortCode,reason){\n WSClient.close(shortCode,reason);\n }\n\n function Cleanup(){\n if(WSClient.readyState === WebSocket.OPEN){\n Close();\n }\n else if(WSClient.readyState === WebSocket.CLOSING){\n setTimeout(Cleanup,5000);\n }\n else if(WSClient.readyState === WebSocket.CLOSED){\n clean();\n }\n\n function clean(){\n Events.Clear('open'); Events.Clear('message'); Events.Clear('close'); Events.Clear('error');\n Events = undefined;\n WSClient.onopen = WSClient.onmessage = WSClient.onclose = WSClient.onerror = undefined;\n WSClient = undefined;\n }\n\n }\n\n function validateURL(url){\n //This is a hilarious hack.\n var parser = document.createElement('a');\n parser.href = url;\n\n if(parser.protocol != \"ws:\" && parser.protocol != \"wss:\"){\n throw new Error(\"WebSocket URL must be ws: or wss: protocol \")\n }\n\n if(!parser.hostname){\n throw new Error(\"WebSocket requires a hostname\")\n }\n\n\n }\n\n }", "title": "" }, { "docid": "4204c8b4cf40d61479267b7f92deff47", "score": "0.63187164", "text": "function CreateWebSocketConnection(WebSocketUrl){\r\n\tvar webSocket = new WebSocket(WebSocketUrl);\r\n\t\r\n\t// Callback method triggered on web socket connection opening.\r\n\twebSocket.onopen = function(event)\r\n\t{\r\n\t\tconsole.log(\"Connection opened.\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Update the display with current values when we open a WebSocket connection. \r\n\t\t\tPopulateDisplay();\r\n\t\t}\r\n\t\tcatch(e){\r\n\t\t\t\r\n\t\t}\r\n\t};\r\n\r\n\t// Callback method triggered on web socket connection error.\r\n\twebSocket.onerror = function(event)\r\n\t{\r\n\t\tconsole.log(\"Connection aborted.\");\r\n\t};\r\n\r\n\t// Callback method triggered on web socket connection closing.\r\n\twebSocket.onclose = function(event)\r\n\t{\r\n\t\tconsole.log(\"Connection closed.\");\r\n\t};\r\n\r\n\t// Callback method triggered on web socket connection message received. \r\n\t// On receiving value changes for an element, parse response and update our internal element storage.\r\n\twebSocket.onmessage = function(event)\r\n\t{\r\n\t\tvar responseObject = JSON.parse(event.data);\r\n\t\tvar name = responseObject.Items[0].Name;\r\n\t\tif(name === \"Temperature\")\r\n\t\t{\r\n\t\t\t// Get the name of the element from the response body. \r\n\t\t\tvar elementUpdated = responseObject.Items[0].Path.substring(responseObject.Items[0].Path.lastIndexOf('\\\\') + 1).split(\"|\")[0];\r\n\t\t\t\r\n\t\t\t// Get the new sensor value from the response body.\r\n\t\t\tvar newSensorValue = responseObject.Items[0].Items[0].Value;\r\n\t\t\t\r\n\t\t\t// Find the element that was updated in our internal list this file maintains, and update its current value to the new value. \r\n\t\t\tfunction findElements(updatedElement){\r\n\t\t\t\treturn function (currentElement) {\r\n\t\t\t\t\treturn currentElement.Name === updatedElement;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvar af_element = af_elements.find(findElements(elementUpdated));\r\n\t\t\taf_element.Value = newSensorValue;\r\n\t\t\t\r\n\t\t\t// Update the display with the new values. \r\n\t\t\tPopulateDisplay();\r\n\t\t}\r\n\t};\r\n}", "title": "" }, { "docid": "bb87f6ae89af0a4670f3c1c045d2f5d6", "score": "0.63162476", "text": "function setupWebSocket(server) {\n // ws instance\n const wss = new WebSocket.Server({ noServer: true });\n\n // broadcastPipeline(wss.clients);\n\n // handle upgrade of the request\n server.on(\"upgrade\", function upgrade(request, socket, head) {\n console.info(\"upgrade:\", upgrade);\n try {\n // authentication and some other steps will come here\n // we can choose whether to upgrade or not\n\n wss.handleUpgrade(request, socket, head, function done(ws) {\n wss.emit(\"connection\", ws, request);\n });\n } catch (err) {\n console.log(\"upgrade exception\", err);\n socket.write(\"HTTP/1.1 401 Unauthorized\\r\\n\\r\\n\");\n socket.destroy();\n return;\n }\n });\n\n // what to do after a connection is established\n wss.on(\"connection\", (ctx) => {\n // print number of active connections\n console.log(\"connected\", wss.clients.size);\n\n // handle message events\n // receive a message and echo it back\n ctx.on(\"message\", (message) => {\n console.log(`Received message => ${message}`);\n console.log(\"wss.clients:\", wss.clients);\n // ctx.send(`you said ${message}`);\n for (let c of wss.clients.values()) {\n c.send(JSON.stringify(JSON.parse(message)));\n }\n });\n\n // handle close event\n ctx.on(\"close\", () => {\n console.log(\"closed\", wss.clients.size);\n });\n\n // sent a message that we're good to proceed\n ctx.send(JSON.stringify({ msg: \"connection established.\" }));\n });\n}", "title": "" }, { "docid": "58f38b8a2da5a05ed066c79378e086b7", "score": "0.63105446", "text": "function WebSocketConnect() {\n\tif (\"WebSocket\" in window) {\n\t\tws = new WebSocket(\"ws://\" + window.location.hostname + \":2222\");\n\t\tws.onopen = function(evt) { \n\t\t\tconsole.log(\"connection open\");\n\t\t\t\n\t\t\tvar json = {\"request\" : \"FetchUserSettings\"};\n\t\t\twindow.socket.send(JSON.stringify(json)); // Request the user settings from the server\n\t\t\t\n\t\t\tjson = {\"request\" : \"FetchWashingProgram\"};\n\t\t\twindow.socket.send(JSON.stringify(json)); // Request the list of washing programs from the server\n\n\t\t\tjson = {\"request\" : \"Status\"};\n\t\t\twindow.socket.send(JSON.stringify(json));\n\t\t};\n\t\tws.onclose = function(evt) { console.log(\"Connection closed with code: \" + evt.code); }\n\t\tws.onmessage = function(evt) { process_message(evt); }\n\t\tws.onerror = function(evt) { console.log(\"websocket error: \" + evt); }\n\t\treturn ws;\n\t} else {\n\t\talert(\"WebSocket NOT supported by your Browser!\");\n\t}\n\n}", "title": "" }, { "docid": "c08b05aa267270f4f03765f67046961e", "score": "0.63035136", "text": "connectWS({commit}) {\n const initSocket = _.flowRight(\n registerCloseHandler,\n registerMessageHandler,\n registerOpenHandler,\n connect\n );\n\n function connect() {\n return new SockJS('/sockjs', [], {});\n }\n\n let timerId;\n\n function registerOpenHandler(sockjs) {\n sockjs.addEventListener('open', () => {\n commit('changeState', {\n state: 'OPENED'\n });\n\n timerId = setInterval(() => {\n try {\n sockjs.send(actionBuilder('SOCKJS_TEST'));\n } catch (err) {\n clearTimeout(timerId);\n\n initSocket();\n }\n }, 5000);\n });\n\n return sockjs;\n }\n\n function registerMessageHandler(sockjs) {\n sockjs.addEventListener('message', (e) => {\n commit('reviceData', JSON.parse(e.data));\n });\n\n return sockjs;\n }\n\n function registerCloseHandler(sockjs) {\n sockjs.addEventListener('close', () => {\n commit('changeState', {\n state: 'CLOSED'\n });\n\n clearTimeout(timerId);\n });\n\n return sockjs;\n }\n\n initSocket();\n }", "title": "" }, { "docid": "d167401a85eaeb44eece321cecc94aca", "score": "0.6296017", "text": "function socket_connect(){\n try{\n ws = new WebSocket('ws://'+window.location.hostname+':' + window.location.port || 8080 +'/');\n debug(\"Connected to socket server\");\n } catch (e){\n debug(\"Cannot connect to socket server\");\n }\n}", "title": "" }, { "docid": "7662d1c5259320b8fdae7ca43fc97205", "score": "0.62936914", "text": "function ClientWebSocket() {\n cws = new WebSocket(cws_addr, \"protocolOne\");\n cws.onopen = function (event) {\n var cmd = { Action: \"NewPeer\", Argument: null, Target: null };\n var msg = { Body: cmd, PR: myPeerRank };\n cws.send(JSON.stringify(msg));\n console.log(\"(ClientWebSocket/onopen)\");\n console.log(msg);\n };\n cws.onmessage = function (event) {\n var msg = JSON.parse(event.data);\n console.log(\"(ClientWebSocket/onmessage) \" + event.data.trim());\n HandleMessage(msg);\n };\n cws.onclose = function (event) {\n console.log(\"(ClientWebSocket) WebSocket Closing...\", event.code, event.reason);\n };\n}", "title": "" }, { "docid": "b68bc33f89f7f83cac035547c299e7bb", "score": "0.627762", "text": "function startWebSocket(url) {\n // Let's open a web socket\n socket = new SockJS(url);\n\n socket.onopen = function(event) {\n // Web Socket is connected\n console.log(\"Server socket connect successful.\");\n timesRetried = 0;\n };\n\n socket.onmessage = function (event) {\n // Web Socket received message\n var payload = JSON.parse(event.data);\n var message = payload.message;\n var numPrintersToAdd = payload.num_printers;\n var printerId;\n var printerObject;\n\n // Printer setup occurs on server connect\n if(payload.message_type == \"on_server_connect\") {\n for (var printerDef in message) {\n // Check if printer already exists (happens on socket reconnect)\n printerId = message[printerDef].printer_id;\n if(getPrinterByPrinterId(printerId) !== null){\n return;\n }\n // Else create new printer\n var type = message[printerDef].printer_type;\n var name = message[printerDef].printer_name;\n var url = message[printerDef].url;\n printerObject = new printer(printerId, name, type, url);\n\n // Rotate the snapshot to the angle defined in the database\n var angle = message[printerDef].camera_rotation % 360; // Get it in standard angle range\n var timesToRotate = Math.floor(angle / 90); // Number of times to rotate by 90\n for(var rotationCount=0; rotationCount<timesToRotate; rotationCount++) {\n if(angle > 0) {\n printerObject.printerModule.rotateSnapshotRight90Deg(angle);\n }\n else {\n printerObject.printerModule.rotateSnapshotLeft90Deg(angle);\n }\n }\n\n // Flip the image as required\n var horizFlip = message[printerDef].horizontal_flip;\n var vertFlip = message[printerDef].vertical_flip;\n\n if(horizFlip == \"True\"){\n printerObject.printerModule.flipSnapshotHorizontally();\n }\n if(vertFlip == \"True\") {\n printerObject.printerModule.flipSnapshotVertically();\n }\n }\n }\n // Heartbeat from the printer\n else if(payload.message_type == \"heartbeat\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceiveHeartbeat(message);\n }\n }\n //Printer updates occur on all other types of messages\n //connected: apikey, version. branch, display_version, plugin_hash, config_hash\n else if(payload.message_type == \"connected\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketConnect(message);\n }\n }\n // current: state, job, progress, currentZ, offsets, temps, logs, messages\n else if(payload.message_type == \"current\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceiveCurrent(message);\n }\n }\n // history: state, job, progress, currentZ, offsets, temps, logs, messages\n else if(payload.message_type == \"history\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceiveHistory(message);\n }\n }\n // event: type, payload\n else if(payload.message_type == \"event\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceiveEvent(message);\n }\n }\n // slicingProgress: slicer, source_location, source_path, dest_location, dest_path, progress\n else if(payload.message_type == \"slicingProgress\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceiveSlicingProgress(message);\n }\n }\n // plugin: messages generated by plugins. Plugin-specific.\n else if(payload.message_type == \"plugin\") {\n printerObject = getPrinterByPrinterId(payload.printer_id);\n if(printerObject !== null && printerObject !== undefined) {\n printerObject.onSocketReceivePluginMessage(message);\n }\n }\n else {\n // Unknown payload type\n console.error(\"Unknown payload type detected. Check Octoprint docs for info on new type.\");\n }\n\n // TODO Remove this line after testing\n // document.getElementById(\"test_area\").innerHTML = JSON.stringify(message);\n };\n\n socket.onclose = function(event) {\n // Web Socket is closed. Display error state on printer modules\n for(var printer in printers) {\n var printerModule = printers[printer].printerModule;\n printerModule.DOM.className = \"printer_module error\";\n }\n\n // Try to reconnect\n if(timesRetried <= numTimesToRetrySocketBeforeError) {\n console.error(\"Socket connection closed. Trying to reconnect.\");\n timeout = setTimeout(reconnectSocket, timeoutInterval);\n }\n else {\n console.error(\"Socket connection could not be reestablished. Please refresh the page.\");\n }\n };\n}", "title": "" }, { "docid": "8d621b9a47d9f32e1a41cd098871ae88", "score": "0.6271014", "text": "function GatewayWebSocket() {\n\n var self = this;\n self.socket = null;\n self.state = \"closed\";\n self.interval = null;\n self.stateListeners = [];\n self.dataListeners = [];\n self.outputBinary = false;\n\n self.addStateListener = function (callback) {\n self.stateListeners.push(callback);\n };\n\n self.notifyStateListeners = function () {\n for (var i = 0; i < self.stateListeners.length; i++) {\n try {\n self.stateListeners[i](self.state);\n } catch (err) {\n console.log(err);\n }\n }\n };\n\n self.addDataListener = function (callback) {\n self.dataListeners.push(callback);\n };\n\n self.notifyDataListeners = function (data) {\n for (var i = 0; i < self.dataListeners.length; i++) {\n try {\n self.dataListeners[i](data);\n } catch (err) {\n console.log(err);\n }\n }\n };\n\n self.init = function () {\n // update the state listeners to the initial state first\n self.notifyStateListeners();\n self.checkOpen();\n };\n\n self.setOutputToBinaryArray = function() {\n self.outputBinary = true;\n };\n\n self.checkOpen = function () {\n if (self.socket != null) { return; }\n\n try {\n self.socket = new WebSocket(wsGetUrl());\n } catch (exception) {\n console.log(exception);\n return;\n }\n\n try {\n\n if(self.outputBinary) {\n self.socket.binaryType = \"arraybuffer\";\n }\n\n self.socket.onopen = function() {\n self.stopInterval();\n self.state = \"open\";\n self.notifyStateListeners();\n console.log(\"ws opened: \");\n if(self.outputBinary) {\n console.log(\"ws binary output: \");\n }\n };\n\n self.socket.onmessage = function (msg) {\n self.notifyDataListeners(msg.data);\n };\n\n self.socket.onclose = function (){\n // onclose gets called on connect failure\n // even if the socket was not opened\n if(self.state == \"open\") {\n console.log(\"ws closed: \");\n self.state = \"closed\";\n self.notifyStateListeners();\n }\n delete self.socket;\n self.socket = null;\n self.startInterval();\n };\n\n } catch (exception) {\n alert('<p>Error' + exception);\n }\n\n };\n\n self.startInterval = function() {\n if(self.interval == null) {\n self.interval = setInterval(self.checkOpen, 5000);\n }\n };\n\n self.stopInterval = function() {\n if (self.interval != null) {\n clearInterval(self.interval);\n self.interval = null;\n }\n };\n\n self.isOpen = function() {\n return self.state = \"open\";\n };\n\n self.send = function (message) {\n if (self.socket == null) {\n return false;\n }\n self.socket.send(message);\n return true;\n };\n\n // self.disable = function() {\n // console.log(\"wsFinish\");\n // if (self.interval != null) {\n // clearInterval(self.interval);\n // self.interval = null;\n // }\n // if(self.socket != null) {\n // self.socket.close();\n // self.socket = null;\n // }\n // };\n\n self.reqId = 0;\n\n self.sendRPC = function(method, params) {\n var req = {};\n req.jsonrpc = \"2.0\";\n req.method = method,\n req.params = params,\n req.id = self.reqId++;\n //alert(\"send: \" + JSON.stringify(req));\n self.send(JSON.stringify(req));\n }\n\n self.sendPassword = function(password) {\n self.send(\"password \" +password+ \"\\n\");\n }\n \n}", "title": "" } ]
4ec567cb82c63171c09be684fa57e2f7
private /final/ modulus: /int/ number;
[ { "docid": "52858c8c687776143dfb26b601499f17", "score": "0.0", "text": "function ModulusGF(modulus, generator) {\n var _this = _super.call(this) || this;\n _this.modulus = modulus;\n _this.expTable = new Int32Array(modulus);\n _this.logTable = new Int32Array(modulus);\n var x = /*int*/ 1;\n for (var i /*int*/ = 0; i < modulus; i++) {\n _this.expTable[i] = x;\n x = (x * generator) % modulus;\n }\n for (var i /*int*/ = 0; i < modulus - 1; i++) {\n _this.logTable[_this.expTable[i]] = i;\n }\n // logTable[0] == 0 but this should never be used\n _this.zero = new ModulusPoly_1.default(_this, new Int32Array([0]));\n _this.one = new ModulusPoly_1.default(_this, new Int32Array([1]));\n return _this;\n }", "title": "" } ]
[ { "docid": "04b5557afbf361af494dcd1783cfc3aa", "score": "0.78618", "text": "function mod(a,b){return(((a % b) + b) % b)}", "title": "" }, { "docid": "0be45f08243732f3cf74eb876fe6d2ea", "score": "0.75746834", "text": "function _mod(_x, _y) { return ((_x % _y) + _y) % _y }", "title": "" }, { "docid": "ad06238a42904819f81163f622160592", "score": "0.75347614", "text": "function mod( a, b ){ let v = a % b; return ( v < 0 )? b+v : v; }", "title": "" }, { "docid": "ec02b6b0a73e34cf8ca5cae9e8b84ddb", "score": "0.7528415", "text": "function modulo(a, b) {\n\t\t return ((a % b) + b) % b;\n\t\t }", "title": "" }, { "docid": "dc537642c39658d5f3092e38dabead0d", "score": "0.74716836", "text": "function modulus(arg1, arg2) {\n var remainder = arg1 % arg2;\n return remainder;\n}", "title": "" }, { "docid": "f85b0faab2ceb9f7e911e77937f188ec", "score": "0.7469282", "text": "function modulo(a,b) {\n return a%b;\n}", "title": "" }, { "docid": "2471b865f83efdb1b9562481bc5987ec", "score": "0.74635977", "text": "function mod(n, m) {\n return ((n % m) + m) % m\n}", "title": "" }, { "docid": "f8c791a4d14025778f99cc68b3cf3067", "score": "0.74282116", "text": "function mod(n, m) {\n return (n % m + m) % m\n}", "title": "" }, { "docid": "b6eb491c142977809720d6925c01b870", "score": "0.7383473", "text": "function modulus(a, n) {\n return ((a % n ) + n ) % n;\n}", "title": "" }, { "docid": "b3946fee0b033d05bda42dcdda55ce53", "score": "0.7373732", "text": "static mod(x, m) {\n\t\treturn (x % m + m) % m;\n\t}", "title": "" }, { "docid": "3c8935aca50baa30cb29d71f6be493ba", "score": "0.7373612", "text": "function mod (a, b) {\n\treturn ((a % b) + b) % b;\n}", "title": "" }, { "docid": "fa44095838dd9abe6d8c403b298ac057", "score": "0.7373247", "text": "function mod(a, b) {\n return (a % b + b) % b;\n}", "title": "" }, { "docid": "3b622fb7c2cd3f7e8a3d0a923795e64e", "score": "0.7362483", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n }", "title": "" }, { "docid": "7870196c8ec8bd2ba96e10ed220a0ee2", "score": "0.7361244", "text": "function mod(n, m)\n{\n\treturn ((n % m) + m) % m;\n}", "title": "" }, { "docid": "a4bde51cf75f5ab091d3da969a98f041", "score": "0.7348418", "text": "function mod(n, m) {\n return ((m % n) + n) % n;\n}", "title": "" }, { "docid": "f351f175f742d2307fb8aac4fcaed90f", "score": "0.73451084", "text": "function mod(n, m) {\n\treturn ((n % m) + m) % m;\n}", "title": "" }, { "docid": "f351f175f742d2307fb8aac4fcaed90f", "score": "0.73451084", "text": "function mod(n, m) {\n\treturn ((n % m) + m) % m;\n}", "title": "" }, { "docid": "3ef77556d7d0967fdd9db4339d259c1e", "score": "0.73210967", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "3ef77556d7d0967fdd9db4339d259c1e", "score": "0.73210967", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "0f4504238ac77101ca7e5c5b20ea59b6", "score": "0.7315534", "text": "function mod(n1, n2) {\n return n1%n2;\n}", "title": "" }, { "docid": "72abfd0b056120b18a581384c069d652", "score": "0.7306824", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "72abfd0b056120b18a581384c069d652", "score": "0.7306824", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "672ce3e5c43d25c6120c29eb4243009a", "score": "0.72852796", "text": "function mod(n, m) {\n return ((n % m) + m) % m;\n }", "title": "" }, { "docid": "250f00dab2a504a259d7522c41f720ff", "score": "0.72586966", "text": "function modInt(n : number) : number {\n var this_array = this.array;\n if(n <= 0) return 0;\n var d = BigInteger.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this_array[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this_array[i])%n;\n return r;\n }", "title": "" }, { "docid": "13e9c65e1c780abb3897d5fc5339c47b", "score": "0.7219901", "text": "function mod(n, m) {\n\t var q = n % m;\n\t return q < 0 ? q + m : q;\n\t}", "title": "" }, { "docid": "dbc402bd035aaae4e29a31f6428cfceb", "score": "0.71902496", "text": "function modulus(a, b) {\n\treturn a - b * Math.floor(a / b)\n}", "title": "" }, { "docid": "0b096a2bbb169f6f4af04fb700e9ea0d", "score": "0.71532506", "text": "function modulo(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "31d498d6c64e11702ecb43985d3d27af", "score": "0.7146821", "text": "function modulo(n, m) {\n return ((n % m) + m) % m;\n}", "title": "" }, { "docid": "cbd2ceea9a89973ee193176af4ba7f34", "score": "0.7144809", "text": "mod() {}", "title": "" }, { "docid": "cbd2ceea9a89973ee193176af4ba7f34", "score": "0.7144809", "text": "mod() {}", "title": "" }, { "docid": "cbd2ceea9a89973ee193176af4ba7f34", "score": "0.7144809", "text": "mod() {}", "title": "" }, { "docid": "3b2b3b1d764c5cdfd4e3d5ce0c98a22a", "score": "0.7094089", "text": "function imod(a, b) {\n return idivide(a, b, true);\n}", "title": "" }, { "docid": "10639d5b7eb2e443cd0a2d53c7453a73", "score": "0.70620537", "text": "function remainder(a : BigInteger) : BigInteger { var r = BigInteger.nbi(); this.divRemTo(a,null,r); return r; }", "title": "" }, { "docid": "b9ab5251dccac34cf5af9e95665238eb", "score": "0.70613295", "text": "function mod(n, m) {\n var q = n % m;\n return q < 0 ? q + m : q;\n}", "title": "" }, { "docid": "b9ab5251dccac34cf5af9e95665238eb", "score": "0.70613295", "text": "function mod(n, m) {\n var q = n % m;\n return q < 0 ? q + m : q;\n}", "title": "" }, { "docid": "b9ab5251dccac34cf5af9e95665238eb", "score": "0.70613295", "text": "function mod(n, m) {\n var q = n % m;\n return q < 0 ? q + m : q;\n}", "title": "" }, { "docid": "6e24f93f057c7ee1612b3d5ef66ca961", "score": "0.7033754", "text": "function bnpModInt(n) {\n\t if(n <= 0) return 0;\n\t var d = this.DV%n, r = (this.s<0)?n-1:0;\n\t if(this.t > 0)\n\t if(d == 0) r = this[0]%n;\n\t else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n\t return r;\n\t }", "title": "" }, { "docid": "cda369bb199b8a9e9fa132138f542168", "score": "0.70300275", "text": "function remainder(a,b) {\n return a%b;\n}", "title": "" }, { "docid": "ae40e7f7760ab974e3f4975ff80c3849", "score": "0.6984014", "text": "function mod(a, n, dst = create(0, 0)) {\r\n dst.x = a.x % n;\r\n dst.y = a.y % n;\r\n return dst;\r\n}", "title": "" }, { "docid": "0295c9e7d47f081305e63ae55c8a2e2c", "score": "0.6981783", "text": "function mod(a, n) {\n let result = ((a % n) + n) % n;\n return result;\n }", "title": "" }, { "docid": "becc12ae7301ad9a8ec8f00b8d1ef7f6", "score": "0.69778466", "text": "function mod(n, m) {\n var remain = n % m;\n return Math.floor(remain >= 0 ? remain : remain + m);\n }", "title": "" }, { "docid": "a2106bf1617eb611368ae1529d85d221", "score": "0.6975178", "text": "function emod(n, m) {\n return ((n % m) + m) % m;\n }", "title": "" }, { "docid": "a2106bf1617eb611368ae1529d85d221", "score": "0.6975178", "text": "function emod(n, m) {\n return ((n % m) + m) % m;\n }", "title": "" }, { "docid": "d5b103e8147c3c61100b41a3bb65b381", "score": "0.6971694", "text": "function bnpModInt(n) {\n\t if (n <= 0) return 0;\n\t var d = this.DV % n,\n\t r = (this.s < 0) ? n - 1 : 0;\n\t if (this.t > 0)\n\t if (d == 0) r = this[0] % n;\n\t else for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n;\n\t return r;\n\t}", "title": "" }, { "docid": "ffd948c7799e7b98a1b991ba4b4a748f", "score": "0.6965825", "text": "function bnpModInt(n) {\n\t if(n <= 0) return 0;\n\t var d = this.DV%n, r = (this.s<0)?n-1:0;\n\t if(this.t > 0)\n\t if(d == 0) r = this[0]%n;\n\t else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n\t return r;\n\t}", "title": "" }, { "docid": "ffd948c7799e7b98a1b991ba4b4a748f", "score": "0.6965825", "text": "function bnpModInt(n) {\n\t if(n <= 0) return 0;\n\t var d = this.DV%n, r = (this.s<0)?n-1:0;\n\t if(this.t > 0)\n\t if(d == 0) r = this[0]%n;\n\t else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n\t return r;\n\t}", "title": "" }, { "docid": "d6adba8ad65116812ac219be7b815ac8", "score": "0.6962397", "text": "function bnpModInt(n) {\n\tif(n <= 0) return 0;\n\tvar d = this.DV%n, r = (this.s<0)?n-1:0;\n\tif(this.t > 0)\n\t if(d == 0) r = this[0]%n;\n\telse for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n\treturn r;\n }", "title": "" }, { "docid": "42b7e048ca326e64540a5ac6330123d4", "score": "0.6914876", "text": "function modInt(x, n) {\n var i,\n c = 0;\n for (i = x.length - 1; i >= 0; i--) {\n c = (c * radix + x[i]) % n;\n }return c;\n}", "title": "" }, { "docid": "54fbbb0b2548dd2ae4c10911f15c4e3e", "score": "0.6914749", "text": "function incMod(x, mod)\t{\n\treturn (x + 1)%mod\n}", "title": "" }, { "docid": "f59d0fc8841f278698affb83e9e6ca8c", "score": "0.68983936", "text": "function bnpModInt(n) {\nif(n <= 0) return 0;\nvar d = this.DV%n, r = (this.s<0)?n-1:0;\nif(this.t > 0)\n if(d == 0) r = this.data[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n;\nreturn r;\n}", "title": "" }, { "docid": "f59d0fc8841f278698affb83e9e6ca8c", "score": "0.68983936", "text": "function bnpModInt(n) {\nif(n <= 0) return 0;\nvar d = this.DV%n, r = (this.s<0)?n-1:0;\nif(this.t > 0)\n if(d == 0) r = this.data[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n;\nreturn r;\n}", "title": "" }, { "docid": "f59d0fc8841f278698affb83e9e6ca8c", "score": "0.68983936", "text": "function bnpModInt(n) {\nif(n <= 0) return 0;\nvar d = this.DV%n, r = (this.s<0)?n-1:0;\nif(this.t > 0)\n if(d == 0) r = this.data[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n;\nreturn r;\n}", "title": "" }, { "docid": "f59d0fc8841f278698affb83e9e6ca8c", "score": "0.68983936", "text": "function bnpModInt(n) {\nif(n <= 0) return 0;\nvar d = this.DV%n, r = (this.s<0)?n-1:0;\nif(this.t > 0)\n if(d == 0) r = this.data[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n;\nreturn r;\n}", "title": "" }, { "docid": "525e7decb7c4b0aac8eccdcaacdc1297", "score": "0.68908113", "text": "function modInt(x,n) {\n var i,c=0;\n for (i=x.length-1; i>=0; i--)\n c=(c*radix+x[i])%n;\n return c;\n }", "title": "" }, { "docid": "d4d4f89cb17580a97524ff558b9fe08c", "score": "0.68902993", "text": "function Modulo(a, b)\n{\n\tvar Reste = a%b;\n\tif(Reste < 0 && b > 0)\n\t{\n\t\tReste += b;\n\t}\n\treturn Reste;\n}", "title": "" }, { "docid": "47044e78b7599176e6047fb3019f2f2c", "score": "0.68825436", "text": "function bnpModInt(n) {\n if (n <= 0) return 0;\n var d = this.DV % n,\n r = this.s < 0 ? n - 1 : 0;\n if (this.t > 0) if (d == 0) r = this[0] % n;else for (var i = this.t - 1; i >= 0; --i) {\n r = (d * r + this[i]) % n;\n }return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "19ecc17281c6570ea63bb4c529a2dec9", "score": "0.6881766", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "524b8aefc58f6dd9c7095dd31fe9cefa", "score": "0.6870553", "text": "function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }", "title": "" }, { "docid": "7047b24f7820872b90c06f50e1c8e4b9", "score": "0.6869283", "text": "function remainder(num, div) {\n return num % div;\n}", "title": "" }, { "docid": "58418692dbb6bbeb5ccaa3e456dfbb3b", "score": "0.68687594", "text": "function bnpModInt(n) {\n if (n <= 0) return 0;\n var d = this.DV % n,\n r = this.s < 0 ? n - 1 : 0;\n if (this.t > 0) if (d == 0) r = this[0] % n;else for (var i = this.t - 1; i >= 0; --i) {\n r = (d * r + this[i]) % n;\n }return r;\n }", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "839d7d062e607f5493eaf4fedad9db74", "score": "0.6868009", "text": "function bnpModInt(n) {\n if (n <= 0) return 0\n var d = this.DV % n,\n r = (this.s < 0) ? n - 1 : 0\n if (this.t > 0)\n if (d == 0) r = this[0] % n\n else\n for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n\n return r\n}", "title": "" }, { "docid": "2724806204d26921cf1f4fc3c0552330", "score": "0.6864347", "text": "function modulo_num(x, y) {\n var sink = print;\n\n // Integer and float constants\n sink(6 % 5)\n sink(2 % 3)\n sink(-2 % 3)\n sink(2 % -3)\n sink(10 % 0)\n sink(5.5 % 1.5)\n sink(5.5 % -1.5)\n sink(-5.5 % 1.5)\n sink(-5.5 % -1.5)\n sink(5.5 % 2.5)\n sink(5.5 % -2.5)\n\n // Operations with NaN - should all eval to NaN\n sink(10 % (undefined + 1))\n sink((undefined + 1) % 12)\n}", "title": "" } ]
6ce31eef026349d1e64905c89eb54417
websock for listen to events
[ { "docid": "1c9ecfb1c717aa13433ac1094d73d5bd", "score": "0.0", "text": "function listen_for_event(contract_abi, contract_address, event, handlers) {\n // if(handlers) {\n var { onData /* , onChanged, onError */ } = handlers;\n // }\n let contract_inst = new wss_web3.eth.Contract(contract_abi, contract_address);\n\n contract_inst.events[event]({\n fromBlock: \"latest\"\n })\n .on(\"data\", event_data => onData(event_data))\n .on(\"changed\", event_changed =>\n /* onChanged || */ logger.log({ event_changed })\n )\n .on(\"error\", error => /* onError || */ logger.log({ error }));\n}", "title": "" } ]
[ { "docid": "ae34eb68affc414b0d7249dfe6d05053", "score": "0.6794384", "text": "_listen(callback) {\n\t\tlet tcws = new ws(this.Websocket.url, this.Websocket.protocol);\n\t\ttcws.on(\"open\", () => {\n\t\t\tconsole.log(\"Connected to ThingsConnected.\");\n\t\t\ttcws.on(\"message\", callback);\n\t\t\ttcws.on(\"close\", () => {\n\t\t\t\tconsole.log(\"Closed connection to ThingsConnected.\");\n\t\t\t});\n\t\t});\n\t}", "title": "" }, { "docid": "1b89638bc0a069945101225a82d8e73a", "score": "0.65701807", "text": "listen(send) {}", "title": "" }, { "docid": "9aae8aa07fcc6ecf024d63312e4710b1", "score": "0.65168697", "text": "function onListening() {\n}", "title": "" }, { "docid": "2a45fab0e5b80272d86bba4e93727c2d", "score": "0.6508266", "text": "function listenForServerSideEvents(url){\n let source = new EventSource(url)\n\n source.onmessage = function (event){\n document.getElementById('targetDiv').innerHTML += \"<ul>\" + \"<li>\" + event.data + \"</li>\" + \"</ul>\" + '<br>';\n };\n\n source.onopen = function (event){\n document.getElementById('targetDiv').innerHTML = '<b>Connection Oppened.<b> <br><br>';\n };\n\n source.onerror = function (event){\n document.getElementById('targetDiv').innerHTML = '<b>Connection Closed.<b> <br><br>';\n // setTimeout(function(){\n // window.location.reload();\n // }, 2000);\n source.close();\n };\n}", "title": "" }, { "docid": "a27a991b4e8d682a6d0af7eb8e8d8deb", "score": "0.63886416", "text": "function onListening () {\n\n}", "title": "" }, { "docid": "47d040b50bc2dd2b9058e4985b5a182f", "score": "0.63212377", "text": "register() {\n this.rws.addEventListener(\"open\", (event) => {\n this.onEvent(\"connect\", event);\n });\n this.rws.addEventListener(\"close\", (event) => {\n this.onEvent(\"disconnect\", event);\n });\n this.rws.addEventListener(\"error\", (error) => {\n this.onEvent(\"error\", error);\n });\n this.rws.addEventListener(\"message\", (packet) => {\n const res = JSON.parse(packet.data) ?? {};\n this.onEvent(res.type, res);\n });\n }", "title": "" }, { "docid": "8b4da74949b0e3438f2cffe97afd6686", "score": "0.62761027", "text": "startListening(request, data) {\n this.beforeListeningCallback(request, data);\n if (this.noWebsocket === false) {\n this.noWebsocket = !window.WebSocket;\n }\n if (this.noWebsocket === false) {\n this.openWebsocket();\n } else {\n this.openLongPoll();\n }\n }", "title": "" }, { "docid": "e88047775fa8cb2d9aa9ced65b6244c4", "score": "0.6198932", "text": "function onListen(){\n util.info('Servent listening on: ' + JSON.stringify(self.address()));\n }", "title": "" }, { "docid": "88e3990294ba8354d0a79df5e62916f3", "score": "0.617472", "text": "connect(address){\r\n this.connection = new WebSocket(address);\r\n this.connection.addEventListener('open', () => {\r\n console.log(\"connection established!\");\r\n this.initiate();\r\n this.watchEvents();\r\n });\r\n\r\n this.connection.addEventListener('message', event => {\r\n console.log('Received message', event.data);\r\n this.receive(event.data);\r\n });\r\n }", "title": "" }, { "docid": "da41111bcfc37f4cf46abf6855ada093", "score": "0.6165307", "text": "listen(event, orcb){\n\n event = this.socket.formatter.format(event);\n\n var cb = function(data){\n if(data.event == event && data.channel == this.channel){\n orcb(data);\n }\n }.bind(this);\n\n this.socket.on(event, cb);\n }", "title": "" }, { "docid": "e44d3f6d737114fb4424559506f48aa0", "score": "0.61587024", "text": "function init(on_msg, on_error){\n\t var webSocketClient = new WebSocketClient();\n\t\n\t webSocketClient.init(WS_URL, on_msg, on_error);\n\t }", "title": "" }, { "docid": "3f191c703f39d685fc8a9a4251cf1fb2", "score": "0.6133968", "text": "function websocket_onopen() {\n console.log(\"Websocket opened.\");\n}", "title": "" }, { "docid": "7f97ec8ef1f0511a35c8e588c7f0462d", "score": "0.6081752", "text": "listenConnectionEvents() {\n\t\tthis.debug('listenConnectionEvents')\n\t\tthis.io.on ('connection', (socket) => {\n\t\t\tthis.debug ('socket connected')\n\t\t\t\n\t\t\tthis.useMiddleWare (socket)\n\t\t\tthis.listenLifeEvents (socket)\n\t\t\tthis.listenAuth (socket);\n\t\t\t\n\t\t})\n\t}", "title": "" }, { "docid": "2f29cef17cc642ea60bddf380bf7b80d", "score": "0.60646266", "text": "function start() {\n\t\tif (socket === null) {\n\t\t\tsocket = new WebSocket(wsUri);\n\t\t\tsocket.binaryType = 'arraybuffer';\n\t\t\tsocket.onopen = function(event) {\n\t\t\t\teve.f(\"SocketOpen\")();\n\t\t\t};\n\t\t\tsocket.onclose = function(event) {\n\t\t\t\teve.f(\"SocketClose\")();\n\t\t\t\tsocket = null;\n\t\t\t};\n\n\t\t\tsocket.onmessage = function(event) {\n\t\t\t\tSocketOnMessage(event.data);\n\t\t\t};\n\n\t\t} else {\n\t\t\tconsole.log(\"reusing connection to \" + wsUri);\n\t\t}\n\t}", "title": "" }, { "docid": "08e34e5e454ce58dc204fa48a8d4f4f0", "score": "0.60556144", "text": "_onListening() {\n this._socket.addMembership(MULTICAST_ADDRESS);\n this._Whois();\n\n }", "title": "" }, { "docid": "f306b84367a04b686c812f05692d837e", "score": "0.6027597", "text": "function setListeners() {\n streamSource.addEventListener('message', function(e) {\n var data = e.data;\n handleMsg(data);\n }, false);\n\n streamSource.addEventListener(\"error\", function(e) {\n if(e.readyState == EventSource.CLOSED) {\n console.log(\"Connection closed\"); \n }\n }, false);\n \n}", "title": "" }, { "docid": "1ea935105337b711fc5deecb6697576b", "score": "0.6026276", "text": "resubscribe (thing) {\n \tconsole.log('reopening web sockets for ' + thing.name);\n }", "title": "" }, { "docid": "e30659fd4cea0d77a513714e12a684b3", "score": "0.6015067", "text": "function listen() {\n var _this = this\n\n this.handler = function () {\n _this.handleMessage.apply(_this, arguments)\n }\n\n if (window.addEventListener) {\n window.addEventListener('message', this.handler)\n }\n else {\n window.attachEvent('onmessage', this.handler)\n }\n }", "title": "" }, { "docid": "4e2c155f834ba8c30b5db27a4f2c0f05", "score": "0.60057646", "text": "listen () {\n var self = this\n var socket = this._socket\n\n socket.on('msg', onMessage)\n }", "title": "" }, { "docid": "6c9fd9f0ab0f004819eaee4a6a8ce144", "score": "0.60003185", "text": "connect() {\n this.ws = new WebSocket(this.url, this.protocols);\n this.attachEventListeners();\n if (this.messages.length > 0) this.process();\n }", "title": "" }, { "docid": "eb238c8e5c830348c84f40952c0f305d", "score": "0.5985392", "text": "addEventListeners() {\n const self = this;\n\n this.ws.onopen = function() {\n self.onOpen();\n };\n this.ws.onclose = function() {\n self.onClose();\n };\n this.ws.onmessage = function(ev) {\n self.onData(ev.data);\n };\n this.ws.onerror = function(e) {\n self.onError(\"websocket error\", e);\n };\n }", "title": "" }, { "docid": "174aef5da6662b8e0bec17a8c05b1068", "score": "0.5959083", "text": "function onOpen() \n{\n\t/* write the console massage to notify user */\n\twriteText(\"console\", webSocket.readyState);\n\t\n\t/*\n\twriteToScreen(\"CONNECTED\"); \n\tdoSend(\"WebSocket rocks\"); \n\t*/\n}", "title": "" }, { "docid": "e5fb3771ce32b9c4df76d4f6c1240fe3", "score": "0.5949764", "text": "function onListening() {\n var addr = HTTPSERV.address();\n var bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port;\n debug('Listening on ' + bind);\n}", "title": "" }, { "docid": "896030836d9192616d950d23c69f9633", "score": "0.59414244", "text": "function bindSocketEvents(){\n server.on('messages', function (data) {\n append_message(data);\n });\n\n server.on('add_user',function(user_name) {\n $('#users').append(\"<li id='\" +user_name+ \"' class='user_name'><a href='#'>\"+user_name+\"</a></li>\");\n });\n\n server.on('private', function(data){\n append_message(data);\n });\n\n server.on('user_leave', function(user_name) {\n $(\"#\"+user_name).remove();\n })\n }", "title": "" }, { "docid": "1a568b9e2b253ae9b33b7046f744e248", "score": "0.59285384", "text": "function bindListeners() {\r\n // Listen for incoming messages from the website (for example, as injected from getXml())\r\n window.addEventListener('message', handleMessage);\r\n}", "title": "" }, { "docid": "95694e2a1a4d3fc9c4e4b8a8ec17da98", "score": "0.58753204", "text": "async onPush(response) {\n // Send response with web socket\n }", "title": "" }, { "docid": "2b2fc43e19863edabbd89bdbb629754e", "score": "0.58637446", "text": "resubscribe (thing) {\n \tconsole.log('reopening web socket for ' + thing.name);\n }", "title": "" }, { "docid": "0b7655955dff139751679832e4c17128", "score": "0.5857851", "text": "function onListening() {\n const addr = server.address()\n const bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port\n debug('Listening on ' + bind)\n setWebhook(86400)\n setInterval(() => setWebhook(86400), 86400 * 1000)\n}", "title": "" }, { "docid": "86cabd28046e55b62fab4846b3188ddb", "score": "0.58480424", "text": "onConnect() {}", "title": "" }, { "docid": "9bfde7be4ad02d64256f392d8b1c2d9a", "score": "0.5842224", "text": "onConn() {}", "title": "" }, { "docid": "287a75b57b782d3e476aa2dee60646ab", "score": "0.5842216", "text": "function listen( client )\n{\n\tclient.emit('welcome' , \"You have established an connection\");\n\tclient.on('login' , serverCommands.VerifyLogin );\n\t\n\tclient.on('re_establish' , \n\t\tfunction( message ) {\n\t\tclientSocketTable[ message.user_name ] = this;\n\t\tconsole.log(\"re-established \" + message.user_name );\n\t\tmessage.portfolio_name = message.user_name;\n\t\tserverCommands.serveFormula( message, serverCommands.servePlayerInfo, serverCommands.serveMyTrending );\n\t\tserverCommands.serveTrending( message );\n\t\tserverCommands.serveLeaderBoard( message );\n\t\tserverCommands.serveFriends( message );\n\t\tserverCommands.serveFriendRequests( message );\t\t\n\t});\n\tclient.on('tag_page_request' , serverCommands.serveTagPage );\n\tclient.on('create_login' , serverCommands.VerifyCreate );\n\tclient.on('buy_hash' , serverCommands.serveBuyHash );\n\tclient.on('sell_hash' , serverCommands.serveSellHash );\n\tclient.on('trending_request' , serverCommands.serveTrending );\n\tclient.on('top_tags_request' , serverCommands.serveTop );\n\tclient.on('my_investments_request' , serverCommands.serveMyTrending );\n\tclient.on('player_info_request' , serverCommands.servePlayerInfo);\n\tclient.on('friend_table_request' , serverCommands.serveFriends);\n\tclient.on('friend_request_request' , serverCommands.serveFriendRequests);\n\tclient.on('friend_button_request' , serverCommands.serveFriendButton);\n\tclient.on('accept_friend' , serverCommands.serveAcceptFriend);\n\tclient.on('decline_friend' , serverCommands.serveDeclineFriend);\n\tclient.on('leader_request' , serverCommands.serveLeaderBoard );\n client.on('search_username' , serverCommands.serveSearchUser );\n\tclient.on('search_user_email' , serverCommands.serveSearchEmail );\n\tclient.on('logout' , serverCommands.serveLogout );\n\tclient.on('chart_request' , serverCommands.serveChart );\n\tclient.on('make_friend_request' , serverCommands.serveMakeFriend );\n\tclient.on('challenges_request' , serverCommands.serveChallenges );\n\tclient.on('accept_challenge' , serverCommands.serveAcceptChallenge );\n\tclient.on('challenge_setup_request' , serverCommands.serveChallengeSetup );\n}", "title": "" }, { "docid": "f7d45574847a0c290afd67eb1929c575", "score": "0.5837729", "text": "function listening(){\n\tconsole.log(\"I'm listening...\");\n}", "title": "" }, { "docid": "6b4938c215edeeef73feadf7a22f3fe5", "score": "0.58345336", "text": "webSocketOnOpen()\n {\n // register API Key\n this.webSocketSendMessage('REGISTER_WEB_CLIENT');\n }", "title": "" }, { "docid": "c2ac82026deb80f94b395704a9bbd0b1", "score": "0.58031785", "text": "function startWs() {\n\n websocket = new WebSocket(url);\n\n websocket.onopen = function (event) {\n websocketOk = true;\n\n if($('#webSocketError').hasClass('in')){\n $('#webSocketError').toggleClass('in').toggleClass('out');\n }\n\n if(quizPin != null){\n logon();\n }\n };\n\n websocket.onerror = function (error) {\n websocketOk = false;\n };\n\n websocket.onclose = function (event) {\n websocketOk = false;\n if ($('#webSocketError').hasClass('out')) {\n $('#webSocketError').toggleClass('out').toggleClass('in');\n }\n setTimeout(function(){\n startWs();\n\n }, 5000);\n };\n\n websocket.onmessage = function (event) {\n processMessage(event.data);\n };\n}", "title": "" }, { "docid": "692c1329434195b903ab25c4939b1549", "score": "0.579832", "text": "function createListener() {\n\t// Load socket\n\tmainWindow.webContents.send('log', 'waiting for connection...');\n\t// Create UDP?\n\tserver = net.createServer((socket) => {\n\t\tsocket.write('Listener active\\r\\n');\n\t\tsocket.pipe(socket);\n\n\t\tconsole.log(\"connected\")\n\t\tmainWindow.webContents.send('log', 'connected');\n\n\t\tsocket.on('end', () => {\n\t\t\tconsole.log('client ended connection, waiting for connection...')\n\t\t\tmainWindow.webContents.send('log', 'client ended connection, waiting for connection...');\n\t\t})\n\n\t\tsocket.on('connect', () => {\n\t\t\tconsole.log(\"connected\")\n\t\t\tmainWindow.webContents.send('log', 'connected');\n\t\t})\n\n\t\t// Try to parse data as JSON, when error returned try old syntax\n\t\tsocket.on('data', (data) => {\n\t\t\tconsole.log(data.toString())\n\t\t\ttry {\n\t\t\t\tprocessIncomingData(JSON.parse(data))\n\t\t\t} catch (e) {\n\t\t\t\tif (data.toString().charAt(0) == '<') {\n\t\t\t\t\tprocessIncomingData2(data)\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(e)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tserver.on('error', function (e) {\n\t\t\tcallback(true);\n\t\t});\n\n\t\tserver.on('listening', function (e) {\n\t\t\tserver.close();\n\t\t\tcallback(false);\n\t\t});\n\t});\n\tserver.listen(port, '0.0.0.0');\n}", "title": "" }, { "docid": "49bc1e44ef34a2c00faff94c2853a9ca", "score": "0.57934153", "text": "registerListeners() {\n this.socket.on('open', this.openHandler.bind(this));\n this.socket.on('message', this.messageHandler.bind(this));\n this.socket.on('close', this.closeHandler.bind(this));\n this.socket.on('error', this.errorHandler.bind(this));\n this.socket.on('ping', this.pingHandler.bind(this));\n }", "title": "" }, { "docid": "a07a46ef9b3a279c46e9ce0b0377285e", "score": "0.5786937", "text": "bindEvents() {\n // listen for chokidar ready event\n this.journalWatcher.on('ready', this.watcherReady.bind(this));\n\n // listen for socket connection\n this.server.on('connection', this.websocketConnection.bind(this));\n\n // listen for process kill\n process.on('SIGINT', this.shutdown.bind(this));\n }", "title": "" }, { "docid": "e229e9b88cadee491459193af3d384fd", "score": "0.5786806", "text": "function initWebSocket(){\n var socketWs = new SockJS('/ws');\n socket = Stomp.over(socketWs);\n socket.connect({}, onConnected, onError);\n event.preventDefault();\n}", "title": "" }, { "docid": "cab81c31d8bfe43cdd24d50a6abea8b9", "score": "0.57709044", "text": "listen(){\n this.bizNetworkConnection.on('event',(evt)=>{\n console.log(chalk.blue.bold('New Event'));\n console.log(evt);\n\n let options = {\n properties: { key:'value'}\n };\n // let text = evt.title['$identifier'];\n // console.log('Sending ' +text);\n // this.sendClient.send('digitalproperty-network/sale', text, options,function (err, topic,data,options) {\n // console.log('Topic: %s', topic);\n // console.log('Data: %s', data);\n // \t\t console.log('Options: %s', JSON.stringify(options));\n // console.log(err);\n //\n // });\n\n });\n }", "title": "" }, { "docid": "3430c8f90e13248783d4d788713a89e0", "score": "0.5770872", "text": "listen(key, callback) {\n\t\tvar options = {\n\t\t\thostname: this.host,\n\t\t\tport: 443,\n\t\t\tpath: key + \".json\",\n\t\t\tmethod: 'PUT',\n\t\t\theaders: {\n\t\t\t\t\"Accept\": \"text/event-stream\"\n\t\t\t}\n\t\t}\n\t\tvar req = https.request(options, function (res) {\n\t\t\tvar i = 0\n\t\t\tres.setEncoding('utf8')\n\t\t\tres.on('data', function(chunk) {\n\t\t\t\tvar args = chunk.split(\"\\n\")\n\t\t\t\tvar method = args[0].substring(7)\n\t\t\t\tif(method == \"keep-alive\")\n\t\t\t\t\treturn\n\t\t\t\tvar event = JSON.parse(args[1].substring(6))\n\t\t\t\tevent.index = i++\n\t\t\t\tevent.method = method\n\t\t\t\tif(callback(event))\n\t\t\t\t\tres.destroy()\n\t\t\t})\n\t\t})\n\t\treq.end()\n\t}", "title": "" }, { "docid": "bd9f41be898746149f6757ac0d52adcf", "score": "0.5760824", "text": "function initSockets() {\n\t\tws = new WebSocket('ws://echo.websocket.org');\n\t\tws.binaryType = \"arraybuffer\";\n \tws.onmessage = function (event) {\n\t\t\tif (event.data instanceof ArrayBuffer) {\n\t\t\t\tif (debug) console.log('Réception de données binaires ArrayBuffer');\n\t\t\t\tfetchImage(event.data);\n\t\t\t}\n\t\t\telse if (event.data instanceof Blob) {\n\t\t\t\tif (debug) console.log('Réception de données binaires Blob');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfetchText(event.data);\n\t\t\t}\n \t};\n\t}", "title": "" }, { "docid": "5c203c01aecd344c60f85d9e64b3efb9", "score": "0.5759033", "text": "function onConnection(socket) {\n if (socket.remoteAddress.startsWith('::ffff:')) { socket.xremoteAddress = socket.remoteAddress.substring(7); } else { socket.xremoteAddress = socket.remoteAddress; }\n console.log('WebServer, socket connection from ' + socket.xremoteAddress + ':' + socket.remotePort);\n socket.xdata = ''; // Accumulator\n socket.on('data', function (data) {\n this.xdata += data.toString('utf8');\n var headersize = this.xdata.indexOf('\\r\\n\\r\\n');\n if (headersize < 0) { if (this.xdata.length > 4096) { this.close(); } return; }\n var headers = this.xdata.substring(0, headersize).split('\\r\\n');\n if (headers.length < 1) { this.close(); return; }\n var headerObj = {};\n for (var i = 1; i < headers.length; i++) { var j = headers[i].indexOf(': '); if (i > 0) { headerObj[headers[i].substring(0, j).toLowerCase()] = headers[i].substring(j + 2); } }\n var hostHeader = (headerObj['host'] != null) ? ('Host: ' + headerObj['host'] + '\\r\\n') : '';\n var directives = headers[0].split(' ');\n if ((directives.length != 3) || ((directives[0] != 'GET') && (directives[0] != 'HEAD'))) { this.end(); return; }\n console.log('WebServer, request', directives[0], directives[1]);\n var responseCode = 404, responseType = 'text/html', responseData = 'Invalid request', r = obj.responses[directives[1]];\n if (r != null) {\n if (typeof r == 'string') {\n responseCode = 200; responseData = obj.responses[directives[1]];\n } else if (typeof r == 'object') {\n responseCode = 200;\n if (r.type) { responseType = r.type; }\n if (r.data) { responseData = r.data; }\n if (r.shortfile) { try { responseData = fs.readFileSync(r.shortfile); } catch (ex) { responseCode = 404; responseType = 'text/html'; responseData = 'File not found'; } }\n if (r.file) {\n // Send the file header and pipe the rest of the file\n this.xfilepath = r.file;\n this.xfilename = path.basename(r.file);\n this.xsize = fs.statSync(r.file).size;\n this.write('HTTP/1.1 200 OK\\r\\n' + hostHeader + 'Content-Type: application/octet-stream\\r\\nConnection: keep-alive\\r\\nContent-Length: ' + this.xsize + '\\r\\n\\r\\n');\n\n if (directives[0] == 'GET') {\n console.log('WebServer, Streaming File: ' + r.file);\n var writable = require('stream').Writable;\n this.progress = new writable({ write: function (chunk, encoding, flush) { this.count += chunk.length; flush(); } });\n this.progress.count = 0;\n var ws = fs.createReadStream(r.file, { flags: 'r' });\n ws.pipe(this.progress); ws.pipe(this);\n obj.transfers.push(this);\n\n // Start the progress bar timer\n if (obj.onTransfers != null) { obj.onTransfers(obj, obj.transfers); if (obj.transfersTimer == null) { obj.transfersTimer = setInterval(function () { obj.onTransfers(obj, obj.transfers); }, 500); } }\n }\n this.xdata = '';\n return;\n }\n }\n }\n socket.write('HTTP/1.1 ' + responseCode + ' OK\\r\\n' + hostHeader + 'Connection: keep-alive\\r\\nContent-Type: ' + responseType + '\\r\\nContent-Length: ' + responseData.length + '\\r\\n\\r\\n');\n socket.write(responseData);\n this.xdata = '';\n });\n socket.on('end', function () { cleanupSocket(this); console.log('WebServer, socket closed'); });\n socket.on('error', function (err) { cleanupSocket(this); console.log('WebServer, socket error', err); });\n }", "title": "" }, { "docid": "0939f10e5bdb7da4784b9c895a55e068", "score": "0.575668", "text": "function startWebSocket(htmlPath, port, staticDir) {\n var wss = new WebSocket.Server({ port: port });\n wss.on(\"connection\", function (ws) {\n ws.on(\"message\", function (message) {\n console.log(\"Received message => \" + message);\n });\n // html file watch\n watcher(htmlPath, {}, function () {\n //\n ws.send(\"reload\");\n });\n // assets watch\n watcher(staticDir, {}, function () {\n ws.send(\"reload\");\n });\n ws.on(\"close\", function (c, d) {\n console.log(\"disconnect \" + c + \" -- \" + d);\n });\n });\n}", "title": "" }, { "docid": "259f9910b58c3d08c9c74f664df95b61", "score": "0.57460356", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "259f9910b58c3d08c9c74f664df95b61", "score": "0.57460356", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "259f9910b58c3d08c9c74f664df95b61", "score": "0.57460356", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "259f9910b58c3d08c9c74f664df95b61", "score": "0.57460356", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "259f9910b58c3d08c9c74f664df95b61", "score": "0.57460356", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "c8716eff6d7832274a414be91c78ec73", "score": "0.57428455", "text": "function handleListen() {\n console.log(\"Listening\");\n }", "title": "" }, { "docid": "b07baace4cbbb61871c62b3ae00e22b2", "score": "0.5733063", "text": "start() {\n\t\tthis.client = new WebSocketClient();\n\t\tthis.client.on('connectFailed', error => {\n\t\t\tlog.debug('WebSocket client connection error ' + error);\n\t\t});\n\t\tthis.client.on('connect', connection => this.connect(connection));\n\t\tthis.client.connect(this.params.url, []);\n\t\tlog.debug('WebSocket client connected to ' + this.params.url);\n\t}", "title": "" }, { "docid": "b022017ab2744253d98f9da56d6f9da3", "score": "0.5711054", "text": "function handleListen() {\r\n console.log(\"ich höre... xd\" + port);\r\n }", "title": "" }, { "docid": "2a804458f13b315e79c293c079f9f6f5", "score": "0.5702655", "text": "on(eventType, cb) {\n\n }", "title": "" }, { "docid": "aa3f3cc15f15b216fd557823de40f9af", "score": "0.57011914", "text": "function onListening(){\r\n console.log(\"inside http:on listening\");\r\n const addr= server.address();\r\n const bind = typeof addr === 'string'? 'pipe' + addr:'port'+ addr.port;\r\n\r\n}", "title": "" }, { "docid": "b8035e5a875c8c1d84a2f8e1ee81b430", "score": "0.5693916", "text": "onConnect(callback) { this.on('connect', callback); }", "title": "" }, { "docid": "45065b1a6a210c092b0cb32474fa29b9", "score": "0.56894076", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = closeEvent => this.onClose({\n description: \"websocket connection closed\",\n context: closeEvent\n });\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "ed7f2b6df98f1bb060cb1ec186de233f", "score": "0.5688683", "text": "function listenPort(data) {\n\tconsole.log(\"I am listening!!!\");\n\tconsole.log(data);\n}", "title": "" }, { "docid": "144e3023cdfdffb8280e88b55c633558", "score": "0.56673217", "text": "function connect () {\n\t\t\t\n\t\t\tif(\"MozWebSocket\" in window) {\n\t\t\t\t_browser = \"mozilla\";\n\t\t\t} else if (\"WebSocket\" in window) {\n\t\t\t\t_browser = \"other\";\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Websockets not supported by this browser\");\n\t\t\t\tthrow \"Websockets not supported by this browser\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif (_browser === \"mozilla\") {\n\t\t\t\t\tsocket = new MozWebSocket(\"ws://\"+host+\":\"+port, protocol);\n\t\t\t\t} else {\n\t\t\t\t\tsocket = new WebSocket(\"ws://\"+host+\":\"+port, protocol);\n\t\t\t\t}\n\t\t\t\tconsole.log(\"Starting up...\");\n\t\t\t\t/**\n\t\t\t\t * @private\n\t\t\t\t */\n\t\t\t\tsocket.onopen = function(){\n\t\t\t\t\tconsole.log(\"Socket Status: \"+socket.readyState+\" (open)\");\n\t\t\t\t\tself.dispatchEvent(new Event(Event.CONNECTED));\n\t\t\t\t\tbegin();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * @private\n\t\t\t\t */\n\t\t\t\tsocket.onmessage = function(msg){\n\t\t\t\t\tconsole.log('this is amaxzing', msg);\n\t\t\t\t\t$('body').append(msg.data + \" \");\n\t\t\t\t\tprocessData(msg.data);\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * @private\n\t\t\t\t */\n\t\t\t\tsocket.onclose = function(){\n\t\t\t\t\tconsole.log(\"Socket Status: \"+socket.readyState+' (Closed)');\n\t\t\t\t}\t\t\t\n\t\t\t\t\t\n\t\t\t} catch(exception){\n\t\t\t\tconsole.log(\"Error \"+exception);\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "71a5eb673a57351a70eed6ce452a6157", "score": "0.5666939", "text": "addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = this.onClose.bind(this);\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }", "title": "" }, { "docid": "58d3b0ef37bd22a3745c9705f9e81e0e", "score": "0.56627166", "text": "onopen() {\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push((0, _on.on)(socket, \"ping\", this.onping.bind(this)), (0, _on.on)(socket, \"data\", this.ondata.bind(this)), (0, _on.on)(socket, \"error\", this.onerror.bind(this)), (0, _on.on)(socket, \"close\", this.onclose.bind(this)), (0, _on.on)(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "e1c3afb6070d8c089ec2869bed6dcf8d", "score": "0.5656376", "text": "function listen_callback ()\n{\n console.log('listening on port ' + port);\n}", "title": "" }, { "docid": "d20dce7c4c030dd8ae76f5a5fea0edd7", "score": "0.56521946", "text": "async listenSocket() {\n this._socket.currentSocket().on(\"connect\", () => {\n console.log(\"[Player] => 2 - listen socket\")\n this.init()\n })\n }", "title": "" }, { "docid": "7d06fad108b4f5c6d631f94746188881", "score": "0.5650333", "text": "listen() {\n exception.try(() => {\n const server = new WebSocket.Server({ port: P2P_PORT });\n server.on('connection',socket => this._connectSocket(socket));\n this._connectToPeers();\n logger.info(`Listening for peer to peer connection on port : ${P2P_PORT}`);\n });\n }", "title": "" }, { "docid": "2f24d48e9779475311d27e8cfeea5be5", "score": "0.56494755", "text": "function on_remote_open(clientWS) {\r\n\t// Imposta la connessione\r\n\tGLConnection = clientWS;\r\n\r\n\tGLRemoteConnect = 3;\r\n\t\r\n\t// Esegue l'evento di connessione aperta (avvia lo stream etc..)\r\n\thandle_connection_open();\r\n\t\r\n\t// Avvia lo stream\r\n\tstart_stream();\r\n}", "title": "" }, { "docid": "b2439a8fcfc447f16da19b3c692b9d22", "score": "0.56453145", "text": "function onListening(event) {\n const addr = server.address();\n const bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port;\n debug('Listening on ' + bind);\n console.log('Listening on ' + bind);\n}", "title": "" }, { "docid": "d6fec9cb57237eaa5490a8a3c791d2dd", "score": "0.5643227", "text": "function onListening() {\n var addr = socketServer.address();\n var bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port;\n console.log('Listening on ' + bind);\n\n //初始化定时任务\n Cron.init();\n}", "title": "" }, { "docid": "0e65abbb3bc41269e23f3a048bcc8497", "score": "0.5642322", "text": "function initListener(e){\n\tvar data = JSON.parse(e.data)\n\t// input processing\n\tif(data[0] != 2)\n\t\treturn\n\tif(data[2] != \"p:worker-init\")\n\t\treturn\n\tthis.nodeData= data[3]\n\n\t// set up websocket\n\tthis.ws= eio(\"ws://\"+location.host+\":\"+location.port+\"/feed\")\n\tthis.ws.binaryType = \"arraybuffer\" // receive ArrayBuffer not Blob\n\tthis.ws.onerror = function(err){\n\t\tconsole.log(\"oh noes, websocket error \"+err)\n\t}\n\n\tthis.ws.onopen = (function(){\n\t\t// introduce all nodes\n\t\tfor(var i= 0; i< this.nodeData.length; ++i){\n\t\t\tvar msg = msgs.intro(this.nodeData[i])\n\t\t\tthis.ws.send(msg)\n\t\t}\n\t}).bind(this)\n}", "title": "" }, { "docid": "db008eb0f66287fcdfc085059ec450a6", "score": "0.56382257", "text": "listen() {\n const client = this._subClient;\n client.psubscribe(this._channel);\n client.on('pmessage', this._onExpiry.bind(this));\n this.emit('listen');\n }", "title": "" }, { "docid": "8daa0c335d9ecf8d1942d8c465514240", "score": "0.5618714", "text": "function listen() {\n // New ticket created\n Models.ticket.socket().on('create', function (ticket) {\n view.tickets.push(ticket);\n reload();\n });\n\n // Ticket updated\n Models.ticket.socket().on('update', function (ticket) {\n view.all = view.all.map(function (t) {\n if (t._id == ticket._id) {\n t = ticket;\n }\n return t;\n });\n reload();\n });\n\n // Ticket deleted\n Models.ticket.socket().on('delete', function (ticket) {\n view.all = view.all.filter(function (t) {\n return t._id != ticket._id;\n });\n reload();\n });\n }", "title": "" }, { "docid": "2816f59f20dd54488599050330a08309", "score": "0.5616305", "text": "start (callback) {\n let self = this\n let webserver = self.api.servers.servers.web\n\n // create a new primus instance\n self.server = new Primus(webserver.server, self.api.config.servers.websocket.server)\n\n // define some event handlers\n self.server.on('connection', rawConnection => self._handleConnection(rawConnection))\n self.server.on('disconnection', rawConnection => self._handleDisconnection(rawConnection))\n\n self.api.log(`webSocket bound to ${webserver.options.bindIP}:${webserver.options.port}`, 'debug')\n self.server.active = true\n\n // write client js\n self._writeClientJS()\n\n // execute the callback\n callback()\n }", "title": "" }, { "docid": "39e6ddbcbaa564c4087e8277b485e985", "score": "0.5615487", "text": "function initWebsocket() {\r\n socket = io.connect(appConfig.serverAddress);\r\n socket.on('ActiveUsersNotification', broadcastNotification);\r\n socket.on('connect', function () {\r\n socket.emit('Connected');\r\n });\r\n }", "title": "" }, { "docid": "7180096c7d6973049fd5c025f4202215", "score": "0.56103563", "text": "function monitorWebSocket(url, callback) {\n if (!url || !callback) {\n return console.error(new Error('Invalid parameters: must provide url and callback'));\n }\n\n var ws = new WebSocket(url);\n\n function enqueuePing() {\n if (ws.readyState === 1) {\n ws.send('something');\n\n setTimeout(function () {\n enqueuePing()\n }, 30 * 1000);\n }\n }\n\n ws.on('open', function open() {\n enqueuePing();\n callback('open', null);\n });\n\n ws.on('message', function incoming(data) {\n callback('message', JSON.parse(data));\n });\n\n ws.on('close', function closed(err) {\n callback('close', err);\n });\n}", "title": "" }, { "docid": "6b02f8de88f8c03910629c87d33d93b9", "score": "0.5606944", "text": "onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "c59483a94c7d3f54f26bf7e2a13fc57c", "score": "0.5604111", "text": "function onListening() {\n var addr = server.address();\n var bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port;\n server.setTimeout(680000);\n}", "title": "" }, { "docid": "55a5838f6ec4b61f6093a7ce762a0755", "score": "0.5601511", "text": "function createWebsocket() {\n ws = new WebSocket(\"ws://localhost:8000/receive/ws\");\n // log any messages recieved\n ws.addEventListener(\"message\", function(e) {\n if (stateOf.wait) {\n hideSpinner();\n if (DOMElements.clientSubmit !== undefined) {\n DOMElements.clientSubmit.prop('disabled', false);\n }\n }\n stateOf.wait = false;\n var data = JSON.parse(e.data);\n if (data instanceof Array) {\n hideModal('startModal');\n if (URLData.f !== undefined && stateOf.firstPass) {\n urlQueryFilters();\n }\n addEvents(data);\n\n if (URLData.ts !== undefined && !stateOf.tsEvaluated) {\n stateOf.tsEvaluated = true;\n // Run historical mode\n setTimeout(function() {\n // Stop updating livetime\n stateOf.liveTime = false;\n // Close websocket\n ws.close();\n // Click on historical mode button\n DOMElements.logoTime.trigger('mousedown');\n playback(datepicker.start, datepicker.diff);\n DOMElements.logoTime.prop(\"disabled\", true);\n }, 1000);\n }\n } else {\n if (JSON.stringify(data).indexOf(\"Error\") != -1) { // if error recieved\n errorAlert(data.Error);\n } else { // if point(s) recieved\n addPoints(JSON.parse(data));\n adjustZoomGrade(); // update ledgend\n }\n }\n });\n\n // on open display that the websocket connection succeeded\n ws.onopen = function() {\n console.log(\"Connection made!\");\n if (URLData.cid !== undefined) {\n client = URLData.cid[0].split(\"%20\").join(\" \"); // gets the client ID from the query and replaces all \"%20\" with \" \"\n sendID();\n } else if (stateOf.liveTime && !stateOf.firstPass) {\n sendID();\n } else {\n // listen to see if a clientID is entered in the input box\n createModal('startModal', 'Please Enter Your Client ID:', true, startModalBody,\n false, startModalBtn); // creates the starting modal\n // starting modal opens\n $('#startModal').modal();\n DOMElements.clientID = $('#cIDinput');\n DOMElements.clientSubmit = $('#enter');\n DOMElements.clientID.on('input', function() {\n if (this.value.trim().length > 0) { // the user has actually input text\n DOMElements.clientSubmit.prop(\"disabled\", false);\n } else { // disable the button becuase the input box is empty\n DOMElements.clientSubmit.prop(\"disabled\", true);\n }\n });\n\n // Execute a function when the user releases a key on the keyboard\n DOMElements.clientID.bind('keyup', function(event) {\n // get the first and only clientSubmit button from the array and make sure that it is not disabled\n if (event.keyCode === 13 && !DOMElements.clientSubmit[0].disabled) {\n // Trigger the button element with a click\n DOMElements.clientSubmit.mousedown();\n }\n });\n\n DOMElements.clientSubmit.mousedown(submitClientID);\n }\n };\n\n // when the connection closes display that the connection has been made\n ws.onclose = function() {\n console.log(\"Connection closed.\");\n // if the websocket was not closed internally\n if (!stateOf.selfClose) {\n hideModal('startModal');\n errorAlert('505: Unable to connect to live data.');\n }\n };\n }", "title": "" }, { "docid": "85e15c12654b324998cf3817e5268a99", "score": "0.5598901", "text": "function HttpSentEvent() { }", "title": "" }, { "docid": "85e15c12654b324998cf3817e5268a99", "score": "0.5598901", "text": "function HttpSentEvent() { }", "title": "" }, { "docid": "f5811a10c52742bbf4187c5c0f7e734f", "score": "0.5597784", "text": "function HttpSentEvent(){}", "title": "" }, { "docid": "41b29a6f52204f139f8445370f91d7e1", "score": "0.55921793", "text": "function WebSocketInit(hnd){\r\n\tif (\"WebSocket\" in window){\r\n\t\tconsole.log(\"INFO: WebSocket is supported by your Browser!\");\r\n\t\tif(hndWS.lastStatus==null){\r\n\t\t\tsetCommStatus(\"WSDisconnect\");\r\n\t\t}\r\n\t\t\r\n\t\t// Let us open a web socket\r\n\t\t\t//setCommStatus(\"WSConnRequest\");\r\n\t\t\ttry{\r\n\t\t\t\tvar ws = new WebSocket(hndWS.wsAddress);\r\n\t\t\t\tws.onerror = function (evt){\r\n\t\t\t\t\tsetCommStatus(\"WSDisconnect\");\r\n\t\t\t\t}\r\n\t\t\t\tws.onopen = function(){\r\n\t\t\t\t// Web Socket is connected, send data using send()\r\n\t\t\t\t\tws.send(\"INIT\");\r\n\t\t\t\t\tconsole.log(\"INFO: WebSocket INIT\");\r\n\t\t\t\t};\r\n\r\n\t\t\t\tws.onmessage = function (evt){ \r\n\t\t\t\t\tif(hndWS.msgDigested){\r\n\t\t\t\t\t\t//hndWS.msgDigested=true; //we drop packets if we get them faster than we can process them\r\n\t\t\t\t\t\tvar recvdJSON = evt.data;\r\n\t\t\t\t\t\t//console.log(\"WS: Data received\", evt.data);\r\n\t\t\t\t\t\tprocessJSON(recvdJSON);\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\r\n\t\t\t\tws.onclose = function(){\r\n\t\t\t\t\t// websocket is closed.\r\n\t\t\t\t\tconsole.log(\"ERROR: Websocket Connection Closed\");\r\n\t\t\t\t\tlogDataToDiv(\"{\\\"error\\\":\\\"Websocket disconnected\\\"}\");\r\n\t\t\t\t\twindow.setTimeout(function(){\r\n\t\t\t\t\t\tlogDataToDiv(\"{\\\"error:\\\"Reconnecting websocket\\\"}\");\r\n\t\t\t\t\t\tWebSocketInit(hndWS);\r\n\t\t\t\t\t}, 5000);\r\n\t\t\t\t\tsetCommStatus(\"WSDisconnect\");\r\n\t\t\t\t\tsetEEGGrey();\r\n\t\t\t\t};\r\n\t\t\t\thnd.handle = ws; //reference to the actual websocket\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch(e){\r\n\t\t\t\tsetCommStatus(\"WSDisconnect\");\r\n\t\t\t}\r\n\t} \r\n\telse{\r\n\t\t// The browser doesn't support WebSocket\r\n\t\talert(\"WebSocket NOT supported by your Browser!\");\r\n\t}\r\n\t\r\n\twindow.onbeforeunload = function(){\r\n\t\tws.close();\r\n\t}\r\n}", "title": "" }, { "docid": "45f2234de4d84436f5157444ffd13584", "score": "0.55870193", "text": "sockets() {\n // * listen when the client connect\n this.io.on(\"connection\", socketsControllers);\n }", "title": "" }, { "docid": "7cbdf9b2557a9c750361579efdbcc730", "score": "0.5585202", "text": "function subscribeToHttpEvents(){\n //format (example):\n /*{\n name: \"remote-button\",\n data: {\n deviceId: \"o1\",\n button: \"mic\" //mic, back, ao, next, prev\n }\n }*/\n ClexiJS.subscribeTo('clexi-http-events', function(e){\n //console.log('HTTP-Event: ' + JSON.stringify(e));\n var event = new CustomEvent('clexi-http-events-msg', {detail: e});\n document.dispatchEvent(event);\n }, \n //This is actually not used by the HTTP-Events extension\n function(e){\n console.log('HTTP-Event response: ' + e);\n }, function(e){\n console.error('HTTP-Event error: ' + JSON.stringify(e));\n });\n }", "title": "" }, { "docid": "761a1c648b1c0071c86e9a70172f1655", "score": "0.5584212", "text": "function init(){\n\t\n\tanimation();\n\t\n\t// open websocket\n var url = 'ws://localhost:8080/WebProg_v2/SocketHandler';\n //var url = 'ws://fbe-wwwdev.hs-weingarten.de:8080/webprog05/tomcat/SocketHandler';\n\t\n socket = new WebSocket(url);\n \n \n \n // event handler websocket\n socket.onopen = function(){\n readyToSend = true;\n };\n \n socket.onerror = function(event){\n alert(\"Websocket Error: \" + event.data);\n };\n \n socket.onclose = function(event){\n console.log(\"Websocket geschlossen: \" + event.data);\n };\n \n socket.onmessage = receiveWSMessage;\n \n // listener login + start button\n var buttonLogin = window.document.getElementById(\"buttonLogin\");\n buttonLogin.addEventListener(\"click\",clickedLogin,true);\n\n var buttonStart = window.document.getElementById(\"startButton\");\n buttonStart.addEventListener(\"click\",clickedStart,true);\n \n // request catalogs\n\trequestCatalogs();\n \n}", "title": "" }, { "docid": "52049b0fe5595a8cd0cc13be5305b1e9", "score": "0.5581842", "text": "function subscribeToHttpEvents(){\n //format (example):\n /*{\n name: \"remote-button\",\n data: {\n deviceId: \"o1\",\n button: \"mic\" //mic, back, ao, next, prev\n }\n }*/\n ClexiJS.subscribeTo('clexi-http-events', function(e){\n //console.log('HTTP-Event: ' + JSON.stringify(e));\n var event = new CustomEvent('clexi-http-events-msg', {detail: e});\n document.dispatchEvent(event);\n }, \n //This is actually not used by the HTTP-Events extension\n function(e){\n console.log('HTTP-Event response: ' + JSON.stringify(e));\n }, function(e){\n console.log('HTTP-Event error: ' + JSON.stringify(e));\n });\n }", "title": "" }, { "docid": "9e8fb18142706bf45be2db99b36807ea", "score": "0.5575861", "text": "function bind() {\n socket.onopen = onopen;\n socket.onclose = onclose;\n socket.onmessage = onmessage;\n }", "title": "" }, { "docid": "28e01fedd34ddd63e2ff12af84d6294a", "score": "0.55702573", "text": "onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "28e01fedd34ddd63e2ff12af84d6294a", "score": "0.55702573", "text": "onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "28e01fedd34ddd63e2ff12af84d6294a", "score": "0.55702573", "text": "onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "28e01fedd34ddd63e2ff12af84d6294a", "score": "0.55702573", "text": "onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }", "title": "" }, { "docid": "d6905dc9ed21f8f626f6570b43a5f33c", "score": "0.5567253", "text": "function onMessage(evt) {\n var id = evt.from;\n var target = evt.sendto;\n var conn = getConnection(id);\n\n if (evt.type === 'call') {\n if (! isLocalStreamStarted()) {\n return;\n }\n if (conn) {\n return; // already connected\n }\n\n if (isConnectPossible()) {\n //socket.json.send({type: \"response\", sendto: id });\n sendOffer(id);\n } else {\n //console.warn('max connections. so ignore call'); \n }\n return;\n }/* else if (evt.type === 'response') {\n sendOffer(id);\n return;\n }*/ else if (evt.type === 'offer') {\n //console.log(\"Received offer, set offer, sending answer....\")\n onOffer(evt);\n if (evt.nickname && evt.country) idNameCountry[id] = {nickname: evt.nickname, country: evt.country};\n } else if (evt.type === 'answer' && isPeerStarted()) { // **\n //console.log('Received answer, settinng answer SDP');\n onAnswer(evt);\n if (evt.nickname && evt.country) idNameCountry[id] = {nickname: evt.nickname, country: evt.country};\n } else if (evt.type === 'candidate' && isPeerStarted()) { // **\n //console.log('Received ICE candidate...');\n onCandidate(evt);\n } else if (evt.type === 'user disconnected' && isPeerStarted()) { // **\n //console.log(\"disconnected\");\n detachVideo(id); // force detach video\n stopConnection(id);\n }\n}", "title": "" }, { "docid": "64d7dd7af70f8ffc176fe3b31a3f9ac1", "score": "0.5557276", "text": "function open() {\n status.set(socketId, SOCKETSTATUS.CONNECTED);\n if (!!WebSocketService.DEBUG) console.log(\"Opened \".concat(url, \" for \").concat(socketId));\n ws.addEventListener(\"close\", close);\n ws.addEventListener(\"message\", message);\n runSendQueue(socketId);\n }", "title": "" }, { "docid": "bd04ac6fa0ce890a54521306d66b16f0", "score": "0.5556732", "text": "function startWebsocketServer(port) {\n var wsServer = ws.createServer(function (conn) {\n websocketConnection = conn;\n conn.on(\"text\", function (str) {\n conn.sendText(str);\n });\n conn.on(\"close\", function (code, reason) {\n websocketConnection = null;\n });\n }).listen(port);\n}", "title": "" }, { "docid": "497e7bff857bbe7eba032f0a7bf288fd", "score": "0.5556698", "text": "function handleListen() {\r\n console.log(\"Listening\"); //auf Konsole wird Listening ausgegeben\r\n }", "title": "" }, { "docid": "621536648340252a73b086eb192cb660", "score": "0.5554817", "text": "static listenSocketEvents() {\n Socket.shared.on(\"user:updated\", (data) => {\n let logger = Logger.create(\"user:updated\");\n logger.info(\"enter\", data);\n\n Redux.dispatch(User.actions.userUpdatedEvent(data));\n });\n }", "title": "" }, { "docid": "c0d702b7ae7699b8de5062000a155468", "score": "0.55531484", "text": "function open(url) {\n const ws = new WebSocket(url);\n ws.onclose = sendToElm('webSocketOnClose');\n ws.onerror = sendToElm('webSocketOnError');\n ws.onmessage = sendToElm('webSocketOnMessage');\n ws.onopen = sendToElm('webSocketOnOpen');\n\n function sendToElm(port) {\n return function (event) {\n if (ports[port] && ports[port].send) {\n ports[port].send(event)\n }\n }\n }\n }", "title": "" }, { "docid": "3a99d16c6bf6a8df0e7d50e2f6c47e68", "score": "0.5551947", "text": "function initSocket()\n {\n /*\n WebSocket.readyState \n 0 connecting\n 1 open\n 2 closing\n 3 close\n */\n\n /* Socket already open */\n if(socket !== null && socket.readyState === 1) return; \n \n socket = new WebSocket(URL); \n socket.onmessage = (event) => { processMsg(event); } \n\n socket.onerror = (event) =>\n {\n sock_error_msg = \"Websocket error cannot send to Signal Server\";\n try\n {\n debug_log(\"websocket onerror \" + event); \n displayChatMessage(\"\", sock_error_msg);\n }\n catch(err)\n {\n debug_log(\"websocket close error \" + err);\n displayChatMessage(\"\", sock_error_msg);\n }\n }\n\n socket.onclose = (event) => \n {\n debug_log(\"websocket closed\"); \n displayChatMessage(\"\", \"Signal Server websocket closed !\");\n }\n\n }", "title": "" }, { "docid": "49ad8866f688d1030e2ca7c0e524c70e", "score": "0.55473804", "text": "function onListening() {\n var addr = server.address(); \n var bind = typeof addr === 'string'\n ? 'pipe ' + addr\n : 'port ' + addr.port;\n debug('Listening on ' + bind);\n }", "title": "" }, { "docid": "c7d6a32acb19c333007888bf0788e727", "score": "0.55463207", "text": "function listen(cb) {\r\n // collect them in the listeners array\r\n listeners.push(cb);\r\n }", "title": "" } ]
387f28737e3539895a447162f60870d8
Retrieves all widgets for parent page whose _id is pageId
[ { "docid": "8d38172a3b654d6f9854dada6cb49b0b", "score": "0.71362114", "text": "function findAllWidgetsForPage(pageId) {\n\n return Widget.find({_page: pageId}).sort({order: 1});\n\n }", "title": "" } ]
[ { "docid": "837dfe476cbcbca1d7f90897b2bea8f4", "score": "0.73799443", "text": "function findWidgetsByPageId(pageId) {\n return $http.get(parentRoute + pageId + \"/widget\");\n }", "title": "" }, { "docid": "b380634d6d55a33fee9900feddc3ae2a", "score": "0.69043237", "text": "function findWidgetsByPageId(pageId) {\n var d = q.defer();\n model.PageModel.findAllWidgetsForPage(pageId)\n .then(function (pages) {\n d.resolve(pages.widgets);\n });\n\n return d.promise;\n }", "title": "" }, { "docid": "dd026045f6f674b5df8bd520beca7b74", "score": "0.65694654", "text": "function findWidgetsByPageId(pageId) {\n var url = \"/api/page/\" + pageId + \"/widget\";\n return $http.get(url);\n }", "title": "" }, { "docid": "dd026045f6f674b5df8bd520beca7b74", "score": "0.65694654", "text": "function findWidgetsByPageId(pageId) {\n var url = \"/api/page/\" + pageId + \"/widget\";\n return $http.get(url);\n }", "title": "" }, { "docid": "07b01d5d60446be114ff14f67044c57b", "score": "0.5628771", "text": "function allWidgets(){\n // lock widgets that have been defined by the template\n // add class perc-locked so that decoration controller\n // will remove the edit icons and add the locked icon\n var specialWidgets = layoutModel.getSpecialWidgets(\"Layout\");\n if(specialWidgets)\n iframe.contents().find('.perc-widget').each(function() {\n var self = $(this);\n var widgetid = self.attr(\"widgetid\");\n var isTransparent = self.hasClass('perc-widget-transperant');\n var assetid = self.attr(\"assetid\");\n if(widgetid in specialWidgets.LockedWidgets)\n self.addClass(\"perc-locked\");\n if (widgetid in specialWidgets.TransperantWidgets)\n {\n self.addClass(\"perc-widget-transperant\");\n }\n else if (layoutModel.isTemplate() && assetid !== \"\" && !(widgetid in specialWidgets.ContentWidgets))\n {\n self.addClass(\"perc-widget-transperant\");\n }\n });\n return iframe.contents().find(\".perc-widget\");\n }", "title": "" }, { "docid": "0ff10bdd4c81886916036d04a97bb026", "score": "0.5569777", "text": "function allWidgets() {\n // lock widgets that have been defined by the template\n // add class perc-locked so that decoration controller\n // will remove the edit icons and add the locked icon\n var specialWidgets = model.getSpecialWidgets(\"Layout\");\n if(specialWidgets)\n iframe.contents().find('.perc-widget').each(function() {\n var widgetid = $(this).attr(\"widgetid\");\n if(widgetid in specialWidgets.LockedWidgets)\n \t$(this).addClass(\"perc-locked\");\n if(widgetid in specialWidgets.TransperantWidgets)\n $(this).addClass(\"perc-widget-transperant\");\t\t\t\t\t\t\n });\n return iframe.contents().find(\".perc-widget\");\n }", "title": "" }, { "docid": "3114bd49a9324284235c73b83f7cf2e7", "score": "0.5407938", "text": "get widgets() {\n return this.layout.widgets;\n }", "title": "" }, { "docid": "45909112ef9c98e6c5afacd16d07fc78", "score": "0.5373925", "text": "get widgets() {\r\n return this.layout.widgets;\r\n }", "title": "" }, { "docid": "9570e0f76c92f54e195243e17509c660", "score": "0.5310709", "text": "function getChildren(obj) {\r\n // Traverse layout, replacing widgetObject with widgetName to make\r\n // the layout JSON serializable\r\n const children = obj.children;\r\n if (\"widgets\" in obj) {\r\n const widgetNames = new Array();\r\n for (const widget of obj.widgets)\r\n widgetNames.push(widget.title.label);\r\n obj.widgets = widgetNames;\r\n }\r\n if (children == undefined) return;\r\n for (const child of children) {\r\n getChildren(child);\r\n }\r\n }", "title": "" }, { "docid": "40a2c93ba3caa12d01adc756accede98", "score": "0.527222", "text": "function getWidgetList(){\n if (hasView() && hasWidget()){\n return current.view.cards;\n }\n else {\n return [];\n }\n }", "title": "" }, { "docid": "f79d24bb1c91b00f0202f79fcbf65bd6", "score": "0.51603407", "text": "function makeContainWithinParent(widget) {\n widget.parent\n}", "title": "" }, { "docid": "48260e29bbbca84df84939d024278b66", "score": "0.51569545", "text": "function contentPageUnserialiseWidgets(containerId, widgetList) {\n contentPageInitSectionGrid(containerId, gridOptions);\n if ('undefined' == typeof widgetList) {\n return;\n }\n var grid = gridsPerSection[containerId];\n var lastNode = null;\n var widgets = GridStack.Utils.sort(widgetList);\n jQuery.each(widgets, function (index, node) {\n var widget;\n\n widget = contentPageCreateNewWidget(node.id);\n var minWidth = 'undefined' != typeof node.minWidth ? node.minWidth : jQuery('#widgetDimensions').data('minwidth');\n grid.addWidget(widget.get(0), {\n x: node.x,\n y: node.y,\n w: node.width,\n h: /*node.height*/jQuery('#widgetDimensions').data('height'),\n autoPosition: false,\n minW: /*node.*/minWidth\n });\n var colOffset = 0;\n if (null !== lastNode && node.y === lastNode.y) {\n colOffset = node.x - (lastNode.x + lastNode.width);\n } else {\n colOffset = node.x;\n }\n contentPageUpdateGridAttributes(widget, colOffset);\n lastNode = node;\n });\n jQuery.each(widgets, function (index, node) {\n contentPageLoadWidgetData(node.id, false);\n });\n}", "title": "" }, { "docid": "05a55addb2355b39444b48179e25d959", "score": "0.51422083", "text": "function get_parent_modal(parent,offset,sort,dir) {\r\n queue.push(selected);\r\n parent = typeof parent !== \"undefined\" ? parent : 0;\r\n offset = typeof offset !== \"undefined\" ? offset : 0;\r\n sort = typeof sort !== \"undefined\" ? sort : 'menuindex';\r\n dir = typeof dir !== \"undefined\" ? dir : \"ASC\";\r\n var url = connector_url+\"&class=page&method=parents&parent=\"+parent+\"&offset=\"+offset+\"&sort=\"+sort+\"&dir=\"+dir+\"&_nolayout=1&selected=\"+selected+\"&exclude=\"+JSON.stringify(queue);\r\n\r\n console.log(\"[Lunchbox get_children()] requesting URL\",url);\r\n\r\n jQuery.ajax({ \r\n type: \"GET\", \r\n url: url,\r\n success: function(response) {\r\n $(\"#set-parent-modal-content\").html(response);\r\n setBreadcrumbsModal(parent);\r\n } \r\n }); \r\n}", "title": "" }, { "docid": "3c52af251c40ef21bdc1a185b61803c6", "score": "0.50943166", "text": "function getWidgetList() {\n\t var widgetList = [];\n\t\tvar i;\n\t\tfor (i = 0; i <widgets.length;i++ ) {\n\t\t\twidgetList.push(widgets[i].widget);\n\t\t} \n return widgetList;\n}", "title": "" }, { "docid": "01b98d70d80da81a5518f08db57f4bc7", "score": "0.5075743", "text": "get_all()\n {\n return this._openWidgets;\n }", "title": "" }, { "docid": "967add5763c23d0df2ca22d77bf4738c", "score": "0.4969638", "text": "parents() {\n let ary = [], p;\n this.q.forEach(function(el) {\n p = el;\n while((p = p.parentElement) && !isDocument(p)) {\n if(!~ary.indexOf(p)) ary.push(p);\n }\n });\n return this.init(ary);\n }", "title": "" }, { "docid": "febc950eea9a0363b0aa3db092690b6c", "score": "0.4956014", "text": "children () {\n return CapacityPlanSprintBlocks.find({\n parentId: this._id\n })\n }", "title": "" }, { "docid": "e734dd10f5ac88874ed0702afe28e940", "score": "0.49343953", "text": "function get_children_modal(parent,offset,sort,dir) {\r\n queue.push(selected);\r\n parent = typeof parent !== \"undefined\" ? parent : 0;\r\n offset = typeof offset !== \"undefined\" ? offset : 0;\r\n sort = typeof sort !== \"undefined\" ? sort : 'menuindex';\r\n dir = typeof dir !== \"undefined\" ? dir : \"ASC\";\r\n var url = connector_url+\"&class=page&method=selectchildren&parent=\"+parent+\"&offset=\"+offset+\"&sort=\"+sort+\"&dir=\"+dir+\"&_nolayout=1&exclude=\"+JSON.stringify(queue);\r\n\r\n console.log(\"[Lunchbox get_children()] requesting URL\",url);\r\n\r\n jQuery.ajax({ \r\n type: \"GET\", \r\n url: url,\r\n success: function(response) {\r\n $(\"#set-children-modal-content\").html(response);\r\n setBreadcrumbsModal(parent);\r\n } \r\n }); \r\n}", "title": "" }, { "docid": "01ab633e532da287747b0085dc45eed7", "score": "0.4929041", "text": "parent() {\n let ary = [], p;\n this.q.forEach(function(el) {\n if(!~ary.indexOf(p = el.parentElement) && p) ary.push(p);\n });\n return this.init(ary);\n }", "title": "" }, { "docid": "86eafec6c9a913643a3bc2aefd95ea57", "score": "0.49193332", "text": "function getWidgetById( name ) {\n var l = widgets.length;\n for( var i = 0; i < l; i++ ) {\n if( widgets[i].id.toLowerCase() == name.toLowerCase() ) return widgets[i];\n }\n }", "title": "" }, { "docid": "3387aec6c07b5c77c813f615cd61dc7e", "score": "0.48872167", "text": "function contentPageLoad() {\n var sectionNumber;\n contentPageClear();\n sectionNumber = 0;\n jQuery.each(widgetData, function (index, section) {\n sectionNumber++;\n contentPageAddSection(section.id, sectionNumber, section.stylingClasses, false);\n contentPageInitSectionActions();\n contentPageUnserialiseWidgets(section.id, section.widgets);\n });\n if (orphanData.length > 0) {\n sectionNumber++;\n contentPageAddSection('section' + sectionNumber, sectionNumber, '', false);\n contentPageInitSectionActions();\n contentPageInitSectionGrid('section' + sectionNumber, gridOptions);\n jQuery.each(orphanData, function (index, contentItemId) {\n var newWidget;\n var grid;\n\n newWidget = contentPageCreateNewWidget(contentItemId);\n grid = gridsPerSection['section' + sectionNumber];\n\n grid.addWidget(newWidget.get(0), {\n x: 0,\n y: 0,\n w: jQuery('#widgetDimensions').data('width'),\n h: jQuery('#widgetDimensions').data('height'),\n autoPosition: true,\n minW: jQuery('#widgetDimensions').data('minwidth')\n });\n\n contentPageLoadWidgetData(contentItemId, false);\n });\n\n }\n contentPageInitWidgetActions();\n}", "title": "" }, { "docid": "231f826f37c7412881ba102f78f1344b", "score": "0.48498088", "text": "GetComponentsInChildren() {}", "title": "" }, { "docid": "231f826f37c7412881ba102f78f1344b", "score": "0.48498088", "text": "GetComponentsInChildren() {}", "title": "" }, { "docid": "231f826f37c7412881ba102f78f1344b", "score": "0.48498088", "text": "GetComponentsInChildren() {}", "title": "" }, { "docid": "2ee9e8b292c80696c968246eaba174f2", "score": "0.48489934", "text": "function get_child_pages(section) {\n\n var count = 0;\n\n var thisPage = get_page_details(PAGE_ID);\n\n var thisParent = get_page_details(thisPage.parent);\n\n var select = JSON.parse(pagelist);\n var items = select.pages;\n var fileDepth = get_file_location();\n $.each(items, function () {\n\n if (this.parent == section) {\n var parent = get_page_details(section);\n var title = parent.title.toLowerCase();\n\n var childId = this.id;\n var href = '#';\n\n if (this.pageSlug == 'fittings' || this.pageSlug == 'power' || title == 'capabilities') {\n href = '/presentations/' + this.filename + '.html';\n }\n\n var html = '<li class=\"col-xs-2 landing-menu-item\"><a href=\"'+href+'\" onclick=\"setLinks(' + childId + ', ' +sessionStorage.getItem(\"PAGE_ID\") + ')\" data-ajax=\"false\"><img src=\"' + fileDepth + 'Content/images/menu/' + this.menu + '.png\"/><br/>' +this.title + '</a></div>';\n var element = title + '-child-pages-list';\n var listClass = title + '-bottom-menu-list';\n if (thisPage.pageSlug != 'mainMenu') {\n if (title == 'markets') {\n $('.slidee').addClass('markets-bottom-menu-list');\n listClass = '';\n }\n }\n \n\n $(\".\" +element).append(html);\n if (thisParent.id == section || thisParent.parent == section) {\n \n var li = '<li class=\"'+listClass+' bottom-menu-list\"><a href=\"'+href+'\" onclick=\"setLinks(' + childId + ', ' + sessionStorage.getItem(\"PAGE_ID\") + ')\" data-ajax=\"false\"><img src=\"' + fileDepth + 'Content/images/menu/' + this.menu + '.png\"/><br/>' + this.title + '</a></li>';\n $('.slidee').append(li);\n\n var viewport = $(window).width();\n var width = viewport / 6;\n $('.slidee li').css('width', width);\n }\n }\n });\n\n \n if (thisPage.pageSlug == 'mainMenu') {\n\n var width = $(window).width();\n var liWidth = (width * (5 / 6)) / 6.25;\n $('.slidee li').css('width', liWidth);\n $('.frame').css('height', '165px');\n $('.landing-menu-item:nth-child(7n+7)').css('clear', 'none');\n $('.frame').append('<span class=\"arrow glyphicon glyphicon-chevron-right\" id=\"arrow-three\"></span>');\n }\n}", "title": "" }, { "docid": "9cbc0b23eaeb23d6251de59705639a18", "score": "0.4841268", "text": "GetComponentsInParent() {}", "title": "" }, { "docid": "9cbc0b23eaeb23d6251de59705639a18", "score": "0.4841268", "text": "GetComponentsInParent() {}", "title": "" }, { "docid": "9cbc0b23eaeb23d6251de59705639a18", "score": "0.4841268", "text": "GetComponentsInParent() {}", "title": "" }, { "docid": "48036ce831bd4749216542e52dad3bfe", "score": "0.48329353", "text": "function findContentItemsByParentContentID(parentContentItemID) {\r\n // Get from backend service \r\n // TODO: Cache in HTML5 local storage and get from cache OR backend service\r\n Canvas.BackendService.getContentItems(parentContentItemID).then(function (contentItems) {\r\n setContentItems(contentItems);\r\n }, function (error) {\r\n console.log(\"ERROR!!\", error);\r\n });\r\n }", "title": "" }, { "docid": "45ffa61e9b14b7387e5fdbad399686c4", "score": "0.48262712", "text": "function grandchildAddButton() {\n \n var parentid = $(this).parent().parent().parent().parent().parent().children().filter(\"a\").attr(\"id\");\n var thisButton = $(this);\n var grandchildRows = thisButton.parent().parent().parent().children();\n var lastGrandchildRow = thisButton.parent().parent().parent().children(\":last\");\n \n $.post(\"../php/command/ajaxcommandrunner.php\",\n {\n obj: 'yes',\n type: 'page',\n action: 'create-page',\n parentid: parentid,\n text: 'new page',\n introduction: 'new page introduction',\n keywords: 'new page keywords',\n stat: STATUS_PENDING,\n title: 'New Page'\n\n },\n function(data, textStatus) {\n //add the new page listing to the columns\n lastGrandchildRow.before(newGrandChildMenuItem(data['page']));\n //now delete/retrieve functionality to the relevant buttons\n $(\"a.page-button\").click(getPageButton);\n $(\"a.delete-button\").click(grandchildDeleteButton);\n //open up out new page for editing\n page.id = data['page']['id']; //for the save button\n fetchPage(page.id); //get the data into the form\n\t\t \n },\n \"json\"\n );\n\n \n}", "title": "" }, { "docid": "50a96555ea6a71fbcf5a9efd06f548d4", "score": "0.4800029", "text": "function getAllByParent(parentId) {\n var query = '$filter=parentID eq ' + parentId;\n return service.get(query);\n }", "title": "" }, { "docid": "5d9af6af4f2fe234be30dfe3d682d7ad", "score": "0.4794866", "text": "getScrollableParents() {\n return this._scrollableElements;\n }", "title": "" }, { "docid": "5d9af6af4f2fe234be30dfe3d682d7ad", "score": "0.4794866", "text": "getScrollableParents() {\n return this._scrollableElements;\n }", "title": "" }, { "docid": "5d9af6af4f2fe234be30dfe3d682d7ad", "score": "0.4794866", "text": "getScrollableParents() {\n return this._scrollableElements;\n }", "title": "" }, { "docid": "888a88aee88f074e5ecead19bd4ce1ef", "score": "0.47191268", "text": "function $$$(id, parent, tagName) { // getElementsById within parent\n var e = parent.getElementsByTagName(tagName);\n var r = [];\n for (var i = 0; i < e.length; i++) {\n if (id == e[i].id) {\n r.push(e[i]);\n }\n }\n return r;\n}", "title": "" }, { "docid": "daad55da5dca79ccb1f5719aaf4dfaa9", "score": "0.46856645", "text": "widgets(area) {\n switch (area) {\n case 'main':\n return this._dockPanel.widgets();\n case 'left':\n return algorithm_1.iter(this._leftHandler.sideBar.titles.map(t => t.owner));\n case 'right':\n return algorithm_1.iter(this._rightHandler.sideBar.titles.map(t => t.owner));\n case 'top':\n return this._topPanel.children();\n case 'bottom':\n return this._bottomPanel.children();\n default:\n throw new Error('Invalid area');\n }\n }", "title": "" }, { "docid": "ab8dbe271990391966f3d64c7bed2371", "score": "0.4665529", "text": "_findWidgetByID(id) {\n let item = algorithm_1.find(this._items, value => value.widget.id === id);\n return item ? item.widget : null;\n }", "title": "" }, { "docid": "72e0f5a60ef9d9d9c5d649be233b14d0", "score": "0.4665021", "text": "getControlWidgets() {\n return this.controlWidgets;\n }", "title": "" }, { "docid": "a2231b2ccd0c19cb6ed09d190b23e9ff", "score": "0.46613085", "text": "function create(page) {\n\n var exports = { \n setVisibility: setVisibility, \n areasInArea: areasInArea, \n areasInWidget: areasInWidget, \n register: register, \n exists: exists, \n attachWidgets: attachWidgets };\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n // all initially visible widgets should be attached together, to reduce jitter and unnecessary DOM ops\n var freeToAttach = false;\n\n // keep the dom element for each area, to attach widgets to\n var areaToElement = {};\n\n // track widget adapters waiting for their area to become available so that they may attach to its DOM\n var areaToWaitingAdapters = {};\n\n // the area name for each widget\n var widgetIdToArea = {};\n forEach(page.areas, function (widgets, areaName) {\n widgets.forEach(function (widget) {\n widgetIdToArea[widget.id] = areaName;});});\n\n\n\n // for each widget with children, and each widget area with nested areas, store a list of child names\n var areasInAreaMap = {};\n var areasInWidgetMap = {};\n forEach(page.areas, function (widgetEntries, areaName) {\n var containerName = '';\n if (areaName.indexOf('.') !== -1) {\n var widgetId = areaName.split('.')[0];\n areasInWidgetMap[widgetId] = areasInWidgetMap[widgetId] || [];\n areasInWidgetMap[widgetId].push(areaName);\n containerName = widgetIdToArea[widgetId];}\n\n areasInAreaMap[containerName] = areasInAreaMap[containerName] || [];\n areasInAreaMap[containerName].push(areaName);});\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n function setVisibility(areaName, visible) {\n if (visible && freeToAttach) {\n attachWaitingAdapters(areaName);}\n\n visibilityHelper.updateState(areaName, visible);}\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n function areasInArea(containerName) {\n return areasInAreaMap[containerName];}\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n function areasInWidget(widgetId) {\n return areasInWidgetMap[widgetId];}\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n /**\n * Register a widget area\n *\n * @param {String} name\n * the area name as used in the page definition\n * @param {HTMLElement} element\n * an HTML element representing the widget area\n *\n * @return {Function}\n * removes the according area from the registry again\n */\n function register(name, element) {\n if (name in areaToElement) {\n throw new Error('The area \"' + name + '\" is defined twice in the current layout.');}\n\n\n areaToElement[name] = element;\n if (freeToAttach && visibilityHelper.isVisible(name)) {\n attachWaitingAdapters(name);}\n\n\n return function () {\n delete areaToElement[name];};}\n\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n function exists(name) {\n return name in areaToElement;}\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n function attachWidgets(widgetAdapters) {\n freeToAttach = true;\n widgetAdapters.forEach(function (adapterRef) {\n var areaName = widgetIdToArea[adapterRef.id];\n areaToWaitingAdapters[areaName] = areaToWaitingAdapters[areaName] || [];\n areaToWaitingAdapters[areaName].push(adapterRef);});\n\n forEach(page.areas, function (widgets, areaName) {\n if (visibilityHelper.isVisible(areaName)) {\n attachWaitingAdapters(areaName);}});}\n\n\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n /** @private */\n function attachWaitingAdapters(areaName) {\n var waitingAdapters = areaToWaitingAdapters[areaName];\n if (!waitingAdapters || !waitingAdapters.length) {return;}\n\n var element = areaToElement[areaName];\n if (!element) {return;}\n\n // Make sure that all assets are available before proceeding, so that DOM update happens en bloc.\n _Promise.all(waitingAdapters.map(function (adapterRef) {return adapterRef.templatePromise;})).\n then(function (htmlTemplates) {\n // prepare first/last bootstrap classes for appending widgets\n var children = childrenOf(element);\n var currentLast = children[children.length - 1];\n if (currentLast) {removeClass(currentLast, 'last');}\n var currentFirst = children[0];\n\n waitingAdapters.forEach(function (adapterRef, i) {\n adapterRef.adapter.domAttachTo(element, htmlTemplates[i]);});\n\n\n // fix first/last bootstrap classes as needed\n children = childrenOf(element);\n if (!currentFirst) {\n var first = children[0];\n if (first) {addClass(first, 'first');}}\n\n var last = children[children.length - 1];\n if (last) {addClass(last, 'last');}});\n\n\n delete areaToWaitingAdapters[areaName];}\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n // TODO: For now taken from previous axVisibilityService. Perhaps this might be simplified.\n var knownState = {};\n var visibilityHelper = { \n\n isVisible: function isVisible(area) {\n return knownState[area] || false;}, \n\n\n ////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n /**\n * Run all handlers registered for the given area and target state after the next heartbeat.\n * Also remove any handlers that have been cleared since the last run.\n * @private\n */\n updateState: function updateState(area, targetState) {\n knownState[area] = targetState;} };\n\n\n\n\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n return exports;}", "title": "" }, { "docid": "4b504388a94d224e40d326583dbb57af", "score": "0.46381918", "text": "function findAllWidgets(req, res) {\n widgetModel.find().exec(\n function (err, widgets) {\n if (err) {\n return res.status(400).send(err);\n }\n return res.json(widgets);\n }\n );\n }", "title": "" }, { "docid": "c50a94ae9399dae74da3ce7634753e17", "score": "0.46375278", "text": "function generatePageWidgets(calendarConfig) {\n let widgets = [];\n calendarConfig.forEach((cal) => {\n const calendarId = cal.calendarId;\n const roomName = cal.displayName;\n const roomLocation = cal.location;\n\n const calWidget = `<!--[${roomLocation}]${roomName}-->\n <iframe src=\"https://calendar.google.com/calendar/embed?showNav=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=AGENDA&amp;height=400&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;ctz=Asia%2FSingapore&amp;src=${calendarId}&amp;\" style=\"border-width:0\" width=\"400\" height=\"400\" frameborder=\"0\" scrolling=\"no\"></iframe>`;\n widgets.push(calWidget);\n });\n return widgets;\n}", "title": "" }, { "docid": "a75585d0e7de5e3942bb81c10ce9ba65", "score": "0.46326894", "text": "async function findContainerRoot(page) {\n const plotContainer = await page.$('plot-container')\n return page.evaluateHandle((e, selector) => e.shadowRoot.querySelector(selector), plotContainer, 'div')\n}", "title": "" }, { "docid": "601d8a8561afb37f8753cb6bbab0a38f", "score": "0.46304172", "text": "function contentPageSerialiseWidgets(elements) {\n var result;\n elements = contentPageSortWidgetsForSave(elements);\n\n result = [];\n jQuery.each(elements, function (index, element) {\n var widget = jQuery(element);\n var node = widget.get(0).gridstackNode;\n\n result.push({\n id: contentPageGetWidgetId(widget),\n x: node.x,\n y: node.y,\n width: node.w,\n minWidth: node.minW/*,\n height: node.h*/\n });\n });\n\n return result;\n}", "title": "" }, { "docid": "f0ca8020db636799e9cdc276f047ffd7", "score": "0.4625642", "text": "function childrens(elem) {\n var nodeId = elem.data(\"tt-node\");\n var table = elem.closest(\"table\");\n return table.find(\"[data-tt-parent='\" + nodeId + \"']\");\n }", "title": "" }, { "docid": "154aa6496e6b66a4314f136b8fcac97d", "score": "0.46233425", "text": "function get_page_descendants(page_id) {\r\n\treturn Page.findOne({_id: page_id}).lean().populate(\"option_ids\").then(\r\n\t\t// success\r\n\t\tfunction(page) {\r\n\t\t\t// this will grab the original page too, arguably we're getting it twice but we need\r\n\t\t\t// the ancestor_path\r\n\t\t\treturn Page.find({ancestor_path: {$regex: \"^\" + page.ancestor_path}}).lean().populate(\"option_ids\");\r\n\t\t},\r\n\t\t// fail\r\n\t\tfunction(err) {\r\n\t\t\tconsole.log(\"error in get_page_descendants findOne call: \", err);\r\n\t\t\treturn Q.reject(err);\r\n\t\t}\r\n\t).then(\r\n\t\t// success\r\n\t\tfunction(pages) {\r\n\t\t\tvar ret = fix_populated_options(pages);\r\n\t\t\treturn ret;\r\n\t\t},\r\n\t\t// fail\r\n\t\tfunction(err) {\r\n\t\t\tconsole.log(\"error in find call in get_page_descendants: \", err);\r\n\t\t\treturn Q.reject(err);\r\n\t\t}\r\n\t);\r\n}", "title": "" }, { "docid": "ce8e708a108e95437c6c4238fcf29396", "score": "0.4617997", "text": "function createWidget(pageId, widget) {\n\n widget._page = pageId;\n return Widget.count({_page: pageId}).then(\n function(count) {\n widget.order = count;\n return Widget.create(widget);\n }\n );\n\n }", "title": "" }, { "docid": "f459135282c654041943816c56b3127d", "score": "0.46139896", "text": "function getGadgetsInDashboard(){\n var gadgets = [];\n var page = $scope.dashboard.pages[$scope.selectedpage];\n for (var i = 0; i < page.layers.length; i++) {\n var layer = page.layers[i];\n var gadgetsAux = layer.gridboard.filter(function(gadget){return typeof gadget.id != \"undefined\"});\n if(gadgetsAux.length){\n gadgets = gadgets.concat(gadgetsAux);\n }\n }\n return gadgets;\n }", "title": "" }, { "docid": "f459135282c654041943816c56b3127d", "score": "0.46139896", "text": "function getGadgetsInDashboard(){\n var gadgets = [];\n var page = $scope.dashboard.pages[$scope.selectedpage];\n for (var i = 0; i < page.layers.length; i++) {\n var layer = page.layers[i];\n var gadgetsAux = layer.gridboard.filter(function(gadget){return typeof gadget.id != \"undefined\"});\n if(gadgetsAux.length){\n gadgets = gadgets.concat(gadgetsAux);\n }\n }\n return gadgets;\n }", "title": "" }, { "docid": "f459135282c654041943816c56b3127d", "score": "0.46139896", "text": "function getGadgetsInDashboard(){\n var gadgets = [];\n var page = $scope.dashboard.pages[$scope.selectedpage];\n for (var i = 0; i < page.layers.length; i++) {\n var layer = page.layers[i];\n var gadgetsAux = layer.gridboard.filter(function(gadget){return typeof gadget.id != \"undefined\"});\n if(gadgetsAux.length){\n gadgets = gadgets.concat(gadgetsAux);\n }\n }\n return gadgets;\n }", "title": "" }, { "docid": "f459135282c654041943816c56b3127d", "score": "0.46139896", "text": "function getGadgetsInDashboard(){\n var gadgets = [];\n var page = $scope.dashboard.pages[$scope.selectedpage];\n for (var i = 0; i < page.layers.length; i++) {\n var layer = page.layers[i];\n var gadgetsAux = layer.gridboard.filter(function(gadget){return typeof gadget.id != \"undefined\"});\n if(gadgetsAux.length){\n gadgets = gadgets.concat(gadgetsAux);\n }\n }\n return gadgets;\n }", "title": "" }, { "docid": "d81abea99d60030b17dcecf7d7222f1d", "score": "0.4570812", "text": "function $find(id, like, parent)\n{\n if (typeof(like) == 'undefined')\n like = false;\n if (typeof(parent) == 'undefined')\n parent = document.body;\n var elements = new Array();\n if (parent.hasChildNodes())\n {\n var childs = parent.childNodes;\n for (var n = 0; n < $count(childs); n++)\n {\n // SI TIENE ID DEFINIDO, HAGO EL FIND\n if (typeof(childs[n].id) != 'undefined')\n {\n // BUSQUEDA LIKE\n if (like)\n {\n if (childs[n].id.indexOf(id) != -1)\n elements.push(childs[n]);\n }\n else\n {\n if (childs[n].id == id)\n elements.push(childs[n]);\n }\n }\n }\n }\n return elements;\n}", "title": "" }, { "docid": "fe4e8aff000faa7bee1ccde8dbfd921f", "score": "0.4561808", "text": "function reorderWidgets(pageId, startInd, endInd) {\n var url = \"/api/page/\" + pageId + \"/widget?start=\" + startInd + \"&end=\" + endInd;\n return $http.put(url)\n }", "title": "" }, { "docid": "5ea18acf338ac6011457ed5d8d7a97e0", "score": "0.455103", "text": "function drilldownAjaxParent(butid, respid, url) {\n\toEl = document.getElementById(respid); \n\tbEl = document.getElementById(butid); \n\t\n\tif(isClassInElement(oEl, 'jt-show') | isClassInElement(oEl, 'jt-hide')) \n\t\tswapClassInElement(oEl,'jt-show','jt-hide');\n\tif(isClassInElement(oEl, 'jt-ajax')) {\n\t\toEl.style.left = oEl.style.left + 10 + 'px';\n\t\tswapClassInElement(oEl,'jt-show','jt-ajax');\n\t\tMakeRequest(url, respid);\n\t}\n\tif(isClassInElement(bEl, 'jt-button-up-open') | isClassInElement(bEl, 'jt-button-closed')) \n\t\tswapClassInElement(bEl,'jt-button-up-open','jt-button-closed');\n\n\t// nvd\n\t// resetFooter();\n\t// end: nvd\n}", "title": "" }, { "docid": "2461fc18d260f207870daaabc64b6137", "score": "0.45348313", "text": "function getChildrenElements(container, parentSelector, childrenSelector) {\n return container.find(childrenSelector).filter(function(index) {\n return $(this).closest(parentSelector)[0] === container[0];\n })\n }", "title": "" }, { "docid": "322a9ec1d9097f086fdba4241127af04", "score": "0.45323616", "text": "chooseParentPage(pages, piece) {\n if (pages.length > 1) {\n self.apos.util.warnDevOnce(`${self.__meta.name}/chooseParentPage`, `Your site has more than one ${self.name} page, but does not override the chooseParentPage method in ${self.__meta.name} to choose the right one for individual ${self.pieces.name}. You should also override filterByIndexPage. for ${self.pieces.name} will point to an arbitrarily chosen page.`);\n }\n return pages[0];\n }", "title": "" }, { "docid": "06b585f78cc2316dca48d57fca9ace5c", "score": "0.4529574", "text": "function getParents(callBack){\n\n\tvar query = client.query(\"SELECT * FROM company WHERE parent\");\n\tquery.on(\"row\", function (row, result) {\n\t result.addRow(row);\n\t});\n\tquery.on(\"end\", function(result){\n\t\tcallBack(result.rows);\n\t});\n\n}", "title": "" }, { "docid": "19ecacf49e1e9b350c2ff42335bc0bb3", "score": "0.45130897", "text": "getChilds(id) {\n let result = [];\n for (let node of this.nodes) {\n if (node.getparentID() == id) result.push(node);\n }\n return result;\n }", "title": "" }, { "docid": "ee9e7cd4751abc4f4662ca5204f481c8", "score": "0.45036477", "text": "[_getParents](element) {\n const parents = [];\n let current = element; // Stop to body.\n\n while (current && current !== document.body) {\n // Skip shadow roots.\n if (current.nodeType === Node.ELEMENT_NODE) {\n parents.push(current);\n } // ShadowDom v1\n\n\n if (current.assignedSlot) {\n // Collect slots from deepest slot to top.\n while (current = current.assignedSlot) {\n parents.push(current);\n } // Continue the search on the top slot.\n\n\n current = parents.pop();\n continue;\n }\n\n current = current.parentNode || current.host;\n }\n\n return parents;\n }", "title": "" }, { "docid": "3d8637a44654925f2c9dc1054570750e", "score": "0.4485887", "text": "function contentPageGetWidgetId(widget) {\n return widget.attr('id').replace('widget', '');\n}", "title": "" }, { "docid": "c97d74c5b01074eb6135d5035b937602", "score": "0.44806868", "text": "getChildren(elementOrOid) {\n // get children, bailing if not found or no kids\n const element = this.getElement(elementOrOid);\n if (element) return element.children;\n return undefined;\n }", "title": "" }, { "docid": "cf990ae292115f86b40217d4b2c1a411", "score": "0.44721392", "text": "function findWidget(column, index){\n var widget = null;\n for (var i=0; i<column.widgets.length; i++){\n var w = column.widgets[i];\n if (dashboard.idEquals(w.wid,index)){\n widget = w;\n break;\n }\n }\n return widget;\n }", "title": "" }, { "docid": "be10faaba4d87a4297ab8097e4424cb7", "score": "0.44498804", "text": "function getParent(id) {\n var parent = document.getElementById(id);\n return parent;\n}", "title": "" }, { "docid": "2ce94703ab51952da73e24f6217b8c71", "score": "0.44496486", "text": "getWidgetsFromBackend() {\n\n RecordService.getWidgets(this.props.recordId).then(response => {\n this.getLogs()\n this.setState({widgets: response});\n this.fillUpFreeSlots();\n\n }).catch((e) => {\n this.setState({isServerError: true})\n })\n }", "title": "" }, { "docid": "7eed2f7c18fa44ee46fac074023bc0eb", "score": "0.44283816", "text": "function findAllPagesForWebsite(wid) {\n var url = '/api/website/'+wid+'/page';\n return $http.get(url);\n }", "title": "" }, { "docid": "34400539d4ba24b65f628e18d83c67eb", "score": "0.44276586", "text": "function clustertree_get_container_elements_by_name(instanceid, elementname) {\n var result = YAHOO.util.Dom.getElementsBy(function(el) { return el.name == elementname; },\n \t\t '',\n \t\t 'php_report_body_' + instanceid);\n return result;\n}", "title": "" }, { "docid": "765b7cb21410e1abe1f0584c033a114a", "score": "0.44205686", "text": "function contentPageLoadWidgetData(nodeId, openEditForm) {\n var widget;\n\n widget = jQuery('#widget' + nodeId);\n\n widget.find('.card-title .title').html(Translator.trans('Loading...'));\n widget.find('.card-body').html('<p class=\"text-center\"><i class=\"fas fa-sync fa-spin fa-4x\"></i></p>');\n jQuery.getJSON(Routing.generate('zikulacontentmodule_contentitem_displayediting', {contentItem: nodeId}), function (data) {\n var isActive;\n widget.find('.card-title .title').html(data.title);\n widget.find('.card-body').html(data.content + '<p><small class=\"width-note\" style=\"background-color: #ffe\"></small></p>');\n widget.find('.card-header').removeClass(function (index, className) {\n return (className.match (/(^|\\s)bg-\\S+/g) || []).join(' ');\n }).addClass('default' !== data.cardClass ? 'text-white bg-' + data.cardClass : 'bg-default');\n\n isActive = data.cardClass !== 'danger';\n widget.find('.card-title .dropdown .dropdown-menu .activate-item').toggleClass('d-none', isActive);\n widget.find('.card-title .dropdown .dropdown-menu .deactivate-item').toggleClass('d-none', !isActive);\n\n contentPageInitialiseAssetsAndEntrypoint(data);\n if (true === openEditForm) {\n widget.find('.card-title .dropdown .dropdown-menu .edit-item').click();\n }\n }).fail(function (jqxhr, textStatus, error) {\n if ('error' === textStatus && 'Not Found' === error) {\n widget.remove();\n }\n });\n}", "title": "" }, { "docid": "3274ef17ae49710181be01f1afd6dc08", "score": "0.44183385", "text": "getFilteredChildren() {\n var children = [];\n this.props.children.forEach((child) => {\n if(child.nodeName === AdaptiveGridItem) {\n children.push(child);\n }\n });\n return children;\n }", "title": "" }, { "docid": "a9d6b21e5249095bdb0552bf23323f6c", "score": "0.44144875", "text": "function getContainingArray(controller, viewmodel) {\n return controller.parent ? controller.parent.data.children : viewmodel.widgetData.widgets;\n }", "title": "" }, { "docid": "e87172310758452944131dca9804b977", "score": "0.44108382", "text": "function getHiddenElements(inheritedSettings, pageSettings) {\n var hiddenElements = [];\n\n for (var elementKey in inheritedSettings.elements) {\n var inheritedElement = inheritedSettings.elements[elementKey];\n\n if (inheritedElement.lockedInParent && inheritedElement.parentHidden) {\n hiddenElements.push(elementKey);\n } else if (inheritedElement.lockedInParent && !inheritedElement.parentHidden) {// HECSRV-82\n // If parent is locked + not hidden in global settings, don't add it to the hidden elements. (no-op)\n } else {\n var pageElement = pageSettings.elements[elementKey];\n\n if (typeof pageElement !== 'undefined') {\n if (pageElement.hidden === true || pageElement.hidden !== false && inheritedElement.hidden) {\n hiddenElements.push(elementKey);\n }\n } else if (inheritedElement.hidden) {\n hiddenElements.push(elementKey);\n } else if (inheritedElement.hidden !== false && inheritedElement.parentHidden) {\n hiddenElements.push(elementKey);\n }\n }\n }\n\n return hiddenElements;\n}", "title": "" }, { "docid": "4e66a0a110d856f97c5f7d15866c9b6d", "score": "0.4408033", "text": "[_getParents](element) {\n const parents = [];\n let current = element;\n // Stop to body.\n while (current && current !== document.body) {\n // Skip shadow roots.\n if (current.nodeType === Node.ELEMENT_NODE) {\n parents.push(current);\n }\n // ShadowDom v1\n if (current.assignedSlot) {\n // Collect slots from deepest slot to top.\n while (current = current.assignedSlot) {\n parents.push(current);\n }\n // Continue the search on the top slot.\n current = parents.pop();\n continue;\n }\n current = current.parentNode ||\n current.host;\n }\n return parents;\n }", "title": "" }, { "docid": "5d17f3f00782c022662f2023eaa8456a", "score": "0.44026446", "text": "ancestors(selector,limit) {return this.parents(selector,limit)}", "title": "" }, { "docid": "1352c1bd09bf7c394bf85b5057254486", "score": "0.43990713", "text": "function getUnderscoredChildren(baseId, parent) {\n\n jQuery(parent).find('[id^=' + baseId + '_]').each(function(index, elem) {\n console.log(jQuery(elem).attr('id').substring(baseId.length));\n });\n\n }", "title": "" }, { "docid": "c19eeb05f485b5780e6d8fa0feb9ca68", "score": "0.43874317", "text": "get parentElements() { \n let pos = this.el, parents = [];\n while (pos = pos.parentNode) {\n parents.unshift(pos);\n }\n return parents;\n }", "title": "" }, { "docid": "21c841118c9e676c1ec326e9e77378ed", "score": "0.43568978", "text": "function getElements(ids, isParent) {\n var elems = [];\n if (Array.isArray(ids) && ids[0] != 'CONTAINER' && ids[0] != 'WINDOW' &&\n ids[0] != 'DOCUMENT' && ids[0] != 'BODY' && ids[0] != 'QUERYSELECTOR') {\n for (var i = 0; i < ids.length; i++)\n elems.push(getElement(ids[i], isParent));\n } else {\n elems.push(getElement(ids, isParent));\n }\n return elems;\n}", "title": "" }, { "docid": "21c841118c9e676c1ec326e9e77378ed", "score": "0.43568978", "text": "function getElements(ids, isParent) {\n var elems = [];\n if (Array.isArray(ids) && ids[0] != 'CONTAINER' && ids[0] != 'WINDOW' &&\n ids[0] != 'DOCUMENT' && ids[0] != 'BODY' && ids[0] != 'QUERYSELECTOR') {\n for (var i = 0; i < ids.length; i++)\n elems.push(getElement(ids[i], isParent));\n } else {\n elems.push(getElement(ids, isParent));\n }\n return elems;\n}", "title": "" }, { "docid": "21c841118c9e676c1ec326e9e77378ed", "score": "0.43568978", "text": "function getElements(ids, isParent) {\n var elems = [];\n if (Array.isArray(ids) && ids[0] != 'CONTAINER' && ids[0] != 'WINDOW' &&\n ids[0] != 'DOCUMENT' && ids[0] != 'BODY' && ids[0] != 'QUERYSELECTOR') {\n for (var i = 0; i < ids.length; i++)\n elems.push(getElement(ids[i], isParent));\n } else {\n elems.push(getElement(ids, isParent));\n }\n return elems;\n}", "title": "" }, { "docid": "d7a2f086945a9146b9cc39acf6be9839", "score": "0.43537155", "text": "function Widgets () {\n this._keys = {};\n this._data = {};\n }", "title": "" }, { "docid": "18ecda615c72962e28dbd98ef9d4a8f0", "score": "0.43372428", "text": "function hiddenChildren_(){this.hiddenChildren$jsao=( []);}", "title": "" }, { "docid": "61e9677e97606505ec14e4e73126d1ac", "score": "0.43289995", "text": "takeOwnershipOfDescendants_() {\n devAssert(this.isScrollable_);\n this.getComponentDescendants_().forEach((child) => {\n Services.ownersForDoc(this.element).setOwner(child, this.element);\n });\n }", "title": "" }, { "docid": "d26f0d7f52a9fba81599939c35ecc692", "score": "0.43235895", "text": "function createWidget(pageId, widgetType) {\n return $http({\n method: 'POST',\n url: parentRoute + pageId + \"/widget\",\n data: {widgetType: widgetType,}\n });\n }", "title": "" }, { "docid": "6179d4be4b0aae6fc6ee0b42a15a4c69", "score": "0.43174154", "text": "function getControlsObjects(){\n\t\t\n\t\tvar objControl = g_objSlider.children(\".ug-slider-control\");\n\t\t\n\t\treturn(objControl);\n\t}", "title": "" }, { "docid": "0b71a65d92d0dd9cd4c54c5b006d2495", "score": "0.43119347", "text": "getMessages(id, page){\n\t\tconsole.log('getMessages');\n\t\tvar url = apiUrls.openChat;\n\t\tglobalPageWidget = page+1;\n\t\t$.ajax({\n\t\t\ttype:'POST',\n\t\t\turl: url,\n\t\t\tdata:{to_id: id, offset: page},\n\t\t\tdataType:'json',\n\t\t\tsuccess: Chat.openChatSuccess,\n\t\t\terror: Chat.apiError\n \t\t});\n\t}", "title": "" }, { "docid": "f2fbd6b21e86287223b8d4497c5ecdab", "score": "0.43022004", "text": "getParents (block) {\n const result = []\n result.push(block)\n let parent = this.getParent(block)\n while (parent) {\n result.push(parent)\n parent = this.getParent(parent)\n }\n return result\n }", "title": "" }, { "docid": "f7eb88ebbd8855c303a23b3e7b532ee9", "score": "0.43003148", "text": "get children() {\n return this._children();\n }", "title": "" }, { "docid": "50eacd769c8ad2d03ad137dd44d66862", "score": "0.42862657", "text": "getParentsNumber( i ) {\n\n\t\t\ti = i || 0;\n\n\t\t\tif ( this.parentUI ) {\n\n\t\t\t\treturn this.parentUI.getParentsNumber( i + 1 );\n\n\t\t\t}\n\n\t\t\treturn i;\n\n\t\t}", "title": "" }, { "docid": "3ee68a6fb15035189ad367a9e36409e5", "score": "0.42737097", "text": "function processParents()\r\n{\r\n var indent = \"\";\r\n var expr_find = basePath + '/tr[count(td)=2]/td/span';\r\n var xpathResult = document.evaluate(expr_find, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\r\n for (var i=0; i<xpathResult.snapshotLength; i++) {\r\n var nodeToHide = xpathResult.snapshotItem(i);\r\n nodeToHide.innerHTML=indent + '<a href=# class=\"x55\" style=\"text-decoration:none;\" id=\"' + strID + i + '\" onclick=\"xxv8_showhide(' + \"'\" + strID + i + \"'\" + ')\">' + nodeToHide.innerHTML + \"</a>\";\r\n }\r\n}", "title": "" }, { "docid": "ab7adcd97831974eca0ad1000bcd1ad4", "score": "0.42725587", "text": "parent() {\n const parents = this.arr.reduce((acc, curr) => {\n if (!acc.includes(curr.parentElement)) {\n acc.push(curr.parentElement);\n }\n return acc;\n }, []);\n\n return new DOMNodeCollection(parents);\n }", "title": "" }, { "docid": "bcba193c3802b77dae65787d1e8c3609", "score": "0.4269825", "text": "function populateWidgetLibrary(event) {\n $('.perc-widget-list').empty();\n $.getJSON($.perc_paths.WIDGETS_ALL + \"/type/\" + $('.perc-widget-type').val() + \"?filterDisabledWidgets=yes\", function(js) {\n $.each( js.WidgetSummary, function( ) {\n widgetDefs[this.id] = this;\n $('.perc-widget-list').append( createWidgetLibraryItem( this ) );\n });\n manageCategories();\n addWidgetInfoToolTips(widgetDefs);\n $(\".perc-widget-list\").width(\"auto\");\n\n fixIframeHeight();\n });\n }", "title": "" }, { "docid": "4aab5131ae0b460075e7d4509ad30e7d", "score": "0.42691174", "text": "function getLineChilds(id) {\n let sel = \".tr\" + id;\n let line = document.querySelector(sel);\n \n let elements = [];\n line.childNodes.forEach(c => {\n c.childNodes.forEach(cc => {\n if(cc.type !== \"submit\") {\n elements.push(cc);\n }\n })\n })\n return elements;\n }", "title": "" }, { "docid": "dde27318eb30d7459aabbcadda346687", "score": "0.4266725", "text": "function ScanParentsForApi(win) { \n /* Establish an outrageously high maximum number of parent windows that we are will to search as a\n safe guard against an infinite loop. This is probably not strictly necessary, but different \n browsers can do funny things with undefined objects. */ \n \n var nParentsSearched = 0; \n /* Search each parent window until we either:\n -find the API, \n -encounter a window with no parent (parent is null \n or the same as the current window)\n -or, have reached our maximum nesting threshold */ \n while ( (win.API_1484_11 == null) && \n (win.parent != null) && (win.parent != win) && \n (nParentsSearched <= MAX_PARENTS_TO_SEARCH) ) {\n\n nParentsSearched++; \n win = win.parent;\n }\n\n /* If the API doesn't exist in the window we stopped looping on, \n then this will return null. */\n return win.API_1484_11; \n}", "title": "" }, { "docid": "8a070a70c2a989c28aaa30664904e1a7", "score": "0.42553225", "text": "function getCardPanels() {\n\n return document.querySelectorAll('.card-parent');\n}", "title": "" }, { "docid": "726c5252abe7726102685bdceac64a28", "score": "0.4246984", "text": "function findWidget(widgetId) {\n return {\n modulePath: widgetId,\n };\n }", "title": "" }, { "docid": "a7158944a5004d397cf977b4bbcfbab0", "score": "0.42422184", "text": "function loadPage(page, null1, null2){\n\tvar newContent = \"<div id='jive-widget-content' class='clearfix'>\\n\\t<div id='jive-body-layout-l'>\\n\\t\\t<div class='jive-body-layout-l1'>\\n\\t\\t\\t<div style='display:block' id='jive-widget-container_1'>\";\n\t//Display loading spinner\n\t$j('#ContentViewerContainer', parentIframe[0].contentDocument)[0].innerHTML = '<p style=\"width:99%;text-align:center;\"><img alt=\"\" src=\"/images/jive-image-loading.gif\" style=\"width:100px;height=100px;\"></p>';\n\t// If the page is internal to this Jive instance\n\tif (page == \"javascript:void(0)\" || page.substring(0,window.parent._jive_base_absolute_url.length) == window.parent._jive_base_absolute_url){\n\t\t// If a previous ajax call (search) was made, abort it\n\t if(loadRequest) {\n\t loadRequest.abort();\n\t loadRequest = null\n\t }\n\t //set the search variable so that only its return is used and all previous returns are ignored\n\t loadRequest = $j.ajax({\n\t\t\ttype: \"GET\",\n\t\t\turl: page,\t\t\t\n\t\t\tsuccess: function (data) {\n\t\t\t\tvar refreshDelay = 250;\n\t\t\t\tif(data){\n\t\t\t\t\t//console.log('found: ' + $j( data ).find(widget_content).length + ' : ' + $j( data ).find(content_activity_class).length + ' : ' + $j( data ).find(content_area_class).length + ' : ' + $j( data ).find(content_list_class).length + ' : ' + $j( data ).find(content_list_class2).length);\n\t\t\t\t\tif( $j( data ).find(widget_content).length ) {\n\t\t\t\t\t\t// Container Overview pages\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = $j( data ).find(widget_content).html();\n\t\t\t\t\t\trefreshDelay = 5000;\n\t\t\t\t\t} else if ( $j( data ).find(content_activity_class).length ) {\n\t\t\t\t\t\t// Activity pages\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = $j( data ).find(content_activity_class).html();\n\t\t\t\t\t} else if ( data.search('viewerURL: \\\"') > -1 ) {\n\t\t\t\t\t\t// Content that has the document preview will have the preview iframe generated and shown\n\t\t\t\t\t\tvar viewerURL = data.substr(data.search('viewerURL: \\\"') + 14);\n\t\t\t\t\t\tviewerURL = viewerURL.substr(0, viewerURL.search('\"'));\n\t\t\t\t\t\tif ( viewerURL.search(\"-1\") > -1) {\n\t\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = '<p><h1>Document has been deleted!</h1></p>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = '<iframe id=\"docverse-viewer-frame\" width=\"100%\" height=\"850\" scrolling=\"no\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" src=\"' + viewerURL + '\"></iframe>';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ( $j( data ).find(content_photoalbum_class).length ) {\n\t\t\t\t\t\t// Jive content\n\t\t\t\t\t\tvar album = $j( data ).find(content_photoalbum_class).html();\n\t\t\t\t\t\t$j(album).find(\"[id='jive-viewphotos-form']\").remove();\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = album;\n\t\t\t\t\t} else if ( $j( data ).find(content_area_class).length ) {\n\t\t\t\t\t\t// Jive content\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = $j( data ).find(content_area_class).html();\n\t\t\t\t\t} else if ( $j( data ).find(content_list_class).length ) {\n\t\t\t\t\t\t// Listing pages (like Content, Search, etc.)\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = $j( data ).find(content_list_class).html();\n\t\t\t\t\t} else if ( $j( data ).find(content_list_class2).length ) {\n\t\t\t\t\t\t// Alternate spelled listing screens (Tasks, People, etc.)\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = $j( data ).find(content_list_class2).html();\n\t\t\t\t\t} else if ( $j( data ).find(content_profile_class).length ) {\n\t\t\t\t\t\t// Jive's profile page has several Ajax driven frames, so we cannot display it as is...the below will format it\n\t\t\t\t\t\tvar profile = $j( data ).find(content_profile_class);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Left pane - Profile Details\n\t\t\t\t\t\t$j(profile).find(\"[class='j-profile-nav j-rc5']\").remove();\n\t\t\t\t\t\t$j(profile).find(\"[id='jive-profile-photos-slideshow']\").remove();\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").css({\n\t\t\t\t\t\t\t'height': '200px',\n\t\t\t\t\t\t\t'float': 'left',\n\t\t\t\t\t\t\t'magin-bottom': '30px',\n\t\t\t\t\t\t\t'background-color': '#404040',\n\t\t\t\t\t\t\t'padding': '22px 25px 22px 25px'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").find(\"[class='jive-icon-sml jive-glyph-orgchart']\").remove();\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").find(\"h1\").css({\n\t\t\t\t\t\t\t'margin-bottom': '12px'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").find(\"span\").css({\n\t\t\t\t\t\t\t'display': 'block',\n\t\t\t\t\t\t\t'font-size': '12px',\n\t\t\t\t\t\t\t'text-transform': 'uppercase'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").find(\"li\").css({\n\t\t\t\t\t\t\t'margin-bottom': '8px'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-details']\").find(\"a\").removeClass(\"font-color-normal\").css({\n\t\t\t\t\t\t\t'color': '#FFFFFF'\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// Middle pane - Picture, Points, and Title\n\t\t\t\t\t\t$j(profile).find(\"[class='j-profile-points-rollover']\").remove();\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-avatar-stats']\").css({\n\t\t\t\t\t\t\t'float': 'left',\n\t\t\t\t\t\t\t'height': '200px',\n\t\t\t\t\t\t\t'margin-bottom': '12px',\n\t\t\t\t\t\t\t'background-color': '#5A5A5A',\n\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t'padding': '22px 25px 22px 25px'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-avatar-stats']\").find(\"[id='j-profile-points']\").css({\n\t\t\t\t\t\t\t'font-size': '12px',\n\t\t\t\t\t\t\t'text-transform': 'uppercase',\n\t\t\t\t\t\t\t'margin-bottom': '12px',\n\t\t\t\t\t\t\t'color': '#FFFFFF'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(profile).find(\"[id='j-profile-header-avatar-stats']\").find(\"[id='j-profile-points']\").find(\"span\").css({\n\t\t\t\t\t\t\t'display': 'block',\n\t\t\t\t\t\t\t'font-size': '32px',\n\t\t\t\t\t\t\t'padding-top': '12px'\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// Right pane - Personal Info\n\t\t\t\t\t\tvar details = $j( data ).find(\"[class='profile-tile j-extended-profile']\");\n\t\t\t\t\t\t$j(details).find(\"[class='j-footer-fade']\").remove();\n\t\t\t\t\t\t$j(details).find(\"[class='j-tile-header clearfix']\").remove();\n\t\t\t\t\t\t$j(details).find(\"span\").css({\n\t\t\t\t\t\t\t'display': 'block',\n\t\t\t\t\t\t\t'font-size': '12px',\n\t\t\t\t\t\t\t'text-transform': 'uppercase'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$j(details).find(\"li\").css({\n\t\t\t\t\t\t\t'margin-bottom': '8px'\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// Set the Viewer display area\n\t\t\t\t\t\tContentViewerContainerContainer.innerHTML = \n\t\t\t\t\t\t\tprofile.html() +\n\t\t\t\t\t\t\t'<div style=\"height: 200px; float: left; margin-bottom: 12px; background-color: #FAFAFA; padding: 22px 25px 22px 25px;\">' + details.html() + '</div>';\n\t\t\t\t\t}\n\t\t\t\t\tsetTimeout(resizeMe, refreshDelay);\n\t\t\t\t}\n\t\t\t},\n\t\t\tcomplete: function(){\n\t\t\t}\n\t\t});\n\t} else {\n\t\t// The pae is external, so iframe it in\n\t\tContentViewerContainerContainer.innerHTML = '<iframe src=\"' + page + '\" width=\"99%\" height=\"500px;\" />';\n\t\tresizeMe();\n\t}\n} //loadPage", "title": "" }, { "docid": "157899b3e1ae91d382bb9805e060e7d2", "score": "0.4239965", "text": "static bind() {\n Array.prototype.forEach.call(\n document.querySelectorAll(BoxWidget.Selector.data),\n element => new BoxWidget(element),\n );\n }", "title": "" }, { "docid": "ddef61fbbe9566e59b3cbd194fdee9e1", "score": "0.4239203", "text": "closeAll() {\n return Promise.all(this._contexts.map(context => this._widgetManager.closeWidgets(context))).then(() => undefined);\n }", "title": "" }, { "docid": "a76cb87df4955d3587db21e8981a26bb", "score": "0.42359003", "text": "function get$content(pageName) {\n return $('#page-content div[id=\"' + pageName + '\"]');\n}", "title": "" }, { "docid": "271a89f3ca0ca6972e837b8a0d6ec09e", "score": "0.42265102", "text": "function createWidget(pageId, widget) {\n var url = \"/api/page/\" + pageId + \"/widget\";\n return $http.post(url, widget);\n }", "title": "" }, { "docid": "271a89f3ca0ca6972e837b8a0d6ec09e", "score": "0.42265102", "text": "function createWidget(pageId, widget) {\n var url = \"/api/page/\" + pageId + \"/widget\";\n return $http.post(url, widget);\n }", "title": "" }, { "docid": "46557106b020d1f7a61eb9b44273c43d", "score": "0.42185354", "text": "createWidgetInstances()\n {\n this.widgets = this.widgets.concat(\n TextWidget.createInstances(\n this.window, this.document, this\n )\n )\n\n this.widgets = this.widgets.concat(\n RichTextWidget.createInstances(\n this.window, this.document, this.mycelium, this\n )\n )\n\n this.widgets = this.widgets.concat(\n ImageWidget.createInstances(\n this.window, this.document, this\n )\n )\n\n this.widgets = this.widgets.concat(\n AspectImageWidget.createInstances(\n this.window, this.document, this\n )\n )\n }", "title": "" }, { "docid": "eb9c4f5d086b028ea643a4d0bbe98bba", "score": "0.42148402", "text": "async getParent() {\r\n return this.requestClient.getBlock(this.block.value?.parent_id, this.block.value?.parent_table)\r\n }", "title": "" } ]
472c812d6a7a708c52b4a59353c537de
Determines if number encoded color contains alpha (opacity) defined and different then 255.
[ { "docid": "41ed32754b21fe5bb3aa8d64a52b2643", "score": "0.63519764", "text": "function hasAlphaInHex(hex) {\n harp_utils_1.assert((hex & ~HEX_TRGB_MASK) === 0, \"Wrong hex format\");\n return hex >> SHIFT_TRANSPARENCY !== 0;\n }", "title": "" } ]
[ { "docid": "3432c444f8560e1960d9a47c43a9ae3a", "score": "0.6728598", "text": "function isTransparent(color) {\n // TRICKY: edge case for Firefox' \"transparent\" here; this is a\n // browser bug: https://bugzilla.mozilla.org/show_bug.cgi?id=635724\n return (color === 'rgba(0, 0, 0, 0)' || color === 'transparent');\n }", "title": "" }, { "docid": "9931b69406393f0f320bb64ed5fb3fec", "score": "0.669681", "text": "function is(value) {\n var candidate = value;\n return Is.number(candidate.red) && Is.number(candidate.green) && Is.number(candidate.blue) && Is.number(candidate.alpha);\n }", "title": "" }, { "docid": "12d377842514294c4dddde64214f0550", "score": "0.66932905", "text": "function is(value) {\n var candidate = value;\n return Is.number(candidate.red)\n && Is.number(candidate.green)\n && Is.number(candidate.blue)\n && Is.number(candidate.alpha);\n }", "title": "" }, { "docid": "8c29d49ff2ed26c87d980ed2f16fccea", "score": "0.6690377", "text": "function is(value) {\r\n var candidate = value;\r\n return Is.number(candidate.red)\r\n && Is.number(candidate.green)\r\n && Is.number(candidate.blue)\r\n && Is.number(candidate.alpha);\r\n }", "title": "" }, { "docid": "8c29d49ff2ed26c87d980ed2f16fccea", "score": "0.6690377", "text": "function is(value) {\r\n var candidate = value;\r\n return Is.number(candidate.red)\r\n && Is.number(candidate.green)\r\n && Is.number(candidate.blue)\r\n && Is.number(candidate.alpha);\r\n }", "title": "" }, { "docid": "8c29d49ff2ed26c87d980ed2f16fccea", "score": "0.6690377", "text": "function is(value) {\r\n var candidate = value;\r\n return Is.number(candidate.red)\r\n && Is.number(candidate.green)\r\n && Is.number(candidate.blue)\r\n && Is.number(candidate.alpha);\r\n }", "title": "" }, { "docid": "8a7ec9efb4fdc770084d542fb7b69028", "score": "0.66744876", "text": "function is(value) {\n\t\t\tvar candidate = value;\n\t\t\treturn Is.number(candidate.red)\n\t\t\t\t&& Is.number(candidate.green)\n\t\t\t\t&& Is.number(candidate.blue)\n\t\t\t\t&& Is.number(candidate.alpha);\n\t\t}", "title": "" }, { "docid": "d8a01ecc4db4e634d683ca1009727806", "score": "0.6526176", "text": "function acp_get_alpha_value_from_color( value ) {\n\t\tvar alphaVal;\n\n\t\t// Remove all spaces from the passed in value to help our RGBa regex.\n\t\tvalue = value.replace( / /g, '' );\n\n\t\tif ( value.match( /rgba\\(\\d+\\,\\d+\\,\\d+\\,([^\\)]+)\\)/ ) ) {\n\t\t\talphaVal = parseFloat( value.match( /rgba\\(\\d+\\,\\d+\\,\\d+\\,([^\\)]+)\\)/ )[1] ).toFixed(2) * 100;\n\t\t\talphaVal = parseInt( alphaVal );\n\t\t} else {\n\t\t\talphaVal = 100;\n\t\t}\n\n\t\treturn alphaVal;\n\t}", "title": "" }, { "docid": "724775e6f82434a2c78e4242eae4e0c4", "score": "0.6494856", "text": "function getAlpha(rgba) {\n rgba = rgba.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+(\\.\\d{1,2})?|\\.\\d{1,2})[\\s+]?/i);\n return (rgba && rgba.length === 6) ? rgba[4] : '1';\n }", "title": "" }, { "docid": "724775e6f82434a2c78e4242eae4e0c4", "score": "0.6494856", "text": "function getAlpha(rgba) {\n rgba = rgba.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+(\\.\\d{1,2})?|\\.\\d{1,2})[\\s+]?/i);\n return (rgba && rgba.length === 6) ? rgba[4] : '1';\n }", "title": "" }, { "docid": "35afc6c3df0636d4e2a31c7e605a74d7", "score": "0.64253974", "text": "equals(color) {\n let [rs, gs, bs, as] = this.rgba;\n let [ro, go, bo, ao] = new Util.Color(color).rgba;\n return rs === ro && gs === go && bs === bo && as === ao;\n }", "title": "" }, { "docid": "bd66d3b49aac8f29e842fb8659ee10a7", "score": "0.64014846", "text": "alpha(a) {\n let [r, g, b] = this.getRGBA();\n return Color.fromRGBA(r, g, b, a);\n }", "title": "" }, { "docid": "c14956e892b65e5e875dd07a0e69280b", "score": "0.63670874", "text": "isValidRGB(value) {\n const isValid = value === '' || ColorHelpers.isValidDecimalForRGB(value);\n if (!isValid) {\n new WarningNotice(`The specified RGB \"${value}\" is not valid color. The value should be 0 - 255.`).show();\n }\n return isValid;\n }", "title": "" }, { "docid": "b8598e0ade00005b4e9e55291b6c8bf8", "score": "0.623303", "text": "function isColor(value) {\n return value.r != null && value.g != null && value.b != null && value.a != null && value.hex != null;\n}", "title": "" }, { "docid": "085b9fb265299ef43f4bdec6a85b023e", "score": "0.6195422", "text": "function rgbaToArgbHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join(\"\");}// `equals`", "title": "" }, { "docid": "a1609c5614e8d8ae2f54972fce36c66f", "score": "0.6069055", "text": "function isRgb(string) {\n var rgb = string.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?/i);\n return (rgb && rgb.length === 4) ? true : false;\n }", "title": "" }, { "docid": "a1609c5614e8d8ae2f54972fce36c66f", "score": "0.6069055", "text": "function isRgb(string) {\n var rgb = string.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?/i);\n return (rgb && rgb.length === 4) ? true : false;\n }", "title": "" }, { "docid": "12a60440f65e9531f23ce96e87a22c06", "score": "0.60111254", "text": "get rgba() {\n return Color.rgba(this.color, this.alpha);\n }", "title": "" }, { "docid": "dc19b0babac06374c840775cf5970d97", "score": "0.5964733", "text": "function rgba(color){\n\treturn [color[0]/255, color[1]/255, color[2]/255, color[3]/100];\n}", "title": "" }, { "docid": "c3ee66b7f82d86cb02c9c2ba1c02b430", "score": "0.59619385", "text": "function isValidColor(color) {\n // validate if color is an hexadecimal\n if (!color ||\n color.charAt(0) !== '#' ||\n color.length < 4 ||\n color.length > 7) {\n return false;\n }\n // validate rgb of the color\n return color.replace('#', '')\n .match(/.{1,2}/g)\n .map(function (v) { return Number.isNaN(parseInt(v, 16)); })\n .indexOf(true) === -1;\n }", "title": "" }, { "docid": "291d24457de7d4c28c41be71332e37a7", "score": "0.5957101", "text": "static isLight(color) {\n color = this.parseColor(color);\n let r = (color >> 16) & 0xff;\n let g = (color >> 8) & 0xff;\n let b = (color >> 0) & 0xff;\n let luma = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n return luma > 128;\n }", "title": "" }, { "docid": "b9b5c2d1b0fd6631dc7bb7bc08053921", "score": "0.5917468", "text": "get isCloseToGreyscale() {\n\t\t\tvar threshold = 6;\n const avg = Math.round((this._red + this._green + this._blue) / 3);\n if (this.isGreyscale ||\n (Math.abs(this._red - avg) < threshold &&\n Math.abs(this._green - avg) < threshold &&\n Math.abs(this._blue - avg) < threshold))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "0a5fb11133b97b2f4de106feeecbda26", "score": "0.5897271", "text": "static rgba(c, a) {\n c = (c < 0) ? 0 : c > 0xFFFFFF ? 0xFFFFFF : c;\n let [r, g, b] = [c >> 16 & 0xFF, c >> 8 & 0xFF, c & 0xFF];\n return `rgba(${r},${g},${b},${a.toFixed(2)})`;\n }", "title": "" }, { "docid": "705d3c6ca89e2e6480e7a12f7e31e381", "score": "0.5893936", "text": "function _rgba(str) {\n if (!str) {\n return undefined;\n }\n var match = str.match(/^rgb(a?)\\(([\\d., ]+)\\)$/);\n if (match) {\n var hasAlpha = !!match[1];\n var expectedPartCount = hasAlpha ? 4 : 3;\n var parts = match[2].split(/ *, */).map(Number);\n if (parts.length === expectedPartCount) {\n return {\n r: parts[0],\n g: parts[1],\n b: parts[2],\n a: hasAlpha ? parts[3] * 100 : _consts__WEBPACK_IMPORTED_MODULE_0__[\"MAX_COLOR_ALPHA\"],\n };\n }\n }\n}", "title": "" }, { "docid": "ca23f4b5746b2938b45378fa2dc05fe5", "score": "0.5885163", "text": "function rgbaToHex(r, g, b, a) {\n var hex = [pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16))];\n return hex.join(\"\");\n } // `equals`", "title": "" }, { "docid": "03dc0bc0e5dde9c9c488e44598660b60", "score": "0.58164704", "text": "function makeSureItIsHex(rgbColor) { \n if(rgbColor===\"rgba(0, 0, 0, 0)\" || rgbColor === \"transparent\"){\n return \"#ffffff\";\n } else {\n rgbColor = rgbColor.replace(\"rgb\",\"\").replace(\"a\",\"\").replace(\")\",\"\").replace(\"(\",\"\").replace(\" \",\"\").split(\",\");\n rgbColor = rgbToHex(rgbColor[0], rgbColor[1], rgbColor[2]);\n return rgbColor;\n }\n}", "title": "" }, { "docid": "463d4eb78f6dfb223c2b8af89d4472f7", "score": "0.57959527", "text": "return rgba(color)\n } else if (isRgb(color)) {\n // $FlowIgnoreNextLine not sure why this complains\n return rgb(color)\n }", "title": "" }, { "docid": "ad7f9bc25f5393e7c6088ad8f3d99e13", "score": "0.578795", "text": "function isColor(x) {\n if (isDefined(x)) {\n if (x.hasOwnProperty(\"r\") && x.hasOwnProperty(\"g\") && x.hasOwnProperty(\"b\")) {\n return isNumber(x[\"r\"]) && isNumber(x[\"g\"]) && isNumber(x[\"b\"]);\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n}", "title": "" }, { "docid": "67ae1ec63aa68c2106d298675ff22bd3", "score": "0.5778325", "text": "function rgbaToArgbHex(r, g, b, a) {\n var hex = [pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16))];\n return hex.join(\"\");\n } // `equals`", "title": "" }, { "docid": "ccdeec304d97c94a19beabd617464ae4", "score": "0.5758916", "text": "function hexColorToRGBA(color, alpha) {\n\t\tif(typeof color === 'string' && color.length == 7) {\n\t\t\tvar r = parseInt(color.substr(1,2), 16);\n\t\t\tvar g = parseInt(color.substr(3,2), 16);\n\t\t\tvar b = parseInt(color.substr(5,2), 16);\n\t\t\tvar a = Math.max(0, Math.min(255, Math.round(alpha * 255)));\n\t\t\treturn \"rgba(\" + r + \", \" + g + \", \" + b + \", \" + a + \")\";\n\t\t}\n\t\treturn color;\n\t}", "title": "" }, { "docid": "057d2f0fba4c927fa10bc3554c7339cd", "score": "0.5750318", "text": "function rgbaColor3f(r, g, b, a) {\n return \"rgba(\" + Math.round(r * 255) + \",\"\n + Math.round(g * 255) + \",\"\n + Math.round(b * 255) + \",\" + a + \")\";\n}", "title": "" }, { "docid": "c0272feb3465b04a3a539ddf73fea47d", "score": "0.574288", "text": "function IsTransparentBlendMode(BlendMode)\n{\n\t//\tif undefined or invalid, assume opaque\n\tswitch(BlendMode)\n\t{\n\tcase 'additive':\n\tcase 'alpha-blend':\n\t\treturn true;\n\t\n\tcase 'opaque':\n\tdefault:\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "57e79a3145669bf77864367e4d177a76", "score": "0.57421345", "text": "function setAlpha(color,alpha){\n if (color.indexOf('a') == -1){\n return color.replace(\")\",\",\"+alpha+\")\").replace(\"rgb\",\"rgba\");\n }\n }", "title": "" }, { "docid": "58c57468fcce243c503783df69113080", "score": "0.5741466", "text": "function isLight(color) {\r\n return ((color.r * 299) + (color.g * 587) + (color.b * 114)) / 1000 >= 128;\r\n}", "title": "" }, { "docid": "37529197c19458c0007b8991c9e41433", "score": "0.57361436", "text": "function RGBCheck(color) {\n if (color.value > 255 || color.value < 0 || color.value % 1 !== 0) { // when not valid\n RGBError()\n } else if (color.value.length === 0) { // blank columns will be defined as \"0\" \n color.value = 0\n }\n}", "title": "" }, { "docid": "d1af7e88650d21a03aa69a6186f34c0e", "score": "0.5725952", "text": "function checkValidColour(colour) {\n // If valid hex or rgb/a \n var rgbRegex = /(rgb\\(((([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]),\\s*){2}([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\\)))|(rgba\\(((([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]),\\s*){3}(1|1.0*|0?.\\d)\\)))/\n var hexRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/\n if (colour.match(rgbRegex) || colour.match(hexRegex)) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "e7582c5da0e3650fec4577a0e705bc79", "score": "0.57231706", "text": "function hasColorSupport() {\n return !!supportsColor;\n}", "title": "" }, { "docid": "6ff562a695cf648edf9db27fe6dcb925", "score": "0.5710449", "text": "function filterBlack(e) {\n if (e !== 'rgba(0, 0, 0, 0)' && 'rgb(0, 0, 0)') {\n return e;\n }\n}", "title": "" }, { "docid": "7d92642023c53d2298dbe9fa09aa07bc", "score": "0.57081515", "text": "function getOverlayOpacity(el){\r\n\t if(typeof el==\"string\") el = $(el);\r\n\t if(jQuery.browser.msie) return (el.css(\"filter\").replace(/[^0-9.]*/g,\"\"))/100;\r\n\t else return parseFloat(el.css(\"opacity\")).toFixed(3); // Only need 3dp precision - this stops floating point errors in Chrome\r\n\t}", "title": "" }, { "docid": "55205e3ab353aff985202a6ad53dc912", "score": "0.57015353", "text": "function rgbaToArgbHex(r, g, b, a) {\n var hex = [pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16))];\n return hex.join(\"\");\n } // `equals`", "title": "" }, { "docid": "55205e3ab353aff985202a6ad53dc912", "score": "0.57015353", "text": "function rgbaToArgbHex(r, g, b, a) {\n var hex = [pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16))];\n return hex.join(\"\");\n } // `equals`", "title": "" }, { "docid": "55205e3ab353aff985202a6ad53dc912", "score": "0.57015353", "text": "function rgbaToArgbHex(r, g, b, a) {\n var hex = [pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16))];\n return hex.join(\"\");\n } // `equals`", "title": "" }, { "docid": "d6927ba3284dcfbe6dba90c064e2c70b", "score": "0.5697578", "text": "function __isColor(col) {\r\n\tvar regex = /(#([0-9A-Fa-f]{6})\\b)|(aqua)|(black)|(blue)|(fuchsia)|(gray)|(green)|(lime)|(maroon)|(navy)|(olive)|(orange)|(purple)|(red)|(silver)|(teal)|(white)|(yellow)|(rgb\\(\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*\\))|(rgb\\(\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*\\))/;\r\n\treturn (col.match(regex) != null);\r\n}", "title": "" }, { "docid": "2b9a2a30d08fc70273081dd2f4bffd65", "score": "0.5682366", "text": "function rgbToOpacity(rgb) {\n\t\t\tvar rgbOpacity = '';\n\t\t\tvar rgbArr = rgbToArr(rgb);\n\t\t\tif (rgbArr.length == 4) {\n\t\t\t\trgbOpacity = rgbArr[3];\n\t\t\t\t// 小数点2桁まで表示\n\t\t\t\trgbOpacity = Math.round(rgbOpacity * 100) / 100;\n\t\t\t} else {\n\t\t\t\trgbOpacity = '1';\n\t\t\t}\n\t\t\treturn rgbOpacity;\n\t\t}", "title": "" }, { "docid": "994f0df3990604dc1e12e22d96393fec", "score": "0.5655125", "text": "isColorValid(color) {\n const regex = /^#[0-9a-f]{6}$/i;\n return regex.test(color);\n }", "title": "" }, { "docid": "d6f78cbd196453ad412e686713c7d9ef", "score": "0.5653573", "text": "function color_(color, _) {\n let f;\n\n if ((0, _vegaUtil.isFunction)(color)) {\n f = obj => (0, _d3Color.rgb)(color(obj, _));\n\n f.dep = dependency(color);\n } else {\n // default to mid-grey\n f = (0, _vegaUtil.constant)((0, _d3Color.rgb)(color || '#888'));\n }\n\n return f;\n} // get image opacity function", "title": "" }, { "docid": "209987e06c4091786e7993cc55ed0611", "score": "0.5645643", "text": "function rgbString(input, alpha) {\n var hex = parseHex($(input).val(), true),\n rgb = hex2rgb(hex),\n opacity = $(input).attr('data-opacity');\n if( !rgb ) return null;\n if( opacity === undefined ) opacity = 1;\n if( alpha ) {\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n } else {\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n }\n }", "title": "" }, { "docid": "209987e06c4091786e7993cc55ed0611", "score": "0.5645643", "text": "function rgbString(input, alpha) {\n var hex = parseHex($(input).val(), true),\n rgb = hex2rgb(hex),\n opacity = $(input).attr('data-opacity');\n if( !rgb ) return null;\n if( opacity === undefined ) opacity = 1;\n if( alpha ) {\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n } else {\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n }\n }", "title": "" }, { "docid": "209987e06c4091786e7993cc55ed0611", "score": "0.5645643", "text": "function rgbString(input, alpha) {\n var hex = parseHex($(input).val(), true),\n rgb = hex2rgb(hex),\n opacity = $(input).attr('data-opacity');\n if( !rgb ) return null;\n if( opacity === undefined ) opacity = 1;\n if( alpha ) {\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n } else {\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n }\n }", "title": "" }, { "docid": "209987e06c4091786e7993cc55ed0611", "score": "0.5645643", "text": "function rgbString(input, alpha) {\n var hex = parseHex($(input).val(), true),\n rgb = hex2rgb(hex),\n opacity = $(input).attr('data-opacity');\n if( !rgb ) return null;\n if( opacity === undefined ) opacity = 1;\n if( alpha ) {\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n } else {\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n }\n }", "title": "" }, { "docid": "209987e06c4091786e7993cc55ed0611", "score": "0.5645643", "text": "function rgbString(input, alpha) {\n var hex = parseHex($(input).val(), true),\n rgb = hex2rgb(hex),\n opacity = $(input).attr('data-opacity');\n if( !rgb ) return null;\n if( opacity === undefined ) opacity = 1;\n if( alpha ) {\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n } else {\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n }\n }", "title": "" }, { "docid": "181a62920f289f8ebd5eb309ec8e8d11", "score": "0.5645591", "text": "function rgbString(input, alpha) {\r\r\n var hex = parseHex($(input).val(), true),\r\r\n rgb = hex2rgb(hex),\r\r\n opacity = $(input).attr('data-opacity');\r\r\n if( !rgb ) return null;\r\r\n if( opacity === undefined ) opacity = 1;\r\r\n if( alpha ) {\r\r\n return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\r\r\n } else {\r\r\n return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\r\r\n }\r\r\n }", "title": "" }, { "docid": "f60d83e7922af4e149b6874ea0313273", "score": "0.563161", "text": "function isAlphaNum(code) {\n return (code >= 0x30 /* 0 */ && code <= 0x39 /* 9 */) ||\n (code >= 0x41 /* A */ && code <= 0x5A /* Z */) ||\n (code >= 0x61 /* a */ && code <= 0x7A /* z */);\n }", "title": "" }, { "docid": "985587eff22fa205b7b4803338905114", "score": "0.5626848", "text": "get isGreyscale() {\n\t\t\treturn this._red === this._green && this._red === this._blue;\n\t\t}", "title": "" }, { "docid": "032e172c997b991c1c9b4a75d5d56cf5", "score": "0.5623312", "text": "isColorTypeValid(color) {\n const regex = /^#[0-9a-f]{0,6}$/i;\n return regex.test(color);\n }", "title": "" }, { "docid": "750a7a8c786e64eb29d3ebf0bce5a73b", "score": "0.5622258", "text": "function validateRGBColorSpec(s) {\n if ( s.indexOf('#') == 0 ) { \n\tif(!s.match(/#[a-f0-9]{6,6}/i))\n\t return null;\n\treturn s;\n }\n if ( s.indexOf('rgb') == 0 ) { \n\tvar rgbre = /rgb\\s*\\((.*)\\)/i;\n\tvar rgbre_ret = rgbre.exec(s);\n\tif( rgbre_ret == null || rgbre_ret.length != 2 ) return null;\n\tvar cspec = rgbre_ret[1];\n\tvar rgb = cspec.split(/\\s*\\.\\s*/);\n\tif( rgb.length != 3 ) return null;\n\tfor(var c = 0; c < rgb.length; c++) {\n\t if( !rgb[c].match( /[0-9]{0,3}/ ) )\n\t\treturn null;\n\t try\n\t {\n\t\tvar cval = parseInt(rgb[c]);\n\t\tif( cval > 255 ) return null;\n\t }\n\t catch(e) { \n\t\treturn null;\n\t }\n\t}\n\treturn s.replace(/\\./g,',');\n }\n return false;\n}", "title": "" }, { "docid": "8ba478af4a7017ad9200c4ba410cc556", "score": "0.56149036", "text": "function hexRgb(value) {\n return check.string(value) &&\n rgb.test(value);\n }", "title": "" }, { "docid": "673cc6ef6b38c7d6fb58a279b7abc12c", "score": "0.56125337", "text": "function isColorRGB(color) {\n if (typeof color !== \"object\" || !Array.isArray(color)) {\n return false;\n }\n if (color.length !== 3) {\n return false;\n }\n if (typeof color.r !== \"number\") {\n return false;\n }\n if (typeof color.g !== \"number\") {\n return false;\n }\n if (typeof color.b !== \"number\") {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "cf92294c91bb67f02043b868118e7626", "score": "0.5607956", "text": "function isLight(color) {\n return (color.r * 299 + color.g * 587 + color.b * 114) / 1000 >= 128;\n }", "title": "" }, { "docid": "3e279a3feee2143c474ae83cff658be2", "score": "0.55982", "text": "function isRGBColorSpec(s) {\n if ( s.indexOf('#') == 0 )\n\treturn true;\n else if ( s.toLowerCase().indexOf('rgb') == 0 )\n\treturn true;\n return false;\n}", "title": "" }, { "docid": "36d0da16d43a3b48532659e201dfae1e", "score": "0.55785155", "text": "static isEyeColor(input) {\n return input.length === 3 && [\"amb\", \"blu\", \"brn\", \"gry\", \"grn\", \"hzl\", \"oth\"].includes(input);\n }", "title": "" }, { "docid": "43c2cc6222d10daeee378d3096d4dc56", "score": "0.5562646", "text": "function readableColor(color) {\n const { red, green, blue } = polished.parseToRgb(color);\n var yiq = (red * 299 + green * 587 + blue * 114) / 1000;\n return yiq >= 150 ? '#111' : '#fff';\n}", "title": "" }, { "docid": "4ad15f84aad11b2bdb9898b4a2f6f0ac", "score": "0.5562104", "text": "function alphaFunc(myCanvas,bool){\n //get Pixel data \n var context = myCanvas.getContext('2d'),\n imageData = context.getImageData(0, 0, myCanvas.width, myCanvas.height),\n data = imageData.data;\n //test RED \n for (var i = 0; i < data.length; i += 4) {\n if (data[i] != 255 && data[i+1] != 255 && data[i+2] != 255){\n if (bool){ //ie image is on\n data[i+3] = 255;\n }\n else{ //ie image is off\n data[i+3] = 0;\n }\n }\n }\n //now draw the context using the adjusted values\n context.putImageData(imageData,0,0);\n}", "title": "" }, { "docid": "c9d1840c2c0678fa4358067645f5fc48", "score": "0.5561701", "text": "isValidColor(colorHex) {\n return colorHex && colorHex.length == 7 && /^#[0-9a-fA-F]{6}$/i.test(colorHex);\n }", "title": "" }, { "docid": "bbc97d02369f945559f243a080230eff", "score": "0.5561655", "text": "function rgba(r, g, b, a) {\n return `rgb(${r}, ${g}, ${b}, ${a})`\n}", "title": "" }, { "docid": "f60d908ab771771e31745fd46956e683", "score": "0.55603063", "text": "getRGBA() {\n if (/^#[0-9a-fA-F]{3,6}$/.test(this.value)) {\n return [...this.parseNormalColor(this.value), 1];\n }\n let match = this.value.match(/^rgb\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)$/);\n if (match) {\n return [\n Number(match[1]) / 255,\n Number(match[2]) / 255,\n Number(match[3]) / 255,\n 1\n ];\n }\n match = this.value.match(/^rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d.]+)\\s*\\)$/);\n if (match) {\n return [\n Number(match[1]) / 255,\n Number(match[2]) / 255,\n Number(match[3]) / 255,\n Number(match[4]),\n ];\n }\n match = this.value.match(/^rgba\\(\\s*(#[0-9a-fA-F]{3,6})\\s*,\\s*([\\d.]+)\\s*\\)$/);\n if (match) {\n return [...this.parseNormalColor(match[1]), Number(match[2])];\n }\n throw new Error(`\"${this.value}\" is not a valid RGB color`);\n }", "title": "" }, { "docid": "8920978a3f36f3abbaec0e73865abf16", "score": "0.5550267", "text": "function colorByNumbers() {\n return me.axes(true).color.type() == 'number';\n }", "title": "" }, { "docid": "9ff0048edb0872a62a5a5497a1ed6b06", "score": "0.5545924", "text": "colorToRGBA(str) {\n str = str || 'black';\n return (exports.Util._namedColorToRBA(str) ||\n exports.Util._hex3ColorToRGBA(str) ||\n exports.Util._hex6ColorToRGBA(str) ||\n exports.Util._rgbColorToRGBA(str) ||\n exports.Util._rgbaColorToRGBA(str) ||\n exports.Util._hslColorToRGBA(str));\n }", "title": "" }, { "docid": "ec7a10823ea846a96cc7b4e7a816846c", "score": "0.55408186", "text": "function isAlphaNum(code) {\n return (code >= 0x30 /* 0 */ && code <= 0x39 /* 9 */) ||\n (code >= 0x41 /* A */ && code <= 0x5A /* Z */) ||\n (code >= 0x61 /* a */ && code <= 0x7A /* z */);\n}", "title": "" }, { "docid": "ec7a10823ea846a96cc7b4e7a816846c", "score": "0.55408186", "text": "function isAlphaNum(code) {\n return (code >= 0x30 /* 0 */ && code <= 0x39 /* 9 */) ||\n (code >= 0x41 /* A */ && code <= 0x5A /* Z */) ||\n (code >= 0x61 /* a */ && code <= 0x7A /* z */);\n}", "title": "" }, { "docid": "07e8a03af6a39099e36f5f5ef3a4bcdb", "score": "0.5539157", "text": "function colorOnKeyPressRgb(event) {\n const $el = event.currentTarget;\n const value = $el.value;\n\n // Check if Tab is pressed.\n if (checkKeyCode(event, 9)) {\n return;\n }\n\n if (value.length >= 1 && value.length <= 3 && value >= 0 && value <= 255) {\n let red = rgbField1.value ? rgbField1.value : 0;\n let green = rgbField2.value ? rgbField2.value : 0;\n let blue = rgbField3.value ? rgbField3.value : 0;\n\n typedColorOutput.style.backgroundColor = `rgb(${red}, ${green}, ${blue}`;\n } else if (rgbField1.value.length === 0 && rgbField2.value.length === 0 && rgbField3.value.length === 0) {\n typedColorOutput.style.backgroundColor = 'transparent';\n } else {\n alert('Your input is not correct!\\nOnly values between 0 and 255 are allowed!');\n\n typedColorOutput.style.backgroundColor = 'transparent';\n }\n }", "title": "" }, { "docid": "8364d585e8dbfc0921681cfdc7f0ce59", "score": "0.55322987", "text": "function isBlack(hsl) {\n if (getLightness(hsl) <= 5) {\n console.log(\"Value is black\"); // FIXME test\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "d59411d30512fea4e207e173687d9b48", "score": "0.5524944", "text": "color() {\n return \"rgba(\" + this.integer(1, 255) + \",\" + this.integer(1, 255) + \",\" + this.integer(1, 255) + \",1)\";\n }", "title": "" }, { "docid": "f23d95a4858af322af7cbb60c7bf0709", "score": "0.5524514", "text": "function getColorMinusAlpha(color, alp) {\n\tvar r = Math.round(color[0]);\n\tvar g = Math.round(color[1]);\n\tvar b = Math.round(color[2]);\n\tvar a = alp;\n\treturn 'rgba('+r+','+g+','+b+','+a+')';\n}", "title": "" }, { "docid": "7b4f3d31abf7b36333f6224751a89d49", "score": "0.5523037", "text": "function convertColor(color, alpha, rgba) {\n var R = 0,\n G = 0,\n B = 0,\n colorStr,\n tempArr;\n\n if (rgba && rgba.match(startsRGBA)) {\n tempArr = rgba.split(COMMA);\n R = tempArr[0].slice(tempArr[0].indexOf('(') + 1);\n G = tempArr[1];\n B = tempArr[2];\n if (!alpha && alpha !== 0) {\n alpha = parseInt(tempArr[3].slice(0, tempArr[3].indexOf(')')) * 100, 10);\n }\n }\n if (color) {\n if (color.match(startsRGBA)) {\n tempArr = color.split(COMMA);\n R = tempArr[0].slice(tempArr[0].indexOf('(') + 1);\n G = tempArr[1];\n B = tempArr[2];\n } else {\n colorStr = color.replace(cleanColorCode, BLANK).split(COMMA)[0];\n switch (colorStr.length) {\n case 3:\n colorStr = colorStr.charAt(0) + colorStr.charAt(0) + colorStr.charAt(1) + colorStr.charAt(1) + colorStr.charAt(2) + colorStr.charAt(2);\n break;\n case 6:\n break;\n default:\n colorStr = (colorStr + COLOR_WHITE).slice(0, 6);\n break;\n }\n R = parseInt(colorStr.slice(0, 2), 16);\n G = parseInt(colorStr.slice(2, 4), 16);\n B = parseInt(colorStr.slice(4, 6), 16);\n }\n }\n\n if (!alpha && alpha !== 0) {\n alpha = 100;\n }\n if (typeof alpha === 'string') {\n alpha = alpha.split(COMMA)[0];\n }\n alpha = parseInt(alpha, 10) / 100;\n return 'rgba(' + R + COMMA + G + COMMA + B + COMMA + alpha + ')';\n}", "title": "" }, { "docid": "cc66dac374ef7c99bfa6826ca15ddfb0", "score": "0.5522193", "text": "get rgba_1() {\n let c = new Util.Color(this.r, this.g, this.b, this.a);\n return [c.r / 255, c.g / 255, c.b / 255, c.a / 255];\n }", "title": "" }, { "docid": "611f78cd71072c560e9245b9d854b3ee", "score": "0.5520768", "text": "isPixelTransparent(imageData, xScreenPos, yScreenPos, box, uvBox, canvas) {\n let pixelIsTransparent = false;\n const { u, v } = PixelPicker_1.screenToUvCoordinates(xScreenPos, yScreenPos, box, uvBox);\n const imageWidth = imageData.width;\n const x = imageWidth * u;\n const imageHeight = imageData.height;\n const y = imageHeight * v;\n const pixel = PixelPicker_1.getPixelFromImage(x, y, imageData, canvas);\n if (pixel !== undefined && pixel[3] === 0) {\n pixelIsTransparent = true;\n }\n return pixelIsTransparent;\n }", "title": "" }, { "docid": "611f78cd71072c560e9245b9d854b3ee", "score": "0.5520768", "text": "isPixelTransparent(imageData, xScreenPos, yScreenPos, box, uvBox, canvas) {\n let pixelIsTransparent = false;\n const { u, v } = PixelPicker_1.screenToUvCoordinates(xScreenPos, yScreenPos, box, uvBox);\n const imageWidth = imageData.width;\n const x = imageWidth * u;\n const imageHeight = imageData.height;\n const y = imageHeight * v;\n const pixel = PixelPicker_1.getPixelFromImage(x, y, imageData, canvas);\n if (pixel !== undefined && pixel[3] === 0) {\n pixelIsTransparent = true;\n }\n return pixelIsTransparent;\n }", "title": "" }, { "docid": "611f78cd71072c560e9245b9d854b3ee", "score": "0.5520768", "text": "isPixelTransparent(imageData, xScreenPos, yScreenPos, box, uvBox, canvas) {\n let pixelIsTransparent = false;\n const { u, v } = PixelPicker_1.screenToUvCoordinates(xScreenPos, yScreenPos, box, uvBox);\n const imageWidth = imageData.width;\n const x = imageWidth * u;\n const imageHeight = imageData.height;\n const y = imageHeight * v;\n const pixel = PixelPicker_1.getPixelFromImage(x, y, imageData, canvas);\n if (pixel !== undefined && pixel[3] === 0) {\n pixelIsTransparent = true;\n }\n return pixelIsTransparent;\n }", "title": "" }, { "docid": "bdffc896142b69e03e5ee5e8f1fb1482", "score": "0.5517411", "text": "_rgbaColorToRGBA(str) {\n if (str.indexOf('rgba(') === 0) {\n str = str.match(/rgba\\(([^)]+)\\)/)[1];\n var parts = str.split(/ *, */).map(Number);\n return {\n r: parts[0],\n g: parts[1],\n b: parts[2],\n a: parts[3],\n };\n }\n }", "title": "" }, { "docid": "fb5ab3465e2a656ebebf6ee8a4631a73", "score": "0.5509411", "text": "function colorToCSS(color, alpha) {\n return `rgba(${color[0]}, ${color[1]}, ${color[2]}, ${alpha})`;\n}", "title": "" }, { "docid": "4c1acd5ed043ae22a01221cdc31b0931", "score": "0.5509087", "text": "function getValidColor(color) {\n return validhexcolor.test(parseColor(color)) && color;\n}", "title": "" }, { "docid": "1102bf40bcd268029405a66e3d1e0d3e", "score": "0.5507902", "text": "function isColor(value) {\n return value instanceof Color;\n }", "title": "" }, { "docid": "4a238c8ac9226cab2baaa16c240fb7ac", "score": "0.55052936", "text": "isValidHex(value) {\n const isValid = value === '' || (!value.includes('#') && ColorHelpers.isHex(`#${value}`));\n if (!isValid) {\n new WarningNotice(`The specified hex \"${value}\" is not valid color. The correct value should look like \"fff\" or \"ffffff\".`).show();\n }\n return isValid;\n }", "title": "" }, { "docid": "e12be15a26eff050fe1bf581c3412360", "score": "0.55034614", "text": "function kmlColorToRGBA(colorStr) {\n var rgba = [];\n colorStr = colorStr.replace(\"#\", \"\");\n for (var i = 6; i >= 0; i -= 2) {\n rgba.push(parseInt(colorStr.substring(i, i + 2), 16));\n }\n return rgba;\n}", "title": "" }, { "docid": "fd4fadf9e2d024d13727053d84cc3b1b", "score": "0.5487591", "text": "function isWhite(hsl) {\n if (getLightness(hsl) >= 86) {\n console.log(\"Value is white\"); // FIXME test\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "66bf1f0fc38b16f6827bb6508f829638", "score": "0.54785603", "text": "function getRgbAColor(color, opacity) {\n var id = color + '&' + opacity;\n\n if (colorCache[id]) {\n return colorCache[id];\n }\n\n var div = document.createElement('div');\n div.style.background = color;\n document.body.appendChild(div);\n var computedColor = window.getComputedStyle(div).backgroundColor;\n document.body.removeChild(div);\n /* istanbul ignore if */\n\n if (!rgbReg.test(computedColor)) {\n return color;\n }\n\n return colorCache[id] = \"rgba(\".concat(extractRgbColor.exec(computedColor)[1], \", \").concat(opacity, \")\");\n }", "title": "" }, { "docid": "ffa983b649a041a1e41c94f46fbad057", "score": "0.5471781", "text": "function rgbString(input, alpha) {\n\t\t\tvar hex = parseHex($(input).val(), true),\n\t\t\t\trgb = hex2rgb(hex),\n\t\t\t\topacity = $(input).attr('data-opacity');\n\t\t\tif( !rgb ) return null;\n\t\t\tif( opacity === undefined ) opacity = 1;\n\t\t\tif( alpha ) {\n\t\t\t\treturn 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n\t\t\t} else {\n\t\t\t\treturn 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ca49280c017101697baed3e8da085951", "score": "0.5461427", "text": "function isRGBArray (rgb)\n{\n return Array.isArray (rgb) && (rgb.length === 3) && rgb.every (component => (typeof component === 'number') && (!isNaN (component)));\n}", "title": "" }, { "docid": "9001c325ff432d0f227f1bc7d4812958", "score": "0.54606044", "text": "function convertColor(hColor, opacity) {\n opacity = opacity || '0.5';\n var R = parseInt(cutHex(hColor).substring(0, 2), 16);\n var G = parseInt(cutHex(hColor).substring(2, 4), 16);\n var B = parseInt(cutHex(hColor).substring(4, 6), 16);\n return 'rgba(' + R + ', ' + G + ', ' + B + ', ' + opacity + ')';\n }", "title": "" }, { "docid": "d402abd4524e4c3e26e2c2169599a698", "score": "0.5458466", "text": "function getOpacity(numPoints) {\n\t\t\tif (numPoints > 60000) { return \"0.3\"; }\n\t\t\telse if (numPoints > 4000) { return \"0.6\"; }\n\t\t\telse { return \"1\"; }\n\t\t}", "title": "" }, { "docid": "6afe4c38432db827d36d41864e06c1c3", "score": "0.54581094", "text": "function m__rgbToHexAlpha(rgba) {\n var hex = rgba.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?/i);\n var ret = [];\n if (hex && hex.length === 4) {\n ret[0] = \"#\" +\n (\"0\" + parseInt(hex[1], 10).toString(16)).slice(-2) +\n (\"0\" + parseInt(hex[2], 10).toString(16)).slice(-2) +\n (\"0\" + parseInt(hex[3], 10).toString(16)).slice(-2);\n ret[1] = rgba.replace(/^.*,(.+)\\)/, '$1');\n } else {\n ret = [rgba, 1];\n }\n return ret\n}", "title": "" }, { "docid": "93119c4beb5c4dadec9db73880d7609c", "score": "0.5446216", "text": "function rgbString(input, alpha) {\n\t\tvar hex = parseHex($(input).val(), true),\n\t\t\trgb = hex2rgb(hex),\n\t\t\topacity = $(input).attr('data-opacity');\n\t\tif( !rgb ) return null;\n\t\tif( opacity === undefined ) opacity = 1;\n\t\tif( alpha ) {\n\t\t\treturn 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n\t\t} else {\n\t\t\treturn 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n\t\t}\n\t}", "title": "" }, { "docid": "93119c4beb5c4dadec9db73880d7609c", "score": "0.5446216", "text": "function rgbString(input, alpha) {\n\t\tvar hex = parseHex($(input).val(), true),\n\t\t\trgb = hex2rgb(hex),\n\t\t\topacity = $(input).attr('data-opacity');\n\t\tif( !rgb ) return null;\n\t\tif( opacity === undefined ) opacity = 1;\n\t\tif( alpha ) {\n\t\t\treturn 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n\t\t} else {\n\t\t\treturn 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n\t\t}\n\t}", "title": "" }, { "docid": "93119c4beb5c4dadec9db73880d7609c", "score": "0.5446216", "text": "function rgbString(input, alpha) {\n\t\tvar hex = parseHex($(input).val(), true),\n\t\t\trgb = hex2rgb(hex),\n\t\t\topacity = $(input).attr('data-opacity');\n\t\tif( !rgb ) return null;\n\t\tif( opacity === undefined ) opacity = 1;\n\t\tif( alpha ) {\n\t\t\treturn 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n\t\t} else {\n\t\t\treturn 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n\t\t}\n\t}", "title": "" }, { "docid": "93119c4beb5c4dadec9db73880d7609c", "score": "0.5446216", "text": "function rgbString(input, alpha) {\n\t\tvar hex = parseHex($(input).val(), true),\n\t\t\trgb = hex2rgb(hex),\n\t\t\topacity = $(input).attr('data-opacity');\n\t\tif( !rgb ) return null;\n\t\tif( opacity === undefined ) opacity = 1;\n\t\tif( alpha ) {\n\t\t\treturn 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')';\n\t\t} else {\n\t\t\treturn 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')';\n\t\t}\n\t}", "title": "" }, { "docid": "216534c9e2d9806e55070424e732d09e", "score": "0.5440963", "text": "function getRgbAColor(color, opacity) {\n var id = color + '&' + opacity;\n if (colorCache[id]) {\n return colorCache[id];\n }\n\n var div = document.createElement('div');\n div.style.background = color;\n document.body.appendChild(div);\n var computedColor = window.getComputedStyle(div).backgroundColor;\n document.body.removeChild(div);\n\n /* istanbul ignore if */\n if (!rgbReg.test(computedColor)) {\n return color;\n }\n\n return colorCache[id] = 'rgba(' + extractRgbColor.exec(computedColor)[1] + ', ' + opacity + ')';\n}", "title": "" }, { "docid": "9a69cdbdf5b46f588797f4e1e0312fed", "score": "0.5438502", "text": "function toHex(c) {\n var m = /rgba?\\((\\d+), (\\d+), (\\d+)/.exec(c);\n // console.log(m);\n return m ? '#' + ( m[1] << 16 | m[2] << 8 | m[3] ).toString(16)\n : c;\n}", "title": "" }, { "docid": "34d1d5b49e7f9a20325f226811c165cf", "score": "0.5423637", "text": "function isColorValue(node) {\n if (node.type === nodes.NodeType.HexColorValue) {\n return true;\n }\n else if (node.type === nodes.NodeType.Function) {\n return this.isColorConstructor(node);\n }\n else if (node.type === nodes.NodeType.Identifier) {\n if (node.parent && node.parent.type !== nodes.NodeType.Term) {\n return false;\n }\n var candidateColor = node.getText().toLowerCase();\n if (candidateColor === 'none') {\n return false;\n }\n if (exports.colors[candidateColor]) {\n return true;\n }\n }\n return false;\n }", "title": "" } ]
41b3e878c80f4136f855ea9e07ff4072
Functions or Methods, Object, and how they work. Functions called by keyword function parentheses for taking arguments such as other variables or functions / They can also have no arguments at all. This is a function that changes a variable
[ { "docid": "f11eb326ab5145141e38d8433e11af1c", "score": "0.0", "text": "function changeVariableString () {\n\tvar myVariable = \"Your your animal has been change to: \";\n\tvar randomAnimals =[\"Cat\", \"Mouse\", \"Dog\"];\n\n\tfor(var i = 0; i < randomAnimals.length; i++) {\n\t\tdocument.write(myVariable + randomAnimals[i]);\n\t\tdocument.write(\"<br>\");\n\t}\n\n\treturn myVariable;\n}", "title": "" } ]
[ { "docid": "d3ba9a817ad406130d4de39ed5c671a9", "score": "0.66767704", "text": "function a(one) {\n one()\n}", "title": "" }, { "docid": "555547739621edaed6e9b5c5ba4a12b6", "score": "0.6513445", "text": "function change(b) {\n b = 2;\n}", "title": "" }, { "docid": "555547739621edaed6e9b5c5ba4a12b6", "score": "0.6513445", "text": "function change(b) {\n b = 2;\n}", "title": "" }, { "docid": "f3508ca45872c8c4715cceaaa72cf482", "score": "0.6484228", "text": "function newFunc(someFunc) {\n\n}", "title": "" }, { "docid": "35de6377f612bedf9d2addaf2f22918f", "score": "0.6386277", "text": "function thirdFunction(normalParam, paramFunction) {\n // and as with normal variable, the function is renamed in here\n paramFunction(normalParam + \" added from the third Function\");\n}", "title": "" }, { "docid": "d77abd144eb97c558bbe18ce970ecac5", "score": "0.61808187", "text": "function myFunc(theObject){ //name function \"myFunc\" with arguments \"theObject\"\n theObject.make = \"Fiat\"; //defined function \n }", "title": "" }, { "docid": "bd711810ee427c891518fe4c13e1af3c", "score": "0.6121898", "text": "function abc(obj){\n obj = \"Verma\"\n}", "title": "" }, { "docid": "207c69f4f4f10c9147ddd68dc30f4e45", "score": "0.6069036", "text": "function newFunction() {\n return arg;\n }", "title": "" }, { "docid": "deeb8d649c34745183722ea0f8767ad9", "score": "0.606456", "text": "function change_(){}", "title": "" }, { "docid": "362049353d90ee441db1439d73cce868", "score": "0.60438323", "text": "mutate () {\n\n }", "title": "" }, { "docid": "bf46e0f5050f2e6dfb643b531a9fe32a", "score": "0.6032959", "text": "function whatever(whatever){\n return whatever;\n}", "title": "" }, { "docid": "0db7cd8d863aa3390c5057eb7caef8b3", "score": "0.599266", "text": "function x(y) {\n\ty = y + 5;\n\tconsole.log(y);\n}", "title": "" }, { "docid": "981f777494c912df7af53a449cbcf548", "score": "0.59918237", "text": "function change(obj) {\n obj.greeting = \"HOLA\";\n}", "title": "" }, { "docid": "f677f005896779cb5e00536a56f025e1", "score": "0.5976333", "text": "function fun(){}", "title": "" }, { "docid": "f72d885e2826baf5c33b0f522e04b61a", "score": "0.59628814", "text": "function f(x)\r\n{\r\n}", "title": "" }, { "docid": "71cb73364c49d11a0955e98d5274de52", "score": "0.59518725", "text": "function call_by_value() {\n var a = 0;\n console.log(a); // 0\n change_value(a);\n console.log(a); // 0\n}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "618aeafddaf2a95e857b56f5207b2aa8", "score": "0.594558", "text": "function b(a){od=a}", "title": "" }, { "docid": "c499d2a701c1b43ecbd7fcd3641494bf", "score": "0.59411544", "text": "function foo(x) {\n y = x * 2;\n z = x * 3;\n}", "title": "" }, { "docid": "f4f1230f42a11b23637191ee97d995bb", "score": "0.59278053", "text": "function bam(baz) \n{\n baz(); // \"bar\"\n}", "title": "" }, { "docid": "a554c1a2e98dc365ee562b267601c1cf", "score": "0.5919449", "text": "function foo() {\n // foo is basically just a variable referencing a function value\n console.log(42);\n}", "title": "" }, { "docid": "09d9a36b1cf88a77256188d533b321e8", "score": "0.5914056", "text": "function argument(f){\n f();\n f();\n}", "title": "" }, { "docid": "1fa69d134c40bf10be2a7c26c4891b23", "score": "0.59058964", "text": "function abc(x){\n console.log(x*2)\n}", "title": "" }, { "docid": "a82e99b76352292daf99614d1ce095ab", "score": "0.58824325", "text": "function func(x,y=function anonymous1(){x=2}){\r\n var x=3;\r\n /* \r\n y()\r\n EC(y)\r\n AO:\r\n x=2;\r\n \r\n */\r\n y();\r\n console.log(x); // 2\r\n}", "title": "" }, { "docid": "24794738d14b0255245150d1dfbd5355", "score": "0.5878135", "text": "function party(){\n console.log('Wow this is amazing!');\n party = function(){\n console.log('Been there, got the T-Shirt');\n }\n}", "title": "" }, { "docid": "f51838fa7af820d8b6186c4aab219bcd", "score": "0.5871994", "text": "function myFunction() {\n carName = \"Volvo\";\n}", "title": "" }, { "docid": "4b8c091a2aee5407d4948426ec6a47c5", "score": "0.5863246", "text": "function party() {\n console.log('Wow this is amazing!');\n party = function () {\n console.log('Been there, got the T-Shirt');\n }\n}", "title": "" }, { "docid": "7cfab0f78972424c9507528704adfeeb", "score": "0.5855233", "text": "function mainfun2(fun,value){ \n fun(value)\n}", "title": "" }, { "docid": "ee683f9baeeb1d9d5695e36d3f430a67", "score": "0.58298284", "text": "function makeFunc(x) {\n f = (y) => {\n console.log(x - y);\n };\n x = 5;\n return f;\n }", "title": "" }, { "docid": "7b403b9531f6109ce79e2cdee1b1564b", "score": "0.5789498", "text": "function change_2(user){user.name = \"Tom\";}", "title": "" }, { "docid": "b8ea9f6bb82e1944ff3ce9983a3f8b18", "score": "0.5779918", "text": "function myNewFunc(){\n //do yet more stuff\n}", "title": "" }, { "docid": "43d73846678bb9f2a55665bc49f05360", "score": "0.57640487", "text": "function fooWithParameter(b) {\n a = a * 2;\n a = a + b;\n}", "title": "" }, { "docid": "875e665d144c950e709ca6007cd34141", "score": "0.57615584", "text": "function foo() {\n\t// function definition or statement\n\t// can be called above/before its definition\n\t// cannot be passed to other functions as a variable\n}", "title": "" }, { "docid": "0071570163228ff6851b8c6680587cc0", "score": "0.57580596", "text": "function x(y){\n\ty += 5;\n\tconsole.log(y);\n}", "title": "" }, { "docid": "a2c7a51dcc5f826ac1223213a103cd0d", "score": "0.57563376", "text": "function dabely() {\n return ten = 2 * 5;\n}", "title": "" }, { "docid": "3ee87206ec217c090e8efdc8377a86b5", "score": "0.57559514", "text": "function myFunction(myFunctionVariable, mySecondFunctionVariable) {\n\n console.log(myFunctionVariable);\n\n}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.5743829", "text": "function a(){}", "title": "" }, { "docid": "5479211485b5f4d182933fa51b5cc828", "score": "0.5742534", "text": "function myFunction(){\n console.log(\"old way\")\n}", "title": "" }, { "docid": "b97559c2aa01d6a7b90e634495d5f285", "score": "0.5742423", "text": "function newFunc(num){\n return num + 1;\n}", "title": "" }, { "docid": "7c0e1f32a87dc6fe78fb152820016558", "score": "0.57417756", "text": "function numChange(number) {\n}", "title": "" }, { "docid": "520ce945b79b4834e488edd6b126bcd0", "score": "0.5727483", "text": "function bla () {}", "title": "" }, { "docid": "9d034f53d5ec3aeedcfbd86c455c6da1", "score": "0.57267463", "text": "function modifyAdd(num1) {\n\n return function (num2) {\n return num1 + num2\n }\n\n}", "title": "" }, { "docid": "2d474ea428ee248e40420df4c54481c4", "score": "0.5723543", "text": "function firstFunction(iAmFunction) {\r\n\r\n console.log(iAmFunction);\r\n\r\n}", "title": "" }, { "docid": "d9ec1c5d83b5b0eafca5dd30561074ef", "score": "0.5713255", "text": "function foo(x) {\n\treturn x+2;\n}", "title": "" }, { "docid": "fd11103965f02475395cff202d30c2a3", "score": "0.5704876", "text": "function saludar4(fn) {\n fn('Hola mundo');\n}", "title": "" }, { "docid": "01aff49287eff302b9415da65e5d196f", "score": "0.56885225", "text": "function doWorld(aFunction) {\n aFunction(\"world\");\n }", "title": "" }, { "docid": "dc92cce1b02c57c48c2229c9cc5ed84b", "score": "0.5688074", "text": "function mutateGreeting(f) {\n f.greeting = 'Hola';\n}", "title": "" }, { "docid": "98539c05fb8c1142f9264dd39349095e", "score": "0.56792474", "text": "function foo(x, y) {\n x = y;\n return y;\n}", "title": "" }, { "docid": "f049d8203600df3dc921d99b4668afa1", "score": "0.5676432", "text": "function some_function03(param) { }", "title": "" }, { "docid": "8b98dd5cd45cedbea7f9584b9ddc4126", "score": "0.567636", "text": "function functiondef(type, value){\n if (type == \"variable\"){register(value); cont(functiondef);}\n else if (type == \"(\") cont(pushcontext, commasep(funarg, \")\"), statement, popcontext);\n }", "title": "" }, { "docid": "374d75092beb18a56514d7710a6106ab", "score": "0.56756574", "text": "function example() {\n // regular funcion\n}", "title": "" }, { "docid": "d7ccc5e1dd39c979d797aea7063e4bfb", "score": "0.56749105", "text": "function callFunction(func) { //it's taking a function as a parameter\n func();\n}", "title": "" }, { "docid": "a4fe89bab4d7c38cd68033636847949b", "score": "0.5672993", "text": "function Reaction() { }", "title": "" }, { "docid": "66265674c39a25615ea0e7f4c0786e72", "score": "0.56703913", "text": "function fn() {\n\t\t\n\t}", "title": "" }, { "docid": "597553068f46d17db5875224f5afb7b3", "score": "0.5663448", "text": "function doSomething(param) {\n param();\n}", "title": "" }, { "docid": "d22e275881602fca82251c61fe664344", "score": "0.5663163", "text": "function f1(x){ console.log(x*2) }", "title": "" }, { "docid": "f6befc2bda7442864c354ce351ac82d7", "score": "0.5659679", "text": "function fff(a) {\n return a() + 5;\n}", "title": "" }, { "docid": "7d63640216ee60ce60e34ac34b75413d", "score": "0.56508577", "text": "function example() {\r\n\r\n}", "title": "" }, { "docid": "edaf9644020839e0a03917cd76d34512", "score": "0.56495696", "text": "function func() {}", "title": "" }, { "docid": "a892dee8d2df5da2616c418021deac2b", "score": "0.5647476", "text": "function multiplier(x, y) {\n // TODO: your code here\n var x = x;\n function multiply(n) {\n\n return x * n;\n }\n return multiply;\n}", "title": "" }, { "docid": "50d7133adb40f793b3cc57b0ea483b77", "score": "0.5646209", "text": "function callFunction(sayYo){\n sayYo();\n}", "title": "" }, { "docid": "3d1e9114b089c8033d6291d8ae49ccd2", "score": "0.5645705", "text": "function changeStuff (a, b, c) {\n a = a * 10 // a is a var declared here. It will die when this function (and it's kids) finish execution\n b.item = 'changed'\n c = { item: 'changed' } // same as a\n}", "title": "" }, { "docid": "3a8661c68a49610b91655f2a97effc9e", "score": "0.56449336", "text": "function newFunc(num){\n return num+1;\n}", "title": "" }, { "docid": "ff4b03771dccedd00c99912a9237be6d", "score": "0.5643909", "text": "function one(a) {\n\tlet b = a * 2;\n\n\tfunction two(c) {\n\t\tconsole.log({ a, b, c });\n\t}\n\n\ttwo(b * 3);\n}", "title": "" }, { "docid": "b75df55b6dc2a5cc9420105a3ad014ff", "score": "0.5637355", "text": "function changeGreeting(obj)\n{\n obj.greeting = 'Hola';\n}", "title": "" }, { "docid": "8c9615a83fe36ec9072cf4d01c666027", "score": "0.5636549", "text": "function myFunction_new(x, y, z) {}", "title": "" }, { "docid": "9b28e2c19f2c9057d726fca3fc7bcd77", "score": "0.56360304", "text": "function revocable(fun){\n return {\n invoke: function(){\n if(typeof fun === 'function')\n fun.apply(null, arguments)\n else\n throw 'Already revoked'\n },\n revoke: function(){\n fun = 'undefined'\n }\n }\n}", "title": "" }, { "docid": "9413cb50fa7f4fc1bed7059a08adb9f2", "score": "0.56359535", "text": "set(oldFn, newFn) {\n // Need to name this as \"d\" to prevent errors during minification.\n let c = Object.assign(((function() {\n return (function() {\n return newFn.call(this, oldFn, ...arguments);\n }).bind(this);\n }).bind(this.context))(), this.object, ...this.otherObjects);\n try {\n eval(`${this.name} = c;`);\n return c;\n } catch(e) {}\n return false;\n }", "title": "" }, { "docid": "0d910e250b55899b246f59dbfc6d5ddf", "score": "0.56284827", "text": "function foo(func) {\n func();\n}", "title": "" }, { "docid": "02e2307e54fa7cf5aba6df4deb79edba", "score": "0.562664", "text": "function f(a, b, c) {\n // Argument a is re-assigned to a new value.\n // The object or primitive referenced by the original a is unchanged.\n a = 3;\n // Calling b.push changes its properties - it adds\n // a new property b[b.length] with the value \"foo\".\n // So the object referenced by b has been changed.\n b.push(\"foo\");\n // The \"first\" property of argument c has been changed.\n // So the object referenced by c has been changed (unless c is a primitive)\n c.first = false;\n}", "title": "" }, { "docid": "5a445e98c7b49e3b044237b6c7731cf3", "score": "0.56185853", "text": "function a(fn){//1.-creamos la funcion a la que le vamos a \n //pasar el argumento, que es otra \n //funcion 'fn'\n fn()\n }", "title": "" }, { "docid": "7523f792ed377d9892d02d05a12aee04", "score": "0.5610992", "text": "function changeX() {\n x = \"Goodbye!\";\n console.log(x);\n}", "title": "" }, { "docid": "0bcee2774a3752437dfaea336fa1163c", "score": "0.56104827", "text": "function b(a){le=a}", "title": "" }, { "docid": "369b50f512b457330d57bb0f797200de", "score": "0.56094015", "text": "function rum (fun){\nfun()\n\n}", "title": "" }, { "docid": "6242f0b5fc0a47b393ba060a4d1245ee", "score": "0.55932647", "text": "function someFunction() {}", "title": "" }, { "docid": "6242f0b5fc0a47b393ba060a4d1245ee", "score": "0.55932647", "text": "function someFunction() {}", "title": "" }, { "docid": "6242f0b5fc0a47b393ba060a4d1245ee", "score": "0.55932647", "text": "function someFunction() {}", "title": "" }, { "docid": "6242f0b5fc0a47b393ba060a4d1245ee", "score": "0.55932647", "text": "function someFunction() {}", "title": "" }, { "docid": "f40fc549e3e1cb9062ebe4877a64f26c", "score": "0.5592642", "text": "function foo(x) {\n\tconsole.log(x+2);\n}", "title": "" }, { "docid": "e9ca167f1580952d5a43a6433df8afca", "score": "0.5587933", "text": "function foo(a) {\n\n\tvar b = a * 2;\n\n\tfunction bar(c) {\n\t\tconsole.log( a, b, c );\n\t}\n\n\tbar(b * 3);\n}", "title": "" }, { "docid": "d871270dfb82d415efb8a8bfcfae50cc", "score": "0.558307", "text": "function callFunction(fun){\n fun();\n}", "title": "" }, { "docid": "d871270dfb82d415efb8a8bfcfae50cc", "score": "0.558307", "text": "function callFunction(fun){\n fun();\n}", "title": "" }, { "docid": "5a1c938e89a4085a29907380e951c382", "score": "0.5579703", "text": "function functiondef(type, value) {\n if (type == \"variable\") {\n register(value);cont(functiondef);\n } else if (type == \"(\") cont(pushlex(\")\"), pushcontext, commasep(funarg, \")\"), poplex, statement, popcontext);\n }", "title": "" }, { "docid": "9bb268ba3f8f7aa89e0e58d74482e989", "score": "0.5573398", "text": "function myFunction(x) {\n\n\tvar y = x + 3;\n\n\treturn y;\n}", "title": "" }, { "docid": "e4397c3b8aea86efd66155d3fb32a8bc", "score": "0.5568942", "text": "function changeObj(d) {\n d.prop1 = function() {};\n d.prop2 = {};\n}", "title": "" }, { "docid": "e4397c3b8aea86efd66155d3fb32a8bc", "score": "0.5568942", "text": "function changeObj(d) {\n d.prop1 = function() {};\n d.prop2 = {};\n}", "title": "" }, { "docid": "e4397c3b8aea86efd66155d3fb32a8bc", "score": "0.5568942", "text": "function changeObj(d) {\n d.prop1 = function() {};\n d.prop2 = {};\n}", "title": "" }, { "docid": "b92cad9999032c990a395dfa20b4036c", "score": "0.5558186", "text": "function functTwo(){}", "title": "" }, { "docid": "48e160dd553a65e302b0457594187105", "score": "0.55546975", "text": "function myFunc(x){\n return x * x;\n}", "title": "" }, { "docid": "e649ea326ac070099335479d6ad8989d", "score": "0.555335", "text": "function add() {\n return \"yo\";\n} // string type function - hover over \"function\"", "title": "" }, { "docid": "89aa4875d759f4bf1b5228d22c90725a", "score": "0.5552904", "text": "function myFunction(x, y) {\n return x + y;\n}", "title": "" } ]
633a27feddf4933d1cb953dce4292d25
tSNE Cluster| Based on code from DECO3100 Wk11 Tutorial by Alex | Link:
[ { "docid": "787f4919c96e50e97b70d69740d729e8", "score": "0.0", "text": "function combine_and_filter(trump_tweets, tsne_data_trump,) {\n //Modern Way: add tsne data to trump tweets\n //Copy TSNE's x, y & cluster id data into tweet data \n trump_tweets = trump_tweets.map((trump_tweet, index) => Object.assign(trump_tweet, tsne_data_trump[index]))\n \n //add an author property\n for(let tweet of trump_tweets){\n tweet.author = \"Trump\"\n }\n \n //Spread Syntax: tweets into one array\n let tweets = [...trump_tweets];\n \n //Filters\n tweets = tweets.filter(tweet => tweet.text.includes(search_word)) //Word Inclusion \n \n \n return tweets;\n }", "title": "" } ]
[ { "docid": "71b24e60777a9fb9d2a3ba1f85896f73", "score": "0.6209146", "text": "function Cluster(n, d, center, tempData) {\n // A cluster is a grouping of nodes\n this.nodes = [];\n // Set the diameter\n this.diameter = d; \n this.data = tempData;\n\n // Create the nodes\n for (let i = 0; i < n; i++) {\n // We can't put them right on top of each other\n this.nodes.push(new Node(center.add(Vec2D.randomVector()), this.data[i]));\n }\n // Connect all the nodes with a Spring\n for (var i = 0; i < this.nodes.length-1; i++) {\n for (var j = i+1; j < this.nodes.length; j++) {\n // A Spring needs two particles, a resting length, and a strength\n physics.addSpring(new VerletSpring2D(this.nodes[i], this.nodes[j], this.diameter, 0.03));\n //physics.addSpring(new VerletSpring2D(this.nodes[i], this.nodes[j], 400, 0.0009));\n }\n }\n\n this.display = function() {\n // Show all the nodes\n for (let i = 0; i < this.nodes.length; i++) {\n this.nodes[i].display();\n }\n }\n \n\n // Draw all the internal connections\n this.showConnections= function() {\n stroke(153, 204, 153);\n strokeWeight(1);\n for (let i = 0; i < this.nodes.length - 1; i++) {\n for (let j = i + 1; j < this.nodes.length; j++) {\n line(this.nodes[i].x, this.nodes[i].y, this.nodes[j].x, this.nodes[j].y);\n }\n }\n }\n}", "title": "" }, { "docid": "e0b0b2931bef9c8b6d18e919c6e37df8", "score": "0.5794262", "text": "function clustering(alpha) {\n nodes.forEach((d) => {\n const cluster = clearClusters.find(x=>x.cluster==d.cluster);\n if (cluster === d) return;\n let x = d.x - cluster.x;\n let y = d.y - cluster.y;\n let l = Math.sqrt((x * x) + (y * y));\n const r = d.r + cluster.r;\n\n if (l !== r) {\n l = ((l - r) / l) * alpha;\n d.x -= x *= l;//d.x=d.x-x*l\n d.y -= y *= l;\n cluster.x += x;\n cluster.y += y;\n }\n });\n }", "title": "" }, { "docid": "7a27e002f358408a0722578f60125c9d", "score": "0.57303876", "text": "function init_geo_cluster_node_server(next) {\n ZH.t('init_geo_cluster_node_server');\n init_geo_cluster_mesh(ZH.OnErrLog);\n ZVote.StartGeoLeaderHeartbeat();\n ZVote.StartGeoDataHeartbeat();\n ZVote.StartGeoCheck();\n next(null, null);\n}", "title": "" }, { "docid": "277fc7a51768f73a2682b22870df100f", "score": "0.5672718", "text": "function cluster() {\n var obj = {};\n var len = Object.keys(query).length;\n for(var i = 0; i < len; i++) {\n obj = query[i];\n if(obj.lat < latMin || obj.lat > latMax || obj.long < longMin || obj.long > longMax)\n continue;\n temp.push(new Point(obj.lat, obj.long, obj.depth, obj.time, obj.mag));\n }\n\n var centers = randomCenters(k);\n var oldLabels = [{dalkfnoienlkas: 'aosneflansel'}];\n var labels;\n var x = 0;\n\n // while(x !== 10) {\n while(!(JSON.stringify(oldLabels) === JSON.stringify(labels))) {\n if(x % 100 === 0 && x !== 0) {\n var y = 0;\n var log = \"\";\n for(var z = 0; z < labels.length; z++) {\n if(oldLabels[z] !== labels[z]) {\n y++;\n // log += \",\" + z;\n }\n }\n console.log(x + \": \" + y + \": \" + log);\n }\n x++;\n\n oldLabels = labels;\n\n labels = computeLabels(temp, centers);\n centers = newCenters(labels, centers, temp);\n\n if(x === 1000)\n break;\n }\n\n var count = {};\n labels.forEach(function(num) {\n if(count[num] === undefined) {\n count[num] = 1;\n } else\n count[num] += 1;\n });\n console.log(count);\n\n console.log(JSON.stringify(centers));\n var file = fs.createWriteStream((out === undefined ? 'public/array.csv' : out));\n file.on('error', function(err) { console.error(err);});\n file.write(\"time,lat,long,depth,mag,cluster\\n\");\n var l = 0;\n temp.forEach(function(v) {\n file.write(v.toString() + \",\" + labels[l] + \"\\n\");\n l++;\n });\n file.end();\n}", "title": "" }, { "docid": "a466932a4d4493887e070e13689824ba", "score": "0.5661216", "text": "_clusterStations() {\n // Cluster stations that are close enough together\n if (this._opts.stations.length > 1) {\n this._opts.stations = __WEBPACK_IMPORTED_MODULE_4__multiStation_multiStation_js__[\"a\" /* default */].clusterStations(\n this._opts.stations,\n 3\n );\n }\n\n // Update lookup\n const lookupStructure = this._opts.stations\n .map(station => {\n const label = station.getLabel();\n\n if (station instanceof __WEBPACK_IMPORTED_MODULE_4__multiStation_multiStation_js__[\"a\" /* default */]) {\n return station.getStations()\n .map(sub => ([ sub.getLabel(), label ]))\n .reduce((all, some) => [ ...all, ...some ], [ label, label ]);\n } else {\n return [ label, label ];\n }\n });\n\n this._clusterLookup = new Map(lookupStructure);\n }", "title": "" }, { "docid": "bc2bac4888be75843bac2821530518ab", "score": "0.56568104", "text": "function init_nodes() {\n var individuals_json = JSON.parse(\n loadJSON_001(inputPath + \"individuals.json\")\n );\n var workplace_json = JSON.parse(\n loadJSON_001(inputPath + \"workplaces.json\")\n );\n //console.log(individuals_json.length,individuals_json[0]);\n NUM_PEOPLE = individuals_json.length;\n NUM_WORKPLACES = workplace_json.length;\n //console.log(\"Num People\", NUM_PEOPLE, \"Num Workspaces\",NUM_WORKPLACES)\n if (SEEDING_MODE == RANDOM_SEEDING_WARDWISE) {\n COMMUNITY_INFECTION_PROB = compute_prob_infection_given_community(\n INIT_FRAC_INFECTED,\n SEED_WARD_FRACTION_UNIFORM\n );\n }\n //console.log(COMMUNITY_INFECTION_PROB)\n var nodes = [];\n var stream1 = new Random(1234);\n\n for (var i = 0; i < NUM_PEOPLE; i++) {\n //console.log(stream1.gamma(1,1))\n\n var node = {\n loc: [individuals_json[i][\"lat\"], individuals_json[i][\"lon\"]], // [lat, long]\n age: individuals_json[i][\"age\"],\n age_group: get_age_group(individuals_json[i][\"age\"]),\n zeta_a: 1,\n infectiousness: stream1.gamma(0.25, 4), // a.k.a. rho\n severity: Math.random() < 0.5 ? 1 : 0, // a.k.a. S_k\n home: individuals_json[i][\"household\"],\n workplace:\n individuals_json[i][\"workplaceType\"] == 1\n ? individuals_json[i][\"workplace\"]\n : individuals_json[i][\"school\"],\n community: individuals_json[i][\"wardNo\"] - 1, //minus one is temporary as the ward number indexing starts from 1,\n time_of_infection: 0,\n infection_status: 0, //\n infective: 0,\n lambda_h: 0, //individuals contribution to his home cluster\n lambda_w: 0, //individuals contribution to his workplace cluster\n lambda_c: 0, //individuals contribution to his community\n lambda_pt: 0, //individuals contribution to his public transport\n lambda: 0,\n kappa_T: 1,\n psi_T: 0,\n public_transport:\n Math.random() < PUBLIC_TRANSPORT_FRACTION ? 0 : null,\n funct_d_ck: f_kernel(\n individuals_json[i][\"CommunityCentreDistance\"]\n ), // TODO: need to use the kernel function. function of distance from community...f_kernel\n dist_hw: 1,\n workplace_type: individuals_json[i][\"workplaceType\"], //either school or office\n lambda_incoming: [0, 0, 0, 0], //infectiousness from home, workplace, community as seen by individual\n compliant: 1,\n kappa_H: 1,\n kappa_W: 1,\n kappa_C: 1,\n kappa_PT: 1,\n incubation_period: stream1.gamma(\n INCUBATION_PERIOD_SHAPE,\n INCUBATION_PERIOD_SCALE\n ),\n asymptomatic_period: stream1.gamma(1, ASYMPTOMATIC_PERIOD),\n symptomatic_period: stream1.gamma(1, SYMPTOMATIC_PERIOD),\n hospital_regular_period: HOSPITAL_REGULAR_PERIOD,\n hospital_critical_period: HOSPITAL_CRITICAL_PERIOD,\n kappa_H_incoming: 1,\n kappa_W_incoming: 1,\n kappa_C_incoming: 1,\n kappa_PT_incoming: 1,\n quarantined: false,\n };\n\n //Correct initialisation for individuals not associated to workplace or school\n if (node[\"workplace_type\"] == WTYPE_HOME) {\n node[\"workplace\"] = null;\n node[\"public_transport\"] = null;\n }\n if (node[\"workplace\"] == null) {\n //A safety check in case workplace is null but workplace type is not home.\n node[\"workplace_type\"] = WTYPE_HOME;\n node[\"public_transport\"] = null;\n }\n\n //Set infective status, set the time of infection, and other age-related factors\n node[\"infective\"] = node[\"infection_status\"] == PRE_SYMPTOMATIC ? 1 : 0; //initialise all infected individuals as infective\n node[\"time_of_infection\"] =\n node[\"infection_status\"] == EXPOSED\n ? -node[\"incubation_period\"] * Math.random()\n : 0;\n node[\"zeta_a\"] = zeta(node[\"age\"]);\n\n if (SEEDING_MODE == SEED_FROM_INDIVIDUALS_JSON) {\n node[\"infection_status\"] = individuals_json[i][\"infection_status\"];\n node[\"time_of_infection\"] =\n node[\"infection_status\"] == EXPOSED\n ? individuals_json[i][\"time_of_infection\"] *\n SIM_STEPS_PER_DAY -\n node[\"incubation_period\"]\n : 0;\n } else if (SEEDING_MODE == RANDOM_SEEDING_WARDWISE) {\n node[\"infection_status\"] =\n Math.random() <\n COMMUNITY_INFECTION_PROB[individuals_json[i][\"wardNo\"] - 1]\n ? 1\n : 0;\n }\n nodes.push(node);\n }\n return nodes;\n}", "title": "" }, { "docid": "82c81be27cea848e11ada45dcd37ea42", "score": "0.562811", "text": "function UpdateDataTSNE(data) {\n data.forEach(function (d, i) {\n dataset[i].x = d[0]; // Add the t-SNE x result to the dataset\n dataset[i].y = d[1]; // Add the t-SNE y result to the dataset\n });\n}", "title": "" }, { "docid": "4885c7b8be662d6968e67a9fb821d223", "score": "0.5614423", "text": "function evalClusterNodeDesignation(primary) {\n\t\t\n\tvar value = primary.substring(13, 14).toUpperCase();\n\t\t\n\tappendPrimaryNoSpace(value);\n\tsetTextInElement(\"cluster_node\", '-', value);\n\t\n}", "title": "" }, { "docid": "c8afa491c0fa1cbcad7b714ff36647f5", "score": "0.5578558", "text": "function clustering(alpha) {\n nodes.forEach((d) => {\n const cluster = clusters[d.cluster];\n if (cluster === d) return;\n let x = d.x - cluster.x;\n let y = d.y - cluster.y;\n let l = Math.sqrt((x * x) + (y * y));\n const r = d.r + cluster.r;\n if (l !== r) {\n l = ((l - r) / l) * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n cluster.x += x;\n cluster.y += y;\n }\n });\n }", "title": "" }, { "docid": "c8afa491c0fa1cbcad7b714ff36647f5", "score": "0.5578558", "text": "function clustering(alpha) {\n nodes.forEach((d) => {\n const cluster = clusters[d.cluster];\n if (cluster === d) return;\n let x = d.x - cluster.x;\n let y = d.y - cluster.y;\n let l = Math.sqrt((x * x) + (y * y));\n const r = d.r + cluster.r;\n if (l !== r) {\n l = ((l - r) / l) * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n cluster.x += x;\n cluster.y += y;\n }\n });\n }", "title": "" }, { "docid": "4b62c9c86eb07371a784bc9c22de0ea1", "score": "0.5556822", "text": "function initialize_cluster_node_table(plugin, collections, next) {\n ZVote.FetchClusterStatus(plugin, collections, function(gerr, cstat) {\n if (gerr) next(gerr, null);\n else {\n exports.ClusterNodes = [];\n for (var cuuid in cstat) {\n var cts = cstat[cuuid].ts * 1000;\n var stale = (ZVote.NodeStart * 1000) - cts;\n if (stale < ZVote.ClusterNodeMaximumAllowedStaleness) {\n exports.ClusterNodes.push(cstat[cuuid].node);\n }\n }\n exports.ClusterNodes.sort(cmp_device_uuid);\n // NOTE ClusterNodes[] computed from ZS.ClusterNodeAliveStatus\n plugin.do_get(collections.global_coll, ZS.ClusterState,\n function(gerr, gres) {\n if (gerr) next(gerr, null);\n else {\n if (gres.length !== 0) {\n var state = gres[0];\n ZH.ClusterNetworkPartitionMode = state.cluster_network_partition;\n ZH.l('initialize_cluster_node_table: ClusterNetworkPartition: ' +\n ZH.ClusterNetworkPartitionMode);\n var lcnodes = state.cluster_nodes;\n var am_in_cluster = false;\n for (var i = 0; i < lcnodes.length; i++) {\n if (lcnodes[i].device_uuid === ZH.MyUUID) {\n am_in_cluster = true;\n break;\n }\n }\n var votes_still_alive = true;\n for (var i = 0; i < lcnodes.length; i++) {\n var cuuid = lcnodes[i].device_uuid;\n if (!cstat[cuuid]) {\n ZH.l('IN VOTE, BUT DEAD: DU: ' + cuuid);\n votes_still_alive = false;\n break;\n }\n }\n ZH.YetToClusterVote = !am_in_cluster || !votes_still_alive;\n }\n var vkey = ZS.LastVoteTermNumber;\n plugin.do_get_field(collections.global_coll, vkey, ZH.MyUUID,\n function(gerr, cterm) {\n if (gerr) next(gerr, hres);\n else {\n if (!cterm) cterm = 0;\n ZVote.TermNumber = cterm + 1; // ADD ONE to avoid repeat votes\n ZH.l('initialize_cluster_node_table:' + \n ' TermNumber: ' + ZVote.TermNumber);\n // NOTE: ALWAYS CLUSTER-VOTE ON RESTART\n ZH.l('CLUSTER: #C: ' + exports.ClusterNodes.length);\n ZVote.ClusterVoteCompleted = false;\n exports.ForceVote = true;\n next(null, null);\n }\n });\n }\n });\n }\n });\n}", "title": "" }, { "docid": "add44b1886ccb0ba925c76f5cf5be881", "score": "0.55061716", "text": "function clustering(alpha) {\n\t nodes.forEach(function(d) {\n\t var cluster = clusters[d.clusterVal];\n\t if (cluster === d) return;\n\t var x = d.x - cluster.x,\n\t y = d.y - cluster.y,\n\t l = Math.sqrt(x * x + y * y),\n\t r = radiusScale( d.r ) + radiusScale( cluster.r );\n\t if (l !== r) {\n\t l = (l - r) / l * alpha;\n\t d.x -= x *= l;\n\t d.y -= y *= l;\n\t cluster.x += x;\n\t cluster.y += y;\n\t }\n\t });\n\t}", "title": "" }, { "docid": "2aa214002e01eb31d5b1197529b64e65", "score": "0.5489712", "text": "function init_geo_cluster_mesh(next) {\n ZH.t('init_geo_cluster_mesh: #GN: ' + exports.GeoNodes.length +\n ' #KGN: ' + exports.KnownGeoNodes.length);\n init_geo_nodes(function(ierr, ires) {\n if (ierr) next(ierr, null);\n else {\n if (ZH.AmClusterLeader) init_geo_leader_nodes(next);\n else kill_geo_leader_nodes(next);\n }\n });\n}", "title": "" }, { "docid": "d33a393a1fd62b1210b44238aa71a76b", "score": "0.54848886", "text": "function network(data, prev, groups, index, expand) {\n expand = expand || {};\n var gm = {}, // group map\n gn = {}, // previous group nodes\n gc = {}, // previous group centroids\n nodes = [], // output nodes\n links = []; // output links\n\n // process previous nodes for reuse or centroid calculation\n // TODO: Refactor it\n if (prev) {\n prev.nodes.forEach(function (n) {\n var i = index(n);\n if (n.size > 0) {\n gn[i] = n;\n //n.size = 0;\n }\n else {\n var o = gc[i] || (gc[i] = {x: 0, y: 0, count: 0});\n o.x += n.x;\n o.y += n.y;\n o.count += 1;\n }\n });\n }\n//console.log(gn);\n // determine nodes\n for (var k = 0; k < data.nodes.length; k++) {\n var n = data.nodes[k],\n i = index(n),\n l = gm[i] || (gm[i] = gn[i]) || (gm[i] = findNode(data.nodes, n.name));\n if (expand[i] && !n.object) {\n nodes.push(n);\n // TODO: Refactor it\n if (gn[i]) {\n // place new nodes at cluster location (plus jitter)\n n.x = gn[i].x + Math.random();\n n.y = gn[i].y + Math.random();\n }\n }\n else if (!expand[i] && n.object) {\n nodes.push(n);\n // TODO: Refactor it\n if (gc[i]) {\n n.x = gc[i].x / gc[i].count;\n n.y = gc[i].y / gc[i].count;\n }\n }\n }\n\n for (i in gm) { gm[i].link_count = 0; }\n\n // determine links\n for (k = 0; k < data.links.length; k++) {\n var e = data.links[k],\n s = typeof e.source === 'object' ? e.source : findNode(data.nodes, e.source),\n t = typeof e.target === 'object' ? e.target : findNode(data.nodes, e.target),\n u = index(s),\n v = index(t);\n\n // TODO: Refactor it\n if (u != v) {\n gm[u].link_count++;\n gm[v].link_count++;\n }\n\n if (tryFindNode(nodes, typeof e.source === 'object' ? e.source.name : e.source) &&\n tryFindNode(nodes, typeof e.target === 'object' ? e.target.name : e.target)) {\n //e.size += 1;\n links.push(e);\n }\n }\n //console.log(links);\n\n return {nodes: nodes, links: links};\n}", "title": "" }, { "docid": "79784b616144225760a67e3b0b0c2e90", "score": "0.5450402", "text": "function addCluster(e, type){\n console.log(\"Clustering test\");\n var self = this;\n var cluster = new Cluster();\n cluster.absorb({items:items, links:links, nodes:nodes, relations:relations}, [{uniqueId : \"0001FYPA38\"}, {uniqueId : \"0001G18O65\"}]);\n items[cluster.uniqueId] = cluster;\n digest();\n }", "title": "" }, { "docid": "a25b437a55b57f7fd4d93774649fc183", "score": "0.54284763", "text": "function createClusterer(raw){\n var internalClusterer = new InternalClusterer($this, map, raw.radius, raw.maxZoom),\n todo = {},\n styles = {}, \n isInt = /^[0-9]+$/,\n calculator,\n k;\n\n for(k in raw){\n if (isInt.test(k)){\n styles[k] = raw[k];\n styles[k].width = styles[k].width || 0;\n styles[k].height = styles[k].height || 0;\n } else {\n todo[k] = raw[k];\n }\n }\n \n // external calculator\n if (todo.calculator){\n calculator = function(indexes){\n var data = [];\n $.each(indexes, function(i, index){\n data.push(internalClusterer.value(index));\n });\n return todo.calculator.apply($this, [data]);\n };\n } else {\n calculator = function(indexes){\n return indexes.length;\n };\n }\n \n // set error function\n internalClusterer.error(function(){\n error.apply(that, arguments);\n });\n \n // set display function\n internalClusterer.display(function(cluster){\n var k, style, n = 0, atodo, obj, offset,\n cnt = calculator(cluster.indexes);\n \n // look for the style to use\n if (cnt > 1){\n for(k in styles){\n k = 1 * k; // cast to int\n if (k > n && k <= cnt){\n n = k;\n }\n }\n style = styles[n];\n }\n \n if (style){\n offset = style.offset || [-style.width/2, -style.height/2];\n // create a custom overlay command\n // nb: 2 extends are faster that a deeper extend\n atodo = $.extend({}, todo);\n atodo.options = $.extend({\n pane: \"overlayLayer\",\n content:style.content ? style.content.replace(\"CLUSTER_COUNT\", cnt) : \"\",\n offset:{\n x: (\"x\" in offset ? offset.x : offset[0]) || 0,\n y: (\"y\" in offset ? offset.y : offset[1]) || 0\n }\n },\n todo.options || {});\n \n obj = that.overlay({todo:atodo, opts:atodo.options, latLng:toLatLng(cluster)}, true);\n \n atodo.options.pane = \"floatShadow\";\n atodo.options.content = $(document.createElement(\"div\")).width(style.width+\"px\").height(style.height+\"px\");\n shadow = that.overlay({todo:atodo, opts:atodo.options, latLng:toLatLng(cluster)}, true);\n \n // store data to the clusterer\n todo.data = {\n latLng: toLatLng(cluster),\n markers:[]\n };\n $.each(cluster.indexes, function(i, index){\n todo.data.markers.push(internalClusterer.value(index));\n if (internalClusterer.marker(index)){\n internalClusterer.marker(index).setMap(null);\n }\n });\n attachEvents($this, {todo:todo}, shadow, undef, {main:obj, shadow:shadow});\n internalClusterer.store(cluster, obj, shadow);\n } else {\n $.each(cluster.indexes, function(i, index){\n if (internalClusterer.marker(index)){\n internalClusterer.marker(index).setMap(map);\n } else {\n var todo = internalClusterer.todo(index),\n marker = new defaults.classes.Marker(todo.options);\n internalClusterer.setMarker(index, marker);\n attachEvents($this, {todo:todo}, marker, todo.id);\n }\n });\n }\n });\n \n return internalClusterer;\n }", "title": "" }, { "docid": "635321d3eaea9079e2126be42244a546", "score": "0.54255724", "text": "function cluster() {\n document.getElementById(\"demo-status\").innerHTML = \"\";\n\n // Algorithm input\n var numTopics = document.getElementById(\"numClusters\").value;\n var algorithmInput = [dataPoints, numTopics];\n document.getElementById(\"cluster-in\").innerHTML = \"<pre>\" + JSON.stringify(algorithmInput, null, 2) + \"</pre>\";\n\n // Query Algorithmia /kenny/WekaCluster\n client.algo(\"/kenny/WekaCluster\").pipe(algorithmInput).then(function(result) {\n // Print debug output\n if(result.error) {\n document.getElementById(\"cluster-out\").innerHTML = '<div class=\"text-danger\">' + (result.error.message || result.error) + '</div>';\n document.getElementById(\"demo-status\").innerHTML = '<span class=\"text-danger\">' + (result.error.message || result.error) + '</span>';\n return;\n }\n algorithmOutput = result.result;\n document.getElementById(\"cluster-out\").innerHTML = \"<pre>\" + JSON.stringify(algorithmOutput, null, 2) + \"</pre>\";\n // Save result\n dataPoints = algorithmOutput;\n // Update visualization\n updateD3();\n });\n}", "title": "" }, { "docid": "7a6fbb95921221d39e1e548de612fed0", "score": "0.5406403", "text": "function create_nodes(data,node_counter) {\n\t\t\t\t\tvar i = cs.indexOf(data[node_counter].cluster),\n\t\t\t\t\t\tr = Math.sqrt((i + 1) / m * -Math.log(Math.random())) * maxRadius,\n\t\t\t\t\t\td = {\n\t\t\t\t\t\t\tcluster: i,\n\t\t\t\t\t\t\tclusterName: data[node_counter].cluster,\n\t\t\t\t\t\t\tradius: bubbleRadius(data[node_counter].perc_freq),\n\t\t\t\t\t\t\tcountry: data[node_counter].country,\n\t\t\t\t\t\t\ttheme: data[node_counter].theme,\n\t\t\t\t\t\t\ttext: data[node_counter].word,\n\t\t\t\t\t\t\tfrequency: data[node_counter].frequency,\n\t\t\t\t\t\t\tx: groups[data[node_counter].cluster].x + Math.random(),\n\t\t\t\t\t\t\ty: groups[data[node_counter].cluster].y + Math.random(),\n\t\t\t\t\t\t};\n\t\t\t\t\tif (!clusters[i] || (r > clusters[i].radius)) clusters[i] = d;\n\t\t\t\t\treturn d;\n\t\t\t\t}", "title": "" }, { "docid": "469705ed7c268608c985439a5d211f41", "score": "0.537847", "text": "createNetwork(){\n const _this = this;\n const nodes = [];\n const edges = [];\n\n /** If there are no clustered nodes, then do not use hierarchical mode\n * Maybe later on just give a boolean hierarchical option in the template CRD\n */\n if(!this.props.template.spec.group.cluster){\n delete this.state.options.layout.hierarchical;\n }\n\n /** Create nodes and edges from CR using paths from template CR */\n this.props.custom_resources.forEach(item => {\n let level = 0;\n\n /** Check if the graph needs to be clustered */\n if(this.props.template.spec.group.cluster){\n /** if there is a clustered type of node, then put them first in the hierarchy */\n if(this.props.template.spec.group.cluster !== this.utils.index(item.spec, this.props.template.spec.group.type))\n level = 1;\n }\n\n nodes.push({\n id: item.metadata.name,\n label: this.utils.index(item.spec, this.props.template.spec.node),\n shape: \"circularImage\",\n image: image,\n group: this.utils.index(item.spec, this.props.template.spec.group.type),\n level: level\n });\n if(this.props.template.spec.neighbors){\n let neighbors = this.utils.index(item.spec, this.props.template.spec.neighbors);\n if(neighbors) {\n for(let k in neighbors){\n edges.push({\n from: item.metadata.name,\n to: k\n })\n }\n }\n }\n });\n\n const graph = {\n nodes: nodes,\n edges: edges\n }\n\n if(this.props.template.spec.group.cluster && this.state.network && this.state.isClustered) {\n this.state.network.setData(graph);\n let clusterOptionsByData = {\n joinCondition: function(childOptions) {\n return childOptions.group === _this.props.template.spec.group.cluster;\n },\n clusterNodeProperties: {\n id: 'cluster/' + _this.props.template.spec.group.cluster,\n borderWidth: 3,\n label: 'cluster/' + _this.props.template.spec.group.cluster,\n shape: \"circularImage\",\n image: image,\n level: 0\n }\n };\n this.state.network.cluster(clusterOptionsByData);\n }\n\n this.setState({graph: graph});\n\n if(this.state.network)\n this.state.network.fit({\n animation: true\n });\n }", "title": "" }, { "docid": "89bb6157bbf654c3ff2104ccefcdd898", "score": "0.5372538", "text": "function topic_clustering1(){\n\n dbscan_state.eps = sliders.topic/100;\n dbscan_state.mode = \"topic\"\n // clone logs\n var temp_json = []\n var temp_json = JSON.parse(JSON.stringify(full_jsondata));\n var data = []\n var time_tpoic = [0,0,0,0,0,0,0];\n var topic_last = [0,0,0,0,0,0,0];\n var time_dis = 0\n\n // console.log(time_weight,topic_weight)\n\n temp_json.forEach(function(d,i){\n\n time_dis = d.Time/(10*sliders.time);// - time_tpoic[d.topic];\n\n data.push({\"value\": d.value, topic: d.topic, distance: time_dis, cluster: 0}) // itr_index: index_counter (1/topic_num)\n\n // console.log(time_tpoic, (d.Time - time_tpoic[d.topic])); //, this_distance // \n time_tpoic[d.topic] = d.Time;\n topic_last[d.topic] = d.Time;\n\n\n });\n interaction_clustering(data,1) // 1: nominal\n\n}", "title": "" }, { "docid": "cea4e6d9e2c300063aa828f1c6444b95", "score": "0.5363646", "text": "function cluster(toText) {\n var toText = toText || function(x) { return x; }\n var distance = levenshtein();\n var linkage = \"simple\"; // simple, complete or average\n \n // cluster a collection of items\n return function hcluster(vectors) {\n var n = vectors.length,\n dMin = [],\n cSize = [],\n distMatrix = [],\n clusters = [],\n c1,\n c2,\n c1Cluster,\n c2Cluster,\n p,\n root,\n i,\n j;\n\n // Initialise distance matrix and vector of closest clusters.\n i = -1; while (++i < n) {\n dMin[i] = 0;\n distMatrix[i] = [];\n j = -1; while (++j < n) {\n distMatrix[i][j] = i === j ? Infinity : distance(toText(vectors[i]), toText(vectors[j]));\n if (distMatrix[i][dMin[i]] > distMatrix[i][j]) dMin[i] = j;\n }\n }\n\n // create leaves of the tree\n i = -1; while (++i < n) {\n clusters[i] = [];\n clusters[i][0] = {\n left: null,\n right: null,\n dist: 0,\n label: toText(vectors[i]),\n item: vectors[i],\n size: 1,\n depth: 0\n };\n cSize[i] = 1;\n }\n\n // Main loop\n for (p = 0; p < n-1; p++) {\n // find the closest pair of clusters\n c1 = 0;\n for (i = 0; i < n; i++) {\n if (distMatrix[i][dMin[i]] < distMatrix[c1][dMin[c1]]) c1 = i;\n }\n c2 = dMin[c1];\n\n // create node to store cluster info \n c1Cluster = clusters[c1][0];\n c2Cluster = clusters[c2][0];\n\n var newCluster = {\n left: c1Cluster,\n right: c2Cluster,\n dist: distMatrix[c1][c2],\n label: c1Cluster.size > c2Cluster.size ? c1Cluster.label : c2Cluster.label,\n size: c1Cluster.size + c2Cluster.size,\n depth: 1 + Math.max(c1Cluster.depth, c2Cluster.depth)\n };\n clusters[c1].splice(0, 0, newCluster);\n cSize[c1] += cSize[c2];\n\n // overwrite row c1 with respect to the linkage type\n for (j = 0; j < n; j++) {\n switch (linkage) {\n case \"single\":\n if (distMatrix[c1][j] > distMatrix[c2][j])\n distMatrix[j][c1] = distMatrix[c1][j] = distMatrix[c2][j];\n break;\n case \"complete\":\n if (distMatrix[c1][j] < distMatrix[c2][j])\n distMatrix[j][c1] = distMatrix[c1][j] = distMatrix[c2][j];\n break;\n case \"average\":\n distMatrix[j][c1] = distMatrix[c1][j] = (cSize[c1] * distMatrix[c1][j] + cSize[c2] * distMatrix[c2][j]) / (cSize[c1] + cSize[j]);\n break;\n }\n }\n distMatrix[c1][c1] = Infinity;\n\n // infinity ­out old row c2 and column c2\n for (i = 0; i < n; i++)\n distMatrix[i][c2] = distMatrix[c2][i] = Infinity;\n\n // update dmin and replace ones that previous pointed to c2 to point to c1\n for (j = 0; j < n; j++) {\n if (dMin[j] == c2) dMin[j] = c1;\n if (distMatrix[c1][j] < distMatrix[c1][dMin[c1]]) dMin[c1] = j;\n }\n\n // keep track of the last added cluster\n root = newCluster;\n }\n\n return root;\n }\n}", "title": "" }, { "docid": "b42839988e32167db1ae46ebb379637d", "score": "0.5362181", "text": "layoutNetwork() {\n if (this.options.hierarchical.enabled !== true && this.options.improvedLayout === true) {\n // first check if we should Kamada Kawai to layout. The threshold is if less than half of the visible\n // nodes have predefined positions we use this.\n let positionDefined = 0;\n for (let i = 0; i < this.body.nodeIndices.length; i++) {\n let node = this.body.nodes[this.body.nodeIndices[i]];\n if (node.predefinedPosition === true) {\n positionDefined += 1;\n }\n }\n\n // if less than half of the nodes have a predefined position we continue\n if (positionDefined < 0.5 * this.body.nodeIndices.length) {\n let MAX_LEVELS = 10;\n let level = 0;\n let clusterThreshold = 100;\n // if there are a lot of nodes, we cluster before we run the algorithm.\n if (this.body.nodeIndices.length > clusterThreshold) {\n let startLength = this.body.nodeIndices.length;\n while (this.body.nodeIndices.length > clusterThreshold) {\n //console.time(\"clustering\")\n level += 1;\n let before = this.body.nodeIndices.length;\n // if there are many nodes we do a hubsize cluster\n if (level % 3 === 0) {\n this.body.modules.clustering.clusterBridges();\n }\n else {\n this.body.modules.clustering.clusterOutliers();\n }\n let after = this.body.nodeIndices.length;\n if ((before == after && level % 3 !== 0) || level > MAX_LEVELS) {\n this._declusterAll();\n this.body.emitter.emit(\"_layoutFailed\");\n console.info(\"This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.\");\n return;\n }\n //console.timeEnd(\"clustering\")\n //console.log(level,after)\n }\n // increase the size of the edges\n this.body.modules.kamadaKawai.setOptions({springLength: Math.max(150, 2 * startLength)})\n }\n\n // position the system for these nodes and edges\n this.body.modules.kamadaKawai.solve(this.body.nodeIndices, this.body.edgeIndices, true);\n\n // shift to center point\n this._shiftToCenter();\n\n // perturb the nodes a little bit to force the physics to kick in\n let offset = 70;\n for (let i = 0; i < this.body.nodeIndices.length; i++) {\n this.body.nodes[this.body.nodeIndices[i]].x += (0.5 - this.seededRandom())*offset;\n this.body.nodes[this.body.nodeIndices[i]].y += (0.5 - this.seededRandom())*offset;\n }\n\n // uncluster all clusters\n this._declusterAll();\n\n // reposition all bezier nodes.\n this.body.emitter.emit(\"_repositionBezierNodes\");\n }\n }\n }", "title": "" }, { "docid": "f82ff2cfdcfc31aa9c8a75b3de8e2dfe", "score": "0.5345717", "text": "set_nodes(group) {\n let self = this;\n\n // school mode\n if (group == 'school') {\n self.nodes.forEach(function(d) {\n d.cluster = [0,0];\n d.color = 11/12;\n });\n self.label = 'All Schools'\n } else if (group == 'school_type') {\n self.nodes.forEach(function(d) {\n d.cluster = [0, d.data.type == 'PUBLIC' ? 0 : 1];\n d.color = d.data.type == 'PUBLIC' ? 0.2 : 0.7;\n });\n self.labels = ['Public', 'Private'];\n } else if (group == 'tuition') {\n \n }\n\n // student mode\n if (group == 'both') {\n self.nodes.forEach(function(d) {\n d.cluster = [d.data[0],d.data[1]];\n d.color = (d.data[0]+1)*(d.data[1]+1)/12;\n });\n self.labels = [['Black','Asian','Hispanic','Native-American','White','Other'],['Male','Female']];\n } else if (group == 'gender') {\n self.nodes.forEach(function(d) {\n d.cluster = [d.data[0],0];\n d.color = d.data[0]/2;\n });\n self.labels = ['Male','Female'];\n } else if (group == 'ethnicity') {\n self.nodes.forEach(function(d) {\n d.cluster = [0,d.data[1]];\n d.color = d.data[1]/6;\n });\n self.labels = ['Black','Asian','Hispanic','Native-American','White','Other'];\n }\n }", "title": "" }, { "docid": "2d138bd8d2a3389fd02787fa4be9362e", "score": "0.53239423", "text": "function twoClustersData(n, dim) {\n dim = dim || 50;\n var points = [];\n for (var i = 0; i < n; i++) {\n points.push(new Point(normalVector(dim), '#039'));\n var v = normalVector(dim);\n v[0] += 10;\n points.push(new Point(v, '#f90'));\n }\n return points;\n}", "title": "" }, { "docid": "a4383ce842164d04be3fb205462919d5", "score": "0.53078634", "text": "create_nodes(data, cluster_counter, node_counter) {\n let vis = this;\n\n let i = cluster_counter,\n d = {\n id: cluster_counter + '-' + node_counter,\n cluster: i,\n radius: data[node_counter][1].length,\n data: {block: data[node_counter][0], numCrimes: data[node_counter][1].length},\n x: Math.cos(2 * Math.PI) + (vis.width / 5 / 2)*(i+1) - Math.random(),\n y: Math.sin(2 * Math.PI) + vis.height / 2 + Math.random(),\n };\n return d;\n }", "title": "" }, { "docid": "65065a14f9becfe261301e4428f38657", "score": "0.52913904", "text": "function MCIS() {\n var n0 = [];\n sigma.instances(0).graph.nodes().forEach( n => {\n n0.push(n.id)\n });\n var e0 = [];\n sigma.instances(0).graph.edges().forEach(e => {\n e0.push([e.source, e.target])\n });\n\n var n1 = [];\n sigma.instances(1).graph.nodes().forEach(n => {\n n1.push(n.id)\n });\n var e1 = [];\n sigma.instances(1).graph.edges().forEach(e => {\n e1.push([e.source, e.target])\n });\n\n var g0 = new jsnx.Graph();\n g0.addNodesFrom(n0);\n g0.addEdgesFrom(e0);\n console.log(g0);\n\n var g1 = new jsnx.Graph();\n g1.addNodesFrom(n1);\n g1.addEdgesFrom(e1);\n console.log(g1);\n\n var common_nodes = n0.filter(value => n1.includes(value));\n var all_possible = common_nodes.flatMap(\n (v, i) => common_nodes.slice(i + 1).map(w => [v, w])\n );\n\n selected_edges = [];\n for (let i = 0; i < all_possible.length; i++) {\n var b0 = g0.hasEdge(all_possible[i][0], all_possible[i][1]);\n var b1 = g1.hasEdge(all_possible[i][0], all_possible[i][1]);\n (b0 && b1) || (!b0 && !b1) ? selected_edges.push(all_possible[i]) : false; \n }\n\n var G = new jsnx.Graph();\n G.addNodesFrom(common_nodes);\n G.addEdgesFrom(selected_edges);\n cliques = new jsnx.findCliques(G);\n cliques_list = [];\n lengths = [];\n for (let value of cliques) {\n cliques_list.push(value);\n lengths.push(value.length);\n }\n\n console.log(lengths);\n \n var maxclique = cliques_list[cliques_list.reduce((p, c, i, a) => a[p].length > c.length ? p : i, 0)];\n console.log(maxclique);\n \n\n sigma.instances(0).graph.nodes().forEach(n => {\n n.originalColor = n.color;\n n.color = maxclique.includes(n.id) ? n.color : \"#eee\"; \n });\n sigma.instances(1).graph.nodes().forEach(n => {\n n.originalColor = n.color;\n n.color = maxclique.includes(n.id) ? n.color : \"#eee\";\n });\n\n sigma.instances(0).graph.edges().forEach(e => {\n if (maxclique.includes(e.source) && maxclique.includes(e.target)) {\n e.originalColor = e.color;\n } else {\n e.originalColor = e.color;\n e.color = \"#eee\"\n }\n })\n\n sigma.instances(1).graph.edges().forEach(e => {\n if (maxclique.includes(e.source) && maxclique.includes(e.target)) {\n e.originalColor = e.color;\n } else {\n e.originalColor = e.color;\n e.color = \"#eee\"\n }\n })\n\n $('#MaxClique').text(\"MaxClique node IDs: \" + maxclique.join(', '));\n\n sigma.instances(0).refresh();\n sigma.instances(1).refresh();\n\n}", "title": "" }, { "docid": "7ecb4affc79fea1aa0b68477a2aacc26", "score": "0.528739", "text": "function forceCluster() {\n\t\t\t\t\tconst strength = .01;\n\t\t\t\t\tlet nodes;\n\t\t\t\t\tfunction force(alpha) {\n\t\t\t\t\tconst l = alpha * strength;\n\t\t\t\t\tfor (const d of nodes) {\n\t\t\t\t\t\td.vx -= (d.x - groups[d.clusterName].x) * l;\n\t\t\t\t\t\td.vy -= (d.y - groups[d.clusterName].y) * l;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tforce.initialize = _ => nodes = _;\n\t\t\t\t\n\t\t\t\t\treturn force;\n\t\t\t\t}", "title": "" }, { "docid": "cbd166952ad3ec18a1ad36ecbfed8b99", "score": "0.52838516", "text": "function createCluster(cluster) {\n return {\n \"id\": 0x1f43b675,\n \"data\": [\n {\n \"id\": 0xe7, // Timecode\n \"data\": Math.round(cluster.timecode)\n }\n ]\n };\n }", "title": "" }, { "docid": "66f520c9ecd9cbca126fc79954157f1c", "score": "0.5263255", "text": "function TSNEDraw_Scatterplot(tsne_data) {\n UpdateDataTSNE(tsne_data); // Update our data with the given t-SNE data\n Draw_Scatterplot(dataset); // Draw the scatterplot with the updated data\n}", "title": "" }, { "docid": "4033248eb26bbdd584685b6f35d600dc", "score": "0.5255946", "text": "static Ne(t, e, n, s) {\n const i = [];\n return e.forEach((t => {\n i.push({\n type: 0 /* Added */ ,\n doc: t\n });\n })), new pn(t, e, gn.ye(e), i, n, s, \n /* syncStateChanged= */ !0, \n /* excludesMetadataChanges= */ !1);\n }", "title": "" }, { "docid": "3c1400b2c1f01961f3880b3c0330ddb0", "score": "0.5254029", "text": "function findCluster(tx, ty, matchtype, reset, skipremoved) {\n // Reset the processed flags\n if (reset) {\n resetProcessed();\n }\n \n // Get the target tile. Tile coord must be valid.\n var targettile = level.tiles[tx][ty];\n \n // Initialize the toprocess array with the specified tile\n var toprocess = [targettile];\n targettile.processed = true;\n var foundcluster = [];\n\n while (toprocess.length > 0) {\n // Pop the last element from the array\n var currenttile = toprocess.pop();\n \n // Skip processed and empty tiles\n if (currenttile.type == -1) {\n continue;\n }\n \n // Skip tiles with the removed flag\n if (skipremoved && currenttile.removed) {\n continue;\n }\n \n // Check if current tile has the right type, if matchtype is true\n if (!matchtype || (currenttile.type == targettile.type) || specialShot > 0 && specialShot <= 12) {\n // Add current tile to the cluster\n\t\t\t\t\tfoundcluster.push(currenttile);\n\t\t\t\t\t //auto increment and display if from special\n \t\tif (specialShot >= 1){ \n\t\t\t\t\tspecialShot = specialShot += 1;\n\t\t\t\t\tfromSpecial = true;\n\t\t\t\t\tif(specialShot2 == 0){\n\t\t\t\t\tdocument.getElementById(\"icyBlast\").style.display = 'block';\n\t\t\t\t\tdocument.getElementById(\"icyBlastBack\").style.display = 'block';}\n\t\t\t\t\tif(specialShot2 == 1){ \n\t\t\t\t\tdocument.getElementById(\"lightningFullBack\").style.display = 'block';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"awesome\").style.display = 'none';\n\t\t\t\t\tspecialActive = specialActive += 1;\n\t\t\t\t\t var sndI = new Audio(\"Sounds/freezeSnd.mp3\"); // buffers automatically when created\n\t\t\t\t\t\t\tsndI.volume = 1.0;\n\t\t\t\t\t\t\tsndI.play();\n\t\t\t\t\twindow.setTimeout(hideBonus, 2000);\n\t\t\t\t\t};\n\t\t\t\t\tif(specialShot >= 7 && specialShot <= 9 && specialShot2 == 0) {specialShot = 0; fromSpecial = false;};\n\t\t\t\t\tif(specialShot >= 11 && specialShot2 == 1) {specialShot = 0; fromSpecial = false; specialShot2 = 0};\n // Get the neighbors of the current tile\n\t\t\t\t\n\t\t var neighbors = getNeighbors(currenttile);\n\t\t\t\t\n\t\t\t\t\t\n // Check the type of each neighbor\n for (var i=0; i<neighbors.length; i++) {\n if (!neighbors[i].processed) {\n // Add the neighbor to the toprocess array\n toprocess.push(neighbors[i]);\n neighbors[i].processed = true;\n }\n\t\t\t\t\t\n }\n\t\t\t\t\n }\n }\n \n // Return the found cluster\n return foundcluster;\n }", "title": "" }, { "docid": "37ec2d9420a2c9f0abff79c949d99237", "score": "0.5251223", "text": "function r(e,t){e.getMarkerClusterer().extend(r,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}", "title": "" }, { "docid": "bce740f94cb5f35a962d0cd1bddc342d", "score": "0.52437156", "text": "function generate_sector(seed : int)\n{\n \n var clusters_num = [maxClusters, minClusters];\n //cluster_size = (8, 24)\n var cluster_stars = [3, 8];\n\n var bounds = [[-galaxyX,galaxyX], [galaxyY,-galaxyY]];\n\n var x_bounds = [bounds[0][0], bounds[1][0]];\n var y_bounds = [bounds[1][1], bounds[0][1]];\n \n if(seed != 0) Random.seed = seed;\n\n //random.shuffle(clusternames);\n //random.shuffle(lonernames);\n\n var clusters = new Array();\n var stars = new Array();\n var stars_made = 0;\n\n randfunc = Random.Range;\n\n\tvar total_clusters = Mathf.Floor(randfunc(clusters_num[0], clusters_num[1]));\n\n for(var j = 0; j < total_clusters; j++)\n\t{\n // generate cluster name\n\n // generate cluster origin\n\t\tvar origin = new Vector2();\n\t\t\n\t\tvar x = 0;\n\t\tvar y = 0;\n\t\t\n var overlapping = true;\n var iterations = 0;\n while(overlapping)\n\t\t{\n origin = new Vector2(randfunc(x_bounds[0], x_bounds[1]),\n\t\t\t\t\t\t\t\t\t\trandfunc(y_bounds[0], y_bounds[1]));\n // determine cluster size and number of stars\n //radius = randfunc(*cluster_size)\n var num_stars = Mathf.Floor(randfunc(cluster_stars[0], cluster_stars[1]));\n var radius = num_stars * clusterSpread;\n\n overlapping = overlap(origin, clusters, radius);\n \n iterations += 1;\n if(iterations > 100)\n {\n \tDebug.Log(\"Exceeded maximum iteration count for star placement\");\n \tbreak;\n }\n\t\t}\n var clustername = clusternames.Pop();\n\n clusters.Add(origin);\n \n Debug.Log(clustername + \" cluster created at\" + origin + \"with size\"+ radius +\" and \"+ num_stars + \" stars...\");\n\n for(i = 0; i < num_stars; i++)\n\t\t{\n // generate position for each star\n x = 0;\n y = 0;\n overlapping = true;\n while( x < x_bounds[0] || x > x_bounds[1] ||\n y < y_bounds[0] || y > y_bounds[1] ||\n overlapping)\n\t\t\t\t{\n x = randfunc(origin.x - radius, origin.x + radius);\n y = randfunc(origin.y - radius, origin.y + radius);\n overlapping = overlap(new Vector2(x,y), stars, minimum_star_separation);\n\t\t\t}\n\n // generate name\n name = alphabet[i] +\" \"+ clustername;\n\t\t\tvar a = createStarAttribs();\n stars.Add([x,y, name, a[0], a[1], a[2]]);\n stars_made += 1;\n\t\t}\n\t}\n\t\n\t// generate non-clustered stars\n\twhile (stars_made < total_stars)\n\t{\n\t\tx = 0;\n\t\ty = 0;\n\t\toverlapping = true;\n\t\twhile( x < x_bounds[0] || x > x_bounds[1] ||\n\t\t\t y < y_bounds[0] || y > y_bounds[1] ||\n\t\t\t overlapping)\n\t\t\t{\n\t\t\tx = randfunc(x_bounds[0], x_bounds[1]);\n\t\t\ty = randfunc(y_bounds[0], y_bounds[1]);\n\t\t\toverlapping = overlap(new Vector2(x,y), stars, minimum_star_separation);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tname = lonernames.Pop();\n\t\t}\n\t\tcatch (e)\n\t\t{\n\t\t\tname = \"TooMany!\";\n\t\t}\n\n\t\ta = createStarAttribs();\n\t\tstars.Add([x,y, name, a[0], a[1], a[2]]);\n\t\tstars_made += 1;\n\t\t//print name, \"created at\", `(x,y)`\n\t}\n\n return stars;\n}", "title": "" }, { "docid": "53140a88bfc00f749bd3f4241e936bc7", "score": "0.52385116", "text": "async function main() {\n // make a few configs, vectorize\n let x1 = c.getContext().layerVector(c);\n x1[1] = 0.3;\n\n let x2 = c.getContext().layerVector(c);\n x2[1] = 0.34;\n\n let x3 = c.getContext().layerVector(c);\n x3[1] = 0.28;\n\n let x4 = c.getContext().layerVector(c);\n x4[1] = 0.7;\n\n // make a snippet\n await ss.deleteSnippet(\"rectangle hue\"); // this is for debug stuff lol\n await ss.addSnippet(\"rectangle hue\");\n\n // send to snippets thing\n await ss.addData(\"rectangle hue\", x1, 1.0);\n await ss.addData(\"rectangle hue\", x2, 1.0);\n await ss.addData(\"rectangle hue\", x3, 1.0);\n await ss.addData(\"rectangle hue\", x4, 0.0);\n\n // property testing\n await ss.setProp(\"rectangle hue\", \"optSteps\", 1000);\n\n // attempt to train\n await ss.train(\"rectangle hue\");\n\n // display loss func/1D graph\n //await ss.showLoss(\"rectangle hue\");\n //await ss.plot1D(\"rectangle hue\", x1, 0);\n\n // eval a few test cases?\n let t1 = c.getContext().layerVector(c);\n t1[1] = 0.32;\n let r = await ss.predictOne(\"rectangle hue\", t1);\n console.log(r);\n\n // sample some new suggested designs\n let samplesStarted = await ss.sample(\"rectangle hue\", {\n qMin: 0.75,\n epsilon: 0.1,\n n: 20,\n burn: 1000,\n stride: 1\n });\n}", "title": "" }, { "docid": "6d2c241036fe9ee1d519a418a9f762a5", "score": "0.5232083", "text": "function forceCluster(alpha) {\n for (var i = 0, n = nodes.length, node, cluster, k = alpha * 1; i < n; ++i) {\n node = nodes[i];\n cluster = clusters[node.cluster];\n node.vx -= (node.x - cluster.x) * k;\n node.vy -= (node.y - cluster.y) * k;\n }\n}", "title": "" }, { "docid": "83bf14b64a72f9eb807118b946cedd31", "score": "0.5202828", "text": "function r(t,e){t.getMarkerClusterer().extend(r,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}", "title": "" }, { "docid": "7ebeb48ac8e1adf83d0d343c59998c54", "score": "0.51973724", "text": "function initialize_clustergram(network_data){\n \n // move network_data information into global variables \n col_nodes = network_data.col_nodes ;\n row_nodes = network_data.row_nodes ;\n inst_links = network_data.links; \n\n // initialize visualization size\n set_visualization_size();\n\n // define screen width font size scale \n scale_fs_screen = d3.scale.linear().domain([800,2000]).range([0.5,1.0]).clamp('true');\n\n // font size controls \n // scale default font size: input domain is the number of nodes\n min_node_num = 30;\n max_node_num = 800;\n min_fs = 0.5;\n // reduce or increase the font size based on the total screen width \n max_fs = 15 * scale_fs_screen(screen_width);\n // output range is the font size \n scale_font_size = d3.scale.log().domain([min_node_num,max_node_num]).range([max_fs,min_fs]).clamp('true');\n\n // controls how much the font size is increased by zooming when the number of nodes is at its max\n // and zooming is required \n // 1: do not increase font size while zooming\n // 0: increase font size while zooming\n max_fs_zoom = 0.0; \n // define the scaling for the reduce font size factor \n scale_reduce_font_size_factor = d3.scale.log().domain([min_node_num,max_node_num]).range([1,max_fs_zoom]).clamp('true');\n // define the scaling for the zoomability of the adjacency matrix\n scale_zoom = d3.scale.log().domain([min_node_num,max_node_num]).range([2,17]).clamp('true');\n\n // font size is a variable since it gets scaled down with zooming \n default_fs_row = scale_font_size(row_nodes.length); \n default_fs_col = scale_font_size(col_nodes.length); \n // calculate the reduce font-size factor: 0 for no reduction in font size and 1 for full reduction of font size\n reduce_font_size_factor_row = scale_reduce_font_size_factor(row_nodes.length);\n reduce_font_size_factor_col = scale_reduce_font_size_factor(col_nodes.length);\n\n // set up the real zoom (2d zoom) as a function of the number of col_nodes\n // since these are the nodes that are zoomed into in 2d zooming \n real_zoom_scale = d3.scale.linear().domain([min_node_num,max_node_num]).range([2,7]).clamp('true');\n // calculate the zoom factor - the more nodes the more zooming allowed\n real_zoom = real_zoom_scale(col_nodes.length);\n\n // set opacity scale \n max_link = (Math.abs(_.max(inst_links, function(d){ return Math.abs(d.value)}).value) + Math.abs(_.min(inst_links, function(d){ return Math.abs(d.value)}).value))/2\n opacity_scale = d3.scale.linear().domain([0, max_link]).clamp(\"true\").range([0.0,1.0]) ; \n // max_link = _.max( inst_links, function(d){ return Math.abs(d.value) } )\n // opacity_scale = d3.scale.linear().domain([0, Math.abs(max_link.value) ]).clamp(\"true\").range([0.0,1.0]) ; \n // console.log(Math.abs(max_link.value));\n console.log(max_link);\n}", "title": "" }, { "docid": "1b9a94e7fab209609d9c8a4ec8016cd3", "score": "0.5189634", "text": "function init_cluster_node_server(plugin, collections, mynode, next) {\n ZH.t('init_cluster_node_server: BPORT: ' + mynode.backend.server.port);\n init_local_server(mynode, function(ierr, ires) {\n if (ierr) next(ierr, null);\n else {\n init_cluster_mesh(ZH.OnErrLog);\n ZVote.StartNodeHeartbeat(plugin, collections);\n ZVote.StartClusterCheck(plugin, collections);\n next(null, null);\n }\n });\n}", "title": "" }, { "docid": "cf57bb1ea034b7ed01ab4ccb050221c8", "score": "0.5169483", "text": "expand_cluster(P, N, C) {\n C.add(P);\n for (let i = 0; i < N.length; i++) {\n let Pi = N[i];\n if (Pi.status == DBInstance.UNVISITED) {\n Pi.status = DBInstance.VISITED;\n let Ni = this.get_neighbors(Pi);\n if (Ni.length >= this.min_pts) {\n Pi.is_core = true;\n this.merge(N, Ni);\n }\n }\n if (!Pi.is_member) {\n C.add(Pi);\n }\n }\n }", "title": "" }, { "docid": "548b92e0e580605c8e877f46447a55e4", "score": "0.51690084", "text": "function communityDetection(graph, nodeByIndex, nodes, betweenness) {\n\tfor(var i = 0; i < 100; i++) {\n\t\tbetweenness.edgeCentralities.sort(function(a, b) {\n\t\t\treturn b.centrality - a.centrality;\n\t\t});\n\t\tdelete graph[betweenness.edgeCentralities[0].from][betweenness.edgeCentralities[0].to];\n\t\tdelete graph[betweenness.edgeCentralities[0].to][betweenness.edgeCentralities[0].from];\n\t\tconsole.log(findClusters(graph) + \" clusters.\");\n\t\tbetweenness = betweennessCentrality(graph, nodeByIndex, nodes);\n\t}\n}", "title": "" }, { "docid": "e2d81c17de3eeff562144626df58ae8f", "score": "0.5164061", "text": "function twoDifferentClustersData2D(n) {\n var points = [];\n for (var i = 0; i < n; i++) {\n points.push(new Point([10 * normal(),\n 10 * normal()], '#039'));\n points.push(new Point([100 + normal(),\n normal()], '#f90'));\n }\n return points;\n}", "title": "" }, { "docid": "3e37320ce57386cfe871e6fd79a78e49", "score": "0.51601636", "text": "getClusterUVD(options) {\n let absZ = Math.abs(options.position[2]);\n let radius = options.radius;\n\n let height = options.fovTan * absZ * 2;\n let pHeight = (options.position[1] + height / 2);\n\n let pv1 = (pHeight - radius) / height;\n let pv2 = (pHeight + radius) / height;\n\n let width = height * options.aspect;\n let pWidth = (options.position[0] + width / 2);\n\n let pu1 = (pWidth - radius) / width;\n let pu2 = (pWidth + radius) / width;\n\n let pd1 = ((absZ - radius) - options.near) / (options.far - options.near);\n let pd2 = ((absZ + radius) - options.near) / (options.far - options.near);\n\n return {\n x1 : pu1,\n y1 : pv1,\n z1 : pd1,\n x2 : pu2,\n y2 : pv2,\n z2 : pd2\n };\n\n //vec3.set(options.output, pu, pv, pd);\n }", "title": "" }, { "docid": "aff6c7fcf2daa921c3f1d6dc70b481fc", "score": "0.51570934", "text": "function getST(_epoch, _date, _points, _text) {\n // time record start\n var time_tick = new Date();\n\n // Clustering\n cluster_month = {};\n\n\n // st-dbscan\n var eps1 = 200;\n var eps2 = 1800;\n var MinPts = 5;\n\n // new test field, group the points according to their date\n var label = _date[0];\n var a = {};\n var b = {};\n a[label] = [];\n b[label] = [];\n for (var i = 0; i < _points.length; i++) {\n if (date[i] === label) {\n a[label].push(_points[i]);\n b[label].push(i);\n } else {\n label = _date[i];\n a[label] = [];\n b[label] = [];\n a[label].push(_points[i]);\n b[label].push(i);\n }\n }\n\n for (var i = 0; i < Object.keys(a).length; i++) {\n var data = a[Object.keys(a)[i]];\n// //console.log(data);\n var label = b[Object.keys(b)[i]];\n var clusters = st_dbscan(data, eps1, eps2, MinPts);\n// //console.log(clusters);\n\n // Build up cluster structure for every date\n var cluster_date = []; // Clusters for date\n for (var cluster_id = 0; cluster_id < clusters.length; cluster_id++) {\n var cluster = {}; // Charateristics of cluster\n var cluster_raw = []; // Raw point data\n var text_cluster = \"\"; // Text data of cluster\n var cluster_keywords = []; // keywords of cluster\n var center = {lat: 0, lng: 0}; // center\n var radius = 0; // Radius of cluster\n var time_start = 9999999999; // Start time stamp of cluster\n var time_end = 0; // End time stamp of cluster\n var point_ids = []; // point id in the cluster\n var point_id;\n var label_id;\n // Calculate center and time span\n for (var item_id = 0; item_id < clusters[cluster_id].length; item_id++) {\n point_id = clusters[cluster_id][item_id]; // point id in data for clustering\n label_id = label[point_id]; // point id in point_xyt\n point_ids.push(label_id);\n text_cluster += _text[label_id] + \" \";\n center.lat += data[point_id][0];\n center.lng += data[point_id][1];\n cluster_raw.push(data[point_id]);\n time_start = Math.min(time_start, _epoch[label_id]);\n time_end = Math.max(time_end, _epoch[label_id]);\n }\n // keywords of cluster \n var cluster_wf = wf.freq(text_cluster, noStopWords = true, shouldStem = false);\n var cluster_keywords = sortJson(cluster_wf);\n // only get first 5 hot words\n var cluster_keywords_display = cluster_keywords;\n if (cluster_keywords.length > 5) {\n cluster_keywords_display = cluster_keywords.slice(0, 5);\n }\n // Coordinates traslation\n center.lat = center.lat / clusters[cluster_id].length;\n center.lng = center.lng / clusters[cluster_id].length;\n\n // Calculate radius\n for (var j = 0; j < cluster_raw.length; j++) {\n var d = dist(cluster_raw[j], [center.lat, center.lng]);\n radius = Math.max(radius, d);\n }\n ;\n cluster.center = center; // Center\n cluster.radius = radius; // Radius\n cluster.number = cluster_raw.length; // Numbers\n cluster.time_start = new Date(time_start * 1000);\n cluster.time_end = new Date(time_end * 1000);\n cluster.keywords_5 = cluster_keywords_display;\n cluster.keywords_all = cluster_keywords;\n cluster.points = point_ids; // id of point data\n\n cluster_date.push(cluster); // JSON object order by cluster id\n }\n ;\n // if length of cluster is 0, cluster_date will be empty\n if (cluster_date.length !== 0) {\n cluster_month[Object.keys(a)[i]] = cluster_date;\n }\n }\n// //console.log(cluster_month);\n\n // time record end\n var time_tock = new Date();\n var time_gap = (time_tock - time_tick) / 1000;\n console.log(\"Processing Time of Clustering: \" + time_gap + \"s\");\n\n clearAll(); // Clear All\n drawLegend(); // Draw legends\n drawST(cluster_month); // Draw Map\n slider_change(); // Listen to Slider Change\n}", "title": "" }, { "docid": "51dbaf68b73bd09c967452a61c3c36eb", "score": "0.5156512", "text": "function createClusterer(raw) {\n var internalClusterer = new InternalClusterer($this, map, raw),\n td = {},\n styles = {},\n thresholds = [],\n isInt = /^[0-9]+$/,\n calculator,\n k;\n\n for (k in raw) {\n if (isInt.test(k)) {\n thresholds.push(1 * k); // cast to int\n styles[k] = raw[k];\n styles[k].width = styles[k].width || 0;\n styles[k].height = styles[k].height || 0;\n } else {\n td[k] = raw[k];\n }\n }\n thresholds.sort(function (a, b) { return a > b; });\n\n // external calculator\n if (td.calculator) {\n calculator = function (indexes) {\n var data = [];\n $.each(indexes, function (i, index) {\n data.push(internalClusterer.value(index));\n });\n return td.calculator.apply($this, [data]);\n };\n } else {\n calculator = function (indexes) {\n return indexes.length;\n };\n }\n\n // set error function\n internalClusterer.error(function () {\n error.apply(self, arguments);\n });\n\n // set display function\n internalClusterer.display(function (cluster) {\n var i, style, atd, obj, offset, shadow,\n cnt = calculator(cluster.indexes);\n\n // look for the style to use\n if (raw.force || cnt > 1) {\n for (i = 0; i < thresholds.length; i++) {\n if (thresholds[i] <= cnt) {\n style = styles[thresholds[i]];\n }\n }\n }\n\n if (style) {\n offset = style.offset || [-style.width/2, -style.height/2];\n // create a custom overlay command\n // nb: 2 extends are faster self a deeper extend\n atd = $.extend({}, td);\n atd.options = $.extend({\n pane: \"overlayLayer\",\n content: style.content ? style.content.replace(\"CLUSTER_COUNT\", cnt) : \"\",\n offset: {\n x: (\"x\" in offset ? offset.x : offset[0]) || 0,\n y: (\"y\" in offset ? offset.y : offset[1]) || 0\n }\n },\n td.options || {});\n\n obj = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n atd.options.pane = \"floatShadow\";\n atd.options.content = $(document.createElement(\"div\")).width(style.width + \"px\").height(style.height + \"px\").css({cursor: \"pointer\"});\n shadow = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n // store data to the clusterer\n td.data = {\n latLng: toLatLng(cluster),\n markers:[]\n };\n $.each(cluster.indexes, function(i, index){\n td.data.markers.push(internalClusterer.value(index));\n if (internalClusterer.markerIsSet(index)){\n internalClusterer.marker(index).setMap(null);\n }\n });\n attachEvents($this, {td: td}, shadow, undef, {main: obj, shadow: shadow});\n internalClusterer.store(cluster, obj, shadow);\n } else {\n $.each(cluster.indexes, function (i, index) {\n internalClusterer.marker(index).setMap(map);\n });\n }\n });\n\n return internalClusterer;\n }", "title": "" }, { "docid": "51dbaf68b73bd09c967452a61c3c36eb", "score": "0.5156512", "text": "function createClusterer(raw) {\n var internalClusterer = new InternalClusterer($this, map, raw),\n td = {},\n styles = {},\n thresholds = [],\n isInt = /^[0-9]+$/,\n calculator,\n k;\n\n for (k in raw) {\n if (isInt.test(k)) {\n thresholds.push(1 * k); // cast to int\n styles[k] = raw[k];\n styles[k].width = styles[k].width || 0;\n styles[k].height = styles[k].height || 0;\n } else {\n td[k] = raw[k];\n }\n }\n thresholds.sort(function (a, b) { return a > b; });\n\n // external calculator\n if (td.calculator) {\n calculator = function (indexes) {\n var data = [];\n $.each(indexes, function (i, index) {\n data.push(internalClusterer.value(index));\n });\n return td.calculator.apply($this, [data]);\n };\n } else {\n calculator = function (indexes) {\n return indexes.length;\n };\n }\n\n // set error function\n internalClusterer.error(function () {\n error.apply(self, arguments);\n });\n\n // set display function\n internalClusterer.display(function (cluster) {\n var i, style, atd, obj, offset, shadow,\n cnt = calculator(cluster.indexes);\n\n // look for the style to use\n if (raw.force || cnt > 1) {\n for (i = 0; i < thresholds.length; i++) {\n if (thresholds[i] <= cnt) {\n style = styles[thresholds[i]];\n }\n }\n }\n\n if (style) {\n offset = style.offset || [-style.width/2, -style.height/2];\n // create a custom overlay command\n // nb: 2 extends are faster self a deeper extend\n atd = $.extend({}, td);\n atd.options = $.extend({\n pane: \"overlayLayer\",\n content: style.content ? style.content.replace(\"CLUSTER_COUNT\", cnt) : \"\",\n offset: {\n x: (\"x\" in offset ? offset.x : offset[0]) || 0,\n y: (\"y\" in offset ? offset.y : offset[1]) || 0\n }\n },\n td.options || {});\n\n obj = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n atd.options.pane = \"floatShadow\";\n atd.options.content = $(document.createElement(\"div\")).width(style.width + \"px\").height(style.height + \"px\").css({cursor: \"pointer\"});\n shadow = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n // store data to the clusterer\n td.data = {\n latLng: toLatLng(cluster),\n markers:[]\n };\n $.each(cluster.indexes, function(i, index){\n td.data.markers.push(internalClusterer.value(index));\n if (internalClusterer.markerIsSet(index)){\n internalClusterer.marker(index).setMap(null);\n }\n });\n attachEvents($this, {td: td}, shadow, undef, {main: obj, shadow: shadow});\n internalClusterer.store(cluster, obj, shadow);\n } else {\n $.each(cluster.indexes, function (i, index) {\n internalClusterer.marker(index).setMap(map);\n });\n }\n });\n\n return internalClusterer;\n }", "title": "" }, { "docid": "dafce4f8dcf825f7ad8ee995b99b87b1", "score": "0.5152126", "text": "_addStations() {\n this._spliceNetworkWith({\n maxDistance : this._opts.maxDistance,\n points : this._opts.stations.map(station => station.toFeature()),\n genNode : (corridor, idx) => {\n const station = this._opts.stations[idx];\n return {\n label : station.getLabel(),\n data : { station, loc : station.toFeature(), type : \"station\" }\n };\n }\n });\n }", "title": "" }, { "docid": "b6db8a6434994c61eb6bc9863718458a", "score": "0.5149112", "text": "function getNodes() {\r\n\tvar req = coap.request({host: hostprefix + rootnode , pathname: '/sd6wsn/node-mod' , observe: false })\r\n\treq.setOption('Max-Age', 130)\r\n\treq.on('response', function(res) {\r\n\t\tres.on('data', function (res2) {\r\n\t\t\tvar nodeaddr = JSON.parse(objToString(res2))\r\n\t\t\tif(nodeaddr.nodes == '') getNodes() \r\n\t\t\telse {\r\n\t\t\t\tconsole.log(\"nodeaddr.nodes:\",nodeaddr.nodes)\r\n\t\t\t\tnodesaddresses = nodeaddr.nodes.split(\",\") // convert to a array\r\n\t\t\t\tconsole.log(\"nodesaddresses:\",nodesaddresses)\r\n\t\t\t\tconsole.log(\"Sorted Array:\",arraySort(nodesaddresses)) //sort the array\r\n\t\t\t\tnumnodes = Object.keys(nodesaddresses).length // lenght of array\r\n\t\t\t\ttreeCalc() // yield the treecalc after the number of nodes definition\r\n\t\t\t\tfor(var i = 0; i < numnodes ; i++ ){\r\n\t\t\t\t\tgetmetricstries[nodesaddresses[i]] = 0\r\n\t\t\t\t\tgetMetrics(nodesaddresses[i])\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t})\r\n\treq.on('error', function (err) {\r\n\t\tconsole.log(\"6LBR unreachable\")\r\n\t\tprocess.exit(0)\r\n\t}) \r\n\treq.end() \r\n}", "title": "" }, { "docid": "90f91b5db761fb61be5ebbce2027759c", "score": "0.51429826", "text": "function visualizeCluster(datapassed){ \n\n //parses and binds data for nodes and links\n console.log(datapassed);\n var roleList = createRoletaglist(datapassed);\n var nodes = makeNodes(datapassed);\n var linkData = processDataIntoLinks(nodes);\n \n\n// var links = d3.layout().links(nodes);\n// console.log(links);\n \n var width = 1000,\n height = 600,\n nodesValues = d3.values(nodes);\n\n //main force function \n var force = d3.layout.force()\n .nodes(nodes)\n .links(linkData)\n .size([width, height])\n .linkDistance(125)\n .linkStrength(0.1)\n .charge(-300)\n .on(\"tick\", tick)\n .start();\n\n //canvas\n var svg = d3.select(\"#cluster_results\").append(\"svg\")\n .attr(\"width\", width)\n .attr(\"height\", height); \n \n //add tooltip div to SVG \n var div = d3.select(\"#cluster_results\").append(\"div\") \n .attr(\"class\", \"tooltip\") \n .style(\"opacity\", 0);\n\n // adds the links\n var path = svg.append(\"svg:g\").selectAll(\"path\")\n .data(force.links())\n .enter().append(\"svg:path\")\n .attr(\"class\", \"link\");\n \n // define the nodes\n var node = svg.selectAll(\".node\")\n .data(force.nodes())\n .enter().append(\"g\")\n .attr(\"class\", \"node\")\n .on(\"click\", click)\n .call(force.drag);\n \n //color scale \n var color = d3.scale.category20c();\n\n //adds nodes to canvas\n node.append(\"circle\")\n .attr(\"r\", function(d) { return d.count/6})\n .style(\"fill\", function(d) { return color(d.count); });\n \n // add the text \n node.append(\"text\")\n .attr(\"x\", 25)\n .attr(\"dy\", \".35em\") \n .text(function(d) { return d.name; });\n\n //This is the animation and movement of the graph \n function tick() {\n path.attr(\"d\", function(d) {\n var dx = d.target.x - d.source.x,\n dy = d.target.y - d.source.y,\n dr = Math.sqrt(dx * dx + dy * dy);\n return \"M\" + \n d.source.x + \",\" + \n d.source.y + \"A\" + \n dr + \",\" + dr + \" 0 0,1 \" + \n d.target.x + \",\" + \n d.target.y;\n });\n\n node\n .attr(\"transform\", function(d) { \n return \"translate(\" + d.x + \",\" + d.y + \")\"; });\n }\n \n //Allows user to click on a node and create a new graph based on skill node clicked on\n function click() {\n if (d3.event.defaultPrevented) return;\n $(\"#cluster_header\").empty()\n $(\"#dynamic_list\").empty()\n $(\"#cluster_results\").empty()\n $(\"#cluster_results\").append(\"<h1 style=text-align:center> Loading... </h1>\") \n var d = d3.select(this).node().__data__;\n var tagDisplayname = d.name;\n $(\"#cluster_header\").append(\"<h1>skill set graph for \" + d.name + \"</h1>\");\n encodedNodeskill = encodeURIComponent(tagDisplayname);\n d3.json( \"/skill_angelList_call?selected_skill=\" + encodedNodeskill, function(error, json) {\n newData = json;\n $(\"#cluster_results\").empty();\n visualizeCluster(newData);\n });\n }\n}", "title": "" }, { "docid": "dfc799aab51ac721613331a31986cdaf", "score": "0.51409835", "text": "function dscom (dscom_parameters) {\n /*-----------------------------------------------------------------------------\n *\n * procedure dscom\n *\n * this procedure provides deep space common items used by both the secular\n * and periodics subroutines. input is provided as shown. this routine\n * used to be called dpper, but the functions inside weren't well organized.\n *\n * author : david vallado 719-573-2600 28 jun 2005\n *\n * inputs :\n * epoch -\n * ep - eccentricity\n * argpp - argument of perigee\n * tc -\n * inclp - inclination\n * nodep - right ascension of ascending node\n * np - mean motion\n *\n * outputs :\n * sinim , cosim , sinomm , cosomm , snodm , cnodm\n * day -\n * e3 -\n * ee2 -\n * em - eccentricity\n * emsq - eccentricity squared\n * gam -\n * peo -\n * pgho -\n * pho -\n * pinco -\n * plo -\n * rtemsq -\n * se2, se3 -\n * sgh2, sgh3, sgh4 -\n * sh2, sh3, si2, si3, sl2, sl3, sl4 -\n * s1, s2, s3, s4, s5, s6, s7 -\n * ss1, ss2, ss3, ss4, ss5, ss6, ss7, sz1, sz2, sz3 -\n * sz11, sz12, sz13, sz21, sz22, sz23, sz31, sz32, sz33 -\n * xgh2, xgh3, xgh4, xh2, xh3, xi2, xi3, xl2, xl3, xl4 -\n * nm - mean motion\n * z1, z2, z3, z11, z12, z13, z21, z22, z23, z31, z32, z33 -\n * zmol -\n * zmos -\n *\n * locals :\n * a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 -\n * betasq -\n * cc -\n * ctem, stem -\n * x1, x2, x3, x4, x5, x6, x7, x8 -\n * xnodce -\n * xnoi -\n * zcosg , zsing , zcosgl , zsingl , zcosh , zsinh , zcoshl , zsinhl ,\n * zcosi , zsini , zcosil , zsinil ,\n * zx -\n * zy -\n *\n * coupling :\n * none.\n *\n * references :\n * hoots, roehrich, norad spacetrack report #3 1980\n * hoots, norad spacetrack report #6 1986\n * hoots, schumacher and glover 2004\n * vallado, crawford, hujsak, kelso 2006\n ----------------------------------------------------------------------------*/\n\n 'use strict';\n\nvar epoch = dscom_parameters.epoch,\n ep = dscom_parameters.ep,\n argpp = dscom_parameters.argpp,\n tc = dscom_parameters.tc,\n inclp = dscom_parameters.inclp,\n nodep = dscom_parameters.nodep,\n np = dscom_parameters.np,\n e3 = dscom_parameters.e3,\n ee2 = dscom_parameters.ee2,\n peo = dscom_parameters.peo,\n pgho = dscom_parameters.pgho,\n pho = dscom_parameters.pho,\n pinco = dscom_parameters.pinco,\n plo = dscom_parameters.plo,\n se2 = dscom_parameters.se2,\n se3 = dscom_parameters.se3,\n sgh2 = dscom_parameters.sgh2,\n sgh3 = dscom_parameters.sgh3,\n sgh4 = dscom_parameters.sgh4,\n sh2 = dscom_parameters.sh2,\n sh3 = dscom_parameters.sh3,\n si2 = dscom_parameters.si2,\n si3 = dscom_parameters.si3,\n sl2 = dscom_parameters.sl2,\n sl3 = dscom_parameters.sl3,\n sl4 = dscom_parameters.sl4,\n xgh2 = dscom_parameters.xgh2,\n xgh3 = dscom_parameters.xgh3,\n xgh4 = dscom_parameters.xgh4,\n xh2 = dscom_parameters.xh2,\n xh3 = dscom_parameters.xh3,\n xi2 = dscom_parameters.xi2,\n xi3 = dscom_parameters.xi3,\n xl2 = dscom_parameters.xl2,\n xl3 = dscom_parameters.xl3,\n xl4 = dscom_parameters.xl4,\n zmol = dscom_parameters.zmol,\n zmos = dscom_parameters.zmos;\n\n\n var a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,\n betasq, cc, ctem, stem,\n x1, x2, x3, x4, x5, x6, x7, x8,\n xnodce, xnoi,\n zcosg, zsing, zcosgl, zsingl,\n zcosh, zsinh, zcoshl, zsinhl,\n zcosi, zsini, zcosil, zsinil,\n zx, zy;\n\n var ss1, ss2, ss3, ss4, ss5, ss6, ss7,\n sz1, sz2, sz3,\n sz11, sz12, sz13,\n sz21, sz22, sz23,\n sz31, sz32, sz33;\n var s1, s2, s3, s4, s5, s6, s7;\n var z1, z2, z3,\n z11,z12,z13,\n z21,z22,z23,\n z31,z32,z33;\n\n // -------------------------- constants -------------------------\n var zes = 0.01675;\n var zel = 0.05490;\n var c1ss = 2.9864797e-6;\n var c1l = 4.7968065e-7;\n var zsinis = 0.39785416;\n var zcosis = 0.91744867;\n var zcosgs = 0.1945905;\n var zsings = -0.98088458;\n // --------------------- local variables ------------------------\n var nm = np;\n var em = ep;\n var snodm = Math.sin(nodep);\n var cnodm = Math.cos(nodep);\n var sinomm = Math.sin(argpp);\n var cosomm = Math.cos(argpp);\n var sinim = Math.sin(inclp);\n var cosim = Math.cos(inclp);\n var emsq = em * em;\n betasq = 1.0 - emsq;\n var rtemsq = Math.sqrt(betasq);\n\n // ----------------- initialize lunar solar terms ---------------\n peo = 0.0;\n pinco = 0.0;\n plo = 0.0;\n pgho = 0.0;\n pho = 0.0;\n var day = epoch + 18261.5 + tc / 1440.0;\n xnodce = (4.5236020 - 9.2422029e-4 * day) % twopi;\n stem = Math.sin(xnodce);\n ctem = Math.cos(xnodce);\n zcosil = 0.91375164 - 0.03568096 * ctem;\n zsinil = Math.sqrt(1.0 - zcosil * zcosil);\n zsinhl = 0.089683511 * stem / zsinil;\n zcoshl = Math.sqrt(1.0 - zsinhl * zsinhl);\n var gam = 5.8351514 + 0.0019443680 * day;\n zx = 0.39785416 * stem / zsinil;\n zy = zcoshl * ctem + 0.91744867 * zsinhl * stem;\n zx = Math.atan2(zx, zy);\n zx = gam + zx - xnodce;\n zcosgl = Math.cos(zx);\n zsingl = Math.sin(zx);\n\n // ------------------------- do solar terms ---------------------\n zcosg = zcosgs;\n zsing = zsings;\n zcosi = zcosis;\n zsini = zsinis;\n zcosh = cnodm;\n zsinh = snodm;\n cc = c1ss;\n xnoi = 1.0 / nm;\n\n var lsflg = 0;\n while (lsflg < 2) {\n lsflg += 1;\n a1 = zcosg * zcosh + zsing * zcosi * zsinh;\n a3 = -zsing * zcosh + zcosg * zcosi * zsinh;\n a7 = -zcosg * zsinh + zsing * zcosi * zcosh;\n a8 = zsing * zsini;\n a9 = zsing * zsinh + zcosg * zcosi * zcosh;\n a10 = zcosg * zsini;\n a2 = cosim * a7 + sinim * a8;\n a4 = cosim * a9 + sinim * a10;\n a5 = -sinim * a7 + cosim * a8;\n a6 = -sinim * a9 + cosim * a10;\n\n x1 = a1 * cosomm + a2 * sinomm;\n x2 = a3 * cosomm + a4 * sinomm;\n x3 = -a1 * sinomm + a2 * cosomm;\n x4 = -a3 * sinomm + a4 * cosomm;\n x5 = a5 * sinomm;\n x6 = a6 * sinomm;\n x7 = a5 * cosomm;\n x8 = a6 * cosomm;\n\n z31 = 12.0 * x1 * x1 - 3.0 * x3 * x3;\n z32 = 24.0 * x1 * x2 - 6.0 * x3 * x4;\n z33 = 12.0 * x2 * x2 - 3.0 * x4 * x4;\n z1 = 3.0 * (a1 * a1 + a2 * a2) + z31 * emsq;\n z2 = 6.0 * (a1 * a3 + a2 * a4) + z32 * emsq;\n z3 = 3.0 * (a3 * a3 + a4 * a4) + z33 * emsq;\n z11 = -6.0 * a1 * a5 + emsq *\n (-24.0 * x1 * x7-6.0 * x3 * x5);\n z12 = -6.0 * (a1 * a6 + a3 * a5) + emsq *\n (-24.0 * (x2 * x7 + x1 * x8) +\n -6.0 * (x3 * x6 + x4 * x5));\n z13 = -6.0 * a3 * a6 + emsq *\n (-24.0 * x2 * x8 - 6.0 * x4 * x6);\n z21 = 6.0 * a2 * a5 + emsq *\n ( 24.0 * x1 * x5 - 6.0 * x3 * x7);\n z22 = 6.0 * (a4 * a5 + a2 * a6) + emsq *\n ( 24.0 * (x2 * x5 + x1 * x6) -\n 6.0 * (x4 * x7 + x3 * x8));\n z23 = 6.0 * a4 * a6 + emsq *\n ( 24.0 * x2 * x6 - 6.0 * x4 * x8);\n z1 = z1 + z1 + betasq * z31;\n z2 = z2 + z2 + betasq * z32;\n z3 = z3 + z3 + betasq * z33;\n s3 = cc * xnoi;\n s2 = -0.5 * s3 / rtemsq;\n s4 = s3 * rtemsq;\n s1 = -15.0 * em * s4;\n s5 = x1 * x3 + x2 * x4;\n s6 = x2 * x3 + x1 * x4;\n s7 = x2 * x4 - x1 * x3;\n\n // ----------------------- do lunar terms -------------------\n if (lsflg === 1) {\n ss1 = s1;\n ss2 = s2;\n ss3 = s3;\n ss4 = s4;\n ss5 = s5;\n ss6 = s6;\n ss7 = s7;\n sz1 = z1;\n sz2 = z2;\n sz3 = z3;\n sz11 = z11;\n sz12 = z12;\n sz13 = z13;\n sz21 = z21;\n sz22 = z22;\n sz23 = z23;\n sz31 = z31;\n sz32 = z32;\n sz33 = z33;\n zcosg = zcosgl;\n zsing = zsingl;\n zcosi = zcosil;\n zsini = zsinil;\n zcosh = zcoshl * cnodm + zsinhl * snodm;\n zsinh = snodm * zcoshl - cnodm * zsinhl;\n cc = c1l;\n }\n }\n zmol = (4.7199672 + 0.22997150 * day - gam) % twopi;\n zmos = (6.2565837 + 0.017201977 * day) % twopi;\n\n // ------------------------ do solar terms ----------------------\n se2 = 2.0 * ss1 * ss6;\n se3 = 2.0 * ss1 * ss7;\n si2 = 2.0 * ss2 * sz12;\n si3 = 2.0 * ss2 * (sz13 - sz11);\n sl2 = -2.0 * ss3 * sz2;\n sl3 = -2.0 * ss3 * (sz3 - sz1);\n sl4 = -2.0 * ss3 * (-21.0 - 9.0 * emsq) * zes;\n sgh2 = 2.0 * ss4 * sz32;\n sgh3 = 2.0 * ss4 * (sz33 - sz31);\n sgh4 = -18.0 * ss4 * zes;\n sh2 = -2.0 * ss2 * sz22;\n sh3 = -2.0 * ss2 * (sz23 - sz21);\n\n // ------------------------ do lunar terms ----------------------\n ee2 = 2.0 * s1 * s6;\n e3 = 2.0 * s1 * s7;\n xi2 = 2.0 * s2 * z12;\n xi3 = 2.0 * s2 * (z13 - z11);\n xl2 = -2.0 * s3 * z2;\n xl3 = -2.0 * s3 * (z3 - z1);\n xl4 = -2.0 * s3 * (-21.0 - 9.0 * emsq) * zel;\n xgh2 = 2.0 * s4 * z32;\n xgh3 = 2.0 * s4 * (z33 - z31);\n xgh4 = -18.0 * s4 * zel;\n xh2 = -2.0 * s2 * z22;\n xh3 = -2.0 * s2 * (z23 - z21);\n\n var dscom_results = {\n snodm : snodm,\n cnodm : cnodm,\n sinim : sinim,\n cosim : cosim,\n sinomm : sinomm,\n\n cosomm : cosomm,\n day : day,\n e3 : e3,\n ee2 : ee2,\n em : em,\n\n emsq : emsq,\n gam : gam,\n peo : peo,\n pgho : pgho,\n pho : pho,\n\n pinco : pinco,\n plo : plo,\n rtemsq : rtemsq,\n se2 : se2,\n se3 : se3,\n\n sgh2 : sgh2,\n sgh3 : sgh3,\n sgh4 : sgh4,\n sh2 : sh2,\n sh3 : sh3,\n\n si2 : si2,\n si3 : si3,\n sl2 : sl2,\n sl3 : sl3,\n sl4 : sl4,\n\n s1 : s1,\n s2 : s2,\n s3 : s3,\n s4 : s4,\n s5 : s5,\n\n s6 : s6,\n s7 : s7,\n ss1 : ss1,\n ss2 : ss2,\n ss3 : ss3,\n\n ss4 : ss4,\n ss5 : ss5,\n ss6 : ss6,\n ss7 : ss7,\n sz1 : sz1,\n\n sz2 : sz2,\n sz3 : sz3,\n sz11 : sz11,\n sz12 : sz12,\n sz13 : sz13,\n\n sz21 : sz21,\n sz22 : sz22,\n sz23 : sz23,\n sz31 : sz31,\n sz32 : sz32,\n\n sz33 : sz33,\n xgh2 : xgh2,\n xgh3 : xgh3,\n xgh4 : xgh4,\n xh2 : xh2,\n\n xh3 : xh3,\n xi2 : xi2,\n xi3 : xi3,\n xl2 : xl2,\n xl3 : xl3,\n\n xl4 : xl4,\n nm : nm,\n z1 : z1,\n z2 : z2,\n z3 : z3,\n\n z11 : z11,\n z12 : z12,\n z13 : z13,\n z21 : z21,\n z22 : z22,\n\n z23 : z23,\n z31 : z31,\n z32 : z32,\n z33 : z33,\n zmol : zmol,\n\n zmos : zmos\n };\n return dscom_results;\n}", "title": "" }, { "docid": "c93f6a6cf9043e876e20fd66591e9287", "score": "0.5136399", "text": "constructor(nnodes) {\n this.nodes = nnodes;\n this.edges = Array(0);\n this.nodeCoord = Array(nnodes);\n }", "title": "" }, { "docid": "3990aacebe73908b9b90977d7cc150c7", "score": "0.5122152", "text": "function EpisodeCluster(episodes) {\n this.episodes_ = episodes;\n this.centroid_ = viewfinder.k_nearest_means.ComputeCentroid_(episodes);\n var episode = viewfinder.k_nearest_means.FindNearest(this.centroid_, episodes);\n if (episode) {\n this.location_ = episode.location_;\n this.placemark_ = episode.placemark_;\n } else {\n this.location_ = null;\n this.placemark_ = null;\n }\n}", "title": "" }, { "docid": "4a8c56e0a3ebd4d5b18a7709143f48e9", "score": "0.51187974", "text": "function cluster(alpha) {\n var max = {};\n\n // Find the largest node for each cluster.\n nodes.forEach(function(d) {\n if (!(d.color in max) || (d.radius > max[d.color].radius)) {\n max[d.color] = d;\n }\n });\n\n return function(d) {\n var node = max[d.color],\n l,\n r,\n x,\n y,\n k = 1,\n i = -1;\n\n // For cluster nodes, apply custom gravity.\n if (node == d) {\n node = {x: width / 2, y: height / 2, radius: -d.radius};\n k = .1 * Math.sqrt(d.radius);\n }\n\n x = d.x - node.x;\n y = d.y - node.y;\n l = Math.sqrt(x * x + y * y);\n r = d.radius + node.radius;\n if (l != r) {\n l = (l - r) / l * alpha * k;\n d.x -= x *= l;\n d.y -= y *= l;\n node.x += x;\n node.y += y;\n }\n };\n}", "title": "" }, { "docid": "b0413e597de59cb977f33d94952cf2fc", "score": "0.5118662", "text": "function ead84(nodeCount, nodes, links)\n{\n\tlet c1 = 2, c2 = 0.001, c3 = 100000, c4 = 0.1, d;\n\tlet force = 0; \n\t\n\t// This loop renders original positions spheres to see the change\n\t/*for (let i = 0; i < nodeCount; i++)\n\t{\n\t\tvar geometry = new THREE.SphereBufferGeometry( 5, 10, 10 );\n\t\tvar material = new THREE.MeshBasicMaterial( {color: 0xff5757} );\n\t\tvar sphere = new THREE.Mesh( geometry, material );\n\t\tsphere.position.x = nodes[i].position.x;\n\t\tsphere.position.y = nodes[i].position.y;\n\t\tsphere.position.z = nodes[i].position.z;\n\t\t\n\t\tscene.add(sphere);\n\t\trender();\n\t}*/\n\n\t// Loops over the adjacency matrix\n\tfor (let row = 0; row < nodeCount; row++)\n\t{\t\n\t\tfor (let col = 0; col < nodeCount; col++)\n\t\t{\n\t\t\tforce = 0;\n\t\t\t\n\t\t\tif (row == col)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Finds distance between two nodes\n\t\t\tlet nodeA = nodes[row].position;\n\t\t\tlet nodeB = nodes[col].position;\n\t\t\t\n\t\t\td = Math.abs(nodeA.distanceTo(nodeB));\n\t\t\t\n\t\t\t// If there is no link between nodes generate a repulsive force\n\t\t\tif (links[row][col] == 0)\n\t\t\t{\n\t\t\t\tforce = c4 * (c3 / (d * d));\n\t\t\n\t\t\t\tlet translateVector = new THREE.Vector3(0, 0, 0);\n\t\t\t\ttranslateVector.setX(nodes[row].position.x - nodes[col].position.x);\n\t\t\t\ttranslateVector.setY(nodes[row].position.y - nodes[col].position.y);\n\t\t\t\ttranslateVector.setZ(nodes[row].position.z - nodes[col].position.z);\n\t\t\t\t\n\t\t\t\t// Translate the node in the direction of the force\n\t\t\t\tnodes[row].translateOnAxis(translateVector.normalize(), force);\n\t\t\t}\n\n\t\t\t// If there is a link between nodes generate an attractive force\n\t\t\telse\n\t\t\t{\n\t\t\t\tforce = c4 * (c1 * Math.log(d / c2));\n\t\t\t\t\n\t\t\t\tlet translateVector = new THREE.Vector3(0, 0, 0);\n\t\t\t\ttranslateVector.setX(nodes[col].position.x - nodes[row].position.x);\n\t\t\t\ttranslateVector.setY(nodes[col].position.y - nodes[row].position.y);\n\t\t\t\ttranslateVector.setZ(nodes[col].position.z - nodes[row].position.z);\n\n\t\t\t\t// Translate the node in the direction of the force\n\t\t\t\tnodes[row].translateOnAxis(translateVector.normalize(), force);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "29a6b419fbeafb30732a7bec1b4fe6ed", "score": "0.51129436", "text": "function getcluster(data) {\n let clusterSet = [];\n let centroids = [];\n\n //give number of clusters we want\n clusters.k(10);\n\n //number of iterations (higher number gives more time to converge), defaults to 1000\n clusters.iterations(750);\n\n //data from which to identify clusters, defaults to []\n clusters.data(data);\n\n clusterSet = clusters.clusters();\n // clusterSet.forEach(function (d) { // Save the centroids of each cluster\n // return centroids.push(d.centroid)\n // });\n //\n // console.log(centroids);\n // return centroids;\n var cluster_count_genre = [];\n var index;\n for (i = 1; i < clusterSet.length; i++) {\n cluster_count_genre.push(CountGenres(clusterSet[i].points))\n }\n console.log(cluster_count_genre)\n}", "title": "" }, { "docid": "0ecb449e6e49bf7705827e5b81447378", "score": "0.50852376", "text": "function longClusterData(n) {\n var points = [];\n var s = .03 * n;\n for (var i = 0; i < n; i++) {\n var x1 = i + s * normal();\n var y1 = i + s * normal();\n points.push(new Point([x1, y1], '#039'));\n var x2 = i + s * normal() + n / 5;\n var y2 = i + s * normal() - n / 5;\n points.push(new Point([x2, y2], '#f90'));\n }\n return points;\n}", "title": "" }, { "docid": "3ef0c2148c62cda4ffca645886b90274", "score": "0.5075962", "text": "function dsinit(dsinit_parameters) {\n /*-----------------------------------------------------------------------------\n *\n * procedure dsinit\n *\n * this procedure provides deep space contributions to mean motion dot due\n * to geopotential resonance with half day and one day orbits.\n *\n * author : david vallado 719-573-2600 28 jun 2005\n *\n * inputs :\n * cosim, sinim-\n * emsq - eccentricity squared\n * argpo - argument of perigee\n * s1, s2, s3, s4, s5 -\n * ss1, ss2, ss3, ss4, ss5 -\n * sz1, sz3, sz11, sz13, sz21, sz23, sz31, sz33 -\n * t - time\n * tc -\n * gsto - greenwich sidereal time rad\n * mo - mean anomaly\n * mdot - mean anomaly dot (rate)\n * no - mean motion\n * nodeo - right ascension of ascending node\n * nodedot - right ascension of ascending node dot (rate)\n * xpidot -\n * z1, z3, z11, z13, z21, z23, z31, z33 -\n * eccm - eccentricity\n * argpm - argument of perigee\n * inclm - inclination\n * mm - mean anomaly\n * xn - mean motion\n * nodem - right ascension of ascending node\n *\n * outputs :\n * em - eccentricity\n * argpm - argument of perigee\n * inclm - inclination\n * mm - mean anomaly\n * nm - mean motion\n * nodem - right ascension of ascending node\n * irez - flag for resonance 0-none, 1-one day, 2-half day\n * atime -\n * d2201, d2211, d3210, d3222, d4410, d4422, d5220, d5232, d5421, d5433 -\n * dedt -\n * didt -\n * dmdt -\n * dndt -\n * dnodt -\n * domdt -\n * del1, del2, del3 -\n * ses , sghl , sghs , sgs , shl , shs , sis , sls\n * theta -\n * xfact -\n * xlamo -\n * xli -\n * xni\n *\n * locals :\n * ainv2 -\n * aonv -\n * cosisq -\n * eoc -\n * f220, f221, f311, f321, f322, f330, f441, f442, f522, f523, f542, f543 -\n * g200, g201, g211, g300, g310, g322, g410, g422, g520, g521, g532, g533 -\n * sini2 -\n * temp -\n * temp1 -\n * theta -\n * xno2 -\n *\n * coupling :\n * getgravconst\n *\n * references :\n * hoots, roehrich, norad spacetrack report #3 1980\n * hoots, norad spacetrack report #6 1986\n * hoots, schumacher and glover 2004\n * vallado, crawford, hujsak, kelso 2006\n ----------------------------------------------------------------------------*/\n 'use strict';\n var cosim = dsinit_parameters.cosim,\n emsq = dsinit_parameters.emsq,\n argpo = dsinit_parameters.argpo,\n\n s1 = dsinit_parameters.s1,\n s2 = dsinit_parameters.s2,\n s3 = dsinit_parameters.s3,\n s4 = dsinit_parameters.s4,\n s5 = dsinit_parameters.s5,\n sinim = dsinit_parameters.sinim,\n\n ss1 = dsinit_parameters.ss1,\n ss2 = dsinit_parameters.ss2,\n ss3 = dsinit_parameters.ss3,\n ss4 = dsinit_parameters.ss4,\n ss5 = dsinit_parameters.ss5,\n\n sz1 = dsinit_parameters.sz1,\n sz3 = dsinit_parameters.sz3,\n sz11 = dsinit_parameters.sz11,\n sz13 = dsinit_parameters.sz13,\n sz21 = dsinit_parameters.sz21,\n sz23 = dsinit_parameters.sz23,\n sz31 = dsinit_parameters.sz31,\n sz33 = dsinit_parameters.sz33,\n\n t = dsinit_parameters.t,\n tc = dsinit_parameters.tc,\n gsto = dsinit_parameters.gsto,\n\n mo = dsinit_parameters.mo,\n mdot = dsinit_parameters.mdot,\n no = dsinit_parameters.no,\n nodeo = dsinit_parameters.nodeo,\n nodedot = dsinit_parameters.nodedot,\n\n xpidot = dsinit_parameters.xpidot,\n\n z1 = dsinit_parameters.z1,\n z3 = dsinit_parameters.z3,\n z11 = dsinit_parameters.z11,\n z13 = dsinit_parameters.z13,\n z21 = dsinit_parameters.z21,\n z23 = dsinit_parameters.z23,\n z31 = dsinit_parameters.z31,\n z33 = dsinit_parameters.z33,\n\n ecco = dsinit_parameters.ecco,\n eccsq = dsinit_parameters.eccsq,\n em = dsinit_parameters.em,\n\n argpm = dsinit_parameters.argpm,\n inclm = dsinit_parameters.inclm,\n mm = dsinit_parameters.mm,\n nm = dsinit_parameters.nm,\n nodem = dsinit_parameters.nodem,\n irez = dsinit_parameters.irez,\n atime = dsinit_parameters.atime,\n\n d2201 = dsinit_parameters.d2201,\n d2211 = dsinit_parameters.d2211,\n d3210 = dsinit_parameters.d3210,\n d3222 = dsinit_parameters.d3222,\n d4410 = dsinit_parameters.d4410,\n d4422 = dsinit_parameters.d4422,\n\n d5220 = dsinit_parameters.d5220,\n d5232 = dsinit_parameters.d5232,\n d5421 = dsinit_parameters.d5421,\n d5433 = dsinit_parameters.d5433,\n\n dedt = dsinit_parameters.dedt,\n didt = dsinit_parameters.didt,\n dmdt = dsinit_parameters.dmdt,\n dnodt = dsinit_parameters.dnodt,\n domdt = dsinit_parameters.domdt,\n\n del1 = dsinit_parameters.del1,\n del2 = dsinit_parameters.del2,\n del3 = dsinit_parameters.del3,\n\n xfact = dsinit_parameters.xfact,\n xlamo = dsinit_parameters.xlamo,\n xli = dsinit_parameters.xli,\n xni = dsinit_parameters.xni;\n\n var f220, f221, f311, f321, f322, f330, f441, f442, f522, f523, f542, f543;\n var g200, g201, g211, g300, g310, g322, g410, g422, g520, g521, g532, g533;\n var sini2, temp, temp1, theta, xno2,\n ainv2, aonv, cosisq, eoc;\n\n var q22 = 1.7891679e-6;\n var q31 = 2.1460748e-6;\n var q33 = 2.2123015e-7;\n var root22 = 1.7891679e-6;\n var root44 = 7.3636953e-9;\n var root54 = 2.1765803e-9;\n var rptim = 4.37526908801129966e-3; // equates to 7.29211514668855e-5 rad/sec\n var root32 = 3.7393792e-7;\n var root52 = 1.1428639e-7;\n var x2o3 = 2.0 / 3.0;\n var znl = 1.5835218e-4;\n var zns = 1.19459e-5;\n\n\n // -------------------- deep space initialization ------------\n irez = 0;\n if (0.0034906585 < nm < 0.0052359877){\n irez = 1;\n }\n if (8.26e-3 <= nm <= 9.24e-3 && em >= 0.5){\n irez = 2;\n }\n\n // ------------------------ do solar terms -------------------\n var ses = ss1 * zns * ss5;\n var sis = ss2 * zns * (sz11 + sz13);\n var sls = -zns * ss3 * (sz1 + sz3 - 14.0 - 6.0 * emsq);\n var sghs= ss4 * zns * (sz31 + sz33 - 6.0);\n var shs = -zns * ss2 * (sz21 + sz23);\n\n // sgp4fix for 180 deg incl\n if (inclm < 5.2359877e-2 || inclm > pi - 5.2359877e-2){\n shs = 0.0;\n }\n if (sinim !== 0.0){\n shs = shs / sinim;\n }\n var sgs = sghs - cosim * shs;\n\n // ------------------------- do lunar terms ------------------\n dedt = ses + s1 * znl * s5;\n didt = sis + s2 * znl * (z11 + z13);\n dmdt = sls - znl * s3 * (z1 + z3 - 14.0 - 6.0 * emsq);\n var sghl = s4 * znl * (z31 + z33 - 6.0);\n var shll = -znl * s2 * (z21 + z23);\n // sgp4fix for 180 deg incl\n if ((inclm < 5.2359877e-2) || (inclm > (pi - 5.2359877e-2))){\n shll = 0.0;\n }\n domdt = sgs + sghl;\n dnodt = shs;\n if (sinim !== 0.0){\n domdt = domdt - cosim / sinim * shll;\n dnodt = dnodt + shll / sinim;\n }\n\n\n // ----------- calculate deep space resonance effects --------\n var dndt = 0.0;\n theta = (gsto + tc * rptim) % twopi;\n em = em + dedt * t;\n inclm = inclm + didt * t;\n argpm = argpm + domdt * t;\n nodem = nodem + dnodt * t;\n mm = mm + dmdt * t;\n\n // sgp4fix for negative inclinations\n // the following if statement should be commented out\n //if (inclm < 0.0)\n // {\n // inclm = -inclm;\n // argpm = argpm - pi;\n // nodem = nodem + pi;\n // }\n\n\n // -------------- initialize the resonance terms -------------\n if (irez !== 0) {\n aonv = Math.pow(nm / xke, x2o3);\n // ---------- geopotential resonance for 12 hour orbits ------\n if (irez === 2) {\n cosisq = cosim * cosim;\n var emo= em;\n em = ecco;\n var emsqo = emsq;\n emsq = eccsq;\n eoc = em * emsq;\n g201 = -0.306 - (em - 0.64) * 0.440;\n\n if (em <= 0.65){\n g211 = 3.616 - 13.2470 * em + 16.2900 * emsq;\n g310 = -19.302 + 117.3900 * em - 228.4190 * emsq + 156.5910 * eoc;\n g322 = -18.9068 + 109.7927 * em - 214.6334 * emsq + 146.5816 * eoc;\n g410 = -41.122 + 242.6940 * em - 471.0940 * emsq + 313.9530 * eoc;\n g422 = -146.407 + 841.8800 * em - 1629.014 * emsq + 1083.4350 * eoc;\n g520 = -532.114 + 3017.977 * em - 5740.032 * emsq + 3708.2760 * eoc;\n }\n else {\n g211 = -72.099 + 331.819 * em - 508.738 * emsq + 266.724 * eoc;\n g310 = -346.844 + 1582.851 * em - 2415.925 * emsq + 1246.113 * eoc;\n g322 = -342.585 + 1554.908 * em - 2366.899 * emsq + 1215.972 * eoc;\n g410 = -1052.797 + 4758.686 * em - 7193.992 * emsq + 3651.957 * eoc;\n g422 = -3581.690 + 16178.110 * em - 24462.770 * emsq + 12422.520 * eoc;\n if (em > 0.715) {\n g520 =-5149.66 + 29936.92 * em - 54087.36 * emsq + 31324.56 * eoc;\n }\n else {\n g520 = 1464.74 - 4664.75 * em + 3763.64 * emsq;\n }\n }\n if (em < 0.7) {\n g533 = -919.22770 + 4988.6100 * em - 9064.7700 * emsq + 5542.21 * eoc;\n g521 = -822.71072 + 4568.6173 * em - 8491.4146 * emsq + 5337.524 * eoc;\n g532 = -853.66600 + 4690.2500 * em - 8624.7700 * emsq + 5341.4 * eoc;\n }\n else{\n g533 =-37995.780 + 161616.52 * em - 229838.20 * emsq + 109377.94 * eoc;\n g521 =-51752.104 + 218913.95 * em - 309468.16 * emsq + 146349.42 * eoc;\n g532 =-40023.880 + 170470.89 * em - 242699.48 * emsq + 115605.82 * eoc;\n }\n sini2 = sinim * sinim;\n f220 = 0.75 * (1.0 + 2.0 * cosim+cosisq);\n f221 = 1.5 * sini2;\n f321 = 1.875 * sinim * (1.0 - 2.0 * cosim - 3.0 * cosisq);\n f322 = -1.875 * sinim * (1.0 + 2.0 * cosim - 3.0 * cosisq);\n f441 = 35.0 * sini2 * f220;\n f442 = 39.3750 * sini2 * sini2;\n f522 = 9.84375 * sinim * (sini2 * (1.0 - 2.0 * cosim- 5.0 * cosisq) +\n 0.33333333 * (-2.0 + 4.0 * cosim + 6.0 * cosisq) );\n f523 = sinim * (4.92187512 * sini2 * (-2.0 - 4.0 * cosim +\n 10.0 * cosisq) + 6.56250012 * (1.0+2.0 * cosim - 3.0 * cosisq));\n f542 = 29.53125 * sinim * (2.0 - 8.0 * cosim + cosisq *\n (-12.0 + 8.0 * cosim + 10.0 * cosisq));\n f543 = 29.53125 * sinim * (-2.0 - 8.0 * cosim+cosisq *\n ( 12.0 + 8.0 * cosim - 10.0 * cosisq));\n\n xno2 = nm * nm;\n ainv2 = aonv * aonv;\n temp1 = 3.0 * xno2 * ainv2;\n temp = temp1 * root22;\n d2201 = temp * f220 * g201;\n d2211 = temp * f221 * g211;\n temp1 = temp1 * aonv;\n temp = temp1 * root32;\n d3210 = temp * f321 * g310;\n d3222 = temp * f322 * g322;\n temp1 = temp1 * aonv;\n temp = 2.0 * temp1 * root44;\n d4410 = temp * f441 * g410;\n d4422 = temp * f442 * g422;\n temp1 = temp1 * aonv;\n temp = temp1 * root52;\n d5220 = temp * f522 * g520;\n d5232 = temp * f523 * g532;\n temp = 2.0 * temp1 * root54;\n d5421 = temp * f542 * g521;\n d5433 = temp * f543 * g533;\n xlamo = (mo + nodeo + nodeo - theta - theta) % twopi;\n xfact = mdot + dmdt + 2.0 * (nodedot + dnodt - rptim) - no;\n em = emo;\n emsq = emsqo;\n }\n // ---------------- synchronous resonance terms --------------\n if (irez === 1) {\n g200 = 1.0 + emsq * (-2.5 + 0.8125 * emsq);\n g310 = 1.0 + 2.0 * emsq;\n g300 = 1.0 + emsq * (-6.0 + 6.60937 * emsq);\n f220 = 0.75 * (1.0 + cosim) * (1.0 + cosim);\n f311 = 0.9375 * sinim * sinim * (1.0 + 3.0 * cosim) - 0.75 * (1.0 + cosim);\n f330 = 1.0 + cosim;\n f330 = 1.875 * f330 * f330 * f330;\n del1 = 3.0 * nm * nm * aonv * aonv;\n del2 = 2.0 * del1 * f220 * g200 * q22;\n del3 = 3.0 * del1 * f330 * g300 * q33 * aonv;\n del1 = del1 * f311 * g310 * q31 * aonv;\n xlamo = (mo + nodeo + argpo - theta) % twopi;\n xfact = mdot + xpidot - rptim + dmdt + domdt + dnodt - no;\n }\n // ------------ for sgp4, initialize the integrator ----------\n xli = xlamo;\n xni = no;\n atime = 0.0;\n nm = no + dndt;\n }\n var dsinit_results = {\n em : em,\n argpm : argpm,\n inclm : inclm,\n mm : mm,\n nm : nm,\n nodem : nodem,\n\n irez : irez,\n atime : atime,\n\n d2201 : d2201,\n d2211 : d2211,\n d3210 : d3210,\n d3222 : d3222,\n d4410 : d4410,\n\n d4422 : d4422,\n d5220 : d5220,\n d5232 : d5232,\n d5421 : d5421,\n d5433 : d5433,\n\n dedt : dedt,\n didt : didt,\n dmdt : dmdt,\n dndt : dndt,\n dnodt : dnodt,\n domdt : domdt,\n\n del1 : del1,\n del2 : del2,\n del3 : del3,\n\n xfact : xfact,\n xlamo : xlamo,\n xli : xli,\n xni : xni\n };\n return dsinit_results;\n}", "title": "" }, { "docid": "86389477dcaa9493ebffb0cb43905990", "score": "0.5074817", "text": "function Nevis() {}", "title": "" }, { "docid": "5aded07c280120003903a6f6d835b729", "score": "0.50708944", "text": "function Cluster(pos, molecs, cs){\r\n\r\n //number of smaller Clusters in the cluster to prevent desorption\r\n this.criticalSize = cs;\r\n\r\n //all of the molecule instances that make up the cluster\r\n this.molecules = [];\r\n if(molecs instanceof Array){\r\n for(i = 0; i < molecs.length; i++){\r\n this.molecules.push(molecs[i]);\r\n }\r\n }\r\n else{\r\n this.molecules.push(molecs);\r\n }\r\n\r\n //the calculated radius. it is \"immutable\".\r\n this.radius = 0;\r\n for(i = 0; i < this.molecules.length; i++){\r\n this.radius = addRadii(this.radius, this.molecules[i].radius,2);\r\n }\r\n\r\n //this is the actual graphic that is displayed\r\n this.circle = new Path.Circle({\r\n center: pos,\r\n radius: this.radius,\r\n fillColor: 'red'\r\n });\r\n\r\n\r\n //use this during a processing loop to flag it if it is to be removed\r\n this.keep = true;\r\n\r\n}", "title": "" }, { "docid": "328a86f6cb3d1c26d95de47351a70af0", "score": "0.50700074", "text": "function forceCluster() {\n let nodes;\n\n function force(alpha) {\n const l = alpha * strength;\n for (const d of nodes) {\n d.vx -= (d.x - groups[d.group].x) * l;\n d.vy -= (d.y - groups[d.group].y) * l;\n }\n }\n force.initialize = _ => nodes = _;\n\n return force;\n}", "title": "" }, { "docid": "3a8f82ced46f2fa838c1eb038705a7f3", "score": "0.5069927", "text": "function tick(e) {\n function collide(alpha) {\n var quadtree = d3.geom.quadtree().extent([[0, 0], [widthAvail, heightAvail]])(cluster_center);\n return function(d) {\n var r = d.radius * 2 + clusterPadding,\n nx1 = d.x - r,\n nx2 = d.x + r,\n ny1 = d.y - r,\n ny2 = d.y + r;\n quadtree.visit(function(quad, x1, y1, x2, y2) {\n if (quad.point && (quad.point !== d)) {\n var x = d.x - quad.point.x,\n y = d.y - quad.point.y,\n l = Math.sqrt(x * x + y * y),\n r = d.radius + quad.point.radius + clusterPadding;\n if (l < r) {\n l = (l - r) / l * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n quad.point.x += x;\n quad.point.y += y;\n }\n }\n return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1;\n });\n };\n }\n function cluster(alpha) {\n return function(d) {\n var cluster = cluster_center[d.group];\n var x = d.x - cluster.x,\n y = d.y - cluster.y,\n l = Math.sqrt(x * x + y * y);\n l *= alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n };\n }\n var cluster_center = [];\n nest.forEach(function(d) {\n var v = d.values;\n var x = 0;\n var y = 0;\n v.forEach(function(p) {\n x += p.x;\n y += p.y;\n });\n x /= v.length;\n y /= v.length;\n var dist = Number.MIN_VALUE;\n var des;\n v.forEach(function(p) {\n des = distance(p, [x, y]);\n if (dist < des)\n dist = des;\n });\n cluster_center[d.key] = {group: d.key, x: x, y: y, radius: dist + 5};\n });\n cluster_center.forEach(collide(3 * e.alpha));\n nodes\n .each(cluster(e.alpha * .01))\n .attr('cx', function(d) {\n return d.x;\n })\n .attr('cy', function(d) {\n return d.y;\n });\n links\n .attr('x1', function(d) {\n return d.source.x;\n })\n .attr('y1', function(d) {\n return d.source.y;\n })\n .attr('x2', function(d) {\n return d.target.x;\n })\n .attr('y2', function(d) {\n return d.target.y;\n });\n clusters.data(cluster_center)\n .attr('cx', function(d) {\n return d.x;\n })\n .attr('cy', function(d) {\n return d.y;\n })\n .style('stroke', function(d) {\n return color(d.group);\n })\n .attr('r', function(d) {\n return d.radius;\n });\n }", "title": "" }, { "docid": "fbd8e405b4be02299671b21ae70aa742", "score": "0.5068457", "text": "function threeClustersData2d(n) {\n var points = [];\n for (var i = 0; i < n; i++) {\n points.push(new Point([normal(),\n normal()], '#039'));\n points.push(new Point([10 + normal(),\n normal()], '#f90'));\n points.push(new Point([50 + normal(),\n normal()], '#6a3'));\n }\n return points;\n}", "title": "" }, { "docid": "b1b4774a88087ab528cd1d1ef986d1b4", "score": "0.5052757", "text": "function sceneGraphTraversal(s, node, mvMatrix, scene){\n if ('children' in node) { // check if we need this\n for (var c = 0; c < node.children.length; c++) {//for each child in node.children\n if ('mesh' in node.children[c]){ // check if node is dummy: if not dummy node, it will have a mesh object\n var mesh = node.children[c].mesh; // access the mesh object\n for (var f = 0; f < mesh.faces.length; f++){ //loop through the array of its faces\n var face = mesh.faces[f]; // pointer to face\n if (face == s.genFace) { //if face is the face that generated the source\n continue; //Don't reflect with the face (you'll get parent image)\n }\n var vertices = face.getVerticesPos(); //get all vertices for a 'face' in NCS\n // Convert vertices from NCS to WCS:\n var nextmvMatrix = mat4.create(); //Allocate transformation matrix\n mat4.mul(nextmvMatrix, mvMatrix, node.children[c].transform); //Calculate transformation matrix based on hierarchy\n var wc_vertices = []; //Make a new array that will contains vertices (vec3s) in WCS\n for (var v=0; v<vertices.length; v++){\n var wc_vertex= vec3.create(); //allocate a vector for the transfromed vertex\n vec3.transformMat4(wc_vertex, vertices[v], nextmvMatrix);\n wc_vertices.push(wc_vertex);\n };\n //Create the mirror image across each face (plane): s' = s - (2(s-p) dot n )*n ; IF n is normalized\n //calculate plane normal and normalize\n var u1 = vec3.create(); //allocate a vector \"u1\" (vertex 1 to vertex 2)\n var u2 = vec3.create(); //allocate a vector \"u2\" (vertex 1 to vertex 3)\n vec3.subtract(u1, wc_vertices[1], wc_vertices[0]); //calculate the vector\n vec3.subtract(u2, wc_vertices[2], wc_vertices[0]); //calculate the vector\n var norm = vec3.create(); //allocate a vector for the plane normal\n vec3.cross(norm, u1, u2); //calculate plane normal using cross product\n var n = vec3.create();\n vec3.normalize(n, norm); // normalize n\n var p = wc_vertices[0]; // point p on the plane; arbitrarily a vertex\n var vecPS = vec3.create();\n vec3.subtract(vecPS, s.pos, p); // (s-p)\n var dp = 2*vec3.dot(vecPS, n); // (2(s-p) dot n )\n var dpn = vec3.create();\n vec3.scale(dpn, n, dp); //(2(s-p) dot n )*n\n var src = vec3.create(); // s'\n vec3.subtract(src, s.pos, dpn);\n // create image source and fill in fields apropriately\n var imgSrc = {pos:src, order: (s.order + 1), parent:s, genFace:face, rcoeff:s.rcoeff};\n scene.imsources.push(imgSrc); // add source to scene.imsources array\n }\n }\n else{ // node is dummy (no mesh object) -- update transformation matrix\n var nextmvMatrix = mat4.create(); //Allocate transformation matrix\n mat4.mul(nextmvMatrix, mvMatrix, node.children[c].transform); // update transformation matrix\n }\n sceneGraphTraversal(s, node.children[c], nextmvMatrix, scene); // recursive call on child\n }\n }\n}", "title": "" }, { "docid": "b598d4a7a61fed20307a0ec5e623579d", "score": "0.50465494", "text": "function forceCluster() {\n var strength = 0.5;\n let nodes;\n\n function force(alpha) {\n centroids = d3.rollup(nodes, centroid, d => d.subgraph);\n\n const l = alpha * strength;\n for (const d of nodes) {\n const {x: cx, y: cy} = centroids.get(d.subgraph);\n d.vx -= (d.x - cx) * l;\n d.vy -= (d.y - cy) * l;\n }\n }\n\n force.initialize = _ => nodes = _;\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n return force;\n}", "title": "" }, { "docid": "da3681839665f01c17508bcd4205b419", "score": "0.5039347", "text": "function i(e,t){e.getMarkerClusterer().extend(i,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}", "title": "" }, { "docid": "da3681839665f01c17508bcd4205b419", "score": "0.5039347", "text": "function i(e,t){e.getMarkerClusterer().extend(i,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}", "title": "" }, { "docid": "a5e02515ea4c602f1749897528152b9d", "score": "0.50381374", "text": "function createClusters(treeString){\n var level = treeString.length;\n drawCluster(clusters.centroid, \"Centroid\", level, treeString);\n if(clusters.hasOwnProperty(\"left\")){\n drawCluster(clusters.left.centroid, \"Left\", level+1, treeString + \"0\");\n }\n if(clusters.hasOwnProperty(\"right\")){\n drawCluster(clusters.right.centroid, \"Right\", level+1, treeString + \"1\");\n }\n}", "title": "" }, { "docid": "ae1d656413b4453f85238be930be300d", "score": "0.50285226", "text": "function i(t,e){t.getMarkerClusterer().extend(i,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}", "title": "" }, { "docid": "ae1d656413b4453f85238be930be300d", "score": "0.50285226", "text": "function i(t,e){t.getMarkerClusterer().extend(i,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}", "title": "" }, { "docid": "73acde74ae20cc3a35f1e8ea2d296270", "score": "0.50186366", "text": "function subsetClustersData(n, dim) {\n dim = dim || 2;\n var points = [];\n for (var i = 0; i < n; i++) {\n var p1 = normalVector(dim);\n points.push(new Point(p1, '#039'));\n var p2 = normalVector(dim);\n scale(p2, 50);\n points.push(new Point(p2, '#f90'));\n }\n return points;\n}", "title": "" }, { "docid": "7c9d4388020311e4a3bc1220bee00218", "score": "0.50084627", "text": "function create_tsm(wr, rank_info, format, protected_tiers){\n\tvar rows = []\n\tvar steps = (format == 'Limited' ? rank_info['lstep'] : rank_info['cstep'])\n\tvar w = rank_info['win']\n\tvar l = rank_info['loss']\n\tvar total_nodes = steps * 4 + 3 * protected_tiers\n\tconsole.log(total_nodes)\n\tvar ret = math.zeros(total_nodes, total_nodes)\n\tcur_node = 0\n\tfor (var t = 0; t < 4; t++){\n\t\t//handle tier protection\n\t\tif(t > 0){\n\t\t\tfor (var p = 0; p < protected_tiers; p++){\n\n\t\t\t}\n\t\t}\n\t\tfor (var s = 0; s < steps; s++){\n\t\t}\n\t}\n}", "title": "" }, { "docid": "22d0b47812cb2735e48956e6a5950cea", "score": "0.5006034", "text": "function cluster(alpha) {\n return function(d) {\n var cluster = clusters[d.cluster];\n if (cluster === d) {\n return;\n }\n var x = d.x - cluster.x,\n y = d.y - cluster.y,\n l = Math.sqrt(x * x + y * y),\n r = d.radius + cluster.radius;\n if (l !== r) {\n l = (l - r) / l * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n cluster.x += x;\n cluster.y += y;\n }\n };\n }", "title": "" }, { "docid": "f991b5bd1cd4f2cdc4539985e3b1faab", "score": "0.50027305", "text": "function threeClustersData(n, dim) {\n dim = dim || 50;\n var points = [];\n for (var i = 0; i < n; i++) {\n var p1 = normalVector(dim);\n points.push(new Point(p1, '#039'));\n var p2 = normalVector(dim);\n p2[0] += 10;\n points.push(new Point(p2, '#f90'));\n var p3 = normalVector(dim);\n p3[0] += 50;\n points.push(new Point(p3, '#6a3'));\n }\n return points;\n}", "title": "" }, { "docid": "30fc9ba787ff18aafedb3a8f38d00427", "score": "0.50025845", "text": "function som(where, width, height, pixelData, borderData, clusterData) {\n // **** object attributes follow **** //\n this.where = where;\n this.width = width;\n this.height = height;\n this.borderColor = flickrPink;\n \n // pixel data should be a 2d array of pixel intensities\n this.pixelData = pixelData;\n \n // these variables allow caching of the strings\n // used with d3 to change the border colors, improving\n // redraw speed by about 30%. border data should be\n // a 3d array where the first index is the number of clusters-1\n this.borderData = borderData;\n this.borderStrings = {};\n \n // clusters data should be a 3d array where the first index\n // is the number of clusters-1. value of any entry is the\n // cluster assignment.\n this.clusterData = clusterData;\n\n // **** object methods follow ***** //\n this.create = function () {\n // creates the SOM svg\n d3.select('#'+this.where)\n .append(\"svg\")\n .attr(\"id\", this.where+'-svg')\n .attr(\"width\", this.width)\n .attr(\"height\", this.height);\n \n d3.select(\"#\"+this.where+'-svg')\n .append(\"g\")\n .attr(\"id\", this.where+'-rectGroup');\n \n // precalculate the border information for\n // speedy scrubbing\n this._precalculateOutlines();\n \n // draw the som\n this.draw(this.pixelData);\n };\n \n // helper function for precalculateOutlines\n this._buildOutlineString = function (data, label) {\n\n var tops = '', // track cells with top border\n rights = '', // track cells with right border\n bottoms = '', // track cells with bottom border\n lefts = '', // track cells with left border\n topCodes = [4,5,6,7,12,13,14,15], // codes indicating a top border\n rightCodes = [1,3,5,7,9,11,13,15], // codes indicating a right border\n bottomCodes = [8,9,10,11,12,13,14,15], // codes indicating a bottom border\n leftCodes = [2,3,6,7,10,11,14,15], // codes indicating a left border\n i, j, // loop variables\n v, d; // string building\n \n for (i = 0; i < data.length; i++) {\n for (j = 0; j < data[i].length; j++) {\n v = data[i][j];\n if (v > 0) {\n d = ',#som_row'+i+'_col'+j;\n if (topCodes.indexOf(v) > -1) {\n tops = tops+d;\n }\n if (rightCodes.indexOf(v) > -1) {\n rights = rights+d;\n }\n if (bottomCodes.indexOf(v) > -1) {\n bottoms = bottoms+d;\n }\n if (leftCodes.indexOf(v) > -1) {\n lefts = lefts+d;\n }\n }\n }\n }\n \n this.borderStrings[label] = {\n 'tops':tops.slice(1),\n 'rights':rights.slice(1),\n 'bottoms':bottoms.slice(1),\n 'lefts':lefts.slice(1)};\n };\n \n // precalculate outline strings used by d3 to\n // change cluster outline status\n this._precalculateOutlines = function () {\n var k; // loop var\n for (k = 0; k < this.borderData.length; k++) {\n this._buildOutlineString(this.borderData[k],k.toString());\n }\n // don't need this anymore; free up some memory\n delete this.borderData;\n };\n \n // change the opacity of the border elements to indicate\n // cluster assignments\n this.outline = function(borderIndex) {\n // borderNumber is the key to borderStrings which\n // stores the precalculated strings used by d3 to\n // alter the outlining rect elements. should be\n // an integer or a string\n \n // further performance could be achieved in this\n // operation if we instead had pre-calculated list of\n // CHANGES when transitioning from one set of clusters\n // to another.\n \n var s; // border string\n\n // select all the borders in the SOM and deselect\n d3.selectAll(\"#\"+this.where).selectAll(\".border\").style(\"fill-opacity\", 0);\n \n // select borders by side and style\n s = this.borderStrings[borderIndex.toString()];\n d3.selectAll(s.tops).selectAll(\".top\").style(\"fill-opacity\", 1);\n d3.selectAll(s.rights).selectAll(\".right\").style(\"fill-opacity\", 1);\n d3.selectAll(s.bottoms).selectAll(\".bottom\").style(\"fill-opacity\", 1);\n d3.selectAll(s.lefts).selectAll(\".left\").style(\"fill-opacity\", 1);\n };\n \n // draw DOM/SVG elements\n this.draw = function (cellData) {\n // data should be a 2d list of intensities\n // assume an equal number of columns in each row\n this.scaleY = this.height/cellData.length;\n this.scaleX = this.width/cellData[0].length;\n \n var x1 = this.scaleX-1,\n y1 = this.scaleY-1,\n x2 = this.scaleX-2,\n y2 = this.scaleY-2,\n rectList = [],\n bc = this.borderColor,\n v, k, l, cs, borders;\n\n // build strings specifying cell data (positions, colors, ids)\n for (k = 0; k < cellData.length; k++) {\n for (l = 0; l < cellData[k].length; l++) {\n v = 255-cellData[k][l];\n rectList.push({'t':'translate('+this.scaleX*l+','+this.scaleY*k+')',\n 'id':'som_row'+k+'_col'+l,\n 'v':v,\n 'b':'rgb('+v+','+v+','+v+')'});\n }\n }\n\n // remove old rects\n d3.select('#'+this.where+'-rectGroup').selectAll('g').remove();\n\n // draw new rects. each cell in the SOM is a group of 9\n // rectangles: the big body pixel and the border pixels\n d3.select('#'+this.where+'-rectGroup').selectAll('g')\n .data(rectList)\n .enter()\n .append('g')\n .attr('id', function (d) {return d.id;})\n .attr('transform', function (d) {return d.t;})\n .attr(\"data-selected\", false)\n .attr(\"data-v\", function (d) {return d.v;})\n .classed(\"somcell\", true);\n\n cs = d3.selectAll(\".somcell\");\n \n // this is the main body rectangle\n cs.append('rect')\n .attr(\"x\", 0)\n .attr(\"y\", 0)\n .attr(\"width\", this.scaleX)\n .attr(\"height\", this.scaleY)\n .attr(\"fill\", function (d) {return d.b;})\n .attr(\"fill-opacity\", 1)\n .classed(\"center\", true);\n\n // these are the border rectangles; to outline a border,\n // we select by id and class and change fill opacity.\n // for example, this colors top borders of two cells:\n // d3.selectAll(\"#rowX_colY, #rowA_colB\").selectAll(\".top\").style(\"fill-opacity\",1)\n borders = [\n {'x':1, 'y':0, 'w':x2,'h':1, 'c':\"border top\"},\n {'x':x1,'y':1, 'w':1, 'h':y2,'c':\"border right\"},\n {'x':1, 'y':y1,'w':x2,'h':1, 'c':\"border bottom\"},\n {'x':0, 'y':1, 'w':1, 'h':y2,'c':\"border left\"},\n {'x':0, 'y':0, 'w':1, 'h':1, 'c':\"border top left\"},\n {'x':x1,'y':0, 'w':1, 'h':1, 'c':\"border top right\"},\n {'x':x1,'y':y1,'w':1, 'h':1, 'c':\"border bottom right\"},\n {'x':0, 'y':y1,'w':1, 'h':1, 'c':\"border bottom left\"}];\n\n $.map(borders, function(d,i) {\n cs.append('rect')\n .attr(\"x\", d.x)\n .attr(\"y\", d.y)\n .attr(\"width\", d.w)\n .attr(\"height\", d.h)\n .style(\"fill\", bc)\n .style(\"fill-opacity\", 0)\n .classed(d.c, true);\n });\n \n // attach a click action to the groups\n $('#'+this.where).on('click','.somcell', this.clickCallback);\n \n };\n \n // assign values to data-clusters attribute fields of som groups\n this.assignClusters = function(clustersIndex) {\n\n d3.selectAll(\".somcell\").attr(\"data-cluster\",null);\n\n var cdata = this.clusterData[clustersIndex],\n cells = [],\n d,v,i,j;\n \n for (i = 0; i < cdata.length; i++){\n for (j = 0; j < cdata[i].length; j++){\n d = '#som_row'+i+'_col'+j;\n v = cdata[i][j];\n cells.push([d,v]);\n }\n }\n $.map(cells, function (v,i) {$(v[0]).attr('data-cluster',v[1]);});\n };\n \n this.clusterSelectDeselect = function (cluster) {\n \n var p,\n ds,\n color,\n selected,\n _coloring = function (t,d) {\n // recolors selected elements; also marks a change in\n // the data-selected attribute of the parent\n p = d3.select(t.parentNode);\n ds = p.attr(\"data-selected\");\n if (ds === 'false') {\n color = d3.rgb('hsl(211, 60%,'+100.0*d.v/255*0.8+'%)');\n selected = 'true';\n } else {\n color = \"rgb(\"+d.v+','+d.v+','+d.v+\")\";\n selected = 'false';\n }\n p.attr(\"data-selected\",selected);\n return color;\n };\n \n // if clusters have been assigned, select every pixel\n // that is in the same cluster as this one. recolor them.\n d3.selectAll(\"[data-cluster='\"+cluster+\"']\")\n .select(\".center\")\n .attr(\"fill\", function (d) {return _coloring(this, d);});\n };\n\n // define the behavior that results from clicking on a pixel \n this.clickCallback = function() {\n //selectCluster($(this).data('cluster')) <-- this breaks!\n selectCluster(parseInt(d3.select(this).attr(\"data-cluster\")));\n };\n}", "title": "" }, { "docid": "69b0a807176ec69bc1487e33bc53090a", "score": "0.50019956", "text": "function make_d3_clustergram(network_data) {\n\n\n // remove old visualization\n ////////////////////////////////\n d3.select(\"#main_svg\").remove();\n\n // initialize clustergram variables \n initialize_clustergram(network_data)\n\n // // display col and row title \n // d3.select('#row_title').style('display','block');\n // d3.select('#col_title').style('display','block');\n\n // // toggle sidebar to make more space for visualization\n // d3.select('#wrapper').attr('class','toggled');\n\n // // display clustergram_container and clust_instruct_container\n // d3.select('#clustergram_container').style('display','block');\n // d3.select('#clust_instruct_container').style('display','block');\n\n // // shift the footer left\n // d3.select('#footer_div')\n // .style('margin-left','0px');\n\n // define the variable zoom, a d3 method \n zoom = d3.behavior.zoom().scaleExtent([1,real_zoom*zoom_switch]).on('zoom',zoomed);\n // initialize matrix\n /////////////////////////\n matrix = [] ;\n \n // initialize matrix \n row_nodes.forEach( function(tmp,i) {\n matrix[i] = d3.range(col_nodes.length).map(function(j) { return {pos_x: j, pos_y: i, value:0, group:0}; });\n }); \n\n // Add information to the matrix\n network_data.links.forEach( function(link) {\n // transfer link information to the new adj matrix\n matrix[link.source][link.target].value = link.value;\n // transfer group information to the adj matrix \n matrix[link.source][link.target].group = 1;\n // transfer color \n matrix[link.source][link.target].color = link.color;\n });\n\n // make clustergram visualization \n ///////////////////////////////////////\n\n // initailize clust_group with id clust_group\n clust_group = d3.select(\"#svg_div\")\n .append(\"svg\")\n .attr('id', 'main_svg')\n .attr(\"width\", svg_width + margin.left + margin.right + spillover_x_offset)\n .attr(\"height\", svg_height + margin.top + margin.bottom)\n .attr('border',1)\n .call( zoom ) \n .append(\"g\")\n .attr('id', 'clust_group')\n .attr(\"transform\", \"translate(\" + (margin.left) + \",\" + (margin.top) + \")\");\n\n // grey background rect for clustergram \n d3.select('#clust_group')\n .append(\"rect\")\n .attr(\"class\", \"background\")\n .attr('id','grey_background')\n .attr(\"width\", svg_width)\n .attr(\"height\", svg_height);\n\n // make rows \n // use matrix for the data join, which contains a two dimensional \n // array of objects, each row of this matrix will be passed into the row function \n var row_obj = clust_group.selectAll(\".row\")\n .data(matrix)\n .enter()\n .append(\"g\")\n .attr(\"class\", \"row\")\n .attr(\"transform\", function(d, i) { return \"translate(0,\" + y_scale(i) + \")\"; })\n .each( row_function );\n\n // white lines in clustergram \n /////////////////////////////////\n\n // horizontal lines\n row_obj.append('line')\n .attr('x2', 20*svg_width)\n .style('stroke-width', border_width/zoom_switch+'px')\n\n // append vertical line groups \n vert_lines = clust_group\n .selectAll('.vert_lines')\n .data(col_nodes)\n .enter()\n .append('g')\n .attr('class','vert_lines')\n .attr('transform', function(d,i){ return 'translate(' + x_scale(i) + ') rotate(-90)'; })\n\n // add vertical lines \n vert_lines\n .append('line')\n .attr('x1',0)\n .attr('x2',-20*svg_height)\n .style('stroke-width', border_width+'px')\n\n\n // row labels \n //////////////////////////////////\n\n // white background rect for row labels\n d3.select('#main_svg')\n .append('rect')\n .attr('fill', 'white')\n .attr('width', row_label_width+'px')\n .attr('height', '3000px')\n .attr('class','white_bars');\n\n // append group for row labels \n d3.select('#main_svg')\n .append(\"g\")\n .attr('id', 'row_labels')\n .attr(\"transform\", \"translate(\" + row_margin.left + \",\" + row_margin.top + \")\")\n\n // generate and position the row labels\n var row_label_obj = d3.select('#row_labels')\n .selectAll('.row_label_text')\n .data(row_nodes)\n .enter()\n .append('g')\n .attr('class','row_label_text')\n .attr('transform', function(d, i) { return \"translate(0,\" + y_scale(i) + \")\"; })\n .on('click', reorder_click_row );\n\n // append row label text \n row_label_obj.append('text')\n // !! this will be fixed once I have separate x and y scales \n // !! can be improved \n .attr('y', y_scale.rangeBand()/2 )\n .attr('dy', y_scale.rangeBand()/4)\n .attr('text-anchor','end')\n .style('font-size',default_fs_row+'px')\n .text(function(d, i) { return d.name; } )\n\n\n // col labels \n //////////////////////////////////\n\n // white background rect for col labels \n d3.select('#main_svg')\n .append('rect')\n .attr('fill', 'white')\n .attr('height', col_label_width+'px')\n .attr('width', '3000px')\n .attr('class','white_bars');\n\n // append group for column labels \n d3.select('#main_svg')\n .append(\"g\")\n .attr('id', 'col_labels')\n .attr(\"transform\", \"translate(\" + col_margin.left + \",\" + col_margin.top + \")\");\n\n // offset click group column label \n x_offset_click = x_scale.rangeBand()/2 + border_width\n // reduce width of rotated rects\n reduce_rect_width = x_scale.rangeBand()* 0.36 \n\n // add main column label group \n col_label_obj = d3.select('#col_labels')\n .selectAll(\".col_label_text\")\n .data(col_nodes)\n .enter()\n .append(\"g\")\n .attr(\"class\", \"col_label_text\")\n .attr(\"transform\", function(d, i) { return \"translate(\" + x_scale(i) + \") rotate(-90)\"; })\n\n // append group for individual column label \n col_label_click = col_label_obj\n // append new group for rect and label (not white lines)\n .append('g')\n .attr('class','col_label_click')\n // rotate column labels \n .attr('transform', 'translate('+x_scale.rangeBand()/2+','+ x_offset_click +') rotate(45)')\n .on('click', reorder_click_col );\n\n // add column label \n col_label_click\n .append(\"text\")\n .attr(\"x\", 0)\n .attr(\"y\", x_scale.rangeBand() / 2)\n .attr('dx',2*border_width)\n // .attr(\"dy\", \".32em\")\n .attr(\"text-anchor\", \"start\")\n .attr('full_name',function(d) { return d.name } )\n .style('font-size',default_fs_col+'px')\n .text(function(d, i) { return d.name; });\n\n // add triangle under rotated labels\n col_label_click\n .append('path')\n .style('stroke-width',0)\n .attr('d', function(d) { \n // x and y are flipped since its rotated \n origin_y = - border_width\n start_x = 0;\n final_x = x_scale.rangeBand() - reduce_rect_width ;\n start_y = -(x_scale.rangeBand() - reduce_rect_width + border_width) ;\n final_y = -border_width;\n output_string = 'M '+origin_y+',0 L ' + start_y + ',' + start_x + ', L ' + final_y + ','+final_x+' Z';\n return output_string;\n })\n .attr('fill','#eee')\n\n //add mouse over effect to column labels\n // col_label_click\n col_label_click\n .on('mouseover', function(p){\n d3.selectAll(\".col_label_text text\").classed(\"active\", function(d, i) { return i == p.sort; });\n var column_name = p.name;\n var study_index = column_name.split(',')[1];\n // console.log(column_name);\n // console.log(column_name);\n var study_info = global_study_data.data[Number(study_index)];\n // console.log(study_info);\n // creat an arrary of objects that will be inserted into a div on the html\n var info_array = [\"<b>GSE#: </b> \" + study_info.GSE_number + ',' + study_index,\n \"<b>Organism: </b>\" + study_info.organism,\n \"<b>Tissue: </b>\" + study_info.tissue_type,\n \"<b>Perturbation: </b>\" + study_info.perturbation,\n \"<b>Age: </b>\" + study_info.Age_of_organism,\n \"<b>Description: </b>\" + study_info.study_description]; \n var holder = d3.select('.study-info-div');\n holder.selectAll('p').remove();\n holder.selectAll('p')\n .data(info_array)\n .enter().append('p')\n .html(function(d){return d}); \n });\n\n\n // Rects to hide spillover \n ///////////////////////////////\n\n // white rect to cover excess labels \n d3.select('#main_svg')\n .append('rect')\n .attr('fill', 'white')\n .attr('width', row_label_width+'px')\n .attr('height', col_label_width+'px')\n .attr('id','top_left_white');\n\n\n // hide spillover from right\n d3.select('#main_svg')\n .append('rect')\n .attr('fill', 'white')\n .attr('width', '200px')\n .attr('height', '3000px')\n .attr('transform', function() { \n tmp_left = margin.left + svg_width;\n // compensate for margin\n tmp_top = margin.top - 5;\n return 'translate('+tmp_left+','+tmp_top+')'\n })\n .attr('class','white_bars');\n\n // hide spillover from slanged column labels\n d3.select('#main_svg')\n .append('path')\n .style('stroke-width','0')\n // mini-language for drawing path in d3, used to draw triangle \n .attr('d', 'M 0,0 L 500,-500, L 500,0 Z')\n .attr('fill','white')\n .attr('id','slant_traingle')\n .attr('transform', function(){\n tmp_left = (margin.left + svg_width );\n tmp_top = col_label_width ; \n return 'translate('+tmp_left+','+tmp_top+')' \n })\n\n\n // initialize zoom and translate \n ///////////////////////////////////\n\n // initialize translate vector to compensate for label margins \n zoom.translate([ margin.left, margin.top]);\n\n // // resize window \n // d3.select(window).on('resize', timeout_resize); \n\n // disable double-click zoom: double click should reset zoom level \n // do this for all svg elements \n d3.selectAll(\"svg\").on(\"dblclick.zoom\", null); \n\n // add double click zoom reset\n d3.select('#main_svg')\n .on('dblclick', function() { \n\n console.log('double clicking')\n \n // reset adj zoom \n d3.select('#clust_group')\n .attr(\"transform\", \"translate(\" + (margin.left) + \",\" + (margin.top) + \")\");\n // reset column label zoom \n d3.select('#col_labels')\n .attr(\"transform\", \"translate(\" + col_margin.left + \",\" + col_margin.top + \")\");\n // reset row label zoom \n d3.select('#row_labels')\n .attr(\"transform\", \"translate(\" + row_margin.left + \",\" + row_margin.top + \")\");\n \n // use Qiaonan method to reset zoom \n zoom.scale(1).translate([margin.left, margin.top]);\n\n // reset the font size because double click zoom is not disabled\n d3.selectAll('.row_label_text').select('text').style('font-size', default_fs_row+'px');\n d3.selectAll('.col_label_text').select('text').style('font-size', default_fs_col+'px');\n\n // reset the heights of the bars\n // recalculate the original heights\n col_label_obj.select('rect')\n // column is rotated - effectively width and height are switched\n .attr('width', function(d,i) { return bar_scale_col( d.nl_pval ); })\n .attr('transform', function(d, i) { return \"translate(0,0)\"; });\n\n });\n}", "title": "" }, { "docid": "13ac913fc0d15fd07b1fd5db566adac4", "score": "0.4995042", "text": "function Update() {\n\t/*\n\tif (!NetworkController.isPaused){\n\t\t\n\t\tvar index = 0; \n\t\tfor (var leader in leaders){\n\t\t\t//loop over all nodes from the current key and find the shortest distance to the leader node.\n\t\t\t\n\t\t\tvar this_cluster_id = leaders[index].cluster_id;\t\n\n\t\t\tvar target_index1 = ( index+leaders.length/3 ) % leaders.length; \n\t\t\tvar target_index2 = ( index+leaders.length*2/3) % leaders.length;\n\t\t\tvar target_indices = new Array();\n\t\t\ttarget_indices.Push(target_index1);\n\t\t\ttarget_indices.Push(target_index2);\n\t\t\tfor (target_index in target_indices){\n\t\t\t\tvar target_cluster_id = leaders[target_index].cluster_id;\n\t\t\t\tvar target = group_dict[target_cluster_id][0].transform.position; //the node to which they will be measuring the distance.\n\t\t\t\t\n\t\t\t\tvar total_dist : float= 0;\n\t\t\t\tvar total_direction = Vector3.zero;\n\t\t\t\t\n\t\t\t\tfor (var node in group_dict[this_cluster_id]){\n\t\t\t\t\tvar this_dist = Vector3.Distance(node.transform.position, target);\n\t\t\t\t\ttotal_dist += this_dist;\n\t\t\t\t\ttotal_direction += (target - node.transform.position);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tvar average_dist = total_dist / group_dict[this_cluster_id].Count;\n\t\t\t\tvar direction = total_direction.normalized;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\taverage_dist -= preferred_distance; //distance between groups.\n\t\t\t\t\n\t\t\t\t//loop over them again to move all nodes the same distance\n\t\t\t\tfor (var node in group_dict[this_cluster_id]){\n\t\t\t\t\tnode.transform.position += direction*average_dist/100*NetworkController.gameSpeed;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\t\n\t\t\t\t\n\t}*/\n}", "title": "" }, { "docid": "d74bacb0803fd3e85f2e48783b50acf0", "score": "0.49935508", "text": "addTerminiLabels(atoms) {\n var ic = this.icn3d,\n me = ic.icn3dui\n let size = 18\n let background = '#CCCCCC'\n let protNucl\n protNucl = me.hashUtilsCls.unionHash(protNucl, ic.proteins)\n protNucl = me.hashUtilsCls.unionHash(protNucl, ic.nucleotides)\n let hlProtNucl = me.hashUtilsCls.intHash(ic.dAtoms, protNucl)\n let atomsHash = me.hashUtilsCls.intHash(hlProtNucl, atoms)\n if (ic.labels['chain'] === undefined) ic.labels['chain'] = []\n let chainHash = ic.firstAtomObjCls.getChainsFromAtoms(atomsHash)\n for (let chainid in chainHash) {\n let chainAtomsHash = me.hashUtilsCls.intHash(hlProtNucl, ic.chains[chainid])\n let serialArray = Object.keys(chainAtomsHash)\n let firstAtom = ic.atoms[serialArray[0]]\n let lastAtom = ic.atoms[serialArray[serialArray.length - 1]]\n let labelN = {},\n labelC = {}\n labelN.position = firstAtom.coord\n labelC.position = lastAtom.coord\n labelN.text = 'N-'\n labelC.text = 'C-'\n if (ic.nucleotides.hasOwnProperty(firstAtom.serial)) {\n labelN.text = \"5'\"\n labelC.text = \"3'\"\n }\n labelN.size = size\n labelC.size = size\n let atomNColorStr = firstAtom.color.getHexString().toUpperCase()\n let atomCColorStr = lastAtom.color.getHexString().toUpperCase()\n labelN.color = atomNColorStr === 'CCCCCC' || atomNColorStr === 'C8C8C8' ? '#888888' : '#' + atomNColorStr\n labelC.color = atomCColorStr === 'CCCCCC' || atomCColorStr === 'C8C8C8' ? '#888888' : '#' + atomCColorStr\n labelN.background = background\n labelC.background = background\n ic.labels['chain'].push(labelN)\n ic.labels['chain'].push(labelC)\n }\n ic.hlObjectsCls.removeHlObjects()\n }", "title": "" }, { "docid": "ee48b7734c813559414f8842d7524de6", "score": "0.4990649", "text": "function generateRDSTree(){\n \n // I/O processing\n indata = fromInput() ;\n \n // RDS data (2D array)\n var rds_data = indata[0];\n // number of rows (sample size)\n var no_rows = indata[1];\n // number of columns\n var no_cols = indata[2];\n // max. number of coupons given to each respondent\n var no_c = indata[3];\n\n // IDs of the coupons received from recruiters\n var id_cfromrecr = new Array(no_rows);\n for (var ir=0; ir<no_rows; ir++) {\n id_cfromrecr[ir] = rds_data[ir][2];\n }\n \n // IDs of the coupons given to respondents\n var id_ctoresp = new Array(no_rows);\n for (var ir=0; ir<no_rows; ir++) {\n var data_row = new Array(no_c);\n for (var ic=0; ic<no_c; ic++) {\n data_row [ic] = rds_data[ir][(3+ic)];\n }\n id_ctoresp[ir] = data_row;\n }\n \n // node pairs of the tree; each node is identified by `id2';\n var node_pairs = getNodePairs(id_cfromrecr, id_ctoresp, no_rows, no_cols);\n\n // generating a tree in JSON format\n var tree_json = generateJSONTree(node_pairs, rds_data);\n\n // [XXX] -- note that, at this stage, the application\n // visualises only one tree (the first tree) \n tree_json = tree_json[0];\n\n \n // initialization of Spacetree,\n // creating a new ST instance\n var st = new $jit.ST({\n //id of viz container element\n injectInto: 'infovis',\n //set duration for the animation\n duration: 800,\n //set animation transition type\n transition: $jit.Trans.Quart.easeInOut,\n //set distance between node and its children\n levelDistance: 50,\n //enable panning\n Navigation: {\n enable:true,\n panning:true\n },\n //set node and edge styles\n //set overridable=true for styling individual\n //nodes or edges\n Node: {\n height: 20,\n width: 60,\n type: 'rectangle',\n color: '#aaa',\n overridable: true\n },\n \n Edge: {\n type: 'bezier',\n overridable: true\n },\n \n onBeforeCompute: function(node){\n log.write(\"loading \" + node.name);\n },\n \n onAfterCompute: function(){\n log.write(\"RDS data\");\n },\n \n // this method is called on DOM label creation.\n // Use this method to add event handlers and styles to\n // your node.\n onCreateLabel: function(label, node){\n label.id = node.id; \n label.innerHTML = node.name;\n label.onclick = function(){\n if(normal.checked) {\n st.onClick(node.id);\n }\n else {\n st.setRoot(node.id, 'animate');\n }\n };\n //set label styles\n var style = label.style;\n style.width = 60 + 'px';\n style.height = 17 + 'px'; \n style.cursor = 'pointer';\n style.color = '#333';\n style.fontSize = '0.8em';\n style.textAlign= 'center';\n style.paddingTop = '3px';\n },\n \n // this method is called right before plotting\n // a node. It's useful for changing an individual node\n // style properties before plotting it.\n // The data properties prefixed with a dollar\n // sign will override the global node style properties.\n onBeforePlotNode: function(node){\n // add some color to the nodes in the path between the\n // root node and the selected node.\n if (node.selected) {\n node.data.$color = \"#ff7\";\n }\n else {\n delete node.data.$color;\n //if the node belongs to the last plotted level\n if (!node.anySubnode(\"exist\")) {\n //count children number\n var count = 0;\n node.eachSubnode(function(n) { count++; });\n //assign a node color based on\n //how many children it has\n node.data.$color = ['#aaa', '#baa', '#caa', '#daa', '#eaa', '#faa'][count]; \n }\n }\n },\n \n // this method is called right before plotting\n // an edge. It's useful for changing an individual edge\n // style properties before plotting it.\n // Edge data proprties prefixed with a dollar sign will\n // override the Edge global style properties.\n onBeforePlotLine: function(adj) {\n if (adj.nodeFrom.selected && adj.nodeTo.selected) {\n adj.data.$color = \"#eed\";\n adj.data.$lineWidth = 3;\n }\n else {\n delete adj.data.$color;\n delete adj.data.$lineWidth;\n }\n }\n\t\n });\n \n //loading JSON data\n st.loadJSON(tree_json);\n // compute node positions and layout\n st.compute();\n // optional: make a translation of the tree\n st.geom.translate(new $jit.Complex(-200, 0), \"current\");\n // emulate a click on the root node.\n st.onClick(st.root);\n \n // add event handlers to switch spacetree orientation.\n var top = $jit.id('r-top'), \n left = $jit.id('r-left'), \n bottom = $jit.id('r-bottom'), \n right = $jit.id('r-right'),\n normal = $jit.id('s-normal');\n \n function changeHandler() {\n if(this.checked) {\n top.disabled = bottom.disabled = right.disabled = left.disabled = true;\n st.switchPosition(this.value,\n\t \"animate\",\n\t\t\t\t\t\t{onComplete: function(){\n top.disabled = bottom.disabled = right.disabled = left.disabled = false;\n }\n });\n }\n };\n \n top.onchange = left.onchange = bottom.onchange = right.onchange = changeHandler;\n\n}", "title": "" }, { "docid": "dfd259d82bb38ea909fe7d6406c1b963", "score": "0.49905762", "text": "function getClusters() {\n\n var allClusts = network.nodes.map(function(node) {return node.parent;});\n var uniqClusts = [];\n\n for (var i = 0; i < allClusts.length; i++) {\n if (uniqClusts.indexOf(allClusts[i]) > -1) continue;\n uniqClusts.push(allClusts[i]);\n }\n\n return uniqClusts;\n }", "title": "" }, { "docid": "c080e9507e0aa092bd125cb3d132a4a3", "score": "0.49840087", "text": "function SubgraphClusterer() {\n this.root = { kids: new Map(), items: [] };\n}", "title": "" }, { "docid": "bbef77a72f2547c70122c442431ea93a", "score": "0.49785385", "text": "function createClusterer(raw) {\n\t\t\tvar internalClusterer = new InternalClusterer($this, map, raw),\n\t\t\t\ttd = {},\n\t\t\t\tstyles = {},\n\t\t\t\tthresholds = [],\n\t\t\t\tisInt = /^[0-9]+$/,\n\t\t\t\tcalculator,\n\t\t\t\tk;\n\n\t\t\tfor (k in raw) {\n\t\t\t\tif (isInt.test(k)) {\n\t\t\t\t\tthresholds.push(1 * k); // cast to int\n\t\t\t\t\tstyles[k] = raw[k];\n\t\t\t\t\tstyles[k].width = styles[k].width || 0;\n\t\t\t\t\tstyles[k].height = styles[k].height || 0;\n\t\t\t\t} else {\n\t\t\t\t\ttd[k] = raw[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\tthresholds.sort(function (a, b) { return a > b; });\n\n\t\t\t// external calculator\n\t\t\tif (td.calculator) {\n\t\t\t\tcalculator = function (indexes) {\n\t\t\t\t\tvar data = [];\n\t\t\t\t\t$.each(indexes, function (i, index) {\n\t\t\t\t\t\tdata.push(internalClusterer.value(index));\n\t\t\t\t\t});\n\t\t\t\t\treturn td.calculator.apply($this, [data]);\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tcalculator = function (indexes) {\n\t\t\t\t\treturn indexes.length;\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// set error function\n\t\t\tinternalClusterer.error(function () {\n\t\t\t\terror.apply(self, arguments);\n\t\t\t});\n\n\t\t\t// set display function\n\t\t\tinternalClusterer.display(function (cluster) {\n\t\t\t\tvar i, style, atd, obj, offset, shadow,\n\t\t\t\t\tcnt = calculator(cluster.indexes);\n\n\t\t\t\t// look for the style to use\n\t\t\t\tif (raw.force || cnt > 1) {\n\t\t\t\t\tfor (i = 0; i < thresholds.length; i++) {\n\t\t\t\t\t\tif (thresholds[i] <= cnt) {\n\t\t\t\t\t\t\tstyle = styles[thresholds[i]];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (style) {\n\t\t\t\t\toffset = style.offset || [-style.width/2, -style.height/2];\n\t\t\t\t\t// create a custom overlay command\n\t\t\t\t\t// nb: 2 extends are faster self a deeper extend\n\t\t\t\t\tatd = $.extend({}, td);\n\t\t\t\t\tatd.options = $.extend({\n\t\t\t\t\t\t\tpane: \"overlayLayer\",\n\t\t\t\t\t\t\tcontent: style.content ? style.content.replace(\"CLUSTER_COUNT\", cnt) : \"\",\n\t\t\t\t\t\t\toffset: {\n\t\t\t\t\t\t\t\tx: (\"x\" in offset ? offset.x : offset[0]) || 0,\n\t\t\t\t\t\t\t\ty: (\"y\" in offset ? offset.y : offset[1]) || 0\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttd.options || {});\n\n\t\t\t\t\tobj = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n\t\t\t\t\tatd.options.pane = \"floatShadow\";\n\t\t\t\t\tatd.options.content = $(document.createElement(\"div\")).width(style.width + \"px\").height(style.height + \"px\").css({cursor: \"pointer\"});\n\t\t\t\t\tshadow = self.overlay({td: atd, opts: atd.options, latLng: toLatLng(cluster)}, true);\n\n\t\t\t\t\t// store data to the clusterer\n\t\t\t\t\ttd.data = {\n\t\t\t\t\t\tlatLng: toLatLng(cluster),\n\t\t\t\t\t\tmarkers:[]\n\t\t\t\t\t};\n\t\t\t\t\t$.each(cluster.indexes, function(i, index){\n\t\t\t\t\t\ttd.data.markers.push(internalClusterer.value(index));\n\t\t\t\t\t\tif (internalClusterer.markerIsSet(index)){\n\t\t\t\t\t\t\tinternalClusterer.marker(index).setMap(null);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tattachEvents($this, {td: td}, shadow, undef, {main: obj, shadow: shadow});\n\t\t\t\t\tinternalClusterer.store(cluster, obj, shadow);\n\t\t\t\t} else {\n\t\t\t\t\t$.each(cluster.indexes, function (i, index) {\n\t\t\t\t\t\tinternalClusterer.marker(index).setMap(map);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn internalClusterer;\n\t\t}", "title": "" }, { "docid": "360c52e95060b1856456c9bdaccdcdc6", "score": "0.49777833", "text": "function time_clustering(){ \n\n dbscan_state.eps = sliders.time;\n dbscan_state.mode = \"time\"\n // clone logs\n temp_json = []\n temp_json = JSON.parse(JSON.stringify(full_jsondata));\n var data = []\n\n temp_json.forEach(function(d,i){\n data.push({\"value\": d.value, distance: d.Time, cluster: 0}) // itr_index: index_counter (1/topic_num)\n });\n\n // console.log(\"data: \", data.length)\n interaction_clustering(data,0)\n\n}", "title": "" }, { "docid": "528a07d1274fcd9bd1a411359e0beb77", "score": "0.49742436", "text": "function mapDefinition(nodeMap,linkMap){\n // create an array with nodes\n var nodes = new vis.DataSet(nodeMap);\n // create an array with the link\n var edges = new vis.DataSet(linkMap);\n // create a network\n var container = document.getElementById('mynetwork');\n // provide the data in the vis format\n data = {\n nodes: nodes,\n edges: edges\n };\n var options = {\n // width: '100%',\n // height: '100%',\n physics: {\n enabled: false,\n minVelocity: 0.75\n },\n layout: {\n // improvedLayout: true,\n hierarchical: {\n enabled: true,\n levelSeparation: 800,\n // blockShifting: true,\n // edgeMinimization: true,\n // parentCentralization: false, \n direction: 'UD',\n nodeSpacing: 300,\n sortMethod: 'directed'\n }\n },\n\n edges: {\n smooth: true,\n color : {\n inherit: false\n }\n },\n interaction:{hover:true}\n };\n // initialize your network!\n network = new vis.Network(container, data, options);\n\n network.on(\"click\", function(params){\n if (params.nodes.length == 1){\n document.getElementById(\"nodeIdentification\").value = nodes.get(params.nodes[0])['label']\n }\n if (params.edges.length == 1 && params.nodes.length == 0){\n document.getElementById(\"nodeIdentification\").value = \"Ethernet: \" + edges.get(params.edges[0])['title']\n }\n });\n}", "title": "" }, { "docid": "e4d2e9bb4423658f742b5bf665c1c52a", "score": "0.49741328", "text": "async function node1 () {\r\n\tvm.trig[0] = 1; \r\n\t\tvar hei = 0, time, ago, peers = '';\r\n\t\tvar url = \"https://seed1.switcheo.network:10331\";\r\n\t\t\r\n\t\tvar pollingPolicy = neo.service.createPollingPolicy(5000);\r\n\r\n\r\n\t\t\tneo.node(url).poll(pollingPolicy).getBlockCount().notify(function (result) {\r\n\t\t\tif (hei != result-1) {\r\n\t\t\t\tvm.counter[0] = -1; hei = result-1; \r\n\t\t\t}\t\r\n\t\t });\r\n\r\n\t\t\t\r\n\t\t\tneo.node(url).poll(pollingPolicy).getConnectionCount().notify(function (result) {\r\n\t\t\t\tpeers = result;\t\t\t\t\r\n\t\t\t});\r\n\r\n\t\t\tneo.node(url).poll(pollingPolicy).getRawMemPool().notify(function (result) {\r\n\t\t\t\tvm.mem[0] = result.length;\t\t\t\t\r\n\t\t\t });\t\r\n\r\n\t\t\tawait neo.node(url).getBestBlockHash().then(function (result) {\r\n\t\t\tbhash = result\t\r\n\t\t\t}); \r\n\r\n\t\t\tawait neo.node(url).getBlock(bhash, 1).then(function (result) {\r\n\t\t\ttime = result.time;\r\n\t\t\t }); \r\n\t\t\t\t \r\n\t\tvar x = moment().unix();\r\n\t\tvar y = time;\r\n\t\tago = x - y;\r\n\r\n\t\tvm.counter[0] = ago;\r\n\r\n\t\tif (st1 == 0) { st1 = 1; // should run only one time \r\n\t\t\tsetInterval(differ,1000);\t\r\n\t\t}\t\r\n\r\n\t\tfunction differ () { //print data\r\n\t\t\t\r\n\t\t\tvm.diff[0] = hei - vm.bestb; \r\n\t\t\tif (vm.diff[0] == 1) {vm.diff[0] = 0}\r\n\t\t\tdocument.getElementById('height1').innerText = hei + ' (' + vm.diff[0] + ')'; // current block\r\n\t\t\tdocument.getElementById('count1').innerText = (++vm.counter[0]) + \" s ago\"; //timer\r\n\t\t\tif (vm.trig[0] != 0) {\r\n\t\t\t\tif (vm.diff[0] < -3 || vm.counter[0] > 120 || vm.mem[0] > 200 || peers == 0) {document.getElementById('nod1').style.color = \"orange\"} \r\n\t\t\t\telse {document.getElementById('nod1').style.color = \"limegreen\"}\r\n\t\t\t\tdocument.getElementById('peers1').innerText = peers;\r\n\t\t\t\tdocument.getElementById('mem1').innerText = vm.mem[0]; // mempool\t\t\r\n\t\t\t} else document.getElementById('peers1').innerText = 0\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\tdocument.getElementById(\"s1\").innerHTML = \"\"\r\n\t\t\t\t\t\t \r\n}", "title": "" }, { "docid": "a6afb23c6ba3fa2d2417a7887122ee45", "score": "0.49711555", "text": "onClusterify(){\n if (this.state.scaledImage && this.state.palette){\n this.clusterService.k_nearest_neighbours(this.state.scaledImage.toPixels(), this.state.palette).then(\n clusters => {\n let image = this.state.scaledImage.simplifyPalette(clusters);\n this.setState({\n test: image,\n clusters : clusters,\n message: \"Image clusterified\"\n });\n });\n }\n }", "title": "" }, { "docid": "df743da2128a343de3e91f651d2a7668", "score": "0.49516854", "text": "configNodes() {\n const { nodes } = this.props\n const nodeLayer = generateNodeLayer(nodes)\n this.map.addLayer(nodeLayer);\n }", "title": "" }, { "docid": "ff391dbb5b994d43229e999376df72e6", "score": "0.4950244", "text": "function gennodes(topo){\n return topo.features.map((d) => { \n var bounds = pathGenerator.bounds(d);\n var bound_size = (bounds[1][0]-bounds[0][0]) * (bounds[1][1]-bounds[0][1])\n var bound_center = [bounds[0][0] + (bounds[1][0]-bounds[0][0])/2,\n bounds[0][1] + (bounds[1][1]-bounds[0][1])/2]\n var center = pathGenerator.centroid(d);\n\n return {\n circle_path: mergablepath(d, Math.sqrt(pathGenerator.area(d)/Math.PI), \n center[0], center[1]), // a mergable circle of the path\n area: pathGenerator.area(d), // area to scale to\n origin_area: pathGenerator.area(d), // area used for scaling\n geo_origin_area: pathGenerator.area(d), // constant area of the state\n bound_origin_area: bound_size,\n x: center[0], \n y: center[1], \n tooltip: \"This is a tooltip\",\n name: \"\", // name of the node - in states it's just \"California\" etc..\n text: \"\", // text to be displayed under the node\n root: center, // roots are the locations that objects are attracted to\n origin_x: center[0], //shape offset x value\n origin_y: center[1], //shape offset y value\n geo_origin: center, // geo_origin is the offset value to the center of the shape in the path\n // ex: a square from -5,-5 to 15,15 would have geo_origin = [5, 5]\n bound_origin: bound_center,\n id: d.id, // id - usually the FIPS code for each state\n no_clip: false, // whether or not it should collide with others\n no_drag: false, // whether or not user should be able to interact with nodes\n state_shape: pathGenerator(d), // shape of the state\n no_hover: false, // whether or not to show hover tool\n bound_loc: true,\n sw: 0,\n style: {\n fill: \"none\", // anything in style will automatically be converted to style\n stroke: \"white\", // attributes in the html. underscores are replaced with hyphens\n stroke_width: 0,\n fill_opacity: 1\n }\n }}).filter(d => d.x && d.id != 11);\n }", "title": "" }, { "docid": "d850123a4d9a838bf0380a912989da28", "score": "0.49492502", "text": "function connectToNodesOfCluster (firstLink, callback) {\n var redisLinks = [];\n var fireStarter = connectToLink(firstLink);\n fireStarter.cluster('nodes', function(err, nodes) {\n if (err) {\n callback(err, null);\n return;\n }\n var lines = nodes.split('\\n');\n /* remove empty array and slave line, which cause errors */\n var i=0;\n var index_to_drop = [];\n for (var j in lines) {\n if (lines[j] == '') {\n index_to_drop.push(i);\n }else {\n var items = lines[j].split(' ');\n if (items[2] === 'slave') {\n index_to_drop.push(i);\n }\n }\n i++;\n }\n while (index_to_drop.length > 0) {\n lines.splice(index_to_drop[index_to_drop.length-1], 1);\n index_to_drop.pop();\n }\n\n var n = lines.length;\n while (n--) {\n var items = lines[n].split(' ');\n var name = items[0];\n var flags = items[2];\n var link = (flags === 'myself') ? firstLink : items[1];\n //var lastPingSent = items[4];\n //var lastPongReceived = items[5];\n var linkState = items[7];\n\n var slots = [0, 16383];\n if (lines.length === 1 && lines[1] === '') {\n\n } else {\n slots = items[8].split('-');\n for (var i in slots) {\n slots[i] = parseInt(slots[i]);\n }\n }\n\n if (linkState === 'connected') {\n redisLinks.push({\n name: name,\n link: connectToLink(link, null, {max_attempts: 5}),\n slots: slots});\n }\n if (n === 0) {\n callback(err, redisLinks);\n }\n }\n });\n}", "title": "" }, { "docid": "5097f9ac50bffeaec2578391b88be611", "score": "0.494727", "text": "function clusterNodes(metagraph) {\n var result = {};\n return _.reduce(metagraph.nodes(), function (clusters, n) {\n var child = metagraph.node(n);\n if (child.type === graph_1.NodeType.META) {\n // skip metanodes\n return clusters;\n }\n var template = child.op;\n if (template) {\n clusters[template] = clusters[template] || [];\n clusters[template].push(child.name);\n }\n return clusters;\n }, result);\n }", "title": "" }, { "docid": "93c961c0024c95490ff30798805054e3", "score": "0.4944548", "text": "function OnlineClustering(idFun, strict){\n Clustering.call(this, [], idFun);\n this.strict = strict;\n}", "title": "" }, { "docid": "3f76428fd8c23464e06361a2c13c7d39", "score": "0.49410698", "text": "function clusterize(mass, community_degree, intercom_links) {\n var k, l;\n var n = 0;\n for (k in community_degree) {\n n += 1;\n }\n var dendrogram = [];\n var queue = [];\n for (k in intercom_links) {\n for (l in intercom_links[k]) {\n d_modularity = (1 / mass) * (intercom_links[k][l] -\n community_degree[k] * community_degree[l] / (2 * mass));\n if ((k < l) && d_modularity > 0) { // k and l are strings\n queue.push({ c1: k, c2: l, d_mod: d_modularity });\n }\n }\n }\n var mod_cmp = function (a, b) {\n return a.d_mod - b.d_mod;\n };\n queue = queue.sort(mod_cmp);\n\n var c1, c2;\n\n var to_connect;\n\n while (queue.length) {\n to_connect = queue.pop();\n c1 = to_connect['c1'];\n c2 = to_connect['c2'];\n if (!((c1 in community_degree) && (c2 in community_degree))) {\n continue;\n }\n dendrogram.push({ c1: c1, c2: c2, c_new: n.toString(), m_diff: to_connect['d_mod'] });\n community_degree[n] = community_degree[c1] + community_degree[c2];\n delete community_degree[c1];\n delete community_degree[c2];\n intercom_links[n] = sparse_add_within(intercom_links[c1], intercom_links[c2],\n community_degree);\n for (k in intercom_links[n]) {\n intercom_links[k][n] = intercom_links[n][k];\n }\n delete intercom_links[c1];\n delete intercom_links[c2];\n for (k in intercom_links[n]) {\n d_modularity = (1 / mass) * (intercom_links[n][k] -\n community_degree[n] * community_degree[k] / (2 * mass));\n if (d_modularity > 0) {\n queue.push({ c1: k, c2: n, d_mod: d_modularity });\n }\n }\n queue = queue.sort(mod_cmp);\n // sure, I should use heap instead...\n n++;\n }\n\n return { dendrogram: dendrogram, community_degree: community_degree };\n\n}", "title": "" }, { "docid": "9c8004f002c3945d0037f9aef7dd3dc2", "score": "0.49390885", "text": "function creategrACYCLIC(partitions,allnodes){\r\nfor(var par in partitions){\r\n\tg.setNode(par,{label: par});\r\n\t\r\n\tfor(var gp in partitions[par]){\r\n\t\tvar gp_node = partitions[par][gp];\r\n\t\t//console.log(allnodes[gp_node]);\r\n\t\tg.setParent(allnodes[gp_node],par);\r\n\t}\r\n}\r\nfor(var i in allnodes){\r\n\tif(g.parent(allnodes[i]) == undefined){\r\n\t\tvar succ = g.successors(allnodes[i]);\r\n\t\tif(succ.length == 0 || succ.length == undefined){\r\n\t\t\tvar pred = g.predecessors(allnodes[i]);\r\n\t\t\tg.setParent(allnodes[i],g.parent(pred[0]))\r\n\t\t}\r\n\t\telse{\r\n\t\t\tg.setParent(allnodes[i],g.parent(succ[0]))\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n}\r\n\r\n}", "title": "" }, { "docid": "0e12d5ea5066ef357d527cd18f8b8374", "score": "0.49303374", "text": "function tick(e) {\n function collide(alpha) {\n var quadtree = d3.geom.quadtree().extent([[0, 0], [widthAvail, heightAvail]])(cluster_center);\n return function(d) {\n var r = d.radius * 2 + clusterPadding,\n nx1 = d.x - r,\n nx2 = d.x + r,\n ny1 = d.y - r,\n ny2 = d.y + r;\n quadtree.visit(function(quad, x1, y1, x2, y2) {\n if (quad.point && (quad.point !== d)) {\n var x = d.x - quad.point.x,\n y = d.y - quad.point.y,\n l = Math.sqrt(x * x + y * y),\n r = d.radius + quad.point.radius + clusterPadding;\n if (l < r) {\n l = (l - r) / l * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n quad.point.x += x;\n quad.point.y += y;\n }\n }\n return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1;\n });\n };\n }\n function cluster(alpha) {\n return function(d) {\n var cluster = cluster_center[d.group];\n var x = d.x - cluster.x,\n y = d.y - cluster.y,\n l = Math.sqrt(x * x + y * y);\n l *= alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n };\n }\n var cluster_center = [];\n nest.forEach(function(d) {\n var v = d.values;\n var x = 0;\n var y = 0;\n v.forEach(function(p) {\n x += p.x;\n y += p.y;\n });\n x /= v.length;\n y /= v.length;\n var dist = Number.MIN_VALUE;\n var des;\n v.forEach(function(p) {\n des = distance(p, [x, y]);\n if (dist < des)\n dist = des;\n });\n cluster_center[d.key] = {group: d.key, x: x, y: y, radius: dist + 5};\n });\n cluster_center.forEach(collide(3 * e.alpha));\n nodes\n .each(cluster(e.alpha * .01))\n .attr('cx', function(d) {\n return d.x;\n })\n .attr('cy', function(d) {\n return d.y;\n });\n links\n .attr('x1', function(d) {\n return d.source.x;\n })\n .attr('y1', function(d) {\n return d.source.y;\n })\n .attr('x2', function(d) {\n return d.target.x;\n })\n .attr('y2', function(d) {\n return d.target.y;\n });\n clusters.data(cluster_center)\n .attr('cx', function(d) {\n return d.x;\n })\n .attr('cy', function(d) {\n return d.y;\n })\n .style('stroke', function(d) {\n return color(d.group);\n })\n .attr('r', function(d) {\n return d.radius;\n });\n }", "title": "" }, { "docid": "d85b68084544181a2a740a5eacd581e5", "score": "0.49258995", "text": "function otsu_cluster(list, adjacent, breakdown){\n\t// this doesn't work for small things\n\tif(list.length <= 3) return [list];\n\tvar adj = otsu_adjacent(list, adjacent);\n\treturn linear_cluster(list, adj, breakdown, otsu(adj))\n}", "title": "" }, { "docid": "cca74d768f0824d111f30bffc46a63ec", "score": "0.49238515", "text": "function parseNEsFromAddInputCmd(cmdItems) {\r\nvar type = cmdItems[1];\r\nvar len = cmdItems.length;\r\nif (len<4) { // cmd=add node, using default xy location, \r\n\tvar NE = new Object();\r\n\tNE.NodeType = type;\r\n\tNE.Topox = 100;\r\n\tNE.Topoy = 100;\t\r\n\tif ( len < 3) {//use the node count as label \r\n\t\tno = NodeNum+1;\r\n\t\tNE.Label = no.toString();\r\n\t} else {\r\n\t\tNE.Label = cmdItems[len-1];\r\n\t}\r\n\tNEs[NodeNum++] = NE;\r\n\treturn NEs;\r\n}\r\nvar nodes = cmdItems[2].split(\";\");\r\nfor(i=0;i<nodes.length;i++) {\r\n\t\r\n}\r\nreturn NEs;\r\n}", "title": "" }, { "docid": "bc00c1082a94d5cc863d89a08351ccae", "score": "0.4915875", "text": "setupPrimaryClusterSort() {\n const nb = this.numBlocks;\n const nc = this._numCoordinatePerPoint;\n const vector = new Float64Array(nc);\n vector[0] = 1.0;\n for (let c = 1; c < nc; c++)\n vector[c] = vector[c - 1] * ClusterableArray._vectorFactor;\n let k = 0;\n let dot = 0.0;\n const data = this._data;\n for (let b = 0; b < nb; b++) {\n k = this.blockIndexToDoubleIndex(b);\n dot = 0.0;\n for (let c = 0; c < nc; c++) {\n dot += vector[c] * data[k + 1 + c];\n }\n data[k] = dot;\n }\n }", "title": "" }, { "docid": "6105e8394eace7d58e0064b5494bcbc5", "score": "0.4914866", "text": "function InternalClusterer($container, map, raw) {\n var timer, projection,\n ffilter, fdisplay, ferror, // callback function\n updating = false,\n updated = false,\n redrawing = false,\n ready = false,\n enabled = true,\n self = this,\n events = [],\n store = {}, // combin of index (id1-id2-...) => object\n ids = {}, // unique id => index\n idxs = {}, // index => unique id\n markers = [], // index => marker\n tds = [], // index => td or null if removed\n values = [], // index => value\n overlay = newEmptyOverlay(map, raw.radius);\n\n main();\n\n function prepareMarker(index) {\n if (!markers[index]) {\n delete tds[index].options.map;\n markers[index] = new defaults.classes.Marker(tds[index].options);\n attachEvents($container, {td: tds[index]}, markers[index], tds[index].id);\n }\n }\n\n /**\n * return a marker by its id, null if not yet displayed and false if no exist or removed\n **/\n self.getById = function (id) {\n if (id in ids) {\n prepareMarker(ids[id]);\n return markers[ids[id]];\n }\n return false;\n };\n\n /**\n * remove one object from the store\n **/\n self.rm = function (id) {\n var index = ids[id];\n if (markers[index]) { // can be null\n markers[index].setMap(null);\n }\n delete markers[index];\n markers[index] = false;\n\n delete tds[index];\n tds[index] = false;\n\n delete values[index];\n values[index] = false;\n\n delete ids[id];\n delete idxs[index];\n updated = true;\n };\n\n /**\n * remove a marker by its id\n **/\n self.clearById = function (id) {\n if (id in ids){\n self.rm(id);\n return true;\n }\n };\n\n /**\n * remove objects from the store\n **/\n self.clear = function (last, first, tag) {\n var start, stop, step, index, i,\n list = [],\n check = ftag(tag);\n if (last) {\n start = tds.length - 1;\n stop = -1;\n step = -1;\n } else {\n start = 0;\n stop = tds.length;\n step = 1;\n }\n for (index = start; index !== stop; index += step) {\n if (tds[index]) {\n if (!check || check(tds[index].tag)) {\n list.push(idxs[index]);\n if (first || last) {\n break;\n }\n }\n }\n }\n for (i = 0; i < list.length; i++) {\n self.rm(list[i]);\n }\n };\n\n // add a \"marker td\" to the cluster\n self.add = function (td, value) {\n td.id = globalId(td.id);\n self.clearById(td.id);\n ids[td.id] = markers.length;\n idxs[markers.length] = td.id;\n markers.push(null); // null = marker not yet created / displayed\n tds.push(td);\n values.push(value);\n updated = true;\n };\n\n // add a real marker to the cluster\n self.addMarker = function (marker, td) {\n td = td || {};\n td.id = globalId(td.id);\n self.clearById(td.id);\n if (!td.options) {\n td.options = {};\n }\n td.options.position = marker.getPosition();\n attachEvents($container, {td: td}, marker, td.id);\n ids[td.id] = markers.length;\n idxs[markers.length] = td.id;\n markers.push(marker);\n tds.push(td);\n values.push(td.data || {});\n updated = true;\n };\n\n // return a \"marker td\" by its index\n self.td = function (index) {\n return tds[index];\n };\n\n // return a \"marker value\" by its index\n self.value = function (index) {\n return values[index];\n };\n\n // return a marker by its index\n self.marker = function (index) {\n if (index in markers) {\n prepareMarker(index);\n return markers[index];\n }\n return false;\n };\n\n // return a marker by its index\n self.markerIsSet = function (index) {\n return Boolean(markers[index]);\n };\n\n // store a new marker instead if the default \"false\"\n self.setMarker = function (index, marker) {\n markers[index] = marker;\n };\n\n // link the visible overlay to the logical data (to hide overlays later)\n self.store = function (cluster, obj, shadow) {\n store[cluster.ref] = {obj: obj, shadow: shadow};\n };\n\n // free all objects\n self.free = function () {\n var i;\n for(i = 0; i < events.length; i++) {\n gm.event.removeListener(events[i]);\n }\n events = [];\n\n $.each(store, function (key) {\n flush(key);\n });\n store = {};\n\n $.each(tds, function (i) {\n tds[i] = null;\n });\n tds = [];\n\n $.each(markers, function (i) {\n if (markers[i]) { // false = removed\n markers[i].setMap(null);\n delete markers[i];\n }\n });\n markers = [];\n\n $.each(values, function (i) {\n delete values[i];\n });\n values = [];\n\n ids = {};\n idxs = {};\n };\n\n // link the display function\n self.filter = function (f) {\n ffilter = f;\n redraw();\n };\n\n // enable/disable the clustering feature\n self.enable = function (value) {\n if (enabled !== value) {\n enabled = value;\n redraw();\n }\n };\n\n // link the display function\n self.display = function (f) {\n fdisplay = f;\n };\n\n // link the errorfunction\n self.error = function (f) {\n ferror = f;\n };\n\n // lock the redraw\n self.beginUpdate = function () {\n updating = true;\n };\n\n // unlock the redraw\n self.endUpdate = function () {\n updating = false;\n if (updated) {\n redraw();\n }\n };\n\n // extends current bounds with internal markers\n self.autofit = function (bounds) {\n var i;\n for (i = 0; i < tds.length; i++) {\n if (tds[i]) {\n bounds.extend(tds[i].options.position);\n }\n }\n };\n\n // bind events\n function main() {\n projection = overlay.getProjection();\n if (!projection) {\n setTimeout(function () { main.apply(self, []); }, 25);\n return;\n }\n ready = true;\n events.push(gm.event.addListener(map, \"zoom_changed\", delayRedraw));\n events.push(gm.event.addListener(map, \"bounds_changed\", delayRedraw));\n redraw();\n }\n\n // flush overlays\n function flush(key) {\n if (isObject(store[key])) { // is overlay\n if (isFunction(store[key].obj.setMap)) {\n store[key].obj.setMap(null);\n }\n if (isFunction(store[key].obj.remove)) {\n store[key].obj.remove();\n }\n if (isFunction(store[key].shadow.remove)) {\n store[key].obj.remove();\n }\n if (isFunction(store[key].shadow.setMap)) {\n store[key].shadow.setMap(null);\n }\n delete store[key].obj;\n delete store[key].shadow;\n } else if (markers[key]) { // marker not removed\n markers[key].setMap(null);\n // don't remove the marker object, it may be displayed later\n }\n delete store[key];\n }\n\n /**\n * return the distance between 2 latLng couple into meters\n * Params :\n * Lat1, Lng1, Lat2, Lng2\n * LatLng1, Lat2, Lng2\n * Lat1, Lng1, LatLng2\n * LatLng1, LatLng2\n **/\n function distanceInMeter() {\n var lat1, lat2, lng1, lng2, e, f, g, h,\n cos = Math.cos,\n sin = Math.sin,\n args = arguments;\n if (args[0] instanceof gm.LatLng) {\n lat1 = args[0].lat();\n lng1 = args[0].lng();\n if (args[1] instanceof gm.LatLng) {\n lat2 = args[1].lat();\n lng2 = args[1].lng();\n } else {\n lat2 = args[1];\n lng2 = args[2];\n }\n } else {\n lat1 = args[0];\n lng1 = args[1];\n if (args[2] instanceof gm.LatLng) {\n lat2 = args[2].lat();\n lng2 = args[2].lng();\n } else {\n lat2 = args[2];\n lng2 = args[3];\n }\n }\n e = Math.PI * lat1 / 180;\n f = Math.PI * lng1 / 180;\n g = Math.PI * lat2 / 180;\n h = Math.PI * lng2 / 180;\n return 1000 * 6371 * Math.acos(Math.min(cos(e) * cos(g) * cos(f) * cos(h) + cos(e) * sin(f) * cos(g) * sin(h) + sin(e) * sin(g), 1));\n }\n\n // extend the visible bounds\n function extendsMapBounds() {\n var radius = distanceInMeter(map.getCenter(), map.getBounds().getNorthEast()),\n circle = new gm.Circle({\n center: map.getCenter(),\n radius: 1.25 * radius // + 25%\n });\n return circle.getBounds();\n }\n\n // return an object where keys are store keys\n function getStoreKeys() {\n var k,\n keys = {};\n for (k in store) {\n keys[k] = true;\n }\n return keys;\n }\n\n // async the delay function\n function delayRedraw() {\n clearTimeout(timer);\n timer = setTimeout(redraw, 25);\n }\n\n // generate bounds extended by radius\n function extendsBounds(latLng) {\n var p = projection.fromLatLngToDivPixel(latLng),\n ne = projection.fromDivPixelToLatLng(new gm.Point(p.x + raw.radius, p.y - raw.radius)),\n sw = projection.fromDivPixelToLatLng(new gm.Point(p.x - raw.radius, p.y + raw.radius));\n return new gm.LatLngBounds(sw, ne);\n }\n\n // run the clustering process and call the display function\n function redraw() {\n if (updating || redrawing || !ready) {\n return;\n }\n\n var i, j, k, indexes, check = false, bounds, cluster, position, previous, lat, lng, loop,\n keys = [],\n used = {},\n zoom = map.getZoom(),\n forceDisabled = (\"maxZoom\" in raw) && (zoom > raw.maxZoom),\n previousKeys = getStoreKeys();\n\n // reset flag\n updated = false;\n\n if (zoom > 3) {\n // extend the bounds of the visible map to manage clusters near the boundaries\n bounds = extendsMapBounds();\n\n // check contain only if boundaries are valid\n check = bounds.getSouthWest().lng() < bounds.getNorthEast().lng();\n }\n\n // calculate positions of \"visibles\" markers (in extended bounds)\n for (i = 0; i < tds.length; i++) {\n if (tds[i] && (!check || bounds.contains(tds[i].options.position)) && (!ffilter || ffilter(values[i]))) {\n keys.push(i);\n }\n }\n\n // for each \"visible\" marker, search its neighbors to create a cluster\n // we can't do a classical \"for\" loop, because, analysis can bypass a marker while focusing on cluster\n while (1) {\n i = 0;\n while (used[i] && (i < keys.length)) { // look for the next marker not used\n i++;\n }\n if (i === keys.length) {\n break;\n }\n\n indexes = [];\n\n if (enabled && !forceDisabled) {\n loop = 10;\n do {\n previous = indexes;\n indexes = [];\n loop--;\n\n if (previous.length) {\n position = bounds.getCenter();\n } else {\n position = tds[keys[i]].options.position;\n }\n bounds = extendsBounds(position);\n\n for (j = i; j < keys.length; j++) {\n if (used[j]) {\n continue;\n }\n if (bounds.contains(tds[keys[j]].options.position)) {\n indexes.push(j);\n }\n }\n } while ((previous.length < indexes.length) && (indexes.length > 1) && loop);\n } else {\n for (j = i; j < keys.length; j++) {\n if (!used[j]) {\n indexes.push(j);\n break;\n }\n }\n }\n\n cluster = {indexes: [], ref: []};\n lat = lng = 0;\n for (k = 0; k < indexes.length; k++) {\n used[indexes[k]] = true;\n cluster.indexes.push(keys[indexes[k]]);\n cluster.ref.push(keys[indexes[k]]);\n lat += tds[keys[indexes[k]]].options.position.lat();\n lng += tds[keys[indexes[k]]].options.position.lng();\n }\n lat /= indexes.length;\n lng /= indexes.length;\n cluster.latLng = new gm.LatLng(lat, lng);\n\n cluster.ref = cluster.ref.join(\"-\");\n\n if (cluster.ref in previousKeys) { // cluster doesn't change\n delete previousKeys[cluster.ref]; // remove this entry, these still in this array will be removed\n } else { // cluster is new\n if (indexes.length === 1) { // alone markers are not stored, so need to keep the key (else, will be displayed every time and marker will blink)\n store[cluster.ref] = true;\n }\n fdisplay(cluster);\n }\n }\n\n // flush the previous overlays which are not still used\n $.each(previousKeys, function (key) {\n flush(key);\n });\n redrawing = false;\n }\n}", "title": "" }, { "docid": "6105e8394eace7d58e0064b5494bcbc5", "score": "0.4914866", "text": "function InternalClusterer($container, map, raw) {\n var timer, projection,\n ffilter, fdisplay, ferror, // callback function\n updating = false,\n updated = false,\n redrawing = false,\n ready = false,\n enabled = true,\n self = this,\n events = [],\n store = {}, // combin of index (id1-id2-...) => object\n ids = {}, // unique id => index\n idxs = {}, // index => unique id\n markers = [], // index => marker\n tds = [], // index => td or null if removed\n values = [], // index => value\n overlay = newEmptyOverlay(map, raw.radius);\n\n main();\n\n function prepareMarker(index) {\n if (!markers[index]) {\n delete tds[index].options.map;\n markers[index] = new defaults.classes.Marker(tds[index].options);\n attachEvents($container, {td: tds[index]}, markers[index], tds[index].id);\n }\n }\n\n /**\n * return a marker by its id, null if not yet displayed and false if no exist or removed\n **/\n self.getById = function (id) {\n if (id in ids) {\n prepareMarker(ids[id]);\n return markers[ids[id]];\n }\n return false;\n };\n\n /**\n * remove one object from the store\n **/\n self.rm = function (id) {\n var index = ids[id];\n if (markers[index]) { // can be null\n markers[index].setMap(null);\n }\n delete markers[index];\n markers[index] = false;\n\n delete tds[index];\n tds[index] = false;\n\n delete values[index];\n values[index] = false;\n\n delete ids[id];\n delete idxs[index];\n updated = true;\n };\n\n /**\n * remove a marker by its id\n **/\n self.clearById = function (id) {\n if (id in ids){\n self.rm(id);\n return true;\n }\n };\n\n /**\n * remove objects from the store\n **/\n self.clear = function (last, first, tag) {\n var start, stop, step, index, i,\n list = [],\n check = ftag(tag);\n if (last) {\n start = tds.length - 1;\n stop = -1;\n step = -1;\n } else {\n start = 0;\n stop = tds.length;\n step = 1;\n }\n for (index = start; index !== stop; index += step) {\n if (tds[index]) {\n if (!check || check(tds[index].tag)) {\n list.push(idxs[index]);\n if (first || last) {\n break;\n }\n }\n }\n }\n for (i = 0; i < list.length; i++) {\n self.rm(list[i]);\n }\n };\n\n // add a \"marker td\" to the cluster\n self.add = function (td, value) {\n td.id = globalId(td.id);\n self.clearById(td.id);\n ids[td.id] = markers.length;\n idxs[markers.length] = td.id;\n markers.push(null); // null = marker not yet created / displayed\n tds.push(td);\n values.push(value);\n updated = true;\n };\n\n // add a real marker to the cluster\n self.addMarker = function (marker, td) {\n td = td || {};\n td.id = globalId(td.id);\n self.clearById(td.id);\n if (!td.options) {\n td.options = {};\n }\n td.options.position = marker.getPosition();\n attachEvents($container, {td: td}, marker, td.id);\n ids[td.id] = markers.length;\n idxs[markers.length] = td.id;\n markers.push(marker);\n tds.push(td);\n values.push(td.data || {});\n updated = true;\n };\n\n // return a \"marker td\" by its index\n self.td = function (index) {\n return tds[index];\n };\n\n // return a \"marker value\" by its index\n self.value = function (index) {\n return values[index];\n };\n\n // return a marker by its index\n self.marker = function (index) {\n if (index in markers) {\n prepareMarker(index);\n return markers[index];\n }\n return false;\n };\n\n // return a marker by its index\n self.markerIsSet = function (index) {\n return Boolean(markers[index]);\n };\n\n // store a new marker instead if the default \"false\"\n self.setMarker = function (index, marker) {\n markers[index] = marker;\n };\n\n // link the visible overlay to the logical data (to hide overlays later)\n self.store = function (cluster, obj, shadow) {\n store[cluster.ref] = {obj: obj, shadow: shadow};\n };\n\n // free all objects\n self.free = function () {\n var i;\n for(i = 0; i < events.length; i++) {\n gm.event.removeListener(events[i]);\n }\n events = [];\n\n $.each(store, function (key) {\n flush(key);\n });\n store = {};\n\n $.each(tds, function (i) {\n tds[i] = null;\n });\n tds = [];\n\n $.each(markers, function (i) {\n if (markers[i]) { // false = removed\n markers[i].setMap(null);\n delete markers[i];\n }\n });\n markers = [];\n\n $.each(values, function (i) {\n delete values[i];\n });\n values = [];\n\n ids = {};\n idxs = {};\n };\n\n // link the display function\n self.filter = function (f) {\n ffilter = f;\n redraw();\n };\n\n // enable/disable the clustering feature\n self.enable = function (value) {\n if (enabled !== value) {\n enabled = value;\n redraw();\n }\n };\n\n // link the display function\n self.display = function (f) {\n fdisplay = f;\n };\n\n // link the errorfunction\n self.error = function (f) {\n ferror = f;\n };\n\n // lock the redraw\n self.beginUpdate = function () {\n updating = true;\n };\n\n // unlock the redraw\n self.endUpdate = function () {\n updating = false;\n if (updated) {\n redraw();\n }\n };\n\n // extends current bounds with internal markers\n self.autofit = function (bounds) {\n var i;\n for (i = 0; i < tds.length; i++) {\n if (tds[i]) {\n bounds.extend(tds[i].options.position);\n }\n }\n };\n\n // bind events\n function main() {\n projection = overlay.getProjection();\n if (!projection) {\n setTimeout(function () { main.apply(self, []); }, 25);\n return;\n }\n ready = true;\n events.push(gm.event.addListener(map, \"zoom_changed\", delayRedraw));\n events.push(gm.event.addListener(map, \"bounds_changed\", delayRedraw));\n redraw();\n }\n\n // flush overlays\n function flush(key) {\n if (isObject(store[key])) { // is overlay\n if (isFunction(store[key].obj.setMap)) {\n store[key].obj.setMap(null);\n }\n if (isFunction(store[key].obj.remove)) {\n store[key].obj.remove();\n }\n if (isFunction(store[key].shadow.remove)) {\n store[key].obj.remove();\n }\n if (isFunction(store[key].shadow.setMap)) {\n store[key].shadow.setMap(null);\n }\n delete store[key].obj;\n delete store[key].shadow;\n } else if (markers[key]) { // marker not removed\n markers[key].setMap(null);\n // don't remove the marker object, it may be displayed later\n }\n delete store[key];\n }\n\n /**\n * return the distance between 2 latLng couple into meters\n * Params :\n * Lat1, Lng1, Lat2, Lng2\n * LatLng1, Lat2, Lng2\n * Lat1, Lng1, LatLng2\n * LatLng1, LatLng2\n **/\n function distanceInMeter() {\n var lat1, lat2, lng1, lng2, e, f, g, h,\n cos = Math.cos,\n sin = Math.sin,\n args = arguments;\n if (args[0] instanceof gm.LatLng) {\n lat1 = args[0].lat();\n lng1 = args[0].lng();\n if (args[1] instanceof gm.LatLng) {\n lat2 = args[1].lat();\n lng2 = args[1].lng();\n } else {\n lat2 = args[1];\n lng2 = args[2];\n }\n } else {\n lat1 = args[0];\n lng1 = args[1];\n if (args[2] instanceof gm.LatLng) {\n lat2 = args[2].lat();\n lng2 = args[2].lng();\n } else {\n lat2 = args[2];\n lng2 = args[3];\n }\n }\n e = Math.PI * lat1 / 180;\n f = Math.PI * lng1 / 180;\n g = Math.PI * lat2 / 180;\n h = Math.PI * lng2 / 180;\n return 1000 * 6371 * Math.acos(Math.min(cos(e) * cos(g) * cos(f) * cos(h) + cos(e) * sin(f) * cos(g) * sin(h) + sin(e) * sin(g), 1));\n }\n\n // extend the visible bounds\n function extendsMapBounds() {\n var radius = distanceInMeter(map.getCenter(), map.getBounds().getNorthEast()),\n circle = new gm.Circle({\n center: map.getCenter(),\n radius: 1.25 * radius // + 25%\n });\n return circle.getBounds();\n }\n\n // return an object where keys are store keys\n function getStoreKeys() {\n var k,\n keys = {};\n for (k in store) {\n keys[k] = true;\n }\n return keys;\n }\n\n // async the delay function\n function delayRedraw() {\n clearTimeout(timer);\n timer = setTimeout(redraw, 25);\n }\n\n // generate bounds extended by radius\n function extendsBounds(latLng) {\n var p = projection.fromLatLngToDivPixel(latLng),\n ne = projection.fromDivPixelToLatLng(new gm.Point(p.x + raw.radius, p.y - raw.radius)),\n sw = projection.fromDivPixelToLatLng(new gm.Point(p.x - raw.radius, p.y + raw.radius));\n return new gm.LatLngBounds(sw, ne);\n }\n\n // run the clustering process and call the display function\n function redraw() {\n if (updating || redrawing || !ready) {\n return;\n }\n\n var i, j, k, indexes, check = false, bounds, cluster, position, previous, lat, lng, loop,\n keys = [],\n used = {},\n zoom = map.getZoom(),\n forceDisabled = (\"maxZoom\" in raw) && (zoom > raw.maxZoom),\n previousKeys = getStoreKeys();\n\n // reset flag\n updated = false;\n\n if (zoom > 3) {\n // extend the bounds of the visible map to manage clusters near the boundaries\n bounds = extendsMapBounds();\n\n // check contain only if boundaries are valid\n check = bounds.getSouthWest().lng() < bounds.getNorthEast().lng();\n }\n\n // calculate positions of \"visibles\" markers (in extended bounds)\n for (i = 0; i < tds.length; i++) {\n if (tds[i] && (!check || bounds.contains(tds[i].options.position)) && (!ffilter || ffilter(values[i]))) {\n keys.push(i);\n }\n }\n\n // for each \"visible\" marker, search its neighbors to create a cluster\n // we can't do a classical \"for\" loop, because, analysis can bypass a marker while focusing on cluster\n while (1) {\n i = 0;\n while (used[i] && (i < keys.length)) { // look for the next marker not used\n i++;\n }\n if (i === keys.length) {\n break;\n }\n\n indexes = [];\n\n if (enabled && !forceDisabled) {\n loop = 10;\n do {\n previous = indexes;\n indexes = [];\n loop--;\n\n if (previous.length) {\n position = bounds.getCenter();\n } else {\n position = tds[keys[i]].options.position;\n }\n bounds = extendsBounds(position);\n\n for (j = i; j < keys.length; j++) {\n if (used[j]) {\n continue;\n }\n if (bounds.contains(tds[keys[j]].options.position)) {\n indexes.push(j);\n }\n }\n } while ((previous.length < indexes.length) && (indexes.length > 1) && loop);\n } else {\n for (j = i; j < keys.length; j++) {\n if (!used[j]) {\n indexes.push(j);\n break;\n }\n }\n }\n\n cluster = {indexes: [], ref: []};\n lat = lng = 0;\n for (k = 0; k < indexes.length; k++) {\n used[indexes[k]] = true;\n cluster.indexes.push(keys[indexes[k]]);\n cluster.ref.push(keys[indexes[k]]);\n lat += tds[keys[indexes[k]]].options.position.lat();\n lng += tds[keys[indexes[k]]].options.position.lng();\n }\n lat /= indexes.length;\n lng /= indexes.length;\n cluster.latLng = new gm.LatLng(lat, lng);\n\n cluster.ref = cluster.ref.join(\"-\");\n\n if (cluster.ref in previousKeys) { // cluster doesn't change\n delete previousKeys[cluster.ref]; // remove this entry, these still in this array will be removed\n } else { // cluster is new\n if (indexes.length === 1) { // alone markers are not stored, so need to keep the key (else, will be displayed every time and marker will blink)\n store[cluster.ref] = true;\n }\n fdisplay(cluster);\n }\n }\n\n // flush the previous overlays which are not still used\n $.each(previousKeys, function (key) {\n flush(key);\n });\n redrawing = false;\n }\n}", "title": "" }, { "docid": "55accf426855d19431d2f0c01fe43905", "score": "0.49006176", "text": "constructor(t, n, e, s, r) {\n this.se = t, this.re = n, this.xn = e, this.ie = s, this.Sn = r;\n }", "title": "" }, { "docid": "6de8ddfb5e7fbc7a5c8a9082e774680a", "score": "0.4900092", "text": "function createNetwork(\n matrices,\n matrixLabels,\n nodeData,\n nodeDataLabels,\n linkage,\n thumbUrl,\n thresholdFunc,\n thresholdValues,\n thresholdValueLabels,\n thresholdIdx,\n numClusters) {\n\n var network = {};\n var nodes = [];\n var numNodes = matrices[0].length;\n var zerofmt = d3.format(\"04d\");\n\n // Create a list of nodes\n for (var i = 0; i < numNodes; i++) {\n\n var node = {};\n\n // Node name is 1-indexed\n node.index = i;\n node.name = \"\" + (i+1);\n node.nodeData = nodeData.map(function(array) {return array[i];});\n\n // Attach a thumbnail URL to \n // every node in the network\n if (thumbUrl !== null) {\n var imgUrl = thumbUrl + \"/\" + zerofmt(i) + \".png\";\n node.thumbnail = imgUrl;\n }\n else {\n node.thumbnail = null;\n }\n\n nodes.push(node);\n }\n\n network.nodes = nodes;\n network.nodeData = nodeData;\n network.nodeDataLabels = nodeDataLabels;\n network.matrices = matrices;\n network.matrixLabels = matrixLabels;\n network.linkage = linkage;\n network.thumbUrl = thumbUrl;\n network.thresholdFunc = thresholdFunc;\n network.thresholdValues = thresholdValues;\n network.thresholdValueLabels = thresholdValueLabels;\n network.thresholdIdx = thresholdIdx;\n network.numClusters = numClusters;\n\n // create the network edges\n thresholdNetwork(network);\n\n // Create a dendrogram, and flatten it \n // to the specified number of clusters.\n // This will do nothing if this network\n // has no linkage data.\n setNumClusters(network, numClusters);\n\n // create scale information for \n // colouring/scaling nodes and edges\n var scaleInfo = {};\n scaleInfo.edgeWidthIdx = thresholdIdx;\n scaleInfo.edgeColourIdx = thresholdIdx;\n scaleInfo.nodeColourIdx = 0;\n\n genColourScales(network, scaleInfo);\n network.scaleInfo = scaleInfo;\n\n // console.log(network);\n\n return network;\n }", "title": "" }, { "docid": "8edbb4113101439f13388d933611d3d7", "score": "0.48970333", "text": "function toggleClustering() {\n if (isWithinScaleThreshold()) {\n let fr = treeCuttingLayer.featureReduction;\n treeCuttingLayer.featureReduction =\n fr && fr.type === \"cluster\" ? null : featureReduction;\n }\n toggleButton.innerText =\n toggleButton.innerText === \"Enable Clustering\"\n ? \"Disable Clustering\"\n : \"Enable Clustering\";\n }", "title": "" }, { "docid": "94047ef7577b0b33ec0e7d978913cdcb", "score": "0.48881567", "text": "function initializeDisplay() {\n\n var color = d3.scaleOrdinal(d3.schemeCategory20)\n .domain(d3.range(number_distinct_community));\n\n var sequentialScale = d3.scaleSequential()\n .domain([0, number_distinct_community+1])\n .interpolator(d3.interpolateRainbow);\n\n // create groups, links and nodes\n groups = svg.append('g').attr('class', 'groups');\n\n // // count members of each group. Groups with less\n // // than 3 member will not be considered (creating\n // // a convex hull need 3 points at least)\n // groupIds = d3.set(communities_attributes.map(function(n) { return +n.length; }))\n // .values()\n // .map( function(groupId) {\n // return { \n // groupId : groupId,\n // count : communities_attributes.filter(function(n) { return +n.length == groupId; }).length\n // };\n // })\n // .filter( function(group) { return group.count > 2;})\n // .map( function(group) { return group.groupId; });\n\n paths = groups.selectAll('.path_placeholder')\n .data(clusters, function(d) { return +d.cluster; })\n .enter()\n .append('g')\n .attr('class', 'path_placeholder')\n .append('path')\n .attr('stroke', function(d) { return color(d.cluster); })\n .attr('fill', function(d) { return color(d.cluster); })\n .attr('opacity', 0);\n\n paths\n .transition()\n .duration(2000)\n .attr('opacity', 1);\n\n node = svg.selectAll(\"circle\")\n .data(nodes_filtered)\n .enter().append(\"circle\")\n .attr(\"r\", function(d) { return d.radius; })\n .style(\"fill\", function(d) { return color(d.cluster); })\n\n node.append(\"title\")\n .text(function(d) { return d.size; });\n}", "title": "" } ]
5d46245f443d8619d42fb9535fb5e4ae
TODO: Make this use a local storage mechanism for images, or thumbnails of them
[ { "docid": "aaf956de4c1b5d3e01aca75ab7b83bba", "score": "0.5996974", "text": "function updateDomImgs(el, newValue) {\n var fbPath = extractFbPath(el);\n\n el.style.display = newValue ? '' : 'none';\n if (newValue) {\n var thumbKey = 'thumb:' + newValue.lastModified + ':' + fbPath;\n var thumbSrc = localStorage.getItem(thumbKey);\n if (thumbSrc) {\n el.src = thumbSrc;\n } else {\n uploadsRef.child(fbPath + '/thumb').once('value', function (snapshot) {\n var imgSrc = snapshot.val();\n\n var thumbSrc = resize(imgSrc, 100);\n // localStorage.setItem(imgKey, imgSrc);\n el.src = imgSrc;\n });\n }\n }\n }", "title": "" } ]
[ { "docid": "df442321e2bace3b535a3ff294d3dce3", "score": "0.6497555", "text": "function ImageManager(){}", "title": "" }, { "docid": "9dac1f6155d38520a2122284d8e8f14b", "score": "0.6397369", "text": "function create_Images(){\n\n\n}", "title": "" }, { "docid": "b9b2a8c45b7de6305df464d1cd0050dd", "score": "0.6351538", "text": "function postImages() {\n getIndexNumbers();\n Product.allProducts[Product.currentDisplay[0]].displays++;\n Product.allProducts[Product.currentDisplay[1]].displays++;\n Product.allProducts[Product.currentDisplay[2]].displays++;\n Product.firstImage.src = Product.allProducts[Product.currentDisplay[0]].url;\n Product.firstImage.alt = Product.allProducts[Product.currentDisplay[0]].name;\n Product.secondImage.src = Product.allProducts[Product.currentDisplay[1]].url;\n Product.secondImage.alt = Product.allProducts[Product.currentDisplay[1]].name;\n Product.thirdImage.src = Product.allProducts[Product.currentDisplay[2]].url;\n Product.thirdImage.alt = Product.allProducts[Product.currentDisplay[2]].name;\n}", "title": "" }, { "docid": "c58d64f8a0bacb25381d17c790ed87ab", "score": "0.6309507", "text": "function saveImage() {\n\n\t\t// get image data from canvas\n\t\tvar imgdata = canvas.toDataURL('image/png');\n\n\t\t// build image file name with a random 4-digit number\n\t\tvar random = Math.floor(Math.random() * 9000) + 1000;\n\t\tvar name = 'kaleidocamera-' + random + '.png';\n\n\t\t// create new image and add to list of thumbnails\n\t\tvar $thumb = $('<img class=\"thumb\" src=\"' + imgdata + '\" alt=\"' + name + '\" />');\n\n\t\t// add to list of thumbnails\n\t\t$('#thumbs').prepend($thumb);\n\n\t\t// set new image to active\n\t\tsetActiveImage($thumb);\n\n\t\t// set image viewer open to new image\n\t\t$('#img-viewer-open').html('<img class=\"thumb\" src=\"' + imgdata + '\"/>');\n\t}", "title": "" }, { "docid": "0b01348e9f4251988268339581903596", "score": "0.6278626", "text": "function add_image_to_screen(display_item){\n display_item.used = true;\n total_items_used += 1;\n var box_div = document.getElementById('image_box');\n var newtag;\n \n var path_type;\n if(display_item.file_type === 'i'){\n path_type = '/images/';\n newtag = document.createElement('img');\n }\n else if(display_item.file_type === 'g'){ \n path_type = '/images/';\n newtag = document.createElement('img');\n }\n else if(display_item.file_type === 't'){\n remove_quote();\n path_type = '/quotes/';\n newtag = document.createElement('strong');\n newtag.style.class = \"quote\";\n }\n else if(display_item.file_type === 'h'){\n remove_quote();\n path_type = '/images/her/';\n newtag = document.createElement('img');\n newtag.classList.add('her');\n }\n \n //add to screen\n var complete_path = offline_or_online + main_path + path_type+ display_item.path;\n if((display_item.file_type === 'i') || (display_item.file_type === 'g') || (display_item.file_type === 'h')){ //TODO -Quick fix, clean\n newtag.src = complete_path;\n place_in_random_positions(newtag);\n }\n else{\n readTextFile(offline_or_online + main_path + \"/quotes/\" + display_item.path, getData);\n newtag.textContent = getData_info;\n }\n\n newtag.style.zIndex = z_index_level;\n z_index_level = z_index_level + 1;\n box_div.appendChild(newtag);\n \n load_descript_text(display_item);\n\n}", "title": "" }, { "docid": "bfaabf77faeb910d580921638d6b5bca", "score": "0.6244127", "text": "function imgClicked(imgBigUrl){\n saveToStorage('img', imgBigUrl)\n}", "title": "" }, { "docid": "2f5999e960d4e217a0b5a1873c463f0e", "score": "0.62354696", "text": "static imageInitialLoadUrlForRestaurant(restaurant) { \n //return (`/responsiveimages/${restaurant.photograph}-medium_0.80x.jpg`);\n return (`/responsiveimages/${restaurant.id}-medium_0.80x.jpg`); \n}", "title": "" }, { "docid": "62f3af2dcd2ceb2bed1b06f2f19f9d6d", "score": "0.6224769", "text": "function imgLoad2() {\r\n\r\n for (let c=1; c<localStorage.length +1 ; c++){\r\n var dataImage = localStorage.getItem(`img${c}`);\r\n if (dataImage == null) {\r\n } else {\r\n imgPush(dataImage);\r\n }\r\n }\r\n\r\n}", "title": "" }, { "docid": "a0e7bfcc344a155a606daf288bc7ca6b", "score": "0.61887914", "text": "function loadImageLarge() {\n // todo\n var showimagelarge = $('.showimagelarge');\n var ImageLarge = window.localStorage.getItem('imagelarge');\n ImageLarge = jQuery.parseJSON(ImageLarge); \n showimagelarge.find('h2').append(\n '<marquee direction=\"Left\">'+ImageLarge.title+'</marquee>'\n );\n showimagelarge.find('.large').append(\n '<img src=\"'+AddServer + '/' +ImageLarge.image_large+'\" alt=\"\">'\n );\n }", "title": "" }, { "docid": "fa3271866f90aa609f3c58a114cba73d", "score": "0.61808664", "text": "function addDefaultImages() {\n var initial_image_count = 8;\n imgsData = [];\n\n for (var i = 0; i < initial_image_count; i++) {\n imgsData[i] = getNewImgObject('slide' + (i + 1) + '.jpg');\n }\n\n localStorage.setItem('imgsData', JSON.stringify(imgsData));\n renderImages();\n }", "title": "" }, { "docid": "ae5c1b8e15267a3ef27fd796d08b6d4b", "score": "0.61780137", "text": "function GetPreDefinedImages() {\r\n \r\n}", "title": "" }, { "docid": "f7f0c0a10b567e87d31cafb58f847323", "score": "0.61760765", "text": "function addImage(e){\n var reader = new FileReader();\n reader.onload = function(e){\n var image = document.createElement('img'),\n random = generateRandom();\n if(addedImages.includes(random)){\n random = generateRandom();\n addedImages.push(random);\n }else{\n addedImages.push(random);\n }\n image.src = e.target.result;\n image.className = 'uploadedImages'; \n image.id = random; //random\n document.body.appendChild(image);\n addImageToPaper(random);\n setTimeout(function(){\n document.body.removeChild(image);\n },1000);\n }\n reader.readAsDataURL(e.target.files[0]);\n}", "title": "" }, { "docid": "20260d2bfa187a73b522fccc7e2d9da2", "score": "0.6175903", "text": "function beforeCreate(items){\n \"use strict\";\n for (var i = 0; i < items.length; i++){\n var img = items[i];\n img.LastModified = new Date();\n if (img.Image && !img.Thumbnail){\n var Canvas = require('canvas');\n\t var Image = Canvas.Image;\n \n var buf = new Buffer(img.Image, 'base64');\n var data = new Image();\n data.src = buf;\n var canvas = new Canvas(200, 200);\n var ctx = canvas.getContext('2d');\n ctx.drawImage(data, 0, 0, 200, 200);\n img.Thumbnail = canvas.toDataURL().split(',')[1];\n img.Width = data.width;\n img.Height = data.height;\n if (!img.Type) img.Type = 'image/png';\n }\n }\n}", "title": "" }, { "docid": "42753a3bf0b5dfc603e44e1d1acf2525", "score": "0.6142805", "text": "async processImage() {\n const fullDeferred = new $.Deferred();\n const thumbDeferred = new $.Deferred();\n\n const resolveFullBlob = (blob) => fullDeferred.resolve(blob);\n const resolveThumbBlob = (blob) => thumbDeferred.resolve(blob);\n\n const displayPicture = (url) => {\n const image = new Image();\n image.src = url;\n\n // Generate thumb.\n const maxThumbDimension = Uploader.THUMB_IMAGE_SPECS.maxDimension;\n const thumbCanvas = Uploader._getScaledCanvas(image, maxThumbDimension);\n thumbCanvas.toBlob(resolveThumbBlob, 'image/jpeg', Uploader.THUMB_IMAGE_SPECS.quality);\n\n // Generate full sized image.\n const maxFullDimension = Uploader.FULL_IMAGE_SPECS.maxDimension;\n const fullCanvas = Uploader._getScaledCanvas(image, maxFullDimension);\n fullCanvas.toBlob(resolveFullBlob, 'image/jpeg', Uploader.FULL_IMAGE_SPECS.quality);\n };\n\n const reader = new FileReader();\n reader.onload = (e) => displayPicture(e.target.result);\n reader.readAsDataURL(this.currentFile);\n\n const results = await Promise.all([fullDeferred.promise(), thumbDeferred.promise()]);\n return {\n full: results[0],\n thumb: results[1],\n };\n }", "title": "" }, { "docid": "85015090320cfe49a128e478ceb92f24", "score": "0.6133582", "text": "function renderImage()\r\n {\r\n \r\n localStorage.setItem('image',image);\r\n setBackgroundImage();\r\n }", "title": "" }, { "docid": "051451804eab2e3e38c6182f5582b634", "score": "0.61316776", "text": "function cacheImages(a){for(var b=0,c=a.length;b<c;b++){var d=document.createElement(\"img\");d.src=a[b]}}", "title": "" }, { "docid": "ad5e55753f856498f802c5cf7844feb4", "score": "0.61081815", "text": "function img_res(fileName) {\n var i = new Image();\n i.src = \"img/\"+fileName;\n return i;\n}", "title": "" }, { "docid": "454ece691c601c9826aaaf77d04c23bc", "score": "0.608352", "text": "function displayImage(img){\n\tvar pathRef = storage.ref(img);\n\tvar refURL = \"gs://capstone-5899a.appspot.com/\"+img+\"\";\n\tvar gsReference = storage.refFromURL(refURL);\n\tgsReference.getDownloadURL().then(function(url){\n\t\tstoryImg.attr(\"src\", url);\n\t\t// this is also something I'll have to get from Firebase I think. \n\t\tstoryImg.attr(\"alt\", \"header image for this story.\");\n\n\t});\n}", "title": "" }, { "docid": "66cccf1e31d9c8604872931e44bfa023", "score": "0.6076465", "text": "function getNewImages() {\n getSmugmugData(\"smugmug.albums.get\",\n// getSmugmugData(\"smugmug.sharegroups.getInfo\",\n me.sharegroup + \"&\" +\n//\"NickName=rerenderer&\" +\n //\"ShareGroup=\" + me.sharegroup + \"&\" +\n //\"Heavy=1&\" + \n \"SessionID=\" + sessionID,\n me.name + \".getAlbums\");\n }", "title": "" }, { "docid": "25e15004debce04d2cbf551fd348ccf3", "score": "0.6072228", "text": "loadImages()\n {\n }", "title": "" }, { "docid": "f2c5bed96a964ecf0695e8add295e7cc", "score": "0.6070219", "text": "loadThumbnails() {\n if (this.thumbnail) this.thumbnail.destroy();\n this.thumbnail = new Thumbnail(this.seekPreviewAvailable && this.v[0].src);\n }", "title": "" }, { "docid": "e2fb0da811e09b931fb0ba715a78366e", "score": "0.60445637", "text": "function setupPictures() {\n\n var picsAsString = localStorage.getItem('product-section');\n var usablePics = JSON.parse(picsAsString);\n if (usablePics && usablePics.length) {\n Product.allProducts = usablePics;\n console.log('loaded from local storage :D');\n }\n}", "title": "" }, { "docid": "674f287b5195c36ca93b1ac8a911ccd2", "score": "0.60292995", "text": "function onLoadImage() {\n var pos;\n var image = this;\n var resizedImage = ImageScaler.resizeImgAndCreateThumbnail(image, IMG_SIZE);\n\n var thumbnail = ThumbnailsStorageManager.getThumbnail(image.id)\n\n if (thumbnail) {\n ThumbnailsView.updateThumbnailElement(resizedImage);\n pos = thumbnail.pos;\n } else {\n ThumbnailsView.createThumbnailElement(thumbnailsContainer, resizedImage, ThumbnailsStorageManager.removeThumbnail);\n pos = ++lastPos;\n }\n\n ThumbnailsStorageManager.storeThumbnail(resizedImage, pos);\n}", "title": "" }, { "docid": "ff917c7f419895559dc0dd7aaaad013c", "score": "0.6029122", "text": "imageFile() {\n const current_brooch = Broochs.findOne({_id: this._id})\n return Images.findOne({name: current_brooch.imageName})\n }", "title": "" }, { "docid": "369e1abc3e9cbd07c4be801072a8866d", "score": "0.60276943", "text": "function onImageURISuccess(imageURI) {\n//alert(imageURI);\njQuery('.swiper-container').show();\njQuery('.preview').html('<img src = '+imageURI+' width=\"80\" height=\"80\" />');\n$('.ui-widget-overlay').hide();\n$('#footerSlideContainer').slideUp('fast');\njQuery(\".main-questions-form-container\").show();\nlocalStorage.imageURI = imageURI;\nlocalStorage.mime = 'image/jpeg';\n \n}", "title": "" }, { "docid": "b4cb79a27acaad2dd18c4ad8aa56bb22", "score": "0.601764", "text": "function imageIsLoaded(e) {\n $('#myImg').attr('src', e.target.result);\n \n $('#myImg').attr('value', e.target.result);\n $(\"#customImg\").show();\n localStorage.setItem('img', e.target.result);\n \n \n $('#myImgSize').attr('src', e.target.result);\n \n $('#myImgSize').attr('value', e.target.result);\n}", "title": "" }, { "docid": "d7c977e950fc0264c2354de7bfbc18db", "score": "0.6017114", "text": "refresh() {\n var gif_file = getMostRecentFileName(this.folder + \"/gif/\");\n var pano_file = getMostRecentFileName(this.folder + \"/pano/\");\n var selfie_file = getMostRecentFileName(this.folder + \"/selfie/\");\n\n if(gif_file == -Infinity){\n this.images.gif = undefined;\n } else {\n this.images.gif = gif_file;\n }\n if(pano_file == -Infinity){\n this.images.pano = undefined;\n } else {\n this.images.pano = pano_file;\n }\n if(selfie_file == -Infinity){\n this.images.selfie = undefined;\n } else {\n this.images.selfie = selfie_file;\n }\n }", "title": "" }, { "docid": "191efddb2e82717504c85430541913cd", "score": "0.60058457", "text": "function imgCachesCreate(img, imgStyleBig, imgStyleSmall ){\n if(img && (pos = img.indexOf('/sites/default/files/')) > 0){\n pos += 21;\n ini = img.slice(0,pos);\n end = img.slice(pos);\n imgCaches = {\n 'img': img,\n 'big': ini + 'styles/' + imgStyleBig + '/public/' + end,\n 'small': ini + 'styles/' + imgStyleSmall + '/public/' + end,\n }\n }\n return imgCaches;\n}", "title": "" }, { "docid": "940eb567da10295eca55c7244bff410d", "score": "0.59909904", "text": "function displayImageThumbs(fileObj){\r\n\t\r\n\t//Because the loading icon should get loaded first, we should leave most of the vars outside of the loading event\r\n\t\r\n\tvar container = document.getElementById(\"recipe-image-wrapper\");\r\n\tvar fileReader = new FileReader();\r\n\tvar loadingIcon = document.create\r\n\tvar thumbnail = document.createElement(\"div\");\r\n\tthumbnail.className = \"imagePreviewBox\";\r\n\t\r\n\tthumbnail.innerHTML = \"<img src='img/icons/loader.gif' width='150'/>\";\r\n\t\r\n\tcontainer.insertBefore(thumbnail, null);\r\n\t//Load files/images\r\n\tfileReader.addEventListener(\"load\", function(){\r\n\t\t\r\n\t\t\r\n\t\t//Add loading bar or icon\r\n\t\t\r\n\t\t//var picFile = event.target;\r\n\t\t\r\n\t\tthumbnail.innerHTML = \"<img src='\" + this.result + \"' width='150'/>\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t});\r\n\t\r\n\tif(fileObj){\r\n\t\t\r\n\t\tfileReader.readAsDataURL(fileObj);\r\n\t\t//Upload files, probably a bad place to leave this function...\r\n\t\t\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "0d8c9b8c78a46173de957c5dde5185a4", "score": "0.59791356", "text": "function getMarvelThumbnail(data){\n var img = data.data.results[0].thumbnail.path + \".\" + data.data.results[0].thumbnail.extension;\n return img;\n}", "title": "" }, { "docid": "eb6fbac5f9543446d305c66ab0ee0fba", "score": "0.59759444", "text": "saveImage(imageID, newURL) {\n let image = this.find(this.images, 'id', imageID);\n image.src = newURL;\n image.attachment = undefined;\n image.type = 'src';\n this.featherEditor.close();\n if (imageID > 0) {\n let url = `/admin/products/${this.object_id}/images/${imageID}.json`;\n this._http.put(url, {image: {src: newURL}})\n .subscribe(\n (data) => {\n image.src = data.image.src;\n image.id = data.image.id;\n },\n (err) => {}\n );\n }\n }", "title": "" }, { "docid": "2dbf74546a6c9369f5ebaf5d8af755f4", "score": "0.59678525", "text": "function getSmallImage(item) { \n return getImage(720, 400, item.Abbreviation);\n}", "title": "" }, { "docid": "722af1d1a8a837beb582547a91142d5c", "score": "0.59613705", "text": "function imagesToHtml(){\n getThreeRandomImages();\n leftPic = currentItems[0];\n var img = document.getElementById('leftPic');\n img.src = leftPic.filepath;\n\n centerPic = currentItems[1];\n img = document.getElementById('centerPic');\n img.src = centerPic.filepath;\n\n rightPic = currentItems[2];\n img = document.getElementById('rightPic');\n img.src = rightPic.filepath;\n}", "title": "" }, { "docid": "c21af0a7c93b6ad9ceb4e294aba73e50", "score": "0.5958734", "text": "function load_local_image()\n{\n // Load the file from the client, then store learnt info\n var canvas = $(\"draw\"),\n file = $(\"file_in\").files[0],\n url = URL.createObjectURL(file),\n img = new Image();\n $(\"results\").innerHTML = DEFAULT_RESULTS;\n img.onload = function()\n {\n set_image_info(img, \"upload\", file.name);\n direct_file = file;\n };\n img.src = url;\n}", "title": "" }, { "docid": "ac9eb9c36c7b774c5730f3dbcbced017", "score": "0.59421664", "text": "function cacheImage(blob) {\n // ObjectURLs should be released as soon as is safe, to free memory\n const objUrl = URL.createObjectURL(blob);\n const image = document.createElementNS('http://www.w3.org/1999/xhtml', 'img');\n image.onload = () => {\n $(\".description\").text(\"Creating projection sphere...\")\n cache.add(imgPano, image);\n URL.revokeObjectURL(objUrl);\n document.body.removeChild(image);\n loadImageAsTexture();\n };\n image.src = objUrl;\n image.style.visibility = 'hidden';\n document.body.appendChild(image).className = \"panoPlaceholder\";\n }", "title": "" }, { "docid": "0b790b7d25e721b95647f0c27b7d8fb0", "score": "0.5941904", "text": "function ShowCurrentImage()\n{\n var curRow = dsPhotos.getCurrentRow();\n SetMainImage(\"galleries/\" + dsGalleries.getCurrentRow()[\"@base\"] + \"images/\" + curRow[\"@path\"], curRow[\"@width\"], curRow[\"@height\"], \"tn\" + curRow[\"ds_RowID\"]); \n \n}", "title": "" }, { "docid": "370de5fa544422814c826edda1c4b465", "score": "0.593446", "text": "function getComicImg(data){\n thumbnail_1 = $(\"<img>\");\n thumbnail_1.attr(\"src\",data.data.results[0].thumbnail.path + \".\" + \n data.data.results[0].thumbnail.extension);\n}", "title": "" }, { "docid": "c6325b5cceda28b91664e448d2778c3e", "score": "0.5928984", "text": "function _get_resized_image(origin_file_name,image_type) {\n try{\n var origin_image = Ti.Filesystem.getFile(_file_folder,origin_file_name);\n if(!origin_image.exists()){\n return;\n }\n var blob = origin_image.toBlob();\n var nWidth = (image_type === 'thumb')?self.default_thumb_image_width:(self.screen_width-100);\n if(blob.width <= nWidth){\n }else{\n var nHeight = (blob.height / blob.width) * nWidth;\n if(nHeight > (self.screen_height-100)){\n nWidth = (blob.width / blob.height) * nHeight;\n }\n var reducedImageView = Titanium.UI.createImageView({});\n reducedImageView.image = blob ;\n reducedImageView.width = parseInt(nWidth, 10);\n reducedImageView.height = parseInt(nHeight, 10);\n blob = reducedImageView.toImage();\n }\n var resized_image = Ti.Filesystem.getFile(_file_folder,image_type+'_'+origin_file_name);\n resized_image.write(blob);\n }catch(err){\n self.process_simple_error_message(err,window_source+' - _get_resized_image');\n return;\n } \n }", "title": "" }, { "docid": "42457c7037799305a9fbbcc78bf72670", "score": "0.5926222", "text": "function previewImages(){\n var fileList = this.files;\n\n var anyWindow = window.URL || window.webkitURL;\n\n for(var i = 0; i < fileList.length; i++){\n //get a blob to play with\n var objectUrl = anyWindow.createObjectURL(fileList[i]);\n // for the next line to work, you need something class=\"preview-area\" in your html\n $('#preview').append('<img src=\"'+objectUrl+'\" alt=\"\" class=\"thumb\" /> <span class=\"remove_img_preview\"></span>');\n \n // get rid of the blob\n window.URL.revokeObjectURL(fileList[i]);\n }\n\n }", "title": "" }, { "docid": "e90bb26205c2425b1bdf5d878e283077", "score": "0.5925138", "text": "static smallImageUrlForRestaurant(restaurant) {\r\n // let smallFile = restaurant.photograph.slice(0, -4) + '-400w' + '.jpg';\r\n let smallFile = restaurant.photograph + '-400w.webp';\r\n return (`/img_converted/${smallFile}`);\r\n }", "title": "" }, { "docid": "f822800b4a739e52e3e494f072b336de", "score": "0.59185773", "text": "function createImages () {\n // convert timeline to image\n html2canvas(document.querySelector(\"#timeline\")).then(canvas => {\n const item = document.querySelector(\"#timeline\");\n item.innerHTML = '';\n item.appendChild(canvas);\n });\n\n // convert starRating to image\n html2canvas(document.querySelector(\"#digital\")).then(canvas => {\n const item = document.querySelector(\"#digital\");\n item.innerHTML = '';\n item.appendChild(canvas);\n });\n}", "title": "" }, { "docid": "7b21c813a4e9a940ce65237f266f2b31", "score": "0.59183085", "text": "function createThumb(file) {\n\tvar id = file.name.hashCode();\n\tvar reader = new FileReader();\n reader.onload = function(event) {\n var floorPlanImg = new Image();\n floorPlanImg.onload = function() {\n \t// construct list element\n \tvar li = $('<li></li>').addClass('span4').addClass('thumb-li');\n \tvar thumb = $('<div></div>').addClass('thumbnail');\n \tvar imgHolder = $('<div></div>').addClass('imgHolder').addClass(id);\n \tvar caption = $('<div></div>').addClass('caption');\n \t// constructs form template for labeling\n \tvar label = labelTemplate(file.name, id);\n \t// directly holds image\n \tvar floorPlan = formatFloorPlan(floorPlanImg).addClass('loading').addClass(id);\n // place image into its container\n \timgHolder.append(floorPlan);\n // add label form into its container\n \tcaption.append(label);\n // place image and caption into a single container\n \tthumb.append(imgHolder);\n \tthumb.append(caption);\n // append into a list element\n li.append(thumb);\n // finally place list element into the page\n $('#gallary').append(li);\n }\n floorPlanImg.src = event.target.result;\n }\n reader.readAsDataURL(file);\n}", "title": "" }, { "docid": "a887ff1497533bf01d7c0a91e4a26ae3", "score": "0.5917739", "text": "function ExpGetImagem(){\r\n\treturn img;\r\n}", "title": "" }, { "docid": "e24d3fa5665590f63c1cc0a5f11e57d2", "score": "0.5917658", "text": "function images_new(args){\n args['todo'] = args['todo'] || function(){};\n\n var image = new Image();\n image.onload = args['todo'];\n image.src = args['src'];\n images_images[args['id']] = image;\n return image;\n}", "title": "" }, { "docid": "0a66159af77010ff64f5e3ff5edf4630", "score": "0.5908696", "text": "function setImg(){\n for (i=0; i <= gameNumber; i++){\n \n var imgLocation = localStorage.getItem(\"image\" + i);\n $(\".image\" + i + \"-1\").find(\".front-face\").attr(\"src\", imgLocation);\n $(\".image\" + i + \"-2\").find(\".front-face\").attr(\"src\", imgLocation);\n\n }\n }", "title": "" }, { "docid": "22bd5505d8d464576f0d5622ec9be828", "score": "0.5907602", "text": "function renderImg() {\r\n if (!complaints.image) return reclamos;\r\n else return URL.createObjectURL(complaints.image);\r\n }", "title": "" }, { "docid": "650681a7fa391556775b092f904245e9", "score": "0.5906802", "text": "function readFileAndPreviewFromLocalFileSystem(input, players) {\n\n if (players == 1) {\n if (input.files && input.files[0]) {\n $('#blah').show();\n var reader = new FileReader();\n reader.onload = function(e) {\n $('#blah').attr('src', e.target.result);\n saveImageToLocalStorage(1);\n };\n reader.readAsDataURL(input.files[0]);\n }\n } else if (players == 2) {\n if (input.files && input.files[0]) {\n $('#blah2').show();\n var reader = new FileReader();\n reader.onload = function(e) {\n $('#blah2').attr('src', e.target.result);\n saveImageToLocalStorage(2);\n };\n reader.readAsDataURL(input.files[0]);\n }\n } else if (players == 3) {\n if (input.files && input.files[0]) {\n $('#blah3').show();\n var reader = new FileReader();\n reader.onload = function(e) {\n $('#blah3').attr('src', e.target.result);\n saveImageToLocalStorage(3);\n };\n reader.readAsDataURL(input.files[0]);\n }\n }\n}", "title": "" }, { "docid": "06992f043761fd574be4e94732deafe0", "score": "0.5904252", "text": "get image(){ return this.__image ? this.__image : this.__makeImage(); }", "title": "" }, { "docid": "616aab68d08715effb229dabe7e9a2ac", "score": "0.5901114", "text": "function previewFile(file, i) {\r\n switch (file.name.split('.')[1].toLowerCase()) {\r\n case 'png':\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'gif':\r\n break;\r\n default:\r\n return;\r\n }\r\n let reader = new FileReader();\r\n reader.readAsDataURL(file);\r\n\r\n reader.onloadend = function() {\r\n let tag = document.createElement(\"a\");\r\n tag.setAttribute(\"id\", getImageCount());\r\n tag.innerHTML = '<div> ' +\r\n '<span class=\"close\" onclick=\"this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); return false;\">x</span>' +\r\n '<img onclick=\"addFragment(\\'' + reader.result + '\\', \\'' + file.name + '\\', \\'' + bytesToSize(file.size) + '\\' );\" src =\"' + reader.result + '\"/>' +\r\n '</div>';\r\n document.getElementById('gallery').appendChild(tag);\r\n updateProgress(i, 100);\r\n }\r\n}", "title": "" }, { "docid": "5d5a82313e8ff9663ac35812dcc34cf3", "score": "0.5887014", "text": "function saveImageToLocalStorage(numberOfPlayers) {\n switch (numberOfPlayers) {\n case 1:\n var imgData = getBase64Image($('#blah')[0]);\n localStorage.setItem(\"imgData\", imgData);\n break;\n case 2:\n var imgData2 = getBase64Image($('#blah2')[0]);\n localStorage.setItem(\"imgData2\", imgData2);\n break;\n case 3:\n var imgData3 = getBase64Image($('#blah3')[0]);\n localStorage.setItem(\"imgData3\", imgData3);\n break;\n }\n\n}", "title": "" }, { "docid": "d8c9c4a0dd41920a619265016d7d88bf", "score": "0.58866453", "text": "function successMove(entry) {\n //Store imagepath in session for future use\n // like to store it in database\n sessionStorage.setItem('imagepath', entry.fullPath);\n}", "title": "" }, { "docid": "c7b3e6d650ff4fd60490803ba8e908cf", "score": "0.58853954", "text": "function getNewImages() {\n if (pageNumber < PAGE_NUM_CAP) {\n pageNumber++;\n }\n clearImages();\n makeRequest();\n }", "title": "" }, { "docid": "91115b6f3b3eb261089e53aa837ba9c8", "score": "0.58807117", "text": "createThumbnails() {\n // return the img src tag as src=\"url\"\n function getSrcTag(imgs) {\n return imgs.length ? `src=\"${imgs[0].src}\"` : '';\n }\n\n const photos = this.photos;\n const n = Math.min(photos.length, this.options.initialPhotos);\n const parent = this.elem;\n let li;\n let img;\n\n for (let i = 0; i < n; i++) {\n const imgs = photos[i].imgs;\n const photoId = photos[i].id;\n if (imgs.length) {\n li = document.createElement('li');\n li.innerHTML = `<a href=\"/gallery/#gid=all&pid=${photoId}\">`\n + `<img ${getSrcTag(imgs)} ${getSrcsetTag(imgs)} alt=\"${photoId}\"></a>`;\n img = li.children[0].children[0];\n const imageListElem = {\n id: photoId,\n elem: img,\n };\n this.imageList.push(imageListElem);\n this.srcSetEmu.addImage(img, imgs, photoId);\n if (img.width) {\n fitImage.call(this, imageListElem, null, null);\n } else {\n img.addEventListener('load', fitImage.bind(this, imageListElem, null, null));\n }\n parent.appendChild(li);\n }\n }\n }", "title": "" }, { "docid": "d2e815280592bba7c66651e0bc7620a4", "score": "0.58743787", "text": "static imageSourceLargeForRestaurant(restaurant) {\r\n let photo_source = restaurant.photograph;\r\n if (photo_source != undefined){\r\n photo_source = photo_source.replace(\".jpg\", \"\");\r\n photo_source = `/img/${photo_source}-800_large_2x.jpg 2x, /img/${photo_source}-800_large_1x.jpg`;\r\n }\r\n return photo_source;\r\n }", "title": "" }, { "docid": "d3959a4a33b2fab6764de01cbb4ff4bb", "score": "0.58672684", "text": "function render() {\n randomPic();\n for (var i = 0; i < newrender.length; i++) {\n var imgEl = document.createElement('img');\n imgEl.src = newrender[i].path;\n imgEl.id = newrender[i].name;\n piconweb.appendChild(imgEl);\n newrender[i].views++;\n }\n}", "title": "" }, { "docid": "1c824beff2aeabf33c76e3905d2bdd7d", "score": "0.58573556", "text": "function putImage(file) {\n\tvar reader = new FileReader();\n\t// Read the file\n\treader.onload = function (event) {\n\t\tvar image = new Image();\n\n\t\t// Set image source and name\n\t\timage.src = event.target.result;\n\t\timage.name = file.name;\n\t\timage.setAttribute(\"class\", \"show-image\");\n\n\t\tif (App.SelectedBlock.get('image')){\n\t\t\t// Update Image name and data\n\t\t\tApp.SelectedBlockImage.set('imgName', file.name);\n\t\t\tApp.SelectedBlockImage.set('imgData', event.target.result);\n\t\t\tApp.SelectedBlock.set('imageName', file.name);\n\t\t\t\n\t\t\tApp.SelectedBlockImage.get('content').save();\n\t\t\tApp.SelectedBlock.get('content').save();\n\n\t\t\t$('#' + App.SelectedBlockImage.get('id')).attr('src', event.target.result);\n\n\n\t\t}else{\n\t\t\tconsole.log('no image');\n\t\t\tvar newImage = App.Store.createRecord('image', {\n\t\t\t\timgName: file.name,\n\t\t\t\timgData: event.target.result\n\t\t\t});\n\n\t\t\tnewImage.save().then(function( imgObj ) {\n\n\t\t\t\tconsole.log('saved!');\n\t\t\t\tApp.SelectedBlock.set(\"image\", imgObj.id );\n\t\t\t\tApp.SelectedBlock.set('imageName', file.name);\n\t\t\t\t\n\t\t\t\tApp.SelectedBlock.get('content').save();\n\t\t\t\tApp.SelectedBlockImage.set('content', imgObj);\n\t\t\t\timage.setAttribute(\"id\", imgObj.get('id'));\n\t\t\t\t$('#' + App.SelectedBlock.get('id')).prepend(image);\n\n\t\t\t}, function(resp) {\n\t\t\t\tif (resp.responseJSON) {\n\t\t\t\t\tlog('Image Save didnt work: ', resp.responseJSON );\n\t\t\t\t} \n\t\t\t});\n\n\n\t\t}\n\t\t\n\t};\n\treader.readAsDataURL(file);\n}", "title": "" }, { "docid": "7e20625e37f5872cd14fffc34e9331fc", "score": "0.5856695", "text": "onImagesLoaded() {\n let scale = null;\n\n /*\n * If the image is obviously a 2x or 3x pixel ratio, pre-select the\n * right scaling factor.\n *\n * Otherwise, we select the largest scaling factor that allows the\n * entire image to be shown (or the smallest scaling factor if the\n * scaled image is still too large).\n */\n const filename = this.model.get('filename');\n\n /*\n * The `filename` attribute does not exist for screenshots, so we need\n * to check it.\n */\n if (filename) {\n if (filename.includes('@2x.')) {\n scale = 0.5;\n } else if (filename.includes('@3x.')) {\n scale = 0.33;\n }\n }\n\n if (scale === null) {\n const {width} = this.getInitialSize();\n const maxWidth = this.$el.closest('.image-content').width();\n const scales = Array\n .from(scalingFactors.keys())\n .filter(f => (f <= 1));\n\n for (let i = scales.length - 1; i >= 0; i--) {\n scale = scales[i];\n\n if (width * scale <= maxWidth) {\n break;\n }\n }\n }\n\n this.model.set('scale', scale);\n }", "title": "" }, { "docid": "5d4348a34f6f7be592e8e04d9da63386", "score": "0.58556515", "text": "function getThumbnail(data){\r\n const div = document.getElementById(\"PKMN_IMG\");\r\n\r\n // Afbeelding instellen\r\n const art = data.sprites.other[\"official-artwork\"].front_default;\r\n \r\n const images = document.createElement(\"p\");\r\n images.innerHTML = \"<img class='picture' src='\" + art + \"'>\";\r\n\r\n div.appendChild(images);\r\n}", "title": "" }, { "docid": "118cc8c6c7b25126af59e222eda967e5", "score": "0.58544844", "text": "function checkForImages() {\n\n var fullsizeFolder = __dirname + \"/public/uploads/images/\";\n var thumbFolder = __dirname + \"/public/uploads/thumbnails/\";\n\n // generate an array of all files in the images folder\n var existingFullsize = fs.readdirSync(fullsizeFolder);\n // generate an array of all files in the thumbnails folder\n var existingThumbs = fs.readdirSync(thumbFolder);\n\n for (var i = 0; i < existingFullsize.length; i++) {\n\n var fullsizeImg = existingFullsize[i];\n\n // if the image filename already exists in thumbnail folder\n if (!(existingThumbs.includes(fullsizeImg))) {\n\n // variable used to handle case if file extension is uppercase e.g. .JPG\n var imgLowercase = fullsizeImg.toLowerCase();\n\n if (imgLowercase.endsWith(\".png\") || imgLowercase.endsWith(\".bmp\") ||\n imgLowercase.endsWith(\".jpg\") || imgLowercase.endsWith(\".jpeg\")) {\n\n var inputFileName = fullsizeFolder + fullsizeImg;\n var outputFileName = thumbFolder + fullsizeImg;\n console.log(\"resizing a file...\")\n generateThumbs(inputFileName, outputFileName, 200, 200);\n\n }\n }\n }\n}", "title": "" }, { "docid": "f1cd37230773da7e0ac4f6bbb8876b87", "score": "0.58498985", "text": "setCurrentThumbs() {\n const {info} = this.props;\n const currentThumbs = [];\n // Pushes contact image to {File}-like object.\n info.image.src && currentThumbs.push({\n src: `${info.image.src}=small.jpg`,\n file: {name: info.image.src, type: \"image\"}\n });\n this.setState({currentThumbs})\n }", "title": "" }, { "docid": "1af092384d0456cb179c305ea8e38e87", "score": "0.5849721", "text": "getUserImage() {}", "title": "" }, { "docid": "02d29d4cd5bd2210dc5ede6a44dc4921", "score": "0.584591", "text": "function updateBigImage(){\t\t\t\t\n\t\t\t\tvar file = $( root +' .container'+slider ).children().children().children().data('file');\n\t\t\t\t$( '#bigImageDiv' ).html(\"<a href='#'><img src='./images/scrollable/bigpic/\"+file+\"' ></a>\").fadeIn();\n\t\t\t}", "title": "" }, { "docid": "7731d3a6bd474d7e1fedd6c8fc061ffa", "score": "0.5841895", "text": "function displayImage(input) { //function to display images after being provided by user\n if (input.files && input.files[0]) {\n var reader = new FileReader();\n\n reader.onload = function (e) {\n $('#placeholder-img')\n .attr('src', e.target.result)\n .css('display', 'block')\n .width(150)\n .height(200);\n };\n\n reader.readAsDataURL(input.files[0]);\n }\n}", "title": "" }, { "docid": "ccc52978b84e34d58be7b33bd246122e", "score": "0.5833888", "text": "function getImage(input) {\n if (input.files && input.files[0]) {\n var reader = new FileReader();\n reader.onload = addPicToPage;\n reader.readAsDataURL(input.files[0]);\n }\n}", "title": "" }, { "docid": "7b4d33843fe425db1ebd752c4f22834a", "score": "0.58273613", "text": "function displayPreview(file) {\n var reader = new FileReader();\n\n reader.onload = function(e) {\n // Image Container for WebDGap\n var addwebdgap = document.createElement(\"div\");\n addwebdgap.style.display = \"none\";\n addwebdgap.setAttribute(\"data-webdgap\", \"container\");\n document.body.appendChild(addwebdgap);\n var webdgapContainer = document.querySelector(\"[data-webdgap=container]\");\n webdgapContainer.innerHTML = '<div data-webdgapimg=\"webdgapimgholder\"></div>';\n\n // Load images\n var webdgaporigimg = document.createElement(\"img\");\n webdgaporigimg.setAttribute(\"data-webdgapimgload\", \"webdgapimg\");\n webdgaporigimg.src = e.target.result;\n webdgaporigimg.id = \"webdgaporigimg\";\n webdgapContainer.appendChild(webdgaporigimg);\n\n // Load image sizes \n function embedImage(size) {\n // Load images\n var webdgap_img = new Image();\n webdgap_img.src = e.target.result;\n webdgap_img.onload = function() {\n var webdgap_canvas = document.createElement(\"canvas\");\n webdgap_canvas.width = size;\n webdgap_canvas.height = size;\n var webdgap_ctx = webdgap_canvas.getContext(\"2d\");\n webdgap_ctx.clearRect(0, 0, size, size);\n webdgap_ctx.drawImage(this, 0, 0, size, size);\n var webdgap_dataURL = webdgap_canvas.toDataURL(\"image/png\");\n var webdgap_image = document.createElement(\"img\");\n webdgap_image.setAttribute(\"data-webdgapsize\", \"f\" + size);\n webdgap_image.src = webdgap_dataURL;\n\n // Image Container for WebDGap\n webdgapContainer.appendChild(webdgap_image);\n };\n }\n embedImage(\"16\");\n embedImage(\"32\");\n embedImage(\"64\");\n embedImage(\"128\");\n // Android Icons\n embedImage(\"96\");\n embedImage(\"72\");\n embedImage(\"48\");\n embedImage(\"36\");\n // iOS Icons\n embedImage(\"72\");\n embedImage(\"144\");\n embedImage(\"57\");\n embedImage(\"114\");\n // Win Phone 8 Icon\n embedImage(\"159\");\n embedImage(\"99\");\n // Blackberry Icons\n // embedImage(\"80\");\n // PhoneGap Windows Icons\n embedImage(\"30\");\n embedImage(\"44\");\n embedImage(\"106\");\n embedImage(\"70\");\n embedImage(\"71\");\n embedImage(\"170\");\n embedImage(\"150\");\n embedImage(\"360\");\n embedImage(\"310\");\n embedImage(\"50\");\n embedImage(\"120\");\n \n var img = new Image();\n var imgWinWide1 = new Image();\n var imgWinWide2 = new Image();\n \n img.src = e.target.result;\n imgWinWide1.src = e.target.result;\n imgWinWide2.src = e.target.result;\n img.onload = function() {\n // x, y, width, height\n ctx.clearRect(0, 0, 128, 128);\n ctx.drawImage(img, 0, 0, 128, 128);\n }\n imgWinWide1.onload = function() {\n // x, y, width, height\n ctxWinWide1.clearRect(0, 0, 310, 150);\n ctxWinWide1.drawImage(imgWinWide1, 0, 0, 310, 150);\n }\n imgWinWide2.onload = function() {\n // x, y, width, height\n ctxWinWide2.clearRect(0, 0, 744, 360);\n ctxWinWide2.drawImage(imgWinWide2, 0, 0, 744, 360);\n }\n }\n $(\".img--avatar\").addClass(\"hide\");\n $(\"[data-id=sitename]\").attr(\"disabled\", \"true\");\n reader.readAsDataURL(file);\n}", "title": "" }, { "docid": "a1a55f2e82066b84e510a9326a63835a", "score": "0.58255816", "text": "function imageSelector(imgThumb){\n const imgPath = imgThumb.split(\"_thumb\")[0] + imgThumb.split(\"_thumb\")[1];\n const imgsrc = img.find(a => a.src == imgPath);\n\n document.getElementById(\"bigImage\").src = imgsrc.src; \n}", "title": "" }, { "docid": "65a1bfe5c61f978ab4c1e780afca0517", "score": "0.58229804", "text": "function saveAndRetrunLargeIMageUrl(){\r\n\t//save large image\r\n\treturn $('#largImageUrl').val();\r\n}", "title": "" }, { "docid": "387eac60700f5ba2dbaecc181dcca1bd", "score": "0.58182776", "text": "function getLargeImage(item) { \n return getImage(1200, 800, item.Abbreviation);\n}", "title": "" }, { "docid": "c5a56f04ea4afd6f4ac09663e2d32bf3", "score": "0.5817614", "text": "function ifImageClicked(event) {\n if(globalCounter < 25) {\n\n lastDisplayed = initial3;\n initial3 = getNewThree();\n\n globalCounter++;\n localStorage.globalCounter = globalCounter;\n\n var product = event.target.src.split('/').pop();//takes the filemane off of the string.\n\n for (var u = 0; u < arrOfObjects.length; u++) {\n if (product === arrOfObjects[u].filename ) {\n arrOfObjects[u].timesClicked++;\n //console.log('filename + times clicked',arrOfObjects[u].timesClicked);\n }\n }\n localStorage.arrOfObjects = JSON.stringify(arrOfObjects);\n\n clearPage();\n displayPictures(initial3[0],initial3[1],initial3[2]);\n listenAndCount();\n } else {\n console.log('im inside else section');\n clearLastPage();\n calculateData();\n createCanvas();\n populateChart();\n };\n\n return;\n}", "title": "" }, { "docid": "258666f66484d79aae314b511c175a50", "score": "0.5808752", "text": "function showMyImage(fileInput) {\n var files = fileInput.files;\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n var imageType = /image.*/;\n if (!file.type.match(imageType)) {\n continue;\n }\n var img=document.getElementById(\"thumb\");\n img.file = file;\n var reader = new FileReader();\n reader.onload = (function(aImg) {\n return function(e) {\n aImg.src = e.target.result;\n };\n })(img);\n reader.readAsDataURL(file);\n }\n}", "title": "" }, { "docid": "7afe9080ebeb04994da91be278171070", "score": "0.58001053", "text": "function loadPhoto(file)\r\n{\r\n\r\n}", "title": "" }, { "docid": "1b985e336d16ba7eab6eeae336651f9e", "score": "0.57996494", "text": "function bookImgMList(){\r\n\tif(myBooks.length > 0){\r\n\t\t$('#bImage').remove();\r\n\t\tvar book = myBooks[0];\r\n\t\tvar bID = getOLIDNumber(book);\r\n\t\tvar imageURL = book[bID].cover[\"large\"];\r\n\t\tvar img = $('<img id=\"bImage\"/>').attr('src', imageURL);\r\n\t\t$('#bookImage').append($(img));\r\n\t}\r\n\telse{\r\n\t\t$('#bImage').remove();\r\n\t}\r\n}", "title": "" }, { "docid": "f086b4a15ef3d87da406b7da099b21f3", "score": "0.579578", "text": "function getImage() {\n return image;\n }", "title": "" }, { "docid": "f73b3aeca4250df0f31c453586871ff2", "score": "0.5790443", "text": "*buildImageMetadata(){\n if(this.type !== 'image') return;\n\n const image = yield _p(lwip.open)(lwip, this.path);\n this.width = image.width();\n this.height = image.height();\n this.size = fs.lstatSync(this.path).size;\n }", "title": "" }, { "docid": "873f0bdc89d89f0143ce31772ac73c59", "score": "0.57882744", "text": "function handleImageLoad () {\r\n // Set Images to Use By Size\r\n let images = [\r\n {\r\n name: 'shanghai',\r\n small: './images/information/shanghai_noodles_sm.jpg',\r\n large: './images/information/shanghai_noodles.jpg'\r\n },\r\n {\r\n name: 'wonton',\r\n small: './images/information/spicy-wontons_sm.jpg',\r\n large: './images/information/spicy-wontons.jpg'\r\n },\r\n {\r\n name: 'special',\r\n small: './images/information/shanghai_shrimp_sm.jpg',\r\n large: './images/information/shanghai_shrimp.jpg'\r\n },\r\n {\r\n name: 'reserve',\r\n small: './images/information/spicy-cucumbers_sm.jpg',\r\n large: './images/information/spicy-cucumbers.jpg'\r\n }\r\n ];\r\n images.forEach((image) => {\r\n let element = document.getElementById(image.name);\r\n if (calculateSize() === 'small') {\r\n // Use Small Image\r\n element.src = image.small;\r\n } else {\r\n // Use Large Image\r\n element.src = image.large;\r\n }\r\n });\r\n}", "title": "" }, { "docid": "e8527bb2631a53557521eeb2e57fc489", "score": "0.5788155", "text": "function addToImageGallery (newImage) {\n \n}", "title": "" }, { "docid": "6315b30b453286616eef5aa3049b8bef", "score": "0.5787239", "text": "static addImagesLocalStorage(url) {\n const myUrls = Store.getUrls();\n myUrls.push(url);\n localStorage.setItem(\"urls\", JSON.stringify(myUrls));\n }", "title": "" }, { "docid": "0b1e9832903bbf1efccfa12ff8831e22", "score": "0.578329", "text": "function display(){\n \n imagesLoaded = 0;\n totalImages = photos.length;\n // console.log('Total Images =', totalImages);\n photos.forEach((photo) => {\n\n // create <a> to link\n const elem = document.createElement('a');\n // elem.setAttribute('href', photo.links.html);\n // elem.setAttribute('target', '_blank');\n set(elem, {\n href: photo.links.html,\n target: '_blank',\n });\n \n\n // create <img> for photo\n const img = document.createElement('img');\n // img.setAttribute('src', photo.urls.regular);\n // img.setAttribute('alt', photo.alt_description);\n // img.setAttribute('title', photo.alt_description);\n \n set(img, {\n src: photo.urls.regular,\n alt: photo.alt_description,\n title: photo.alt_description,\n });\n\n // check when the loading is finished\n img.addEventListener('load', imgLoaded);\n\n // Put <img> inside <a> and Put both inside image-container\n elem.appendChild(img);\n imageContainer.appendChild(elem);\n });\n}", "title": "" }, { "docid": "e5e914562c043c0429bd06dcf8c832eb", "score": "0.5780784", "text": "function _loadImages() {\n //Create an temp image and load the url\n var img = new Image();\n var url = url_base+DS+resolution+DS+images[imagesLoaded].image;\n $(img).attr('src',url);\n // don't reload cached images\n if (img.complete || img.readyState === 4) {\n _imageLoaded();\n } else {\n $(img).load(function() {\n _imageLoaded();\n });\n }\n }", "title": "" }, { "docid": "b50ddc634eb1bd725cf77e13381db147", "score": "0.5779757", "text": "function img() {\n\t\tfor (var i = 0; i < 25; i++) {\n\t\t\tcartas.push('img/img'+i+'.png');\n\t\t}\n\t}", "title": "" }, { "docid": "427a8bb61273e3f6ef6513cc332abebc", "score": "0.5768465", "text": "function getItem(){\n var storageOrders = localStorage.getItem('storageOrders');\n storage = JSON.parse(storageOrders);\n RandomImages();\n }", "title": "" }, { "docid": "a0246e4ffa2c2a4f0b9e82680e03407c", "score": "0.5765818", "text": "function showImages() {\n\t\t\t\tvar template = scope.note.content;\n\n\t\t\t\tvar patt=/\\bhttps?:\\/\\/\\S*?\\.(?:png|jpg)\\b/ig;\n\n\t\t\t\twhile ( match = patt.exec( template ) ) {\n\t\t\t\t\tvar replacement = '<img src=\"' + match + '\" width=\"30%\" >';\n\t\t\t\t\ttemplate = template.substr( 0, match.index ) + replacement +\n\t\t\t\t\t\t\t template.substr( patt.lastIndex, template.length - patt.lastIndex );\n\t\t\t\t}\n\t\t\t\telem.children()[0].innerHTML = template;\n\t\t\t}", "title": "" }, { "docid": "60d8d57276febebdce3ffeb995d95cca", "score": "0.5758604", "text": "loadImages() {\n\n\t\tvar ids = [];\n\n\t\tthis.products.results.map(p => {\n\t\t\tids.push(p.id);\n\t\t});\n\n\t\tthis.productsSvc.getProductPictures(ids.join(\",\")).then(products => {\n\n\t\t\tthis.products.results.map(p => {\n\t\t\t\tlet product_with_image = products.data.filter(o => {\n\t\t\t\t\treturn o.id === p.id;\n\t\t\t\t});\n\t\t\t\tif (product_with_image && product_with_image[0].pictures.length) {\n\t\t\t\t\tp.image = product_with_image[0].pictures[0].secure_url;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}", "title": "" }, { "docid": "4a2aade76beee1e3a48316ff845b365e", "score": "0.5752909", "text": "function showEnlargedImage(photoID, allUsers, index) {\n var image = document.getElementById('image-' + allUsers + '-' + index).src,\n span,\n button,\n reader,\n title,\n artist;\n title = document.getElementById('title-' + allUsers + '-' + index).innerHTML;\n artist = document.getElementById('artist-' + allUsers + '-' + index).innerHTML;\n document.getElementById('list').innerHTML = [];\n button = document.createElement('span');\n button.onclick = function () {\n checkCookies();\n };\n button.innerHTML = ['<button>< Go Back</button>'];\n document.getElementById('list').insertBefore(button, null);\n button = document.createElement('span');\n button.onclick = function () {\n deleteImage(artist, photoID);\n };\n button.innerHTML = ['<button>Delete Image</button>'];\n document.getElementById('list').insertBefore(button, null);\n span = document.createElement('span');\n span.id = \"fullsize\";\n span.innerHTML = ['<img src=\"', image, '\" title=\"', title, '\"><div id=\"title\">', title, ' by ', artist, '</div><aside><div id=\"map\"></div><div id=\"exif\"></div></aside>'].join('');\n document.getElementById('list').insertBefore(span, null);\n showImageDetailedExifInfo(image, 'exif');\n}", "title": "" }, { "docid": "b185130240d5f0c0abc012cec3a8bc59", "score": "0.5750729", "text": "function onPhotoDataSuccess2_4(imageURI) {\n var k2_4 = document.getElementById('k2_4');\n k2_4.src = imageURI;\n var thisValue = k2_4.src;\n // var thisValue = thisValue.split('tmp/')[1];\n var thisName = k2_4.name;\n localStorage.setItem('ii'+thisName, thisValue);\n}", "title": "" }, { "docid": "540dc5dc5a469384c6aa2bf060fb44c2", "score": "0.5750288", "text": "async function downloadPostImage(fileName, url, addBGImage) {\n const fm = FileManager.local();\n const docDir = fm.documentsDirectory();\n \n const imgPath = fm.joinPath(docDir+\"/saudumm-news-widget-data/image-cache\", fileName);\n const tempDir = fm.temporaryDirectory()\n const tempPath = fm.joinPath(tempDir, fileName);\n\n // check if file already exists\n if (!addBGImage && fm.fileExists(imgPath)) {\n return imgPath;\n } else if (!addBGImage && !fm.fileExists(imgPath)) {\n // download, resize, crop and store image\n let loadedImage = await new Request(url).load();\n // write image and read again (it's smaller that way???)\n await fm.write(tempPath, loadedImage);\n loadedImage = await fm.readImage(tempPath);\n loadedImage = await resizeImage(loadedImage, 150);\n loadedImage = await cropImageToSquare(loadedImage);\n await fm.writeImage(imgPath, loadedImage);\n await fm.remove(tempPath);\n // loadedImage = null;\n return imgPath;\n }\n \n if (addBGImage) {\n const imgPathBG = imgPath+\"-bg\"\n const imgPathBGBlur = imgPath+\"-bg-blur\"\n \n if (fm.fileExists(imgPath) && fm.fileExists(imgPathBG) && fm.fileExists(imgPathBGBlur)) {\n return imgPath;\n } else {\n // download image\n let loadedImage = await new Request(url).load();\n // write image and read again (it's smaller that way???)\n await fm.write(tempPath, loadedImage);\n loadedImage = await fm.readImage(tempPath);\n\n if (await Math.min(loadedImage.size.height, loadedImage.size.width) > 500) {\n loadedImage = await resizeImage(loadedImage, 500);\n }\n\n // resize, crop and store image\n if(!fm.fileExists(imgPath)) {\n let loadedSmallImage = await resizeImage(loadedImage, 150);\n loadedSmallImage = await cropImageToSquare(loadedSmallImage);\n await fm.writeImage(imgPath, loadedSmallImage);\n //loadedSmallImage = null;\n }\n \n // store original image\n if (!fm.fileExists(imgPathBG)) {\n await fm.writeImage(imgPathBG, loadedImage);\n }\n \n // store blurred resized original image\n if (!fm.fileExists(imgPathBGBlur)) {\n let loadedImageBlur = await blurImage(loadedImage)\n await fm.writeImage(imgPathBGBlur, loadedImageBlur);\n }\n \n await fm.remove(tempPath);\n \n //loadedImage = null;\n \n return imgPath;\n }\n }\n return \"none\";\n}", "title": "" }, { "docid": "bb97af5fea04109bb5e7d1cc392b9883", "score": "0.57496315", "text": "async function New_Gallery_Images(){\n\n result = await IPC_RENDERER_PICS.invoke('dialog:openEntityImageSet')\n files_tmp = result.filePaths\n files_tmp_base = files_tmp.map(function(filePATH) {\n return PATH.parse(filePATH).base\n })\n if(files_tmp_base.length == 0){\n files_tmp_base = [current_entity_obj.entityImage]\n } else { \n directory_of_image = PATH.dirname(result.filePaths[0])\n if(directory_of_image != DIR_PICS){//DIR_PICS\n files_tmp_base = MY_FILE_HELPER.Copy_Non_Taga_Files(result,DIR_PICS)\n } else{\n //console.log('files are in the taga images directory')\n }\n\n if(files_tmp_base.includes(current_entity_obj.entityImage) == false){\n files_tmp_base.push(current_entity_obj.entityImage)\n }\n }\n\n current_entity_obj.entityImageSet = files_tmp_base\n ENTITY_DB_FNS.Update_Record(current_entity_obj)\n Show_Entity_From_Key_Or_Current_Entity(all_entity_keys[current_key_index],0)\n\n}", "title": "" }, { "docid": "24815e5b5e5cf578d91fdc2e775307d4", "score": "0.5749498", "text": "function updateImages(){\n\tvar parser = new feedparser();\n\t// parsing the flickrUrl xml data\n\tparser.parseUrl(flickrUrl,function(err,meta,articles){\t\t\t\t\n\t\tvar db = dbutil.getconnection().database(newsDBName);\t\t\n\t\tfor(var i = 0;i < articles.length ;i++){\n\t\t\tvar item = {};\n\t\t\titem.name = articles[i].name;\n\t\t\titem.link = articles[i].link;\n\t\t\titem.title = articles[i].title;\n\t\t\titem.author = articles[i].author;\n\t\t\tsaveNewss(item);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "6e689e82b856c9b9b1562e1d50b455f2", "score": "0.5746282", "text": "function imageShow(element)\n{\nvar file=element.files[0];\nvar size=element.files[0].size;\n\n//File type & size check start\nvar fileName = document.getElementById(\"file\").value;\nvar idxDot = fileName.lastIndexOf(\".\") + 1;\nvar extFile = fileName.substr(idxDot, fileName.length).toLowerCase();\nif (extFile==\"png\" || extFile==\"jpg\" || extFile==\"jpeg\" || extFile==\"ico\" || extFile==\"svg\")\n{\n if(size > 5000000)\n {\n document.getElementById('file').value=null;\n document.getElementById('imgThumb').src=null;\n var msg='Please select another one. (Maximum file size is 5 MB)'\n SetWarningMessageBox('warning', msg);\n throw new Error();\n }\n}\nelse\n{\n document.getElementById('file').value=null;\n SetWarningMessageBox('warning', 'Only png/jpg/jpeg files are allowed!');\n throw new Error();\n}\n//File type & size check end\n\nvar reader=new FileReader();\nreader.onloadend=function()\n {\n // $('#fileUpload').val(reader.result);\n $('#imgThumb').attr(\"src\",reader.result);\n // $('#fileUploadName').val(element.files[0].name); \n }\n reader.readAsDataURL(file);\n}", "title": "" }, { "docid": "850135cf78aa1d516843a4c84880d270", "score": "0.57445186", "text": "function populateFigures() {\n var filename;\n var currentFig;\n\n //ensures that when five images are displayed in the app \n if (figureCount === 3) {\n for (var i = 1; i < 4; i++) {\n filename = \"images/IMG_0\" + photoOrder[i] + \"sm.jpg\";\n currentFig = document.getElementsByTagName(\"img\")[i - 1];\n currentFig.src = filename;\n }\n }else{\n for (var i = 0; i < 5; i++) {\n filename = \"images/IMG_0\" + photoOrder[i] + \"sm.jpg\";\n currentFig = document.getElementsByTagName(\"img\")[i];\n currentFig.src = filename;\n }\n }\n}", "title": "" }, { "docid": "262c334f1b33a479d4efc00fbf97edd0", "score": "0.5744137", "text": "function run() {\r\n createPictureHolders();\r\n addPictures();\r\n}", "title": "" }, { "docid": "342d091575366facf6660bdea3d87148", "score": "0.5743523", "text": "function downloadLogoFile(url, type, img_src) {\n //document.write('<scr'+'ipt type=\"text/javascript\" src=\"painlessfs.js\" ></scr'+'ipt>'); \n var DIR_Name = 'oc_photos';\n /* alert(url);\n alert(type);\n alert(img_src); */\n var a = new DirManager();\n a.create_r(DIR_Name, Log('created successfully'));\n var b = new FileManager();\n var image_name = getFileNameFromPath(img_src);\n var STR = localStorage.url + \"api/index.php/main/base64Image?XDEBUG_SESSION_START=PHPSTORM&image=\" + img_src;\n //alert(STR)\n jQuery.ajax({\n url: STR,\n dataType: \"html\",\n success: function(DtatURL) {\n b.download_file(DtatURL, DIR_Name + '/', getFileNameFromPath(img_src), function(theFile) {\n var img_uri = theFile.toURI();\n // alert(img_uri);\n db.transaction(function(tx) {\n tx.executeSql('CREATE TABLE IF NOT EXISTS OCEVENTS_homepage (id integer primary key autoincrement,user_id, iframe_url,type,main_logo_small_image)');\n tx.executeSql(\"delete from OCEVENTS_homepage\");\n tx.executeSql(\"INSERT INTO OCEVENTS_homepage (user_id,iframe_url,type,main_logo_small_image) VALUES ('\" + localStorage.user_id + \"','\" + url + \"','\" + type + \"','\" + img_uri + \"')\");\n window.location.href = \"gamification.html\";\n });\n });\n }\n }); \n}", "title": "" }, { "docid": "a26aeffc36d24e6f1b6692772adc148f", "score": "0.5743329", "text": "function previewFile(file) {\n const reader = new FileReader();\n\n\n reader.readAsDataURL(file);\n reader.onloadend = function() {\n let img = document.createElement(\"img\")\n img.src = reader.result;\n document.getElementById(\"gallery\").appendChild(img)\n }\n}", "title": "" }, { "docid": "1df47212b4d4544da8be2089f25dd255", "score": "0.5741973", "text": "function displayImages(moduleid, target, storageRef, imageRef){\n\t$('.module[data-moduleid=' + moduleid +'] .dynamic-image[data-target=' + target + ']').each(function() {\n\t\tvar img = $(this);\n\t\t\n\t\tfirebase.storage().ref(storageRef + '/' + imageRef + '.png').getDownloadURL().then(function(url) {\n\t\t\timg.attr('src', url);\n\t\t}).catch(function(error) {\n\t\t\tconsole.log(\"Error retrieving from storage: \" + error);\n\t\t});\n\t});\n}", "title": "" }, { "docid": "2d5c4c948a28232f5313c4182d3d30e6", "score": "0.57334816", "text": "function smallImage(filename) {\n let size = \"w_55\";\n return `https://res.cloudinary.com/funwebdev/image/upload/${size}/art/paintings/${filename}`;\n }", "title": "" }, { "docid": "080bfdf8fa1b6ab64d9fec99828563fb", "score": "0.5730983", "text": "function storeCurrentImage(){\t\t\n\t\t\n\t\t//prevent continious image storring\n\t\tvar currentTime = jQuery.now();\n\t\tvar diff = currentTime - g_temp.storeImageLastTime;\n\t\t\n\t\tif(diff < 20)\n\t\t\treturn(false);\n\t\t\n\t\tvar slides = g_parent.getSlidesReference();\n\t\tg_temp.objSlide = slides.objCurrentSlide;\n\t\tg_temp.objImage = slides.objCurrentSlide.find(\"img\");\n\t\t\n\t\tif(g_temp.objImage.length == 0)\n\t\t\treturn(false);\n\t\t\t\n\t\tg_temp.objImageSize = g_functions.getElementSize(g_temp.objImage);\n\t\tg_temp.objParent = g_temp.objImage.parent();\n\t\tg_temp.objParentSize = g_functions.getElementSize(g_temp.objParent);\n\t\t\n\t\tvar scaleMode = getFitScaleMode();\n\t\t\n\t\tobjPadding = g_parent.getObjImagePadding();\n\t\t\n\t\tg_temp.objFitImageSize = g_functions.getImageInsideParentDataByImage(g_temp.objImage, scaleMode, objPadding);\n\t\t\n\t\tvar currentTime = jQuery.now();\n\t\tg_temp.storeImageLastTime = currentTime;\n\t\t\n\t\treturn(true);\n\t}", "title": "" }, { "docid": "cd4ccfef1c61d5f7dc693d41f76af08a", "score": "0.5728835", "text": "function initImages() {\n if (product.variants.length > 0) {\n var _variantAtFirst = product.variants[0];\n var newImgs = [];\n for (var i = 0; i < product.images.length; i++) {\n\n var _img = product.images[i];\n _img = Haravan.resizeImage(_img, 'large');\n if (_variantAtFirst.options.length > 0) {\n if (_img.toString().toLowerCase().indexOf(convertToUnSign(_variantAtFirst.options[0])) > -1) {\n newImgs.push(_img);\n }\n }\n\n }\n if (newImgs.length > 0) {\n selectedVariant.images = newImgs;\n //change main img\n selectedVariant.mainImg.src = newImgs[0];\n var newUrl = newImgs[0];\n }\n }\n\n }", "title": "" }, { "docid": "871d35464c0912f91a46105b5c57fab3", "score": "0.5725404", "text": "function processImages(response) {\n // The variable \"data\" represents the information we got back.\n //find the image url: data.items[i].media.m\n //find the amount of loops: data.items.length\n \tfor (var i=0; i < response.data.length; i++) {\n \t\tvar url = response.data[i].images.low_resolution.url;\n \t\t$(\"#images\").append(\"<img src='\" + url + \"'>\");\n \t\t// <img src=\"someadress.jpg\">\n \t\t// <img src='someadress.jpg'>\n \t\t}\n \t}", "title": "" }, { "docid": "2a25c49768fa0c130badc1b96a1f7914", "score": "0.5723206", "text": "function processImages(data) {\n // The variable \"data\" represents the information we got back.\n console.log(\"yay! I got some data!\");\n console.log(data);\n }", "title": "" }, { "docid": "6a3a832858248a1324108a1136079c2c", "score": "0.5722477", "text": "renderImagePreview() {\n var iconClassName;\n var className = ['image-preview'];\n\n if (this.hasLocal()) {\n iconClassName = classnames(iconClassUploadPending);\n } else if (this.state.removeExisting) {\n className.push(' removed');\n iconClassName = classnames(iconClassDeletePending);\n }\n className = classnames(className);\n\n var body = [this.renderImagePreviewThumbnail()];\n if (iconClassName) body.push(<div key={this.props.path + '_preview_icon'} className={iconClassName} />);\n\n var url = this.getImageURL();\n\n if (url) {\n body = <a className=\"img-thumbnail\" href={this.getImageURL()} onClick={this.openLightbox.bind(this, 0)} target=\"__blank\">{body}</a>;\n } else {\n body = <div className=\"img-thumbnail\">{body}</div>;\n }\n\n return <div key={this.props.path + '_preview'} className={className}>{body}</div>;\n }", "title": "" } ]
2deeb1089afb2f0f90bd48ae77179364
This is attached to the load event of an image used in opt
[ { "docid": "548a3c311569dadfda5755fff7412bd0", "score": "0.0", "text": "function determineWidthHandling(event) {\n\t// if(DEBUG) console.debug(\"WidthHandler called on \",event.target.tagName, \" with a width of \", event.target.width);\n\tvar tempMaxWidth = 800; // failsafe value\n\tif(episodePage) tempMaxWidth = 400;\n\tif(forumPage) tempMaxWidth = 790;\n\tif(event.target.width > tempMaxWidth) handleCommentImage(event.target);\n}", "title": "" } ]
[ { "docid": "ac0a86257a28c7f11d2786a0fbc4adad", "score": "0.7291161", "text": "onImageLoaded() {\n this.imgLoaded = true;\n }", "title": "" }, { "docid": "cde418676613970c2dd57fd95a4988c1", "score": "0.7075871", "text": "onImageLoad() {\n this.cacheFrameReady = true;\n this.drawCurrentFrame();\n }", "title": "" }, { "docid": "84143f31f023f223fe33b023bb2af75a", "score": "0.70729315", "text": "function ho(){var t=this;Be(this);var e=ki(this.$source,[\"imageloadend\",\"imageloaderror\",\"imageloadstart\"]);this.subscribeTo(e,function(e){return t.$emit(e.type,e)})}", "title": "" }, { "docid": "df41f9e27680decc1291519931470b1b", "score": "0.7042207", "text": "beginLazyLoading(){\n\t\tconst imageTag = document.getElementById(this._elementID);\n\t\tconst highResImage = this._highResImageURL\n\n\t\timageTag.src = highResImage;\n\t\t\n\t\timageTag.addEventListener('load', function() {\n\t\t\timageTag.className = imageTag.className + ' is-loaded';\n\t\t});\n\t}", "title": "" }, { "docid": "43cd839bca536ce18823a53b698d04ed", "score": "0.70250493", "text": "function loadImage() {\n\t\t\tthis.loading = 'eager';\n\t\t\tif( this.src )\n\t\t\t\tthis.src = this.src;\n\t\t\tif( this.srcset )\n\t\t\t\tthis.srcset = this.srcset;\n\t\t}", "title": "" }, { "docid": "73eb8bb5fa60cb4b19e276f47431aea0", "score": "0.70016956", "text": "handleImageLoad_() {\n const image = /** @type {HTMLImageElement} */ (this.image_);\n if (image.naturalWidth && image.naturalHeight) {\n this.state = TileState.LOADED;\n } else {\n this.state = TileState.EMPTY;\n }\n this.unlistenImage_();\n this.changed();\n }", "title": "" }, { "docid": "73eb8bb5fa60cb4b19e276f47431aea0", "score": "0.70016956", "text": "handleImageLoad_() {\n const image = /** @type {HTMLImageElement} */ (this.image_);\n if (image.naturalWidth && image.naturalHeight) {\n this.state = TileState.LOADED;\n } else {\n this.state = TileState.EMPTY;\n }\n this.unlistenImage_();\n this.changed();\n }", "title": "" }, { "docid": "870ee0151f2cb36e7d214ecb345b2d73", "score": "0.69958997", "text": "function loadImage(){\n console.log(\"Image clicked one\")\n // self.img.path = self.image.src;\n // console.log(\"Image clicked two\");\n }", "title": "" }, { "docid": "e68d48d262a796dcd5874f9793a405c8", "score": "0.69386834", "text": "loadImage(img) {\n // abort operations if componente was unmounted\n if (this._.componentUnmounted) return;\n // set as background image\n this._.backgroundImg = img;\n this._.imageLoaded = true;\n // clear all previous labels\n this.removeAllLabels();\n // refresh GUI\n this.refreshCanvases();\n }", "title": "" }, { "docid": "154af4d160e3954a187eba2a58b2b0ca", "score": "0.68895787", "text": "function initImageLoading() {\n var imageBox = document.querySelector('.image_box');\n var fileChooser = imageBox.querySelector('.box_file');\n\n if(advancedLoad) {\n imageBox.className += \" advanced\";\n initDragDropListeners(imageBox);\n }\n\n imageBox.addEventListener('click', function() {\n resetInfos(imageBox);\n fileChooser.click();\n });\n\n fileChooser.addEventListener('change', function() {\n checkFiles(imageBox, this.files);\n });\n }", "title": "" }, { "docid": "1c9cd8d6322131811b015ca5342bf049", "score": "0.68737817", "text": "function imageLoader(event) {\n displayImage(event)\n previewFile()\n}", "title": "" }, { "docid": "69c2e18b1bdf5a45e5d1f5d4fa7ab1ab", "score": "0.6848996", "text": "function imageLoad(self, e) {\n\tif (e.id > self.lastLoaded && self.config.showLoadedImages) { // to not have a back and forward hickup… but some images will be skipped\n\t\tself.drawImage(e.id);\n\t\tself.lastLoaded = e.id;\n\t}\n\n\tif (typeof self.config.imageLoad === 'function' ) {\n\t\te.sequencer = self;\n\t\tself.config.imageLoad(e);\n\t}\n\n\tif (typeof self.imageLoad === 'function' ) {\n\t\te.sequencer = self;\n\t\tself.imageLoad(e);\n\t}\n\n\t// The canvas size is determined and set from the first image loaded:\n\tif (e.id === 0) {\n\t\tif(self.config.fitFirstImage) {\n\t\t\tself.size(e.img.width, e.img.height);\n\t\t\tself.config.fitFirstImage = false;\n\t\t}\n\t\tself.drawImage(0);\n\t\tself.current = 0; // TODO: could be better\n\t}\n}", "title": "" }, { "docid": "aa3679a77bea3c0c109595e3bc2adc77", "score": "0.68034124", "text": "onLoadChange(e) {\n console.log(\"Images loading!\");\n this.configMap.on_load(this.jqueryMap.$load.get(0).files);\n return false;\n }", "title": "" }, { "docid": "77c7bdff103090891d73c99047b7e588", "score": "0.6802695", "text": "function LoadSuccess() {\n // Image: set properties\n that.Properties($i);\n // Image: all image loaded\n SetupAfterAllLoaded();\n }", "title": "" }, { "docid": "5a0ee707e253d52774ae6a83053cd056", "score": "0.6777234", "text": "_handleImageLoad() {\n if (!this.attachmentViewer || !this.attachmentViewer.attachment) {\n return;\n }\n const refs = this._getRefs();\n const image = refs[`image_${this.attachmentViewer.attachment.id}`];\n if (\n this.attachmentViewer.attachment.fileType === 'image' &&\n (!image || !image.complete)\n ) {\n this.attachmentViewer.update({ isImageLoading: true });\n }\n }", "title": "" }, { "docid": "367b675e8cc09b174251152f0a6c7f9e", "score": "0.677139", "text": "function startLoadImage() {\n\n if ($(\"#image-zoom\").css(\"display\") == \"none\") {\n $(\"#image-zoom\").show();\n canvas.width = angular.element('#image-zoom').width();\n }\n //check the image load\n angular.element('#image').on('load', resetImage())\n\n //if the image is not loaded \n .on('error', function() {\n //hide the canvas\n angular.element('#canvas').hide();\n\n //disable the buttons\n scope.noImage = true;\n\n //display the image not loaded text\n angular.element('#error-message').show();\n console.log(\"error loading image\");\n });\n }", "title": "" }, { "docid": "1a6a76022043fd16f8c80a47d3476c49", "score": "0.67576236", "text": "function loadedImage()\r\n {\r\n //console.log(\"Load image \" + this.width + \" \" + this.height);\r\n\r\n this.loadMode = 2;\r\n\r\n if (this.repaint)\r\n {\r\n for (var i = 0; i < this.repaint.length; ++i)\r\n {\r\n var r = this.repaint[i];\r\n\r\n that.printPage(r.canvas, r.page, r.canvas.cpcOptions);\r\n }\r\n\r\n this.repaint = null;\r\n }\r\n\r\n this.removeEventListener('load', loadedImage);\r\n }", "title": "" }, { "docid": "18389394be31104105103620715f346a", "score": "0.6745224", "text": "function imageLoadedCallback() {\n if (++imagesAmount >= imagesForPreload.length) {\n imagesLoaded = true;\n if (styleLoaded) {\n spotgamesEventManager.dispatchEvent(spotgames.event_type.AD_INIT, thisgame.constructor.name);\n }\n\n }\n }", "title": "" }, { "docid": "a3427015d16b7068cc4b3790e7bf46e4", "score": "0.673251", "text": "function fileOnload(e) {\r\n var result=e.target.result;\r\n $('#imagen').attr(\"src\",result);\r\n }", "title": "" }, { "docid": "71fb9fc2030522646456daff168f83a8", "score": "0.66897416", "text": "preload () {\n this.load.image('flag', flagImg)\n }", "title": "" }, { "docid": "bbd6f0f61c23e12f24d80e99f256027d", "score": "0.6681947", "text": "imageOnLoad() {\n loadJS(resizeScript, this.initResizeHandler.bind(this), document.body);\n\n this.toggleStatus(STATUS.FILLED);\n // eslint-disable-next-line no-undef\n\n /**\n * Preloader does not exists on first rendering with presaved data\n */\n if (this.nodes.imagePreloader) {\n this.nodes.imagePreloader.style.backgroundImage = \"\";\n }\n }", "title": "" }, { "docid": "bc416384413b16c65a4532be2edec8d7", "score": "0.6671352", "text": "loadImage() {\n if (this.imageType === \"inline\") {\n if (this.imageLoaded === false || this.imageReloader === true) {\n this.getImageFile(this.smartImageElem);\n }\n } else if (this.imageType === \"background\") {\n this.smartImageElem.classList.add(imageFlexClass);\n if (this.imageLoaded === false || this.imageReloader === true) {\n this.getImageFile(this.smartImageElem);\n }\n }\n }", "title": "" }, { "docid": "984f8395c08b45ead316ce173a971501", "score": "0.66508603", "text": "function imageLoaded() {\n self.framed = self.createFramedImage(self.image, width, height);\n //self.framed = self.image;\n self.object = self.createRendererObject();\n if(self.prepareCallback) {\n self.prepareCallback(true);\n }\n }", "title": "" }, { "docid": "683074f30ba8628aeed91271fb2a6e7d", "score": "0.66471356", "text": "function loadImage(firstLoad){\n img = new Image()\n zoomed = false\n if (!firstLoad){\n basename = images[curIndex]\n }\n src = path.join(dirname, basename)\n img.src = src\n img.onload = () => {\n setOriDim()\n setSvgDim()\n setDefaultScale()\n setImgDim()\n setImgPos()\n updateImg()\n setTitle()\n }\n}", "title": "" }, { "docid": "d6448f01bff68e950cedca3da4e7201f", "score": "0.66351044", "text": "function onImageLoaded(evt) {\n console.log('The image loaded')\n evt.target.classList.add('appear')\n}", "title": "" }, { "docid": "ea8ea233491d342e11c70a5987975318", "score": "0.6603423", "text": "function _loadImage(anchor) {\n\t\t// set metadata\n\t\tvar meta = settings.metadata(anchor);\n\t\tif (meta) {\n\t\t\tviewercontent.append($.inArray($.type(meta), ['boolean','number','string']) >= 0 ? meta : meta.clone());\n\t\t}\n\n\t\t// display image when image has been loaded, src must be initialized last for some browsers\n\t\tviewerimage.removeClass(CLASS_UNAVAILABLE);\n\t\t$(preloader = new Image()).load(refreshItem).error(_prepareText).attr('src', anchor.attr('href'));\n\t}", "title": "" }, { "docid": "a4ee613d638bf81bcfb29398420e460e", "score": "0.65911406", "text": "function loadImage() {\n if (options.ShowImage == true) {\n $('#divFullImage').html('<img id=\"loadImage\" src=\"' + $img + '\" alt=\"Image\"/>')\n $('#divPreviewImage').html('<img src=\"' + $img + '\"></img>');\n }\n }", "title": "" }, { "docid": "c7cc90da4c1b72b3c1a72855f576849d", "score": "0.65852505", "text": "function _onImageLoaded() {\n _imagesToLoad = _imagesToLoad - 1;\n if (!_imagesToLoad) {\n $$log(\"All images loaded, rendering again.\");\n PP64.renderer.render();\n }\n }", "title": "" }, { "docid": "d591f15ab6b68c0bd2a0969f925879a3", "score": "0.6585149", "text": "function prepImage() {\n if ($img) {\n if ($img.prop('complete') === false) {\n $elem.addClass('fadeVisible-loading');\n }\n $img.one('load.fadeVisible', function() {\n $elem.removeClass('fadeVisible-loading');\n });\n }\n }", "title": "" }, { "docid": "ae16bdc1349e5e3d9c7bc84d26fb4835", "score": "0.6567902", "text": "onFilenameChanged() {\nthis.loadImage();\n}", "title": "" }, { "docid": "660424852293edacae44616d66a8466f", "score": "0.6564198", "text": "patched() {\n this._handleImageLoad();\n }", "title": "" }, { "docid": "650c07f73539f6c02e3eced6355c46ab", "score": "0.65563667", "text": "function imgLoaded(id) {\n if (!loaded) {\n setTimeout(() => {\n $('#imageFullScreen').smartZoom('zoom', 0.4, '', 0)\n setTimeout(() => {\n $('#imageFullScreen').smartZoom('pan', 0, 400)\n }, 20);\n loaded = true\n }, 500)\n }\n}", "title": "" }, { "docid": "19fed010193439dd5f4dbcfddfafd002", "score": "0.6545008", "text": "function load_img(slide) {\n if ($(slide).find('img').length === 0) {\n //console.log('loading img into next figure');\n $(slide).prepend('<img alt=\"\" src=\"' + $(slide).attr('data-load-on-demand') + '\">');\n }\n }", "title": "" }, { "docid": "504fccd8b9913ce66853d6b7b8d4bea5", "score": "0.65395933", "text": "load() {\n if (this.state == TileState.ERROR) {\n this.state = TileState.IDLE;\n this.image_ = new Image();\n if (this.crossOrigin_ !== null) {\n this.image_.crossOrigin = this.crossOrigin_;\n }\n }\n if (this.state == TileState.IDLE) {\n this.state = TileState.LOADING;\n this.changed();\n this.tileLoadFunction_(this, this.src_);\n this.unlisten_ = listenImage(\n this.image_,\n this.handleImageLoad_.bind(this),\n this.handleImageError_.bind(this)\n );\n }\n }", "title": "" }, { "docid": "1cfd00cdb10e6d935fae14aad0b02d29", "score": "0.6526528", "text": "function imageLoaded() {\n\timageYetToLoad--;\n}", "title": "" }, { "docid": "4588234adcf08f1a0c1f079bc8893c5e", "score": "0.64994067", "text": "function cdc_display_image_when_loaded(img,url){\r\n\t// we're extending img with .tempImg to do a test load of the src with a new image object\r\n\timg.tempImg = new Image();\r\n\timg.tempImg.onload = function(){\r\n\t\t// this prevents the image src in html from firing the onload again\r\n\t\timg.onload=null;\r\n\t\timg.src = img.tempImg.src;\r\n\t\timg.tempImg.onload=null;\r\n\r\n\t\tif(img.id == \"bam_img\"){\r\n\t\t\timg.parentNode.href = img.src.replace('image.ng','click.ng');\r\n\t\t}\r\n\t};\r\n\t// putting this after the onload handler above\r\n\timg.tempImg.src = url;\r\n}", "title": "" }, { "docid": "39c9c34cea5afbabfaaed30039aed210", "score": "0.64911824", "text": "function loadImage() {\n\n // image file not loaded yet? => load image file\n if ( !resource ) jQuery( '<img src=\"' + url + '\">' );\n\n // immediate perform success callback\n success();\n\n }", "title": "" }, { "docid": "bd600db744b2519b5405d23e54d54e8b", "score": "0.6478165", "text": "function beginLoadingImage(imgVar, fileName) {\r\n imgVar.onload = countLoadedImagesAndLaunchIfReady;\r\n imgVar.src = 'images/' + fileName;\r\n}", "title": "" }, { "docid": "8f99976ab8590e822c41539c2f7ec630", "score": "0.64688206", "text": "function imageIsLoaded(e) {\n $('#img-profile').attr('src', e.target.result);\n }", "title": "" }, { "docid": "1c8fa13bf6903e9897b0eef017099bd1", "score": "0.64540476", "text": "async function loadingImg() {\r\n let img = await prom; // continuation of function will halt till prom is resolved\r\n\r\n let id = self.createID()\r\n self.fill_ID_ImageHash(id,img)\r\n img.id = id\r\n \r\n // now we can set options for image, or do something else with it\r\n if (ops) {\r\n img.set(ops)\r\n };\r\n\r\n\r\n if (canv) {\r\n canv.add(img);\r\n } else {\r\n self.canvas.add(img)\r\n }\r\n\r\n if (cb) {\r\n cb(img)\r\n\r\n };\r\n\r\n //return img\r\n }", "title": "" }, { "docid": "03703ae68ca4fc66eca1c8263c4985b0", "score": "0.6452284", "text": "function markImageAsLoaded(image){image.classList.add('sarafan-loaded');}", "title": "" }, { "docid": "0688ebb4b46577c55246e75f5b817788", "score": "0.64391035", "text": "function loadImage(event) {\n user_photo.attr('src', event.target.result);\n}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "989f15976b108f7a31a6683c14024507", "score": "0.6383236", "text": "function imgLoader(el){\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\tvar img=new Image();\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t}\n\t\t\t\tfunction imgOnLoad(){\n\t\t\t\t\tthis.onload=null;\n\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\tdoUpd(2);\n\t\t\t\t}\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\n\t\t\t\timg.src=el.src;\n\t\t\t}", "title": "" }, { "docid": "9bd4dd93c7e215e3184cadbc243da6f6", "score": "0.6380072", "text": "loadImg() {\n let loadedCount = 0\n function onLoad() {\n loadedCount++\n if (loadedCount >= this.imgPaths.length) {\n this.flowStart()\n }\n }\n this.baseImages = this.imgPaths.map(path => {\n const image = new Image()\n image.onload = onLoad.bind(this)\n image.src = path\n return image\n })\n }", "title": "" }, { "docid": "8f7953a959c43bfda8c7947784f04e03", "score": "0.6379137", "text": "function imgLoader(el) {\n\t\t\t\t\tif ($(el).hasClass(classes[2])) {\n\t\t\t\t\t\tdoUpd();return;\n\t\t\t\t\t}\n\t\t\t\t\tvar img = new Image();\n\t\t\t\t\tfunction createDelegate(contextObject, delegateMethod) {\n\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\treturn delegateMethod.apply(contextObject, arguments);\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\tfunction imgOnLoad() {\n\t\t\t\t\t\tthis.onload = null;\n\t\t\t\t\t\t$(el).addClass(classes[2]);\n\t\t\t\t\t\tdoUpd(2);\n\t\t\t\t\t}\n\t\t\t\t\timg.onload = createDelegate(img, imgOnLoad);\n\t\t\t\t\timg.src = el.src;\n\t\t\t\t}", "title": "" }, { "docid": "6c68fcaf69f991930a343b15b5c32cdd", "score": "0.63768774", "text": "ImageLoadedhandler() {\r\n this.setState({ imageStatus: \"loaded\" });\r\n }", "title": "" }, { "docid": "3672c2fb4a209a66e991d43cb2289967", "score": "0.6373411", "text": "function imgLoader(el){\n if($(el).hasClass(classes[2])){doUpd(); return;}\n var img=new Image();\n function createDelegate(contextObject,delegateMethod){\n return function(){return delegateMethod.apply(contextObject,arguments);}\n }\n function imgOnLoad(){\n this.onload=null;\n $(el).addClass(classes[2]);\n doUpd(2);\n }\n img.onload=createDelegate(img,imgOnLoad);\n img.src=el.src;\n }", "title": "" }, { "docid": "8172cbdbb2187374f9d3ee94240d1aef", "score": "0.63716173", "text": "function imageLoading() {\n imageLoaded++;\n if (imageLoaded === totalImages) {\n ready = true;\n loader.hidden = true;\n }\n console.log(\"image is loaded\");\n}", "title": "" }, { "docid": "03513615579c3934ea4e4443f8c8ea48", "score": "0.63700503", "text": "function afterImageLoadSetup() {\n this.originalImageInfo.width = this.imageElement.prop(\"naturalWidth\");\n this.originalImageInfo.height = this.imageElement.prop(\"naturalHeight\");\n this.originalImageInfo.url = this.imageElement.prop(\"src\");\n\n this.controls = new sewi.ImageControls();\n \n this.controls.on(sewi.constants.IMAGE_CONTROLS_BRIGHTNESS_CHANGED_EVENT, applyInbuiltImageBrightness.bind(this));\n this.controls.on(sewi.constants.IMAGE_CONTROLS_CONTRAST_CHANGED_EVENT, applyInbuiltImageContrast.bind(this));\n this.controls.on(sewi.constants.IMAGE_CONTROLS_CUSTOM_FILTERS_CHANGED_EVENT, applyCustomImageFilters.bind(this));\n\n this.mainDOMElement.append(this.controls.getDOM());\n\n this.addDownloadButton(getImageUri.bind(this));\n\n setupZoomControls.call(this);\n\n this.hideProgressBar();\n }", "title": "" }, { "docid": "85eff05dd5ff9e266cd8711c987977c9", "score": "0.6355764", "text": "function imgLoader(el){\r\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\r\n\t\t\t\tvar img=new Image();\r\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\r\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\r\n\t\t\t\t}\r\n\t\t\t\tfunction imgOnLoad(){\r\n\t\t\t\t\tthis.onload=null;\r\n\t\t\t\t\t$(el).addClass(classes[2]);\r\n\t\t\t\t\tdoUpd(2);\r\n\t\t\t\t}\r\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\r\n\t\t\t\timg.src=el.src;\r\n\t\t\t}", "title": "" }, { "docid": "85eff05dd5ff9e266cd8711c987977c9", "score": "0.6355764", "text": "function imgLoader(el){\r\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\r\n\t\t\t\tvar img=new Image();\r\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\r\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\r\n\t\t\t\t}\r\n\t\t\t\tfunction imgOnLoad(){\r\n\t\t\t\t\tthis.onload=null;\r\n\t\t\t\t\t$(el).addClass(classes[2]);\r\n\t\t\t\t\tdoUpd(2);\r\n\t\t\t\t}\r\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\r\n\t\t\t\timg.src=el.src;\r\n\t\t\t}", "title": "" }, { "docid": "85eff05dd5ff9e266cd8711c987977c9", "score": "0.6355764", "text": "function imgLoader(el){\r\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\r\n\t\t\t\tvar img=new Image();\r\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\r\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\r\n\t\t\t\t}\r\n\t\t\t\tfunction imgOnLoad(){\r\n\t\t\t\t\tthis.onload=null;\r\n\t\t\t\t\t$(el).addClass(classes[2]);\r\n\t\t\t\t\tdoUpd(2);\r\n\t\t\t\t}\r\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\r\n\t\t\t\timg.src=el.src;\r\n\t\t\t}", "title": "" }, { "docid": "85eff05dd5ff9e266cd8711c987977c9", "score": "0.6355764", "text": "function imgLoader(el){\r\n\t\t\t\tif($(el).hasClass(classes[2])){doUpd(); return;}\r\n\t\t\t\tvar img=new Image();\r\n\t\t\t\tfunction createDelegate(contextObject,delegateMethod){\r\n\t\t\t\t\treturn function(){return delegateMethod.apply(contextObject,arguments);}\r\n\t\t\t\t}\r\n\t\t\t\tfunction imgOnLoad(){\r\n\t\t\t\t\tthis.onload=null;\r\n\t\t\t\t\t$(el).addClass(classes[2]);\r\n\t\t\t\t\tdoUpd(2);\r\n\t\t\t\t}\r\n\t\t\t\timg.onload=createDelegate(img,imgOnLoad);\r\n\t\t\t\timg.src=el.src;\r\n\t\t\t}", "title": "" }, { "docid": "7d115aab8aec16760d77e8cb5d9ab1ec", "score": "0.63451463", "text": "function imgLoader(el){\r\n if($(el).hasClass(classes[2])){doUpd(); return;}\r\n var img=new Image();\r\n function createDelegate(contextObject,delegateMethod){\r\n return function(){return delegateMethod.apply(contextObject,arguments);}\r\n }\r\n function imgOnLoad(){\r\n this.onload=null;\r\n $(el).addClass(classes[2]);\r\n doUpd(2);\r\n }\r\n img.onload=createDelegate(img,imgOnLoad);\r\n img.src=el.src;\r\n }", "title": "" }, { "docid": "8618032dba8426a36661e84e393152ea", "score": "0.6340233", "text": "function initImgLoader() {\n $('#img-loader-button').click(function() {\n var url = prompt('Background image loader.\\nInput image url.');\n img = Image();\n img.src = url;\n img.onload = function() {\n ctx.drawImage(img, 0, 0, ctx.canvas.width, ctx.canvas.height);\n }\n });\n }", "title": "" }, { "docid": "cbd4f62a7894ea64bc863dd17615d07b", "score": "0.6336054", "text": "function imageLoaded()\n{\n imageLoad++;\n if(imageLoad===totalImages)\n {\n ready=true;\n loader.hidden=true;\n }\n\n}", "title": "" }, { "docid": "7839ac62da668e3587eff6bfea0f9386", "score": "0.63359356", "text": "function handler( e ){\n data.element = this;\n data.found = e.type == 'load';\n data.image = this.src;\n data.index = this.index;\n var orig = data.original = sources[this.index];\n data[data.found?'loaded':'failed']++;\n data.done++;\n\n if( settings.onComplete ) {\n settings.onComplete( data );\n }\n if( data.done < data.total ) {\n fetch( 0, this );\n } else {\n if( imgs && imgs.unbind ) {\n imgs.unbind('load').unbind('error').unbind('abort');\n }\n imgs = null;\n finish();\n }\n }", "title": "" }, { "docid": "34c9b3353f3d8ace1e994b7974042c9d", "score": "0.632773", "text": "function dynamiclayerLoad(event) {\n\n }", "title": "" }, { "docid": "424b067d63a442c35c24e0a3344f4f9b", "score": "0.63204175", "text": "function load(imgName) {\r\n if (document.images) {\r\n document.floatimg.src = eval(imgName + \".src\");\r\n }\r\n }", "title": "" }, { "docid": "af1b0cf7af21f48f0f7ed01c1eac51da", "score": "0.63198286", "text": "function preload() {\n // img = loadImage('url')\n}", "title": "" }, { "docid": "1b17d3d5e390313091fdf44ed33744b3", "score": "0.63135993", "text": "function imageLoaded() {\n console.log(\"firing!\");\n imagesLoaded++;\n if (imagesLoaded === totalImages) {\n ready = true;\n loader.hidden = true;\n count = 30;\n }\n}", "title": "" }, { "docid": "e0ea7b1f91ec631700ebdc13db801245", "score": "0.6308691", "text": "function _loadImage(element, component) {\n\t\t\tvar img = new Image();\n\t\t\tvar elementName = element.getAttribute(\"name\");\n\t\t\tvar elementSource = element.getAttribute(\"src\");\n\t\t\tvar imgUrl;\n\t\t\tif (elementSource.indexOf('data:image/png;base64,') === 0) {\n\t\t\t\timgUrl = elementSource;\n\t\t\t} else {\n\t\t\t\tvar skinUrl = jwplayer.html5.utils.getAbsolutePath(skinPath);\n\t\t\t\tvar skinRoot = skinUrl.substr(0, skinUrl.lastIndexOf('/'));\n\t\t\t\timgUrl = [skinRoot, component, elementSource].join('/');\n\t\t\t}\n\t\t\t\n\t\t\t_skin[component].elements[elementName] = {\n\t\t\t\theight: 0,\n\t\t\t\twidth: 0,\n\t\t\t\tsrc: '',\n\t\t\t\tready: false\n\t\t\t};\n\t\t\t\n\t\t\timg.onload = function(evt) {\n\t\t\t\t_completeImageLoad(img, elementName, component);\n\t\t\t};\n\t\t\timg.onerror = function(evt) {\n\t\t\t\t_skin[component].elements[elementName].ready = true;\n\t\t\t\t_resetCompleteIntervalTest();\n\t\t\t};\n\t\t\t\n\t\t\timg.src = imgUrl;\n\t\t}", "title": "" }, { "docid": "d868bf4dbd36af7087fe1fc694907eb9", "score": "0.6305979", "text": "function firstImageLoaded( img )\n {\n This.widget.getAnalytics().fireOpenSlate();\n\n if( true == m_disableGallery ) return;\n Logger.log(\"ImageGalleryAdView::firstImageLoaded() - first image of the gallery loaded, gallery will now open\");\n\n m_isLoadingImage = false;\n m_currentTimeOut = 0;\n disableActivityIndicator();\n\n var slate = AssetLoaderInstance.createSlate( img );\n m_currentImage = slate;\n\n // Innovid requested this value to be ignored\n if( true )//m_galleryUrls[m_currentGalleryIndex].fit == true )\n {\n m_currentImage.width = 1920;\n m_currentImage.height = 1080;\n }\n m_currentImage.y = (1080 * 0.5) - (m_currentImage.height * 0.5);\n m_currentImage.x = (1920 * 0.5) - (m_currentImage.width * 0.5);\n\n m_imageContainer&&m_imageContainer.addChild( m_currentImage );\n\n disablePlaceHolder();\n showControls();\n updateText();\n }", "title": "" }, { "docid": "e0af7ae31ddcb08b2742a9fca155ce76", "score": "0.6300537", "text": "function imageLoaded() {\r\n \r\n imagesLoaded++;\r\n console.log('imagesLoaded', imagesLoaded);\r\n if (imagesLoaded === totalImage) {\r\n ready = true;\r\n loader.hidden = true;\r\n \r\n \r\n }\r\n\r\n}", "title": "" }, { "docid": "cc12b16241f838b612e7e0515cc54ef2", "score": "0.62946254", "text": "function imageLoaded() {\n loadedCount++;\n\n if (loadedCount >= startImageCount) {\n\tawaitRound(\"HTML5 BOXING!\", true);\n }\n}", "title": "" }, { "docid": "5efe821fdb6a0b284091938daacdf681", "score": "0.62893635", "text": "function magImgSwitch(img,loader){\r\n\tif(loader){\r\n\t\timg.attr(\"src\",context+\"/resources/images/standard/loader.gif\");\r\n\t}else{\r\n\t\timg.attr(\"src\",context+\"/resources/images/standard/lupa-table.png\");\r\n\t}\r\n}", "title": "" }, { "docid": "d86b785657690d645cb31d91c1f33610", "score": "0.62740356", "text": "function placeHolderLoaded( img )\n {\n Logger.log(\"ImageGalleryAdView::placeHolderLoaded()\");\n var config = This.widget&&This.widget.getConfigurationObject();\n var pos = config.getInteractiveAdApps()[0].getPlaceHolder();\n var placeHolder = config.getInteractiveAdApps()[0].getCustomLauncher();\n\n img.width = placeHolder.getWidth();\n img.height = placeHolder.getHeight();\n\n var slate = AssetLoaderInstance.createSlate( img );\n m_placeHolder = slate;\n\n // Innovid requested scale parameter to be ignored\n //slate.scaleX = pos.getScale();\n //slate.scaleY = pos.getScale();\n\n slate.x = (pos.getLeft() * 1920) / 100;\n slate.y = (pos.getTop() * 1080) / 100;\n }", "title": "" }, { "docid": "f63b6a141f5815def1b0af1090111aab", "score": "0.6273789", "text": "function fitImageOnLoad(selector) {\n//\t$(\".stuffypic\").one('load', () ->\n//\t\tfitImage this\n//\t).each () ->\n//\t\tif this.complete \n//\t\t\t$(this).load();\n $(selector).each(function() {\n fitImage(this);\n });\n}", "title": "" }, { "docid": "7b87148db7f641d4798a4692f97d4a32", "score": "0.6262711", "text": "function handleFileLoad(event) {\n console.log(\"A file has loaded of type: \" + event.item.type);\n // create bitmaps of images\n if (event.item.id == \"background\") {\n background = new createjs.Bitmap(event.result);\n } else if (event.item.id.includes(\"treaty_\")) {\n var tempTreaty = new createjs.Bitmap(event.result);\n tempTreaty.id = event.item.id;\n treatyImages.push(tempTreaty);\n } else if (event.item.id == \"panel\") {\n panel = new createjs.Bitmap(event.result);\n }\n}", "title": "" }, { "docid": "efd887ac6ef691b17312295ceec7a71a", "score": "0.62464166", "text": "onLoad () {\n this.slider_v.progress = 0.5;\n this._updateImageOpacity(this.slider_v.progress);\n }", "title": "" }, { "docid": "955f085ef89b7272681ba3db28e4eb06", "score": "0.62449306", "text": "function allModulesLoaded() {\n this.flexipRef.imageLoadSource(config.image);\n}", "title": "" }, { "docid": "44354a0dc2046a31aa67579795d3590b", "score": "0.6242487", "text": "function imgLoader(el){\n\t\t\t\t if($(el).hasClass(classes[2])){doUpd(); return;}\n\t\t\t\t var img=new Image();\n\t\t\t\t function createDelegate(contextObject,delegateMethod){\n\t\t\t\t\t return function(){return delegateMethod.apply(contextObject,arguments);}\n\t\t\t\t }\n\t\t\t\t function imgOnLoad(){\n\t\t\t\t\t this.onload=null;\n\t\t\t\t\t $(el).addClass(classes[2]);\n\t\t\t\t\t doUpd(2);\n\t\t\t\t }\n\t\t\t\t img.onload=createDelegate(img,imgOnLoad);\n\t\t\t\t img.src=el.src;\n\t\t\t }", "title": "" }, { "docid": "f4a4d02fb76f9839ac324da28b883ca6", "score": "0.62368727", "text": "cellLoad(img) {\r\n\t\tlet portal = this.portalsViewModel.getPortal(img);\r\n\t\t\r\n\t\tconst url = PortalCell.readUrl(img);\r\n\t\t// fill display data\r\n\t\tthis.mainImg.src = url;\r\n\t\t//this.mainCaption.textContent = img.title;\r\n\t\tthis.mainCaption.innerHTML = `<a href=\"${url}\" target=\"_blank\">${img.title}</a>`;\r\n\t\tthis.mainSection.style.display = '';\r\n\t\tthis.mainForm.style.display = '';\r\n\r\n\t\t// prep internals\r\n\t\tthis.mainForm._zoomerImg = img;\r\n\t\tthis.mainForm._portal = portal;\r\n\r\n\t\t// init fields\r\n\t\tthis.updateDoneField(portal.done);\r\n\t\tthis.updatePuzzleField(portal);\r\n\t\tthis.updateDisplay(portal);\r\n\t\tthis.mainFields.notes.value = portal.notes;\r\n\t}", "title": "" }, { "docid": "561f3fff7e7ad544d4abd022cf1ecf33", "score": "0.62360555", "text": "function _loadedHandler (st) {\n\tthis.config.onReady.state |= st;\n\t$(\"#hmDiv\", $(this)).css(\"background-image\", \"\");\n\t$(\"#hmImg\", $(this)).css({ visibility: \"visible\" });\n\t\n\tif (this.config.onReady.state == loadStates.READY) {\n\t if (this.config.resizable.val && this.config.dataset.val != 'banner') {\n\t\t$this = this;\n\t\t$(\"#hmImg\", this).resizable({'ghost': true, 'stop': function(e) { \n\t\t //var $this = $(this).closest('.hm-container').parent();\n\t\t _methods.config.apply($this, [{ \"width\": parseInt($(this).width()), \n\t\t\t\t\t\t \"height\": parseInt($(this).height()) }]);\t\t\t\n\t\t \n\t\t _load_heatmap.apply($this);\n\t\t} });\n\t }\n\n\t if (typeof this.config.onReady.val == 'function') {\n\t\tthis.config.onReady.val.apply(this);\n\t }\n\t}\n\treturn true;\n }", "title": "" }, { "docid": "487d498645b91764bd449f82a5648a0d", "score": "0.62360126", "text": "function imageLoaded(){\nimagesLoaded++ ;\nif(imagesLoaded === totalImages){\n ready = true;\n loader.hidden = true;\n }\n}", "title": "" }, { "docid": "c72fbf281866b42389572690c2559fc6", "score": "0.62155616", "text": "function onImageLoad (src, fn) {\n var img = document.createElement('img')\n img.src = src\n img.addEventListener('load', fn)\n}", "title": "" }, { "docid": "159f5687b4beabd9148a7a7777c1d969", "score": "0.6207249", "text": "function imageLoaded(){\n counter--; \n if( counter === 0 ) {\n el.show();\n el.vars.start();//Calls \"start\" callback function\n methods.coverImages();\n methods.slideTimer();\n methods.animate(); \n }\n }", "title": "" }, { "docid": "3ae9c81fe885fd1aed50fc10f97b9ad0", "score": "0.620287", "text": "function preload() {\n //img = loadImage(\"https://cdn0.iconfinder.com/data/icons/kitchen-colored-3/48/Household_Kitchen_Artboard_120-512.png\");\n img = loadImage(\"https://i.ibb.co/XLvW3GJ/salt3.png\");\n \n\n\n}", "title": "" }, { "docid": "73f630df8d90d25edbcff8e5ae2d7ec6", "score": "0.61930925", "text": "imageLoadEnded() {\n this.stateMap.images_still_loading -= 1;\n if(this.stateMap.images_still_loading < 0) {\n console.log(\"There are a negative number of images loading.\");\n }\n if(this.stateMap.images_still_loading == 0) {\n console.log(\"shell: images done loading\");\n spa.imagelistmodel.deployConfig();\n }\n }", "title": "" }, { "docid": "7fd08496f7fbda73d550479f240aa959", "score": "0.6192663", "text": "function ev_imageLoaded () {\n // Did the image already load?\n if (imageLoaded) {\n return;\n }\n\n // The default position for the inserted image is the top left corner of the visible area, taking into consideration the zoom level.\n var x = MathRound(gui.elems.viewport.scrollLeft / canvasImage.canvasScale),\n y = MathRound(gui.elems.viewport.scrollTop / canvasImage.canvasScale);\n\n context.clearRect(0, 0, canvasImage.width, canvasImage.height);\n\n try {\n context.drawImage(imageElement, x, y);\n } catch (err) {\n alert(lang.errorInsertimg);\n return;\n }\n\n imageLoaded = true;\n needsRedraw = false;\n\n if (!timer) {\n timer = setInterval(_self.draw, config.toolDrawDelay);\n }\n\n gui.statusShow('insertimgLoaded');\n }", "title": "" }, { "docid": "b79c4dfda09e05f28b4c1269551b3d7c", "score": "0.61923003", "text": "function loadImg(obj, imageId) {\n \n $('#ms-lightbox, #ms-overlay').remove();\n \n // show the lLightbox\n obj.showLightbox();\n \n // show navigation arraows\n createArrowLinks(imageId);\n }", "title": "" }, { "docid": "6197d6421e4d8a1d8d81cd250f317784", "score": "0.6186467", "text": "preload(i){\n if(i===this.imgUrl.length){\n return;\n }\n if(this.prelaodImg.length === 2){\n document.dispatchEvent(new CustomEvent('load-complete',{}));\n }\n const tImg = document.createElement('img');\n tImg.src = this.imgUrl[i];\n //when load is done, load next\n tImg.addEventListener('load',(event)=>{this.preload(++i);\n console.log('loaded '+tImg.src);\n })\n this.prelaodImg.push(tImg);\n }", "title": "" }, { "docid": "f411b1b8a70d55ccf205afb001f1339e", "score": "0.6177589", "text": "function loadImage() {\n\t\t$('div.thumbnail a img').on('click', function(){\n\t\t\tvar image = this.src;\n\t\t\t$('.image-load').html('<img src=\"' + image + '\">');\n\t\t});\n\t}", "title": "" }, { "docid": "7b9394d7af01fa13bf095c2a0fc14619", "score": "0.61763746", "text": "function imageLoaded() {\n \n imagesLoaded++\n if (imagesLoaded === totalImages) {\n ready = true\n loader.hidden = true\n console.log('ready = ', ready)\n }\n \n \n}", "title": "" }, { "docid": "fbabd4f4aa93fa3f30697f8bdd2d4259", "score": "0.61704975", "text": "function readerOnLoad( e ) {\n\t\t\t_scope.preview.setCSS( 'background-image', 'url(' + e.target.result + ')' );\n\t\t\t_scope.dispatchEvent( ASJS.FileSelector.ON_CHANGE );\n\t\t}", "title": "" }, { "docid": "c81fc1f5e63949e26e4779346b24590a", "score": "0.61684537", "text": "function imageOnload() {\n this.style.zIndex = imageNr; // Image finished, bring to front!\n while (1 < finished.length) {\n var del = finished.shift(); // Delete old image(s) from document\n del.parentNode.removeChild(del);\n }\n finished.push(this);\n if (!paused) createImageLayer();\n}", "title": "" }, { "docid": "9deba777a9f527ecef849187da6172ea", "score": "0.6163997", "text": "function loadImage(idOfDiv,Image){\n $(idOfDiv).attr('src', Image)\n .on('load', function() {\n if (!this.complete || typeof this.naturalWidth == \"undefined\" || this.naturalWidth == 0) {\n $(\"#commonError\").slideDown(\"slow\");\n setTimeout('$(\"#commonError\").slideUp(\"slow\")',1500);\n } else {\n }\n });\n}", "title": "" }, { "docid": "c9351735c531ccc26b916c4218ccac4a", "score": "0.6154364", "text": "loadImage() {\n this.imagesLoaded++;\n if (this.imagesLoaded >= this.slides.length) { this.playSlideshow() }\n }", "title": "" }, { "docid": "3a140c4cd40da2d07822b56efc34b511", "score": "0.6150951", "text": "_didLoad () {\n // Clear the height cache\n this._lastHeight = 0\n \n // Post-process content\n this._unescapeImageURLs()\n \n // Setup event listeners\n this._addHeightListener('details', 'toggle')\n this._addHeightListener('img, svg', 'load')\n }", "title": "" }, { "docid": "35f58ae2da0006d97c66ebbdd576d919", "score": "0.61502945", "text": "preload() {\n this.load.image('menu', 'assets/menu_v3.png');\n }", "title": "" }, { "docid": "89e28f7cc385e22caf96cfc30424d8f5", "score": "0.6148649", "text": "loadImage() {\n this.imagesLoaded++;\n if (this.imagesLoaded >= this.slides.length) {\n this.playSlideshow();\n }\n }", "title": "" }, { "docid": "b60fcc900c0b5057f0ebfaa4b57c8791", "score": "0.6138639", "text": "function onPictureLoad(){\r\n\t// draw loaded picture hidden\r\n\t// this is the way to get to the image array from an URL\r\n\tcanvasWidth = picture.width;\r\n\tcanvasHeight = picture.height;\r\n\tctx.canvas.width = canvasWidth; \r\n\tctx.canvas.height = canvasHeight;\r\n\tctx.drawImage(picture,0,0);\r\n\timageData = ctx.getImageData(0,0,picture.width,picture.height);\r\n\t\r\n\t// calculate zoom\r\n\tif (canvasWidth > imageArea.sizeX){\r\n\t\tzoom = Math.floor(imageArea.sizeX / canvasWidth * 100);\r\n\t}\r\n\tif (canvasHeight > imageArea.sizeY){\r\n\t\tvar zoomY = Math.floor(imageArea.sizeY / canvasHeight * 100);\r\n\t\tif( zoomY < zoom ){\r\n\t\t\tzoom = zoomY;\r\n\t\t}\r\n\t}\r\n\t\r\n\tcanvasOldWidth = canvasWidth;\r\n\tcanvasOldHeigth = canvasHeight;\r\n\timageDraw(imageData);\r\n\t\r\n\t// place the canvas in the middle of the image Area\r\n\t$('#image_canvas').css('left', (imageArea.sizeX/2-canvasWidth/2) + 'px');\r\n\t$('#image_canvas').css('top', (imageArea.sizeY/2-canvasHeight/2) + 'px');\r\n\t$('#image_canvas').show();\r\n\t\r\n\tfilter = [];\r\n\tinitFilter(filter);\r\n\tremoveFilter();\r\n\tactFilterNum =-1;\r\n\tshowFilter();\r\n\t\r\n\tpictureLoaded = true;\r\n}", "title": "" }, { "docid": "0d7300358d0d2b44a8c8f6ad200d5bf2", "score": "0.6132436", "text": "function loadImg() {\n\t\tif (!showedImage.loaded) {\n\t\t\tloading.show();\n\t\t}\n\t\tconst successFunction = function() {\n\t\t\tshowedImage.loaded = true;\n\t\t\tif (!isClosed) {\n\t\t\t\tshow(this);\n\t\t\t\tfor (let j = 1; multi && j <= preloadedImages; j++) preloadImg(j);\n\t\t\t}\n\t\t};\n\t\tlet img;\n\t\tif (showedImage.type === Types.IMAGE) {\n\t\t\timg = new Image();\n\t\t\timg.onload = successFunction;\n\t\t\timg.onerror = function() {\n\t\t\t\tshowedImage.loaded = true;\n\t\t\t\tif (!isClosed) {\n\t\t\t\t\tshow(false);\n\t\t\t\t}\n\t\t\t};\n\t\t} else {\n\t\t\timg = document.createElement(\"video\");\n\t\t\timg.oncanplay = successFunction;\n\t\t}\n\t\tisLoading = true;\n\t\timg.src = showedImage.href;\n\t}", "title": "" }, { "docid": "873a98179753fc90d747ed85e70950a1", "score": "0.6116824", "text": "function imageLoaded() {\n // Increments the value of the \"loadedImages\" variable\n loadedImages++;\n // Updates the preloader percentage text\n $(\"#spinner span\").text(Math.floor(loadedImages / totalFrames * 100) + \"%\");\n // Checks if the currently loaded image is the last one in the sequence...\n if (loadedImages == totalFrames) {\n // ...if so, it makes the first image in the sequence to be visible by removing the \"previous-image\" class and applying the \"current-image\" on it\n frames[0].removeClass(\"previous-image\").addClass(\"current-image\");\n /*\n Displays the image slider by using the jQuery \"fadeOut\" animation and its complete event handler.\n When the preloader is completely faded, it stops the preloader rendering and calls the \"showThreesixty\" function to display the images.\n */\n $(\"#spinner\").fadeOut(\"slow\", function(){\n spinner.hide();\n showThreesixty();\n });\n } else {\n // ...if not, Loads the next image in the sequence\n loadImage();\n }\n }", "title": "" }, { "docid": "1123d8522d4f8ef69b7e7987662c84da", "score": "0.6112628", "text": "onImageLoaded(image) {\n\n this.imageRef = image;\n\n }", "title": "" }, { "docid": "bb713043e2cc309a1fd2d6ac7e5a3b03", "score": "0.61119926", "text": "function loadAllPrepared(img,opt) {\n\t\tif (img.data('preloading')==1) return false;\n\n\t\tvar ar = opt.aspectratio,\n\t \t \taratio=parseInt(ar[0],0) / parseInt(ar[1],0),\n\t \t \tlimg = new Image();\n\n\n\n\n \t \tif (img.data('lazysrc')!=img.attr('src') && img.data('lazysrc')!=undefined && img.data('lazysrc')!='undefined') {\n\n\t\t\tif (img.data('lazysrc') !=undefined && img.data('lazysrc') !='undefined')\n\t\t\t\timg.attr('src',img.data('lazysrc'));\n\t\t}\n\n\t\timg.data('preloading',1);\n\n\t\tlimg.onload = function(loadedimg) {\n\t\t\timg.data('lazydone',1);\n\t\t\timg.data('ww',limg.width);\n\t\t\timg.data('hh',limg.height);\n\t\t\timg.closest('.showmeonload').addClass(\"itemtoshow\").removeClass(\"showmeonload\").addClass(\"loadedmedia\");\n\t\t\tevenImageRatio(img,opt);\n\t\t\tif (opt.lazyLoad==\"on\")\n\t\t\t\twaittorungGrid(img,opt,true);\n\n\t\t}\n\n\t\tlimg.onerror = function() {\n\t\t\t\timg.data('lazydone',1);\n\t\t\t\timg.closest('.showmeonload').addClass(\"itemtoshow\").removeClass(\"showmeonload\").addClass(\"loadedmedia\");\n\t\t\t\tif (opt.lazyLoad==\"on\")\n\t\t\t\t\twaittorungGrid(img,opt,true);\n\n\t\t\t}\n\n\n\t\tif (img.attr('src')!=undefined && img.attr('src')!='undefined')\n\t\t\tlimg.src = img.attr('src');\n\t\t else\n\t\t\tlimg.src = img.data('src');\n\n\t\tif (limg.complete) {\n\t\t\timg.data('lazydone',1);\n\t\t\timg.data('ww',limg.width);\n\t\t\timg.data('hh',limg.height);\n\t\t\timg.closest('.showmeonload').addClass(\"itemtoshow\").removeClass(\"showmeonload\").addClass(\"loadedmedia\");\n\t\t\tevenImageRatio(img,opt);\n\t\t\tif (opt.lazyLoad==\"on\")\n\t\t\t\twaittorungGrid(img,opt,true);\n\t\t}\n\n\n}", "title": "" } ]
5ccc02fee88ff8fce3ed3bc705470904
Function to update the DOM to reflect a redo/undo action.
[ { "docid": "08a74730ec64b6445aaa26b91a4f2bd5", "score": "0.0", "text": "function updateBoard() {\n // get current board state\n var state = _store.default.getState(); // init the iterators \n\n\n var i = 1;\n var j = 1;\n document.querySelectorAll(\".category\").forEach(function (category) {\n // restart category iterator once we reach the limit and increment the reward iterator\n if (j > 5) {\n j = 1;\n i++;\n }\n\n var tile = document.querySelector(\".reward-tile.r\".concat(i, \".c\").concat(j));\n var btn = document.querySelector(\".remove-btn.r\".concat(i, \".c\").concat(j));\n mapTilesToBoardState(i, j, tile, btn, state);\n j++;\n });\n}", "title": "" } ]
[ { "docid": "ca744f4ccb95e1283124f1b75d3634ca", "score": "0.72816354", "text": "redo() {\n return this._client.send(\"DOM.redo\");\n }", "title": "" }, { "docid": "ee9e4d304b912651cc4dc521b2cfdac6", "score": "0.6716439", "text": "function redoLastAction() {\n if( unDone ) { // if the last action is \"undo\"\n if( lastAction === \"create\" ) {\n createChildNode( lastParentNode, \"redo\" );\n }\n else if( lastAction === \"update\" ) {\n updateNode( lastNode, newName, \"redo\" );\n }\n else if( lastAction === \"delete\" ) { // deliberately not asking confirmation, since it's unnecessary\n deleteNode( lastNode, \"soft\" );\n }\n // done redo (not undo); enable successive undo\n unDone = false;\n }\n}", "title": "" }, { "docid": "ef0b95b39b98ae11a8beabe844043ad0", "score": "0.6630779", "text": "redo() {\n\t\t\tthis._editor.redo();\n\t\t\tthis._renderers.forEach((r) => this.hideDetailsPanel(r, true));\n\t\t\tthis.rerender();\n\t\t}", "title": "" }, { "docid": "229a0f23a1d22efd6d282d0bd832d44b", "score": "0.6620473", "text": "function redo() {\n\tif (stackRedo.length > 0) {\n\t\tvar doAction = stackRedo.pop();\n\t\tstackUndo.push(JSON.stringify(cur_ns));\n\t\tclean();\n\t\tcur_ns = JSON.parse(doAction);\n\t\tdisplayNS();\n\t\tupdateServiceOnServer(\"redo\");\n\t\tlastState = JSON.stringify(cur_ns);\n\t}\n}", "title": "" }, { "docid": "cc281ceca26232f5ac2d7078667e90bc", "score": "0.66040707", "text": "function redo() {\n if (canRedo()) {\n pos++;\n content.fromJSON(stack[pos]);\n events.emit('undo-changed');\n }\n }", "title": "" }, { "docid": "04ce3eb4ed8027291fd09ee1e8300d45", "score": "0.6564096", "text": "function goUpdateUndoEditMenuItems()\n{\n goUpdateCommand(\"cmd_undo\");\n goUpdateCommand(\"cmd_redo\");\n}", "title": "" }, { "docid": "df5218043ec6731b2e8060a94a911ff0", "score": "0.6562466", "text": "function goUpdateUndoEditMenuItems()\n{\n goUpdateCommand('cmd_undo');\n goUpdateCommand('cmd_redo');\n}", "title": "" }, { "docid": "d2b0ff70987b45eea8b42602d96a4459", "score": "0.65382165", "text": "function history_undo() {\n if (history_past.length < 2) return;\n\n //add the currently displayed result to the redo stack\n redo_stack.push(history_past.pop());\n var previous = history_past[history_past.length - 1];\n writeEverything(previous);\n\n // enable redo_nappi\n document.getElementById(\"redo_nappi\").disabled = false;\n //history exists, enable undo_nappi\n if (history_past.length < 2)\n document.getElementById(\"undo_nappi\").disabled = true;\n}", "title": "" }, { "docid": "6b92cd8a62a1856c49ec98be26306a57", "score": "0.65328586", "text": "redo() {\n if (this.pos >= this.history.length - 1) {\n throw \"No redo history available.\";\n }\n\n var entry = this.history[++this.pos];\n\n // apply the transform and update function if given\n entry.transform.endEditState.apply(entry);\n // entry.transform.end();\n\n // if update function exists, call it\n // if (entry.onTransform) entry.onTransform();\n }", "title": "" }, { "docid": "0f147271aba5284305978fc7285d19b0", "score": "0.6483683", "text": "redo(editor) {\n editor.redo();\n }", "title": "" }, { "docid": "a0de9d9bd1c5dc02005317d55a4d8687", "score": "0.6404201", "text": "redo() {\n //DEBUG\n console.log(\"Redo method called!\");\n\n if (this.redoStates.length === 0) {\n return;\n }\n\n this.undoStates.push(this.currentState);\n\n let poppedState = this.redoStates.pop();\n this.currentState = poppedState;\n\n //Load the state!!\n fullyRebuildCanvasStateFromJSON(poppedState.structure, poppedState.arrangement, poppedState.globalContextArrangement);\n\n this.makeUndoButtonAvailable();\n if (this.redoStates.length === 0) {\n this.makeRedoButtonUnavailable();\n }\n }", "title": "" }, { "docid": "758287431a009c096a2302cfd420f160", "score": "0.6402806", "text": "function redo() {\n const elementToAdd = redoBuffer.pop();\n if (elementToAdd) {\n registerNewElement(elementToAdd);\n if (elementToAdd.shape !== \"polygon\") {\n $(elementToAdd.element).css(\"display\", \"block\");\n $(elementToAdd.element).removeClass(\"deleted\");\n } else {\n elementToAdd.lines.forEach(line => {\n $(line).css(\"display\", \"block\");\n $(line).removeClass(\"deleted\");\n });\n }\n }\n }", "title": "" }, { "docid": "aa2b9740194943f4805cc6c37cbf3185", "score": "0.6399569", "text": "#redo() {\n const history = this.#history\n if(history.index >= history.buffer.length)\n return\n const entry = history.buffer[history.index]\n entry.open = false\n history.index++\n if(entry.type == 'insert') {\n this.insertAt(entry.range.startLine, entry.range.startColumn, entry.text, true, 'historyRedo')\n } else if(entry.type == 'delete') {\n this.deleteRange(entry.range, true, 'historyRedo')\n } else if(entry.type == 'replace') {\n this.deleteRange(entry.range, true, 'historyUndo')\n this.insertAt(entry.range.replacement.startLine, entry.range.replacement.startColumn, entry.replacement.text, true, 'historyUndo')\n }\n // not needed: 'after' only ever means hard wrapping which will be handled anyway\n //if(entry.after) {\n // const aft = entry.after\n // this.insertAt(aft.range.startLine, aft.range.startColumn, aft.text, true, 'historyRedo')\n //}\n }", "title": "" }, { "docid": "9543025a2434193c784d38211a48642e", "score": "0.6395499", "text": "redo() {\n if(this.canRedo()) {\n this.cursor++;\n this.stack[this.cursor].execute();\n this.editor.selection.set(this.stack[this.cursor].selAfter);\n this.emit(\"update\");\n }\n }", "title": "" }, { "docid": "82ccb3e8702bbab8731ad71412148ddf", "score": "0.63712597", "text": "function actions_redo() {\n var redoEdit;\n return regenerator_default.a.wrap(function redo$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return controls_select('getRedoEdit');\n\n case 2:\n redoEdit = _context3.sent;\n\n if (redoEdit) {\n _context3.next = 5;\n break;\n }\n\n return _context3.abrupt(\"return\");\n\n case 5:\n _context3.next = 7;\n return build_module_actions_objectSpread({\n type: 'EDIT_ENTITY_RECORD'\n }, redoEdit, {\n meta: {\n isRedo: true\n }\n });\n\n case 7:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _marked3);\n}", "title": "" }, { "docid": "6d6b29fb4ffef66b67add8d59e03c630", "score": "0.63491875", "text": "undo() {\n return this._client.send(\"DOM.undo\");\n }", "title": "" }, { "docid": "0e876e25fdf37101537ae43086e67012", "score": "0.6235201", "text": "redo() {\n if (this.redoStack.length === 0) return;\n \n const action = this.redoStack.pop();\n this.undoStack.push(action);\n console.log(`Redo: ${action}`);\n }", "title": "" }, { "docid": "8bd1e940875073520abf911bbf100600", "score": "0.62016606", "text": "function redo() {\n\t\tvar length = redoArr.length;\n\n\t\tif(length < 1){\n\t\t\tconsole.log(\"nothing to redo!\");\n\t\t}\t\n\n\t/* check latest undo and push latest redo to undoArr again*/\n\t\telse{\n\t\t\tvar redo = redoArr.splice(length-1, 1);\n\t\t\tundoArr.push(redo[0]);\n\n\t/*set latest push to tmpOrderArr as OrderArr and updated the view by calling updatePlaceOrder*/\n\t\t\tif(redo == \"placeOrder\"){\n\t\t\t\tvar redo = redoArr[length - 1];\n\t\t\t\tvar length = tmpOrderArr.length;\n\n\t\t\t\tvar tmp = tmpOrderArr[length -1];\n\t\t\t\torderArr = tmp.slice();\n\t\t\t\ttmpOrderArr.splice(length -1, 1);\n\t\t\t\tupdatePlaceOrder();\n\t\t\t}\n\n\t\t\telse if(redo == \"cancelOrder\"){\n\t\t\t\tcancelOrder();\n\t\t\t}\n\t\n\t/*If redo == deleteFromList. delete selected row and update the view by calling updatelaceOrder */\n\t\t\telse{\n\t\t\t\tvar length = deleteList.length;\n\t\t\t\tvar txt = deleteList[length -1];\n\t\t\t\tdeleteFromlist(txt);\n\t\t\t\tupdatePlaceOrder();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3f7a46202cfb2515ad179fc87b8821c1", "score": "0.6182016", "text": "historyRedo() {\n const pos = this._getNextRedoIndex();\n if (pos >= 0) {\n this._historyStepsStates.set(pos, 2);\n this.historyRevert(this._historySteps[pos]);\n this._historyStepsStates.set(this._historySteps.length - 1, 0);\n this.historySetCursor(this._historySteps[pos]);\n this.historyStep(true);\n this.dispatchEvent(new Event('historyRedo'));\n }\n }", "title": "" }, { "docid": "2cd41982e55f114405def33d6aaf958a", "score": "0.6101293", "text": "redo() {\n __WEBPACK_IMPORTED_MODULE_0__configuration_LoggerConfig__[\"b\" /* editorLogger */].debug('Redo current model', this.model);\n triggerCallbacks(this, undefined, __WEBPACK_IMPORTED_MODULE_12__configuration_Constants__[\"a\" /* default */].EventType.REDO);\n this.undoRedoManager.redo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }", "title": "" }, { "docid": "0ce6d9a869ebc1252ec8ad93f76566ea", "score": "0.6088946", "text": "function UndoRedoObject() {}", "title": "" }, { "docid": "f899bf9b443aabb4b9755d52bd80ccc3", "score": "0.6057094", "text": "undo() {\n //DEBUG\n console.log(\"Undo method called!\");\n\n //Firstly, if this is invoked when there is nothing to undo, just do nothing..\n if (this.undoStates.length === 0) {\n return;\n }\n\n //Alright! lets do it.\n this.redoStates.push(this.currentState);\n\n let poppedState = this.undoStates.pop();\n this.currentState = poppedState;\n\n //Load the state!!\n fullyRebuildCanvasStateFromJSON(poppedState.structure, poppedState.arrangement, poppedState.globalContextArrangement);\n\n //Update buttons accordingly\n this.makeRedoButtonAvailable();\n if (this.undoStates.length === 0) {\n this.makeUndoButtonUnavailable();\n }\n }", "title": "" }, { "docid": "2be9c6d7b81190994078d2dcf870a193", "score": "0.60376227", "text": "function undo() {\n if (mrdjaMDE.isHelp === false) {\n const txtundo = txtHistory.undo();\n if (txtundo !== undefined) {\n mrdjaMDE.txtarea.value = txtundo;\n previewUpdate();\n }\n }\n }", "title": "" }, { "docid": "c510741718b51fad35c7ab55f26d82e0", "score": "0.6031505", "text": "function updateMenuUndoRedoTitles() {\n\t\tfor( i = 1 ; i < 7 ; i++ ) {\n\t\t\tif ( undoActions.length == 0 ) {\n\t\t\t\tdijit.byId('undo_id_'+i).attr('label', 'Undo');\n\t\t\t\tdijit.byId('undo_id_'+i).attr('disabled', true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdijit.byId('undo_id_'+i).attr('label', 'Undo ' + eval(undoActions[undoActions.length-1].description));\n\t\t\t\tdijit.byId('undo_id_'+i).attr('disabled', false);\n\t\t\t}\n\t\t\tif ( redoActions.length == 0 ) {\n\t\t\t\t\n\t\t\t\tdijit.byId('redo_id_'+i).attr('label', 'Redo');\n\t\t\t\tdijit.byId('redo_id_'+i).attr('disabled', true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdijit.byId('redo_id_'+i).attr('label', 'Redo ' + eval(redoActions[redoActions.length-1].description));\n\t\t\t\tdijit.byId('redo_id_'+i).attr('disabled', false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c83940efa2f6f72faffa358db7637d73", "score": "0.60077614", "text": "redo() {\n this.textObject.setText(this.afterText);\n this.canvas.update();\n }", "title": "" }, { "docid": "26a58ab6364f22a868d663beb99b4562", "score": "0.6000914", "text": "addUndo() {\n this.undoStack.push(state.ctx.getImageData(0, 0, state.canvas.width, state.canvas.height));\n document.getElementById('undo-button').removeAttribute('disabled');\n this.redoStack = [];\n document.getElementById('redo-button').setAttribute('disabled', '');\n }", "title": "" }, { "docid": "f3bbd2043b706dd26c63d62a7a15191e", "score": "0.60000414", "text": "redo() {\n\t\tvar state = this.redostack.pop();\n\t\tif (state) {\n\t\t\tvar context = state.context;\n\t\t\tthis.undostack.push({\n\t\t\t\tcontext: context,\n\t\t\t\tdrawings: context.stx.exportDrawings()\n\t\t\t});\n\t\t\tvar drawings = state.drawings;\n\t\t\tcontext.stx.abortDrawings(true);\n\t\t\tcontext.stx.importDrawings(drawings);\n\t\t\tcontext.stx.changeOccurred(\"vector\");\n\t\t\tcontext.stx.draw();\n\t\t}\n\t\tthis.setButtonStyle();\n\t}", "title": "" }, { "docid": "5fd12914a5ecb5340a5a9f5263faf779", "score": "0.5969515", "text": "function redoElement() {\n\t\tif (lastRemovedEl != undefined) {\n\t\t\tlastRemovedEl.appendTo($('#pad'));\n\t\t}\n\t}", "title": "" }, { "docid": "f8d276a2ee0a49566e0f5c8563eaaaaa", "score": "0.59007925", "text": "redooperation() {\n if (this.internal.currentundoarray.length>0) {\n this.internal.undostack.addOperation(this.internal.currentundoarray);\n this.internal.currentundoarray=[];\n }\n\n var arr=this.internal.undostack.getRedo();\n if (arr===null) {\n return false;\n }\n\n this.applyarray(arr,1);\n return false;\n }", "title": "" }, { "docid": "50e2b5e497e2636bcffe92e1d79dae99", "score": "0.5894112", "text": "function undoEdit(){\n toggleUndoEditBtn();\n $(\"#inp_edit_id\").val(\"\");\n}", "title": "" }, { "docid": "46dc96e9eedab3584c464875521b6943", "score": "0.58817095", "text": "function undo() {\n const undoAction = undoBuffer.pop();\n\n if (undoAction === undefined) {\n return;\n }\n\n // last undo-ed action was adding an element, remove it\n if (undoAction.actionType === \"remove\") {\n const elementToRemove = annotationArray.pop();\n\n if (elementToRemove) {\n redoBuffer.push(elementToRemove);\n\n if (elementToRemove.shape !== \"polygon\") {\n $(elementToRemove.element).css(\"display\", \"none\");\n $(elementToRemove.element).addClass(\"deleted\");\n } else {\n elementToRemove.lines.forEach(line => {\n $(line).css(\"display\", \"none\");\n $(line).addClass(\"deleted\");\n });\n }\n\n // remove last item from history\n $('#history .toolbar-item').last().remove();\n }\n\n // last undo-ed action was removing an element, add it back \n } else if (undoAction.actionType === \"add\") {\n if (undoAction.annotation.shape !== \"polygon\") {\n $(undoAction.annotation.element).css(\"display\", \"block\");\n $(undoAction.annotation.element).removeClass(\"deleted\");\n } else {\n undoAction.annotation.lines.forEach(line => {\n $(line).css(\"display\", \"block\");\n $(line).removeClass(\"deleted\");\n });\n }\n\n registerNewElement({...undoAction.annotation });\n }\n }", "title": "" }, { "docid": "8214f6e82a3f8382a00bc59298ada599", "score": "0.58794475", "text": "function redo() {\n\tcanvas.getCommandStack().redo();\n\treturn true;\n}", "title": "" }, { "docid": "477abc024fd67a3f41684395e0a7c621", "score": "0.5855338", "text": "redo() {\n try {\n if (this.redoList.length > 0) {\n if (this.current) this.undoList.push(this.current)\n this.current = this.redoList.pop()\n return this.current\n }\n return null\n } finally {\n this.print()\n }\n }", "title": "" }, { "docid": "e64c530ee6c3bf2bd4106202455d752c", "score": "0.5842527", "text": "function redo(state, dispatch) {\n var hist = historyKey.getState(state);\n\n if (!hist || hist.undone.eventCount == 0) {\n return false;\n }\n\n if (dispatch) {\n histTransaction(hist, state, dispatch, true);\n }\n\n return true;\n} // :: (EditorState) → number", "title": "" }, { "docid": "85f1385ad6c7a05a58f5982a6fc0dd81", "score": "0.58267325", "text": "function UndoRedo(props) {\r\n // handle button clicks\r\n const handleClick = (e) => {\r\n switch(e.target.name){\r\n case \"undo\":\r\n props.dispatch(undoRedo(\"undo\"));\r\n return;\r\n case \"redo\":\r\n props.dispatch(undoRedo(\"redo\"));\r\n return;\r\n default:\r\n return;\r\n }\r\n }\r\n \r\n // render buttons: if there are no appropriate states in undo-redo history\r\n // buttons are disabled\r\n return (\r\n <div className=\"undoredo\">\r\n <button type=\"button\" name=\"undo\" onClick={handleClick}\r\n disabled={((props.store.size <= 1) ||\r\n (props.store.currentUndo === 0)) ? true : false}>\r\n {\"<= Undo\"}\r\n </button>\r\n <button type=\"button\" name=\"redo\" onClick={handleClick}\r\n disabled={((props.store.currentUndo === undefined)||(props.store.currentUndo === props.store.size - 1)) ? true : false}>\r\n {\"Redo =>\"}\r\n </button>\r\n </div>\r\n );\r\n }", "title": "" }, { "docid": "6eb8d7cc53bae3ad63f2a0200e383709", "score": "0.58140486", "text": "undo() {\n\t\t\tthis._editor.undo();\n\t\t\tthis._renderers.forEach((r) => this.hideDetailsPanel(r, true));\n\t\t\tthis.rerender();\n\t\t}", "title": "" }, { "docid": "8f9b114240019c37798341dcb21a8154", "score": "0.5806327", "text": "function actions_undo() {\n var undoEdit;\n return regenerator_default.a.wrap(function undo$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return controls_select('getUndoEdit');\n\n case 2:\n undoEdit = _context2.sent;\n\n if (undoEdit) {\n _context2.next = 5;\n break;\n }\n\n return _context2.abrupt(\"return\");\n\n case 5:\n _context2.next = 7;\n return build_module_actions_objectSpread({\n type: 'EDIT_ENTITY_RECORD'\n }, undoEdit, {\n meta: {\n isUndo: true\n }\n });\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _marked2);\n}", "title": "" }, { "docid": "51693edf50fffc49e5b21914b398d2c3", "score": "0.5792832", "text": "checkUndoRedo(){\n this.checkUndo();\n this.checkRedo();\n }", "title": "" }, { "docid": "9b418b6f98f7878f46c7030ba0fb6cb0", "score": "0.577637", "text": "function UndoRedoHelperOnTreeUpdate() {\n if (undo_stack.length > 0) {\n // limit undo steps to 10\n if (undo_stack.length == 10) undo_stack.shift();\n cur_version = undo_stack.pop();\n undo_stack.push(JSON.parse(JSON.stringify(JSON.decycle(cur_version)))); // push deep copy of current version to stack\n undo_stack.push(cur_version); // then push current version to stack for modification\n redo_stack = new Array();\n }\n}", "title": "" }, { "docid": "615bfd5a0e2cb11f936ca8904597596a", "score": "0.575606", "text": "redo() {\r\n if (this.tps.hasTransactionToRedo()) {\r\n this.tps.doTransaction();\r\n }\r\n }", "title": "" }, { "docid": "60107f0556569df345da3682c12ca615", "score": "0.5751872", "text": "redo() {\r\n if (this.redoStack.length == 0)\r\n return;\r\n var command = this.redoStack.pop();\r\n command.redo();\r\n this.commandStack.push(command);\r\n }", "title": "" }, { "docid": "bb5eb4664b798a59fd8a61d3b5e23a87", "score": "0.57420737", "text": "undo() {\n if (this.undoStack.length === 0) return;\n \n const action = this.undoStack.pop();\n this.redoStack.push(action);\n console.log(`Undo: ${action}`);\n }", "title": "" }, { "docid": "1b0e770a6af81d0c6b635faf98091a47", "score": "0.57394356", "text": "redo() {\n if (this.tps.hasTransactionToRedo()) {\n this.tps.doTransaction();\n }\n }", "title": "" }, { "docid": "9b77f601ed8a8696a00c28c80d134e78", "score": "0.5739106", "text": "function undo() {\n\tif (stackUndo.length > 0) {\n\t\tvar doAction = stackUndo.pop();\n\t\tstackRedo.push(JSON.stringify(cur_ns));\n\t\tclean();\n\t\tcur_ns = JSON.parse(doAction);\n\t\tdisplayNS();\n\t\tupdateServiceOnServer(\"undo\");\n\t\tlastState = JSON.stringify(cur_ns);\n\t}\n}", "title": "" }, { "docid": "74def5f86e7413a6d4a77f89d67b34c8", "score": "0.57026", "text": "undoReset() {\n CustomizableUIInternal.undoReset();\n }", "title": "" }, { "docid": "998af4e1b833c44a59cd4508ef470f77", "score": "0.5678245", "text": "async function undo() {\n const todoText = this.parentNode.childNodes[1].innerText;\n try {\n const response = await fetch(\"undo\", {\n method: \"put\",\n headers: { \"Content-type\": \"application/json\" },\n body: JSON.stringify({\n rainbowUnicorn: todoText,\n }),\n });\n const data = await response.json();\n console.log(data);\n location.reload();\n } catch (err) {\n console.log(err);\n }\n}", "title": "" }, { "docid": "dafcf60a37cf2b6c907f8a4c560c70c6", "score": "0.56679785", "text": "function setButtons() {\r\n var undoButton = document.getElementById(\"UndoButton\");\r\n undoButton.disabled = curMoveIndex == 0;\r\n var redoButton = document.getElementById(\"RedoButton\");\r\n redoButton.disabled = curMoveIndex == countMoves(moveRecord);\r\n}", "title": "" }, { "docid": "9a6bc27f3c54235466523dfce035c41e", "score": "0.56628126", "text": "addRedoAction(action) {\n this.redoActions.push(action);\n }", "title": "" }, { "docid": "b57ec5c0a7355bb6238b5fb32de353a4", "score": "0.5651741", "text": "makeUndoButtonUnavailable() {\n //Set opacity to 50%, so it looks 'greyed out'\n this.undoButtonElem.style.opacity = \"0.15\";\n\n //Set the 'title' to have a tooltip which informs the user that there is nothing to undo\n this.undoButtonElem.setAttribute(\"title\", \"Nothing to undo!\");\n\n //Set the cursor to auto, so it doesn't look clickable.\n this.undoButtonElem.style.cursor = \"auto\";\n }", "title": "" }, { "docid": "a82353c5fe1b76557c6427f2d98648dc", "score": "0.5648641", "text": "undo() {\n if (this.pos < 0) {\n throw \"No undo history available.\";\n }\n\n var entry = this.history[this.pos--];\n\n // apply inverse\n entry.transform.startEditState.apply(entry);\n // entry.transform.end();\n //\n // // if update function exists, call it\n // if (entry.onTransform) entry.onTransform();\n }", "title": "" }, { "docid": "1c8fe0853916c0111b685e37378b2d50", "score": "0.5637246", "text": "function onRedoClick() {\n let stroke = redoStack.pop();\n if (stroke.command === \"delstroke\") {\n stroke.strokes.forEach((stroke) => {\n undoStack.splice(undoStack.indexOf(stroke), 1);\n });\n } else if (stroke.command === \"fill\") {\n // we're filling the canvas with a new color, so reset backgroundColor so that\n // erase has the correct color\n backgroundColor = stroke.color;\n }\n undoStack.push(stroke);\n if (redoStack.length === 0) {\n setButtonDisableStatus(\"btn-redo\", true);\n }\n setButtonDisableStatus(\"btn-undo\", false);\n }", "title": "" }, { "docid": "cefe534bbdde1ddfd0d821b668a5f06c", "score": "0.5628183", "text": "redo() {\n for(var i = 0; i < this.movedObjects.length; i++) {\n this.movedObjects[i].move(this.moveVector);\n }\n this.canvas.update();\n }", "title": "" }, { "docid": "91df5e350ff680d27f5766af331a642b", "score": "0.5619362", "text": "#undo() {\n const history = this.#history\n if(history.index == 0)\n return\n const entry = history.buffer[history.index-1]\n entry.open = false\n history.index--\n if(entry.after) {\n this.deleteRange(entry.after.range, true, 'historyUndo')\n }\n if(entry.type == 'insert') {\n this.deleteRange(entry.range, true, 'historyUndo')\n } else if(entry.type == 'delete') {\n this.insertAt(entry.range.startLine, entry.range.startColumn, entry.text, true, 'historyUndo')\n } else if(entry.type == 'replace') {\n this.deleteRange(entry.replacement.range, true, 'historyUndo')\n this.insertAt(entry.range.startLine, entry.range.startColumn, entry.text, true, 'historyUndo')\n }\n }", "title": "" }, { "docid": "57f7b1d7ae28ddc4d406df822a280472", "score": "0.55703294", "text": "undo(editor) {\n editor.undo();\n }", "title": "" }, { "docid": "d67c51d983025159fc197c91c51f3f9a", "score": "0.55558664", "text": "function turnUpdater(redo) {\n\t\t//if redo was not requested remove one \"move\"\n\t\tif (redo == false || redo == 'kill-nominal') {\n\t\t\tmoves -= 1;\n\t\t} else if (redo == 'dead') {\n\t\t\tmoves = 0\n\t\t} else if (redo == 'kill-indexDisrupted') {\n\t\t\tmoves -= 1;\n\t\t\tcurrent -= 1;\n\t\t}\n\n\t\tif (moves <= 0) {\n\t\t\tturns(current + 1);\n\t\t}\n\t}", "title": "" }, { "docid": "00133165626ebeea274cd837c62f3d44", "score": "0.55047727", "text": "function EditorHistoryRedo(_ref) {\n var hasRedo = _ref.hasRedo,\n redo = _ref.redo;\n return Object(react[\"createElement\"])(build_module_button[\"a\" /* default */], {\n icon: library_redo,\n label: Object(i18n_build_module[\"__\"])('Redo'),\n shortcut: keycodes_build_module[\"displayShortcut\"].primaryShift('z') // If there are no redo levels we don't want to actually disable this\n // button, because it will remove focus for keyboard users.\n // See: https://github.com/WordPress/gutenberg/issues/3486\n ,\n \"aria-disabled\": !hasRedo,\n onClick: hasRedo ? redo : undefined,\n className: \"editor-history__redo\"\n });\n}", "title": "" }, { "docid": "3e6789a8f6e969111c9f76a34cea0582", "score": "0.5486246", "text": "function edit() {\n transition(EDIT, true);\n }", "title": "" }, { "docid": "4eb3cbe8667b9680d6a50112b08adb58", "score": "0.54750794", "text": "undo() {\n this.renderer.undo(this.undoBuffer);\n // A score-level undo might have changed the score.\n this.score = this.renderer.score;\n this.storeScore = this.storeUndo.undo(this.storeScore);\n }", "title": "" }, { "docid": "39f087edee1227533ac65c602645e79a", "score": "0.5429926", "text": "function updateUndoArray() {\n undoArray[0] = undoIdArray;\n undoArray[1] = undoActionArray;\n undoArray[2] = undoTopArray;\n undoArray[3] = undoLeftArray;\n undoArray[4] = undoStyleArray;\n undoArray[5] = undoTimeArray;\n undoArray[6] = undoWidthArray;\n undoArray[7] = undoHeightArray;\n undoArray[8] = undoFontArray;\n undoArray[9] = undoMessageArray;\n undoArray[10] = undoSecondsArray;\n}", "title": "" }, { "docid": "846522327b69b8520ebb0e1ebc9daeb4", "score": "0.541949", "text": "function redrawRetr(e) {\n\tvar retr = e.getTarget();\n\tvar type = e.getType();\n\tvar id = retr.getId();\n\tvar row = $(\"#retr_\" + id);\n\tif (type == \"changeName\") {\n\t\t$(\"td:eq(1) div\",row).html(retr.getName());\n\t} else if (type == \"changeOperating\") {\n\t\tvar operating = retr.getOperating();\n\t\tvar state = operating ? ACTIVE_IMG : STOPPED_IMG;\n\t\toperating = operating ? PAUSE_IMG : PLAY_IMG;\n\t\t$(\"td:last img\",row).attr(\"src\",operating);\n\t\t$(\"td:first img\",row).attr(\"src\",state);\n\t} else if (type == \"itemDeleted\") {\n\t\twasDeleted = true;\n\t\tvar nextRow = $(\"+ tr\",row)[0];\t\n\t\tif(nextRow)\n\t\t\t$(nextRow).click();\n\t\telse\n\t\t\t$(\"#retr_list tr:eq(0)\").click();\n\t\t$(row).remove();\n\t}\n}", "title": "" }, { "docid": "52c755e64808985912a8f93d9dd787f4", "score": "0.54175586", "text": "undo() {\n if(this.canUndo()) {\n this.stack[this.cursor].cancel();\n this.editor.selection.set(this.stack[this.cursor].selBefore);\n this.cursor--;\n this.emit(\"update\");\n }\n }", "title": "" }, { "docid": "5bee9eadcf700968499473abb95616ff", "score": "0.5413367", "text": "function onFeatureModified(event) {\n console.log(\"onFeatureModified\");\n document.getElementById('draw-undo').disabled = false;\n document.getElementById('draw-redo').disabled = false;\n \n }", "title": "" }, { "docid": "9cd358d2f772a9ebd3bdaa2f2f9b8fb1", "score": "0.5410406", "text": "function updateUndoManager(logInfo) {\r\n\tundoHolder.pop();\r\n\tundoHolder.unshift(logInfo);\r\n}", "title": "" }, { "docid": "3bc42514650ed14bfcd7806f62b7bf2f", "score": "0.54083496", "text": "historyUndo() {\n // The last step is considered an uncommited draft so always revert it.\n const lastStep = this._historySteps[this._historySteps.length - 1];\n this.historyRevert(lastStep);\n // Clean the last step otherwise if no other step is created after, the\n // mutations of the revert itself will be added to the same step and\n // grow exponentially at each undo.\n lastStep.mutations = [];\n\n const pos = this._getNextUndoIndex();\n if (pos >= 0) {\n // Consider the position consumed.\n this._historyStepsStates.set(pos, 2);\n this.historyRevert(this._historySteps[pos]);\n // Consider the last position of the history as an undo.\n this._historyStepsStates.set(this._historySteps.length - 1, 1);\n this.historyStep(true);\n this.dispatchEvent(new Event('historyUndo'));\n }\n }", "title": "" }, { "docid": "887ea66d12b97375a4d1fcf0421a0887", "score": "0.5400002", "text": "onClickHistory(event, action) {\n const { editor } = this.props;\n event.preventDefault();\n ((action === 'undo') ? editor.undo() : editor.redo());\n }", "title": "" }, { "docid": "8d1a2766f83759421b6d3f69bcdd4191", "score": "0.5399001", "text": "function addAction() {\n\tif (stackRedo.length > 0) {\n\t\tstackRedo=[];\n\t}\n\tif (lastState != null) {\n\t\tstackUndo.push(lastState);\n\t}\n\tlastState = JSON.stringify(cur_ns);\n\tif (stackUndo.length > 10) {\n\t\tstackUndo.splice(0, 1);\n\t}\n}", "title": "" }, { "docid": "cbc87b0d92c58f22472ce11a3a4a50ff", "score": "0.53985703", "text": "undo() {\r\n if (this.commandStack.length == 0)\r\n return;\r\n var command = this.commandStack.pop();\r\n command.undo();\r\n this.redoStack.push(command);\r\n }", "title": "" }, { "docid": "560e5d132935df59b9facee9647586e5", "score": "0.53901863", "text": "undo() {\n try {\n if (this.current) {\n this.redoList.push(this.current)\n if (this.redoList.length > this.undoLimit) {\n this.redoList.shift()\n }\n if (this.undoList.length === 0) this.current = null\n }\n if (this.undoList.length > 0) {\n this.current = this.undoList.pop()\n return this.current\n }\n return null\n } finally {\n this.print()\n }\n }", "title": "" }, { "docid": "533a984bcb6aef50be454a0cb6c3b1fb", "score": "0.53891265", "text": "markUndoableState() {\n return this._client.send(\"DOM.markUndoableState\");\n }", "title": "" }, { "docid": "5607a011caf27f77d5232ad54b7340ca", "score": "0.53808504", "text": "redo() {\n const now = this.originator.save();\n this.pastStates.push(now);\n\n let future = this.futureStates.pop();\n if (now.getState() === future.getState()) {\n future = this.futureStates.pop();\n }\n this.originator.restore(future);\n }", "title": "" }, { "docid": "0d5fe71c38576bbdcafdb4faf714b0bb", "score": "0.5370987", "text": "async function updateUI()\n{\n let commands = await browser.commands.getAll();\n for(command of commands)\n {\n if(command.name === CmdUndoSession)\n {\n document.querySelector('#shortcut').value = command.shortcut;\n }\n }\n}", "title": "" }, { "docid": "33b08ad1e7f7ecac5f8b433a4a446d87", "score": "0.53654927", "text": "redo() {\n console.log('redo MeasurementChange')\n this.parentItem.addChild(this.measurement, false, false)\n }", "title": "" }, { "docid": "aeb6836db08a41726b8eed4231e55096", "score": "0.53598523", "text": "function __WEBPACK_DEFAULT_EXPORT__(core, change) {\n const _w = core._w;\n const util = core.util;\n const delayTime = core.options.historyStackDelayTime;\n let editor = core.context.element;\n let undo = core.context.tool.undo;\n let redo = core.context.tool.redo;\n\n let pushDelay = null;\n let stackIndex = 0;\n let stack = [];\n\n function setContentsFromStack () {\n const item = stack[stackIndex];\n editor.wysiwyg.innerHTML = item.contents;\n\n core.setRange(util.getNodeFromPath(item.s.path, editor.wysiwyg), item.s.offset, util.getNodeFromPath(item.e.path, editor.wysiwyg), item.e.offset);\n core.focus();\n\n if (stackIndex === 0) {\n if (undo) undo.setAttribute('disabled', true);\n if (redo) redo.removeAttribute('disabled');\n } else if (stackIndex === stack.length - 1) {\n if (undo) undo.removeAttribute('disabled');\n if (redo) redo.setAttribute('disabled', true);\n } else {\n if (undo) undo.removeAttribute('disabled');\n if (redo) redo.removeAttribute('disabled');\n }\n\n core.controllersOff();\n core._checkComponents();\n core._setCharCount();\n core._resourcesStateChange();\n \n // onChange\n change();\n }\n\n function pushStack () {\n core._checkComponents();\n const current = core.getContents(true);\n if (!current || (!!stack[stackIndex] && current === stack[stackIndex].contents)) return;\n\n stackIndex++;\n const range = core._variable._range;\n\n if (stack.length > stackIndex) {\n stack = stack.slice(0, stackIndex);\n if (redo) redo.setAttribute('disabled', true);\n }\n\n if (!range) {\n stack[stackIndex] = {\n contents: current,\n s: { path: [0, 0], offset: [0, 0] },\n e: { path: 0, offset: 0 }\n };\n } else {\n stack[stackIndex] = {\n contents: current,\n s: {\n path: util.getNodePath(range.startContainer, null, null),\n offset: range.startOffset\n },\n e: {\n path: util.getNodePath(range.endContainer, null, null),\n offset: range.endOffset\n }\n };\n }\n\n if (stackIndex === 1 && undo) undo.removeAttribute('disabled');\n\n core._setCharCount();\n // onChange\n change();\n }\n\n return {\n /**\n * @description History stack\n */\n stack: stack,\n\n /**\n * @description Saving the current status to the history object stack\n * If \"delay\" is true, it will be saved after (options.historyStackDelayTime || 400) miliseconds\n * If the function is called again with the \"delay\" argument true before it is saved, the delay time is renewal\n * You can specify the delay time by sending a number.\n * @param {Boolean|Number} delay If true, Add stack without delay time.\n */\n push: function (delay) {\n _w.setTimeout(core._resourcesStateChange.bind(core));\n const time = typeof delay === 'number' ? (delay > 0 ? delay : 0) : (!delay ? 0 : delayTime);\n \n if (!time || pushDelay) {\n _w.clearTimeout(pushDelay);\n if (!time) {\n pushStack();\n return;\n }\n }\n\n pushDelay = _w.setTimeout(function () {\n _w.clearTimeout(pushDelay);\n pushDelay = null;\n pushStack();\n }, time);\n },\n\n /**\n * @description Undo function\n */\n undo: function () {\n if (stackIndex > 0) {\n stackIndex--;\n setContentsFromStack();\n }\n },\n\n /**\n * @description Redo function\n */\n redo: function () {\n if (stack.length - 1 > stackIndex) {\n stackIndex++;\n setContentsFromStack();\n }\n },\n\n /**\n * @description Go to the history stack for that index.\n * If \"index\" is -1, go to the last stack\n * @param {Number} index Stack index\n */\n go: function (index) {\n stackIndex = index < 0 ? (stack.length - 1) : index;\n setContentsFromStack();\n },\n \n /**\n * @description Reset the history object\n */\n reset: function (ignoreChangeEvent) {\n if (undo) undo.setAttribute('disabled', true);\n if (redo) redo.setAttribute('disabled', true);\n core._variable.isChanged = false;\n if (core.context.tool.save) core.context.tool.save.setAttribute('disabled', true);\n \n stack.splice(0);\n stackIndex = 0;\n\n // pushStack\n stack[stackIndex] = {\n contents: core.getContents(true),\n s: {\n path: [0, 0],\n offset: 0\n },\n e: {\n path: [0, 0],\n offset: 0\n }\n };\n\n if (!ignoreChangeEvent) change();\n },\n\n /**\n * @description Reset the disabled state of the buttons to fit the current stack.\n * @private\n */\n _resetCachingButton: function () {\n editor = core.context.element;\n undo = core.context.tool.undo;\n redo = core.context.tool.redo;\n\n if (stackIndex === 0) {\n if (undo) undo.setAttribute('disabled', true);\n if (redo && stackIndex === stack.length - 1) redo.setAttribute('disabled', true);\n core._variable.isChanged = false;\n if (core.context.tool.save) core.context.tool.save.setAttribute('disabled', true);\n } else if (stackIndex === stack.length - 1) {\n if (redo) redo.setAttribute('disabled', true);\n }\n },\n\n /**\n * @description Remove all stacks and remove the timeout function.\n * @private\n */\n _destroy: function () {\n if (pushDelay) _w.clearTimeout(pushDelay);\n stack = null;\n }\n };\n}", "title": "" }, { "docid": "c8b9e8958d42fa5b9efbfa191d01b7c7", "score": "0.535984", "text": "function undo(id)\n{\n // retrieve the product row\n var tr = document.getElementById(id).cells;\n // copy old values\n for(var i=0; i<tempRow.length; i++) \n tr[i].innerHTML = tempRow[i];\n // no editable row \n editableId = null; \n}", "title": "" }, { "docid": "bd2aceb71685444105250ad7e1536d09", "score": "0.53448683", "text": "function Manager(refModelManager)\n{\n modelManager = refModelManager;\n this.undoStack = [];\n this.redoStack = [];\n\n //Returns the name of the last undo action\n this.getUndoAction = function(){\n return this.undoStack[this.undoStack.length-1].name;\n };\n\n //Returns the name of the last redo action\n this.getRedoAction = function(){\n return this.redoStack[this.redoStack.length-1].name;\n };\n\n /*\n * Executes given command by calling do method of given command\n * pushes the action to the undoStack after execution.\n */\n this._do = function (command)\n {\n //_do function returns the parameters for undo function\n command.undoparams = command._do(command.params);\n if(command.name.indexOf(\"select\")< 0) //do not include selection/unselection operations\n this.undoStack.push(command);\n };\n\n/*\n * Undo last command.\n * Pushes the reversed action to the redoStack after undo operation.\n */\n this.undo = function ()\n {\n if (this.undoStack.length == 0) {\n return;\n }\n var lastCommand = this.undoStack.pop();\n var result = lastCommand.undo(lastCommand.undoparams);\n //If undo function returns something then do function params should be refreshed\n if (result != null) {\n lastCommand.params = result;\n }\n\n\n this.redoStack.push(lastCommand);\n };\n\n /*\n * Redo last command that is previously undid.\n * This method basically calls do method for the last command that is popped of the redoStack.\n */\n this.redo = function ()\n {\n if (this.redoStack.length == 0) {\n return;\n }\n var lastCommand = this.redoStack.pop();\n this._do(lastCommand);\n };\n\n /*\n *\n * This method indicates whether the undo stack is empty\n */\n this.isUndoStackEmpty = function () {\n return this.undoStack.length == 0;\n }\n\n /*\n *\n * This method indicates whether the redo stack is empty\n */\n this.isRedoStackEmpty = function () {\n return this.redoStack.length == 0;\n }\n\n /*\n * Empties undo and redo stacks !\n */\n this.reset = function ()\n {\n this.undoStack = [];\n this.redoStack = [];\n };\n}", "title": "" }, { "docid": "9474b66c15b9c3bcfff364b3ad2bfe62", "score": "0.5330237", "text": "undo() {\n this.isEditing = false;\n this.source = this.copy(this.editData);\n this.refresh();\n }", "title": "" }, { "docid": "dc578d73197529f0828e7053940d9ced", "score": "0.53298956", "text": "function updateRedoArray() {\n redoArray[0] = redoIdArray;\n redoArray[1] = redoActionArray;\n redoArray[2] = redoTopArray;\n redoArray[3] = redoLeftArray;\n redoArray[4] = redoStyleArray;\n redoArray[5] = redoTimeArray;\n redoArray[6] = redoWidthArray;\n redoArray[7] = redoHeightArray;\n redoArray[8] = redoFontArray;\n redoArray[9] = redoMessageArray;\n redoArray[10] = redoSecondsArray;\n console.log(redoArray);\n}", "title": "" }, { "docid": "ddfa1d1359fdf755aadbccbabcb6b401", "score": "0.5313183", "text": "function undo() {\n if (gPreMoves.length <= 1) {\n init();\n return;\n }\n var preMove = gPreMoves.pop();\n // update all the el for the pre move\n gLifes = preMove.gLifes;\n gHints = preMove.gHints;\n gSafeRemain = preMove.gSafeRemain;\n updateAllUsableEls();\n gGame.isOn = preMove.gGame[0];\n gGame.shownCount = preMove.gGame[1];\n gGame.markedCount = preMove.gGame[2];\n gIsHintActive = false;\n gSmiely = preMove.gSmiely;\n gBoard = preMove.gBoard;\n renderBoard(gBoard, `tbody`);\n}", "title": "" }, { "docid": "98592020a4fa1825ba86e5b16b08929f", "score": "0.53008497", "text": "function completeUndo(lastIndex, latestAction) {\n if (latestAction == \"addObject\") { //if the latest action was to add an object remove the same object.\n //var currentIndex = getIndexOfCurrentObject(undoArray[0][latestItem]); //get the index of the specific id.\n\n addToRedoArray(undoArray[0][lastIndex], undoArray[1][lastIndex], undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[4][lastIndex], undoArray[5][lastIndex], undoArray[6][lastIndex], undoArray[7][lastIndex], undoArray[8][lastIndex], undoArray[9][lastIndex]); //add the latest action to the redo array\n\n deleteObject(undoArray[0][lastIndex]);\n }\n\n else if (latestAction == \"deleteObject\") { //if the latest action was to delete an object add the object.\n addToRedoArray(undoArray[0][lastIndex], undoArray[1][lastIndex], undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[4][lastIndex], undoArray[5][lastIndex], undoArray[6][lastIndex], undoArray[7][lastIndex], undoArray[8][lastIndex], undoArray[9][lastIndex]);\n\n var currentObjectStyle = undoArray[4][lastIndex]; //have to know what kind of object it is so that the correct function is called.\n\n if(currentObjectStyle == \"weather\" || currentObjectStyle == \"temperature\" || currentObjectStyle == \"temp-graph\") {\n SMHICall(undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[0][lastIndex], undoArray[5][lastIndex], undoArray[6][lastIndex], undoArray[7][lastIndex], undoArray[4][lastIndex], undoArray[8][lastIndex]);\n }\n\n else if (currentObjectStyle == \"text-message\") {\n createTextMessage(undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[0][lastIndex],undoArray[5][lastIndex], undoArray[6][lastIndex], undoArray[7][lastIndex], undoArray[4][lastIndex], undoArray[8][lastIndex], undoArray[9][lastIndex]);\n }\n\n else if (currentObjectStyle == \"clock\") {\n createTimeObject(undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[0][lastIndex], undoArray[4][lastIndex], undoArray[5][lastIndex], undoArray[6][lastIndex],undoArray[7][lastIndex], undoArray[8][lastIndex]);\n }\n\n else if (currentObjectStyle == \"date\") {\n createDateObject(undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[0][lastIndex], undoArray[4][lastIndex], undoArray[5][lastIndex], undoArray[6][lastIndex],undoArray[7][lastIndex], undoArray[8][lastIndex]);\n }\n }\n\n else if (latestAction == \"movedObject\") { //move back the object to the previous position\n moveBackObject(undoArray[2][lastIndex], undoArray[3][lastIndex], undoArray[0][lastIndex]);\n }\n\n else if (latestAction == \"resizedObject\") { //resize object to the previous size\n resizeObject(undoArray[0][lastIndex], undoArray[6][lastIndex], undoArray[7][lastIndex]);\n }\n\n else if (latestAction == \"changedFont\") { //change the font\n changeBackFont(undoArray[0][lastIndex], undoArray[8][lastIndex])\n }\n\n else if (latestAction == \"changeTime\" ) { //change the time period for the specific object\n changeBackTime(undoArray[0][lastIndex], undoArray[5][lastIndex])\n }\n\n else if (latestAction == \"changeText\") { //change the written text in a text message\n changeTextBack(undoArray[0][lastIndex], undoArray[9][lastIndex])\n }\n\n else if (latestAction == \"changeSeconds\") { //remove or add the seconds to a time object.\n changeSecondsBack(undoArray[0][lastIndex], undoArray[10][lastIndex]);\n }\n\n undoActionArray.splice(lastIndex,1); //remove the latest undo-action from the undo arrays.\n undoIdArray.splice(lastIndex,1);\n undoTopArray.splice(lastIndex,1);\n undoLeftArray.splice(lastIndex,1);\n undoStyleArray.splice(lastIndex,1);\n undoTimeArray.splice(lastIndex,1);\n undoWidthArray.splice(lastIndex,1);\n undoHeightArray.splice(lastIndex,1);\n undoFontArray.splice(lastIndex,1);\n undoMessageArray.splice(lastIndex,1);\n undoSecondsArray.splice(lastIndex,1);\n updateUndoArray();\n}", "title": "" }, { "docid": "165b5b52b5e4ff28ff0a60d516992e97", "score": "0.52820575", "text": "function redoContextMenus() {\n removeAllContextMenus();\n createContextMenus();\n }", "title": "" }, { "docid": "ef4e03e925388c8f23ca6a3c4a6c8b5e", "score": "0.5277928", "text": "redoToCommand(targetCommands, callback){\n Meteor.call('CommandCollection.methods.updateCommands', {stackName: this.stackName, targetCommands, isRemoved: false}, (err)=>{\n if(!err){\n this.checkUndoRedo();\n if(callback){\n callback();\n }\n }else{\n throw err;\n }\n });\n }", "title": "" }, { "docid": "40b79ee9823d1661553e722ecbc6de30", "score": "0.5266594", "text": "function _redraw (mapper) {\n if (mapper.altered || mapper.dirty) {\n if (mapper.altered) {\n save(mapper.History, mapper)\n mapper.Future.length = 0 // Reset the redo buffer\n }\n\n View.draw(mapper)\n mapper.altered = false\n mapper.dirty = false\n }\n}", "title": "" }, { "docid": "cdc36809c2715d9808cc5ab5196cdabe", "score": "0.52564377", "text": "function edit() {\n\t\t// Code here ...\n\t\t// View Edit\n\t\t// if(OK){update() };\n\t}", "title": "" }, { "docid": "30c6a83cd453b1511bcc96a5a168a00e", "score": "0.52495533", "text": "function handleUndo() {\n scope.play.setIsUndoDisabled(true);\n scope.cells[savedState.cellKey] = savedState.cell;\n\n if (!announcedCellKey) {\n turnNumber--;\n scope.play.setRollNumber(savedState.rollNumber);\n scope.play.setIsInputRequired(savedState.isInputRequired);\n diceService.enableDice();\n calculateSums();\n }\n\n announcedCellKey = savedState.announcedCellKey;\n updateAvailableCells();\n }", "title": "" }, { "docid": "9de68a36e39f9d9ce062d26e03cc54b3", "score": "0.52319497", "text": "recordChange() {\n //DEBUG\n console.log(\"Undo manager: Change recorded!\");\n\n //To avoid double callback errors causing weird behaviour, we should first check that the state we are about to record is not the same as the\n //previous state!\n let newState = {\n structure : serialiseNodeState(),\n arrangement : serialiseNodeArrangement(),\n globalContextArrangement : canvasState.globalContextArrangement\n };\n\n if (newState.structure === this.currentState.structure &&\n newState.arrangement === this.currentState.arrangement &&\n newState.globalContextArrangement === this.currentState.globalContextArrangement) {\n //OOPS! We probably shouldn't record this\n console.log(\"Undo manager was asked to record the same change twice!!\");\n\n return;\n }\n\n //The first thing to do, is push the current state into the undo stack. This is so we can return to it later!\n //We should make sure we do not push null states though (should never happen anyway, but let's be safe aye?)\n if (this.currentState) {\n this.undoStates.push(this.currentState);\n }\n\n //Now, we need to make sure we record the new current state, by serialising it!\n this.currentState = newState;\n\n //Any previously stored redo states are now invalid, since the user made a new state change and thus have branched away from the redo state chain.\n //Clear it!\n this.redoStates = [];\n\n //Finally, trim the undo states to make sure we are not storing to many, as defined by our limit.\n while (this.undoStates.length > this.maxUndoStates) {\n //Trim the FRONT item (the oldest state..)\n this.undoStates.shift(); //Don't need to keep the old one..\n }\n\n //Update buttons accordingly\n this.makeRedoButtonUnavailable();\n this.makeUndoButtonAvailable();\n }", "title": "" }, { "docid": "2dc43b393459a51a127b75d8c88675ed", "score": "0.52284104", "text": "function undo() {\n if (design_history.enableUndo()) {\n if (parseCommand(design_history.getUndoCmd().split(\" \")))\n design_history.prevStep();\n }\n}", "title": "" }, { "docid": "b2a2138f114ba6051dd6a7102f23b0da", "score": "0.5223613", "text": "function saveEdit(x) {\r\n var GetEditedNode = x.previousSibling;\r\n var getNodeValue = GetEditedNode.value;\r\n x.previousSibling.remove();\r\n x.parentNode.innerHTML = getNodeValue;\r\n}", "title": "" }, { "docid": "b87ce8db536fb3370ef66f1314f03776", "score": "0.5220877", "text": "function why_surprised_undo_button() {\n $.getJSON(\"/events/\"+get_current_event_id()+\"/why_surprised\", function(data) {\n $('#why_surprised').val(data.why_surprised);\n });\n}", "title": "" }, { "docid": "9aaafe3a785ffc0c4a8f5d4178df6deb", "score": "0.5220352", "text": "function changeTextBack(objectId, textMessage) {\n console.log(textMessage);\n var objectToBeChanged = document.getElementById(objectId);\n var currentTextMessage = objectToBeChanged.getAttribute('text-message');\n\n if (arguments.callee.caller.name == \"completeUndo\") { //add the current position to the redo array before undoing the movement.\n addToRedoArray(objectId, \"changeText\", objectToBeChanged.getAttribute('top'), objectToBeChanged.getAttribute('left'), objectToBeChanged.getAttribute('object-style'), objectToBeChanged.getAttribute('weather-time'), objectToBeChanged.getAttribute('object-width'), objectToBeChanged.getAttribute('object-height'), objectToBeChanged.getAttribute('object-font'), currentTextMessage);\n }\n else { //if it was a redo-function that called this function add the information instead in the undo array.\n addToUndoArray(objectId, \"changeText\", objectToBeChanged.getAttribute('top'), objectToBeChanged.getAttribute('left'), objectToBeChanged.getAttribute('object-style'), objectToBeChanged.getAttribute('weather-time'), objectToBeChanged.getAttribute('object-width'), objectToBeChanged.getAttribute('object-height'), objectToBeChanged.getAttribute('object-font'), currentTextMessage);\n }\n\n objectToBeChanged.innerHTML = textMessage;\n}", "title": "" }, { "docid": "04a9209f778dee524cfab79496235e79", "score": "0.52201235", "text": "function undoElement() {\n\t\tlastRemovedEl = $('#pad').children().last();\n\t\t$('#pad').children().last().remove();\n\t}", "title": "" }, { "docid": "34f2abe96dec493794679dcf75d5b809", "score": "0.52185017", "text": "function undo() {\r\n //if the game over or if the game in the start return nothing\r\n if (isGameOver) return;\r\n if (gIsWin) return;\r\n if (gHistory.length < 1) return;\r\n //Get the details of the last click.\r\n var lastAction = gHistory.splice(gHistory.length - 1, 1);\r\n lastAction = lastAction[0];\r\n //If user was on safe mode that what will happen\r\n if (lastAction.isSafe) {\r\n gSafeClicks++;\r\n var safeInHtml = document.querySelector('.safe-num');\r\n safeInHtml.innerText = gSafeClicks;\r\n return;\r\n }\r\n var cell = document.querySelector(`.i-${lastAction.cellPositionI}-j-${lastAction.cellPositionJ}`);\r\n gBoard[lastAction.cellPositionI][lastAction.cellPositionJ].isShown = false;\r\n //If user was on manually mode that what will happen\r\n if (lastAction.manuallyStatus) {\r\n gMinesSetCount--;\r\n gBoard[lastAction.cellPositionI][lastAction.cellPositionJ].isMine = false;\r\n if (gHistory.length < 1) {\r\n gIsManually = false;\r\n document.querySelector('.manually').classList.remove('green');\r\n } else {\r\n gIsManually = true;\r\n document.querySelector('.manually').classList.add('green');\r\n }\r\n }\r\n //If user was on hint mode that what will happen\r\n if (lastAction.hintStatus) {\r\n gHintsCount++;\r\n updateHtml(gHintsCount, HINT, '.hints');\r\n }\r\n //If it's the first click set the first click to true\r\n if (lastAction.firstClickStatus) {\r\n gIsFirstClick = true;\r\n }\r\n //IF the user clicked on mine the live increase back\r\n if (lastAction.isMine) {\r\n gLives++;\r\n updateHtml(gLives, LIVES, '.lives');\r\n }\r\n //If the user change flag status:\r\n if (lastAction.isRight) {\r\n if (lastAction.isMarked) {\r\n gBoard[lastAction.cellPositionI][lastAction.cellPositionJ].isMarked = false;\r\n gFlagged--;\r\n renderCell(cell, '');\r\n } else {\r\n gBoard[lastAction.cellPositionI][lastAction.cellPositionJ].isMarked = true;\r\n gFlagged++;\r\n renderCell(cell, FLAG);\r\n }\r\n renderTxts('.mines-counter', `Mines count remaining: ${gMinesCount - gFlagged}`);\r\n return;\r\n }\r\n renderCell(cell, '');\r\n cell.classList.remove('clicked');\r\n}", "title": "" }, { "docid": "1e0ff04d9211142c098b8ba73bd0f5e2", "score": "0.5212739", "text": "function redo(key, modifiers) {\n if (isCmd$4(modifiers) && (key === 89 || key === 90 && isShift$2(modifiers))) {\n editorActions.trigger('redo');\n return true;\n }\n }", "title": "" }, { "docid": "7b13f2af0f09aec598bf1e63b2fce287", "score": "0.52015847", "text": "doEdit(proxy) {\n\t\tproxy.styleSelection(this.styleClass, this.element);\n\t\tproxy.resetEditingContext();\n\t}", "title": "" }, { "docid": "f71b3540a0eb36a5f9205be92fc8f3b0", "score": "0.5199867", "text": "function updateButtons(e) {\n let temp = e.children[0].classList;\n if (temp.contains('edit')) {\n e.children[0].className = \"far fa-save save\";\n e.nextSibling.nextSibling.children[0].className = \"far fa-window-close cancel\";\n }\n\n else if (temp.contains('save')) {\n e.children[0].className = \"fas fa-edit edit\";\n e.nextSibling.nextSibling.children[0].className = \"fas fa-trash-alt delete\";\n }\n\n else if (temp.contains('cancel')) {\n e.children[0].className = \"fas fa-trash-alt delete\";\n e.previousSibling.previousSibling.children[0].className = \"fas fa-edit edit\";\n };\n}", "title": "" }, { "docid": "594fd1c24e51177334ac5f872d884eee", "score": "0.5197096", "text": "function onUndoClick() {\n let stroke = undoStack.pop();\n if (stroke.command === \"delstroke\") {\n stroke.strokes.forEach((stroke) => {\n undoStack.push(stroke);\n });\n } else if (stroke.command === \"fill\") {\n // grab the previous fill color so that backgroundColor has the correct color and\n // the eraser erases with the correct color.\n backgroundColor = undoStack[findLastCmdMatch(undoStack, \"fill\")].color;\n }\n redoStack.push(stroke);\n setButtonDisableStatus(\"btn-redo\", false);\n if (undoStack.length === 1) { // don't undo the initial canvas clear\n setButtonDisableStatus(\"btn-undo\", true);\n }\n }", "title": "" }, { "docid": "742bb91f6547f4e7ccceeb71683f3018", "score": "0.5187775", "text": "addAction(action) {\n this.undoStack.push(action);\n this.redoStack = [];\n }", "title": "" }, { "docid": "5838b46fb13cb9f98be70140d2b6398d", "score": "0.5186161", "text": "redoAllTabTitles() { this.redoTabTitle('gid'); this.redoTabTitle('rid'); this.redoTabTitle('custom'); }", "title": "" }, { "docid": "13b3843942a2bb63f01513e446a353f2", "score": "0.51822245", "text": "function Undo_Score(period)\n{\n update_data();\n}", "title": "" }, { "docid": "bd9efdc983780219ac7745255e1f35bf", "score": "0.5171446", "text": "function completeRedoAction(lastIndex, latestAction) {\n\n if(latestAction == \"addObject\") { //if the latest undo action was to remove an object we have to add the object again.\n\n addToUndoArray(redoArray[0][lastIndex], redoArray[1][lastIndex], redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[4][lastIndex], redoArray[5][lastIndex], redoArray[6][lastIndex], redoArray[7][lastIndex], redoArray[8][lastIndex], redoArray[9][lastIndex]);\n\n var currentObjectStyle = redoArray[4][lastIndex]; //have to know what kind of object it is so that the correct function is called.\n\n if(currentObjectStyle == \"weather\" || currentObjectStyle == \"temperature\" || currentObjectStyle == \"temp-graph\") {\n SMHICall(redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[0][lastIndex], redoArray[5][lastIndex], redoArray[6][lastIndex], redoArray[7][lastIndex], redoArray[4][lastIndex], redoArray[8][lastIndex]);\n }\n\n else if (currentObjectStyle == \"text-message\") {\n createTextMessage(redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[0][lastIndex],redoArray[5][lastIndex], redoArray[6][lastIndex], redoArray[7][lastIndex], redoArray[4][lastIndex], redoArray[8][lastIndex], redoArray[9][lastIndex]);\n }\n\n else if (currentObjectStyle == \"clock\") {\n createTimeObject(redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[0][lastIndex], redoArray[4][lastIndex], redoArray[5][lastIndex], redoArray[6][lastIndex],redoArray[7][lastIndex], redoArray[8][lastIndex]);\n }\n\n else if (currentObjectStyle == \"date\") {\n createDateObject(redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[0][lastIndex], redoArray[4][lastIndex], redoArray[5][lastIndex], redoArray[6][lastIndex],redoArray[7][lastIndex], redoArray[8][lastIndex]);\n }\n }\n\n else if (latestAction == \"deleteObject\") {\n addToUndoArray(redoArray[0][lastIndex], redoArray[1][lastIndex], redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[4][lastIndex], redoArray[5][lastIndex], redoArray[6][lastIndex], redoArray[7][lastIndex], redoArray[8][lastIndex], redoArray[9][lastIndex]);\n\n deleteObject(redoArray[0][lastIndex]);\n }\n\n else if (latestAction == \"movedObject\") {\n moveBackObject(redoArray[2][lastIndex], redoArray[3][lastIndex], redoArray[0][lastIndex]);\n }\n\n else if (latestAction == \"resizedObject\") {\n resizeObject(redoArray[0][lastIndex], redoArray[6][lastIndex], redoArray[7][lastIndex]);\n }\n else if (latestAction == \"changedFont\") {\n changeBackFont(redoArray[0][lastIndex], redoArray[8][lastIndex])\n }\n else if (latestAction == \"changeTime\" ) {\n changeBackTime(redoArray[0][lastIndex], redoArray[5][lastIndex])\n }\n else if (latestAction == \"changeText\") {\n changeTextBack(redoArray[0][lastIndex], redoArray[9][lastIndex])\n }\n else if (latestAction == \"changeSeconds\") {\n changeSecondsBack(redoArray[0][lastIndex], redoArray[10][lastIndex]);\n }\n\n redoActionArray.splice(lastIndex,1); //remove the latest undo-action from the undo arrays.\n redoIdArray.splice(lastIndex,1);\n redoTopArray.splice(lastIndex,1);\n redoLeftArray.splice(lastIndex,1);\n redoStyleArray.splice(lastIndex,1);\n redoTimeArray.splice(lastIndex,1);\n redoWidthArray.splice(lastIndex,1);\n redoHeightArray.splice(lastIndex,1);\n redoFontArray.splice(lastIndex,1);\n redoMessageArray.splice(lastIndex,1);\n redoSecondsArray.splice(lastIndex,1);\n updateRedoArray();\n}", "title": "" }, { "docid": "830142240a95dda0efe4d54c10a13326", "score": "0.51630044", "text": "undo() {\n __WEBPACK_IMPORTED_MODULE_0__configuration_LoggerConfig__[\"b\" /* editorLogger */].debug('Undo current model', this.model);\n triggerCallbacks(this, undefined, __WEBPACK_IMPORTED_MODULE_12__configuration_Constants__[\"a\" /* default */].EventType.UNDO);\n this.undoRedoManager.undo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }", "title": "" }, { "docid": "681c6aae49f3e3f0ddd6542d3c6fb157", "score": "0.5156126", "text": "function redo(key, modifiers) {\n if (isCmd$2(modifiers) && (key === 89 || key === 90 && isShift$1(modifiers))) {\n editorActions.trigger('redo');\n return true;\n }\n }", "title": "" } ]
4ea2d3e4518ea211af727e1e87783ae4
requests the body from an html document and returns it as an HTML element
[ { "docid": "772087a9e2d907ef713b84e45e57c504", "score": "0.6313729", "text": "function twcheese_requestDocumentBody(targetUrl)\r\n\t{\r\n\t\tvar requestedDocumentBody;\r\n\t\tvar xmlhttps;\r\n\t\tif (window.XMLhttpsRequest)\r\n\t\t\txmlhttps=new XMLhttpsRequest();\r\n\t\telse\r\n\t\t\txmlhttps=new ActiveXObject(\"Microsoft.XMLhttps\");\r\n\t\txmlhttps.open(\"GET\",targetUrl,false);\r\n\t\txmlhttps.send(\"\");\r\n\t\trequestedDocumentBody = document.createElement(\"body\");\r\n\t\trequestedDocumentBody.innerHTML = xmlhttps.responseText;\r\n\t\treturn requestedDocumentBody;\r\n\t}", "title": "" } ]
[ { "docid": "62ff1fdcd81d5d88f4ca774a2cbb33cf", "score": "0.6868024", "text": "function getBody() {\r\n \t\treturn document.getElementsByTagName(\"BODY\")[0];\r\n \t}", "title": "" }, { "docid": "e5b10581e8ee105546caea7601f7e45d", "score": "0.6529331", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "e5b10581e8ee105546caea7601f7e45d", "score": "0.6529331", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "e5b10581e8ee105546caea7601f7e45d", "score": "0.6529331", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "9a114c1214bfd7a4dd8be6739d8d95dc", "score": "0.6528857", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null; // Provides a safe context\n\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? true ? invariant(false, 'Missing doc.documentElement') : 0 : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n\n return root;\n}", "title": "" }, { "docid": "3cea0e2a00f991cc3f721f5f3fce374f", "score": "0.65056384", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? false ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "3cea0e2a00f991cc3f721f5f3fce374f", "score": "0.65056384", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? false ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "41ecc0f3ece8ae7216c3697229902c86", "score": "0.6503038", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? true ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "d30e37a07ec2dd294f58df8918f90046", "score": "0.64834714", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null; // Provides a safe context\n\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? false ? 0 : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n\n return root;\n}", "title": "" }, { "docid": "1f4973c3638ff2196fcb462be853a763", "score": "0.64774245", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null; // Provides a safe context\n\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? false ? undefined : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n\n return root;\n}", "title": "" }, { "docid": "0a6457555c2e8a80f5a0eb8b5cf62b06", "score": "0.6464679", "text": "function getBodyPage(url) {\n return new Promise(function(resolve, reject) {\n \n // 1. Create the request\n req(url, (err, body) => {\n if (err) { return reject(err); }\n // Send the data in the callback\n resolve(cheerio.load(body));\n });\n })\n .catch((error) => {\n console.log(url);\n console.error(\"ERROR in getBodyPage :\" + error);\n });\n}", "title": "" }, { "docid": "6d9a0aec3274b2f689861d2b8b3a6fe7", "score": "0.64620864", "text": "function getSafeBodyFromHTML(html) {\n var doc;\n var root = null;\n // Provides a safe context\n if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n doc = document.implementation.createHTMLDocument('foo');\n !doc.documentElement ? \"production\" !== 'production' ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n doc.documentElement.innerHTML = html;\n root = doc.getElementsByTagName('body')[0];\n }\n return root;\n}", "title": "" }, { "docid": "a4c6a80bdced8c4db77cf9f9a08f2d9f", "score": "0.6437278", "text": "function getSafeBodyFromHTML(html) {\n\t var doc;\n\t var root = null;\n\t // Provides a safe context\n\t if (!isOldIE && document.implementation && document.implementation.createHTMLDocument) {\n\t doc = document.implementation.createHTMLDocument('foo');\n\t !doc.documentElement ? false ? invariant(false, 'Missing doc.documentElement') : invariant(false) : void 0;\n\t doc.documentElement.innerHTML = html;\n\t root = doc.getElementsByTagName('body')[0];\n\t }\n\t return root;\n\t}", "title": "" }, { "docid": "e2eeda008447d054c3b339b3afe3375a", "score": "0.6368148", "text": "function Java_cjdom_Document_getBodyImpl(lib, docObj) { return docObj.body; }", "title": "" }, { "docid": "3c762e52869c27ae90c65787e6a0a842", "score": "0.62690973", "text": "function getSourceAsDOM(url)\n{\n xmlhttp=new XMLHttpRequest();\n xmlhttp.open(\"GET\",url,false);\n xmlhttp.send();\n parser=new DOMParser();\n return parser.parseFromString(xmlhttp.responseText,\"text/html\");\n}", "title": "" }, { "docid": "3ff40e47450ecc52e776d7e5e88311e8", "score": "0.62382996", "text": "function fetchBody(url) {\n return fetch(url).then((r) => r.text());\n}", "title": "" }, { "docid": "4be2b2da7abcd045b0301aac0b55ceec", "score": "0.620899", "text": "function getBody(content) \n{\n test = content.toLowerCase(); // to eliminate case sensitivity\n var x = test.indexOf(\"<body\");\n if(x == -1) return \"\";\n\n x = test.indexOf(\">\", x);\n if(x == -1) return \"\";\n\n var y = test.lastIndexOf(\"</body>\");\n if(y == -1) y = test.lastIndexOf(\"</html>\");\n if(y == -1) y = content.length; // If no HTML then just grab everything till end\n\n return content.slice(x + 1, y); \n}", "title": "" }, { "docid": "ae913bc55b20cde72e6444dc705d92cf", "score": "0.61584204", "text": "function findBody(dom){\n if (dom){\n if (dom.prop && dom.prop.tagName && \n dom.prop.tagName.toUpperCase() == \"BODY\"){\n return dom;\n }\n if (dom.children){\n var children = dom.children;\n var numChildren = children.length;\n for (var i=0;i<numChildren;i++){\n var ret = findBody(children[i]);\n if (ret){\n return ret;\n }\n }\n }\n }\n}", "title": "" }, { "docid": "5df3a950a371dcba5182e4ca63b12549", "score": "0.60651463", "text": "function getBody(s){\n if (s.indexOf(\"<body>\") !== -1) {\n s = s.substring(s.indexOf(\"<body>\") + 6, s.indexOf(\"</body>\"))\n } \n return s;\n }", "title": "" }, { "docid": "1336699ff4d48e79b13646936b9a85e8", "score": "0.5970565", "text": "function get_real_document (raw) {\n let d = raw.getElementById('pagelet_html_frs-list/pagelet/thread_list')\n let html = d.innerHTML\n let extracted = html.trim().replace(/^<!--|-->$/g, '')\n let document = parse(extracted, 'text/html')\n return document\n}", "title": "" }, { "docid": "f74865afba41483c1c202fdfa1beaf72", "score": "0.5908234", "text": "function getBodyContent(){\n \n var arrElements = ['containerHeader','containerListsCaption','containerLists','containerVideo','containerForms','containerFormCaption','containerFooter'];\n for(var z=0;z<arrElements.length;z++){\n getData(arrElements[z]);\n }\n \n getList(null,false,\"template/htmlList.php\");\n}", "title": "" }, { "docid": "ab069fcb667598a1b9d6d5e2a8e30426", "score": "0.5888633", "text": "function rxGetEphoxBodyContent(doc)\r\n{\r\n var lDoc = doc.toLowerCase();\r\n var sBodyPos = lDoc.indexOf(\"<body\");\r\n if(sBodyPos == -1)\r\n return doc;\r\n var eBodyPos = lDoc.indexOf(\">\", sBodyPos + 5);\r\n if(eBodyPos == -1) \r\n return doc;\r\n var cBodyPos = lDoc.lastIndexOf(\"</body>\");\r\n if(cBodyPos == -1)\r\n return doc;\r\n return doc.substring(eBodyPos + 1, cBodyPos);\r\n}", "title": "" }, { "docid": "74056cbc94c4791999a7e70092f68718", "score": "0.5886249", "text": "async getContentsOf(selector) {\n return this.page.$eval(selector, (el) => el.innerHTML); \n }", "title": "" }, { "docid": "73ae7d10852373604f755f600caf9ed8", "score": "0.5873225", "text": "function parseHTML(data) {\n // Some boilerplate to parse the DOM.\n var options = { features: defaultFeatures, parser: html5 };\n var window = jsdom.jsdom(null, null, options).createWindow();\n var document = window.document;\n var parser = new html5.Parser({ document: document });\n parser.parse(data);\n return document;\n}", "title": "" }, { "docid": "6df9526556baa8ba8796e28d6fb827e6", "score": "0.5864256", "text": "async getContentsOf(selector){\n return this.page.$eval( selector , (el) => {\n return el.innerHTML;\n });\n }", "title": "" }, { "docid": "ff509ad7103b8ffb43ac29c28c56dc7f", "score": "0.58597594", "text": "async grabHTMLFrom(locator) {\n const html = await this.browser.getHTML(withStrictLocator.call(this, locator));\n this.debugSection('Grab', html);\n return html;\n }", "title": "" }, { "docid": "7b2cceee7d6a6b3a0d0f04d5b9508343", "score": "0.5856916", "text": "getHTML() { return HTML; }", "title": "" }, { "docid": "472443b582c98de22bed6f0cf2406809", "score": "0.5853638", "text": "function callBack(error,response,body)\n{\n if(!error)\n {\n extractHTML(body);\n }\n}", "title": "" }, { "docid": "670bfef3fa2dcb434b0ba491db72ad16", "score": "0.57662094", "text": "function cb(error, response, html) {\n // console.log(response);\n // console.log(\"error\",error);\n let cheerioSelector = cheerio.load(html);\n // element select \n let element = cheerioSelector(\"#SIvCob\");\n // console.log(element.html());\n // html \n // console.log(element.html());\n // text\n // console.log(element.text());\n}", "title": "" }, { "docid": "0aa8ffd826c22867520c8ab5ab43b222", "score": "0.57537246", "text": "function parseDOM(preDOM){\n var parser = new DOMParser()\n var el = parser.parseFromString(preDOM, \"text/html\");\n return el;\n}", "title": "" }, { "docid": "097b0dc5df1d44ee503bd015771edbeb", "score": "0.57424575", "text": "async function scanDocument() {\r\n const $ = await fetchData();\r\n const htmlDocument = $.html();\r\n const returnValue = \"\"; // For example use htmlDocument and regExp to target element viewed in browser with inspect\r\n return Promise.resolve({});\r\n}", "title": "" }, { "docid": "4e75fdea1b7cce91710db908070251df", "score": "0.5741452", "text": "async function getHtmlFromPage(url) {\r\n const html = await rp(url);\r\n return html;\r\n}", "title": "" }, { "docid": "975bddc65f0668e3410e15c16ab9cc6b", "score": "0.5733745", "text": "function getElement(html) {\n let div = document.createElement('div');\n div.innerHTML = html;\n return div.firstElementChild;\n}", "title": "" }, { "docid": "2869192a5b07f1e96bc853bab4c7528c", "score": "0.5732956", "text": "function getHtml(){\n $(\":IKS-hallo\").trigger(\"blur\");\n return $(\"html\").html();\n }", "title": "" }, { "docid": "da99d5d9c0237c0d142dd4c0037de956", "score": "0.57250345", "text": "getSterilizedHTML(html){\n const dom = new JSDOM(html,{ includeNodeLocations: true });\n const old_form = dom.window.document.querySelector(\"form\");\n const new_form = dom.window.document.createElement(\"form\");\n while (old_form.childNodes.length > 0) {\n const child = old_form.childNodes[0];\n new_form.appendChild(child);\n }\n old_form.parentNode.replaceChild(new_form, old_form);\n new_form.action = this.formActionUrl;\n new_form.method = \"POST\";\n return dom;\n }", "title": "" }, { "docid": "66570bcee02b37d167af8ec4419a8f5f", "score": "0.57105", "text": "function getContent() {\n\treturn document.body.innerHTML || document.body.textContent;\n}", "title": "" }, { "docid": "72546825e0b8b2a21be549e6e2574b37", "score": "0.56979483", "text": "bodyAsHTML() {\n this.validateBodyType();\n this._bodyType = \"html\";\n return this;\n }", "title": "" }, { "docid": "85016b2035a31ff445bcb1fef8938b04", "score": "0.569532", "text": "function parseHTML(html) {\n var parsed = $(\"<div />\").html(html).text(); // Little trick that initializes a self-enclosed dummy div (<div />) and sets its innerHTML to the content recieved from the body.\n return parsed; // Then, the text() of that dummy div is returned, thus returning proper HTML content rather than the HTML in string.\n}", "title": "" }, { "docid": "4976e7812fafc9fc31ca8eae57537f02", "score": "0.5649161", "text": "function JSDOM(html) { return linkedom_1.default.parseHTML(html); } // facade to work like jsdom", "title": "" }, { "docid": "7d2f1929e4ee6ea526f00c066db927d7", "score": "0.56358284", "text": "function getSourceAsDOM(url) {\n var XMLHttpRequest = require(\"xmlhttprequest\").XMLHttpRequest;\n\n let xmlhttp = new XMLHttpRequest();\n xmlhttp.open(\"GET\", url, false);\n xmlhttp.send();\n return xmlhttp.responseText;\n}", "title": "" }, { "docid": "28c23c3d02848301562cf50a834524c3", "score": "0.56346625", "text": "function parseHtmlBody(responseText) {\r\n\t\t\tvar matcher = responseText.match(/<body[^>]*>([\\w|\\W]*)<\\/body>/im);\r\n\t\t\tvar body = matcher[1];\r\n\t\t\tif (!body) {\r\n\t\t\t\treturn \"\";\r\n\t\t\t}\r\n\t\t\treturn body.replace(/<[^>]*>/g, '');\r\n\t\t}", "title": "" }, { "docid": "a4648cd5731acf4d4b452934e6b6e8f9", "score": "0.5612021", "text": "html(body) {\n this.header('Content-Type','text/html').send(body)\n }", "title": "" }, { "docid": "98d743133d17cc6bb975505ad5b5d56f", "score": "0.5583675", "text": "function getInertElement() {\n if (inertElement)\n return inertElement;\n DOM = dom_adapter_1.getDOM();\n // Prefer using <template> element if supported.\n var templateEl = DOM.createElement('template');\n if ('content' in templateEl)\n return templateEl;\n var doc = DOM.createHtmlDocument();\n inertElement = DOM.querySelector(doc, 'body');\n if (inertElement == null) {\n // usually there should be only one body element in the document, but IE doesn't have any, so we\n // need to create one.\n var html = DOM.createElement('html', doc);\n inertElement = DOM.createElement('body', doc);\n DOM.appendChild(html, inertElement);\n DOM.appendChild(doc, html);\n }\n return inertElement;\n}", "title": "" }, { "docid": "d2ec7b8ebe6b1a98a47f2bb5caf8a959", "score": "0.55752426", "text": "function __GetContentHtml()\n{\n var oRange = __GetRange();\n if(document.all){return oRange.htmlText;}\n else{\n\tvar contents = oRange.cloneContents();\n\tvar cnt = document.createElement(\"div\");\n\tcnt.appendChild(contents);\n return cnt.innerHTML;\n }\n}", "title": "" }, { "docid": "3ab12a0b8fbad2a96b1854c9b07b8c79", "score": "0.55720735", "text": "get mainBody () { return $('main') }", "title": "" }, { "docid": "f106a06f2f394e953ebf2f6e64ea9b6a", "score": "0.5567364", "text": "getHTML() {\n return getHTMLFromFragment(this.state.doc, this.schema);\n }", "title": "" }, { "docid": "f106a06f2f394e953ebf2f6e64ea9b6a", "score": "0.5567364", "text": "getHTML() {\n return getHTMLFromFragment(this.state.doc, this.schema);\n }", "title": "" }, { "docid": "4e7773c00b5fbe156c26a4e5291f60b6", "score": "0.5562854", "text": "function getDOC(url, callback) {\r\n GM_xmlhttpRequest({\r\n method: 'GET',\r\n url: url,\r\n onload: function (responseDetails) {\r\n var dt = document.implementation.createDocumentType(\"html\", \r\n \"-//W3C//DTD HTML 4.01 Transitional//EN\", \"http://www.w3.org/TR/html4/loose.dtd\"),\r\n doc = document.implementation.createDocument('', '', dt),\r\n html = doc.createElement('html');\r\n\r\n html.innerHTML = responseDetails.responseText;\r\n doc.appendChild(html);\r\n callback(doc);\r\n }\r\n });\r\n}", "title": "" }, { "docid": "7e06b9049e03a9ba18ed578780e809c9", "score": "0.55619806", "text": "function getDOC(url, callback) {\r\n GM_xmlhttpRequest({\r\n method: 'GET',\r\n url: url,\r\n onload: function (responseDetails) {\r\n var dt = document.implementation.createDocumentType(\"html\",\r\n \"-//W3C//DTD HTML 4.01 Transitional//EN\", \"http://www.w3.org/TR/html4/loose.dtd\"),\r\n doc = document.implementation.createDocument('', '', dt),\r\n html = doc.createElement('html');\r\n\r\n html.innerHTML = responseDetails.responseText;\r\n doc.appendChild(html);\r\n callback(doc);\r\n }\r\n });\r\n}", "title": "" }, { "docid": "85e12842e7ec7b65026e76e1853b646f", "score": "0.55583715", "text": "async function targetDocument() {\r\n const $ = await fetchData();\r\n const returnValue = $(\".apple\", \"#fruits\").text();\r\n return Promise.resolve({ returnValue });\r\n}", "title": "" }, { "docid": "0f5ce0a3277db38a09ad1a819a14b128", "score": "0.55517524", "text": "async function getHTML(request){\n\tconst staticURL = 'https://static-links-page.signalnerve.workers.dev' // URL of the static website\n\thtml = await fetch(staticURL).then((res)=>{\n\t\treturn res.text() // Fetch the response text\n\t})\n\treturn new Response(html, { \n\t\theaders: { 'content-type': 'text/html' } // Return an HTML response\n\t})\n}", "title": "" }, { "docid": "3154ac8e35705713a14d5a011360b0e7", "score": "0.5535809", "text": "function _getElements(err, body, cb){\n if(err) {\n cb(err);\n return err;\n }\n if (typeof body !=='string') {\n cb({error: 'body is not a string type'});\n return;\n }\n\n var element = 'a';\n var startEmelent = '<'+element+' ';\n var iterate = true;\n var elemArray = [];\n\n while (iterate){\n var i = 0, start= -1, fin= -1, quotes1=false;quotes2=false;\n\n start = body.search(startEmelent);\n if (start !== -1) {\n body = body.slice(start + startEmelent.length);\n\n //fin = body.search('>'); //seach step by step\n for (i=0;i<body.length;i++){\n if( body[i] === '\"' && !quotes2) quotes1 = !quotes1;\n if( body[i] === \"'\" && !quotes1) quotes2 = !quotes2;\n if (body[i] === '>' && !quotes1 && !quotes2) break;\n }\n fin =i;\n\n if (fin !== -1) {\n elemArray.push( startEmelent + body.slice(0, fin+1) );\n body = body.slice(fin+1);\n }\n } else iterate = false;\n\n }\n\n cb(null,elemArray);\n //return elemArray;\n}", "title": "" }, { "docid": "a72a54c2ad03c90b15503ba92fcf9933", "score": "0.55062395", "text": "function get_body (tr) {\r\n\tvar col2 = tr.childNodes[1];\r\n\tvar body = col2.getElementsByTagName('font')[0].childNodes;\r\n\t// if it has one child <b> then it is first post\r\n\t// and we should get childs of B\r\n\tif (body[0].nodeName.toUpperCase() == 'B') {\r\n\t body = body[0].childNodes;\r\n\t}\r\n\treturn body;\r\n }", "title": "" }, { "docid": "64fd2ec0009ea1c5e52022c1267a4247", "score": "0.5503113", "text": "async grabHTMLFrom(locator) {\n const els = await this._locate(locator);\n assertElementExists(els);\n\n const html = await Promise.all(els.map((el) => {\n return this.browser.executeScript('return arguments[0].innerHTML;', el);\n }));\n\n if (html.length === 1) {\n return html[0];\n }\n return html;\n }", "title": "" }, { "docid": "56e14060b46d85fac2afe2e2e7aaabf5", "score": "0.54955405", "text": "function cb(error,response,html){\n if(error){\n console.log(error);\n }else{\n extractHtml(html) //console.log(html);\n }\n}", "title": "" }, { "docid": "34aaa890f058192f1e883d0dc14c1954", "score": "0.548503", "text": "function callCheer(htmlBody){\n let $ = cheerio.load(htmlBody);\n if($('meta').length > 0){\n parseMetaData($)\n } else {\n parseBody($)\n }\n }", "title": "" }, { "docid": "d7e32ce0f2580ad383bf8ecaa4dc859a", "score": "0.54819316", "text": "get html() { return html; }", "title": "" }, { "docid": "c4722cfca3524c7788883905806a397a", "score": "0.5476887", "text": "loadHTML( url, callback ) {\n $.ajax ({\n type: \"GET\",\n url: url,\n dataType: 'html',\n success: function( data ) { \n $('#app-content').html($(data).find('#content'));\n if(callback) callback(); \n }, \n error: function(){\n UIkit.modal.alert('Что-то пошло не так');\n }\n })\n \n }", "title": "" }, { "docid": "761f0e7406d4bbf900270ac2cb8daae9", "score": "0.5467107", "text": "function userHTML(userString) {\n const HTML = document.implementation.createHTMLDocument();\n HTML.body.innerHTML = userString;\n return HTML.body.children[0];\n }", "title": "" }, { "docid": "ea50bc60182badb8381ae1460a2c3f50", "score": "0.54603046", "text": "function parse_response(html) {\n // the exec() method simply tests for a match in a string and returns the matched text if it finds a match, otherwise it returns null.\n var head = /<head[^>]*>([\\s\\S]+)<\\/head>/.exec(html),\n body = /<body[^>]*>([\\s\\S]+)<\\/body>/.exec(html),\n \n // get the string representation of the dom node then turn it into a dom object otherwise return empty jquery object\n $head = head ? parse_html(head[1]) : $(),\n $body = body ? parse_html(body[1]) : $(),\n \n // get the content you want to load in\n title = $.trim(find_all($head, 'title').last().html()),\n $content = $.trim(find_all($body, '#content').first().html()); \n \n return {\n 'title': title,\n '$content': $content\n }\n }", "title": "" }, { "docid": "e027c1efec21d9af70ffd6d905091f62", "score": "0.5458258", "text": "function parseHTML(text) {\r\n\tvar dt = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01 Transitional//EN', 'http://www.w3.org/TR/html4/loose.dtd'),\r\n\t\tdoc = document.implementation.createDocument('', '', dt),\r\n\t\thtml = doc.createElement('html'),\r\n\t\thead = doc.createElement('head'),\r\n\t\tbody = doc.createElement('body');\r\n\r\n\tif (!doc || !html || !body)\r\n\t\treturn null;\r\n\r\n\tdoc.appendChild(html);\r\n\thtml.appendChild(head);\r\n\tbody.innerHTML = text;\r\n\thtml.appendChild(body);\r\n\r\n\treturn doc;\r\n}", "title": "" }, { "docid": "773291df135e67cc03986184997a6a65", "score": "0.5454374", "text": "function html(html) {\n let a = document.createElement(\"div\");\n a.innerHTML = html;\n return (a.firstElementChild || a.firstChild);\n }", "title": "" }, { "docid": "f7dacf174fe704bc00dc31979336f43e", "score": "0.544801", "text": "function getAndPrintHTML() {\n https.get(requestOptions, function(response) {\n var buff = '';\n response.on('data', function(chunk) {\n buff += chunk.toString();\n });\n response.on('end', function() {\n console.log(buff);\n });\n });\n}", "title": "" }, { "docid": "9704c22e7ab505a971a3d7c5196e895f", "score": "0.54459906", "text": "function render_request(body) {\n var url = request.url\n var req_token = request.token\n console.log(\"Token: \" + req_token) \n\n var document = parser.parse(body);\n var $ = cheerio.load(document)\n $(body).each((i, element)=>{\n default_text_box.item = \"text\"\n default_text_box.param.text = $(element).text()\n var msg = {\n token: req_token,\n data: default_text_box\n }\n \n publisher.send([publisherEnvelope, JSON.stringify(msg)]);\n }) \n}", "title": "" }, { "docid": "3085adfde2bcc9cf5a2424ad60d8f5a9", "score": "0.54459363", "text": "function getDocument(xhr) {\n var type = xhr.getResponseHeader('Content-Type') || 'text/html';\n // Ignore non-HTML resources, such as XML or plan text.\n if (!/html/.test(type))\n return null;\n if (xhr.responseXML)\n return xhr.responseXML;\n return new DOMParser().parseFromString(xhr.responseText, 'text/html');\n }", "title": "" }, { "docid": "bfd7f233d8e759712696bfc72619f8f1", "score": "0.54330534", "text": "async function getHtml(result) {\n console.log('Building HTML');\n return `\n <!DOCTYPE html>\n <html lang=\"de\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Wurde ${ domain } schon umgezogen?</title>\n <style type=\"text/css\">\n body {\n background-color: ${ result.color };\n font-family: Arial, sans-serif;\n text-align: center;\n color: #ffffff;\n padding: 100px;\n }\n\n .how-does-this-work {\n margin-top: 100px;\n opacity: 0.5;\n }\n .how-does-this-work a {\n color: #ffffff;\n text-decoration: none;\n }\n .how-does-this-work a:hover {\n text-decoration: underline;\n }\n </style>\n </head>\n <body>\n <h1>${ result.headline }</h1>\n <p>${ result.text }</p>\n <p class=\"how-does-this-work\">\n <a href=\"https://github.com/FabianScheidt/WasSomeDomainTransferred\" target=\"_blank\">Wie funktioniert das?</a>\n </p>\n </body>\n </html>`;\n}", "title": "" }, { "docid": "93e604706fb4b4a9b3b1c18bb5a89581", "score": "0.53988737", "text": "function domContent() {\n var html = document.getElementsByTagName(\"html\")[0];\n var container = document.createElement(\"div\");\n container.appendChild(html.cloneNode(true));\n window.alert(container.innerHTML);\n}", "title": "" }, { "docid": "a901f05a2b728d0db1a4d6e48e1cfa88", "score": "0.5374639", "text": "function cb(err,response,html){\n if(err){\n console.log(\"Error: \",err);\n }else{\n // console.log(html); // inner Html content of the pg, to which we made the request to\n extractionHtml(html);\n }\n}", "title": "" }, { "docid": "ceb1ea1616c7861069aeb8f2439e988d", "score": "0.53686684", "text": "function importHTMLDocument(head,body) {\n\n\t\tvar doc = {},\n\t\t\tmarkup = _combineHeadAndBody(head,body),\n\t\t\thasDoctype = markup.substring(0,9).toLowerCase() == \"<!doctype\";\n\n\t\ttry {\n\t\t\tvar ext = _createStandardsDoc(markup);\n\t\t\tif (document.adoptNode) {\n\t\t\t\tdoc.head = document.adoptNode(ext.head);\n\t\t\t\tdoc.body = document.adoptNode(ext.body);\n\t\t\t} else {\n\t\t\t\tdoc.head = document.importNode(ext.head);\n\t\t\t\tdoc.body = document.importNode(ext.body);\n\t\t\t}\n\t\t}\n\t\tcatch(ex) {\n\t\t\tvar ext = new ActiveXObject(\"htmlfile\");\n\t\t\tmarkup = shimMarkup(markup);\n\t\t\text.write(markup);\n\t\t\tif (ext.head === undefined) ext.head = ext.body.previousSibling;\n\n\t\t\tdoc.uniqueID = ext.uniqueID;\n\t\t\tdoc.head = ext.head;\n\t\t\tdoc.body = _importNode(document,ext.body,true);\n\n\t\t\t// markup = markup.replace(\"<head\",'<washead').replace(\"</head>\",\"</washead>\");\n\t\t\t// markup = markup.replace(\"<HEAD\",'<washead').replace(\"</HEAD>\",\"</washead>\");\n\t\t\t// markup = markup.replace(\"<body\",'<wasbody').replace(\"</body>\",\"</wasbody>\");\n\t\t\t// markup = markup.replace(\"<BODY\",'<wasbody').replace(\"</BODY>\",\"</wasbody>\");\n\t\t}\n\t\tif (!doc.uniqueID) doc.uniqueID = documentId++;\n\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "f2fe21bad39639e2a2631aabe482cbf3", "score": "0.53639597", "text": "parseHTML(html) {\n const div = document.createElement('DIV');\n div.innerHTML = html;\n return div.textContent.trim();\n }", "title": "" }, { "docid": "66b3e71064cd609e008fd90ca73cdb2e", "score": "0.5361786", "text": "function mainPageExtracter(html){\n let searchTool = cheerio.load(html);\n let allMatch = searchTool('a[data-hover=\"View All Results\"]');\n let link = allMatch.attr(\"href\");\n let fullLink = `https://www.espncricinfo.com${link}`;\n //console.log(fullLink);\n\n request(fullLink,newcb);\n}", "title": "" }, { "docid": "64f609f1684e1ea2846fa241822d08ff", "score": "0.53591186", "text": "function get_content( link ) {\n return new Promise( ( res, rej ) => {\n var xhr = new XMLHttpRequest()\n xhr.open( \"GET\", link ) \n xhr.onload = () => {\n res( xhr.responseText )\n }\n xhr.onerror = () => {\n rej()\n }\n xhr.send()\n } )\n}", "title": "" }, { "docid": "7249942224a82506fe4cb6fed00ec501", "score": "0.53563553", "text": "function populateResponseBody() {\n\tvar pre, label, column, span;\n label = populateElement(\"label\", null, null, \"Response Body:\");\n span = populateElement(\"span\");\n pre = populateElement(\"pre\", {\n \"style\": \"background-color: #ffffff; position:relative;\", id:\"pre-response-body\"\n },toArray(span));\n column = populateElement(\"div\", {\n \"class\": \"col-md-8 col-md-offset-2\"\n }, toArray(label, pre));\n return populateElement(\"div\", {\n \"class\": \"row response_body\"\n }, toArray(column));\n}", "title": "" }, { "docid": "270bd643bf33f2edb383fc41f245f897", "score": "0.535335", "text": "function ejahtml(request) {\n callback(request, \"ejahtml\")\n}", "title": "" }, { "docid": "6c81a3f7d6d7e78ffa811652a218736e", "score": "0.5339126", "text": "function bodyAppend(tagName, innerHTML) {\n var elm;\n\n elm = document.createElement(tagName);\n elm.innerHTML = innerHTML;\n document.body.appendChild(elm);\n\treturn elm;\t\n }", "title": "" }, { "docid": "53260e20271dd68016a1a77bc05cff2d", "score": "0.53361994", "text": "function parseHTML(html) {\n //Get html-parser handler's instance\n var handler = new Tautologistics.NodeHtmlParser.DefaultHandler(function (error, dom) {\n if (error) {\n console.log('Parse Failed. error: ' + error);\n } else {\n console.log('Parse Completed');\n }\n }, { verbose: false, ignoreWhitespace: true }); //Ignore some useless stuff\n\n //Get html-parser instance, pass the handler\n var parser = new Tautologistics.NodeHtmlParser.Parser(handler);\n\n //Parse the html content\n parser.parseComplete(html);\n\n console.log(handler.dom);\n return handler.dom;\n}", "title": "" }, { "docid": "944c9fe59362494da510e109ce36102e", "score": "0.53293914", "text": "function htmlToElement(html) {\n var template = document.createElement('template');\n template.innerHTML = html;\n return template.content.firstChild;\n}", "title": "" }, { "docid": "e08c203a465d1d16105d3b6ad409ef10", "score": "0.53158516", "text": "function getHTML(platform, region, tag, callback) {\n const url = `https://overwatch.blizzard.com/en-us/career/${tag}/`\n const ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:112.0) Gecko/20100101 Firefox/112.0';\n\n const options = {\n uri: encodeURI(url),\n headers: {\n 'User-Agent': ua,\n },\n encoding: 'utf8'\n }\n return retryRequest(options, MAX_RETRIES, callback);\n}", "title": "" }, { "docid": "d0bd0fd6099d3baa7a78002891815e89", "score": "0.5311318", "text": "readFile() {\n return Ok(this.raw.innerHTML);\n }", "title": "" }, { "docid": "ba2b6f785d9d105fe212e8359f1594a3", "score": "0.5300462", "text": "retrieveHtml() {\n const html = fs.readFileSync('./assets/plano.html', 'utf-8')\n return html\n }", "title": "" }, { "docid": "6cf3f59e105c44f595591df18c937117", "score": "0.52969974", "text": "function parseHTML(html) {\n return $.parseHTML(html, document, true)\n }", "title": "" }, { "docid": "cf5aeeaa1e0321dd064f668f86fccba7", "score": "0.52867043", "text": "function showNewHtml(e){\n\tstring = e.target.response\n\tdocument.getElementsByTagName(\"body\")[0].innerHTML = string\n}", "title": "" }, { "docid": "c82203fa3e7d8c01bd35a1783ae37fd8", "score": "0.5282354", "text": "function loadHTML(url, id) {\n req = new XMLHttpRequest();\n req.open('GET', url);\n req.send();\n req.onload = () => {\n $id(id).innerHTML = req.responseText;\n };\n}", "title": "" }, { "docid": "d33fe33b4c8eab644aec7f4729bf827b", "score": "0.5280892", "text": "function getInertElement() {\n if (inertElement)\n return inertElement;\n DOM = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__dom_dom_adapter__[\"b\" /* getDOM */])();\n // Prefer using <template> element if supported.\n var templateEl = DOM.createElement('template');\n if ('content' in templateEl)\n return templateEl;\n var doc = DOM.createHtmlDocument();\n inertElement = DOM.querySelector(doc, 'body');\n if (inertElement == null) {\n // usually there should be only one body element in the document, but IE doesn't have any, so we\n // need to create one.\n var html = DOM.createElement('html', doc);\n inertElement = DOM.createElement('body', doc);\n DOM.appendChild(html, inertElement);\n DOM.appendChild(doc, html);\n }\n return inertElement;\n}", "title": "" }, { "docid": "721b6663b0309932e820183287a083a2", "score": "0.5273808", "text": "function getExerpt(html) {\n const $ = cheerio.load(html, {\n ignoreWhitespace: true\n });\n return $.text().slice(0, 1000);\n}", "title": "" }, { "docid": "03f317a08312dc3cb465ac763dfa79bb", "score": "0.5272022", "text": "async grabHTMLFrom(locator) {\n locator = new Locator(locator, 'css');\n const els = await this.browser.findElements(locator.toStrict());\n const array = [];\n\n for (let index = 0; index < els.length; index++) {\n const el = els[index];\n assertElementExists(el, locator);\n array.push(await this.browser.evaluate(el => window.codeceptjs.fetchElement(el).innerHTML, el));\n }\n this.debugSection('HTML', array);\n\n return array.length === 1 ? array[0] : array;\n }", "title": "" }, { "docid": "553536edb6dac325a2641d7869b94da2", "score": "0.52617097", "text": "get html() {\n return this._html$ || (this.html = bind(\n // in a way or another, bind to the right node\n // backward compatible, first two could probably go already\n this.shadowRoot || this._shadowRoot || sr.get(this) || this\n ));\n }", "title": "" }, { "docid": "226cf067d4b8f6271fa7ef47dd4f21e3", "score": "0.52615875", "text": "function getInertElement() {\n if (inertElement)\n return inertElement;\n DOM = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__dom_dom_adapter__[\"a\" /* getDOM */])();\n // Prefer using <template> element if supported.\n var templateEl = DOM.createElement('template');\n if ('content' in templateEl)\n return templateEl;\n var doc = DOM.createHtmlDocument();\n inertElement = DOM.querySelector(doc, 'body');\n if (inertElement == null) {\n // usually there should be only one body element in the document, but IE doesn't have any, so we\n // need to create one.\n var html = DOM.createElement('html', doc);\n inertElement = DOM.createElement('body', doc);\n DOM.appendChild(html, inertElement);\n DOM.appendChild(doc, html);\n }\n return inertElement;\n}", "title": "" }, { "docid": "34130ddbc9f677717667509eb1ce4ab8", "score": "0.524126", "text": "function getHTML(url,onComplete,post)\r\n{\r\n if (url==null || onComplete==null) return;\r\n\tpost = typeof post !== 'undefined' ? post : \"\";\r\n \r\n var theRequest = createRequest();\r\n \r\n\tif (post==\"\")\r\n\t{\r\n \ttheRequest.open(\"GET\", url, true);\r\n\t}\r\n\telse\r\n\t{\r\n \ttheRequest.open(\"POST\", url, true);\r\n\t}\r\n theRequest.onreadystatechange = function()\r\n {\r\n if (theRequest.readyState == 4)\r\n {\r\n if (theRequest.status == 200)\r\n {\r\n onComplete(theRequest.responseText);\r\n }\r\n else \r\n {\r\n alert(\"AJAX Error \" + theRequest.status);\r\n }\r\n }\r\n };\r\n\tif (post==\"\")\r\n\t{\r\n\t theRequest.send(null);\r\n\t}\r\n\telse\r\n\t{\r\n\t\ttheRequest.setRequestHeader(\"Content-type\",\"application/x-www-form-urlencoded\");\r\n\t\ttheRequest.send(post);\r\n\t}\r\n}", "title": "" }, { "docid": "1b858b2f12e9a6c983c7e398e127dcb5", "score": "0.5238145", "text": "function cb(error, response, html) {\n if (error) {\n console.log(error)\n } else {\n // console.log(html);\n extractHtml(html);\n }\n}", "title": "" }, { "docid": "7d56e692ec1bbf2d96c2caff1c3c7e5e", "score": "0.5233315", "text": "function getHTML(pathname, request, response) {\n\tfs.readFile(\"./WebContent\" + pathname + \".html\", \"utf-8\", function(err,\n\t\t\tdata) {\n\t\tif (err)\n\t\t\tthrow err;\n\t\tresponse.writeHead(200, {\n\t\t\t\"Content-Type\" : \"text/html\"\n\t\t});\n\t\tresponse.write(data);\n\t\tresponse.end();\n\t});\n}", "title": "" }, { "docid": "d09da9ac8209db93c9197b6b36e28eb0", "score": "0.5231341", "text": "function get_response(){\n var response;\n\n // If there is a user selection get that selection, otherwise get whole page\n if (window.getSelection().toString())\n response = window.getSelection().toString();\n else\n response = document.body.innerText;\n\n return response\n}", "title": "" }, { "docid": "9cb3cadffff94f0677c31a0f6fb9095c", "score": "0.52248555", "text": "function getNodes(text){\n // return document.createRange().createContextualFragment(text);\n return new DOMParser().parseFromString(text, 'text/html').body.childNodes;\n}", "title": "" }, { "docid": "a97f753d30a8a57c2e16e354b69669fb", "score": "0.52184105", "text": "function findContent(el) {\n\t\tif (el && !el.hasClassName('riot-content')) {\n\t\t\tel = el.up('.riot-content');\n\t\t}\n\t\tif (el) {\n\t\t\treturn getContent(el);\n\t\t}\t\n\t}", "title": "" }, { "docid": "b2fb81b6215b8ff9823e19108c22badc", "score": "0.52178425", "text": "function appendToBody () {\n var body = document.getElementsByTag('body')[0]\n body.appendChild(this)\n}", "title": "" }, { "docid": "96260ce4c4931d2524db3cdf77bb9ab6", "score": "0.5205472", "text": "function getPage() {\n\txmlget = new XMLHttpRequest();\n\txmlget.open(\"GET\",\"pad.html\",false);\n\txmlget.send(null);\n\treturn xmlget.response;\n}", "title": "" }, { "docid": "38043947f57271c4c85aae7e55d4862b", "score": "0.520372", "text": "function currentHTMLContent() {\n let currentHTML = document.querySelector('#main');\n return currentHTML;\n}", "title": "" }, { "docid": "1aad62a9b77b774f90c785aeb3a39102", "score": "0.51911074", "text": "htmlToElement(html) {\n // TODO: check if browser supports templates\n var template = document.createElement('template');\n html = html.trim();\n template.innerHTML = html;\n return template.content.firstChild;\n }", "title": "" }, { "docid": "d7a635d79d99b5afb92bd3ba5ec7d8a3", "score": "0.51895934", "text": "getHTML5(TEI_url, callback, perElementFn){\n if (window.location.href.startsWith(this.base)) {\n this.base = TEI_url.replace(/\\/[^\\/]*$/, \"/\");\n }\n // Get TEI from TEI_url and create a promise\n let promise = new Promise( function (resolve, reject) {\n let client = new XMLHttpRequest();\n\n client.open('GET', TEI_url);\n client.send();\n\n client.onload = function () {\n if (this.status >= 200 && this.status < 300) {\n resolve(this.response);\n } else {\n reject(this.statusText);\n }\n };\n client.onerror = function () {\n reject(this.statusText);\n };\n })\n .catch( function(reason) {\n // TODO: better error handling?\n console.log(reason);\n });\n\n return promise.then((TEI) => {\n return this.makeHTML5(TEI, callback, perElementFn);\n });\n\n }", "title": "" }, { "docid": "6278f89aa3d5cb1a490d41992334024a", "score": "0.5177673", "text": "function getAllTodosByBody() {\n console.log(\"Getting all todos by contains.\");\n\n var HttpThingy = new HttpClient();\n HttpThingy.get(\"/api/todos?contains=\" + document.getElementById(\"body\").value, function(returned_json){\n document.getElementById('jsonDump').innerHTML = returned_json;\n });\n}", "title": "" } ]
13863adc15d4197d5ae4f9ddd3bda296
pink noise algorithm and helper functions adapted from
[ { "docid": "70baef17fb0a6c5586269975c481f9ba", "score": "0.6266077", "text": "function PinkNoiseFilterFactory(context, bufSize) {\n\t\tbufSize = bufSize || 8192;\n\t\tvar node = context.createScriptProcessor(bufSize, 2, 2);\n\n\t\tnode.onaudioprocess = function(e) {\n\t\t\tvar inBufferL = e.inputBuffer.getChannelData(0);\n\t\t\tvar inBufferR = e.inputBuffer.getChannelData(1);\n\t\t\tvar outBufferL = e.outputBuffer.getChannelData(0);\n\t\t\tvar outBufferR = e.outputBuffer.getChannelData(1);\n\t\t\tvar bL = [0, 0, 0, 0, 0, 0, 0], bR = [0, 0, 0, 0, 0, 0, 0], whiteL, whiteR, i;\n\n\t\t\tfor (i = 0; i < bufSize; i++) {\n\t\t\t\twhiteL = inBufferL[i];\n\t\t\t\twhiteR = inBufferR[i];\n\n\t\t\t\tbL[0] = 0.99886 * bL[0] + whiteL * 0.0555179;\n\t\t\t\tbL[1] = 0.99332 * bL[1] + whiteL * 0.0750759;\n\t\t\t\tbL[2] = 0.96900 * bL[2] + whiteL * 0.1538520;\n\t\t\t\tbL[3] = 0.86650 * bL[3] + whiteL * 0.3104856;\n\t\t\t\tbL[4] = 0.55000 * bL[4] + whiteL * 0.5329522;\n\t\t\t\tbL[5] = -0.7616 * bL[5] - whiteL * 0.0168980;\n\n\t\t\t\tbR[0] = 0.99886 * bR[0] + whiteR * 0.0555179;\n\t\t\t\tbR[1] = 0.99332 * bR[1] + whiteR * 0.0750759;\n\t\t\t\tbR[2] = 0.96900 * bR[2] + whiteR * 0.1538520;\n\t\t\t\tbR[3] = 0.86650 * bR[3] + whiteR * 0.3104856;\n\t\t\t\tbR[4] = 0.55000 * bR[4] + whiteR * 0.5329522;\n\t\t\t\tbR[5] = -0.7616 * bR[5] - whiteR * 0.0168980;\n\n\t\t\t\toutBufferL[i] = bL[0] + bL[1] + bL[2] + bL[3] + bL[4] + bL[5] + bL[6] + whiteL * 0.5362;\n\t\t\t\toutBufferR[i] = bR[0] + bR[1] + bR[2] + bR[3] + bR[4] + bR[5] + bR[6] + whiteR * 0.5362;\n\n\t\t\t\tbL[6] = whiteL * 0.115926;\n\t\t\t\tbR[6] = whiteR * 0.115926;\n\t\t\t}\n\n\t\t\tvar t = minMax([inBufferL, inBufferR]);\n\t\t\tvar coeff = 0.5 / Math.max(Math.abs(t.min), t.max);\n\n\t\t\toutBufferL = normalize(outBufferL, coeff);\n\t\t\toutBufferR = normalize(outBufferR, coeff);\n\t\t}\n\n\t\treturn node;\n\t}", "title": "" } ]
[ { "docid": "58f3a6b85575518254123534e955c1e1", "score": "0.70020527", "text": "function noise (p) {\n\tlet a = (vec3Floor(p));\n\tlet d = p.sub(a);//p - a;\n\td = d.multiply(d.multiply(new THREE.Vector3(3.0,3.0,3.0).sub(d.multiplyScalar(2.0))));\n\tlet b = new THREE.Vector4(a.x, a.x, a.y, a.y).add(new THREE.Vector4(0.0, 1.0, 0.0, 1.0));\n\tlet test1 = mod289(b);\n\tlet test2 = perm(b);\n\tlet k1 = perm(new THREE.Vector4(b.x, b.y, b.x, b.y));\n\t\n\tlet k2 = perm(new THREE.Vector4(k1.x, k1.y, k1.x, k1.y).add(new THREE.Vector4(b.z, b.z, b.w, b.w)));\n\t\n\tlet c = k2.add(new THREE.Vector4(a.z, a.z, a.z, a.z));\n\tlet k3 = perm(c);\n\tlet k4 = perm(c.add(new THREE.Vector4(1.0,1.0,1.0,1.0)));\n\n\tlet o1 = fractVec4(k3.multiplyScalar(1.0 / 41.0));\n\tlet o2 = fractVec4(k4.multiplyScalar(1.0 / 41.0));\n\n\tlet o3 = o2.multiplyScalar(d.z).add(o1.multiplyScalar((1.0 - d.z)));\n\tlet o4 = new THREE.Vector2(o3.y, o3.w).multiplyScalar(d.x).add(new THREE.Vector2(o3.x, o3.z).multiplyScalar((1.0 - d.x)));\n\t\n\treturn 255 * (o4.y * d.y + o4.x * (1.0 - d.y));\n\t\n}", "title": "" }, { "docid": "03c0c8c98b147c2818c8f8cf08e635de", "score": "0.68431664", "text": "generate_noise(){\n this.x = int(map(noise(this.xoff), 0, 1, 42, 558))\n this.y = int(map(noise(this.yoff), 0, 1, 42, 558))\n this.xoff += 0.005\n this.yoff += 0.005\n }", "title": "" }, { "docid": "5a1212724f0dc1dade23a27f00a44c19", "score": "0.68141764", "text": "function Noise(seed) {\n\t function Grad(x, y, z) {\n\t this.x = x; this.y = y; this.z = z;\n\t }\n\t\n\t Grad.prototype.dot2 = function(x, y) {\n\t return this.x*x + this.y*y;\n\t };\n\t\n\t Grad.prototype.dot3 = function(x, y, z) {\n\t return this.x*x + this.y*y + this.z*z;\n\t };\n\t\n\t this.grad3 = [new Grad(1,1,0),new Grad(-1,1,0),new Grad(1,-1,0),new Grad(-1,-1,0),\n\t new Grad(1,0,1),new Grad(-1,0,1),new Grad(1,0,-1),new Grad(-1,0,-1),\n\t new Grad(0,1,1),new Grad(0,-1,1),new Grad(0,1,-1),new Grad(0,-1,-1)];\n\t\n\t this.p = [151,160,137,91,90,15,\n\t 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,\n\t 190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,\n\t 88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166,\n\t 77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,\n\t 102,143,54, 65,25,63,161, 1,216,80,73,209,76,132,187,208, 89,18,169,200,196,\n\t 135,130,116,188,159,86,164,100,109,198,173,186, 3,64,52,217,226,250,124,123,\n\t 5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,\n\t 223,183,170,213,119,248,152, 2,44,154,163, 70,221,153,101,155,167, 43,172,9,\n\t 129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228,\n\t 251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107,\n\t 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254,\n\t 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];\n\t // To remove the need for index wrapping, double the permutation table length\n\t this.perm = new Array(512);\n\t this.gradP = new Array(512);\n\t\n\t this.seed(seed || 0);\n\t }", "title": "" }, { "docid": "cf13bb40abfffa52752977f4cdc97560", "score": "0.6588631", "text": "function noise_gen1(pos) {\n return (Math.sin(pos + 12.9898) * 43758.5453) % 1;\n}", "title": "" }, { "docid": "2bc0086aa2effcffdcae04fa6d78c3ec", "score": "0.64556676", "text": "function generateNoise(width, height){\r\n var noise = new Array(width*height);\r\n\r\n for (i = 0; i < width; i++){\r\n for (j = 0; j < height; j++){\r\n noise[j * width + i] = (randomNumber(0, 1269.5));\r\n }\r\n }\r\n\r\n return noise;\r\n }", "title": "" }, { "docid": "e755e1a5fa0a86ffe102b201540dd25d", "score": "0.6379687", "text": "function generateNoise(width, height){\n var noise = new Array(width*height);\n\n for (i = 0; i < width; i++){\n for (j = 0; j < height; j++){\n noise[j * width + i] = (randomNumber(0, 1269.5));\n }\n }\n\n return noise;\n }", "title": "" }, { "docid": "dbc27ff5a0c5e3599febd33666e0eec0", "score": "0.6294603", "text": "function draw() {\n \n if(mouseY<(width/4)*2){\n noStroke()\n fill(0,0,0)}\n \n \n else if(mouseY<(width/4)*3){\n noStroke()\n fill(255,255,255)}\n \n else{\n var r=random(0,255)\n var g=random(0,255)\n var b=random(0,255)\n \n noStroke()\n fill(r,g,b)}\n \n \n \n\n \n rect(0,0,600,600);\n noStroke();\n \n /* background(0,0,0);\n stroke(0);*/\n for (var x=0; x < width; x=x+5) {\n \n var noiseVal = noise((mouseX+x)/**noiseScale*/, mouseY/**noiseScale*/);\n //strokeWeight(1)\n //stroke(noiseVal*255);\n strokeWeight(8)\n stroke(255,255,255)\n line(x, mouseY*noiseVal/*noiseVal*800*/, x, windowHeight+100);}\n \n \n \n}", "title": "" }, { "docid": "a5cae87bbcf6523777a49715c1b11c8e", "score": "0.6262544", "text": "function lilNoise() {\n return (Math.random() - 0.5) * canvas.width * 0.05;\n}", "title": "" }, { "docid": "004a245f73d87901c60c2f02d34e2d51", "score": "0.6193492", "text": "function Noise(x, y, z) {\n var ix0, iy0, ix1, iy1, iz0, iz1;\n var fx0, fy0, fz0, fx1, fy1, fz1;\n var s, t, r;\n var nxy0, nxy1, nx0, nx1, n0, n1;\n\n ix0 = Math.floor( x ); // Integer part of x\n iy0 = Math.floor( y ); // Integer part of y\n iz0 = Math.floor( z ); // Integer part of z\n fx0 = x - ix0; // Fractional part of x\n fy0 = y - iy0; // Fractional part of y\n fz0 = z - iz0; // Fractional part of z\n fx1 = fx0 - 1.0;\n fy1 = fy0 - 1.0;\n fz1 = fz0 - 1.0;\n ix1 = ( ix0 + 1 ) & 0xff; // Wrap to 0..255\n iy1 = ( iy0 + 1 ) & 0xff;\n iz1 = ( iz0 + 1 ) & 0xff;\n ix0 = ix0 & 0xff;\n iy0 = iy0 & 0xff;\n iz0 = iz0 & 0xff;\n \n // Horner's method with a 5th degree polynomial\n r = ( fz0 * fz0 * fz0 * ( fz0 * ( fz0 * 6 - 15 ) + 10 ) );\n t = ( fy0 * fy0 * fy0 * ( fy0 * ( fy0 * 6 - 15 ) + 10 ) );\n s = ( fx0 * fx0 * fx0 * ( fx0 * ( fx0 * 6 - 15 ) + 10 ) );\n\n nxy0 = Gradient(perm[ix0 + perm[iy0 + perm[iz0]]], fx0, fy0, fz0);\n nxy1 = Gradient(perm[ix0 + perm[iy0 + perm[iz1]]], fx0, fy0, fz1);\n nx0 = nxy0 + r * (nxy1 - nxy0);\n\n nxy0 = Gradient(perm[ix0 + perm[iy1 + perm[iz0]]], fx0, fy1, fz0);\n nxy1 = Gradient(perm[ix0 + perm[iy1 + perm[iz1]]], fx0, fy1, fz1);\n nx1 = nxy0 + r * (nxy1 - nxy0);\n\n n0 = nx0 + t * (nx1 - nx0); \n\n nxy0 = Gradient(perm[ix1 + perm[iy0 + perm[iz0]]], fx1, fy0, fz0);\n nxy1 = Gradient(perm[ix1 + perm[iy0 + perm[iz1]]], fx1, fy0, fz1);\n nx0 = nxy0 + r * (nxy1 - nxy0);\n\n nxy0 = Gradient(perm[ix1 + perm[iy1 + perm[iz0]]], fx1, fy1, fz0);\n nxy1 = Gradient(perm[ix1 + perm[iy1 + perm[iz1]]], fx1, fy1, fz1);\n nx1 = nxy0 + r * (nxy1 - nxy0);\n\n n1 = nx0 + t * (nx1 - nx0);\n \n return 0.936 * (n0 + s * (n1 - n0));\n }", "title": "" }, { "docid": "46f1e4a0725eb7fa88162e3630563d7c", "score": "0.613001", "text": "function createNoise() {\n var canvas = document.getElementById(\"noise-canvas\");\n\n var w = (canvas.width = 64);\n var h = (canvas.height = 64);\n\n var context = canvas.getContext(\"2d\");\n\n let i;\n for (i = 0; i < w; i++) {\n let j;\n for (j = 0; j < h; j++) {\n var num = Math.floor(Math.random() * 255);\n context.fillStyle = \"rgb(\" + num + \",\" + num + \",\" + num + \")\";\n context.fillRect(i, j, 1, 1);\n }\n }\n\n $(\"#noise-bg\").css({\n \"background-image\": \"url(\" + canvas.toDataURL() + \")\"\n });\n}", "title": "" }, { "docid": "f1f0dd0ec1d3111abdb59fa736ced898", "score": "0.6080137", "text": "function penalties(noise) {\n\t return Util.FAST_LOG10((0.368 + 0.632 * noise * noise * noise));\n\t }", "title": "" }, { "docid": "b7881c3c5ab328acdacb3a0766fd34d4", "score": "0.60404587", "text": "function learn() {\n var i;\n\n var lengthcount = pixels.length;\n var alphadec = 30 + ((samplefac - 1) / 3);\n var samplepixels = lengthcount / (3 * samplefac);\n var delta = ~~(samplepixels / ncycles);\n var alpha = initalpha;\n var radius = initradius;\n\n var rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (i = 0; i < rad; i++)\n radpower[i] = alpha * (((rad * rad - i * i) * radbias) / (rad * rad));\n\n var step;\n if (lengthcount < minpicturebytes) {\n samplefac = 1;\n step = 3;\n } else if ((lengthcount % prime1) !== 0) {\n step = 3 * prime1;\n } else if ((lengthcount % prime2) !== 0) {\n step = 3 * prime2;\n } else if ((lengthcount % prime3) !== 0) {\n step = 3 * prime3;\n } else {\n step = 3 * prime4;\n }\n\n var b, g, r, j;\n var pix = 0; // current pixel\n\n i = 0;\n while (i < samplepixels) {\n b = (pixels[pix] & 0xff) << netbiasshift;\n g = (pixels[pix + 1] & 0xff) << netbiasshift;\n r = (pixels[pix + 2] & 0xff) << netbiasshift;\n\n j = contest(b, g, r);\n\n altersingle(alpha, j, b, g, r);\n if (rad !== 0) alterneigh(rad, j, b, g, r); // alter neighbours\n\n pix += step;\n if (pix >= lengthcount) pix -= lengthcount;\n\n i++;\n\n if (delta === 0) delta = 1;\n if (i % delta === 0) {\n alpha -= alpha / alphadec;\n radius -= radius / radiusdec;\n rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (j = 0; j < rad; j++)\n radpower[j] = alpha * (((rad * rad - j * j) * radbias) / (rad * rad));\n }\n }\n }", "title": "" }, { "docid": "b7881c3c5ab328acdacb3a0766fd34d4", "score": "0.60404587", "text": "function learn() {\n var i;\n\n var lengthcount = pixels.length;\n var alphadec = 30 + ((samplefac - 1) / 3);\n var samplepixels = lengthcount / (3 * samplefac);\n var delta = ~~(samplepixels / ncycles);\n var alpha = initalpha;\n var radius = initradius;\n\n var rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (i = 0; i < rad; i++)\n radpower[i] = alpha * (((rad * rad - i * i) * radbias) / (rad * rad));\n\n var step;\n if (lengthcount < minpicturebytes) {\n samplefac = 1;\n step = 3;\n } else if ((lengthcount % prime1) !== 0) {\n step = 3 * prime1;\n } else if ((lengthcount % prime2) !== 0) {\n step = 3 * prime2;\n } else if ((lengthcount % prime3) !== 0) {\n step = 3 * prime3;\n } else {\n step = 3 * prime4;\n }\n\n var b, g, r, j;\n var pix = 0; // current pixel\n\n i = 0;\n while (i < samplepixels) {\n b = (pixels[pix] & 0xff) << netbiasshift;\n g = (pixels[pix + 1] & 0xff) << netbiasshift;\n r = (pixels[pix + 2] & 0xff) << netbiasshift;\n\n j = contest(b, g, r);\n\n altersingle(alpha, j, b, g, r);\n if (rad !== 0) alterneigh(rad, j, b, g, r); // alter neighbours\n\n pix += step;\n if (pix >= lengthcount) pix -= lengthcount;\n\n i++;\n\n if (delta === 0) delta = 1;\n if (i % delta === 0) {\n alpha -= alpha / alphadec;\n radius -= radius / radiusdec;\n rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (j = 0; j < rad; j++)\n radpower[j] = alpha * (((rad * rad - j * j) * radbias) / (rad * rad));\n }\n }\n }", "title": "" }, { "docid": "812f5c8df8eac1eca7c4972d70589f73", "score": "0.5991656", "text": "function getLoopingNoise({\n\tp,\n\tloopPct,\n\tradius,\n\toffset = 0\n}) {\n \n // This number should go from 0 to 1 every loopLength seconds\n // And PI*2 radians every loopLength seconds\n \n let theta = 2 * Math.PI * loopPct\n\n // Place to sample the noise from\n let x = radius * Math.cos(theta)\n let y = radius * Math.sin(theta)\n\n let noiseVal = p.noise(x + 100, y + 30, offset)\n\n return noiseVal\n}", "title": "" }, { "docid": "78dee47d7edc14e40407135572226bdf", "score": "0.5946846", "text": "function rainbowFilter(){\n // new instance of the img \n\tvar rainbowImg = new SimpleImage(img);\n // canvas \n\tvar rainbowFilterCanvas = document.getElementById('rainbowFilterCanvas');\n // logic:\n for(var px of rainbowImg.values()){\n var avg = px.getRed() + px.getGreen() + px.getBlue() /3;\n var height = rainbowImg.getHeight();\n var y = px.getY();\n\n // make 7 srtipes\n var stripe1 = height / 7;\n var stripe2 = 2 * stripe1;\n var stripe3 = 3 * stripe1;\n var stripe4 = 4 * stripe1;\n var stripe5 = 5 * stripe1;\n var stripe6 = 6 * stripe1;\n var stripe7 = 7 * stripe1;\n // stripe no 1\n if (y < stripe1){ \n // make red\n if (avg <= 128){\n px.setRed(2 * avg);\n px.setGreen(0);\n px.setBlue(0);\n } else {\n px.setRed(255);\n px.setGreen(2 * avg - 255);\n px.setBlue(2 * avg - 255);\n }\n }\n\n // stripe no 2\n if (y > stripe1 && y < stripe2){ \n // make orange\n if (avg <= 128){\n px.setRed(2 * avg);\n px.setGreen(0.8 * avg);\n px.setBlue(0);\n } else {\n px.setRed(255);\n px.setGreen(1.2* avg - 51);\n px.setBlue(2 * avg - 255);\n }\n }\n\n // stripe no 3\n if (y > stripe2 && y < stripe3){ \n // make yellow\n if (avg <= 128){\n px.setRed(2 * avg);\n px.setGreen(2 * avg);\n px.setBlue(0);\n } else {\n px.setRed(255);\n px.setGreen(255);\n px.setBlue(2 * avg - 255);\n }\n }\n\n // stripe no 4\n if (y > stripe3 && y < stripe4){ \n // make green\n if (avg <= 128){\n px.setRed(0);\n px.setGreen(2 * avg);\n px.setBlue(0);\n } else {\n px.setRed(2 * avg - 255);\n px.setGreen(255);\n px.setBlue(2 * avg - 255);\n }\n }\n\n // stripe no 5\n if (y > stripe4 && y < stripe5){ \n // make blue\n if (avg <= 128){\n px.setRed(0);\n px.setGreen(0);\n px.setBlue(2 * avg);\n } else {\n px.setRed(2 * avg - 255);\n px.setGreen(2 * avg - 255);\n px.setBlue(255);\n }\n }\n\n // stripe no 6\n if (y > stripe5 && y < stripe6){ \n // make indigo\n if (avg <= 128){\n px.setRed(0.8 * avg);\n px.setGreen(0);\n px.setBlue(2 * avg);\n } else {\n px.setRed(1.2 * avg - 51);\n px.setGreen(2 * avg - 255);\n px.setBlue(255);\n }\n }\n\n // stripe no 7\n if (y > stripe6 && y < stripe7){ \n // make violet\n if (avg <= 128){\n px.setRed(1.6 * avg);\n px.setGreen(0);\n px.setBlue(1.6 * avg);\n } else {\n px.setRed(0.4 * avg + 153);\n px.setGreen(2 * avg - 255);\n px.setBlue(0.4 * avg + 153);\n }\n }\n \n } // end for loop\n rainbowImg.drawTo(rainbowFilterCanvas);\n}", "title": "" }, { "docid": "a6f3ac7a08fa500bd5c8f3f8d4e727b2", "score": "0.58778864", "text": "function seedPerlin() {\n const p = [];\n for (let i = 0 ; i < 256 ; i++) {\n p.push(~~(random() * 256));\n }\n\n p.forEach((v, i) => {\n perm[i] = perm[i + 256] = v;\n gradP[i] = gradP[i + 256] = grad3[v % 12];\n });\n}", "title": "" }, { "docid": "118d9d85ae60550e369dacb1398b4fb7", "score": "0.5847873", "text": "static playNoise(length){\n if (Game.audio == null) return;\n Game.noiseGain.gain.cancelScheduledValues(Game.audio.currentTime);\n Game.noiseGain.gain.linearRampToValueAtTime(1, Game.audio.currentTime);\n Game.noiseGain.gain.exponentialRampToValueAtTime(0.00001, Game.audio.currentTime + length+0.1);\n }", "title": "" }, { "docid": "18987e189a2e3eac88ae19de5823a804", "score": "0.58402216", "text": "function addNoise(value) { //using addNoise function to add a noise to the end of noises\n noises.push(value);\n}", "title": "" }, { "docid": "66563125536af442eb022843b5023d1b", "score": "0.5822291", "text": "function addNoise(canvas) {\n canvas.ctx.globalCompositeOperation = 'source-atop';\n for (let y = 0; y < 36; y++) {\n for (let x = 0; x < 36; x++) {\n canvas.ctx.fillStyle = rgba(0, 0, 0, Math.random() * 0.6);\n canvas.ctx.fillRect(x, y, 1, 1);\n }\n }\n}", "title": "" }, { "docid": "fa702c0043fc08b4658f373af1315a15", "score": "0.58141106", "text": "obfuscate() {\n var gridScale = 0.1;\n var noiseScale = 15;\n var distance = p.dist(p.mouseX, p.mouseY, this.x, this.y);\n\n if (distance < 30) {\n //messing around with randomness will produce different results.\n let xoff = p.map(p.noise(this.x * gridScale, this.y * gridScale), 0, 1, -noiseScale, noiseScale);\n let yoff = p.map(p.noise(this.x + 500 * gridScale, this.y * gridScale), 0, 1, -noiseScale, noiseScale);\n\n this.x += xoff;\n this.y += yoff;\n // this.x+=random(-noiseScale,noiseScale);\n //this.y+=random(-noiseScale,noiseScale);\n }\n }", "title": "" }, { "docid": "aad45305082f7c38e145b4fe5e5c04b0", "score": "0.57623625", "text": "function dither(stops){\n var colorCache = {}\n\n var quant = d3.scaleQuantize()\n .domain([0, 255])\n .range(d3.range(0,255,255/(stops||2)))\n\n window.q = quant\n\n\n var image = ctx.getImageData(0,0,w,h)\n\n var oldpixel, newpixel, i, quant_error\n\n for (var y = 0; y < h; y++) {\n for (var x = 0; x < w; x++) {\n i = index(x, y)\n\n oldpixel = image.data[i]\n\n // newpixel := find_closest_palette_color(oldpixel)\n newpixel = closest(oldpixel)\n\n // pixel[x][y] := newpixel\n var components = color(newpixel)\n image.data[i] = components.r\n image.data[i+1] = components.g\n image.data[i+2] = components.b\n\n\n // quant_error := oldpixel - newpixel\n quant_error = oldpixel - newpixel\n\n // may introduce clamping\n\n // pixel[x + 1][y ] := pixel[x + 1][y ] + quant_error * 7 / 16\n image.data[index(x+1, y)] += quant_error * 7 / 16\n\n // pixel[x - 1][y + 1] := pixel[x - 1][y + 1] + quant_error * 3 / 16\n image.data[index(x-1, y+1)] += quant_error * 3 / 16\n\n // pixel[x ][y + 1] := pixel[x ][y + 1] + quant_error * 5 / 16\n image.data[index(x, y+1)] += quant_error * 5 / 16\n\n // pixel[x + 1][y + 1] := pixel[x + 1][y + 1] + quant_error * 1 / 16\n image.data[index(x+1, y+1)] += quant_error * 1 / 16\n\n }\n }\n\n ctx.putImageData(image,0,0)\n\n function closest(p) {\n return quant(p)\n }\n function index(x,y) {\n return (x + (y * w)) * 4\n }\n\n function color(i) {\n\n if(colorCache[i]) return colorCache[i]\n\n var c = d3.interpolateViridis(i/255)\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(c)\n\n return colorCache[i] = {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16)\n }\n\n\n // var c = d3.interpolateCool(i/255)\n // var result = /^rgb\\((\\d+), (\\d+), (\\d+)\\)$/i.exec(c)\n //\n // return colorCache[i] = {\n // r: parseInt(result[1], 16),\n // g: parseInt(result[2], 16),\n // b: parseInt(result[3], 16)\n // }\n\n }\n}", "title": "" }, { "docid": "eb5079b507d793416b5ad457764b7c58", "score": "0.5751421", "text": "function noise (buffer, target, start, end) {\n return fill(buffer, target, function (sample) { return Math.random() * 2 - 1; }, start, end);\n}", "title": "" }, { "docid": "9eef3201bb3b176f562bef94c82241b2", "score": "0.5717499", "text": "perlinNoise(step) {\n var yoff = 0;\n for (let i = 0; i < this.length; i++) {\n var xoff = 0;\n for (let j = 0; j < this.width; j++) {\n this.terrain[i][j] = (1 + noise.simplex2(yoff, xoff)) * this.height;\n xoff += step;\n }\n yoff += step;\n }\n }", "title": "" }, { "docid": "f0e544165323e3d761bb27eafbb910ec", "score": "0.5717104", "text": "function printFrame() {\n for (let y = 0; y < NOISE_CAN_H; y += CFG.ppd) {\n for (let x = 0; x < NOISE_CAN_W; x += CFG.ppd) {\n // Make it integer and clamp between 0 and 255\n let value = TRUNC(noiseData[INDEX(x, y)]);\n if (value > COLOR_RANGE) value = COLOR_RANGE;\n if (value < 0) value = 0;\n // Invert value.\n if (CFG.invert) value = COLOR_RANGE - value;\n if (CFG.isDefaultSkin) {\n PIXEL[0] = value;\n PIXEL[1] = value;\n PIXEL[2] = value;\n PIXEL[3] = value;\n } else {\n // Values = [0-255], skin image is 256 pixels wide.\n PIXEL[0] = skinData[value * 4 + 0];\n PIXEL[1] = skinData[value * 4 + 1];\n PIXEL[2] = skinData[value * 4 + 2];\n PIXEL[3] = skinData[value * 4 + 3];\n }\n // Loop through sub square (all the same color).\n for (let subY = 0; subY < CFG.ppd; subY++) {\n // Boudary control Y.\n if (y + subY >= NOISE_CAN_H) break;\n for (let subX = 0; subX < CFG.ppd; subX++) {\n // Boudary control X.\n if (x + subX >= NOISE_CAN_W) break;\n const PIXEL_INDEX = (y + subY) * (NOISE_CAN_W) + (x + subX);\n NOISE_IMG.data[PIXEL_INDEX * 4 + 0] = PIXEL[0];\n NOISE_IMG.data[PIXEL_INDEX * 4 + 1] = PIXEL[1];\n NOISE_IMG.data[PIXEL_INDEX * 4 + 2] = PIXEL[2];\n NOISE_IMG.data[PIXEL_INDEX * 4 + 3] = PIXEL[3];\n }\n }\n }\n }\n noiseCtx.clearRect(0, 0, NOISE_CAN_W, NOISE_CAN_H);\n noiseCtx.putImageData(NOISE_IMG, 0, 0);\n}", "title": "" }, { "docid": "0a18e3d14ce3fa1805b9c0b27050a9c0", "score": "0.5680594", "text": "function rainbow_cycle2() {\n var i;\n var color;\n var r, g, b;\n\n for (i = 0; i < strip.get_num_pixels(); i++) {\n strip.set_pixel_color(i, wheel(wheel_color));\n wheel_color += Math.floor((Math.random() * 255) + 1);\n wheel_color &= 0xFF;\n } \n strip.show(); // write all the pixels out \n}", "title": "" }, { "docid": "0c49b4fc659bbc6d8a047e41bce4fcaa", "score": "0.56729734", "text": "function atkinsonDither(imageData, palette, ratioDenom) {\n var d = new Uint8ClampedArray(imageData.data);\n var out = new Uint8ClampedArray(imageData.data);\n var w = imageData.width; var h = imageData.height;\n let step = 1;\n let ratioDenomScaled = 1.5 + (ratioDenom / 5 * (9-1.5))\n var ratio = 1/(ratioDenomScaled*8/3); // default is 1/8\n\n var $i = function(x,y) {\n return (4*x) + (4*y*w);\n };\n\n var r, g, b, a, q, i, color, approx, tr, tg, tb, dx, dy, di;\n\n for (var y=0;y<h;y += step) {\n for (var x=0;x<w;x += step) {\n i = (4*x) + (4*y*w);\n\n // Define bytes\n r = i;\n g = i+1;\n b = i+2;\n a = i+3;\n\n color = new Array(d[r],d[g],d[b]);\n approx = this.approximateColor(color, palette);\n\n q = [];\n q[r] = d[r] - approx[0];\n q[g] = d[g] - approx[1];\n q[b] = d[b] - approx[2];\n\n // Diffuse the error for three colors\n d[$i(x+step,y) + 0] += ratio * q[r];\n d[$i(x-step,y+step) + 0] += ratio * q[r];\n d[$i(x,y+step) + 0] += ratio * q[r];\n d[$i(x+step,y+step) + 0] += ratio * q[r];\n d[$i(x+(2*step),y) + 0] += ratio * q[r];\n d[$i(x,y+(2*step)) + 0] += ratio * q[r];\n\n d[$i(x+step,y) + 1] += ratio * q[g];\n d[$i(x-step,y+step) + 1] += ratio * q[g];\n d[$i(x,y+step) + 1] += ratio * q[g];\n d[$i(x+step,y+step) + 1] += ratio * q[g];\n d[$i(x+(2*step),y) + 1] += ratio * q[g];\n d[$i(x,y+(2*step)) + 1] += ratio * q[g];\n\n d[$i(x+step,y) + 2] += ratio * q[b];\n d[$i(x-step,y+step) + 2] += ratio * q[b];\n d[$i(x,y+step) + 2] += ratio * q[b];\n d[$i(x+step,y+step) + 2] += ratio * q[b];\n d[$i(x+(2*step),y) + 2] += ratio * q[b];\n d[$i(x,y+(2*step)) + 2] += ratio * q[b];\n\n tr = approx[0];\n tg = approx[1];\n tb = approx[2];\n\n // Draw a block\n for (dx=0;dx<step;dx++){\n for (dy=0;dy<step;dy++){\n di = i + (4 * dx) + (4 * w * dy);\n\n // Draw pixel\n out[di] = tr;\n out[di+1] = tg;\n out[di+2] = tb;\n\n }\n }\n }\n }\n return new ImageData(out, w);\n // return out;\n}", "title": "" }, { "docid": "73245c2cb7258261acec09dc2c966095", "score": "0.56639814", "text": "function rollingNoise(v,rpm){\n\tif (v<=100){\n\t\tif (rpm<=800) {\n\t\t\treturn dB_v_i1(v);\n\t\t} else if ((rpm>800) && (rpm<=1500)){\n\t\t\treturn dB_v_i2(v,rpm);\n\t\t} else if ((rpm>1500) && (rpm<=2000)){\n\t\t\treturn dB_v_i3(v,rpm);\n\t\t} else if ((rpm>2000) && (rpm<=3000)){\n\t\t\treturn dB_v_i4(v,rpm);\n\t\t} else if ((rpm>3000) && (rpm<=3500)){\n\t\t\treturn dB_v_i5(v,rpm);\n\t\t} else if (rpm>3500){\n\t\t\treturn dB_v_i6(v);\n\t\t}\n\t}\n\telse {\n\t\treturn dB_v_i2(v,rpm);\n\t}\n}", "title": "" }, { "docid": "b37f4664762233a7a9d3c89f7bcf43cc", "score": "0.5663555", "text": "function draw (){\n //fill(000);\n //rect(0,0,width,height);\n time = time + speed;\n \n let x = time%width;\n let y = time%height;\n \n x = random(0, width);\n y = random(0, height);\n \n // x = mouse.x;\n \n stroke(1, noise(time),1);\n fill(255);\n circle(noise(time) * width,noise(time/2)*height,noise(time) * 300);\n /*\n for(let i = 0; i <= height; i++){\n line(noise(time)*width,i,noise(i)*width,noise(time)*height);\n }*/\n}", "title": "" }, { "docid": "c9302242efa7df4ea728178720408f02", "score": "0.5652124", "text": "function jitter() {\n redX = redX + random(-1,1);\n greenX = greenX + random(-10,10);\n yellowX = yellowX + random(-4,4);\n stopY = stopY + random(-10,10);\n}", "title": "" }, { "docid": "9b16df6131442538e8cc42a1b00d3c1c", "score": "0.56497645", "text": "function generatePsycho() {\n\t\t\n\t\tfunction c() {\n\t\t\treturn Math.floor(150+Math.random()*106).toString(16)\n\t\t}\n\t\t\n\t\tfor (var i = 0; i < psycho_colors.length; i++) {\n\t\t\tpsycho_colors[i] = \"#\"+c()+c()+c();\n\t\t}\n\t}", "title": "" }, { "docid": "22022cfd7a3b2e01eba5acce2827e396", "score": "0.56431097", "text": "function sharpen(ctx, w, h, mix) {\n\n var weights = [0, -1, 0, -1, 5, -1, 0, -1, 0],\n katet = Math.round(Math.sqrt(weights.length)),\n half = (katet * 0.5) | 0,\n dstData = ctx.createImageData(w, h),\n dstBuff = dstData.data,\n srcBuff = ctx.getImageData(0, 0, w, h).data,\n y = h;\n\n while (y--) {\n\n x = w;\n\n while (x--) {\n\n var sy = y,\n sx = x,\n dstOff = (y * w + x) * 4,\n r = 0,\n g = 0,\n b = 0,\n a = 0;\n\n for (var cy = 0; cy < katet; cy++) {\n for (var cx = 0; cx < katet; cx++) {\n\n var scy = sy + cy - half;\n var scx = sx + cx - half;\n\n if (scy >= 0 && scy < h && scx >= 0 && scx < w) {\n\n var srcOff = (scy * w + scx) * 4;\n var wt = weights[cy * katet + cx];\n\n r += srcBuff[srcOff] * wt;\n g += srcBuff[srcOff + 1] * wt;\n b += srcBuff[srcOff + 2] * wt;\n a += srcBuff[srcOff + 3] * wt;\n }\n }\n }\n\n dstBuff[dstOff] = r * mix + srcBuff[dstOff] * (1 - mix);\n dstBuff[dstOff + 1] = g * mix + srcBuff[dstOff + 1] * (1 - mix);\n dstBuff[dstOff + 2] = b * mix + srcBuff[dstOff + 2] * (1 - mix)\n dstBuff[dstOff + 3] = srcBuff[dstOff + 3];\n }\n }\n\n ctx.putImageData(dstData, 0, 0);\n}", "title": "" }, { "docid": "31bc2ba0077bbdfc6c45a1bb70b09a0e", "score": "0.56347984", "text": "function rainbow(){\r\ntry{\r\n for (var pixel of image.values()){\r\n var y = pixel.getY();\r\n var h = image.getHeight();\r\n var avg = (pixel.getRed()+pixel.getGreen()+pixel.getBlue())/3;\r\n if (y < h/7){\r\n if (avg < 128) {\r\n pixel.setRed(2*avg);\r\n pixel.setGreen(0);\r\n pixel.setBlue(0);\r\n } else {\r\n pixel.setRed(255);\r\n pixel.setGreen(2*avg-255);\r\n pixel.setBlue(2*avg-255);\r\n }\r\n }else if (y < 2*h/7){\r\n if (avg < 128) {\r\n pixel.setRed(2*avg);\r\n pixel.setGreen(0.8*avg);\r\n pixel.setBlue(0);\r\n } else {\r\n pixel.setRed(255);\r\n pixel.setGreen(1.2*avg-51);\r\n pixel.setBlue(2*avg-255);\r\n }\r\n }else if (y < 3*h/7){\r\n if (avg < 128) {\r\n pixel.setRed(2*avg);\r\n pixel.setGreen(2*avg);\r\n pixel.setBlue(0);\r\n } else {\r\n pixel.setRed(255);\r\n pixel.setGreen(255);\r\n pixel.setBlue(2*avg-255);\r\n }\r\n }else if (y < 4*h/7){\r\n if (avg < 128) {\r\n pixel.setRed(0);\r\n pixel.setGreen(2*avg);\r\n pixel.setBlue(0);\r\n } else {\r\n pixel.setRed(2*avg-255);\r\n pixel.setGreen(255);\r\n pixel.setBlue(2*avg-255);\r\n }\r\n }else if (y < 5*h/7){\r\n if (avg < 128) {\r\n pixel.setRed(0);\r\n pixel.setGreen(0);\r\n pixel.setBlue(2*avg);\r\n } else {\r\n pixel.setRed(2*avg-255);\r\n pixel.setGreen(2*avg-255);\r\n pixel.setBlue(255);\r\n }\r\n }else if (y < 6*h/7){\r\n if (avg < 128) {\r\n pixel.setRed(0.8*avg);\r\n pixel.setGreen(0);\r\n pixel.setBlue(2*avg);\r\n } else {\r\n pixel.setRed(1.2*avg-51);\r\n pixel.setGreen(2*avg-255);\r\n pixel.setBlue(255);\r\n }\r\n } else {\r\n if (avg < 128) {\r\n pixel.setRed(1.6*avg);\r\n pixel.setGreen(0);\r\n pixel.setBlue(1.6*avg);\r\n } else {\r\n pixel.setRed(0.4*avg+153);\r\n pixel.setGreen(2*avg-255);\r\n pixel.setBlue(0.4*avg+153);\r\n }\r\n } \r\n}\r\n var imgcanvas=document.getElementById(\"can2\");\r\n image.drawTo(imgcanvas);\r\n }\r\n \r\ncatch(err){\r\n alert(\"Image is not loaded!!\");\r\n }\r\n}", "title": "" }, { "docid": "0a025eaaa75285eb4dab08631cdc9be0", "score": "0.5598419", "text": "function prng ( n ) {\n n = n || 1;\n\n var i, x, y;\n\n while ( n-- ) {\n cnt = (cnt + 1)|0;\n brs = (brs + cnt)|0;\n\n for ( i = 0; i < 256; i += 4 ) {\n acc ^= acc << 13;\n acc = m[(i + 128) & 0xff] + acc | 0; x = m[i|0];\n m[i|0] = y = m[(x>>>2) & 0xff] + ( acc + brs | 0 ) | 0;\n r[i|0] = brs = m[(y>>>10) & 0xff] + x | 0;\n\n acc ^= acc >>> 6;\n acc = m[(i + 129) & 0xff] + acc | 0; x = m[i|1];\n m[i|1] = y = m[(x >>> 2) & 0xff] + ( acc + brs | 0 ) | 0;\n r[i|1] = brs = m[(y >>> 10) & 0xff] + x | 0;\n\n acc ^= acc << 2;\n acc = m[(i + 130) & 0xff] + acc | 0; x = m[i|2];\n m[i|2] = y = m[(x >>> 2) & 0xff] + ( acc + brs | 0 ) | 0;\n r[i|2] = brs = m[(y >>> 10) & 0xff] + x | 0;\n\n acc ^= acc >>> 16;\n acc = m[(i + 131) & 0xff] + acc | 0; x = m[i|3];\n m[i|3] = y = m[(x >>> 2) & 0xff] + (acc + brs | 0 ) | 0;\n r[i|3] = brs = m[(y >>> 10) & 0xff] + x | 0;\n }\n }\n }", "title": "" }, { "docid": "2ef43c215228d32c3add9c04b71555b2", "score": "0.5596546", "text": "function computeVerticesOfStar() {\n var i, j = 0,\n k;\n for (i = -0.99; i < 120; i += 0.015) {\n k = Math.random(0, 1);\n verticesOfStar.push(i);\n verticesOfStar.push(k);\n verticesOfStar.push(1);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n\n }\n\n}", "title": "" }, { "docid": "23be7ca490f5820862a58759ee9a1f11", "score": "0.5583484", "text": "hitNoiseOsc() {\n var xpos = map(this.position.x, 0, width, -1, 1);\n var ypos = map(this.position.y, 0, height, -1, 1);\n var panner = new Tone.Panner3D(xpos, ypos, 0).toDestination();\n this.noiseOsc.volume.value = -30;\n this.noiseOsc.connect(panner).start(\"+0.4\");\n }", "title": "" }, { "docid": "4f65e30ae0fb928a1c74412fa1525b0f", "score": "0.5582045", "text": "function wonky() {\n var wonkFactor = 0.04;\n for(i =0 ; i < 20; i++ ) {\n var x = width * (0.5 + random(-wonkFactor,wonkFactor));\n var y = height * (0.5 + random(-wonkFactor,wonkFactor));\n strokeWeight(width/5);\n noFill();\n stroke(setAlpha(randColor(),70));\n //wonkyCirc(x,y,rad,wonkFactor);\n ellipse(x,y,width * 0.5, width * 0.5);\n }\n svgBlendMode(\"multiply\");\n}", "title": "" }, { "docid": "f748c772e435a7e413b6a9ac65d0fb35", "score": "0.5577631", "text": "function sharpen() {\n\tvar weights = [\n\t\t0, -1, 0,\n\t\t-1, 5, -1,\n\t\t0, -1, 0 ];\n\tconvolute(weights);\n}", "title": "" }, { "docid": "419738e172bce104797c60960ba5735c", "score": "0.5560802", "text": "function BrownNoiseFilterFactory(context, bufSize) {\n\t\tconst SLOPE = 0.1, HPFILTER = 0.02;\n\t\tbufSize = bufSize || 8192;\n\t\tvar node = context.createScriptProcessor(bufSize, 2, 2);\n\t\tvar currentValueL = 0, currentValueR = 0;\n\n\t\tnode.onaudioprocess = function(e) {\n\t\t\tvar inBufferL = e.inputBuffer.getChannelData(0);\n\t\t\tvar inBufferR = e.inputBuffer.getChannelData(1);\n\t\t\tvar outBufferL = e.outputBuffer.getChannelData(0);\n\t\t\tvar outBufferR = e.outputBuffer.getChannelData(1);\n\t\t\tvar whiteL, whiteR, i;\n\n\t\t\tfor (i = 0; i < bufSize; i++) {\n\t\t\t\twhiteL = inBufferL[i] * SLOPE;\n\t\t\t\twhiteR = inBufferR[i] * SLOPE;\n\t\t\t\tcurrentValueL = currentValueL * (1 - HPFILTER) + whiteL;\n\t\t\t\tcurrentValueR = currentValueR * (1 - HPFILTER) + whiteR;\n\t\t\t\tif (currentValueL < -1.0 || currentValueL > 1.0)\n\t\t\t\t\tcurrentValueL -= 2 * whiteL;\n\t\t\t\tif (currentValueR < -1.0 || currentValueR > 1.0)\n\t\t\t\t\tcurrentValueR -= 2 * whiteR;\n\t\t\t\toutBufferL[i] = currentValueL * 3;\n\t\t\t\toutBufferR[i] = currentValueR * 3;\n\t\t\t}\n\t\t}\n\n\t\treturn node;\n\t}", "title": "" }, { "docid": "90b2aaea2e68063c7020523b01d41f53", "score": "0.5525805", "text": "function computeVerticesOfStar() {\n var i = 0,\n k;\n for (i = 0.25; i < 120; i += 0.015) {\n k = Math.random(0, 1);\n verticesOfStar.push(i);\n verticesOfStar.push(k);\n verticesOfStar.push(1);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(i);\n verticesOfStar.push(-k);\n verticesOfStar.push(1);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(-k);\n verticesOfStar.push(i);\n verticesOfStar.push(1);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(-i);\n verticesOfStar.push(-k);\n verticesOfStar.push(1);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n verticesOfStar.push(245 / 255);\n }\n\n}", "title": "" }, { "docid": "a019240601d63097a14c4573eb4281be", "score": "0.55180675", "text": "dither(pointBuffer, width, height, palette : Palette, _distance) {\r\n var errorLines : number[][][] = [];\r\n let originalPoint:number[];\r\n\r\n var dir = 1,\r\n maxErrorLines = 1;\r\n\r\n var _kernel = [[ 7 / 16, 1, 0 ],\r\n [ 3 / 16, -1, 1 ],\r\n [ 5 / 16, 0, 1 ],\r\n [ 1 / 16, 1, 1 ]];\r\n\r\n var _serpentine = false;\r\n\r\n var _calculateErrorLikeGIMP = true;\r\n\r\n var _minColorDistance = 0;\r\n\r\n // initial error lines (number is taken from dithering kernel)\r\n for (let i = 0; i < _kernel.length; i++) {\r\n var kernelErrorLines = _kernel[ i ][ 2 ] + 1;\r\n if (maxErrorLines < kernelErrorLines) maxErrorLines = kernelErrorLines;\r\n }\r\n\r\n for (let i = 0; i < maxErrorLines; i++) {\r\n this._fillErrorLine(errorLines[ i ] = [], width);\r\n }\r\n\r\n for (let y = 0; y < height; y++) {\r\n // always serpentine\r\n if (_serpentine) dir = dir * -1;\r\n\r\n const lni = y * width,\r\n xStart = dir == 1 ? 0 : width - 1,\r\n xEnd = dir == 1 ? width : -1;\r\n\r\n // cyclic shift with erasing\r\n this._fillErrorLine(errorLines[ 0 ], width);\r\n // TODO: why it is needed to cast types here?\r\n errorLines.push(<number[][]>errorLines.shift());\r\n\r\n const errorLine = errorLines[ 0 ];\r\n for (let x = xStart, idx = lni + xStart; x !== xEnd; x += dir, idx += dir) {\r\n\r\n let point:number = pointBuffer[idx];\r\n let pointr:number[] = createRGBAfromUInt32(point);\r\n originalPoint = createRGBAfromUInt32(pointBuffer[idx]);\r\n\r\n const error = errorLine[ x ];\r\n\r\n const correctedPoint:number[] = Array(\r\n inRange0to255Rounded(pointr[0] + error[ 0 ]),\r\n inRange0to255Rounded(pointr[1] + error[ 1 ]),\r\n inRange0to255Rounded(pointr[2] + error[ 2 ]),\r\n inRange0to255Rounded(pointr[3] + error[ 3 ])\r\n );\r\n\r\n // Reduced pixel\r\n const palettePoint = palette.getNearestColor(_distance, correctedPoint);\r\n pointBuffer[idx] = createUint32FromRGBA2(palettePoint);\r\n pointr = palettePoint;\r\n\r\n //point.from(palettePoint);\r\n // dithering strength\r\n if (_minColorDistance) {\r\n var dist = _distance.calculateNormalized(pointr, palettePoint);\r\n if (dist < _minColorDistance) continue;\r\n }\r\n\r\n\r\n // Component distance\r\n let er : number, eg : number, eb : number, ea : number;\r\n if (_calculateErrorLikeGIMP) {\r\n er = correctedPoint[0] - palettePoint[0];\r\n eg = correctedPoint[1] - palettePoint[1];\r\n eb = correctedPoint[2] - palettePoint[2];\r\n ea = correctedPoint[3] - palettePoint[3];\r\n } else {\r\n er = originalPoint[0] - palettePoint[0];\r\n eg = originalPoint[1] - palettePoint[1];\r\n eb = originalPoint[2] - palettePoint[2];\r\n ea = originalPoint[3] - palettePoint[3];\r\n }\r\n\r\n const dStart = dir == 1 ? 0 : _kernel.length - 1,\r\n dEnd = dir == 1 ? _kernel.length : -1;\r\n\r\n for (let i = dStart; i !== dEnd; i += dir) {\r\n const x1 = _kernel[ i ][ 1 ] * dir,\r\n y1 = _kernel[ i ][ 2 ];\r\n\r\n if (x1 + x >= 0 && x1 + x < width && y1 + y >= 0 && y1 + y < height) {\r\n const d = _kernel[ i ][ 0 ],\r\n e = errorLines[ y1 ][ x1 + x ];\r\n\r\n e[ 0 ] = e[ 0 ] + er * d;\r\n e[ 1 ] = e[ 1 ] + eg * d;\r\n e[ 2 ] = e[ 2 ] + eb * d;\r\n e[ 3 ] = e[ 3 ] + ea * d;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return pointBuffer;\r\n }", "title": "" }, { "docid": "a5e094de8394d8fa8248c8bb809c160c", "score": "0.5515013", "text": "function rand() {\n if (!gnt--) {\n prng();\n gnt = 255;\n }\n return r[gnt];\n }", "title": "" }, { "docid": "1b65444ef770cd81539dade08f7428f3", "score": "0.5499254", "text": "function orderedDither(imgdata, h, w, palette, step) {\n var d = new Uint8ClampedArray(imgdata);\n var ratio = 3;\n var m = new Array(\n [ 1, 9, 3, 11 ],\n [ 13, 5, 15, 7 ],\n [ 4, 12, 2, 10 ],\n [ 16, 8, 14, 6 ]\n );\n\n var r, g, b, a, q, i, color, approx, tr, tg, tb, dx, dy, di;\n\n for (var y=0;y<h;y += step) {\n for (var x=0;x<w;x += step) {\n i = (4*x) + (4*y*w);\n\n // Define bytes\n r = i;\n g = i+1;\n b = i+2;\n a = i+3;\n\n d[r] += m[x%4][y%4] * ratio;\n d[g] += m[x%4][y%4] * ratio;\n d[b] += m[x%4][y%4] * ratio;\n\n //var tr = threshold(d[r]);\n //var tg = threshold(d[g]);\n //var tb = threshold(d[b]);\n color = new Array(d[r],d[g],d[b]);\n approx = approximateColor(color, palette);\n tr = approx[0];\n tg = approx[1];\n tb = approx[2];\n\n // d[r] = t;\n // d[g] = t;\n // d[b] = t;\n\n // Draw a block\n for (dx=0;dx<step;dx++){\n for (dy=0;dy<step;dy++){\n di = i + (4 * dx) + (4 * w * dy);\n\n // Draw pixel\n d[di] = tr;\n d[di+1] = tg;\n d[di+2] = tb;\n\n }\n }\n }\n }\n return d;\n }", "title": "" }, { "docid": "bf499bed42f4a93590e50a85c3d5685d", "score": "0.5492062", "text": "function draw() {\n textSize(20);\n textAlign(CENTER);\n //fill(255,255,255);\n //stroke(0);\n stroke(1);\n if (big_noise) {\n background(0);\n // Shift all elements 1 place to the left\n for ( var i = 1; i < num; i++ ) {\n ax[i - 1] = ax[i];\n ay[i - 1] = ay[i];\n }\n\n // Put a new value at the end of the array\n ax[num - 1] += random(-range_lightning, range_lightning);\n ay[num - 1] += random(-range_lightning, range_lightning);\n\n // Constrain all points to the screen\n ax[num - 1] = constrain(ax[num - 1], 0, width);\n ay[num - 1] = constrain(ay[num - 1], 0, height);\n\n // Draw a line connecting the points\n for ( var j = 1; j < num; j++ ) {\n var val = j / num * 204.0 + 51;\n stroke(val);\n line(ax[j - 1], ay[j - 1], ax[j], ay[j]);\n }\n } else {\n background(255);\n }\n //sum = 0;\n fill(255);\n ellipse(big_circle, big_circle, 210, 210); \n ellipse(big_circle, big_circle, 190, 190);\n \n \n var left_little = 65;\n fill(255);\n ellipse(left_little, big_circle, 60, 60); \n fill(255);\n ellipse(left_little, big_circle, 40, 40);\n //draw_circle(left_little,big_circle,25, small_phase,0,small_phase,color(255,0,0,255));\n phases[4] = new Array(draw_circle(left_little,big_circle,25, small_phase,big_time%small_phase,(big_time%small_phase)+1,color(255,255,0,255)));\n fill(0);\n text(\"4/5\",left_little,big_circle);\n\n\n var right_little = 335;\n\n fill(255);\n ellipse(right_little, big_circle, 60, 60); \n fill(255);\n ellipse(right_little, big_circle, 40, 40);\n //draw_circle(right_little,big_circle,25, small_phase,0,small_phase,color(255,0,0,255));\n phases[2] = new Array(draw_circle(right_little,big_circle,25, small_phase,(big_time%small_phase)+2,(big_time%small_phase)+3,color(255,255,0,255)));\n fill(0);\n text(\"2/3\",right_little,big_circle);\n\n var top_little = 65;\n fill(255);\n ellipse(big_circle, top_little, 60, 60); \n fill(255);\n ellipse(big_circle, top_little, 40, 40);\n //draw_circle(big_circle,top_little,25, small_phase,0,small_phase,color(255,0,0,255));\n phases[1] = new Array(draw_circle(big_circle,top_little,25, small_phase,(big_time%small_phase)+1,(big_time%small_phase)+2,color(255,255,0,255)));\n fill(0);\n text(\"1/2\",big_circle,top_little);\n var bottom_little = 335;\n fill(255);\n \n ellipse(big_circle, bottom_little, 60, 60); \n fill(255);\n ellipse(big_circle, bottom_little, 40, 40);\n //draw_circle(big_circle,bottom_little,25, small_phase,0,small_phase,color(255,0,0,255));\n phases[3] = new Array(draw_circle(big_circle,bottom_little,25, small_phase,(big_time%small_phase)+3,(big_time%small_phase)+4,color(255,255,0,255)));\n fill(0);\n text(\"3/4\",big_circle,bottom_little);\n \n //draw_circle(big_circle,big_circle,100, big_phase,0,big_phase,color(0,255,255,255));\n //draw_circle(center_x,center_y,radius, number_points,first_point,last_point,color)\n\n fill(0);\n text(\"0/1\",big_circle,big_circle);\n if (clock_status[0] == 0) {\n clock_pos_fixed[0][0][0] = big_time%big_phase;\n clock_pos_fixed[0][0][1] = (big_time%big_phase)+1;\n \n clock_pos_fixed[0][1][0] = (big_time%big_phase)+1;\n clock_pos_fixed[0][1][1]= (big_time%big_phase)+2;\n\n clock_pos_fixed[0][2][0] = (big_time%big_phase)-1;\n clock_pos_fixed[0][2][1] = (big_time%big_phase);\n \n //draw_circle(big_circle,big_circle,100, big_phase,t%big_phase,(t%big_phase)+1,color(255,255,0,255));\n }\n yellow_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][0][0],clock_pos_fixed[0][0][1],color(255,255,0,255));\n red_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][1][0],clock_pos_fixed[0][1][1],color(255,0,0,255));\n green_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][2][0],clock_pos_fixed[0][2][1],color(0,255,0,255));\n \n phases[0] = [red_phase,yellow_phase,green_phase];\n if ( (star_x - yellow_phase.x) > -10 && (star_x - yellow_phase.x) < 10 && (star_y - yellow_phase.y) > -10 && (star_y - yellow_phase.y) < 10 ) {\n // console.log ( \"Noise\" );\n // console.log (phases[0]);\n\n big_noise = true;\n for ( var i = 0; i < num; i++ ) {\n ax[i] = yellow_phase.x;\n ay[i] = yellow_phase.y;\n }\n //ax = [yellow_phase.x];\n //ay = [yellow_phase.y];\n }\n\n // draw_circle(110,110,50, 9,0,9,color(0,255,255,255));\n // draw_circle(110,110,50, 9,(t%9)+5,(t%9)+6,color(255,0,255,255));\n\n if (big_noise) {\n \n //var noise = random(0, 255); \n var noise = 0;//random(0, 255);\n \n yellow_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][0][0],clock_pos_fixed[0][0][1],color(255-noise,255-noise,0,255));\n red_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][1][0],clock_pos_fixed[0][1][1],color(255-noise,0+noise,0,255));\n green_phase = draw_circle(big_circle,big_circle,100, big_phase,clock_pos_fixed[0][2][0],clock_pos_fixed[0][2][1],color(0+noise,255-noise,0,255));\n phases[0] = [red_phase,yellow_phase,green_phase];\n \n }\n \n \n fill(255,0,0,175);\n rect(40,40,120,windowHeight/12);\n fill(0);\n noStroke();\n textAlign(LEFT);\n textSize(17);\n var time = \"time is \" + big_time;\n \n\nif ( (big_time % 32) == 0) {\n console.log(\"big time\", t, (t-1)%32);\n if (((t-1) % 32) == 0) {\n console.log('2/3');\n if (check_colors(phases[0][1],phases[2][0]) ) {\n console.log(\"check\");\n big_noise = false;\n }\n // } else {\n // t = t-32;\n // console.log(\"not check\");\n // }\n }\n}\nif ((big_time % 32) == 8) {\n if (((t-1) % 32) == 0) {\n console.log('3/4');\n if (check_colors(phases[0][1],phases[3][0]) ) {\n console.log(\"check\");\n big_noise = false;\n }// else {\n //t = t-32;\n //console.log(\"not check\");\n // }\n }\n} \nif ((big_time % 32) == 16) {\n if (((t-1) % 32) == 0) {\n console.log('4/5');\n if (check_colors(phases[0][1],phases[4][0]) ) {\n console.log(\"check\");\n big_noise = false;\n } //else {\n //t = t-32;\n // console.log(\"not check\");\n // }\n }\n} \nif ((big_time % 32) == 24) {\nif (((t-1) % 32) == 0) {\n console.log('1/2');\n if (check_colors(phases[0][1],phases[1][0]) ) {\n console.log(\"check\");\n big_noise = false;\n } //else {\n //t = t-32;\n //console.log(\"not check\");\n //}\n }\n} \n big_time = t / big_phase;\n \n text(time,50,50,(11*windowWidth/12),11*windowHeight/12);\n \n //console.log(t)\n\n t++;\n\n\n\n star_red += random(-range,range);\n star_green += random(-range,range);\n// Constrain all points to the screen\n star_red = constrain(star_red, 0, 255);\n star_green = constrain(star_green, 0, 255);\n\n fill( color(star_red,star_green,0,255) );\n // Put a new value at the end of the array\n star_x += random(-range, range);\n star_y += random(-range, range);\n\n // Constrain all points to the screen\n star_x = constrain(star_x, big_circle-105, big_circle+105);\n star_y = constrain(star_y, big_circle-105, big_circle+105);\n\n star(star_x, star_y, 10, 18, 16);\n\n\n fill(color(255,255,255,255))\n rect(500,100,300,300);\n //console.log(simple_this);\n var ci = 0;\n var cj = 0;\n var locations = []\n for (ci = 0; ci < 2; ci++) {\n for (cj = 0; cj < 2; cj++) {\n\n draw_is(650+ci*180,250+cj*180,70, 12,0,12,color(130,233,255),shuffled_simple_this[(ci*2)+cj].slice(0,12));\n draw_is(650+ci*180,250+cj*180,40, 12,0,12,color(130,233,255),shuffled_simple_this[(ci*2)+cj].slice(12,24));\n } \n }\n\n var el = 0;\n for(el =0; el < a_racetrack_positions.length; el++) {\n stroke(0,0,0,255);\n strokeWeight(4);\n line(a_racetrack_positions[el].x,a_racetrack_positions[el].y,a_racetrack_positions[(el+1) % a_racetrack_positions.length].x,a_racetrack_positions[(el+1) % a_racetrack_positions.length].y);\n strokeWeight(1);\n }\n \n \n}", "title": "" }, { "docid": "a41d36df6b473f2c80a644466037a683", "score": "0.54867107", "text": "function rainbow(){\n\t\n}", "title": "" }, { "docid": "4b685819d327ded31f0dc829793296ce", "score": "0.548141", "text": "Noise (particle) {\n let angle = this.Util.noise3D(particle.position.x + this.xNoiseOffset, particle.position.y + this.yNoiseOffset, this.t) * 2 * Math.PI;\n return this.RoundOutput(new Victor(Math.cos(angle), Math.sin(angle)));\n }", "title": "" }, { "docid": "f5f7c654da4d1ae348e3e2d84e8d84f5", "score": "0.5478598", "text": "function Rnd(){\n\t\t//see: http://indiegamr.com/generate-repeatable-random-numbers-in-js/ \n\t\tSEED = (SEED * 9301 + 49297) % 233280;\n\t\tlet random = SEED / 233280;\n \n\t\treturn random;\n\t}", "title": "" }, { "docid": "03b3ddd9ed5aa2b7618dba32df267f77", "score": "0.54731864", "text": "randomizePerm () {\n Object.keys(this.noise).forEach((key) => {\n this.noise[key].randomizePerm();\n });\n }", "title": "" }, { "docid": "fcf6522ba670e494a4e22e362a81ac6a", "score": "0.5472539", "text": "function getRandomWhite(){\n return ((Math.random()*55) + 200);\n}", "title": "" }, { "docid": "8b30f0e2144a929f3813579a41b4b3e7", "score": "0.5472095", "text": "render() {\n var yoff = 0;\n //loadPixels();\n for (var y = 0; y < height; y++){\n var xoff = 0;\n for(var x = 0; x < width; x++){\n var r = map(noise(xoff, yoff)*255, 0, 1, -5, 5);\n var i = (x + y*width)*4\n fill(r);\n ellipse([i+0], [i+0], r, r);\n xoff += 0.01;\n }\n yoff += 0.01;\n }\n //updatePixels();\n }", "title": "" }, { "docid": "0c346c7fd4f400ae0a9b95dbed6eb84e", "score": "0.5467001", "text": "function manipulatePixels(){\n //i) Get all of the rgba pixel data of the canvas by grabbing the image data\n var imageData=ctx.getImageData(0,0,canvas.width, canvas.height);\n\n //ii)imageData.data is an 8-bit typed array- values range from 0-255\n //imageData.data contains 4 values per pixel\n //we are looping through this 60 fps-wow\n var data = imageData.data;\n var length = data.length;\n\n //we step by 4 so that we can manipulate pixel per iteration\n //data[i]is the red value\n //data[i+1]is the green value\n //data[i+2]is the blue value\n //data[i+3]is the alpha value\n for(var i=0; i<length; i+=4){\n //increase green value only\n if(tint){\n data[i+1]= data[i]+60; \n data[i+5]= data[i]+60; \n }\n if(invert){\n var red=data[i], green=data[i+1], blue=data[i+2];\n data[i]=255-red; //set red value\n data[i+1]=255-green; //set blue value\n data[i+2]=255-blue; //set green value\n\n }\n if(noise&&Math.random()<.10){\n //data[i]=data[i+1]=data[i+2]=128 //gray noise\n data[i+4]=data[i+5]=data[i+6]=255; //or white noise\n //data[i]=data[i+1]=data[i+2]=0; //or back noise\n data[i+3]=255; //alpha\n }\n \n //this sets the greyscale for each particle based on the scale\n //let c equal the value on the scale between 0----->1\n //we want to go from [r,g,b]----->[gr,gr,gr] //let gr equal the color grey\n // (1-c)*[r,g,b] + c*[gr,gr,gr] if c= 0, we get rgb, else if c=1 we get gr\n var average = (data[i]+ data[i+1]+ data[i+2])/3; //getting a grey valuev \"gr\"\n var saturated = greyScale*average; //depending on the scale value, change between grey to normal rgb values \"c*gr\"\n var oppositeVal= (1-greyScale); //if callGrey=0, we get rgb, else if callGrey=1, we get grey \"1-c\"\n\n // (1-c)*[r] + c[gr]\n data[i] = oppositeVal* data[i] + saturated;\n // (1-c)*[g] + c[gr] \n data[i+1] = oppositeVal* data[i+1] + saturated;\n // (1-c)*[b] + c[gr] \n data[i+2] = oppositeVal* data[i+2] + saturated;\n }\n \n //put the modified data back on the canvas\n ctx.putImageData(imageData,0,0);\n }", "title": "" }, { "docid": "5333f2f7f1c3b030f0e64babefa7734c", "score": "0.54653615", "text": "function rand() {\n if ( !gnt-- )\n prng(1), gnt = 255;\n\n return r[gnt];\n }", "title": "" }, { "docid": "f92446cce7779c80b9d2ae8d9764c835", "score": "0.54083544", "text": "function imgByN(){\n imageData = ctx.getImageData(0, 0, width, height);\n let sliderByN = $(\"#sliderByN\").val();\n for (x=0; x < width; x++){\n for (y=0; y < height; y++){\n r = getRed(imageData, x, y);\n g = getGreen(imageData, x, y);\n b = getBlue(imageData, x, y);\n promedio = (r+g+b)/4;\n if (promedio >= sliderByN) {\n console.log (sliderByN);\n promedio = 255;\n }\n else {\n promedio = 0;\n }\n setPixel(imageData, x, y, promedio, promedio, promedio);\n }\n }\n ctx2.putImageData(imageData, 0, 0);\n}", "title": "" }, { "docid": "5faa5e5503c9e115990c8defdd45debd", "score": "0.53962606", "text": "function newRandomSnow() {\r\n return {\r\n x: randomInt(0, cnv.width),\r\n y: randomInt(0, 0),\r\n r: randomInt(1, 5),\r\n color: \"white\"\r\n }\r\n}", "title": "" }, { "docid": "73f15e4ffff4fea66a34dee984f70600", "score": "0.5393362", "text": "function getNextSample() {\n var nextSample;\n if (noise_samples > 0) {\n nextSample = 2 * Math.random() - 1;\n noise_samples--;\n } else {\n var x_i = delayLine[delayLinePos];\n\n // last sample in delayLine is yi minus 1\n // because it was created in previous call to this function\n var y_i_1 = delayLine[(delayLinePos - 1 + delayLineLen) % delayLineLen];\n nextSample = y_i_1 + alpha * (x_i - y_i_1); // here nextSample is the y[i]\n }\n delayLine[delayLinePos] = nextSample;\n delayLinePos = (delayLinePos + 1) % delayLineLen;\n return nextSample;\n}", "title": "" }, { "docid": "fb195a193b1d17ef80b11f611c3163e1", "score": "0.5391191", "text": "function randomNotReally() {\n var x = Math.sin(seed++) * 10000;\n return x - Math.floor(x);\n}", "title": "" }, { "docid": "e73255b772610dfcce0d5bcf703b00af", "score": "0.5385049", "text": "function flickerFunction (time) {\n var x = (time + phase)*frequency;\n var y;\n let a = (time * 1000)%(1000*Math.random());\n \n x = x - Math.floor(x); // normalized value (0..1)\n \n if (waveFunction==\"sin\") {\n y = Math.sin(x*2*Math.PI);\n }\n else if (waveFunction==\"tri\") {\n if (x < 0.5)\n y = 4.0 * x - 1.0;\n else\n y = -4.0 * x + 3.0; \n } \n else if (waveFunction==\"sqr\") {\n if (x < 0.5)\n y = 1.0;\n else\n y = -1.0; \n } \n else if (waveFunction==\"saw\") {\n y = x;\n } \n else if (waveFunction==\"inv\") {\n y = 1.0 - x;\n } \n else if (waveFunction==\"noise\") {\n y = 1 - (Math.random()*2);\n }\n else if (waveFunction==\"sinnoise\") {\n y = 1 - (Math.random()*2*Math.sin(x*2*Math.PI));\n }\n else {\n y = 1.0;\n } \n if(a<17)\n return (y*amplitude)+base; \n else return ((Math.sin(time*1.5) + 1.0) / 2.0) * 0.35 + 0.6;\n}", "title": "" }, { "docid": "a6ce4574642c7f3b5cca0a325f1c605b", "score": "0.5376102", "text": "function loseBattleNoise() {\n\tif (song.rate() <= 0) {\n\t\treturn;\n\t}\n\tsong.rate(song.rate() - 0.01);\n}", "title": "" }, { "docid": "ab8fe577f486302c18abd2487a0712fe", "score": "0.5371741", "text": "function getStar() {\n if(probability(.7)) {\n if(probability(.2)) {\n if(probability(.07)) {\n if(probability(.03)) {\n return 5;\n }\n return 4;\n }\n return 3;\n }\n return 2;\n }\n return 1;\n}", "title": "" }, { "docid": "bae467c7e7ead686138681b9fb28de95", "score": "0.5348767", "text": "function prng(n) {\n var i, x, y;\n\n n = (n && typeof (n) === 'number')\n ? Math.abs(Math.floor(n)) : 1;\n\n while (n--) {\n cnt = add(cnt, 1);\n brs = add(brs, cnt);\n\n for (i = 0; i < 256; i++) {\n switch (i & 3) {\n case 0:\n acc ^= acc << 13;\n break;\n case 1:\n acc ^= acc >>> 6;\n break;\n case 2:\n acc ^= acc << 2;\n break;\n case 3:\n acc ^= acc >>> 16;\n break;\n }\n acc = add(m[(i + 128) & 0xff], acc);\n x = m[i];\n m[i] = y = add(m[(x >>> 2) & 0xff], add(acc, brs));\n r[i] = brs = add(m[(y >>> 10) & 0xff], x);\n }\n }\n }", "title": "" }, { "docid": "fface65bf0bc1bf33e97e9a9babeebb1", "score": "0.53346187", "text": "function customRandom (seed) {\n var x = Math.sin(seed++) * 10000; // 10000 gives good distribution, lowers gives patterns\n return x - Math.floor(x);\n}", "title": "" }, { "docid": "aae76ed29833142213daa96ae22c68bc", "score": "0.5331213", "text": "function sinhAlpha(p) {\n var arrayNum = [];\n // ----- ham phan tich nguyen to -----\n function analyc(p) {\n for (var i = 2; i <= (p - 1) / 2; i++) {\n temp = (p - 1) / i; // p-1 là phi cua p\n if ((p - 1) % i == 0) {\n arrayNum.push(i);\n } else {\n continue;\n }\n }\n }\n // ----- Ham tim phan tu sinh cac phan tu sinh cua P -----\n function ArrP(p) {\n var arrPTS = [];\n for (var j = 1; j < (p - 1); j++) {\n arrPTS.push(j);\n }\n for (var j = 0; j < arrPTS.length; j++) {\n for (var i = 0; i < arrayNum.length; i++) {\n if (Math.pow(arrPTS[j], ((p - 1) / arrayNum[i])) % p === 1) {\n arrPTS.splice(j, 1);\n }\n }\n }\n return arrPTS;\n }\n /*\n Kiểm tra số nguyên tố\n */\n function IsPrime(n) {\n if (n < 2)\n return 0;\n for (var i = 2; i <= Math.sqrt(n); i++) {\n if (n % i == 0) {\n return 0;\n }\n }\n return 1;\n }\n analyc(p);\n var pp = ArrP(p).filter(function (value) {\n if (IsPrime(value) === 1) {\n return value;\n };\n })\n return pp[Math.floor(Math.random() * (pp.length))];\n }", "title": "" }, { "docid": "e63e7614f52f2402a642d6807763afa1", "score": "0.53295785", "text": "constructor(scene, x, y, has_feedback = true, has_noise = true, right_key = 'D') {\n let target = scene.add.circle(0, -100, TARGET_SIZE_RADIUS, GRAY)\n let center = scene.add.circle(0, 100, 15, WHITE)\n let img_cur = scene.add.image(0, 100, 'cursor').setOrigin(0, 0).setScale(0.2)\n let thed = scene.add.text(100, 0, right_key, {\n fontFamily: 'Verdana',\n fontSize: 70,\n color: '#ffff00'\n }).setAlpha(0).setOrigin(0.5, 0.5)\n\n let cur = scene.add.circle(0, 100, 10, WHITE, has_feedback)\n // noise arc\n let noise_tex = []\n let tmp = ['0', '2'] // 0 = black, 2 = white for the arne16 palette\n for (let i = 0; i < NOISE_DIM; i++) {\n noise_tex[i] = ''\n for (let j = 0; j < NOISE_DIM; j++) {\n noise_tex[i] += tmp[Math.floor(2 * Math.random())] // randomChoice\n }\n }\n\n let stims = [target, center, cur, img_cur, thed]\n let noise\n if (has_noise) {\n scene.textures.generate('noise2', { data: noise_tex, pixelWidth: 3, pixelHeight: 3 })\n // noise is the thing we draw\n // to \"randomize\", do a setPosition with two random ints\n // then rotate to some random PI*n/2\n noise = scene.add.image(0, 0, 'noise2')\n let data = make_thick_arc(\n Math.PI + Math.PI / 3,\n Math.PI * 2 - Math.PI / 3,\n 200,\n 15 * 2 + 5,\n 200 * 2 - TARGET_SIZE_RADIUS * 2\n )\n\n let mask = scene.add.polygon(0, 300, data, 0xffffff).setVisible(false).setDisplayOrigin(0, 0)\n noise.mask = new Phaser.Display.Masks.BitmapMask(scene, mask)\n stims.push(noise)\n }\n super(scene, x, y, stims)\n let xp = 50\n let yp = -200\n scene.add.existing(this)\n this.tl1 = scene.tweens.timeline({\n loop: -1,\n loopDelay: 1000,\n paused: true,\n tweens: [\n {\n targets: target,\n y: -100,\n ease: 'Linear',\n duration: 200,\n onStart: () => {\n target.fillColor = GRAY\n },\n onComplete: () => {\n target.fillColor = GREEN\n }\n },\n {\n offset: 800,\n targets: img_cur,\n x: xp,\n y: yp,\n ease: 'Power2',\n duration: 1200\n },\n {\n offset: 800,\n targets: cur,\n x: xp,\n y: yp,\n ease: 'Power2',\n duration: 1200,\n onStart: () => {\n this.counter = 0\n },\n onUpdate: () => {\n if (has_noise && this.counter++ > 8 && this.counter < 28) {\n noise.visible = false\n } else if (has_noise) {\n noise.visible = true\n }\n },\n onComplete: () => {\n target.fillColor = GRAY\n cur.x = 0\n cur.y = 100\n img_cur.y = 100\n img_cur.x = 0\n this.counter = 0\n }\n },\n {\n offset: 2400,\n targets: thed,\n alpha: 1,\n duration: 300,\n yoyo: true\n }\n ]\n })\n }", "title": "" }, { "docid": "8f5d6ff7f6b27a583019526809ad12f6", "score": "0.5322422", "text": "function pikcol()\r\n{\r\n\tvar pik=Math.floor(Math.random() * colors.length);\r\n\treturn colors[pik];\r\n}", "title": "" }, { "docid": "ca755d86a4ddd6dbce49e9b36dcf67e1", "score": "0.53162056", "text": "sample() {\n var r = Math.random();\n return this.probabilities.findIndex((p, i, arr) => {\n r -= p;\n return r < 0;\n });\n }", "title": "" }, { "docid": "3c944282a3a30ba1948d9f4af3cbf0b4", "score": "0.5302766", "text": "function randinit() {\n var a, b, c, d, e, f, g, h;\n\n /* private mixing function */\n function mix () {\n a ^= b << 11; d = (d + a)|0; b = (b + c)|0;\n b ^= c >>> 2; e = (e + b)|0; c = (c + d)|0;\n c ^= d << 8; f = (f + c)|0; d = (d + e)|0;\n d ^= e >>> 16; g = (g + d)|0; e = (e + f)|0;\n e ^= f << 10; h = (h + e)|0; f = (f + g)|0;\n f ^= g >>> 4; a = (a + f)|0; g = (g + h)|0;\n g ^= h << 8; b = (b + g)|0; h = (h + a)|0;\n h ^= a >>> 9; c = (c + h)|0; a = (a + b)|0;\n }\n\n acc = brs = cnt = 0;\n\n // the golden ratio\n a = b = c = d = e = f = g = h = 0x9e3779b9;\n\n // scramble it\n for ( var i = 0; i < 4; i++ )\n mix();\n\n // mix it and combine with the internal state\n for ( var i = 0; i < 256; i += 8 ) {\n a = (a + r[i|0])|0; b = (b + r[i|1])|0;\n c = (c + r[i|2])|0; d = (d + r[i|3])|0;\n e = (e + r[i|4])|0; f = (f + r[i|5])|0;\n g = (g + r[i|6])|0; h = (h + r[i|7])|0;\n mix();\n m.set([a, b, c, d, e, f, g, h], i);\n }\n\n // mix it again\n for ( var i = 0; i < 256; i += 8 ) {\n a = (a + m[i|0])|0; b = (b + m[i|1])|0;\n c = (c + m[i|2])|0; d = (d + m[i|3])|0;\n e = (e + m[i|4])|0; f = (f + m[i|5])|0;\n g = (g + m[i|6])|0; h = (h + m[i|7])|0;\n mix();\n m.set([a, b, c, d, e, f, g, h], i);\n }\n\n // fill in the first set of results\n prng(1), gnt = 256;\n }", "title": "" }, { "docid": "a774c5629d0c8fece19d975b0d98e3d0", "score": "0.53023446", "text": "function createGates(wallSource, spikeSource) {\n let canvas = createCanvas(36, 36);\n for (let i = 0; i < 36; i += 4) {\n canvas.ctx.drawImage(spikeSource, i, 0);\n canvas.ctx.drawImage(spikeSource, i, 32);\n canvas.ctx.drawImage(spikeSource, 0, i);\n canvas.ctx.drawImage(spikeSource, 32, i);\n }\n canvas.ctx.drawImage(wallSource, 0, 0);\n canvas.ctx.drawImage(wallSource, 32, 0);\n canvas.ctx.drawImage(wallSource, 0, 32);\n canvas.ctx.drawImage(wallSource, 32, 32);\n addNoise(canvas);\n return canvas.canvas;\n}", "title": "" }, { "docid": "12d439e11ea7079a29211fc00683aa76", "score": "0.5283277", "text": "function generateHeight() {\r\n\t var size = block_x * block_y,\r\n\t perlin = new ImprovedNoise(), quality = 1, z = Math.random() * 100;\r\n\t for ( var j = 0; j < 4; j ++ ) {\r\n\t for ( var i = 0; i < size; i ++ ) {\r\n\t var x = i % block_x, y = ~~ ( i / block_x );\r\n\t data[ i ] += Math.abs( perlin.noise( x / quality, y / quality, z ) * quality * 1.75 );\r\n\t }\r\n\t quality *= 5;\r\n\t }\r\n\t return data;\r\n\t }", "title": "" }, { "docid": "d33af2c2b47c3f4c03ced5b89e070776", "score": "0.5252713", "text": "function rainbow(freq, i) {\n var red = Math.round(Math.sin(freq * i + 0) * 127 + 128);\n var green = Math.round(Math.sin(freq * i + 2 * Math.PI / 3) * 127 + 128);\n var blue = Math.round(Math.sin(freq * i + 4 * Math.PI / 3) * 127 + 128);\n return '<span style=\"color:rgb(' + red + ',' + green + ',' + blue + ')\">';\n\n}", "title": "" }, { "docid": "e43c10afb3c06decaf7ab85895d00b08", "score": "0.5245049", "text": "set noise(_noise) {\n this.params.noise = _noise;\n for (let voice = 0; voice < this.voices.length; voice++) {\n if (this.voices[voice]) this.voices[voice].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n if (this.voices[voice - 12]) this.voices[voice - 12].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n if (this.voices[voice - 24]) this.voices[voice - 24].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n if (this.duovoices[voice]) this.duovoices[voice].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n if (this.unisonvoices1[voice]) this.unisonvoices1[voice].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n if (this.unisonvoices2[voice]) this.unisonvoices2[voice].whitenoiseGain.gain.setValueAtTime(_noise / 100, this.context.currentTime);\n }\n }", "title": "" }, { "docid": "94f60a074f9311ed8f32c53779dbf442", "score": "0.5239932", "text": "generateColor(){\n var i;\n for(i = 0; i < this.vBuffer.length; i += 3){\n // random colors according to the height\n if(this.vBuffer[i + 2] < 0.35){\n this.cBuffer.push(0.9);\n this.cBuffer.push(0.3);\n this.cBuffer.push(0.1);\n this.cBuffer.push(1.0);\n }\n else if(this.vBuffer[i + 2] < 0.40){\n this.cBuffer.push(0.6);\n this.cBuffer.push(0.6);\n this.cBuffer.push(0.2);\n this.cBuffer.push(1.0);\n }\n else if(this.vBuffer[i + 2] < 0.45){\n this.cBuffer.push(0.7);\n this.cBuffer.push(0.5);\n this.cBuffer.push(0.2);\n this.cBuffer.push(1.0);\n }\n \n else if(this.vBuffer[i + 2] < 0.5){\n this.cBuffer.push(0.2);\n this.cBuffer.push(0.8);\n this.cBuffer.push(0.6);\n this.cBuffer.push(1.0);\n }\n \n else if(this.vBuffer[i + 2] < 0.52){\n this.cBuffer.push(0.9);\n this.cBuffer.push(0.9);\n this.cBuffer.push(0.2);\n this.cBuffer.push(1.0);\n }\n \n else if(this.vBuffer[i + 2] < 0.55){\n this.cBuffer.push(0.3);\n this.cBuffer.push(0.3);\n this.cBuffer.push(0.7);\n this.cBuffer.push(1.0);\n }\n \n else if(this.vBuffer[i + 2] < 0.7){\n this.cBuffer.push(0.55);\n this.cBuffer.push(0.55);\n this.cBuffer.push(0.55);\n this.cBuffer.push(1.0);\n }\n \n else{\n this.cBuffer.push(0.0);\n this.cBuffer.push(0.3);\n this.cBuffer.push(0.9);\n this.cBuffer.push(1.0);\n }\n }\n}", "title": "" }, { "docid": "39fc350b4fa8ba49633607c534b81d32", "score": "0.52394027", "text": "function reseed_ISAAC_CSPRNG(){\t//this function called by timer, after mouse stop moving.\r\t//methods used\r\t//isaac.reset();\t\t\t\t\t\t\t//this no need to do, if seed is a string.\r\t//isaac.seed(seed_value);\t\t\t\t\t//set seed for ISAAC CSPRNG.\r\t\r/*\r\t//\t\t--- UNCOMMENT THIS TO TEST STATIC SEED ---\r\t\r\t//test static seed:\r\tif(static_seed_was_been_used!==true)\r\t{\r\t\tseed = 'a4f5537d0f28d641cdbc68552a33d435496cbdc468934445c67ac0687835995a';\t\t\t\t\t\t\t\t//some static hash\r\t\tseed2 = seed;\r\t\tisaac.seed(seed);\r\t\tgen_canvas();\t\t//GEN CANVAS PICTURE TO SAVE THIS AS PNG AND COMPARE.\r\t\t\t\t\t\t\t//This picture will be regenerated if mouse stop moving.\r\t\t\t\t\t\t\t//Pictures are identical bit by bit (this was been compared).\r\r\t\tdocument.getElementById('div').innerHTML +='<br>';\r\t\tdocument.getElementById('div').innerHTML +='<br>seed: '+seed+'<br>';\r\t\tfor(i=0; i<5; i++){document.getElementById('div').innerHTML += ('<br>isaac.random(): '+isaac.random()+', isaac.rand()'+isaac.rand());}\t//display values in the bottom on the page.\r\t\tdocument.getElementById('div').innerHTML +='<br>';\r\t\tdocument.getElementById('seed').innerHTML ='Seed was been specified as default...'; //change previous seed value\r\t\t\r\t\t//STATIC PRNG DATA\r\t\t\t//isaac.random(): 0.5783553360961378, isaac.rand()-291738841\r\t\t\t//isaac.random(): 0.21116508916020393, isaac.rand()-181761906\r\t\t\t//isaac.random(): 0.21071501355618238, isaac.rand()1776989619\r\t\t\t//isaac.random(): 0.5114362968597561, isaac.rand()-1177427244\r\t\t\t//isaac.random(): 0.709496984956786, isaac.rand()-1846247514\r\r\t\tstatic_seed_was_been_used=true;\r\t\treturn false;\r\t}\r\telse{\r\t\treturn; //throw new Error(\"This error need to stop script after get image.\");\r\t}\t\r\t//\t\t--- UNCOMMENT THIS TO TEST STATIC SEED ---\t\r*/\r\t\r\t//seed as string:\r\t//seed = 'hello.'; \t\t//seed as static hex string\r\t//isaac.seed(seed);\t\t//seed ISAAC\r\r\t//lines and artifatcs in canvas bitmap, was been with this seed:\r\t//seed = '31506536a2d5ba56fab4fbe42dc6b581ad68fede719dd464f6804b81542e3af4';\r\t//in old canvas PRNG - function random.next().\r\t//this hash can be copied if any key pressed on the input field.\r\t\r\t//If you see any lines, repeats, or artifacts, you can copy seed, by press any key on the input,\r\t//or you can save the image as PNG. seed will be in the name of the file.\r\t//This seed you can using as static seed for ISAAC CSPRNG, to get the same image bit by bit.\r\t//If you collect many seeds, this can be analized, to find any bugs or maybe vulnerabilities,\r\t//fix this and make this software the better and more secure.\r\t\r\tseed2 = seed; //copy seed to temp seed2 variable, to make this able for saving by press key on the input.\r\r\t//reseed and regenerate (only when moving stopped)\r\tif(hasStopped===true && hasChanged===false){ //if moving stopped\r\t\t//isaac.reset();\t//this no need to do, if seed is a string.\r\t\t\r\t\tisaac.seed(seed);\t//change seed for ISAAC CSPRNG, using the current string with hash as new seed.\r\r\t\tif(\ttypeof function_as_string !== 'undefined' \t//if function_as_string was been specified\r\t\t&&\ttypeof function_as_string === 'string'\t\t//and if this is a string\r\t\t){\r\t\t\teval(function_as_string);\t\t\t\t\t//run this here without add second timeout there\r\t\t}\r\t}\r}", "title": "" }, { "docid": "6c94cd78a03faca0ed7620e144515238", "score": "0.5238179", "text": "function generateDominantStars(number) {\n\n let x,y,r,areol,color;\n\n for (let i = 0; i < number; i++) {\n x = randomFromZeroTo(canvas.width);\n y = randomFromZeroTo(canvas.height);\n r = randomElementFrom(stars.radiusesDominant);\n areol = randomElementFrom(stars.areolasDominant);\n color = randomElementFrom(stars.colors);\n\n // Create gradient stars\n let grd = ctx.createRadialGradient(x,y,r, x,y,r+areol); // (x0, y0, r0, x1, y1, r1);\n grd.addColorStop(0, color);\n grd.addColorStop(1,\"transparent\");\n\n // Fill canvas with gradient stars\n ctx.fillStyle = grd;\n ctx.fillRect(0, 0, canvas.width, canvas.height); // fillRect(x, y, width, height) \n } \n}", "title": "" }, { "docid": "5b37600adb14c7301f0928450575cd6f", "score": "0.5235592", "text": "function shufflePalette() {\n\n\n\n}", "title": "" }, { "docid": "12b03f0aa6a2245a42c6ae0b5dfd8033", "score": "0.5235545", "text": "function NoiseGenFactory(context, stereo, bufSize){\n\t\tbufSize = bufSize || 8192;\n\t\tvar node = context.createScriptProcessor(bufSize, 1, 2);\n\t\tnode.onaudioprocess = function(e) {\n\t\t\tvar outBufferL = e.outputBuffer.getChannelData(0);\n\t\t\tvar outBufferR = e.outputBuffer.getChannelData(1);\n\t\t\tfor (var i = 0; i < bufSize; i++){\n\t\t\t\toutBufferL[i] = Math.random() * 2 - 1;\n\t\t\t\toutBufferR[i] = stereo ? Math.random() * 2 - 1 : outBufferL[i];\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "title": "" }, { "docid": "877c52dd9760fbf922f91789de31c33d", "score": "0.5233496", "text": "dither(on) {\n var sign = false === on ? \"+\" : \"-\";\n\n return this.out([sign + \"dither\"]);\n }", "title": "" }, { "docid": "94696a380679c2c3ac0ec3a3a7266631", "score": "0.52264863", "text": "function random() {\n //var x = Math.sin(seed++) * 10000; // lol -syd\n //return x - Math.floor(x);\n return Math.random();\n}", "title": "" }, { "docid": "1f3662292634afb5256fcae264090c42", "score": "0.52262783", "text": "function roll () {\n return Math.random() * 255; \n}", "title": "" }, { "docid": "168dcc3b635599a0975f6ae71bdddeaf", "score": "0.52216476", "text": "function genpremier(nbits) {\n while (true) {\n n = random(2, 2 ** nbits);\n if (millerRabin(n)) return n;\n }\n}", "title": "" }, { "docid": "05887292b881a821cd3d43f7ec9e8c1e", "score": "0.52028996", "text": "function epsilon() { return Math.pow(10,(passbandRipple/10))-1;} // Formula 4.03-5 on page 87 on MYJ", "title": "" }, { "docid": "dc6bc23c108fc4abc753a37a059688a0", "score": "0.51864004", "text": "getNoisyPredictions(numSamples, numLabels, noisePower) {\n let predictions = [];\n for (let i = 0; i < numSamples; i++) {\n predictions[i] = [];\n }\n const prior = 1.0 / parseFloat(numLabels);\n for (let thisSample = 0; thisSample < numSamples; thisSample++) {\n let sum = 0;\n for (let thisLabel = 0; thisLabel < numLabels; thisLabel++) {\n if (predictions[thisSample] == undefined) continue;\n let r = util.nextDouble(); //R.nextDouble()\n\n predictions[thisSample][thisLabel] =\n (1 - noisePower) * prior + noisePower * r;\n\n sum += predictions[thisSample][thisLabel];\n }\n for (let thisLabel = 0; thisLabel < numLabels; thisLabel++) {\n predictions[thisSample][thisLabel] /= sum;\n }\n }\n\n return predictions;\n }", "title": "" }, { "docid": "6c71e0508a65a07df723c15d58460e34", "score": "0.5172667", "text": "function frame() {\n\n rafId = requestAnimationFrame(frame)\n var cumul = 0;\n\n DELTA_TIME = Date.now() - LAST_TIME;\n LAST_TIME = Date.now();\n\n analyser.getByteFrequencyData(frequencyData);\n\n ctx.fillStyle = bgcolor;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n\n time += 0.001\n\n for (var i = 0; i < cercles.length; i++) {\n var cercle = cercles[i]\n displacement = simplex.noise2D(cercle.cos + time, cercle.sin + time) * amplitude + average\n// var displacement =average\n cercle.x = canvas.width / 2 + Math.cos(cercle.angle) * (radius * 2 + displacement)\n cercle.y = canvas.height / 2 + Math.sin(cercle.angle) * (radius * 2 + displacement)\n //cercle.render(ctx);\n }\n\n for (var i = 0; i < cercles2.length; i++) {\n var cercle = cercles2[i]\n displacement = average\n cercle.x = canvas.width / 2 + Math.cos(cercle.angle) * ( radius / 4 + displacement)\n cercle.y = canvas.height / 2 + Math.sin(cercle.angle) * ( radius / 4 + displacement)\n cercle.render(ctx);\n }\n\n if(frequencyData[0]>200 && flag == true) {\n squareW = Math.floor(Math.random() * 120) + 100;\n drawSquares(chicken)\n }\n if (frequencyData[0] > 200 && flag == false) {\n squareW = Math.floor(Math.random() * 120) + 100;\n drawSquares(bacon)\n }\n\n //SNARE\n if (frequencyData[291] > 150) {\n bgcolor = \"rgba(\" +\n Math.floor(Math.random() * 256) + \",\" +\n Math.floor(Math.random() * 256) + \",\" +\n Math.floor(Math.random() * 250) + \",0.1)\";\n drawSquares(banana)\n }\n\n if (average > 30) {\n drawLines(cercles, 0, petale); // white egg\n drawLines(cercles2, type, color); // yellow egg\n }\n\n\n for (var i = 0; i < cercles.length; i++) {\n // get the frequency according to current i\n percentIdx = i / cercles.length;\n frequencyIdx = Math.floor(1024 * percentIdx) // array of 1024\n cumul += frequencyData[frequencyIdx];\n\n }\n average = cumul / 255;\n audioSource.onended = function () {\n cancelAnimationFrame(rafId)\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n setTimeout(function(){\n canvas.classList.remove(\"hello\");\n },1000);\n setTimeout(function(){\n canvas.setAttribute(\"style\", \"display:none\")\n body.setAttribute(\"style\", \"background-color:white\")\n },2000);\n setTimeout(function(){\n main.setAttribute(\"style\", \"display:block\")\n end.classList.add(\"hello\");\n },3000);\n\n }\n }", "title": "" }, { "docid": "9359aef16b56c7d834a8eb1801f8be61", "score": "0.5172087", "text": "startAudio(){\n if (Game.audio != null) return;\n Game.audio = new AudioContext();\n var bufferSize = 512;\n var lastOut = 0.0;\n\n Game.noiseGain = Game.audio.createGain();\n Game.noiseGain.connect(Game.audio.destination);\n let noise = Game.audio.createScriptProcessor(bufferSize, 1, 1);\n noise.onaudioprocess = function(e) {\n var output = e.outputBuffer.getChannelData(0);\n for (var i = 0; i < bufferSize; i++) {\n var nn = Math.random() * 2 - 1;\n output[i] = (lastOut + (0.02 * nn)) / 1.02;\n lastOut = output[i];\n output[i] *= 3.5;\n }\n return true;\n }\n noise.connect(Game.noiseGain);\n Game.noiseGain.gain.value = 0;\n }", "title": "" }, { "docid": "57bd191e478b309cb9cbdf7810aaa114", "score": "0.5166535", "text": "function VioletNoiseFilterFactory(context, bufSize) {\n\t\tbufSize = bufSize || 8192;\n\t\tvar node = context.createScriptProcessor(bufSize, 2, 2);\n\t\tvar currentValueL = 0, currentValueR = 0;\n\n\t\tnode.onaudioprocess = function(e) {\n\t\t\tvar inBufferL = e.inputBuffer.getChannelData(0);\n\t\t\tvar inBufferR = e.inputBuffer.getChannelData(1);\n\t\t\tvar outBufferL = e.outputBuffer.getChannelData(0);\n\t\t\tvar outBufferR = e.outputBuffer.getChannelData(1);\n\n\t\t\tfor (var i = 0; i < bufSize; i++) {\n\t\t\t\toutBufferL[i] = inBufferL[i] - currentValueL;\n\t\t\t\toutBufferR[i] = inBufferR[i] - currentValueR;\n\t\t\t\tcurrentValueL = inBufferL[i];\n\t\t\t\tcurrentValueR = inBufferR[i];\n\t\t\t}\n\n\t\t\tvar t = minMax([outBufferL, outBufferR]);\n\t\t\tvar coeff = Math.max(Math.abs(t.min), t.max);\n\n\t\t\toutBufferL = normalize(outBufferL, coeff);\n\t\t\toutBufferR = normalize(outBufferR, coeff);\n\t\t}\n\n\t\treturn node;\n\t}", "title": "" }, { "docid": "3811adf98bf8fb4fbb48fd9fa6516364", "score": "0.5163873", "text": "function randomNoise(index) {\n\n \t// Prepare the cache.\n\tif(!cache[0])\n\t\tcache[0] = [];\n\t// Use the cache if possible.\n\telse if(cache[0][index])\n\t\treturn cache[0][index];\n\n\t// Or generate a new value.\n\tvar noise = Math.random();\n\n\t// And update the cache.\n\tcache[0][index] = noise;\n\n\treturn noise;\n}", "title": "" }, { "docid": "12a2ef24b9f0a7b833cea16ed5893187", "score": "0.51579845", "text": "function noise(x, y, z) {\n if (noiseProfile.generator === undefined) {\n // caching\n noiseProfile.generator = new PerlinNoise(noiseProfile.seed);\n }\n var generator = noiseProfile.generator;\n var effect = 1,\n k = 1,\n sum = 0;\n for (var i = 0; i < noiseProfile.octaves; ++i) {\n effect *= noiseProfile.fallout;\n switch (arguments.length) {\n case 1:\n sum += effect * (1 + generator.noise1d(k * x)) / 2;\n break;\n case 2:\n sum += effect * (1 + generator.noise2d(k * x, k * y)) / 2;\n break;\n case 3:\n sum += effect * (1 + generator.noise3d(k * x, k * y, k * z)) / 2;\n break;\n }\n k *= 2;\n }\n return sum;\n }", "title": "" }, { "docid": "3b3e791f81f5c9bfcc0de178a3525ec9", "score": "0.515152", "text": "function random() {\n var x = Math.sin(seed++) * 10000;\n return x - Math.floor(x);\n}", "title": "" }, { "docid": "0b108b78e7d1e195fcdb8a2d24c10221", "score": "0.515075", "text": "addShapeNoise(shapes, noiseX, noiseY) {\n noiseX = noiseX || 2;\n noiseY = noiseY || noiseX;\n\n for (let i = 0; i < shapes.length; i++) {\n let v = shapes[i];\n v.x += -noiseX / 2 + Math.random() * noiseX;\n v.y += -noiseY / 2 + Math.random() * noiseY;\n shapes[i] = v;\n }\n\n return shapes;\n }", "title": "" }, { "docid": "4fc3eaf09174ca22697a1527e257110e", "score": "0.5146267", "text": "function randTorps(){\n\n //math.random generate raqndom number bt 0 & 1\n // math.floor round inton an integer\n\n return Math.floor(Math.random() *3);\n}", "title": "" }, { "docid": "d5c8f501850f7ab60db38c7fe9c0016f", "score": "0.5143629", "text": "function random() {\n // Returns between 0 and 1\n var x = Math.sin(seed++) * 10000\n return x - Math.floor(x)\n}", "title": "" }, { "docid": "1e8091194b8f0a08c16a42c33ec2de94", "score": "0.51349276", "text": "function getRandom(){\n var r1 = 1 + seed % 83;\n var r2 = 1 + seed % 7;\n var r3 = 1 + seed % 43;\n seed = (seed * r3 / r2 * r1)%9999999999;\n var res = ((r1+r2+r3) / (83+7+43+3)); //gaussian result\n res = res * 10000; //get digits after the 5th one\n res = res - Math.floor(res); //wow it works, amazing !\n\n \n /* Method 2 : better, still many 0s\n res = res * 10;\n res = \n (res<3)*0 + \n (res>7)*1 + \n ((res>=3)&(res<=7))*((res-3) / 4);\n */\n\n /* Method 1 : unbalanced, many 0s\n res = (res<=0.25)*(0.5-res) + (res>=0.75)*(1.5-res); //fold between 0.25 and 0.75\n res = res + (res-0.5); //spread between 0 and 1\n */\n //res = ((res>=0)&(res<=1))*res + (res>1); // in case of overshoot\n return res;\n }", "title": "" }, { "docid": "1e33a93a6c88449164fbea0c20bbe3c7", "score": "0.51147753", "text": "function indexToSample (i,n) { return (i+0.5)/n; }", "title": "" }, { "docid": "db10515235629c813dead5e3e4d4423c", "score": "0.51141745", "text": "function makeBrownian(size,r,h,id) {\n let image = new PNG({\n width: size,\n height: size,\n filterType: 4\n });\n\n let a = new Date().getTime();\n field = brownian.genBrownian(size,r,h);\n let b = new Date().getTime();\n console.log(\"Time : \" + (b - a) + \"ms.\");\n\n\n let field_min = Infinity;\n let field_max = -Infinity;\n\n for(let el of field) {\n if(field_min > el)\n field_min = el;\n if(field_max < el)\n field_max = el;\n }\n\n let field_rg = field_max - field_min;\n // console.log(field_min,field_max);\n\n for(let y = 0; y < image.height; y++) {\n for(let x = 0; x < image.width; x++) {\n let i = (image.width * y + x);\n let idx = i << 2;\n let val = (field[i] - field_min) * 256 / field_rg;\n val = Math.max(0,Math.min(255,val));\n image.data[idx ] = val;\n image.data[idx+1] = val;\n image.data[idx+2] = val;\n image.data[idx+3] = 255;\n }\n }\n\n image.pack().pipe(fs.createWriteStream(\"./brownian/\" + size + \"_\" + r + \"_\" + h + \"_\" + id + \".png\"));\n}", "title": "" }, { "docid": "f6ff6c3be41928078cb3b82898a557ca", "score": "0.5111355", "text": "function whirl(height, width, rotation, dataIn, dataOut) {\n var r = Math.floor((Math.min(width,height)-1)/2);\n var Cx = Math.floor((width-1)/2);\n var Cy = Math.floor((height-1)/2);\n\n for ( var iny=0 ; iny < height ; iny++ ) {\n\tfor ( var inx=0 ; inx < width ; inx++ ) {\n\t var outy = 0;\n\t var outx = 0;\n\t var distance = Math.sqrt((iny-Cy)*(iny-Cy) + (inx-Cx)*(inx-Cx));\n\t if (distance > r) {\n\t\touty = iny;\n\t\toutx = inx;\n\t }\n\t else {\n\t\tvar alpha = Math.atan2(iny-Cy, inx-Cx);\n\t\tvar R = distort(rotation, distance, r);\n\t\t// clamp calls are probably not necessary\n\t\touty = clamp(0,Cy+Math.floor(Math.sin(alpha + R)*distance),height-1);\n\t\toutx = clamp(0,Cx+Math.floor(Math.cos(alpha + R)*distance),width-1);\n\t }\n\t dataOut[outy*width + outx] = dataIn[iny*width + inx];\n\t}\n }\n\n // Compute the missing pixels.\n\n for ( var outy=0 ; outy < height ; outy++ ) {\n\tfor ( var outx=0 ; outx < width ; outx++ ) {\n\t var v = dataOut[outy*width+outx];\n\t if (v != 0)\n\t\tcontinue;\n\t // For now: pick an adjacent value when possible. This tends to lead\n\t // to streaking, it's better to average.\n\t if (outx > 0 && outy > 0)\n\t\tdataOut[outy*width+outx] = dataOut[(outy-1)*width+(outx-1)];\n\t else if (outy > 0)\n\t\tdataOut[outy*width+outx] = dataOut[(outy-1)*width+outx];\n\t else if (outx > 0)\n\t\tdataOut[outy*width+outx] = dataOut[outy*width+(outx-1)];\n\t}\n }\n}", "title": "" }, { "docid": "c1f3aad9b2d9e73e0822c4d2ed59eb01", "score": "0.51090837", "text": "function propulsionNoise(v,rpm){\n\tif (v==0) {\n\t\treturn dB_rpm_i1(rpm);\n\t} else if ((v>0) && (v<=30)){\n\t\treturn dB_rpm_i2(rpm,v);\n\t} else if ((v>30) && (v<=50)){\n\t\treturn dB_rpm_i3(rpm,v);\n\t} else if ((v>50) && (v<=70)){\n\t\treturn dB_rpm_i4(rpm,v);\n\t} else if ((v>70) && (v<=100)){\n\t\treturn dB_rpm_i5(rpm,v);\n\t} else if (v>100){\n\t\treturn dB_rpm_i6(v);\n\t}\n}", "title": "" }, { "docid": "0a04c9255924dd03f8f8f6bffa24643e", "score": "0.51077145", "text": "function elips(imageDataTemp, xc, yc, radiusX, radiusY, r, g, b) {\r\n for (let theta = 0; theta < Math.PI*2; theta += 0.01) {\r\n x = xc + radiusX * Math.cos(theta);\r\n y = yc + radiusY * Math.sin(theta);\r\n\r\n gambarTitik(imageDataTemp, Math.ceil(x), Math.ceil(y), r, g, b);\r\n }\r\n}", "title": "" }, { "docid": "e8fa4b495d25edbeb10db7ee63beeb0b", "score": "0.5105457", "text": "function Reels() {\n var outCome = [0, 0, 0];\n var betImage = [\" \",\" \", \" \"];\n for (var spin = 0; spin < 3; spin++) {\n outCome[spin] = Math.floor((Math.random() * 65) + 1);\n switch (outCome[spin]) {\n case checkRange(outCome[spin], 1, 27): // 41.5% probability\n betImage[spin] = sources.blank;\n blanks++;\n break;\n case checkRange(outCome[spin], 28, 37): // 15.4% probability\n grapes++;\n betImage[spin] = sources.mangaSpiderman;\n break;\n case checkRange(outCome[spin], 38, 46): // 13.8% probability\n bananas++;\n betImage[spin] = sources.houseofMSpiderman;\n break;\n case checkRange(outCome[spin], 47, 54): // 12.3% probability\n oranges++;\n betImage[spin] = sources.lastStandSpiderman;\n break;\n case checkRange(outCome[spin], 55, 59): // 7.7% probability\n betImage[spin] = sources.electroProofSpiderman;\n cherries++;\n break;\n case checkRange(outCome[spin], 60, 62): // 4.6% probability\n betImage[spin] = sources.bulletProofSpiderman;\n bars++;\n break;\n case checkRange(outCome[spin], 63, 64): // 3.1% probability\n betImage[spin] = sources.armoredSpiderman;\n bells++;\n break;\n case checkRange(outCome[spin], 65, 65): // 1.5% probability\n betImage[spin] = sources.battlewornSpiderman;\n sevens++;\n break;\n }\n }\n console.log(\"Grapes: \" + grapes + \" Bananas: \" + bananas + \" Oranges: \" + oranges);\n console.log(\"Cherries: \" + cherries + \" Bars: \" + bars + \" Bells: \" + bells);\n console.log(\"Sevens: \" + sevens + \" Blanks: \" + blanks);\n return betImage;\n}", "title": "" }, { "docid": "f51259f86f94ea5b6edf06715209f626", "score": "0.5102242", "text": "function StellarColorSample(x, y) {\n\t\t// ref: http://www.jstor.org/stable/40710095\n\t\tvar probType = [0.12, 0.31, 0.12, 0.10, 0.28, 0.07]; // order: BAFGKM\n\t\tvar probBrightness = [0.006, 0.019, 0.063, 0.214, 0.698]; // 2.5 ~ 6.5 (step=1.0)\n\n\t\t// ref: http://www.vendian.org/mncharity/dir3/starcolor/\n\t\tvar stellarColors = [\n\t\t\t[0xaa, 0xbf, 0xff], // B\n\t\t\t[0xca, 0xd7, 0xff], // A\n\t\t\t[0xf8, 0xf7, 0xff], // F\n\t\t\t[0xff, 0xf4, 0xea], // G\n\t\t\t[0xff, 0xd2, 0xa1], // K\n\t\t\t[0xff, 0xcc, 0x6f] // M\n\t\t];\n\n\t\t// get stellar type\n\t\tfunction getType(x) {\n\t\t\tvar acc = 0;\n\t\t\tfor (var i = 0; i < probType.length; i++) {\n\t\t\t\tacc += probType[i];\n\t\t\t\tif (acc >= x)\n\t\t\t\t\treturn i;\n\t\t\t}\n\t\t\treturn probType.length - 1;\n\t\t}\n\n\t\t// get stellar brightness\n\t\t// mapping input to n/probBrightness.length (n = 1, 2 ... probBrightness.length)\n\t\tfunction getBrightness(x) {\n\t\t\tvar acc = 0;\n\t\t\tfor (var i = 0; i < probBrightness.length; i++) {\n\t\t\t\tacc += probBrightness[i];\n\t\t\t\tif (acc >= x)\n\t\t\t\t\treturn (1 - i / probBrightness.length);\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar stellarType = getType(x);\n\t\tvar stellarBrightness = Math.min(getBrightness(y) + 0.2, 1);\n\t\treturn ({\n\t\t\tr: stellarColors[stellarType][0] / 256 * stellarBrightness,\n\t\t\tg: stellarColors[stellarType][1] / 256 * stellarBrightness,\n\t\t\tb: stellarColors[stellarType][2] / 256 * stellarBrightness\n\t\t});\n\t}", "title": "" }, { "docid": "bef9553512c939b9831468ee1eb21a8a", "score": "0.5098884", "text": "function randowBrown() {\n var color = [];\n color[RED] = 1;\n var g = color[GREEN] = randomBetween(GREEN_RED_RATIO[0], GREEN_RED_RATIO[1]);\n color[BLUE] = randomBetween(g * BLUE_GREEN_RATIO[0], g * BLUE_GREEN_RATIO[1]);\n return color;\n}", "title": "" }, { "docid": "37b37febbb8d8c1ab166960888fec5b6", "score": "0.5096057", "text": "function makePattern(length, style){\n\n var pattern = []; \n \n//simplistic style - random, but no vowels/consonants in a row\nif(style == \"simp\"){\n pattern[0] = Math.round(Math.random());\n for(var i = 1; i < length; i++){ \n if( pattern[i-1] == 0){\n pattern[i] = 1;\n }else{\n pattern[i] = 0;\n } \n }\n}\n\n//soft style allows no consonants clusters\nelse if(style == \"soft\"){\n for(var i = 0; i < length; i++){ \n if(pattern.length > 1 && pattern[i-1] == 0 && pattern[i-2] == 0){\n pattern[i] = 1;\n }else if(pattern[i-1] == 1){\n pattern[i] = 0;\n }else{\n pattern[i] = Math.round(Math.random());\n } \n }\n}\n\n//harsh style allows no dipthongs\nelse if(style == \"harsh\"){\n for(var i = 0; i < length; i++){ \n if(pattern.length > 1 && pattern[i-1] == 1 && pattern[i-2] == 1){\n pattern[i] = 0;\n }else if(pattern[i-1] == 0){\n pattern[i] = 1;\n }else{\n pattern[i] = Math.round(Math.random());\n } \n }\n}\n\n//general style - random allowing two vowels/consonants in a row\n else{\n for(var i = 0; i < length; i++){ \n if(pattern.length > 1 && pattern[i-1] == 0 && pattern[i-2] == 0){\n pattern[i] = 1;\n }else if(pattern.length > 1 && pattern[i-1] == 1 && pattern[i-2] == 1){\n pattern[i] = 0;\n }else{\n pattern[i] = Math.round(Math.random());\n } \n }\n}\n\n return pattern;\n}//end of makePattern", "title": "" }, { "docid": "2c4be1e532fc14b6ad5480dfea9f46d0", "score": "0.5092439", "text": "function prob(noterun){\n\tvar a = 0\n\tvar asharp=0\n\tvar b=0 \n\tvar c=0\n\tvar csharp=0\n\tvar d=0\n\tvar dsharp=0\n\tvar e=0\n\tvar f=0\n\tvar fsharp=0\n\tvar g=0\n\tvar gsharp=0\n\tfor (i = 0; i < noterun.length; i++){\n\t\tswitch (noterun[i]){\n\t\t\tcase \"A\":\n\t\t\t\ta++;\n\t\t\t\tbreak;\n\t\t\tcase \"A#\":\n\t\t\t\tasharp++;\n\t\t\t\tbreak;\n\t\t\tcase \"B\":\n\t\t\t\tb++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc++;\n\t\t\t\tbreak;\n\t\t\tcase \"C#\":\n\t\t\t\tcsharp++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td++;\n\t\t\t\tbreak;\n\t\t\tcase \"D#\":\n\t\t\t\tdsharp++;\n\t\t\t\tbreak;\n\t\t\tcase \"E\":\n\t\t\t\te++;\n\t\t\t\tbreak;\n\t\t\tcase \"F\":\n\t\t\t\tf++;\n\t\t\t\tbreak;\n\t\t\tcase \"F#\":\n\t\t\t\tfsharp++\n\t\t\t\tbreak;\n\t\t\tcase \"G\":\n\t\t\t\tg++;\n\t\t\t\tbreak;\n\t\t\tcase \"G#\":\n\t\t\t\tgsharp++;\n\t\t\t\tbreak;\n\n\t\t}\n\n\t}\n\tvar keyvals = new Object();\n\tkeyvals['a'] = a;\n\tkeyvals['a#'] = asharp\n\tkeyvals['b'] = b\n\tkeyvals['c'] = c\n\tkeyvals['c#'] = csharp\n\tkeyvals['d'] = d\n\tkeyvals['d#'] = dsharp\n\tkeyvals['e'] = e\n\tkeyvals['f'] = f\n\tkeyvals['f#'] = fsharp\n\tkeyvals['g'] = g\n\tkeyvals['g#'] = gsharp\n\n\tvar compareto = 0;\n\tvar temp = []\n\tvar w = 0;\n\tfor (var value in keyvals){\n \t\ttemp[w] = keyvals[value];\n \t\tw++\n \t} \n \tkeys = keyvals;\n\n\t// var notenames = ['a','a#','b','c','c#','d','d#','e','f','f#','g','g#']\n\n\ttemp.sort(function(a, b){return a-b}).reverse();\n\tvar keynotes = []\n\tfor (k = 0; k< 7; k++){\n\t\tkeynotes[k] = temp[k]\n\t}\n\n\n\tvar counter = 0;\n\tvar check = false;\n\n\t// this function sorts an array with the most used notes\n\tnotes_key = keynotes;\n\tfinalkeys=[]\n\t\tfor(j=0;j<keynotes.length;j++){\n\t\t\tcheck = false;\n\t \t\t\n\t \t\t\tfor (var value in keyvals){\n\t \t\t\tif (keynotes[j]==keyvals[value] && keyvals[value]!=0 && finalkeys.contains(value)==false){\n\t \t\t\t\tfinalkeys[j]=(value);\n\t \t\t\t\tcheck = true;\n\n \t\t\t// \tif(j==0){\n \t\t\t// \t\tvar use = keyvals[value];\n \t\t\t// \t}\n \t\t\t// \tif (keyvals[value]==use) {most_likely.push(value)}\n\n \t\t\t// }\n\n\n \t\t}\n \t\t\tif (check==true){\n \t\tcounter++;\n \t\t}\n \t}\n \t\t\n \t} \n\n\tfinalnotes = finalkeys;\n\n\t//sharps or not? this function fails when sharp (need to fix)\n\tif(note.length>1 && note[1]==\"#\")\n\t{\n\t\ta_note = asharp\n\t\tb_note = c\n\t\tc_note = csharp\n\t\td_note = dsharp\n\t\te_note = f\n\t\tf_note = fsharp\n\t\tg_note = gsharp\t\n\t}\n\telse\n\t{\n\t\ta_note = a;\t\t\n\t\tb_note = b\n\t\tc_note = c\t\t\n\t\td_note = d\t\t\n\t\te_note = e\n\t\tf_note = f\t\t\n\t\tg_note = g\t\n\t}\n\n\t}", "title": "" } ]
22480c123825dc751b758e04592e2eac
Returns the list of input keys Used by stepreporter returns Object, key key name, value key type
[ { "docid": "4678b6d4b1b6294affca8d112cf73b64", "score": "0.58845985", "text": "async inputKeys() {\n // TODO: uncomment it when implemented in all steps\n // throw new Error('Input keys method must be implemented');\n }", "title": "" } ]
[ { "docid": "adc76e9f8fde5efcf1116de6cab803e8", "score": "0.675033", "text": "*keys() {\n const keys = this.#requestKeys();\n for (const key of keys) {\n const value = this.get(key);\n if (value) {\n yield key;\n }\n }\n }", "title": "" }, { "docid": "0e1c8b873367a99a271a83c3e9bbbcc5", "score": "0.6711617", "text": "keys() {\n let keyList = [];\n this._map.forEach((v, k) => {\n keyList.push(k);\n });\n return keyList;\n }", "title": "" }, { "docid": "7f0fecba4eabe2b932bc329bcfccd6c7", "score": "0.67111534", "text": "function _keys (obj, keyWhiteList) {\n var keys = [],key;\n keyWhiteList = keyWhiteList || ['name','rotate','flip','size','stack','border','fw','inverse','spin','alt'];\n for (key in obj) {\n if (keyWhiteList.indexOf(key) !== -1) {\n keys.push(key);\n }\n }\n return keys;\n }", "title": "" }, { "docid": "c9f87c48818253637ebbccf88aeb8a91", "score": "0.6709577", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n//for var key in object, return in array form (not console.log)\n//use a new variable to make an empty array and push into it\n//key names (strings) not values\nvar arrayOfKeys = []; \n for (var key in object) {\narrayOfKeys.push(key);\n }\n\nreturn arrayOfKeys; \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "262d36eb04e07506a4c5b1ed19f0fa77", "score": "0.66730803", "text": "function get_keys() {\n keys = send_to_utils(\"get_list\").split('!@#$');\n return keys;\n}", "title": "" }, { "docid": "e96638955d56688ae9b803ced504eb1e", "score": "0.6649351", "text": "function getKeys() {\n var keyObj = {};\n var keyType = {};\n\n // TODO: Implement unified parser for schema types.\n switch (options.schema[options.schema.primaryKey].toLowerCase()) {\n case 'string':\n keyType.S = options.item[options.schema.primaryKey];\n break;\n case 'number':\n keyType.N = options.item[options.schema.primaryKey];\n break;\n case 'binary':\n keyType.B = options.item[options.schema.primaryKey];\n break;\n default:\n keyType.S = options.item[options.schema.primaryKey];\n }\n\n keyObj[options.schema.primaryKey] = keyType;\n\n return keyObj;\n }", "title": "" }, { "docid": "e8af79580a042b9021c8ba058317e866", "score": "0.6642301", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n //we want to take an input object and return an array of only the keys\n //to do this we need to use the for var key in loop\n //we need to start by declaring an object we want to return at the end of this problem\n var objectKeys = []\n //next we make our for in loop with the code block executing a push method to \n //push each key into our variable objectKeys\n for(var key in object){\n objectKeys.push(key)\n }\n return objectKeys;\n \n \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "437a4ad21e34f443b969f3b60c028c86", "score": "0.6522582", "text": "keys() {\n const keys = [];\n this.forEach(({ key }) => keys.push(key));\n return keys;\n }", "title": "" }, { "docid": "b561ee92da98f460e63fb92cd5dda8c9", "score": "0.64245456", "text": "function keyGetter(arr){ // gathers the keys\n var keys = [];\n for (var key in arr) {\n keys.push(key);\n}\n return keys\n}", "title": "" }, { "docid": "7cc95f5db1ba1927adf2438304a9089f", "score": "0.6401955", "text": "function _keys() {\n var storage = this._type, l = arguments.length, s = window[storage], keys = [], o = {};\n // If at least 1 argument, get value from storage to retrieve keys\n // Else, use storage to retrieve keys\n if (l > 0) {\n o = _get.apply(this, arguments);\n } else {\n o = s;\n }\n if (o && o._cookie) {\n // If storage is a cookie, use js-cookie to retrieve keys\n var cookies = Cookies.get();\n for (var key in cookies) {\n if (cookies.hasOwnProperty(key) && key != '') {\n keys.push(key.replace(o._prefix, ''));\n }\n }\n } else {\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n keys.push(i);\n }\n }\n }\n return keys;\n }", "title": "" }, { "docid": "7cc95f5db1ba1927adf2438304a9089f", "score": "0.6401955", "text": "function _keys() {\n var storage = this._type, l = arguments.length, s = window[storage], keys = [], o = {};\n // If at least 1 argument, get value from storage to retrieve keys\n // Else, use storage to retrieve keys\n if (l > 0) {\n o = _get.apply(this, arguments);\n } else {\n o = s;\n }\n if (o && o._cookie) {\n // If storage is a cookie, use js-cookie to retrieve keys\n var cookies = Cookies.get();\n for (var key in cookies) {\n if (cookies.hasOwnProperty(key) && key != '') {\n keys.push(key.replace(o._prefix, ''));\n }\n }\n } else {\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n keys.push(i);\n }\n }\n }\n return keys;\n }", "title": "" }, { "docid": "7cc95f5db1ba1927adf2438304a9089f", "score": "0.6401955", "text": "function _keys() {\n var storage = this._type, l = arguments.length, s = window[storage], keys = [], o = {};\n // If at least 1 argument, get value from storage to retrieve keys\n // Else, use storage to retrieve keys\n if (l > 0) {\n o = _get.apply(this, arguments);\n } else {\n o = s;\n }\n if (o && o._cookie) {\n // If storage is a cookie, use js-cookie to retrieve keys\n var cookies = Cookies.get();\n for (var key in cookies) {\n if (cookies.hasOwnProperty(key) && key != '') {\n keys.push(key.replace(o._prefix, ''));\n }\n }\n } else {\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n keys.push(i);\n }\n }\n }\n return keys;\n }", "title": "" }, { "docid": "637da2fafc26ae6b379d414c2bef719d", "score": "0.64000696", "text": "function getKeys()\n{\n\tvar productKeys = new Array();\n\tfor( var i in parsedJSON)\n\t{\n\t\tproductKeys.push(i);\n\t}\n\t\n\t//document.write(productKeys);\n\treturn productKeys;\n}", "title": "" }, { "docid": "e10dfc9feac54a498783fa8f9422edc6", "score": "0.63819057", "text": "keys() {\n let keys = arguments;\n return this.newMeta(function(){\n if (keys.hasOwnProperty(\"0\")) {\n if (typeof(keys[0]) == \"string\") {\n let caseSensitive = keys.hasOwnProperty(\"1\");\n for (let i = 0; i < keys[0].length; i++){\n if (this.origin.instructions.hasOwnProperty(i)){\n if (caseSensitive)\n this.origin.keyList.push(keys[0].charCodeAt(i));\n else\n this.origin.keyList.push([keys[0].toUpperCase().charCodeAt(i),\n keys[0].toLowerCase().charCodeAt(i)]);\n }\n }\n }\n if (typeof(keys[0]) == \"number\") {\n for (let k in keys) {\n if (keys[k]<0)\n console.log(\"Warning: invalid key code for selector instruction #\"+k+\", not attaching keys to it.\");\n else\n this.origin.keyList.push(keys[k]);\n }\n }\n }\n this.origin.shuffledKeyList = this.origin.keyList;\n this.done();\n });\n }", "title": "" }, { "docid": "be9108aa4861febd7e1e7a784f4e7e74", "score": "0.63688695", "text": "function getKeysArray()\n\t\t{\n\t\t\tif(UI.items)Utils.getKeys($library.items);\n\t\t}", "title": "" }, { "docid": "16dbc512694f09af16ed62a07ac2c891", "score": "0.6367534", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n \n//create an array variable that will store object's keys\n var objArray = [];\n//Use a for-in loop that can access an object's keys and then add them to an array\n for (var key in object) {\n objArray.push(key);\n } return objArray;\n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "e9fcf48e90453cec345d9ddb49b1044b", "score": "0.6328392", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n \n\n var array = []\n for (var key in object) {array.push(key)};\n\n return array \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "612c47785ece4a735ee6c928c6d2c1aa", "score": "0.63229126", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n var arr = [];\n for(var key in object){\n arr.push(key); \n }\n return arr;\n\n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "ae5be431000d24df7d3fd5fedf5b83e2", "score": "0.63175243", "text": "keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }", "title": "" }, { "docid": "d1c37d27bb5c1d67e5e6181b99de2f97", "score": "0.63171273", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\nvar array = [];\nfor (var key in object) {\n array.push(key);\n //use .push once data is collected to create an array with the data\n \n}\n//use return statement to finish program after looping\nreturn array;\n \n \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "9957eeaca28f1bedf359b3380536eceb", "score": "0.6283185", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n // I: object O: array of object keys\n // declare global array for use inside for in loop\n // for in loop through object keys and push into array\n var arrayContainingObjKeys = [];\n for (var key in object){\n arrayContainingObjKeys.push(key);\n }\n // return global array to return object keys for the function\n return arrayContainingObjKeys;\n \n \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "5326768d515264a3736a8695d36bc2c4", "score": "0.6277359", "text": "getKeys() {\n return this.AdjList.keys();\n }", "title": "" }, { "docid": "99ffad764b2a3d865499e429d9294097", "score": "0.62695915", "text": "function getKeys(obj){\n var keys = [];\n for(var key in obj){\n keys.push(key);\n console.log(key+\": \"+obj[key]);\n }\n console.log(\"----------------------------\");\n}", "title": "" }, { "docid": "a460cca7e32e9f63f8f3cae17a22b856", "score": "0.626011", "text": "keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }", "title": "" }, { "docid": "a460cca7e32e9f63f8f3cae17a22b856", "score": "0.626011", "text": "keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }", "title": "" }, { "docid": "a460cca7e32e9f63f8f3cae17a22b856", "score": "0.626011", "text": "keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }", "title": "" }, { "docid": "09d4a5d513389e864d0b136804446ba3", "score": "0.6242991", "text": "static getKeyVal(object) {\n var keyValues = object.constructor.getKey();\n\n keyValues.forEach((k, i) => {\n keyValues[i] = object[k];\n });\n\n // return object[object.constructor.getKey()];\n\n return keyValues;\n }", "title": "" }, { "docid": "11f06417d888a674ffa8b79ff700f92d", "score": "0.6241812", "text": "keys () {\n return this.keyMap.values()\n }", "title": "" }, { "docid": "ad52184430b8d96abe83926613dec949", "score": "0.62407124", "text": "keys() {\n const keysArray = [];\n for (let i = 0; i < this.data.length; i++) {\n if(this.data[i]) {\n keysArray.push(this.data[i][0][0])\n }\n }\n return keysArray\n }", "title": "" }, { "docid": "a5faa76c51dc9b907d091a0487777757", "score": "0.6230316", "text": "*entries() {\n const keys = this.#requestKeys();\n for (const key of keys) {\n const value = this.get(key);\n if (value) {\n yield [key, value];\n }\n }\n }", "title": "" }, { "docid": "da85ab18f26ed88c8eb3e5c4b11571cd", "score": "0.6205674", "text": "keys() {\n const keysArray = [];\n for (let i = 0; i < this.data.length; i++) {\n if (this.data[i]) {\n keysArray.push(this.data[i][0][0]);\n // because we have array in array in array\n }\n }\n return keysArray;\n }", "title": "" }, { "docid": "29a615f2f4cbb9e205fe548400c6624d", "score": "0.6163936", "text": "getAllKeys() {\n const arr = [];\n for (const property in this.data) {\n arr.push(this.data[property].key);\n }\n return arr.join(', ')\n }", "title": "" }, { "docid": "b6b8f679420dfd677e6312df96592293", "score": "0.6144891", "text": "function keysToString(object) {\n//function w/ object param \n let newArr = [];\n //create new array for output\n for(let key in object){\n //use for in loop to loop thru object\n if(typeof key === 'string'){\n //if the key is a string\n newArr.push(key);\n //push into the array\n }\n }\n return newArr.join(' ');\n //return the array w/ all strings separated by space\n}", "title": "" }, { "docid": "e81f83aedb9cea6aec809f30b0374ac1", "score": "0.61349076", "text": "function getObjectValues(object) {\n // YOUR CODE BELOW HERE //\n//for var key in object, return in array form (not console.log)\n//use a new variable to make an empty array and push into it\n//values, not key names \nvar arrayOfKeys = []; \n for (var key in object) {\narrayOfKeys.push(object[key]);\n }\n\nreturn arrayOfKeys; \n \n \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "56943982b819a5b24f1f1443ef74efd2", "score": "0.61321497", "text": "function myGetKeys(keys) {\n\tthis.check2Arrays();\t\n}", "title": "" }, { "docid": "68ad78f9e0127c226fd9f5c6d4f7e52a", "score": "0.6123853", "text": "function keysToString(object) {\n//create a variable to store keys\nlet strValues = [];\n//loop through object to get the keys\nfor(let key in object){\n //push keys into empty array\n strValues.push(key);\n}\n//turn array to string\n//join them with a space to seperate each key name\nreturn strValues.join(' ');\n}", "title": "" }, { "docid": "6e31ec5c7c053239a671201f76367236", "score": "0.612003", "text": "function getKeysObject()\n\t\t{\n\t\t\tif(UI.items)Utils.getKeys($library.items[0]);\n\t\t}", "title": "" }, { "docid": "8cdfaf1e0d6f7144fb06352709b9b81e", "score": "0.61112803", "text": "function get_key() {\n return key_inp.value;\n}", "title": "" }, { "docid": "b464cbded3ff584910696979e35b5544", "score": "0.61085755", "text": "getDataKeys() {\n let keys = new Set();\n // Collect all the keys.\n for (const data of this.props.data) {\n for (const key in data) {\n keys.add(key);\n }\n }\n return Array.from(keys);\n }", "title": "" }, { "docid": "a32f33133b0c1f21e025727c491100bc", "score": "0.60970724", "text": "function e_k(){return Object.keys(def.employee)}", "title": "" }, { "docid": "a8aca5f57df7fe9bcbc2d34cd836d634", "score": "0.6096081", "text": "keys() {\n return hiddenEMap.get(this).keys();\n }", "title": "" }, { "docid": "2d9dddf0eac57ed6e765ae7b7294ae84", "score": "0.6077887", "text": "keys(){return this.#arr.map(function(x){return x.key})}", "title": "" }, { "docid": "7c538e564acef340b5b52dd0be514a1b", "score": "0.6072269", "text": "async outputKeys() {\n // TODO: uncomment it when implemented in all steps\n // throw new Error('Input keys method must be implemented');\n }", "title": "" }, { "docid": "c9879a07450c827808ffd726e9c38b2d", "score": "0.6071261", "text": "function getKeys(simpldict) {\n var keys = [];\n var svo = [];\n var pass2act = [];\n var prox = [];\n var split = [];\n var quoteInv = [];\n var itemsvo = \"\";\n var itempass2act = \"\";\n var itemprox = \"\";\n var itemsplit = \"\";\n var itemquoteInv = \"\";\n for (key in simpldict) {\n itemsvo = key.match(/-svo_[0-9]*/g);\n itempass2act = key.match(/-pass2act_[0-9]*/g);\n itemprox = key.match(/-prox_[0-9]*/g);\n itemsplit = key.match(/-split_[0-9]*/g);\n itemquoteInv = key.match(/-quoteInv_[0-9]*/g);\n if (itemsvo != null) {\n svo.push(itemsvo[0]);\n } else if (itempass2act != null) {\n pass2act.push(itempass2act[0]);\n } else if (itemprox != null) {\n prox.push(itemprox[0]);\n } else if (itemsplit != null) {\n split.push(itemsplit[0]);\n } else if (itemquoteInv != null) {\n quoteInv.push(itemquoteInv[0]);\n }\n }\n keys.push(svo);\n keys.push(pass2act);\n keys.push(prox);\n keys.push(split);\n keys.push(quoteInv);\n keynames = keys;\n console.log(keynames);\n}", "title": "" }, { "docid": "4c679d7352393ebc033a478122073220", "score": "0.60654455", "text": "function getKeys(){\n var numberRowkeys = ['1', '2', '3','4', '5', '6', '7', '8', '9', '0', '-', '='];\n var topRowkeys = ['Q', 'W','E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '[', ']', '\\\\'];\n var midRowkeys = ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ';', '\\''];\n var bottomRowkeys = ['Z', 'X', 'C', 'V', 'B', 'N', 'M', ',', '.','/'];\n var keys = [numberRowkeys,topRowkeys,midRowkeys,bottomRowkeys];\n return keys;\n}", "title": "" }, { "docid": "74bc0b49bd8c10056a6d436ff1c44e68", "score": "0.6049919", "text": "function keys(obj) {\r\n\tlet rez = [];\r\n\tfor (let key in obj) {\r\n\t\tif (obj.hasOwnProperty(key)) {\r\n\t\t\trez.push(key);\r\n\t\t}\r\n\r\n\t}\r\n\treturn rez;\r\n}", "title": "" }, { "docid": "dbd5c859abadfb661349284dc2fc1642", "score": "0.6041497", "text": "function getObjectKeys(object) {\n // YOUR CODE BELOW HERE //\n /* Printing the object keys from a given object.\n Input: object\n Output: returns an array of the object kesys of an object to console.\n Constraints: none.\n Edge Case: none.\n This calls for a for in loop that allows me to access the object keys!\n */\n for (var key in object){\n return key;\n }\n \n \n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "44a307810c5855194c3ce1a0fd9eda47", "score": "0.6037323", "text": "function keys(obj) {\r\n var ownKeys = [];\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n ownKeys.push(key);\r\n }\r\n }\r\n return keys;\r\n }", "title": "" }, { "docid": "33859fa57e14d19556eeee2667c248fd", "score": "0.6033692", "text": "keys() {\n this.init();\n return Array.from(this.map.keys());\n }", "title": "" }, { "docid": "33859fa57e14d19556eeee2667c248fd", "score": "0.6033692", "text": "keys() {\n this.init();\n return Array.from(this.map.keys());\n }", "title": "" }, { "docid": "33859fa57e14d19556eeee2667c248fd", "score": "0.6033692", "text": "keys() {\n this.init();\n return Array.from(this.map.keys());\n }", "title": "" }, { "docid": "ca854f23070da89218a82ef96570dc5f", "score": "0.603208", "text": "keys() {\n return Object.keys(this._attributes);\n }", "title": "" }, { "docid": "f6c88d0b3c8ea005c85e2f5f062d4965", "score": "0.6031787", "text": "getAllKeys() {\n const keys = [];\n for (let i = 0; i < this.data.length; i++) {\n if (this.data[i]) {\n for (let j = 0; j < this.data[i].length; j++) {\n keys.push(this.data[i][j][0]);\n }\n }\n }\n return keys;\n }", "title": "" }, { "docid": "aea6ef5601b495974bcc5e3e405264bc", "score": "0.60281277", "text": "getKeys() {\n return this.keys;\n }", "title": "" }, { "docid": "b161bb479d2c42fb32783f3ea3d2bd57", "score": "0.60193527", "text": "function arrayKeys(input) {\n var output = new Array();\n var counter = 0;\n for (i in input) {\n output[counter++] = i;\n } \n return output; \n}", "title": "" }, { "docid": "4a0c0cf54c2ccfa5d0abacd581e1d690", "score": "0.6013217", "text": "*[Symbol.iterator]() {\n const keys = this.#requestKeys();\n for (const key of keys) {\n const value = this.get(key);\n if (value) {\n yield [key, value];\n }\n }\n }", "title": "" }, { "docid": "72bbc3f6b8f95f8dc0ccc9701e337a12", "score": "0.6006151", "text": "keys() {\n this.init();\n return Array.from(this.map.keys());\n }", "title": "" }, { "docid": "5dd8c81b84b99feca5365ba94770ce64", "score": "0.5969889", "text": "function keys(object)\n{\n var k = new Array();\n for (p in object) {\n\tk.push(p);\n }\n return k;\n}", "title": "" }, { "docid": "eea432ec064800b113c0a1dab808f049", "score": "0.5951878", "text": "function getKeys() {\n const firstTime = !storage.getFromStorage(\"AES\") || !storage.getFromStorage(\"RSA1\") || !storage.getFromStorage(\"RSA2\");\n\n const aesKey = !storage.getFromStorage(\"AES\") ? \n AESHandler.GenerateKey() :\n aesFromStorage(storage.getFromStorage(\"AES\"));\n\n const rsaKey1 = new RSAHandler(storage.getFromStorage(\"RSA1\"));\n const rsaKey2 = new RSAHandler(storage.getFromStorage(\"RSA2\"));\n\n // Parse values to hex and store to localstorage\n storage.setToStorage(\"AES\", aesToStorage(aesKey));\n storage.setToStorage(\"RSA1\", rsaToStorage(rsaKey1));\n storage.setToStorage(\"RSA2\", rsaToStorage(rsaKey2));\n\n return {\n aesKey,\n rsaKey1,\n rsaKey2,\n firstTime,\n }\n}", "title": "" }, { "docid": "ba08e99de925c56b01abaa6d2ef1097b", "score": "0.59390044", "text": "function getKeys(obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }\n return keys;\n }", "title": "" }, { "docid": "332cd83079877f1652023acbad91ee34", "score": "0.5928357", "text": "extractInputKeys(data) {\n let input = clone(data);\n\n for (let key of Object.keys(input)) {\n let prop = this.publicProperties[key];\n\n // typeof check is added in order to avoid attempts to convert already substituted ObjectId like userId\n // TODO: but it looks like kind of workaround\n if (prop && prop.type == 'id' && typeof input[key] === 'string') {\n input[key] = fromGlobalId(input[key]).id;\n }\n }\n\n return input;\n }", "title": "" }, { "docid": "323796b38f6414da6ac8972154227ea8", "score": "0.5901209", "text": "function getAllKeys(obj){\n var keys = Object.keys(obj);\n return keys;\n }", "title": "" }, { "docid": "79c8e2cde66d48f5f36350af9c6bc197", "score": "0.58960843", "text": "function keyNames(obj) {\n return Object.keys(obj).join(', ');\n }", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "987539d27ddbabcad1a19767ba2f31f7", "score": "0.58857065", "text": "keys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}", "title": "" }, { "docid": "3c7b37859a15b97981b486bd08f76d4b", "score": "0.5885626", "text": "allKeys() {\n return this.k2s.keys();\n }", "title": "" }, { "docid": "36d7aa94fa4df2a3bc344ea46957d030", "score": "0.5884891", "text": "function getKeys(keys){\n if(typeof keys !== 'undefined' && keys !== null){\n if(keys.constructor.name === 'Object'){\n return Object.keys(keys);\n }else if (keys.constructor.name === 'Array' || typeof keys === 'string'){\n return Array.from(keys);\n }\n }throw TypeError('[largeSync] - ' + keys + ' must be of type \"Object\", \"Array\" or \"string\"');\n }", "title": "" }, { "docid": "588b942b1eb694a3e6e6cf21c93a0d99", "score": "0.58802694", "text": "toKeyArray() {\r\n return [...this.keys()];\r\n }", "title": "" }, { "docid": "38a88b4389ddd42dbafbd7de7eeb2d18", "score": "0.5877144", "text": "keys() {\n if (!this.data.length) return undefined;\n\n let keysArray = [];\n for (let i = 0; i < this.data.length; i++) {\n if (this.data[i] && this.data[i].length) {\n if (this.data[i].length > 1) {\n for (let j = 0; j < this.data[i].length; j++) {\n keysArray.push(this.data[i][j][0]);\n }\n } else keysArray.push(this.data[i][0][0]);\n }\n }\n return keysArray;\n }", "title": "" } ]
3a6944d14f602b1d6a7d7f8a555fe64d
matchMany is a function to match one of an array of token kinds to the next token and consume the token. Returns kSuccess if an expected token was found and kFailure if something else was found.
[ { "docid": "4677bf16b75bd8e3978572a935fa47f4", "score": "0.7608022", "text": "function matchMany(tokenKinds) {\n\tthisToken = checkToken(kConsume)\n\toutput = \"Checking for one of \"\n\tfor (var k=0; k<tokenKinds.length; k++) {\n\t if (k < (tokenKinds.length)-1)\n\t\toutput = output + tokenKinds[k] + \", \"\n\t else\n\t\toutput = output + \"or \" + tokenKinds[k]\n\t}\n\tdebug(output)\n\tfor (var k=0; k<tokenKinds.length; k++) {\n\t if (thisToken.kind == tokenKinds[k]) {\n\t\tdebug(\" Found \" + thisToken.kind + \"!\")\n\t return kSuccess\n\t }\n\t}\n\terror(\"Did not find one of \\n [\" + tokenKinds.toString() + \"] at line \" + thisToken.loc + \". Found \" + thisToken.kind + \" instead.\")\n\treturn kFailure\n }", "title": "" } ]
[ { "docid": "01df1938f40bb121065244f36f294233", "score": "0.54080725", "text": "many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n return nodes;\n }", "title": "" }, { "docid": "6de1946063a1d829ad1ca673f708933e", "score": "0.5366601", "text": "check_token(...choices) {\n var choice, i, len;\n while (this.need_more_tokens()) {\n this.fetch_more_tokens();\n }\n if (this.tokens.length !== 0) {\n if (choices.length === 0) {\n return true;\n }\n for (i = 0, len = choices.length; i < len; i++) {\n choice = choices[i];\n if (this.tokens[0] instanceof choice) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "3e81c7a24286c3f820ded866dd0c0636", "score": "0.5337761", "text": "many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }", "title": "" }, { "docid": "3e81c7a24286c3f820ded866dd0c0636", "score": "0.5337761", "text": "many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }", "title": "" }, { "docid": "44e4cd3a3681c9af090a0fff81bd976c", "score": "0.52819216", "text": "many() {\n // parse the input -- wrap in Success as it always succeeds\n return Parser.of(input => Success(this.parseZeroOrMore(input)), this.label);\n }", "title": "" }, { "docid": "7096c8b2f3fc8b8614b5078f927e6a67", "score": "0.5273149", "text": "function match() {\n\tparseIndex++;\n\tif (parseIndex < tokens.length && tokens[parseIndex] !== undefined) {\n\t\tcurrentTokenValue = tokens[parseIndex][1];\n\t} else {\n\t\tparseIndex--;\n\t}\t\n}", "title": "" }, { "docid": "6af7630cb90d30c40715da909ddaa5ee", "score": "0.5268436", "text": "function anyToken(tokens)\n{\n return {\n test(subject)\n {\n for (let i = 0; i < tokens.length; i++)\n if (tokens[i].test(subject))\n return true\n\n return false\n }\n }\n}", "title": "" }, { "docid": "9af621029b8227c42f4b436942ae045c", "score": "0.5256407", "text": "function expectAnyToken(expectedTokens, parseContext) {\n var tokens = parseContext.tokens;\n\n var foundToken = false;\n var firstToken = tokens[0];\n for (let i = 0; i < expectedTokens.length; i++) {\n if (firstToken === expectedTokens[i]) {\n foundToken = true;\n break;\n }\n }\n\n if (!foundToken) {\n throw new Error(\n `Invalid parse state! Expected any of: '${expectedTokens}' but got: '${\n tokens[0]\n }' from chain: [${tokens}]. ${parseInfo(parseContext)}`\n );\n }\n}", "title": "" }, { "docid": "b57e337388f70af5c6b9a3c3405351f8", "score": "0.5152433", "text": "function match(tokenKind) {\n\tthisToken = checkToken(kConsume)\n\tdebug(\"Checking for \" + tokenKind)\n\tif (tokenKind == K_EQUALITY) {\n\t if (thisToken.kind == K_EQUAL) {\n\t\tcheckToken(kConsume)\n\t\tif (thisToken.kind == K_EQUAL) {\n\t\t debug(\" Found \" + tokenKind + \"!\")\n\t\t}\n\t\telse {\n\t\t error(\"Did not find \" + tokenKind + \" at line \" + thisToken.loc + \". Found \" + thisToken.kind + \" instead.\")\n\t\t}\n\t }\n\t else {\n\t\terror(\"Did not find \" + tokenKind + \" at line \" + thisToken.loc + \". Found \" + thisToken.kind + \" instead.\")\n\t }\n\t}\n\telse if (thisToken.kind == tokenKind) {\n\t debug(\" Found \" + tokenKind + \"!\")\n\t return kSuccess\n\t}\n\telse {\n\t error(\"Did not find \" + tokenKind + \" at line \" + thisToken.loc + \". Found \" + thisToken.kind + \" instead.\")\n\t}\n\treturn kFailure\n }", "title": "" }, { "docid": "2af877e86052b32ea0a8a8eb891ba632", "score": "0.5140555", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "2af877e86052b32ea0a8a8eb891ba632", "score": "0.5140555", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "2af877e86052b32ea0a8a8eb891ba632", "score": "0.5140555", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "e286fd3a198d8f8cce1de784ccfc2835", "score": "0.50491315", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n\n return nodes;\n}", "title": "" }, { "docid": "e286fd3a198d8f8cce1de784ccfc2835", "score": "0.50491315", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n\n return nodes;\n}", "title": "" }, { "docid": "e286fd3a198d8f8cce1de784ccfc2835", "score": "0.50491315", "text": "function many(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [parseFn(lexer)];\n\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n\n return nodes;\n}", "title": "" }, { "docid": "9966a34b16e94a8fa84517bb5bed819e", "score": "0.50200015", "text": "expectOneOrMore(rule, maybe = false) {\n const results = [];\n const pos = this.pos;\n let numMatches = 0;\n let more = true;\n\n do {\n const result = this.expectOne(rule);\n if (result.success) {\n numMatches++;\n results.push(result.results);\n } else {\n more = false;\n }\n } while (more);\n\n const success = numMatches > 0 || maybe === true;\n if (maybe && !(numMatches > 0)) this.pos = pos;\n if (success) this.matchSuccess();\n else this.matchFail(pos);\n return { success, results, numMatches };\n }", "title": "" }, { "docid": "4032fccbed909fa6b2606e34acfded12", "score": "0.4997452", "text": "expectOneOrMore(rule, maybe = false) {\n const results = [];\n const pos = this.pos;\n let numMatches = 0;\n let more = true;\n\n do {\n const result = this.expectOne(rule);\n if (result.success) {\n numMatches++;\n results.push(result.results);\n } else {\n more = false;\n }\n } while (more);\n\n const success = (numMatches > 0) || (maybe === true);\n if (maybe && !(numMatches > 0)) this.pos = pos;\n if (success) this.matchSuccess(); else this.matchFail(pos);\n return { success, results, numMatches };\n }", "title": "" }, { "docid": "f41603ee8b2d2e7693a9924b17336193", "score": "0.49671683", "text": "function matchToken(src) {\n for (var tokenType in tokentypes) {\n if (inString && tokentypes[tokenType].matchLen > 1) {\n continue;\n }\n try {\n if (tokentypes[tokenType].regex.test(src)) {\n return tokentypes[tokenType];\n }\n }\n catch (erTEST) {\n return null;\n }\n }\n return null;\n}", "title": "" }, { "docid": "bb22f1c481a883061a83240722275d7a", "score": "0.49240908", "text": "next(type) {\n return this._token.type == type;\n }", "title": "" }, { "docid": "942a9f453679e04adf3c1941b9ac2593", "score": "0.49114305", "text": "evaluate (lexemes) {\n\n\t\tlet tokens = [];\n\t\tlet accept = this.mode.tokenize;\n\n\t\tthis.mode.on('token', token => this.emit('token', token));\n\t\tthis.mode.on('error', token => this.emit('error', token));\n\n\t\twhile (lexemes.length > 0) {\n\n\t\t\tlet token;\n\n\t\t\ttry {\n\t\t\t\t[token, accept] = accept.call(this.mode, lexemes);\n\t\t\t\ttokens.push(token);\n\t\t\t\tthis.emit('token', token);\n\t\t\t} catch (error) {\n\t\t\t\tthis.emit('error', token, error);\n\t\t\t}\n\n\t\t}\n\n\t\treturn tokens;\n\n\t}", "title": "" }, { "docid": "3a53db64466a0433a3f83d3deea9751b", "score": "0.48973882", "text": "function tokenize(stream, matchers) {\n var index = 0;\n var matchedTokens = [];\n var currentMatch;\n while (index < stream.length) {\n currentMatch = false;\n for (var i = 0; i < matchers.length; i++) {\n currentMatch = matchers[i](stream, index);\n if (currentMatch) break;\n }\n if (currentMatch) {\n Array.prototype.push.apply(matchedTokens, currentMatch.tokens);\n index = currentMatch.index;\n }\n else {\n return false;\n }\n }\n return matchedTokens;\n}", "title": "" }, { "docid": "47034031e05e04185889b1002057c192", "score": "0.48958436", "text": "any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n return nodes;\n }", "title": "" }, { "docid": "df16fc18f271fc43e2f6c8bb5cd39e63", "score": "0.48921323", "text": "function many(parser, openKind, parseFn, closeKind) { // 1049\n\t expect(parser, openKind); // 1050\n\t var nodes = [parseFn(parser)]; // 1051\n\t while (!skip(parser, closeKind)) { // 1052\n\t nodes.push(parseFn(parser)); // 1053\n\t } // 1054\n\t return nodes; // 1055\n\t}", "title": "" }, { "docid": "7c1d9d4831208ca3ad9164a5cf9121cb", "score": "0.48571783", "text": "function match() {\n if (props.match) return props.match(value, tags);\n\n return availableTags\n ? // availableTags ? let's check if one of them match the value\n remainingTags.some(t => getTagValue(t) === value)\n : // no availableTags ? let's check that this tags does already not exist\n !tags.some(t => getTagValue(t) === value);\n }", "title": "" }, { "docid": "d4ccf7560941274985b97f617f74e57f", "score": "0.48464715", "text": "any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n\n return nodes;\n }", "title": "" }, { "docid": "d4ccf7560941274985b97f617f74e57f", "score": "0.48464715", "text": "any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n\n return nodes;\n }", "title": "" }, { "docid": "d0ef2f1ef5c560393368814bce4699ab", "score": "0.48314068", "text": "optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n const nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n return nodes;\n }\n return [];\n }", "title": "" }, { "docid": "9dc2dd987cb7a55f34512847022d63f3", "score": "0.4805291", "text": "optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n\n return [];\n }", "title": "" }, { "docid": "9dc2dd987cb7a55f34512847022d63f3", "score": "0.4805291", "text": "optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n\n return [];\n }", "title": "" }, { "docid": "7401436815f546896fea43c8881bd12d", "score": "0.47436732", "text": "_eat(tokenType) {\n // Implement here...\n }", "title": "" }, { "docid": "dbc2d227390ce7c917687f7849f0e7ed", "score": "0.4705338", "text": "match() {\n const { splitted } = this;\n try {\n for (let i = 0; i < splitted.expression.length; i++) {\n const expressionToken = splitted.expression[i];\n \n if (this.#isSpecialSymbol(expressionToken)) {\n this.patternStarted = true;\n }\n else {\n if (this.patternStarted) {\n try {\n this.#processPattern();\n } catch {\n throw 0;\n }\n }\n const inputToken = this.input[this.counter];\n if (inputToken !== expressionToken) {\n throw 0;\n }\n this.result += expressionToken;\n this.counter++;\n }\n }\n } catch {\n this.result = null;\n }\n }", "title": "" }, { "docid": "393ccc4c06c12b7a457f9493d4a6845e", "score": "0.47008744", "text": "parse(scope, tokens) {\n return new Match({\n scope,\n rule: this,\n matched: tokens,\n input: [...tokens],\n length: tokens.length\n })\n }", "title": "" }, { "docid": "a52a67199b152ae8eb77b013efc26fd2", "score": "0.4643332", "text": "many1() {\n return this.bind(head =>\n this.many().bind(tail => Parser.return([head, ...tail]))\n );\n // old implementation without bind\n // return Parser.of(input => this.parse(input).cata({\n // Failure: Failure,\n // Success: ([firstValue, inputAfterFirstParse]) => {\n // // if first found, look for zeroOrMore now\n // const [subsequentValues, remainingInput] =\n // this.parseZeroOrMore(inputAfterFirstParse);\n // return Success([[firstValue, ...subsequentValues], remainingInput]);\n // }\n // }));\n }", "title": "" }, { "docid": "210dd652e2261c53e06be50432f23201", "score": "0.46338543", "text": "eat(match) {\r\n const ch = this.peek();\r\n const ok = typeof match === 'function' ? match(ch) : ch === match;\r\n if (ok) {\r\n this.next();\r\n }\r\n return ok;\r\n }", "title": "" }, { "docid": "b97c65c3f8d48c94ac3684738a72e332", "score": "0.46286538", "text": "eat(match) {\n const ch = this.peek();\n const ok = typeof match === 'function' ? match(ch) : ch === match;\n if (ok) {\n this.next();\n }\n return ok;\n }", "title": "" }, { "docid": "b97c65c3f8d48c94ac3684738a72e332", "score": "0.46286538", "text": "eat(match) {\n const ch = this.peek();\n const ok = typeof match === 'function' ? match(ch) : ch === match;\n if (ok) {\n this.next();\n }\n return ok;\n }", "title": "" }, { "docid": "79415e39a5bcd167016fa76bf59eae24", "score": "0.46215484", "text": "next() {\n if (this.options.tokens && !this.isLookahead) {\n this.state.tokens.push(new Token(this.state));\n }\n\n this.state.lastTokType = this.state.type; // XXX: LSC\n\n this.state.lastTokEnd = this.state.end;\n this.state.lastTokStart = this.state.start;\n this.state.lastTokEndLoc = this.state.endLoc;\n this.state.lastTokStartLoc = this.state.startLoc;\n this.nextToken();\n }", "title": "" }, { "docid": "d8f58af8a2f9e4b254c6c2c9a0e471ab", "score": "0.46127415", "text": "static match(cards) {\n cards.map(card => card.match())\n }", "title": "" }, { "docid": "78d3374987de1a20872a768931bfbdfe", "score": "0.46013236", "text": "function nestTokens(tokens, {list = true} = {}) {\n\tif (list && tokens.find(t => t.type === \"comma\")) {\n\t\tlet selectors = [], temp = [];\n\n\t\tfor (let i=0; i<tokens.length; i++) {\n\t\t\tif (tokens[i].type === \"comma\") {\n\t\t\t\tif (temp.length === 0) {\n\t\t\t\t\tthrow new Error(\"Incorrect comma at \" + i);\n\t\t\t\t}\n\n\t\t\t\tselectors.push(nestTokens(temp, {list: false}));\n\t\t\t\ttemp.length = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttemp.push(tokens[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (temp.length === 0) {\n\t\t\tthrow new Error(\"Trailing comma\");\n\t\t}\n\t\telse {\n\t\t\tselectors.push(nestTokens(temp, {list: false}));\n\t\t}\n\n\t\treturn { type: \"list\", list: selectors };\n\t}\n\n\tfor (let i=tokens.length - 1; i>=0; i--) {\n\t\tlet token = tokens[i];\n\n\t\tif (token.type === \"combinator\") {\n\t\t\tlet left = tokens.slice(0, i);\n\t\t\tlet right = tokens.slice(i + 1);\n\n\t\t\treturn {\n\t\t\t\ttype: \"complex\",\n\t\t\t\tcombinator: token.content,\n\t\t\t\tleft: nestTokens(left),\n\t\t\t\tright: nestTokens(right)\n\t\t\t};\n\t\t}\n\t}\n\n\tif (tokens.length === 0) {\n\t\treturn null;\n\t}\n\n\t// If we're here, there are no combinators, so it's just a list\n\treturn tokens.length === 1? tokens[0] : {\n\t\ttype: \"compound\",\n\t\tlist: [...tokens] // clone to avoid pointers messing up the AST\n\t};\n}", "title": "" }, { "docid": "ce275791a5949f6b4478ee611414baac", "score": "0.4595686", "text": "function token(type, values)\n{\n return {\n test: subject => testToken(subject, type, values)\n }\n}", "title": "" }, { "docid": "1ed5139b6da38136813a00e6dbf322f4", "score": "0.4582377", "text": "function anyValue(token, getNextToken) {\n if (!token) {\n return 0;\n }\n\n var startIdx = token.index;\n var length = 0;\n\n // The <any-value> production matches any sequence of one or more tokens,\n // so long as the sequence ...\n scan:\n do {\n switch (token.type) {\n // ... does not contain <bad-string-token>, <bad-url-token>,\n case TYPE.BadString:\n case TYPE.BadUrl:\n break scan;\n\n // ... unmatched <)-token>, <]-token>, or <}-token>,\n case TYPE.RightCurlyBracket:\n case TYPE.RightParenthesis:\n case TYPE.RightSquareBracket:\n if (token.balance > token.index || token.balance < startIdx) {\n break scan;\n }\n\n break;\n }\n\n length++;\n\n // until balance closing\n if (token.balance <= startIdx) {\n break;\n }\n } while (token = getNextToken(length));\n\n return length;\n}", "title": "" }, { "docid": "1ed5139b6da38136813a00e6dbf322f4", "score": "0.4582377", "text": "function anyValue(token, getNextToken) {\n if (!token) {\n return 0;\n }\n\n var startIdx = token.index;\n var length = 0;\n\n // The <any-value> production matches any sequence of one or more tokens,\n // so long as the sequence ...\n scan:\n do {\n switch (token.type) {\n // ... does not contain <bad-string-token>, <bad-url-token>,\n case TYPE.BadString:\n case TYPE.BadUrl:\n break scan;\n\n // ... unmatched <)-token>, <]-token>, or <}-token>,\n case TYPE.RightCurlyBracket:\n case TYPE.RightParenthesis:\n case TYPE.RightSquareBracket:\n if (token.balance > token.index || token.balance < startIdx) {\n break scan;\n }\n\n break;\n }\n\n length++;\n\n // until balance closing\n if (token.balance <= startIdx) {\n break;\n }\n } while (token = getNextToken(length));\n\n return length;\n}", "title": "" }, { "docid": "95d4d9bb15aa142418c44f87c12b7040", "score": "0.45538777", "text": "function findTokens() {\n\twhile (index < input.length) {\n\t\tcurrentToken = input[index]; // sets the current token as the current index in input\n\t\tnexttoken = input[index+1]; // sets the next token as the next index in input\n\t\t\t// testing if current token is a character \n\t\t\tif (chars.indexOf(currentToken) > -1){\n\t\t\t\t// testing if nexttoken will make the current char a valid id\n\t\t\t\tif (specialCharacters.indexOf(nexttoken) > -1 || (nexttoken === undefined) || nexttoken === \"\\n\") {\n\t\t\t\t\ttokens[index] = [\"token_id\", currentToken, lineCounter]; // passes token name, value, and current line at the current index in tokens\n\t\t\t\t\tindex++;\n\t\t\t\t// tests if nexttoken is a char\t\n\t\t\t\t} else if (chars.indexOf(nexttoken) > -1) {\n\t\t\t\t\tvalidKeyword();\n\t\t\t\t// if code reaches here then there is an invalid token\n\t\t\t\t} else {\n\t\t\t\t\tidentifyInvalidLexeme()\n\t\t\t\t\t//tokens[index] = [currentToken+nexttoken,\"invalid lexeme\", lineCounter];\n\t\t\t\t\t//index = index + 2; // index gets incremented by 2 to account for the nexttoken\n\t\t\t\t}\t\n\t\t\t// testing if current token is a digit\t\n\t\t\t} else if (digits.indexOf(currentToken) > -1) {\n\t\t\t\tif(specialCharacters.indexOf(nexttoken) > -1 || (nexttoken === undefined && input.length-1 === index) || nexttoken === \"\\n\") {\n\t\t\t\t\ttokens[index] = [\"token_digit\", currentToken, lineCounter];\n\t\t\t\t\tindex++;\n\t\t\t\t} else {\n\t\t\t\t\tidentifyInvalidLexeme();\n\t\t\t\t\t//tokens[index] = [currentToken+nexttoken,\"invalid lexeme\", lineCounter];\n\t\t\t\t\t//index = index + 2;\n\t\t\t\t}\n\t\t\t// testing if current token is a special character \n\t\t\t} else if (specialCharacters.indexOf(currentToken) > -1) {\n\t\t\t\tif (currentToken === \" \") {\n\t\t\t\t\tindex++\n\t\t\t\t// testing if currenttoken is double equals\t\n\t\t\t\t} else if (currentToken === \"=\" && nexttoken === \"=\") {\n\t\t\t\t\ttokens[index] = [\"token_doubleEquals\", currentToken+nexttoken, lineCounter];\n\t\t\t\t\tindex = index + 2;\n\t\t\t\t// testing if currenttoken is the end of file token\n\t\t\t\t} else if (currentToken === \"$\") {\n\t\t\t\t\ttokens[index] = [\"token_\"+specialCharNames[specialCharacters.indexOf(currentToken)],currentToken, lineCounter];\n\t\t\t\t\tindex++;\n\t\t\t\t} else if (currentToken === '\"' && quoteCounter === 0) {\n\t\t\t\t\ttokens[index] = [\"token_quote\", currentToken, lineCounter];\n\t\t\t\t\tvalidateString();\n\t\t\t\t\tquoteCounter++;\n\t\t\t\t} else if (currentToken === '\"' && quoteCounter === 1) {\n\t\t\t\t\ttokens[index] = [\"token_quote\", currentToken, lineCounter];\n\t\t\t\t\tindex++;\t\n\t\t\t\t\tquoteCounter = 0;\n\t\t\t\t// if code reachers here then token is one of the other special character tokens\t\t\n\t\t\t\t} else {\n\t\t\t\t\ttokens[index] = [\"token_\"+specialCharNames[specialCharacters.indexOf(currentToken)],currentToken, lineCounter];\n\t\t\t\t\tindex++;\n\t\t\t\t}\t\n\t\t\t// testing if token is not equals to \t\n\t\t\t} else if (currentToken === \"!\") {\n\t\t\t\tif (nexttoken === \"=\") {\n\t\t\t\t\ttokens[index] = [\"token_notequals\", currentToken+nexttoken, lineCounter];\n\t\t\t\t\tindex = index + 2;\n\t\t\t\t} else {\n\t\t\t\t\ttokens[index] = [currentToken+nexttoken,\"invalid lexeme\", lineCounter];\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t// testing if currenttoken is a newline character \t\n\t\t\t} else if (currentToken === \"\\n\") {\n\t\t\t\tindex++;\n\t\t\t\tlineCounter++; // increment line counter\n\t\t\t// if code reachers here then currenttoken is an invalid lexeme\t\n\t\t\t} else {\n\t\t\t\ttokens[index] = [currentToken,\"invalid lexeme\", lineCounter];\n\t\t\t\tindex++\n\t\t\t}\t\n\t}\n}", "title": "" }, { "docid": "87072265e4f9a273ec4ffd8d69200cc9", "score": "0.4539193", "text": "delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n const nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n return nodes;\n }", "title": "" }, { "docid": "30842e9299c345d0084618e1fe3b8cd6", "score": "0.4538929", "text": "function eat(type) {\n\t if (tokType === type) {\n\t next();\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t }", "title": "" }, { "docid": "7877f1f2d2e43dc6c6c5cde201b90579", "score": "0.4536146", "text": "function extractTokens(type, matches, tokens) {\n\t matches && tokens.push({ type: type, keyword: matches[1].toLowerCase(), value: matches[2] });\n\t}", "title": "" }, { "docid": "52f064e828b8a62b5864bd9cea77a45a", "score": "0.4534759", "text": "_advanceToNextToken() {\n if (this.isFinished()) {\n this.stop();\n this.onComplete(this.timer.elapsedMS());\n } else {\n this.tokenIndex++;\n this._emitNewTokenEvent();\n }\n }", "title": "" }, { "docid": "2064c93420d2d37dbc69b3e14220e811", "score": "0.45332858", "text": "function any(parser, openKind, parseFn, closeKind) { // 1034\n\t expect(parser, openKind); // 1035\n\t var nodes = []; // 1036\n\t while (!skip(parser, closeKind)) { // 1037\n\t nodes.push(parseFn(parser)); // 1038\n\t } // 1039\n\t return nodes; // 1040\n\t} // 1041", "title": "" }, { "docid": "af70fe4f3d13d9c5722847105e93b0aa", "score": "0.4532801", "text": "function checkToken(consume) {\n\tlastToken = thisToken\n\tvar indexToGet = tokenIndex\n\tif (consume == kConsume) {\n\t debug(\"Consumed \" + tokens[tokenIndex])\n\t tokenIndex = tokenIndex + 1\n\t}\n\tif (tokenIndex >= tokens.length) {\n\t tokenIndex = tokenIndex - 1\n\t}\n\treturn tokens[indexToGet];\n }", "title": "" }, { "docid": "f9e9ea2662a82483d367b9c41c756e0f", "score": "0.452786", "text": "function iterateCSSToken(token, fn) {\n for (let i = 0, il = token.size; i < il; i++) {\n if (fn(token.item(i)) === false || iterateCSSToken(token.item(i), fn) === false) {\n return false;\n }\n }\n return true;\n}", "title": "" }, { "docid": "d301032bf2825e2e980fe6a0765b777b", "score": "0.45230868", "text": "function anyValue(token, getNextToken) {\n if (!token) {\n return 0;\n }\n\n var startIdx = token.index;\n var length = 0;\n\n // The <any-value> production matches any sequence of one or more tokens,\n // so long as the sequence ...\n scan:\n do {\n switch (token.type) {\n // ... does not contain <bad-string-token>, <bad-url-token>,\n case TYPE$5.BadString:\n case TYPE$5.BadUrl:\n break scan;\n\n // ... unmatched <)-token>, <]-token>, or <}-token>,\n case TYPE$5.RightCurlyBracket:\n case TYPE$5.RightParenthesis:\n case TYPE$5.RightSquareBracket:\n if (token.balance > token.index || token.balance < startIdx) {\n break scan;\n }\n\n break;\n }\n\n length++;\n\n // until balance closing\n if (token.balance <= startIdx) {\n break;\n }\n } while (token = getNextToken(length));\n\n return length;\n }", "title": "" }, { "docid": "565057ff681e3a18eaa71fe7d232c228", "score": "0.45127857", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "565057ff681e3a18eaa71fe7d232c228", "score": "0.45127857", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9e4ed0cab9ab9e26e7e6d62875ea2097", "score": "0.45010582", "text": "nextTokenInternal(line, position) {\n //var last = 0;\n let last = 0;\n var i;\n var accept = null;\n if (this.rootDfa === undefined) {\n this.rootDfa = new _DfaState__WEBPACK_IMPORTED_MODULE_3__[\"DfaState\"]();\n this.addState(this.rootDfa.nfaStates, this.rootDfa.accepts, this.root);\n }\n var dfaState = this.rootDfa;\n var startPosition = this.lineNumbers[line] + position;\n //dbg.printf(\"Start match from %d:%d\\n\", line, position );\n if (startPosition == this.text.length) {\n this.finished = true;\n return new _Token__WEBPACK_IMPORTED_MODULE_6__[\"Token\"](this.EOF_TOKEN, \"!EOF\", line, position);\n }\n if (startPosition > 0) {\n last = this.text[startPosition - 1];\n }\n for (i = startPosition; i < this.text.length; i++) {\n //dbg.printf(\"Enter DFA state %d\\n\", dfaState.id );\n var ch = this.text[i];\n if (ch === '\\n' && last != _CharMatcher__WEBPACK_IMPORTED_MODULE_4__[\"PRE_NEWLINE\"]) {\n ch = _CharMatcher__WEBPACK_IMPORTED_MODULE_4__[\"PRE_NEWLINE\"];\n i--;\n }\n else if (last === '\\n' || last === 0) {\n ch = _CharMatcher__WEBPACK_IMPORTED_MODULE_4__[\"POST_NEWLINE\"];\n i--;\n }\n if (last === '\\n') {\n line++;\n }\n last = ch;\n if (dfaState.next[ch] === undefined) {\n dfaState.next[ch] = this.nextState(dfaState, ch);\n }\n dfaState = dfaState.next[ch];\n if (dfaState.accepts.length) {\n //dbg.printf(\"Would accept %s\\n\", dfaState.accepts[0] );\n //dbg.printf(\"i:%d line:%d lineNumbers=%d\\n\",\n // i, line, this.lineNumbers[line] );\n accept = new _Token__WEBPACK_IMPORTED_MODULE_6__[\"Token\"](dfaState.accepts[0], this.text.substr(startPosition, i - startPosition + 1), line, startPosition - this.lineNumbers[line]);\n }\n if (dfaState.nfaStates.length === 0) {\n break;\n }\n }\n if (accept) {\n //dbg.printf(\"Returning match id=%s at %d:%d text=%s\\n\", accept.id,\n // accept.locus.line, accept.locus.position, accept.text );\n }\n else if (0) {}\n return accept;\n }", "title": "" }, { "docid": "41dd47f5be3992c3d02bc6249ece4682", "score": "0.44854873", "text": "function matchAll(r) {\n return s => matchAll_(s, r);\n}", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "db119462beb5c9c1d5b617f5da466158", "score": "0.4484955", "text": "function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }", "title": "" }, { "docid": "f13c3f2c664a5cba6efab2451ba5452a", "score": "0.4484357", "text": "addTokens(locatables, ...semanticTokenTypes) {\n var _a;\n for (let i = 0; i < locatables.length; i++) {\n const locatable = locatables[i];\n //skip items that don't have a location\n if (locatable === null || locatable === void 0 ? void 0 : locatable.range) {\n this.addToken(locatables[i], \n //use the type at the index, or the last type if missing\n (_a = semanticTokenTypes[i]) !== null && _a !== void 0 ? _a : semanticTokenTypes[semanticTokenTypes.length - 1]);\n }\n }\n }", "title": "" }, { "docid": "e86d566ebd27b4660ceee1f75c956226", "score": "0.44784278", "text": "match(str) {\n var self = this;\n return {\n *[Symbol.iterator]() {\n var state = INITIAL_STATE;\n var startRun = null;\n var lastAccepting = null;\n var lastState = null;\n\n for (var p = 0; p < str.length; p++) {\n var c = str[p];\n lastState = state;\n state = self.stateTable[state][c];\n\n if (state === FAIL_STATE) {\n // yield the last match if any\n if (startRun != null && lastAccepting != null && lastAccepting >= startRun) {\n yield [startRun, lastAccepting, self.tags[lastState]];\n } // reset the state as if we started over from the initial state\n\n\n state = self.stateTable[INITIAL_STATE][c];\n startRun = null;\n } // start a run if not in the failure state\n\n\n if (state !== FAIL_STATE && startRun == null) {\n startRun = p;\n } // if accepting, mark the potential match end\n\n\n if (self.accepting[state]) {\n lastAccepting = p;\n } // reset the state to the initial state if we get into the failure state\n\n\n if (state === FAIL_STATE) {\n state = INITIAL_STATE;\n }\n } // yield the last match if any\n\n\n if (startRun != null && lastAccepting != null && lastAccepting >= startRun) {\n yield [startRun, lastAccepting, self.tags[state]];\n }\n }\n\n };\n }", "title": "" }, { "docid": "81568a9c164a4656e226bda3a477a2aa", "score": "0.44752508", "text": "expectOptionalToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this._lexer.advance();\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "c059db6c1e7e53d27753aed61c4542a9", "score": "0.4474465", "text": "function search(token, strSearch, cb) {\n let matchCount = 0;\n\n token.forEach((element, index) => {\n let regexp = new RegExp(element, 'gi');\n let result = strSearch.match(regexp); // nagrereturn to ng null pag no match, then array if meron,\n if (result) { // si result is array, array ng matchs. soo yung bilang nila pag nag result.length ka we add it sa matchCount\n matchCount += result.length;\n }\n if (index == token.length - 1) { // Para malaman natin kung ending na ba nung loop.\n cb(matchCount);\n }\n });\n}", "title": "" }, { "docid": "dd557481af756bc024730440d0303589", "score": "0.44715223", "text": "delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n\n return nodes;\n }", "title": "" }, { "docid": "dd557481af756bc024730440d0303589", "score": "0.44715223", "text": "delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n\n return nodes;\n }", "title": "" }, { "docid": "9aee6275bea49517b22d89cd4efd1ca8", "score": "0.4469649", "text": "expectOptionalToken(kind) {\n const token = this._lexer.token;\n if (token.kind === kind) {\n this._lexer.advance();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ff64c3f5b1cddc9327447ef39bb4ef36", "score": "0.44527578", "text": "scan_to_next_token() {\n var found, ref, results;\n if (this.index === 0 && this.peek() === '\\uFEFF') {\n this.forward();\n }\n found = false;\n results = [];\n while (!found) {\n while (this.peek() === ' ') {\n this.forward();\n }\n if (this.peek() === '#') {\n while (ref = this.peek(), indexOf.call(C_LB + '\\x00', ref) < 0) {\n this.forward();\n }\n }\n if (this.scan_line_break()) {\n if (this.flow_level === 0) {\n results.push(this.allow_simple_key = true);\n } else {\n results.push(void 0);\n }\n } else {\n results.push(found = true);\n }\n }\n return results;\n }", "title": "" }, { "docid": "b11cf8b561e0754f7829f774dea24462", "score": "0.44517586", "text": "match(type) {\n if (this.next(type)) {\n this._lineItem++;\n this._nextToken();\n return;\n }\n this._output.val(`Invalid token at line ${this._line}, item ${this._lineItem}: Expected '${type}' found '${this._token.type}'`);\n throw new Error('Parse Error');\n }", "title": "" }, { "docid": "6ad6d711f89852951b010193c5cbe1e8", "score": "0.44475824", "text": "function matcherFromTokens( tokens, context, xml ) {\r\n\tvar token, matcher,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; (token = tokens[i]); i++ ) {\r\n\t\tif ( Expr.relative[ token.part ] ) {\r\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\r\n\t\t} else {\r\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matcher;\r\n}", "title": "" }, { "docid": "6ad6d711f89852951b010193c5cbe1e8", "score": "0.44475824", "text": "function matcherFromTokens( tokens, context, xml ) {\r\n\tvar token, matcher,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; (token = tokens[i]); i++ ) {\r\n\t\tif ( Expr.relative[ token.part ] ) {\r\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\r\n\t\t} else {\r\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matcher;\r\n}", "title": "" }, { "docid": "6ad6d711f89852951b010193c5cbe1e8", "score": "0.44475824", "text": "function matcherFromTokens( tokens, context, xml ) {\r\n\tvar token, matcher,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; (token = tokens[i]); i++ ) {\r\n\t\tif ( Expr.relative[ token.part ] ) {\r\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\r\n\t\t} else {\r\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matcher;\r\n}", "title": "" }, { "docid": "6ad6d711f89852951b010193c5cbe1e8", "score": "0.44475824", "text": "function matcherFromTokens( tokens, context, xml ) {\r\n\tvar token, matcher,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; (token = tokens[i]); i++ ) {\r\n\t\tif ( Expr.relative[ token.part ] ) {\r\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\r\n\t\t} else {\r\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matcher;\r\n}", "title": "" }, { "docid": "6ad6d711f89852951b010193c5cbe1e8", "score": "0.44475824", "text": "function matcherFromTokens( tokens, context, xml ) {\r\n\tvar token, matcher,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; (token = tokens[i]); i++ ) {\r\n\t\tif ( Expr.relative[ token.part ] ) {\r\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\r\n\t\t} else {\r\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matcher;\r\n}", "title": "" }, { "docid": "42c2a610cbcf3618b54f37297ee3b347", "score": "0.44429654", "text": "expectOptionalToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this.advanceLexer();\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "a352ecf3e6dc4eb860f024eb17ca0504", "score": "0.44409874", "text": "function getTokens() {\n var i;\n\n for (i = 0; i < methods.length; i += 1) {\n methods[i](function (err, token) {\n if (err) {\n return fail();\n }\n\n tryToken(token);\n });\n }\n }", "title": "" }, { "docid": "219e21a7485ec748a597742aa1d0a7fa", "score": "0.4435429", "text": "scanNextToken() {\n if (!this.tokenBackup) {\n this.tokenBackup = this.sniper.parser.lexer.getState();\n }\n return this.protoLexerNext();\n }", "title": "" }, { "docid": "09ec6c8e501be8df11d2be54ddd51ce7", "score": "0.4421044", "text": "function step4(token) {\n return replaceRegex(token, /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/, [1], 1) || \n replaceRegex(token, /^(.+?)(s|t)(ion)$/, [1, 2], 1) ||\n token; \n}", "title": "" }, { "docid": "9dde71b121a1f5657bd565f8aa14854f", "score": "0.44198817", "text": "function step2(token) {\n token = replacePatterns(token, [['ational', '', 'ate'], ['tional', '', 'tion'], ['enci', '', 'ence'], ['anci', '', 'ance'],\n ['izer', '', 'ize'], ['abli', '', 'able'], ['bli', '', 'ble'], ['alli', '', 'al'], ['entli', '', 'ent'], ['eli', '', 'e'],\n ['ousli', '', 'ous'], ['ization', '', 'ize'], ['ation', '', 'ate'], ['ator', '', 'ate'],['alism', '', 'al'],\n ['iveness', '', 'ive'], ['fulness', '', 'ful'], ['ousness', '', 'ous'], ['aliti', '', 'al'],\n ['iviti', '', 'ive'], ['biliti', '', 'ble'], ['logi', '', 'log']], 0);\n\n return token;\n}", "title": "" }, { "docid": "03b75565c8aab09307f313f7933bba47", "score": "0.44185832", "text": "function matcherFromTokens( tokens, context, xml ) {\n\tvar token, matcher,\n\t\ti = 0;\n\n\tfor ( ; (token = tokens[i]); i++ ) {\n\t\tif ( Expr.relative[ token.part ] ) {\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\n\t\t} else {\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\n\t\t}\n\t}\n\n\treturn matcher;\n}", "title": "" }, { "docid": "03b75565c8aab09307f313f7933bba47", "score": "0.44185832", "text": "function matcherFromTokens( tokens, context, xml ) {\n\tvar token, matcher,\n\t\ti = 0;\n\n\tfor ( ; (token = tokens[i]); i++ ) {\n\t\tif ( Expr.relative[ token.part ] ) {\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\n\t\t} else {\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\n\t\t}\n\t}\n\n\treturn matcher;\n}", "title": "" }, { "docid": "45fde4b1de5819ba93741429f0b4d70e", "score": "0.441591", "text": "function expectAlternation( arrayOfAlternateExpectations, tokens ) {\n\tvar production = null;\n\n\tfunction expectFirstAlternate( sequenceExpectation ) {\n\t\treturn !! (production = sequenceExpectation( tokens ));\n\t}\n\n\tif( arrayOfAlternateExpectations.some( expectFirstAlternate ) ) {\n\t\treturn production;\n\t}\n\telse {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "94359a8e1afb8395491ed1e703d066cb", "score": "0.44037744", "text": "function matcherFromTokens( tokens, context, xml ) {\n\tvar token, matcher,\n\t\ti = 0;\n\n\tfor ( ; (token = tokens[i]); i++ ) {\n\t\tif ( Expr.relative[ token.part ] ) {\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context );\n\t\t} else {\n\t\t\ttoken.captures.push( context, xml );\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply( null, token.captures ) );\n\t\t}\n\t}\n\n\treturn matcher;\n}", "title": "" }, { "docid": "e1d37e6fa7f88038618c355fb689ea06", "score": "0.4399167", "text": "function tryToEatA(token) {\n if (tokenStream[0] == token) {\n tokenStream.shift();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e1d37e6fa7f88038618c355fb689ea06", "score": "0.4399167", "text": "function tryToEatA(token) {\n if (tokenStream[0] == token) {\n tokenStream.shift();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "77762722335419acd0a3d9b71e772a5d", "score": "0.43971515", "text": "expectOne(rule, maybe = false) {\n const results = [];\n const pos = this.pos;\n\n let allMatches = true;\n let oneMatch = false;\n maybe = maybe === true || rule.maybe === true;\n\n // Execute all sub rules in sequence.\n for (let i = 0; i < rule.expect.length; i++) {\n const next = rule.expect[i];\n const localPos = this.pos;\n const result = this.expect(next);\n\n // If `rule.or` is set, then return success if any one\n // of the subrules match, else all subrules must match.\n if (result.success) {\n results.push(result);\n oneMatch = true;\n if (rule.or) break;\n } else {\n allMatches = false;\n if (!rule.or) {\n this.pos = localPos;\n break;\n }\n }\n }\n\n const gotOne = (rule.or && oneMatch) || allMatches;\n const success = gotOne || maybe === true;\n if (maybe && !gotOne) this.pos = pos;\n if (success) this.matchSuccess();\n else this.matchFail(pos);\n return { success, results, numMatches: gotOne ? 1 : 0 };\n }", "title": "" }, { "docid": "076e3b9fc89cf11f9a7530af90929eb8", "score": "0.4393646", "text": "function any(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "076e3b9fc89cf11f9a7530af90929eb8", "score": "0.4393646", "text": "function any(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "076e3b9fc89cf11f9a7530af90929eb8", "score": "0.4393646", "text": "function any(lexer, openKind, parseFn, closeKind) {\n expect(lexer, openKind);\n var nodes = [];\n while (!skip(lexer, closeKind)) {\n nodes.push(parseFn(lexer));\n }\n return nodes;\n}", "title": "" }, { "docid": "9bafc5a23036b61f93a58f0d4b00b6fa", "score": "0.4390522", "text": "function checkToken(token) {\n\treturn tokenQueue.some(element => \n\t\telement.valid === true && element.token === token\n\t);\n}", "title": "" }, { "docid": "99e073ea57ab58944098af6c75cc7e0a", "score": "0.43877843", "text": "advance() {\n this.lastToken = this.token;\n const token = this.token = this.lookahead();\n return token;\n }", "title": "" }, { "docid": "5a053cd4c862378be440f230779c2d08", "score": "0.43699697", "text": "match() { return (f_next) => f_next(this.maybe_a, this.next); }", "title": "" }, { "docid": "79dde49c0e285a956354219598eb9ab6", "score": "0.43679887", "text": "nextMatches(regex) {\n if(!this.more())\n return false;\n return regex.test(this.rest());\n }", "title": "" }, { "docid": "6608bf3e4bd1d5ba19eba4121c29e662", "score": "0.43660212", "text": "expectOne(rule, maybe = false) {\n const results = [];\n const pos = this.pos;\n\n let allMatches = true;\n let oneMatch = false;\n maybe = (maybe === true) || (rule.maybe === true);\n\n // Execute all sub rules in sequence.\n for (let i = 0; i < rule.expect.length; i++) {\n const next = rule.expect[i];\n const localPos = this.pos;\n const result = this.expect(next);\n\n // If `rule.or` is set, then return success if any one\n // of the subrules match, else all subrules must match.\n if (result.success) {\n results.push(result);\n oneMatch = true;\n if (rule.or) break;\n } else {\n allMatches = false;\n if (!rule.or) {\n this.pos = localPos;\n break;\n }\n }\n }\n\n const gotOne = (rule.or && oneMatch) || allMatches;\n const success = gotOne || (maybe === true);\n if (maybe && !gotOne) this.pos = pos;\n if (success) this.matchSuccess(); else this.matchFail(pos);\n return { success, results, numMatches: gotOne ? 1 : 0 };\n }", "title": "" }, { "docid": "a6f55e7a53ed5da9a1850f4066a86b41", "score": "0.43602803", "text": "chooseRandomAliveCharTok(klasses) {\n // Start at a random token index and walk forward (with\n // wraparound) until we find a character.\n const baseIndex = randomBetween(0, this.tokens.length - 1);\n for (let i = 0; i < this.tokens.length; i++) {\n const thisIndex = (baseIndex + i) % this.tokens.length;\n const thisTok = this.tokens[thisIndex];\n if (!thisTok.isChar) continue;\n const klass = assert(thisTok.charOrEnt.klass);\n // Apply filter by class.\n if (!klasses || klasses.includes(klass)) return thisTok;\n }\n return null;\n }", "title": "" }, { "docid": "108e538b33bed4a3a776a2ecaf919121", "score": "0.4350902", "text": "function matcherFromTokens(tokens, context, xml) {\n var token, matcher,\n i = 0;\n\n for (;\n (token = tokens[i]); i++) {\n if (Expr.relative[token.part]) {\n matcher = addCombinator(matcher, Expr.relative[token.part], context);\n } else {\n token.captures.push(context, xml);\n matcher = addMatcher(matcher, Expr.filter[token.part].apply(null, token.captures));\n }\n }\n\n return matcher;\n }", "title": "" }, { "docid": "b6e3f243dcb7d47b319ea0f7c066a3f0", "score": "0.4337768", "text": "advance() {\n this.lastToken = this.token;\n const token = (this.token = this.lookahead());\n return token;\n }", "title": "" }, { "docid": "b6e3f243dcb7d47b319ea0f7c066a3f0", "score": "0.4337768", "text": "advance() {\n this.lastToken = this.token;\n const token = (this.token = this.lookahead());\n return token;\n }", "title": "" } ]
b92b726b678e213a52abd6eb6fdb337e
import Router from 'vuerouter'
[ { "docid": "3550191be0a34868e48315895111b0f9", "score": "0.0", "text": "function init(Vue) {\n console.log(\"autoHome\")\n if (Vue) {\n // Vue.use(Router)\n Vue.use(autoCardList)\n Vue.use(autoNavHeader)\n Vue.use(AutoSimpleFooter)\n Vue.prototype.$axios = Axios\n Vue.component(autoCardHome.name, autoCardHome)\n }\n}", "title": "" } ]
[ { "docid": "a57d7c58abc77a3baec1e87e12f55f3f", "score": "0.7246838", "text": "function Router() {}", "title": "" }, { "docid": "05833ca5fe83d05da5e98942e4c16d12", "score": "0.71917623", "text": "router() { return rtr; }", "title": "" }, { "docid": "7c05c0c1ab3c1cb875270fcb7e19f283", "score": "0.68203926", "text": "function useRouter() {\n return (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(routerKey);\n}", "title": "" }, { "docid": "c6fd1edd20df028e4c2b865557c5170a", "score": "0.666519", "text": "function useRouter() {\r\n return vue.inject(routerKey);\r\n }", "title": "" }, { "docid": "26e2e30a3aa7a7c306ddacfd38683468", "score": "0.6652159", "text": "routing() {\n this.app.use(this.router);\n }", "title": "" }, { "docid": "b930b644b217f733c664bbde1c51ac15", "score": "0.6604701", "text": "function useRouter() {\n return Object(vue_esm_browser[\"t\" /* inject */])(routerKey);\n}", "title": "" }, { "docid": "7e036fcd6f8802711e3eaec8815c5de3", "score": "0.64175266", "text": "get router() {\n return this.__router\n }", "title": "" }, { "docid": "9213c1657225c22ba6db44c3b0bd728e", "score": "0.6413702", "text": "constructor(router) {\n // this.api = api;\n this.theRouter = router;\n }", "title": "" }, { "docid": "8050c72781364e65ac2a894c2e00da29", "score": "0.6400618", "text": "function r(t,n){if(!t)throw new Error(\"[vue-router] \"+n)}", "title": "" }, { "docid": "8050c72781364e65ac2a894c2e00da29", "score": "0.6400618", "text": "function r(t,n){if(!t)throw new Error(\"[vue-router] \"+n)}", "title": "" }, { "docid": "1f80c5a9e0963aee9a1a54c3b9ea7220", "score": "0.63935244", "text": "constructor () {\n const express = require('express');\n this.router = express.Router();\n }", "title": "" }, { "docid": "9b6f8a9902e583312f2c4b925034bcea", "score": "0.6385316", "text": "get router() {\n return this._router;\n }", "title": "" }, { "docid": "bfdadd96ebd10bc3883b4d69df4c52c0", "score": "0.6374445", "text": "function Router() {\n this.registry = [];\n} // Router", "title": "" }, { "docid": "d9a24b2fbbe9e7046ed4222cf490567a", "score": "0.63321227", "text": "initRoutes() {\n this.app.use(generalRouter); // Import the general router.\n }", "title": "" }, { "docid": "70bd20db60ecbba0bad60fdf30163803", "score": "0.6292649", "text": "setRouter(router: Router): void {\n this.router = router;\n }", "title": "" }, { "docid": "70bd20db60ecbba0bad60fdf30163803", "score": "0.6292649", "text": "setRouter(router: Router): void {\n this.router = router;\n }", "title": "" }, { "docid": "70bd20db60ecbba0bad60fdf30163803", "score": "0.6292649", "text": "setRouter(router: Router): void {\n this.router = router;\n }", "title": "" }, { "docid": "70bd20db60ecbba0bad60fdf30163803", "score": "0.6292649", "text": "setRouter(router: Router): void {\n this.router = router;\n }", "title": "" }, { "docid": "575c02425a0389399e94c96bd6ccc314", "score": "0.62557316", "text": "function r(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "575c02425a0389399e94c96bd6ccc314", "score": "0.62557316", "text": "function r(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "575c02425a0389399e94c96bd6ccc314", "score": "0.62557316", "text": "function r(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "fe76930ed2ad38d76fdeb40e0fea6140", "score": "0.6231731", "text": "constructor(guard, router) { }", "title": "" }, { "docid": "fe76930ed2ad38d76fdeb40e0fea6140", "score": "0.6231731", "text": "constructor(guard, router) { }", "title": "" }, { "docid": "fe76930ed2ad38d76fdeb40e0fea6140", "score": "0.6231731", "text": "constructor(guard, router) { }", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "ad803f5dd19bfedc70e0357991cabde4", "score": "0.62203056", "text": "function r(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "bc4ea19e59afda937fe9516419d706b2", "score": "0.6150332", "text": "init() { \n this.router.use(note.noteRoute.path, note.noteRoute.router);\n }", "title": "" }, { "docid": "ea0e827901fc132b3d0ba820cdb8ef89", "score": "0.61362803", "text": "function r(e,t){if(!e){throw new Error(\"[vue-router] \"+t)}}", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "4ea708dc34fe592aa71265fb2a240ffb", "score": "0.6123011", "text": "function RouterModule(guard, router) {\n }", "title": "" }, { "docid": "a418643060dcbb263cef85116905eb49", "score": "0.60824615", "text": "constructor() {\n this.router = express.Router(); // eslint-disable-line new-cap\n this.logger = new Logger();\n }", "title": "" }, { "docid": "917c4be02d4da1ad0d31ff3dd6adf5ba", "score": "0.6050368", "text": "function i(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "9ab01f8d9174ccd0b50caca4724a02a3", "score": "0.6027491", "text": "setRouter(router) {\n this.router = router;\n }", "title": "" }, { "docid": "9ab01f8d9174ccd0b50caca4724a02a3", "score": "0.6027491", "text": "setRouter(router) {\n this.router = router;\n }", "title": "" }, { "docid": "1a5f6ed93932a5152a62b8bf0a8fd10d", "score": "0.6025408", "text": "includeRoutes(){\n new mainModules(this.app).initAPIs();\n new socketEvents(this.socket).socketConfig();\n }", "title": "" }, { "docid": "cc7d2218490f746c958b12a177227f42", "score": "0.60245764", "text": "get router() {\n // log method\n logger.log(5, 'router', 'Getting router');\n return this._router;\n }", "title": "" }, { "docid": "4300f89c3e9b1779e2df82656dc91c77", "score": "0.6015277", "text": "middleware(R,router){\n\t\t\n\t}", "title": "" }, { "docid": "1fa3e15a417e1d253973938bcb743513", "score": "0.5989504", "text": "function w(t,e){if(!t){throw new Error(\"[vue-router] \"+e)}}", "title": "" }, { "docid": "a67abcc35f5829f52ab938338359c872", "score": "0.59688216", "text": "constructor() {\n /* ENROUTADOR */\n this.router = express_1.Router();\n this.config();\n }", "title": "" }, { "docid": "1cd1b0591bb87f8b0c08b42cf51ac0c3", "score": "0.59462345", "text": "static get tag() {\n return \"app-hax-router\";\n }", "title": "" }, { "docid": "e6323197a2c9f52b60d4fd5a24a70f73", "score": "0.5941806", "text": "createRouter() {\n this.getParent().getRouter().use(this.getRouter());\n }", "title": "" }, { "docid": "08e255fe1a601c888619f23e456fb3bf", "score": "0.5931273", "text": "mountRoutes() {\n this.express = Routes_1.default.mountAPI(this.express);\n }", "title": "" }, { "docid": "bec5ed92dd28ecb6c9539a130ca9fda8", "score": "0.58942443", "text": "function i(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "c2c083fb38e650273cd3dcc8e6c38398", "score": "0.5887472", "text": "mapWebRoutes() {\n this.router.group({}, this.app.getModule(this.app.routesPath('web.js')));\n }", "title": "" }, { "docid": "e5ccdb61f8ab5bff25c0372f0fe7260d", "score": "0.58799374", "text": "function _RouterModule(guard, router) {\n _classCallCheck(this, _RouterModule);\n }", "title": "" }, { "docid": "a08e35fbd50b0729873dcb87993a5bfe", "score": "0.5875841", "text": "getRouter() {\n return this._router;\n }", "title": "" }, { "docid": "b754260c71b7f9b7fa3b1be23ba435bf", "score": "0.5870418", "text": "exportToRouter(router) {\n let instructions = this.instructions;\n for (let i = 0, ii = instructions.length; i < ii; ++i) {\n instructions[i](router);\n }\n let { title, titleSeparator, unknownRouteConfig, _fallbackRoute, viewPortDefaults } = this;\n if (title) {\n router.title = title;\n }\n if (titleSeparator) {\n router.titleSeparator = titleSeparator;\n }\n if (unknownRouteConfig) {\n router.handleUnknownRoutes(unknownRouteConfig);\n }\n if (_fallbackRoute) {\n router.fallbackRoute = _fallbackRoute;\n }\n if (viewPortDefaults) {\n router.useViewPortDefaults(viewPortDefaults);\n }\n Object.assign(router.options, this.options);\n let pipelineSteps = this.pipelineSteps;\n let pipelineStepCount = pipelineSteps.length;\n if (pipelineStepCount) {\n if (!router.isRoot) {\n throw new Error('Pipeline steps can only be added to the root router');\n }\n let pipelineProvider = router.pipelineProvider;\n for (let i = 0, ii = pipelineStepCount; i < ii; ++i) {\n let { name, step } = pipelineSteps[i];\n pipelineProvider.addStep(name, step);\n }\n }\n }", "title": "" }, { "docid": "04a36b3f6ad98c992b698278a0b92786", "score": "0.5866475", "text": "navigate(appRouter: Router): void {\n let navigatingRouter = this.options.useAppRouter ? appRouter : (this.router || appRouter);\n navigatingRouter.navigate(this.url, this.options);\n }", "title": "" }, { "docid": "04a36b3f6ad98c992b698278a0b92786", "score": "0.5866475", "text": "navigate(appRouter: Router): void {\n let navigatingRouter = this.options.useAppRouter ? appRouter : (this.router || appRouter);\n navigatingRouter.navigate(this.url, this.options);\n }", "title": "" }, { "docid": "d6882df8572efeb08d882eb12e1952d0", "score": "0.58657986", "text": "function _default()\n/* { store, ssrContext } */\n{\n var Router = new _vueRouter.default({\n scrollBehavior: function scrollBehavior() {\n return {\n x: 0,\n y: 0\n };\n },\n routes: _routes.default,\n // Leave these as they are and change in quasar.conf.js instead!\n // quasar.conf.js -> build -> vueRouterMode\n // quasar.conf.js -> build -> publicPath\n mode: process.env.VUE_ROUTER_MODE,\n base: process.env.VUE_ROUTER_BASE\n });\n return Router;\n}", "title": "" }, { "docid": "50bfd788ffdbc5b170ed2348c21d920d", "score": "0.58657354", "text": "attach(router) {\n if (!this.pathSegment) {\n this.pathSegment = `/${this.constructor.name}`\n winston.warn(`pathSegment not defined! Defaulting to ${this.pathSegment}`)\n }\n router.use(this.pathSegment, this.router)\n if (this.resources) {\n this.resources.map(resource => resource.attach(this.router))\n }\n return this.router\n }", "title": "" }, { "docid": "158c0fc8db46b63e290ca628709cb2a3", "score": "0.5853066", "text": "setRouters(){\n const _setRouters = (app)=>{\n const routers = require('../routers')(app)\n Object.keys(routers).forEach(key=>{\n const METHOD = key.split(' ')[0]\n const URL = key.split(' ')[1]\n const CB = routers[key]\n // 此处需使用async await语法 否则获取不到数据库查询\n app.router[METHOD](URL, async(ctx)=>{\n await CB(ctx,this.service,this.util)\n })\n })\n return app.router.routes()\n }\n this.use(_setRouters(this))\n }", "title": "" }, { "docid": "4ae1ff2cb33847a12392d81566e629d8", "score": "0.5844366", "text": "function $u(e,t){if(!e){throw new Error(\"[vue-router] \"+t)}}", "title": "" }, { "docid": "f315d7f7f28ab8b61ed18565682c571c", "score": "0.58430195", "text": "function e(t,n){if(!t)throw new Error(\"[vue-router] \"+n)}", "title": "" }, { "docid": "0ab980987e74315350490ae42c7318d2", "score": "0.5839091", "text": "function Router(options) {\n this._prefix = (options && options.prefix) || \"\";\n this._routeTree = {};\n}", "title": "" }, { "docid": "72ce05b622948bbd8c2d5d8ee2aea1a1", "score": "0.58339274", "text": "routes(){\n this.server.use(routes);\n }", "title": "" }, { "docid": "cffefdb56a2f084759d6a43810b9846d", "score": "0.5829148", "text": "appRoutes() {\n const v1 = express.Router();\n this.app.use('/api', v1);\n v1.use('/auth', require('./auth'));\n v1.use('/modify', require('./objectService'));\n v1.use('/image', require('./imageService'));\n }", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "f869ffaa522056abd586b7203ae2f27d", "score": "0.58211917", "text": "function n(e,t){if(!e)throw new Error(\"[vue-router] \"+t)}", "title": "" }, { "docid": "09a358f40dfd83a008496c5a912e4793", "score": "0.5817606", "text": "function render() {\n\n const app = new Vue({\n router,\n template: '<Layout/>',\n components: {Layout}\n }).$mount('#mount')\n\n}", "title": "" }, { "docid": "b26d5430fefe5dda5fa8a2759b8ed8cf", "score": "0.5800811", "text": "init() {\n this.router.use(\"/test\", TestRouter_1.default);\n this.router.use(\"/services/app\", AuthLoginRouter_1.default);\n this.router.use(\"/TokenAuth\", userRouter_1.default);\n }", "title": "" }, { "docid": "5c5ed571f137924acb3e72c2df759073", "score": "0.5789821", "text": "routes(app) {\n app.use(\"/user\", this.router);\n }", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "298cc68c37f638241f0702a61ad66dd6", "score": "0.5787162", "text": "function n(t,e){if(!t)throw new Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "21c8c95c86dd6aa893174203ffbb09bb", "score": "0.5766424", "text": "function router(nav)\n{\n\n ////if get a route request this router will exicute\n search_route.route('/').\n get((req,res)=>{\n ////showing view all ejs file\n res.render('search.ejs',{nav})\n\n });\n return search_route;\n}", "title": "" }, { "docid": "7f5603d611a0b19ec6bc082338c08b29", "score": "0.5755255", "text": "function n(t,e){if(!t)throw Error(\"[vue-router] \"+e)}", "title": "" }, { "docid": "fdf0912d0eb24a7f980786e612d9588a", "score": "0.5753576", "text": "function App() {\r\n return (\r\n /*Router de la aplicación */\r\n <div>\r\n <Router>\r\n <Route exact path='/' component={Login} />\r\n <Route path='/vista'>\r\n <Vista />\r\n </Route>\r\n </Router>\r\n </div>\r\n );\r\n}", "title": "" }, { "docid": "3b45321a403c278a938d805654a1e546", "score": "0.5751115", "text": "constructor() {\n app.use('/', router);\n\n controller = new Controller();\n controller.enableRoutes(router);\n\n /**\n * Importa os adapters\n */\n this.startServer()\n }", "title": "" }, { "docid": "6c44cefd24f9744a461b1e34b80c49e6", "score": "0.5748894", "text": "goRoutines() {\n router.push('/apphome/routines');\n }", "title": "" }, { "docid": "7edeae5afb0bb991b5d71933d78143f7", "score": "0.5736451", "text": "navigate(appRouter: Router): void {\n let navigatingRouter = this.options.useAppRouter ? appRouter : (this.router || appRouter);\n navigatingRouter.navigateToRoute(this.route, this.params, this.options);\n }", "title": "" } ]
25119550a9c201c4d3de8f9d6ada4455
Create the game state for a new game (i.e. all new shuffled cards).
[ { "docid": "1b4963048447c84567630872cc2b30fa", "score": "0.74708635", "text": "function newGame() {\n return {\n cards: generateCards(),\n selected: [],\n solved: 0\n };\n }", "title": "" } ]
[ { "docid": "69e2780d8abf347cd659bf779f19376f", "score": "0.7529793", "text": "function newGame() {\n state.board = [];\n state.winningSector = null;\n state.currentPlayer = 0;\n state.status = 'playing';\n render();\n }", "title": "" }, { "docid": "53e06f1b37fe7c427f349d633da4ede6", "score": "0.72742814", "text": "function newGame() {\n var manipulatedcards = shuffle(cardList);\n for (var f = 0; f < manipulatedcards.length; f++) {\n deck1.append(manipulatedcards[f]);\n }\n}", "title": "" }, { "docid": "671b6187d40fb169a5f6c2aed026a697", "score": "0.7247717", "text": "function newDeck() {\n // Calculate the number of packs of cards we'll need for the number of rounds\n // in the game. The maximum number of cards we should need for a round is\n // approx 20, although statistically lower, so (52 * roundsPerGame / 3)\n // rounded up should be enough.\n const requiredPacks = Math.ceil(roundsPerGame / 3)\n\n // Create the new deck with requisite number of packs.\n deckManager.newDeck(requiredPacks)\n\n // Save the packsInPlay to state.\n state.game.packsInPlay = requiredPacks\n\n // Save the remainingCardsInDeck to state.\n // We will also update this whenever a card is dealt.\n state.game.remainingCardsInDeck = deckManager.remainingCardsInDeck()\n}", "title": "" }, { "docid": "0e5eca01805b8642f8a7a6f5073a4f36", "score": "0.71061915", "text": "function newGame() {\n // If We have a round stage and the game isn't over, then don't start a new\n // game.\n if (state.round.stage && !state.game.gameOver) return\n\n // Set default game and round states.\n setDefaultState()\n\n // Create a new deck.\n newDeck()\n\n // Start a new round.\n newRound()\n}", "title": "" }, { "docid": "e32090276874a2093c3fe5fc4462b8a8", "score": "0.70705444", "text": "function newGameState() {\n const state=rootReducer(undefined, newGame(3));\n state.game.board=TILES;\n state.game.originalBoard=TILES;\n\n return state;\n}", "title": "" }, { "docid": "832c568d48055eb1150a434534c52bbb", "score": "0.7032784", "text": "function setupNewGame() {\n // \"deck\" calls the \"newDeck\" function\n deck = newDeck();\n //shuffle the deck\n deck = _.shuffle(deck);\n //creates \"dealerHand\" and \"playerHand\" arrays\n dealerHand = [];\n playerHand = [];\n }", "title": "" }, { "docid": "e652e6bac62256ab5cb90cadf0f6e2a9", "score": "0.7028084", "text": "function newGame() {\n\t\t\tcontroller.game.squares = [\n\t\t\t\t[{owner:\"\", spin:false},{owner:\"\", spin:false},{owner:\"\", spin:false}],\n\t\t\t\t[{owner:\"\", spin:false},{owner:\"\", spin:false},{owner:\"\", spin:false}],\n\t\t\t\t[{owner:\"\", spin:false},{owner:\"\", spin:false},{owner:\"\", spin:false}]\n\t\t\t];\n\n\t\t\tcontroller.game.Player_Name_One = \"\";\n\t\t\tcontroller.game.Player_Name_Two = \"\";\n\t\t\tcontroller.game.helloOne = false;\n\t\t\tcontroller.game.helloTwo = false;\n\t\t\tcontroller.game.catsGame = false;\n\t\t\tcontroller.game.isDisabled = true; \n\t\t\tcontroller.game.yourTurnOne = false;\n\t\t\tcontroller.game.yourTurnTwo = false;\n\t\t\tcontroller.game.winnerOne = false;\n\t\t\tcontroller.game.winnerTwo = false;\n\t\t\tcontroller.game.formOne = false;\n\t\t\tcontroller.game.formTwo = false;\n\t\t\tcontroller.game.playerOneWins = 0;\n\t\t\tcontroller.game.playerTwoWins = 0;\n\t\t\tcontroller.game.totalGames = 0;\n\t\t\t\n\t\t\tcontroller.game.$save();\n\t\t}", "title": "" }, { "docid": "a857e6e42567aa60b330bdc3f70a45d5", "score": "0.70161283", "text": "function startNewGame () {\n showGameButtons();\n\n deck = [];\n player = [];\n dealer = [];\n \n shuffleDeck();\n dealInitialCards();\n}", "title": "" }, { "docid": "c3a0405027f7d3f7848baa5e4aa83769", "score": "0.70052165", "text": "function initNewGame() {\n setCancelInvolved(false)\n setGameStarted(false)\n setPiles(buildPiles())\n setDeck(buildDeck())\n setHistory([])\n setDiscard([])\n setHands([])\n setNbPlayers(0)\n setPoints(0)\n setErrors(0)\n setLastTurn(-1)\n setTurn(0)\n setHints(maxHints)\n setModalSettings(alreadyCome)\n }", "title": "" }, { "docid": "304b326fcf592dda1b7f92e85a298b81", "score": "0.696213", "text": "function generateDeck(){\n var up = randomInclusiveNumGen(gameState.minRange, gameState.maxRange);\n var down = randomInclusiveNumGen(gameState.minRange, gameState.maxRange);\n var left = randomInclusiveNumGen(gameState.minRange, gameState.maxRange);\n var right = randomInclusiveNumGen(gameState.minRange, gameState.maxRange);\n\n //randomly generate our operators for init cards\n var cardUp = {\n int: up,\n str: String(up),\n operator: generateOperator()\n };\n var cardDown = {\n int: down,\n str: String(down),\n operator: generateOperator()\n };\n var cardRight = {\n int: right,\n str: String(right),\n operator: generateOperator()\n };\n var cardLeft = {\n int: left,\n str: String(left),\n operator: generateOperator()\n };\n\n //save into gameState\n gameState.cardUp = cardUp;\n gameState.cardDown = cardDown;\n gameState.cardLeft = cardLeft;\n gameState.cardRight = cardRight;\n // console.log(gameState);\n\n buildCards();\n var cards = document.getElementById('cards');\n cards.addEventListener('click', handleClick);\n document.addEventListener('keydown', handleKeyDown, false);\n\n //save to local storage\n storeInLocal('gameState', gameState);\n}", "title": "" }, { "docid": "9832ea093374d1c22d4279369c898504", "score": "0.695511", "text": "function newGame() {\n\tgameRunning = false;\n\tremoveHighlight();\n\tboardState = newPopulatedBoardArray(ngBoardSize,ngBoardSize,ngfilledRows);\n\tredAI = $(\"#redAIBox\").prop(\"checked\");\n\twhiteAI = $(\"#whiteAIBox\").prop(\"checked\");\n\tdrawBoard($(\"#board\"));\n\tupdateInterface();\n\tgameRunning = true;\n\tswitchTurn();\n}", "title": "" }, { "docid": "2a77cd9d1482ec91e441b3970f274cc8", "score": "0.69189745", "text": "function initializeGame() {\r\n // shuffle the deck then split the deck in half\r\n shuffle(deck);\r\n\r\n // assign the cards\r\n firstSet = deck.slice(0, 26);\r\n secondSet = deck.slice(26);\r\n\r\n // update the state\r\n setState({\r\n ...state,\r\n playerDeck: firstSet,\r\n aiDeck: secondSet,\r\n isRunning: true\r\n });\r\n }", "title": "" }, { "docid": "9071dd92438e58dfb27649e66ddfd985", "score": "0.69160837", "text": "_generateCards() {\n const cards = [];\n\n for (var i = 0; i < this.props.slidevalue; i++) {\n const cashValues = [50, 100, 150, 200, 250, 300, 350, 400, 450];\n const a = Math.floor((Math.random() * 10) + 1);\n const d = Math.floor((Math.random() * 10) + 1);\n const t = Math.floor((Math.random() * 10) + 1);\n const cash = cashValues[Math.floor(Math.random() * cashValues.length)];\n const id = i;\n\n const card = {\n type : 'US',\n number : i+1,\n cash : cash,\n a : a,\n d : d,\n t : t,\n id : i,\n position : 0,\n priority : 0,\n timeclicked: 0,\n done : false,\n movable : true\n }\n cards.push(card);\n }\n\n this.props._pushCardsIntoState(cards)\n }", "title": "" }, { "docid": "bd2ec8b56252692c36c72abb56784589", "score": "0.69007355", "text": "function newGame() {\n randomNumber();\n resetNewGame();\n render();\n }", "title": "" }, { "docid": "38a173d269c87915adf3d14eb723a09a", "score": "0.6871688", "text": "function newRound(){\n console.log(\"Starting Game\");\n game = new Game();\n game.newDeck().shuffle().shuffle();\n for (var i = 0; i < players.length; i++) {\n players[i].cardSum = 0;\n players[i].hand = [];\n $('#dealer_sum').text(\"\");\n $(`#hand_${i}`).empty();\n $(`#player_${i}`).removeClass();\n $(`#player_${i}`).addClass('player waiting');\n }\n }", "title": "" }, { "docid": "64b253e4c2e88b26e76b2d3cd7adc628", "score": "0.6856745", "text": "function newGame() {\n LOG(LOG_DEBUG, \"New Game!\");\n simonsSequence = [];\n playerSequence = [];\n setGameState(GS_COMPUTER, \"newGame\");\n}", "title": "" }, { "docid": "e6e61deaacf22e6c8b77806b934b4744", "score": "0.6849717", "text": "function newGame() {\n generateInitialBoard();\n}", "title": "" }, { "docid": "347ea0d2bb7fdcc07c3482f63bc18e6a", "score": "0.68376315", "text": "new_game() {\n this.setState({\n \"breakerTries\": this.init_breaker_tries(this.state.nbMaxTries),\n \"codeToBreak\": this.init_code_to_break(this.state.nbMaxTries),\n \"tryResults\": this.init_try_results(this.state.nbMaxTries),\n \"currentTryIndex\": 0,\n \"currentColorChoice\": 0,\n \"gameState\": TRY,\n \"history\": [\n {\n \"breakerTries\": this.init_breaker_tries(this.state.nbMaxTries),\n \"tryResults\": this.init_try_results(this.state.nbMaxTries),\n \"gameState\": TRY\n }\n ],\n \"historyIndex\": 0\n })\n }", "title": "" }, { "docid": "1ff40a10146ef7b026b2855079c3dd96", "score": "0.67956823", "text": "function newGame(){\n\tresetGame();\n\tupdateGame();\n\tsecretNumber();\n}", "title": "" }, { "docid": "d837545ebe0eee8d505d68b0ccfbe6d3", "score": "0.677273", "text": "function newGame() {\n //prepare new gameboard:\n gameBoard.gameReset()\n dinosaurGenerator.nameSelector();\n //power game logic:\n checkGuess();\n}", "title": "" }, { "docid": "fb24584246eb27150669755a184743c5", "score": "0.6738935", "text": "function newGame() {\n return createGame(gameSize());\n}", "title": "" }, { "docid": "8f63ddeb0decf6aaa200bdd956938413", "score": "0.67161", "text": "function newGame(){\n state.player1 = new Player()\n state.player2 = new Player()\n //Render default player status\n document.querySelector(DOMStrings.state1).textContent = `Current total = ${state.player1.total}`\n document.querySelector(DOMStrings.state2).textContent = `Current total = ${state.player2.total}`\n document.querySelector(DOMStrings.bet).reset()\n document.querySelector(DOMStrings.title).textContent = \"Dicee\"\n document.querySelector(DOMStrings.dice1).setAttribute(\"src\",`images/dice6.png`)\n document.querySelector(DOMStrings.dice2).setAttribute(\"src\",`images/dice6.png`)\n //Disable the roll dice button\n document.querySelector(DOMStrings.play).disabled = true\n //Enable input btn\n document.querySelector(DOMStrings.betBtn).disabled = false\n}", "title": "" }, { "docid": "36248953a38103afe28accb6d36bbc40", "score": "0.6714492", "text": "function newGame(){\n if(options.reset==undefined) {\n options.reset=\"\"\n return;\n }\n values.boss=1;\n values.zone=0;\n stats.highestBoss=0;\n loadBoss();\n resetAssignedClones();\n resetPlayer();\n resetRebirth();\n lockAllButtons();\n resetMine();\n resetFarm(); \n resetWarehouse();\n resetArena();\n save();\n}", "title": "" }, { "docid": "02b1842ae0b0cc99652ea0b34b783365", "score": "0.6700237", "text": "start_game() {\n\t\t// Randomly assign spy, cop, exit positions\n\t\tlet spy = Math.floor(Math.random() * 60);\n\n\t\tlet cop1 = Math.floor(Math.random() * 60);\n\t\tif (cop1 == spy) {\n\t\t\tcop1 += Math.floor(Math.random() * 59);\n\t\t\tcop1 = cop1 % 60;\n\t\t}\n\n\t\t// Update state information\n\t\tlet new_board = new Array(60).fill(0);\n\t\tnew_board[spy] = 1;\n\t\tnew_board[cop1] = 2;\n\t\tlet positions = [spy, cop1]\n\t\tthis.setState({board: new_board, player_positions: positions});\n\t}", "title": "" }, { "docid": "f90e38895bf624ec50e9d6411031bc44", "score": "0.6683776", "text": "function newGame()\n{\n\tgameOver = false;\n\tplayerOneTurn = true;\n\t\n\t// Board is clear 7x6 Grid\n\tboard = \n\t[\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece],\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece],\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece],\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece],\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece],\n\t\t[clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece, clearPiece]\n\t]\n\t\n\t// Updates display...\n\tdrawBoard();\n\tupdateTurnDisplay();\n}", "title": "" }, { "docid": "f83f09dc5f6e60c25c312fe9f1322090", "score": "0.66745096", "text": "setupNewGame() {\n\t\tthis.keyState.clearKeys();\n\t\tthis.playingState = new PlayingGameState();\n\t\tthis.currentState = this.playingState; //the GameEngine's current State\n\t\tthis.currentState.onEnter();\n\t}", "title": "" }, { "docid": "b8d73a4c5387bee6a0e17af8ce940515", "score": "0.66709375", "text": "createGame(){ //creates the game wrapper\n createDeck(); //creates a new Deck for every New Game That's made.\n return Game.create({\n Cashier: {\n hand: [] //cashier has a hand\n },\n Player: {\n hand: [], //player has a hand\n money: 500 //Actial chips object unneccesary, we'll just deduct through functions.\n },\n PlayerSplit:{\n hand: []\n }\n ,\n Bet: 0, //Bet counter.\n noInsurance: true, //neccesary to hide certain buttons.\n isSplit: false, //neccesary to hide certain buttons.\n gameOver: true //a conditional called game over determines if a game is ongoing.,\n });\n }", "title": "" }, { "docid": "236befb35fb590ca255132f6ca281041", "score": "0.66512126", "text": "function newGame() {\n\t\tcurrentPlayer = 1;\n\t\ttilesPlaced = 0;\n\t\tplayerTurn.innerText = `${player1}'s turn`;\n\t\ttogglePlayerInfoModal();\n\t\tcreateTable(gridRows, gridCols);\n\t}", "title": "" }, { "docid": "6c676144e5efde6155e32727bc5104e9", "score": "0.6647214", "text": "function newGame() {\n game = new Game();\n clearTable();\n bet(\"player\", betAmt) && deal();\n}", "title": "" }, { "docid": "bde0fb6fc2c46c413c74c1150f650d78", "score": "0.66278183", "text": "newGame() {\n const step = document.getElementById(\"selectStep\").value;\n const aryNew = Array(25).fill(\"O\");\n const styleNew = Array(25).fill(0);\n let solutionA = Array(25).fill(0);\n\n for (let i = 0; i < 25; i++) {\n solutionA[i] = i;\n }\n\n shuffle(solutionA);\n const solutionB = solutionA.slice(0, step);\n solutionA = null;\n\n for (let i = 0; i < step; i++) {\n flipCross(aryNew, solutionB[i]);\n }\n\n // Renew game status\n this.setState({\n history: [\n {\n squares: aryNew,\n squareStyles: styleNew\n }\n ],\n stepNumber: 0,\n solution: solutionB,\n showAnswer: false\n });\n }", "title": "" }, { "docid": "18cb88841502248dc08d096b813baab4", "score": "0.6616", "text": "createGame(num_of_players=1) {\n this.state.dealer = new Player(\"Dealer\", true);\n for (let i=0;i<num_of_players;i++) {\n this.state.players.push(new Player(\"Player\"+i, false));\n }\n }", "title": "" }, { "docid": "ff4cedb063f740eff14aa3f11c1b28c5", "score": "0.65692306", "text": "function newGame () {\n //remove cards from deck\n deck.innerHTML = \"\";\n //empty cards arrays\n emptyArray(openCards);\n emptyArray(matchCards);\n //shuffle cards\n let shuffledCardSet = shuffle(cardSet);\n //add cards to deck and icons to each card\n cards.forEach(function(card) {\n deck.appendChild(card);\n card.classList = \"card\";\n for (let i = 0; i < shuffledCardSet.length; i++) {\n cards[i].firstElementChild.className = shuffledCardSet[i]\n }\n });\n //reset star rating\n for (let i = 0; i < star.length; i++) {\n star[i].style.visibility = \"visible\";\n }\n //reset moves count\n click = 0;\n move = 0;\n movesCount.innerHTML = move;\n //Reset timer\n stopTimer();\n hours = 0;\n minutes = 0;\n seconds = 0;\n timer.innerHTML = addZero(hours) + \":\" + addZero(minutes) + \":\" + addZero(seconds)\n}", "title": "" }, { "docid": "13352df6a81d1f2a78b6c1043940b002", "score": "0.6569121", "text": "function newGame() {\n $(\"article\").remove();\n $(\"span\").remove();\n $(\"div\").remove();\n $(\"h1\").remove();\n $(\"h2\").remove();\n gameState.level += 1;\n gameState.xPos = 0;\n gameState.yPos = 0;\n gameState.badYPos = 2;\n gameState.badXPos = 2;\n checkForDup();\n board = createBoard();\n if (checkBoard() === true) {\n gameState.level -= 1;\n newGame();\n }\n return board;\n}", "title": "" }, { "docid": "8446311f1306dd1201fd251fff06377e", "score": "0.65634096", "text": "function newGame() {\n console.log(newGame.name);\n\n // Get the shoe\n getShoe(1);\n\n // Deal starting hands & display the cards\n dealHands();\n displayDealerHand(false); // Dealer's hand only shows one card\n displayPlayerHand();\n\n // Show the Hit & Stand buttons\n $(\"#btn-hit\", \"#btn-stand\").show();\n\n displayStatusMessage('Game in progress...');\n displayDealerScore('Dealer');\n\n // Check whether player got a blackjack\n if (localStorage.getItem('playerHandValue') === 21) {\n localStorage.setItem('playerHandValue', 'blackjack');\n playDealerHand();\n }\n}", "title": "" }, { "docid": "b672c397cba99d98b73094ee33d58691", "score": "0.65532696", "text": "function newGame() {\n stacks = {\n a: [4, 3, 2, 1],\n b: [],\n c: []\n };\n //resets the amount of moves the user makes in the new game.\n counter = 0;\n return stacks;\n}", "title": "" }, { "docid": "17cf2baa963ad51decdd6b5ed3e2c754", "score": "0.6523773", "text": "createDeck() {\n this.state.deck = new Deck();\n }", "title": "" }, { "docid": "e53cede966b5553f52fb03564e00c606", "score": "0.65111166", "text": "function newGame() {\n allEnemies = [];\n allTokens = [];\n reset();\n newEnemy();\n newEnemy();\n newGem();\n newGem();\n newGem();\n newBlueGem();\n newHeart();\n newKey();\n }", "title": "" }, { "docid": "1d13c0afe7712ed0286336f41c60d888", "score": "0.650748", "text": "function create_new_game(game) {\n var id = games.length;\n games[id] = {...game, id};\n turns[id] = [];\n\n // TODO: persist efficiently\n set(\"games\", games);\n set_str(\"games.turns.\"+id, \"\");\n}", "title": "" }, { "docid": "44e76134144f67b0188dc4feb987a6a7", "score": "0.6461688", "text": "function initGame() {\n const state = createGameState()\n randomFood(state);\n return state;\n}", "title": "" }, { "docid": "464b53fcbb84c0e024229e3dd586c6c6", "score": "0.644337", "text": "function newGame() {\n resetBag();\n dealTiles(true);\n scoreSum = 0;\n currentScore = 0;\n location.reload();\n}", "title": "" }, { "docid": "564d02c0f44ee84483bee57e4133e51e", "score": "0.64429003", "text": "function createGameBoard() {\n cardsDeck.innerHTML = \"\";\n shuffle(cardsHolderArr);\n startGameBoard();\n resetGameTimer = 0;\n gameMinutes.innerText = 0;\n gameSeconds.innerText = 0;\n finishGameCardsCounter = 0;\n gameMoves.innerText = 0;\n stopWatch();\n startRating();\n hidePopupMessage();\n}", "title": "" }, { "docid": "198b27ccdd66df82922bc2f98d9a3004", "score": "0.6442162", "text": "function newGame() {\r\n // getAppState();\r\n applicationState.isGameOver = false;\r\n}", "title": "" }, { "docid": "2ab981ed0f56575baa54986d0103c398", "score": "0.64376926", "text": "createNewGame() {\n this.setState({ gameId: this.state.gameId + 1 });\n }", "title": "" }, { "docid": "6b2974a22d2a33c1a264bc05458ce238", "score": "0.6412719", "text": "function newRound() {\n // If we've already reached the roundsPerGame then end the game.\n // This is just to catch exceptions, the newRound action shouldn't be\n // accessible once the roundsPerGame count has been reached.\n if (state.game.currentRound >= state.game.roundsPerGame) return\n\n // Get the previous round and increment.\n const round = state.game.currentRound + 1\n\n // Create empty hands.\n let playerHand = []\n let dealerHand = []\n\n // Initial deal, two cards to both player and dealer.\n playerHand.push(deckManager.dealCard())\n dealerHand.push(deckManager.dealCard())\n playerHand.push(deckManager.dealCard())\n dealerHand.push(deckManager.dealCard())\n\n // Update remainingCardsInDeck.\n state.game.remainingCardsInDeck = deckManager.remainingCardsInDeck()\n\n // Get hand scores.\n const playerHandScore = scoreCalculator(playerHand)\n const dealerHandScore = scoreCalculator(dealerHand)\n\n // Combine default sate with the updates.\n state.round = assign(returnDefaultRoundState(), {\n playerHand,\n dealerHand,\n\n playerHandScore,\n dealerHandScore,\n\n stage: RoundStages.INITIAL_DEAL\n })\n\n // Update the current round.\n state.game.currentRound = round\n\n // Set transitioningStage to true so that we can block any duplicate actions\n // whilst we're waiting for a timer or animation.\n state.round.transitioningStage = true\n\n // We've updated all the state that we need to for now, so emit a change. This\n // will trigger the app to re-render.\n GameStore.emitChange()\n\n // Delay the next action momentarily to allow the user to see the changes.\n setTimeout(() => {\n // Set transitioning back to false now. The change will be emitted by either\n // the `endRound` function or the `playerTurn` function.\n state.round.transitioningStage = false\n\n // If either player or dealer has a blackjack in there initial hand then end\n // the round.\n if (playerHandScore.blackjack || dealerHandScore.blackjack) endRound()\n\n // Otherwise it's the player's turn.\n else playerTurn()\n }, screenChangeDelay)\n}", "title": "" }, { "docid": "601a156a670e546b0b54b227055db994", "score": "0.64007515", "text": "function cardsState(state = [], action) {\n\n // Evaluar la acción despachada\n switch (action.type) {\n\n // Voltear hacía arriba la carta\n case FLIP_UP_CARD:\n\n // Modificar el atributo para indicar que se debe mostrar\n // la imagen principal\n return state.map((card) => {\n\n // Si el id de la carta actual coincide con el enviado a la acción\n if (action.id === card.id) {\n\n // Clonar el objeto y modificar el atributo imageUp a true\n return { ...card, imageUp: true };\n\n }\n\n // Devuelvo la carta como está\n return card;\n });\n\n // Marcar cartas como coincidencias\n case MARK_PAIR_AS_MATCHED:\n\n // Recorrer el array de cartas\n return state.map((card) => {\n\n // Si es alguna de las dos cartas\n if (action.id1 === card.id || action.id2 === card.id) {\n\n // Clonar el objeo y modificar el atributo matched a true\n return { ...card, matched: true }\n\n }\n\n // Devolver la carta como está\n return card;\n });\n\n // Voltear cartas boca abajo\n case FLIP_DOWN_PAIR:\n\n // Recorrer el array con las catas\n return state.map((card) => {\n\n // Si es alguna de las cartas\n if (action.id1 === card.id || action.id2 === card.id) {\n\n // Clonar el objeto y modificar el atributo imageUp a true\n return { ...card, imageUp: false };\n\n }\n\n // Devuelvo la carta como está\n return card;\n\n });\n\n // Mezclar las cartas\n case SHUFFLE_CARDS:\n\n // Clonar las cartas\n let newCards = [...state];\n\n // Mezclarlas\n newCards = shuffle(newCards);\n\n return newCards;\n\n // Si no es ninguna de las acciones devuelvo el estado\n default:\n return state;\n }\n}", "title": "" }, { "docid": "b927434b25bf08df272b0aa1b64df67b", "score": "0.639318", "text": "function createNewGame(event) {\n if(event != undefined) {\n event.preventDefault()\n }\n if(game.singlePlayerMode == false) {\n game.turn = Math.floor(Math.random() * Math.floor(2))\n }\n else {\n game.turn = 1;\n }\n game.status = \"On\"\n\n retrieveLocalPlayerStorage()\n retrieveLocalGameStorage()\n clearBoardButtons()\n enableBoard()\n updateGameBoard()\n displayPlayerTurn()\n displayGameMode()\n}", "title": "" }, { "docid": "b2c200d740ecf8073a014b80a7ef1bf2", "score": "0.63891923", "text": "function generateDeck() {\n shuffle(cards).forEach(createCard);\n}", "title": "" }, { "docid": "689db149120e3e28fcf155c973586a02", "score": "0.63818985", "text": "function createGameState() {\n return {\n //player object\n players: [{\n //playerOne position\n pos: {\n x: 3,\n y: 10,\n },\n //playerOne velocity\n vel: {\n x: 1,\n y: 0,\n },\n //snakeOne position\n snake: [\n {x: 1, y: 10},\n //{x: 2, y: 10},\n //{x: 3, y: 10},\n ],\n }, {\n //playerTwo position\n pos: {\n x: 18,\n y: 10,\n },\n //playerTwo velocity\n vel: {\n x: 0,\n y: 0,\n },\n //snakeTwo position\n snake: [\n {x: 20, y: 10},\n //{x: 19, y: 10},\n //{x: 18, y: 10},\n ],\n }],\n //position of food\n food: {},\n //gameWorlds grid system\n gridsize: GRID_SIZE,\n };\n}", "title": "" }, { "docid": "470969e165c660584c4a1defd7a89884", "score": "0.6369084", "text": "function newGame(){\n matchedCards=0;\n second=0;\n minute=0;\n moves=0;\n openedCards=[];\n clearInterval(interval);\n startTime();\n shuffle(names);\n cards=shuffle(cards);\n for(var i=0;i<16; i++){\n table.innerHTML=\"\";\n [].forEach.call(cards,function(item){\n table.appendChild(item);\n });\n cards[i].classList.remove(\"show\",\"open\",\"match\",\"disabled\");\n }\n\n counter.innerHTML=moves;\n stars[1].setAttribute(\"class\",\"fa fa-star\");\n stars[2].setAttribute(\"class\",\"fa fa-star\");\n }", "title": "" }, { "docid": "fdff176b8ef010cf38047d62ad7d2f8d", "score": "0.636354", "text": "function startGame() {\n createButtons();\n createCards();\n}", "title": "" }, { "docid": "fdff176b8ef010cf38047d62ad7d2f8d", "score": "0.636354", "text": "function startGame() {\n createButtons();\n createCards();\n}", "title": "" }, { "docid": "ba7913e9998fb0656b818e4f3bebd840", "score": "0.6361794", "text": "function restartGame() {\n var cards = angular.copy($scope.gameState.cards);\n cards.forEach(function(card) {\n card.cardState = 'hidden';\n });\n return {\n cards: cards,\n selected: [],\n solved: 0\n };\n }", "title": "" }, { "docid": "9e020703c09ca4b283b8d08c81c17326", "score": "0.63610524", "text": "function newGame() {\n number = randomNum();\n counter = 0;\n }", "title": "" }, { "docid": "5ac1c7455007415234347a5a4a86c3fd", "score": "0.63485694", "text": "createGame(numberOfCards, owner, filter) {\n // Random number with correct number of digits\n var id = Math.floor(Math.random() * Math.floor(Math.pow(10, config.gameIdDigits)));\n\n while (this.games.hasOwnProperty(id)) {\n id = Math.floor(Math.random() * Math.floor(Math.pow(10, config.gameIdDigits)));\n }\n\n this.games[id] = new Game(id, numberOfCards, owner, filter, (gameId) => { this.removeGame(gameId) });\n return this.games[id];\n }", "title": "" }, { "docid": "c6aa6cf90ed67af8d26826ff5b98dd83", "score": "0.6337015", "text": "function createGameSize(length) {\n resetBoard();\n cards = [];\n for (let i = 0; i < length; i += 1) {\n let card = cardCollection[i];\n cards.push(card);\n }\n cards = shuffle(cards);\n\n resetBoard();\n}", "title": "" }, { "docid": "56ec9ee60028500dae485c8f6f79e34f", "score": "0.6336364", "text": "createInitialGameState(){\n\t\treturn {\n\t\t\tplaying: true,\n\t\t\tboard: BoardController.createBoard(\n\t\t\t\tthis.props.width, this.props.height\n\t\t\t),\n\t\t\tfalling: GameController.createTetramino(\n\t\t\t\tMath.floor(this.props.width / 2)\n\t\t\t),\n\t\t\ttime: 0,\n\t\t\tscore: 0,\n\t\t\tlevel: 1\n\t\t};\n\t}", "title": "" }, { "docid": "1d0566447cc892b7cbb4a47964e03fd0", "score": "0.6333352", "text": "createNewBoardState(previousState) {\n const index = this.getLocation();\n const newBoard = previousState.getBoard().slice(0);\n newBoard[index] = this.getPlayer();\n\n return newBoard;\n }", "title": "" }, { "docid": "24cb75b23e4c47efc136cbe259477680", "score": "0.6325815", "text": "function newGame() {\n\t\tnewNumbers();\n\t\ttotalScore = 0;\n\t\t$(\"#magicNumber\").text(magicNumber);\n\t\t$(\"#totalScore\").text(totalScore);\n\t\t$(\"#crystal1\").attr(\"data-crystalvalue\", crystal1Num);\n\t\t$(\"#crystal2\").attr(\"data-crystalvalue\", crystal2Num);\n\t\t$(\"#crystal3\").attr(\"data-crystalvalue\", crystal3Num);\n\t\t$(\"#crystal4\").attr(\"data-crystalvalue\", crystal4Num);\n\t\t$(\"#wins\").text(wins);\n\t\t$(\"#losses\").text(losses);\n\t\t$(\"#winOrLose\").text(\"\");\n\t}", "title": "" }, { "docid": "1ac6055e74a9860b74f25c26bf012403", "score": "0.6323908", "text": "returnState() {\n let state = {};\n state.hexes = {};\n state.roads = [];\n state.cities = [];\n state.longestRoad = {length:0, player:0};\n state.largestArmy = {size: 0, player:0};\n state.players = [];\n state.playerTurn = 0;\n state.ports = [];\n state.lastroll = [0,0];\n for (let i = 0; i < this.game.players.length; i++) {\n state.players.push({});\n state.players[i].resources = [];\n state.players[i].vp = 0;\n state.players[i].towns = 5;\n state.players[i].cities = 4;\n state.players[i].knights = 0;\n state.players[i].vpc = 0;\n state.players[i].devcards = 0;\n state.players[i].ports = [];\n }\n return state;\n }", "title": "" }, { "docid": "855fbe488f55d181c62da00674996fb9", "score": "0.6318459", "text": "function initiateGame() { \n let container = $(\"#deck\");\n container.empty(); \n openCards = []; \n isGameStarted = false; \n\n resetMoveCount();\n resetStars();\n resetTimeCount();\n\n cardList = shuffle(cardList);\n initiateCards(cardList);\n\n clearInterval(timer); \n }", "title": "" }, { "docid": "f13a1145532cef0f3603967789c5e750", "score": "0.63105094", "text": "function newGame(id) {\n id = parseInt(id);\n currentGameId = id;\n moveStack = {count: 0, moves: []};\n guiScore = 0;\n guiDepth = 0;\n guiTime = 0;\n guiPv = '';\n gameResult = '';\n userTime = 0;\n allowBook = 1;\n engine.setBoard(engine.START_FEN);\n document.getElementById('pgn').value = ' Red: ' + Games[id].red +\n '\\nBlack: ' + Games[id].black +\n '\\nEvent: ' + Games[id].event;\n repetitions = 0;\n moveStack.moves.push({\n 'move': 0,\n 'position': JSON.stringify(engine.getBoard()),\n 'side': engine.getSide(),\n 'sixty': engine.getSixty(),\n 'hashKey': engine.getHashKey(),\n 'kingSquare': JSON.stringify(engine.getKingSquare())\n });\n \n let moves = Games[id].moves.split(' ');\n \n for (let count = 0; count < moves.length; count++) {\n let move = moves[count];\n let encodedMove = engine.moveFromString(move);\n engine.loadMoves(move);\n \n moveStack.moves.push({\n 'move': encodedMove, \n 'position': JSON.stringify(engine.getBoard()),\n 'side': engine.getSide(),\n 'sixty': engine.getSixty(),\n 'hashKey': engine.getHashKey(),\n 'kingSquare': JSON.stringify(engine.getKingSquare())\n });\n \n moveStack.count++;\n }\n\n firstMove();\n}", "title": "" }, { "docid": "13d117054c02f41c6b224f9e08455710", "score": "0.63038075", "text": "function startGame() {\n state.cards = shuffle(state.cards);\n deck.innerHTML = '';\n state.openedCards = [];\n\n state.cards.forEach(card => {\n card.classList.remove('show', 'open', 'match', 'unmatch', 'disabled');\n deck.appendChild(card);\n });\n\n state.moves = 0;\n moveCount.innerHTML = state.moves;\n\n for (let i = 0; i < 3; i++) {\n stars[i].style.visibility = 'visible';\n }\n\n state.min = 0;\n state.sec = 0;\n state.hr = 0;\n\n timer.innerHTML = state.hr + 'h : ' + state.min + 'm : ' + state.sec + 's';\n clearInterval(state.interval);\n clearTimeout(state.unmatchTimeout);\n}", "title": "" }, { "docid": "04f5c0f9ad6f567bfe6a4cd86a2b6e26", "score": "0.6299425", "text": "function newGameboard(){\n clicks = 0;\n resetTimer();\n noMatchMoves = 0;\n resetStars();\n matches = 0;\n openCards = [];\n deck.innerHTML = ' ';\n createCardsHTML();\n allCards = document.querySelectorAll('.card');\n inializeMoveCounter();\n}", "title": "" }, { "docid": "b532da2d9b7864b80d76ebba35530d76", "score": "0.6295405", "text": "function setNewState() {\n state.counter = 0;\n $(\"#total-score\").text(0);\n state.newNumberOptions = [];\n state.targetNumber = Math.floor(Math.random() * (180-19)) + 20;\n console.log(\"state: \", state, state.targetNumber, state.newNumberOptions);\n $(\"#number-to-guess\").text(state.targetNumber);\n}", "title": "" }, { "docid": "04311bc61b8078c50f7b38aaeba80a46", "score": "0.6290892", "text": "function startGame() {\n const cardsShuffled = shuffle(cardsList);\n\n // init game stats\n gameStats = {\n cardsFlipped: [],\n matchedCards: [],\n moves: 0,\n stars: star + star + star,\n timer: {\n minutes: 0,\n seconds: 0,\n },\n };\n\n // clear running clock\n if (clock) {\n clearClock();\n }\n\n // delete cards in cards container\n cardsContainer.innerHTML = '';\n\n // update score panel\n updateScore();\n\n // add cards to cards container\n for (let i = 0, length = cardsShuffled.length; i < length; i++) {\n const card = createCardElem(cardsShuffled[i]);\n\n cardsContainer.appendChild(card);\n\n card.addEventListener('click', handleCardClick);\n }\n}", "title": "" }, { "docid": "4247e3f674df268ba4063413d883f587", "score": "0.6290147", "text": "resetGame() {\n if (this.state.bust) {\n this._buildDeck();\n }\n }", "title": "" }, { "docid": "feb1b9d0c9957e6b0f4e33e8aca85188", "score": "0.6289589", "text": "function initNewGame(){\n flagGameOn = false;\n flagGameOver = false;\n score = 0;\n lives = NUMBER_OF_LIVES;\n resetBallStartingLocation();\n createBlocks();\n}", "title": "" }, { "docid": "0d5ed0bc4f47e8a5afb2ee00738c18d7", "score": "0.6281666", "text": "async function makeNewDeck(){\n setIsLoading(true);\n const cardArr = await Tarot.newDeck();\n let newDeck = new Deck(cardArr);\n setHand([]);\n setDeck(newDeck);\n setIsLoading(false);\n }", "title": "" }, { "docid": "3fabe8591b4911d7620c254f1619b3a9", "score": "0.6273259", "text": "function setupNewGame() {\n\t// Reset turn value to 1\n\tvar turnObj = {\n\t\tturn: 1,\n\t};\n\n\tupdateDatabaseNode('', turnObj);\n\n\t// Clear counter message\n\t$('#new-game-countdown').empty();\n\n\t// Clear results panel body\n\t$('#results-panel-body').empty();\n}", "title": "" }, { "docid": "b6fc75937778bc4ac82dfb9c780e833d", "score": "0.6263804", "text": "gameState() {\n return {\n complete: this.gameComplete,\n dealerCards: this.dealerCards,\n playerCards: this.playerCards,\n bjState: this.bjState,\n dealerTotal: this.dealerTotal,\n playerTotal: this.playerTotal,\n controlError: this.controlCh.lastError,\n ch1Error: this.ch1.lastError,\n ch2Error: this.ch2.lastError,\n winner: BlackjackGame.winner(this.playerTotal, this.dealerTotal),\n deck: [...this.controlCh.initialInputQueue],\n programCounter: this.programCounter,\n };\n }", "title": "" }, { "docid": "89635c676f4cd9a3c1a186b4b2953a22", "score": "0.6262045", "text": "function gameBegins() {\n\tvar changedCards = shuffle(cardList);\n\tvar j = 0;\n\twhile (j < changedCards.length) {\n\t\tdeckSurface.append(changedCards[j]);\n\t\tj++;\n\t}\n}", "title": "" }, { "docid": "ec491b65398bd11b25b1f7d8e9e43a36", "score": "0.62602705", "text": "function newGame () {\n\t\tsetFocus();\n\t\tclearPrevInput();\n\t\tresetGuessCount();\n\t\tclearPrevGuesses();\n\t\trandomNumber = pickRandomNumber();\n\t\tsetFeedback('Make your Guess!');\n\t\tguessCorrect = false;\n\n\t}", "title": "" }, { "docid": "d2b991866c3e73e1164af14753650cb1", "score": "0.6258966", "text": "regenerate() {\n let cardIndex = 0\n for (let value of this.values) {\n for (let suit of this.suits) {\n this.cards.push(new Card(value, suit, cardIndex));\n cardIndex++;\n }\n }\n }", "title": "" }, { "docid": "75638f6493b5bfa3ac73a3a6ef22e519", "score": "0.6257673", "text": "function startGame() {\n\n fullDeck(); // Returns 81 cards in cards array\n\n cards = shuffle(cards); // Redefine cards by shuffling the cards array \n\n drawnCards = draw(12); // 12 cards from shuffled deck to make up initial game deck\n\n nameImage(drawnCards); // Assigns img files to deck data array and creates gameDeck array\n\n createGameCards(drawnCards.length); // Use drawnCards global array and gameDeck global array to create game deck\n\n}", "title": "" }, { "docid": "1a524f24e44baf9ba840ae42170b2c87", "score": "0.6256774", "text": "function newGame() {\n targetScore = randomNumber(19, 120);\n crystalRuby = randomNumber(1, 12);\n crystalDiamond = randomNumber(1, 12);\n crystalCitrine = randomNumber(1, 12);\n crystalEmerald = randomNumber(1, 12);\n totalClicks = 0;\n userScore = 0;\n updateTotal();\n statusMessage = \"\";\n }", "title": "" }, { "docid": "374d30681e8fbfbd9fb734b21b96f689", "score": "0.62564576", "text": "buildDeck() {\n let cards = []\n\n suits.forEach(suit => {\n ranks.forEach(rank => {\n cards.push(new Card(rank, suit))\n })\n })\n // for each suit and rank, create a card, and add that card to the `cards` array\n\n this.cards = _.shuffle(cards)\n // assign a shuffled version of our newly created cards to `this.cards`\n }", "title": "" }, { "docid": "c48a2fd7e9f3314c9f41babb170b8589", "score": "0.6253928", "text": "function startNewGame() {\n t1.startValue = timerStart;\n t1.stopValue = timerEnd;\n t1.isPaused = false;\n t1.startPause();\n newDeck.shuffle(newDeck.cards);\n setupBoard();\n}", "title": "" }, { "docid": "0915a6fd3bc161df36d09995b973a560", "score": "0.62527555", "text": "function newGame() {\r\n board = new Board;\r\n currentTime = 0;\r\n}", "title": "" }, { "docid": "4088f2bdef274eabcc49c6ff3c0fadb9", "score": "0.6246743", "text": "function GameStates() {\n\tthis.states = [];\n\tthis.states[GFS_SU_DistributingInitialForces.id] = new GFS_SU_DistributingInitialForces();\n\tthis.states[GFS_P_Reinforce.id] = new GFS_P_Reinforce();\n\tthis.states[GFS_P_Attack.id] = new GFS_P_Attack();\n\tthis.states[GFS_P_Redeploy.id] = new GFS_P_Redeploy();\n\tthis.states[GFS_End.id] = new GFS_End();\n}", "title": "" }, { "docid": "5f50921596d99c54ea7953b63585bb04", "score": "0.6244298", "text": "newGame() {\n this.resetGame();\n this.chooseRandomPlayer();\n this.DOM.board.show();\n\n if(this.activePlayer.isComputer){\n this.computerMove();\n }\n }", "title": "" }, { "docid": "9d988a3122eb7e3d373f5a2d0e72a1f0", "score": "0.62437946", "text": "function newFreshGame(){\n tetris = new Tetris();\n\n for(let i=0 ; i<18 ; i++){\n tetris.totalBoardColor.push([\"\", \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\"]);\n }\n for(let i=0 ; i<18 ; i++){\n tetris.totalBoardValue.push([ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ]);\n }\n \n currentPiece = new Piece();\n nextPiece = new Piece();\n nextPiece.coordinates = {x: 3, y:3};\n count=1;\n }", "title": "" }, { "docid": "a36f676028ad0fe2493d3ca902a63172", "score": "0.62412226", "text": "function gameCreate(context, payload) {\n const {\n name,\n nrOfTeams,\n nrOfStations,\n crewDuration,\n planDuration,\n playDuration,\n loginTimer,\n su,\n } = payload;\n\n // A game must have a name\n if (name === undefined || typeof name !== 'string' || name === '') {\n context.send('game:create:fail', { errorCode: 0 });\n return;\n }\n\n if (!su) {\n const player = context.getPlayerState();\n\n // Can't start a game if you're in one (or not connected)\n if (!player || player.gameId !== null) {\n context.send('game:create:fail', { errorCode: 1 });\n return;\n }\n }\n\n const gameExists = context.getGameState({ name });\n\n // Game already exists with that name\n if (gameExists) {\n context.send('game:create:fail', { errorCode: 2 });\n return;\n }\n\n // Default game play properties\n const defaults = {};\n\n if (planDuration !== undefined) {\n defaults.planPhaseDuration = planDuration;\n }\n\n if (playDuration !== undefined) {\n defaults.playPhaseDuration = playDuration;\n }\n\n // Our tokes (for now) is just a simple array of { name: letter }\n // for now it dosnt take any arguments\n const tokens = utils.createTokens();\n\n // Our teams (based off of `nrOfTeams`)\n const teams = Array.from({ length: nrOfTeams || 4 }).map((_, index) => {\n return utils.createTeam({ name: `Team ${index + 1}` });\n });\n\n // Randomized array of station names\n const stationNames = utils.getStationNames();\n\n // Our stations (based off of `nrOfStations`), the racks are based on the\n // number of teams and tokens\n const stations = Array.from({ length: nrOfStations || 6 }).map((_, index) => {\n const racks = utils.createRacks(teams.length, tokens.length);\n\n // Default login time\n const defaults = loginTimer === undefined ? {} : { loginTime: loginTimer };\n\n return utils.createStation({\n name: stationNames[index],\n racks,\n defaults,\n });\n });\n\n // All players are stored within an object as `{ playerId: playerObject }`\n const players = {};\n\n // We'll grab our own ID\n const id = !su ? context.id() : 'SUPERUSER';\n\n // Add our own username to our player\n const { username } = !su ? context.getPlayerState() : { username: 'SUPERUSER' };\n // And then add ourselves as the first player\n const newPlayer = utils.createPlayer({ username });\n players[id] = newPlayer;\n\n // We'll create a new game with all of the above\n const newGame = utils.createGame({\n name,\n admin: id, // since we created the game we'll be the admin\n tokens,\n stations,\n teams,\n players: !su ? players : {},\n defaults,\n });\n\n // Add the newly created game to the server state\n context.addGame(newGame.id, newGame);\n\n if (!su) {\n // Lets assign ourselves to the game\n context.updatePlayerState({ gameId: newGame.id });\n // Lets send back the newly created game and yourself\n context.send('player:you', { player: utils.filterPlayer(newPlayer) });\n }\n\n context.send('game:yours', { game: utils.filterGame(newGame) });\n}", "title": "" }, { "docid": "b65d7168cadec96f2551620429160f50", "score": "0.62389004", "text": "function create_new_game(game) {\n var id = games.length;\n games[id] = {...game, id};\n turns[id] = [];\n\n // TODO: persist efficiently\n db.set(\"games\", games);\n db.set_str(\"games.turns.\"+id, \"\");\n }", "title": "" }, { "docid": "d7a191f34e7a69f37e99a6f29f8810f4", "score": "0.6237601", "text": "createNewState() {\n if (this.recentUndo) {\n for (let i = this.changes.length - 1; i > this.currentState; i -= 1) {\n this.changes = this.changes.filter((obj) => obj !== this.changes[i]);\n }\n }\n this.currentState += 1;\n const newState = new ObjectState(this.objects);\n this.changes[this.currentState] = newState;\n this.recentUndo = false;\n this.redrawEverything();\n }", "title": "" }, { "docid": "07d466984c98745816143b054d7aa065", "score": "0.62358594", "text": "newDeck() {\n this.shuffleWords()\n this.shuffleColors()\n }", "title": "" }, { "docid": "e396dbbaaefcdc38d6793bed1b7303f6", "score": "0.62347025", "text": "function newGame(id1, id2, size = 3) {\n let dummyDeck = require('./data/baseballData.js');\n\n // Returns two hands drawn from the dekc\n function dealHands() {\n let cards = Object.keys(dummyDeck);\n let hand1 = {};\n let hand2 = {};\n\n // Draws a random card from the deck, removing it from the deck\n function drawCard() {\n let cardIndex = Math.floor(Math.random() * cards.length);\n let card = cards.splice(cardIndex, 1)[0];\n return dummyDeck[card];\n }\n\n // Alternates drawing a card for each hand\n for (let i = 1; i <= size * 2; i++) {\n let card = drawCard();\n if (i % 2) {\n hand1[card.name] = card;\n } else {\n hand2[card.name] = card;\n }\n }\n\n return [hand1, hand2];\n }\n\n let hands = dealHands();\n\n // Initialize the game\n let match = {\n id: id1 + id2,\n game: {\n rounds: {\n total: size,\n count: 0,\n wins: {}\n },\n categories: ['Home Runs', 'Stolen Bases', 'Average', 'Hits', 'RBI']\n },\n board: {\n currentCategory: null\n }\n };\n\n getSocket(id1).data.hand = {\n currentHand: hands.shift(),\n selectedCard: null\n };\n\n getSocket(id2).data.hand = {\n currentHand: hands.shift(),\n selectedCard: null\n };\n\n match.game.rounds.wins[id1] = 0;\n match.game.rounds.wins[id2] = 0;\n\n return match;\n }", "title": "" }, { "docid": "a1453549dbe0707034209d1f8872bf29", "score": "0.62336767", "text": "function newGame() {\n const piece = game.players[0].item\n const name = game.players[0].name\n game.board.clearBoard()\n game.initializeGame(piece, name)\n document.getElementById(\"gameStatus\").innerHTML = \"\"\n}", "title": "" }, { "docid": "2330c125a3cc79dea5113d2c77ebae0a", "score": "0.6231595", "text": "function createNewGame() {\n document.querySelector(\".board\").appendChild(createEmptyMatrix());\n generateGround();\n generateRocks();\n generateTree();\n}", "title": "" }, { "docid": "30f79a58e1dfee385f3fe658cf47f48c", "score": "0.62252045", "text": "function GameState() {\n this.state = PRE_GAME;\n this.active = false;\n this.preGame = true;\n}", "title": "" }, { "docid": "178365560d2a4501dc6d0d457b9deb1d", "score": "0.6224204", "text": "function ratscrew_ProcessMove(moveId, info) {\n // create a new game\n if (info.action == \"create\") {\n // build the initial game state\n game = new GameObject(info.playerIDs);\n var state = new GameState(null);\n\n // set the card stacks\n state.createStackGroups(info.playerIDs, [\"hand\"]);\n state.createStackGroup(\"centerPile\", [\"stack\"]);\n\n // generate the cards and add the create move\n game.addState(moveId, info, state);\n cards_create52CardDeck();\n }\n\n // start an already created game\n if (info.action == \"start\") {\n // new state to save for after the game\n var newState = game.newState(moveId, info);\n\n // setup the visual stacks for each player\n var displays = game.drawManager.createCircularStacks(\n game.players.length,\n game.players.indexOf(self_playerID)\n );\n for (var i = 0; i < game.players.length; i++) {\n\n // attatch the corresponding visual display to each card stack\n var playerID = game.players[i];\n var hand = game.getCurrentState().getGroupAndStack(playerID, 'hand');\n hand.addDisplay(displays[i]);\n hand.display.text = game_playerNames[playerID];\n\n // set the initial visual states of each stack\n if (i == 0) {\n hand.display.setBackground('#99ff33');\n }\n if (playerID == self_playerID) {\n hand.setHoverActive();\n hand.display._mouseClickFunc = ratscrew_userClickFunc;\n hand.display.displayText = true;\n }\n else {\n hand.setHoverHighlight();\n }\n\n // ard cards to each stack in face down orientation\n hand.addCards(info.players[i].initialCards, \"down\");\n }\n\n // setup the visual state of the cetner stack\n var centerStack = game.getCurrentState().getGroupAndStack('centerPile', 'stack');\n centerStack.addDisplay(game.drawManager.createCenterStack());\n centerStack.display._mouseClickFunc = ratscrew_userSlapFunc;\n centerStack.setHoverHighlight();\n centerStack.display.text = 'Click to Slap';\n\n // add the global state variables\n game.getCurrentState().addStateVariable('currentPlayer', 0);\n game.getCurrentState().addStateVariable('faceCardState', false);\n game.getCurrentState().addStateVariable('faceCardsToPlay', null);\n game.getCurrentState().addStateVariable('faceCardBeneficiary', null);\n\n // start animating the screen\n game.drawManager.draw();\n requestAnimationFrame(animationFunction);\n }\n\n // process a move\n if (info.action == \"move\") {\n // if the state cannot be verified, skip it\n if (!game.verifyState(info.previousMoveID)) {\n return;\n }\n\n // new game state to build\n var newState = new GameState(game.getCurrentState());\n\n // if the somebody other than the current player moved, reject it\n var currentPlayer = ratscrew_currentPlayer();\n if (info.player != currentPlayer) {\n return;\n }\n\n // if the game is in the face cards state, reject the move\n if (\n newState.globalStates.faceCardState &&\n newState.globalStates.faceCardsToPlay <= 0\n ) {\n return;\n }\n\n // get the stacks\n var playerStack = newState.stackGroups[info.player].stacks.hand;\n var centerStack = newState.stackGroups.centerPile.stacks.stack;\n\n // if sending a card to the center stack fails, ignore the move\n if (!playerStack.sendCard(info.card, centerStack, 'top', 'up')) {\n return;\n }\n\n // set the face card state if a face card was playerd\n if (cards_getNumAceHigh(info.card) > 10) {\n newState.globalStates.faceCardState = true;\n newState.globalStates.faceCardsToPlay = cards_getNumAceHigh(info.card) - 10;\n newState.globalStates.faceCardBeneficiary = info.player;\n ratscrew_advancePlayer(playerStack, newState);\n }\n // if in the face card state, update the place in the the state after\n // the play\n else if (newState.globalStates.faceCardState) {\n newState.globalStates.faceCardsToPlay--;\n if (playerStack.cards.length == 0) {\n ratscrew_advancePlayer(playerStack, newState);\n }\n }\n // otherwise it is a normal play\n else {\n ratscrew_advancePlayer(playerStack, newState);\n }\n\n // add the state and see if somebody won\n game.addState(moveId, info, newState);\n ratscrew_checkWinner();\n }\n\n // handle a player slapping the deck\n if (info.action == \"slap\") {\n // ignore the move if it cannot be verified\n if (!game.verifyState(info.previousMoveID)) {\n return;\n }\n\n // create a new state\n var newState = new GameState(game.getCurrentState());\n\n // get the stacks\n var playerStack = newState.stackGroups[info.player].stacks.hand;\n var centerStack = newState.stackGroups.centerPile.stacks.stack;\n\n // check if there was a slappable pattern & state; if not, exit\n var pattern = ratscrew_checkPatterns(centerStack.cards);\n if (!(\n newState.globalStates.faceCardState &&\n info.player == newState.globalStates.faceCardBeneficiary &&\n newState.globalStates.faceCardsToPlay == 0\n ) && !pattern) {\n game_tempTitleText(game_playerNames[info.player] + \": Bad Slap\", 'red');\n return;\n }\n\n // display whether it was valid based on face cards or a card pattern\n if (pattern) {\n game_tempTitleText(game_playerNames[info.player] + \": \" + pattern, '#000080');\n }\n else {\n game_tempTitleText(game_playerNames[info.player] + \": Face Cards\", '#000080');\n }\n\n // exit the face card state after a slap\n newState.globalStates.faceCardState = false;\n ratscrew_changeCurrentPlayer(newState, info.player);\n\n // put all the cards face down at the bottom of the slapping player's\n // stack\n centerStack.sendAll(playerStack, 'bottom', 'down');\n game.addState(moveId, info, newState);\n\n // check if there was a winner\n ratscrew_checkWinner();\n }\n}", "title": "" }, { "docid": "c8e0f2f5c0921c37a0edab1eaa34eb12", "score": "0.6221158", "text": "function createNewGame() {\n if(!GAME_MUSIC.playing() && _music == ON) {\n GAME_MUSIC.play();\n }\n GAME_OVER_PROMPT.style.display = \"none\";\n _level = 1;\n score = 0;\n _lives = 3;\n LIVES_HTML.textContent = _lives;\n SCORE_HTML.textContent = numberWithCommas(score);\n resetShipAsteroidBullet();\n setupAsteroids();\n}", "title": "" }, { "docid": "cc1984ddd2596ec8fa1fb3dcdba1c8ab", "score": "0.6220919", "text": "function _IG_game_state() {\n this.cur_puz = 0;\n }", "title": "" }, { "docid": "9824e2aabe3dc4c48443be39bb71ca68", "score": "0.62108904", "text": "function newGame() {\n\n domClasses.cardsField.innerHTML = ``;\n domClasses.infoBegin.style.display = \"flex\";\n domClasses.cardBox.style.visibility = \"hidden\"; \n domClasses.allPlayers.innerHTML = ``;\n domClasses.texasDiv.style.display = \"flex\";\n document.body.style.backgroundColor = \"rgb(72, 201, 136)\";\n allPlayers = [];\n resetGameParams();\n}", "title": "" }, { "docid": "dc1df5d1cf98ec231e938f6461a183cd", "score": "0.6198041", "text": "constructor(boardSize) {\n this.gameState = {\n board: [],\n score: 0,\n won: false,\n over: false,\n };\n this.continue = false;\n this.boardSize = boardSize;\n this.moveListeners = [];\n this.winListeners = [];\n this.loseListeners = [];\n let zeroIndexes = [];\n for (let i = 0; i < boardSize ** 2; i++) {\n this.gameState.board.push(0);\n zeroIndexes.push(i);\n }\n // Need to add random indexes\n let tempArray = shuffle(zeroIndexes);\n const index1 = tempArray.pop();\n const index2 = tempArray.pop();\n\n const value1 = Math.random() >= 0.9 ? 4 : 2;\n const value2 = Math.random() >= 0.9 ? 4 : 2;\n this.gameState.board[index1] = value1;\n this.gameState.board[index2] = value2;\n }", "title": "" }, { "docid": "49b12e2f2f782fb9367935e550d220f5", "score": "0.6190022", "text": "function createCardDeck() {\n let iconClassList = [\n 'fa fa-diamond', 'fa fa-paper-plane-o', 'fa fa-anchor', 'fa fa-bolt', 'fa fa-cube',\n 'fa fa-anchor', 'fa fa-leaf', 'fa fa-bicycle', 'fa fa-diamond', 'fa fa-bomb', 'fa fa-leaf',\n 'fa fa-bomb', 'fa fa-bolt', 'fa fa-bicycle', 'fa fa-paper-plane-o', 'fa fa-cube'\n ];\n\n for (let i = 0; i < iconClassList.length; i++) {\n let listItem = document.createElement('li');\n listItem.className = 'card';\n\n let cardImage = document.createElement('i');\n cardImage.className = iconClassList[i];\n\n listItem.appendChild(cardImage);\n listItem.addEventListener('click', displayCard);\n listItem.addEventListener('click', openCard);\n listItem.addEventListener('click', congratulations);\n\n deck.appendChild(listItem);\n }\n\n let card = document.getElementsByClassName('card');\n state.cards = [...card];\n\n close.addEventListener('click', closeModal);\n playAgain.addEventListener('click', addPlayAgainListener);\n restart.addEventListener('click', startGame);\n startGame();\n}", "title": "" }, { "docid": "311792682001efe712b1acb2e787e659", "score": "0.6186596", "text": "function fillGameState()\n{\n\tfor(var i=0; i<tabCoups.length; i++){\t\t\t\n\t\tpawnMoves(tabCoups[i]);\t\t\n\t\tinverserTour();\n\t\tvar str = boardToString(); // etat de la partie sous forme de string\t\t\n\t\ttabStrGameState.push(str);\t\t\n\t}\n}", "title": "" }, { "docid": "e64fdc3d5f6e834e4d6d11624578013f", "score": "0.61780536", "text": "function newGame() {\n \t\trandomNumber = createNumber(); /* Generate new random number */\n \t\tsetFeedback(\"Make your Guess!\"); /* Return h2#feedback to original text */\n \t\tguessCount = 0; /* Return span#count to 0 */\n \t\tdisplayCount();\n \t\t$('#guessList').empty(); /* Clear ul#guessList */\n \t\tclearInput();\n\n \t}", "title": "" }, { "docid": "38232a979138a02aecfb9a64b2363d00", "score": "0.61744016", "text": "function newGame() {\n remainingGuesses = 0;\n lettersGuessed = [];\n artist = getRandomArtist();\n hideSong(artist.song);\n remainingGuesses = artist.song.length + 3;\n setElements(readyToStart);\n}", "title": "" }, { "docid": "28ef8a0749ab075df2c492fdaaa0fcdf", "score": "0.6170984", "text": "function newDeck() {\n\t// push each card into deck[]\n\tfor (var i = 0; i < 4; i++) {\n\t for (var j = 0; j < 13; j++) {\n\t\t\t\t// image info\n\t\t\t\t// first digit is the suit. following digit(s) = rank/value\n\t\t\t\t// 010.png = diamond Jack\n\t\t\t\t// 01.png = diamond 2\n\t\t\t\t// 20.png = heart A\n\t\t\t\t\n\t\t\t\tvar img = i.toString()+j.toString(); // file name of corresponding card\n\t\t\t\tvar card = {};\n\t\t\t\t\n\t\t\t\tif (j === 0) { // if ace, value = 11\n\t\t\t\t\tcard = {\n\t\t\t\t // rank: j+1, \n\t\t\t\t suit: i+1,\n\t\t\t\t\t\tvalue: 11,\n\t\t\t\t\t\timage: \"deckimg/\"+ img +\".png\"\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\telse if (j >= 10) { // if face card, value = 10\n\t\t\t\t\tcard = {\n\t\t\t\t // rank: j+1, \n\t\t\t\t suit: i+1,\n\t\t\t\t\t\tvalue: 10,\n\t\t\t\t\t\timage: \"deckimg/\"+ img +\".png\"\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t \telse {\n\t\t \t\tcard = {\n\t\t\t\t // rank: j+1, \n\t\t\t\t suit: i+1,\n\t\t\t\t\t\tvalue: j+1,\n\t\t\t\t\t\timage: \"deckimg/\"+ img +\".png\"\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t deck.push(card); // push newly created card(assoArray) into the deck array\n\t }\n\t}\n\t//shuffle the deck\n\tfor (var i = 0; i < deck.length; i++) {\n\t\tvar randomIndex = Math.floor(Math.random()*deck.length);\n\t\t// swap cards\n\t\tvar moveThis = deck[randomIndex];\n\t\tdeck[randomIndex] = deck[i];\n\t\tdeck[i] = moveThis;\n\t}\n}", "title": "" }, { "docid": "307f5a2c5f0622a02836fcba60b7cf0f", "score": "0.61706215", "text": "function createBoard() {\n // setup scoreboard\n document.getElementById('score').innerHTML = score;\n document.getElementById('maxScore').innerHTML = maxScore;\n\n shuffle(cards);\n\n // Generate 4 cards\n for (var i = 0; i < cards.length; i++) {\n var newCard = document.createElement('div');\n newCard.className = 'card';\n newCard.setAttribute('data-card', cards[i]); // Identify the card\n document.getElementById('game-board').appendChild(newCard);\n newCard.addEventListener('click', isTwoCards);\n }\n\n // Activate reset button\n document.getElementById('restartButton').addEventListener('click', restartGame);\n}", "title": "" } ]
d13e0202dfd38e0fc7cf3b5c132f2786
Interface para anuncio de vencedor
[ { "docid": "ffdc283819ff170fdd2ef61a2b94aa8f", "score": "0.55781263", "text": "function AnunciarVitoria(vencedor){\n\t\tclearInterval(relogio);\n\t\tclearInterval(vitoria);\n\t\tvar mostrador = document.getElementById('resultado');\n\t\tswitch(vencedor){\n\t\t\tcase 1:mostrador.innerHTML = 'P1 VENCEU';break;\n\t\t\tcase 2:mostrador.innerHTML = 'P2 VENCEU';break;\n\t\t\tcase 3:mostrador.innerHTML = 'P3 VENCEU';break;\n\t\t\tcase 4:mostrador.innerHTML = 'P4 VENCEU';break;\n\t\t\tdefault:mostrador.innerHTML = 'EMPATE';break;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "cf708b3a59682de06d78b8ae703251d9", "score": "0.63002664", "text": "function constroiEventos(){}", "title": "" }, { "docid": "f400c267a41e0c70d8a8c8a3031ac42f", "score": "0.6164453", "text": "function condiçaoVitoria(){}", "title": "" }, { "docid": "4ca9caad594c0f3068beb00a395c5e02", "score": "0.60688716", "text": "function serVivo(especie) {\n //this.especie = especie;\n this.especie = especie;\n }", "title": "" }, { "docid": "56ac4b701b4da0ccd0ef0d895f400c47", "score": "0.6020124", "text": "function Vt(){this.__data__=[]}", "title": "" }, { "docid": "b43a4a24219baed5290ec757c4674a10", "score": "0.5696584", "text": "bouger()\r\n {\r\n this.gauche += Math.cos(this.angle) * this.vitesseX;\r\n this.haut += Math.sin(this.angle) * this.vitesseY;\r\n\r\n //Fonctions annexes\r\n this.limite();\r\n this.majHTML();\r\n }", "title": "" }, { "docid": "46ac999db9a065ab9afa0377fa79baad", "score": "0.5694357", "text": "function Rv(){var t=this;ci()(this,{$interaction:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&uu()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$interactionsContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.interactionsContainer}}})}", "title": "" }, { "docid": "7569c2895ee5aee041b3376a2ca8bf87", "score": "0.5688564", "text": "function Votant(id, p, n, urlImg) {\n\tthis.ID = id;\n\tthis.Prenom = p;\n\tthis.Nom = n;\n\tthis.URLImg = urlImg;\n}", "title": "" }, { "docid": "e7fbb10173626659bed4835e47caab74", "score": "0.56821746", "text": "function Vertice(id, valor, CF) {\n this.id = id || 0;\n this.valor = valor || 'vertice';\n this.CF = CF || -1.0;\n}", "title": "" }, { "docid": "4cd6c6a03165fe5fe7afaa584c25e9d1", "score": "0.56790537", "text": "vampireWithName(name) {\n \n }", "title": "" }, { "docid": "5880ea11eb4bdf9b83a53cc10ad4c867", "score": "0.5661658", "text": "utlevert() {\n // Går gjennom varene og setter statusen på bestillingen til \"utlevert\" og varene til \"utleid\"\n for (var i = 0; i < this.varer.length; i++) {\n s_statuser.Utlevert(this.varer[i].v_id, this.b_id);\n }\n this.mounted();\n this.hent();\n }", "title": "" }, { "docid": "a1d9fbf12a6860b3d6dca58554e927b3", "score": "0.5643394", "text": "function FimJogo(){\n\t\tswitch(_vitoria){\n\t\t\tcase 1:AnunciarVitoria(1);p1.Vencer();break;\n\t\t\tcase 2:AnunciarVitoria(2);p2.Vencer();break;\n\t\t\tcase 4:AnunciarVitoria(3);p3.Vencer();break;\n\t\t\tcase 8:AnunciarVitoria(4);p4.Vencer();break;\n\t\t\tcase 0:AnunciarVitoria(0);AnimacaoEmpate();break;\n\t\t\tdefault:if(_minutos==0 && _segundos==0){AnunciarVitoria(0);AnimacaoEmpate();}break;\n\t\t}\n\t}", "title": "" }, { "docid": "0ef2dd0c222d4b8804827c1c2ccb4317", "score": "0.56082577", "text": "function VNode() {}", "title": "" }, { "docid": "3bb2b1b5a1f360d4c3750569c7aab3e1", "score": "0.55777675", "text": "function ActualiserPointsVie(){\n\t//les PDV diminuent si le joueur s'eloigne des artefacts (zoneSure) sans lumiere (torcheJoueur)\n\tif(transform.Find(\"torcheJoueur(Clone)\") == null && !zoneSure){\n\t\tif(vitesseCorruption < 0){\n\t\t\tvitesseCorruption = 0;\n\t\t}else{\n\t\t\tvitesseCorruption += Time.deltaTime/2;\n\t\t}\n\t\tpointsVie -= vitesseCorruption*Time.deltaTime;\n\t} else{\n\t\t//la vitesse de reduction des PDV diminue jusqu'a 0\n\t\tif(vitesseCorruption > 0){\n\t\t\tvitesseCorruption -= Time.deltaTime*2;\n\t\t}else{\n\t\t\tvitesseCorruption = 0;\n\t\t\t//soigne si la vitesse de corruption est 0 et le joueur a obtenu la potion\n\t\t\tif(Joueur.powerUpPotion){\n\t\t\t\tpointsVie += Time.deltaTime;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n\t//actualise l'element visuel\n\tbarreVie.fillAmount = pointsVie/pointsVieMax;\n}", "title": "" }, { "docid": "13f08c69f89b3e956ef55936696c79b1", "score": "0.55632114", "text": "function Voiture(marque, modele) {\n this._marque = marque;\n\n this.getModele = function() {\n return modele;\n };\n\n this.setModele = function(_modele) {\n modele = _modele;\n };\n}", "title": "" }, { "docid": "8856138bb6543961d8b7ea6cd1159737", "score": "0.5534596", "text": "added(vrobject){}", "title": "" }, { "docid": "659219d7d773103b72e0c38c5ce5188e", "score": "0.55249184", "text": "function volar(golondrina, distancia) {\n \n return{\n energia: golondrina.energia - (2*distancia), \n nombre:golondrina.nombre}\n}", "title": "" }, { "docid": "9ded30e43c0934077a96f2ed86a03dc0", "score": "0.5522701", "text": "constructor(servico, codigoRastreamento) {\n this.servico = servico;\n this.codigoRastreamento = codigoRastreamento;\n }", "title": "" }, { "docid": "816863036776c5d424a9effcebdfefb1", "score": "0.5519799", "text": "function mostraNotas(){}", "title": "" }, { "docid": "df4ff2dbdb7437b50df3d6b970ed9fc7", "score": "0.5504072", "text": "function setVeilDelegate(vd) {\n vs = vd;\n }", "title": "" }, { "docid": "d16a74386f83a4378d31e99ace37e71a", "score": "0.5502178", "text": "constructor(nombre,urgencia){\n this.nombre = nombre //Se agrega this. para saber a que instancia pertenece\n this.urgencia = urgencia\n }", "title": "" }, { "docid": "e1512315418d8a9293552198003806c7", "score": "0.5499808", "text": "function ItemMaisVelocidade(){\n\t\tthis.imagemX = 8;\n\t\tthis.imagemY = 2;\n\t\tthis.Usar = function(jogador){\n\t\t\tif(jogador.velocidade>1){\n\t\t\t\tjogador.velocidade--;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "654a5a4fdcdc70e7f169340ef9dd0011", "score": "0.54923487", "text": "function Carro(velocidadeMaxima = 200, delta = 5) {\n let velocidadeAtual = 0\n\n this.acelerar = function(){\n if (velocidadeAtual + delta <= velocidadeMaxima) {\n velocidadeAtual += delta\n } else {\n velocidadeAtual = velocidadeMaxima\n }\n }\n\n this.getVelocidadeAtual = function(){\n return velocidadeAtual\n } \n}", "title": "" }, { "docid": "601a8812cbf8cc92a2c460ab812e26a0", "score": "0.5479363", "text": "constructor(color, velocidad, ruedas, motor, marca) {\n this.tipo = 'auto';\n this.color = color;\n this.velocidad = velocidad;\n this.ruedas = ruedas;\n this.motor = motor;\n this.vendido = true;\n this.marca = marca || 'Honda';\n }", "title": "" }, { "docid": "b6dd8c5c6d373598e5b1db842e00476b", "score": "0.54787254", "text": "function volverAlJuego() {\n \n vidas--;\n\n var contadorVidas = document.querySelector(\".vidas\");\n\n contadorVidas.innerHTML = vidas;\n\n // Si las vidas se terminan, logicamente el juego termina\n if (vidas == 0) {\n finalizarJuego();\n }\n\n // Posicionamos al jugador en la casilla de salida\n posicionarJugador();\n\n // Indicamos a la momia que el personaje se encuentra en el tablero\n personajeEnTablero = true;\n}", "title": "" }, { "docid": "d4c94d1dfda5536fa367f2c94d8186c3", "score": "0.5476843", "text": "function voltooienObject(){\n\tafspelenGeluid(\"schroeven_compleet\");\n\tobjectenCompleet++;\n\tvolgenInstructies = false;\n}", "title": "" }, { "docid": "5d9e165e18c18f60bae16ce88f1f70b1", "score": "0.54657155", "text": "function comportement (){\n\t }", "title": "" }, { "docid": "0ffdfc7b03677720f3db2aadaeaa5890", "score": "0.546499", "text": "function IndicadorRangoEdad () {}", "title": "" }, { "docid": "5ed5a8cdde1dbebe562b696142bb29de", "score": "0.5456572", "text": "_proximaImgVivo() {\n\t\t//mudar index (como vetor circular)\n\t\tthis._indexImgVivo = (this._indexImgVivo + 1) % this._vetorImgsVivo.length;\n\t\t//mudar img em formaGeometrica\n\t\tthis._colocarImgVivoAtual();\n\t}", "title": "" }, { "docid": "fe4bccc70c9ab299808b5b08ace70986", "score": "0.5448307", "text": "constructor(Vonage) {\n this.api = Vonage;\n }", "title": "" }, { "docid": "46848898ef6d6c6facd958c585486b9c", "score": "0.5441663", "text": "function Visitor() {\r\n}", "title": "" }, { "docid": "3c78023e5ebfb31bdaaae09b000cd27e", "score": "0.5433826", "text": "function Vf(a,b,c){Vf.s.constructor.call(this,a);this.ab=a.ab||Wf;this.wf=a.wf||Xf;var e=[];e[w.Va]=new pe;e[w.Ug]=new pe;e[w.Ia]=new pe;e[w.Lf]=new pe;this.gm=e;b&&(this.$a=b);c&&(this.Lg=c);this.El=this.Lg&&w.h.cf();this.Ii=[];this.Wc=new Kf(a.Hc);this.cd=this.options.gq?new nf(a.gq,a.fq):null;w.I&&w.I.Se&&Yf(this,w.Mo,w.I.Se);w.Uc&&w.Uc.Se&&Yf(this,w.Ps,w.Uc.Se);w.Ta&&w.Ta.Se&&Yf(this,w.Jo,w.Ta.Se)}", "title": "" }, { "docid": "5f8ce0c028bcd1d16bbca614d506ed19", "score": "0.5430715", "text": "function Mv(){var t=this;ci()(this,{$source:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&uu()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$sourceContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.sourceContainer}}})}", "title": "" }, { "docid": "3d5ff3752dfcea29976e5e784f9a5299", "score": "0.54168004", "text": "function Estudante() {\n\n this.despedida = function () {\n console.log('Tchau! Sou da Classe Estudante');\n }\n}", "title": "" }, { "docid": "30bd32b09bf6fbc08908b1a7445294c9", "score": "0.5405532", "text": "function Visitor() {}", "title": "" }, { "docid": "30bd32b09bf6fbc08908b1a7445294c9", "score": "0.5405532", "text": "function Visitor() {}", "title": "" }, { "docid": "30bd32b09bf6fbc08908b1a7445294c9", "score": "0.5405532", "text": "function Visitor() {}", "title": "" }, { "docid": "44c2773d4e8ded8ae878626a98656f4f", "score": "0.53889185", "text": "function VO(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};VO.installed||(VO.installed=!0,t.use(i,e),t.use(r,e),t.use(o,e),t.use(a,e),t.use(s,e),t.use(u,e),t.use(l,e),t.use(c,e),t.use(d,e),t.use(h,e),t.use(f,e),t.use(p,e),t.use(m,e),t.use(v,e),t.use(g,e),t.use(_,e),t.use(y,e),t.use(b,e),t.use(x,e),t.use(w,e),t.use(A,e),t.use(M,e),t.use(S,e),t.use(T,e),t.use(k,e),t.use(O,e),t.use(C,e),t.use(L,e),t.use(E,e),t.use(D,e),t.use(j,e),t.use(I,e),t.use(P,e),t.use(Y,e),t.use(F,e),t.use(R,e),t.use(N,e),t.use(B,e),t.use($,e),t.use(z,e),t.use(H,e),t.use(V,e),t.use(G,e))}", "title": "" }, { "docid": "35fb9894a1bf03471d37c8ac8a96e735", "score": "0.5388308", "text": "get votable() {\n const thing = this;\n\n return {\n upvote: {\n number_of: function({is_negative=false}={}) {\n return number_of_votes(thing, 'upvote', is_negative);\n },\n toggle: function({is_negative=false}={}) {\n return toggle_vote(thing, 'upvote', is_negative);\n },\n user_did: function({is_negative=false}={}) {\n return user_did_vote(thing, 'upvote', is_negative);\n },\n },\n };\n }", "title": "" }, { "docid": "188ce6d618f3612f40c346b40b8d81af", "score": "0.53828126", "text": "constructor(name,type,evolutions)\n {\n /*\n Se utiliza \"this\" para hacer referencia al propietario de la función que la está invocando o en su defecto, al objeto donde dicha función es un método.\n */\n // Se utilizan los métodos propios de la clase \n // para modificar sus atributos.\n this.#name=name;\n this.#type=type;\n this.#evolutions=evolutions;\n }", "title": "" }, { "docid": "877a1e7ac97878ee272d108c8c78c9f3", "score": "0.53794485", "text": "function AuthorVO() {\n\n }", "title": "" }, { "docid": "902ced152ce9b9426bff8262434db707", "score": "0.53781426", "text": "LiberarPreso(valor){\nthis.liberation=valor;\n }", "title": "" }, { "docid": "a7fab6b95a3d5a7c69ac8728cfcd0595", "score": "0.5372742", "text": "constructor(name, type, evolutions){\n //This hace referencia al elemento que está por dentro.\n this.#name = name;\n this.#type = type;\n this.#evolutions = evolutions;\n }", "title": "" }, { "docid": "f5aa65c83017af196f793192cc711050", "score": "0.53670675", "text": "function _AtualizaDadosVida() {\n var span_dados = Dom('dados-vida-classes');\n span_dados.textContent =\n gPersonagem.dados_vida.nivel_personagem + ' = ' + PersonagemStringDadosVida();\n}", "title": "" }, { "docid": "2a8fdaa9402a59f2e741708bac3e4a52", "score": "0.5365969", "text": "function ucitajPodatkeImpl(periodicna, vanredna){\r\n //ucitavanje podataka\r\n glavniNizP=periodicna;\r\n glavniNizV=vanredna;\r\n }", "title": "" }, { "docid": "b8a4301794f9548623543ea9edd04774", "score": "0.5356814", "text": "bestilt() {\n // Går gjennom varene og setter statusen på bestillingen til \"bestilt\" og varene til \"på lager\"\n for (var i = 0; i < this.varer.length; i++) {\n s_statuser.Bestilt(this.varer[i].v_id, this.b_id);\n }\n this.mounted();\n this.hent();\n }", "title": "" }, { "docid": "a78b19eb9abf247bd96b2e4cd30ad7ed", "score": "0.5345196", "text": "afficher(){\n this.racine.afficher()\n }", "title": "" }, { "docid": "58804318352b401c728a14107e076754", "score": "0.5334789", "text": "constructor() {\n this.inicializar();\n this.generarSecuencia();\n this.siguienteNivel(); \n }", "title": "" }, { "docid": "a6d47f980ab6d577102d411210b55f5b", "score": "0.5333239", "text": "function vp(a,b){this.ee=[];this.wf=a;this.lf=b||null;this.sd=this.Uc=!1;this.Wb=void 0;this.Oe=this.Kf=this.ne=!1;this.he=0;this.Ua=null;this.oe=0}", "title": "" }, { "docid": "384f20c7f201bef469bd11083fc97e80", "score": "0.53275555", "text": "function ClickGerarPontosDeVida(modo) {\n GeraPontosDeVida(modo);\n AtualizaGeral();\n}", "title": "" }, { "docid": "69f303fd48f37e792ed778d3e25e0b47", "score": "0.53274065", "text": "function va(e,t,n,i){Ca.call(this,e,t,n,i)}", "title": "" }, { "docid": "2c23129ec4785c72367f69daf8f0ac7f", "score": "0.53247464", "text": "transport() {\n // Går gjennom varene og setter statusen på bestillingen til \"transporteres\" og varene til \"transporteres\"\n for (var i = 0; i < this.varer.length; i++) {\n s_statuser.Transport(this.varer[i].v_id, this.b_id);\n }\n this.mounted();\n this.hent();\n }", "title": "" }, { "docid": "0d4c720592888c13f11b59838d8c71cb", "score": "0.5322366", "text": "function voiture(modele, constructeur, couleur) {\n this.modele = modele;\n this.constructeur = constructeur;\n this.couleur = couleur;\n}", "title": "" }, { "docid": "f04cbd5afe6cc09874045cc0931a660d", "score": "0.53212565", "text": "constructor(nombreObjeto, apellido,altura){\n //Atributos\n this.nombre = nombreObjeto\n this.apellido = apellido\n this.altura = altura\n }", "title": "" }, { "docid": "2c7e84c4736baec1c7f0716472e7aadb", "score": "0.53147256", "text": "constructor (nombre, apellido,sueldo, cargo){ //solicitio los parametros incluidos los que vincule\n super(nombre,apellido) // con super selecciono los parametros que pide la clase vinculada\n this.sueldo= sueldo;\n this.cargo=cargo;\n }", "title": "" }, { "docid": "85d2aeae06445379212b7ad55abe1544", "score": "0.53088", "text": "constructor(command, v) {\n this.v = v;\n this.command = command;\n }", "title": "" }, { "docid": "850447aa1c9ab0d682d41a706ec56225", "score": "0.5307799", "text": "function PlcEvento (){\r\n\t\r\n}", "title": "" }, { "docid": "26f1462ee0c0a9d9de2ae0c7796bee82", "score": "0.5299592", "text": "universite(){\n\n }", "title": "" }, { "docid": "c698f9a193a2b28952a19b6e525de333", "score": "0.5293347", "text": "function LingotOr(valeur) {\n this.valeur = valeur;\n console.log('this', this);\n}", "title": "" }, { "docid": "cdb06de6e3bc6674bb77fcd7088754d4", "score": "0.5292709", "text": "function realizarInversion() {\n \n rangos = rango.getRango()\n // Ya estamos haciendo una/s inversion/es\n if (realizandoInversion == true){}\n \n // Podemos realizar inversiones\n else {\n \n realizandoInversion = true\n\n // Hacemos algunas comprobaciones\n // TODO Añadir que solo cojas aquellos que tengan keys\n comprobarPreInversion(function(superanComprobaciones){\n \n console.log('Superan las comprobaciones: ', superanComprobaciones)\n \n // Obtenemos los mejores valores para invertir de cada usuario\n obtenerValoresOptimosXUsuario(superanComprobaciones,function(monedasXUsuario,mejoresValores){\n \n // Obtenemos las monedas no penalizadas de cada usuario\n obtenerNoPenalizadasXUsuario(monedasXUsuario,superanComprobaciones,function(noPenalizadasXUsuario){\n \n // Solo compraremos aquellas monedas que no tengamos\n seleccionMonedasNuevas(noPenalizadasXUsuario,superanComprobaciones,function(noCompradasXUsuario){\n \n // Filtramos por el crecimiento de la moneda en las ultimas 3horas\n filtrarCrecimienPositivo(noCompradasXUsuario,{minutos:[180],intervalos:[5]},function(primerCrecPositivo){\n \n console.log('Primer crecPositivo ' , primerCrecPositivo)\n \n // Filtramos de nuevo por el crecimiento de la moneda en los ultimos 30min\n filtrarCrecimienPositivo(primerCrecPositivo,{minutos:[30],intervalos:[5]},function(segundoCrecPositivo){\n \n console.log('Segundo crec positivo ', segundoCrecPositivo)\n\n // Calculamos la cantidad de operaciones que podemos hacer\n calcularNumeroOperaciones(segundoCrecPositivo,function(opsXUsuario,parametros){\n \n // Elegimos las monedas que vamos a comprar\n // de manera aleatoria\n elegirMonedas(segundoCrecPositivo,opsXUsuario,function(monedasElegidasXUsuario){\n \n console.log(' ')\n console.log('Preparamos compras ',monedasElegidasXUsuario)\n console.log(' ')\n \n // Preparamos las compras (precios,cantidades,moneda..etc)\n prepararCompra(monedasElegidasXUsuario,parametros,function(comprasXUsuario){\n \n // Compramos las monedas elegidas\n comprarMonedas(comprasXUsuario,function(compradas,usuariosConCompras){\n\n // Calculamos la cantidad gastada por cada usuario\n prepararActualizacionSaldo(compradas,function(gastadoXUsuario){\n\n // Actualizamos el saldo de cada usuario\n actualizarSaldo(gastadoXUsuario,function(errores,params){\n\n if (errores){console.log('Ha habido problemas a la hora de actualizar el saldo')}\n \n // Añadimos las monedas al seguimiento de compras\n crearSeguimientoCompras(compradas,params)\n\n })\n }) \n })\n })\n }) \n })\n })\n })\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n })\n })\n })\n })\n }\n}", "title": "" }, { "docid": "ae7ad2da83665fc5ac02684b634bb719", "score": "0.52870053", "text": "function Vacation(attributes){\n this.name = attributes.name;\n this.country = attributes.country;\n this.climate = attributes.climate;\n this.cuisine = attributes.cuisine;\n this.feature = attributes.feature;\n console.log(this);\n}", "title": "" }, { "docid": "db3584ce9953b1a0960e8dec2de032c4", "score": "0.5285583", "text": "function onloevha() {\n}", "title": "" }, { "docid": "3275e9b862be354e01057b52ab1257a9", "score": "0.5283976", "text": "movimientochamp()\n {\n \n if(this.disminuyendoVelocidad && this.speed > -this.limitspeed){\n this.speed -= this.aceleracion; //Disminuye Vel\n this.disminuyendoVelocidad = false;\n }\n\n if(this.aumentandoVelocidad){\n this.speed += this.aceleracion; //Aumenta vel.\n this.aumentandoVelocidad = false;\n }\n this.moverse();\n }", "title": "" }, { "docid": "3851bc35b2cb99d240553f3088eaa830", "score": "0.5281688", "text": "obtain(){}", "title": "" }, { "docid": "297fd31385d7d215a1d585d9980d3245", "score": "0.52733415", "text": "function _AtualizaPontosVida() {\n // O valor dos ferimentos deve ser <= 0.\n var pontos_vida_corrente =\n gPersonagem.pontos_vida.total_dados + gPersonagem.pontos_vida.bonus.Total() + gPersonagem.pontos_vida.temporarios\n - gPersonagem.pontos_vida.ferimentos - gPersonagem.pontos_vida.ferimentos_nao_letais;\n ImprimeNaoSinalizado(\n pontos_vida_corrente, Dom('pontos-vida-corrente'));\n Dom('pontos-vida-dados').value = gPersonagem.pontos_vida.total_dados ?\n gPersonagem.pontos_vida.total_dados : '';\n ImprimeSinalizado(\n gPersonagem.pontos_vida.bonus.Total(), Dom('pontos-vida-bonus'), false);\n ImprimeSinalizado(\n gPersonagem.pontos_vida.temporarios, Dom('pontos-vida-temporarios'), false);\n ImprimeSinalizado(\n -gPersonagem.pontos_vida.ferimentos, Dom('ferimentos'), false);\n ImprimeSinalizado(\n -gPersonagem.pontos_vida.ferimentos_nao_letais, Dom('ferimentos-nao-letais'), false);\n\n // Companheiro animal.\n if (gPersonagem.canimal != null) {\n Dom('pontos-vida-base-canimal').value = gPersonagem.canimal.pontos_vida.base;\n Dom('pontos-vida-temporarios-canimal').value = gPersonagem.canimal.pontos_vida.temporarios;\n var pontos_vida_canimal = gPersonagem.canimal.pontos_vida;\n ImprimeSinalizado(-pontos_vida_canimal.ferimentos, Dom('ferimentos-canimal'), false);\n ImprimeSinalizado(-pontos_vida_canimal.ferimentos_nao_letais, Dom('ferimentos-nao-letais-canimal'), false);\n var pontos_vida_corrente_canimal =\n pontos_vida_canimal.base + pontos_vida_canimal.bonus.Total() + pontos_vida_canimal.temporarios\n - pontos_vida_canimal.ferimentos - pontos_vida_canimal.ferimentos_nao_letais;\n Dom('pontos-vida-corrente-canimal').textContent = pontos_vida_corrente_canimal;\n Dom('notas-canimal').textContent = gPersonagem.canimal.notas;\n Dom('canimal-raca').value = gPersonagem.canimal.raca;\n }\n\n // Familiar.\n if (gPersonagem.familiar == null ||\n !(gPersonagem.familiar.chave in tabelas_familiares) ||\n !gPersonagem.familiar.em_uso) {\n return;\n }\n Dom('pontos-vida-base-familiar').textContent = gPersonagem.familiar.pontos_vida.base;\n Dom('pontos-vida-temporarios-familiar').value = gPersonagem.familiar.pontos_vida.temporarios;\n var pontos_vida_familiar = gPersonagem.familiar.pontos_vida;\n ImprimeSinalizado(-pontos_vida_familiar.ferimentos, Dom('ferimentos-familiar'), false);\n ImprimeSinalizado(-pontos_vida_familiar.ferimentos_nao_letais, Dom('ferimentos-nao-letais-familiar'), false);\n var pontos_vida_corrente_familiar =\n pontos_vida_familiar.base + pontos_vida_familiar.bonus.Total() + pontos_vida_familiar.temporarios\n - pontos_vida_familiar.ferimentos - pontos_vida_familiar.ferimentos_nao_letais;\n Dom('pontos-vida-corrente-familiar').textContent = pontos_vida_corrente_familiar;\n}", "title": "" }, { "docid": "44a536ba8e9df99788600b61c5747fe3", "score": "0.52725095", "text": "efficacitePompes(){\n\n }", "title": "" }, { "docid": "8ee59f2d3916852324856406b519b6a2", "score": "0.52694523", "text": "constructor(ojos, boca, extremidades, duenio) {\n super(ojos, boca, extremidades);\n this.duenio = duenio;\n this.estaDomesticado = true;\n }", "title": "" }, { "docid": "e1f238ce0fb57099cbff9fac768ca6ab", "score": "0.5269391", "text": "avancer() {\n\t\tlet fermee = this.cellule.ouverture(this.direction);\n\t\tif (fermee) { //il y a un mur\n\t\t\treturn this.finMouvement();\n\t\t} else if (this.verifierBlocage()===true) { //la porte est bloquee\n return this.finMouvement();\n }\n\t\tthis.visuel.style.transitionDuration = (this.animMouvement) + \"ms\";\n\t\tthis.cellule = this.cellule.voisine(this.direction);\n\n console.log(\"Déplacement: \"+[\"↑\",\"→\",\"↓\",\"←\"][this.direction]+\" / \"+this.cellule.infoDebogage());\n\n\t\tthis.visuel.addEventListener('transitionend', this.evt.visuel.transitionend);\n\t}", "title": "" }, { "docid": "2d86ba4f147bb619fba685ef3fa27b96", "score": "0.5251409", "text": "function Interfaz(){}", "title": "" }, { "docid": "1adc10cbdbeb6328757eac18112792b6", "score": "0.5250984", "text": "constructor(dato, sig) {\n this.dato = dato;\n this.sig = sig;\n this.peso = null; // solo se utiliza para cuando el nodo pertenece a la \n //lista de adyacencia del vertice\n this.color = null;\n this.nivel = null;\n this.padre = null;\n this.distancia = null;\n }", "title": "" }, { "docid": "adccd3bd009b4301c686613064fd3e12", "score": "0.5249892", "text": "function Copcar(){}", "title": "" }, { "docid": "a534e1124020d1dc28d04c6a9fe2cf27", "score": "0.5236255", "text": "function avanti11() {\nvar ogg = new AgganciaController();\nogg.avanti();\n}", "title": "" }, { "docid": "2ff6082b2476b884d3d8ba66c6f487bb", "score": "0.52284575", "text": "function Vh(a){var b=Wh;this.g=[];this.v=b;this.o=a||null;this.f=this.a=!1;this.c=void 0;this.u=this.w=this.i=!1;this.h=0;this.b=null;this.l=0}", "title": "" }, { "docid": "e8dd8e0a1d10b4c52b65dc069dc3468d", "score": "0.522219", "text": "function UserGallerie()\n{\n var Video=deserialize(\"Video\",{});\n // Vorschauliste bunt\n var VideoLinks=$x(\"//a[contains(@href,'watch?v=')]\")\n .map(function (a) { return { link:a.href, elem:('user'==Kategorie?$xs(\"ancestor::div[@class='video yt-tile-visible'] | ancestor::li[@class='channels-content-item']\",a):'channel'==Kategorie?$xs('../..',a):a.parentNode)||a }; })\n .map(function (vid) { vid.id=((vid.link||\"\").match(/v=([a-zA-Z0-9-_]*)/)||[\"\",\"\"])[1]; return vid; });\n //alert(uneval(VideoLinks));\n VideoLinks.forEach(function (vid) { if (Video[vid.id]) /*vid.elem.className=\"w\"+Video[vid.id].qualitaet;*/ vid.elem.style.backgroundColor={ \"gut\":\"green\", \"schlecht\":\"red\", undefined:\"yellow\" }[Video[vid.id].qualitaet]; });\n //showmsg({ text:\"aaa\" });\n $x(\"//a[contains(@href,'v=')]\").forEach(function (a) { a.addEventListener(\"click\",function(event){\n //if (event.ctrlKey) // && event.altKey)\n //{\n var e=event.target;\n while (!e || !e.href) e=e.parentNode;\n var VideoID=e.href.match(/v=([a-zA-Z0-9-_]*)/)[1];\n var Video=deserialize(\"Video\",{});\n if (!Video[VideoID])\n {\n Video[VideoID]={ id:VideoID, anz:0, lastseen:new Date() };\n serialize(\"Video\",Video);\n var ColorNode=$xs(\"ancestor::div[@class='video yt-tile-visible'] | ancestor::li[@class='channels-content-item']\",a)||a;\n ColorNode.style.color=\"lightgray\";\n ColorNode.style.backgroundColor=\"darkgray\";\n event.stopPropagation();\n event.preventDefault();\n }\n //}\n }, true); });\n}", "title": "" }, { "docid": "f0f8e0ad1ffd6d445b6d8132e4dbfd71", "score": "0.5207117", "text": "function Superheroe() {\n this.vuela = function() {\n console.log(this.name, 'vuela'); \n }\n this.esquivaBalas = function() {\n console.log(this.name, 'esquiva balas')\n }\n}", "title": "" }, { "docid": "3701721ffdbd46aab1fda14b279ee4f2", "score": "0.5206645", "text": "function Fv(){var t=this;ci()(this,{$style:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&uu()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$stylesContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.stylesContainer}}})}", "title": "" }, { "docid": "2d5d80650da64b4a66f0e812bf855427", "score": "0.5203316", "text": "function Vdm(){\n \n this.conf = c.getConf();\n\n}", "title": "" }, { "docid": "e708f6cc8a6a1a7ffeb560e0c290395d", "score": "0.5196898", "text": "function ea(){}", "title": "" }, { "docid": "ba42c6293d2dae7d0ca9a4d74fe010fd", "score": "0.51966953", "text": "chargerVue(){\n let vueCourante = this;\n\n $(\"#vue\"+this.instrument.ref).append('<div class=\"mesuresInstrument\" id=\"mesures'+this.instrument.ref+'\">\\\n <table class=\"tableInstrument\" id=\"table'+this.instrument.ref+'\">\\\n <tr id=\"typesMesures'+this.instrument.ref+'\"></tr>\\\n <tr id=\"valeursMesures'+this.instrument.ref+'\"></tr>\\\n </table></div>\\\n <div id=\"graph'+this.instrument.ref+'\" class=\"graphiques\"></div>');\n\n this.instrument.listeTypesMesure.forEach(function(element,index){\n if((element.code != \"PIX\")&&(element.code != \"IMG\")){\n $(\"#typesMesures\"+vueCourante.instrument.ref).append('<th class=\"typesMesures\">Valeur '+element.nom+' ('+element.unite+') </th>');\n $(\"#valeursMesures\"+vueCourante.instrument.ref).append('<td id=\"valeur'+vueCourante.instrument.ref+element.code+'\"></td>');\n vueCourante.graphiques.push(new GraphiqueInstru('graph' + vueCourante.instrument.ref + '', element.code, \"Instrument\", vueCourante.instrument.nom, element.nom, element.unite));\n }\n });\n\n }", "title": "" }, { "docid": "9293b8ce31e3e5891959e6297983340c", "score": "0.51904494", "text": "function VideoEventVO()\n {\n this.event = '';\n this.scope = '';\n this.callback = '';\n }", "title": "" }, { "docid": "fc3b310c1c0f5799a00392d27c79ad5c", "score": "0.51880443", "text": "set velocidade(valor) {\n\n console.log('SETTER');\n if(typeof valor !== 'number') return;\n if(valor >= 100 || valor <= 0) return;\n this[velocidadePriv] = valor;\n\n }", "title": "" }, { "docid": "832f48105ee4c200680b88863c23f488", "score": "0.51865727", "text": "function vc(a){this.methodName=a}", "title": "" }, { "docid": "5c822130c12a11c9f0c964d0c8586c99", "score": "0.51841664", "text": "function lignes_vente_vierge()\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tvierge=true;\n\t\t\t\t\t\t\t\t\t\t\t$('.ligne_vente').each(function(){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('input',this).each(function(){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($(this).val()!='')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvierge=false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(vierge==true)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('select',this).each(function(){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($(this).val()!='')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvierge=false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\treturn vierge;\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "1b7cf8c134d6ee67777b06db551a789c", "score": "0.518218", "text": "function ObtenerFormaBotonesPuntoVenta() {\n $(\"#divAreaBotonesPuntoVenta\").obtenerVista({\n nombreTemplate: \"tmplBotonesPuntoVenta.html\",\n despuesDeCompilar: function(pRespuesta) {\n }\n });\n}", "title": "" }, { "docid": "ffd42f51210396f77d2971b15e725804", "score": "0.51793927", "text": "function vxlViewListener(vw){\r\n\tthis.view = vw;\r\n\tthis.interactor = new vxlTrackballCameraInteractor();\r\n\tthis.picker = new vxlPickerInteractor();\r\n\tthis.update();\r\n}", "title": "" }, { "docid": "38ca86a07c2eb36189b5d53c162ee58e", "score": "0.51632077", "text": "function getVardas() {\n return \"Tadas\";\n}", "title": "" }, { "docid": "9d1a3a8c789184f88c65be1139d69e8c", "score": "0.51566976", "text": "provincia() {\n return super.informacion('provincia');\n }", "title": "" }, { "docid": "c481bc70fda77191f616782ba839ad94", "score": "0.5150326", "text": "function VazamentoService(http) {\n this.http = http;\n this.vazamentoListagemUrl = 'http://EMB641C6765D718:8080/vazamento/listvaz';\n }", "title": "" }, { "docid": "72eba8ad9acdd049252584b9971523f6", "score": "0.5150314", "text": "function Vechicle(make, model, year){\n this.make = make;\n this.model = model;\n this.year = year;\n this.isRunning = false;\n}", "title": "" }, { "docid": "48844c5f58350965fc34baa2a3a23f3e", "score": "0.5148582", "text": "function IndicadorEstadoCivil () {}", "title": "" }, { "docid": "969751eccac62b6ac926ef9c3c5577b8", "score": "0.5144748", "text": "function fyv(){\n \n }", "title": "" }, { "docid": "521498fd646cd09439aaa50952cc718f", "score": "0.51445276", "text": "get VelocityChange() {}", "title": "" }, { "docid": "efe55df63c7dfe94934c11331995ff80", "score": "0.5140561", "text": "function Vp(a,b){this.c=[];this.n=a;this.g=b||null}", "title": "" }, { "docid": "8ec9f8dac54a211100fb45fd224ad78e", "score": "0.5139997", "text": "constructor(nombre, apellido, altura) {\r\n this.nombre = nombre;\r\n this.apellido = apellido;\r\n this.altura = altura;\r\n }", "title": "" }, { "docid": "824230efd5f89e16977bbd2e439a3cbd", "score": "0.51270175", "text": "function SV(){P.call(this)}", "title": "" }, { "docid": "79468de2bc8d4f09fce181bda23cc1ea", "score": "0.5118084", "text": "procesarControles(){\n\n }", "title": "" }, { "docid": "d15d9da28d097b9404b6f9dc8a1e14db", "score": "0.51143146", "text": "function Avenger(nombre, equipo, nombreReal) {\n /*puedo setear valores por defecto a las propiedades de persona*/\n this.nombre = \"Sin Nombre\";\n this.equipo = undefined;\n this.nombreReal = undefined;\n this.puedePelear = false;\n this.peleasGanadas = 0;\n /*el this.nombre apunta al nombre de de la clase*/\n this.nombre = nombre;\n this.equipo = equipo;\n this.nombreReal = nombreReal;\n }", "title": "" }, { "docid": "46033c0555584f5702bf94cc6b8b84bf", "score": "0.5110908", "text": "function Aviao() {\n this.matricula = Utils.getRandomMatricula();\n this.selecionado = true;\n }", "title": "" }, { "docid": "d16ad9ad103fd15d6c61e9507b984c43", "score": "0.5094227", "text": "function ve(a, b) { this.l = []; this.B = a; this.G = b || null; this.i = this.c = !1; this.h = void 0; this.A = this.H = this.o = !1; this.m = 0; this.f = null; this.s = 0 }", "title": "" }, { "docid": "f31dc9a4f199c82d93ccc61b8665e74f", "score": "0.5093294", "text": "siguienteNivel() {\n this.subnivel = 0\n this.iluminar()\n this.agregarSecuencia()\n }", "title": "" }, { "docid": "67d5a664551f39f5f13eede4553442c7", "score": "0.50913894", "text": "constructor(raza) {\n this.raza = raza;\n\n // METODA 'MISCARE()' (IN INSTANTA OBIECTULUI)\n this.miscare = function() {\n console.log('miscare');\n }\n }", "title": "" } ]
109c529996977f7f8eb79cf4fa886907
This handles more types than `getPropType`. Only used for error messages. See `createPrimitiveTypeChecker`.
[ { "docid": "95ce5af6631cbc450f5ed0f00b4725e3", "score": "0.0", "text": "function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }", "title": "" } ]
[ { "docid": "64b2935d2f9ffd11932e18f9a936acfa", "score": "0.6887623", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return \"array\";\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return \"object\";\n }\n if (isSymbol(propType, propValue)) {\n return \"symbol\";\n }\n return propType;\n }", "title": "" }, { "docid": "8a6c6e79ab0b6aa53029945fbd005dfa", "score": "0.68783313", "text": "function getPropType(propValue) {\n\t\t var propType = typeof propValue;\n\t\t if (Array.isArray(propValue)) {\n\t\t return 'array';\n\t\t }\n\t\t if (propValue instanceof RegExp) {\n\t\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t\t // passes PropTypes.object.\n\t\t return 'object';\n\t\t }\n\t\t if (isSymbol(propType, propValue)) {\n\t\t return 'symbol';\n\t\t }\n\t\t return propType;\n\t\t }", "title": "" }, { "docid": "25235542417ff18a2827085fc4a14644", "score": "0.6862614", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "25235542417ff18a2827085fc4a14644", "score": "0.6862614", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "ecb3f14c5179dc0360839436af7ba856", "score": "0.6848216", "text": "function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }", "title": "" }, { "docid": "6016e6a6b9d94c49e97f0701307dcbb1", "score": "0.68435204", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "dcae62a0b768bfa17561e03d7779b0e4", "score": "0.68266666", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "f992252d2c82b848457d5b7bf9d6b8b9", "score": "0.6820846", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "f335891e0b67765db7cc8ac87ada1742", "score": "0.6816358", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "415e8a4abaaff984382d8d8e564ac906", "score": "0.6807756", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "415e8a4abaaff984382d8d8e564ac906", "score": "0.6807756", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "415e8a4abaaff984382d8d8e564ac906", "score": "0.6807756", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "415e8a4abaaff984382d8d8e564ac906", "score": "0.6807756", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "415e8a4abaaff984382d8d8e564ac906", "score": "0.6807756", "text": "function getPropType(propValue) {\r\n var propType = typeof propValue;\r\n if (Array.isArray(propValue)) {\r\n return 'array';\r\n }\r\n if (propValue instanceof RegExp) {\r\n // Old webkits (at least until Android 4.0) return 'function' rather than\r\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\r\n // passes PropTypes.object.\r\n return 'object';\r\n }\r\n if (isSymbol(propType, propValue)) {\r\n return 'symbol';\r\n }\r\n return propType;\r\n }", "title": "" }, { "docid": "bb6f5d75ddc9f879891a2cd907e091e8", "score": "0.6790863", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" }, { "docid": "85a595f9ff92b9f8c5e80136c2ff9911", "score": "0.6782447", "text": "function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }", "title": "" } ]
1b965c0f02d8ea3ccd0c3537e271e96d
Creates new map for beach locations
[ { "docid": "cb773d20e0efa7c153d1ccea8b9a45a1", "score": "0.7071674", "text": "function initMapBeach(locations) {\n\n mapOptions = {\n zoom: 14,\n center: pampellone\n };\n\n map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\n}", "title": "" } ]
[ { "docid": "d238586eca07fcd70ec6a39fe744c4ed", "score": "0.69826597", "text": "function generateMap() {\n var map = new Map();\n\n if(map.isGeoPage()) {\n map.createMap();\n map.getLocations();\n map.hideList();\n }\n}", "title": "" }, { "docid": "da04cb79f3395931a6ef6bfab8582d64", "score": "0.6834285", "text": "function createMap(){\n\n // Add place searchbar to map\n L.Control.openCageSearch(options).addTo(map);\n\n // Add zoom control (but in top right)\n L.control.zoom({\n position: 'topleft'\n }).addTo(map);\n\n // build easy bar from array of easy buttons\n L.easyBar(buttons).addTo(map);\n\n // Add easy button to pull up splash screen\n L.easyButton('<img src=\"img/noun_Info_1845673_blk.svg\">', function(){\n $('#splash-screen').modal('show');\n },'info window',{ position: 'topleft' }).addTo(map);\n\n //load tile layer\n L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}', {\n\t attribution: 'Tiles &copy; Esri &mdash; Esri, DeLorme, NAVTEQ',\n }).addTo(map);\n\n L.control.attribution({\n position: 'bottomright'\n }).addTo(map);\n //call getData function\n getData(map);\n}", "title": "" }, { "docid": "276f528296e09822bd8ce3c89ed83c48", "score": "0.6788546", "text": "function createMap() {\n currentTerritory= viewerOptions.territory || 'FXX';\n // viewer creation of type <Geoportal.Viewer>\n // création du visualiseur du type <Geoportal.Viewer>\n // HTML div id, options\n territoriesViewer[currentTerritory]= new Geoportal.Viewer.Default('viewerDiv', OpenLayers.Util.extend(\n OpenLayers.Util.extend({}, viewerOptions),\n // API keys configuration variable set by\n // <Geoportal.GeoRMHandler.getConfig>\n // variable contenant la configuration des clefs API remplie par\n // <Geoportal.GeoRMHandler.getConfig>\n window.gGEOPORTALRIGHTSMANAGEMENT===undefined? {'apiKey':'nhf8wztv3m9wglcda6n6cbuf'} : gGEOPORTALRIGHTSMANAGEMENT)\n );\n if (!territoriesViewer[currentTerritory]) {\n // problem ...\n OpenLayers.Console.error(OpenLayers.i18n('new.instance.failed'));\n return;\n }\n\n territoriesViewer[currentTerritory].addGeoportalLayers([\n 'ORTHOIMAGERY.ORTHOPHOTOS',\n 'GEOGRAPHICALGRIDSYSTEMS.MAPS'],\n {\n });\n territoriesViewer[currentTerritory].getMap().setCenter(\n territoriesViewer[currentTerritory].viewerOptions.defaultCenter,\n territoriesViewer[currentTerritory].viewerOptions.defaultZoom);\n // cache la patience - hide loading image\n territoriesViewer[currentTerritory].div.style[OpenLayers.String.camelize('background-image')]= 'none';\n}", "title": "" }, { "docid": "39c4071a905440d2a11d148ebdee8b4e", "score": "0.6754191", "text": "function createMap(quakemap, bounderies, my_zoom, my_coord) {\r\n document.getElementById('map').innerHTML = \"<div id='map' style='width: 100%; height: 100%;'></div>\";\r\n initializingMap()\r\n\r\n var streetmap = new L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\r\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\r\n maxZoom: 18,\r\n id: \"mapbox.streets-basic\",\r\n accessToken: API_KEY\r\n })\r\n\r\n var nightmap = new L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\r\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\r\n maxZoom: 18,\r\n id: \"mapbox.dark\",\r\n accessToken: API_KEY\r\n });\r\n\r\n var satmap = new L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\r\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\r\n maxZoom: 18,\r\n id: \"mapbox.satellite\",\r\n accessToken: API_KEY\r\n });\r\n\r\n //define may display and layout\r\n\r\n var baseMaps = {\r\n Streetmap: streetmap,\r\n Nightmap: nightmap,\r\n Satellite: satmap\r\n };\r\n\r\n var overlayMaps = {\r\n Earthquakes: quakemap,\r\n \"Tectonic Plates\": bounderies\r\n };\r\n \r\n console.log(my_coord);\r\n var myMap = new L.map(\"map\", {\r\n center: my_coord,\r\n zoom: my_zoom,\r\n layers: [satmap, quakemap, bounderies]\r\n });\r\n\r\n L.control.layers(baseMaps, overlayMaps, {collapsed: false}).addTo(myMap);\r\n\r\n //create/define legend\r\nvar legend = L.control({ position: \"bottomleft\" });\r\n\r\nlegend.onAdd = function(map) {\r\n var div = L.DomUtil.create(\"div\", \"legend\");\r\n div.innerHTML += \"<h4>Magnitude</h4>\";\r\n div.innerHTML += '<i style=\"background: #008000\"></i><span>0 - 1</span><br>';\r\n div.innerHTML += '<i style=\"background: #7DC000\"></i><span>1 - 2</span><br>';\r\n div.innerHTML += '<i style=\"background: #ffff00\"></i><span>2 - 3</span><br>';\r\n div.innerHTML += '<i style=\"background: #ffa500\"></i><span>3 - 4</span><br>';\r\n div.innerHTML += '<i style=\"background: #ff0000\"></i><span>4 - 5</span><br>';\r\n div.innerHTML += '<i style=\"background: #800000\"></i><span>> 5</span><br>'; \r\n\r\n return div;\r\n};\r\n\r\nlegend.addTo(myMap);\r\n\r\nmyMap.on('zoomend', function() {\r\n var currentZoom = myMap.getZoom();\r\n console.log(currentZoom);\r\n if (currentZoom <= 3) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 40000;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n else if (currentZoom>=5 && currentZoom<7) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 10000;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n else if (currentZoom >= 8 && currentZoom <10) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 2000;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n else if (currentZoom >= 12 && currentZoom <14) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 300;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n else if (currentZoom >= 16 && currentZoom <18) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 100;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n else if (currentZoom >= 18) {\r\n var my_zoom = currentZoom;\r\n var radius_ratio = 50;\r\n var temp_coord = myMap.getCenter();\r\n var my_coord = [temp_coord.lat, temp_coord.lng];\r\n myMap.remove();\r\n startMap(my_zoom, radius_ratio, my_coord)}\r\n \r\n });\r\n\r\n \r\n\r\n}", "title": "" }, { "docid": "dae67e803a83fbe79558bb69b29416dd", "score": "0.671353", "text": "function makeMap(container) {\n //locations = [\"NEW YORK 10027\", \"Austin\", \"Atlanta\", \"Baltimore\"]; //list of cities or whatever\n points = [];\n activeMarkers = [];\n geocoder = new google.maps.Geocoder();\n mapholder = container;\n infoWindow = new google.maps.InfoWindow({maxWidth: 50});\n doTheRest();\n}", "title": "" }, { "docid": "0b5fc351eb94011a55dc2a09b2569866", "score": "0.6713124", "text": "function createMap(bikeStations) {\n\n // Create the tile layer that will be the background of our map\n var streetmap = L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.run-bike-hike\",\n accessToken: \"pk.eyJ1IjoibWltaXNqbyIsImEiOiJjandkbmJ3a3gwbGtuNDlvdWZrMXo4c3dtIn0.lzMmRtCgEIEW4ZpdEUPSLA\"\n });\n\n // Create a baseMaps object\n var baseMaps = {\n \"Street Map\": streetmap,\n };\n\n // Create an overlay object\n var overlayMaps = {\n // \"Station Location\": loc,\n \"Station Activity\": busy\n };\n\n // Define a map object\n var map = L.map(\"mapid\", {\n center: [\n 41.8781, -87.6298\n ],\n zoom: 12,\n layers: [streetmap, busy]\n });\n // L.map('mapid').setView([41.8781, -87.6298], 13);\n\n // Create a layer control, pass in the baseMaps and overlayMaps. Add the layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n }).addTo(map);\n}", "title": "" }, { "docid": "964db9cabedaec7f442620819b4e1e42", "score": "0.6693233", "text": "function drawInitialMap() {\n locations = new google.maps.LatLng(47.6205099,-122.3514714);\n drawMap();\n }", "title": "" }, { "docid": "580871764c0c633064f1a830c51a882c", "score": "0.6650214", "text": "function initMap() {\n\t\tvar uluru = {lat: -25.363, lng: 131.044};\n\t\tvar brisbane = {lat: -25.363, lng: 144.044 };\n\n\t\tvar map = new google.maps.Map(document.getElementById('map'), {\n\t\t\tzoom: 4,\n\t\t\tcenter: uluru\n\t\t});\n\t\tvar a = new google.maps.Marker({\n\t\t\tposition: uluru,\n\t\t\tmap: map\n\t\t});\n\n\t\tvar marker2 = new google.maps.Marker({\n\t\t\tposition: brisbane,\n\t\t\tmap: map\n\t\t});\n\n\t}", "title": "" }, { "docid": "ea1f443a7a7b42e391eb60038108c1c0", "score": "0.6619345", "text": "function generateBerryMap() {\n let tempmap = {\"name\":\"Map1\",\n \"locations\":[ new Location(62.6,29.76,\"blueberry\",2,Date.now()),\n new Location(62.6,29.755,\"lingonberry\",2,Date.now())\n ]};\n let tempmap2 = {\"name\":\"Map2\",\n \"locations\":[ new Location(62.65,29.8,\"lingonberry\",2,Date.now()),\n new Location(62.6,29.755,\"lingonberry\",2,Date.now())\n ]};\n // Store maps\n window.localStorage.setItem(\"Map1\",JSON.stringify(tempmap));\n window.localStorage.setItem(\"Map2\",JSON.stringify(tempmap2));\n // Store map names\n window.localStorage.setItem(\"maps\",JSON.stringify([\"Map1\",\"Map2\"]));\n}", "title": "" }, { "docid": "9da9fae2c47fd5cb88a0e5a36a233857", "score": "0.65817696", "text": "function createMap() {\n\tlaskaMap = L.map('mapid', {\n\t\tcenter: [20,0],\n\t\tzoom: 2\n\t});\n\n\t//add OSM base tilelayer\n\tL.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {\n\t\tattribution: '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors &copy; <a href=\"https://carto.com/attributions\">CARTO</a>',\n\t\tsubdomains: 'abcd',\n\t\tmaxZoom: 5\n\t}).addTo(laskaMap);\n\n\t//call getData function\n\tgetData();\n}", "title": "" }, { "docid": "78ba23153ed36920008ae4c5bf4958d4", "score": "0.6577566", "text": "function setupMap() {\n\tvar myStyles = [\n\t\t{\n\t\t\tfeatureType: \"poi\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{ visibility: \"off\" }\n\t\t\t]\n\t\t}\n\t];\n\n\tmap = new google.maps.Map($('.map-container')[0], {\n\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\n\t\tzoom: 15, // at 15 we can see city names\n\t\tstyles: myStyles\n\t});\n\n\treturn map;\n}", "title": "" }, { "docid": "b79d77845d06e00bb26bef5f07c44254", "score": "0.6575173", "text": "function initMap() {\n // The locations\n var glendale = {lat: 33.5275, lng: -112.2625};\n var santaclara = {lat: 37.403, lng: -121.970};\n var pasadena = {lat: 34.161, lng: -118.168};\n var seattle = {lat: 47.5952, lng: -122.3316};\n var denver = {lat: 39.743889, lng: -105.02};\n var chicago = {lat: 41.8623, lng: -87.6167};\n var louisville = {lat: 38.205833, lng: -85.758889};\n var columbus = {lat: 40.001667, lng: -83.019722};\n var landover = {lat: 38.907778, lng: -76.864444};\n var philadelphia = {lat: 39.900833, lng: -75.167};\n var cleveland = {lat: -75.1675, lng: -81.699444};\n var eastrutherford = {lat: 40.813528, lng: -74.074361};\n var foxborough = {lat: 42.090944, lng: -71.264344};\n var pittsburgh = {lat: 40.446667, lng: -80.015833};\n var atlanta = {lat: 33.755, lng: -84.401};\n var tampa = {lat: 27.975833, lng: -82.503333};\n var miamigardens = {lat: 25.958056, lng: -80.238889};\n var nashville = {lat: 36.166389, lng: -86.771389};\n var detroit = {lat: 42.34, lng: -83.045556};\n var minneapolis = {lat: 44.974, lng: -93.258};\n var kansascity = {lat: 39.048889, lng: -94.483889};\n var indianapolis = {lat: 39.760056, lng: -86.163806};\n var stlouis = {lat: 38.632778, lng: -90.188611};\n var neworleans = {lat: 33.755, lng: -84.401};\n var houston = {lat: 29.684722, lng: -95.410833};\n var arlington = {lat: 32.747778, lng: -97.092778};\n\n // The map, centered at Glendale\n var map = new google.maps.Map(\n document.getElementById('map'), {zoom: 4, center: glendale});\n\n var contentString2 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>University of Phoenix Stadium</h1>'+ '<h2>City: Glendale</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 59,157</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString3 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Levis Stadium</h1>'+ '<h2>City: Santa Clara</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 107,550</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString4 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Rose Bowl</h1>'+ '<h2>City: Pasadena</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 118,084</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString5 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>CenturyLink Field</h1>'+ '<h2>City: Seattle</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 56,021</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString6 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Sports Authority Field at Mile High</h1>'+ '<h2>City: Denver</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 57,140</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString7 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Soldier Field</h1>'+ '<h2>City: Chicago</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 105,208</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString8 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Papa Johns Cardinal Stadium</h1>'+ '<h2>City: Louisville</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 52,138</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString9 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Ohio Stadium</h1>'+ '<h2>City: Columbus</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 62,897</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString10 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>FedEx Field</h1>'+ '<h2>City: Landover</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 95,672</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString11 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Lincoln Financial Field</h1>'+ '<h2>City: Philadelphia</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 107,378</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString12 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>FirstEnergy Stadium</h1>'+ '<h2>City: Cleveland</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 51,323</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString13 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>MetLife Stadium</h1>'+ '<h2>City: East Rutherford</h2>' + '<h2>Number of Shows: 3</h2>' + '<h2>Capacity: 165,654</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString14 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Gillette Stadium</h1>'+ '<h2>City: Foxborough</h2>' + '<h2>Number of Shows: 3</h2>' + '<h2>Capacity: 174,764</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString15 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Heinz Field</h1>'+ '<h2>City: Pittsburgh</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 56,445</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString16 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Mercedes-Benz Stadium</h1>'+ '<h2>City: Atlanta</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 116,746</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString17 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Raymond James Stadium</h1>'+ '<h2>City: Tampa</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 55,909</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString18 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Hard Rock Stadium</h1>'+ '<h2>City: Miami Gardens</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 47,818</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString19 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Nissan Stadium</h1>'+ '<h2>City: Nashville</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 56,112</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString20 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Ford Field</h1>'+ '<h2>City: Detroit</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 49,464</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString21 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>U.S. Bank Stadium</h1>'+ '<h2>City: Minneapolis</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 98,774</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString22 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Arrowhead Stadium</h1>'+ '<h2>City: Kansas City</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 58,611</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString23 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Lucas Oil Stadium</h1>'+ '<h2>City: Indianapolis</h2>' + '<h2>Number of Shows: 2</h2>' + '<h2>Capacity: 55,729</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString24 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>The Dome at Americas Center</h1>'+ '<h2>City: St. Louis</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 47,831</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString25 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>Mercedes-Benz Superdome</h1>'+ '<h2>City: New Orleans</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 53,172</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString26 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>NRG Stadium</h1>'+ '<h2>City: Houston</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 53,800</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n var contentString27 = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1>AT&T Stadium</h1>'+ '<h2>City: Arlington</h2>' + '<h2>Number of Shows: 1</h2>' + '<h2>Capacity: 105,002</h2>'+\n '<p>Attribution: Wikipedia, <a href=\"https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour\">'+\n 'https://en.wikipedia.org/wiki/Taylor_Swift%27s_Reputation_Stadium_Tour</a> '+\n '</div>'+\n '</div>';\n\n var infowindow2 = new google.maps.InfoWindow({\n content: contentString2\n });\n var infowindow3 = new google.maps.InfoWindow({\n content: contentString3\n });\n var infowindow4 = new google.maps.InfoWindow({\n content: contentString4\n });\n var infowindow5 = new google.maps.InfoWindow({\n content: contentString5\n });\n var infowindow6 = new google.maps.InfoWindow({\n content: contentString6\n });\n var infowindow7 = new google.maps.InfoWindow({\n content: contentString7\n });\n var infowindow8 = new google.maps.InfoWindow({\n content: contentString8\n });\n var infowindow9 = new google.maps.InfoWindow({\n content: contentString9\n });\n var infowindow10 = new google.maps.InfoWindow({\n content: contentString10\n });\n var infowindow11 = new google.maps.InfoWindow({\n content: contentString11\n });\n var infowindow12 = new google.maps.InfoWindow({\n content: contentString12\n });\n var infowindow13 = new google.maps.InfoWindow({\n content: contentString13\n });\n var infowindow14 = new google.maps.InfoWindow({\n content: contentString14\n });\n var infowindow15 = new google.maps.InfoWindow({\n content: contentString15\n });\n var infowindow16 = new google.maps.InfoWindow({\n content: contentString16\n });\n var infowindow17 = new google.maps.InfoWindow({\n content: contentString17\n });\n var infowindow18 = new google.maps.InfoWindow({\n content: contentString18\n });\n var infowindow19 = new google.maps.InfoWindow({\n content: contentString19\n });\n var infowindow20 = new google.maps.InfoWindow({\n content: contentString20\n });\n var infowindow21 = new google.maps.InfoWindow({\n content: contentString21\n });\n var infowindow22 = new google.maps.InfoWindow({\n content: contentString22\n });\n var infowindow23 = new google.maps.InfoWindow({\n content: contentString23\n });\n var infowindow24 = new google.maps.InfoWindow({\n content: contentString24\n });\n var infowindow25 = new google.maps.InfoWindow({\n content: contentString25\n });\n var infowindow26 = new google.maps.InfoWindow({\n content: contentString26\n });\n var infowindow27 = new google.maps.InfoWindow({\n content: contentString27\n });\n // The markers positioned at locations\n var marker2 = new google.maps.Marker({position: glendale, map: map});\n var marker3 = new google.maps.Marker({position: santaclara, map: map});\n var marker4 = new google.maps.Marker({position: pasadena, map: map});\n var marker5 = new google.maps.Marker({position: seattle, map: map});\n var marker6 = new google.maps.Marker({position: denver, map: map});\n var marker7 = new google.maps.Marker({position: chicago, map: map});\n var marker8 = new google.maps.Marker({position: louisville, map: map});\n var marker9 = new google.maps.Marker({position: columbus, map: map});\n var marker10 = new google.maps.Marker({position: landover, map: map});\n var marker11 = new google.maps.Marker({position: philadelphia, map: map});\n var marker12 = new google.maps.Marker({position: cleveland, map: map});\n var marker13 = new google.maps.Marker({position: eastrutherford, map: map});\n var marker14 = new google.maps.Marker({position: foxborough, map: map});\n var marker15 = new google.maps.Marker({position: pittsburgh, map: map});\n var marker16 = new google.maps.Marker({position: atlanta, map: map});\n var marker17 = new google.maps.Marker({position: tampa, map: map});\n var marker18 = new google.maps.Marker({position: miamigardens, map: map});\n var marker19= new google.maps.Marker({position: nashville, map: map});\n var marker20 = new google.maps.Marker({position: detroit, map: map});\n var marker21 = new google.maps.Marker({position: minneapolis, map: map});\n var marker22 = new google.maps.Marker({position: kansascity, map: map});\n var marker23 = new google.maps.Marker({position: indianapolis, map: map});\n var marker24 = new google.maps.Marker({position: stlouis, map: map});\n var marker25 = new google.maps.Marker({position: neworleans, map: map});\n var marker26 = new google.maps.Marker({position: houston, map: map});\n var marker27 = new google.maps.Marker({position: arlington, map: map});\n\n marker2.addListener('click', function() {\n infowindow2.open(map, marker2);\n });\n marker3.addListener('click', function() {\n infowindow3.open(map, marker3);\n });\n marker4.addListener('click', function() {\n infowindow4.open(map, marker4);\n });\n marker5.addListener('click', function() {\n infowindow5.open(map, marker5);\n });\n marker6.addListener('click', function() {\n infowindow6.open(map, marker6);\n });\n marker7.addListener('click', function() {\n infowindow7.open(map, marker7);\n });\n marker8.addListener('click', function() {\n infowindow8.open(map, marker8);\n });\n marker9.addListener('click', function() {\n infowindow9.open(map, marker9);\n });\n marker10.addListener('click', function() {\n infowindow10.open(map, marker10);\n });\n marker11.addListener('click', function() {\n infowindow11.open(map, marker11);\n });\n\n marker12.addListener('click', function() {\n infowindow12.open(map, marker12);\n });\n\n marker13.addListener('click', function() {\n infowindow13.open(map, marker13);\n });\n\n marker14.addListener('click', function() {\n infowindow14.open(map, marker14);\n });\n\n marker15.addListener('click', function() {\n infowindow15.open(map, marker15);\n });\n\n marker16.addListener('click', function() {\n infowindow16.open(map, marker16);\n });\n\n marker17.addListener('click', function() {\n infowindow17.open(map, marker17);\n });\n\n marker18.addListener('click', function() {\n infowindow18.open(map, marker18);\n });\n\n marker19.addListener('click', function() {\n infowindow19.open(map, marker19);\n });\n\n marker20.addListener('click', function() {\n infowindow20.open(map, marker20);\n });\n\n marker21.addListener('click', function() {\n infowindow21.open(map, marker21);\n });\n\n marker22.addListener('click', function() {\n infowindow22.open(map, marker22);\n });\n\n marker23.addListener('click', function() {\n infowindow23.open(map, marker23);\n });\n\n marker24.addListener('click', function() {\n infowindow24.open(map, marker24);\n });\n\n marker25.addListener('click', function() {\n infowindow25.open(map, marker25);\n });\n\n marker26.addListener('click', function() {\n infowindow26.open(map, marker26);\n });\n\n marker27.addListener('click', function() {\n infowindow27.open(map, marker27);\n });\n}", "title": "" }, { "docid": "6201b8a35e4efa66ee5a87c9d63f8d03", "score": "0.6570602", "text": "function newMap(lat,lng){\n center = new google.maps.LatLng(lat,lng);\n zoom = 14;\n var myOptions = {\n center: center,\n zoom: zoom,\n mapTypeId: google.maps.MapTypeId.TERRAIN\n };\n map = new google.maps.Map(document.getElementById(\"map_canvas\"), myOptions);\n setRoutes(\"week-day\");\n}", "title": "" }, { "docid": "04a3c26bd3301d34984c005a4a21c4fd", "score": "0.6556325", "text": "function createMap(earthquakes, plates) {\n\n // Define satellite, grayscale & outdoor layers\n var satellitemap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.satellite\",\n accessToken: API_KEY\n });\n\n var graymap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/light-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.gray\",\n accessToken: API_KEY\n });\n\n var outdoormap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/outdoors-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.outdoor\",\n accessToken: API_KEY\n });\n\n // Define a baseMaps object to hold our base layers\n var baseMaps = {\n \"Satellite\": satellitemap,\n \"Grayscale\": graymap,\n \"Outdoors\": outdoormap\n };\n\n // Create overlay object to hold our overlay layer\n var overlayMaps = {\n \"Earthquakes\": earthquakes,\n \"Fault Lines\": plates\n };\n\n // Create our map, giving it the satellitemap, earthquakes & plates layers to display on load\n var myMap = L.map(\"map\", {\n center: [38.500000, -95.995102],\n zoom: 2.5,\n layers: [satellitemap, earthquakes, plates]\n });\n\n // Create a layer control\n // Pass in our baseMaps and overlayMaps\n // Add the layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n }).addTo(myMap);\n\n\n // Adding legend\n var legend = L.control({position: 'bottomright'});\n\n legend.onAdd = function (map) {\n\n var div = L.DomUtil.create('div', 'info legend'),\n grades = [0, 1, 2, 3, 4, 5],\n labels = [];\n\n // loop through magnitudes intervals and generate a label with a colored square for each interval\n for (var i = 0; i < grades.length; i++) {\n div.innerHTML +=\n '<i style=\"background:' + getColor(grades[i] + 1) + '\"></i> ' +\n grades[i] + (grades[i + 1] ? '&ndash;' + grades[i + 1] + '<br>' : '+');\n }\n\n return div;\n };\n\n legend.addTo(myMap);\n}", "title": "" }, { "docid": "879bf0e6d673959f14650f5948a34db0", "score": "0.654185", "text": "function initMapVineyards(locations) {\n\n mapOptions = {\n zoom: 11,\n center: cogolin\n };\n\n map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\n}", "title": "" }, { "docid": "8a243deb75f0c07f48c4e6dc2f3482d7", "score": "0.65385413", "text": "function initMap() {\n setMap(0, 0, 2);\n}", "title": "" }, { "docid": "1fba05326694ebe76f932b1bd807cfc8", "score": "0.6537403", "text": "function createNewMap(newMapName) {\r\n let tempmap = {\"name\":newMapName, \"locations\":[]};\r\n let maps = loadMapNames();\r\n maps.push(newMapName);\r\n saveMapNames(maps);\r\n saveMap(tempmap);\r\n changeMap(newMapName);\r\n //console.log(\"Created and loaded new map: \"+newMapName);\r\n}", "title": "" }, { "docid": "e5ec782593f39513f606e576d1eb3757", "score": "0.65194964", "text": "function createMap() {\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar mapOptions = $.extend( {}, {\n\t\t\t\t\t\t\tcenter: plugin.address,\n\t\t\t\t\t\t\tzoom: settings.mapSetup.zoom,\n\t\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\t\t\t\t\t}, settings.mapSetup);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(settings.autoLoad) {\n\t\t\t\t\t\t\tplugin.map = new google.maps.Map(plugin.element, mapOptions);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tplugin.map = new google.maps.Map(document.getElementById(settings.mapElementId), mapOptions);\n\t\t\t\t\t\t}\n \n\t\t\t\t\t\tplugin.map.myMarker = new google.maps.Marker({\n\t\t\t\t\t\t\tposition: plugin.address,\n\t\t\t\t\t\t\tmap: plugin.map,\n\t\t\t\t\t\t\ttitle: settings.markerConfig.title,\n\t\t\t\t\t\t\ticon: settings.markerConfig.icon\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(settings.infoWindowConfig.html) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplugin.map.myInfoWindow = new google.maps.InfoWindow({\n\t\t\t\t\t\t\t\tcontent: settings.infoWindowConfig.html,\n\t\t\t\t\t\t\t\tmaxWidth: settings.infoWindowConfig.maxWidth\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tgoogle.maps.event.addListener(plugin.map.myMarker, 'click', function() {\n\t\t\t\t\t\t\t\tplugin.map.myInfoWindow.open(plugin.map, plugin.map.myMarker);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(settings.infoWindowConfig.autoShow) {\n\t\t\t\t\t\t\t\tplugin.map.myInfoWindow.open(plugin.map, plugin.map.myMarker);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgoogle.maps.event.addListenerOnce(plugin.map, 'tilesloaded', function(){\n\t\t\t\t\t\t\t$('.sm_loading').fadeOut(settings.transSpeed, function(){\n\t\t\t\t\t\t\t\t$('#'+settings.mapElementId).animate({\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\topacity:1\n\t\t\t\t\t\t\t\t}, settings.transSpeed);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}", "title": "" }, { "docid": "c40005c46decd4cf1e3fd8e37b68eb4f", "score": "0.65170133", "text": "function createDreamBeansCoffeeMap() {\n const map = new google.maps.Map(\n document.getElementById('map'),\n {center: {lat: 21.029, lng: 105.848}, zoom: 16});\n\n const dreamBeansMarker = new google.maps.Marker({\n position: {lat: 21.029069, lng: 105.848583},\n map: map,\n title: 'Dream Beans Coffee'\n });\n}", "title": "" }, { "docid": "d32d37408d57a138f69f736c13d21df5", "score": "0.65145177", "text": "function generateMap() {\n\t\t$('#koi-deeplink-root').extractDeeplinkIdentifiers();\n\n\t\tvar initializing = true;\n\n\t\tmapGenerated = true;\n\t\t\n\t\t$.address.history(use_history);\n\n\t\t$.address.init(function (event) {\n\t\t\t$.address.change(function (event) {\n\t\t\t\tif (!initializing) {\n\t\t\t\t\t_.recover(event.value, event.parameters);\n\t\t\t\t}\n\t\t\t});\n\t\n\t\t\tif ($.address.value() === '/') {\n\t\t\t\tif (enableFirstChildAutomation) {\n\t\t\t\t\tfirstChildAutomation = true;\n\t\t\t\t\tprocessAutomation();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttriggerPathSet();\n\t\t\t} else {\n\t\t\t\t_.recover(event.value, event.parameters);\n\t\t\t}\n\t\t\t\n\t\t\tinitializing = false;\n\t\t});\n\t}", "title": "" }, { "docid": "a3b46e54e454481b62014c22cc159eb2", "score": "0.650633", "text": "function create_map(){\n\t\tmap = new google.maps.Map(document.getElementById(\"map_canvas\"), {\n \t\t\tzoom: 15,\n \t\t\tcenter: new google.maps.LatLng(0,0),\n \t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n \t\t});\n\t}", "title": "" }, { "docid": "5ba0112669692f7a1effa07b57447753", "score": "0.6499389", "text": "function initMap() {\n\t \n\t locationsBU = [\n\t{title:\"Tamimi Market\",lat:\"24.700872\",Lng:\"46.695489\", id:\"1\",label:\"A\"},\n {title:\"Golden Brown\",lat:\"24.705668\",Lng:\"46.705606\", id:\"2\",label:\"B\"},\n {title:\"Hashem Contracting & Trading Corp.\",lat:\"24.710807\",Lng:\"46.691127\", id:\"3\",label:\"C\"},\n\t{title:\"Johnson Controls- riyadh\",lat:\"24.697368\",Lng:\"46.686724\", id:\"4\",label:\"D\"},\n\t{title:\"BurgerFuel\",lat:\"24.697368\",Lng:\"46.693838\", id:\"5\",label:\"E\"}\n ];\n \n var uluru = {lat: 24.700178, lng: 46.692740};\n map = new google.maps.Map(document.getElementById('map'), {\n zoom: 14,\n center: uluru\n });\n var locations=[];\n\t\tlocations=locationsBU;\n\t\t\n\t\t// to set markers on map after inite it\n addMapMarkers(locations,false);\n\t\t\n\t\t// to inite search for locations\n\t\tsearchforLoaction(locations,true);\n }", "title": "" }, { "docid": "d1ba3c68068e25bfa7d8de30fc0b7166", "score": "0.64965", "text": "function makeMap() {\n\t//set up camera\n\t//Tile.SetColliderBlockSize (20);\n\tTile.SetCamera();\n\t//load the premade level\n\tTile.LoadLevel(level);\n\t//load the groups of tiles that get used in partial procedural\n\tTile.LoadGroups(proceduralGroups); \n\ttempGenerate();\n}", "title": "" }, { "docid": "5f36841bee30490e3a5ff6451e9113bb", "score": "0.6489319", "text": "function initMapHotels(locations) {\n\n mapOptions = {\n zoom: 13,\n center: hotels\n };\n\n map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n}", "title": "" }, { "docid": "68551b0cdce9bc09558effb9bfbe6830", "score": "0.6488174", "text": "function create_STmaps(){\n $('.swiss-topo').each(function(){\n map = new_STmap( $(this) );\n });\n }", "title": "" }, { "docid": "8f8c8ea5671b05db4780901fa4b124d1", "score": "0.64881384", "text": "function createMap(){\r\n // Create the base map\r\n var map = L.map('map', {\r\n center: [39.8283, -98.5795],\r\n zoom: 4\r\n });\r\n\r\n // Add OSM base tilelayer\r\n L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n attribution: '&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a> | Data: <a href=\"https://www.ncdc.noaa.gov/cag/city/time-series\">NOAA</a>'\r\n }).addTo(map);\r\n\r\n // Call the getData function to get and add data to the map\r\n getData(map);\r\n}", "title": "" }, { "docid": "9ef1ea3f4c3c48f3eb536f0261a65f20", "score": "0.64874166", "text": "function createMap($map, setLocation) {\n\t var mapOptions = {\n\t\t center: setLocation, \n\t\t zoom: DEFAULT_ZOOM \n\t };\n\t var map = new google.maps.Map($map[0], mapOptions);\n\t var marker = new google.maps.Marker({\n\t\t position: setLocation,\n\t\t map: map,\n\t });\n }", "title": "" }, { "docid": "79c8d85bc59deca951101772897ed091", "score": "0.6487099", "text": "function initMapRestaurants(locations) {\n\n mapOptions = {\n zoom: 14,\n center: stTropezTown\n };\n\n map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\n}", "title": "" }, { "docid": "7ece011d6839e9f8134f735ca5628703", "score": "0.6484738", "text": "function initMap() {\n // The location of West Town in Chicago\n const chicagoWestTown = { lat: 41.896, lng: -87.665 };\n \n // The map, centered at West Town in Chicago\n const chicagoWestTownMap = new google.maps.Map(document.getElementById(\"map1\"), {\n zoom: 12,\n center: chicagoWestTown,\n });\n // The marker, positioned at West Town in Chicago\n const marker1 = new google.maps.Marker({\n position: chicagoWestTown,\n map: chicagoWestTownMap,\n });\n}", "title": "" }, { "docid": "ef957f2b856e1915304ccd7f6bd8a7f1", "score": "0.6472691", "text": "function createMap(){\n const map = new google.maps.Map(document.getElementById('map'), {\n center: {lat: 37.422, lng: -122.084},\n zoom: 15\n });\n\n addLandmark(map, 37.718806, -122.50437, \"Fort Funston Doggie Beach\", \n \"Best Beach Furever\")\n addLandmark(map, 37.599196, -122.502011, \"Pacifica State Beach\",\n \"Hawtest Beach for Paws\")\n addLandmark(map, 37.769446, -122.486296, \"Golden Gate Park\", \n \"The Pawfect Park for Pups\")\n addLandmark(map, 37.719771, -122.419045, \"Mclaren Park\",\n \"Park fur Ruff Dogs Only\")\n addLandmark(map, 37.765481, -122.438082, \"Alta Plaza Off Leash Dog Park\", \n \"The Fureshest Park\")\n addLandmark(map, 37.791285, -122.43169, \"Corona Heights Park\", \n \"The Park in Colliefornia\")\n addLandmark(map, 37.75917, -122.426903, \"Dolores Park\", \n \"Puparazzi-Free Park Please\")\n addLandmark(map, 37.749682, -122.444865, \"Glen Canyon Park\", \n \"A Pawsome Park fur All\")\n addLandmark(map, 37.786943, -122.15176, \"Leona Canyon Trail\", \n \"Trail to Walk with Fur-ends\")\n addLandmark(map, 37.78459, -122.408615, \"Barbary Coast Trail\", \n \"The Pawsomest Trail of All\")\n addLandmark(map, 37.785328, -122.507618, \"Lands End Lookout\", \n \"Pawsibly the Best Trail Ever\")\n }", "title": "" }, { "docid": "c1f38965cb5b2b253ee399f9d5bb4a16", "score": "0.64726436", "text": "function initMap() {\n getLocation();\n}", "title": "" }, { "docid": "ff4beb324a4e42a50884cc2fcce98110", "score": "0.6448337", "text": "function mapSetup()\n{\n mapInit[\"lat\"] = 51.0;\n mapInit[\"lon\"] = -114.0;\n mapInit[\"zoom\"] = 11;\n return mapInit;\n}", "title": "" }, { "docid": "9b58da161909ef61333fce8daf08c249", "score": "0.6431357", "text": "function initMap () {\n var newOrleans = {lat: 30.0688, lng: -89.930881}\n\n var map = new google.maps.Map(document.getElementById('map'), {\n zoom: 8,\n center: newOrleans\n })\n\n var marker = new google.maps.Marker({\n position: newOrleans,\n map: map\n })\n\n console.log(marker)\n }", "title": "" }, { "docid": "0cbe63da50483ce0ba6abf0a06968329", "score": "0.64275074", "text": "create () {\n\n for (let i = 0; i < this.centers.length; i++) {\n\n this.opts.center = this.centers[i];\n this.maps[i] = new google.maps.Map(this.wrappers[i], this.opts);\n\n }\n\n }", "title": "" }, { "docid": "3592b466b353c7665cce8a824150f51b", "score": "0.6424035", "text": "function createMap(year)\n{\n\n year = parseInt(year)\n var list_of_states=[\"Alaska\",\"Alabama\",\"Arkansas\",\"American Samoa\",\"Arizona\",\"California\",\"Colorado\",\"Connecticut\",\"District of Columbia\",\"Delaware\",\"Florida\",\"Georgia\",\"Guam\",\"Hawaii\",\"Iowa\",\"Idaho\",\"Illinois\",\"Indiana\",\"Kansas\",\"Kentucky\",\"Louisiana\",\"Massachusetts\",\"Maryland\",\"Maine\",\"Michigan\",\"Minnesota\",\"Missouri\",\"Mississippi\",\"Montana\",\"North Carolina\",\"North Dakota\",\"Nebraska\",\"New Hampshire\",\"New Jersey\",\"New Mexico\",\"Nevada\",\"New York\",\"Ohio\",\"Oklahoma\",\"Oregon\",\"Pennsylvania\",\"Puerto Rico\",\"Rhode Island\",\"South Carolina\",\"South Dakota\",\"Tennessee\",\"Texas\",\"Utah\",\"Virginia\",\"Virgin Islands\",\"Vermont\",\"Washington\",\"Wisconsin\",\"West Virginia\",\"Wyoming\"];\n var abbrv_obj = {\"Alabama\":\"AL\",\"Alaska\":\"AK\",\"American Samoa\":\"AS\",\"Arizona\":\"AZ\",\"Arkansas\":\"AR\",\"California\":\"CA\",\"Colorado\":\"CO\",\"Connecticut\":\"CT\",\"Delaware\":\"DE\",\"Columbia\":\"DC\",\"Micronesia\":\"FM\",\"Florida\":\"FL\",\"Georgia\":\"GA\",\"Guam\":\"GU\",\"Hawaii\":\"HI\",\"Idaho\":\"ID\",\"Illinois\":\"IL\",\"Indiana\":\"IN\",\"Iowa\":\"IA\",\"Kansas\":\"KS\",\"Kentucky\":\"KY\",\"Louisiana\":\"LA\",\"Maine\":\"ME\",\"Marshall Islands\":\"MH\",\"Maryland\":\"MD\",\"Massachusetts\":\"MA\",\"Michigan\":\"MI\",\"Minnesota\":\"MN\",\"Mississippi\":\"MS\",\"Missouri\":\"MO\",\"Montana\":\"MT\",\"Nebraska\":\"NE\",\"Nevada\":\"NV\",\"New Hampshire\":\"NH\",\"New Jersey\":\"NJ\",\"New Mexico\":\"NM\",\"New York\":\"NY\",\"North Carolina\":\"NC\",\"North Dakota\":\"ND\",\"Northern Mariana Islands\":\"MP\",\"Ohio\":\"OH\",\"Oklahoma\":\"OK\",\"Oregon\":\"OR\",\"Palau\":\"PW\",\"Pennsylvania\":\"PA\",\"Puerto Rico\":\"PR\",\"Rhode Island\":\"RI\",\"South Carolina\":\"SC\",\"South Dakota\":\"SD\",\"Tennessee\":\"TN\",\"Texas\":\"TX\",\"Utah\":\"UT\",\"Vermont\":\"VT\",\"Virgin Islands\":\"VI\",\"Virginia\":\"VA\",\"Washington\":\"WA\",\"West Virginia\":\"WV\",\"Wisconsin\":\"WI\",\"Wyoming\":\"WY\"};\n var total_deaths = [];\n var total_deaths_map = {};\n\n\n // Creating list of total deaths for the year\n list_of_states.forEach(function(currstate){\n var deaths = 0;\n data_obj.forEach(function(element){\n if(element.state === currstate && element.cause_name !== \"All Causes\" && element.year === year){\n deaths+=element.deaths;\n } \n });\n total_deaths.push(deaths);\n });\n\n// Adding total death toll for the year to overview table\n d3.select(\"#tot\").text(d3.sum(total_deaths));\n \n // Creating a normalized color scale, this function returns a color based on the domain and range\n var color = d3.scaleQuantile()\n .domain([d3.min(total_deaths),d3.max(total_deaths)])\n .range(['#a8bccc','#95a7b5','#82929e','#707d88','#5d6871','#4a535a','#383e44','#25292d']);\n\n\n \n\n// Creating a map for fill colors\n// computing state with highest death toll\nvar state = \"\";\nvar max_val = 0;\n list_of_states.forEach(function(currstate, idx){\n\n if(total_deaths[idx]>max_val){\n max_val = total_deaths[idx];\n state = currstate;\n }\n total_deaths_map[abbrv_obj[currstate]] = {\n 'fillColor':function(){\n return color(total_deaths[idx]);\n }\n };\n });\n\n// adding state with highest death toll for given year\nd3.select(\"#highest_state\").text(state);\n\n// Calculating number of deaths per disease for given year\nvar disease_map = {};\nvar causes = [];\ndata_obj.forEach(function(element,idx){\n if(disease_map[element.cause_name] == null){\n disease_map[element.cause_name] = 0;\n causes.push(element.cause_name);\n }\n disease_map[element.cause_name] += parseInt(element.deaths);\n});\n\n\n\n// Computing highest cause of death for a given year\n max_val = 0;\n var cause = \"\";\ncauses.forEach(function(element){\n if(disease_map[element] > max_val && element !== \"All Causes\"){\n max_val = disease_map[element];\n cause = element;\n }\n});\n\n// Adding highest cause of death to overview table\nd3.select(\"#reason\").text(cause);\n\n\n// datamap object to create map of USA\n var map = new Datamap({\n element: document.getElementById('mapContainer'),\n scope: 'usa',\n fills: {\n 'defaultFill': '#1B1B2A', \n },\n data : total_deaths_map,\n \n geographyConfig:{\n \n // display details on mouseover using a popup\n popupTemplate:function (geo, data) {\n var max_rate = 0;\n var cause = \"\";\n var deaths = 0;\n var total_deaths = 0;\n var average_death_rate = 0;\n var counter = 0;\n data_obj.forEach(function(element) {\n if (element.state === geo.properties.name && element.year === year && element.cause_name !== \"All Causes\")\n {\n total_deaths+=element.deaths;\n average_death_rate+=element.age_adjusted_death_rates;\n counter+=1;\n if(max_rate < element.age_adjusted_death_rates){\n max_rate = element.age_adjusted_death_rates;\n cause = element.cause_name;\n deaths = element.deaths;\n }\n }});\n \n var popup = ['<div class=\"hoverinfo\"><strong>' + geo.properties.name+' ('+year+')<br></strong> Total number of deaths : '+total_deaths +\n '<br> Average death rate : '+Math.round(average_death_rate/counter*100)/100+'<br><hr><strong> Highest cause of death : '+\n cause+'</strong><br> No. of deaths : '+deaths+'<br> Age-adjusted death rate : '+max_rate+'<br> <small><i>Click for more details</i></small></div>'];\n return popup;\n },\n },\n\n done: function(datamap) {\n\n var states = datamap.svg.selectAll('.datamaps-subunit');\n states.attr('data-toggle','modal').attr('data-target','#myModal');\n d3.select('#myModal').on('shown.bs.modal', function () {\n $('#myInput').focus();\n });\n // show detail view when state is clicked\n states.on('click', function(geography) {\n openDetailView(year,geography.properties.name);\n });\n\n // Turn cursor to pointer when mouse over the svg\n datamap.svg.on('mouseover',function(d){\n d3.select(this).style('cursor','pointer');\n });\n\n\n// Add legend to map \n var mysvg = d3.select(\"svg\");\n mysvg.append(\"g\")\n .attr(\"class\", \"legendLinear\")\n .attr(\"transform\", \"translate(5,20)\");\n \n var legendLinear = d3legend.legendColor()\n .shapeWidth(10)\n .cells(10)\n .orient('vertical')\n .labelAlign(\"start\")\n .scale(color)\n .title(\"Number of deaths\");\n\n mysvg.select(\".legendLinear\")\n .call(legendLinear);\n },\n });\n\n}", "title": "" }, { "docid": "a814617bf0d8b84e099da670745395bb", "score": "0.6420502", "text": "function initMap() {}", "title": "" }, { "docid": "a814617bf0d8b84e099da670745395bb", "score": "0.6420502", "text": "function initMap() {}", "title": "" }, { "docid": "9a37debf4855f72c4932373234a99169", "score": "0.6412429", "text": "function create_map() {\n let render_location_x\n let render_location_y\n\n\n // Iterate through map matrix and draw map.\n for (var x = 0; x < map_x; x++) {\n for (var y = 0; y < map_y; y++) {\n\n\n // Get location of where square should be rendered.\n render_location_x = (canvas_scale * x)\n render_location_y = (canvas_scale * y)\n\n // If empty.\n if(!map_matrix[y][x])\n {\n empty_location.push([render_location_x, render_location_y]);\n }\n\n }\n }\n current_in_floor_portals = []\n current_out_floor_portals = []\n for (let i = 0; i < portals_list.length; i++) {\n\n // Separate portals into \"in\" portals and \"out\" portals.\n // Collect all \"in\" portals corresponding to current floor.\n if (portals_list[i][\"In\"][\"World\"] === floor_number) {\n current_in_floor_portals.push(portals_list[i][\"In\"])\n }\n\n // Collect all \"out\" portals corresponding to current floor.\n if (portals_list[i][\"Out\"][\"World\"] === floor_number) {\n current_out_floor_portals.push(portals_list[i][\"Out\"])\n }\n }\n\n}", "title": "" }, { "docid": "85281f9b52151c76f1884ddf285f4f6b", "score": "0.640892", "text": "function createMap(){\n boydMap = L.map('map',{\n center: [20,0],\n zoom: 2\n });\n\n //add OSM baselayer\n L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}').addTo(mymap);\n\n //call getData function\n getData(boydMap);\n}", "title": "" }, { "docid": "bbf270952e459d60d6e0855a55b53381", "score": "0.63938135", "text": "function initMap() {\n\n //Sets coordinates of business home\n let home = {\n lat: 53.887085, \n lng: -7.150008\n };\n\n //Creates the map in relevant div centered and zoomed in to location\n let map = new google.maps.Map(document.getElementById('map'), {\n center: home,\n zoom: 15,\n });\n\n //Creates a marker on the map at the specified location coordinates\n //Google maps documentation used as reference\n let marker = new google.maps.Marker( {\n position: home,\n map: map,\n });\n}", "title": "" }, { "docid": "3d19dd910cc38aa746ff2ec4612fbf35", "score": "0.6392493", "text": "function constructMap () {\n\n console.log('Google maps api loaded');\n console.log('generate map markers');\n\n // Populate Google map with markers based on location data\n self.generateMarkers(data);\n\n // Add map listeners\n self.addMapListeners();\n }", "title": "" }, { "docid": "f8ead968941cb91540d50cebfffd641d", "score": "0.63916355", "text": "function initWorldMap() {\n\tlet map = document.getElementById(\"world-map\");\n\tfor (let [coord, name] of Object.entries(ZONES)) {\n\t\tlet zone = document.createElement(\"div\");\n\t\tzone.setAttribute(\"id\", name.toLowerCase().replace(/\\s+/g, \"_\"));\n\t\tzone.setAttribute(\"class\", \"zone\");\n\t\tlet unknownZone = document.createElement(\"span\");\n\t\tunknownZone.innerHTML = '&#63;';\n\t\tunknownZone.setAttribute(\"class\", \"unknown_zone\");\n\t\tzone.appendChild(unknownZone);\n\t\tmap.appendChild(zone);\n\t}\n}", "title": "" }, { "docid": "679d55c70a013948dc789f997d667478", "score": "0.6389888", "text": "function createMap(crimeSpots, heatMap, geoChicagoMap, geoGaMap) {\n // Create the tile layer that will be the background of our map\n var satellitemap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"satellite-streets-v11\",\n accessToken: mapbox_key\n });\n var lightmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"light-v10\",\n accessToken: mapbox_key\n });\n var streetmap = L.tileLayer(\n \"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\",\n {\n attribution:\n \"© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> <strong><a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a></strong>\",\n tileSize: 512,\n maxZoom: 18,\n zoomOffset: -1,\n id: \"mapbox/streets-v11\",\n accessToken: mapbox_key,\n }\n );\n var darkmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"dark-v10\",\n accessToken: mapbox_key\n });\n // Create a baseMaps object to hold the lightmap layer\n var baseMaps = {\n \"Light Map\": lightmap,\n \"Satelitte Map\": satellitemap,\n \"Street Map\": streetmap,\n \"Dark Map\": darkmap\n\n };\n // Create an overlayMaps object to hold the bikeStations layer\n var overlayMaps = {\n \"Crime Locations\": crimeSpots,\n \"Crime Heat Map\": heatMap,\n \"Chicago Zip Code Zones\": geoChicagoMap,\n \"Georgia Zip Code Zones\": geoGaMap,\n };\n // Create the map object with options\n // Define a map object\n myMap = L.map(\"map\", {\n center: chicagoCoords,\n zoom: zoomLevel,\n layers: [streetmap, geoChicagoMap]\n });\n // Create a layer control, pass in the baseMaps and overlayMaps. Add the layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: true\n }).addTo(myMap);\n}", "title": "" }, { "docid": "1d2106f7904ccf233c19ba428ad29a9e", "score": "0.6389813", "text": "function makeVIrtualMap() {\n\tvar mappart = {\n\twalkAble: true,\n\tidInDOM: '',\n\tx: 0,\n\ty: 0,\n\toblIn: {}\n\t}\n}", "title": "" }, { "docid": "44a139d3671f81fe0d3b01c49e4f8c76", "score": "0.6384572", "text": "function createMap(){\n\n //create basemap layers\n var mbAerial = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {\n attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n maxZoom:18,\n id: 'mapbox/satellite-streets-v11',\n accessToken: 'pk.eyJ1IjoidGJ1cmNpYWdhIiwiYSI6ImNqamwwdnBqZTAyc2MzeHMzZzI5dXFrYjcifQ.Cu1KLjjpM9by5hD5XZXp4Q'\n }), \n mbStreets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {\n attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n maxZoom:18,\n id: 'mapbox/streets-v11',\n //id: 'mapbox/light-v10',\n //id: 'mapbox/dark-v10',\n //id: 'mapbox/outdoors-v11',\n accessToken: 'pk.eyJ1IjoidGJ1cmNpYWdhIiwiYSI6ImNqamwwdnBqZTAyc2MzeHMzZzI5dXFrYjcifQ.Cu1KLjjpM9by5hD5XZXp4Q'\n }),\n mbLight = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {\n attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n maxZoom:18,\n //id: 'mapbox/streets-v11',\n id: 'mapbox/light-v10',\n //id: 'mapbox/dark-v10',\n //id: 'mapbox/outdoors-v11',\n accessToken: 'pk.eyJ1IjoidGJ1cmNpYWdhIiwiYSI6ImNqamwwdnBqZTAyc2MzeHMzZzI5dXFrYjcifQ.Cu1KLjjpM9by5hD5XZXp4Q'\n }),\n mbDark = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {\n attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n maxZoom:18,\n //id: 'mapbox/streets-v11',\n //id: 'mapbox/light-v10',\n id: 'mapbox/dark-v10',\n //id: 'mapbox/outdoors-v11',\n accessToken: 'pk.eyJ1IjoidGJ1cmNpYWdhIiwiYSI6ImNqamwwdnBqZTAyc2MzeHMzZzI5dXFrYjcifQ.Cu1KLjjpM9by5hD5XZXp4Q'\n }),\n osmStreets = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n attribution: '&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a>',\n maxZoom:18\n });\n\n //create the map\n var map = L.map('map', {\n center: [40, -99],\n zoom: 4,\n layers: [mbAerial, cities, centerPop]\n }); \n\n //create layer control objects\n var baseMaps = {\n \"Mapbox Aerial\": mbAerial,\n \"Mapbox Streets\": mbStreets,\n \"Mapbox Light\": mbLight,\n \"Mapbox Dark\": mbDark,\n \"Open Street Map\": osmStreets\n };\n\n var overlayMaps = {\n \"Cities\": cities,\n \"Center of Population\": centerPop\n };\n\n //add layer controls\n L.control.layers(baseMaps, overlayMaps).addTo(map);\n\n //call getData function\n getData(map);\n\n }", "title": "" }, { "docid": "7832b0c843bb4bf91db4625a9999b068", "score": "0.638348", "text": "function generateMap() {\r\n for (let x = 0; x < mapSize; x++) {\r\n map.push([]);\r\n creatureLocations.push([]);\r\n\r\n for (let y = 0; y < mapSize; y++) {\r\n creatureLocations[x].push([]);\r\n var tile = new Tile(x, y);\r\n if (tile.type == 0) {\r\n tile = null;\r\n }\r\n\r\n map[x].push(tile);\r\n }\r\n }\r\n\r\n generateOutline();\r\n}", "title": "" }, { "docid": "1ff78edc7946ea70a68eb35a54361f39", "score": "0.6375193", "text": "function createMap(earthquakeMarker) {\n\n var street = L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.streets\",\n accessToken: API_KEY\n })\n\n var lightMap = L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.light\",\n accessToken: API_KEY\n })\n\n var satelliteMap = L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.satellite\",\n accessToken: API_KEY\n })\n\n var baseMaps = {\n \"Light Map\": lightMap,\n \"Satellite\":satelliteMap,\n \"Street\":street\n\n }\n\n var overlayMaps = {\n \"Earthquake\": earthquakeMarker,\n \"Fault Lines\":tectonicLayer\n }\n\n // Creating map object\n var myMap = L.map(\"map\", {\n center: [36.16, -115.13],\n zoom: 4,\n layers: [lightMap, earthquakeMarker,tectonicLayer]\n });\n\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n }).addTo(myMap);\n\n //Adding Legend to map\n // Create legend\n var legend = L.control({position: 'bottomright'});\n\n legend.onAdd = function () {\n\n var div = L.DomUtil.create('div', 'info legend'),\n mag = [0, 1, 2, 3, 4, 5],\n labels = [];\n\n // loop through our density intervals and generate a label with a colored square for each interval\n for (var i = 0; i < mag.length; i++) {\n div.innerHTML +=\n '<i style=\"background:' + markerColor(mag[i] + 1) + '\"></i> ' +\n mag[i] + (mag[i + 1] ? '&ndash;' + mag[i + 1] + '<br>' : '+');\n \n }\n return div;\n };\n\n legend.addTo(myMap);\n\n}", "title": "" }, { "docid": "e8b1dc0bdebea96b6289b32c87883085", "score": "0.636282", "text": "function initializeMap() {\n\t\t//reset the global variables\n\t\tlatest_buoys = [];\n\t\t//map options\n\t\tvar mapOptions = {\n\t\t\tmapTypeId: 'satellite',\n\t\t\t// see config.js if you you want to change the default map center\n\t\t\tcenter: config.center,\n\t\t\tzoom: config.zoom-2,\n\t\t\tzoomControl: true,\n\t\t\tzoomControlOptions: {\n\t\t\t\tstyle: google.maps.ZoomControlStyle.SMALL,\n\t\t\t\tposition: google.maps.ControlPosition.BOTTOM_LEFT\n\t\t\t},\n\t\t\tmapTypeControl: true,\n\t\t\tmapTypeControlOptions: {\n\t\t\t\tstyle: google.maps.MapTypeControlStyle.DROPDOWN_MENU,\n\t\t\t\tposition: google.maps.ControlPosition.BOTTOM_LEFT\n\t\t\t},\n\t\t\tscaleControl: true,\n\t\t\tstreetViewControl: false,\n\t\t\tpanControl: false,\n\t\t\toverviewMapControl: false\n\t\t}\n\n\t\t//map creation\n\t\tmap_marker = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);\n\n\t\t//add add button in the top right corner of the map to hide the right panel\n\t\tvar centerControlDiv = document.createElement('div');\n\t\tvar centerControl = new FullScreenControl(centerControlDiv);\n\t\tcenterControlDiv.index = 1;\n\t\tmap_marker.controls[google.maps.ControlPosition.TOP_RIGHT].push(centerControlDiv);\n\t\t\n\n\t}", "title": "" }, { "docid": "2227bcc4d33789a402ec17b8a2b129cc", "score": "0.63605684", "text": "function initBaMap() {\n // The location of mapCenter\n\n let city = {\n new - york: {\n coords: { lat: 40.6451594, lng: 74.0850837 },\n }\n\n\n }\n let mapCenter = city.new - york.coords;\n\n // The map, centered at mapCenter\n let mapEl = document.getElementById('map');\n\n let mapOptions = {\n zoom: 15,\n center: mapCenter,\n disableDefaultUI: true,\n };\n }", "title": "" }, { "docid": "7f50fd593200237297898af9bcdbbbdd", "score": "0.63478446", "text": "function HotelLocationMap() {\n\n if ($('#hotel-detail-map').length) {\n var $map = $('#hotel-detail-map'),\n lat = $map.data('latlng').split(',')[0],\n lng = $map.data('latlng').split(',')[1],\n myCenter = new google.maps.LatLng(lat, lng);\n var mapProp = {\n center: myCenter,\n zoom: 15,\n scrollwheel: false,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n var map = new google.maps.Map(document.getElementById(\"hotel-detail-map\"), mapProp);\n }\n }", "title": "" }, { "docid": "c23b6383fca200f2c29d043a6b769efd", "score": "0.63369805", "text": "function PuplishMap(){}", "title": "" }, { "docid": "cd0b8089e0562d7eeef049098b9a83b4", "score": "0.6335353", "text": "function initMap() {\n infowindow = new google.maps.InfoWindow();\n zoneBounds = new google.maps.Circle({\n center: userLocation,\n radius: 15000\n }).getBounds();\n\n var noPoi = [{\n featureType: \"poi\",\n stylers: [{\n visibility: \"off\"\n }]\n }];\n map = new google.maps.Map(mapDiv[0], {\n zoom: 12, // zoom gets reset to 14 on superSkin.expand (essential for making map the :focus so user can immediately interact with it...)\n center: userLocation,\n mapTypeControl: false,\n streetViewControl: false,\n zoomControl: true,\n zoomControlOptions: {\n position: google.maps.ControlPosition.LEFT_BOTTOM\n },\n styles: noPoi\n });\n map.setCenter(userLocation);\n console.log('map', map);\n}", "title": "" }, { "docid": "9b794cd1fb45eded090a4972389fa386", "score": "0.6334371", "text": "function newMap(latLng, args) {\n args = args || {};\n if (map) {\n if (args.todo && args.todo.options) {\n if (args.todo.options.center) {\n args.todo.options.center = toLatLng(args.todo.options.center);\n }\n map.setOptions(args.todo.options);\n }\n } else {\n var opts = args.opts || $.extend(true, {}, defaults.map, args.todo && args.todo.options ? args.todo.options : {});\n opts.center = latLng || toLatLng(opts.center);\n map = new defaults.classes.Map($this.get(0), opts);\n }\n }", "title": "" }, { "docid": "d605475ca6a2a6effef36c885edc286b", "score": "0.6333343", "text": "function mapInitialise() {\n // Initalise map at Bristol.\n city = new google.maps.LatLng(51.454513, -2.5879099999999653);\n map = new google.maps.Map(document.getElementById('map-canvas'), {\n center: city,\n zoom: 14,\n zoomControlOptions: {\n position: google.maps.ControlPosition.LEFT_CENTER,\n style: google.maps.ZoomControlStyle.SMALL\n },\n streetViewControlOptions: {\n position: google.maps.ControlPosition.LEFT_BOTTOM\n },\n mapTypeControl: false,\n panControl: false\n });\n clearTimeout(self.mapRequestTimeout);\n\n google.maps.event.addDomListener(window, \"resize\", function() {\n var center = map.getCenter();\n google.maps.event.trigger(map, \"resize\");\n map.setCenter(center); \n });\n\n // Calls location for Bristol as default.\n infowindow = new google.maps.InfoWindow({maxWidth: 300});\n // Set deafult search.\n getFoursquares('Bristol', '51.4', '-2.59', 'Bar');\n // Get UK locations.\n getGrouponLocations();\n }", "title": "" }, { "docid": "66a5e42cc5d565b4e8f6ac420ac74061", "score": "0.63187915", "text": "function createMap(myLatitude, myLongitude) {\n\n\n// Leaflet Map on index page\n L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoiZW5qb3ltcmJhbiIsImEiOiJjam5hY3EwcDQwZ2hiM3BwYWQ2dWt4a2x1In0.nlX1GeaPE2DQn3aZH0IJaA', {\n maxZoom: 18,\n minZoom: 4,\n attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, ' + '<a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, ' + 'Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\n id: 'mapbox.streets'\n }).addTo(map);\n\n placeEventsOnMap();\n\n //set map center after all events are placed\n map.setView([myLatitude, myLongitude], endZoom);\n}", "title": "" }, { "docid": "c71500ce834925a41d535fe8ddbb6f55", "score": "0.6311603", "text": "function initMap() {\n\n if (document.getElementById('map_royal_canin') !== null) {\n // Royal Canin Map\n var map_royal_canin = create_map(document.getElementById('map_royal_canin'), key_locations.royal_canin, 17);\n\n // Royal Canin Map + Marker\n var map_royal_canin_marker = create_map(document.getElementById('map_royal_canin--marker'), key_locations.royal_canin, 17);\n var marker_royal_canin_marker = create_marker(key_locations.royal_canin, map_royal_canin_marker);\n\n // First 10 Map + Marker + Infobox\n var map_first_10 = create_map(document.getElementById('map_first_10'), key_locations.first_10, 18);\n var marker_first_10 = create_marker(key_locations.first_10, map_first_10);\n var infobox_first_10 = create_infobox(document.getElementById('infobox_first_10'), marker_first_10, map_first_10);\n }\n}", "title": "" }, { "docid": "53736c504cb54a3f6321991a4250f804", "score": "0.6309601", "text": "function initBaMap() {\n\t// The location of Uluru\n\tlet cities = {\n\t\tpoltava : {\n\t\t\tcoords : { lat: 49.589100, lng: 34.557851 },\n\t\t\taddress : 'Котляревского 2'\n\t\t},\n\t\tkyiv : {\n\t\t\tcoords : {lat: 50.449189, lng: 30.516672},\n\t\t\taddress : 'ул. Прорезная 18/1Г'\n\t\t},\n\t\todessa : {\n\t\t\tcoords : {lat: 46.478298, lng: 30.723602},\n\t\t\taddress : 'ул. Асташкина, 29'\n\t\t}\n\t}\n\n\tlet mapCenter = cities.poltava.coords;\n\t// The map, centered at Uluru\n\tlet mapEl = document.getElementById('map');\n\n\tlet mapOptions = {\n\t\tzoom: 17,\n\t\tcenter: mapCenter,\n\t\tdisableDefaultUI: true,\n\t\tstyles:\n\t\t[\n\t\t\t{\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#f5f5f5\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"elementType\": \"labels.icon\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"visibility\": \"off\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#616161\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"elementType\": \"labels.text.stroke\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#f5f5f5\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"administrative.land_parcel\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#bdbdbd\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"poi\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#eeeeee\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"poi\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#757575\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"poi.park\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#e5e5e5\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"poi.park\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#9e9e9e\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"road\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#ffffff\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"road.arterial\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#757575\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"road.highway\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#dadada\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"road.highway\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#616161\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"road.local\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#9e9e9e\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"transit.line\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#e5e5e5\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"transit.station\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#eeeeee\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"water\",\n\t\t\t \"elementType\": \"geometry\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#c9c9c9\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t},\n\t\t\t{\n\t\t\t \"featureType\": \"water\",\n\t\t\t \"elementType\": \"labels.text.fill\",\n\t\t\t \"stylers\": [\n\t\t\t\t {\n\t\t\t\t\t\"color\": \"#9e9e9e\"\n\t\t\t\t }\n\t\t\t ]\n\t\t\t}\n\t\t ]\n\t};\n\n let $baMap = new google.maps.Map( mapEl, mapOptions ); //Create map\n\n\tfor (const city in cities) {\n\t\n\t// The marker, positioned at mapCenter\n\n\tlet marker = new google.maps.Marker(\n\t\t{\n\t\t\tposition: cities[city].coords,\n\t\t \tmap: $baMap,\n\t\t\ticon: \"img/marker.svg\",\t\t\t\t \n\t\t}\n\t\t);\n\t}\n}", "title": "" }, { "docid": "0e2688ef6d592df8f276c9136653de50", "score": "0.6302807", "text": "function buildmap() {\n for (var r = 0; r <= map.tiles.length; r++) {\n if (map.tiles[r] !== undefined) {\n for (var b = 0; b <= map.tiles[r].length; b++) {\n if (map.tiles[r][b] !== undefined) {\n map.tiles[r][b].image.x = r * map.tileSize;\n map.tiles[r][b].image.y = b * map.tileSize;\n map.container.addChild(map.tiles[r][b].image);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "e5118da8c5057cb233b7b76554242bfc", "score": "0.63002294", "text": "function createMap(earthquakes, plates){\n // Define streetmap and darkmap layers\n var satellite = L.tileLayer(\"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> <strong><a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a></strong>\",\n tileSize: 512,\n maxZoom: 18,\n zoomOffset: -1,\n id: \"mapbox/satellite-v9\",\n accessToken: API_KEY\n });\n\n var greyscale = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"light-v10\",\n accessToken: API_KEY\n });\n\n var outdoors = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"outdoors-v11\",\n accessToken: API_KEY\n });\n\n // Define a baseMaps object to hold our base layers\n var baseMaps = {\n \"Satellite Map\": satellite,\n \"Greyscale\": greyscale,\n \"Outdoors\": outdoors\n };\n \n // Create overlay object to hold our overlay layer\n var overlayMaps = {\n Tectonic: plates,\n Earthquakes: earthquakes\n };\n\n // Create our map, giving it the streetmap and earthquakes layers to display on load\n // Create a map object\n var myMap = L.map(\"map\", {\n center: [42, -112.3626],\n zoom: 4,\n layers: [satellite, earthquakes]\n });\n\n // Create a layer control\n // Pass in our baseMaps and overlayMaps\n // Add the layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n}).addTo(myMap);\n\nvar legend = L.control({position: 'bottomright'});\nlegend.onAdd = function () {\n var div = L.DomUtil.create('div', 'info legend');\n var colors = [\"#00e600\", \"#ffff00\", \"#ffcc00\", \"#ffaf1a\", \"#ff8c66\", \"#cc3300\"];\n var categories = [\"-10-10\", \"10-30\", \"30-50\", \"50-70\", \"70-90\", \"90+\"];\n labels = [];\n for (var i = 0; i < categories.length; i++) {\n div.innerHTML += \n labels.push(\n '<i class=\"legend\" style=\"background:' + colors[i] + '\"></i> ' + categories[i]\n )\n }\n div.innerHTML = labels.join('<br>');\nreturn div;\n};\nlegend.addTo(myMap);\n}", "title": "" }, { "docid": "e286ad33aa581d9d1f86242414b30b57", "score": "0.62971395", "text": "createMap() {\n\t\tconst { mapId } = this.state,\n\t\t\t{ latitude, longitude, showZoomControls, zoom, tiles, enableDragging, enableTap } = this.props,\n\t\t\tparsedLat = parseFloat(latitude),\n\t\t\tparsedLon = parseFloat(longitude);\n\n\t\tif(Number.isNaN(parsedLat) || Number.isNaN(parsedLon) || !tiles) return null;\n\n\t\t// create the base map\n\t\tconst map = new LeafletMap(`map-container-${mapId}`, {\n\t\t\tscrollWheelZoom: false,\n\t\t\tzoomControl: showZoomControls,\n\t\t\t// control dragging and tap in order to prevent scroll hijacking\n\t\t\ttap: enableTap,\n\t\t\tdragging: enableDragging\n\t\t}).setView([\n\t\t\tparsedLat,\n\t\t\tparsedLon\n\t\t], zoom);\n\n\t\t// add the base tile layer\n\t\tconst tileLayer = new LeafletTileLayer(tiles);\n\t\ttileLayer.addTo(map);\n\n\t\treturn map;\n\t}", "title": "" }, { "docid": "4d5b24ad8a47a3c316dc6e508cfb2414", "score": "0.6287432", "text": "function initMap() {\n\t//get the street address of the displayed brewery from the document\n\tvar streetAddy = $(\"#street-address\").text() + \" \" + $(\"#city-address\").text();\n\tvar mapDiv = \"<div id=\\\"map\\\"></div>\";\n\n\t$(\".brewery\").append(mapDiv);\n\n\tvar geocoder = new google.maps.Geocoder();\n\n\t//start the map off in Pittsburgh\n\tvar map = new google.maps.Map(document.getElementById('map'), {\n\t\tzoom: 10,\n\t\tcenter: {lat: 40.4406, lng: -79.9959}\n\t});\n\n\tencodeAddress(geocoder, map, streetAddy);\n}", "title": "" }, { "docid": "170c43bfbc13e54c3c34d4b2777aa352", "score": "0.6277767", "text": "function createMap() {\n map = new google.maps.Map(\n document.getElementById('map'),\n {center: {lat: -33.888385, lng: 151.244747}, zoom: 12, \n mapId: 'c41864c7bb66540a'});\n\n const uniInfoWindow = \n '<h3>University of Sydney</h3>' +\n '<p>This is where I go to university</p>'\n\n const highSchoolInfoWindow =\n '<h3>Kincoppal Rose Bay</h3>' +\n '<p>This is where I went to high school</p>'\n\n const japaneseInfoWindow = \n '<h3>Sushi Den Vaucluse</h3>' +\n '<p>This is my favourite local Japanese restaurant'\n\n addLandmark(\n map, -33.888813, 151.188131, 'University of Sydney', uniInfoWindow, 'A'\n )\n\n addLandmark(\n map, -33.863366, 151.271159, 'Kincoppal Rose Bay', highSchoolInfoWindow, 'B'\n )\n\n addLandmark(\n map, -33.859159, 151.278378, 'Sushi Den Vaucluse', japaneseInfoWindow, 'C'\n )\n\n // When the user clicks in the map, show a marker with a text box the user can\n // edit.\n map.addListener('click', (event) => {\n createMarkerForEdit(event.latLng.lat(), event.latLng.lng());\n });\n\n fetchMarkers();\n}", "title": "" }, { "docid": "4dfea16ec3d15f945566ec83fd74d1b7", "score": "0.6271819", "text": "function setNewMap(latLng) {\n return new google.maps.Map(document.getElementById(\"googleMap\"), {\n zoom: 12,\n center: latLng\n });\n }", "title": "" }, { "docid": "a6fd487a19a42eabd927325b6886cc79", "score": "0.62654763", "text": "function createMap() {\n return new MapCtr();\n }", "title": "" }, { "docid": "02a00087d93139f6d8a97a099fbb5b63", "score": "0.6261437", "text": "function initMap() {\n createMap();\n setupMapClickEvent();\n}", "title": "" }, { "docid": "711a796d041c3cb4b41300b2fcea44c2", "score": "0.6256546", "text": "createSimpleMap() {\n const layerData = [\n [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 1, 2, 3, 0, 0, 0, 1, 2, 3, 0],\n [0, 5, 6, 7, 0, 0, 0, 5, 6, 7, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 14, 13, 14, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 14, 14, 14, 14, 14, 0, 0, 0, 15],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15],\n [35, 36, 37, 0, 0, 0, 0, 0, 15, 15, 15],\n [39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39]\n ];\n let groundLayer = this.createBlankDynamicLayer(\n \"GroundLayer\",\n this.tileset\n );\n groundLayer.putTilesAt(layerData, 0, 0);\n groundLayer = this.convertLayerToStatic(groundLayer);\n }", "title": "" }, { "docid": "a15a8ab2762ca2a949392db1c877cee8", "score": "0.6252833", "text": "function initMap() {\n // The location of Uluru\n const trailhead = { lat: 35.674880, lng: -105.961820 };\n // The map, centered at Uluru\n const map = new google.maps.Map(document.getElementById(\"map\"), {\n zoom: 4,\n center: trailhead,\n });\n // The marker, positioned at Uluru\n const marker = new google.maps.Marker({\n position: trailhead,\n map: map,\n });\n}", "title": "" }, { "docid": "ae43e3264ce7067f203b092273cf732b", "score": "0.62503326", "text": "function initMap_single() {\n let searchParams = new URLSearchParams(window.location.search);\n let name = searchParams.get('id');\n let true_coors = {};\n for (let i = 0; i < locations.length; i++) {\n if (locations[i].evolutions) {\n for (let j=0; j<locations[i].evolutions.length; j++) {\n if (locations[i].name === name || locations[i].evolutions[j].name === name) {\n let lat = Number(locations[i].lat.toFixed(2));\n let lng = Number(locations[i].lng.toFixed(2));\n true_coors = {lat, lng};\n }\n }\n } else {\n let lat = Number(locations[i].lat.toFixed(2));\n let lng = Number(locations[i].lng.toFixed(2));\n true_coors = {lat, lng};\n }\n }\n\n\n let coors = true_coors;\n\n\n // The map, centered at cors\n let map = new google.maps.Map(\n document.getElementById('map'), {\n zoom: 7,\n center: coors,\n disableDefaultUI: true,\n zoomControl: true\n });\n // get map styles from .json file\n $.getJSON(\"/wp-content/themes/Divi-child/custom_shortcodes/pokemonsmvc/assets/custom_map_style.json\", function(data) {\n map.setOptions({styles: data});\n });\n // The marker, positioned at cors\n let marker = new google.maps.Marker({\n position: coors,\n map: map,\n title: name,\n animation: google.maps.Animation.BOUNCE,\n icon: '/wp-content/themes/Divi-child/custom_shortcodes/pokemonsmvc/assets/images/poks_marker.png'\n });\n }", "title": "" }, { "docid": "3c2d1993069c216177122406eacfb03d", "score": "0.62429184", "text": "function _setupMap()\n{\n var map = L.map('map').setView([46.782963, -92.094666], 7),\n MapQuestOpen_Aerial = L.tileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}',\n {\n type: 'sat',\n ext: 'jpg',\n attribution: 'Tiles Courtesy of <a href=\"http://www.mapquest.com/\">MapQuest</a> &mdash; Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency',\n subdomains: '1234'\n }).addTo(map);\n return map;\n}", "title": "" }, { "docid": "2b1fc8e8032898d676e8b0fbbc138376", "score": "0.6242087", "text": "async function createMyMap() {\n const response = await fetch('/map-data');\n const mapMarkers = await response.json();\n\n const map = new google.maps.Map(\n document.getElementById('my-map'),\n {center: {lat: -33.8783, lng: 151.1850}, zoom: 13});\n \n mapMarkers.forEach((marker) => {\n addMarker(map, marker.lat, marker.lng, marker.title, marker.description);\n })\n}", "title": "" }, { "docid": "56215ac2c0a9ede0a80c179870b8baa2", "score": "0.6229098", "text": "function createMap() {\n window.map = new google.maps.Map(document.getElementById('map'),\n {center: {lat: 35.9128, lng: -100.3821}, zoom: 5});\n}", "title": "" }, { "docid": "16c35ec60cd7e3954b431a1ae28a7e70", "score": "0.62280154", "text": "function initMap() {\n var nbsteak = {lat: -30.0179456, lng: -51.1893504};\n var galpaoCrioulo = {lat: -30.0179456, lng: -51.1893504};\t\n var portoAlegre = {lat: -30.0317838,lng: -51.2093156};\n for(var i = 0;i<3;i++){\n var map = new google.maps.Map(maps[i], {\n zoom: 11,\n center: portoAlegre\n });\n \n var marker = new google.maps.Marker({\n position: portoAlegre,\n map: map,\n title: 'Porto Alegre'\n });\n }\n \n }", "title": "" }, { "docid": "f5d08226aaa74a421bd9c9f292a80856", "score": "0.6225721", "text": "function initMap() {\r\n try {\r\n map = new google.maps.Map(document.getElementById('map'), {\r\n // Seattle\r\n center: {lat: 47.61121, lng: -122.352071},\r\n zoom: 14,\r\n // Disable landmarks icons lookup\r\n clickableIcons: false\r\n });\r\n // Create only one infowindow so that it can be used globally\r\n // and only one infowindow can appear at a time\r\n infowindow = new google.maps.InfoWindow();\r\n // create details for each places\r\n for (var i = 0; i < locations.length; i++) {\r\n getPlaces(locations[i].title, infowindow);\r\n }\r\n } catch (err) {\r\n alert(\"Failed to load Google Maps properly, error message: \" + err);\r\n }\r\n}", "title": "" }, { "docid": "d6b46b7a4ac1620229989340fb272b04", "score": "0.62180424", "text": "function newMap(latLng, args) {\n args = args || {};\n var opts = args.td && args.td.options ? args.td.options : 0;\n if (map) {\n if (opts) {\n if (opts.center) {\n opts.center = toLatLng(opts.center);\n }\n map.setOptions(opts);\n }\n } else {\n opts = args.opts || $.extend(true, {}, defaults.map, opts || {});\n opts.center = latLng || toLatLng(opts.center);\n map = new defaults.classes.Map($this.get(0), opts);\n }\n }", "title": "" }, { "docid": "1d69d64f35ef520247e2639e4822f9c9", "score": "0.62128896", "text": "createMap() {\n // Create the map and set geographical bounds to UK's latlng as well as set the zoom level\n this.map = L.map('map', {\n zoomControl: false,\n watch: true\n }).setView([54.805, -3.5], 5);\n\n // Add a new tile layer with the actual map features, set the options\n L.tileLayer('https://api.mapbox.com/styles/v1/hebaelshimy/cjjb2m2ss5cj62so6remsqx4s/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoiaGViYWVsc2hpbXkiLCJhIjoiY2o4YjdzZWF4MGtxMDJxczB2dDA4ZXNsOSJ9.hUkmJ7j6KuQyVMZPN9Xxpg', {\n minZoom: 5,\n maxZoom: 15,\n detectRetina: true,\n reuseTiles: true, \n unloadInvisibleTiles: true\n }).addTo(this.map);\n }", "title": "" }, { "docid": "bbd66f3ccf638999777b7719a39b81d5", "score": "0.62049824", "text": "function makeMap() {\n var map = new graphlib.Graph({\n directed: false\n });\n map.setNode('room 1', 'the first room');\n map.setNode('room 2', 'the second room');\n map.setEdge('room 1', 'room 2', 'stairway');\n return map;\n}", "title": "" }, { "docid": "674fa02ec32c5eccf0d6adc38300dd42", "score": "0.6204242", "text": "function initializeMap() {\n\tvar locations;\n\tvar mapOptions = {\n\t\tdisableDefaultUI: true\n\t};\n\t\n\tmap = new google.maps.Map(document.querySelector('#map-div'), mapOptions);\n\n\n\t/*locationFinder() returns an array of every location string from the JSONs\n\twritten for bio, education, and work.\n\t*/\n\tfunction locationFinder() {\n\n\t\t// initializes an empty array\n\t\tvar locations = [];\n\n\t\t// Creates location objects and adds them to the array\n\t\t//console.log(\"Here's a spot Bio: \"+bio.contacts.location);\n\t\tlocations.push(new Location(\"My home\",bio.contacts.location));\n\n\t\t// iterates through school locations and appends each location to\n\t\t// the locations array\n\t\tfor (var school in education.schools) {\n\t\t\t//console.log(\"Here's a spot School: \"+education.schools[school].location);\n\t\t\tlocations.push(new Location(education.schools[school].name,education.schools[school].location));\n\t\t}\n\n\t\t// iterates through work locations and appends each location to\n\t\t// the locations array\n\t\tfor (var job in work.jobs) {\n\t\t\t//console.log(\"Here's a spot Job: \"+work.jobs[job].location);\n\t\t\tlocations.push(new Location(work.jobs[job].employer,work.jobs[job].location));\n\t\t}\n\t\treturn locations;\n\t}\n\n\t// Sets the boundaries of the map based on pin locations\n\twindow.mapBounds = new google.maps.LatLngBounds();\n\n\t// locations is an array of location strings returned from locationFinder()\n\tlocations = locationFinder();\n\n\t// pinPoster(locations) creates pins on the map for each location in\n\t// the locations array\n\tpinPoster(locations);\n}", "title": "" }, { "docid": "646ae898ca615b4aa830f11d9176e638", "score": "0.6203646", "text": "function initMap() {\n\n // Coordinates of the center of the continental US\n var UScenter = {lat: 39.8283, lng: -98.5795};\n\n // Creates a new Google Map obj\n map = new google.maps.Map(\n document.getElementById('map'), {zoom: 5, center: UScenter});\n\n // Creates a new marker on the map\n var marker = new google.maps.Marker({position: UScenter, map: map})\n}", "title": "" }, { "docid": "bc15c741eefac7db978c6721c5ed8e60", "score": "0.6203049", "text": "function createMap() {\n $('#map').usmap({\n stateStyles: {fill: 'white'},\n stateHoverStyles: {fill: 'white'},\n stateHoverAnimation: 50\n });\n}", "title": "" }, { "docid": "f65133985a2b301ab33e42cb0986cf8b", "score": "0.61958563", "text": "function setupMap(position) {\n options.lat = position.latitude;\n options.lng = position.longitude;\n mappaMap = mappa.tileMap(options);\n mappaMap.overlay(canvas);\n}", "title": "" }, { "docid": "3ae7f8248d7383f4b4e061194c5ec720", "score": "0.6191387", "text": "function initMap() {\n map = new google.maps.Map(document.getElementById('map'), {\n center: SouthStation.coords,\n zoom: 3\n });\n\n //set up MBTA\n markers = placeMarkers(map, redStops, markerIconPath);\n for (var i = 0; i < redStops.length; i++) {\n (function (name) {\n markers[i].addListener('click', function () {\n setStopInfoWindow(name, this, map);\n });\n })(redStops[i].name);\n }\n\n drawRoute(map, redRoute, redLineColor);\n\n //user location specific things\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(setupUserLocation);\n } else {\n console.log(\"Geolocation is not supported by this browser\");\n }\n}", "title": "" }, { "docid": "ea792a83dc440e8f93ec52d3b3657c9d", "score": "0.61890215", "text": "function initMap() {\n //The api is loaded at this step\n //L'api est chargée à cette étape\n\n //add translations\n translate(['legendFormGazetteer','fieldLblGazetteer','searchGazetteer']);\n\n createMap();\n var gazetteer= createSearchEngine();\n territoriesViewer[currentTerritory].getMap().addControls([gazetteer]);\n gazetteer.activate();\n}", "title": "" }, { "docid": "31f318b906d2c679e647cf774e65b426", "score": "0.6185906", "text": "async function constructMap(container){\n map = await locationHelper.constructMapWithCenter(container,[-123.14229959999999, 49.2194576 ])\n map.addControl(new mapboxgl.NavigationControl(), \"top-right\");\n map.addControl(\n new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true\n },\n trackUserLocation: true,\n })\n );\n\n marker = new mapboxgl.Marker()\n\n}", "title": "" }, { "docid": "aa58e318a52d704ac73216d8f60a5cd6", "score": "0.61837417", "text": "function locManchester(){\n \n bbox = [-2.306957244873047,53.4496246783658, -2.181987762451172, 53.50622200597148]; //min long, min lat, max long, max lat\n dbFolder = \"Manchester\";\n// gmMarkLoc = [53.46199902007057, -2.2304821014404297];\n tileNum = 700;\n showGame();\n initMap();\n initMap2();\n \n}", "title": "" }, { "docid": "b5deb9dc5cb8a8d7ce862839aa0c89ab", "score": "0.61824334", "text": "function createMap() {\n const TownHall = {lat: -33.8732, lng: 151.2071};\n const SGHS = {lat: -33.889829774, lng : 151.218999124};\n const UNSW = {lat : -33.917329664, lng : 151.225332432};\n const map = new google.maps.Map(\n document.getElementById('map'),\n {center: TownHall, zoom: 13});\n // The marker, positioned at Uluru\n const marker = new google.maps.Marker({\n position: TownHall,\n map: map,\n title: 'TownHall Station'\n });\n \n const marker_sghs = new google.maps.Marker({\n position: SGHS,\n map: map,\n title: 'Sydney Girls High School, where I went to high school'\n });\n const marker_UNSW = new google.maps.Marker({\n position: UNSW,\n map: map,\n title: 'UNSW, my university'\n });\n const UNSWInfoWin =\n new google.maps.InfoWindow({content: 'UNSW, my university. Goodbye to the UNSW 891 bus. You will be missed.'});\n UNSWInfoWin.open(map, marker_UNSW);\n\n const SGHInfoWin =\n new google.maps.InfoWindow({content: 'Sydney Girls High School, where I went to high school. Fun times!'});\n SGHInfoWin.open(map, marker_sghs);\n\n const TownHallInfoWin =\n new google.maps.InfoWindow({content: 'Townhall Station. A reall cool underground station if you look at the layout but they need aircon. \\\n (Am a rail Nerd, the infrastructure of the station is really cool)'});\n TownHallInfoWin.open(map, marker);\n}", "title": "" }, { "docid": "6e31591bfbf64ac95a33cac672be9c59", "score": "0.61790997", "text": "function createMap(earthquakesLayer, platesLayer) {\n\n // Base layers to choose from\n var satelliteMap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"satellite-v9\",\n accessToken: API_KEY\n });\n\n var lightMap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"light-v10\",\n accessToken: API_KEY\n });\n\n var outdoorsMap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"outdoors-v11\",\n accessToken: API_KEY\n });\n\n // Create a baseMaps object\n var baseMaps = {\n \"Stellite Map\": satelliteMap,\n \"Light Map\": lightMap,\n \"Outdoors Map\": outdoorsMap\n };\n\n // Create an overlayMaps object\n var overlayMaps = {\n \"Earthquakes\": earthquakesLayer,\n \"Tectonic Plates\": platesLayer\n };\n\n // Define a map object with default layer options\n var myMap = L.map(\"map\", {\n center: [49.28, -123.12], //Vancouver, BC, Canada coordinates\n zoom: 4,\n layers: [satelliteMap, earthquakesLayer, platesLayer]\n });\n\n // Add layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n }).addTo(myMap);\n\n // Create a legend to display color categorizations of the earthquake depths\n var legend = L.control({position: \"bottomright\"});\n\n legend.onAdd = function (myMap) {\n var div = L.DomUtil.create('div', 'info legend'),\n depth = [-10, 10, 30, 50, 70, 90]\n \n // Loop through our density intervals (depths) and generate a label with a colored square for each interval\n for (var i = 0; i < depth.length; i++) {\n div.innerHTML +=\n '<i style=\"background:' + getColor(depth[i] + 1) + '\"></i> ' +\n depth[i] + (depth[i + 1] ? '&ndash;' + depth[i + 1] + '<br>' : '+');\n }\n \n return div;\n }\n\n // Add legend to the map\n legend.addTo(myMap);\n}", "title": "" }, { "docid": "aa154dbab5f77d798fac2118173066ff", "score": "0.61729056", "text": "function initMap() {\n map = new google.maps.Map(document.getElementById('map'), {\n center: {lat: 40.607047, lng: -75.37754},\n zoom: 16,\n streetViewControl: false\n \n });\n /*\n //custom marker on front lawn\n var image = 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png';\n var beachMarker = new google.maps.Marker({\n position: {lat: 40.607047, lng: -75.37754},\n properties: {name: 'Lehigh'},\n map: map,\n icon: image\n });*/\n \n }", "title": "" }, { "docid": "b22d742fdfd914532a6e6295fb8efd4e", "score": "0.61706895", "text": "function initMap() {\n\n \t//this is a map showing all the stations and their details\n var map = new google.maps.Map(document.getElementById('map'), {\n center: {lng: centerLng, lat: centerLat},\n zoom: baseZoom\n });\n \n\n points.forEach((station) => {\n var marker = new google.maps.Marker({\n position:{lng: parseFloat(station.lon), lat: parseFloat(station.lat)},\n map: map,\n title: `${station.name} \\nBikes Available: ${station.stationStatus.num_bikes_available}\\nDocks Available: ${station.stationStatus.num_docks_available} \\nCapacity: ${station.capacity}`\n }) \n\n })\n\n //we can just use our make heatmap function here...\n makeHeatMap(baseHeatMapBikes, heatMapBikes, 'heatmapBikes', getPointsWeightBikes(), baseRadius, baseZoom)\n makeHeatMap(baseHeatMapDocks, heatMapDocks, 'heatmapDocks', getPointsWeightDocks(), baseRadius, baseZoom)\n makeHeatMap(baseHeatMapSystem, heatMapSystem, 'heatmapSystem', getPointsWeightSystem(), baseRadius, baseZoom)\n //makeHeatMap(baseHeatMapRatio, heatMapRatio, 'heatmapRatio', getPointsRatio(), baseRadius, baseZoom)\n }", "title": "" }, { "docid": "1a52cbfe5295c4a57064dee1ea4fa185", "score": "0.6166053", "text": "function initMap() {\n const uluru = { lat: -25.344, lng: 131.036 };\n const map = new google.maps.Map(document.getElementById(\"harita\"), {\n zoom: 4,\n center: uluru,\n });\n const marker = new google.maps.Marker({\n position: uluru,\n map: map,\n });\n }", "title": "" }, { "docid": "f3729b6713fcfbcf7ab48b302621be42", "score": "0.61643714", "text": "function initializeMap() {\n WorldBorder.objects.get(1, function(response){\n var center = new google.maps.LatLng(response.lat, response.lon);\n map.setCenter(center); \n map.setZoom(8); \n var geojson = response.geojson;\n map.data.addGeoJson(JSON.parse(geojson));\n });\n \n }", "title": "" }, { "docid": "e3a1dbac8dc0c214145544ed5d5d0938", "score": "0.615746", "text": "function initMap() {\n let dubai = {lat: 25.204849, lng: 55.270783};\n let burjkhalifa = {lat: 25.197197, lng: 55.274376};\n let burjalarab = {lat: 25.141306, lng: 55.185348};\n let dubaimall = {lat: 25.198518, lng: 55.279619};\n let dubaifountain = {lat: 25.195567, lng: 55.275515};\n let palmjumeirah = {lat: 25.114948, lng: 55.137709};\n let dubaicreek = {lat: 25.229351, lng: 55.292259};\n let dubaimarina = {lat: 25.080542, lng: 55.140343};\n let mapDemo = document.getElementById(\"map\");\n\n // defaut location is set when the map loads\n let map = new google.maps.Map(mapDemo, {\n zoom: 11,\n center: dubai\n });\n\n // setting markers for each location to view on the overall map \n let markerBURJKHALIFA = new google.maps.Marker({\n position: burjkhalifa,\n map: map,\n title: 'Burj Khalifa'\n });\n\n let markerBURJALARAB = new google.maps.Marker({\n position: burjalarab,\n map: map,\n title: 'Burj Al Arab'\n });\n\n let markerDUBAIMALL = new google.maps.Marker({\n position: dubaimall,\n map: map,\n title: 'Dubai Mall'\n });\n \n let markerDUBAIFOUNTAIN = new google.maps.Marker({\n position: dubaifountain,\n map: map,\n title: 'Dubai Fountain'\n });\n\n let markerPALMJUMEIRAH = new google.maps.Marker({\n position: palmjumeirah,\n map: map,\n title: 'Palm Jumeirah'\n });\n\n let markerDUBAICREEK = new google.maps.Marker({\n position: dubaicreek,\n map: map,\n title: 'Dubai Creek'\n });\n\n let markerDUBAIMARINA = new google.maps.Marker({\n position: dubaimarina,\n map: map,\n title: 'Dubai Marina'\n });\n}", "title": "" }, { "docid": "b8f95b8992aebac159ed5756ce2f7fed", "score": "0.615449", "text": "function populateMap(){\n \t //render city border\n \t city_line.features.forEach(function(feature){\n \t L.geoJSON(feature, { style: citylineStyle }).addTo(map);\n \t });\n\n \t //render trails\n \t trails.features.forEach(function(feature){\n \t L.geoJSON(feature, { style: trailStyle }).addTo(map);\n \t bikepaths.push(feature);\n \t });\n\n \t bike_fac.features.forEach(function(feature){\n \t L.geoJSON(feature, { style: bikeStyle}).addTo(map);\n \t bikepaths.push(feature);\n \t });\n \t \n \t \n \t groc.features.forEach(function(feature){\n \t\t // first map\n \t\t var popupText = \"<b>\" + feature.properties.name + \"</b><br>\" + feature.properties.store_type + \"<br>Accessibility: \" + feature.properties.accessibility + \"<br>\" + feature.properties.address ;\n\n \t\t var accMarker = L.geoJSON(feature, {\n \t\t pointToLayer: function (f, latlng) {\n \t\t if(feature.properties.accessibility == \"YES\") {\n \t\t return L.circleMarker(latlng, yesMarkerOptions);\n \t\t }\n \t\t else if(feature.properties.accessibility == \"SOMEWHAT\") {\n \t\t return L.circleMarker(latlng, somewhatMarkerOptions);\n \t\t }\n \t\t else {\n \t\t return L.circleMarker(latlng, noMarkerOptions);\n \t\t }\n \t\t }\n \t\t }).addTo(map);\n \t\t accMarker.bindPopup(popupText);\n \t });\n }", "title": "" }, { "docid": "358361f743110cff0ea4731782dfc154", "score": "0.615362", "text": "function initMap() {\n\n // Here one can list all the locations to be mapped on the map, which will then be called when marking\n // Optionally, one can store this information within the same url and just import the data\n\n var locations = [\n {lat: 8.481146, lng: -13.21867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.482146, lng: -13.22867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.483146, lng: -13.23867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.484146, lng: -13.24867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.485146, lng: -13.25867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.486146, lng: -13.26867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.487146, lng: -13.27867, title: 'Marker #1', animation: google.maps.Animation.DROP, infoWindow: {content: '<strong>Marker #1</strong>'}},\n {lat: 8.488146, lng: -13.28867, animation: google.maps.Animation.DROP},\n {lat: 8.489146, lng: -13.29867, animation: google.maps.Animation.DROP},\n {lat: 8.480146, lng: -13.20867, animation: google.maps.Animation.DROP},\n {lat: 8.494146, lng: -13.22967, animation: google.maps.Animation.DROP},\n {lat: 8.474146, lng: -13.22867, animation: google.maps.Animation.DROP},\n {lat: 8.464146, lng: -13.22767, animation: google.maps.Animation.DROP},\n {lat: 8.454146, lng: -13.22667, animation: google.maps.Animation.DROP},\n {lat: 8.449146, lng: -13.22567, animation: google.maps.Animation.DROP},\n {lat: 8.438146, lng: -13.22467, animation: google.maps.Animation.DROP},\n {lat: 8.427146, lng: -13.22367, animation: google.maps.Animation.DROP},\n {lat: 8.416146, lng: -13.22267, animation: google.maps.Animation.DROP},\n {lat: 8.470146, lng: -13.22167, animation: google.maps.Animation.DROP},\n {lat: 8.471146, lng: -13.23567, animation: google.maps.Animation.DROP},\n {lat: 8.472146, lng: -13.24667, animation: google.maps.Animation.DROP},\n {lat: 8.473146, lng: -13.25767, animation: google.maps.Animation.DROP},\n {lat: 8.484146, lng: -13.20867, animation: google.maps.Animation.DROP},\n {lat: 8.495146, lng: -13.22967, animation: google.maps.Animation.DROP},\n {lat: 8.476246, lng: -13.22867, animation: google.maps.Animation.DROP},\n {lat: 8.467346, lng: -13.22767, animation: google.maps.Animation.DROP},\n {lat: 8.458446, lng: -13.22667, animation: google.maps.Animation.DROP},\n {lat: 8.440546, lng: -13.22567, animation: google.maps.Animation.DROP},\n {lat: 8.433646, lng: -13.22467, animation: google.maps.Animation.DROP},\n {lat: 8.422746, lng: -13.22367, animation: google.maps.Animation.DROP},\n {lat: 8.411846, lng: -13.22267, animation: google.maps.Animation.DROP},\n {lat: 8.474946, lng: -13.22167, animation: google.maps.Animation.DROP},\n {lat: 8.470146, lng: -13.23577, animation: google.maps.Animation.DROP},\n {lat: 8.471346, lng: -13.24687, animation: google.maps.Animation.DROP},\n {lat: 8.473246, lng: -13.25797, animation: google.maps.Animation.DROP},\n {lat: 8.484146, lng: -13.24817, animation: google.maps.Animation.DROP},\n {lat: 8.485146, lng: -13.25827, animation: google.maps.Animation.DROP},\n {lat: 8.486146, lng: -13.26837, animation: google.maps.Animation.DROP},\n {lat: 8.487146, lng: -13.27847, animation: google.maps.Animation.DROP},\n {lat: 8.488146, lng: -13.28857, animation: google.maps.Animation.DROP},\n {lat: 8.489146, lng: -13.29877, animation: google.maps.Animation.DROP},\n {lat: 8.480146, lng: -13.20887, animation: google.maps.Animation.DROP},\n {lat: 8.494146, lng: -13.22997, animation: google.maps.Animation.DROP},\n {lat: 8.474146, lng: -13.22807, animation: google.maps.Animation.DROP},\n {lat: 8.464146, lng: -13.22761, animation: google.maps.Animation.DROP},\n {lat: 8.454146, lng: -13.22662, animation: google.maps.Animation.DROP},\n {lat: 8.449146, lng: -13.22563, animation: google.maps.Animation.DROP},\n {lat: 8.438146, lng: -13.22464, animation: google.maps.Animation.DROP},\n {lat: 8.427146, lng: -13.22365, animation: google.maps.Animation.DROP},\n {lat: 8.416146, lng: -13.22266, animation: google.maps.Animation.DROP},\n {lat: 8.470146, lng: -13.22168, animation: google.maps.Animation.DROP},\n {lat: 8.471147, lng: -13.23569, animation: google.maps.Animation.DROP},\n {lat: 8.472148, lng: -13.24667, animation: google.maps.Animation.DROP},\n {lat: 8.473149, lng: -13.25767, animation: google.maps.Animation.DROP},\n {lat: 8.470141, lng: -13.23577, animation: google.maps.Animation.DROP},\n {lat: 8.471343, lng: -13.24687, animation: google.maps.Animation.DROP},\n {lat: 8.473244, lng: -13.25797, animation: google.maps.Animation.DROP},\n {lat: 8.484146, lng: -13.24817, animation: google.maps.Animation.DROP},\n {lat: 8.485145, lng: -13.25827, animation: google.maps.Animation.DROP},\n {lat: 8.486147, lng: -13.26837, animation: google.maps.Animation.DROP},\n {lat: 8.487148, lng: -13.27847, animation: google.maps.Animation.DROP},\n {lat: 8.488149, lng: -13.28857, animation: google.maps.Animation.DROP},\n {lat: 8.4891461, lng: -13.29877, animation: google.maps.Animation.DROP},\n {lat: 8.4801462, lng: -13.20887, animation: google.maps.Animation.DROP},\n {lat: 8.4941463, lng: -13.22997, animation: google.maps.Animation.DROP},\n {lat: 8.4741464, lng: -13.22807, animation: google.maps.Animation.DROP},\n {lat: 8.4641465, lng: -13.22761, animation: google.maps.Animation.DROP},\n {lat: 8.4541466, lng: -13.22662, animation: google.maps.Animation.DROP},\n {lat: 8.4491467, lng: -13.22563, animation: google.maps.Animation.DROP},\n {lat: 8.4381468, lng: -13.22464, animation: google.maps.Animation.DROP},\n {lat: 8.4271469, lng: -13.22365, animation: google.maps.Animation.DROP},\n {lat: 8.416146, lng: -13.222661, animation: google.maps.Animation.DROP},\n {lat: 8.470146, lng: -13.221682, animation: google.maps.Animation.DROP},\n {lat: 8.471147, lng: -13.235693, animation: google.maps.Animation.DROP},\n {lat: 8.472148, lng: -13.246674, animation: google.maps.Animation.DROP},\n {lat: 8.473149, lng: -13.257675, animation: google.maps.Animation.DROP},\n {lat: 8.471740, lng: -13.261676, animation: google.maps.Animation.DROP}\n ]\n\n var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';\n var icons = {\n parking: {\n icon: iconBase + 'parking_lot_maps.png'\n },\n library: {\n icon: iconBase + 'library_maps.png'\n },\n info: {\n icon: iconBase + 'info-i_maps.png'\n }\n };\n\n function addMarker(feature) {\n var marker = new google.maps.Marker({\n position: feature.position,\n icon: icons[feature.type].icon,\n map: map\n });\n }\n // Places search, for future, Please google, do something\n function callback(results, status) {\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n for (var i = 0; i < results.length; i++) {\n createMarker(results[i]);\n }\n }\n }\n\n function createMarker(place) {\n var placeLoc = place.geometry.location;\n var marker = new google.maps.Marker({\n map: map,\n position: place.geometry.location\n });\n\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.setContent(place.name);\n infowindow.open(map, this);\n });\n }\n\n var features = [\n {\n position: new google.maps.LatLng(8.472740, -13.262676),\n type: 'parking'\n }\n ];\n\n for (var i = 0, feature; feature = features[i]; i++) {\n addMarker(feature);\n }\n\n var freetown = {lat: 8.484146, lng: -13.22867};\n var map = new google.maps.Map(document.getElementById('map'),{\n zoom: 14,\n center: freetown,\n scrollwheel: false,\n styles: [\n {elementType: 'geometry', stylers: [{color: '#ebe3cd'}]},\n {elementType: 'labels.text.fill', stylers: [{color: '#523735'}]},\n {elementType: 'labels.text.stroke', stylers: [{color: '#f5f1e6'}]},\n {\n featureType: 'administrative',\n elementType: 'geometry.stroke',\n stylers: [{color: '#c9b2a6'}]\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'geometry.stroke',\n stylers: [{color: '#dcd2be'}]\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'labels.text.fill',\n stylers: [{color: '#ae9e90'}]\n },\n {\n featureType: 'landscape.natural',\n elementType: 'geometry',\n stylers: [{color: '#dfd2ae'}]\n },\n {\n featureType: 'poi',\n elementType: 'geometry',\n stylers: [{color: '#dfd2ae'}]\n },\n {\n featureType: 'poi',\n elementType: 'labels.text.fill',\n stylers: [{color: '#93817c'}]\n },\n {\n featureType: 'poi.park',\n elementType: 'geometry.fill',\n stylers: [{color: '#a5b076'}]\n },\n {\n featureType: 'poi.park',\n elementType: 'labels.text.fill',\n stylers: [{color: '#447530'}]\n },\n {\n featureType: 'road',\n elementType: 'geometry',\n stylers: [{color: '#f5f1e6'}]\n },\n {\n featureType: 'road.arterial',\n elementType: 'geometry',\n stylers: [{color: '#fdfcf8'}]\n },\n {\n featureType: 'road.highway',\n elementType: 'geometry',\n stylers: [{color: '#f8c967'}]\n },\n {\n featureType: 'road.highway',\n elementType: 'geometry.stroke',\n stylers: [{color: '#e9bc62'}]\n },\n {\n featureType: 'road.highway.controlled_access',\n elementType: 'geometry',\n stylers: [{color: '#e98d58'}]\n },\n {\n featureType: 'road.highway.controlled_access',\n elementType: 'geometry.stroke',\n stylers: [{color: '#db8555'}]\n },\n {\n featureType: 'road.local',\n elementType: 'labels.text.fill',\n stylers: [{color: '#806b63'}]\n },\n {\n featureType: 'transit.line',\n elementType: 'geometry',\n stylers: [{color: '#dfd2ae'}]\n },\n {\n featureType: 'transit.line',\n elementType: 'labels.text.fill',\n stylers: [{color: '#8f7d77'}]\n },\n {\n featureType: 'transit.line',\n elementType: 'labels.text.stroke',\n stylers: [{color: '#ebe3cd'}]\n },\n {\n featureType: 'transit.station',\n elementType: 'geometry',\n stylers: [{color: '#dfd2ae'}]\n },\n {\n featureType: 'water',\n elementType: 'geometry.fill',\n stylers: [{color: '#b9d3c2'}]\n },\n {\n featureType: 'water',\n elementType: 'labels.text.fill',\n stylers: [{color: '#92998d'}]\n }\n ]\n });\n\n // Create an array of alphabetical characters used to label the markers.\n var labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\n\n // Add some markers to the map.\n // Note: The code uses the JavaScript Array.prototype.map() method to\n // create an array of markers based on a given \"locations\" array.\n // The map() method here has nothing to do with the Google Maps API.\n var markers = locations.map(function(location, i) {\n return new google.maps.Marker({\n animation: google.maps.Animation.DROP,\n position: location,\n label: labels[i % labels.length]\n });\n });\n\n // Add a marker clusterer to manage the markers.\n var markerCluster = new MarkerClusterer(map, markers,\n {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});\n\n\n\n // Indication of a sample mapping with info window giving more details which finalises the TODO indicated earlier\n // This approach may be long but offers a better clarification.\n var contentString = '<div id=\"content\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1 id=\"firstHeading\" class=\"firstHeading\">Freetown</h1>'+\n '<div id=\"bodyContent\">'+\n '<p><b>Freetown</b>, also referred to as <b>Slavetown</b>, is a town ' +\n 'with various cultures from across Africa. </p>'+\n '<p>Attribution: Freetown,'+\n '</div>'+\n '</div>';\n\n var infowindow = new google.maps.InfoWindow({\n content: contentString\n });\n\n var marker = new google.maps.Marker({\n position: freetown,\n map: map,\n title: 'Freetown'\n });\n\n marker.addListener('click', function() {\n infowindow.open(map, marker);\n });\n\n // Create a <script> tag and set the Amenities URL as the source.\n var script = document.createElement('script');\n // This example uses a local copy of the GeoJSON stored at\n // https://knowyourcity.com/\n script.src = 'https://knowyourcity.com/db/documentation/javascript/examples/json/amenities_GeoJSONP.js';\n document.getElementsByTagName('head')[0].appendChild(script);\n\n // Loop through the results array and place a marker for each\n // set of coordinates.\n window.amfeed_callback = function(results) {\n for (var i = 0; i < results.features.length; i++) {\n var coords = results.features[i].geometry.coordinates;\n var latLng = new google.maps.LatLng(coords[1],coords[0]);\n var marker = new google.maps.Marker({\n position: latLng,\n map: map\n });\n }\n };\n\n // The Google Maps Data Layer provides a container for arbitrary geospatial data (including GeoJSON).\n // If your data is in a file hosted on the same domain as your Maps JavaScript API application,\n // you can load it using the map.data.loadGeoJson() method. The file must be on the same domain,\n // but you can host it in a different subdomain. For example, you can make a request to files.example.com\n // from www.example.com.\n\n // // This will be useful for the users who are in the Freetown Informal Settlement Areas and will\n // // help them geolocate the mapped amenities inform of GeoJSON! I have disabled it as I am not within Freetown :)\n // var infoWindow = new google.maps.InfoWindow({map: map});\n //\n // if (navigator.geolocation) {\n // navigator.geolocation.getCurrentPosition(function(position) {\n // var pos = {\n // lat: position.coords.latitude,\n // lng: position.coords.longitude\n // };\n //\n // infoWindow.setPosition(pos);\n // infoWindow.setContent('<h5>You are Here, look around for location of the nearest Mapped Facility.</h5>');\n // map.setCenter(pos);\n // }, function() {\n // handleLocationError(true, infoWindow, map.getCenter());\n // });\n // } else {\n // // Browser doesn't support Geolocation\n // handleLocationError(false, infoWindow, map.getCenter());\n // }\n\n\n // Insert this overlay map type as the first overlay map type at\n // position 0. Note that all overlay map types appear on top of\n // their parent base map.\n\n infowindow = new google.maps.InfoWindow();\n var service = new google.maps.places.PlacesService(map);\n service.nearbySearch({\n location: freetown,\n animation: google.maps.Animation.DROP,\n radius: 10000,\n type: ['hospital']\n }, callback);\n \n map.overlayMapTypes.insertAt(\n 0, new CoordMapType(new google.maps.Size(256, 256)));\n }", "title": "" }, { "docid": "c2be7b9e0d291d9974354eff2114cac7", "score": "0.61513406", "text": "function createMap() {\n\n var objTypes = \"String Number Date Array Boolean RegExp Function Object Undefined Null\";\n var tagTypes = \"a abbr acronym address applet area article aside audio \"+\n \"b base bdi bdo big body br button \"+\n \"canvas caption center cite code col colgroup command \"+\n \"datalist dd del details dfn dir div dl dt \"+\n \"em embed \"+\n \"fieldset figcaption figure font footer form frame frameset \"+\n \"h1 h2 h3 h4 h5 h6 head header hgroup hr html \"+\n \"i iframe img input ins \"+\n \"kbd \"+\n \"label legend li link \"+\n \"map mark menu meta meter \"+\n \"nav noframes noscript \"+\n \"ol optgroup option output \"+\n \"p param pre progress \"+\n \"q \"+\n \"rp rt ruby \"+\n \"s samp script section select small source span strike strong style sub summary sup svg \"+\n \"table tbody td textarea tfoot th thead time title tr track tt \"+\n \"u ul \"+\n \"var video \"+\n \"wbr\"+\n \"xmp\";\n var specialTagTypes =\"object\";\n\n objTypes.split(' ').forEach( mapObject );\n tagTypes.split(' ').forEach( mapTag );\n specialTagTypes.split(' ').forEach( mapSpecialTag );\n\n var tn = document.createTextNode( 'test' );\n var cn = document.createComment( 'test' );\n var tntype = Object.prototype.toString.call( tn );\n var cntype = Object.prototype.toString.call( cn );\n var windowtype = Object.prototype.toString.call( $.window );\n map[ tntype ] = 'textnode';\n map[ cntype ] = 'commentnode';\n map[ windowtype ] = 'window';\n //TODO: add isTextNode and isCommentNode selector functions\n //TODO: add support for blockquote\n }", "title": "" }, { "docid": "3580104de411a178cc84da0f4956271c", "score": "0.6149174", "text": "function initMap() {\n // [START maps_add_map_instantiate_map]\n // The location of Uluru\nconst uluru = { lat: -25.344, lng: 131.036 };\n// The map, centered at Uluru\nconst map = new google.maps.Map(document.getElementById(\"map\"), {\n zoom: 4,\n center: uluru,\n});\n // [END maps_add_map_instantiate_map]\n // [START maps_add_map_instantiate_marker]\n // The marker, positioned at Uluru\nconst marker = new google.maps.Marker({\n position: uluru,\n map: map,\n });\n // [END maps_add_map_instantiate_marker]\n }", "title": "" }, { "docid": "a17fa0ee097914959a83d14b0ca4fb3c", "score": "0.6147351", "text": "function initMap() {\n // Centre over the city that was searched for\n const citySearched = { lat: cityLookupDetails[3], lng: cityLookupDetails[4] };\n // The map, centered at the city seached for.\n const map = new google.maps.Map(document.getElementById(\"map\"), {\n zoom: MAP_ZOOM_LEVEL,\n center: citySearched,\n disableDefaultUI: true,\n gestureHandling: \"none\",\n zoomControl: false,\n });\n // The marker, positioned at the city searched for\n const marker = new google.maps.Marker({\n position: citySearched,\n map: map,\n });\n}", "title": "" }, { "docid": "47e10e29148eeda525e95d5b7720c21b", "score": "0.6143133", "text": "function createMap(lat,lon,zl){\n\tmap = L.map('map').setView([lat,lon], zl);\n\n\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\t\tattribution: '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'\n\t}).addTo(map);\n}", "title": "" }, { "docid": "fcc204588796bc1b500eab11bfdf2e54", "score": "0.6142969", "text": "function createMap() {\n var latlng = new google.maps.LatLng(44.4325, 26.1039);\n\n var mapOptions = {\n center: latlng,\n zoom: 13\n };\n\n map = new google.maps.Map(document.getElementById(\"map-canvas\"), mapOptions);\n}", "title": "" }, { "docid": "897d2462e9544e371a99264cd4358acc", "score": "0.6142404", "text": "function createMap(bikeStations) {\n\n // Define streetmap and darkmap layers\nvar streetmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> <strong><a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a></strong>\",\n tileSize: 512,\n maxZoom: 18,\n zoomOffset: -1,\n id: \"mapbox/streets-v11\",\n accessToken: \"pk.eyJ1IjoibWFuaXNoYWxhbCIsImEiOiJja2tlc3Y5eGcwMzV0MnZxZThvb3g3d3MwIn0.DPmfdzNu4SykIHWqzFoYjA\"\n});\n\nvar darkmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"dark-v10\",\n accessToken: \"pk.eyJ1IjoibWFuaXNoYWxhbCIsImEiOiJja2tlc3Y5eGcwMzV0MnZxZThvb3g3d3MwIn0.DPmfdzNu4SykIHWqzFoYjA\"\n});\n\n// Define a baseMaps object to hold our base layers\nvar baseMaps = {\n \"Street Map\": streetmap,\n \"Dark Map\": darkmap\n};\n\n// Create overlay object to hold our overlay layer\nvar overlayMaps = {\n \"Bike Stations\": bikeStations\n};\n\nvar center_toronto = [43.645609, -79.380386];\nvar center_boston = [42.361145, -71.057083];\nvar center_vancouver = [49.24966, -123.11934];\nvar center_newyork = [40.730610, -73.935242];\nvar center_center = [40.7794, -96.9292];\n\n\nif (locationID == 1) {\n var center1 = center_toronto;\n var zoomx = 13;\n} else if (locationID == 2) {\n var center1 = center_vancouver;\n var zoomx = 13;\n} else if (locationID == 3) {\n var center1 = center_boston;\n var zoomx = 13;\n} else if (locationID == 4) {\n var center1 = center_newyork;\n var zoomx = 13;\n}\nelse {\n var center1 = center_center;\n var zoomx = 4.5;\n}\n\n// Before initializing map check for is the map is already initiated or not\nvar container = L.DomUtil.get('map-id');\nif(container != null){\ncontainer._leaflet_id = null;\n}\nelse{\n container._leaflet_id != null;\n}\n\n// Create our map, giving it the streetmap and bikestation layers to display on load\nvar myMap = L.map(\"map-id\", {\n center: center1,\n zoom: zoomx,\n layers: [streetmap, bikeStations]\n});\n\n// Create a layer control\n// Pass in our baseMaps and overlayMaps\n// Add the layer control to the map\nL.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n}).addTo(myMap);\n}", "title": "" }, { "docid": "7f33c6fe84d7425259da6984229c27f4", "score": "0.6138829", "text": "function setup_map()\n {\n // remove the current map if there is one\n reset_map();\n\n map = L.map(map_div[0], {\n center: initial_center,\n zoom: initial_zoom\n });\n\n setup_tileLayer();\n setup_drawing();\n }", "title": "" } ]
756ccb23ee66ed730e992387112bc42e
constructor for the container, pages and components
[ { "docid": "45cec7e82e2bee54d2ccbc798fac2436", "score": "0.81681967", "text": "constructor (container) {\n // Root container\n this.container = container;\n\n // Pages\n this.pageHome = new HomePage();\n this.pageOpleiding = new OpleidingPage();\n this.pagePGMTeam = new PGMTeamPage();\n this.pageStudentDetail = new StudentDetailPage();\n this.pagePortfolio = new PortfolioPage();\n this.pageCaseDetail = new CaseDetailPage();\n this.pageNieuws = new NieuwsPage();\n this.pageNieuwsDetail = new NieuwsDetailPage();\n this.pageWerkplekleren = new WerkpleklerenPage();\n this.pageContact = new ContactPage();\n this.pageNotFound = new NotFoundPage();\n\n // Components\n this.compHeader = new Header();\n this.compFooter = new Footer();\n }", "title": "" } ]
[ { "docid": "96a9398339b29195d857c68ae45e17f0", "score": "0.6897287", "text": "constructor({ parent }) {\n this.$parent = $(parent);\n this.page = parent.page;\n this.setup_header();\n this.make_body();\n }", "title": "" }, { "docid": "0c87fd78a2f637f257de59ca3604c487", "score": "0.68821186", "text": "constructor(container) {\n this.container = container;\n }", "title": "" }, { "docid": "3445870de1130e8a866f22b6377df1dc", "score": "0.6881787", "text": "constructor() {\n super(component_1.DUMMY_APPLICATION_OWNER);\n this.logger = new index_2.ConsoleLogger();\n this.options = new utils_1.Options(this.logger);\n this.options.addDefaultDeclarations();\n this.serializer = new serialization_1.Serializer();\n this.converter = this.addComponent(\"converter\", index_1.Converter);\n this.renderer = this.addComponent(\"renderer\", renderer_1.Renderer);\n this.plugins = this.addComponent(\"plugins\", index_2.PluginHost);\n }", "title": "" }, { "docid": "1812a9f4d7e387e6d33ee5d651ab730e", "score": "0.667342", "text": "constructor() {\n super();\n this.ptorElement = utils.ptorElement;\n this.ptorWait = utils.ptorWait;\n this.pageElements = this._getPtorElements();\n this.navBar = new NavBar();\n }", "title": "" }, { "docid": "2830fa75478ed596dae98bbb3d0e6568", "score": "0.66682076", "text": "init(){\n\n const $self = this;\n\n let $templateInfo = $self.determinePage();\n\n if(!$self.renderTemplate($templateInfo)){\n\n return;\n }\n\n if(!$self.getDomElements()){\n\n return;\n }\n\n $self.attachDomElementEvents();\n }", "title": "" }, { "docid": "0d3aaa0b78fbf59a834d96b7a4393e19", "score": "0.6655978", "text": "initComponent() {\n\t\t// Create and append elements\n\t\tthis.createWrapper();\n\t\tthis.createNavMenu();\n\t\tthis.createIconButton();\n\n\t\t// Add event listener to close the navigation menu when clicking outside of floating links wrapper\n\t\tthis.addOutsideClickListener();\n\n\t\t// Add scroll event listener to hide/show floating links on scroll\n\t\tthis.addScrollEventListener();\n\n\t\t// Apply styles\n\t\tthis.setCSSVariables();\n\t}", "title": "" }, { "docid": "adcc5c62c05590a910bf5947c09768d9", "score": "0.6602825", "text": "constructor() {\n\n this.mapRender = new MapRender(this);\n this.GUI = new GUI(this);\n this.webClient = new WebClient(this);\n\n }", "title": "" }, { "docid": "a0b77fc4ea9f9027df6ef631b47e7413", "score": "0.6602044", "text": "function Container() {}", "title": "" }, { "docid": "312c2354a4668bf59cc7d6984691fc5a", "score": "0.6495998", "text": "constructor() {\n\t\tthis._slidesBanner = '.et_pb_slides';\n\t\tthis._pageHeader = '.header-content h1';\n\t}", "title": "" }, { "docid": "0e675f5173d9d4a12385dc9ca75e889a", "score": "0.6489116", "text": "constructor() {\n this.pageLoad();\n this._cart = new Cart();\n this._productsShelf = new Shelf();\n this._newsletter = new Newsletter();\n }", "title": "" }, { "docid": "cf90bc8d874a404ed99b9a23706ad821", "score": "0.648577", "text": "init(){\r\n this.logger.log( this.LOG_PREFIX, 'Initializing' );\r\n \r\n // cache all elements that will be used by this Class\r\n this.els.$shell = $(this.templates.EXAMPLE_TEMPLATE({\r\n cssClassPrefix: this.cssClassPrefix,\r\n jsPrefix: this.jsPrefix.replace('.', ''),\r\n navURLs: [\r\n {\r\n url: 'http://example.com',\r\n label: 'Example'\r\n }\r\n ],\r\n props: {\r\n fu: this.randomProp,\r\n unimportant: true\r\n }\r\n }));\r\n this.els.$navItems = this.els.$shell.find( this.selectors.NAV_ITEM );\r\n this.addListeners();\r\n }", "title": "" }, { "docid": "e5e42107ed51ceb6950107289ce9a9eb", "score": "0.64821696", "text": "constructor() { \n \n PageInfo.initialize(this);\n }", "title": "" }, { "docid": "c41fa6c4390591ff832d9d9b97dffb84", "score": "0.6463711", "text": "_uiInit() {\n // Layout variables\n this._lHtml = jQuery('html');\n this._lBody = jQuery('body');\n this._lPage = jQuery('#page-container');\n this._lSidebar = jQuery('#sidebar');\n this._lMain = jQuery('#main-container');\n this._lFooter = jQuery('#page-footer');\n\n // Helper variables\n this._lSidebarScroll = false;\n this._windowW = Tools.getWidth();\n\n // Base UI Init\n this._uiHandleSidebar('init');\n this._uiHandleNav();\n\n // API Init\n this._uiApiLayout();\n\n // Core Helpers Init\n this.helpers([\n 'core-bootstrap-tooltip',\n 'core-bootstrap-popover',\n 'core-bootstrap-tabs',\n 'core-toggle-class',\n 'core-scroll-to',\n 'core-year-copy',\n 'core-appear'\n ]);\n }", "title": "" }, { "docid": "6f0d3f29d05100ad0709037193d5aab6", "score": "0.6458549", "text": "constructor() {\n\t\tthis.siteHeader = $(\".site-header\");\n\t\tthis.headerTriggerElement = $(\".header__subtitle\");\n\t\tthis.createHeaderWaypoint();\n\t\tthis.pageSections = $ (\".page-section\");\n\t\tthis.createPageSectionWaypoints();\n\t}", "title": "" }, { "docid": "9c8e87eff0e26a1dced25df6497dc74f", "score": "0.64485687", "text": "function initializeComponents() {\n let domElement = null;\n let component = null;\n\n // $('.navigation').each(function() {\n // domElement = $(this);\n // component = new Navigation(domElement);\n // });\n}", "title": "" }, { "docid": "b318958846d005f5bfe1ade3b8531e3a", "score": "0.6418902", "text": "constructor() {\r\n this.page = parseInt(window.location.pathname.substr(1)) || 0;\r\n this.pages = document.querySelectorAll('.FullPage');\r\n this.tran_page = document.querySelector('.TransitionPage');\r\n this.switch = false;\r\n\r\n this._init();\r\n }", "title": "" }, { "docid": "c214e65d47dcb15b0a6c65a7c5ab7276", "score": "0.6307941", "text": "constructor(config, container, height) {\n this.config = config;\n this.container = container;\n this.height = height;\n this.setupElements();\n this.render();\n }", "title": "" }, { "docid": "ed345990978892536a911152e2f73397", "score": "0.62946117", "text": "constructor(container, title, subtitle){\n this.container = container;\n this.title = title;\n this.subtitle = subtitle;\n }", "title": "" }, { "docid": "f0441b13ccdc297d2ac2f58632762548", "score": "0.6281576", "text": "constructor(container = 'na') {\n this.container = container;\n }", "title": "" }, { "docid": "910542f65061a5e0ce1f521a4054ed06", "score": "0.62810934", "text": "initialize() {\n console.log('About.initialize');\n this.container = $('#about');\n Dom.bind(this.container);\n this.steers = {};\n this.listen();\n }", "title": "" }, { "docid": "ea82152e0c96ae914adddd1a38aebec1", "score": "0.62726706", "text": "function _createContainers() {\n svv.labelContainer = new LabelContainer();\n svv.panoramaContainer = new PanoramaContainer(labelList);\n }", "title": "" }, { "docid": "cd1351bb0ccc97557fa1d47efd2c5579", "score": "0.6271041", "text": "initialize(){\n this.setUpContainer();\n this.addNamesContainer();\n this.addBarsContainer();\n\n //starts up functions that deal with resizing/breaking bars\n this.enableResizeFunctions();\n }", "title": "" }, { "docid": "487bdad8e622d20fee2c59ba98644ea6", "score": "0.62643963", "text": "constructor() {\n this.index = function() {\n this.print = function () {\n document.body.insertAdjacentHTML('afterbegin', '<index-page />')\n }\n } \n this.tag = function() {\n this.print = function () {\n document.body.insertAdjacentHTML('afterbegin', '<tag-page id=\"' + this.url.slice(5) + '\"></tag-page>')\n }\n }\n this.user = function() {\n this.print = function () {\n document.body.insertAdjacentHTML('afterbegin', '<user-page id=\"' + this.url.slice(5) + '\"></user-page>')\n }\n }\n this.error404 = function() {\n this.print = function () {\n document.body.insertAdjacentHTML('afterbegin', '<error404-page></error404-page>')\n }\n }\n\n }", "title": "" }, { "docid": "85d157605c1eedf429e0058899aff123", "score": "0.62560874", "text": "constructor(page) {\n this.page = page;\n }", "title": "" }, { "docid": "5c394c4327c41d09aa753ca2b52a3575", "score": "0.6251911", "text": "_init(container, gameParams, pages, afterLoad) {\n // assets loader\n this.assets = new GF.AssetsLoader();\n\n this._mainContainer = document.querySelector(container);\n this._mainContainer.style.padding = \"0\";\n this._mainContainer.style.margin = \"0\";\n this._mainContainer.style.background = \"black\";\n this._mainContainer.style.overflow = \"hidden\";\n this._mainContainer.name = \"jgf-main-container\";\n\n // create canvas and containers\n this._container = document.createElement(\"div\");\n this._container.name = \"jgf-game-container\";\n this._container.style.overflow = \"hidden\";\n this._container.style.position = \"relative\";\n this._container.style.marginLeft = \"auto\";\n this._container.style.marginRight = \"auto\";\n this._container.style.top = \"50%\";\n this._container.style.transform = \"translateY(-50%)\";\n this._gameCanvas = createCanvas(this._container, 2);\n this._gameDebugCanvas = createCanvas(this._container, 3);\n this._pageContainer = createContentContainer(this._container, 4);\n this._modalContainer = createContentContainer(this._container, 6);\n this._modalContainer.style.display = \"none\";\n this._mainContainer.appendChild(this._container);\n\n // game\n if (typeof(gameParams) === \"string\") {\n this.game = window.eval.call(window, `(function (canvas, loader) { return new ${gameParams}(canvas, debugCanvas, loader) })`)(this._gameCanvas, this._gameDebugCanvas, this.assets);\n } else {\n this.game = new GF.Game(this._gameCanvas, this._gameDebugCanvas, this.assets, gameParams.params, gameParams.onStart, gameParams.onUpdate, gameParams.onStop, gameParams.onTickUpdate, gameParams.onPointerLockChange);\n }\n this.game._mainContainer = this._container;\n\n // aspect ratio\n this._aspectRatio = this.game._aspectRatio != null ? this.game._aspectRatio : GF.ASPECT_RATIO._16_9;\n\n // preset\n if (this.game._graphicsPreset) {\n this.assets.setGraphicsPreset(this.game._graphicsPreset);\n if (GF.GRAPHICS_PRESET_PARAMS[this.game._graphicsPreset]) {\n this._gameCanvas.style.imageRendering = GF.GRAPHICS_PRESET_PARAMS[this.game._graphicsPreset].imageRendering;\n }\n }\n\n // page manager\n this.pages = new GF.PageManager(this._pageContainer, this._modalContainer);\n\n // add pages\n if (pages) {\n for (const page of pages) {\n this.pages.addPage(page.name, window.eval.call(window, `(function (controller) { return new ${page.className}(controller) })`)(this));\n }\n }\n\n // add default required pages\n if (this.pages.getPage(GF.GAME_PAGE) == null) {\n this.pages.addPage(GF.GAME_PAGE, new DefaultGamePage(this));\n }\n if (this.pages.getPage(GF.LOADING_MODAL) == null) {\n this.pages.addPage(GF.LOADING_MODAL, new DefaultLoadingPage(this));\n }\n this.pages.addPage(GF.EDITOR_PAGE, new EditorPage(this));\n\n // bind to window resize\n this.onWindowResizeCallback = this.onWindowResize.bind(this);\n window.addEventListener('resize', this.onWindowResizeCallback);\n\n this.onWindowResize();\n\n // https://greensock.com/forums/topic/10051-animations-pause-when-browser-tab-is-not-visible/\n // window focus event listeners to pause animations\n var self = this;\n // check if browser window has focus\t\t\n var notIE = (document.documentMode === undefined),\n isChromium = window.chrome;\n\n if (notIE && !isChromium) {\n // checks for Firefox and other NON IE Chrome versions\n window.addEventListener(\"focusin\", function () { \n self.resume();\n }, false);\n\n window.addEventListener(\"focusout\", function () { \n self.pause();\n }, false);\n } else {\n // checks for IE and Chromium versions\n if (window.addEventListener) {\n\n // bind focus event\n window.addEventListener(\"focus\", function (event) {\n self.resume();\n }, false);\n\n // bind blur event\n window.addEventListener(\"blur\", function (event) {\n self.pause();\n }, false);\n\n } else {\n\n // bind focus event\n window.attachEvent(\"focus\", function (event) {\n self.resume();\n });\n\n // bind focus event\n window.attachEvent(\"blur\", function (event) {\n self.pause();\n });\n }\n }\n\n if (afterLoad) {\n afterLoad();\n }\n }", "title": "" }, { "docid": "f71074d3bef02a215a021e38398467f1", "score": "0.6241026", "text": "constructor(page) {\n this.page = page;\n }", "title": "" }, { "docid": "6aebdab364b833a9496147555b2ffaa8", "score": "0.6219822", "text": "function pageSetUp(){\r\n\t\tpage.init();\r\n\t\tlineGraph.init();\r\n\t\tfilters.init();\r\n\t\tinfoBox.init();\r\n\t\tbarChart.init();\r\n\t\tcolorCodedMap.init();\r\n tour.init();\r\n\t}", "title": "" }, { "docid": "f8c6a8a17969583129df58e9f7914540", "score": "0.6218712", "text": "initialize() {\r\n this.logger.startEmpty();\r\n\r\n this.elements = {\r\n pagination: {\r\n self: $('#pagination'),\r\n prev: $(\"#pagination .prev\"),\r\n next: $(\"#pagination .next\"),\r\n placeHolder: $('#pagination .placeholder')\r\n },\r\n\r\n catalog: {\r\n self: $('#catalog'),\r\n spinner: $('#catalog .spinner'),\r\n },\r\n\r\n template: {\r\n product: $('template#product'),\r\n }\r\n };\r\n\r\n this.elements.pagination.next.click(() => this._onPageChange((this.page + 1)));\r\n this.elements.pagination.prev.click(() => this._onPageChange((this.page - 1)));\r\n\r\n this.elements.catalog.self.on('change', '.product .amount', ((e) => this._onProudctAmountChange(e)));\r\n this.elements.catalog.self.on('click', '.product button', ((e) => this._onProductAdd(e)));\r\n\r\n this._getCatalog(0, this._onInitialRecv.bind(this));\r\n }", "title": "" }, { "docid": "21c541f63aa800c4225e5d1ce424b0de", "score": "0.620493", "text": "init(){\n\t\tthis.mainChart = new Universe(this.pageId);\n\t\tthis.charts = [this.mainChart];\n\t}", "title": "" }, { "docid": "b9651011e7f77315d8ecdebdcad29963", "score": "0.62031823", "text": "constructor(){\n this.profileContainer = document.getElementById('profileContainer');\n this.reposContainer = document.getElementById('reposContainer');\n }", "title": "" }, { "docid": "23157fdd2c948610624b9e16c350d398", "score": "0.6200191", "text": "initialize(options={}) {\n this.options = options;\n\n this.$window = $(window);\n this.$pageContainer = null;\n this.$pageContent = null;\n this.$mainSidebar = null;\n this._$pageSidebar = null;\n this._$mainSidebarPane = null;\n\n this.hasSidebar = null;\n this.isFullPage = null;\n this.inMobileMode = null;\n this.isPageRendered = false;\n\n this.drawer = null;\n this.headerView = null;\n\n this._actionViews = [];\n }", "title": "" }, { "docid": "e9a7cc51307c1681d5597ce9d9b7a4cd", "score": "0.6189188", "text": "constructor(container: any) {\n this.container = container || DOM;\n this.easings = Object.assign(velocity.Easings, this.easings);\n this.effects = Object.assign(velocity.Redirects, this.effects);\n }", "title": "" }, { "docid": "25868303f5c54eaf4305694ef8fdcf4f", "score": "0.61832935", "text": "constructor(config, container, height, onInteraction) {\n this.config = config;\n this.container = container;\n this.height = height;\n this.onInteraction = onInteraction;\n this.setupElements();\n this.drawCharts();\n //this.configControls();\n }", "title": "" }, { "docid": "f5bbce4fcc8ac8f4276ef93ca94ecd14", "score": "0.61807483", "text": "construct()\n\t{\n\t\tconsole.html('<group c=\"instance\"><span level=\"instance\" c=\"icon instance\">.</span>Class <span c=\"AppKit class\">WebAppHeader</span> inherits:</group>');\n\t\t//html\n\t\tthis._super();\n\t\t\n\t\tvar _this = this;\n\t\t\n\t\tAppKit.addEventListener('initialize', this.initialize.bind(this));\n\t\t// window.addEventListener('resize', this._onResize.bind(this));\n\t\tthis._onResize();\n\n\t\t// this.$el.triggerHandler('preinitialize');\n\t\t\n\t\tconsole.html('<groupEnd level=\"instance\"/>');\n\t}", "title": "" }, { "docid": "f9d0514b4256e25dc4363601abfa1e1f", "score": "0.61725134", "text": "function setContainers() {\n\t\t\t// Initialize containers\n\t\t\tContainer = document.getElementById(Config.viewer.container);\n\t\t\tif(!Container) throw new Error(\"The panorama container \\\"\" + Config.viewer.container + \"\\\" is not found\");\n\t\t\tpannellum.util.domElement.setAttr(Container, {\n\t\t\t\t\"className\" : ((Container.className) ? Container.className + \" \" : \"\") + \"pnlm-container\",\n\t\t\t\t\"tabIndex\" : 0\n\t\t\t});\n\t\t\tif( Config.viewer.width ) pannellum.util.domElement.setAttr(Container, {\n\t\t\t\t\"style\" : {\"width\" : Config.viewer.width }\n\t\t\t});\n\t\t\tif( Config.viewer.height ) pannellum.util.domElement.setAttr(Container, {\n\t\t\t\t\"style\" : {\"height\" : Config.viewer.height }\n\t\t\t});\n\t\t\tRenderContainer = pannellum.util.domElement.create({\n\t\t\t\tname : \"div\", attributes : {\"className\": \"pnlm-render-container\"}\n\t\t\t}, Container);\n\n\t\t\tif( !Object.isEmpty(Config.settings.controls) ) {\n\t\t\t\tControlsContainer = pannellum.util.domElement.create({\n\t\t\t\t\tname : \"div\", attributes : {\"className\": \"pnlm-controls-container\"}\n\t\t\t\t}, Container);\n\t\t\t}\n\t\t\t//Modules container is created in any case, because of errorMessage defailt module\n\t\t\tModulesContainer = pannellum.util.domElement.create({\n\t\t\t\tname : \"div\", attributes : {\"className\": \"pnlm-modules-container\"}\n\t\t\t}, Container);\n\n\t\t\tDragFix = pannellum.util.domElement.create({\n\t\t\t\tname : \"div\", attributes : {\"className\": \"pnlm-dragfix\"}\n\t\t\t}, Container);\n\t\t\tDragFix.addEventListener(\"contextmenu\", function(domEvent){\n\t\t\t\tpannellum.eventBus.dispatch(\"context_menu\", DragFix, domEvent);\n\t\t\t\tdomEvent.preventDefault();\n\t\t\t});\n\t\t\tContainer.addEventListener('mousedown', onDocumentMouseDown, false);\n\t\t\tdocument.addEventListener('mousemove', onDocumentMouseMove, false);\n\t\t\tdocument.addEventListener('mouseup', onDocumentMouseUp, false);\n\t\t\tdocument.addEventListener('mouseleave', onDocumentMouseUp, false);\n\t\t\tContainer.addEventListener('mousewheel', onDocumentMouseWheel, false);\n\t\t\tContainer.addEventListener('DOMMouseScroll', onDocumentMouseWheel, false);\n\n\t\t\tContainer.addEventListener('mozfullscreenchange', onFullScreenChange, false);\n\t\t\tContainer.addEventListener('webkitfullscreenchange', onFullScreenChange, false);\n\t\t\tContainer.addEventListener('msfullscreenchange', onFullScreenChange, false);\n\t\t\tContainer.addEventListener('fullscreenchange', onFullScreenChange, false);\n\n\t\t\twindow.addEventListener('resize', onDocumentResize, false);\n\t\t\tContainer.addEventListener('keydown', onDocumentKeyPress, false);\n\t\t\tContainer.addEventListener('keyup', onDocumentKeyUp, false);\n\t\t\tContainer.addEventListener('blur', onDocumentKeyUp, false);\n\n\t\t\tContainer.addEventListener('touchstart', onDocumentTouchStart, false);\n\t\t\tContainer.addEventListener('touchmove', onDocumentTouchMove, false);\n\t\t\tContainer.addEventListener('touchend', onDocumentTouchEnd, false);\n\t\t\t//Container.addEventListener('pointerdown', onDocumentPointerDown, false);\n\t\t\t//Container.addEventListener('pointermove', onDocumentPointerMove, false);\n\t\t\t//Container.addEventListener('pointerup', onDocumentPointerUp, false);\n\t\t\t//Container.addEventListener('pointerleave', onDocumentPointerUp, false);\n\n\t\t\t// Deal with MS pointer events\n\t\t\tif (window.navigator.pointerEnabled) Container.style.touchAction = 'none';\n\n\t\t\tpannellum.animator.setInteractionPriority({\n\t\t\t\t'AutoInteraction':0,\n\t\t\t\t'MouseWheelInteraction':1,\n\t\t\t\t'KeyInteraction':1,\n\t\t\t\t'MouseInteraction':2,\n\t\t\t\t'TouchInteraction':2,\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "21fdb8817e0d1e1dccf910c49b439133", "score": "0.61632067", "text": "static definition() {\n this.instanceVariables = ['rootComponent']\n this.assumes = [ContainerWidgetBuilder]\n this.implements = [ComponentRendererProtocol]\n }", "title": "" }, { "docid": "4bf4bfec7e0c83a7a9567c4dd9221570", "score": "0.61530316", "text": "function init(){\r\n EvilContainer = new createjs.Container();\r\n trashContainer= new createjs.Container();\r\n trashContainer2= new createjs.Container();\r\n trashContainer3= new createjs.Container();\r\n LevelContainer = new createjs.Container();\r\n gen4BlurContainer = new createjs.Container();\r\n ContainerMenu = new createjs.Container(); \r\n startContainer = new createjs.Container();\r\n instruContainer = new createjs.Container();\r\n StartScreen();\r\n StartIns();\r\n}", "title": "" }, { "docid": "5379bd05d57620061bc8685df3bd7ac5", "score": "0.61447203", "text": "function initUI() {\r\n createTopBar();\r\n root.append(mainPanel); // TODO JADE\r\n makeSidebar();\r\n METADATA_EDITOR.init(); // initialize different parts of the editor\r\n LOCATION_HISTORY.init();\r\n THUMBNAIL_EDITOR.init();\r\n MEDIA_EDITOR.init();\r\n }", "title": "" }, { "docid": "99ec96cdffc9fc7880265ae4851d3095", "score": "0.61422944", "text": "function initialiseStructure(){\n\tappContainer.appendChild(mainContainer);\n\tmainContainer.setAttribute(\"class\", \"mainContainer\");\n\tpagination.setAttribute(\"class\", \"pagination\");\n}", "title": "" }, { "docid": "1b322691e131e56123d15dbe94479982", "score": "0.61227906", "text": "function InitContainer() {\n BookingPlanningCtrl.ePage.Masters.Container = {}\n BookingPlanningCtrl.ePage.Masters.Container.IsFormView = false;\n BookingPlanningCtrl.ePage.Masters.Container.AddNewContainer = AddNewContainer;\n BookingPlanningCtrl.ePage.Masters.Container.selectedGridRowContainer = SelectedGridRowContainer;\n // BookingPlanningCtrl.ePage.Masters.Container.DeleteContainer = DeleteContainer;\n // BookingPlanningCtrl.ePage.Masters.Container.DeleteConfirmation = DeleteConfirmation;\n BookingPlanningCtrl.ePage.Masters.Container.AddToGridContainer = AddToGridContainer;\n BookingPlanningCtrl.ePage.Masters.Container.AddNewAndUpdate = 'Add New'\n // BookingPlanningCtrl.ePage.Masters.Container.gridConfig = BookingPlanningCtrl.ePage.Entities.Container.gridConfig;\n if (!BookingPlanningCtrl.currentBooking.isNew) {\n GetContainerList();\n } else {\n BookingPlanningCtrl.ePage.Masters.Container.GridData = [];\n }\n }", "title": "" }, { "docid": "3a6b8f96578e54e691922ccbbcd8f647", "score": "0.61108", "text": "constructor(container = document.body, itemsWrapper = null) {\n this.container = container\n this.itemsWrapper = itemsWrapper\n if (!this.container || !this.itemsWrapper) return\n this.setup()\n this.initEffectShell().then(() => {\n console.log('Finished Loading')\n this.isLoaded = true\n })\n this.createEventsListeners()\n }", "title": "" }, { "docid": "ed97f2f9bddcf03278b111aa743e58a8", "score": "0.6108042", "text": "constructor() {\n this._scenes = new Map();\n this._currentScene = null;\n this._theme = new Theme();\n this.mainDiv = document.createElement('div');\n this.mainDiv.style.position = \"relative\";\n this.isLoading = false;\n }", "title": "" }, { "docid": "9a6ff6314a414859a451a77804742433", "score": "0.6095914", "text": "function init() {\n context = stringToElem(htmlTemplate);\n document.body.appendChild(context);\n\n contextScrollPaneElement = context.querySelector(\".js-panel-scroll-pane\");\n contextPageContentElement = context.querySelector(\".js-panel-content\");\n contextPageTitleElement = context.querySelector(\".js-panel-title\");\n\n if (settings.indentedContent) setContent(settings.indentedContent) else setContent(settings.content)\n if (settings.direction) setDirection(settings.direction);\n if (settings.title) setTitle(settings.title);\n if (settings.footerContent) setFooterContent(settings.footerContent);\n\n setOpenHandler();\n\n getActionContext().disabled = true\n getActionContext().removeAttribute(\"title\")\n\n subscription = Elemental.pubSubClient.subscribe(Events.events, Viewport.responsiveEvent, function (data) {\n if (data.viewport !== Viewports.MOBILE && context.classList.contains(\"is-active\")) closeHandler();\n })\n\n if (isCurrentView() && !isOpened()) setHistory();\n window.addEventListener(\"hashchange\", hashChangeHandler)\n }", "title": "" }, { "docid": "a899f77bf05232333bfdc89e4e3ff9f3", "score": "0.60908115", "text": "constructor({renderer}, containerSelector) {\n this._renderer = renderer;\n this._container = document.querySelector(containerSelector);\n }", "title": "" }, { "docid": "a122e15f5d5fd896f4bf603f9a44534f", "score": "0.6089311", "text": "static init() {\n Doc.container = document.querySelector('#content');\n }", "title": "" }, { "docid": "b68481a4d38f8f47798161de50110006", "score": "0.60892814", "text": "constructor(config) {\n\n super(\"div\", { id: \"Popup\" });\n\n this.nav = new Dom(\"div\", { className: \"nav\" })\n this.title = new Dom(\"div\", { className: \"title\" });\n this.loading = new Dom(\"div\", { className: \"loading\" });\n this.body = new Dom(\"div\", { className: \"body\" });\n this.info = new Dom(\"div\", { className: \"info\" });\n\n this.loadingImage = new Dom(\"img\", { src: \"/image/spinner.svg\" });\n\n this.closeButton = new Dom(\"div\", { className: \"close\", innerText: \"close\" });\n this.closeButton.event(\"click\", () => this.hide())\n\n this.holder = new Dom(\"div\", { className: \"background\" })\n\n this.header = new Dom(\"div\", { className: \"header\" });\n\n this.header.add(\n this.title,\n this.loading\n );\n\n this.loading.add(this.loadingImage);\n\n this.add(\n this.closeButton,\n this.header,\n this.body\n );\n\n this.holder.add(this, this.nav, this.info)\n\n if (config) this.set(config);\n\n }", "title": "" }, { "docid": "f9bafac45335b57f025c9993d4712cce", "score": "0.6080216", "text": "constructor() {\n super();\n this.postConstruct();\n }", "title": "" }, { "docid": "f9bafac45335b57f025c9993d4712cce", "score": "0.6080216", "text": "constructor() {\n super();\n this.postConstruct();\n }", "title": "" }, { "docid": "28bbfd34f6d32ebb10995a4a451b87ec", "score": "0.6078437", "text": "init() {\n // various custom utilities\n this.utilities();\n // initiate vendor plugins\n this.vendors();\n // setup form validation\n this.validation();\n // setup sidebar slider\n this.sidebar();\n // setup datatables\n this.datatables();\n // init some default ajax settings\n this.ajaxSettings();\n }", "title": "" }, { "docid": "d71aa905c389002527d46fd3f96b33ea", "score": "0.6077206", "text": "initialize(options = {}) {\n this.container = options.container;\n\n // add this \"module\" to the header menu service\n HeaderService.request('add', {\n name: 'Home',\n path: '',\n type: 'primary'\n });\n\n }", "title": "" }, { "docid": "3664ba3504ef155297b04945cba468f1", "score": "0.60716164", "text": "constructor() {\n // declare our class properties\n // call init\n this.init();\n }", "title": "" }, { "docid": "f2a5fd7414d34fe1f72149db96a744c7", "score": "0.60628045", "text": "createComponents() {\n this.setDependencies({\n Services: {\n CityHistoryService: new CityHistoryService(),\n CityListService: new CityListService(),\n FavCityService: new FavCityService(),\n SettingsService: new SettingsService(),\n StorageService: new StorageService(),\n WeatherService: new WeatherService(),\n },\n Controllers: {\n UrlController: new UrlController(),\n },\n UiControllers: {\n UnitSwitchController: new UnitSwitchController(),\n ProgressController: new ProgressController(),\n CityInputController: new CityInputController(),\n SearchHistoryController: new SearchHistoryController(),\n WeatherController: new WeatherController(),\n MoodController: new MoodController(),\n GuideController: new GuideController(),\n FavCityController: new FavCityController(),\n },\n });\n }", "title": "" }, { "docid": "391a0e74106f023a918bf20204d79b4d", "score": "0.60593754", "text": "constructor() {\n // declare our class properties\n\n // call init\n this.init();\n }", "title": "" }, { "docid": "d265cbea5753b7545fcf37b8cc40aa1d", "score": "0.60521984", "text": "render() {\n this._root.className = \"app\";\n\n const sidebar = new Sidebar();\n\n const pageContainer = document.createElement(\"div\");\n pageContainer.className = \"page\";\n\n const header = new Header();\n const content = new Content();\n\n pageContainer.appendChild(content.getElement());\n\n // Separate header from page container, as it is now a fixed element, and should not be calculated in handlePageScroll()\n this._root.appendChild(sidebar.getElement());\n this._root.appendChild(header.getElement());\n this._root.appendChild(pageContainer);\n\n pageContainer.addEventListener(\n 'scroll',\n () => App.handlePageScroll()\n );\n }", "title": "" }, { "docid": "9e13e638392798b8c6c7d27739b139cb", "score": "0.6046011", "text": "constructor(config) {\n console.assert(config);\n this._config = config;\n this._components = new Map();\n }", "title": "" }, { "docid": "3aa646dcbf3b87a4c9854ac38ff6067a", "score": "0.60414416", "text": "InitClass() {\n super.InitClass();\n\n this.tpClass = 'tp.Page';\n this.fDefaultCssClasses = 'tp-Page';\n this.fDisplayType = 'block';\n }", "title": "" }, { "docid": "60485d8260f929848a6739b99793201a", "score": "0.604127", "text": "constructor()\n {\n super();\n this.init();\n\n }", "title": "" }, { "docid": "8426c0497ea27140fdb6771d0392333c", "score": "0.6034691", "text": "constructor() {\n this._uiInit();\n }", "title": "" }, { "docid": "b5fe6ea4bf2acbd8efa05e19c879f35f", "score": "0.60166585", "text": "constructor(title, pages) {\n this._title = title;\n this._pages = pages;\n this._currentPage = null;\n\n this.database = new Database();\n }", "title": "" }, { "docid": "fb87b44cadbebfe3b82ac7822fd468b3", "score": "0.6006013", "text": "constructor() {\n console.log('Yo from home page')\n // initialize after construction\n this.init();\n }", "title": "" }, { "docid": "599a3039416ff80563d4181d45639bab", "score": "0.6004987", "text": "function Page() {}", "title": "" }, { "docid": "2aafa5b265b1433f79e41b37216fa606", "score": "0.60035425", "text": "constructor() {\n\t\tthis.Init();\n\t}", "title": "" }, { "docid": "706382f2e2868ee0ad342c0c633b2776", "score": "0.59866834", "text": "constructor(){\n super();\n this.createElements();\n this.addOptions();\n }", "title": "" }, { "docid": "294bd58a954bdfe08e2777649124e90d", "score": "0.59818614", "text": "function prepareDom(){\r\n container.css({\r\n 'height': '100%',\r\n 'position': 'relative'\r\n });\r\n\r\n //adding a class to recognize the container internally in the code\r\n container.addClass(WRAPPER);\r\n $('html').addClass(ENABLED);\r\n\r\n //due to https://github.com/alvarotrigo/fullPage.js/issues/1502\r\n windowsHeight = $window.height();\r\n\r\n container.removeClass(DESTROYED); //in case it was destroyed before initializing it again\r\n\r\n addInternalSelectors();\r\n\r\n //styling the sections / slides / menu\r\n $(SECTION_SEL).each(function(index){\r\n var section = $(this);\r\n var slides = section.find(SLIDE_SEL);\r\n var numSlides = slides.length;\r\n\r\n styleSection(section, index);\r\n styleMenu(section, index);\r\n\r\n // if there's any slide\r\n if (numSlides > 0) {\r\n styleSlides(section, slides, numSlides);\r\n }else{\r\n if(options.verticalCentered){\r\n addTableClass(section);\r\n }\r\n }\r\n });\r\n\r\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\r\n if(options.fixedElements && options.css3){\r\n $(options.fixedElements).appendTo($body);\r\n }\r\n\r\n //vertical centered of the navigation + active bullet\r\n if(options.navigation){\r\n addVerticalNavigation();\r\n }\r\n\r\n enableYoutubeAPI();\r\n\r\n if(options.scrollOverflow){\r\n scrollBarHandler = options.scrollOverflowHandler.init(options);\r\n }else{\r\n afterRenderActions();\r\n }\r\n }", "title": "" }, { "docid": "5bfa55decc77e5e446a2a526154b0383", "score": "0.5979909", "text": "function prepareDom(){\r\n css(container, {\r\n 'height': '100%',\r\n 'position': 'relative'\r\n });\r\n\r\n //adding a class to recognize the container internally in the code\r\n addClass(container, WRAPPER);\r\n addClass($('html'), ENABLED);\r\n\r\n //due to https://github.com/alvarotrigo/fullPage.js/issues/1502\r\n windowsHeight = getWindowHeight();\r\n\r\n removeClass(container, DESTROYED); //in case it was destroyed before initializing it again\r\n\r\n addInternalSelectors();\r\n\r\n var sections = $(SECTION_SEL);\r\n\r\n //styling the sections / slides / menu\r\n for(var i = 0; i<sections.length; i++){\r\n var index = i;\r\n var section = sections[i];\r\n var slides = $(SLIDE_SEL, section);\r\n var numSlides = slides.length;\r\n\r\n //caching the original styles to add them back on destroy('all')\r\n section.setAttribute('data-fp-styles', section.getAttribute('style'));\r\n\r\n styleSection(section, index);\r\n styleMenu(section, index);\r\n\r\n // if there's any slide\r\n if (numSlides > 0) {\r\n styleSlides(section, slides, numSlides);\r\n }else{\r\n if(options.verticalCentered){\r\n addTableClass(section);\r\n }\r\n }\r\n }\r\n\r\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\r\n if(options.fixedElements && options.css3){\r\n $(options.fixedElements).forEach(function(item){\r\n $body.appendChild(item);\r\n });\r\n }\r\n\r\n //vertical centered of the navigation + active bullet\r\n if(options.navigation){\r\n addVerticalNavigation();\r\n }\r\n\r\n enableYoutubeAPI();\r\n\r\n if(options.scrollOverflow){\r\n scrollBarHandler = options.scrollOverflowHandler.init(options);\r\n }else{\r\n afterRenderActions();\r\n }\r\n }", "title": "" }, { "docid": "10a6124096a1a95b089f7e5ec3f31a2f", "score": "0.5977258", "text": "initialize() {\r\n\r\n // get current lang\r\n var currentLang = session.get( 'settings', 'locale' ) || session.get( 'settings', 'lang' );\r\n\r\n // setup language\r\n var lang = Language.name[currentLang] ? currentLang : 'en-us';\r\n\r\n // get last visited page\r\n var oldPage = session.get( 'cache', 'page' );\r\n\r\n // check location hash\r\n if ( global.location.hash !== 'index' ) {\r\n if ( oldPage == 'settings' ) {\r\n\r\n // force user to start on index page\r\n oldPage = 'index';\r\n }\r\n\r\n // update location hash\r\n global.location.hash = oldPage;\r\n }\r\n\r\n // define app state\r\n var appState = {\r\n lang: lang, // current language\r\n full: true, // render full top view\r\n popup: false, // popup state\r\n loaded: true, // page loaded\r\n pageName: oldPage, // cached page name\r\n fadeInMs: 100, // fade in duration\r\n fadeOutMs: 10, // fade out duration\r\n popupType: true, // dialog type. true -> can be manually hidden, false -> cannot be manually hidden\r\n connection: session.get( 'app', 'connection' )\r\n };\r\n\r\n // update options\r\n assign( this, {appState: appState} );\r\n\r\n // create top view instance\r\n this.topView = new TopView( appState );\r\n }", "title": "" }, { "docid": "bd2146b1c79d85061d4b299c0e2904a1", "score": "0.5974323", "text": "function init(){\n\t\t// logToConsole();\n\t\t//create foundational element\n\t\tdocument.body._level=-2;\n\t\tdocument.body._content=document.body;\n\t\tdocument.body._placeChildElement=function(child){\n\t\t\tthis._content.appendChild(child._element);\n\t\t\tchild._outterElement=child._element;\n\t\t}\n\t\tgui.rootOrigin=new gui.Bin({},document.body);\n\t\tgui.rootOrigin._removeChild=function(child){\n\t\t\tgui.rootContainer._content.innerHTML='';\n\t\t\tgui.rootContainer._childmap={};\n\t\t}\n\t\tgui.rootContainer=new gui.Bin({df:{su:'px'}},gui.rootOrigin);\n\t\tgui.rootContainer._parent=null;\n\t\tgui.rootContainer._prop.id=null;\n\t\tdocument.body._item=gui.rootContainer;\n\t\twindow._item=gui.rootContainer;\n\t\tgui.rootContainer.error=gui.error;\n\t\tgui.rootContainer.require=gui.require;\n\t\tgui.rootContainer.agent=gui.agent;\n\t\tgui.rootContainer.template=gui.template;\n\t\t//connect to task\n\t\tif(task.userAction || task.start){\n\t\t\t//if task code is client-side script...\n\t\t\tconnectToTaskScript();\n\t\t}else if(task.location || location.params.l){\n\t\t\t// load url if one is supplied...\n\t\t\tgui(['Loading...']);\n\t\t\ttask.location=task.location || location.params.l;\n\t\t\tif(task.location.startsWith('ws://') || task.location.startsWith('wss://'))\n\t\t\t\tconnectToTaskWS();\n\t\t\telse\n\t\t\t\tconnectToTaskHTTP();\n\t\t}else{\n\t\t\tgui(['Hey there...',{id:'Intersted in the STAP?',v:\"http://stap7.github.io/\"}]);\n\t\t}\n\t}", "title": "" }, { "docid": "b7b839be4c122e21a0b08e288897d52f", "score": "0.5953216", "text": "function init() {\n\t// grab all of the project buttons\n\tprojButtons = document.querySelectorAll('.projButton');\n\t// grab the project info pane and overlay\n\tprojInfo = document.querySelector('.projectContainer');\n\t// grab the page header so we can modiy its text\n\tpageHeader = document.querySelector(\"#pageTitle h1\");\n\t\n\t// and add a callback for each project button to load their respective page\n\tfor (var i = 0; i < projButtons.length; ++i) {\n\t\t\n\t\t// grab href and use it to set background image\n\t\tvar href = projButtons[i].getAttribute('data-href').replace(new RegExp(\" \", 'g'), \"\");\n\t\tprojButtons[i].firstChild.nextSibling.style.backgroundImage = \"url('../media/\" + href + \"/tile.png')\";\n\t\t\t\n\t\t// make each tile load its respective content\n\t\tprojButtons[i].addEventListener('click', function(e) {\n\t\t\tvar href = e.target.getAttribute('data-href');\n\t\t\tloadPage(href);\n\t\t});\n\t}\n}", "title": "" }, { "docid": "e7343c2ef89be4df71a9043d23020163", "score": "0.5940014", "text": "constructor(){\n\t\tlet bar = new MainBar();\n\t\tlet content1 = new Content();\n\t\tlet content2 = new Content();\n\t\tdocument.body.appendChild(bar.get());\n\t\tdocument.body.appendChild(content1.get());\n\t\tdocument.body.appendChild(content2.get());\n\t}", "title": "" }, { "docid": "09b99226ab5346267f776db9d36532ec", "score": "0.5937944", "text": "init() {\n // bind events\n this.bindEvents();\n }", "title": "" }, { "docid": "09b99226ab5346267f776db9d36532ec", "score": "0.5937944", "text": "init() {\n // bind events\n this.bindEvents();\n }", "title": "" }, { "docid": "bb31c577e51cacb4bce457b67d61ed45", "score": "0.59349066", "text": "function NavContainer($injector) {\n\t 'use strict';\n\n\t var self = this;\n\n\t var ElementManager = $injector.get('ElementManager');\n\n\t var Div = $injector.get('Div');\n\t var DivOptions = $injector.get('DivOptions');\n\t ElementManager.register('Div', Div);\n\n\t var StyleOptions = $injector.get('StyleOptions');\n\n\t /* ****************************************\n\t * Navigation Container\n\t **************************************** */\n\t var navContainerOptions = new DivOptions();\n\t var navContainerStyle = new StyleOptions();\n\t navContainerStyle\n\t .set('background-color', 'white');\n\t navContainerOptions\n\t .setStyle(navContainerStyle);\n\n\t self.component = ElementManager.construct('Div', navContainerOptions);\n\t self.new = function() {\n\t return ElementManager.construct('Div', navContainerOptions);\n\t };\n\t}", "title": "" }, { "docid": "59d3beeaa84f482085e491e2542c80f9", "score": "0.5927051", "text": "constructor() {\n\t\t//\n\t}", "title": "" }, { "docid": "9da9669b484ae7f45a35aaeda8c88303", "score": "0.5919718", "text": "constructor(renderer) {\n super(renderer);\n this.reflectionTemplate = (pageEvent) => {\n return this.getRenderContext(pageEvent).reflectionTemplate(pageEvent);\n };\n this.indexTemplate = (pageEvent) => {\n return this.getRenderContext(pageEvent).indexTemplate(pageEvent);\n };\n this.defaultLayoutTemplate = (pageEvent, template) => {\n return this.getRenderContext(pageEvent).defaultLayout(template, pageEvent);\n };\n /**\n * Mappings of reflections kinds to templates used by this theme.\n */\n this.mappings = [\n {\n kind: [models_1.ReflectionKind.Class],\n directory: \"classes\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.Interface],\n directory: \"interfaces\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.Enum],\n directory: \"enums\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.Namespace, models_1.ReflectionKind.Module],\n directory: \"modules\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.TypeAlias],\n directory: \"types\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.Function],\n directory: \"functions\",\n template: this.reflectionTemplate,\n },\n {\n kind: [models_1.ReflectionKind.Variable],\n directory: \"variables\",\n template: this.reflectionTemplate,\n },\n ];\n this.markedPlugin = renderer.getComponent(\"marked\");\n }", "title": "" }, { "docid": "a2e32eede861f4906b4481018560bd06", "score": "0.59001786", "text": "constructor() {\r\n /*\r\n * Runs anytime a new instance is created (in HTML or JS).\r\n * The construtor is a good place to create shadow DOM, though you should\r\n * avoid touching any attributes or light DOM children as they may not\r\n * be available yet.\r\n */\r\n super();\r\n \r\n this.attachShadow({mode: 'open'});\r\n this.shadowRoot.appendChild(template.content.cloneNode(true));\r\n \r\n /**\r\n * The wrapper element enclosing the slides.\r\n * @type {HTMLElement}\r\n * @private\r\n */\r\n this._externalWrapper =\r\n this._getShadowElementById(IDS.CAROUSEL.WRAPPER_EXTERNAL);\r\n \r\n /**\r\n * The internal wrapper element (responsible for the slides layout\r\n * and for sliding).\r\n * @type {HTMLElement}\r\n * @private\r\n */\r\n this._slidesWrapper =\r\n this._getShadowElementById(IDS.CAROUSEL.WRAPPER_SLIDES);\r\n \r\n /**\r\n * The slot where the slides are injected into.\r\n * @type {HTMLSlotElement}\r\n * @private\r\n */\r\n this._slidesSlot = this._getShadowElementById(IDS.CAROUSEL.SLOT_SLIDES);\r\n \r\n /**\r\n * The slot where the aria-live element is injected into.\r\n * @type {HTMLSlotElement}\r\n * @private\r\n */\r\n this._ariaSlot = this._getShadowElementById(IDS.CAROUSEL.SLOT_ARIA);\r\n \r\n /**\r\n * The slot where the pagination indicators are injected into.\r\n * @type {HTMLSlotElement}\r\n * @private\r\n */\r\n this._paginationSlot =\r\n this._getShadowElementById(IDS.CAROUSEL.SLOT_PAGINATION);\r\n \r\n /**\r\n * Array of pagination indicators.\r\n * @type {Array<HTMLElement>}\r\n * @private\r\n */\r\n this._paginationIndicators = [];\r\n \r\n /**\r\n * The slot where the navigation previous/next buttons are injected into.\r\n * @type {HTMLSlotElement}\r\n * @private\r\n */\r\n this._navigationSlot =\r\n this._getShadowElementById(IDS.CAROUSEL.SLOT_NAVIGATION);\r\n \r\n /**\r\n * The navigation `previous` button.\r\n * @type {HTMLElement|undefined}\r\n * @private\r\n */\r\n this._prevButton = undefined;\r\n \r\n /**\r\n * The navigation `next` button.\r\n * @type {HTMLElement|undefined}\r\n * @private\r\n */\r\n this._nextButton = undefined;\r\n \r\n /**\r\n * The array of slides, i.e. the children of this._slidesSlot.\r\n * @type {Array<SlideInfo>}\r\n * @private\r\n */\r\n this._slides = [];\r\n \r\n /**\r\n * The index of the the last view.\r\n * @type {number}\r\n * @private\r\n */\r\n this._lastViewIndex = -1;\r\n \r\n /**\r\n * Whether the first/previous slide should infinite loop\r\n * @type {boolean}\r\n * @private\r\n */\r\n this._infiniteLoop = false;\r\n \r\n /**\r\n * An internal index representing the \"wrapAround\" iteration about the\r\n * selected index. If _infiniteLoop is false, its value doesn't change.\r\n * @type {number}\r\n * @private\r\n */\r\n this._selectedIteration = 0;\r\n \r\n /**\r\n * An internal index keeping track of the previous value for the layout\r\n * index. Useful for understanding which slides need to be moved.Gets\r\n * updated every time `selected` changes.\r\n * @type {number}\r\n * @private\r\n */\r\n this._previousEffectiveLayoutIndex = 0;\r\n \r\n /**\r\n * The width of this._slidesWrapper (in px). Derived from CSS.\r\n * @type {number}\r\n * @private\r\n */\r\n this._wrapperWidth = 0;\r\n \r\n /**\r\n * The width of the gap between each slide (in px). Derived from CSS.\r\n * @type {number}\r\n * @private\r\n */\r\n this._slidesGap = 0;\r\n \r\n /**\r\n * The width of each individual slide (in px). Computed mathematically\r\n * from other properties.\r\n * @type {number}\r\n * @private\r\n */\r\n this._slidesWidth = 0;\r\n \r\n /**\r\n * The translation on the X axis applied to this._slidesWrapper (in px).\r\n * @type {number}\r\n * @private\r\n */\r\n this._wrapperTranslateX = 0;\r\n \r\n /**\r\n * The reference to the timer used to debounce the `update()` function.\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._updateTimer = undefined;\r\n \r\n /**\r\n * True when CSS transitions are enabled.\r\n * @type {boolean}\r\n * @private\r\n */\r\n this._transitioning = false;\r\n \r\n // Touch / drag\r\n \r\n /**\r\n * Whether the user's pointer is currently being used to drag the slides.\r\n * @type {boolean}\r\n * @private\r\n */\r\n this._isPointerActive = false;\r\n \r\n /**\r\n * The ID of the active pointer that is dragging the slides.\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerId = undefined;\r\n \r\n /**\r\n * The coordinate on the X axis at which the active pointer first \"touched\".\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerFirstX = undefined;\r\n \r\n /**\r\n * The coordinate on the Y axis at which the active pointer first \"touched\".\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerFirstY = undefined;\r\n \r\n /**\r\n * The coordinate on the X axis used to the set the wrapper's translation\r\n * during the last frame.\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerLastX = undefined;\r\n \r\n /**\r\n * The coordinate on the Y axis used to the set the wrapper's translation\r\n * during the last frame.\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerLastY = undefined;\r\n \r\n /**\r\n * The coordinate on the X axis at which the active pointer last \"touched\".\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerCurrentX = undefined;\r\n \r\n /**\r\n * The coordinate on the Y axis at which the active pointer last \"touched\".\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._pointerCurrentY = undefined;\r\n \r\n /**\r\n * Updated during pointer events.\r\n * @type {number|undefined}\r\n * @private\r\n */\r\n this._lastDraggedLayoutIndex = undefined;\r\n \r\n /**\r\n * Array containining the translation value assumed by the slidesWrapper in\r\n * the last 100ms. Used to compute the starting velocity when decelerating.\r\n * @type {Array<number>}\r\n * @private\r\n */\r\n this._trackingPoints = [];\r\n \r\n /**\r\n * Flag used to limit the number of udpates to the slidesWrapper to once\r\n * per frame (the pointer events may fire more frequently than that).\r\n * @type {boolean}\r\n * @private\r\n */\r\n this._dragTicking = false;\r\n \r\n /**\r\n * The upper bound for the initial value of the velocity when decelerating.\r\n * @type {number}\r\n * @private\r\n */\r\n this._maxDecelVelocity = 50;\r\n \r\n /**\r\n * The lower bound for the initial value of the velocity when decelerating.\r\n * @type {number}\r\n * @private\r\n */\r\n this._minDecelVelocity = 20;\r\n \r\n /**\r\n * The value for the friction strength used when decelerating.\r\n * 0 < friction < 1.\r\n * @type {number}\r\n * @private\r\n */\r\n this._friction = 0.7;\r\n \r\n /**\r\n * The value for the attraction strength used when decelerating.\r\n * @type {number}\r\n * @private\r\n */\r\n this._attraction = 0.04;\r\n \r\n /**\r\n * The value of the deceleration velocity (in px).\r\n * @type {number}\r\n * @private\r\n */\r\n this._decelVelocity = 0;\r\n \r\n /**\r\n * Whether the slider is currently decelerating towards its final point\r\n * after being dragged by the user.\r\n * @type {boolean}\r\n * @private\r\n *\r\n */\r\n this._decelerating = false;\r\n }", "title": "" }, { "docid": "b649d09c69b89d2cc2ae3279595ea523", "score": "0.5896666", "text": "constructor() {\n super('Layout');\n }", "title": "" }, { "docid": "fb765a7720992e5068c49baf4785691c", "score": "0.5893989", "text": "function _createScrollContainer() {\n this.scrollContainer = new ScrollContainer(this.options.scrollContainer);\n this._items = [];\n this.scrollContainer.sequenceFrom([]);\n }", "title": "" }, { "docid": "bd34e96760390ec40c8e42fbce942713", "score": "0.5892913", "text": "constructor() {\n super();\n this.state = {\n navContainer: \"nav-container\",\n hiContainer: \"hi-container\",\n kit: \"kit\",\n currentPageContainer: \"current-page-container\",\n linkContainer: \"link-container\"\n };\n }", "title": "" }, { "docid": "97c8de895156df2310470e072cb2fa8e", "score": "0.5889668", "text": "function prepareDom(){\r\n container.css({\r\n 'height': '100%',\r\n 'position': 'relative'\r\n });\r\n\r\n //adding a class to recognize the container internally in the code\r\n container.addClass(WRAPPER);\r\n $('html').addClass(ENABLED);\r\n\r\n //due to https://github.com/alvarotrigo/fullPage.js/issues/1502\r\n windowsHeight = $window.height();\r\n\r\n container.removeClass(DESTROYED); //in case it was destroyed before initilizing it again\r\n\r\n addInternalSelectors();\r\n\r\n //styling the sections / slides / menu\r\n $(SECTION_SEL).each(function(index){\r\n var section = $(this);\r\n var slides = section.find(SLIDE_SEL);\r\n var numSlides = slides.length;\r\n\r\n styleSection(section, index);\r\n styleMenu(section, index);\r\n\r\n // if there's any slide\r\n if (numSlides > 0) {\r\n styleSlides(section, slides, numSlides);\r\n }else{\r\n if(options.verticalCentered){\r\n addTableClass(section);\r\n }\r\n }\r\n });\r\n\r\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\r\n if(options.fixedElements && options.css3){\r\n $(options.fixedElements).appendTo($body);\r\n }\r\n\r\n //vertical centered of the navigation + active bullet\r\n if(options.navigation){\r\n addVerticalNavigation();\r\n }\r\n\r\n enableYoutubeAPI();\r\n enableVidemoAPI();\r\n\r\n if(options.fadingEffect && FP.fadingEffect){\r\n FP.fadingEffect.apply();\r\n }\r\n\r\n if(options.scrollOverflow){\r\n if(document.readyState === 'complete'){\r\n createScrollBarHandler();\r\n }\r\n //after DOM and images are loaded\r\n $window.on('load', createScrollBarHandler);\r\n }else{\r\n afterRenderActions();\r\n }\r\n }", "title": "" }, { "docid": "5fdcbf5002dd2663bc5e7bd5240a5401", "score": "0.5884577", "text": "function prepareDom(){\n container.css({\n 'height': '100%',\n 'position': 'relative'\n });\n\n //adding a class to recognize the container internally in the code\n container.addClass(WRAPPER);\n $('html').addClass(ENABLED);\n\n //due to https://github.com/alvarotrigo/fullPage.js/issues/1502\n windowsHeight = $window.height();\n\n container.removeClass(DESTROYED); //in case it was destroyed before initilizing it again\n\n addInternalSelectors();\n\n //styling the sections / slides / menu\n $(SECTION_SEL).each(function(index){\n var section = $(this);\n var slides = section.find(SLIDE_SEL);\n var numSlides = slides.length;\n\n styleSection(section, index);\n styleMenu(section, index);\n\n // if there's any slide\n if (numSlides > 0) {\n styleSlides(section, slides, numSlides);\n }else{\n if(options.verticalCentered){\n addTableClass(section);\n }\n }\n });\n\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\n if(options.fixedElements && options.css3){\n $(options.fixedElements).appendTo($body);\n }\n\n //vertical centered of the navigation + active bullet\n if(options.navigation){\n addVerticalNavigation();\n }\n\n enableYoutubeAPI();\n\n if(options.scrollOverflow){\n if(document.readyState === 'complete'){\n createScrollBarHandler();\n }\n //after DOM and images are loaded\n $window.on('load', createScrollBarHandler);\n }else{\n afterRenderActions();\n }\n }", "title": "" }, { "docid": "a4bde329f6a57a9961f897043cd37960", "score": "0.588267", "text": "function TabsPage() {\n this.tab1Root = __WEBPACK_IMPORTED_MODULE_1__services_services__[\"a\" /* ServicesPage */];\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.5876874", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.5876874", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.5876874", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" }, { "docid": "f2b8762ba6a662b1e64c6ca89161dee6", "score": "0.5857924", "text": "init() {\n // Prints the first page of the app wuth the total mount of questions\n this.view.printFirstPage(this.questions.length);\n\n // Add all the necessary event listener and ties them with the app logic\n this.view.delegateListener('click', '#play', () => this.startGame());\n this.view.delegateListener('click', '#check-answer', event => this.checkAnswer(event));\n this.view.delegateListener('click', '#next', () => this.nextQuestion());\n }", "title": "" }, { "docid": "07cfc53fdd6583907c3a20a83149546a", "score": "0.58544314", "text": "constructor(props) {\n\t super(props);\n\t this.state = {\n\t pages: [{\n\t \ttitle: 'Home',\n\t \tlink: ''\n\t },{\n\t \ttitle: 'About',\n\t \tlink: ''\n\t },{\n\t \ttitle: 'Contact',\n\t \tlink: ''\n\t }]\n\t };\n\t }", "title": "" }, { "docid": "5c675aff0951ebe7447213595b61bd42", "score": "0.5854038", "text": "constructor() {\n // Required\n super();\n }", "title": "" }, { "docid": "e1045cdcf2dd277aee96b7dd8e498a0b", "score": "0.5852067", "text": "function PageFactory() {}", "title": "" }, { "docid": "4c2199e111344f1df95e6cb9db963308", "score": "0.58486784", "text": "function prepareDom(){\n container.css({\n 'height': '100%',\n 'position': 'relative'\n });\n\n //adding a class to recognize the container internally in the code\n container.addClass(WRAPPER);\n $('html').addClass(ENABLED);\n\n container.removeClass(DESTROYED); //in case it was destroyed before initilizing it again\n\n addInternalSelectors();\n\n //styling the sections / slides / menu\n $(SECTION_SEL).each(function(index){\n var section = $(this);\n var slides = section.find(SLIDE_SEL);\n var numSlides = slides.length;\n\n styleSection(section, index);\n styleMenu(section, index);\n\n // if there's any slide\n if (numSlides > 0) {\n styleSlides(section, slides, numSlides);\n }else{\n if(options.verticalCentered){\n addTableClass(section);\n }\n }\n });\n\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\n if(options.fixedElements && options.css3){\n $(options.fixedElements).appendTo($body);\n }\n\n //vertical centered of the navigation + active bullet\n if(options.navigation){\n addVerticalNavigation();\n }\n\n if(options.scrollOverflow){\n if(document.readyState === 'complete'){\n createSlimScrollingHandler();\n }\n //after DOM and images are loaded\n $window.on('load', createSlimScrollingHandler);\n }else{\n afterRenderActions();\n }\n }", "title": "" }, { "docid": "25fea6d980bc1ac0c8fd69c6a6f9aa0d", "score": "0.58486205", "text": "function About(){\n \n // 컴포넌트 생성\n /**\n * Build specific component */\n function buildComponent(){\n const aboutPage = buildElement('div', {'id': 'profile-about'}, [\n buildElement('div', {'id': 'profile-nav'}),\n buildElement('div', {'id': 'profile-contents'})\n ]);\n\n updateElement('root', {}, ['']);\n updateElement('root', {}, [aboutPage]);\n }\n // 이벤트 핸들러 연결\n function attachHandlers(){}\n\n // 하위 컴포넌트 생성\n /**\n * Render needed components for this page\n */\n function addComponents(){\n Nav();\n UserInfo();\n }\n\n /**\n * Process something after rendering page\n */\n function doSomethingAfterRendering(){\n const userInfo = JSON.parse(sessionStorage.getItem('userInfo'));\n if($(userInfo).url){\n updateElement('userInfo-profile-img', {'className': 'userInfo-profile-img userInfo-show-profileImg'}); // 프로필 사진 보여주기\n } \n }\n\n /**\n * initialize component when rendering on browser\n */\n function init(){\n buildComponent();\n attachHandlers();\n addComponents();\n doSomethingAfterRendering();\n }\n init(); // 컴포넌트 생성 + 이벤트핸들러 연결\n}", "title": "" }, { "docid": "98d257b6b879e3f4d98ef44cc3afa242", "score": "0.584737", "text": "function init() {\n\t\taddEventListeners();\n\t\trequestPage(currentPage);\n\t\trenderCategoryFilter();\n\t}", "title": "" }, { "docid": "92f040f3ed164eda70d75c86d256c7a1", "score": "0.5846053", "text": "function init() {\n initSections();\n initInventories();\n initActions();\n }", "title": "" }, { "docid": "8ad70e351ccd4ccffc7e77687f59be3a", "score": "0.58412296", "text": "function prepareDom() {\n container.css({\n height: \"100%\",\n position: \"relative\"\n });\n //adding a class to recognize the container internally in the code\n container.addClass(WRAPPER);\n $(\"html\").addClass(ENABLED);\n //due to https://github.com/alvarotrigo/fullPage.js/issues/1502\n windowsHeight = $window.height();\n container.removeClass(DESTROYED);\n //in case it was destroyed before initializing it again\n addInternalSelectors();\n //styling the sections / slides / menu\n $(SECTION_SEL).each(function(index) {\n var section = $(this);\n var slides = section.find(SLIDE_SEL);\n var numSlides = slides.length;\n styleSection(section, index);\n styleMenu(section, index);\n // if there's any slide\n if (numSlides > 0) {\n styleSlides(section, slides, numSlides);\n } else {\n if (options.verticalCentered) {\n addTableClass(section);\n }\n }\n });\n //fixed elements need to be moved out of the plugin container due to problems with CSS3.\n if (options.fixedElements && options.css3) {\n $(options.fixedElements).appendTo($body);\n }\n //vertical centered of the navigation + active bullet\n if (options.navigation) {\n addVerticalNavigation();\n }\n enableYoutubeAPI();\n if (options.scrollOverflow) {\n if (document.readyState === \"complete\") {\n createScrollBarHandler();\n }\n //after DOM and images are loaded\n $window.on(\"load\", createScrollBarHandler);\n } else {\n afterRenderActions();\n }\n }", "title": "" }, { "docid": "8851275d1536e99def78bc5e2d656e7f", "score": "0.5834321", "text": "constructor() {\n super();\n\n\n /**\n * Data for logo\n * @type {Object<string, string>}\n * @protected\n * @override\n */\n this.logo = {\n altText: '«Курсы Мела»',\n linkUrl: '/',\n imgUrl: '/static/images/n-common/b-sm-subheader/course-logo.svg'\n };\n\n\n /**\n * Links data\n * @type {Object<string, (string|Array|Object)>}\n * @protected\n * @override\n */\n this.listLinks = {\n opener: 'Все курсы',\n content: {\n items: []\n }\n };\n\n\n /**\n * Links data\n * @type {Object<string, string>}\n * @protected\n * @override\n */\n this.links = {\n nameL: 'Все курсы, кружки и секции',\n nameM: 'Все курсы',\n url: '/search'\n };\n\n\n /**\n * Data for search\n * @type {Object<string, string>}\n * @protected\n * @override\n */\n this.search = {\n placeholder: 'Район, метро, название курса',\n pageAlias: 'search'\n };\n }", "title": "" }, { "docid": "8937f83e1106c779103a79ac96f53809", "score": "0.5832174", "text": "function OptionsPage() {\n try {\n qx.Class.define(\"MHTools.OptionsPage\", {\n type: 'singleton',\n extend: webfrontend.gui.options.OptionsPage,\n construct: function() {\n console.log('Create MHTools.OptionsPage at Loot+Info');\n this.base(arguments);\n this.setLabel('MHTools');\n \n this.extendOptionsWindow();\n \n //Add Content\n var container = this.getContentContainer(); \n this.tabView = new qx.ui.tabview.TabView();\n container.add(this.tabView);//, {left:40, top:40});\n \n this.removeButtons();\n this.addPageAbout();\n console.log('MHTools: OptionsPage loaded.'); \n },\n statics: {\n VERSION: '1.0.0',\n AUTHOR: 'MrHIDEn',\n CLASS: 'OptionsPage'\n },\n members: {\n pageCreated: null,\n tabView: null,\n getTabView: function() {\n return this.tabView;\n },\n addPage: function(name) {\n var c = this.tabView.getChildren();\n this.tabView.remove(c[c.length-1]);//remove PageAbout\n var page = new qx.ui.tabview.Page(name);\n page.set({height:220});\n this.tabView.add(page);\n this.addPageAbout();\n return page;\n },\n addPageAbout: function() {\n var page = new qx.ui.tabview.Page(\"About\");\n page.set({height:220});\n this.tabView.add(page);\n page.setLayout(new qx.ui.layout.VBox());\n page.add(new qx.ui.basic.Label(\"<b>MHTools</b>\").set({rich: true}));//, textColor: red\n page.add(new qx.ui.basic.Label(\"Created: <span style='color:blue'>2012</span>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"Author: <span style='color:blue'><b>MrHIDEn</b></span>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"Email: <a href='mailto:[email protected]'>[email protected]</a>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"Public: <a href='https://userscripts.org/users/471241'>userscripts.org - MrHIDEn</a></br> \").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"<b>Scripts:</b>\").set({rich: true,marginTop:5}));\n page.add(new qx.ui.basic.Label(\"<a href='https://userscripts.org/scripts/show/137978'>Aviable Loot +Info</a>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"<a href='https://userscripts.org/scripts/show/135806'>Shortcuts +Coords</a>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"<b>Shorten Scripts:</b>\").set({rich: true,marginTop:5}));\n page.add(new qx.ui.basic.Label(\"<a href='https://userscripts.org/scripts/show/136743'>Coords 500:500</a>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"<a href='https://userscripts.org/scripts/show/145657'>Pure Loot summary</a>\").set({rich: true,marginLeft:10}));\n page.add(new qx.ui.basic.Label(\"<a href='https://userscripts.org/scripts/show/137955'>Login x9 + Logout</a>\").set({rich: true,marginLeft:10}));\n },\n removeButtons: function() {\n this.getChildren()[2].removeAll();\n },\n getContentContainer: function() {\n if(!this.contentCnt) {\n this.contentCnt = this.getChildren()[0].getChildren()[0];\n }\n return this.contentCnt;\n },\n extendOptionsWindow: function() {\n var self = this;\n if(!webfrontend.gui.options.OptionsWidget.prototype.baseShow) {\n webfrontend.gui.options.OptionsWidget.prototype.baseShow = webfrontend.gui.options.OptionsWidget.prototype.show;\n }\n webfrontend.gui.options.OptionsWidget.prototype.show = function() {\n try {\n var tabView = this.clientArea.getChildren()[0];\n tabView.add(self);\n webfrontend.gui.options.OptionsWidget.prototype.show = webfrontend.gui.options.OptionsWidget.prototype.baseShow;\n self.pageCreated = true;\n this.show();\n } catch (e) { \n console.warn(\"MHTools.OptionsPage.extendOptionsWindow: \", e);\n }\n };\n }\n }\n });\n } catch (e) {\n console.warn(\"qx.Class.define(MHTools.OptionsPage: \", e); \n }\n }", "title": "" }, { "docid": "e3facdfaa11728a08ed3dc32b2e941a3", "score": "0.5830579", "text": "constructor() {\n super();\n this.render();\n }", "title": "" }, { "docid": "e3facdfaa11728a08ed3dc32b2e941a3", "score": "0.5830579", "text": "constructor() {\n super();\n this.render();\n }", "title": "" }, { "docid": "e3facdfaa11728a08ed3dc32b2e941a3", "score": "0.5830579", "text": "constructor() {\n super();\n this.render();\n }", "title": "" }, { "docid": "e3facdfaa11728a08ed3dc32b2e941a3", "score": "0.5830579", "text": "constructor() {\n super();\n this.render();\n }", "title": "" }, { "docid": "4f6b5cf61b051963a077ebf88ef3f863", "score": "0.5826355", "text": "function App(initialPageType, loader)\n {\n this.initialPageType = initialPageType;\n this.minTimeAnimation = 1000;\n // Kind of page cache\n this.pagesLoaded = {'main': '', 'annex': ''};\n // Expected : object with show and hide methods.\n this.loader = loader;\n this._initEvents();\n }", "title": "" } ]
881540584c8fc45dafa6ac2dc2b3695b
Retrieves the stored Tasks from 'localstorage' values
[ { "docid": "6e9cc981d1fc3b01212385bcba07b393", "score": "0.0", "text": "function retrieve()\n{\nvar key1=localStorage.key(0);\nvalue=localStorage[key1];\nvalue = value.split(\",\");\t\t\n\n}", "title": "" } ]
[ { "docid": "8c53a8e281fe69327f22ad799e784e1e", "score": "0.84157956", "text": "function getStoredTasks() {\n return jsonParse(localStorage.getItem('tasks'));\n}", "title": "" }, { "docid": "9fbaf4086aae57c649a20f6cd8a3f7ea", "score": "0.8237702", "text": "function getTasksLocally() {\n var strTasks = localStorage.getItem(\"tasks\");\n tasks = JSON.parse(strTasks);\n if(!tasks) {\n tasks = [];\n }\n}", "title": "" }, { "docid": "e980d5a1c458f7389480d266b29868d8", "score": "0.81424576", "text": "function getTasks() {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n if (!tasks) {\n tasks = [];\n }\n return tasks;\n }", "title": "" }, { "docid": "9f080db5e766ff070e6f9a9a3671546d", "score": "0.8140186", "text": "function getLocalStorage() {\n return JSON.parse(localStorage.getItem(\"myTasks\")) || [];\n} // add to local storage", "title": "" }, { "docid": "ee2a4eb532a6d2c18433e372a9bac575", "score": "0.809663", "text": "function getTasksFromLocalStorage() {\n return localStorage.getItem('tasks') === null ? [] : JSON.parse(localStorage.getItem('tasks'));\n }", "title": "" }, { "docid": "52c1b946f4c8489567eb1aade5a11561", "score": "0.7988174", "text": "function getTasks(){\r\n let taskList;\r\n if (localStorage.getItem('tasks')===null){\r\n taskList = [];\r\n }\r\n else{\r\n taskList = JSON.parse(localStorage.getItem('tasks'));\r\n }\r\n return taskList;\r\n}", "title": "" }, { "docid": "242012bb3c1ded6f63e5bee3a75eb181", "score": "0.79371476", "text": "function getTasks() {\n const data = localStorage.getItem('tasks');\n let parsed_data = [];\n if (data) {\n parsed_data = JSON.parse(data);\n }\n return parsed_data;\n}", "title": "" }, { "docid": "629a9be98453c9e2db979fe2c0a58de3", "score": "0.7934615", "text": "function getTasksFromLs() {\n const tasksData = JSON.parse(localStorage.getItem('tasksData'));\n return localStorage.getItem('tasksData') !== null ? tasksData : [];\n}", "title": "" }, { "docid": "bdd0bd80ee1d21a229364cf96a10593e", "score": "0.78676456", "text": "function getTasks() {\n\tlet tasks;\n\n\tif (localStorage.getItem('tasks') === null) {\n\t\ttasks = [];\n\t} else {\n\t\ttasks = JSON.parse(localStorage.getItem('tasks'));\n\t}\n\n\treturn tasks;\n}", "title": "" }, { "docid": "77ffc294e6f71715dabd84b399fa591d", "score": "0.78567934", "text": "function getTaskListFromLocalStorage() {\n return JSON.parse(localStorage.getItem(\"TaskList\")) || [];\n}", "title": "" }, { "docid": "e14792d0818bbcd224e5a99a2f2d9f92", "score": "0.7751475", "text": "function getSavedTasks() {\n const tasksJSON = localStorage.getItem(\"tasks\");\n\n try {\n return tasksJSON ? JSON.parse(tasksJSON) : [];\n } catch (e) {\n return [];\n }\n}", "title": "" }, { "docid": "958bdf1125742290f139ddff20a897b5", "score": "0.7710795", "text": "getTaskLocalStorage(key, taskNames){\n if (localStorage.getItem(key) === null) {\n localStorage.setItem(key, JSON.stringify(taskNames));\n } else {\n taskNames = JSON.parse(localStorage.getItem(key));\n }\n return taskNames;\n }", "title": "" }, { "docid": "1954db930bceef4737bc2667fd0d99d7", "score": "0.7421734", "text": "function getTasks() {\n // var storedTaskNine = localStorage.getItem(\"nineAM\");\n // console.log(storedTaskNine);\n\n // if (storedTaskNine !== null) {\n $(\"#taskNine\").text(localStorage.getItem(\"taskNine\"));\n $(\"#taskTen\").text(localStorage.getItem(\"taskTen\"));\n $(\"#taskEleven\").text(localStorage.getItem(\"taskEleven\"));\n // }\n}", "title": "" }, { "docid": "312fa414bab4203b0d86dfcf6c839833", "score": "0.73778373", "text": "function getTasks() {\n // Set variable for getting an array of tasks\n let Tasks;\n\n // if localstorage is empty, create a new array else print the list in JSON\n if (localStorage.getItem('Tasks') === null) {\n Tasks = [];\n } else {\n Tasks = JSON.parse(localStorage.getItem('Tasks'));\n }\n\n // Loop through the task items\n\n Tasks.forEach(function(task) {\n\n // Create List Item\n\n const listItem = document.createElement('li');\n\n // Add Collection Item class to newly created list item\n\n listItem.className = 'collection-item';\n\n // Create Text Node and append to listItem\n\n listItem.appendChild(document.createTextNode(task));\n\n // Create new link element\n\n const link = document.createElement('a');\n\n // Add Link class\n\n link.className = 'delete-item secondary-content';\n\n // Add link html\n\n link.innerHTML = \"<i class='fa fa-remove'></i>\"\n\n // Append Link to listItem\n\n listItem.appendChild(link);\n\n // Append listItem to List\n\n taskList.appendChild(listItem);\n });\n }", "title": "" }, { "docid": "3adebf605fafeba70414368c5baf24c4", "score": "0.7357267", "text": "function fetchAllTasks(){\n let arr=JSON.parse(localStorage.getItem('allTasks'));\n arr = arr === null ? arr=[] : arr; \n return arr;\n}", "title": "" }, { "docid": "59199ad59059b1ca90068c71c31bda28", "score": "0.7337847", "text": "function saveTasksLocally() {\n var strTasks = JSON.stringify(tasks);\n localStorage.setItem(\"tasks\", strTasks);\n}", "title": "" }, { "docid": "33084ad0e26b2ea515b18342dc03e221", "score": "0.7330109", "text": "function renderTasks() {\n\n var retrieveTasks = localStorage.getItem('task');\n console.log(retrieveTasks);\n}", "title": "" }, { "docid": "697de86f06c15b843cc37b532067282f", "score": "0.72976786", "text": "function getTasks(){\n let tasks;\n // check local storage for any tasks\n if (localStorage.getItem('tasks') === null){\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n \n // loop through each task in the array\n tasks.forEach(function (task){\n const li = document.createElement('li');\n li.className = 'collection-item';\n li.appendChild(document.createTextNode(task));\n const link = document.createElement('a');\n link.className = 'delete-item secondary-content';\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n li.appendChild(link);\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "ae8d1455663721cbf16f0d3d2aab2931", "score": "0.7295934", "text": "function tasksFromLocalStorage() {\r\n //checking and displaying any tasks saved in the local storage\r\n let savedTasksString = window.localStorage.getItem(\"tasks\");\r\n //checking if the savedTasksString is null (would occur if no tasks saved)\r\n if (savedTasksString != null) {\r\n //sperating the string into an array\r\n let savedTasksArray = savedTasksString.split(\"|\");\r\n //walking through the array and adding each task (first and last entry will not be added as they are empty strings)\r\n for (var i = 0; i < savedTasksArray.length; i++) {\r\n taskSubmit(savedTasksArray[i]);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "79f0e27ab388d26c97861fcf06271092", "score": "0.7295823", "text": "function getNotesFromLocalStorage() {\n let tasks;\n let getFromLs = localStorage.getItem(\"tasks\");\n if (getFromLs === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(getFromLs);\n }\n return tasks;\n}", "title": "" }, { "docid": "e770ca15af6ae08cddc58afe916e6c7b", "score": "0.72809166", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.forEach(task => {\n createTaskComponent(task);\n });\n}", "title": "" }, { "docid": "a89b34cae7d8c015de9e0bdf482134e9", "score": "0.7255408", "text": "function getTaskFromLocalStorage() {\n let tasks;\n \n if (localStorage.getItem(\"tasks\") === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"))\n }\n\n //loop through task array to display available todo items\n tasks.forEach((task) => {\n // Create li element\n const li = document.createElement('li');\n // Add class\n li.className = 'collection-item';\n // Create text node and append to li\n li.appendChild(document.createTextNode(task));\n // Create new link element\n const link = document.createElement('a');\n // Add class\n link.className = 'delete-item secondary-content';\n // Add icon html\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n // Append the link to li\n li.appendChild(link);\n\n // Append li to ul\n taskList.appendChild(li);\n })\n}", "title": "" }, { "docid": "ccb1fbeeaa718dee3888e23ec6337f09", "score": "0.7247781", "text": "function getTasks() {\n\tlet tasks;\n\t// Check if local storage (LS) is empty\n\tif (localStorage.getItem('tasks') === null) {\n\t\ttasks = [];\n\t} else { // If there are tasks, grab them and store them as an array in the \"tasks\" variable\n\t\ttasks = JSON.parse(localStorage.getItem('tasks'));\n\t}\n\n\ttasks.forEach(function(task) { // Add said tasks to the Task List (if there's any)\n\t\t// Create li element\n\t\tconst li = document.createElement('li');\n\t\t// Add class\n\t\tli.className = 'collection-item';\n\t\t// Create text node and append to li\n\t\tli.appendChild(document.createTextNode(task));\n\t\t// Create new link element\n\t\tconst link = document.createElement('a');\n\t\t// Add class\n\t\tlink.className = 'delete-item secondary-content';\n\t\t// Add icon html\n\t\tlink.innerHTML = '<i class = \"fa fa-remove\"></i>';\n\t\t// Append the link to li\n\t\tli.appendChild(link);\n\t\t// Append li to ul\n\t\ttaskList.appendChild(li);\n\t});\n}", "title": "" }, { "docid": "f98661f77c6ee71f6714b047ec0a8d6f", "score": "0.72238046", "text": "function getTasks() {\n let tasks = getTasksFromLocalStorage();\n\n tasks.forEach(function(task) {\n createTaskElement(task);\n });\n}", "title": "" }, { "docid": "6cd795a53dad8e8e8122f120bd9bd727", "score": "0.7220628", "text": "function getTasks(){\n let tasks;\n // checks if the value of 'tasks' in local storage is empty\n if(localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n // Converts JSON String to an Object/Array\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n // Generate all the Task Items from the Local Storage\n tasks.forEach(function(task) {\n // Create an element\n const li = document.createElement('li');\n // Add Class\n li.className = 'collection-item';\n // Create text node and append to li\n li.appendChild(document.createTextNode(task));\n // Create a new link element\n const link = document.createElement('a');\n // Set href attribute of link\n link.setAttribute('href', '#!');\n // Add Class to link\n link.className = 'delete-item secondary-content';\n // Add Icon\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n // Append the link to li\n li.appendChild(link);\n // Append li to ul\n taskList.appendChild(li);\n }); \n}", "title": "" }, { "docid": "d987c094aee8bd98ecf96852cb1b481a", "score": "0.7203022", "text": "function getTask(){\n\n for(i=0;i<localStorage.length;i++){\n \n let key = localStorage.key(i);\n\n let tasks = JSON.parse(window.localStorage.getItem(key));\n console.log(key);\n document.getElementById(tasks.timeSlot).value = tasks.inputStored;\n\n }\n}", "title": "" }, { "docid": "7416710e6e62eaf34db5f99dfa9bb318", "score": "0.718429", "text": "load() {\n // check if any tasks are save in localStorage\n if (localStorage.getItem('tasks')) {\n \n // get the JSON string of tasks in localStorage\n const taskJson = localStorage.getItem('tasks');\n\n // convert it to an array and store it in our TaskManager\n this.tasks = JSON.parse(taskJson);\n }\n\n // check if the currentId is saved in localStorage\n if (localStorage.getItem('currentId')) {\n // get the currentId string in localStorage\n \n const currentId = localStorage.getItem('currentId');\n\n // convert the currentId to a number and store it in our TaskManager\n this.currentId = Number(currentId);\n }\n }", "title": "" }, { "docid": "3e4a9ac650ab1029a981defb7b4e3655", "score": "0.71646386", "text": "function returnToDo(){\n var myTasks = [];\n var myTasksTemp = localStorage.getItem('myData');\n if(myTasksTemp != null){\n myTasks = JSON.parse(myTasksTemp);\n }\n return myTasks;\n}", "title": "" }, { "docid": "ae9b8722d8d33bbc2e2c02e69c03881f", "score": "0.7164003", "text": "function loadTasks() {\n let savedTasks = localStorage.getItem(\"tasks\");\n\n tasks = [];\n\n if (!savedTasks) {\n return false;\n }\n\n savedTasks = JSON.parse(savedTasks);\n\n for (let i = 0; i < savedTasks.length; ++i) {\n createTaskEl(savedTasks[i]);\n }\n}", "title": "" }, { "docid": "c301571a90b3bca3211dc8557d1ae67e", "score": "0.71572477", "text": "load() {\n if (localStorage.getItem(\"tasks\")) {\n const tasksJson = localStorage.getItem(\"tasks\");\n this.tasks = JSON.parse(tasksJson);\n }\n \n if (localStorage.getItem(\"currentId\")) {\n const currentId = localStorage.getItem(\"currentId\");\n this.currentId = String(currentId);\n\n }\n }", "title": "" }, { "docid": "3137e63d730eeef6d44dae4464214d0f", "score": "0.7145653", "text": "function loadAllTasksFromLS() {\r\n // Check if tasks are present in LS\r\n let tasks = localStorage.getItem(\"tasks\");\r\n if (!tasks) {\r\n return;\r\n }\r\n let tasksArr = JSON.parse(localStorage.getItem(\"tasks\"));\r\n\r\n tasksArr.forEach((item) => createItem(item));\r\n}", "title": "" }, { "docid": "791d09608e2a299023caa1176e09145c", "score": "0.7143488", "text": "function getTasks(){\n let tasks;\n \n if(localStorage.getItem('tasks') === null) {\n tasks = []\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'))\n }\n tasks.forEach(function(item){\n let li = document.createElement('li')\n li.className = 'collection-item'\n li.appendChild(document.createTextNode(item))\n let a = document.createElement('a')\n a.className = 'delete-item secondary-content'\n let i = document.createElement('i')\n i.className = ' fa fa-remove'\n a.appendChild(i)\n li.appendChild(a)\n taskList.appendChild(li)\n })\n}", "title": "" }, { "docid": "ca7e2fd4ef000063e7dc8183f789da4e", "score": "0.7141654", "text": "function getTasks(date) {\n //set de huidige taken in localstorage\n localStorage.setItem(toDate(chosenDate), JSON.stringify($scope.Tasks))\n $scope.Tasks = [];\n $scope.$applyAsync();\n chosenDate = date;\n //verkrijg de nieuwe taken uit de localstorage per datum\n var tasksByDate = JSON.parse(localStorage.getItem(toDate(date)));\n if (tasksByDate != null)\n {\n $scope.Tasks = tasksByDate\n }\n else\n {\n $scope.Tasks = [];\n }\n\n }", "title": "" }, { "docid": "7a644524e2ce8b86c1e4dc9814084f66", "score": "0.713853", "text": "function getTask(){\n \n \n let tasks;\n\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n }\n\n else{\n \n tasks = JSON.parse(localStorage.getItem('tasks'));\n\n }\n\n tasks.forEach(task =>{\n\n let li = document.createElement('li');\n\n li.appendChild(document.createTextNode(task + \" \"));\n let aTag = document.createElement(\"a\");\n aTag.setAttribute(\"href\", \"#\");\n aTag.appendChild(document.createTextNode(\"x\"));\n li.appendChild(aTag);\n taskList.appendChild(li);\n \n });\n}", "title": "" }, { "docid": "3494510d575c9143077af9022bb9a60a", "score": "0.7110555", "text": "retrieveTasks(cat) {\n\t\t\n\t\treturn JSON.parse(localStorage.getItem(cat));\t\t\n\t}", "title": "" }, { "docid": "95a6823b3289bb9bd9fb949ca5ef2a51", "score": "0.71091425", "text": "function storeTaskToLocalStorage(value){\n let tasks;\n if(localStorage.getItem('tasks') === null){\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.push(value);\n\n localStorage.setItem('tasks',JSON.stringify(tasks));\n}", "title": "" }, { "docid": "5fcf74dcadca69e471d34ca2ced59a3d", "score": "0.71037406", "text": "function getTasks() {\r\n let tasks;\r\n if(localStorage.getItem('tasks') === null){\r\n tasks = [];\r\n } else {\r\n tasks = JSON.parse(localStorage.getItem('tasks'));\r\n }\r\n tasks.forEach(function(task){\r\n const li = document.createElement('li');\r\n li.className = 'collection-item';\r\n li.appendChild(document.createTextNode(task));\r\n const link = document.createElement('a');\r\n link.className = 'delete-item secondary-content';\r\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\r\n li.appendChild(link);\r\n taskList.appendChild(li);\r\n })\r\n}", "title": "" }, { "docid": "4ecc25af932b7325cabb2eabfb4f1522", "score": "0.7087607", "text": "function saveTasks() {\n let str = JSON.stringify(tasks);\n localStorage.setItem(\"tasks\", str);\n}", "title": "" }, { "docid": "3b02822d47ce812e92530529fe2c88c5", "score": "0.7086304", "text": "function loadTaskList(){\n var schedule = JSON.parse(localStorage.getItem('schedule'));\n \n if (!schedule) {\n console.log('nothing in stoarge');\n // Object to store today's tasks and method to save tasks\n schedule = {\n date: '',\n tasks: ['', '', '', '', '', '', '', '', '', ''],\n };\n }\n schedule.date = dateToday;\n return schedule;\n }", "title": "" }, { "docid": "9c746e40715fa372cc5b0256b825a133", "score": "0.7085719", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n // 3.0.1 Display them to UI\n tasks.forEach((task) => {\n const li = document.createElement('li');\n li.className = 'collection-item';\n li.appendChild(document.createTextNode(task));\n const link = document.createElement('a');\n link.className = 'delete-item secondary-content';\n link.innerHTML = '<i class=\"fas fa-eraser\"></li>';\n li.appendChild(link);\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "ad301cc9919b1855850c2be5a54e5347", "score": "0.7028717", "text": "function storeTaskInLocalStorage(task) {\n let tasks;\n\n // Check wether local Storage is empty\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n }\n else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n // Assigning values to tasks from 'task' which is passed from function\n tasks.push(task);\n\n // Storing the value to local Storage\n localStorage.setItem('tasks', JSON.stringify(tasks));\n\n}", "title": "" }, { "docid": "3206e051bcb5d1cf726d944f8f45ec70", "score": "0.7022577", "text": "saveTasks() {\n window.localStorage.setItem(localStorageKey, JSON.stringify(this.taskList));\n }", "title": "" }, { "docid": "d46abd63143a7aa85e2737772d416945", "score": "0.7019337", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(task => {\n // Create li\n const li = document.createElement('li');\n // Add class\n li.className = 'list-item';\n // Create textnode and append to li\n li.appendChild(document.createTextNode(task));\n // Create delete link\n const link = document.createElement('a');\n // Add class\n link.className = 'delete-item';\n // Link html\n link.innerHTML = '<i class=\"fas fa-trash\"></i>';\n // Creat edit link\n const editLink = document.createElement('a');\n // Edit link class\n editLink.className = 'edit-item';\n // Edit link html\n editLink.innerHTML = '<i class=\"fas fa-edit\"></i>';\n // Create span to append i elements\n const span = document.createElement('span');\n // Add class\n span.className = 'icon-span';\n // Append i to span element\n span.appendChild(editLink);\n span.appendChild(link);\n\n li.appendChild(span);\n // Append li to ul\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "a33e073784365afb9eb18fd7e434fb26", "score": "0.70119035", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(function (task) {\n let li = document.createElement('li');\n li.className = 'collection-item';\n li.appendChild(document.createTextNode(task));\n taskList.appendChild(li);\n\n // Create link\n let link = document.createElement('a');\n link.className = 'secondary-content delete-item';\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n li.appendChild(link);\n });\n}", "title": "" }, { "docid": "14d0002e0895277e054a503d2e8e472b", "score": "0.69699246", "text": "function getTasksList() {\r\n checkLocalStorage().forEach((task) => {\r\n createLi(task);\r\n });\r\n}", "title": "" }, { "docid": "9fadb2d7c82090915edcab00178a4642", "score": "0.6963807", "text": "function addSavedTasks() {\r\n const tasks = localStorage.getItem('tasks')\r\n const toDoList = JSON.parse(tasks)\r\n\r\n for (let task of toDoList) {\r\n creatTasks(task)\r\n }\r\n }", "title": "" }, { "docid": "1e259f7cc8fae1e6af21e49485c8dbd7", "score": "0.6957759", "text": "function getTasks(e){\n let tasks;\n if (localStorage.getItem('tasks')===null){\n tasks = [];\n }\n else\n {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n\n tasks.forEach(task=>\n {\n let li = document.createElement(\"li\");\n li.appendChild(document.createTextNode(task + \" \"));\n let link = document.createElement('a');\n link.setAttribute(\"href\",\"#\");\n link.appendChild(document.createTextNode('x'));\n li.appendChild(link)\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "0ecfc3243e1e2656290be0977e856d8c", "score": "0.69544846", "text": "function storeTaskInLocalStorage(task) {\n let tasks;\n //check to see if there is any task in there\n //retrieve it, read with JSON when it comes out\n //so we get an array, add to it\n if(localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n //set tasks to what's in LS\n //which stores only strings\n //so parse it as JSON when it comes out\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n //then push on to tasks var\n //the task that's parse as parameter from function call\n tasks.push(task);\n\n //then set it back to LS by sending it back \n //with a stringify, so we send back as string\n localStorage.setItem('tasks', JSON.stringify(tasks));\n\n}", "title": "" }, { "docid": "71fdb06e96a091f31c1ad308b2ce6096", "score": "0.6951843", "text": "function getTask(){\n\tlet tasks;\n\tif(localStorage.getItem('tasks') === null){\n\t\ttasks = [];\n\t}\n\telse{\n\t\ttasks = JSON.parse(localStorage.getItem('tasks'));\n\n\t}\n\n\ttasks.forEach(function(task){\n\t\t//Creating li\n\t\tconst li = document.createElement('li');\n\n\t\t//adding class\n\t\tli.className = 'collection-item';\n\n\t\t//Creating textnode\n\t\tli.appendChild(document.createTextNode(task));\n\n\t\t//creating link\n\n\t\tconst link = document.createElement('a');\n\t\t//adding class\n\t\tlink.className = 'delete-item secondary-content';\n\t\t//Adding icon\n\t\tlink.innerHTML = '<i class=\"fa fa-remove\"></i>';\n\t\t//Appending link to LI\n\t\tli.appendChild(link);\n\n\t\t//Apending Li to UL\n\t\ttaskList.appendChild(li);\n\t});\n}", "title": "" }, { "docid": "83fdf9ad421a31ccdbcef4de1648b5e7", "score": "0.6950787", "text": "function setLocalTasks() {\n localStorage.setItem(\"taskTxt\", JSON.stringify(locals.task.txt));\n localStorage.setItem(\"taskBgc\", JSON.stringify(locals.task.bgc));\n localStorage.setItem(\"taskColor\", JSON.stringify(locals.task.color));\n}", "title": "" }, { "docid": "d317b03a0e8c4f8e4fb0f9c81e8a39ea", "score": "0.69505394", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem(\"tasks\") === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"));\n }\n\n tasks.forEach(function(task) {\n // created element\n let li = document.createElement(\"li\");\n let value = document.createElement(\"span\");\n let cta = document.createElement(\"div\");\n let del = document.createElement(\"span\");\n let done = document.createElement(\"span\");\n let element = ui.ul;\n // create values\n li.classList.add(\"main__item\");\n value.classList.add(\"main__value\");\n cta.classList.add(\"cta\");\n del.classList.add(\"del\");\n done.classList.add(\"done\");\n value.appendChild(document.createTextNode(task));\n del.innerHTML = \"&times;\";\n done.innerHTML = \"&check;\";\n // appending\n cta.appendChild(del);\n cta.appendChild(done);\n li.appendChild(value);\n li.appendChild(cta);\n element.appendChild(li);\n });\n amount();\n}", "title": "" }, { "docid": "67ba5c697f450d3d35a241a1761ea84a", "score": "0.6939297", "text": "function getTasks(){\n const lsTasks = JSON.parse(localStorage.getItem(\"toDoList\"));\n if (lsTasks.length >= 1){\n toDoList.push(...lsTasks);\n toDoForm.dispatchEvent(new CustomEvent(\"tasksSubmitted\"));\n }\n}", "title": "" }, { "docid": "5958c459faa1f408681855f8fabe5c70", "score": "0.6938215", "text": "function fromLocalStorage(){\n let tasks;\n if(localStorage.getItem('tasks') === null){\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n };\n\n tasks.forEach(task =>{\n let li = document.createElement('li');\n li.appendChild(document.createTextNode(task+\" \"));\n let liLink = document.createElement('a');\n liLink.setAttribute('href','#');\n liLink.appendChild(document.createTextNode('x'))\n li.appendChild(liLink);\n taskList.appendChild(li);\n })\n}", "title": "" }, { "docid": "b4e7029f2713ebb816e784a2c661cbd3", "score": "0.6937935", "text": "function storeTaskInLocalStorage(task){\n let tasks;\n if(localStorage.getItem('tasks')===null){\n tasks = []\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'))\n }\n // push on to that variable\n tasks.push(task)\n // set it back to LS\n localStorage.setItem('tasks', JSON.stringify(tasks))\n}", "title": "" }, { "docid": "c27090b9bc7d69562b9a682a03767312", "score": "0.69337165", "text": "function save_local(task) {\n let tasks;\n if (localStorage.getItem(\"tasks\") === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"));\n }\n tasks.push(task);\n\n localStorage.setItem(\"tasks\", JSON.stringify(tasks));\n}", "title": "" }, { "docid": "4c1842fc0644c1a7a82934e437ceed9d", "score": "0.6918742", "text": "function getPending() {\n return JSON.parse(localStorage.getItem(KEY)) || []\n}", "title": "" }, { "docid": "7bf236eb70b0a4a69a8734289317fbdf", "score": "0.68908614", "text": "storeTask(){\n //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment for ??\n const allData=JSON.parse(localStorage.getItem(\"tasks\"))??[];\n allData.push({id:this.id,name:this.name,details:this.details,assignee:this.assignee,dueDate:this.dueDate,status:this.status});\n localStorage.setItem(\"tasks\",JSON.stringify(allData));\n }", "title": "" }, { "docid": "ae758c6a948cfcb219b9f99e08b38de1", "score": "0.6886456", "text": "function storeTaskInLocalStorage(task) {\n console.log(task)\n let tasks;\n if (localStorage.getItem(\"tasks\") === null) {\n tasks = []\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"))\n }\n tasks.push(task)\n\n localStorage.setItem(\"tasks\", JSON.stringify(tasks))\n}", "title": "" }, { "docid": "9b777b1a71b615979ed2033321d5ece0", "score": "0.68850476", "text": "function loadtasks() {\n var data = localStorage.getItem(\"schedule\"); //set data = to the local storage item \"schedule\"\n if (data) //if not undefined\n {\n var scheduleArray = JSON.parse(data); //set schedule array equal to data\n $.each(scheduleArray, function(i, item) //itterate through each item in schedule array\n {\n schedule[i].tasks = item.tasks; //set the task property of the schedule array to the current task item in scheduleAeray\n });\n }\n else {\n localStorage.setItem(\"schedule\", JSON.stringify(schedule)); //if data is undefined then store a new schedule object in local storage\n }\n }", "title": "" }, { "docid": "213beb3b45632938c0827eef5586b225", "score": "0.68835163", "text": "function storeInLocalStorage(task){\n let tasks;\n if(localStorage.getItem('tasks')===null){\n tasks= []\n }\n else{\n tasks = JSON.parse(localStorage.getItem('tasks'))\n }\n tasks.push(task);\n localStorage.setItem('tasks',JSON.stringify(tasks));\n}", "title": "" }, { "docid": "7d60fddc03b61147879432aa25da6ac5", "score": "0.6882283", "text": "function storeTaskInLocalStorage(task) {\n let tasks;\n if(localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage('tasks'));\n }\n //push the tasks\n tasks.push(task);\n //set LS to json stringafiy\n localStorage.setItem('tasks', JSON.stringify(tasks))\n}", "title": "" }, { "docid": "53b5d45b1b1bceeef345b22790361b5e", "score": "0.6874299", "text": "function saveToLocal(){\r\n localStorage.setItem('tasks', JSON.stringify(Task.globalArray));\r\n}", "title": "" }, { "docid": "1547424ee2ef13a42cf81af0cbc07afa", "score": "0.6866451", "text": "load() {\n //check if any tasks are saved in localStorage.\n if (localStorage.getItem(\"tasks\")) {\n //Get the JSON string of tasks from localStorage and save into tasksJson variable\n const tasksJson = localStorage.getItem(\"tasks\");\n // Convert to an array using and store it in this.tasks\n this.tasks = JSON.parse(tasksJson);\n }\n\n // Check if the currentId is saved in localStorage with\n if (localStorage.getItem(\"currentID\")) {\n //If the `currentId` is stored, get the `currentId` in localStorage using `localStorage.getItem()` and store it in a new variable, `currentId`.\n const currentID = localStorage.getItem(\"currentID\");\n // Convert the currentId to a number before storing it to the `TaskManager`'s `this.currentId`\n this.currentID = parseInt(currentID);\n }\n }", "title": "" }, { "docid": "b06686772832561ae6b24eb874acc9a5", "score": "0.6846635", "text": "function saveUncompletedTasks(untask) {\n const task = document.getElementsByClassName('uncompleted');\n for (var i = 0; i < task.length; i++) {\n var untask = task[i].innerText;\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.push(untask);\n localStorage.setItem('tasks', JSON.stringify(tasks))\n };\n}", "title": "" }, { "docid": "e83d669d6d66978958e36277f6a73c0a", "score": "0.6842235", "text": "function getTasks(){\r\n let tasks;\r\n if(localStorage.getItem('tasks') === null){\r\n tasks = [];\r\n }else{\r\n tasks = JSON.parse(localStorage.getItem('tasks'))\r\n }\r\n\r\n tasks.forEach(function(task){\r\n // Creaste li element\r\n const li = document.createElement('li');\r\n // Add Class\r\n li.className= 'collection-item';\r\n // Create Text Node and Append to li\r\n li.appendChild(document.createTextNode(task));\r\n \r\n // Create New link element\r\n const link = document.createElement('a');\r\n // Add Class\r\n link.className = 'delete-item secondary-content';\r\n // Add icon html\r\n link.innerHTML = '<i class=\"fa fa-trash-o fa-lg\"></i>';\r\n // Append the link to li\r\n li.appendChild(link)\r\n \r\n // Append li to ul\r\n taskList.appendChild(li)\r\n })\r\n}", "title": "" }, { "docid": "1df0096c376b929c24d4c44f57b86d74", "score": "0.68412083", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.forEach(function (task) {\n // Create <li> element\n const li = document.createElement('li');\n // Give the <li> a .class\n li.className = 'collection-item';\n // Create text node and append to <li>, pass in whatever user typed in 'New Task' field\n li.appendChild(document.createTextNode(tasks));\n // Create new <a> link element to hold 'x' to delete\n const link = document.createElement('a');\n // Add .class to <a>\n link.className = 'delete-item secondary-content';\n // Add <i> icon in html\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n // Append the <a> to the <li>\n li.appendChild(link);\n // Append <li> to <ul>\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "9a0e6342f5195fa7cb73fccc5aa5e8cf", "score": "0.6833305", "text": "function updateStorage() {\n\tlocalStorage[\"tasks\"] = JSON.stringify(app.tasks);\n}", "title": "" }, { "docid": "98a693c74a246fea624b5e87179b78a0", "score": "0.6832428", "text": "function getTaskFromLs() {\n let tasks;\n if(localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(function(task) {\n // create li element\n const li = document.createElement('li');\n // add class\n li.className = 'collection-item';\n\n // create text node and append ul\n li.appendChild(document.createTextNode(task));\n\n // create link\n const link = document.createElement('a');\n // add class \n link.className = 'delete-item secondary-content';\n // add html\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n\n // append link to li\n li.appendChild(link);\n\n // append li to ul\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "05adcd7862fbb6860ea9edce77c9b5ed", "score": "0.6807389", "text": "function getTasks(){\n let tasks;\n\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(function(task){\n // Create li element\n const li = document.createElement('li');\n // add class to li element\n li.className = 'collection-item';\n // create textnode and append to the li\n li.appendChild(document.createTextNode(task));\n // create new link element\n const link = document.createElement('a');\n // add class\n link.className = 'delete-item secondary-content';\n // add icon html\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n // append the link to the li\n li.appendChild(link);\n\n // append li to the ul\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "96516b9bf3aac19521d361f6e83eb9d1", "score": "0.6806887", "text": "function storeTaskInLocalStorage(task) {\n let tasks;\n // 3.5.2 Are there tasks\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n // 3.5.3 Get if any\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n // 3.5.4 Push to array\n tasks.push(task);\n // 3.5.5 Return to localStroage\n localStorage.setItem('tasks', JSON.stringify(tasks));\n\n}", "title": "" }, { "docid": "334b05866f6555a8ab27a1c66274e228", "score": "0.6802416", "text": "function getTasks() {\n let tasks;\n // Check wether local Storage is empty\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n }\n else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(function(task){\n\n // Create li element\n const li = document.createElement('li');\n // Add class\n li.className = 'collection-item';\n // Create textNode (i.e task which will append to the list and will be displayed) and append to li\n li.appendChild(document.createTextNode(task));\n // Create new link element\n const link = document.createElement('a');\n // Add class\n link.className = 'delete-item secondary-content';\n // Add icon html\n link.innerHTML = '<i class = \"fa fa-remove\"></i>';\n // Append link to li\n li.appendChild(link);\n\n // Append li to ul\n taskList.appendChild(li);\n\n });\n}", "title": "" }, { "docid": "a82300cc04cff26a8f1666f1b2aa2d6f", "score": "0.6776413", "text": "function getTasks() {\n let tasks;\n if (localStorage.getItem(\"tasks\") === null) {\n // If its empty, set the variable tasks to an empty array\n tasks = [];\n } else {\n // If there's something in there, only stores strings, so we need to parse it when it comes out from LS\n tasks = JSON.parse(localStorage.getItem(\"tasks\"));\n }\n\n tasks.forEach(function(task) {\n // Create li element\n const li = document.createElement(\"li\");\n // Add class (from materialize)\n li.className = \"collection-item\";\n // Create the text node and append to li\n li.appendChild(document.createTextNode(task));\n // Create a new link element\n const link = document.createElement(\"a\");\n // Add class (secondary content class is materialize for float right)\n link.className = \"delete-item secondary-content\";\n // Add icon html\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n // Append the link to li\n li.appendChild(link);\n\n // Now it's ready to be appended to the DOM\n // Append li to ul\n taskList.appendChild(li);\n });\n}", "title": "" }, { "docid": "8c29fda57a22408c1cc560e9e110b1aa", "score": "0.67679703", "text": "function storeTaskInLocalStorage(task) {\n let tasks;\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n // if there is something in local storage, assign them in tasks array. Wrap JSON.parse around to convert string (in local storage) to object\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.push(task); // push input value - 1 task to the array\n\n // set array (with new input value) to local storage \n // wrap JSON.stringify aroung to convert objects to strings before store in local storage\n localStorage.setItem('tasks', JSON.stringify(tasks));\n}", "title": "" }, { "docid": "ec83dd3479a26972c0131d713e9d4dba", "score": "0.67625177", "text": "function storeTaskInLocalStorage(task){\n let tasks;\n if(localStorage.getItem('tasks') === null)\n {\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.push(task);\n localStorage.setItem('tasks',JSON.stringify(tasks));\n}", "title": "" }, { "docid": "b17418f9161bc1f79152b1e1919b04ca", "score": "0.67619646", "text": "constructor() {\n this.taskList = JSON.parse(window.localStorage.getItem(localStorageKey), this.parseWorkday);\n if (this.taskList == null) {\n this.taskList = [];\n }\n }", "title": "" }, { "docid": "0874b8e7d3356b5460e81ed23a61d5ab", "score": "0.675973", "text": "function storeToLocalStorage(task){\n let tasks;\n if(localStorage.getItem('tasks') === null){\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.push(task);\n localStorage.setItem('tasks',JSON.stringify(tasks));\n}", "title": "" }, { "docid": "0c258c7fdd22feddedd88f17c5bf0a93", "score": "0.67500806", "text": "function getLocalStorageData(){\n\t\t// fetch\n var todo_items_json = localStorage.getItem('todo_items');\n\t\t// parse\n var todo_items = todo_items_json ? JSON.parse(todo_items_json) : [];\n \n return todo_items;\n }", "title": "" }, { "docid": "e92f589d53f22fa93ef5f1eb1d51f4ad", "score": "0.6743147", "text": "function getTasks(){\n let tasks;\n if(localStorage.getItem('tasks') === null)\n {\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.forEach(function(task){\n // create a li element\n const li = document.createElement('li');\n // add a class\n li.className = 'collection-item';\n // create a Text Node and append it to li\n li.appendChild(document.createTextNode(task));\n // create a new link element\n const link = document.createElement('a');\n // add a class\n link.className = 'delete-item secondary-content';\n // add a icon html\n link.innerHTML = '<i class =\"fa fa-remove\"></i>';\n //append link to li\n li.appendChild(link);\n //append li to ul\n taskList.appendChild(li);\n\n })\n}", "title": "" }, { "docid": "cf74a9628a2014c936f20c737808b25e", "score": "0.67241967", "text": "function localStorageToDoList(task) {\r\n if (localStorage.getItem(\"arrayTasks\") == null) {\r\n arrayTasks = [];\r\n arrayTasks.push(task);\r\n localStorage.setItem(\"arrayTasks\", JSON.stringify(arrayTasks));\r\n } else {\r\n arrayTasks = JSON.parse(localStorage.getItem(\"arrayTasks\"));\r\n arrayTasks.push(task);\r\n localStorage.setItem(\"arrayTasks\", JSON.stringify(arrayTasks));\r\n }\r\n\r\n printLocalStorage();\r\n}", "title": "" }, { "docid": "6e1b91ef7e1f8ba7a600f0a8bba0197a", "score": "0.67150897", "text": "function saveTaskInLocalStorage(task) {\n let tasks;\n\n if (localStorage.getItem(\"tasks\") === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"))\n }\n\n tasks.push(task);\n\n localStorage.setItem(\"tasks\", JSON.stringify(tasks))\n}", "title": "" }, { "docid": "c8a29d6e2194a4c96d0b97547c0af66f", "score": "0.6711013", "text": "saveTasks() {\n\n utils.countTasks();\n\n const divTasks = tasks.querySelectorAll('.taskname');\n const buttonErase = tasks.querySelectorAll('.delete');\n const listOfTasks = [];\n let taskText;\n\n for (let task of divTasks){\n taskText = task.innerText;\n buttonErase.innerHTML = ''.trim();\n listOfTasks.push(taskText);\n }\n \n const tasksJSON = JSON.stringify(listOfTasks);\n localStorage.setItem('tasks', tasksJSON);\n }", "title": "" }, { "docid": "97ddab128c6f5a4cc82b6f6c3ce321b1", "score": "0.6709003", "text": "function loadTasks(tasks) {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"));\n if (!tasks) {\n return;\n }\n\n //get task from each task item in tasks array and get time to know which line to add the task text to\n tasks.forEach((task) => {\n //if task was created yesterday, clear localStorage and all data on page. clear all localStorage because tasks should only be created for that day\n if (task.day != currentDay) {\n localStorage.clear();\n window.location.reload();\n }\n //get time slot for task to be made with id matching task.time and create values of task.task for the textarea\n else {\n $(\"#\" + task.time)\n .parent()\n .children(\".task\")\n .val(task.task);\n }\n });\n}", "title": "" }, { "docid": "6ffbb26d14ec43521069000fdb63c501", "score": "0.67016816", "text": "function writeToLocalStorage() {\n localStorage.setItem('allTasks', JSON.stringify(allTasks));\n uniqueTasksNames = new Set(allTasks.map(task => task.taskName));\n}", "title": "" }, { "docid": "c767629986b9e3a8e623962fb642d648", "score": "0.6700225", "text": "function getTasks() {\n let tasks;\n if(localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage('tasks'));\n }\n\n tasks.forEach(function(task){\n //creat the li\n const li = document.createElement('li');\n //creat li class name\n li.className = 'collection-item';\n //creat a li text node\n li.appendChild(document.createTextNode(task));\n \n //creat link\n const link = document.createElement('a');\n //creat link class name\n link.className = 'delete-item secondary-content';\n //link innerHTML\n link.innerHTML = '<i class=\"fa fa-remove\"></i>';\n //append the link to li\n li.appendChild(link);\n \n //append the li to ul\n ulList.appendChild(li);\n });\n}", "title": "" }, { "docid": "bd280011d8a279d2453f1ebc63827244", "score": "0.66937554", "text": "function get_task() {\n let tasks;\n if (localStorage.getItem(\"tasks\") === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem(\"tasks\"));\n }\n\n tasks.forEach(function (task) {\n const li = document.createElement(\"li\");\n const a = document.createElement(\"a\");\n li.innerText = task;\n li.classList.add(\"mt-2\");\n a.classList.add(\"delete-item\", \"ml-2\");\n a.innerHTML = '<i class=\"fas fa-minus\"></i>';\n li.append(a);\n parentOl.append(li);\n });\n}", "title": "" }, { "docid": "3fadfcf7d54f440710579179de714048", "score": "0.6690935", "text": "function removeAllTasksFromLocalStorage() {\n localStorage.removeItem(\"tasks\")\n}", "title": "" }, { "docid": "0aad8d8f1ef59630508462334d92bd07", "score": "0.6684741", "text": "function clearTasksFromLocalStorage(){\n localStorage.clear()\n }", "title": "" }, { "docid": "a856242f81d97eb39d723486889fe7fc", "score": "0.6679534", "text": "function getUncompletedTasks() {\n let tasks;\n\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n tasks.forEach(function (task) {\n //Task Div\n const taskDiv = document.createElement('div');\n taskDiv.classList.add('task', 'uncompleted');\n //Create li\n const newTask = document.createElement('li');\n newTask.innerText = task;\n newTask.classList.add('task-item');\n taskDiv.appendChild(newTask);\n //Checked button\n const completedButton = document.createElement('button');\n completedButton.innerHTML = '<i class =\"fa fa-check\"></fa>';\n completedButton.classList.add('complete-btn');\n taskDiv.appendChild(completedButton);\n //Delete button\n const deleteButton = document.createElement('button');\n deleteButton.innerHTML = '<i class =\"fa fa-trash\"></fa>';\n deleteButton.classList.add('delete-btn');\n taskDiv.appendChild(deleteButton);\n //Append to list\n taskList.appendChild(taskDiv);\n });\n localStorage.removeItem('tasks');\n }", "title": "" }, { "docid": "197f62b5f5f946aefaeddc08479b6c18", "score": "0.66654235", "text": "function storeTaskInLocalStorage(task){\n let tasks;\n\n if (localStorage.getItem('tasks') === null) {\n tasks = [];\n } else {\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.push(task);\n\n localStorage.setItem('tasks', JSON.stringify(tasks));\n}", "title": "" }, { "docid": "044580c5d655aa87f3f37c7dd48e6504", "score": "0.66643196", "text": "function getTasks(e) {\n let tasks;\n\n if(localStorage.getItem('tasks') === null){\n tasks = [];\n }else{\n tasks = JSON.parse(localStorage.getItem('tasks'));\n }\n\n tasks.forEach(function (task) { \n // Create li element\n const li = document.createElement('li');\n // add Class to element\n li.className = 'list-group-item';\n // create text node and append to the li\n li.appendChild(document.createTextNode(task));\n // Create New Link \n const link = document.createElement('a');\n // add class name to link\n link.className = 'delete-item float-right text-danger';\n // add close icon html\n link.innerHTML = '<i class=\"fa fa-times\" aria-hidden=\"true\"></i>';\n // append the link to li\n li.appendChild(link);\n\n // append li to ul\n taskList.appendChild(li); \n });\n}", "title": "" }, { "docid": "c1833ee725e73aa412a355f74c3b9daa", "score": "0.6656823", "text": "function loadTasks() {\n tasks = JSON.parse(localStorage.getItem(\"data\"));\n\n //creates am empty task array if one is not present after load\n if (!tasks) {\n tasks = [];\n };\n\n for (i = 0; i < tasks.length; i++) {\n ;\n textBoxLoad = tasks[i].text;\n tdElIdLoad = tasks[i].tdElId;\n createTask(textBoxLoad, tdElIdLoad);\n };\n\n $('#dayId').text(day);\n}", "title": "" }, { "docid": "dc2d686d3f22467609f01a2897418707", "score": "0.6639176", "text": "function clearTasksFromLocalStorage(){\n localStorage.clear();\n}", "title": "" }, { "docid": "89cb34f3e87d03d9ea38238bc675bce8", "score": "0.6637193", "text": "function clearTasksFromLocalStorage(){\r\n localStorage.clear();\r\n}", "title": "" }, { "docid": "e25807394b1eb1599aa28a3ecf5a89c4", "score": "0.66355467", "text": "function storeTaskInLocalStorage(task) {\r\n let tasks;\r\n if(localStorage.getItem('tasks') === null) {\r\n tasks = [];\r\n } else {\r\n tasks = JSON.parse(localStorage.getItem('tasks'));\r\n }\r\n tasks.push(task);\r\n\r\n localStorage.setItem('tasks', JSON.stringify(tasks));\r\n}", "title": "" }, { "docid": "123d1b0b50ca0950fa2068cf522d5930", "score": "0.663488", "text": "function clearTasksFromLocalStorage(){\n localStorage.clear();\n}", "title": "" }, { "docid": "123d1b0b50ca0950fa2068cf522d5930", "score": "0.663488", "text": "function clearTasksFromLocalStorage(){\n localStorage.clear();\n}", "title": "" }, { "docid": "75701e61bca04afadd1a130cada06b4a", "score": "0.6632104", "text": "save() {\n const tasksJson = JSON.stringify(this.tasks);\n localStorage.setItem(\"tasks\", tasksJson);\n\n const currentId = String(this.currentId);\n localStorage.setItem(\"currentId\", currentId);\n }", "title": "" }, { "docid": "07f12f24a26aa8ba489be818b019c016", "score": "0.663103", "text": "function pullFromLocal() {\n var justPlaced = {};\n for (var i = 0; Key = window.localStorage.key(i); i++) {\n justPlaced[Key] = window.localStorage.getItem(Key);\n }\n return justPlaced;\n}", "title": "" }, { "docid": "699fa6fca64614cc05eeaaf8df90e6ff", "score": "0.6623941", "text": "function readStorage() {\r\n\r\n var taskUniqueIdData = localStorage.getItem('taskUniqueId');\r\n var taskData = localStorage.getItem('taskStorage');\r\n\r\n var taskDoneData = localStorage.getItem('taskDone');\r\n var taskDeleteData = localStorage.getItem('taskDelete');\r\n\r\n if (!taskData) {\r\n return false;\r\n } else {\r\n\r\n //UNIQUE-ID\r\n\r\n taskUniqueId = JSON.parse(taskUniqueIdData);\r\n\r\n //TASKS\r\n\r\n taskArr = JSON.parse(taskData);\r\n\r\n //TASKS DONE\r\n\r\n taskDoneCounterVar = JSON.parse(taskDoneData);\r\n\r\n //TASKS DELETE\r\n\r\n taskDeleteCounterVar = JSON.parse(taskDeleteData);\r\n\r\n //TASK INFO TEXT\r\n\r\n $('.taskAll').text('Tasks: ' + taskArr.length);\r\n $('.taskDone').text('Tasks done: ' + taskDoneCounterVar);\r\n $('.taskDelete').text('Tasks deleted: ' + taskDeleteCounterVar);\r\n }\r\n return true;\r\n}", "title": "" }, { "docid": "4041a30358f2224207b561b9d072f00e", "score": "0.6622499", "text": "function clearTasksFromLocalStorage() {\n localStorage.clear();\n }", "title": "" }, { "docid": "54a903f96b52abca70c09317da6ac734", "score": "0.66175276", "text": "function getStorageData() {\n const todos = JSON.parse(localStorage.getItem(\"todos\"));\n if (localStorage.getItem(\"todos\")) {\n return todos;\n } else {\n return [];\n }\n}", "title": "" } ]
f9fbf749aa2c408cadeb4f8910d6804b
Flip every chunk of n characters in a string, where n is any positive integer greater than 1. Note that this is intentionally very similar to the previous problem. Please focus on getting a working solution with the tools you know well. Practice the interactive/collaborative interview style that's described in the documentation. Example: var input = 'a short example'; var output = flipEveryNChars(input, 5); console.log(output); // > ohs axe trelpma Breaking this example down piece by piece: 'a sho' > 'ohs a' 'rt ex' > 'xe tr' 'ample' > 'elpma' > 'ohs axe trelpma' Skeleton
[ { "docid": "f1ee842f21bfd651f722fceaba75950c", "score": "0.8763857", "text": "function flipEveryNChars(inputString, n) {\n\t//create variable aliases\n\tlet outputStr = '';\n\t//iterate over the input string\n\tfor (var i = 0; i < inputString.length; i+=n) {\n\t\t//split string into N chunks\n\t\tlet slice = inputString.slice(i,i+n);\n\t\t//use helper function to reverse string\n\t\tlet flipper = reverseString(slice);\n\t\t//add reversed string slice to output string\n\t\toutputStr += flipper;\n\t};\n\treturn outputStr;\n\t// return outputStr;\n}", "title": "" } ]
[ { "docid": "dfeca725de988055a11b19605291cc62", "score": "0.86904997", "text": "function flipEveryNChars(string, n) {\n var flip = '';\n var splitChars = string.split('');\n for (var i = 0; i < splitChars.length; i += n) {\n var slice = splitChars.slice(i, i + n);\n var reverse = slice.reverse();\n var join = reverse.join('');\n\n flip += join;\n }\n return flip;\n}", "title": "" }, { "docid": "1f76ed9422befad50fa0e67a61529cbb", "score": "0.86038953", "text": "function flipEveryNChars (input, n){\n let flipped = '';\n let charactors = input.split('');\n for (let i = 0; i < charactors.length; i+=n){\n let currentSlice = charactors.slice(i, i+n);\n let reversed = currentSlice.reverse();\n let joined = reversed.join('');\n flipped+= joined;\n }\n return flipped;\n}", "title": "" }, { "docid": "03dded5febf294de45f13cb0aa7f2cf8", "score": "0.64721775", "text": "function rotateString(string, n){\n n = n % string.length\n if (n == 0) {\n return string;\n }\n var newStr = '';\n for (var i = string.length-n; i < string.length; i++) {\n newStr += string[i];\n }\n for (var i = 0; i < string.length-n; i++) {\n newStr += string[i];\n }\n return newStr;\n}", "title": "" }, { "docid": "156a202c980fbf1ee0c09201dc38bbde", "score": "0.6347546", "text": "function frontTimes(str, n){\n let s = '';\n for(i = 0; i < n ; i++){\n s += str.substring(0, 3);\n }\n return s;\n}", "title": "" }, { "docid": "af76b7d9bdefbd6259c371a200383a15", "score": "0.6213201", "text": "function rotateString(string, n){\n n = n % string.length\n if (n == 0) {\n return string;\n }\n var startStr = '';\n var endStr = '';\n for (var i = 0; i < string.length; i++) {\n if (i < string.length - n) {\n startStr += string[i];\n } else {\n endStr += string[i];\n }\n }\n return endStr + startStr;\n}", "title": "" }, { "docid": "a420aa7798cf5d4e5fa44d974cacc564", "score": "0.6206793", "text": "function repeater(string, n){\r\n let newString = \"\";\r\n newString = newString + string;\r\n while((newString.length / string.length) < n) {\r\n newString = newString + string;\r\n }\r\n return newString;\r\n}", "title": "" }, { "docid": "c768a97ec010c7667084c1e40e7b8e73", "score": "0.61579615", "text": "function alphabeticShift(s, n) {\n var out = '';\n\n for (var i = 0; i < s.length; i++) {\n out += shiftChar(s.charAt(i), n);\n }\n\n return out;\n }", "title": "" }, { "docid": "1849232751fa50f965565109a02188e5", "score": "0.61548877", "text": "function rotateString(string, n){\n\n}", "title": "" }, { "docid": "443fdb4649935c86ce8f7027cfc9b7d1", "score": "0.61448574", "text": "function repeat(s, n) {\n\n if (n < 1) return \"\";\n if (n % 2) return repeat(s, n - 1) + s;\n var half = repeat(s, n / 2);\n return half + half;\n}", "title": "" }, { "docid": "f6df5ab7266192f62756284d3f7cce93", "score": "0.6103747", "text": "function chopStr(str, n){\n var result = [];\n if (n === null){\n return str;\n }\n for (var i=0; i+n<str.length; i+=n){ ///???\n result.push(str.slice(i, n));\n console.log(\"result: \" + result);\n console.log(\"str: \" + str);\n }\n if (i+n <str.length){\n result.push(str.slice(i+n));\n }\n}", "title": "" }, { "docid": "ada02dc9d49d56e24e16497024c5b7c2", "score": "0.6102629", "text": "function flipNumber(n) {\n\tvar solution = \"\";\n\tvar arr = n.split(\"\");\n\tvar l = arr.length;\n\tfor(i=0; i<l; i++){\n\t\tarr.reverse();\n\t\tsolution += arr[0];\n\t\tarr.shift();\n\t}\n\treturn solution;\n}", "title": "" }, { "docid": "0c49ccf8fc7a754781c71a5dbd5cb63c", "score": "0.60633737", "text": "function cutNReverse(str) {\n return str.substring(0, str.length / 2).split('').reverse().join('') + '\\n' + str.substring(str.length / 2).split('').reverse().join('')\n}", "title": "" }, { "docid": "6aa560efaf2452f907e35f95daf58154", "score": "0.599172", "text": "function padIt(str, n) {\n\n let result = str;\n let i = 0;\n\n while (i < n) {\n if (i % 2 === 0) {\n result = `*${result}`\n } else {\n result = `${result}*`\n }\n i += 1\n\n }\n return result\n}", "title": "" }, { "docid": "75c8a9f28d3001b6bd7852059652985b", "score": "0.59899366", "text": "function pattern(n) {\n var res = \"\";\n var l = n*2;\n var arr = [];\n\n for( var i = 1; i < l; i++ ) {\n\n if( i != n )\n arr = new Array(n+1).fill(' ');\n else\n arr = new Array(l).fill(' ');\n\n arr[arr.length-1] = '\\n';\n\n if( i < n ) {\n arr[n-1] = i%10;\n }\n else if( i > n ) {\n arr[n-1] = (n - (i - n) )%10;\n }\n else {\n for( var j = 0; j < arr.length-1; j++) {\n\n if( j >= n ) {\n arr[j] = arr[n-(j-n)-2];\n }\n else {\n arr[j] = (j+1)%10;\n }\n }\n\n }\n\n res += arr.join('');\n\n }\n\n return res;\n\n}", "title": "" }, { "docid": "7242078003c079ae8e4361c0143b94a4", "score": "0.5907045", "text": "function rotate( str, n )\n {\n var leftSize = str.length - n;\n var left = str.substring( 0, leftSize );\n var c = str.charAt( leftSize );\n var right = str.substring( leftSize+1 );\n return left + right + c;\n }", "title": "" }, { "docid": "c9b10c04eebdaefd99d906332e3f0148", "score": "0.5904237", "text": "function repeatStr(n, s) {\n let tempArr = []\n for (let i = 0; i < n; i++) {\n tempArr.push(s)\n }\n return tempArr.join('')\n}", "title": "" }, { "docid": "6b2d514666468afb7def35523afa75bb", "score": "0.5891344", "text": "function rept(str, n) {\n var newStr = str.repeat(n);\n return newStr;\n}", "title": "" }, { "docid": "14dbceade04bfe9e4a97c43a4e8fb21c", "score": "0.58799326", "text": "function repeatStr(n, s){\n return s.repeat(n);\n}", "title": "" }, { "docid": "57e4ff66944686d3a2d5da06d93e3092", "score": "0.58604157", "text": "function repeatStr(n, s) {\n return s.repeat(n);\n}", "title": "" }, { "docid": "8b37e81f24210bf2667a1b8e5d8bb583", "score": "0.5857425", "text": "function repeatedString(s, n){\n let repetitions = Math.floor(n / s.length);\n let excessLetters = n % s.length;\n let AsFromFullReps = repetitions * getAsInString(s);\n return excessLetters === 0 ? AsFromFullReps :\n AsFromFullReps + getAsInString(s.slice(0, excessLetters));\n}", "title": "" }, { "docid": "f91933ef29c73d3612ddad3554c2dde8", "score": "0.58312196", "text": "function repeat(str, n) {\n let strArr = str.split(\"\");\n console.log(strArr); // [\"m\", \"i\", \"c\", \"e\"]\n\n let newArr = [];\n for (let i = 0; i < strArr.length; i++) {\n let repChar = strArr[i].repeat(n);\n console.log(repChar);\n newArr.push(repChar);\n }\n let newStr = newArr.join(\"\");\n console.log(newStr);\n}", "title": "" }, { "docid": "885dae29fb1eb50e9b8a1e37b6847104", "score": "0.5805661", "text": "function repeatStr (n, s) {\r\n return s.repeat(n);\r\n}", "title": "" }, { "docid": "ccff6e8da56e8e5acb5884a7c864b925", "score": "0.5798033", "text": "function repeatStr (n, s) {\n return s.repeat(n);\n}", "title": "" }, { "docid": "ad48e226c4d72dbe6ad061153edefb18", "score": "0.5789003", "text": "function string_chop(str, n = 1){\n\n \n}", "title": "" }, { "docid": "d3d3d207d3c9c570a9b6a6871932a1df", "score": "0.57793427", "text": "function flipOver(str) {\n let result = '';\n for (let i = str.length - 1; i >= 0; i--) {\n result += str[i];\n }\n return result;\n}", "title": "" }, { "docid": "25845670838a4cbcdbabd063e4722127", "score": "0.5770213", "text": "function repeatStr(n, s) {\n strArr = [];\n for (let i = 0; i < n; i++) {\n strArr.push(s);\n }\n return strArr.join('');\n}", "title": "" }, { "docid": "e93386fc2d85993562b1311a2f61cc7f", "score": "0.57550955", "text": "function repeatStr(n, s) {\n\treturn s.repeat(n);\n}", "title": "" }, { "docid": "48946cc8ca9797255e51f9bb81276259", "score": "0.57388127", "text": "function repeatStr(n, s) {\n let result = s;\n for (let i = 1; i < n; i++) {\n result += s;\n }\n return result;\n}", "title": "" }, { "docid": "2bea76d6a41d5b28ec311d20f23af60d", "score": "0.5714365", "text": "function steps(n) {\n let str = '#';\n let counter = n;\n\n for (let i = 1; i < n; i++) {\n str+=' ';\n }\n\n while (counter) {\n console.log(str, str.length)\n str = str.slice(0, str.length - 1);\n str = '#' + str;\n counter--;\n }\n}", "title": "" }, { "docid": "4a9834fba2996bbde2620971cdc6f697", "score": "0.57077116", "text": "function repeatedString(s, n) {\n let num = Math.floor(n/s.length);\n //let str = s.repeat(num+1);\n let newStr = s.slice(0,n%(s.length))\n let count =0;\n s.split('').forEach((val) => {\n if (val == 'a')\n count ++\n })\n let c = 0;\n newStr.split('').forEach((val) => {\n if(val == 'a'){\n c++\n }\n })\n return count*num+c;\n // Write your code here\n\n}", "title": "" }, { "docid": "a41aa6223e36b6010ec435a2724aeb86", "score": "0.57067454", "text": "function stringTimes(str, n) {\n return str.repeat(n)\n}", "title": "" }, { "docid": "10faa2f211cbdd2cb9ed74137430a114", "score": "0.5691123", "text": "function repeatStr (n, s) {\n var newString = \"\";\n for(var i = 0; i < n; i++) {\n newString += s;\n }\n return newString;\n}", "title": "" }, { "docid": "b190fe2e80bc859646b00905c7c1f301", "score": "0.5689123", "text": "function repeatStr (n, s) {\n return s.repeat(n);\n }", "title": "" }, { "docid": "b190fe2e80bc859646b00905c7c1f301", "score": "0.5689123", "text": "function repeatStr (n, s) {\n return s.repeat(n);\n }", "title": "" }, { "docid": "8924475213b2fe0279bbbb782d77d994", "score": "0.5688726", "text": "function stringTimes(str,n){\r\n var returnStr = \"\";\r\n var i = 0;\r\n while(i<n){\r\n returnStr += str;\r\n i++;\r\n }\r\n return returnStr;\r\n}", "title": "" }, { "docid": "3e8b44272bd7c16de3eb22cbd5a801bf", "score": "0.56784683", "text": "function repeatedStringPt2(s, n) {\n const numOfWholeRepeates = Math.floor(n / s.length);\n const overFlow = n % s.length;\n let fullACnt = 0,\n partialACnt = 0;\n for (let i = 0; i < s.length; i++) {\n if (s[i] === 'a') {\n if (i < overFlow) {\n partialACnt++;\n }\n fullACnt++;\n }\n }\n return fullACnt * numOfWholeRepeates + partialACnt;\n}", "title": "" }, { "docid": "573140f5b9fd31416419ead4799902d9", "score": "0.5677003", "text": "function repeat(str, n) {\n return new Array(n + 1).join(str);\n}", "title": "" }, { "docid": "f480ea18bcd58cc5604988377fb47448", "score": "0.5671723", "text": "function copies(str, n) {\n return str.repeat(n);\n}", "title": "" }, { "docid": "18f704926f4dec537b450cdb0cfa0eba", "score": "0.56547314", "text": "function repeatedString(s, n) {\n // take the floor so we know how many time the base string repeats\n const fullRepeats = Math.floor(n / s.length);\n // take the remainder in case repeat doesnt divide into clean int.\n const remainder = n % s.length;\n // create an array of counts, the count at 1 + stringIndex will be the total\n // of all preceding\n const aCntArr = Array.from({ length: s.length + 1 });\n // init 0 index to 0\n aCntArr[0] = 0;\n for (let i = 0; i < s.length; i++) {\n // seed each current cell with the val of the prev cell\n aCntArr[i + 1] = aCntArr[i];\n if (s[i] === 'a') {\n // increment by 1 if ch is an 'a'\n aCntArr[i + 1] += 1;\n }\n }\n return fullRepeats * aCntArr[aCntArr.length - 1] + aCntArr[remainder];\n}", "title": "" }, { "docid": "627ff319658b548cda3281d428d40ae5", "score": "0.5647939", "text": "function padIt(str,n){\n let res = str\n do {\n res = (n % 2 === 0) ? res + \"*\" : \"*\" + res;\n n--;\n } while (n);\n return res;\n\n}", "title": "" }, { "docid": "2336deb2bf593125c5a0ca5f671a1c01", "score": "0.56355757", "text": "function repeat(str, n){\n return (new Array(n + 1)).join(str);\n }", "title": "" }, { "docid": "5406817f0f4b4c3598557420f10c0da4", "score": "0.56301564", "text": "function stringBreakers(n, string){\n let res = '';\n const stringNew = string.replace(/[ ]/g, '');\n for (let i = 0; i < Math.ceil(string.length / n); i++) {\n res += stringNew.slice(i * n, (i + 1) * n);\n res += '\\n';\n }\n\n return res.trim();\n}", "title": "" }, { "docid": "779af11aa202ccb45444026589f9bd31", "score": "0.5625759", "text": "function flipPairs(input){\n\t// Create Output String\n\tvar output = \"\";\n\t// Iterate through the string\n\tfor(var i = 0; i < input.length - 1; i += 2){\n\t\t// Flip the second character to be the first character\n\t\toutput += input[i + 1];\n\t\t// Flip the first character to be the second character\n\t\toutput += input[i];\n\t}\n\t// Return Output\n\treturn output;\n}", "title": "" }, { "docid": "7b21c4f6a6dbfb7f186c32b80e8786bc", "score": "0.5621826", "text": "function frontCopy(str, n){\n//returns an array of the split strings' first 3 lettters\nstrSplit = str.slice(0,3);\nreturn strSplit.repeat(n);\n}", "title": "" }, { "docid": "94d14a35b47941f16e46b9427730b25a", "score": "0.5614825", "text": "function reverse(str) {\n if(str.length < 5){\n return str;\n }\n else if(str.indexOf(' ') < 0 && str.length >= 5){\n str = str.split('').reverse().join('');\n return str;\n }else{\n str = str.split(' ');\n for(var i = 0; i < str.length; i++){\n if(str[i].length >= 5){\n str[i] = str[i].split('').reverse().join('');\n }\n }\n return str.join(' ');\n }\n}", "title": "" }, { "docid": "f4b2c6bd873d15221d33d92eea6723da", "score": "0.5595264", "text": "function str_repeat(s,n) {\n var t='';\n while (n>0) {\n if (n&1) t+=s;\n n>>=1;\n s+=s;\n }\n return t;\n}", "title": "" }, { "docid": "945c3227417de5e562bf6b2b7358568a", "score": "0.55889136", "text": "function repeat(str, n){\n // add whatever parameters you deem necessary - good luck!\n let s = \"\";\n for(let i = 0; i < n; i++){\n s+=str;\n }\n return s;\n}", "title": "" }, { "docid": "6cc6e8ac78363fef1b03cf57e7f80525", "score": "0.5582801", "text": "function repeatStr(str, n){\n if (typeof n === 'undefined'){\n n = 1;\n }\n return n < 1 ? '' : new Array(n+1).join(str);\n //return str.repeat(n);\n}", "title": "" }, { "docid": "2d98cb699b9fc1e7f0229d53ab99db1a", "score": "0.55790234", "text": "function reverse5(str) {\n if(!str ||str.length <2) return str;\n return str.split('').reverse().join('');\n}", "title": "" }, { "docid": "83c5c73f23abc154c07816f49c9df0ce", "score": "0.5573872", "text": "function repeat(str, n){\n\t return (new Array(n + 1)).join(str);\n\t}", "title": "" }, { "docid": "4f7062d178db6e402dc8e7dc583ddc9a", "score": "0.55627465", "text": "function truncateStr(str, n){\n return str.split(' ').slice(0,n).join('');\n}", "title": "" }, { "docid": "4da821bd2f7791dc3821ba7f6d7ffcce", "score": "0.55620015", "text": "function repeatStr (n, s) {\n let str = '';\n for (let i = 0; i < n; i++) {\n str += s\n }\n return str;\n}", "title": "" }, { "docid": "bd01f46969990f28a77c13378e41c818", "score": "0.55589414", "text": "function pattern(n) {\n if (n <= 1) {\n return '';\n }\n var arr = [];\n for (var i = 2; i <= n; i += 2) {\n arr.push(i.toString().repeat(i));\n }\n return arr.join(\"\\n\");\n}", "title": "" }, { "docid": "88b34caaf05c0c3602b376f74a43a24a", "score": "0.5530557", "text": "function repeater(string, n){\n return string.repeat(n)\n}", "title": "" }, { "docid": "82928916bf8c0bad6d9c61932431d041", "score": "0.5527967", "text": "function staircase(n) {\n\tvar s = '';\n\tfor(var i =1; i <= n; i++){\n\t\ts+= ' '.repeat(n - i) + '#'.repeat(i) + '\\n';\n\t}\n\tconsole.log(s);\n}", "title": "" }, { "docid": "d7fba7c579195adb2415c66328aa31c4", "score": "0.5526453", "text": "function stringBreakers(n, string) {\n const str = string.replace(/\\s/g, '');\n const result = [];\n for (let i = 0; i < str.length; i += n) {\n if ((i + n) > str.length - 1) {\n result.push(str.slice(i));\n break;\n }\n result.push(str.slice(i, i + n));\n }\n return result.join('\\n');\n}", "title": "" }, { "docid": "8846b11cbd10112d8cad62732eba88b9", "score": "0.551002", "text": "function wordThreeTimes(word, n) {\n if (n > 0)\n return word.repeat(n);\n}", "title": "" }, { "docid": "3b0365f83c3eeaef2a9c048044f743a0", "score": "0.5507084", "text": "function LMremoveCharsAndBlanks(str,n) {\r\n//remove n characters and any following blanks\r\n var st;\r\n st = str.slice(n);\r\n for (var i=0; i<st.length && st.charCodeAt(i)<=32; i=i+1);\r\n return st.slice(i);\r\n}", "title": "" }, { "docid": "6f1b0a1f8c931cee1201c3073fb0452e", "score": "0.54996324", "text": "function repeatStr (n, s) {\n\t\tvar result =\"\";\n\n\t\tvar counter = 1;\n\n\t\tfor(var i = 0; i<n.length; i++ ){\n\n\t\t\tresult = result * n.length;\n\n\t\t\tcounter = counter +1;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "40e14f95f7dd889001dd24880b9f0f96", "score": "0.5492708", "text": "function right(inputString, n)\n{\n\tif (inputString.length > n) return inputString.substring(inputString.length - n);\n\telse return inputString;\n}", "title": "" }, { "docid": "5b448773bd810cb02990ec8c7d4272ad", "score": "0.5490895", "text": "function repeater(string, n){\n return string.repeat(n)\n }", "title": "" }, { "docid": "fc80f1ec32842deea101a484c75846d3", "score": "0.5477829", "text": "function flip(before) {\n if (before.length == 4) {\n return [\n before[1], before[0],\n before[3], before[2]\n ].join(\"\");\n }\n if (before.length == 9) {\n return [\n before[2], before[1], before[0],\n before[5], before[4], before[3],\n before[8], before[7], before[6]\n ].join(\"\");\n }\n throw \"unhandled input length: \" + before;\n}", "title": "" }, { "docid": "6400fd9384af0fbe53da9d69782521a6", "score": "0.54774624", "text": "function removeChars(n) {\n for (var lyr = 1; lyr < (n + 1); lyr ++) {\n for (var i = n; i > 0 ; i--) {\n if (i !== lyr) {\n app.project.activeItem.layer(lyr).content(i).remove();\n }\n }\n }\n}", "title": "" }, { "docid": "3384b0997db2c5599776409bfa8095e0", "score": "0.5474442", "text": "function repeatStr (n, s) {\n var repeatedString = \"\";\n while(n > 0){\n repeatedString += s;\n n--\n }\n return repeatedString;\n\n}", "title": "" }, { "docid": "b6f5c86ee6adacab515229bef2138388", "score": "0.5465146", "text": "function repeat(x, n) {\n var s = '';\n for (;;) {\n if (n & 1) s += x;\n n >>= 1;\n if (n) x += x;\n else break;\n }\n return s;\n}", "title": "" }, { "docid": "d204c59e6cae5fba627a5b6416caa751", "score": "0.5463631", "text": "function repeat(n, character) {\n return Array(n + 1).join(character)\n}", "title": "" }, { "docid": "4712b9d7d7e538f58abf6e37d0db69ab", "score": "0.5456575", "text": "function spinWords(inputStr) {\n const inputArr = inputStr.split(' ');\n let newStr = '';\n inputArr.forEach(word => {\n if (word.length >= 5) {\n newStr += word.split('').reverse().join('') + ' ';\n }\n else {\n newStr += word + ' ';\n }\n });\n const outputStr = newStr.substring(0, newStr.length-1);\n return outputStr;\n}", "title": "" }, { "docid": "00e9b9c2b6007cdbd2683295b8476f2b", "score": "0.5455289", "text": "function flipOver(str){\n let reversedStr = '';\n let i = str.length - 1;\n for (; i >= 0; i--) {\n reversedStr += str[i];\n }\n console.log(reversedStr);\n}", "title": "" }, { "docid": "962b42dbd5331535ddda1662dfaeb473", "score": "0.5450804", "text": "function encrypt(text, n) {\n if (text === null || n === null || n <= 0) {\n return text;\n }\n\n for (i = 0; i < n; i++) {\n output = \"\";\n let odds = \"\";\n let evens = \"\";\n textArr = text.split(\"\");\n\n textArr.map(function(value, index) {\n if (index % 2 == 0) {\n evens += value;\n } else {\n odds += value;\n }\n });\n output = odds += evens;\n text = output;\n }\n return output;\n}", "title": "" }, { "docid": "cab4d208949fe203a84d71cff47640db", "score": "0.5433451", "text": "function StringFill(c, n) {\n\n\ts=\"\"\n\n\twhile (--n >= 0) {\n\n\t\ts+=c\n\n\t}\n\n\treturn s\n\n}", "title": "" }, { "docid": "32b67cfd7fe79d5898f1de607a011347", "score": "0.5430587", "text": "function scale(strng, k, n) {\n // if the string is empty, return an empty string\n if (strng === '') return '';\n // split the string using '\\n' as the seperator\n return strng.split('\\n')\n // map through the split array creating an array of length 'n' for each of them\n .map((substring) => Array(n)\n // fill each value of this array with the substring using the spread operator\n .fill([...substring]\n // map through each element of the array\n // split into letters and repeat each letter 'k' times\n .map((letter) => letter.repeat(k))\n // join repeated letters back into the substring string\n .join(''))\n // join the substrings together using '\\n' as the seperator\n .join('\\n'))\n // join each value of the array into a string using '\\n' as the seperator\n .join('\\n');\n}", "title": "" }, { "docid": "bedbeda895538dc30b5dd602762956ba", "score": "0.54256135", "text": "function spinWords(str){\n // add each word to an array\n var arr = str.split(' ');\n\n for (var i = 0; i < arr.length; i++) {\n // if the word has 5 or more letters\n if (arr[i].length >= 5) {\n var word = arr[i];\n // split that word into a new array, reverse it, and put it back together\n arr[i] = word.split('').reverse().join('');\n }\n }\n // return new string\n return arr.join(' ');\n}", "title": "" }, { "docid": "e3b12bc87eaa59d43c0765ed798cd831", "score": "0.54240304", "text": "function cyclerate(str, n) {\n\tvar sum = 0; var count = 0;\n\tfor (var i=0; i<str.length-n+1; i++) {\n\t\tcount++;\n\t\tvar u = {};\n\t\tfor (var j=i; j<i+n; j++) {\n\t\t\tu[str.charAt(j)] = true;\n\t\t}\n\t\tsum += dcount(u)/n;\n\t}\n\t\n\treturn sum/count;\n\t\n}", "title": "" }, { "docid": "1c015efc7a145ba7a1fb42eed9ed877a", "score": "0.5420019", "text": "function reverseHalfI(s) {\n s = s.split('');\n var len = s.length,\n halfIndex = Math.floor(len / 2) - 1,\n tmp;\n for (var i = 0; i <= halfIndex; i++) {\n tmp = s[len - i - 1];\n s[len - i - 1] = s[i];\n s[i] = tmp;\n }\n return s.join('');\n}", "title": "" }, { "docid": "5d324d4cc34c2fc0a107291b5ebb5f4f", "score": "0.54129064", "text": "function repeat(n, f) {\n return (...args) => Array(n).join(' ').split(' ').map(() => f(...args))\n}", "title": "" }, { "docid": "a0ac04ed4f78ad5607d2ae0ffa1e4590", "score": "0.5410546", "text": "flip(input){\n let str = '';\n\n input.split('').forEach(letter => {\n str += letter === 'A' ? 'Z' : 'A';\n });\n\n return str;\n }", "title": "" }, { "docid": "090b4680c5da0ba12074d9ca592f97d8", "score": "0.53884625", "text": "function revrot(str, sz) {\n if (str === '' || sz === 0) return '';\n const split = [];\n for (let i = 0; i < str.length; i += sz) {\n if (str.slice(i, i + sz).length === sz) {\n split.push(str.slice(i, i + sz));\n }\n }\n return split.map((item) => (item.split('').reduce((acc, num) => parseInt(num ** 2) + acc, 0) % 2 === 0\n ? item.split('').reverse().join('')\n : `${item.slice(1)}${item[0]}`)).join('');\n}", "title": "" }, { "docid": "13bcf66cf069a7449916030cf7bd96f4", "score": "0.5374482", "text": "function encryption(s) {\n const ceil = Math.ceil(Math.sqrt(s.length));\n\n let temp = s;\n let array = [];\n\n while (temp) {\n array = array.concat(temp.substring(0, ceil));\n temp = temp.substring(ceil)\n }\n\n let result = [];\n\n for (let i = 0; i < ceil; i++) {\n result = result.concat(\n array.reduce((r, v) => {\n return r + (v[i] || \"\")\n }, \"\")\n )\n };\n return result.join(' ');\n\n}", "title": "" }, { "docid": "1bef2e177c8bf2b207d5134c5f000e01", "score": "0.53205174", "text": "function flipPairs(string) {\n\t//create outputString variable\n\tlet outputStr = '';\n\t//iterate over the input string\n\tfor (var i = 0; i < string.length; i++) {\n\t\t//create variable aliases\n\t\tlet character = string[i];\n\t\tlet character1 = '';\n\t\tlet character2 = '';\n\t\tlet pair = '';\n\t\t//if character index is an even number, assign it as the 2nd pair value\n\t\tif (Number.isInteger(i/2) === true) {\n\t\t\tcharacter2 = character;\n\t\t\t//assign 1st pair value from the odd-numbered character index\n\t\t\tcharacter1 = string[i+1];\n\t\t};\n\t\t//if beyond the length of the string, leave character1 out of the pair\n\t\tif (character1 === undefined) {\n\t\t\tpair = character2;\n\t\t} else {\n\t\t\t//pair is equal to both re-assigned characters\n\t\t\tpair = character1 + character2;\n\t\t};\n\t\t//add each pair to outputString\n\t\toutputStr += pair;\n\t\t// console.log(outputStr);\n\t};\n\t//return outputString variable\n\treturn outputStr;\n}", "title": "" }, { "docid": "83fc0ce4d9476dd9c2cac0595b8b0a00", "score": "0.5319028", "text": "function padding_right(s, c, n) {\n if (!s || !c || s.length >= n) {\n return s;\n }\n var max = (n - s.length) / c.length;\n for (var i = 0; i < max; i++) {\n s += c;\n }\n return s;\n}", "title": "" }, { "docid": "ff3a48b06114f74fd12c0e21fceac6ba", "score": "0.5314632", "text": "function halfPyramid(n) {\n let str = \"\";\n for (let i = 0; i < n; i++) {\n str += '#'.repeat(i + 1) + \"\\n\";\n }\n return str;\n}", "title": "" }, { "docid": "412c9d2547eb0c1a4e28a6bb049d4a87", "score": "0.53115666", "text": "function padding_right(s, c, n) {\n if (! s || ! c || s.length >= n) {\n return s;\n }\n var max = (n - s.length)/c.length;\n for (var i = 0; i < max; i++) {\n s += c;\n }\n return s;\n}", "title": "" }, { "docid": "9c2a8c3d1844f56f042946cadc1cebe3", "score": "0.53018045", "text": "function repeatedString(s, n) {\n let initialNbOfa = 0;\n let totalNbOfa = 0;\n\n for (const letter of s) {\n if (letter === 'a')\n initialNbOfa ++;\n }\n\n totalNbOfa = initialNbOfa * parseInt(n / s.length);\n\n const remainingString = s.substr(0, n % s.length);\n\n for (const letter of remainingString) {\n if (letter === 'a')\n totalNbOfa ++;\n }\n\n return totalNbOfa;\n}", "title": "" }, { "docid": "075023a0907bab9672db8825ce9039c3", "score": "0.5300633", "text": "function string_copies (str, n) \n{\n if (n < 0)\n return false;\n else\n return str.repeat(n);\n}", "title": "" }, { "docid": "df8e1c49e0f195dd5feae6cf627d1fff", "score": "0.5298472", "text": "function reverseStr(string){\n var n=string.length-1\n var x= \"\"\n var y=1\n while (n>=0){\n var x= x +string.charAt(n)+y\n\n n=n-1\n y++\n \n }\n return x \n}", "title": "" }, { "docid": "092e43c344ded938b8508d9cf4f0f5e9", "score": "0.5296587", "text": "function spinWords(str){\n let array = str.split(\" \");\n for (let i = 0 ; i < array.length ; i++) {\n if (array[i].length >= 5) {\n array[i] = array[i].split(\"\").reverse().join(\"\");\n }\n }\n return array.join(\" \")\n}", "title": "" }, { "docid": "b42ff3a7b2ca65fdbdca5751089c31da", "score": "0.529642", "text": "function truncate(str, n) {\n if (n < 3) return \"Truncation must be at least 3 characters.\"\n if (str.length < n) return str\n\n return str.slice(0,n-3).concat(\"...\")\n\n}", "title": "" }, { "docid": "1b271604a8e3344243db9eef8ce8f22e", "score": "0.528597", "text": "function splitN(str, n) {\n console.assert(n >= 0);\n var parts = str.split(SEP);\n var res = parts.slice(0, n-1);\n if (parts.length >= n) {\n res.push(parts.slice(n-1).join(SEP));\n }\n return res;\n}", "title": "" }, { "docid": "7d8eb46c3f054c65c365d1b977eddbd9", "score": "0.52848107", "text": "function reverse3(str) {\n str = str.split('');\n var len = str.length,\n halfIndex = Math.floor(len / 2) - 1,\n revStr;\n for (var i = 0; i <= halfIndex; i++) {\n revStr = str[len - i - 1];\n str[len - i - 1] = str[i];\n str[i] = revStr;\n }\n return str.join('');\n }", "title": "" }, { "docid": "9b13ebc1e235a74aba8ff4d1369620f2", "score": "0.52824205", "text": "function string_copies (str, n) \r\n{\r\n if (n < 0)\r\n return false;\r\n else\r\n return str.repeat(n);\r\n}", "title": "" }, { "docid": "1fce897c2390957f41d8e3144ac9cf51", "score": "0.5282268", "text": "function shortenString(str,n)\r\n{\r\n\t if(str.length > n)\r\n\t {\r\n\t\t var s = str.substr(0, n);\r\n\t\t var ls = s.lastIndexOf(' ');\r\n\t\t str = s.substr(0,ls);\r\n\t }\r\n\t return str;\r\n}", "title": "" }, { "docid": "8498d88104cf4474972ddc6b6212e6b9", "score": "0.5279725", "text": "function alphabeticShift(inputString) {\n let alphabet = 'abcdefghijklmnopqrstuvwxyz';\n \n return inputString.split('').map(letter => alphabet[(alphabet.indexOf(letter) + 1) % 26]).join('');\n}", "title": "" }, { "docid": "6d55a4dfd2b4f26ec9618dad9f52257b", "score": "0.52725613", "text": "function staircase(n) {\n let staircasePrint = \"\";\n for (let i = 1; i <= n; i++) {\n staircasePrint = (\" \").repeat(n - i) + (\"#\").repeat(i);\n console.log(staircasePrint);\n }\n}", "title": "" }, { "docid": "e8c6efb140ccc47ad9fed09f8795ba7a", "score": "0.52674204", "text": "function reverseString5(str) {\r\n let revStr = \"\";\r\n str.split(\"\").forEach(function(char) {\r\n revStr = char + revStr;\r\n });\r\n return revStr;\r\n}", "title": "" }, { "docid": "84ebedf76906017b1361722c1fbf6f5a", "score": "0.52582663", "text": "function fixInputLength(s) {\n var i, n;\n for (i = 0; i < length; i++) s = ' ' + s;\n n = length - (s.length % length);\n for (i = 0; i < n; i++) s += ' ';\n return s;\n }", "title": "" }, { "docid": "f588c7c4d0079322a1e978d9a1331c67", "score": "0.5252066", "text": "function staircase(n) {\n const zeroBasedLength = n - 1;\n for (let i = 0, len = n; i < len; i++) {\n // let spaces = Array(12 + 1).join(\" \")\n // make 1 based fit with 0 based\n const spaces = \" \".repeat(n - (i + 1))\n const pounds = \"#\".repeat(i + 1)\n console.log(`${spaces}${pounds}`)\n }\n}", "title": "" }, { "docid": "176867a8ebc09400d096a1ca1fcc1c65", "score": "0.5247022", "text": "flip(input){\n let finalWord =[];\n input.split('').forEach( i =>{ i === 'Z'? finalWord.push('A') : finalWord.push('Z')})\n return finalWord.join('');\n }", "title": "" }, { "docid": "95bca1eeea85c0b0f9e5dc3e0710ff22", "score": "0.5235112", "text": "function spinWords(str) {\n \n const splitStr = str.split(' ');\n\n const newStr = splitStr.map((word) => {\n if (word.length >= 5) {\n return word.split('').reverse().join('');\n } else {\n return word;\n }\n });\n return newStr.join(' ');\n}", "title": "" }, { "docid": "636d278badddcbadcc3864d308e77e98", "score": "0.5232653", "text": "function repeatStr(Str,n){\nif(n===0){\n\n return \" \";\n}\nreturn ( Str+\" \"+repeatStr(Str,n-1))\n}", "title": "" }, { "docid": "d0d9a6339334b95722b0105fe13bcc67", "score": "0.52313405", "text": "function fiveLine(s){\n let sTrimmed = s.trim();\n let finalStr = '';\n\n for (let i = 1; i <= 5; i++) {\n if(i === 5) finalStr += `${sTrimmed.repeat(i)}`\n else finalStr += `${sTrimmed.repeat(i)}\\n`\n }\n return finalStr\n}", "title": "" } ]
5f1315c36c42e81d1f97275dbe8afe9a
import Hello from "./components/Hello";
[ { "docid": "bffc31194123f6eabafbcd821fd45a29", "score": "0.0", "text": "function App() {\n \nconst [values, setValues] = useState({\n firstName:\"\",\n email:\"\",\n password:\"\"\n});\n// const [showHello, setShowHello]= useState(true);\n\n//We will learn that useeffect (depends on State change as well as component mount) is used to for useEffect fn be called lesser by adding an array of dependency and do cleanup after loading of components\n// By default useEffect depends on all the states value changes but we can add an array of dependecies to call useEffect only on change of specific value in a state/ ex: [values.password, values.firstName]\n// or complete state like [values] so that useffect is not called on change of other states\n// useEffect is used to replace the old way of componentDidMount and ComponentDidUnmount\n// dependacy [] means dependacy is none that call useEffect only when it mounts wheras dependancy not mentioned means depends on all states\n// cleanup fn is return function of useeffect, and is called when a conponent is unmounted or old value of a state is cleaned which happens everytime we set a new value to a state\n// useEffect is triggered when state of anything in app changes, component is mounted and unmounted(clean up fn calleld), and when event listeners(mouseOver) are called inside useEffect\n// Till now all was basic now lets learn some use cases and make regular apps using it \n// 1. Events\n// 2. Having multiple useEffect on a component and they fireoff in order\n// 3. Fetch from an API url along \n// 4. to change data when API url changes\n// 5. useeffect can be called infinite times if we mistakly call a dependency to be changed in useeffect fn\n// 6. Local Storage localStorage.setItem('itemname', itemvalue); and localStorage.getItem(itemName);\n\n// useEffect(() => {\n// console.log(\"render\");\n// return () => {\n// console.log(\"unmount\");\n// }; \n// }, [values.password, values.firstName]);\n\n // useEffect(() => {\n // function onMouseOver(e){\n // console.log(e);\n // }\n // window.addEventListener(\"mouseover\",onMouseOver);\n // console.log(\"mounted\");\n // //control will stay here until component is unmounted and keep listening for event\n // return ()=> {\n // window.removeEventListener(\"mouseover\",onMouseOver);\n // };\n // },[]);\n\n // useEffect(() => {\n // console.log(\"useEffect 2 called\"); \n // return () => {\n // console.log(\"unmounted\");\n // }\n // },[]);\n\n const [count, setCount]= useState(() => JSON.parse(localStorage.getItem(\"count\")));\n const {data, loading}= useFetch('http://numberapi.com/'+count+'/trivia/');\n \n useEffect(() => {\n localStorage.setItem(\"count\", JSON.stringify(count));\n },[count]);\n\n function changeValues(event){\n const {name ,value}= event.target;\n setValues((prevValues) => {\n return({\n ...prevValues,[name]:value \n }) });\n }; \n \n return (\n <div className=\"App\">\n <header>\n <h1>Learn Useeffect</h1>\n </header>\n <div> {loading ? <h4>\"data is loading\"</h4> : <h4>{data}</h4> } </div>\n <button onClick={() => setCount(count+1)}>Increase</button>\n <button onClick={() => setCount(count-1)}>Decrease</button>\n {/* <button onClick={ () => setShowHello(!showHello)} >Toggle</button>\n {showHello && <Hello />} */}\n <input type=\"text\" placeholder=\"firstName\" name=\"firstName\" value={values.firstName} onChange={changeValues} /> \n <input type=\"text\" placeholder=\"email\" name=\"email\" value={values.email} onChange={changeValues} />\n <input type=\"text\" placeholder=\"password\" name=\"password\" value={values.password} onChange={changeValues} />\n </div>\n );\n}", "title": "" } ]
[ { "docid": "a4f0fcbea49e2161e555321b25f7cff4", "score": "0.69753623", "text": "function HelloReact() {\n return (\n <div className=\"message\">\n this component is created in HelloReact\n </div>\n );\n}", "title": "" }, { "docid": "4cc950550364b00d891d0d4222a9ff86", "score": "0.6930739", "text": "function Hello(props) {\r\n return (\r\n <div class=\"hello\">Hello Component - Hello {props.name}</div>\r\n );\r\n}", "title": "" }, { "docid": "08eb1b314f9386a6e97d20dd7d967c51", "score": "0.6866491", "text": "function App() {\n return <HelloDiv />;\n}", "title": "" }, { "docid": "b0a9a0984f75108b25ba86cfc63a3c56", "score": "0.6857793", "text": "function HelloWorld(props) {\n return (\n <App />\n );\n}", "title": "" }, { "docid": "104d2d205aca59d8a2934c4c43fc9f27", "score": "0.6838803", "text": "function App() {\n return (\n //JSX=>needs to import React\n <div >\n Hello Worldfff\n </div>\n );\n}", "title": "" }, { "docid": "1a552892410d2affbe18b6af565ffcc1", "score": "0.6835911", "text": "render() {\n return (\n <div className=\"Hello\"><h1>Hi Class Component</h1></div>\n );\n }", "title": "" }, { "docid": "dbe4ec6cb78f33d3cf8e249edb976cc0", "score": "0.6805672", "text": "function Hello(props) {\n return <h1>Hello {props.name}</h1>;\n}", "title": "" }, { "docid": "8925bc915d8da406c86cbcef1dc9a4dc", "score": "0.67752177", "text": "render() {\n return (\n <h1>HelloWorld</h1>\n );\n }", "title": "" }, { "docid": "37a57fb8157dd38249ff05038b841012", "score": "0.6708921", "text": "function Hi() {\n return <App/> \n}", "title": "" }, { "docid": "afff9d3b0844f07970b5f528710ff2ab", "score": "0.66529757", "text": "function App() {\n return (\n <div className=\"App\">\n <Greet />\n </div>\n );\n}", "title": "" }, { "docid": "748579026065bbffc2cf98dd9df36ec1", "score": "0.662178", "text": "function Test() {\n return (\n <h1>Hi, I'm Test component</h1>\n );\n}", "title": "" }, { "docid": "f63bc8e7acbba4ce073829f2546bca13", "score": "0.6590899", "text": "function HelloReact() {\n return (\n <div className=\"container\">\n Hello React!\n {/*Another imported component*/}\n <Counter/>\n </div>\n )\n}", "title": "" }, { "docid": "427ca768b2b43cd0acd136ec080083f8", "score": "0.656853", "text": "function SampleComponent() {\n return <h1>Hello World</h1>;\n}", "title": "" }, { "docid": "a0b15e72886664b16ce3ca3c18c4f596", "score": "0.65471345", "text": "function App() {\r\n return (\r\n <div>\r\n <div class=\"container\">\r\n <div class=\"app\">App Component - contains Hello and Goodbye</div>\r\n <Hello name=\"React code in Script3.js\" />\r\n <Goodbye name=\"React component code in body\" />\r\n </div>\r\n </div>\r\n );\r\n}", "title": "" }, { "docid": "307bebd9d949ded56812ffc094a692da", "score": "0.65120554", "text": "render() {\n console.log(`component WelcomeComponent da dc render`);\n return(\n <h1> Welcome you !</h1>\n )\n }", "title": "" }, { "docid": "05dfc62c982d8b0b4dde8bd4e3a9b933", "score": "0.64862424", "text": "function MyComponent() {\r\n return <div>Hello</div>;\r\n}", "title": "" }, { "docid": "f03c5e30800a3468dc99560e5a05e0c8", "score": "0.64754623", "text": "function Home() {\n\treturn (\n <div className=\"container\">\n\t\t\t\t<Hello />\n\t\t\t\t\n \n </div>\n );\t\n}", "title": "" }, { "docid": "ff8b9908efd1f66dcbf8905779057880", "score": "0.6437247", "text": "render() {\n return <Welcome />\n }", "title": "" }, { "docid": "f5f7b2ec9dad0ca88917b73f0307cc62", "score": "0.642312", "text": "render(props) {\n return (\n <div>{props.hello}</div>\n )\n }", "title": "" }, { "docid": "39e0f665cdb2e6912c06f440db9a8779", "score": "0.6406626", "text": "render() {\n return(<h1>Hello World!!!</h1>);\n }", "title": "" }, { "docid": "925d26ee413ae58c376d50b14caf19d7", "score": "0.63799137", "text": "function SecondComponent() {\n return (\n <>\n <h1>Soy otro componente</h1>\n </>\n )\n}", "title": "" }, { "docid": "5e51e6bb006384c73ee5513031e60aa0", "score": "0.6354775", "text": "function Hello() {\n return <div><p>Hello React!</p> <p>Aarav is my name.</p></div>;\n}", "title": "" }, { "docid": "7b03bea28c3e94ab59f092e52695c1aa", "score": "0.62926835", "text": "function App(){\n\n return<TechList /> \n //<h1>Hello Rocketseat</h1> // usando sintaxe JSX - É necessario importar o react\n}", "title": "" }, { "docid": "faf17849320d00d4a5e713fb3b13b121", "score": "0.6266139", "text": "function App() {\n return (\n <div className=\"App\">\n hello world\n </div>\n );\n}", "title": "" }, { "docid": "b6f33c3cf3fca5531d0c737b5b209b7d", "score": "0.62630945", "text": "render() {\r\n return <h1> I am a Heading Component</h1>\r\n }", "title": "" }, { "docid": "ac5cb8163ce543305d10f9a7d60740fd", "score": "0.6244444", "text": "function Welcome(props) {\n return <h1>Welcome !</h1>;\n}", "title": "" }, { "docid": "4031def8a136516fcb17b087a44e07fb", "score": "0.62435824", "text": "function Welcome(props) {\n return <h1>Hello, {props.name}</h1>;\n}", "title": "" }, { "docid": "4031def8a136516fcb17b087a44e07fb", "score": "0.62435824", "text": "function Welcome(props) {\n return <h1>Hello, {props.name}</h1>;\n}", "title": "" }, { "docid": "d9999735c966b3e274592e9821569c7c", "score": "0.6228362", "text": "function Welcome(props) {\n return <h1>Hello, {props.name}</h1>;\n}", "title": "" }, { "docid": "609aa9e648c34066eb714a1a4c48f966", "score": "0.62135214", "text": "function Home(props) {\n return <h1>Home</h1>;\n}", "title": "" }, { "docid": "7818e38d270bfced57c7ce7373fe839e", "score": "0.61943525", "text": "render() {\n return (\n <div>\n\t\t\t<p>Hello Universe!!</p>\n\t\t\t<p>We are ready to start with React js</p>\n </div>\n );\n }", "title": "" }, { "docid": "01fe67d74a13cdb6b61c3c8fe1717afa", "score": "0.6184633", "text": "component() {\n return import(/* webpackChunkName: \"about\" */ '../views/About.vue');\n }", "title": "" }, { "docid": "49be43f726d2c644773fffeff1fd5a6c", "score": "0.617687", "text": "function App() {\n return (\n // <Habit />\n <h1>hello!!!</h1>\n );\n}", "title": "" }, { "docid": "17a92776fbd465971ea28dd2a893a480", "score": "0.61583275", "text": "render() {\n return (\n <div className=\"App\">\n <h1>My React App</h1>\n <p>This is really working</p>\n </div>\n );\n // Above jsx in return stmt gets compiled into the following and thus React import is mandatory\n // return React.createElement('div',null,'h1','My React App')\n // return React.createElement('div',{className:'App'},React.createElement('h1',null,'My React App'))\n }", "title": "" }, { "docid": "7a4d5fb3dfb4c5045033d306bb615047", "score": "0.61361426", "text": "render() {\n return <h1>Hello, {this.props.name}</h1>;\n }", "title": "" }, { "docid": "beab26543dbac737ec8ee2afb48761da", "score": "0.6123083", "text": "function Hi(props) {\n return <div>\n <h3>Hi {props.name}</h3>\n </div>;\n}", "title": "" }, { "docid": "0b7ade555fed525c7f72943d008eafb6", "score": "0.6117777", "text": "function Example(){\n const example = 'Hello Function Component!';\n return <h1>{example}</h1>;\n}", "title": "" }, { "docid": "f5dd4d0b65d816d4554eb91e847a2fe2", "score": "0.610794", "text": "function App() {\n return (\n<div>\n\n<Homepage />\n\n</div>\n\n );\n}", "title": "" }, { "docid": "2de9a4e01d0c4bff7b782dc1f75d4e9e", "score": "0.61009496", "text": "function App() {\r\n\treturn <Example/>;\r\n}", "title": "" }, { "docid": "e8069dace1d600fbf2d34816e290ce7b", "score": "0.60808957", "text": "function App() { \n return (\n <div className=\"app\">\n\n </div>\n);\n}", "title": "" }, { "docid": "4effe9276d17e9836aea5719a0315d1d", "score": "0.607915", "text": "render() {\n return (\n <div>React JS and JSX in action!</div>\n )\n }", "title": "" }, { "docid": "d2e46e9d43a198098381507282f2b5b4", "score": "0.6077614", "text": "function App() {\n return (\n <div>\n App\n </div>\n );\n}", "title": "" }, { "docid": "2926da01d62d82af5c47993b1f402a8e", "score": "0.60604745", "text": "function App() {\n return (\n <div className=\"App\">\n <NewComponent/>\n </div>\n );\n}", "title": "" }, { "docid": "aa13f4951c8ecbda47b0694bc6fcd4ae", "score": "0.60459924", "text": "render() {\n return <div className=\"container\">Hello</div>;\n }", "title": "" }, { "docid": "f009eb54e5c82ab70518e190e4bed957", "score": "0.6039477", "text": "function App() {\n return (\n <div>Hola Mundo!</div>\n );\n}", "title": "" }, { "docid": "18ec4985d3bff7e9e40a0e37c64a2f14", "score": "0.60389775", "text": "function App() {\n return <div className=\"reactApp\" />;\n}", "title": "" }, { "docid": "42c0a171b4ac5d0d93ac1279aa435196", "score": "0.6017706", "text": "function App() {\n //Write JavaScriopt here\n\n\n return (\n <div className=\"App\">\n <h1>Hello React </h1>\n <div className=\"home\">\n <Nav />\n <Tweets />\n </div>\n </div>\n );\n}", "title": "" }, { "docid": "7949d247a5b20967d42b05da1567a74f", "score": "0.60173076", "text": "function App() {\n return (\n <Container>\n <NavBarComponent />\n\n <h1>hello</h1>\n </Container>\n );\n}", "title": "" }, { "docid": "729ca6dc0e23a96cf6d18052e6eda3f4", "score": "0.5996433", "text": "function App() {\n return (\n <div className=\"App\">\n\n </div>\n );\n}", "title": "" }, { "docid": "423d7e387baf2e20c9e40bba8c05b505", "score": "0.599453", "text": "function Welcome(props) {\n\treturn <h1>Hello {props.name}</h1>\n}", "title": "" }, { "docid": "6500af2ddf58331e5fc4b20c1aae89bb", "score": "0.5993904", "text": "function Hello3(props) {\n return (\n <>{props.children}</> \n )\n}", "title": "" }, { "docid": "ea9016dd076d297d435c4a95aa275f11", "score": "0.5989166", "text": "function App() {\n return (\n <>\n <h1> Reactjs - Single page Web App 🚀 </h1>\n <h2> Github users </h2>\n\n <User></User>\n </>\n );\n}", "title": "" }, { "docid": "124b1f2dbcdeab1475c089a9d949644d", "score": "0.59795034", "text": "componentDidMount() {\n // alert(\"se acaba de cargar el componente\")\n }", "title": "" }, { "docid": "032e04783069c4fe7863aa9455c55a69", "score": "0.59744716", "text": "function ThirdComponent() {\n return (\n <Fragment>\n <h1>¡Aquí el tercer componente!</h1>\n </Fragment>\n )\n}", "title": "" }, { "docid": "92da2243fa41ec6cc92ede7be25470c6", "score": "0.5969295", "text": "render() {\n return (\n <div className=\"WelcomeComponent child-component\">\n <h1>Welcome!</h1>\n <p>\n Welcome to the Success Academy string edit distance app using the\n Levenshtein Distance Metric. <em>Redefining what's possible.</em>\n </p>\n </div>\n );\n }", "title": "" }, { "docid": "2a5899ec12cf3b69f53306377d9f8c80", "score": "0.5967903", "text": "function Index() {\n return <Homepage />;\n}", "title": "" }, { "docid": "c3d83ba1bbcc5aa4704552ac0a618505", "score": "0.5952593", "text": "function Welcome(props) {\n return <h2>Hi, {props.name}!</h2>;\n}", "title": "" }, { "docid": "12c00d5cb97ad4da1c965a0ea65632fa", "score": "0.5951235", "text": "function HelloWorld() {\n\treturn (\n\t\t<h1>\n\t\t\t<strong>\n\t\t\t\t<u>\n\t\t\t\t\tHello world with jsx in a function that runs with jsx\n\t\t\t\t</u>\n\t\t\t</strong>\n\t\t</h1> \n\t)\n}", "title": "" }, { "docid": "637223cc3b6475da8a3cc945933479d3", "score": "0.5925046", "text": "function HelloWorld ({message}){\n return <div>Hello{message}</div>\n}", "title": "" }, { "docid": "f8b92075c9b42b003d89b573f45bd6a5", "score": "0.59204745", "text": "render() {\n return (<h1>Hello World!!!!!!!!!!!!!!!!!!?????</h1>);\n }", "title": "" }, { "docid": "c6afbfa0052099c42b62c43a8736bd48", "score": "0.5918826", "text": "function Hello() {\n return <p>Hello World</p>;\n}", "title": "" }, { "docid": "743939527e05807f0f8158f1a3d22bc1", "score": "0.59161675", "text": "function App() {\n return <div ClassName=\"App\">\n <Route exact path=\"/\" component={Home} />\n <Route path=\"/projects\" component={Projects} />\n <Route path=\"/about\" component={About} />\n </div>;\n}", "title": "" }, { "docid": "0869aa0bed07427f59b1176a2de8b905", "score": "0.5906449", "text": "render() {\n return (\n <h1>Hello World!!!!!!!!!! OMG LIVE RELOADING</h1>\n );\n }", "title": "" }, { "docid": "2ff4b4c45774723de0b8aebf8a5d3c06", "score": "0.58982706", "text": "function App(){\n return(\n <Routes />\n\n );\n}", "title": "" }, { "docid": "0da679b2ade59d729a54a5509d800fc6", "score": "0.58982176", "text": "function include(path) {\nreturn () => import('@/components/' + path)\n}", "title": "" }, { "docid": "78a66cdf7103fb533591b622ce048feb", "score": "0.5894452", "text": "function App() {\n return (\n <div className=\"App\">\n <Peoples/>\n </div>\n );\n}", "title": "" }, { "docid": "0b2f2a07c58d881b84739b1bd5261233", "score": "0.5884094", "text": "function App() {\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<header className=\"App-header\">\n\t\t\t\t<img src={logo} className=\"App-logo\" alt=\"logo\" />\n\t\t\t\t<TestComponent url=\"https://jsonplaceholder.typicode.com/users\" />\n\t\t\t\t<p>\n\t\t\t\t\tEdit <code>src/App.js</code> and save to reload.\n\t\t\t\t</p>\n\t\t\t\t<a className=\"App-link\" href=\"https://reactjs.org\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t\tLearn React\n\t\t\t\t</a>\n\t\t\t</header>\n\t\t</div>\n\t);\n}", "title": "" }, { "docid": "28f5c5e7f7712c2a4e0d1ed13eb0bbd5", "score": "0.58839864", "text": "getComponent(location, cb) { \n // React will fetch code for getComponent() and call the callback, cb\n System.import('./components/artists/ArtistCreate')\n .then(module => cb(null, module.default));\n // remember System.import('') - webpack will automatically modify the bundle that is generated to split off the module that is called\n // Gotcha's: cb(error argument,)\n // Note: Webpack manually scans for System.import() calls so a help function cannot be used to minimize this code whenusing webpack (b/c of limitations)\n }", "title": "" }, { "docid": "821a3e09939c9a5584933517c0d3a02e", "score": "0.5882846", "text": "function App() {\n return (\n <div>\n <Welcome name=\"Sean\" />\n <Clock />\n </div>\n );\n}", "title": "" }, { "docid": "a984c1643d431aece4d26db3b1e89a7d", "score": "0.58821625", "text": "function App() {\n return (\n <div>\n <h1>Hello, React</h1>\n <Greet whom=\"Alice\" />\n <Greet whom=\"Bob\" />\n <Greet whom=\"Cthulu\" />\n </div>\n );\n}", "title": "" }, { "docid": "9adaac42ad4ce84349e599c7db13871d", "score": "0.5879797", "text": "function App() {\n return (\n <div> \n <Routes />\n </div>);\n}", "title": "" }, { "docid": "91f54f70c336d15eed376bc67acd1f3b", "score": "0.5860724", "text": "render() {\n return <div></div>;\n }", "title": "" }, { "docid": "9832f5955e1505881b8d6d0280be7d25", "score": "0.58492744", "text": "render() {\n// A render method must contain a return statement. Usually, this return statement returns a JSX expression\n return <h1>Hello world</h1>;\n }", "title": "" }, { "docid": "5cbcb0b49f66dc2719aecc0a37c155a8", "score": "0.5846628", "text": "function App() {\n return (\n <PublicHome />\n );\n}", "title": "" }, { "docid": "c8a6ae03a73bd5387917289617c89bcf", "score": "0.5845799", "text": "function App() {\n return (\n <Routes />\n );\n}", "title": "" }, { "docid": "a1a94dc0c4b6197ee87e05d1b6a9eda0", "score": "0.5841919", "text": "function App() {\n return (\n <div className=\"App\">\n {/*<Table />*/}\n <Sticky />\n {/*<TableExamplePagination />*/}{/*https://www.geeksforgeeks.org/reactjs-importing-exporting/*/}\n {/*<Scroll />*/}\n </div>\n );\n}", "title": "" }, { "docid": "7e0edbf5bd324727ffd187a28c6c7e3a", "score": "0.5830446", "text": "function App() {\n return <div>\n <Hello/>\n <Button type=\"primary\">你好啊</Button>\n </div>\n}", "title": "" }, { "docid": "a9e136586af53d57db2296a30f4eae0f", "score": "0.58229154", "text": "render() {\n // the \"render\" method required by \"component\" returns HTML https://www.w3schools.com/react/react_components.asp\n return ( // virtual DOM of REACT, so that you can insert HTML syntax below in a js file\n // ↓ \"class\" is a reserved word in js, so turn it into \"className\"\n\n <div className=\"App\">\n <header className=\"App-header\">\n <img src={logo} className=\"App-logo\" alt=\"logo\" />\n <p>\n Edit <code>src/App.js</code> and save to reload.\n </p>\n <a\n className=\"App-link\"\n href=\"https://reactjs.org\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Learn React\n </a>\n </header>\n </div>\n );\n }", "title": "" }, { "docid": "8fd7800f5b2c7c277681d1a1f2e1dd6c", "score": "0.58204025", "text": "function App(){\n return(\n <div>\n <ShoppingList name=\"demo\"/>\n </div>\n )\n}", "title": "" }, { "docid": "ed40a4b7dcffed2233b8a5a7b660f761", "score": "0.5817573", "text": "function Home() {\n \n return (\n <div>\n <h1>Home</h1>\n </div>\n );\n}", "title": "" }, { "docid": "aa0723134b15a7df5a26ec1901f45a68", "score": "0.5813571", "text": "function UserComponent(){\n console.log('User component')\n}", "title": "" }, { "docid": "c2d32b5e8de831cd19754a7413d1ac9d", "score": "0.58066386", "text": "function WelcomeTwo(props) {\r\n return <h1>Hello, {props.name}</h1>;\r\n}", "title": "" }, { "docid": "90a7c1ca12e571ad344a43deffdc35f1", "score": "0.57956", "text": "function App() {\n return (\n <Routes />\n );\n}", "title": "" }, { "docid": "4988fdbdbbaa3c66cf80da9a5761b818", "score": "0.5794952", "text": "function App() {\n\n \n return (\n <Routes />\n\n );\n}", "title": "" }, { "docid": "e4fd78f21505654d2d028a27d95784c9", "score": "0.57814705", "text": "async function getComponent() {\n const { join } = await import(/* webpackChunkName:\"app\", webpackPrefetch: true */ './app.js');\n const element = document.createElement('div');\n element.innerHTML = join(['dell', 'lee'], '-');\n return element;\n}", "title": "" }, { "docid": "b0901e51c49f779cecdfc72359407196", "score": "0.5770856", "text": "render() {\n return (\n <div>\n <h1>Hello errrbody</h1>\n </div>\n )\n }", "title": "" }, { "docid": "9209d4f9c0de4402208a8c5845a412eb", "score": "0.5769821", "text": "function Comp() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_src__WEBPACK_IMPORTED_MODULE_4__.default, {\n lilProject: _sampleReactProject__WEBPACK_IMPORTED_MODULE_5__.default\n }));\n}", "title": "" }, { "docid": "f7be7bdffaaeca035d9abdcba1ea3d97", "score": "0.5769731", "text": "render() {\n return <div />\n }", "title": "" }, { "docid": "027eb933a63800867c87a7166a156c20", "score": "0.57412523", "text": "function Home() {\n return (\n <div>\n <h1>Home</h1>\n </div>\n );\n}", "title": "" }, { "docid": "79c944e9d3509210931e3d1cfb907f88", "score": "0.5735449", "text": "function App() {\n\n return (\n <Routes/>\n );\n}", "title": "" }, { "docid": "95f60c062f6fb2b67aeed91c2e970cb6", "score": "0.57284206", "text": "function AlterHelloFromReact() {\n React.render(\n React.createElement('div', {className: 'altered'}, 'Altered Hello from React!'),\n document.getElementById('my-component')\n );\n}", "title": "" }, { "docid": "45a42a7c83f7bcb7d3f790e49d3f3fb1", "score": "0.5720527", "text": "function component() {\n let element = document.createElement('div');\n\n // Lodash, now imported by this script\n element.innerHTML = \"webpack 自动部署 热启动成功啦!\";\n element.classList.add(\"example\");\n return element;\n}", "title": "" }, { "docid": "1ec8df71aaa5f0265108d7d65ede47b4", "score": "0.571935", "text": "function HomePage() {\n return <TodoList />;\n}", "title": "" }, { "docid": "d0161a95e75dc4f9d7868d4c8101ea4d", "score": "0.5703575", "text": "function App() {\n return (\n <StarFruit />\n // <Chime />\n // <Test />\n );\n}", "title": "" }, { "docid": "184195558bab476e747b6729b2baa197", "score": "0.5702047", "text": "function App() {\n return (\n <div>\n Code goes here\n </div>\n )\n}", "title": "" }, { "docid": "09e6c593c92ff6c9a08d220b8200f676", "score": "0.57003325", "text": "function App() {\n return (\n <>\n <h1>POSITIONAL CHESS TRAINER</h1>\n </>\n \n );\n}", "title": "" }, { "docid": "f00a33a2cb6b493ced071bc00a2692e7", "score": "0.5690752", "text": "function App() {\n\n\n return (\n\n <Login>\n\n </Login>\n\n\n );\n}", "title": "" }, { "docid": "11334202683df020570e607e96cf0f9d", "score": "0.56856793", "text": "render(){\n return(\n <h1>Yet Another Knitting App is Here!</h1>\n );\n }", "title": "" }, { "docid": "895bc2500716b8423a7173a74c2a7122", "score": "0.5679911", "text": "function App() {\n return (\n <div className=\"App\">\n <JugatApp/>\n </div>\n );\n}", "title": "" }, { "docid": "8fe5dcc4726160479a8cbc95ed6018f3", "score": "0.5673436", "text": "function Welcome(props) {\n // props holds the properties (props) of a component\n return <Text>Hello, {props.name}</Text>\n}", "title": "" }, { "docid": "a6cb0934bef15c306533c28dc3da2976", "score": "0.5672933", "text": "render() {\n//todo add component view\n return (\n <div>\n PageTest\n </div>\n );\n }", "title": "" } ]
faba650866db5fadfe843a67dd70790d
Version 0.1 10/10/2006 Added E_STYLE_7 Version 0.2 17/05/2007 Added .isHidden() and .supportsHide() Version 0.3 14/09/2007 added .zindex()
[ { "docid": "0630eaab36608d07b77e335d5830feb1", "score": "0.0", "text": "function EStyle(stemImage, stemSize, boxClass, boxOffset){\r\n this.stemImage = stemImage;\r\n this.stemSize = stemSize;\r\n this.boxClass = boxClass;\r\n this.boxOffset = boxOffset;\r\n //this.border = border;\r\n // Known fudge factors are:\r\n // Firefox (1.0.6 and 1.5) 5, -1\r\n // IE 6.0 0, -1\r\n // Opera 8.54 3, -1\r\n // Opera 9 prev 4, -1\r\n // Netscape (7.2, 8.0) 5, -1\r\n // Safari 5, -1 \r\n\t// Chrome 0, -1\r\n var agent = navigator.userAgent.toLowerCase();\r\n var fudge = 5; // assume chrome if no match found\r\n if (agent.indexOf(\"chrome\") > -1) {\r\n fudge = 0;\r\n }else if (agent.indexOf(\"opera\") > -1) {\r\n fudge = 3;\r\n }else if (agent.indexOf(\"firefox\") > -1) {\r\n fudge = 5;\r\n }else if (agent.indexOf(\"safari\") > -1) {\r\n fudge = 5;\r\n }else if ((agent.indexOf(\"msie\") > -1) && (agent.indexOf(\"opera\") < 1)) {\r\n fudge = 0;\r\n }\r\n this.fudge = fudge;\r\n}", "title": "" } ]
[ { "docid": "aaeb8a4ca5d1c4d6f0c31a285dcdba31", "score": "0.6333481", "text": "function EZshow(el, trueFalse, useVisibility)\n{\n\tvar tags = EZgetEl(el,true);\t\t\t\t\t//=true to get all elements\n\tif (tags == null) return false;\n\t[].forEach.call(tags, function(el)\n\t{\n\t\tif (trueFalse == EZ.undefined) trueFalse = true;\n\t\tif (EZisFalseLike(trueFalse)) return EZhide(el, true, useVisibility);\n\n\t\tif (!el.EZorigStyle) el.EZorigStyle = \t\t//save display and visibilty style values\n\t\t{\n\t\t\tdisplay: EZgetStyle(el,'display'),\n\t\t\tvisibility: EZgetStyle(el,'visibility')\n\t\t}\n\t\twhile (!EZisShow(el))\t\t\t\t\t\t//if not currently showing\n\t\t{\t\t\t\t\t\t\t\t\t\t\t//1st try clearing el visibility style\n\t\t\tif (el.style.visibility == 'hidden') el.style.visibility = '';\n\t\t\tif (el.style.display == 'none')\tel.style.display = '';\n\t\t\tif (EZisShow(el)) break;\t\t\t\t//bail if that did the trick\n\n\t\t\t//next try visibility=visible if visibility prop originally defined now hidden\n\t\t\tvar visibility = EZgetCurrentStyleValue(el,'visibility');\n\t\t\tif (visibility == 'hidden' || el.EZorigStyle.visibility)\n\t\t\t\tel.style.visibility = 'visible';\n\t\t\tif (EZisShow(el)) \t\t\t\t\t\t//if that did it, cool...\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...save visibility for show if not yet saved\n\t\t\t\tif (!el.EZorigStyle.visibility) el.EZorigStyle.visibility = visibility;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//must use display property if still not showing...\n\t\t\tvar display = EZgetCurrentStyleValue(el,'display');\n\t\t\tif (el.EZorigStyle.display)\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...1st try original display style if definned\n\t\t\t\tel.style.display = el.display;\n\t\t\t\tif (EZisShow(el)) break;\n\t\t\t}\n\t\t\tif (display == 'none')\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...next try inherit\n\t\t\t\tel.style.display = 'inherit';\n\t\t\t\tif (EZisShow(el)) \t\t\t\t\t//if that did it, cool...\n\t\t\t\t{\t\t\t\t\t\t\t\t\t//...save display for show if not yet saved\n\t\t\t\t\tif (!el.EZorigStyle.display) el.EZorigStyle.display = display;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//http://stackoverflow.com/questions/6867254/browsers-default-css-for-html-elements\n\t\t\tvar tagDefault = \t\t\t\t\t\t//lastly use tag defaukt display style\n\t\t\t{\n\t\t\t\tli: \t 'list-item',\n\t\t\t\ttable: 'table',\n\t\t\t\tthead: 'table-header-group',\n\t\t\t\ttbody: 'table-row-group',\n\t\t\t\ttr: 'table-row',\n\t\t\t\ttd:\t\t 'table-cell',\n\t\t\t\tth: 'table-cell',\n\t\t\t\ttfoot: 'table-footer-group',\n\t\t\t\tcol: 'table-column',\n\t\t\t\tcolgroup: 'table-column-group',\n\t\t\t\tcaption: 'table-caption',\n\t\t\t\tinput:\t 'inline-block',\n\t\t\t\tselect: 'inline-block'\n\t\t\t}\n\t\t\ttagName = el.tagName || '';\n\t\t\tdisplay = tagDefault[tagName.toLowerCase()] || 'block';\n\t\t\tel.style.display = display;\n\t\t\tbreak;\n\t\t}\n\t})\n\treturn true;\t//convenience return value\n}", "title": "" }, { "docid": "aaeb8a4ca5d1c4d6f0c31a285dcdba31", "score": "0.6333481", "text": "function EZshow(el, trueFalse, useVisibility)\n{\n\tvar tags = EZgetEl(el,true);\t\t\t\t\t//=true to get all elements\n\tif (tags == null) return false;\n\t[].forEach.call(tags, function(el)\n\t{\n\t\tif (trueFalse == EZ.undefined) trueFalse = true;\n\t\tif (EZisFalseLike(trueFalse)) return EZhide(el, true, useVisibility);\n\n\t\tif (!el.EZorigStyle) el.EZorigStyle = \t\t//save display and visibilty style values\n\t\t{\n\t\t\tdisplay: EZgetStyle(el,'display'),\n\t\t\tvisibility: EZgetStyle(el,'visibility')\n\t\t}\n\t\twhile (!EZisShow(el))\t\t\t\t\t\t//if not currently showing\n\t\t{\t\t\t\t\t\t\t\t\t\t\t//1st try clearing el visibility style\n\t\t\tif (el.style.visibility == 'hidden') el.style.visibility = '';\n\t\t\tif (el.style.display == 'none')\tel.style.display = '';\n\t\t\tif (EZisShow(el)) break;\t\t\t\t//bail if that did the trick\n\n\t\t\t//next try visibility=visible if visibility prop originally defined now hidden\n\t\t\tvar visibility = EZgetCurrentStyleValue(el,'visibility');\n\t\t\tif (visibility == 'hidden' || el.EZorigStyle.visibility)\n\t\t\t\tel.style.visibility = 'visible';\n\t\t\tif (EZisShow(el)) \t\t\t\t\t\t//if that did it, cool...\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...save visibility for show if not yet saved\n\t\t\t\tif (!el.EZorigStyle.visibility) el.EZorigStyle.visibility = visibility;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//must use display property if still not showing...\n\t\t\tvar display = EZgetCurrentStyleValue(el,'display');\n\t\t\tif (el.EZorigStyle.display)\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...1st try original display style if definned\n\t\t\t\tel.style.display = el.display;\n\t\t\t\tif (EZisShow(el)) break;\n\t\t\t}\n\t\t\tif (display == 'none')\n\t\t\t{\t\t\t\t\t\t\t\t\t\t//...next try inherit\n\t\t\t\tel.style.display = 'inherit';\n\t\t\t\tif (EZisShow(el)) \t\t\t\t\t//if that did it, cool...\n\t\t\t\t{\t\t\t\t\t\t\t\t\t//...save display for show if not yet saved\n\t\t\t\t\tif (!el.EZorigStyle.display) el.EZorigStyle.display = display;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//http://stackoverflow.com/questions/6867254/browsers-default-css-for-html-elements\n\t\t\tvar tagDefault = \t\t\t\t\t\t//lastly use tag defaukt display style\n\t\t\t{\n\t\t\t\tli: \t 'list-item',\n\t\t\t\ttable: 'table',\n\t\t\t\tthead: 'table-header-group',\n\t\t\t\ttbody: 'table-row-group',\n\t\t\t\ttr: 'table-row',\n\t\t\t\ttd:\t\t 'table-cell',\n\t\t\t\tth: 'table-cell',\n\t\t\t\ttfoot: 'table-footer-group',\n\t\t\t\tcol: 'table-column',\n\t\t\t\tcolgroup: 'table-column-group',\n\t\t\t\tcaption: 'table-caption',\n\t\t\t\tinput:\t 'inline-block',\n\t\t\t\tselect: 'inline-block'\n\t\t\t}\n\t\t\ttagName = el.tagName || '';\n\t\t\tdisplay = tagDefault[tagName.toLowerCase()] || 'block';\n\t\t\tel.style.display = display;\n\t\t\tbreak;\n\t\t}\n\t})\n\treturn true;\t//convenience return value\n}", "title": "" }, { "docid": "d89b42d5103909935dd4ed3851858b7c", "score": "0.6330667", "text": "function intialHideShow() {\t\n $('#' + editableArea).css({ 'display': displayTypeBlock });\n // $('.box-2').css({'display':'none'}); \n $('.'+ imageViewBox).css({ 'display': displayTypeNone });\n $('#' + showPopUpForAddTitles).css({ 'display': displayTypeNone });\n $('#'+ richTextAreaFeild).css({ 'display': displayTypeNone });\n $('#'+ circleFocusId).css({ 'display': displayTypeNone });\n $('#' + imageEditSection).css({ 'display': displayTypeNone });\n $('#'+ videoUploadDivId).css({ 'display': displayTypeNone });\n $('#'+subTitleUploadFromLocalMechineId).css({ 'display': displayTypeNone });\n $('#'+stockImagesId).css({ 'display': displayTypeNone });\n $('#'+backGrndID).css({ 'display': displayTypeNone });\n $('#' + defaultActionTitle).css({ 'display': displayTypeBlock });\n}", "title": "" }, { "docid": "7282073fcb46d822ae4c318165babe1d", "score": "0.6196748", "text": "function setCorrectVisibilityFor(which)\n{\n if (hiddenByWaniKani(which))\n {\n // Don't touch visibility for things hidden by WaniKani.\n return;\n }\n\n if (isHidden(which)) // In this case, should be hidden\n {\n hide(which);\n }\n else\n {\n show(which);\n }\n}", "title": "" }, { "docid": "dabe067422f706a782cc088bc8e8ea68", "score": "0.6195294", "text": "function manageHide_clicked()\r\n{\r\n var dialog = domCreate_manageHidesWindow();\r\n var helperScript = domCreate_helperScript();\r\n var header = domCreate_manageHidesHeader();\r\n var ignoredThreadsDescription = domCreate_dialogDescription(); \r\n var sortButton = domCreate_sortButton();\r\n var deleteAllButton = domCreate_deleteAllIgnoreThreadsButton();\r\n var showHiddenControl = domCreate_showHiddenCheckbox();\r\n\r\n var ignoredStringsDescription = domCreate_ignoredStringsDescription();\r\n var tblIgnoredStrings = domCreate_ignoredStringsTable();\r\n tblIgnoredStrings = domCreate_populateIgnoredStringsTable(tblIgnoredStrings);\r\n\r\n var txtboxAddIgnoredString = domCreate_txtAddIgnoredString();\r\n var btnAddIgnoredString = domCreate_btnAddIgnoredString();\r\n var tblIgnoredThreads = domCreate_ignoredThreadsTable();\r\n tblIgnoredThreads = domCreate_populateIgnoredThreadsTable(tblIgnoredThreads);\r\n\r\n var okayButton1 = domCreate_closeButton();\r\n\tvar okayButton2 = domCreate_closeButton();\r\n\r\n dialog.innerHTML = '';\r\n dialog.appendChild(helperScript);\r\n\tdialog.appendChild(okayButton1);\r\n dialog.appendChild(header);\r\n dialog.appendChild(ignoredThreadsDescription);\r\n dialog.appendChild(showHiddenControl);\r\n\r\n // ignored threads\r\n dialog.appendChild(sortButton);\r\n dialog.appendChild(deleteAllButton);\r\n dialog.appendChild(tblIgnoredThreads);\r\n\r\n // ignored strings\r\n dialog.appendChild(ignoredStringsDescription);\r\n dialog.appendChild(txtboxAddIgnoredString);\r\n dialog.appendChild(btnAddIgnoredString);\r\n dialog.appendChild(tblIgnoredStrings);\r\n dialog.appendChild(okayButton2);\r\n\r\n dialog.style.zIndex = '99999999'; \r\n dialog.style.visibility = \"visible\";\r\n \r\n delete okayButton1;\r\n\tdelete okayButton2;\r\n delete showHiddenControl;\r\n delete sortButton;\r\n delete description;\r\n delete header;\r\n delete tblIgnoredThreads;\r\n delete tblIgnoredStrings;\r\n delete helperScript;\r\n delete dialog;\r\n}", "title": "" }, { "docid": "7ecdffcedc2bb6ddd88302ca0355e6c9", "score": "0.6139968", "text": "showHiddenMenu(index){\n if(document.getElementsByClassName(\"hiddenFunctions\")[index].style.display == \"none\"){\n document.getElementsByClassName(\"hiddenFunctions\")[index].style.display = \"block\";\n }else{\n document.getElementsByClassName(\"hiddenFunctions\")[index].style.display = \"none\";\n }\n }", "title": "" }, { "docid": "6e53a59ae1c4e1473ed3e1e82b5ee0be", "score": "0.61194265", "text": "function toggleshowhide()\n\t{\n\t\tobj = document.getElementsByTagName(\"div\"); \n\t\t//alert(obj);\n\t\tif (obj.help.style.visibility==\"visible\")\n\t\t{\n\t\t\tobj.help.style.visibility=\"hidden\";\n\t\t}\n\t\telse if(obj.help.style.visibility==\"hidden\")\n\t\t{\n\t\t\tobj.help.style.visibility=\"visible\";\n\t\t}\n\t}", "title": "" }, { "docid": "170a3a6c647540012824d55f4b15bbd6", "score": "0.6071661", "text": "function initVisibility() {\n\tvar storage = globalStorage[window.location.hostname];\n\n\tvar page = window.pageName.replace(/\\W/g,'_');\n\tvar show = storage.getItem('infoboxshow-' + page);\n\n\tif( show == 'false' ) {\n\t\tinfoboxToggle();\n\t}\n\n\tvar hidables = getElementsByClass('hidable');\n\n\tfor(var i = 0; i < hidables.length; i++) {\n\t\tshow = storage.getItem('hidableshow-' + i + '_' + page);\n\n\t\tif( show == 'false' ) {\n\t\t\tvar content = getElementsByClass('hidable-content', hidables[i]);\n\t\t\tvar button = getElementsByClass('hidable-button', hidables[i]);\n\n\t\t\tif( content != null && content.length > 0 &&\n\t\t\t\tbutton != null && button.length > 0 && content[0].style.display != 'none' )\n\t\t\t{\n\t\t\t\tbutton[0].onclick('bypass');\n\t\t\t}\n\t\t} else if( show == 'true' ) {\n\t\t\tvar content = getElementsByClass('hidable-content', hidables[i]);\n\t\t\tvar button = getElementsByClass('hidable-button', hidables[i]);\n\n\t\t\tif( content != null && content.length > 0 &&\n\t\t\t\tbutton != null && button.length > 0 && content[0].style.display == 'none' )\n\t\t\t{\n\t\t\t\tbutton[0].onclick('bypass');\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "56fc93089568cde01d1075bffe947556", "score": "0.6067303", "text": "function Ktml_setHiddenUIElements(hide) {\n\tif (hide & HIDE_ALL_UNTIL_ACTIVE) {\n\t\tthis.hidePropertyTag = true;\n\t\tthis.hideToolbarTag = true;\n\t\tthis.hideTagInspector = true;\n\t\tthis.hideTimed = true;\n\t} else {\n\t\tif (hide & HIDE_TAG) {\n\t\t\tthis.hideTagInspector = true;\n\t\t}\n\t\tif (hide & HIDE_TOOLBAR) {\n\t\t\tthis.hideToolbarTag = true;\n\t\t}\n\t\tif (hide & HIDE_PI) {\n\t\t\tthis.hidePropertyTag = true;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "5c089eb0c3b39ced4f9215889d246bf1", "score": "0.60632557", "text": "function showHideConstructor(hide1, hide2, h, show1, show2, s, arrowStyle){\n this.hide1 = hide1;\n this.hide2 = hide2;\n this.h = h;\n this.show1 = show1;\n this.show2 = show2;\n this.s = s;\n this.arrowStyle = arrowStyle;\n this.showHideMethod = function(hide1, hide2, h, show1, show2, s, arrowStyle){\n var h1 = document.getElementById(hide1);\n var h2 = document.getElementById(hide2);\n var h = document.getElementById(h);\n\n var s1 = document.getElementById(show1);\n var s2 = document.getElementById(show2);\n var s = document.getElementById(s);\n\n var arrows = document.getElementsByClassName(\"arrow\");\n\n h1.style.display = \"none\";\n h2.style.display = \"none\";\n h.style.display = \"none\";\n\n s1.style.display = \"block\";\n s2.style.display = \"block\";\n s.style.display = \"block\";\n for(i = 0; i < arrows.length; i++){\n arrows[i].style.visibility = arrowStyle;\n }\n \n }\n}", "title": "" }, { "docid": "d6ea461f83e006ecb45018ccf58ea403", "score": "0.5999719", "text": "function getDisplay() { return ($(\"main\").style.visibility != \"hidden\"); }", "title": "" }, { "docid": "b1a4ab951159a484e7aadcfa0481e8e6", "score": "0.59612536", "text": "function dimValueSelectorsVisibility() {\n for (var d=0; d < _dimensions[ARJK.dimensions].length; d++) {\n $(\"#dimValueSelection\"+d+\"_label\").removeClass(\"hidden\");\n $(\"#dimValueSelection\"+d+\"_br\").removeClass(\"hidden\");\n $(\"#dimValueSelection\"+d).removeClass(\"hidden\");\n //Remove from view the dimension that is used for x axis\n if (d === _freeDimension) {\n $(\"#dimValueSelection\"+d+\"_label\").addClass(\"hidden\");\n $(\"#dimValueSelection\"+d+\"_br\").addClass(\"hidden\");\n $(\"#dimValueSelection\"+d).addClass(\"hidden\");\n }\n }\n\n}", "title": "" }, { "docid": "66c403edd8b10228924e69c3f9a071cd", "score": "0.5960288", "text": "function showAndHide()\t{\nvar args = arguments\n\tfor (var i = 0; i < args.length; i += 2)\t{\n\t\tif (typeof args[i] == \"string\")\t{\n\t\t\tvar theObj = setObject(args[i])\n\t\t}\n\t\tif (args[i+1] == \"toggle\")\t{\n\t\t\tif ((getObjVisibility(theObj) == \"visible\") || (getObjVisibility(theObj) == \"show\"))\t{\n\t\t\t\thide(theObj)\n setZIndex(theObj,0)\n\t\t\t} else\t{\n\t\t\t\tsetZIndex(theObj,100)\n show(theObj)\n\t\t\t} \n\t\t} else if (args[i+1] == \"hide\") {\n hide(theObj)\n setZIndex(theObj,0)\n } else if (args[i+1] == \"show\") {\n show(theObj)\n setZIndex(theObj,100)\n } else {\n theObj.visibility = \"visible\"\n }\n\t}\n}", "title": "" }, { "docid": "fbb14d70cfd2e79c5c52f95e8a89d4a6", "score": "0.5954245", "text": "function MM_showHideLayers() { //v3.0\n var i,p,v,obj,args=MM_showHideLayers.arguments;\n for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];\n if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }\n obj.visibility=v; }\n}", "title": "" }, { "docid": "a44a6b69fc8c35d99f567c5358dba89a", "score": "0.5947641", "text": "get hideFlags() {}", "title": "" }, { "docid": "a44a6b69fc8c35d99f567c5358dba89a", "score": "0.5947641", "text": "get hideFlags() {}", "title": "" }, { "docid": "a44a6b69fc8c35d99f567c5358dba89a", "score": "0.5947641", "text": "get hideFlags() {}", "title": "" }, { "docid": "55a412ac6540706b67ebd33302d637e3", "score": "0.59284157", "text": "function o(){e||t.hide(),r(),i&&i.apply(t)}", "title": "" }, { "docid": "55a412ac6540706b67ebd33302d637e3", "score": "0.59284157", "text": "function o(){e||t.hide(),r(),i&&i.apply(t)}", "title": "" }, { "docid": "96ce4c728b03d1e6f9c3220d0abcbd5c", "score": "0.5910499", "text": "function AnimateControl() {\n if (typeof(window.P_rndPV_f0_l0)==\"undefined\" || document.getElementById(\"AniVisibility_On\").style.visibility === \"hidden\"){\n document.getElementById('L_Rf0_l0').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l0').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l1').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l2').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l2').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l3').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l4').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l4').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l5').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l6').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l6').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l7').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l8').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l8').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l9').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l10').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l10').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l11').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l12').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l12').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l13').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l14').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l14').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l15').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l16').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l16').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l17').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l18').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l18').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l19').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l20').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l20').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l21').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l22').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l22').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l23').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l24').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l24').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l25').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l26').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l26').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l27').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l28').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l28').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l29').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l30').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l30').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l31').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l32').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l32').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l33').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l34').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l34').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l35').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l36').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l36').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l37').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l38').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l38').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l39').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l40').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l40').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l41').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l42').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l42').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l43').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l44').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l44').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l45').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l46').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l46').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l47').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l48').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l48').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l49').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l50').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l50').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l51').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l52').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l52').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l53').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l54').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l54').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l55').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l56').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l56').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l57').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l58').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l58').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l59').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l60').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l60').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l61').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l62').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l62').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l63').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l64').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l64').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l65').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l66').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l66').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l67').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l68').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l68').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l69').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l70').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l70').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l71').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l72').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l72').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l73').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l74').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l74').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l75').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l76').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l76').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l77').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l78').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l78').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l79').style.visibility = \"hidden\";\n document.getElementById('R_Lf0_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l0').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l0').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l1').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l2').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l2').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l3').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l4').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l4').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l5').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l6').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l6').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l7').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l8').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l8').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l9').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l10').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l10').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l11').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l12').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l12').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l13').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l14').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l14').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l15').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l16').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l16').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l17').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l18').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l18').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l19').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l20').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l20').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l21').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l22').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l22').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l23').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l24').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l24').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l25').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l26').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l26').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l27').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l28').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l28').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l29').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l30').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l30').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l31').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l32').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l32').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l33').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l34').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l34').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l35').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l36').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l36').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l37').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l38').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l38').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l39').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l40').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l40').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l41').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l42').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l42').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l43').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l44').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l44').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l45').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l46').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l46').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l47').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l48').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l48').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l49').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l50').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l50').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l51').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l52').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l52').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l53').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l54').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l54').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l55').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l56').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l56').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l57').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l58').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l58').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l59').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l60').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l60').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l61').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l62').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l62').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l63').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l64').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l64').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l65').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l66').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l66').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l67').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l68').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l68').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l69').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l70').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l70').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l71').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l72').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l72').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l73').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l74').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l74').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l75').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l76').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l76').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l77').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l78').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l78').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l79').style.visibility = \"hidden\";\n document.getElementById('R_Lf1_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l0').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l0').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l1').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l2').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l2').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l3').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l4').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l4').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l5').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l6').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l6').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l7').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l8').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l8').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l9').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l10').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l10').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l11').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l12').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l12').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l13').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l14').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l14').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l15').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l16').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l16').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l17').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l18').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l18').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l19').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l20').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l20').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l21').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l22').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l22').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l23').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l24').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l24').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l25').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l26').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l26').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l27').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l28').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l28').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l29').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l30').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l30').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l31').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l32').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l32').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l33').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l34').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l34').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l35').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l36').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l36').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l37').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l38').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l38').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l39').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l40').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l40').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l41').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l42').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l42').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l43').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l44').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l44').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l45').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l46').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l46').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l47').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l48').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l48').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l49').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l50').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l50').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l51').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l52').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l52').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l53').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l54').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l54').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l55').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l56').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l56').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l57').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l58').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l58').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l59').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l60').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l60').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l61').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l62').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l62').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l63').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l64').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l64').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l65').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l66').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l66').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l67').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l68').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l68').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l69').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l70').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l70').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l71').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l72').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l72').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l73').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l74').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l74').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l75').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l76').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l76').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l77').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l78').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l78').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l79').style.visibility = \"hidden\";\n document.getElementById('R_Lf2_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l0').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l0').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l1').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l2').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l2').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l3').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l4').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l4').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l5').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l6').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l6').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l7').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l8').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l8').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l9').style.visibility = \"hidden\";\n document.getElementById('R_Lf3_l9').style.visibility = \"hidden\";\n return;\n }\n\n if (window.P_rndPV_f0_l1 < 0){\n document.getElementById('R_Lf0_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l1').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l1').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l1').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l5 < 0){\n document.getElementById('R_Lf0_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l5').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l5').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l5').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l9 < 0){\n document.getElementById('R_Lf0_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l9').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l9').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l9').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l13 < 0){\n document.getElementById('R_Lf0_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l13').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l13').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l13').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l17 < 0){\n document.getElementById('R_Lf0_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l17').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l17').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l17').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l21 < 0){\n document.getElementById('R_Lf0_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l21').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l21').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l21').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l25 < 0){\n document.getElementById('R_Lf0_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l25').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l25').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l25').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l29 < 0){\n document.getElementById('R_Lf0_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l29').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l29').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l29').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l33 < 0){\n document.getElementById('R_Lf0_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l33').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l33').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l33').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l37 < 0){\n document.getElementById('R_Lf0_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l37').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l37').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l37').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l41 < 0){\n document.getElementById('R_Lf0_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l41').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l41').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l41').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l45 < 0){\n document.getElementById('R_Lf0_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l45').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l45').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l45').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l49 < 0){\n document.getElementById('R_Lf0_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l49').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l49').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l49').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l53 < 0){\n document.getElementById('R_Lf0_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l53').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l53').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l53').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l57 < 0){\n document.getElementById('R_Lf0_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l57').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l57').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l57').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l61 < 0){\n document.getElementById('R_Lf0_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l61').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l61').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l61').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l65 < 0){\n document.getElementById('R_Lf0_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l65').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l65').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l65').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l69 < 0){\n document.getElementById('R_Lf0_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l69').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l69').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l69').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l73 < 0){\n document.getElementById('R_Lf0_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l73').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l73').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l73').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l77 < 0){\n document.getElementById('R_Lf0_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l77').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l77').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l77').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l3 > 0){\n document.getElementById('R_Lf0_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l3').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l3').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l3').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l7 > 0){\n document.getElementById('R_Lf0_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l7').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l7').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l7').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l11 > 0){\n document.getElementById('R_Lf0_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l11').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l11').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l11').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l15 > 0){\n document.getElementById('R_Lf0_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l15').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l15').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l15').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l19 > 0){\n document.getElementById('R_Lf0_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l19').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l19').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l19').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l23 > 0){\n document.getElementById('R_Lf0_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l23').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l23').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l23').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l27 > 0){\n document.getElementById('R_Lf0_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l27').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l27').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l27').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l31 > 0){\n document.getElementById('R_Lf0_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l31').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l31').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l31').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l35 > 0){\n document.getElementById('R_Lf0_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l35').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l35').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l35').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l39 > 0){\n document.getElementById('R_Lf0_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l39').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l39').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l39').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l43 > 0){\n document.getElementById('R_Lf0_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l43').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l43').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l43').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l47 > 0){\n document.getElementById('R_Lf0_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l47').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l47').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l47').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l51 > 0){\n document.getElementById('R_Lf0_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l51').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l51').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l51').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l55 > 0){\n document.getElementById('R_Lf0_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l55').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l55').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l55').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l59 > 0){\n document.getElementById('R_Lf0_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l59').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l59').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l59').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l63 > 0){\n document.getElementById('R_Lf0_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l63').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l63').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l63').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l67 > 0){\n document.getElementById('R_Lf0_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l67').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l67').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l67').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l71 > 0){\n document.getElementById('R_Lf0_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l71').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l71').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l71').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l75 > 0){\n document.getElementById('R_Lf0_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l75').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l75').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l75').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f0_l79 > 0){\n document.getElementById('R_Lf0_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf0_l79').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf0_l79').style.visibility = \"visible\";\n document.getElementById('L_Rf0_l79').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l1 < 0){\n document.getElementById('R_Lf1_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l1').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l1').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l1').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l5 < 0){\n document.getElementById('R_Lf1_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l5').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l5').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l5').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l9 < 0){\n document.getElementById('R_Lf1_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l9').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l9').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l9').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l13 < 0){\n document.getElementById('R_Lf1_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l13').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l13').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l13').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l17 < 0){\n document.getElementById('R_Lf1_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l17').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l17').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l17').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l21 < 0){\n document.getElementById('R_Lf1_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l21').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l21').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l21').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l25 < 0){\n document.getElementById('R_Lf1_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l25').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l25').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l25').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l29 < 0){\n document.getElementById('R_Lf1_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l29').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l29').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l29').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l33 < 0){\n document.getElementById('R_Lf1_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l33').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l33').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l33').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l37 < 0){\n document.getElementById('R_Lf1_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l37').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l37').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l37').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l41 < 0){\n document.getElementById('R_Lf1_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l41').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l41').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l41').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l45 < 0){\n document.getElementById('R_Lf1_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l45').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l45').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l45').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l49 < 0){\n document.getElementById('R_Lf1_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l49').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l49').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l49').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l53 < 0){\n document.getElementById('R_Lf1_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l53').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l53').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l53').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l57 < 0){\n document.getElementById('R_Lf1_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l57').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l57').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l57').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l61 < 0){\n document.getElementById('R_Lf1_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l61').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l61').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l61').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l65 < 0){\n document.getElementById('R_Lf1_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l65').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l65').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l65').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l69 < 0){\n document.getElementById('R_Lf1_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l69').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l69').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l69').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l73 < 0){\n document.getElementById('R_Lf1_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l73').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l73').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l73').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l77 < 0){\n document.getElementById('R_Lf1_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l77').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l77').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l77').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l3 > 0){\n document.getElementById('R_Lf1_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l3').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l3').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l3').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l7 > 0){\n document.getElementById('R_Lf1_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l7').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l7').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l7').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l11 > 0){\n document.getElementById('R_Lf1_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l11').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l11').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l11').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l15 > 0){\n document.getElementById('R_Lf1_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l15').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l15').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l15').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l19 > 0){\n document.getElementById('R_Lf1_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l19').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l19').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l19').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l23 > 0){\n document.getElementById('R_Lf1_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l23').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l23').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l23').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l27 > 0){\n document.getElementById('R_Lf1_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l27').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l27').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l27').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l31 > 0){\n document.getElementById('R_Lf1_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l31').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l31').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l31').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l35 > 0){\n document.getElementById('R_Lf1_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l35').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l35').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l35').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l39 > 0){\n document.getElementById('R_Lf1_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l39').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l39').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l39').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l43 > 0){\n document.getElementById('R_Lf1_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l43').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l43').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l43').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l47 > 0){\n document.getElementById('R_Lf1_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l47').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l47').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l47').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l51 > 0){\n document.getElementById('R_Lf1_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l51').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l51').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l51').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l55 > 0){\n document.getElementById('R_Lf1_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l55').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l55').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l55').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l59 > 0){\n document.getElementById('R_Lf1_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l59').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l59').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l59').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l63 > 0){\n document.getElementById('R_Lf1_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l63').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l63').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l63').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l67 > 0){\n document.getElementById('R_Lf1_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l67').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l67').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l67').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l71 > 0){\n document.getElementById('R_Lf1_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l71').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l71').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l71').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l75 > 0){\n document.getElementById('R_Lf1_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l75').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l75').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l75').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f1_l79 > 0){\n document.getElementById('R_Lf1_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf1_l79').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf1_l79').style.visibility = \"visible\";\n document.getElementById('L_Rf1_l79').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l1 < 0){\n document.getElementById('R_Lf2_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l1').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l1').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l1').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l5 < 0){\n document.getElementById('R_Lf2_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l5').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l5').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l5').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l9 < 0){\n document.getElementById('R_Lf2_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l9').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l9').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l9').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l13 < 0){\n document.getElementById('R_Lf2_l13').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l13').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l13').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l13').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l17 < 0){\n document.getElementById('R_Lf2_l17').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l17').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l17').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l17').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l21 < 0){\n document.getElementById('R_Lf2_l21').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l21').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l21').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l21').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l25 < 0){\n document.getElementById('R_Lf2_l25').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l25').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l25').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l25').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l29 < 0){\n document.getElementById('R_Lf2_l29').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l29').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l29').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l29').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l33 < 0){\n document.getElementById('R_Lf2_l33').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l33').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l33').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l33').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l37 < 0){\n document.getElementById('R_Lf2_l37').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l37').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l37').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l37').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l41 < 0){\n document.getElementById('R_Lf2_l41').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l41').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l41').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l41').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l45 < 0){\n document.getElementById('R_Lf2_l45').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l45').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l45').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l45').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l49 < 0){\n document.getElementById('R_Lf2_l49').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l49').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l49').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l49').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l53 < 0){\n document.getElementById('R_Lf2_l53').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l53').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l53').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l53').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l57 < 0){\n document.getElementById('R_Lf2_l57').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l57').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l57').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l57').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l61 < 0){\n document.getElementById('R_Lf2_l61').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l61').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l61').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l61').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l65 < 0){\n document.getElementById('R_Lf2_l65').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l65').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l65').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l65').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l69 < 0){\n document.getElementById('R_Lf2_l69').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l69').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l69').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l69').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l73 < 0){\n document.getElementById('R_Lf2_l73').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l73').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l73').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l73').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l77 < 0){\n document.getElementById('R_Lf2_l77').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l77').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l77').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l77').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l3 > 0){\n document.getElementById('R_Lf2_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l3').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l3').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l3').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l7 > 0){\n document.getElementById('R_Lf2_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l7').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l7').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l7').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l11 > 0){\n document.getElementById('R_Lf2_l11').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l11').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l11').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l11').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l15 > 0){\n document.getElementById('R_Lf2_l15').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l15').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l15').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l15').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l19 > 0){\n document.getElementById('R_Lf2_l19').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l19').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l19').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l19').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l23 > 0){\n document.getElementById('R_Lf2_l23').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l23').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l23').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l23').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l27 > 0){\n document.getElementById('R_Lf2_l27').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l27').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l27').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l27').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l31 > 0){\n document.getElementById('R_Lf2_l31').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l31').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l31').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l31').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l35 > 0){\n document.getElementById('R_Lf2_l35').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l35').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l35').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l35').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l39 > 0){\n document.getElementById('R_Lf2_l39').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l39').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l39').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l39').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l43 > 0){\n document.getElementById('R_Lf2_l43').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l43').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l43').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l43').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l47 > 0){\n document.getElementById('R_Lf2_l47').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l47').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l47').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l47').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l51 > 0){\n document.getElementById('R_Lf2_l51').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l51').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l51').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l51').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l55 > 0){\n document.getElementById('R_Lf2_l55').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l55').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l55').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l55').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l59 > 0){\n document.getElementById('R_Lf2_l59').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l59').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l59').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l59').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l63 > 0){\n document.getElementById('R_Lf2_l63').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l63').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l63').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l63').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l67 > 0){\n document.getElementById('R_Lf2_l67').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l67').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l67').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l67').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l71 > 0){\n document.getElementById('R_Lf2_l71').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l71').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l71').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l71').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l75 > 0){\n document.getElementById('R_Lf2_l75').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l75').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l75').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l75').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f2_l79 > 0){\n document.getElementById('R_Lf2_l79').style.visibility = \"hidden\";\n document.getElementById('L_Rf2_l79').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf2_l79').style.visibility = \"visible\";\n document.getElementById('L_Rf2_l79').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f3_l1 < 0){\n document.getElementById('R_Lf3_l1').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l1').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf3_l1').style.visibility = \"visible\";\n document.getElementById('L_Rf3_l1').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f3_l5 < 0){\n document.getElementById('R_Lf3_l5').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l5').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf3_l5').style.visibility = \"visible\";\n document.getElementById('L_Rf3_l5').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f3_l9 < 0){\n document.getElementById('R_Lf3_l9').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l9').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf3_l9').style.visibility = \"visible\";\n document.getElementById('L_Rf3_l9').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f3_l3 > 0){\n document.getElementById('R_Lf3_l3').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l3').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf3_l3').style.visibility = \"visible\";\n document.getElementById('L_Rf3_l3').style.visibility = \"hidden\";\n }\n if (window.P_rndPV_f3_l7 > 0){\n document.getElementById('R_Lf3_l7').style.visibility = \"hidden\";\n document.getElementById('L_Rf3_l7').style.visibility = \"visible\";\n }else{\n document.getElementById('R_Lf3_l7').style.visibility = \"visible\";\n document.getElementById('L_Rf3_l7').style.visibility = \"hidden\";\n }\n}", "title": "" }, { "docid": "1825671ec828ba3284fd36debaf6722b", "score": "0.59103936", "text": "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}return visibility!==\"hidden\";}", "title": "" }, { "docid": "062aec748baf44cd6a6ba799ec63625c", "score": "0.58969885", "text": "function visibilityOfElement (v) {\n switch (v) {\n case 'on':\n $('#quickSchedule').css('display', 'none');\n $('#clear').css('display', 'inline');\n $('#display').css('display', 'none');\n $('#add').css('display', 'inline');\n break;\n case 'off':\n $('#quickSchedule').css('display','block');\n $('#clear').css('display', 'inline');\n $('#display').css('display', 'inline');\n $('#add').css('display', 'none');\n $('#items').css('display', 'none');\n break;\n default:\n return false;\n }\n}", "title": "" }, { "docid": "917cfea8e500df9ecb0eb45e985e9575", "score": "0.5889568", "text": "hide(){const a=this,b=a.graphic.container;b.style.visibility='hidden',b.style.opacity='0'}", "title": "" }, { "docid": "3d4730be309b0aebbeac51f785a96276", "score": "0.5840817", "text": "_initializeVisibilityVarNames () {\n let hidden\n let visibilityChange\n if (typeof document.hidden !== 'undefined') { // Opera 12.10 and Firefox 18 and later support\n hidden = 'hidden'\n visibilityChange = 'visibilitychange'\n } else if (typeof document.mozHidden !== 'undefined') {\n hidden = 'mozHidden'\n visibilityChange = 'mozvisibilitychange'\n } else if (typeof document.msHidden !== 'undefined') {\n hidden = 'msHidden'\n visibilityChange = 'msvisibilitychange'\n } else if (typeof document.webkitHidden !== 'undefined') {\n hidden = 'webkitHidden'\n visibilityChange = 'webkitvisibilitychange'\n }\n this._hidden = hidden\n this._visibilityChange = visibilityChange\n }", "title": "" }, { "docid": "69d50c4a8c62f2d984b581ed20ea2c70", "score": "0.5837373", "text": "get isHidden() {\n return this.i.kz;\n }", "title": "" }, { "docid": "b8fff1cd8a66ec09c43c682472a9197e", "score": "0.5805867", "text": "onBeforeHide() {}", "title": "" }, { "docid": "6b55a1668ed6fd1aaf953dccc170306f", "score": "0.580094", "text": "function visibleObjInternal(obj,visible)\n{\n\tif (visible==true)\n\t{\n\t\tremoveClassName(obj, NON_DISPLAY_CLASS1);\n\t\tremoveClassName(obj, NON_DISPLAY_CLASS2);\n\t}\n\telse\n\t{\n\t\taddClassName(obj, NON_DISPLAY_CLASS1);\n\t\taddClassName(obj, NON_DISPLAY_CLASS2);\n\t}\n}", "title": "" }, { "docid": "5966eab01a8344037338dbd203c28f61", "score": "0.58008057", "text": "function showHide(value) {\n $(\"#results_per_page, #collocation_num, #time_series_num, #year_interval,#frequency_num, #method, #metadata_fields\").hide();\n $('.explain_relev, .explain_conc, .explain_time, .explain_colloc, .explain_kwic, explain_freq').hide();\n $('.relev_question, .conc_question, .colloc_question, .time_question, .kwic_question, explain_freq').hide(); \n\n if (value == 'frequency') {\n $(\"#frequency_num, #method, #metadata_fields\").show();\n $('.freq_question').fadeIn();\n }\n if (value == 'collocation') {\n $(\"#collocation_num, #method, #metadata_fields\").show();\n $('.colloc_question').fadeIn();\n }\n if (value == 'kwic') {\n $(\"#results_per_page, #method, #metadata_fields\").show();\n $('.kwic_question').fadeIn();\n }\n if (value == 'concordance') {\n $(\"#results_per_page, #method, #metadata_fields\").show();\n $('.conc_question').fadeIn();\n }\n if (value == 'relevance') {\n $(\"#results_per_page\").show();\n $('.relev_question').fadeIn();\n }\n if (value == \"time_series\") {\n $(\"#time_series_num, #year_interval\").show();\n $('.time_question').fadeIn();\n }\n}", "title": "" }, { "docid": "84c859d446d71860aeb995dd2d7d03be", "score": "0.57899123", "text": "function visible(e){return n.default.expr.filters.visible(e)&&!(0,n.default)(e).parents().addBack().filter(function(){return\"hidden\"===n.default.css(this,\"visibility\")}).length}", "title": "" }, { "docid": "ce9c0c944438c1cae9546d3c2d4a414d", "score": "0.5777824", "text": "function SlideShow()\n{\n for (var prop in aoConds) {\n aoConds[prop].doHide = function () {\n var elem = document.getElementById(this.m_sName);\n if (!elem) {\n return;\n }\n if (!this.m_bValue) {\n $(elem).slideDown(\"fast\");\n }\n else {\n $(elem).slideUp(\"fast\");\n }\n var otemp = elem.parentNode;\n var oparentelem = otemp.parentNode;\n var oParentFrameSet = this.findParentFrameSet(oparentelem);\n if (oparentelem && oParentFrameSet) {\n var bHasDisplay = false;\n var a = oparentelem.childNodes;\n for (var j = 0; j < a.length; j++) {\n var sTag = a.item(j).tagName;\n if (sTag && sTag.toLowerCase() == 'div') {\n var achildnodes = a.item(j).childNodes;\n for (var i = 0; i < achildnodes.length; i++) {\n var achild = achildnodes.item(i);\n var sChildTag = achild.tagName;\n if (sChildTag && sChildTag.toLowerCase() == 'div') {\n var sStyle = achild.style.display;\n if (sStyle != \"none\") {\n bHasDisplay = true;\n break;\n }\n }\n }\n }\n }\n\n if (bHasDisplay) {\n $(oParentFrameSet).slideDown(\"fast\");\n }\n else {\n $(oParentFrameSet).slideUp(\"fast\");\n }\n }\n if (!this.m_bValue) {\n var headingHelpSpan = document.getElementById(\"TL_ajaxreplace_help_\" + this.m_sName);\n if (headingHelpSpan) {\n PositionGroupHelpIconIfNecessary(headingHelpSpan);\n }\n }\n };\n\n }\n}", "title": "" }, { "docid": "2597bdf64e8ef2be1deebced8a65f5ee", "score": "0.57600546", "text": "function comment_hide(){\n$.each($(\".comment_wrapper[data-hide=true]\"),function(index, value){\n$(value).addClass(\"hidden\");\n\n$(value).parent().fadeTo(\"fast\",0.8);\n$(value).attr(\"data-height\",$(value).height());\n$(value).children().hide();\nvar offensive=$(document.createElement('i'));\noffensive.addClass(\"offense-statement\");\noffensive.text(\"This comment has been deemed unnecessary\")\noffensive.prependTo($(value));\n$(value).height(10);\nvar chevron=$(document.createElement('div'));\nchevron.addClass(\"down-hide\");\nchevron.prependTo($(value));\n});\n}", "title": "" }, { "docid": "83b363c5e206104091de29f41268cd55", "score": "0.5754288", "text": "function showHideData (element) {\n var parentOfelementToHide=element.parentNode.parentNode;\n var elementToHideOrShow=parentOfelementToHide.getElementsByClassName(\"hide\")[0] ||\n parentOfelementToHide.getElementsByClassName(\"show\")[0];\n var icon=element.childNodes[0];\n if (elementToHideOrShow.className==\"hide\") {\n \tsetAttribute(elementToHideOrShow,\"class\",\"show\");\t\n rotateElement(icon,-90); \n }\n else {\n \tsetAttribute(elementToHideOrShow,\"class\",\"hide\");\n \ticon.style.transform=\"rotate(0deg)\";\n \trotateElement(icon,0);\n }\n\n}", "title": "" }, { "docid": "9e593130d3d2454b22120c58ee61371a", "score": "0.57530934", "text": "function showHideArrows() {\n var i;\n // Show all arrows\n var arrowsDown = document.getElementById(elementId).getElementsByClassName('bkgwebmap-layerheaderdownwrapper');\n for (i = 0; i < arrowsDown.length; i++) {\n arrowsDown[i].style.display = 'table-cell';\n }\n var arrowsUp = document.getElementById(elementId).getElementsByClassName('bkgwebmap-layerheaderupwrapper');\n for (i = 0; i < arrowsUp.length; i++) {\n arrowsUp[i].style.display = 'table-cell';\n }\n\n // Hide first-last of layers\n var layers = document.getElementById(elementId).getElementsByClassName('bkgwebmap-overlayscontent')[0];\n if (layers && layers.childElementCount) {\n layers.childNodes[0].getElementsByClassName('bkgwebmap-layerheaderupwrapper')[0].style.display = 'none';\n layers.childNodes[layers.childElementCount - 1].getElementsByClassName('bkgwebmap-layerheaderdownwrapper')[0].style.display = 'none';\n }\n\n // Hide first-last in groups\n var groups = document.getElementById(elementId).getElementsByClassName('bkgwebmap-layerswitchergroupheader');\n for (i = 0; i < groups.length; i++) {\n var layersCount = groups[i].parentNode.childNodes[1].childElementCount;\n if (layersCount) {\n groups[i].parentNode.childNodes[1].getElementsByClassName('bkgwebmap-layerheaderupwrapper')[0].style.display = 'none';\n groups[i].parentNode.childNodes[1].getElementsByClassName('bkgwebmap-layerheaderdownwrapper')[layersCount - 1].style.display = 'none';\n }\n }\n }", "title": "" }, { "docid": "ac883a3568a9fb5ff9fe48159002aa51", "score": "0.57383305", "text": "function fncInvisibleButtons( ) {\r\n\t\t\tif ( varAutoHideMode ) {\r\n\t\t\t\tvarUpButton.style.display = \"none\";\r\n\t\t\t\tvarDownButton.style.display = \"none\";\r\n\t\t\t} // end if\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "10fcc16b1ab7ce99f0d6f71a9addba5c", "score": "0.5733542", "text": "function prepareHideables() {\n\t$('.hideable').each(function(){\n\t\t$(this).prev().html($(this).prev().html() + ' (<a href=\"#\" onclick=\"return showHide(this, true);\">show</a>)');\n\t\t$(this).hide();\n\t});\n\t$('.hideableSimple').each(function(){\n\t\t$(this).prev().html('<a href=\"#\" onclick=\"return showHide(this, false);\">' + $(this).prev().html() + '</a>');\n\t\t$(this).hide();\n\t});\n}", "title": "" }, { "docid": "7007eb934263577aa5561e248795b37b", "score": "0.57302445", "text": "showViewControls () {\n $( this.htmlViewElement() ).show();\n $( this.htmlEditElement() ).hide();\n const $wrapper = (($( this.htmlViewElement().parentElement ) /*: any */) /*: JQueryDnD */);\n $wrapper.unpauseDragAndResize();\n if ( this.hasOwnProperty( 'zBeforeEdit' ) ) {\n $wrapper.css( 'z-index', this.zBeforeEdit );\n delete this.zBeforeEdit;\n }\n if ( this.hasOwnProperty( 'bgBeforeEdit' ) ) {\n $( this.htmlEditElement() ).css( 'background-color', this.bgBeforeEdit );\n delete this.bgBeforeEdit;\n }\n this.model.drawOverlay(); // hide/show morphism arrows\n }", "title": "" }, { "docid": "528044bb598470c02c7124dfb8e3eee5", "score": "0.5713704", "text": "function oc_ccr_hide_show_elem(){\n if($( \"#tn_plan_ccr\" ).val()*1.0 == 1){\n\n opt_blt_dln = 1;\n\n element_id_show_inline(\"btn_add_lvl\");\n element_id_show_inline(\"btn_del_lvl\");\n\n element_id_hide(\"tr_setpoint_block\");\n\n element_id_hide(\"btn_bailout\");\n element_id_hide(\"btn_diluent\");\n\n element_id_show_inline(\"tn_deco_block\");\n\n element_id_show(\"7-header\");\n element_id_show(\"t_total_cons\");\n element_id_show(\"7-content\");\n\n element_id_show(\"tr_gasbreak_block\");\n element_id_show(\"tr_pp\");\n\n }\n else{\n //ccr plan!\n element_id_hide(\"btn_add_lvl\");\n element_id_hide(\"btn_del_lvl\");\n\n element_id_show(\"tr_setpoint_block\");\n\n element_id_hide(\"tr_gasbreak_block\");\n\n //warning about interface demo mode\n openNav();\n\n if(opt_blt_dln == 1){\n element_id_hide(\"btn_bailout\");\n element_id_show_inline(\"btn_diluent\");\n\n element_id_show_inline(\"tn_deco_block\");\n\n\n element_id_show(\"7-header\");\n element_id_show(\"t_total_cons\");\n element_id_show(\"7-content\");\n\n element_id_show(\"tr_pp\");\n\n }\n else{\n\n element_id_show_inline(\"btn_bailout\");\n element_id_hide(\"btn_diluent\");\n\n element_id_hide(\"tn_deco_block\");\n\n element_id_hide(\"7-header\");\n element_id_hide(\"t_total_cons\");\n element_id_hide(\"7-content\");\n\n element_id_hide(\"tr_pp\");\n }\n }\n // /if NO decompression mixtures then hide all gas consumptions\n if(($( \"#tn_plan_ccr\" ).val()*1.0 == 2)){\n if(($( \"#opt_deco\" ).val()*1.0) == 0){\n //console.log(\"TRUE\");\n element_id_hide(\"7-header\");\n element_id_hide(\"t_total_cons\");\n }\n }\n}", "title": "" }, { "docid": "6ee3beabe14846eb21bbb1a61778dec4", "score": "0.5708766", "text": "function dom_hide_show(x, y) { \n\n//hid <div>\nif(x==\"hide\"){\nreturn document.getElementById(y).style.display=\"none\";\n}\n\nif(x==\"show\"){ //show <div>\n\nreturn document.getElementById(y).style.display=\"block\";\n}\n}", "title": "" }, { "docid": "0cdba45f4c263d31d376090f3920aa18", "score": "0.570764", "text": "function visible(e){return i.a.expr.filters.visible(e)&&!i()(e).parents().addBack().filter(function(){return\"hidden\"===i.a.css(this,\"visibility\")}).length}", "title": "" }, { "docid": "0318c075c5b9635d2c7336bcc47ad0df", "score": "0.5701421", "text": "function togglehide(){\n let allhideme = [...document.querySelectorAll('input.hideme, label.hideme')];\n let allhidemeX = [...document.querySelectorAll('input.hidemeX, label.hidemeX')];\n if (allhideme.length > 0){\n allhideme.map(el => {\n el.classList.remove('hideme');\n el.classList.add('hidemeX');\n });\n return 'hideme elements made visible'\n }\n if (allhidemeX.length > 0){\n allhidemeX.map(el => {\n el.classList.remove('hidemeX');\n el.classList.add('hideme');\n });\n return 'hidemeX elements made hidden'\n }\n}", "title": "" }, { "docid": "63c29a70d63e637afa966226a36bc082", "score": "0.5698312", "text": "function showHide()\t{\nvar args = arguments\n\tfor (var i = 0; i < args.length; i += 2)\t{\n\tif (typeof args[i] == \"string\")\n\t\tvar theObj = setObject(args[i])\n\tif (args[i+1] == \"toggle\")\n\t\tif ((getObjVisibility(theObj) == \"visible\") || (getObjVisibility(theObj) == \"show\"))\n\t\t\thide(theObj)\n\t\telse show(theObj)\n\t\telse if (args[i+1] == \"hide\")\thide(theObj)\n\t\telse if (args[i+1] == \"show\")\tshow(theObj)\n\t}\n}", "title": "" }, { "docid": "040f766e3e2d9aa348e1e524866fb1f5", "score": "0.56930166", "text": "function Hideable() {}", "title": "" }, { "docid": "0ccdef58d7677a641e81684acc315032", "score": "0.5692195", "text": "function show_hide(obj)\n{\n if (obj.style.display == 'block') {\n obj.style.display='none';\n return \">>\";\n } else {\n obj.style.display='block';\n return \"<<\";\n }\n}", "title": "" }, { "docid": "6e921f0c6745fc18804d725df8940609", "score": "0.5689212", "text": "function b(a){for(var b=a.css(\"visibility\");\"inherit\"===b;)a=a.parent(),b=a.css(\"visibility\");return\"hidden\"!==b}", "title": "" }, { "docid": "bd5cda5ede382e06be9a48cc991f3e2f", "score": "0.5686448", "text": "function change_nto()\r\n {\r\n var cct = false;\r\n var ogb = false;\r\n var vrn = false;\r\n \r\n var myc = $(\"__mycct\");\r\n if (myc) {\r\n if (myc.className != \"\") cct = true;\r\n }\r\n \r\n var myg = $(\"__myogb\");\r\n if (myg) {\r\n if (myg.className == \"hide-all\") ogb = true;\r\n }\r\n \r\n var myv = $(\"__myvrn\");\r\n if (myv) {\r\n if (myv.className != \"\") vrn = true;\r\n }\r\n \r\n var myo = $(\"__mynto\");\r\n if (myo) {\r\n if (cct && !ogb && vrn) myo.className = \"hide1\";\r\n else if (cct && !ogb && !vrn) myo.className = \"hide2\";\r\n else if (cct && ogb && !vrn) myo.className = \"hide3\";\r\n else if (cct && ogb && vrn) myo.className = \"hide4\";\r\n else myo.className = \"\";\r\n }\r\n }", "title": "" }, { "docid": "ed028f46bb2209b2f5442033a7c26929", "score": "0.5684827", "text": "hideFunctions(index){\n document.getElementsByClassName(\"hiddenFunctions\")[index].style.display = \"none\";\n }", "title": "" }, { "docid": "927a7f8e74df6df0848b8bcc881ffec8", "score": "0.5677541", "text": "static isHidden (el) {\n return el.classList.contains('d-hide')\n }", "title": "" }, { "docid": "927a7f8e74df6df0848b8bcc881ffec8", "score": "0.5677541", "text": "static isHidden (el) {\n return el.classList.contains('d-hide')\n }", "title": "" }, { "docid": "f684767fc5babd499b03ddfc32d3b9a4", "score": "0.5663278", "text": "function showhideR(obj){\r\n obj.parentNode.className=='sel'?obj.parentNode.className='':obj.parentNode.className='sel';\r\n}", "title": "" }, { "docid": "6d566da9da2bea6112f3324bdd1fb5ba", "score": "0.5661603", "text": "function sjGetVisibility (layer){ \r\n layer=sjGetElementStyle(layer);\r\n\tif (document.layers){\r\n\t var value = layer.visibility;\r\n\t if (value == \"show\") \r\n\t\treturn \"visible\";\r\n\t else if (value == \"hide\") \r\n\t \treturn \"hidden\";\r\n\t else return value;\r\n }\r\n else if (layer) \r\n\t return layer.visibility;\r\n}", "title": "" }, { "docid": "f5d9f6a171772092e0d65a03a58ad3de", "score": "0.56538457", "text": "function hideTip() {\r\n\tif (v_visible == 1) {\r\n\t\tif (v_layer != null) {\r\n\t\t\tv_layer.style.visibility = 'hidden';\r\n\t\t\tv_visible = 0;\r\n\t\t}\r\n\t}\r\n\treturn true;\r\n}", "title": "" }, { "docid": "4f493743b3c78e89dad2309c86c7c0e5", "score": "0.56524634", "text": "hide(){document.body.classList.remove(zi.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display=\"none\")}", "title": "" }, { "docid": "38ca977bf1c531be083c4818cbd0c523", "score": "0.56445813", "text": "function showHide(ind){\n\t\t\tshapes[ind].classList.toggle(\"hide\");\n \t}", "title": "" }, { "docid": "eb5e408ef6ad21ba5562916bb7799d48", "score": "0.56285584", "text": "get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)}", "title": "" }, { "docid": "b6fbd8adaf0670aefe1a0a9903bdd52f", "score": "0.56236756", "text": "function Hidden(props){\nvar _props$implementation=props.implementation,\nimplementation=_props$implementation===void 0?'js':_props$implementation,\n_props$lgDown=props.lgDown,\nlgDown=_props$lgDown===void 0?false:_props$lgDown,\n_props$lgUp=props.lgUp,\nlgUp=_props$lgUp===void 0?false:_props$lgUp,\n_props$mdDown=props.mdDown,\nmdDown=_props$mdDown===void 0?false:_props$mdDown,\n_props$mdUp=props.mdUp,\nmdUp=_props$mdUp===void 0?false:_props$mdUp,\n_props$smDown=props.smDown,\nsmDown=_props$smDown===void 0?false:_props$smDown,\n_props$smUp=props.smUp,\nsmUp=_props$smUp===void 0?false:_props$smUp,\n_props$xlDown=props.xlDown,\nxlDown=_props$xlDown===void 0?false:_props$xlDown,\n_props$xlUp=props.xlUp,\nxlUp=_props$xlUp===void 0?false:_props$xlUp,\n_props$xsDown=props.xsDown,\nxsDown=_props$xsDown===void 0?false:_props$xsDown,\n_props$xsUp=props.xsUp,\nxsUp=_props$xsUp===void 0?false:_props$xsUp,\nother=Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props,[\"implementation\",\"lgDown\",\"lgUp\",\"mdDown\",\"mdUp\",\"smDown\",\"smUp\",\"xlDown\",\"xlUp\",\"xsDown\",\"xsUp\"]);\n\nif(implementation==='js'){\nreturn/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](_HiddenJs__WEBPACK_IMPORTED_MODULE_4__[\"default\"],Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\nlgDown:lgDown,\nlgUp:lgUp,\nmdDown:mdDown,\nmdUp:mdUp,\nsmDown:smDown,\nsmUp:smUp,\nxlDown:xlDown,\nxlUp:xlUp,\nxsDown:xsDown,\nxsUp:xsUp},\nother));\n}\n\nreturn/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](_HiddenCss__WEBPACK_IMPORTED_MODULE_5__[\"default\"],Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\nlgDown:lgDown,\nlgUp:lgUp,\nmdDown:mdDown,\nmdUp:mdUp,\nsmDown:smDown,\nsmUp:smUp,\nxlDown:xlDown,\nxlUp:xlUp,\nxsDown:xsDown,\nxsUp:xsUp},\nother));\n}", "title": "" }, { "docid": "0d8a8c5680ec92040157c9739cdbf991", "score": "0.561938", "text": "function toggleAppearancesPane(eid) {\n\te = document.getElementById(eid);\n\tif (e) { e.className = (e.className == \"hiddenlist\") ? \"visiblelist\" : \"hiddenlist\"; }\n}", "title": "" }, { "docid": "0c864178cde1d860c0feb94b4e88d0ca", "score": "0.56182116", "text": "function EZisShow(el)\n{\n\tel = EZgetEl(el);\n\tif (el == null) return false;\n\n\tif (!dw.isNotDW)\n\t\treturn el.offsetHeight > 0;\n\n\tif (EZgetCurrentStyleValue(el,'display') == 'none') return false;\n\tif (EZgetCurrentStyleValue(el,'visibility') == 'hidden') return false;\n\treturn true;\n}", "title": "" }, { "docid": "0c864178cde1d860c0feb94b4e88d0ca", "score": "0.56182116", "text": "function EZisShow(el)\n{\n\tel = EZgetEl(el);\n\tif (el == null) return false;\n\n\tif (!dw.isNotDW)\n\t\treturn el.offsetHeight > 0;\n\n\tif (EZgetCurrentStyleValue(el,'display') == 'none') return false;\n\tif (EZgetCurrentStyleValue(el,'visibility') == 'hidden') return false;\n\treturn true;\n}", "title": "" }, { "docid": "8fb58ad4aa4e381ea2695e0c1b0b199a", "score": "0.5614545", "text": "_hideNonDialogContentFromAssistiveTechnology() {\n const overlayContainer = this._overlayContainer.getContainerElement();\n // Ensure that the overlay container is attached to the DOM.\n if (overlayContainer.parentElement) {\n const siblings = overlayContainer.parentElement.children;\n for (let i = siblings.length - 1; i > -1; i--) {\n let sibling = siblings[i];\n if (sibling !== overlayContainer &&\n sibling.nodeName !== 'SCRIPT' &&\n sibling.nodeName !== 'STYLE' &&\n !sibling.hasAttribute('aria-live')) {\n this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n }\n }\n }", "title": "" }, { "docid": "8fb58ad4aa4e381ea2695e0c1b0b199a", "score": "0.5614545", "text": "_hideNonDialogContentFromAssistiveTechnology() {\n const overlayContainer = this._overlayContainer.getContainerElement();\n // Ensure that the overlay container is attached to the DOM.\n if (overlayContainer.parentElement) {\n const siblings = overlayContainer.parentElement.children;\n for (let i = siblings.length - 1; i > -1; i--) {\n let sibling = siblings[i];\n if (sibling !== overlayContainer &&\n sibling.nodeName !== 'SCRIPT' &&\n sibling.nodeName !== 'STYLE' &&\n !sibling.hasAttribute('aria-live')) {\n this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n }\n }\n }", "title": "" }, { "docid": "8fb58ad4aa4e381ea2695e0c1b0b199a", "score": "0.5614545", "text": "_hideNonDialogContentFromAssistiveTechnology() {\n const overlayContainer = this._overlayContainer.getContainerElement();\n // Ensure that the overlay container is attached to the DOM.\n if (overlayContainer.parentElement) {\n const siblings = overlayContainer.parentElement.children;\n for (let i = siblings.length - 1; i > -1; i--) {\n let sibling = siblings[i];\n if (sibling !== overlayContainer &&\n sibling.nodeName !== 'SCRIPT' &&\n sibling.nodeName !== 'STYLE' &&\n !sibling.hasAttribute('aria-live')) {\n this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n }\n }\n }", "title": "" }, { "docid": "5a6eab8e20e1a3e2c100bd7424da3959", "score": "0.5612423", "text": "function styles___setVisibilityGap( items, vis )\n {\n\t var end = Math.min(items.list.length, dr.bases+items.offset);\n items.list.forEach( function( item, ix ) {\n var visib = items.visOffset <= ix && ix < end && vis ? \"visible\" : \"hidden\";\n\n ( item.dom || item ).setAttributeNS( null, \"visibility\", visib );\n\n //perhaps, this overrides other \"style\" settings and makes desired\n //effect\n ( item.dom || item ).style.visibility = visib; //vital line\n });\n }", "title": "" }, { "docid": "694ce270c7284b7bb93001ca7805e4c6", "score": "0.5605159", "text": "maybeUpdateVisibility() {\n if (!settings.get('improvePerformance') || !this.items.length || !controller.isLongPage()) {\n return;\n }\n\n // Don't care about top scroll padding (the sticky header's height) here.\n const viewportTop = window.scrollY;\n\n const pageHeight = document.documentElement.scrollHeight;\n const threeScreens = window.innerHeight * 3;\n\n let firstSectionToHide;\n if (pageHeight - viewportTop > 20000) {\n const currentSection = this.getCurrentSection();\n firstSectionToHide = this.items\n .filter((section) => !currentSection || section.index > currentSection.index)\n .find((section) => {\n const rect = section.headingElement.getBoundingClientRect();\n let blockSize = 10000;\n return (\n getVisibilityByRects(rect) &&\n rect.top >= threeScreens &&\n\n // Is in a different `blockSize`-pixel block than the viewport top. (`threeScreens` is\n // subtracted from its position to reduce the frequency of CSS manipulations, so in\n // practice the blocks are positioned somewhat like this: 0 - 12500, 12500 - 22500,\n // 22500 - 32500, etc.)\n (\n Math.floor(viewportTop / blockSize) !==\n Math.floor((viewportTop + rect.top - threeScreens) / blockSize)\n )\n );\n });\n }\n\n const subsectionsToHide = [];\n if (firstSectionToHide) {\n this.items\n .slice(firstSectionToHide.index)\n .some((section) => {\n if (section.level === 2) {\n return true;\n }\n subsectionsToHide.push(section);\n return false;\n });\n }\n this.items\n .filter((section) => (\n section.level === 2 ||\n section.isHidden ||\n subsectionsToHide.includes(section)\n ))\n .forEach((section) => {\n section.updateVisibility(\n !(firstSectionToHide && section.index >= firstSectionToHide.index)\n );\n });\n }", "title": "" }, { "docid": "999816cae89dfa393e61edf41f3f5a60", "score": "0.56033784", "text": "onHide() { }", "title": "" }, { "docid": "dafbc36e76ba536ff5d2789b30ea9007", "score": "0.56006896", "text": "function ShowHideFormButtons(mode, arrControlAttributeColl, g_cdnImagesPath)\n{\n var imgbtnContinueAdd=document.getElementById('ctl00_cphPageContents_imgbtnContinueAdd');\n var imgAddClone=document.getElementById('ctl00_cphPageContents_imgbtnAddClone');\n var imgBtnSubmit=document.getElementById('ctl00_cphPageContents_imgbtnSubmit');\n var imgBtnCancel=document.getElementById('ctl00_cphPageContents_imgbtnCancel');\n var hdnSubmitstatus = document.getElementById('ctl00_cphPageContents_BtnsUC_hdnSubmitstatus');\n var lblMessage = document.getElementById('ctl00_cphPageContents_lblmsg');\n\n if(hdnSubmitstatus.value!=\"\")//In Submit\n lblMessage.style.display = 'Block';\n else\n lblMessage.style.display = 'none';\n\n //Hide the trProcessLinks in Add/Add-Clone/Modify/Find/Delete.\n HideProcessLinks();\n \n //Exclusivly for SOX Approval Tr removal\n var trSOX=document.getElementById('ctl00_cphPageContents_trSoxApprovedStatus');\n if (trSOX)\n trSOX.style.display = 'none';\n //trSOX.style.visibility='hidden';\n \n //Show CalendarControl\n ShowHideCalendar(arrControlAttributeColl, mode);\n\n imgBtnSubmit.style.display = 'Block';\n imgBtnCancel.style.display = 'Block';\n\n switch (mode)\n {\n case \"Add\":\n case \"Clone\":\n {\n //Form level buttons\n imgbtnContinueAdd.style.display = 'Block';\n imgAddClone.style.display = 'Block';\n\n var hdnNeedToConfirmExit = document.getElementById('ctl00_cphPageContents_BtnsUC_hdnNeedToConfirmExit');\n hdnNeedToConfirmExit.value = \"True\";\n \n ResetJobTypeImage(g_cdnImagesPath);\n }\n break;\n case \"Modify\":\n {\n //Form level buttons\n imgbtnContinueAdd.style.display = 'none';\n imgAddClone.style.display = 'none';\n\n var hdnNeedToConfirmExit = document.getElementById('ctl00_cphPageContents_BtnsUC_hdnNeedToConfirmExit');\n hdnNeedToConfirmExit.value = \"True\";\n }\n break;\n case \"Delete\":\n {\n //Form level buttons\n imgbtnContinueAdd.style.display = 'none';\n imgAddClone.style.display = 'none';\n }\n break;\n case \"Find\":\n {\n //Form level buttons\n imgbtnContinueAdd.style.display = 'none';\n imgAddClone.style.display = 'none';\n\n ResetJobTypeImage(g_cdnImagesPath);\n }\n break;\n case \"Select\":\n {\n if (trSOX)\n trSOX.style.display = '';\n \n //Form level buttons\n imgbtnContinueAdd.style.display = 'none';\n imgAddClone.style.display = 'none';\n \n lblMessage.style.display = 'Block';\n \n //Find function in GVUC.js\n if(typeof(ValidateBPGIDRow)=='function')\n ValidateBPGIDRow();\n //Show process links in View mode(like Submit, RdbClk, Modifyload cases)\n ShowProcessLinks();\n \n imgBtnSubmit.style.display = 'none';\n imgBtnCancel.style.display = 'none';\n }\n break;\n default:\n break;\n }//Switch case\n}//ShowHideFormButtons---ends", "title": "" }, { "docid": "b33757dbc02156f607f62d1eb859a8ae", "score": "0.55862176", "text": "function setVisibility(id, nVisible)\r\n{\r\n var test;\r\n var e;\r\n \r\n e = document.getElementById(id);\r\n if (!e)\r\n alert ('id \\'' + id + '\\' not found!');\r\n test = e.style.display;\r\n if (nVisible == 2)\r\n {\r\n if(e.style.display == 'block')\r\n e.style.display = 'none';\r\n else\r\n e.style.display = 'block';\r\n }\r\n else if (nVisible == 0)\r\n e.style.display = 'none';\r\n else\r\n e.style.display = 'block';\r\n}", "title": "" }, { "docid": "41182cbf223b57d7c4ac85e009a9b47d", "score": "0.5585585", "text": "function publicHide() {\n publicInit();\n\n if (counter > 0)\n counter--;\n\n if (counter == 0) {\n hide();\n }\n }", "title": "" }, { "docid": "76bea863737b56391cb68d6b1976ae3e", "score": "0.5579076", "text": "function showHideLayers(id,v)\r\n{\r\n\tobj=doc.getElementById(id)\r\n\tif(obj&&obj.style)obj.style.visibility=v;\r\n}", "title": "" }, { "docid": "15a444a0c01a76d750626ba137ca277e", "score": "0.5577868", "text": "function hiddenByWaniKani(which)\n{\n if (!isQuiz())\n {\n return false;\n }\n var infoHidden = document.getElementById(\"all-info\").style.display != \"none\";\n var questionType = document.getElementById(\"question-type\").className;\n return which != questionType && infoHidden;\n}", "title": "" }, { "docid": "137b4ab337b8a1ae94ce3117474c3cfe", "score": "0.55735886", "text": "onHidden() {}", "title": "" }, { "docid": "137b4ab337b8a1ae94ce3117474c3cfe", "score": "0.55735886", "text": "onHidden() {}", "title": "" }, { "docid": "137b4ab337b8a1ae94ce3117474c3cfe", "score": "0.55735886", "text": "onHidden() {}", "title": "" }, { "docid": "a8b72f28d6110fba334d7aeab4d0d9c0", "score": "0.55705035", "text": "_show() {\n if (this._visible()) {\n this.$el.removeClass('hidden');\n }\n }", "title": "" }, { "docid": "cf8d93174c3ef4d0b35b9b736c6620d4", "score": "0.5570225", "text": "function hiddenUpdate() {\r\n if (player[SaveValuesEnum.hasBasicBook]) {\r\n $('#puddleClick').removeClass('Hidden');\r\n $('#resetMixClick').removeClass('Hidden');\r\n $('#finishtMixClick').removeClass('Hidden');\r\n $('#Mixture').removeClass('Hidden');\r\n $('#bookClick').addClass('Hidden');\r\n }\r\n else {\r\n $('#puddleClick').addClass('Hidden');\r\n $('#resetMixClick').addClass('Hidden');\r\n $('#finishtMixClick').addClass('Hidden');\r\n $('#Mixture').addClass('Hidden');\r\n $('#bookClick').removeClass('Hidden');\r\n }\r\n update_view();\r\n}", "title": "" }, { "docid": "bbb9c6ab97349585b13e825b45db43f6", "score": "0.556898", "text": "function hide()\n\t\t{\n\t\t\t for(var hi=0;hi<hide.arguments.length;hi++)\n\t\t\t\t {\n\t\t\t\t\t document.getElementById(hide.arguments[0]).style.visibility=\"hidden\";\n\t\t\t\t } \n \t\t}", "title": "" }, { "docid": "2e0d5b897ecf5bf6a43e30ba9b7b7d05", "score": "0.55667186", "text": "function showObject(obj) {\nif (ns4) obj.visibility = \"show\"\nelse if (ie4) obj.visibility = \"visible\"\n}", "title": "" }, { "docid": "5556400ee6c35cc930d2694097411b7c", "score": "0.55594295", "text": "function getDisplay_loc() { return ($(\"input_box\").style.visibility != \"hidden\"); }", "title": "" }, { "docid": "d33cdb08e8af0c056b82ef7f7341ad9f", "score": "0.5556758", "text": "function hide()\n{\n // nix\n}", "title": "" }, { "docid": "930fc19a9cfdc566137fa9ecda37ea3d", "score": "0.5555643", "text": "function showHideAnimElem($elem, show) {\r\n\t\t\tvar moveDirection = $elem.attr('data-moveDirection'),\r\n offset = $elem.attr('data-offset'),\r\n\t\t\t\telemFinalProps = {},\r\n fade = $elem.attr('data-fade') === 'true',\r\n\t\t\t\ttransitionSpeed,\r\n\t\t\t\ttransitionEasing,\r\n\t\t\t\telemVisibility = {};\r\n\t\t\tif (!!offset && !!moveDirection) {\r\n\t\t\t\telemFinalProps[moveDirection] = show ? ('-=' + offset) : ('+=' + offset);\r\n\t\t\t}\r\n\t\t\tif (show) {\r\n\t\t\t\ttransitionSpeed = parseInt($elem.attr('data-speed'), 10);\r\n\t\t\t\ttransitionEasing = $elem.attr('data-easing');\r\n transitionSpeed = (!!transitionSpeed) ? transitionSpeed : 500;\r\n\t\t\t\ttransitionEasing = (!!transitionEasing) ? transitionEasing : 'swing';\r\n\t\t\t\tif (fade) {\r\n\t\t\t\t\telemFinalProps.opacity = 1;\r\n\t\t\t\t\t// Restore z-index of faded elements\r\n\t\t\t\t\t$elem.css('z-index', $elem.data('defaultIndex'));\r\n\t\t\t\t}\r\n\t\t\t\t$elem\r\n\t\t\t\t\t.animate(elemFinalProps, transitionSpeed, transitionEasing, function () {\r\n\t\t\t\t\t\t/* Remove filter from animated element (applies to IE7 or IE8) so its \r\n\t\t\t\t\t\t * overall look is smooth at least after animation finished.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t$(this)[0].style.removeAttribute('filter');\r\n\t\t\t\t\t\t} catch (e) {}\r\n\t\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tif (fade) {\r\n\t\t\t\t\telemFinalProps.opacity = 0;\r\n\t\t\t\t\telemVisibility['z-index'] = -999;\t// Element is \"sent to back\" so it's impossible to click it\r\n\t\t\t\t}\r\n\t\t\t\t/* Element is moved to its final state using stop(true, true) and then moved back to starting state.\r\n\t\t\t\t * Method animate() is used instead of method css() because css() supports += and -= since jQuery \r\n\t\t\t\t * version 1.6 but animate supports this functionality since earlier versions (including 1.4.3\r\n\t\t\t\t * which is the oldest version jAccordion works with).\r\n\t\t\t\t * Default z-index is saved so it can be restored when the element is displayed.\r\n\t\t\t\t */\r\n\t\t\t\t$elem\r\n\t\t\t\t\t.stop(true, true)\r\n\t\t\t\t\t.data('defaultIndex', $elem.css('z-index'))\r\n\t\t\t\t\t.animate(elemFinalProps, 0).css(elemVisibility);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "a8abaf7ce540896edda2b127e15b6a4a", "score": "0.55548775", "text": "function hideExcept(el, exc) {\n\t\t\tif (el != self.container) {\n\t\t\t\tvar first = el.firstChild;\n\t\t\t\twhile(first) {\n\t\t\t\t\tif (first && first.style && first != exc) {\n\t\t\t\t\t\tif (!first.restorer) {\n\t\t\t\t\t\t\tfirst.restorer = new Zapatec.SRProp(first);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfirst.restorer.saveProp(\"style.display\");\n\t\t\t\t\t\tfirst.style.display = \"none\";\n\t\t\t\t\t}\n\t\t\t\t\tfirst = first.nextSibling;\n\t\t\t\t}\n\t\t\t\thideExcept(el.parentNode, el);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "59062b119d91317d22b07acdae943fd0", "score": "0.5549951", "text": "toggle(){this.hidden=!this.hidden}", "title": "" }, { "docid": "a4ad821a2e099d38b65508af41122124", "score": "0.5549624", "text": "showEditControls () {\n $( this.htmlViewElement() ).hide();\n $( this.htmlEditElement() ).show();\n const $wrapper = (($( this.htmlViewElement().parentElement ) /*: any */) /*: JQueryDnD */);\n $wrapper.removeDragAndSizeSelection();\n $wrapper.pauseDragAndResize();\n this.zBeforeEdit = $wrapper.css( 'z-index' );\n this.bgBeforeEdit = $( this.htmlEditElement() ).css( 'background-color' );\n $wrapper.css( 'z-index', 1000 );\n $( this.htmlEditElement() ).css( 'background-color', 'white' );\n this.model.drawOverlay(); // hide/show morphism arrows\n }", "title": "" }, { "docid": "e3f08bbbccd5e6aeddee5d244d94b321", "score": "0.5546434", "text": "onHide() {}", "title": "" }, { "docid": "e3f08bbbccd5e6aeddee5d244d94b321", "score": "0.5546434", "text": "onHide() {}", "title": "" }, { "docid": "e3f08bbbccd5e6aeddee5d244d94b321", "score": "0.5546434", "text": "onHide() {}", "title": "" }, { "docid": "774f8c5402802ea54d5c83f210549ace", "score": "0.5539606", "text": "function installGroupShowHide(parentobject)\n{\n\t$(parentobject).find(\".GroupShowHide\").click(\n\t function()\n\t { \n\t \tif ($(this).attr(\"checked\")===true) \n\t \t{\n\t \t\t$(\".Show\"+$(this).attr(\"id\")).show();\n\t \t \t$(\".Hide\"+$(this).attr(\"id\")+\":visible\").css(\"display\",\"inline-block\").slideUp(\"fast\");\n //Fix for IE bug\n //force select the default radio after slide down\n\t \t \t$(\".Show\"+$(this).attr(\"id\") +\" input.IECheckedFix\").attr(\"checked\",\"checked\");\n\t \t} \n\t \telse \n\t \t{\n\t \t \t$(\".HideNot\"+$(this).attr(\"id\")+\":visible\").css(\"display\",\"inline-block\").slideUp(\"fast\");\n\t \t\t$(\".ShowNot\"+$(this).attr(\"id\")).show();\n\t \t}\n\t }\n\t);\n}", "title": "" }, { "docid": "8ba1f33b85d37768110f023dad82ff16", "score": "0.55390614", "text": "hide () {\n\n\t}", "title": "" }, { "docid": "8ba1f33b85d37768110f023dad82ff16", "score": "0.55390614", "text": "hide () {\n\n\t}", "title": "" }, { "docid": "e67d664f023f00712d392f34f670f9f2", "score": "0.553234", "text": "function ShowHide(objID, forceShowHide, useCookie, notePublishDate) {\r\n\r\n if (arguments.length === 1) {\r\n forceShowHide = null; // null - ignore, true - force to hide, false - force to show\r\n useCookie = false;\r\n notePublishDate = \"\"; // In order to use this it is assumed there is also a publish date cookie\r\n } else if (arguments.length === 2) {\r\n useCookie = false;\r\n notePublishDate = \"\";\r\n } else if (arguments.length === 3) {\r\n notePublishDate = \"\";\r\n }\r\n\r\n var linkID = \"#SHLink_\" + objID;\r\n var imgID = \"#SHImg_\" + objID;\r\n var divID = \"#SHObj_\" + objID;\r\n var linkText = $(linkID).html();\r\n var isShowing;\r\n var objInfo;\r\n var ImgClass;\r\n \r\n if (objID.indexOf(\"Note\") !== -1) {\r\n objInfo = SHInfo[objID] !== undefined ? SHInfo[objID] : SHInfo[\"Default\"];\r\n } else if (objID.indexOf(\"Help\") !== -1) {\r\n objInfo = SHInfo[\"Answer\"];\r\n } else if (objID.indexOf(\"DSoln\") !== -1) {\r\n objInfo = SHInfo[\"SolutionDiscuss\"];\r\n } else if (objID.indexOf(\"Soln\") !== -1) {\r\n objInfo = SHInfo[\"Solution\"]; \r\n } else if (objID.indexOf(\"StepAS\") !== -1) {\r\n objInfo = SHInfo[\"StepAS\"];\r\n } else if (objID.indexOf(\"Step\") !== -1) {\r\n if (objID.indexOf(\"1\") !== -1) {\r\n objInfo = SHInfo[\"Step1\"];\r\n } else if (objID.indexOf(\"2\") !== -1) {\r\n objInfo = SHInfo[\"Step2\"];\r\n } else if (objID.indexOf(\"3\") !== -1) {\r\n objInfo = SHInfo[\"Step3\"];\r\n } else if (objID.indexOf(\"4\") !== -1) {\r\n objInfo = SHInfo[\"Step4\"];\r\n } else if (objID.indexOf(\"5\") !== -1) {\r\n objInfo = SHInfo[\"Step5\"];\r\n } else if (objID.indexOf(\"6\") !== -1) {\r\n objInfo = SHInfo[\"Step6\"];\r\n } else if (objID.indexOf(\"7\") !== -1) {\r\n objInfo = SHInfo[\"Step7\"];\r\n } else if (objID.indexOf(\"8\") !== -1) {\r\n objInfo = SHInfo[\"Step8\"];\r\n } else if (objID.indexOf(\"9\") !== -1) {\r\n objInfo = SHInfo[\"Step9\"];\r\n } else {\r\n objInfo = SHInfo[\"Step\"];\r\n }\r\n\r\n \r\n } else {\r\n objInfo = SHInfo[\"Default\"];\r\n }\r\n ImgClass = objInfo.ShowImg + \" \" + objInfo.HideImg;\r\n \r\n // If there is no linkText then either we have a note that can't be hidden (i.e. Assignment)\r\n // or something like the Mobile note that won't always be showing. In these cases just gracefully exit.\r\n if (linkText === undefined || $(linkID).is(':hidden')) {\r\n // However before we exist make sure to show if the linkText is undefined (i.e. can't be hidden)\r\n if (linkText === undefined) {\r\n $(divID).show();\r\n }\r\n return;\r\n }\r\n\r\n // Determine if we're going to force a show all or a hide all\r\n isShowing = forceShowHide === null ? linkText.indexOf(\"Show\") !== -1 || linkText.indexOf(\"Start\") !== -1 : !forceShowHide;\r\n \r\n // If the text and/or image object doesn't exist this will gracefully fail....\r\n if (isShowing) {\r\n // Only do this if we're toggling a single item (forceShow == null) or if the item \r\n // is hidden and we're forcing all to show (forceShow != null (i.e. false) )\r\n if (forceShowHide === null || (forceShowHide !== null && $(imgID).hasClass(objInfo.ShowImg))) {\r\n $(linkID).text(objInfo.HideText);\r\n $(imgID).toggleClass(ImgClass);\r\n $(divID).show(); \r\n }\r\n\r\n if (useCookie) {\r\n SetCookie(objID + \"Show\", true, 365);\r\n if (notePublishDate !== \"\") {\r\n SetCookie(objID + \"PubDate\", notePublishDate, 365);\r\n }\r\n }\r\n } else {\r\n // Only do this if we're toggling a single item (forceShow == null) or if the item \r\n // is showing and we're forcing all to hide (forceShow != null (i.e. true)\r\n if (forceShowHide === null || (forceShowHide !== null && $(imgID).hasClass(objInfo.HideImg))) {\r\n $(linkID).text(objInfo.ShowText);\r\n $(imgID).toggleClass(ImgClass);\r\n $(divID).hide(); \r\n }\r\n\r\n if (useCookie) {\r\n SetCookie(objID + \"Show\", false, 365);\r\n if (notePublishDate !== \"\") {\r\n SetCookie(objID + \"PubDate\", notePublishDate, 365);\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "f62ac29091d0dd9484082f9ed2daefc2", "score": "0.5532135", "text": "function toggleHiddenListHeaders(){\n const wishlistHeader = document.getElementById('wishlist-header');\n const applicationsHeader = document.getElementById('applications-header');\n const interviewsHeader = document.getElementById('interviews-header');\n if(!wishlistElem.hasChildNodes() && !wishlistHeader.classList.contains('hidden')){\n wishlistHeader.classList.add('hidden');\n } else if(wishlistElem.hasChildNodes() && wishlistHeader.classList.contains('hidden')){\n wishlistHeader.classList.remove('hidden');\n }\n\n if(!applicationlistElem.hasChildNodes() && !applicationsHeader.classList.contains('hidden')){\n applicationsHeader.classList.add('hidden');\n } else if(applicationlistElem.hasChildNodes() && applicationsHeader.classList.contains('hidden')){\n applicationsHeader.classList.remove('hidden');\n }\n\n if(!interviewlistElem.hasChildNodes() && !interviewsHeader.classList.contains('hidden')){\n interviewsHeader.classList.add('hidden');\n } else if(interviewlistElem.hasChildNodes() && interviewsHeader.classList.contains('hidden')){\n interviewsHeader.classList.remove('hidden');\n }\n}", "title": "" }, { "docid": "86bbb84eaec4970795a3ed2024ce71d9", "score": "0.55229425", "text": "function hideOptions(prismDropVal, modisDropVal, dynamicsDropVal, diffDropVal, bgDropVal, targetDropVal) {\n prismDropVal != undefined ? document.getElementById(\"prismShow\").style.visibility = 'visible' : document.getElementById(\"prismShow\").style.visibility = 'hidden';\n modisDropVal != undefined ? document.getElementById(\"modisShow\").style.visibility = 'visible' : document.getElementById(\"modisShow\").style.visibility = 'hidden';\n dynamicsDropVal != undefined ? document.getElementById(\"dynamicShow\").style.visibility = 'visible' : document.getElementById(\"dynamicShow\").style.visibility = 'hidden';\n diffDropVal != undefined ? document.getElementById(\"diffShow\").style.visibility = 'visible' : document.getElementById(\"diffShow\").style.visibility = 'hidden';\n bgDropVal != undefined ? document.getElementById(\"bgShow\").style.visibility = 'visible' : document.getElementById(\"bgShow\").style.visibility = 'hidden';\n targetDropVal != undefined ? document.getElementById(\"targetShow\").style.visibility = 'visible' : document.getElementById(\"targetShow\").style.visibility = 'hidden';\n }", "title": "" }, { "docid": "bda54a433e55b8cd399f8c1942446672", "score": "0.5518075", "text": "function showHideBisect(element) {\n var button = null,\n tElement = $(element),\n dataId = JSBase.checkIfNotID(tElement.data('id')),\n dataAction = tElement.data('action'),\n dataShowHide = tElement.data('sh'),\n dataCompared = tElement.data('compared');\n\n if (dataAction === 'hide') {\n button = createShowHideButton(\n dataId, dataShowHide, 'show', dataCompared);\n JSBase.hideElementByID(dataShowHide);\n JSBase.replaceContentByID(dataId, button);\n\n if (dataCompared === null) {\n JSBase.replaceContentByID(\n '#view-' + dataId,\n '<small>' + bisectHiddenText + '<small>');\n } else {\n JSBase.replaceContentByID(\n '#view-' + dataId,\n '<small>' +\n sprintf(bisectComparedHiddenText, dataCompared) +\n '<small>'\n );\n }\n } else {\n button = createShowHideButton(\n dataId, dataShowHide, 'hide', dataCompared);\n JSBase.showElementByID(dataShowHide);\n $('#view-' + dataId).empty();\n JSBase.replaceContentByID(dataId, button);\n }\n }", "title": "" }, { "docid": "dc158784c19a1fcb6d75163e54a9d955", "score": "0.55110097", "text": "function visibility(cell, int) {\n\tdivContent = document.getElementById(\"\" + cell + \"DIV\");\n\tdivButton = document.getElementById(\"\" + cell + \"Button\");\n\tif (int === 2)\n\t\tif (document.getElementById(\"\" + cell + \"1\").checked\n\t\t\t&& document.getElementById(\"\" + cell + \"2\").checked)\n\t\t\t\tfade(divContent, divButton); //RECONSTRUCT elementDIV VARIABLE, CALL FADE\n\tif (int === 3)\n\t\tif (document.getElementById(\"\" + cell + \"1\").checked\n\t\t\t&& document.getElementById(\"\" + cell + \"2\").checked\n\t\t\t\t&& document.getElementById(\"\" + cell + \"3\").checked)\n\t\t\t\t\tfade(divContent, divButton); //RECONSTRUCT elementDIV VARIABLE, CALL FADE\n}", "title": "" }, { "docid": "7182c1cdfa7c6f7e0af0da936f07f54a", "score": "0.55054784", "text": "get displayStyle() {\n return this.isvisible ? \"\" : \"display:none;\";\n }", "title": "" }, { "docid": "79df21332578b4eac663f19dca5d9872", "score": "0.5500518", "text": "checkVisible() {\n\t\tif (this.parentNode) {\n\t\t\tlet numCards = document.body.clientWidth > MOBILE_RESOLUTION ? 3 : 1;\n\t\t\tthis.isVisible = Array.from(this.parentNode.children).indexOf(this) < numCards;\n\t\t}\n\t}", "title": "" }, { "docid": "69ab25c8af182e116c702efdab7f8679", "score": "0.5493752", "text": "function hide() {}", "title": "" }, { "docid": "554a786f788b3a00fc1ba885d302e594", "score": "0.5489833", "text": "function detectVisibility() {\r\n\r\n\tif ( $('#philosophy').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".philosophy-lnk a\").addClass('active');\r\n\t} else if ( $('#founder').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".founder-lnk a\").addClass('active');\r\n\t} else if ( $('#team').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".team-lnk a\").addClass('active');\r\n\t} else if ( $('#aconcagua-valley').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".aconcagua-valley-lnk a\").addClass('active');\r\n\t} else if ( $('#chilhue-vineyard').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".chilhue-vineyard-lnk a\").addClass('active');\r\n\t} else if ( $('#las-vertientes').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".las-vertientes-lnk a\").addClass('active');\r\n\t} else if ( $('#sustainability').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".sustainability-lnk a\").addClass('active');\r\n\t} else if ( $('#viticulture').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".viticulture-lnk a\").addClass('active');\r\n\t} else if ( $('#chardonnay').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".chardonnay-lnk a\").addClass('active');\r\n\t} else if ( $('#sauvignon-blanc').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".sauvignon-blanc-lnk a\").addClass('active');\r\n\t} else if ( $('#pinot-noir').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".pinot-noir-lnk a\").addClass('active');\r\n\t} else if ( $('#carmenere').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".carmenere-lnk a\").addClass('active');\r\n\t} else if ( $('#cabernet-sauvignon').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".cabernet-sauvignon-lnk a\").addClass('active');\r\n\t} else if ( $('#syrah').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".syrah-lnk a\").addClass('active');\r\n\t} else if ( $('#chardonnay-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".chardonnay-awards-lnk a\").addClass('active');\r\n\t} else if ( $('#sauvignon-blanc-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".sauvignon-blanc-awards-lnk a\").addClass('active');\r\n\t} else if ( $('#pinot-noir-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".pinot-noir-awards-lnk a\").addClass('active');\r\n\t} else if ( $('#carmenere-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".carmenere-awards-lnk a\").addClass('active');\r\n\t} else if ( $('#cabernet-sauvignon-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".cabernet-sauvignon-awards-lnk a\").addClass('active');\r\n\t} else if ( $('#syrah-awards').visible() ) {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t\t$(\".syrah-awards-lnk a\").addClass('active');\r\n\t} else {\r\n\t\t$(\".submenu a\").removeClass('active');\r\n\t}\r\n}", "title": "" }, { "docid": "253346d6c90880ce1e249f4e0a9f55bb", "score": "0.5489394", "text": "function refreshHidden(){\n\t/*Note:\n\t\tthe .hasClass function checks if ANY of the selected\n\t\telements has the specified class\n\t*/\n\tif(!$(\".showSize\").hasClass(\"active\")){\n\t\t$(\".size\").hide();\n\t}\n\tif(!$(\".showType\").hasClass(\"active\")){\n\t\t$(\".mimetype\").hide();\n\t}\n\tif(!$(\".showCreation\").hasClass(\"active\")){\n\t\t$(\".creation_date\").hide();\n\t}\n}", "title": "" }, { "docid": "971b67b2adb9c2bcef21c85d2fef93c8", "score": "0.5487058", "text": "function EZhide(el, trueFalse, useVisibility)\n{\n\tel = EZgetEl(el);\n\tif (el == null) return false;\n\n\tif (trueFalse == EZ.undefined) trueFalse = true;\n\tif (EZisFalseLike(trueFalse)) return EZshow(el);\n\n\tuseVisibility = typeof(useVisibility) == 'boolean' ? useVisibility\n\t\t\t\t : useVisibility == 'visibility';\n\n\tif (EZisShow(el))\t\t//if currently showing . . .\n\t{\t\t\t\t\t\t//hide via visibilty if specified or previously hidden\n\t\tif (!el.EZorigStyle) el.EZorigStyle = {}\n\t\tif (useVisibility || el.EZorigStyle.visibility == 'hidden')\n\t\t\tel.style.visibility = 'hidden';\n\t\telse\n\t\t{\t\t\t\t\t//otherwise set display to none after saving current value\n\t\t\tel.EZorigStyle.display = EZgetStyle(el,'display')\n\t\t\tel.style.display = 'none';\n\t\t}\n\t}\n\treturn false;\t//convenience return value\n}", "title": "" }, { "docid": "971b67b2adb9c2bcef21c85d2fef93c8", "score": "0.5487058", "text": "function EZhide(el, trueFalse, useVisibility)\n{\n\tel = EZgetEl(el);\n\tif (el == null) return false;\n\n\tif (trueFalse == EZ.undefined) trueFalse = true;\n\tif (EZisFalseLike(trueFalse)) return EZshow(el);\n\n\tuseVisibility = typeof(useVisibility) == 'boolean' ? useVisibility\n\t\t\t\t : useVisibility == 'visibility';\n\n\tif (EZisShow(el))\t\t//if currently showing . . .\n\t{\t\t\t\t\t\t//hide via visibilty if specified or previously hidden\n\t\tif (!el.EZorigStyle) el.EZorigStyle = {}\n\t\tif (useVisibility || el.EZorigStyle.visibility == 'hidden')\n\t\t\tel.style.visibility = 'hidden';\n\t\telse\n\t\t{\t\t\t\t\t//otherwise set display to none after saving current value\n\t\t\tel.EZorigStyle.display = EZgetStyle(el,'display')\n\t\t\tel.style.display = 'none';\n\t\t}\n\t}\n\treturn false;\t//convenience return value\n}", "title": "" }, { "docid": "5e08d752f2d3ec7527e7b665d62692aa", "score": "0.5484946", "text": "show(){\n this.each((e)=>{\n e.classList.remove('muHide')\n })\n return this\n }", "title": "" } ]
f7a59c6f02fdcdef27a728991962b7c2
Constructs a new NotificationAttributes. Attributes for the notification including the path, recipients, and share data.
[ { "docid": "5b919ea4a0a6ecc3981cebff80527d79", "score": "0.77325505", "text": "function NotificationAttributes() {\n _classCallCheck(this, NotificationAttributes);\n\n this['userId'] = undefined;\n this['type'] = undefined;\n this['path'] = undefined;\n this['name'] = undefined;\n this['action'] = undefined;\n this['usernames'] = undefined;\n this['recipients'] = undefined;\n this['sendEmail'] = undefined;\n this['readableDescription'] = undefined;\n this['readableDescriptionWithoutPath'] = undefined;\n this['shareId'] = undefined;\n this['message'] = undefined;\n this['created'] = undefined;\n this['modified'] = undefined;\n }", "title": "" } ]
[ { "docid": "bdd4aef67e46090986165a7477fff600", "score": "0.51216906", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayMulticastDomainAssociation.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'subnetId', this);\n cdk.requireProperty(props, 'transitGatewayAttachmentId', this);\n cdk.requireProperty(props, 'transitGatewayMulticastDomainId', this);\n this.attrResourceId = cdk.Token.asString(this.getAtt('ResourceId'));\n this.attrResourceType = cdk.Token.asString(this.getAtt('ResourceType'));\n this.attrState = cdk.Token.asString(this.getAtt('State'));\n this.subnetId = props.subnetId;\n this.transitGatewayAttachmentId = props.transitGatewayAttachmentId;\n this.transitGatewayMulticastDomainId = props.transitGatewayMulticastDomainId;\n }", "title": "" }, { "docid": "ffc22c6b5c98d095d2240b9f941518e9", "score": "0.50361234", "text": "getAttributes () {\n let attrib = this.type\n if (this.important) {\n attrib += ` ${MessageAttributes['important']}`\n }\n if (this.notAcknowledged) {\n attrib += ` ${MessageAttributes['notAcknowledged']}`\n }\n if (this.successful) {\n attrib += ` ${MessageAttributes['successful']}`\n }\n return attrib\n }", "title": "" }, { "docid": "6fd08ff4205d8089321ef7d2e19667ef", "score": "0.502792", "text": "constructor(notification, data) {\n this._notification = notification;\n\n if (data) {\n this._actions = data.actions ? data.actions.map(action => fromNativeAndroidAction(action)) : [];\n this._autoCancel = data.autoCancel;\n this._badgeIconType = data.badgeIconType;\n this._bigPicture = data.bigPicture;\n this._bigText = data.bigText;\n this._category = data.category;\n this._channelId = data.channelId;\n this._clickAction = data.clickAction;\n this._color = data.color;\n this._colorized = data.colorized;\n this._contentInfo = data.contentInfo;\n this._defaults = data.defaults;\n this._group = data.group;\n this._groupAlertBehaviour = data.groupAlertBehaviour;\n this._groupSummary = data.groupSummary;\n this._largeIcon = data.largeIcon;\n this._lights = data.lights;\n this._localOnly = data.localOnly;\n this._number = data.number;\n this._ongoing = data.ongoing;\n this._onlyAlertOnce = data.onlyAlertOnce;\n this._people = data.people;\n this._priority = data.priority;\n this._progress = data.progress;\n // _publicVersion: Notification;\n this._remoteInputHistory = data.remoteInputHistory;\n this._shortcutId = data.shortcutId;\n this._showWhen = data.showWhen;\n this._smallIcon = data.smallIcon;\n this._sortKey = data.sortKey;\n this._tag = data.tag;\n this._ticker = data.ticker;\n this._timeoutAfter = data.timeoutAfter;\n this._usesChronometer = data.usesChronometer;\n this._vibrate = data.vibrate;\n this._visibility = data.visibility;\n this._when = data.when;\n }\n\n // Defaults\n this._actions = this._actions || [];\n this._people = this._people || [];\n this._smallIcon = this._smallIcon || {\n icon: 'ic_launcher'\n };\n }", "title": "" }, { "docid": "6a3a80f5a6f7625c36ba44015fc35c05", "score": "0.4994076", "text": "function _generateAttributes(customAttributes){\n\n // get the values\n var secret = tk.global('RTM_SECRET');\n var signature = '';\n var attributes = Object.create(null);\n attributes['api_key'] = tk.global('RTM_API_KEY') \n // we use this function to get our token so we only want to \n // set this when it exists\n if( tk.global('RTM_TOKEN').length != 0) {\n\t attributes['auth_token'] = tk.global('RTM_TOKEN') \n }\n attributes['format'] = 'json';\n \n // add in our custom attributes\n $.each( Object.keys(customAttributes), function(index, key){\n attributes[key] = customAttributes[key];\n });\n\n // sort our object and generate our signature\n $.each( Object.keys(attributes).sort(), function( index, key ){\n signature += key+attributes[key];\n });\n signature = secret+signature;\n\n // add our sig to the attributes list\n attributes['api_sig'] = tk.convert( signature, 'toMd5');\n\n return attributes;\n}", "title": "" }, { "docid": "82a7bcb1e5ee1c32aa35caa71e3d89de", "score": "0.49759337", "text": "function create_attrs() {\n if ( !extract_attr( this.tree ) ) {\n this.tree.splice( 1, 0, {} );\n }\n\n var attrs = extract_attr( this.tree );\n\n // make a references hash if it doesn't exist\n if ( attrs.references === undefined ) {\n attrs.references = {};\n }\n\n return attrs;\n }", "title": "" }, { "docid": "71a758eb4290c678eea5b47113fd8b12", "score": "0.49738246", "text": "constructor(onNotification) {\n this.configure(onNotification);\n this.lastId = 0;\n }", "title": "" }, { "docid": "ecb6e37639b013bb574bbee3156e5dc5", "score": "0.48832428", "text": "static get properties() {\n return {\n t: { type: Object },\n to: { type: String, reflect: true },\n from: { type: String, reflect: true },\n message: { type: String, reflect: true },\n photoSrc: { type: String, attribute: \"photo-src\", reflect: true },\n stampSrc: { type: String, attribute: \"stamp-src\", reflect: true },\n postMarkLocations: {\n type: String,\n reflect: true,\n attribute: \"post-mark-locations\",\n },\n };\n }", "title": "" }, { "docid": "2345153c8871e9e14d90dccc372a74a7", "score": "0.48533863", "text": "createNotification(name, data, type) {\n if(typeof name === 'string') {\n return new Notification(name, data, type);\n } else {\n throw new Error('notification name must be String type');\n }\n }", "title": "" }, { "docid": "43625e6473765b1a4c0bb309b06c9ee1", "score": "0.48383856", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayMulticastDomain.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'transitGatewayId', this);\n this.attrCreationTime = cdk.Token.asString(this.getAtt('CreationTime'));\n this.attrState = cdk.Token.asString(this.getAtt('State'));\n this.attrTransitGatewayMulticastDomainArn = cdk.Token.asString(this.getAtt('TransitGatewayMulticastDomainArn'));\n this.attrTransitGatewayMulticastDomainId = cdk.Token.asString(this.getAtt('TransitGatewayMulticastDomainId'));\n this.transitGatewayId = props.transitGatewayId;\n this.options = props.options;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::EC2::TransitGatewayMulticastDomain\", props.tags, { tagPropertyName: 'tags' });\n }", "title": "" }, { "docid": "1ec3915d14bfdded2633773a4f82b3de", "score": "0.4828109", "text": "getAttributes() {\n return { envelope: this.getEnvelope(), payload: this.getPayload() };\n }", "title": "" }, { "docid": "1ec3915d14bfdded2633773a4f82b3de", "score": "0.4828109", "text": "getAttributes() {\n return { envelope: this.getEnvelope(), payload: this.getPayload() };\n }", "title": "" }, { "docid": "1ec3915d14bfdded2633773a4f82b3de", "score": "0.4828109", "text": "getAttributes() {\n return { envelope: this.getEnvelope(), payload: this.getPayload() };\n }", "title": "" }, { "docid": "494aa750eb7a4cb913ed9be8ed3f2c7f", "score": "0.48065728", "text": "build() {\r\n return Notification;\r\n }", "title": "" }, { "docid": "530461cf9e4cc85a8a8aba3a2d8deee0", "score": "0.47899708", "text": "static create(identifier, options) {\n return browser.notifications.create(identifier, {\n type: \"basic\",\n iconUrl: icon256,\n ...options,\n });\n }", "title": "" }, { "docid": "f37cb4534413c96856776e841dc8c042", "score": "0.47798404", "text": "function makeNotification(notification) {\n var to = routeNotification(notification);\n var notificationText = makeNotificationText(notification);\n var notificationDesc = makeNotificationDesc(notification);\n return '<a href=\"' + to + '\"><div class=\"notifcation\"><img src=\"/storage/public/images/' + notification.data.profile_picture + '\"><div class=\"notifcation-content\"><p class=\"head\">' + notificationText + '</p><p class=\"center\">' + notificationDesc + '</p><p class=\"date\">' + notification.created_at + '</p><section class=\"fix\"></section></div></div></a>';\n}", "title": "" }, { "docid": "6ad7cb8d8ef33b50ba1e5902551a8b47", "score": "0.47672796", "text": "function createNotification(donation) {\n const amount = parseFloat(donation.amount);\n const subtitle = getSubTitle(amount, donation.currencyCode);\n\n return {\n id: donation.id,\n message: donation.message,\n subtitle,\n title: donation.donorDisplayName,\n };\n}", "title": "" }, { "docid": "94356306558f2f27e12c0c65ac70f3d2", "score": "0.4762092", "text": "function getAttributes() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n width = _ref.width,\n height = _ref.height,\n _ref$viewBox = _ref.viewBox,\n viewBox = _ref$viewBox === void 0 ? \"0 0 \".concat(width, \" \").concat(height) : _ref$viewBox,\n attributes = _objectWithoutProperties(_ref, [\"width\", \"height\", \"viewBox\"]);\n\n var tabindex = attributes.tabindex,\n rest = _objectWithoutProperties(attributes, [\"tabindex\"]);\n\n var iconAttributes = _objectSpread({}, defaultAttributes, rest, {\n width: width,\n height: height,\n viewBox: viewBox\n }); // TODO: attributes.title assumes that the consumer will implement <title> and\n // correctly set `aria-labelledby`.\n\n\n if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {\n iconAttributes.role = 'img'; // Reference:\n // https://allyjs.io/tutorials/focusing-in-svg.html\n\n if (tabindex !== undefined && tabindex !== null) {\n iconAttributes.focusable = 'true';\n iconAttributes.tabindex = tabindex;\n }\n } else {\n iconAttributes['aria-hidden'] = true;\n }\n\n return iconAttributes;\n}", "title": "" }, { "docid": "52e5fcbcaaf252c1f33f33a901099e67", "score": "0.4752987", "text": "constructor(id, eventAttributes) {\n this.id = id;\n this.name = eventAttributes.name;\n this.location = eventAttributes.location;\n this.attendees = eventAttributes.attendees;\n this.numAttendees = eventAttributes.attendees.length;\n this.imagePath = eventAttributes.image_url;\n this.comments = eventAttributes.comments;\n this.userId = eventAttributes.user.id;\n this.userName = eventAttributes.user.username;\n this.attending = determineIfAttending(eventAttributes.attendees);\n Event.all.push(this);\n }", "title": "" }, { "docid": "c6c082dacd5fcc5d2d7dec0cecef7a4e", "score": "0.47280514", "text": "constructor(onNotification) {\n this.configure(onNotification);\n this.createChannel();\n }", "title": "" }, { "docid": "156d5bf53ac410728bf8398a057a2465", "score": "0.47166383", "text": "function create( title, body, iconUrl, timeout /* = DEFAULT_TIMEOUT */ )\n{\n\tvar options = { };\n\tif ( body )\n\t\toptions.body = body;\n\tif ( iconUrl )\n\t\toptions.icon = iconUrl;\n\tvar notification = new Notification( title, options );\n\n\tif ( timeout !== null )\n\t{\n\t\tif ( typeof timeout === 'undefined' )\n\t\t\ttimeout = DEFAULT_TIMEOUT;\n\t\tsetTimeout( notification.close.bind( notification ), timeout );\n\t}\n\n\treturn notification;\n}", "title": "" }, { "docid": "b22242ef7128664272b71788b07b622c", "score": "0.47152692", "text": "function createNotification(id,notification){\n chrome.notifications.create(id, notification, function (){\n chrome.storage.local.set({notification: id});\n });\n}", "title": "" }, { "docid": "77fc512ad25a893e00bb027f72688f46", "score": "0.47085202", "text": "function buildNotification() {\n\t\t// Build the notification container\n\t\tthis.notification = document.createElement(\"div\");\n\t\t//this.notification.className = \"rc_notification rc_notification--\" + this.options.type;\n\t\taddClasses.call(this, \"rc_notification rc_notification--\" + this.options.type);\n\n\t\t// If notification requires a close button\n\t\tif (this.options.static === true || this.options.static === 'true') {\n\t\t\tthis.closeButton = document.createElement('span');\n\t\t\tthis.closeButton.className = 'rc_notification__close';\n\n\t\t\t// Append close button to notification\n\t\t\tthis.notification.appendChild(this.closeButton);\n\t\t}\n\n\t\t// Place message within a <p></p> tag\n\t\tnotificationContent = document.createElement(\"p\");\n\t\tnotificationContent.innerHTML = this.options.message;\n\t\tthis.notification.appendChild(notificationContent)\n\n\t\t// Append document fragment to the body\n\t\t//document.body.appendChild(docFragment);\n\t\tthis._appendNotification();\n\t}", "title": "" }, { "docid": "546811e63d4f44dd4f7438b967e18ee5", "score": "0.47074586", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "546811e63d4f44dd4f7438b967e18ee5", "score": "0.47074586", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "546811e63d4f44dd4f7438b967e18ee5", "score": "0.47074586", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "670f10901c4f24af2a200116a3c43eeb", "score": "0.47049442", "text": "function getAttributes() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n width = _ref.width,\n height = _ref.height,\n _ref$viewBox = _ref.viewBox,\n viewBox = _ref$viewBox === void 0 ? \"0 0 \".concat(width, \" \").concat(height) : _ref$viewBox,\n attributes = _objectWithoutProperties(_ref, [\"width\", \"height\", \"viewBox\"]);\n\n var tabindex = attributes.tabindex,\n rest = _objectWithoutProperties(attributes, [\"tabindex\"]);\n\n var iconAttributes = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultAttributes), rest), {}, {\n width: width,\n height: height,\n viewBox: viewBox\n }); // TODO: attributes.title assumes that the consumer will implement <title> and\n // correctly set `aria-labelledby`.\n\n\n if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {\n iconAttributes.role = 'img'; // Reference:\n // https://allyjs.io/tutorials/focusing-in-svg.html\n\n if (tabindex !== undefined && tabindex !== null) {\n iconAttributes.focusable = 'true';\n iconAttributes.tabindex = tabindex;\n }\n } else {\n iconAttributes['aria-hidden'] = true;\n }\n\n return iconAttributes;\n}", "title": "" }, { "docid": "670f10901c4f24af2a200116a3c43eeb", "score": "0.47049442", "text": "function getAttributes() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n width = _ref.width,\n height = _ref.height,\n _ref$viewBox = _ref.viewBox,\n viewBox = _ref$viewBox === void 0 ? \"0 0 \".concat(width, \" \").concat(height) : _ref$viewBox,\n attributes = _objectWithoutProperties(_ref, [\"width\", \"height\", \"viewBox\"]);\n\n var tabindex = attributes.tabindex,\n rest = _objectWithoutProperties(attributes, [\"tabindex\"]);\n\n var iconAttributes = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultAttributes), rest), {}, {\n width: width,\n height: height,\n viewBox: viewBox\n }); // TODO: attributes.title assumes that the consumer will implement <title> and\n // correctly set `aria-labelledby`.\n\n\n if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {\n iconAttributes.role = 'img'; // Reference:\n // https://allyjs.io/tutorials/focusing-in-svg.html\n\n if (tabindex !== undefined && tabindex !== null) {\n iconAttributes.focusable = 'true';\n iconAttributes.tabindex = tabindex;\n }\n } else {\n iconAttributes['aria-hidden'] = true;\n }\n\n return iconAttributes;\n}", "title": "" }, { "docid": "36027dfc4074c044fcf95197f5d81543", "score": "0.47037438", "text": "function create(attrs) {\n if (!attrs) attrs = {}\n\n /* Sort keys and values by key name - this is also done by OS X. */\n var keys = Object.keys(attrs).sort()\n var values = []\n for (var i = 0, n = keys.length; i < n; i++) {\n values.push(attrs[keys[i]])\n }\n\n var applLength = bufferpack.calcLength(applFormat)\n var attrLength = bufferpack.calcLength(attrFormat)\n\n var keysBuffer = createAttrKeys(keys, values, applLength + attrLength)\n var keysLength = keysBuffer.length\n\n var dataBuffer = createAttrData(values)\n var dataLength = dataBuffer.length\n\n var dataOffset = applLength + attrLength + keysLength\n var fileLength = applLength + attrLength + keysLength + dataLength\n\n var finderInfoOffset = applLength\n var finderInfoLength = attrLength + keysLength + dataLength\n var resourceForkOffset = fileLength\n var resourceForkLength = 0\n\n var applBuffer = bufferpack.pack(applFormat, [\n applMagic,\n applEntries,\n finderInfoType,\n finderInfoOffset,\n finderInfoLength,\n resourceForkType,\n resourceForkOffset,\n resourceForkLength,\n ])\n\n var attrBuffer = bufferpack.pack(attrFormat, [\n attrMagic,\n fileLength,\n dataOffset,\n dataLength,\n ])\n\n return Buffer.concat([\n applBuffer,\n attrBuffer,\n keysBuffer,\n dataBuffer,\n ])\n}", "title": "" }, { "docid": "8fc2098352267d0781c831649fa09cdf", "score": "0.47036245", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "8fc2098352267d0781c831649fa09cdf", "score": "0.47036245", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "28ef41da4a41566c07dda382ae94b631", "score": "0.46959317", "text": "static createPropertiesForAttributes() {\n let a$ = this.observedAttributes;\n for (let i = 0; i < a$.length; i++) {\n this.prototype._createPropertyAccessor(caseMap.dashToCamelCase(a$[i]));\n }\n }", "title": "" }, { "docid": "93360cedb5aa511c131bbb7043cb49ab", "score": "0.46675065", "text": "function createAttributes(attributes, resourceLabels, droppedAttributesCount) {\n const attributesBuilder = createAttributesBuilder(attributes, droppedAttributesCount);\n if (attributesBuilder.attributeMap) {\n attributesBuilder.attributeMap[AGENT_LABEL_KEY] = AGENT_LABEL_VALUE;\n }\n attributesBuilder.attributeMap = Object.assign({}, attributesBuilder.attributeMap, resourceLabels);\n return attributesBuilder;\n}", "title": "" }, { "docid": "a07e3db91cc0566893a4685b8ce196bc", "score": "0.46314773", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "a07e3db91cc0566893a4685b8ce196bc", "score": "0.46314773", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "a07e3db91cc0566893a4685b8ce196bc", "score": "0.46314773", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "a07e3db91cc0566893a4685b8ce196bc", "score": "0.46314773", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "a07e3db91cc0566893a4685b8ce196bc", "score": "0.46314773", "text": "_createPart() {\n return new AttributePart(this);\n }", "title": "" }, { "docid": "a2b40cec4fba8a85fe205ec2d1a3ec15", "score": "0.46231478", "text": "function createAttributeClone( attr, countOverride = null ) {\n\n\tconst cons = attr.array.constructor;\n\tconst normalized = attr.normalized;\n\tconst itemSize = attr.itemSize;\n\tconst count = countOverride === null ? attr.count : countOverride;\n\n\treturn new BufferAttribute( new cons( itemSize * count ), itemSize, normalized );\n\n}", "title": "" }, { "docid": "08c52625dff5e95daeb85256b4310d57", "score": "0.46214643", "text": "generateBidGenericAttributes (attributes) {\n attributes = attributes || {}\n\n attributes[\"libVersion\"] = this._pbVersion\n \n // Generate time since attributes\n attributes[\"timeSinceBidAddAdUnits\"] = this._timeSinceBidAddAdUnits.getDeltaTime()\n attributes[\"timeSinceBidRequestBids\"] = this._timeSinceBidRequestBids.getDeltaTime()\n attributes[\"timeSinceBidAuctionInit\"] = this._timeSinceBidAuctionInit.getDeltaTime()\n attributes[\"timeSinceBidAuctionEnd\"] = this._timeSinceBidAuctionEnd.getDeltaTime()\n attributes[\"timeSinceBidSetTargeting\"] = this._timeSinceBidSetTargeting.getDeltaTime()\n\n return attributes\n }", "title": "" }, { "docid": "1edba8f2d2b36f9b4ad02e795f4c0d52", "score": "0.46032485", "text": "function createNotification(drama, subs) {\n // Create notification\n let messageBody = buildNotificationMessage(drama.currentEp, subs);\n\n let notificationOptions = {\n type: \"basic\",\n title: drama.name,\n message: messageBody,\n iconUrl: drama.image,\n isClickable : false,\n buttons: [{\n title: \"Watch now\",\n iconUrl: \"/img/watch-now.png\"\n }, {\n title: \"Mute notifications\",\n iconUrl: \"/img/mute.png\"\n }]\n };\n \n chrome.notifications.create(drama.url, notificationOptions);\n\n // Update the drama's current URL and episode number\n currentDramasInfo[drama.url] = { \n url: drama.currentUrl,\n episode: drama.currentEp\n };\n}", "title": "" }, { "docid": "ef07259e738625ff9588f33b88a4d1c7", "score": "0.45949355", "text": "static _fromCloudFormation(scope, id, resourceAttributes, options) {\n resourceAttributes = resourceAttributes || {};\n const resourceProperties = options.parser.parseValue(resourceAttributes.Properties);\n const propsResult = CfnTransitGatewayAttachmentPropsFromCloudFormation(resourceProperties);\n const ret = new CfnTransitGatewayAttachment(scope, id, propsResult.value);\n for (const [propKey, propVal] of Object.entries(propsResult.extraProperties)) {\n ret.addPropertyOverride(propKey, propVal);\n }\n options.parser.handleAttributes(ret, resourceAttributes, id);\n return ret;\n }", "title": "" }, { "docid": "554ceb7682a76720dc33cdef1513b055", "score": "0.45651147", "text": "function createNotification( data )\n\t{\n\t\t// Create new instance of template and remove template properties.\n\t\tshadow = document.querySelector(\"#notifications > .template\").cloneNode(true);\n\t\tshadow.classList.remove(\"template\");\n\n\t\t// Edit its contents according to remote info.\n\t\tQS(\"h4\").innerText = data.title;\n\t\tQS(\"span\").innerText = data.text;\n\n\t\t// Create link with external browser handling.\n\t\tif ( data.url )\n\t\t{\n\t\t\tvar link = QS(\"a\");\n\t\t\tlink.href = atob(data.url);\n\t\t\tlink.style.display = \"block\";\n\t\t\tlink.onclick = function(e) { nw.Shell.openExternal(this.href); return false; }\n\t\t}\n\n\t\t// Append the new notification and increase counter.\n\t\tdocument.getElementById(\"notifications\").appendChild(shadow);\n\t\tcount++;\n\t}", "title": "" }, { "docid": "fa9e086fb595a40f6db28e961b7ae3bf", "score": "0.45515972", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayMulticastGroupMember.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'groupIpAddress', this);\n cdk.requireProperty(props, 'networkInterfaceId', this);\n cdk.requireProperty(props, 'transitGatewayMulticastDomainId', this);\n this.attrGroupMember = this.getAtt('GroupMember');\n this.attrGroupSource = this.getAtt('GroupSource');\n this.attrMemberType = cdk.Token.asString(this.getAtt('MemberType'));\n this.attrResourceId = cdk.Token.asString(this.getAtt('ResourceId'));\n this.attrResourceType = cdk.Token.asString(this.getAtt('ResourceType'));\n this.attrSourceType = cdk.Token.asString(this.getAtt('SourceType'));\n this.attrSubnetId = cdk.Token.asString(this.getAtt('SubnetId'));\n this.attrTransitGatewayAttachmentId = cdk.Token.asString(this.getAtt('TransitGatewayAttachmentId'));\n this.groupIpAddress = props.groupIpAddress;\n this.networkInterfaceId = props.networkInterfaceId;\n this.transitGatewayMulticastDomainId = props.transitGatewayMulticastDomainId;\n }", "title": "" }, { "docid": "2a70fdc2783e081cf2e708beaf9e3203", "score": "0.4544726", "text": "static attributeNamespace () {\n return {\n 'href': SvgElement.xlink,\n 'xlink': SvgElement.xmlns,\n // Only the xmlns attribute needs the trailing slash. See #984\n 'xmlns': `${SvgElement.xmlns}/`,\n // IE needs the xmlns namespace when setting 'xmlns:xlink'. See #984\n 'xmlns:xlink': `${SvgElement.xmlns}/`\n };\n }", "title": "" }, { "docid": "cb8a7f7bc73195400883d4e8192e15e9", "score": "0.45442578", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayMulticastGroupSource.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'groupIpAddress', this);\n cdk.requireProperty(props, 'networkInterfaceId', this);\n cdk.requireProperty(props, 'transitGatewayMulticastDomainId', this);\n this.attrGroupMember = this.getAtt('GroupMember');\n this.attrGroupSource = this.getAtt('GroupSource');\n this.attrMemberType = cdk.Token.asString(this.getAtt('MemberType'));\n this.attrResourceId = cdk.Token.asString(this.getAtt('ResourceId'));\n this.attrResourceType = cdk.Token.asString(this.getAtt('ResourceType'));\n this.attrSourceType = cdk.Token.asString(this.getAtt('SourceType'));\n this.attrSubnetId = cdk.Token.asString(this.getAtt('SubnetId'));\n this.attrTransitGatewayAttachmentId = cdk.Token.asString(this.getAtt('TransitGatewayAttachmentId'));\n this.groupIpAddress = props.groupIpAddress;\n this.networkInterfaceId = props.networkInterfaceId;\n this.transitGatewayMulticastDomainId = props.transitGatewayMulticastDomainId;\n }", "title": "" }, { "docid": "98d7186c4650303c0f022e5f2db4411b", "score": "0.45400038", "text": "function Attendee() {\n return {\n //readwrite property String address\n //readwrite property Number type\n\n address: null,\n type: null\n };\n }", "title": "" }, { "docid": "92da7424ad61662f4b777baa7d27fb17", "score": "0.45365804", "text": "static get observedAttributes() {\r\n return ['email', 'requestSent'];\r\n }", "title": "" }, { "docid": "40d8573d9da3cae3b66f0b33c127f9c7", "score": "0.45345727", "text": "_injectAttributes() {\n const newAttributes = {};\n\n newAttributes[this.foreignKey] = _.defaults(\n {},\n this.foreignKeyAttribute,\n {\n type:\n this.options.keyType ||\n this.target.rawAttributes[this.targetKey].type,\n allowNull: true,\n }\n );\n\n if (this.options.constraints !== false) {\n const source =\n this.source.rawAttributes[this.foreignKey] ||\n newAttributes[this.foreignKey];\n this.options.onDelete =\n this.options.onDelete ||\n (source.allowNull ? \"SET NULL\" : \"NO ACTION\");\n this.options.onUpdate = this.options.onUpdate || \"CASCADE\";\n }\n\n Helpers.addForeignKeyConstraints(\n newAttributes[this.foreignKey],\n this.target,\n this.source,\n this.options,\n this.targetKeyField\n );\n Utils.mergeDefaults(this.source.rawAttributes, newAttributes);\n\n this.source.refreshAttributes();\n\n this.identifierField =\n this.source.rawAttributes[this.foreignKey].field ||\n this.foreignKey;\n\n Helpers.checkNamingCollision(this);\n\n return this;\n }", "title": "" }, { "docid": "29abf3796d3683eeb81b980fad9df5ef", "score": "0.45185667", "text": "constructor(fullPath, context, path, stats) {\n /**\n * Name of properties attribute.\n */\n this.propertiesAttributeName = \"Properties\";\n /**\n * Name of locks attribute.\n */\n this.locksAttributeName = \"Locks\";\n this.locks = null;\n this.context = context;\n this.path = path;\n this.fullPath = fullPath;\n this.fileSystemInfo = stats;\n }", "title": "" }, { "docid": "fb62d563c50805dc639453d53d72afdf", "score": "0.45058775", "text": "function init() {\n\t\tvar i, m;\n\n\t\t// Create a new AnalyticsAttribute object for each attribute, and add\n\t\t// them to the `attributes` object, using their name as the key.\n\t\tfor (i = attribute_definitions.length - 1; i >= 0; i -= 1) {\n\t\t\tm = new AnalyticsAttribute(attribute_definitions[i]);\n\t\t\tattributes[m.name] = m;\n\t\t}\n\t}", "title": "" }, { "docid": "b393907c5c9b44c821da7e9da07c2b5b", "score": "0.45056087", "text": "static attributeNamespace() {\n return {\n 'href': SvgElement.xlink,\n 'xlink': SvgElement.xmlns,\n // Only the xmlns attribute needs the trailing slash. See #984\n 'xmlns': \"\".concat(SvgElement.xmlns, \"/\"),\n // IE needs the xmlns namespace when setting 'xmlns:xlink'. See #984\n 'xmlns:xlink': \"\".concat(SvgElement.xmlns, \"/\")\n };\n }", "title": "" }, { "docid": "b393907c5c9b44c821da7e9da07c2b5b", "score": "0.45056087", "text": "static attributeNamespace() {\n return {\n 'href': SvgElement.xlink,\n 'xlink': SvgElement.xmlns,\n // Only the xmlns attribute needs the trailing slash. See #984\n 'xmlns': \"\".concat(SvgElement.xmlns, \"/\"),\n // IE needs the xmlns namespace when setting 'xmlns:xlink'. See #984\n 'xmlns:xlink': \"\".concat(SvgElement.xmlns, \"/\")\n };\n }", "title": "" }, { "docid": "9d278802a58fafecc31b963d9df9eac3", "score": "0.45023966", "text": "function SpecialAttributeBase() {\n this.attrs = {};\n }", "title": "" }, { "docid": "ad42003877a07ea7b02250cad676a383", "score": "0.4488812", "text": "static _fromCloudFormation(scope, id, resourceAttributes, options) {\n resourceAttributes = resourceAttributes || {};\n const resourceProperties = options.parser.parseValue(resourceAttributes.Properties);\n const propsResult = CfnVPCEndpointConnectionNotificationPropsFromCloudFormation(resourceProperties);\n const ret = new CfnVPCEndpointConnectionNotification(scope, id, propsResult.value);\n for (const [propKey, propVal] of Object.entries(propsResult.extraProperties)) {\n ret.addPropertyOverride(propKey, propVal);\n }\n options.parser.handleAttributes(ret, resourceAttributes, id);\n return ret;\n }", "title": "" }, { "docid": "7e25a4690358085ad394541bc83191ca", "score": "0.44872084", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayConnect.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'options', this);\n cdk.requireProperty(props, 'transportTransitGatewayAttachmentId', this);\n this.attrCreationTime = cdk.Token.asString(this.getAtt('CreationTime'));\n this.attrState = cdk.Token.asString(this.getAtt('State'));\n this.attrTransitGatewayAttachmentId = cdk.Token.asString(this.getAtt('TransitGatewayAttachmentId'));\n this.attrTransitGatewayId = cdk.Token.asString(this.getAtt('TransitGatewayId'));\n this.options = props.options;\n this.transportTransitGatewayAttachmentId = props.transportTransitGatewayAttachmentId;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::EC2::TransitGatewayConnect\", props.tags, { tagPropertyName: 'tags' });\n }", "title": "" }, { "docid": "3f0e10bbf1da12f23da1baabeaf3210a", "score": "0.44828242", "text": "clone() {\n return new this.constructor(this.attributes);\n }", "title": "" }, { "docid": "82d8affa6b84cc75ece8d076c8662a8a", "score": "0.4469341", "text": "function Attribute(attribute) {\n var propertiesDescriptor = {};\n\n for (var propName in attribute) {\n propertiesDescriptor[propName] = {\n configurable: false,\n value: attribute[propName],\n writable: false\n };\n }\n\n return Object.create(base, propertiesDescriptor);\n }", "title": "" }, { "docid": "345ac4a9f5cad15aa040616dab16fe2f", "score": "0.4469035", "text": "function Contact(atts) {\n //declare properties.\n SObject.call(this, atts);\n }", "title": "" }, { "docid": "6b7cb6e5cea929a2040de6d2ef081fa9", "score": "0.44624346", "text": "clone() {\n return new this.constructor(this.attributes);\n }", "title": "" }, { "docid": "a1fc30a8a14b66e9b80bcaa1d33fa3a3", "score": "0.44567612", "text": "_injectAttributes() {\n const newAttributes = {};\n\n newAttributes[this.foreignKey] = _.defaults(\n {},\n this.foreignKeyAttribute,\n {\n type:\n this.options.keyType ||\n this.source.rawAttributes[this.sourceKey].type,\n allowNull: true,\n }\n );\n\n if (this.options.constraints !== false) {\n const target =\n this.target.rawAttributes[this.foreignKey] ||\n newAttributes[this.foreignKey];\n this.options.onDelete =\n this.options.onDelete ||\n (target.allowNull ? \"SET NULL\" : \"CASCADE\");\n this.options.onUpdate = this.options.onUpdate || \"CASCADE\";\n }\n\n Helpers.addForeignKeyConstraints(\n newAttributes[this.foreignKey],\n this.source,\n this.target,\n this.options,\n this.sourceKeyField\n );\n Utils.mergeDefaults(this.target.rawAttributes, newAttributes);\n\n this.target.refreshAttributes();\n\n this.identifierField =\n this.target.rawAttributes[this.foreignKey].field ||\n this.foreignKey;\n\n Helpers.checkNamingCollision(this);\n\n return this;\n }", "title": "" }, { "docid": "3da927c49f457ace06fc142a2838e6cc", "score": "0.44555232", "text": "function NotificationSettings() {}", "title": "" }, { "docid": "fa7ed0f3fcab5b8dc976221094b1e851", "score": "0.4453313", "text": "function createNotification(obj) {\n\t\t\tdispatch(addNotification(NotificationModel(obj)));\n\t\t}", "title": "" }, { "docid": "a8a695979d762cd6edf96db917160cb4", "score": "0.4438555", "text": "function attributes() {\n\t\tvar attrs = Array.prototype.slice.call(arguments);\n\t\tMaps.fillKeys(ephemeraMap.attrMap, attrs, true);\n\t\tPubSub.pub('aloha.ephemera.attributes', {\n\t\t\tephemera: ephemeraMap,\n\t\t\tnewAttributes: attrs\n\t\t});\n\t}", "title": "" }, { "docid": "ba9d77bae2c473b9691a315fc6e5bfa3", "score": "0.44299936", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnNetworkInterfaceAttachment.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'deviceIndex', this);\n cdk.requireProperty(props, 'instanceId', this);\n cdk.requireProperty(props, 'networkInterfaceId', this);\n this.deviceIndex = props.deviceIndex;\n this.instanceId = props.instanceId;\n this.networkInterfaceId = props.networkInterfaceId;\n this.deleteOnTermination = props.deleteOnTermination;\n }", "title": "" }, { "docid": "896f966b283e07cf4fe79780968784fe", "score": "0.4429609", "text": "function Notifications() {\n var self = this;\n var notifyCounter = 0;\n var notifyTopPosition = 65;\n var notifyGrowls;\n var notifyContainerOuter;\n\n self.enabled = true;\n\n // private constants\n self.CLOSE_BUTTON_HTML = '<a href=\"#\" class=\"close cc-notification-close pull-right\" data-dismiss=\"alert\"><i class=\"fa fa-times-circle\"></i><span class=\"cc-reader-text\">Close notification</span></a>';\n\n /**\n * Function called from elsewhere to trigger the notification.\n *\n * @function\n * @name Notifications#notify\n * @param {Object[]} notifyData A list of objects containing settings for notification messages.\n * @param {string} notifyData.style Either 'growl', or 'inline', Determines whether the message appears\n * as a floating popup, or inline on the page.\n * @param {string} notifyData.id Use with inline notifications to specify which HTML Element will contain the\n * notification message.\n * @param {string} notifyData.status One of {'info', 'success', 'error', 'danger'} Specifies the intent of the\n * notification message and adds appropriate style to the message.\n * @param {boolean} notifyData.close Whether to add a manual close button to the notification popup.\n * @param {(number|boolean)} notifyData.fade=500 Whether the notification popup will automatically fade out, and if a number,\n * how long the delay should be. A value of false means the popup will not fade. Default delay is 500ms.\n * @param {string} notifyData.header Title of notification popup.\n * @param {string} notifyData.message Message to display in the body of the notification popup.\n * @param {Object[]} notifyData.formErrors Pass in the list of errors returned from {@link FormHelper|formHelper}, if available.\n * @param {string} notifyData.code Error Code identifier, if available.\n * @param {Object[]} notifyData.actionOptions Array of Objects which specify actions the user can take from\n * the notification popup in the form of buttons. The first specified action will automatically gain\n * focus when the popup is displayed.\n * @param {string} notifyData.actionOptions.text Text display on button.\n * @param {string} notifyData.actionOptions.readerText Optional text to be used for screen readers. By default\n * 'text' will be used.\n * @param {function()} notifyData.actionOptions.action Function/script to be executed on click.\n * @param {string} notifyData.actionOptions.classes Classes to be attached to button.\n * @param {string} notifyData.actionOptions.onCloseFocus JQuery selector for element to gain focus on click.\n * @param {number} notifyData.actionsOptionsFocus Index of action element that should gain focus (overrides\n * default).\n *\n * @example\n * notifications.notify([\n * {\n * style: 'inline',\n * status: 'info',\n * id: '#myInput',\n * close: true,\n * fade: false,\n * message: self.message().text()\n * }\n * ]);\n *\n * @example\n * notifications.notify([\n * {\n * style: 'growl',\n * status: 'confirm',\n * close: false,\n * fade: false,\n * header: \"Delete\",\n * message: \"Are you sure you want to delete this thing?\"\n * actionOptionsFocus: 1,\n * actionOptions = [{\n * actionOption1: [{\n * text: \"Delete\",\n * action: '$(this).closest(\\'.cc-notification-growl\\').remove();$(\\'#deleteButton\\').trigger(\\'click\\');',\n * classes: 'btn primary',\n * onCloseFocus: '#myInput'\n * }],\n * actionOption2: [{\n * text: \"Cancel\",\n * action: '$(this).closest(\\'.cc-notification-growl\\').remove();',\n * classes: 'btn',\n * onCloseFocus: '#myInput'\n * }]\n * }]\n * }]);\n */\n self.notify = function(notifyData, force) {\n if(self.enabled || force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(ii, item) {\n if(item.style !== null) {\n self.notifyBuild(item);\n } else {\n throw \"Notification type unknown\";\n }\n });\n } else {\n if(notifyData.style !== null) {\n self.notifyBuild(notifyData);\n } else {\n throw \"Notification type unknown\";\n }\n }\n }\n };\n\n /**\n * Call notify with settings for a growl success message.\n * {style: 'growl', status: 'success', close: true, fade: true}\n * @function\n * @name Notifications#growlSuccess\n */\n self.growlSuccess = function(notifyData, force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(i, data) {\n data.style = 'growl';\n data.status = 'success';\n data.close = true;\n data.fade = true;\n data.header = notifyData.header || CCi18n.t(\"ns.common:resources.successText\");\n });\n } else {\n notifyData.style = 'growl';\n notifyData.status = 'success';\n notifyData.close = true;\n notifyData.fade = true;\n notifyData.header = notifyData.header || CCi18n.t(\"ns.common:resources.successText\");\n }\n self.notify(notifyData, force);\n }\n\n /**\n * Call notify with settings for a growl error message.\n * {style: 'growl', status: 'error', close: true, fade: true}\n * @function\n * @name Notifications#growlError\n */\n self.growlError = function(notifyData, force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(i, data) {\n data.style = 'growl';\n data.status = 'error';\n data.close = true;\n data.fade = true;\n data.header = notifyData.header || CCi18n.t(\"ns.common:resources.errorText\");\n });\n } else {\n notifyData.style = 'growl';\n notifyData.status = 'error';\n notifyData.close = true;\n notifyData.fade = true;\n notifyData.header = notifyData.header || CCi18n.t(\"ns.common:resources.errorText\");\n }\n self.notify(notifyData, force);\n }\n\n\n /**\n * Call notify with settings for a growl error message.\n * Parse out the error message and code from the result if there is one\n * {style: 'growl', status: 'error', close: true, fade: true}\n * @function\n * @name Notifications#growlRestError\n */\n self.growlRestError = function(result, notifyData, force) {\n var errorMessage;\n var errorCode;\n var individualErrorCode;\n if (result.errors && result.errors.length > 0) {\n if (result.errors[0].message) {\n notifyData.message = result.errors[0].message;\n }\n if(result.errors[0].errorCode){\n individualErrorCode = result.errors[0].errorCode;\n }\n }\n notifyData.code = result.errorCode || individualErrorCode || \" \";\n self.growlError(notifyData, force);\n }\n\n /**\n * Call notify with settings for an inline error message.\n * {style: 'inlinel', status: 'error', close: false, fade: false}\n * @function\n * @name Notifications#inlineError\n */\n self.inlineError = function(notifyData, force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(i, data) {\n data.style = 'inline';\n data.status = 'error';\n data.close = false;\n data.fade = false;\n });\n } else {\n notifyData.style = 'inline';\n notifyData.status = 'error';\n notifyData.close = false;\n notifyData.fade = false;\n }\n self.notify(notifyData, force);\n }\n\n /**\n * Call notify with settings an inline confirm message\n * {style: 'inline', status: 'confirm', curtain: true, close: false, fade: false}\n * @function\n * @name Notifications#inlineConfirm\n */\n self.inlineConfirm = function(notifyData, force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(i, data) {\n data.style = 'inline';\n data.status = 'confirm';\n data.curtain = true;\n data.close = false;\n data.fade = false;\n });\n } else {\n notifyData.style = 'inline';\n notifyData.status = 'confirm';\n notifyData.curtain = true;\n notifyData.close = false;\n notifyData.fade = false;\n }\n self.notify(notifyData, force);\n }\n\n /**\n * Call notify with settings for a growl info message.\n * {style: 'growl', status: 'info', close: true, fade: true}\n * @function\n * @name Notifications#growlInfo\n */\n self.growlInfo = function(notifyData, force) {\n if (Array.isArray(notifyData)) {\n $.each(notifyData, function(i, data) {\n data.style = 'growl';\n data.status = 'info';\n data.close = true;\n data.fade = true;\n data.header = this.header || CCi18n.t(\"ns.common:resources.warningText\");\n });\n } else {\n notifyData.style = 'growl';\n notifyData.status = 'info';\n notifyData.close = true;\n notifyData.fade = true;\n notifyData.header = this.header || CCi18n.t(\"ns.common:resources.warningText\");\n }\n self.notify(notifyData, force);\n }\n\n /**\n * Call notify with settings for a inline confirm message with two buttons: ok and cancel\n * {style: 'inline', status: 'confirm', curtain: true, close: false, fade: false}\n * @function\n * @name Notifications#okCancel\n */\n self.okCancel = function(notifyData, force) {\n notifyData.style = 'inline';\n notifyData.status = 'confirm';\n notifyData.curtain = true;\n\n // If notifyData.close is specified, use it, otherwise set it to false by default.\n if (notifyData.close) {\n // Set initial focus to the ok button\n notifyData.actionOptionsFocus = 1;\n }\n else {\n notifyData.close = false;\n }\n\n notifyData.fade = false;\n notifyData.actionOptions = [{\n actionOption1: [{\n text: notifyData.okButtonText || CCi18n.t(\"ns.common:resources.okText\"),\n classes: this.PRIMARY_BUTTON_CLASS,\n callback: notifyData.okCallback,\n }],\n actionOption2: [{\n text: notifyData.cancelButtonText || CCi18n.t(\"ns.common:resources.cancelText\"),\n classes: this.BUTTON_CLASS,\n callback: notifyData.cancelCallback\n }]\n }];\n self.notify(notifyData, force);\n }\n\n\n /**\n * Call notify with settings for a inline confirm message with one button, continue\n * {style: 'inline', status: 'confirm', curtain: true, close: false, fade: false}\n * @function\n * @name Notifications#okCancel\n */\n self.continueConfirm = function(notifyData, force) {\n notifyData.style = 'inline';\n notifyData.status = 'confirm';\n notifyData.curtain = true;\n notifyData.close = false;\n notifyData.fade = false;\n notifyData.actionOptions = [{\n actionOption1: [{\n text: CCi18n.t('ns.common:resources.continueText'),\n action: '',\n classes: 'btn cc-btn-primary'\n }]\n }];\n self.notify(notifyData, force);\n }\n\n /**\n * Call okCancel with two buttons: save and discard (optionally you can specify the button\n * text for 'save', e.g. have it say 'create' instead). The callback parameters can be \n * okCallback and cancelCallback or saveCallback and discardCallback (for readability)\n * {style: 'inline', status: 'confirm', curtain: true, close: false, fade: false}\n * @function\n * @name Notifications#okCancel\n */\n self.unsavedChangesConfirm = function(notifyData, force) {\n notifyData.header = CCi18n.t(\"ns.common:resources.unsavedChangesHeaderText\");\n notifyData.message = CCi18n.t(\"ns.common:resources.unsavedChangesMsgText\"),\n notifyData.okButtonText = notifyData.okButtonText || CCi18n.t(\"ns.common:resources.saveChangesText\"),\n notifyData.cancelButtonText = CCi18n.t(\"ns.common:resources.discardChangesText\"),\n notifyData.okCallback = notifyData.okCallback || notifyData.saveCallback;\n notifyData.cancelCallback = notifyData.cancelCallback || notifyData.discardCallback;\n self.okCancel(notifyData, force);\n }\n\n /**\n * Clear any notifications that are displayed under the given element.\n *\n * @function\n * @name Notifications#clearNotifications\n * @param {HTMLElement} element HTML Element to clear notifications on.\n */\n self.clearNotifications = function(element) {\n if($(element).find('.cc-notification').length !== 0) {\n $(element).find('.cc-notification').remove();\n }\n };\n\n /**\n * Empty all child nodes of the given element selector.\n *\n * @function\n * @name Notifications#emptyNotifications\n */\n self.emptyNotifications = function(elementSelector) {\n $(elementSelector).empty();\n };\n\n /**\n * Clears all visible growl messages.\n *\n * @function\n * @name Notifications#emptyGrowlMessages\n */\n self.emptyGrowlMessages = function() {\n $('.cc-notification-growl').remove();\n };\n\n /**\n * Generate a unique ID for each notification.\n *\n * @function\n * @name Notifications#notifyID\n * @params {string} style Additional string inserted into ID.\n */\n self.notifyID = function(style) {\n // (Temporarily just returns the same ID. Might not be necessary at all.)\n var baseID = 'cc-notification-' + style + '-';\n return baseID + notifyCounter;\n };\n\n /**\n * Build out the notification html with options from the array.\n *\n * @private\n * @function\n * @name Notifications#notifyBuild\n * @param {Object[]} notifyData See {@link Notifications#notify|notify()} for param details.\n */\n self.notifyBuild = function(notifyData) {\n var notifyContainer, notifyActions;\n var notificationID;\n var notificationClasses = 'alert cc-notification ';\n var formElementID = '';\n var closeCurtain = '';\n var removeNotification = '';\n var onCloseFocus = '';\n var totalTabbableCount = 0;\n var ariaMessage = '';\n var totalTabbableElements = 0;\n var messageClass = '';\n var hasCallbacks = false;\n\n $('#cc-notification-aria-message').remove();\n\n //Assign the notification style (inline/growl)\n notificationClasses += 'cc-notification-' + notifyData.style + ' ';\n\n //Assign the notification status (info/error/danger/success/confirm)\n if(notifyData.status && notifyData.status !== '') {\n notificationClasses += 'alert-' + notifyData.status;\n }\n\n // Assign custom id to notification\n if(notifyData.customNotificationID && notifyData.customNotificationID !== '') {\n notificationID = notifyData.customNotificationID;\n }\n else {\n notificationID = self.notifyID(notifyData.style);\n }\n\n // Build the html to insert into the DOM\n notifyContainer = $('<div />')\n .attr({\n id: notificationID,\n 'class': notificationClasses\n });\n\n // If there is a close button (close: true), add it\n if(notifyData.close) {\n // * data-dismiss can't be added via .attr(), so we build the close button old school\n $(notifyContainer).append(self.CLOSE_BUTTON_HTML);\n }\n\n // append our header text\n if(notifyData.header) {\n $(notifyContainer)\n .append($('<div />')\n .attr({\n 'class': 'cc-notification-header'\n })\n .html($('<div />').text(notifyData.header).html())\n );\n ariaMessage += notifyData.header + ' ';\n }\n\n // append our message\n if(notifyData.message) {\n messageClass = 'cc-notification-message' + (notifyData.header ? '' : ' cc-notification-message-only');\n if(typeof notifyData.message !== 'string') {\n // handle a message array\n $.each(notifyData.message, function(ii, msg) {\n $(notifyContainer)\n .append($('<div />')\n .attr('class', messageClass)\n .html($('<div />').text(msg).html())\n );\n ariaMessage += msg;\n });\n } else {\n // handle a message string\n $(notifyContainer)\n .append($('<div />')\n .attr('class', messageClass)\n .html($('<div />').text(notifyData.message).html())\n );\n ariaMessage += notifyData.message;\n }\n\n // Check to see if this is an error notification\n if (notifyData.status === 'error') {\n // This is an error notifiction alert screen reader users of the error\n $('#cc-aria-announce').attr('role', 'alert');\n }\n else {\n // This is not an error notifcation so use standard screen reader role\n $('#cc-aria-announce').attr('role', 'region');\n }\n\n\n }\n\n // append the template, if any\n if (notifyData.template) {\n var templateParts = self.parseTemplateUrl(notifyData.template);\n var templateElement = $('<div/>')\n .attr('data-bind', 'template: {name: \"' + templateParts.name + '\", templateUrl: \"' + templateParts.url + '\"}');\n\n $(notifyContainer).append(templateElement);\n ko.applyBindings(notifyData.templateData, templateElement.get(0));\n }\n\n // Are there actions associated with this notifications. (actionOptions: [{}])\n // If so, build them out.\n if(notifyData.actionOptions) {\n\n // notifyData uses callback functions rather than action strings\n hasCallbacks = self.hasCallbacks(notifyData.actionOptions[0]);\n\n notifyActions = $('<div />').attr('class', 'cc-notification-actions');\n\n if(notifyData.style === 'inline' && notifyData.curtain === true) {\n $(notifyContainer).addClass('cc-notification-with-curtain');\n closeCurtain = '$(\\'.cc-curtain\\').remove();';\n removeNotification = '$(this).closest(\\'.cc-notification-inline\\').remove();$(\\'body\\').removeClass(\\'no-scroll\\');';\n removeNotification += 'if($(\\'.cc-notification-outer\\').length > 0) {$(\\'.cc-notification-outer\\').remove();}';\n if(notifyData.modal === true) {\n $(notifyData.id).parent('.modal').on('hidden', function() {\n $('.cc-curtain').remove();\n });\n }\n }\n\n // Iterate over the button definitions setting the (A) classes,\n // (B) onClick action, (C) readerText (optional), and\n // (C) the button Text.\n $.each(notifyData.actionOptions[0], function(ii, actionOption) {\n onCloseFocus = '';\n\n // if a post action focus target has been passed in, set the script up\n if(actionOption[0].onCloseFocus) {\n onCloseFocus = '$(\\'' + actionOption[0].onCloseFocus + '\\').notificationsSetFocus();';\n }\n\n // determine if custom readerText should be used\n // appends blank reader text if none is passed in;\n // not sure if this is a potential problem\n var readerText = \"\";\n if (actionOption[0].readerText) {\n readerText = actionOption[0].readerText;\n }\n\n // build the button\n if (hasCallbacks) {\n // if using callbacks, don't attach action string\n $(notifyActions).append($('<button />')\n .attr({\n id: 'cc-notification-actionbutton-' + ii,\n 'class': 'cc-notification-actionbutton-class ' + actionOption[0].classes,\n })\n .attr('data-bind', 'makeAccess: {readerText: ' + readerText + '}')\n .text(actionOption[0].text)\n );\n } else {\n $(notifyActions).append($('<button />')\n .attr({\n 'class': actionOption[0].classes,\n onClick: removeNotification + closeCurtain + onCloseFocus + actionOption[0].action\n })\n .attr('data-bind', 'makeAccess: {readerText: ' + readerText + '}')\n .text(actionOption[0].text)\n );\n }\n });\n\n // Append our actions to the notification\n $(notifyContainer).append(notifyActions);\n }\n\n // Handle the errors() returned from form-helper\n if(notifyData.formErrors) {\n var formElementIdTab, formElementIdTabHref;\n var formErrorItems = $('<div />').attr('class', 'cc-notification-errorFields').append($('<ul />'));\n\n // For each error generate an LI with a link that will focus on that particular item\n $.each(notifyData.formErrors, function(ii, formError){\n formElementID = '$(\\'#' + formError.formId + '\\').notificationsSetFocus()';\n\n if (notifyData.focusFunction) {\n formErrorItems.append(\n $('<li />').append(\n $('<a />').attr({href: 'javascript:void(0);'}).text(formError.label).on('click', function() {\n notifyData.focusFunction(formError.formId); } )));\n }\n else if($('#' + formError.formId).parents('.tab-pane').length === 1) {\n formElementIdTabHref = $('#' + formError.formId).parents('.tab-pane');\n\n // determine if we're in a modal or not, and find the proper tab id.\n if($('#' + formElementIdTabHref[0].id).closest('.modal').length === 1) {\n formElementIdTab = $('#' + formElementIdTabHref[0].id).closest('.modal').find('.cc-nav-tabs a[href=\\'#'+ formElementIdTabHref[0].id + '\\']').parent();\n } else {\n formElementIdTab = $('#tab-' + formElementIdTabHref[0].id);\n if (formElementIdTab.length === 0) {\n formElementIdTab = $('#' + formElementIdTabHref[0].id).closest('.panel').find('.cc-nav-tabs a[href=\\'#'+ formElementIdTabHref[0].id + '\\']').parent();\n }\n }\n\n formErrorItems.append(\n $('<li />').append(\n $('<a />').attr({\n href: 'javascript:void(0);',\n onClick: '$(\\'#' + formElementIdTab[0].id + ' a\\').tab(\\'show\\');$(\\'#' + formError.formId + '\\').notificationsSetFocus()'\n })\n .text(formError.label)\n )\n );\n } else {\n formErrorItems.append(\n $('<li />').append(\n $('<a />').attr({href: 'javascript:void(0);', onClick: '$(\\'#' + formError.formId + '\\').notificationsSetFocus()'})\n .text(formError.label)\n )\n );\n }\n ariaMessage += \" \" + formError.label;\n });\n\n $(notifyContainer).append(formErrorItems);\n }\n\n $('body').prepend(\n $('<div />').attr({\n id: 'cc-notification-aria-message',\n class: 'cc-reader-text',\n role: 'alert',\n 'aria-relevant': 'additions removals',\n 'aria-live': 'assertive'\n }).text(ariaMessage)\n );\n\n if(notifyData.code) {\n var returnCodeLabel = CCi18n.t('ns.common:resources.returnCodeLabel');\n $(notifyContainer).append($('<div />').attr({\n 'class':'cc-notification-errorCode'\n }).text(returnCodeLabel + ': ' + notifyData.code));\n }\n\n // Insert the alert into the DOM\n if(notifyData.style == 'inline') {\n if(notifyData.curtain === true) {\n $(notifyContainer).addClass('cc-inline-curtain');\n notifyContainerOuter = $('<div />').attr({\n 'class' : 'cc-notification-outer'\n });\n\n $(notifyData.id).prepend($(notifyContainerOuter).append($(notifyContainer)));\n }\n // if its an ojTab, put notification window on each tab pane\n else if ($(notifyData.id).hasClass(\"oj-tabs\")) {\n $(notifyData.id).children(\"div\").each(function() {\n $(this).prepend($(notifyContainer).clone(true));\n });\n } else {\n $(notifyData.id).prepend($(notifyContainer));\n }\n\n } else if(notifyData.style == 'growl') {\n\n $('body').append($(notifyContainer));\n\n // Assign the top position for notifications\n self.notifyTop();\n\n // Adjust height when a growl notification is removed, and focus on\n // the first product link.\n $(notifyContainer).bind('closed', function() {\n var delayUpdate = setTimeout(function() {\n self.notifyTop();\n }, 100);\n self.notifyFocus();\n });\n }\n\n $('.cc-notification-close').on('click', function() {\n var notificationOuter = $('.cc-notification-outer');\n\n if($('body').hasClass('no-scroll')){\n $('body').removeClass('no-scroll');\n }\n\n if($('.cc-curtain')) {\n $('.cc-curtain').remove();\n }\n\n if(notificationOuter) {\n var parent = notificationOuter.parent();\n $('.cc-notification-outer').remove();\n // Keep focus to first element of parent modal.\n $(parent).find(':tabbable').first().focus();\n }\n\n if(notifyData.closeHandler) {\n notifyData.closeHandler();\n }\n\n //self.cleanUp(); TODO: clean up after clicking close\n });\n\n // Attach callbacks here.\n if (hasCallbacks) {\n $.each(notifyData.actionOptions[0], function(index, actionOption) {\n var $actionButton = $('#cc-notification-actionbutton-' + index);\n if ($actionButton) {\n $actionButton.on('click', function() {\n if(notifyData.style === 'inline' && notifyData.curtain === true) {\n $(this).closest('.cc-notification-inline').remove();\n $(this).closest('.cc-notification-growl').remove();\n $('body').removeClass('no-scroll');\n if ($('.cc-notification-outer').length > 0) {\n $('.cc-notification-outer').remove();\n }\n $('.cc-curtain').remove();\n }\n if (actionOption[0].onCloseFocus) {\n $(actionOption[0].onCloseFocus).notificationsSetFocus();\n }\n if (actionOption[0].callback) {\n actionOption[0].callback();\n }\n self.cleanUp();\n });\n }\n });\n }\n\n // If fade isn't false, it's either true or a number, so figure that out\n if(notifyData.fade !== false) {\n var notificationFade = CCConstants.NOTIFICATION_FADE_DEFAULT;\n if(notifyData.fade !== true) {\n notificationFade = notifyData.fade;\n }\n\n var notificationDelay = CCConstants.NOTIFICATION_DELAY_DEFAULT;\n\n // Check to see if delay is set\n if (notifyData.delay) {\n // Delay is set so update the notification delay accordingly\n notificationDelay = notifyData.delay;\n }\n\n // Setup to fade notification after a specific delay\n $(notifyContainer)\n .delay(notificationDelay)\n .fadeOut(notificationFade, self.doFade);\n\n // Setup to stop fade notification on mouseover\n $(notifyContainer)\n .mouseenter(function() {\n $(this).stop(true,true);\n });\n\n // Setup to restart fade on mouseleave\n $(notifyContainer)\n .mouseleave(function() {\n $(this).fadeOut(notificationFade, self.doFade);\n });\n }\n\n if(notifyData.curtain === true) {\n if(notifyData.style === 'inline') {\n if($(notifyData.id).parents('.modal-content').length !== 0) {\n $(notifyData.id).parents('.modal-content').append($('<div />').attr('class', 'cc-curtain fade in'));\n } else {\n $(notifyData.id).append($('<div />').attr('class', 'cc-curtain fade in').attr('style', 'z-index:1042'));\n // scroll to the notification and put the no-scroll class on a delay of\n // 0 to allow the scroll event to complete.\n window.scrollTo(0, $(notifyData.id).offset().top);\n window.setTimeout(function(){\n $('body').addClass('no-scroll');\n }, 0);\n }\n } else {\n $('body').append($('<div />').attr('class', 'modal-backdrop fade in'));\n }\n\n // accessibility tabbing logic\n totalTabbableElements = $(\".cc-notification-with-curtain :tabbable\");\n totalTabbableCount = totalTabbableElements.size();\n\n totalTabbableElements.each(function (index) {\n $(this).on('keydown', function(event) {\n if(event.keyCode === 9) {\n var currentIndex;\n if(event.shiftKey) {\n currentIndex = parseInt(totalTabbableElements.index($(this)), 10) - 1;\n if(currentIndex < 0) {\n event.preventDefault();\n totalTabbableElements[totalTabbableCount - 1].focus();\n }\n } else {\n currentIndex = parseInt(totalTabbableElements.index($(this)), 10) + 1;\n if(currentIndex === totalTabbableCount) {\n event.preventDefault();\n totalTabbableElements[0].focus();\n }\n }\n }\n });\n });\n\n // handle button focus on display. defaults to first button passed in\n if(notifyData.actionOptionsFocus) {\n $(totalTabbableElements[notifyData.actionOptionsFocus]).focus();\n } else {\n $(totalTabbableElements[0]).focus();\n }\n }\n };\n\n /**\n * Do the fade animation if notification has the fade option set.\n *\n * This is used when the notification fades 'naturally' or when the mouse\n * leaves focus of the notification.\n *\n * @private\n * @function\n * @name Notifications#doFade\n */\n self.doFade = function() {\n $(this).remove();\n $('#notification-info').text('');\n // delayed to make sure the notification is removed from the DOM\n // before we try to shift any other notifications around.\n var delayUpdate = setTimeout(function(){self.notifyTop();}, 100);\n self.notifyFocus();\n };\n\n /**\n * Assign the top value to each growl notification.\n *\n * @private\n * @function\n * @name Notifications#notifyTop\n */\n self.notifyTop = function() {\n notifyGrowls = $('body').children('.cc-notification-growl');\n if(notifyGrowls.length >= 0) {\n $.each(notifyGrowls, function(ii, growl){\n if(ii > 0) {\n notifyTopPosition = notifyTopPosition + 30;\n }\n $(growl).css('top', notifyTopPosition); // set css top\n notifyTopPosition = notifyTopPosition + $(growl).height();\n });\n }\n notifyTopPosition = 65;\n };\n\n /**\n * For accessibility, regain focus on something in the window.\n *\n * @private\n * @function\n * @name Notifications#notifyFocus\n */\n self.notifyFocus = function() {\n // TODO Arbitrarily picked the first navigation item, should this be an array option?\n $('#CC-Oracle-Nav UL.nav.nav-pills LI A:first').focus();\n };\n\n /**\n * Strip extensions from URL, trim leading slashes and split into URI + name\n *\n * @private\n * @function\n * @name Notifications#parseTemplateUrl\n * @param {string} url The URL to parse\n * @returns {Object} Object containing 'url', and 'name' components with URL parts.\n */\n self.parseTemplateUrl = function(url) {\n // strip any extension, unless there is no default template suffix\n if (infuser.defaults.templateSuffix !== '') {\n if (url.indexOf('.') >= 0) {\n url = url.substring(0, url.lastIndexOf('.'));\n }\n }\n // strip any leading slashes\n while (url.indexOf('/') === 0) {\n url = url.substring(1);\n }\n\n // split into uri / name\n return {\n url : url.substring(0, url.lastIndexOf(\"/\")),\n name : url.substring(url.lastIndexOf(\"/\") + 1)\n };\n };\n\n /**\n * Clean up after finished with notification. Removes callbacks.\n *\n * @function\n * @name Notifications#cleanUp\n */\n self.cleanUp = function() {\n var $actionButtons = $('.cc-notification-actionbutton-class');\n if ($actionButtons) {\n $actionButtons.off('click');\n }\n var $closeButton = $('.cc-notification-close');\n if ($closeButton) {\n $closeButton.off('click');\n }\n };\n\n /**\n * Does the notify data pass in a callback function (rather than an action string)\n *\n * @private\n * @function\n * @name Notifications#hasCallbacks\n */\n self.hasCallbacks = function(actionOptions) {\n var hasCallback = false;\n $.each(actionOptions, function(jj, actionOption) {\n if (actionOption[0].callback) {\n hasCallback = true;\n }\n });\n return hasCallback;\n }\n\n //\n // If popping up a notification window over an ojDialog, use these methods to create an overlay\n //\n self.overlayId = \"#cc-overlay-clone\";\n self.createNotificationOverlay = function() {\n var dialogOverlay = $('div[id$=\"_layer_overlay\"]');\n if (dialogOverlay) {\n var $overlayClone = dialogOverlay.clone();\n $overlayClone.attr(\"id\", \"cc-overlay-clone\");\n $overlayClone.css(\"opacity\", \"1\");\n $overlayClone.css(\"background\", \"none\");\n $(\"#__oj_zorder_container\").append($overlayClone);\n $overlayClone.zIndex($overlayClone.zIndex()+1);\n }\n };\n self.destroyNotificationOverlay = function() {\n var noteOverlay = $(\"#cc-overlay-clone\");\n if (noteOverlay && noteOverlay.length > 0) {\n noteOverlay.remove();\n }\n }\n\n\n }", "title": "" }, { "docid": "bf160e6f44a256960c6eaf39200e24e5", "score": "0.4428159", "text": "_createPart(){return new AttributePart(this)}", "title": "" }, { "docid": "da42e7d4a053d80969aba285978f8fdc", "score": "0.44251448", "text": "constructor(pmAttributes) { \n super(pmAttributes) // similar to Object.create\n this.gradClassName = pmAttributes.gradClassName;\n this.favInstructor = pmAttributes.favInstructor;\n}", "title": "" }, { "docid": "f7068ac0c21417ea91c68cf423298d62", "score": "0.44185987", "text": "function Notification(caption, x, y, size, color) {\n\n this.text = caption || \"\";\n this.x = x || 0;\n this.y = y || 0;\n this.scale = size || 1;\n this.rgb = color || [255, 255, 255];\n this.alpha = 0.7;\n}", "title": "" }, { "docid": "c7eae534c3922e38231093c96a8d5c23", "score": "0.44167396", "text": "_injectAttributes() {\n const newAttributes = {};\n // Create a new options object for use with addForeignKeyConstraints, to avoid polluting this.options in case it is later used for a n:m\n const constraintOptions = _.clone(this.options);\n\n newAttributes[this.foreignKey] = _.defaults(\n {},\n this.foreignKeyAttribute,\n {\n type:\n this.options.keyType ||\n this.source.rawAttributes[this.sourceKeyAttribute].type,\n allowNull: true,\n }\n );\n\n if (this.options.constraints !== false) {\n const target =\n this.target.rawAttributes[this.foreignKey] ||\n newAttributes[this.foreignKey];\n constraintOptions.onDelete =\n constraintOptions.onDelete ||\n (target.allowNull ? \"SET NULL\" : \"CASCADE\");\n constraintOptions.onUpdate =\n constraintOptions.onUpdate || \"CASCADE\";\n }\n\n Helpers.addForeignKeyConstraints(\n newAttributes[this.foreignKey],\n this.source,\n this.target,\n constraintOptions,\n this.sourceKeyField\n );\n Utils.mergeDefaults(this.target.rawAttributes, newAttributes);\n\n this.target.refreshAttributes();\n this.source.refreshAttributes();\n\n this.identifierField =\n this.target.rawAttributes[this.foreignKey].field ||\n this.foreignKey;\n this.foreignKeyField =\n this.target.rawAttributes[this.foreignKey].field ||\n this.foreignKey;\n this.sourceKeyField =\n this.source.rawAttributes[this.sourceKey].field || this.sourceKey;\n\n Helpers.checkNamingCollision(this);\n\n return this;\n }", "title": "" }, { "docid": "7159755bb311172ffa4e3152f0280f83", "score": "0.44095394", "text": "function NotificationOptions() {\n}", "title": "" }, { "docid": "4db291b6e25353dab5967db82a59aa02", "score": "0.4409363", "text": "static _fromCloudFormation(scope, id, resourceAttributes, options) {\n resourceAttributes = resourceAttributes || {};\n const resourceProperties = options.parser.parseValue(resourceAttributes.Properties);\n const propsResult = CfnNetworkInterfaceAttachmentPropsFromCloudFormation(resourceProperties);\n const ret = new CfnNetworkInterfaceAttachment(scope, id, propsResult.value);\n for (const [propKey, propVal] of Object.entries(propsResult.extraProperties)) {\n ret.addPropertyOverride(propKey, propVal);\n }\n options.parser.handleAttributes(ret, resourceAttributes, id);\n return ret;\n }", "title": "" }, { "docid": "6914595f6c6c29e2e1a60e7f3dac1b95", "score": "0.44082105", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnTransitGatewayAttachment.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'subnetIds', this);\n cdk.requireProperty(props, 'transitGatewayId', this);\n cdk.requireProperty(props, 'vpcId', this);\n this.subnetIds = props.subnetIds;\n this.transitGatewayId = props.transitGatewayId;\n this.vpcId = props.vpcId;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::EC2::TransitGatewayAttachment\", props.tags, { tagPropertyName: 'tags' });\n }", "title": "" }, { "docid": "2797c8e9aeb7c464b0d61295bc511484", "score": "0.44067484", "text": "function onNotification({ notification, persistentId }) {\n if (!notification.data.largeImageKey) {\n rpcLargeImageKey = 'homeassistant_large';\n rpcLargeImageText = 'HomeAssistant';\n } else {\n rpcLargeImageKey = notification.data.largeImageKey;\n rpcLargeImageText = notification.data.largeImageText;\n }\n if (!notification.data.smallImageKey) {\n rpcSmallImageKey = 'homeassistant_small';\n rpcSmallImageText = 'HomeAssistant';\n } else {\n rpcSmallImageKey = notification.data.smallImageKey;\n rpcSmallImageText = notification.data.smallImageText;\n }\n\n rpcState = notification.data.state; // Set the discord rich presence state variable to the Cloud messages state filed.\n rpcDetails = notification.data.details; // Set the discord rich presence details variable to the Cloud Message's details field\n rpc.setActivity({\n details: rpcDetails, // Set Discord's Rich Presence's Detials field\n state: rpcState, // Set Discord's Rich Presence's State field\n largeImageKey: rpcLargeImageKey, // Set Discord's Rich Presence's Large Image\n largeImageText: rpcLargeImageText, // Set Discord's Rich Presence's Large Image's Text \n smallImageKey: rpcSmallImageKey, // Set Discord's Rich Presence's Small Image\n smallImageText: rpcSmallImageText, // Set Discord's Rich Presence's Small Image's Text\n }).catch(console.error); // Catch any issues\n var persistentIds = [];\n try {\n var idString = fs.readFileSync('notification-data.json');\n persistentIds = JSON.parse(idString);\n } catch (e) {\n\n }\n persistentIds.push(persistentId);\n fs.writeFileSync('notification-data.json', JSON.stringify(persistentIds));\n}", "title": "" }, { "docid": "a0f877576e60b1ecc307b9c93513dfe7", "score": "0.43864766", "text": "function copyAttributes(source, destination, extraAttrs) {\n var copiedAttrs = $mdUtil.prefixer([\n 'ng-if', 'ng-click', 'ng-dblclick', 'aria-label', 'ng-disabled', 'ui-sref',\n 'href', 'ng-href', 'rel', 'target', 'ng-attr-ui-sref', 'ui-sref-opts', 'download'\n ]);\n\n if (extraAttrs) {\n copiedAttrs = copiedAttrs.concat($mdUtil.prefixer(extraAttrs));\n }\n\n angular.forEach(copiedAttrs, function(attr) {\n if (source.hasAttribute(attr)) {\n destination.setAttribute(attr, source.getAttribute(attr));\n source.removeAttribute(attr);\n }\n });\n }", "title": "" }, { "docid": "a0f877576e60b1ecc307b9c93513dfe7", "score": "0.43864766", "text": "function copyAttributes(source, destination, extraAttrs) {\n var copiedAttrs = $mdUtil.prefixer([\n 'ng-if', 'ng-click', 'ng-dblclick', 'aria-label', 'ng-disabled', 'ui-sref',\n 'href', 'ng-href', 'rel', 'target', 'ng-attr-ui-sref', 'ui-sref-opts', 'download'\n ]);\n\n if (extraAttrs) {\n copiedAttrs = copiedAttrs.concat($mdUtil.prefixer(extraAttrs));\n }\n\n angular.forEach(copiedAttrs, function(attr) {\n if (source.hasAttribute(attr)) {\n destination.setAttribute(attr, source.getAttribute(attr));\n source.removeAttribute(attr);\n }\n });\n }", "title": "" }, { "docid": "af0eb360f2688b66852efeaa442df37b", "score": "0.43718076", "text": "setAttributes(attributes) {\n return this;\n }", "title": "" }, { "docid": "af0eb360f2688b66852efeaa442df37b", "score": "0.43718076", "text": "setAttributes(attributes) {\n return this;\n }", "title": "" }, { "docid": "3f37a7aa34987bf03897a4d69d636988", "score": "0.43676206", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnVolumeAttachment.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'device', this);\n cdk.requireProperty(props, 'instanceId', this);\n cdk.requireProperty(props, 'volumeId', this);\n this.device = props.device;\n this.instanceId = props.instanceId;\n this.volumeId = props.volumeId;\n }", "title": "" }, { "docid": "666819ebf5c26422ffe30fda3c649084", "score": "0.4365549", "text": "function makeNotification(notification) {\n var to = routeNotification(notification);\n var notificationText = makeNotificationText(notification);\n return '<li><a href=\"' + to + '\"><i class=\"fa fa-users text-aqua\"></i> ' + notificationText + '</a></li>';\n}", "title": "" }, { "docid": "d57eb2a4dd9cb733940d2c453a8f65b1", "score": "0.43651405", "text": "function Context() {\n\t /**\n\t * @type {(Array<!Node>|undefined)}\n\t */\n\t this.created = notifications.nodesCreated && [];\n\n\t /**\n\t * @type {(Array<!Node>|undefined)}\n\t */\n\t this.deleted = notifications.nodesDeleted && [];\n\t }", "title": "" }, { "docid": "3a9aa8634bf14161c34985506ba90499", "score": "0.43600947", "text": "function FCMoment(internalData) {\n\textend(this, internalData);\n}", "title": "" }, { "docid": "3a9aa8634bf14161c34985506ba90499", "score": "0.43600947", "text": "function FCMoment(internalData) {\n\textend(this, internalData);\n}", "title": "" }, { "docid": "a01c4c291ac827e2c793167ffeb05e49", "score": "0.43579435", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnNetworkInsightsPath.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'destination', this);\n cdk.requireProperty(props, 'protocol', this);\n cdk.requireProperty(props, 'source', this);\n this.attrCreatedDate = cdk.Token.asString(this.getAtt('CreatedDate'));\n this.attrNetworkInsightsPathArn = cdk.Token.asString(this.getAtt('NetworkInsightsPathArn'));\n this.attrNetworkInsightsPathId = cdk.Token.asString(this.getAtt('NetworkInsightsPathId'));\n this.destination = props.destination;\n this.protocol = props.protocol;\n this.source = props.source;\n this.destinationIp = props.destinationIp;\n this.destinationPort = props.destinationPort;\n this.sourceIp = props.sourceIp;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::EC2::NetworkInsightsPath\", props.tags, { tagPropertyName: 'tags' });\n }", "title": "" }, { "docid": "36d7a20f0e21d7a1398cab749266e0ac", "score": "0.43577915", "text": "static _fromCloudFormation(scope, id, resourceAttributes, options) {\n resourceAttributes = resourceAttributes || {};\n const resourceProperties = options.parser.parseValue(resourceAttributes.Properties);\n const propsResult = CfnTransitGatewayMulticastDomainAssociationPropsFromCloudFormation(resourceProperties);\n const ret = new CfnTransitGatewayMulticastDomainAssociation(scope, id, propsResult.value);\n for (const [propKey, propVal] of Object.entries(propsResult.extraProperties)) {\n ret.addPropertyOverride(propKey, propVal);\n }\n options.parser.handleAttributes(ret, resourceAttributes, id);\n return ret;\n }", "title": "" }, { "docid": "8a9243ab6188b3f2b54690d17a1dc933", "score": "0.43477026", "text": "static initialize(obj, to, deliveryStatus, messageId) { \n obj['to'] = to;\n obj['deliveryStatus'] = deliveryStatus;\n obj['messageId'] = messageId;\n }", "title": "" }, { "docid": "d1011fee1e0a7a7276d9a4e1285a79e9", "score": "0.43420833", "text": "function Context() {\n /**\n * @type {(Array<!Node>|undefined)}\n */\n this.created = notifications.nodesCreated && [];\n\n /**\n * @type {(Array<!Node>|undefined)}\n */\n this.deleted = notifications.nodesDeleted && [];\n }", "title": "" }, { "docid": "2a067137ecf9be1606ded92d3f1b8110", "score": "0.43401432", "text": "constructor(scope, id, props = {}) {\n super(scope, id, { type: CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME, properties: props });\n this.attrArn = cdk.Token.asString(this.getAtt('Arn'));\n this.typeName = props.typeName;\n this.typeVersionArn = props.typeVersionArn;\n this.versionId = props.versionId;\n }", "title": "" }, { "docid": "5d5f4ce37f0d70078541320f4d75e5c4", "score": "0.43267134", "text": "constructor(scope, id, props) {\n super(scope, id, { type: CfnResourceVersion.CFN_RESOURCE_TYPE_NAME, properties: props });\n cdk.requireProperty(props, 'schemaHandlerPackage', this);\n cdk.requireProperty(props, 'typeName', this);\n this.attrArn = cdk.Token.asString(this.getAtt('Arn'));\n this.attrIsDefaultVersion = this.getAtt('IsDefaultVersion');\n this.attrProvisioningType = cdk.Token.asString(this.getAtt('ProvisioningType'));\n this.attrTypeArn = cdk.Token.asString(this.getAtt('TypeArn'));\n this.attrVersionId = cdk.Token.asString(this.getAtt('VersionId'));\n this.attrVisibility = cdk.Token.asString(this.getAtt('Visibility'));\n this.schemaHandlerPackage = props.schemaHandlerPackage;\n this.typeName = props.typeName;\n this.executionRoleArn = props.executionRoleArn;\n this.loggingConfig = props.loggingConfig;\n }", "title": "" }, { "docid": "0379b4fa3033abcafce25bdb5e880746", "score": "0.43188912", "text": "attributes() {\n return this.getData().attributes || {};\n }", "title": "" }, { "docid": "b94ab94c4b778346e78dd81976182cdc", "score": "0.43169677", "text": "static get observedAttributes() {\n return ['name', 'image', 'link', 'description'];\n }", "title": "" }, { "docid": "5a81fc9324a1c3a5b0042d7d66be72b1", "score": "0.4314074", "text": "static get attributes() {\n return {\n id: 'id',\n createdBy: 'user_id',\n type: 'type',\n location: 'location',\n images: 'images',\n videos: 'videos',\n title: 'title',\n comment: 'comment',\n status: 'status',\n createdOn: 'created_at',\n };\n }", "title": "" }, { "docid": "d8e332b9ba0256e8a4c9856df11177c3", "score": "0.4309267", "text": "constructor({attributes, id, relationships}){\n this.id = id\n if(attributes){for(let a in attributes){this[a] = attributes[a]}}\n this.relate(relationships)\n this.isSaved = !!this.id\n }", "title": "" }, { "docid": "4055de48de24ca2bd2bd27651938ebd8", "score": "0.42950737", "text": "static fromDistributionAttributes(scope, id, attrs) {\n try {\n jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudfront_CloudFrontWebDistributionAttributes(attrs);\n }\n catch (error) {\n if (process.env.JSII_DEBUG !== \"1\" && error.name === \"DeprecationError\") {\n Error.captureStackTrace(error, this.fromDistributionAttributes);\n }\n throw error;\n }\n return new class extends cdk.Resource {\n constructor() {\n super(scope, id);\n this.domainName = attrs.domainName;\n this.distributionDomainName = attrs.domainName;\n this.distributionId = attrs.distributionId;\n }\n grant(grantee, ...actions) {\n return iam.Grant.addToPrincipal({ grantee, actions, resourceArns: [(0, utils_1.formatDistributionArn)(this)] });\n }\n grantCreateInvalidation(identity) {\n return this.grant(identity, 'cloudfront:CreateInvalidation');\n }\n }();\n }", "title": "" }, { "docid": "0a1a6629d92eebd087aa14a50950a23c", "score": "0.42918628", "text": "function createCloneCtor( attrSpecs ){\n var statements = [];\n\n for( var name in attrSpecs ){\n statements.push( \"this.\" + name + \"=x.\" + name + \";\" );\n }\n\n var Attributes = new Function( \"x\", statements.join( '' ) );\n\n // attributes hash must look like vanilla object, otherwise Model.set will trigger an exception\n Attributes.prototype = Object.prototype;\n\n return Attributes;\n}", "title": "" }, { "docid": "6a6d4c592f73c8d0e0f581da442b485e", "score": "0.4290729", "text": "function GrepoNotification(options) {\n\t\tif (!options) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar opt = options,\n\t\t\tnotification,\n\t\t\tdescription,\n\t\t\tclose,\n\t\t\tis_blocked = false,\n\t\t\taction = null,\n params = [],\n popup_params = {},\n town,\n str = '',\n town_id,\n\t\t\tthat = this; // self reference\n\n\t\t// PRIVATE FUNCTIONS\n\t\t/**\n\t\t * Event handler for event description\n\t\t */\n\t\tfunction hideDesc() {\n\t\t\tif (action) {\n\t\t\t\tnotification.css('cursor', 'auto');\n\t\t\t}\n\n\t\t\twindow.setTimeout(function() {\n\t\t\t\tif (is_blocked) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tdescription.stop(true, true).fadeOut();\n\t\t\t}, 150);\n\t\t}\n\n\t\t/**\n\t\t * Event handler for event description\n\t\t */\n\t\tfunction showDesc() {\n\t\t\tif (action) {\n\t\t\t\tnotification.css('cursor', 'pointer');\n\t\t\t}\n\n\t\t\tif (WMap.currently_scrolling) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tdescription.fadeIn();\n\t\t}\n\n\t\tfunction getMassNotificationEndGameSubType () {\n\t\t\tvar Features = require('data/features'),\n\t\t\t\tEndGameTypes = require('enums/end_game_types'),\n\t\t\t\tMassNotificationSubTypes = require('enums/mass_notification_subtypes'),\n\t\t\t\tresult;\n\n\t\t\tswitch (Features.getEndGameType()) {\n\t\t\t\tcase EndGameTypes.END_GAME_TYPE_DOMINATION:\n\t\t\t\t\tresult = MassNotificationSubTypes.DOMINATION;\n\t\t\t\t\tbreak;\n\t\t\t\tcase EndGameTypes.END_GAME_TYPE_OLYMPUS:\n\t\t\t\t\tresult = MassNotificationSubTypes.OLYMPUS;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tresult = '';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}\n\n\t\tfunction createMassNotificationDescription() {\n\n\t\t var MassNotificationSubTypes = require('enums/mass_notification_subtypes');\n\n switch (opt.param_id) {\n case MassNotificationType.MASS_NOTIFICATION_TYPE_CUSTOM:\n opt.html = opt.html + '<br/>' + opt.param_str.subject;\n popup_params.title = opt.param_str.subject;\n popup_params.html = opt.param_str.text;\n break;\n case MassNotificationType.MASS_NOTIFICATION_TYPE_WONDER:\n var alliance_link;\n\n popup_params.html = '<span style=\"height:92px;width:92px;float:left;background: url(' + Game.img() + '/game/map/wonder_' +\n opt.param_str.wtp + '.png) no-repeat -' + (MapTiles.wonder_stages[10] * 99) + 'px 0;\"></span>';\n\n alliance_link = '<a href=\"javascript:void(0)\" onclick=\"Layout.allianceProfile.open(\\'' + addslashes(opt.param_str.anm) + '\\',' +\n opt.param_str.aid + ')\">' + opt.param_str.anm + '</a>';\n\n popup_params.html = popup_params.html + '<span style=\"float:left;width:280px;margin-left:15px;\">' +\n _('The alliance %1$s has completed World Wonder %2$s on %3$s.').replace('%1$s', alliance_link).replace('%2$s', opt.param_str.wnm).replace('%3$s', opt.param_str.ilnk);\n\n popup_params.html = popup_params.html + '<br/>' + _('They now control %s of 7 World Wonders.').replace('%s', opt.param_str.wnum) + '</span>';\n\n popup_params.title = _('Info about World Wonders');\n\n opt.html = opt.html + '<br/>' + opt.param_str.text + '<br/><span class=\"small notification_date\">' +\n readableUnixTimestamp(opt.time - (opt.ttl ? opt.ttl : 0), 'player_timezone', {extended_date: true}) + '</span>';\n\n opt.subtype = MassNotificationSubTypes.WONDER;\n break;\n case MassNotificationType.MASS_NOTIFICATION_TYPE_COMMUNITY_GOAL:\n opt.subtype = MassNotificationSubTypes.COMMUNITY_GOAL;\n opt.html = opt.html + '<br/>' + opt.param_str.text;\n break;\n case MassNotificationType.MASS_NOTIFICATION_TYPE_END_GAME:\n opt.subtype = getMassNotificationEndGameSubType();\n opt.html = opt.html + '<br/>' + opt.param_str.text;\n break;\n default:\n opt.html = opt.html + '<br/>' + opt.param_str.text;\n break;\n }\n }\n\n function createPhoenicianSalesmanArrivedNotificationDescription() {\n if (ITowns.numTowns() === 1) {\n str = _('The Phoenician merchant has arrived in your city.');\n } else {\n var town = ITowns.getTown(opt.param_id);\n str = s(_('The Phoenician merchant has arrived in %1.'), town.name);\n }\n\n PhoenicianSalesman.showHint(str);\n\n opt.html = '<a class=\"notify_subjectlink\" href=\"#\">' + str + '</a><br/><span class=\"small notification_date\">' + readableUnixTimestamp(opt.time, 'player_timezone', {extended_date: true}) + '</span>';\n }\n\n\t\tfunction getDescriptionHtml() {\n\t\t if (opt.type === NotificationType.PHOENICIAN_SALESMAN_ARRIVED) {\n\t\t createPhoenicianSalesmanArrivedNotificationDescription();\n } else if (opt.type === NotificationType.MASS_NOTIFICATION) {\n\t\t createMassNotificationDescription();\n }\n return opt.html;\n }\n\n\t\tfunction createNotification() {\n var DM = require_legacy('DM');\n var description = getDescriptionHtml();\n var subtype = opt.subtype ? ' ' + opt.subtype : '';\n\n var template = DM.getTemplate('notifications', 'base');\n return $(us.template(template, {\n notification_class: opt.type + (opt.type === 'planed_attack' ? ' ' + opt.id : '') + subtype,\n notification_description_html: description\n }));\n\t\t}\n\n function bindEventListenersToNotification() {\n //bind handlers, do magic\n notification.off();\n notification.on({\n 'mouseenter': showDesc,\n 'mouseleave': hideDesc,\n 'click': function(event) {\n if (action) {\n // no event nesting.\n event.stopPropagation();\n\n // Do action\n action.apply(this, params);\n\n // request deletion at server:\n gpAjax.ajaxPost('notify', 'delete', {id: opt.id}, false, function(/*data*/) {\n GrepoNotificationStack.del(that);\n that.destroy();\n });\n }\n }\n });\n\n description.off();\n description.on({\n 'mouseenter': function() {\n is_blocked = true;\n },\n 'mouseleave': function() {\n is_blocked = false;\n description.find('.report_html').remove();\n }\n });\n\n close.off();\n close.on('click', function(event) {\n event.stopPropagation();\n\n // request deletion at server:\n gpAjax.ajaxPost('notify', 'delete', {id: opt.id}, false, function() {\n GrepoNotificationStack.del(that);\n that.destroy();\n });\n });\n }\n\n function createNotificationActionsAndAddParams() {\n\n switch (opt.type) {\n case NotificationType.NEWREPORT:\n action = hOpenWindow.viewReport;\n params.push(opt.param_id);\n break;\n\n case NotificationType.NEWMESSAGE:\n case NotificationType.AWMESSAGE:\n action = hOpenWindow.viewMessage;\n params.push(opt.param_id);\n\n //Trigger event only for new notifications, not notifications loaded when the game started.\n if (!opt.game_initialization) {\n $.Observer(GameEvents.notification.message.arrive).publish({message_id: opt.param_id});\n }\n break;\n\n case NotificationType.PLANED_ATTACK:\n $.Observer(GameEvents.attack.planner_reminder).publish({attack_id: opt.param_id});\n action = hOpenWindow.viewAttackPlan;\n params.push(opt.param_id);\n break;\n\n case NotificationType.RESOURCETRANSPORT:\n action = hOpenWindow.viewResTransport;\n break;\n\n case NotificationType.ALLIANCE_INVITATION:\n action = GPWindowMgr.Create;\n params.push(GPWindowMgr.TYPE_ALLIANCE);\n params.push('');\n params.push({sub_content: 'applications'});\n break;\n\n case NotificationType.ALLIANCE_PACT_INVITATION:\n action = GPWindowMgr.Create;\n params.push(GPWindowMgr.TYPE_ALLIANCE);\n params.push(_('Alliance'));\n params.push({sub_content: 'alliance_pact', auto: true});\n break;\n\n case NotificationType.PHOENICIAN_SALESMAN_ARRIVED:\n town = ITowns.getTown(opt.param_id);\n action = function() {\n if (town.id && town.id !== Game.townId) {\n HelperTown.townSwitch(town.id);\n }\n PhoenicianSalesmanWindowFactory.openPhoenicianSalesmanWindow();\n };\n break;\n\n case NotificationType.BUILDING_FINISHED:\n town_id = ($(opt.html).find('span.notification_building_image').attr('id') || '').split('_');\n town_id = town_id[1] || 0;\n\n action = function() {\n if (town_id && town_id !== Game.townId) {\n HelperTown.townSwitch(town_id);\n }\n\n BuildingWindowFactory.open.apply(BuildingWindowFactory, arguments);\n };\n params.push('main');\n\n //Trigger event only for new notifications, not notifications loaded when the game started.\n if (!opt.game_initialization) {\n $.Observer(GameEvents.notification.building_finished.arrive).publish(opt);\n }\n break;\n\n case NotificationType.ALL_BUILDING_FINISHED:\n\t\t\t\tcase NotificationType.ALL_RECRUITMENT_FINISHED:\n action = function() {\n town_id = parseInt(opt.param_id, 10);\n if (town_id && town_id !== Game.townId) {\n HelperTown.townSwitch(town_id);\n }\n BuildingWindowFactory.open.apply(BuildingWindowFactory, arguments);\n };\n\n if (opt.type === NotificationType.ALL_BUILDING_FINISHED) {\n\t\t\t\t\t\tparams.push('main');\n\t\t\t\t\t} else {\n \tparams.push($.parseJSON(opt.param_str).building_type); // either barracks or docks\n\t\t\t\t\t}\n\n break;\n\n case NotificationType.MASS_NOTIFICATION:\n if (opt.param_id === MassNotificationType.MASS_NOTIFICATION_TYPE_COMMUNITY_GOAL) {\n action = CommunityGoalReachedWindowFactory.openWindow.bind(that, opt.param_str.reward_data);\n } else if (opt.param_id === MassNotificationType.MASS_NOTIFICATION_TYPE_END_GAME) {\n var NotificationPopupFactory = require('features/notification_popup/factories/notification_popup'),\n\t\t\t\t\t\t\tadditional_data = Object.assign(\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmain_notification_type: NotificationType.MASS_NOTIFICATION,\n\t\t\t\t\t\t\t\t\tnotification_id: opt.id\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\topt.param_str\n\t\t\t\t\t\t\t);\n action = NotificationPopupFactory.openWindow.bind(that, additional_data.notification_type, additional_data);\n action();\n } else {\n action = function() {\n Layout.showShortMessagePopup(popup_params);\n };\n }\n\n break;\n\n case NotificationType.BOTCHECK:\n action = function() {\n Game.bot_check = -1;\n $.Observer(GameEvents.bot_check.update_started_at_change).publish({});\n };\n break;\n\n case NotificationType.NEWAWARD:\n action = function() {\n var award_id = $.parseJSON(opt.param_str).award_id;\n var GrepolisScoreWindowFactory = require('features/grepolis_score/factories/grepolis_score');\n GrepolisScoreWindowFactory.openWindow(award_id);\n };\n break;\n\t\t\t\tcase NotificationType.DOMINATION_ERA_STARTED:\n\t\t\t\t\tvar DominationStartedPopup = require('features/notification_popup/factories/domination_era_started_popup'),\n\t\t\t\t\t\tdata = Object.assign(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmain_notification_type: NotificationType.DOMINATION_ERA_STARTED,\n\t\t\t\t\t\t\t\tnotification_id: opt.id\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{subject: opt.param_str}\n\t\t\t\t\t\t);\n\t\t\t\t\taction = DominationStartedPopup.openWindow.bind(that, data.main_notification_type, data);\n\t\t\t\t\taction();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase NotificationType.PREMIUM_FEATURE_RUNNING_OUT:\n\t\t\t\t\taction = PremiumWindowFactory.openBuyAdvisorsWindow.bind(that);\n\t\t\t\t\tbreak;\n default:\n break;\n }\n\t\t}\n\n\t\tfunction init() {\n createNotificationActionsAndAddParams();\n notification = createNotification();\n description = notification.find('.description');\n close = notification.find('.close');\n\n // save original value of ttl\n if (opt.ttl) {\n opt.total_ttl = opt.ttl;\n }\n\n HelperTown.updateBrowserWindowTitle();\n\t\t}\n\n\t\t// PUBLIC FUNCTIONS\n\n\t\t/**\n\t\t * Used to spawn\n\t\t */\n\t\tthis.attachToParent = function() {\n\t\t\t//attach event listeners\n\t\t\tbindEventListenersToNotification();\n\t\t\t// put into notification area\n\t\t\tnotification.prependTo(opt.parent).animate({\n\t\t\t\ttop: 0,\n\t\t\t\topacity: 1\n\t\t\t}, 1000, 'bounce');\n\t\t};\n\n\t\tthis.despawn = function() {\n\t\t\t//remove listeners when element is not visible anymore:\n\t\t\tnotification.detach().unbind().children().unbind();\n\t\t};\n\n\t\t/**\n\t\t * Getter to get Notification options\n\t\t */\n\t\tthis.getOpt = function() {\n\t\t\treturn opt;\n\t\t};\n\n\t\t// PRIVILEGED\n\n\t\tthis.getType = function() {\n\t\t\treturn opt.type;\n\t\t};\n\n\t\tthis.getTime = function() {\n\t\t\treturn opt.time;\n\t\t};\n\n\t\tthis.getId = function() {\n\t\t\treturn opt.id;\n\t\t};\n\n\t\t/**\n\t\t * decrements ttl for this object, if below or equal zero,\n\t\t * element is removed from DOM (but not from queue, this is done elsewhere)\n\t\t *\n\t\t * @return Boolean returns true if element is alive, false if it should be removed from queue\n\t\t */\n\t\tthis.age = function() {\n\t\t\tif (!opt.ttl) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// remove 10 secs from ttl\n\t\t\topt.ttl = opt.ttl - 10;\n\t\t\tif (opt.ttl <= 0) {\n\t\t\t\tthat.destroy();\n\t\t\t}\n\t\t\treturn true;\n\t\t};\n\n\t\t/**\n\t\t * Removes itself from document.\n\t\t */\n\t\tthis.destroy = function() {\n\t\t\t// set ttl to zero so that element is removed when checked again\n\t\t\topt.ttl = 0;\n\t\t\tnotification.fadeOut(350, 'linear', function() {\n\t\t\t\tnotification.unbind().empty().remove();\n\t\t\t});\n\t\t};\n\n init();\n\t}", "title": "" }, { "docid": "f9670dd87b900f8c11f5098645dc0356", "score": "0.42867765", "text": "function RichTextAnnotation(attributes) {\n this.attributes = attributes || {};\n }", "title": "" }, { "docid": "6314c7003b5307f5b0453597f3a1e725", "score": "0.4286716", "text": "constructor(studentAttributes) { \n super(studentAttributes) // similar to Object.create\n this.previousBackground = studentAttributes.previousBackground;\n this.className = studentAttributes.className;\n this.favSubjects = studentAttributes.favSubjects;\n}", "title": "" }, { "docid": "4e631ed41f24995ce5ffe517925639d3", "score": "0.42803884", "text": "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x2b8879b3;\n this.SUBCLASS_OF_ID = 0x8ae16a9d;\n\n this.msgId = args.msgId;\n this.requestedInfoId = args.requestedInfoId || null;\n this.shippingOptionId = args.shippingOptionId || null;\n this.credentials = args.credentials;\n }", "title": "" }, { "docid": "00717e0f5b2404c784dcc29956e95c23", "score": "0.42733085", "text": "function copyAttributes(source, destination, extraAttrs) {\n var copiedAttrs = $mdUtil.prefixer([\n 'ng-if', 'ng-click', 'ng-dblclick', 'aria-label', 'ng-disabled', 'ui-sref',\n 'href', 'ng-href', 'target', 'ng-attr-ui-sref', 'ui-sref-opts'\n ]);\n\n if (extraAttrs) {\n copiedAttrs = copiedAttrs.concat($mdUtil.prefixer(extraAttrs));\n }\n\n angular.forEach(copiedAttrs, function(attr) {\n if (source.hasAttribute(attr)) {\n destination.setAttribute(attr, source.getAttribute(attr));\n source.removeAttribute(attr);\n }\n });\n }", "title": "" }, { "docid": "ff50e8af683199c3fae5a294542ae332", "score": "0.42666957", "text": "function Person(attributes) { // base constructor function\n this.greeting = attributes.myGreeting;\n this.name = attributes.myName;\n}", "title": "" } ]
12722f3dac56534805654d3b6823f4f6
'Portfolio' is Object. 'portfolio' is mongodb document. 'portfolios' mongodb collection name.
[ { "docid": "5d5b1db7ad1fc132cfea04c177552e1c", "score": "0.0", "text": "function Portfolio(group ,index , name, stockArray) {\n this.group = group;\n this.index = index;\n this.name = name;\n this.stockArray = stockArray;\n}", "title": "" } ]
[ { "docid": "0c23b5dc60fec638cd701e88b52ba42f", "score": "0.641816", "text": "function getDocuments(){\n portfolioDocument.all(function(err, documents) {\n if(err !== null) {\n res.status(404).send(\"\");\n return;\n }\n if(documents == null || documents.length == 0){//no documents stored in the database, we check the portfolio to render the correct page\n //if the portfolio object is empty, there is not portfolio to show, we send a 404 code page\n if(!Object.keys(portfolio).length){\n res.status(404).send(\"404 Not found\");\n return;\n }\n //in all other cases, we build the html structure of the public portfolio page\n res.render('public.jade', portfolio, function(err, html) {\n res.status(200).send(html);\n return;\n });\n }\n else {\n var document = {}; //object to store all documents before adding them to the portfolio object \n documents.forEach(function(documentData, index, array){ //for each portfolio document\n if(documentData.visibility){ //if it's marked as visible by the user\n if(!portfolio.portfolios) portfolio.portfolios = {}; //for the first document, portfolio.portfolios is not created yet\n if(!portfolio.portfolios[documentData.category]){ //for each new document category\n portfolio.portfolios[documentData.category] = { //we get all information about this category and add an empty array for its documents\n \"title\": documentData.category,\n \"documents\": []\n };\n }\n //we get all document information\n document = {\n \"title\": documentData.title,\n \"description\": documentData.description,\n \"url\": documentData.url,\n \"relatedWebsite\": documentData.relatedWebsite,\n \"creationDate\": documentData.creationDate,\n }\n if(getCorrectEmbedCode(documentData.url) != \"\") document.emebededCode = getCorrectEmbedCode(documentData.url);\n //add add the document to the matching category in portfolios\n portfolio.portfolios[documentData.category].documents.push(document);\n }\n });\n //if the object returned is empty, there is not portfolio to show, we send a 404 code page\n if(!Object.keys(portfolio).length){\n res.status(404).send(\"404 Not found\");\n return;\n }\n //in all other cases, we build the html structure of the public portfolio page\n res.render('public.jade', portfolio, function(err, html) {\n res.status(200).send(html);\n return;\n });\n }\n });\n }", "title": "" }, { "docid": "61701e1c595bd96e22ecd0102b4fc28f", "score": "0.6184844", "text": "getCollection(name) {\n return this.db.getCollection(this.dbprefix + name);\n }", "title": "" }, { "docid": "5598744b6a5988e7dac7a344aa1f89b9", "score": "0.61234087", "text": "function collection(name){\n if (!connected) {\n throw new Error('Must connect to Mongo before calling \"collection\"');\n }\n return db.collection(name);\n\n}", "title": "" }, { "docid": "7da377995c96b323575d1e153513eae5", "score": "0.6036814", "text": "function SaveCollection(document) {\n\n document = JSON.parse(JSON.stringify(document));\n console.log(\"SaveCollection values=\", document);\n let collection = PageCollection;\n let selector = {\n _id: document._id\n };\n\n if (collection.findOne(selector) != null) {\n delete document._id;\n collection.update(selector, {\n $set: document\n });\n }\n else {\n delete document._id;\n collection.insert(document);\n }\n\n}", "title": "" }, { "docid": "f9ea9616a798e2f2a01d4250ec588da4", "score": "0.5991808", "text": "getCollection (name) {\n return this.dbprefix + name\n }", "title": "" }, { "docid": "2cd9dd6ba39975edb8ea6544f36d030f", "score": "0.59839714", "text": "getCollection(name) {\n return this.client.db().collection(name);\n }", "title": "" }, { "docid": "884e6718a1228c37c2173fedd1350f5e", "score": "0.5969363", "text": "function collection(){\n\n}", "title": "" }, { "docid": "ca97ee3db40c7e41b2869aa07e081ec3", "score": "0.5928856", "text": "function LoadNewPortfolioOverview() {\n var Catalog = {\n _id: 'New',\n portfolioid: '',\n description: '',\n coverage: '',\n org: '',\n publish: 0,\n status_data: [],\n status_label: '',\n repeated_data: [],\n repeated_label: '',\n risk_data: [],\n risk_label: '',\n audits: [],\n portfoliomap: []\n };\n return Catalog;\n}", "title": "" }, { "docid": "e7cf1bc6f65afb2e1308b5812397871e", "score": "0.5874047", "text": "collection(name) {\n if (!name.endsWith(\".json\")) {\n throw new Error(\"Collection must end with .json\");\n }\n /**\n * Assing collection file path on disk\n */\n this.file = path.join(this.storage, name);\n /**\n * Check if collection exists\n */\n if (fs.existsSync(this.file)) {\n /**\n * Parse existing collection\n */\n this.data = Object.assign({}, JSON.parse(fs.readFileSync(this.file, \"utf-8\")));\n }\n else {\n /**\n * Create a new empty collection and push it to memory\n */\n this.collection_cache.push(name);\n this.data = {};\n }\n return {\n documents: this.documents.bind(this),\n drop: this.drop.bind(this),\n find: this.find.bind(this),\n findOne: this.findOne.bind(this),\n push: this.push.bind(this),\n remove: this.remove.bind(this),\n update: this.update.bind(this),\n };\n }", "title": "" }, { "docid": "ef06856eacf7babc9ca16dd4e22230e4", "score": "0.5867221", "text": "function getAProjectFromMongoDB(){\n return aProject.aProject();\n }", "title": "" }, { "docid": "5f312b0827273d42de4111fd3d61f75d", "score": "0.58261895", "text": "publish() {\n if (Meteor.isServer) {\n Meteor.publish(this._collectionName, () => this._collection.find());\n }\n }", "title": "" }, { "docid": "7b7c956c8cfcec17860309e78ecb8570", "score": "0.5680221", "text": "function Collection(docstore,col_id,name) {\r\n this.docstore = docstore;\r\n this.col_id = col_id;\r\n this.name = name;\r\n }", "title": "" }, { "docid": "8661661232238a472b0b7aa50e09e4ce", "score": "0.5643865", "text": "getCollection() {\n return this.collection;\n }", "title": "" }, { "docid": "67cdc9f2c7b904e65c54700acc12581a", "score": "0.56375235", "text": "getCollectionName() {\n return this.collectionName;\n }", "title": "" }, { "docid": "dd9a36ae38675e699b529443d2cc06c8", "score": "0.5601076", "text": "function api ( ) {\n // obtain handle usable for querying the collection associated\n // with these records\n return storage.pool.db.collection(name);\n }", "title": "" }, { "docid": "f6246bdae1b5b651f8b8bb155e1f8e09", "score": "0.5585924", "text": "addCollection() {\n this.dbService.addCollection({\n name: 'New Collection',\n description: 'description',\n list: []\n });\n }", "title": "" }, { "docid": "c3b794077af0504293ad73bb0e042d91", "score": "0.5551402", "text": "function makeCollection(name) {\n\tcollections[name] = new Mongo.Collection(name.toLowerCase());\n\treturn collections[name];\n}", "title": "" }, { "docid": "4381c20673ccf275711fe062cd451f65", "score": "0.55429304", "text": "function readDocument(collection, id) {\n // Clone the data. We do this to model a database, where you receive a\n // *copy* of an object and not the object itself.\n var collectionObj = data[collection];\n if (!collectionObj) {\n throw new Error(`Object collection ${collection} does not exist in the database!`);\n }\n if(typeof id !== 'undefined'){\n var obj = collectionObj[id];\n if (obj === undefined) {\n throw new Error(`Object ${id} does not exist in object collection ${collection} in the database!`);\n }\n return JSONClone(data[collection][id]);\n }\n else{\n return JSONClone(collectionObj);\n }\n}", "title": "" }, { "docid": "e261e94bb345f99d078e04be61c0d91f", "score": "0.5540553", "text": "function getCollection(collectionName) {\n return JSONClone(data[collectionName]);\n}", "title": "" }, { "docid": "e261e94bb345f99d078e04be61c0d91f", "score": "0.5540553", "text": "function getCollection(collectionName) {\n return JSONClone(data[collectionName]);\n}", "title": "" }, { "docid": "e261e94bb345f99d078e04be61c0d91f", "score": "0.5540553", "text": "function getCollection(collectionName) {\n return JSONClone(data[collectionName]);\n}", "title": "" }, { "docid": "40fa2ec737601e5eae754efe6dcba235", "score": "0.5519728", "text": "getMongoCollection() {\r\n\t\tconst stitchApp = Stitch.defaultAppClient;\r\n\t\tconst mongodb = stitchApp.getServiceClient(RemoteMongoClient.factory, 'mongodb-atlas');\r\n\r\n\t\t// Get the collection from MongoDB\r\n return userCredentialsCollection = mongodb.db('OutOfTheBlue').collection('user_research_credentials')\r\n\t}", "title": "" }, { "docid": "9235af9212c51341f79333000fde9d89", "score": "0.55145186", "text": "function find() {\n\t\tcollection.find({}, function(err, docs) {\n\t\t\tif (err) {\n\t\t\t\tconsole.log(err.message);\n\t\t\t\tisFile = true;\n\t\t\t\tdbType = \"Flat File\";\n\t\t\t\tfileContents = Pose;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Mongo db is available, so use it's stick poser collection.\n\t\t\t\tisFile = false;\n\t\t\t\tdbType = \"Mongo\";\n\t\t\t\t\n\t\t\t\tif (docs.length === 0) {\n\t\t\t\t\tdbInitCollection();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdocs.sort(function(a, b) {\n\t\t\t\t\t\tif(a.name < b.name) return -1;\n\t\t\t\t\t\tif(a.name > b.name) return 1;\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tposes = docs;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "d0aed3e0035649d0386a4f56c3afd6b9", "score": "0.54629225", "text": "function collect(collection_name) {\n eval(collection_name + \" = new Meteor.Collection('\" + collection_name.toLowerCase() + \"');\" );\n}", "title": "" }, { "docid": "2b5e676f6b11270677221f83665e1bfe", "score": "0.5460189", "text": "function CollectionAPI(db) {\n var path = \"/_api/collection/\";\n\n return {\n\t/**\n\t * Creates a collection\n\t *\n\t * @param {String} collection - the collection name\n\t * @param {Object} [data] - a JSONObject containing optional attributes:\n\t * @param {Boolean} [data.waitForSync=false] - If true then the data is synchronised to disk before\n\t * returning from a create or update of a document.\n\t * @param {Boolean} [data.doCompact=true] - whether or not the collection will be compacted.\n\t * @param {Number} [data.type=2] - the type of the collection to create. The following values for type are\n\t * valid: <br>- 2: document collection <br>- 3: edges collection\n\t * @param {Number} [data.journalSize] - The maximal size of a journal or datafile. Must be at least 1MB.\n\t * @param {Boolean} [data.isSystem=false]- If true, create a system collection. In this case collectionname\n\t * should start with an underscore. End users should normally create non-system collections only. API\n\t * implementors may be required to create system collections in very special occasions, but normally a regular\n\t * collection will do.\n\t * @param {Boolean} [data.isVolatile=false]- If true then the collection data is kept in-memory only and not\n\t * made persistent. Unloading the collection will cause the collection data to be discarded. Stopping or\n\t * re-starting the server will also cause full loss of data in the collection. Setting this option will make the\n\t * resulting collection be slightly faster than regular collections because ArangoDB does not enforce any\n\t * synchronisation to disk and does not calculate any CRC checksums for datafiles.\n\t * @param {Number} [data.numberOfShards] - number of shards to distribute the collection on.\n\t * @param {Number} [data.shardKeys] - list of shard key attributes to use (e.g. [ \"_key1\", \"_key2\" ]).\n\t * @param {Object} [data.keyOptions] - additional options for key generation. If specified, then keyOptions\n\t * should be a JSON array containing the following attributes:\n\t * @param {String} [data.keyOptions.type]- \"traditional\" and \"autoincrement\".\n\t * @param {Boolean} [data.keyOptions.allowUserKeys=false] - if set to true, then it is allowed to supply\n\t * own key values in the _key attribute of a document.\n\t * @param {Number} [data.keyOptions.increment] - increment value for autoincrement key generator.\n\t * @param {Number} [data.keyOptions.offset] - initial offset value for autoincrement key generator.\n\t *\n\t * @return{Promise}\n\t * @method create\n\t */\n\t\"create\": function (collection, data) {\n\t collection = collection || db._collection;\n\n\t data = data ? data : {};\n\n\t if (!data.name) data.name = collection;\n\n\t return db.post(path, data);\n\t},\n\t/**\n\t * The result is an object describing the collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method get\n\t */\n\t\"get\": function (id) {\n\t return db.get(path + id);\n\t},\n\t/**\n\t * Deletes the collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method delete\n\t */\n\t\"delete\": function (id) {\n\t return db.delete(path + id);\n\t},\n\t/**\n\t * Deletes all documents of a collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method truncate\n\t */\n\t\"truncate\": function (id) {\n\t return db.put(path + id + '/truncate');\n\t},\n\t/**\n\t * Counts the document in the collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method count\n\t */\n\t\"count\": function (id) {\n\t return db.get(path + id + '/count');\n\t},\n\t/**\n\t * Result contains the number of documents and additional statistical information about the collection.\n\t *\n\t * @param {String} id -\tthe collection handle.\n\t * @return{Promise}\n\t * @method figures\n\t */\n\t\"figures\": function (id) {\n\t return db.get(path + id + '/figures');\n\t},\n\t/**\n\t * Returns a list of all collections in the database.\n\t *\n\t * @param {Object} [options]\t- list options\n\t * @param {Boolean} [options] \t- shorthand for options.excludeSystem.\n * @param {Boolean} [options.excludeSystem] \t - if set to true the system collections are excluded \n\t * @return{Promise}\n\t * @method list\n\t */\n\t\"list\": function (options) {\n\t \n\t if(typeof options === 'boolean') options = {excludeSystem: options};\n\t \n\t options = options || {};\n\t \n\t return db.get(path + url.options(options));\n\t},\n\t/**\n\t * Loads a collection into memory.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method load\n\t */\n\t\"load\": function (id, count) {\n\t var param = {};\n\t \n\t param.count = count;\n\t \n\t return db.put(path + id + '/load', param);\n\t},\n\t/**\n\t * Deletes a collection from memory.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method unload\n\t */\n\t\"unload\": function (id) {\n\t return db.put(path + id + '/unload', null);\n\t},\n\t/**\n\t * Renames a collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @param {String} name - the new name\n\t * @return{Promise}\n\t * @method rename\n\t */\n\t\"rename\": function (id, name) {\n\t var data = {\n\t\tname: name\n\t };\n\t return db.put(path + id + '/rename', data);\n\t},\n\t/**\n\t * Result contains the waitForSync, doCompact, journalSize, and isVolatile properties.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method getProperties\n\t */\n\t\"getProperties\": function (id) {\n\t return db.get(path + id + '/properties');\n\t},\n\t/**\n\t * Changes the properties of a collection.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @param {Object} properties - JSON Object that can contain each of the following:\n\t * @param {Boolean} [properties.waitForSync=false] - If true then creating or changing a document will wait\n\t * until the data has been synchronised to disk.\n\t * @param {Number} [properties.journalSize] - Size (in bytes) for new journal files that are created for the\n\t * collection.\n\t * @return{Promise}\n\t * @method setProperties\n\t */\n\t\"setProperties\": function (id, data) {\n\t return db.put(path + id + '/properties', data);\n\t},\n\t/**\n\t * Result contains the collection's revision id. The revision id is a server-generated string that clients can\n\t * use to check whether data in a collection has changed since the last revision check.\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method revision\n\t */\n\t\"revision\": function (id) {\n\t return db.get(path + id + '/revision');\n\t},\n\n\t/**\n\t * Will calculate a checksum of the meta-data (keys and optionally revision ids) and optionally the document\n\t * data in the collection.\n\t * The checksum can be used to compare if two collections on different ArangoDB instances contain the same\n\t * contents. The current revision of the collection is returned too so one can make sure the checksums are\n\t * calculated for the same state of data.\n\t *\n\t *\n\t * @param {String} id - the collection handle.\n\t * @param {Object} options - JSON Object that can contain each of the following:\n\t * @param {Boolean} [options.withRevisions=false] - If true, then revision ids (_rev system attributes) are\n\t * included in the checksumming.\n\t * @param {Boolean} [options.withData=false] - If true, the user-defined document attributes will be\n\t * included in the calculation too.\n\t * @return{Promise}\n\t * @method checksum\n\t */\n\t\"checksum\": function (id, options) {\n\n\t options = options ? options : {};\n\n\t return db.get(path + id + '/checksum' + url.options(options));\n\t},\n\t/**\n\t * Rotates the journal of a collection. The current journal of the collection will be closed and made a read-only\n\t * datafile. The purpose of the rotate method is to make the data in the file available for compaction (compaction\n\t * is only performed for read-only datafiles, and not for journals).\n\t *\n\t * @param {String} id - the collection handle.\n\t * @return{Promise}\n\t * @method rotate\n\t */\n\t\"rotate\": function (id) {\n\t return db.put(path + id + '/rotate', null);\n\t}\n };\n}", "title": "" }, { "docid": "988c49c785599d31c59419399e2bc90c", "score": "0.5435799", "text": "function getPortfolioTitle() {\n return myPortfolio.getName();\n}", "title": "" }, { "docid": "c37fb655c499254e796a1796c1884859", "score": "0.5422128", "text": "function viewBudgets (callback){\n MongoClient.connect(URL, function (err, client) {\n console.log(\"CONNECTED\")\n if (err) throw err\n \n var db = client.db('arsalaanrehive');\n \n db.collection('budget_collection').find({}).toArray(function(error, documents) {\n if (err) throw error;\n console.log(documents);\n callback(documents);\n });\n });\n}", "title": "" }, { "docid": "e2a81a334118430c6158d12f9d50e3d7", "score": "0.5417299", "text": "function ListPortfolioBasic(portfolioid) {\n var dbfields = { _id: 1, userid: 1, portfolioid: 1, description: 1, coverage: 1, org: 1 };\n var sortfields = {\"datepub\": -1};\n\n return new Promise(function(resolve, reject){\n database.QueryDataByID(portfolioid, dbfields, sortfields).then(function(Result){\n resolve(Result[0]);\n });\n });\n}", "title": "" }, { "docid": "4c1e603b6f6dde357ee485a4d82f1be0", "score": "0.53865314", "text": "function readDocument(collection, id) {\n // Clone the data. We do this to model a database, where you receive a\n // *copy* of an object and not the object itself.\n var collectionObj = data[collection];\n if (!collectionObj) {\n throw new Error(`Object collection ${collection} does not exist in the database!`);\n }\n var obj = collectionObj[id];\n if (obj === undefined) {\n throw new Error(`Object ${id} does not exist in object collection ${collection} in the database!`);\n }\n return JSONClone(data[collection][id]);\n}", "title": "" }, { "docid": "4c1e603b6f6dde357ee485a4d82f1be0", "score": "0.53865314", "text": "function readDocument(collection, id) {\n // Clone the data. We do this to model a database, where you receive a\n // *copy* of an object and not the object itself.\n var collectionObj = data[collection];\n if (!collectionObj) {\n throw new Error(`Object collection ${collection} does not exist in the database!`);\n }\n var obj = collectionObj[id];\n if (obj === undefined) {\n throw new Error(`Object ${id} does not exist in object collection ${collection} in the database!`);\n }\n return JSONClone(data[collection][id]);\n}", "title": "" }, { "docid": "9c038b34e86cafffdc5d2af3d3f2248e", "score": "0.53520805", "text": "publish() {\n if (Meteor.isServer) {\n Meteor.publish(this._collectionName, () => this._collection.find({}, { limit: 0 }));\n }\n }", "title": "" }, { "docid": "a729b34c164c71453e658116d514ccb0", "score": "0.53287697", "text": "async connectToDB(collName) {\n this.database = await mongoClient.connect(mongoHostURL);\n\n this.database = this.database.db(mongoDataBaseName); // copy db for mongo v3+\n this.mongo = this.database;\n this.mongo = this.mongo.collection(collName);\n }", "title": "" }, { "docid": "2fbac677466b79bdbc87e08a8e5a848a", "score": "0.5321496", "text": "getCollection_() {\n const promise = new Promise(function(resolve, reject) {\n if (!this.database_) {\n reject(\"Tried to operate on repertoire collection without connecting \" +\n \"to database.\");\n return;\n }\n this.database_\n .db(DATABASE_NAME)\n .collection(\n COLLECTION_NAME,\n (err, collection) => {\n if (err) {\n reject(err);\n } else {\n resolve(collection);\n }\n });\n }.bind(this));\n return promise;\n }", "title": "" }, { "docid": "46160db0feae76651332527ca5a2479f", "score": "0.5299557", "text": "getCollection() {\n if (client) {\n return client.db(DB_NAME).collection(COLL_NAME);\n }\n return null;\n }", "title": "" }, { "docid": "deafacd6e9dc37ed0bc18568d74a25bd", "score": "0.5291643", "text": "function createCollection(fetcher, serviceName, databaseName, collectionName) {\n return new MongoDBCollection(fetcher, serviceName, databaseName, collectionName);\n}", "title": "" }, { "docid": "deafacd6e9dc37ed0bc18568d74a25bd", "score": "0.5291643", "text": "function createCollection(fetcher, serviceName, databaseName, collectionName) {\n return new MongoDBCollection(fetcher, serviceName, databaseName, collectionName);\n}", "title": "" }, { "docid": "c45a55c69129b95332b302f930f97244", "score": "0.5283945", "text": "async getCollectionItems(name) {\n const { fields, entries } = await this.cockpit.collectionGet(name);\n return { fields, entries, name };\n }", "title": "" }, { "docid": "c45a55c69129b95332b302f930f97244", "score": "0.5283945", "text": "async getCollectionItems(name) {\n const { fields, entries } = await this.cockpit.collectionGet(name);\n return { fields, entries, name };\n }", "title": "" }, { "docid": "98efde349f6c388c3cb65c35cec9827f", "score": "0.52753955", "text": "get collection() {\n return this.name;\n }", "title": "" }, { "docid": "3d8078a2338c80df6f940b7fc4c8322f", "score": "0.52665156", "text": "function getcollection(collectionname) {\n restler.put(cloudant_cred.host + '/' + collectionname, {\n username: cloudant_cred.user,\n password: cloudant_cred.password\n }).on('complete', function (data) {\n console.log(data);\n });\n }", "title": "" }, { "docid": "0da603d197cbc9a4f1fa61f82b54e321", "score": "0.5263005", "text": "function getProjects() {\n return db('projects')\n}", "title": "" }, { "docid": "681b8dc9ef3e9da9f03347c89342c1e4", "score": "0.52449375", "text": "async getMongoStatusCollection(){\n\t\tvar mongoClient = await new MongoClient(this.mongoUrl, { useUnifiedTopology: true }).connect();\n\t\tvar multiviewDb = mongoClient.db(this.mongoConfig.multiviewDb);\n\t\tvar collection = multiviewDb.collection(this.mongoConfig.collectionMap.boxStatus);\n\t\treturn collection;\n\t}", "title": "" }, { "docid": "a3f4418d061f1c534d7863901671e1a8", "score": "0.52424186", "text": "editPortfolio(state, payload) {\n let currPortfolio = findPortfolios(state, payload.id)[0]\n currPortfolio.name = payload.name\n }", "title": "" }, { "docid": "4d795a55dc0f801022eb2b97098b0460", "score": "0.5238418", "text": "'projects.update'( o ){\n Articles.fn.check( o, [ R_OBJ_PROJECT ]);\n const item = Articles.sofns.cleanup( o );\n //console.log( item );\n const ret = Articles.update( o._id, { $set:item.set, $unset:item.unset });\n console.log( 'Articles.projects.update \"'+o.name+'\" ('+o._id+') returns '+ret );\n if( !ret ){\n throw new Meteor.Error(\n 'articles.projects.update',\n 'Unable to update \"'+o.name+'\" project' );\n }\n return ret;\n }", "title": "" }, { "docid": "d67a1bf97d5ab0780b0349e5b3f1b681", "score": "0.5236201", "text": "getCollection(callback) {\n this.getConnection((error, database) => {\n if (!error) {\n const collection = database.collection(this.config.levelControllerConfig.collectionName);\n return callback(null, database, collection);\n } else {\n return callback(error, null, null);\n }\n });\n }", "title": "" }, { "docid": "37055a574b523c361f97c9d7e62a07f5", "score": "0.5228003", "text": "function Collection(collectionName, db) {\n if (collectionName === void 0) {\n throw new Error(\"collectionName should be specified.\");\n }\n this.name = \"\" + db.name + \"_\" + collectionName;\n this.ls = db.ls;\n this.deserialize();\n }", "title": "" }, { "docid": "3951c54283f0f0a5d45332c8dfba166d", "score": "0.522013", "text": "getCollection(id) {\n console.log('Calling get collection', id);\n fetch('/owns/'+id, {\n headers: {\n 'Content-Type': 'application/json'\n }\n })\n .then(response => response.json())\n .then(JSONdata => {\n console.log('jsondata', JSONdata);\n this.setCollection(JSONdata);\n }).catch(error => console.log(error))\n\n }", "title": "" }, { "docid": "1c5c1b5a4600aada4d9e828b7f7f1227", "score": "0.5204643", "text": "function Collection(db, name) {\n _classCallCheck(this, Collection);\n\n this._db = db;\n this._name = name;\n this._indexes = new Set();\n }", "title": "" }, { "docid": "1c5c1b5a4600aada4d9e828b7f7f1227", "score": "0.5204643", "text": "function Collection(db, name) {\n _classCallCheck(this, Collection);\n\n this._db = db;\n this._name = name;\n this._indexes = new Set();\n }", "title": "" }, { "docid": "b4cf5257b78712039dbd4c13a99920e5", "score": "0.52044225", "text": "function db_set(collection) {\n collections[collection] = db.getCollection(collection)\n if( collections[collection] === null ) {\n collections[collection] = db.addCollection(collection)\n }\n}", "title": "" }, { "docid": "63ea053a0259046e03ec9695a715e12a", "score": "0.5201592", "text": "collection(name) {\n return Promise.resolve().then(() => {\n if (name.indexOf('hz_') === 0 || name.indexOf('hzp_') === 0) {\n throw new Error(`Collection \"${name}\" is reserved for internal use ` +\n 'and cannot be used in requests.');\n } else if (!this.ready) {\n throw new Error('Metadata is not synced with the database.');\n }\n\n const collection = this.collections.get(name);\n if (!collection && !this.autoCreateCollection) {\n throw new Error(`Collection \"${name}\" does not exist.`);\n } else if (collection) {\n if (!collection.ready()) {\n return new Promise((resolve, reject) =>\n collection._onReady((maybeErr) => {\n if (maybeErr instanceof Error) {\n reject(maybeErr);\n } else {\n resolve(collection);\n }\n }));\n }\n return collection;\n }\n return this.createCollection(name);\n });\n }", "title": "" }, { "docid": "c950832d6573ef2b4f3fa6dfa0de1213", "score": "0.5201195", "text": "static initialize(obj, createPortfolioField, linkToPortfolioField, portfolioIDField, portfolioNameField) { \n obj['CreatePortfolioField'] = createPortfolioField;\n obj['LinkToPortfolioField'] = linkToPortfolioField;\n obj['PortfolioIDField'] = portfolioIDField;\n obj['PortfolioNameField'] = portfolioNameField;\n }", "title": "" }, { "docid": "edd20d804b4636345c86fbe199ba299e", "score": "0.5188914", "text": "initCollections(db) {\n this.collectionNames.forEach((name) => {\n this.collectionsDict[name] = db.collection(name);\n });\n }", "title": "" }, { "docid": "62566c1b1831ca08c4880a20c46f36b4", "score": "0.5188709", "text": "_setupMongo() {\n this.schemas = {\n Tickers: new Schema({\n symbol: {\n type: String,\n unique: true\n },\n url: String\n }),\n Entries: new Schema({\n Ticker: {\n type: mongoose.Schema.Types.ObjectId,\n ref: 'Ticker'\n },\n date: Date,\n name: String,\n rate: String,\n postsToday: Number,\n last: Number,\n change: Number,\n percentChange: Number,\n volume: Number\n }, {collection: 'Entry'})\n };\n\n _.forEach(this.schemas, (schema, key) => {\n this.models[key] = mongoose.model(key, schema);\n });\n }", "title": "" }, { "docid": "529398775c983ad9ab74411808643005", "score": "0.5179351", "text": "getAllCollections() {\n this.$info('helpers:getAllCollections');\n const res = this.getQuadsByType('Collection')\n .concat(this.getQuadsByType('Project'));\n // const names = res.map((v) => v.subject.value);\n\n\n this.$debug('getAllCollections', res);\n return res;\n }", "title": "" }, { "docid": "5729d56dccbe01e3d17e2e3dbd96c654", "score": "0.51748806", "text": "function getConnection(dat) {\n //connecting to database at home page should make it easier to build a simple front end?\n MongoClient.connect(\"mongodb://localhost:27017\", function(err, db) {\n if(err) return dat(error);\n var contacts = db.collection(\"contact\");\n })\n\n \n}", "title": "" }, { "docid": "1b41f65631a0af577f40ca60e52bf71c", "score": "0.5164841", "text": "function savePortfolio(){\r\n\tsaveObj(portfolio, 'data/myPortfolio.txt');\r\n}", "title": "" }, { "docid": "afdf1477b7534679c40ffc88cf1f15ed", "score": "0.5153457", "text": "function stock(req, res){\n let name = req.user.name\n User.findOne({name: name})\n .then(person=>{\n let port = person.portfolio.id(req.params.id)\n res.render('users/stock', {\n title: 'Portfolios',\n user: req.user,\n port\n })\n })\n}", "title": "" }, { "docid": "90776516d68775aa708fd30451bbeaeb", "score": "0.5133393", "text": "function getCollectionByUser(useridParameter){\t \n\t Collection.find({userID: useridParameter}, function(err, collection) {\n\t\t if (err) throw err;\n\t // object of all the users\n\t collectionObject = collection;\n\t console.log('This is the userID: ' + globalUserID);\n });\n\t }", "title": "" }, { "docid": "151f5a2010ec6247dec3933aa56d9315", "score": "0.512868", "text": "async dumpCollection(collection) {\n return await dumpMongoCollection(this.getEnv().MONGODB_URL, collection);\n }", "title": "" }, { "docid": "dc5ba815c89bee5fbd8363d33ce933c0", "score": "0.51198393", "text": "function budgetCreateCollection(params) {\r\n\tconst { amount, description } = params;\r\n\tdb\r\n\t\t.createCollection('expenses')\r\n\t\t.then((collection) => {\r\n\t\t\tres.status(200).json(collection);\r\n\t\t})\r\n\t\t.catch((err) => {\r\n\t\t\tres.status(500).json({ error: 'No expenses for you!' });\r\n\t\t});\r\n}", "title": "" }, { "docid": "ac04f207a99349dd67a980cfacc789a7", "score": "0.51139003", "text": "function isCollection(value) {\n // YOUR CODE BELOW HERE //\n if (Array.isArray(value)){\n return true; \n } else{\n return isObject(value); \n }\n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "867b9eb744a0471d91fecf867e1850a3", "score": "0.510984", "text": "static async loadSkillCollection() {\n const client = await mongodb.MongoClient.connect(config.MONGODB_URI, {\n useNewUrlParser: true\n });\n return client.db('sanickmil-recruitment').collection('skill');\n }", "title": "" }, { "docid": "6b98c9c0e0a3eaf0be194c171d775480", "score": "0.51051366", "text": "function Collection() {}", "title": "" }, { "docid": "6b98c9c0e0a3eaf0be194c171d775480", "score": "0.51051366", "text": "function Collection() {}", "title": "" }, { "docid": "6b98c9c0e0a3eaf0be194c171d775480", "score": "0.51051366", "text": "function Collection() {}", "title": "" }, { "docid": "8f544dba33e7af6884e84c1ff18cefa8", "score": "0.5103807", "text": "function getProjects(callback){\n var collection = db.collection('projects');\n collection.find({}).toArray(function(err, docs) {\n callback(null, docs);\n });\n}", "title": "" }, { "docid": "333538e950a6c0949b3e63ce7d5020ae", "score": "0.50990266", "text": "function getPivotCurrency(codeCompany){\n var cur = Currencies_Live.findOne({ \"codeCompany\": codeCompany, \"isPivot\": true });\n console.log(\"OUTPUT \", cur);\n if (cur == undefined) {\n return null;\n }\n return cur;\n}", "title": "" }, { "docid": "417604fb67057b00d3f8d2422790beb6", "score": "0.5094776", "text": "function ProjectsCollection(params) {\n\tthis.db = params.db;\n\tthis.reader = params.reader;\n\tthis.baseDir = params.baseDir;\n\tthis.archiveDir = params.archiveDir;\n\tthis.configs = [];\n\tthis.loadingProjectsHash = {};\n}", "title": "" }, { "docid": "80dee9ace83bf0c5b47ef6155a37a40f", "score": "0.50824016", "text": "async function getCollection(db, name) {\r\n\ttry {\r\n\t\tconst collection = await db.createCollection(name);\r\n\t\treturn collection;\r\n\t} catch (e) {\r\n\t\tif ((\"codeName\" in e) && e.codeName === \"NamespaceExists\") {\r\n\t\t\treturn db.collection(name);\r\n\t\t} else throw e;\r\n\t}\r\n}", "title": "" }, { "docid": "bf8c5466dcebf16c335d0cf9e66dd283", "score": "0.50727427", "text": "getCollectionId() {\n\t \treturn this.collectionId;\n\t }", "title": "" }, { "docid": "3f572fc2ea064476ee87e292f72aa8c5", "score": "0.5068845", "text": "function ObjectId(){return 12345} //Remove this code to use project", "title": "" }, { "docid": "a2d8ffe7e918faf53a697b81881938e0", "score": "0.50687903", "text": "function AnalyticsDataCollection (collection, search, facetName) {\n this.collection = collection;\n this.search = search;\n this.results = this.search.results;\n this.setCurrentFacet(facetName);\n }", "title": "" }, { "docid": "6e427d9edc81c626a535e83ecce574c2", "score": "0.5065132", "text": "async function updateExisting() {\n try {\n const newData = {\n $push:{\n \"pastData\":{\n coinData:portfolio.presentData.coinData,\n Date: currentDate,\n portfolioValue: currentProfolioValue\n } \n } \n }\n \n let userId = portfolio._user;\n const existingPortfolio = await Portfolio.findOneAndUpdate({ _user: userId },newData)\n await existingPortfolio.save();\n \n } catch (error) {\n console.log('Error in update existing portfolio: ' + error)\n }\n }", "title": "" }, { "docid": "46cc3d7a3006854be1d9ceb69b34ec13", "score": "0.5065124", "text": "async function loadPostsCollection() {\n const client = await mongodb.MongoClient.connect(\n 'mongodb://duna111:[email protected]:19598/vue_express2', \n {\n useNewUrlParser: true\n }\n );\n\n return client.db('vue_express2').collection('posts');\n}", "title": "" }, { "docid": "689ab1cd7e1ceb3403268804318556f6", "score": "0.50632066", "text": "function createPortfolio(name) {\n var token = $window.sessionStorage.token;\n console.log('portfolioService.createPortfolio() with name:' + name);\n return $http({\n method: 'POST',\n url: AppConfig.accountAPI + '/portfolios/',\n data : {'name' : name},\n headers: {\n 'x-access-token': token,\n 'Accept': 'application/json',\n 'Content-Type' : 'application/json'\n }\n }).then(success, error);\n }", "title": "" }, { "docid": "bca751392f0b9de4150ff1144098c4c2", "score": "0.5061257", "text": "function _cacheCollection(cSpace, name, container, cb){\r\n\tcSpace.db.collection(name, function(err, collection) {\r\n\t\tif(err){\r\n \t\tlog.error(err);\r\n\t\t}\r\n\t\tcollection.find(function(err, cursor) {\r\n\t\t\tif(err){\r\n \t\tlog.error(err);\r\n\t\t\t}\r\n\t cursor.each(function(err, item) {\r\n \t\tif(err){\r\n \t\tlog.error(err);\r\n \t\t\t}\t\r\n \t if(item != null) {\r\n \t \tcontainer[item.name] = container[item._id] = item;\r\n \t}\r\n \t }); \r\n \t }); \r\n\t\tlog.debug(\"Cached collection:\" + name);\r\n });\r\n}", "title": "" }, { "docid": "5a117af74cf2195c453d16e40be3faba", "score": "0.5059744", "text": "async function loadPostsCollection() {\n //creates the database connection with MongoClient.connect\n const client = await mongodb.MongoClient.connect(\n 'mongodb+srv://vueadmin:[email protected]/test?retryWrites=true&w=majority', {\n useNewUrlParser: true\n })\n\n return client.db('vue_express').collection('posts') //Database name, created on MongoDB Atlas\n}", "title": "" }, { "docid": "12dbf9e4283c5b69c05c2fb5baaedede", "score": "0.5053408", "text": "function MongoDB()\n{\n this._mongodb = null\n}", "title": "" }, { "docid": "41b9b02912375007cf79c15150124113", "score": "0.50466096", "text": "function MongoStorage(){}", "title": "" }, { "docid": "c9dd3e4f832c7fb0a365897ac86ec73d", "score": "0.5044859", "text": "function Collection () {}", "title": "" }, { "docid": "8327b4fe6e3af5fc4e39e1ad6104b782", "score": "0.5043619", "text": "static get collection() {\n const obj = this.init();\n return new Collection(obj);\n }", "title": "" }, { "docid": "b142bc184e2221090881c9c036ce9f1c", "score": "0.5042082", "text": "async function loadPostsCollection(){\n //Creating my client variable which connects to MongoDB Atlas\n const client = await mongoDb.MongoClient.connect\n (\"mongodb+srv://AmadoJunior:[email protected]/test?retryWrites=true&w=majority\"\n ,{\n useNewUrlParser: true\n }); // mongoDb.MongoClient.connect takes in the link to the database and an object of options\n\n return client.db(\"UserData\").collection(\"Posts\");\n}", "title": "" }, { "docid": "ddedcc983e2b8be095548e368d21fd9d", "score": "0.50284535", "text": "_getCollection() {\n return self;\n }", "title": "" }, { "docid": "92a8007a94c80840ffb3a333be2aa50d", "score": "0.50267893", "text": "async saveDocument(data, collection){\n this.database.collection(collection).add({\n data: data\n })\n }", "title": "" }, { "docid": "53b24074c88251bd912aaaaef08ee994", "score": "0.50053257", "text": "function updateCollectionDo(collection) {\n let fixed_collection = cloneDeep(collection);\n fixed_collection.resources = fixed_collection.resources.map((res) => res.id);\n return fetch(\"/collections/\" + collection.id,\n { method: \"PUT\",\n body: JSON.stringify({collection: fixed_collection}),\n credentials: 'same-origin',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }});\n}", "title": "" }, { "docid": "c068fe014974656702a1d78e60bbbb74", "score": "0.4998911", "text": "function seed(collectionName) {\n console.log(`Seeding collection = ${collectionName}`)\n connection.db.collection(collectionName, (err, c) => {\n if (err) { console.log('Error adding collection.') }\n c.countDocuments((err, count) => {\n if (err) { console.log('Error counting documents in collection.') }\n if (count === 0) { c.insertMany(require('./data/' + collectionName + '.json')) }\n })\n c.find({}).toArray((err, data) => {\n if (err) { console.log('Error adding data to collection.') }\n console.log(data)\n })\n })\n}", "title": "" }, { "docid": "4b3c6d0016db0b21d1ce71331043d87c", "score": "0.49984393", "text": "processObjectInfos (infos) {\r\n // In Mongo the db name key is db, change to the more intuitive name just as in create\r\n infos.name = infos.db;\r\n delete infos.db;\r\n return infos;\r\n }", "title": "" }, { "docid": "9d4acfa04e24acd223f1c938ebffde14", "score": "0.4989771", "text": "function create(req, res){\n let name = req.user.name\n User.findOne({name: name})\n .then(person =>{\n person.portfolio.push(req.body)\n person.save(()=>{\n res.render('users/showadd',{\n title: 'Portfolios',\n port: req.body,\n user: req.user,\n person\n })\n })\n })\n}", "title": "" }, { "docid": "0c7563d53c27010f4bd3f6395958986a", "score": "0.4986067", "text": "function onGetCollectionTree(data) {\n\t\tvar collection = _.findWhere( data.collections.collection, {id: pizzaOvenCollectionId} );\n\t\t//console.log('collection:',collection)\n\t\t// populate about section with colletion title and description\n\t\t$('.js-about__title').text( collection.title );\n\t\t$('.js-about__description').text( collection.description );\n\t\tdebouncedResize();\n\t\t// get photsets info for each album in this collection\n\t\tonPhotosetsObtained( collection.set );\n\n\t\t// old - get the photosets (albums) for the pizza oven collections\n\t\t//getPhotosets();\n\t}", "title": "" }, { "docid": "885290bdb14da00b22df5f31f9b0ae19", "score": "0.49848607", "text": "render (data) {\n\n const { all, ...rawCollectionList } = data.collections;\n const collectionList = {};\n\n for (const [name, pageList] of Object.entries(rawCollectionList)) {\n if (collectionList[name] == null) {\n collectionList[name] = [];\n }\n for (const page of pageList) {\n collectionList[name].push({\n id: page.data.id,\n url: page.url,\n fileSlug: page.fileSlug,\n filePathStem: page.filePathStem,\n date: page.date,\n inputPath: page.inputPath,\n outputPath: page.outputPath,\n title: page.data.title,\n description: page.data.description,\n });\n }\n }\n\n return JSON.stringify(collectionList, null, ' ');\n }", "title": "" }, { "docid": "f03648255eb13b1d356ff49270536ad3", "score": "0.49708962", "text": "function _mGetCollection(memo, next){\n\t\t\tCollection.getDefault(memo.user_id, \n\t\t\t\t(err, collection) => {\n\t\t\t\t\tif(err)return setImmediate(() => next(err));\n\t\t\t\t\t\n\t\t\t\t\tmemo.Collection = collection;\n\t\t\t\t\t\n\t\t\t\t\tsetImmediate(() => next(null, memo))\n\t\t\t\t}\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "b582676f900b4f57375c344bf56a6247", "score": "0.49682727", "text": "async getCollection() {\n const result = await Post.find({})\n .select('-_id -place -__v');\n return result;\n }", "title": "" }, { "docid": "6b2e739b0befeac5cc28ae3d969afe35", "score": "0.49623263", "text": "function getcollections() {\n return new Promise(function(res,rej){\n MongoClient.connect(\"mongodb://localhost:27017\",function(err, client){\n //var dbo = client.db(dbname);\n var dbo = client.db(\"saprunner\");\n dbo.listCollections({},{nameOnly:true}).toArray(function (err, collectionInfo){\n console.log(collectionInfo);\n res(collectionInfo);\n });\n \n })\n });\n}", "title": "" }, { "docid": "5ec83c201a6d6d583725e670445674aa", "score": "0.49615782", "text": "readCollection (name, cb) {\n this._openConnection(() => {\n let collection = this.db.collection(name);\n collection.find({}).toArray((err, docs) => {\n cb(docs)\n this.db.close()\n return false\n })\n })\n }", "title": "" }, { "docid": "cef1b8859b573879ccdfa6a874166326", "score": "0.49522507", "text": "function fetchDocsData(collectionName) {\n return window['bc_'+collectionName+'Entries']\n }", "title": "" }, { "docid": "7cea4a9a60c40cf78896cf8d105f522d", "score": "0.49493814", "text": "function saveIntoCollections(collection_name, data) {\n return new Promise(async (resolve, reject) => {\n try {\n var collection = \"\";\n collection = local_child_db.collection(`${collection_name}`);\n var doc = await collection.save(data);\n console.log(\"social_signals\");\n console.log(doc.ops[0]._id);\n resolve(true);\n } catch (E) {\n reject(E);\n }\n });\n}", "title": "" }, { "docid": "115205453b894b408ecd28ff0ac79377", "score": "0.49481943", "text": "function portfolioList(data, type, name){\n const obj = data;\n const listType = \"portfolio_list\";\n // FILter\n if(type){\n clearList();\n const newObj = obj.filter(obj => name == obj.company);\n portfolioData(newObj, listType);\n }else{\n portfolioData(obj, listType);\n }\n}", "title": "" }, { "docid": "614509eccf42444f2d9a31a13fd12769", "score": "0.49475867", "text": "function getCollection() {\r\n\t//console.log(`Getting collection:\\n${collection.id}\\n`);\r\n\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tclient.readCollection(collectionUrl, (err, result) => {\r\n\t\t\tif (err) {\r\n\t\t\t\tif (err.code == HttpStatusCodes.NOTFOUND) {\r\n\t\t\t\t\tclient.createCollection(databaseUrl, collection, { offerThroughput: 400 }, (err, created) => {\r\n\t\t\t\t\t\tif (err) reject(err)\r\n\t\t\t\t\t\telse resolve(created);\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tresolve(result);\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}", "title": "" }, { "docid": "e002227ae2aa74588eeaca1d0d53af30", "score": "0.49466375", "text": "get collections() {\n return this._collections;\n }", "title": "" }, { "docid": "9575e378597ee5386a2990583a53e6c4", "score": "0.49461588", "text": "function doc(theDoc, collection, localVar, parentQuery) {\n var rid = $SocketsIo.rIdGen(), inProgress = false;\n\n theDoc.localVar = localVar;\n if (!theDoc.localVar) theDoc.localVar = {};\n\n theDoc.localVar.$oldDoc = strippedDoc(); // save origenal obj for comparisen latter\n\n // removes data not be saved back to the database\n function strippedDoc(docObj) {\n if (!docObj) docObj = theDoc;\n var doc = {}, dumDoc = {};\n for (var i in docObj) {\n if (['localVar'].indexOf(i) == -1 && i.indexOf('$') == -1) {\n dumDoc[i] = docObj[i];\n }\n }\n angular.copy(dumDoc, doc);\n return doc;\n };\n\n function clearQList() { if ($SocketsIo.qList[rid]) { delete $SocketsIo.qList[rid]; }; };\n \n theDoc.$save = function (updateMe,timeout,max) {\n\n if(timeout){\n if(!max) max = 3; \n if(theDoc.localVar.saveTimer) $timeout.cancel(theDoc.localVar.saveTimer);\n if(theDoc.localVar.saveInt == null) theDoc.localVar.saveInt = 0;\n theDoc.localVar.saveInt += 1;\n if(theDoc.localVar.saveInt > max){\n theDoc.localVar.saveInt = 0;\n save(updateMe);\n }\n else{\n theDoc.localVar.saveTimer = $timeout(function(){\n save(updateMe);\n theDoc.localVar.saveInt = 0;\n },timeout) \n }\n }\n else{\n save(updateMe);\n }\n function save(updateMe){\n theDoc.$cancelSave();\n rid = $SocketsIo.rIdGen();\n inProgress = true;\n var data = { collection: collection, requestId: rid, doc: deepMatch(strippedDoc(), strippedDoc(theDoc.localVar.$oldDoc)) };\n if (theDoc.$isNew == true) {\n data.doc = deepMatch(strippedDoc(), { _id: theDoc._id });\n data.$isNew = true;\n }\n\n if (data.doc.change && Object.keys(data.doc.change).length > 0) {\n if (updateMe) data.updateMe = updateMe;\n $SocketsIo.socket.emit('save', data);\n theDoc.localVar.$oldDoc = strippedDoc();\n $SocketsIo.qList[rid] = {\n saveReturn: function (savedDoc) {\n $timeout(function () {\n inProgress = false;\n });\n }\n }\n }\n\n }\n\n return this;\n };\n\n theDoc.$delete = function (updateMe) {\n \n rid = $SocketsIo.rIdGen();\n inProgress = true;\n var data = { collection: collection, requestId: rid, docId:theDoc._id };\n if (updateMe) data.updateMe = updateMe;\n $SocketsIo.socket.emit('delete', data);\n $SocketsIo.qList[rid] = {\n saveReturn: function (savedDoc) {\n $timeout(function () {\n inProgress = false;\n });\n }\n }\n \n };\n\n theDoc.$cancelSave = function () {\n $SocketsIo.socket.emit('cancelSave', {requestId:rid});\n clearQList();\n return this;\n };\n\n // compares two objects and returns a dictionaly for files with old new and save statment\n function deepMatch(odj1, odj2) {\n var returnObj = {\n _id: odj1._id,\n change: {},\n save: {}\n };\n for (var i in odj1) {\n if (odj2[i] == undefined) {\n returnObj.change[i] = { 'new': odj1[i], type: 'create' };\n if (!returnObj.save.$set) returnObj.save.$set = {};\n returnObj.save.$set[i] = odj1[i];\n }\n else if (angular.equals(odj1[i], odj2[i]) == false) {\n returnObj.change[i] = { old: odj2[i], 'new': odj1[i], type: 'update' };\n if (!returnObj.save.$set) returnObj.save.$set = {};\n returnObj.save.$set[i] = odj1[i];\n }\n }\n for (var i in odj2) {\n if (odj1[i] == undefined) {\n returnObj.change[i] = { old: odj2[i], type: 'delete' };\n if (!returnObj.save.$unset) returnObj.save.$unset = {};\n returnObj.save.$unset[i] = \"\";\n }\n }\n\n return returnObj;\n }\n\n return theDoc;\n }", "title": "" } ]
b64dd65ab9046f1ffcfd92278a199b78
date from iso format or fallback
[ { "docid": "85623194ed26bbede1bc096e5efe3f85", "score": "0.0", "text": "function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n utils_hooks__hooks.createFromInputFallback(config);\n }\n }", "title": "" } ]
[ { "docid": "13f243eaab2970d1c45633329d453b9d", "score": "0.69151974", "text": "function isoToDate(s) {\n if (s instanceof Date) { return s; }\n if (typeof s === 'string') { return new Date(s); }\n}", "title": "" }, { "docid": "de0b69b9592160873df7abc77554ad77", "score": "0.66991687", "text": "function isoStringToDate(match){var date=new Date(0);var tzHour=0;var tzMin=0;// match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\nvar dateSetter=match[8]?date.setUTCFullYear:date.setFullYear;var timeSetter=match[8]?date.setUTCHours:date.setHours;// if there is a timezone defined like \"+01:00\" or \"+0100\"\nif(match[9]){tzHour=Number(match[9]+match[10]);tzMin=Number(match[9]+match[11]);}dateSetter.call(date,Number(match[1]),Number(match[2])-1,Number(match[3]));var h=Number(match[4]||0)-tzHour;var m=Number(match[5]||0)-tzMin;var s=Number(match[6]||0);var ms=Math.round(parseFloat('0.'+(match[7]||0))*1000);timeSetter.call(date,h,m,s,ms);return date;}", "title": "" }, { "docid": "fc403363ec279dc440fc2c60ff4121f2", "score": "0.6643978", "text": "function parseIsoDate(dateStr) {\n \tif(dateStr.length <10) return null;\n \tvar d = dateStr.substring(0,10).split('-');\t\n \tfor(var i in d) { \n \t\td[i]=parseInt(d[i]);\n \t};\n \td[1] = d[1] -1;//month;\n \tvar t = dateStr.substring(11,19).split(':');\n \treturn new Date(d[0],d[1],d[2],t[0],t[1],t[2]);\n }", "title": "" }, { "docid": "50c7b95eaf13c7f74ca54f02b14aaedf", "score": "0.65537083", "text": "function makeDateFromString(config) {\n\t parseISO(config);\n\t if (config._isValid === false) {\n\t delete config._isValid;\n\t moment.createFromInputFallback(config);\n\t }\n\t }", "title": "" }, { "docid": "50c7b95eaf13c7f74ca54f02b14aaedf", "score": "0.65537083", "text": "function makeDateFromString(config) {\n\t parseISO(config);\n\t if (config._isValid === false) {\n\t delete config._isValid;\n\t moment.createFromInputFallback(config);\n\t }\n\t }", "title": "" }, { "docid": "87209cdd2663e3ae90202056a5fc750e", "score": "0.6520427", "text": "function ISOdate(d) {\r\n\ttry {\r\n\t\treturn d.toISOString().slice(0,10);\r\n\t}catch(e){\r\n\t\treturn 'Invalid ';\r\n\t}\r\n}", "title": "" }, { "docid": "cf3893a72e4a0ae2e89e8ea20f496d69", "score": "0.6492825", "text": "function isoDate(date)\n{\n\treturn date.getFullYear() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getDate()\n}", "title": "" }, { "docid": "1059771490fbee93c9f650efed0be2c9", "score": "0.64871174", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "6f268cb9cec352fd2dcbaa3ee812eb64", "score": "0.6448661", "text": "isIsoFormat(value) {\n let dateRegex = RegExp('[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$');\n return dateRegex.test(value);\n }", "title": "" }, { "docid": "81fa4f6971aa8aabeb853b08a9ab2500", "score": "0.64316744", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 4; i > 0; i--) {\n if (match[i]) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i - 1] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "81fa4f6971aa8aabeb853b08a9ab2500", "score": "0.64316744", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 4; i > 0; i--) {\n if (match[i]) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i - 1] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "0d52c25baf6042bdbf90fe04d9a1461b", "score": "0.64103484", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "0d52c25baf6042bdbf90fe04d9a1461b", "score": "0.64103484", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "477b01d827e8092434ff5f7bea57ac4d", "score": "0.6407205", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 4; i > 0; i--) {\n if (match[i]) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i - 1] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "c6ae0b625d7374328f40da9261259f7a", "score": "0.64045346", "text": "function makeDateFromString(config) {\n parseISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n moment.createFromInputFallback(config);\n }\n }", "title": "" }, { "docid": "f220ccfeae66373dc0574148a2c4bcd2", "score": "0.63858414", "text": "function makeDateFromString(config) {\n\t\tparseISO(config);\n\t\tif (config._isValid === false) {\n\t\t\tdelete config._isValid;\n\t\t\tmoment.createFromInputFallback(config);\n\t\t}\n\t}", "title": "" }, { "docid": "bc435c3a8507e10d26589f61cbbf4893", "score": "0.6371779", "text": "function parseISODate(str) {\n pieces = /(\\d{4})-(\\d{2})-(\\d{2})/g.exec(str);\n if (pieces === null)\n return null;\n var year = parseInt(pieces[1], 10),\n month = parseInt(pieces[2], 10),\n day = parseInt(pieces[3], 10);\n return new Date(year, month - 1, day); // In ISO, months are 1-12; in JavaScript, months are 0-11.\n }", "title": "" }, { "docid": "6251ccccd8ce22e285709d658da2e27f", "score": "0.63675845", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "6251ccccd8ce22e285709d658da2e27f", "score": "0.63675845", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "6251ccccd8ce22e285709d658da2e27f", "score": "0.63675845", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "6251ccccd8ce22e285709d658da2e27f", "score": "0.63675845", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "6251ccccd8ce22e285709d658da2e27f", "score": "0.63675845", "text": "function makeDateFromString(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n }\n else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "d428d550b126717cbdc99d6cedad470d", "score": "0.6310807", "text": "function dateFromISO8601(isostr) {\n var parts = isostr.match(/\\d+/g);\n var date = new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);\n var mm = date.getMonth() + 1;\n mm = (mm < 10) ? '0' + mm : mm;\n var dd = date.getDate();\n dd = (dd < 10) ? '0' + dd : dd;\n var yyyy = date.getFullYear();\n var finaldate = mm + '/' + dd + '/' + yyyy;\n return finaldate;\n }", "title": "" }, { "docid": "297cdd78fc67bff704121f70380855a0", "score": "0.63043165", "text": "function validateDateFormat(sDateToBeProcressed) {\r\n \"use strict\";\r\n var oDates = new Date(sDateToBeProcressed);\r\n if (isNaN(oDates)) {\r\n var arrSplitedDate = sDateToBeProcressed.replace(/[-]/g, \"/\");\r\n arrSplitedDate = arrSplitedDate.split(\"/\");\r\n var sFormattedDate = arrSplitedDate[1] + \"-\" + arrSplitedDate[0] + \"-\" + arrSplitedDate[2];\r\n oDates = new Date(sFormattedDate);\r\n }\r\n return oDates.toISOString();\r\n}", "title": "" }, { "docid": "7e1f0c65d6d90983fe64a32a1f608580", "score": "0.6296922", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n // match[2] should be \"T\" or undefined\n config._f = 'YYYY-MM-DD' + (match[2] || \" \");\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "7e1f0c65d6d90983fe64a32a1f608580", "score": "0.6296922", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n // match[2] should be \"T\" or undefined\n config._f = 'YYYY-MM-DD' + (match[2] || \" \");\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "7e1f0c65d6d90983fe64a32a1f608580", "score": "0.6296922", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n // match[2] should be \"T\" or undefined\n config._f = 'YYYY-MM-DD' + (match[2] || \" \");\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "7e1f0c65d6d90983fe64a32a1f608580", "score": "0.6296922", "text": "function makeDateFromString(config) {\n var i,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n // match[2] should be \"T\" or undefined\n config._f = 'YYYY-MM-DD' + (match[2] || \" \");\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "e4b2786b23ea18039e6327d89c14c369", "score": "0.62956905", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0);\n var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "e4b2786b23ea18039e6327d89c14c369", "score": "0.62956905", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0);\n var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "e4b2786b23ea18039e6327d89c14c369", "score": "0.62956905", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0);\n var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "e4b2786b23ea18039e6327d89c14c369", "score": "0.62956905", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0);\n var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "5804332406c03d923cc84d929d5f1291", "score": "0.62367827", "text": "function parseIsoToTimestamp(_date) {\n if ( _date !== null ) {\n var s = $.trim(_date);\n s = s.replace(/-/, \"/\").replace(/-/, \"/\");\n s = s.replace(/-/, \"/\").replace(/-/, \"/\");\n s = s.replace(/:00.000/, \"\");\n s = s.replace(/T/, \" \").replace(/Z/, \" UTC\");\n s = s.replace(/([\\+\\-]\\d\\d)\\:?(\\d\\d)/, \" $1$2\"); // -04:00 -> -0400\n return Number(new Date(s));\n }\n return null;\n }", "title": "" }, { "docid": "7f1164501e95af92ffd904b908a73157", "score": "0.62285906", "text": "function dateFromIsoString(isoDateString) {\r\n return fastDateParse.apply(null, isoDateString.split(/\\D/));\r\n }", "title": "" }, { "docid": "f4a8293e2556ac8c1c1c7824ef2689dc", "score": "0.62221026", "text": "deserialize(value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n // string is the right format first.\n if (ISO_8601_REGEX.test(value)) {\n let date = new Date(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n }\n return super.deserialize(value);\n }", "title": "" }, { "docid": "f4a8293e2556ac8c1c1c7824ef2689dc", "score": "0.62221026", "text": "deserialize(value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n // string is the right format first.\n if (ISO_8601_REGEX.test(value)) {\n let date = new Date(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n }\n return super.deserialize(value);\n }", "title": "" }, { "docid": "f4a8293e2556ac8c1c1c7824ef2689dc", "score": "0.62221026", "text": "deserialize(value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n // string is the right format first.\n if (ISO_8601_REGEX.test(value)) {\n let date = new Date(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n }\n return super.deserialize(value);\n }", "title": "" }, { "docid": "83e12d4dbbb8002ca16f80032d87721c", "score": "0.62183875", "text": "getFormattedDate ({ date }) {\n if (typeof date === 'string') {\n return format(parseISO(date), \"d 'de' MMMM', às' HH'h'mm\", {\n locale: ptBR\n })\n }\n return format(date, \"d 'de' MMMM', às' HH'h'mm\", {\n locale: ptBR\n })\n }", "title": "" }, { "docid": "abfd8444c8ad672b1a8aebfcaf4f297e", "score": "0.61820984", "text": "function universal() {\n return doFormat(date, {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n weekday: 'long',\n hour: 'numeric',\n minute: '2-digit',\n second: '2-digit'\n });\n }", "title": "" }, { "docid": "d2b9be98ab4eac0ac8f0d7e72a02bb6e", "score": "0.6167017", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0; // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours; // if there is a timezone defined like \"+01:00\" or \"+0100\"\n\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0); // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n\n var ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n }", "title": "" }, { "docid": "13b38a00f1dbd76e3bc9d64468054f0c", "score": "0.6166754", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "13b38a00f1dbd76e3bc9d64468054f0c", "score": "0.6166754", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "13b38a00f1dbd76e3bc9d64468054f0c", "score": "0.6166754", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "13b38a00f1dbd76e3bc9d64468054f0c", "score": "0.6166754", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "13b38a00f1dbd76e3bc9d64468054f0c", "score": "0.6166754", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "76d4a3ed6bb6b03d43f846fb7c913532", "score": "0.61617094", "text": "function getISOLocalDate(value) {\n if (!value) {\n return value;\n }\n\n var date = new Date(value);\n\n if (isNaN(date.getTime())) {\n throw new Error(\"Invalid date: \".concat(value));\n }\n\n var year = getYear(date);\n var month = \"0\".concat(getMonth(date)).slice(-2);\n var day = \"0\".concat(getDay(date)).slice(-2);\n return \"\".concat(year, \"-\").concat(month, \"-\").concat(day);\n}", "title": "" }, { "docid": "76d4a3ed6bb6b03d43f846fb7c913532", "score": "0.61617094", "text": "function getISOLocalDate(value) {\n if (!value) {\n return value;\n }\n\n var date = new Date(value);\n\n if (isNaN(date.getTime())) {\n throw new Error(\"Invalid date: \".concat(value));\n }\n\n var year = getYear(date);\n var month = \"0\".concat(getMonth(date)).slice(-2);\n var day = \"0\".concat(getDay(date)).slice(-2);\n return \"\".concat(year, \"-\").concat(month, \"-\").concat(day);\n}", "title": "" }, { "docid": "a2724c46b0e9b5a113b2aed4e51e292a", "score": "0.6147587", "text": "function configFromISO(config) {\n if (!__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__utils_type_checks__[\"b\" /* isString */])(config._i)) {\n return config;\n }\n var input = config._i;\n var match = extendedIsoRegex.exec(input) || basicIsoRegex.exec(input);\n var allowTime;\n var dateFormat;\n var timeFormat;\n var tzFormat;\n if (!match) {\n config._isValid = false;\n return config;\n }\n // getParsingFlags(config).iso = true;\n var i;\n var l;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return config;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return config;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return config;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n }\n else {\n config._isValid = false;\n return config;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__from_string_and_format__[\"a\" /* configFromStringAndFormat */])(config);\n}", "title": "" }, { "docid": "0f52dbb4c3b16c77ad33820b353ad932", "score": "0.61250347", "text": "function parseDateFormat(date) {\n return $filter('date')(date, 'yyyy-MM-dd');\n }", "title": "" }, { "docid": "3f93ffe564770ecdc9f7b8baa43a435a", "score": "0.61188406", "text": "function configFromISO(config) {\n if (!Object(__WEBPACK_IMPORTED_MODULE_1__utils_type_checks__[\"i\" /* isString */])(config._i)) {\n return config;\n }\n var input = config._i;\n var match = extendedIsoRegex.exec(input) || basicIsoRegex.exec(input);\n var allowTime;\n var dateFormat;\n var timeFormat;\n var tzFormat;\n if (!match) {\n config._isValid = false;\n return config;\n }\n // getParsingFlags(config).iso = true;\n var i;\n var l;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return config;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return config;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return config;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n }\n else {\n config._isValid = false;\n return config;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n return Object(__WEBPACK_IMPORTED_MODULE_2__from_string_and_format__[\"a\" /* configFromStringAndFormat */])(config);\n}", "title": "" }, { "docid": "c79da54e4e966e9ed4fab17a421d17c0", "score": "0.611831", "text": "function makeDateFromString(string) {\n var format = 'YYYY-MM-DDT',\n i;\n if (isoRegex.exec(string)) {\n for (i = 0; i < 3; i++) {\n if (isoTimes[i][1].exec(string)) {\n format += isoTimes[i][0];\n break;\n }\n }\n return makeDateFromStringAndFormat(string, format + 'Z');\n }\n return new Date(string);\n }", "title": "" }, { "docid": "66b1f7ff683b989778f3959af7790902", "score": "0.6112176", "text": "normalize(str) {\n if (str && !CommonUtils.isDate(str)) {\n var match = str.match(/^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})$/);\n if (match) {\n return new Date(match[3], match[2] - 1, match[1]);\n }\n match = str.match(/^(\\d{4})-(\\d{1,2})-(\\d{1,2})$/);\n if (match) {\n return new Date(match[1], match[2] - 1, match[3]);\n }\n }\n }", "title": "" }, { "docid": "e4b52c4a0cc4d0e760694692facb1a4e", "score": "0.61092424", "text": "function parseDate (date) {\n var d = '';\n var t = date.indexOf('T');\n let index = date.indexOf('-');\n \n if(index === -1 && t === 8){\n d += date.substring(0, 4) + '-';\n d += date.substring(4, 6) + '-';\n d += date.substring(6, 8) + date.substr(8);\n } else if (index > -1 && t === 10) {\n return date;\n } else {\n console.error('invalid date');\n return null;\n }\n return d;\n }", "title": "" }, { "docid": "342ffd53c3fbea28478fd1e06c83e80a", "score": "0.6103642", "text": "function makeDateFromString(config) {\n var i,\n string = config._i;\n if (isoRegex.exec(string)) {\n config._f = 'YYYY-MM-DDT';\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "342ffd53c3fbea28478fd1e06c83e80a", "score": "0.6103642", "text": "function makeDateFromString(config) {\n var i,\n string = config._i;\n if (isoRegex.exec(string)) {\n config._f = 'YYYY-MM-DDT';\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "342ffd53c3fbea28478fd1e06c83e80a", "score": "0.6103642", "text": "function makeDateFromString(config) {\n var i,\n string = config._i;\n if (isoRegex.exec(string)) {\n config._f = 'YYYY-MM-DDT';\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "342ffd53c3fbea28478fd1e06c83e80a", "score": "0.6103642", "text": "function makeDateFromString(config) {\n var i,\n string = config._i;\n if (isoRegex.exec(string)) {\n config._f = 'YYYY-MM-DDT';\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "342ffd53c3fbea28478fd1e06c83e80a", "score": "0.6103642", "text": "function makeDateFromString(config) {\n var i,\n string = config._i;\n if (isoRegex.exec(string)) {\n config._f = 'YYYY-MM-DDT';\n for (i = 0; i < 4; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (parseTokenTimezone.exec(string)) {\n config._f += \" Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._d = new Date(string);\n }\n }", "title": "" }, { "docid": "08a4666866715b031fd7e662145e5b16", "score": "0.6071104", "text": "function isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0; // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours; // if there is a timezone defined like \"+01:00\" or \"+0100\"\n\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0); // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "30383b150fb61e729efebef326e5af90", "score": "0.60573643", "text": "convertDateToISOString(date) {\n if (date) return moment(date, defaultDateFormat).toISOString();\n return date;\n }", "title": "" }, { "docid": "e14663dbd54a26860e1d1885505939ae", "score": "0.60538405", "text": "function isoDateFormat(strDateView) {\n return moment(strDateView, \"DD/MM/YYYY HH:mm\").format(\"YYYY-MM-DD HH:mm\")\n}", "title": "" }, { "docid": "bdcf3a571950e960f89c7e0eba8897b8", "score": "0.60504943", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n \n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "ed14124254544500970fc7e5fc1fe9c2", "score": "0.60102975", "text": "function isoStringToDate(match) {\n var date = new Date(0);\n var tzHour = 0;\n var tzMin = 0; // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n\n var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n var timeSetter = match[8] ? date.setUTCHours : date.setHours; // if there is a timezone defined like \"+01:00\" or \"+0100\"\n\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n var h = Number(match[4] || 0) - tzHour;\n var m = Number(match[5] || 0) - tzMin;\n var s = Number(match[6] || 0); // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n\n var ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}", "title": "" }, { "docid": "98ad371bd33c9a838b867b195a102696", "score": "0.60096854", "text": "function _dateCoerce(obj) {\n return obj.toISOString();\n}", "title": "" }, { "docid": "98a93dffdeb630f258d9b6277cda84dd", "score": "0.60056126", "text": "function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break;}}if(dateFormat==null){config._isValid=false;return;}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){// match[2] should be 'T' or space\r\n\ttimeFormat=(match[2]||' ')+isoTimes[i][0];break;}}if(timeFormat==null){config._isValid=false;return;}}if(!allowTime&&timeFormat!=null){config._isValid=false;return;}if(match[4]){if(tzRegex.exec(match[4])){tzFormat='Z';}else{config._isValid=false;return;}}config._f=dateFormat+(timeFormat||'')+(tzFormat||'');configFromStringAndFormat(config);}else{config._isValid=false;}}// date from iso format or fallback", "title": "" }, { "docid": "98a93dffdeb630f258d9b6277cda84dd", "score": "0.60056126", "text": "function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break;}}if(dateFormat==null){config._isValid=false;return;}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){// match[2] should be 'T' or space\r\n\ttimeFormat=(match[2]||' ')+isoTimes[i][0];break;}}if(timeFormat==null){config._isValid=false;return;}}if(!allowTime&&timeFormat!=null){config._isValid=false;return;}if(match[4]){if(tzRegex.exec(match[4])){tzFormat='Z';}else{config._isValid=false;return;}}config._f=dateFormat+(timeFormat||'')+(tzFormat||'');configFromStringAndFormat(config);}else{config._isValid=false;}}// date from iso format or fallback", "title": "" }, { "docid": "f29dc47349e86f2f95307fa09cd3d943", "score": "0.5989161", "text": "function ISO_2022() {}", "title": "" }, { "docid": "f29dc47349e86f2f95307fa09cd3d943", "score": "0.5989161", "text": "function ISO_2022() {}", "title": "" }, { "docid": "360ae57849b2261dbe76ecf088cdf7ac", "score": "0.5979461", "text": "function iso8601Decoder(isoStr) {\n return Date.parse(isoStr);\n }", "title": "" }, { "docid": "77afe45c1ba3de72af9d0388a8091eb8", "score": "0.5974252", "text": "function parseISO(config) {\n\t var i, l,\n\t string = config._i,\n\t match = isoRegex.exec(string);\n\n\t if (match) {\n\t config._pf.iso = true;\n\t for (i = 0, l = isoDates.length; i < l; i++) {\n\t if (isoDates[i][1].exec(string)) {\n\t // match[5] should be 'T' or undefined\n\t config._f = isoDates[i][0] + (match[6] || ' ');\n\t break;\n\t }\n\t }\n\t for (i = 0, l = isoTimes.length; i < l; i++) {\n\t if (isoTimes[i][1].exec(string)) {\n\t config._f += isoTimes[i][0];\n\t break;\n\t }\n\t }\n\t if (string.match(parseTokenTimezone)) {\n\t config._f += 'Z';\n\t }\n\t makeDateFromStringAndFormat(config);\n\t } else {\n\t config._isValid = false;\n\t }\n\t }", "title": "" }, { "docid": "968635598a14a9c977f3415938a343cb", "score": "0.5971357", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "968635598a14a9c977f3415938a343cb", "score": "0.5971357", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "968635598a14a9c977f3415938a343cb", "score": "0.5971357", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be \"T\" or undefined\n config._f = isoDates[i][0] + (match[6] || \" \");\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += \"Z\";\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" }, { "docid": "7c79f9c5c7f1cc926f6d6c8d82f5e1f9", "score": "0.5971161", "text": "function parseISO(config) {\n var i, l,\n string = config._i,\n match = isoRegex.exec(string);\n\n if (match) {\n config._pf.iso = true;\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(string)) {\n // match[5] should be 'T' or undefined\n config._f = isoDates[i][0] + (match[6] || ' ');\n break;\n }\n }\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(string)) {\n config._f += isoTimes[i][0];\n break;\n }\n }\n if (string.match(parseTokenTimezone)) {\n config._f += 'Z';\n }\n makeDateFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }", "title": "" } ]
45516887b7bc5d9977b5d36b0812be5b
Func in global scope
[ { "docid": "05e7e4f5600aaa3f79ed5f12802c00a3", "score": "0.0", "text": "function sayHello(name) {\n console.log('Hello' + name)\n}", "title": "" } ]
[ { "docid": "8fed3faed5a596d3b9f80fd5d905a974", "score": "0.82384396", "text": "function globalFn() {}", "title": "" }, { "docid": "edaf9644020839e0a03917cd76d34512", "score": "0.72474074", "text": "function func() {}", "title": "" }, { "docid": "ae6a096cdafc65988aa3115584985d1d", "score": "0.72313154", "text": "function func () {}", "title": "" }, { "docid": "70412235b51d9186fe1510e9154b3a5c", "score": "0.7209958", "text": "function aGlobalOne() {\r\n //some code\r\n}", "title": "" }, { "docid": "bef55fdb252567a834a9b6f1b093bba2", "score": "0.6921688", "text": "function globalFunction() {\n\n\tfunction localFunction() {\n\t\tconsole.log('This function is local and can only be accessed within the function it was created in.');\n\t}\n\n\t// Calling localFunction() inside of globalFunction() will work\n\tlocalFunction();\n}", "title": "" }, { "docid": "b99ca6cd90e9b1e0e8846010c1fa6e0a", "score": "0.6880874", "text": "function fun () {}", "title": "" }, { "docid": "c2a0e4e1596ae66699887fd4a9ac0323", "score": "0.6826986", "text": "function fun() {}", "title": "" }, { "docid": "58b03442a6f531cc6e6831358f9190dd", "score": "0.67190105", "text": "function f() { return \"global\"; }", "title": "" }, { "docid": "58b03442a6f531cc6e6831358f9190dd", "score": "0.67190105", "text": "function f() { return \"global\"; }", "title": "" }, { "docid": "e9e837d64a8aeeba8d1731ddaf8f6207", "score": "0.6712994", "text": "function func() {\n\n }", "title": "" }, { "docid": "e9e837d64a8aeeba8d1731ddaf8f6207", "score": "0.6712994", "text": "function func() {\n\n }", "title": "" }, { "docid": "135460a182d886b93057aa661e9b5126", "score": "0.6650026", "text": "function fnl(){ }", "title": "" }, { "docid": "8d8995a068892381029ab721bc84c5a1", "score": "0.6591622", "text": "function myFn() { // function name also register in global object\n var y = 50; // It is myFn scope so register inside myFn scope not in global object \n var z = 60; // It is myFn scope so register inside myFn scope not in global object\n console.log(z-y);\n}", "title": "" }, { "docid": "5412cbec186d84761f7c0bb74ddbad34", "score": "0.65770954", "text": "function __func(){}", "title": "" }, { "docid": "07baaa7b10a2faddf5ad2c1b651b13e9", "score": "0.6564826", "text": "function miFuncion(){}", "title": "" }, { "docid": "07baaa7b10a2faddf5ad2c1b651b13e9", "score": "0.6564826", "text": "function miFuncion(){}", "title": "" }, { "docid": "652cb63376830d7cdbed0525f53ed5fe", "score": "0.65319425", "text": "function aFunc(){}", "title": "" }, { "docid": "b3898f49945362a8bddf7bac4bfe788c", "score": "0.6513444", "text": "function Global(op){\n op();\n}", "title": "" }, { "docid": "24867db33be8ce628f4e33946eea0b66", "score": "0.64717364", "text": "function miFuncion(){\n}", "title": "" }, { "docid": "944d3388c5122b686dcf6d39963e327e", "score": "0.6346232", "text": "function fun(){\n //\n}", "title": "" }, { "docid": "944d3388c5122b686dcf6d39963e327e", "score": "0.6346232", "text": "function fun(){\n //\n}", "title": "" }, { "docid": "0b8bcf41730f14bcf0d149841706809c", "score": "0.63420486", "text": "function myGlobalFunction() {\n console.log(\"I'm a global function!\");\n}", "title": "" }, { "docid": "b58939bef8483458b69110907e830f52", "score": "0.6341615", "text": "function miFuncion(){\n\n}", "title": "" }, { "docid": "b86b5c35d2e4a893ac94035f81b79346", "score": "0.6330287", "text": "function globalFunc() {\n // points to the global object or undefined under strict mode\n return this;\n }", "title": "" }, { "docid": "29bde6806507cbfa6fbd2920f71705ef", "score": "0.6307824", "text": "function func1(){}", "title": "" }, { "docid": "88d7389f892eb11b509be44133197860", "score": "0.6302688", "text": "function func1() {}", "title": "" }, { "docid": "88d7389f892eb11b509be44133197860", "score": "0.6302688", "text": "function func1() {}", "title": "" }, { "docid": "d361ebd325be460f6429e12c28e52b2c", "score": "0.6300984", "text": "function myFunc() { console.log(\"myFunc\");}", "title": "" }, { "docid": "53eb89ca67eeb868302ec681be3cdafe", "score": "0.62971145", "text": "function va(){}", "title": "" }, { "docid": "51732184a8b0bff5dec5a69eed69529d", "score": "0.62844455", "text": "function returnGlobalInFunc (){\n return globalVar;\n}", "title": "" }, { "docid": "40583a33e080f4638785e3f8f7cab725", "score": "0.6256407", "text": "function someFunc() {}", "title": "" }, { "docid": "79867565c3ab8063e8bad5b679e1fefb", "score": "0.6241523", "text": "function fun1() {}", "title": "" }, { "docid": "79867565c3ab8063e8bad5b679e1fefb", "score": "0.6241523", "text": "function fun1() {}", "title": "" }, { "docid": "e2fe234db529f58329c8a895b10268d4", "score": "0.6216138", "text": "function returnGlobal (){\n return globalOutOfFunctions;\n}", "title": "" }, { "docid": "13df25260e4440a35d55566645faf853", "score": "0.62106204", "text": "function mifuncion(){}", "title": "" }, { "docid": "57669fd365d82d0d4ce3363facf590ec", "score": "0.61970246", "text": "function func() {\n println(\"I am func!\");\n}", "title": "" }, { "docid": "0e70789cb3456f896e28f233cb1b42fe", "score": "0.61906874", "text": "function fun1(){}", "title": "" }, { "docid": "0e70789cb3456f896e28f233cb1b42fe", "score": "0.61906874", "text": "function fun1(){}", "title": "" }, { "docid": "484b22fd6f8a1a59c4f15d04992b958a", "score": "0.61886203", "text": "function globalContextFunction() {\n // as scopeVar is not defined in the function any reference to scopeVar is going to\n // access it from global context\n scopeVar = \"scopeVar in globalContextFunction val\";\n}", "title": "" }, { "docid": "ba74f35cc68dcfb5d2f679680dd99b17", "score": "0.6180485", "text": "function g() {}", "title": "" }, { "docid": "05d46c74bc807f5d58abaeec9536deb4", "score": "0.6170187", "text": "function myFunc () {\n //...\n}", "title": "" }, { "docid": "6b27bef00d7aa9a6d94452e8383d1e86", "score": "0.6170171", "text": "function fm(){}", "title": "" }, { "docid": "12798e8b7b766ce9ef47608a1f18de95", "score": "0.6159109", "text": "function func()\n{\n}", "title": "" }, { "docid": "e99dbcac262e6648160b84df70f2a84e", "score": "0.6139923", "text": "function run(func, params) { window[func](params); }", "title": "" }, { "docid": "cbbc6d3f55aba81b748af9a486b3c37d", "score": "0.6134867", "text": "function mainfunc (func) \n{\n window[func].apply(null, Array.prototype.slice.call(arguments, 1));\n}", "title": "" }, { "docid": "95c83684d25f58b42d65a98ed25551cd", "score": "0.6117032", "text": "function c() {}", "title": "" }, { "docid": "95c83684d25f58b42d65a98ed25551cd", "score": "0.6117032", "text": "function c() {}", "title": "" }, { "docid": "d34a953fc2aff7745cb93aaf60871818", "score": "0.6113865", "text": "function run( fun ){\n fun()\n }", "title": "" }, { "docid": "65d9a174a251007a5b5638392c60ff1a", "score": "0.6110646", "text": "function aa(){return function(){}}", "title": "" }, { "docid": "c47ff148da3146f4836cf4aa0d22d021", "score": "0.61025447", "text": "function func_1(){\r\n console.log('hello');\r\n}", "title": "" }, { "docid": "01c85619d5f162a80741b3d4cba50514", "score": "0.61012554", "text": "function fun1() { }", "title": "" }, { "docid": "01c85619d5f162a80741b3d4cba50514", "score": "0.61012554", "text": "function fun1() { }", "title": "" }, { "docid": "2d54ac8c958c21491cff9337b3615b87", "score": "0.6094343", "text": "function g(){}", "title": "" }, { "docid": "2d54ac8c958c21491cff9337b3615b87", "score": "0.6094343", "text": "function g(){}", "title": "" }, { "docid": "47ce905c679310b6755bf843993f1149", "score": "0.60920554", "text": "function funcA() {\na = 1; //I'm remove var and I'm put above console, the result will be a=1, without var -global var \nconsole.log(a); //undefined\nconsole.log(foo());//2\n\nfunction foo() {\nreturn 2;\n }\n}", "title": "" }, { "docid": "86e4a0194169cd1ada7e47fd9bc05360", "score": "0.60898167", "text": "function run(fun){\n fun()\n}", "title": "" }, { "docid": "86e4a0194169cd1ada7e47fd9bc05360", "score": "0.60898167", "text": "function run(fun){\n fun()\n}", "title": "" }, { "docid": "86e4a0194169cd1ada7e47fd9bc05360", "score": "0.60898167", "text": "function run(fun){\n fun()\n}", "title": "" }, { "docid": "86e4a0194169cd1ada7e47fd9bc05360", "score": "0.60898167", "text": "function run(fun){\n fun()\n}", "title": "" }, { "docid": "67b0f6fc25559822d688775ed1f87b8e", "score": "0.60744894", "text": "function fun() {\n print(\"foo\");\n}", "title": "" }, { "docid": "1c94db330ee233febd893b773aad003a", "score": "0.60735613", "text": "function func() {\n print(\"I am func!\");\n}", "title": "" }, { "docid": "312b644a06ec820e505b1d7a00520d52", "score": "0.6049489", "text": "function ourReusableFunction() {\n console.log(\"Heyya, World\");\n }", "title": "" }, { "docid": "b6631be544e075cd1408a66bb7176da6", "score": "0.60401136", "text": "function tempFunction(){\n console.log(\"uhh\");\n console.log(this===global);\n}", "title": "" }, { "docid": "7ea8c9e8f762b59586ed92ee2302a60f", "score": "0.6024268", "text": "function myFunc() {\n console.log(\"this is my function running\");\n }", "title": "" }, { "docid": "d7cd145b1e4a30350fa5e50f012822d9", "score": "0.6014312", "text": "function someFunction() {\n myVar = 'This is global';\n}", "title": "" }, { "docid": "d7cd145b1e4a30350fa5e50f012822d9", "score": "0.6014312", "text": "function someFunction() {\n myVar = 'This is global';\n}", "title": "" }, { "docid": "d2b5926cb64f2498139dc5b9767fced3", "score": "0.6013963", "text": "function i_am_a_function() {\n \tconsole.log(\"From i_am_a_function()\")\n }", "title": "" }, { "docid": "368fcf365a05ffd862be27b0ebbe3300", "score": "0.6006107", "text": "function aNewFuntion() {}", "title": "" }, { "docid": "e9778e9969a8a3235d4cfe91d77a0770", "score": "0.6006046", "text": "function fun1(){\n\n}", "title": "" }, { "docid": "e9778e9969a8a3235d4cfe91d77a0770", "score": "0.6006046", "text": "function fun1(){\n\n}", "title": "" }, { "docid": "6797346f63e28970e12fd1f3f9217f1b", "score": "0.5999315", "text": "function myFunction(){\n console.log(\"Im My Function\");\n console.log(this === global);\n}", "title": "" }, { "docid": "45de62dbf3971be38079003de5fa925b", "score": "0.5998424", "text": "function showScope(testlocal){\n\t//local variable only to this function\n\tvar functLocal = 5;\n\t\n\t\n\tconsole.log(testlocal); //test local is passed from another function but is still a local variable, just not in this function\n\t\n\tglobe = globe/2;\t//divides it by 2\n\n\n\n}", "title": "" }, { "docid": "16e58670bab6a3ca85705219c1cc4ad6", "score": "0.5992271", "text": "function getGlobal() {\n return Function('return this')();\n }", "title": "" }, { "docid": "bbdf983ed00cc7884a76355069c07d66", "score": "0.5978414", "text": "function dummy() {}", "title": "" }, { "docid": "bbdf983ed00cc7884a76355069c07d66", "score": "0.5978414", "text": "function dummy() {}", "title": "" }, { "docid": "59b6970939577ed3098d5941a9fadd0c", "score": "0.5967378", "text": "function f () {}", "title": "" }, { "docid": "e9e6fe67279c964da47e6713bb596835", "score": "0.59466046", "text": "function paramFun(){\n console.log(\"Hi Function Param\");\n}", "title": "" }, { "docid": "c67848ba081e9582588a7ba5efc92c70", "score": "0.59458536", "text": "function Callme(fun){\n fun();\n}", "title": "" }, { "docid": "904e28355ff11f5cdbf96a89e0d16fa0", "score": "0.59442735", "text": "function func () {\n console.log('add fuction');\n}", "title": "" }, { "docid": "667caf59e9e9ca651ab3358c074025b5", "score": "0.5931494", "text": "makeGlobal() {\n GLOBAL_FUNCS.forEach((funcName) => {\n global[funcName] = this[funcName].bind(this);\n });\n\n global.describe.only = this.odescribe.bind(this);\n global.describe.skip = this.xdescribe.bind(this);\n global.it.only = this.oit.bind(this);\n global.it.skip = this.xit.bind(this);\n }", "title": "" }, { "docid": "cd8832f7a775b746d08c2e3d4e7791c8", "score": "0.59296167", "text": "function localFunc() {\n localVar = 99;\n //...\n }", "title": "" }, { "docid": "db9c74cf399cacb39e9edb5ffcc50425", "score": "0.5927786", "text": "function getFunc() { return \"gate\"; }", "title": "" }, { "docid": "40de4f1621f8b01bd3a1b434dbd88389", "score": "0.59277076", "text": "function rememberScope(){//Has closure over func\n console.log(tempValue);//Has closure over rememberScope and func\n }", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.5912933", "text": "function f() {}", "title": "" }, { "docid": "92190fddd1fb990d8ea04f3a8b1c5749", "score": "0.59075487", "text": "function my_func() {\n return 'yo';\n}", "title": "" }, { "docid": "7d23045643825139482c0c93a7979481", "score": "0.5905711", "text": "function fun1() {\n\n}", "title": "" }, { "docid": "e2a58cd50485b6f9c185d187a99f3d91", "score": "0.58927506", "text": "function run(fun) {\n fun();\n}", "title": "" }, { "docid": "b186c3cd82c6df22131cdccd365ff097", "score": "0.5891855", "text": "function reusableFunction() {\n\tconsole.log(\"Heyya, World!\");\n}", "title": "" }, { "docid": "ebd15432ea949fdf5c1a9d7ba0e4a816", "score": "0.58876836", "text": "function baz(foo) { // bar is in fuction scope \r\n foo = bar; // baz is in function scope\r\n foo; //function...\r\n }", "title": "" }, { "docid": "1384fb6d4c258063018a5a8341df7e30", "score": "0.5885309", "text": "function miFuncionBacan(){\n //esto es lo que hace la funcion, se le llama cuerpo\n \n}", "title": "" }, { "docid": "49a32f775d09a4a86902eaa43fc18ad5", "score": "0.5883384", "text": "function demoFunction(){}", "title": "" } ]
0f6806a5d16dc276e437593179d4c117
callback used by setMode macro to display current mode
[ { "docid": "da32b86ddb2d505931caa0177cfcc3e1", "score": "0.78898674", "text": "function setModeCallback(macroName, args, data) {\n // updaze mode button\n updateMode(data);\n}", "title": "" } ]
[ { "docid": "6a0cc66a39206a79d2ca3f491257f364", "score": "0.7721243", "text": "SetMode() {\n\n }", "title": "" }, { "docid": "bc9e95dda185f796085527586eac1591", "score": "0.7334737", "text": "function _mode(val)\n{\n\tdebug('mode', val, '\\n');\n\tstep_mode = val;\n\tstep.message('mode', Modes[step_mode]);\n\tswitch(step_mode)\n\t{\n\t\tdefault:\n\t\t\tmod.Send( 'code_encoder_grid', 'local', 0);\n\t}\n\trefresh_code_buttons();\n\trefresh_adjusters();\n}", "title": "" }, { "docid": "28e9e0bd4523cdc356f6cf77b1f26b17", "score": "0.73078287", "text": "function getMode() {\n\n}", "title": "" }, { "docid": "81e75de74e42e83a1a9bc8ce558d50eb", "score": "0.72179013", "text": "function fn_draw_mode(a) {\n draw_mode = a;\n}", "title": "" }, { "docid": "6d98f2d4a9f8caf372d8a47de72305ec", "score": "0.71367913", "text": "function displayMode() {\r\n if (_mode == SmallColorPicker.Mode.NUMBER) {\r\n _dom.el.addClass(\"s-c-p-mode-num\");\r\n _dom.squareMark.hide();\r\n if (_dom.modeSwitch)\r\n _dom.modeSwitch.attr(\"title\", _opts.texts.switchModeToCol);\r\n displayNumericRgb();\r\n displayNumericHsv();\r\n displayNumericHex();\r\n $(\"#s-c-p-txt-\" + _id + \"-hex\", _dom.el).focus();\r\n } else {\r\n _dom.el.removeClass(\"s-c-p-mode-num\");\r\n _dom.squareMark.show();\r\n if (_dom.modeSwitch)\r\n _dom.modeSwitch.attr(\"title\", _opts.texts.switchModeToNum);\r\n displaySquareColor(_color.toHex());\r\n moveMarks();\r\n }\r\n }", "title": "" }, { "docid": "ac3be0d64647eaad4c883bdf5fd4cc65", "score": "0.7026859", "text": "function useCurrentMode(){\n if(currentMode === \"simple\"){\n simpleMode();\n }else if(currentMode === \"advanced\"){\n advancedMode();\n }\n}", "title": "" }, { "docid": "45062d30bab205916a618312735bf47f", "score": "0.6986726", "text": "function changeMode(newMode) {\n mode = newMode;\n}", "title": "" }, { "docid": "521c89d287ab8c5301b49292ae3d923e", "score": "0.69554186", "text": "function mode(i){\n viewmode=i;\n}", "title": "" }, { "docid": "abebc33e8bfbed7bf1bf6d393a4d10af", "score": "0.6913527", "text": "get mode() {}", "title": "" }, { "docid": "83179165fbfd01c32d149ed657a1864c", "score": "0.6881235", "text": "set mode(value) {}", "title": "" }, { "docid": "f74b6c0c9d53c799e7a8c5e8ce3cd1bc", "score": "0.68708116", "text": "function set_mode(new_mode)\n {\n\tset_mode_no_update(new_mode);\n\tneed_reload = true;\n\trepaint_ui_now();\n }", "title": "" }, { "docid": "f74b6c0c9d53c799e7a8c5e8ce3cd1bc", "score": "0.68708116", "text": "function set_mode(new_mode)\n {\n\tset_mode_no_update(new_mode);\n\tneed_reload = true;\n\trepaint_ui_now();\n }", "title": "" }, { "docid": "2075e56833d8a749de4002e77d038c69", "score": "0.68313706", "text": "function _mode(val)\n{\n\tstep_mode = val;\n\tstep.message('mode', Modes[step_mode]);\n}", "title": "" }, { "docid": "a1a6559bca3f6b800cb9b34372c0096b", "score": "0.68193907", "text": "function GetMode(){\n\treturn _mode;\n}//GetMode", "title": "" }, { "docid": "52cdde5e4ea9c5b88f349fabff71657a", "score": "0.6812548", "text": "function modeChange() {\n if (gameDetail.regButton == false)\n if (gameDetail.altMode == false) {\n modeHard();\n } else {\n modeStandard();\n }\n}", "title": "" }, { "docid": "60c53ba9754b9b67b00c1cd0a391b80f", "score": "0.6794595", "text": "function selectMode(){\n console.log(\"in selectmode\");\n // basicSetup();\n if(playMode === \"normalMode\"){\n //Hide mode buttons\n setupNormalMode();\n }\n else if(playMode === \"arcadeMode\"){\n //Hide mode buttons\n arcadeMode();\n }\n else if(playMode === \"timeAttackMode\"){\n //Hide mode buttons\n timeAttackMode();\n }\n}", "title": "" }, { "docid": "682eb8c22114cd94ab2f226195cedfe1", "score": "0.6775151", "text": "mode_change(mode:Mode) {\n this.setMode(mode);\n }", "title": "" }, { "docid": "855179ba40a1df6e2bb52d012ad02a68", "score": "0.6766018", "text": "mode() {\n const values = this.$checkAndCleanValues(this.values, \"mode\");\n return mode(values);\n }", "title": "" }, { "docid": "d351f0976a2a63a5865c79205490e639", "score": "0.67527163", "text": "function displayModePatch() {\n\tif (PLAYER.type!=PLAYERTYPE) {\n\t\tPLAYERTYPE=PLAYER.type;\n\t\tif ($_modesel.val()==\"chMode\" || $_modesel.val()==\"rMode\") {\n\t\t\t$videowidth.removeClass().addClass('span1');\n\t\t\t$(\"#ytapiplayer\").attr(\"width\", '1').attr(\"height\", '1');\n\t\t}\n\n\t}\n}", "title": "" }, { "docid": "1f6f1bf2d39d7ad6eec74d4d5d686622", "score": "0.6750157", "text": "setMode(mode) {\n this.mode = mode;\n this.update();\n }", "title": "" }, { "docid": "381cd9e4f0714a383ec1f6b9b260e895", "score": "0.67459124", "text": "function setViewMode(txt) { \n FARR.setStrValue(\"launch\", \"setviewmode \" + txt); \n}", "title": "" }, { "docid": "61a088787ca6662ac52112678841cd21", "score": "0.671938", "text": "function simpleMode(){\n $(\".advanced-mode\").hide();\n $(\".simple-mode\").show();\n currentMode = \"simple\";\n markCurrentConfigActiveInMenu();\n}", "title": "" }, { "docid": "0ace08ecd905e3aecc59a0161e41db07", "score": "0.6676569", "text": "function Report_switchModeEdit() {\n SetCode(_Report_switchModeEdit);\n}", "title": "" }, { "docid": "5c794626fbde1fb8587c59b97e97cb64", "score": "0.66424334", "text": "function change_mode(mode)\n{\n play_mode = mode;\n}", "title": "" }, { "docid": "caa83698f773dafb1915d9e24396538c", "score": "0.6641259", "text": "function PlayMode() {}", "title": "" }, { "docid": "f7b630f04db1180d29d605a2793e96a2", "score": "0.6611422", "text": "function toggleMode() {\n // test current mode\n if ($(\"#mode\").text() == \"auto\") {\n // call setMode macro with \"manual\" argument\n webiopi().callMacro(\"setMode\", \"manual\", setModeCallback);\n }\n else if ($(\"#mode\").text() == \"manual\") {\n // call setMode macro with \"auto\" argument\n webiopi().callMacro(\"setMode\", \"auto\", setModeCallback);\n }\n}", "title": "" }, { "docid": "e4d9b4c017a70f9997e5acbd1644f585", "score": "0.66095954", "text": "function changeMode(mode) {\n console.log(\"changeMode\");\n switch (mode) {\n case \"sensitive\":\n background.sensitiveMode();\n break;\n case \"strict\":\n background.strictMode();\n break;\n case \"userset\":\n background.userSetMode();\n break;\n default:\n background.flexibleMode();\n }\n}", "title": "" }, { "docid": "2ff100ac560a2cddfe6a3764557db193", "score": "0.65969884", "text": "function editmode(){}", "title": "" }, { "docid": "951db0296016b01b0171c1c2f457ae16", "score": "0.6590373", "text": "function handleClick(){\n changeMode() \n \n }", "title": "" }, { "docid": "188fbcb80d11f8e86ec1bd1a8ebcde22", "score": "0.6578899", "text": "function checkMode() {\n\tif(counter === 1) {\n\t\tchangeMode(); // is not working\n\t}\n}", "title": "" }, { "docid": "826ffdd061d47c58fb30b7e367f02b02", "score": "0.655367", "text": "switchMode(newMode) {\n this.mode = newMode;\n }", "title": "" }, { "docid": "58850f65ae94014224a2014dc53f399c", "score": "0.6535085", "text": "set mode(value){\n this.control.setMode(value);\n }", "title": "" }, { "docid": "387dbf8a15c0638626074f1a0c43868a", "score": "0.6505417", "text": "function ToggleMode()\n{\n var Mode = get_uiMode();\n if (Mode==\"none\") set_uiMode(\"mini\");\n if (Mode==\"mini\") set_uiMode(\"full\");\n if (Mode==\"full\") set_uiMode(\"none\"); \n}", "title": "" }, { "docid": "a8738de17321aa030920a0b02ee13217", "score": "0.65015733", "text": "function changeMode(event){\n if(typeof editor !== \"undefined\" && editor !== null){\n editor.setOption(\"mode\", event.currentTarget.value);\n }\n}", "title": "" }, { "docid": "0f7bd724b5757fe565e5b08c448a9e7c", "score": "0.6401198", "text": "function changeMode(){\n\tvar new_mode = $('#mode').val();\n\tedit_session.setMode(\"ace/mode/\"+new_mode);\n}", "title": "" }, { "docid": "3dc9b2ad8493fc26109307bd6d7a7e88", "score": "0.6398103", "text": "function advancedMode(){\n $(\".advanced-mode\").show();\n $(\".simple-mode\").hide();\n currentMode = \"advanced\";\n markCurrentConfigActiveInMenu();\n}", "title": "" }, { "docid": "c0555cf03fe46ba56850d7117d64f172", "score": "0.6388272", "text": "changeMode(mode, current = false) {\n\t\t\tthis.setState(prev => {\n\t\t\t\tprev.mode = mode;\n\t\t\t\tprev.current = current;\n\t\t\t\treturn prev;\n\t\t\t})\n\t\t\tthis.seeResult = this.seeResult.bind(this)\n\t\t}", "title": "" }, { "docid": "2e0671cf2225fb40b394c15971f73c01", "score": "0.6325738", "text": "function setMode(new_mode) {\n mode = parseInt(new_mode, 10);\n\n // Refresh immediately if we have stored records\n if($box.data('lastRoomRecs') !== undefined) {\n $.each($box.data('lastRoomRecs'), function(k, v) {\n $box.data('updateFunc')(v);\n });\n }\n\n var $button = $box.find('.buttons ul .btn').eq(mode);\n $box.find('.buttons ul .active').removeClass('active');\n $button.addClass('active');\n\n $legend.animate({\n 'margin-left': '-300px'\n }, 100);\n setTimeout(function() {\n $legend.html('<div class=\"icon\"></div><ul></ul>');\n if(mode === 0) { // Occupied\n $legend.find('.icon').html(\"<i class='fa fa-users'></i>\");\n $legend.find('ul')\n .append('<li><div class=\"color_block\" style=\"background-color: #0f0;\"></div> available</li>')\n .append('<li><div class=\"color_block\" style=\"background-color: #f00;\"></div> occupied</li>');\n } else if(mode == 1) {\n } else if(mode == 2) {\n } else {\n $legend.find('.icon').html(\"<i class='fa fa-wrench'></i>\");\n $legend.find('ul')\n .append('<li><div class=\"color_block\" style=\"background-color: #f00;\"></div> < 30</li>')\n .append('<li><div class=\"color_block\" style=\"background-color: #ff0;\"></div> 30 - 70</li>')\n .append('<li><div class=\"color_block\" style=\"background-color: #0f0;\"></div> > 70</li>');\n }\n\n $legend.animate({\n 'margin-left': '10px'\n }, 100);\n }, 200);\n }", "title": "" }, { "docid": "0b7a9592b7ac4374856987b19fbd2408", "score": "0.6298463", "text": "mode() {\r\n return this._mode;\r\n }", "title": "" }, { "docid": "8d44af344cc45b81a5b7561fe804ad9b", "score": "0.62762207", "text": "function cycleMode() {\n if (M32.isMode < (M32.modeName.length - 1)) {\n M32.isMode++;\n } else {\n M32.isMode = 0;\n }\n M32.isSubMode = 1; // Reset isSubMode\n // Change panel layout\n if (M32.modeName[M32.isMode] == MIXER) {\n M32.application.setPanelLayout(\"MIX\");\n }\n if (M32.modeName[M32.isMode] == ARRANGER) {\n M32.application.setPanelLayout(\"ARRANGE\");\n }\n host.showPopupNotification(\"Controller mode: \" + M32.modeName[M32.isMode][0]);\n}", "title": "" }, { "docid": "aa906df2cad0b4693ba2775820074165", "score": "0.6262416", "text": "function setMode(chosenMode) {\n mode = chosenMode;\n const modeDisplay = document.getElementById(\"mode-display\");\n modeDisplay.textContent = `Selected mode: ${modes[mode]}`;\n const colorPicker = document.getElementById(\"colour\");\n if (chosenMode == \"marker\") {\n colorPicker.hidden = false;\n } else {\n colorPicker.hidden = true;\n }\n}", "title": "" }, { "docid": "c0564b2bf377092870a48008f4647612", "score": "0.62444496", "text": "function ImageViewMode(theMode){\r\n\t$toolbar.data(\"imageViewMode\", theMode); //store new mode\r\n\tFullScreenBackground($bgimg); //scale bg image\r\n\t//re-style button\r\n\tif(theMode==\"full\"){\r\n\t\t$toolbar.html(\"<span class='lightgrey'>IMAGE VIEW MODE &rsaquo;</span> FULL\");\r\n\t} else if(theMode==\"fit\") {\r\n\t\t$toolbar.html(\"<span class='lightgrey'>IMAGE VIEW MODE &rsaquo;</span> FIT\");\r\n\t} else {\r\n\t\t$toolbar.html(\"<span class='lightgrey'>IMAGE VIEW MODE &rsaquo;</span> ORIGINAL\");\r\n\t}\r\n}", "title": "" }, { "docid": "4ee978cf80201021253595e5997c4dfd", "score": "0.624077", "text": "switchMode(newMode: Mode) {\n this.mode = newMode;\n }", "title": "" }, { "docid": "e3ac2fc3264060ac6d015b3c91334597", "score": "0.62104523", "text": "function changeMode(mode)\r\n{\r\n\t_EDITOR.getSession().setMode('ace/mode/' + mode.replace(' ', '_')); \r\n}", "title": "" }, { "docid": "276ecf1b5cb79ce1765714f19f2686e0", "score": "0.62073606", "text": "switchMode(newMode) {\n this.mode = newMode;\n this.gullet.switchMode(newMode);\n }", "title": "" }, { "docid": "e5b09dd2c27413cec0bd6800505be947", "score": "0.6199748", "text": "get mode() {\n\t\treturn this.__mode;\n\t}", "title": "" }, { "docid": "14f44157e93380106a4a0f015ea5b40a", "score": "0.61952734", "text": "function view_mode_listener() {\n if (this.selectedIndex === DRAW_FILL) {\n mobile.set_draw_filled()\n } else {\n mobile.set_draw_wireframe()\n }\n}", "title": "" }, { "docid": "0617d614cce89a5d926dc9c38212abd1", "score": "0.6188473", "text": "handleModeChange(mode) {\n //alert(mode);\n this.setState({'mode': parseInt( mode)});\n \n }", "title": "" }, { "docid": "d8ae23a7381e127e49bf6c30fee1a7a8", "score": "0.6184442", "text": "getMode() {\r\n return this.mode;\r\n }", "title": "" }, { "docid": "9e63f7aede408ea64c8e9fc243b797b4", "score": "0.6149946", "text": "function switchMode(value){\n\tprint(\"1\")\n\n\tif(value == \"emotion\"){\n\t\tselected = \"emotion\" \n\t} else if(value == \"gender\"){\n\t\tselected = \"gender\"\n\t} else if (value == \"true\"){\n\t\tshowOverlays = true \n\t} else (\n\t\tshowOverlays = false \n\t)\n\n\n}", "title": "" }, { "docid": "475173623c7adbe87fef48725bd869c7", "score": "0.61465305", "text": "function setNewMode(nMode) {\r\n\t//do nothing\r\n}", "title": "" }, { "docid": "475173623c7adbe87fef48725bd869c7", "score": "0.61465305", "text": "function setNewMode(nMode) {\r\n\t//do nothing\r\n}", "title": "" }, { "docid": "475173623c7adbe87fef48725bd869c7", "score": "0.61465305", "text": "function setNewMode(nMode) {\r\n\t//do nothing\r\n}", "title": "" }, { "docid": "1b208189bd3c49a9604ea7b3a4c6ac56", "score": "0.613653", "text": "get mode() {\n return this._mode;\n }", "title": "" }, { "docid": "1be5e13a99abca7edd50c864f18df405", "score": "0.6133414", "text": "function updateMode(newMode) {\n mode = newMode; // sets global 'mode' variable\n\n // Toggle the correct mode button\n d3.select('div#modes')\n .selectAll('button')\n .attr('class', null);\n d3.select('div#modes')\n .selectAll('button#' + mode)\n .attr('class', 'hidden');\n\n // Toggle the correct sub controls\n d3.select('div#sub-controls')\n .selectAll('div')\n .attr('class', 'hidden');\n d3.select('div#sub-controls')\n .select('div#sub-controls-' + mode)\n .attr('class', null);\n\n // Enable/disable editing the command list\n if (mode === 'run') {\n command_list.option('disabled', true);\n d3.select('ul#commands').attr('class', null);\n resetAries();\n } else {\n command_list.option('disabled', false);\n d3.select('ul#commands')\n .attr('class', 'editable')\n .selectAll(\"li\")\n .attr('class','');\n }\n }", "title": "" }, { "docid": "ad88b41f3d22003a8c3b64827a519344", "score": "0.6113348", "text": "function VoiceMode() {\n\n}", "title": "" }, { "docid": "556d47ea1f0b1b9fb50d74265b372a9b", "score": "0.61027557", "text": "function getMode()\n{\n mode = \"\";\n if ( !isset(_POST.mode) )\n {\n mode = \"display\";\n }\n else\n {\n mode = _POST.mode;\n }\n return mode;\n}", "title": "" }, { "docid": "42d3d678e44a164b5cd7afbf612e7f98", "score": "0.61026883", "text": "function switchMode(mode) {\n switch (mode) {\n case EnumMode.InputMode:\n $inputSection.show();\n $waitingSection.hide();\n $resultsSection.hide();\n break;\n case EnumMode.WaitingMode:\n $inputSection.hide();\n $waitingSection.show();\n $resultsSection.hide();\n break;\n case EnumMode.ResultsMode:\n $inputSection.hide();\n $waitingSection.hide();\n $resultsSection.show();\n break;\n }\n }", "title": "" }, { "docid": "39d5e494605108e4f7d5fe1ae047e924", "score": "0.61003643", "text": "function change_key_mode(val)\n{\n\tdebug('key_mode', val, '\\n');\n\tkey_pressed = -1;\n\tkey_mode = val;\n\tswitch(key_mode)\n\t{\n\t\tdefault:\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t//stepmodegui.message('int', 5);\n\t\t\tbreak;\n\t}\n\tkeymodegui.message('set', key_mode);\n\trefresh_c_keys();\n\trefresh_extras();\n\tupdate_bank();\n}", "title": "" }, { "docid": "ad122a2e5345193db05625c79473e2fa", "score": "0.6096132", "text": "function resetMode(mode) {\r\n if ($('#' + mode).attr('active') == 'true') {\r\n $('#' + mode).show();\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "0ed6f3fdf3c64c626847d7c1348784d0", "score": "0.60951066", "text": "function SimpleMode(arr) {\n\n // code goes here\n return mode;\n}", "title": "" }, { "docid": "b2cd9c1bcf5c94889bdca80540c78d49", "score": "0.6074505", "text": "function playerMode(obj)\n\t\t{\n\t\t\tif(obj=='1')\n\t\t\t\t{\n\t\t\t\t//alert('play with computer');\n\t\t\t\t$(\"#mode\").val('1');\n\t\t\t\tdocument.getElementById(\"player1\").val = \"\";\n\t\t\t\t$(\"#player1\").val('');\n\t\t\t\t$(\"#player1\").val('You get X and 1st turn');\n\t\t\t\t//document.getElementById(\"player1\").val = \"\";\n\t\t\t\t$(\"#player2\").hide();\n\t\t\t\t}\n\t\t\tif(obj=='2')\n\t\t\t\t{\n\t\t\t\t//alert('2 player');\n\t\t\t\t$(\"#mode\").val('2');\n\t\t\t\t}\n\t\t\t\n\t\t\t$(\"#modeBlock\").hide();\n\t\t\t$(\"#gameBlock\").show();\n\t\t\t//alert($(\"#mode\").val()+'mode');\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c5df9ac6d1176b445918276b8f94029e", "score": "0.60730577", "text": "function setMode(mode){\n\t\tif(mode !== undefined){\n\t\t\tcm.setOption('mode', mode);\n\t\t\tCodeMirror.autoLoadMode(cm, mode);\n\t\t\t/*var script = 'lib/codemirror/mode/'+mode+'/'+mode+'.js';\n\n\t\t\t$.getScript(script, function(data, success) {\n\t\t\t\tif(success) cm.setOption('mode', mode);\n\t\t\t\telse cm.setOption('mode', 'clike');\n\t\t\t});*/\n\t\t}else{\n\t\t\tcm.setOption('mode', 'clike');\n\t\t}\n\t}", "title": "" }, { "docid": "bc9c0e30d3da1fc6142a10a342c2c914", "score": "0.6067168", "text": "function switchMode(mode) {\n timer.mode = mode;\n timer.remainingTime = {\n total: timer[mode] * 60,\n minutes: timer[mode],\n seconds: 0\n };\n\n document.querySelectorAll('button[data-mode]')\n .forEach(e => e.classList.remove('active'));\n\n document.querySelector(`[data-mode=\"${mode}\"`).classList.add('active');\n document.body.style.backgroundColor = `var(--${mode})`;\n\n document.querySelector('#progbar')\n .setAttribute('max',timer.remainingTime.total);\n \n\n updateClock();\n}", "title": "" }, { "docid": "1c70dd875de8fa7a6e5e81d7e6963e21", "score": "0.6055434", "text": "function toggleexammode() {\r\n switch (parseInt($('#isexammode').val())) {\r\n case 0: {\r\n $('.exammodetext').html('Exam Mode Disabled - The quiz can be taken freely and no event monitoring <br>nor interruptions will occur in the session. Best for use in exercises or casual quizzes.<br>');\r\n break;\r\n }\r\n case 1: {\r\n $('.exammodetext').html('Exam Mode Level 1 - The user shall be required to stay on the page during the <br>quiz session. If a loss of tab focus is detected (i.e. switching to other tabs/windows,<br> or toggling areas away from the browser), then the session will be terminated.');\r\n break;\r\n }\r\n case 2: {\r\n $('.exammodetext').html('Exam Mode Level 2 (NEW) - The user is required to switch to <u>fullscreen mode</u><br>before and during the quiz session. If a loss of tab focus is detected or if the <br>user exits fullscreen mode, then the session will be terminated.');\r\n break;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "83f5dd1e5be9c321a6d09a9b8a96a334", "score": "0.60487646", "text": "function onStart(){\n\tcurrentMode = simpleMode;\n\tcurrentMode.onStart();\n\tupdate();\n}", "title": "" }, { "docid": "f7ef64188b05201b41c1498e23837425", "score": "0.6042379", "text": "function setMode(newMode) {\r\n bTextMode = newMode;\r\n var cont;\r\n if (bTextMode) {\r\n// show html\r\n cleanHtml();\r\n cleanHtml();\r\n cont= Composition.document.body.innerHTML;\r\n Composition.document.body.innerText=cont;\r\n } else {\r\n cont=Composition.document.body.innerText;\r\n Composition.document.body.innerHTML=cont;\r\n }\r\n Composition.focus();\r\n}", "title": "" }, { "docid": "ea149c104dd7779cc04a337846217df1", "score": "0.6041613", "text": "onModeChange(listener) {\n this.modeChangeListeners.push(listener);\n }", "title": "" }, { "docid": "de6defee8c108cdbc20186ea4150abf6", "score": "0.6025839", "text": "_editorModeChanged(mode) {\n if (mode) {\n // if it's the advanced setting then toggle the advancedForm setting\n if (mode === \"advanced\") {\n this.advancedForm = true;\n } else {\n this.advancedForm = false;\n }\n }\n }", "title": "" }, { "docid": "855eda0e63db147a4db280fa1587c960", "score": "0.60184145", "text": "set refreshMode(value) {}", "title": "" }, { "docid": "5e74ac5f4bc49df91d56510cf3d3e4c3", "score": "0.60126436", "text": "function set_mode(new_mode) {\n var modes = [\"Std.\", \"Scientific\", \"Programable\"];\n for (var y = 0; y < modes.length; y++) {\n modes[y] = set_mode;\n }\n return modes;\n}", "title": "" }, { "docid": "d9327bf1dec0e59ec162b1b29534f4fe", "score": "0.6008343", "text": "getMode() {\r\n return this._mode;\r\n }", "title": "" }, { "docid": "18268528cf51c44e4bebd923dfde04e0", "score": "0.59956264", "text": "function mousePressed() {\n //mode++;\n}", "title": "" }, { "docid": "ecea175b26503d503bb6ab89beac3e10", "score": "0.59927803", "text": "toggleViewmode() {\n\t\t// Find the opposite value\n\t\tconst newMode = this.state.viewMode === OutputView.TEXT\n\t\t ? OutputView.HEX\n\t\t : OutputView.TEXT\n\t\t;\n\n\t\t// Update the state\n\t\tthis.setState({viewMode: newMode});\n\t}", "title": "" }, { "docid": "1dd7956f305b86ff7f4eb7e99a4e61af", "score": "0.5985341", "text": "function getModeTitle(){\n if(mode.current == mode.edit) return \"Editing\";\n else if(mode.current == mode.run) return `Round ${round}`;\n else return \"Unknown Mode\";\n}", "title": "" }, { "docid": "7fc832e8f9eef337a6f1d8a5e7e4c1e2", "score": "0.59847724", "text": "function setDisplayMode( newDisplayMode ) {\n displayMode = newDisplayMode;\n document.getElementById( \"displayMode\" )\n .innerHTML = \"Showing: \"+displayMode;\n setNeighborhoodColors();\n}", "title": "" }, { "docid": "81dba715fb14fa12fc14f964a46c8dee", "score": "0.5983008", "text": "function change_key_mode(val)\n{\n\tif(DEBUG){post('key_mode', val, '\\n');}\n\tkey_pressed = -1;\n\tkey_mode = val;\n\tswitch(key_mode)\n\t{\n\t\tdefault:\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tstepmodegui.message('int', 5);\n\t\t\tbreak;\n\t}\n\tkeymodegui.message('set', key_mode);\n\trefresh_keys();\n\tupdate_bank();\n}", "title": "" }, { "docid": "155c6f840fb26448db1e5ea891c8819d", "score": "0.59759045", "text": "function initDisplayMode() {\n console.log(\"initDisplayMode()\");\n document.getElementById( \"displayMode\" ).innerHTML = \"Showing: \"+displayMode;\n setNeighborhoodColors();\n}", "title": "" }, { "docid": "1d7e792f8a4664d9c58cfeff6a05ee92", "score": "0.59757996", "text": "function modechange(that){\n\t\tif(that.value=='advanced'){\n\t\t\tdocument.getElementById(\"attribute-\"+that.name.substring(5)).style.display = \"block\";\n\t\t\tdocument.getElementById(\"quickchange-\"+that.name.substring(5)).style.display = \"none\";\n\t\t}else{\n\t\t\tif(document.getElementById(\"layer-\"+that.name.substring(5)).value != 'TRUCK_RESTR_FCN'){\n\t\t\t\tdocument.getElementById(\"quickchange-\"+that.name.substring(5)).style.display = \"block\";\n\t\t\t}\n\t\t\tdocument.getElementById(\"attribute-\"+that.name.substring(5)).style.display = \"none\";\n\t\t}\n\t}", "title": "" }, { "docid": "f6d79056556c2bcdb8fe73ed0d312873", "score": "0.5973957", "text": "function gui_modeChanged(mode) {\n\tvar nodes, i;\n\tif (mode == 1) {\n\t\t//preview mode\n\t\tif (document.getElementById('html_container')) {\n\t\t\tdocument.getElementById('html_container').disabled = true;\n\t\t}\n\t\t//disable form elements (inputs and selects)\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"input\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = true;\n\t\t}\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"select\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = true;\n\t\t}\n\t\tdocument.getElementById('i_preview').src = imgroot + 'edit.gif';\n\t\tdocument.getElementById('dd_zoom').disabled = true;\n\t\tdocument.getElementById('dd_output').disabled = true;\n\t}\n\telse {\n\t\t//normal mode\n\t\tif (document.getElementById('html_container')) {\n\t\t\tdocument.getElementById('html_container').disabled = false;\n\t\t}\n\t\t//enable form elements (inputs and selects)\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"input\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = false;\n\t\t}\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"select\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = false;\n\t\t}\n\t\tdocument.getElementById('i_preview').src = imgroot + 'zoom.gif';\n\t\tdocument.getElementById('dd_zoom').disabled = false;\n\t\tdocument.getElementById('dd_output').disabled = false;\n\t}\n}", "title": "" }, { "docid": "f6d79056556c2bcdb8fe73ed0d312873", "score": "0.5973957", "text": "function gui_modeChanged(mode) {\n\tvar nodes, i;\n\tif (mode == 1) {\n\t\t//preview mode\n\t\tif (document.getElementById('html_container')) {\n\t\t\tdocument.getElementById('html_container').disabled = true;\n\t\t}\n\t\t//disable form elements (inputs and selects)\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"input\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = true;\n\t\t}\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"select\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = true;\n\t\t}\n\t\tdocument.getElementById('i_preview').src = imgroot + 'edit.gif';\n\t\tdocument.getElementById('dd_zoom').disabled = true;\n\t\tdocument.getElementById('dd_output').disabled = true;\n\t}\n\telse {\n\t\t//normal mode\n\t\tif (document.getElementById('html_container')) {\n\t\t\tdocument.getElementById('html_container').disabled = false;\n\t\t}\n\t\t//enable form elements (inputs and selects)\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"input\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = false;\n\t\t}\n\t\tnodes = document.getElementById('form_container').getElementsByTagName(\"select\");\n\t\tfor (i=0; i<nodes.length; i++) {\n\t\t\tnodes[i].disabled = false;\n\t\t}\n\t\tdocument.getElementById('i_preview').src = imgroot + 'zoom.gif';\n\t\tdocument.getElementById('dd_zoom').disabled = false;\n\t\tdocument.getElementById('dd_output').disabled = false;\n\t}\n}", "title": "" }, { "docid": "8af41057a9336def80880ac1be560a29", "score": "0.59683204", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "348b054447f2d9d381e3c8e7d8e99a20", "score": "0.59668684", "text": "function setDisplayMode(key, el) {\n var $dSwitch = $(el);\n var $dMode = $('body.displaymode');\n var setMode = function (mode, onlyLink) {\n jQuery('#display-switch a.' + mode).addClass('active').siblings().removeClass('active');\n if (!onlyLink) {\n $dMode.removeClass('grid linear').addClass(mode);\n jQuery.cookie('displaymode', mode, {expires: 30});\n }\n };\n // Set mode after loaded page\n var hash = document.location.hash;\n if (hash) {\n hash = hash.replace('#', '');\n if (!$dMode.hasClass(hash)) {\n switch (hash) {\n case 'grid':\n setMode('grid');\n break;\n case 'linear':\n setMode('linear');\n break;\n }\n }\n else {\n hash == 'linear' ? setMode('linear', true) : '';\n }\n }\n else {\n $dMode.hasClass('linear') ? setMode('linear', true) : '';\n }\n // Event click on link MODE\n $('#display-switch a').click(function () {\n setMode(jQuery(this).attr('href').replace('#', ''));\n });\n }", "title": "" }, { "docid": "2d34a6df184e13fc88e2ceb6625976f0", "score": "0.5964413", "text": "function setMode(mode) {\n if((typeof mode !== 'string') || (mode == ''))\n return false;\n \n switch (mode) {\n case 'bar-only':\n body.removeClass(\"active-tasks\");\n pageTitle.text(titleText);\n favicon.attr(\"href\",\"img/favicon.png\");\n break;\n case 'active-tasks':\n body.addClass(\"active-tasks\");\n favicon.attr(\"href\",\"img/favicon_inactive.png\");\n break;\n }\n return true;\n }", "title": "" }, { "docid": "70b414771a45a1df8760ea0c120dc346", "score": "0.5948628", "text": "activate(newMode, newSubmode = null) {\n // Avoid odd state(=visual-mode but selection is empty)\n if (newMode === \"visual\" && this.editor.isEmpty()) return\n this.vimState.ignoreSelectionChange = true\n\n this.emitter.emit(\"will-activate-mode\", {mode: newMode, submode: newSubmode})\n\n if (newMode === \"visual\" && newSubmode && newSubmode === this.submode) {\n newMode = \"normal\"\n newSubmode = null\n }\n\n if (newMode !== this.mode) this.deactivate()\n\n if (newMode === \"normal\") this.deactivator = this.activateNormalMode()\n else if (newMode === \"operator-pending\") this.deactivator = this.activateOperatorPendingMode()\n else if (newMode === \"insert\") this.deactivator = this.activateInsertMode(newSubmode)\n else if (newMode === \"visual\") this.deactivator = this.activateVisualMode(newSubmode)\n\n this.editorElement.classList.remove(`${this.mode}-mode`)\n this.editorElement.classList.remove(this.submode)\n\n this.mode = newMode\n this.submode = newSubmode\n\n if (this.mode === \"visual\") {\n this.updateNarrowedState()\n this.vimState.updatePreviousSelection()\n } else {\n // Prevent swrap from loaded on initial mode-setup on startup.\n if (this.vimState.__swrap) this.vimState.swrap.clearProperties(this.editor)\n }\n\n this.editorElement.classList.add(`${this.mode}-mode`)\n if (this.submode) this.editorElement.classList.add(this.submode)\n\n this.vimState.statusBarManager.update(this.mode, this.submode)\n if (this.mode === \"visual\" || this.vimState.__cursorStyleManager) {\n this.vimState.cursorStyleManager.refresh()\n }\n\n this.emitter.emit(\"did-activate-mode\", {mode: this.mode, submode: this.submode})\n this.vimState.ignoreSelectionChange = false\n }", "title": "" }, { "docid": "91b4b407fa13c9de193e467feff48790", "score": "0.59469754", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "91b4b407fa13c9de193e467feff48790", "score": "0.59469754", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "17c60c35a128e367ad926ea69e370b81", "score": "0.5946159", "text": "function editmode(that){\n\t\tif(that.value =='samples'){\n\t\t\tdocument.getElementById('shape-chooser').style.display = \"block\";\n\t\t\tdocument.getElementById('shape-drawing').style.display = \"none\";\n\t\t\tdocument.getElementById('shape-text-area').style.display = \"none\";\n\t\t}\n\t\telse if(that.value =='drawing'){\n\t\t\tdocument.getElementById('shape-chooser').style.display = \"none\";\n\t\t\tdocument.getElementById('shape-drawing').style.display = \"block\";\n\t\t\tdocument.getElementById('shape-text-area').style.display = \"none\";\n\t\t\tvar other = document.getElementsByName('rightclick-mode');\n\t\t\tother[1].checked = true;\n\t\t\trightclickchooser();\n\t\t}\n\t\telse if(that.value =='text'){\n\t\t\tdocument.getElementById('shape-chooser').style.display = \"none\";\n\t\t\tdocument.getElementById('shape-drawing').style.display = \"none\";\n\t\t\tdocument.getElementById('shape-text-area').style.display = \"block\";\n\t\t}\n\t}", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" }, { "docid": "5dbeb87bae5b3764558327ea84619b48", "score": "0.593689", "text": "function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }", "title": "" } ]
6d14bd05e00667cc9ac81379cab56c37
return from constructor constructor returns this by default when call with new, if a return (that returns a object) statement is given the default return is overwritten
[ { "docid": "1cdca93c4485a829bb2d5c7b85993c02", "score": "0.0", "text": "function selectMovie(){\n this.movieName = \"Tourist\"\n return {movieName : \"Gladialor\"}\n}", "title": "" } ]
[ { "docid": "babbd647b5bf236458e14c53f8b7bbda", "score": "0.691946", "text": "constructor () { return this; }", "title": "" }, { "docid": "0b79ad17a3bedabc6356670c366896e9", "score": "0.66122746", "text": "function BigUser() { \n this.name = \"John\";\n return { name: \"Soul\"};// Return object \n // return \"asd\";// not work, it wills automatically return this\n}", "title": "" }, { "docid": "32076202d1817e44069fa2fd23a8be44", "score": "0.65104556", "text": "function returnThis() { return this; }", "title": "" }, { "docid": "32076202d1817e44069fa2fd23a8be44", "score": "0.65104556", "text": "function returnThis() { return this; }", "title": "" }, { "docid": "64372a358e5e7853a8e217d7a2618e7c", "score": "0.65030396", "text": "createDefault() { return null; }", "title": "" }, { "docid": "604267d0c4b88586f17c94e1f6088945", "score": "0.6445468", "text": "new() { }", "title": "" }, { "docid": "e182bfc33968c3e66c67db13f14abc8e", "score": "0.64276725", "text": "function ctor() {\n return function () {};\n} // An internal function for creating a new object that inherits from another.", "title": "" }, { "docid": "920e1d4d99e9f1f6493e5d1d1e7ac929", "score": "0.63104504", "text": "constructor() {\n super();\n \n \n return this;\n }", "title": "" }, { "docid": "920e1d4d99e9f1f6493e5d1d1e7ac929", "score": "0.63104504", "text": "constructor() {\n super();\n \n \n return this;\n }", "title": "" }, { "docid": "216ba8646f783b4b825190a13eabb6f9", "score": "0.6299088", "text": "function objectFactory() {\n var obj = new Object()\n var Constructor = Array.prototype.shift.call(arguments);\n obj.__proto__ = Constructor.prototype;\n var ret = Constructor.apply(obj, arguments);\n\n return obj\n // return typeof ret === 'object' ? ret : obj;\n}", "title": "" }, { "docid": "33c6d6defdd8346df3cced68f2227761", "score": "0.6190535", "text": "function myNew() {\n let obj = {};\n //去到外面的构造器\n // arguments\n console.log(arguments);\n let Constructor = Array.prototype.shift.call(arguments);\n console.log(Constructor);\n obj.__proto__ = Constructor.prototype;\n let result = Constructor.apply(obj, arguments)\n return typeof result === 'object' ? result : obj;\n}", "title": "" }, { "docid": "254dccd7c058e6d30f7c95013df9dd36", "score": "0.61676383", "text": "function ctor() {\n return function(){};\n }", "title": "" }, { "docid": "254dccd7c058e6d30f7c95013df9dd36", "score": "0.61676383", "text": "function ctor() {\n return function(){};\n }", "title": "" }, { "docid": "254dccd7c058e6d30f7c95013df9dd36", "score": "0.61676383", "text": "function ctor() {\n return function(){};\n }", "title": "" }, { "docid": "254dccd7c058e6d30f7c95013df9dd36", "score": "0.61676383", "text": "function ctor() {\n return function(){};\n }", "title": "" }, { "docid": "254dccd7c058e6d30f7c95013df9dd36", "score": "0.61676383", "text": "function ctor() {\n return function(){};\n }", "title": "" }, { "docid": "34200bd9a8f63c952c5816d9b77ad65b", "score": "0.6149986", "text": "function ReturnConstructor(arg){\n\tconsole.log(this);\n // Private variable.\n var privateVar = \"can't touch this, return ctor.\";\n\n // This is what is being exposed to the outside as the return object\n return {\n print: function() {\n console.log(\"ReturnConstructor: arg was: %s\", arg);\n\t\t\tconsole.log(this);\n }\n };\n}", "title": "" }, { "docid": "46efe8c216a9dd460c2ab0cc13fffcf5", "score": "0.6057306", "text": "function Class() {\n\t\t// All construction is actually done in the init method\n\t\tif (! initializing && this.init) {\n\t\t\tvar result = this.init.apply(this, arguments);\n\t\t\t// Allow returning an alternate value\n\t\t\tif (result) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d0a0f0ff5879f0a1fea2f4c4970feaab", "score": "0.60370564", "text": "function _new(/* constructor, param, ... */) {\n var args = [].slice.call(arguments); //将参数转换为数组\n var constructor = args.shift(); //..\n var context =Object.create(constructor.prototype);//创建一个空对象,继承构造函数的prototype属性\n var result = constructor.apply(context, args);\n return (typeof result === 'object' && result != null) ? result : context;\n}", "title": "" }, { "docid": "6ab474a6b8b418c4553708947c43d1b0", "score": "0.6008366", "text": "function myNew(constructor, ...args) {\n\tconst obj = {};\n\tObject.setPrototypeOf(obj, constructor.prototype);\n\treturn obj.constructor(...args) || obj;\n\t//return constructor.apply(obj, args) || obj;\n}", "title": "" }, { "docid": "d007c067bde93d2467d08626a2e443b1", "score": "0.5996722", "text": "constructor () {\n super()\n\n return this\n }", "title": "" }, { "docid": "aa34ebc69787c7b34e3242a0d5ca68d5", "score": "0.5991488", "text": "function Constructor() {\n\t\t\t\t// All construction is actually done in the init method.\n\t\t\t\tif ( ! initializing ) {\n\t\t\t\t\treturn this.constructor !== Constructor && arguments.length ?\n\t\t\t\t\t\t// We are being called without `new` or we are extending.\n\t\t\t\t\t\targuments.callee.extend.apply(arguments.callee, arguments) :\n\t\t\t\t\t\t// We are being called with `new`.\n\t\t\t\t\t\tthis.constructor.newInstance.apply(this.constructor, arguments);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2b7d73cafd9e9b1a8553525a27b00b00", "score": "0.5956079", "text": "function newObject() {\n let obj = {};\n let constructorFn = Array.prototype.shift(arguments)\n obj.__proto__ = constructorFn.prototype\n\n const ret = constructorFn.apply(obj, arguments);\n\n return typeof ret === \"object\" ? ret : obj;\n}", "title": "" }, { "docid": "d0e42209c88f2b612d338ff4d9aa514a", "score": "0.59413004", "text": "function ctor() {\n return function(){};\n}", "title": "" }, { "docid": "d0e42209c88f2b612d338ff4d9aa514a", "score": "0.59413004", "text": "function ctor() {\n return function(){};\n}", "title": "" }, { "docid": "04ffb109255e086f11a049b67565018e", "score": "0.5927808", "text": "function Class() {\n\t\t\t// All construction is actually done in the init method\n\t\t\tif(initializing) return;\n\t\t\t\n\t\t\tif(this.constructor !== Class && arguments.length){ //we are being called w/o new\n\t\t\t\treturn this.extend.apply(this, arguments)\n\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t//we are being called w/ new\n\t\t\t\treturn this.Class.newInstance.apply(this.Class,arguments)\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9bbb98b962357ec51718e4cec129ab49", "score": "0.5904008", "text": "function SmallUser() {\n this.name = \"John\";\n return; //finish execution and return this\n}", "title": "" }, { "docid": "d23f277db441fce9dfc20d8201647251", "score": "0.58706874", "text": "initNew() {\n // to nothing at this level\n }", "title": "" }, { "docid": "e23f816bd3482b21099a083573c01131", "score": "0.5855951", "text": "function UserConstructor() {\n console.log(`I'm userConstructor ` + this);\n\n // in case of forgetting `new`\n if (!(this instanceof UserConstructor)) {\n return new UserConstructor();\n }\n}", "title": "" }, { "docid": "e1a66e488eb1965dea1605358832ae4c", "score": "0.5854323", "text": "function AnimalWithNew(name, energy){\n // when you create an object with the \"new\" keyword, it adds these lines for you out of the box.\n // let this = Object.create(AnimalWithNew.prototype); <- this line\n this.name = name; // now, use 'this'\n this.energy = energy; // now, use 'this'\n \n // return this; <- and, this line.\n}", "title": "" }, { "docid": "731c703df26e7172b9f0f31cd4070e92", "score": "0.583739", "text": "function func() {\n return this;\n }", "title": "" }, { "docid": "731c703df26e7172b9f0f31cd4070e92", "score": "0.583739", "text": "function func() {\n return this;\n }", "title": "" }, { "docid": "8097786d2856a867b97f53032a8fd4f2", "score": "0.57621515", "text": "function MyConstructor1() {\n print('MyConstructor1 called');\n return { foo: 'bar-1' };\n }", "title": "" }, { "docid": "d28088fb4acd2469693552e08b1c0a83", "score": "0.57378674", "text": "init() {\n let args = Array.prototype.slice.call(arguments, 0);\n return (function() {\n throw new Error(\"you need to override this\");\n }).call(this);\n }", "title": "" }, { "docid": "3aced599627be78cc8cd3a8e8c0b7fa0", "score": "0.5725677", "text": "function criarObjeto() {\n let objeto = {}\n return objeto;\n}", "title": "" }, { "docid": "1ef4858b62593b1d1d847bf68c5d9e10", "score": "0.5722793", "text": "function dummy() {\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "1ef4858b62593b1d1d847bf68c5d9e10", "score": "0.5722793", "text": "function dummy() {\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "1ef4858b62593b1d1d847bf68c5d9e10", "score": "0.5722793", "text": "function dummy() {\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "1ef4858b62593b1d1d847bf68c5d9e10", "score": "0.5722793", "text": "function dummy() {\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "ad7ca378a0b06d2a46ce207afc12d509", "score": "0.57195246", "text": "function Constructor(){\n\t\t\tvar instance;\n\t\t\tif(this instanceof Constructor){\n\t\t\t\t// called with new operator, can proceed as is\n\t\t\t\tinstance = this;\n\t\t\t}else{\n\t\t\t\t// we allow for direct calls without a new operator, in this case we need to\n\t\t\t\t// create the instance ourself.\n\t\t\t\tCreate.prototype = prototype;\n\t\t\t\tinstance = new Create();\n\t\t\t}\n\t\t\t// call all the constructors with the given arguments\n\t\t\tfor(var i = 0; i < constructorsLength; i++){\n\t\t\t\tvar constructor = constructors[i];\n\t\t\t\tvar result = constructor.apply(instance, arguments);\n\t\t\t\tif(typeof result == \"object\"){\n\t\t\t\t\tif(result instanceof Constructor){\n\t\t\t\t\t\tinstance = result;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(var j in result){\n\t\t\t\t\t\t\tif(result.hasOwnProperty(j)){\n\t\t\t\t\t\t\t\tinstance[j] = result[j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn instance;\n\t\t}", "title": "" }, { "docid": "2356c55033d21f05ab30d9f606dc9d02", "score": "0.57024556", "text": "static Default () {\n return new Config();\n }", "title": "" }, { "docid": "70ad4fb2141ab2a34e67ef2e3e58ab2c", "score": "0.5694878", "text": "static makeObject() {\n if (!this.x) {\n this.x = new SystemInformationDataAcess();\n }\n return this.x;\n }", "title": "" }, { "docid": "e8f7d4f479d56b4493f6c43f83546c3e", "score": "0.569206", "text": "function returnSelf () {\n return returnSelf()\n}", "title": "" }, { "docid": "6435bcf0629e3f187914580381a7454f", "score": "0.56777287", "text": "function pnew () {\n var pnewObj = null ; \n if (this.poolSize !== 0 ) { // the pool contains objects : grab one\n this.poolSize-- ;\n pnewObj = this.pool[this.poolSize];\n this.pool[this.poolSize] = null ; \n } else {\n pnewObj = new this() ; // the pool is empty : create new object\n }\n // initialize object with init class if available, with constructor otherwise\n if (pnewObj.init) { pnewObj.init.apply(pnewObj, arguments); }\n else this.apply(pnewObj, arguments); \n return pnewObj;\n}", "title": "" }, { "docid": "9941582c2aa812741a6a4ce62cc183d8", "score": "0.5667692", "text": "function x() { return x.__super__.constructor.apply(this, arguments) }", "title": "" }, { "docid": "aa9cba66c53aa24aa0d4d22ed9c587c4", "score": "0.5666025", "text": "function dummy() {\n\t\t\t\treturn this;\n\t\t\t}", "title": "" }, { "docid": "c0b5aca4df4398a9ed6b7fb017508e5b", "score": "0.56388515", "text": "function Base() {\n if (!(this instanceof Base)) {\n return new Base();\n }\n}", "title": "" }, { "docid": "129499a1cd34580726cf612bcd01eac4", "score": "0.56363094", "text": "function returnObject() {\n return {\n return: 1000\n }\n}", "title": "" }, { "docid": "560e1a516a5312c86d74294bed0c729c", "score": "0.56357396", "text": "function myNew(constructor, ...args) {\n const obj = {};\n Object.setPrototypeOf(obj, constructor.prototype);\n return constructor.apply(obj, args) || obj\n}", "title": "" }, { "docid": "23f893daa334f3e8c0e24a43324cb4e7", "score": "0.5629578", "text": "function Doa() {\n if ( !(this instanceof Doa) ) return new Doa();\n}", "title": "" }, { "docid": "2ebb6ea87f987a4332508e0ad4d8dbfd", "score": "0.56293523", "text": "createNewInstance(){\n\t\treturn new ParserToken(this.context(), this.parser);\n\t}", "title": "" }, { "docid": "0257c919b688b45afdb5e00b8566bc95", "score": "0.5629141", "text": "function newObject(options) {\n\tmix(options, this);\n}", "title": "" }, { "docid": "69845c645e3ef899c7e9ad89a902a064", "score": "0.5626534", "text": "function myNew(constructor, ...args) {\n //START\n this.constructor = constructor(...args)\n this._proto_=constructor.prototype\n return this\n //END\n}", "title": "" }, { "docid": "b50e013a66f91875070247035f5e0336", "score": "0.56222916", "text": "function raw_object_maker(){\n var obj_create = Object.create; // Not in IE8\n return obj_create\n ? function(){ return obj_create.call( null, null ); }\n : function(){ return {}; };\n}", "title": "" }, { "docid": "152ba42a4c2a6c3bb36b2168faf99ade", "score": "0.56098735", "text": "getSelf () {\n return this\n }", "title": "" }, { "docid": "33d6fa5d5961109a4b677aaed3e7422a", "score": "0.56068397", "text": "initNew() {\n super.initNew();\n }", "title": "" }, { "docid": "3a0df0814032bf6fe65ab66f00f794d1", "score": "0.55924743", "text": "function tempCtor() {}", "title": "" }, { "docid": "91779e47354c9bc88a034c87a28eb2e8", "score": "0.55837953", "text": "function makeCtor () {\n function constructor () {\n // Opera has some problems returning from a constructor when Dragonfly isn't running. The || null seems to\n // be sufficient to stop it misbehaving. Known to be required against 10.53, 11.51 and 11.61.\n return this.constructor.apply(this, arguments) || null;\n }\n return constructor;\n }", "title": "" }, { "docid": "6f9ed00acfe6cdf4d7648d5cb064b30e", "score": "0.5575827", "text": "function Class() {\n\t\t\tif (!initializing && this.init) {\n\t\t\t\tthis.init.apply(this, arguments);\n\t\t\t}\n\t\t\t//return this;\n\t\t}", "title": "" }, { "docid": "6f9ed00acfe6cdf4d7648d5cb064b30e", "score": "0.5575827", "text": "function Class() {\n\t\t\tif (!initializing && this.init) {\n\t\t\t\tthis.init.apply(this, arguments);\n\t\t\t}\n\t\t\t//return this;\n\t\t}", "title": "" }, { "docid": "2e92db03a3aded85fbd78863dd76e76a", "score": "0.5571434", "text": "function AnimalWithNew(name, energy) {\n // Implicitly (\"under the hood\") creates an object called this and delegates failed looksup to the function's prototype\n // let this = Object.create(AnimalWithNew.prototype)\n this.name = name;\n this.energy = energy;\n // Implicitly returns the object we made\n // return this;\n}", "title": "" }, { "docid": "a15c0d7001993ed8049f074fb2fc19b0", "score": "0.55606055", "text": "function myNew(fn, ...args) {\n /* const instance = {}\n if (fn.prototype) {\n instance.__proto__ = fn.prototype\n } */\n const instance = Object.create(fn.prototype);\n const res = fn.apply(instance, args)\n return res instanceof Object ? res : instance;\n}", "title": "" }, { "docid": "29309d242b1774a419f3a30357cf2b00", "score": "0.5553365", "text": "function Ctor(){}", "title": "" }, { "docid": "511b2da03029ef1c4aefb0bb2d25dc1e", "score": "0.5545084", "text": "constructor () {\n super();\n if (!this.instance) {\n this.instance = this;\n } \n return this.instance;\n }", "title": "" }, { "docid": "d32b1100a0d6aaa06c62f016dc33efb3", "score": "0.55417514", "text": "newInstance() {\n var base, ref1;\n base = ((ref1 = this.variable) != null ? ref1.base : void 0) || this.variable;\n if (base instanceof Call && !base.isNew) {\n base.newInstance();\n } else {\n this.isNew = true;\n }\n this.needsUpdatedStartLocation = true;\n return this;\n }", "title": "" }, { "docid": "a24f1290761fe85d8b26289a8f1ed86b", "score": "0.55412143", "text": "function C2() {\n this.a = 42;\n return {\n a: 52\n }\n}", "title": "" }, { "docid": "6501de2f8854027c7a789270548a6917", "score": "0.5541193", "text": "construct() {}", "title": "" }, { "docid": "c2d1f68023f320bc25564ad948b581a9", "score": "0.5531297", "text": "function forceNew(ctor){\n\t\t// create object with correct prototype using a do-nothing\n\t\t// constructor\n\t\txtor.prototype = ctor.prototype;\n\t\tvar t = new xtor;\n\t\txtor.prototype = null;\t// clean up\n\t\treturn t;\n\t}", "title": "" }, { "docid": "a15a5d2fc191c094e651b98374b75e83", "score": "0.5528366", "text": "function Class() {\n\t\t // All construction is actually done in the init method\n\t\t if(initializing) return;\n\t\t \n\t\t if(this.constructor !== Class && arguments.length){ //we are being called w/o new\n\t\t\t return makeClass.apply(null, arguments)\n\t\t } else {\t\t\t\t\t\t\t\t\t\t\t\t//we are being called w/ new\n\t\t\t //this.id = (++id);\n\t\t\t if(this.setup) this.setup.apply(this, arguments);\n\t\t\t if(this.init) this.init.apply(this, arguments);\n\t\t }\n\t\t}", "title": "" }, { "docid": "9ff05c8d11728e8939f0e54cc137e6ff", "score": "0.55207026", "text": "static none() {\n return new $e;\n }", "title": "" }, { "docid": "10f798635c00307b41121dea22b39cd8", "score": "0.5511925", "text": "function Ctor() {\n\t}", "title": "" }, { "docid": "44436a70403be72373ae848633e9f7f3", "score": "0.5504609", "text": "function Student(name, age) {\n //let this = Object.create(null); //JS created a object by default And 'this' is for that object.\n this.name = name;\n this.age = age;\n console.log(`${this.name} is ${this.age} years old.`);\n //return this; //(by default)\n}", "title": "" }, { "docid": "1832537cd0bae908e52b4f8b248cf9b4", "score": "0.55025226", "text": "function MinionOrBanana(name='minion', hp=10){\n this.hp = hp;\n this.name = name;\n //return 'banana'; // => {hp: 10, name: 'minion}\n //return 1337; // => {hp: 10, name: 'minion'}\n return {name: 'banana'}; // => {name: 'banana'}\n}", "title": "" }, { "docid": "6e67452d27a2919652e1b15f15f0f9fc", "score": "0.5495883", "text": "function makeClass() {\n\n return function(args) {\n \n if (this instanceof arguments.callee) {\n \n if (typeof this.__init__ == \"function\") {\n \n this.__init__.apply(this, args && args.callee ? args : arguments);\n }\n } \n else {\n return new arguments.callee(arguments);\n }\n };\n }", "title": "" }, { "docid": "4afee93d45515f28f6e4ce6c2d544ee4", "score": "0.54928887", "text": "function Ctor() {}", "title": "" }, { "docid": "4afee93d45515f28f6e4ce6c2d544ee4", "score": "0.54928887", "text": "function Ctor() {}", "title": "" }, { "docid": "0ed778c92d09b7e19119b756eabcb307", "score": "0.54901254", "text": "function temporaryConstructor() {}", "title": "" }, { "docid": "6a7998d72a0c70dca625d9677e0c9744", "score": "0.5486507", "text": "function Someone(firstname, lastname){\n console.log(this);\n this.firstname = firstname; //this refers to the empty object\n this.lastname = lastname;\n console.log('this function is invoked');\n //return { hi : 'i got in the way'};\n}", "title": "" }, { "docid": "ba65868b18d5bf83acb713c2d60f915e", "score": "0.548645", "text": "function applyNew(args){\n\t\t// create an object with ctor's prototype but without\n\t\t// calling ctor on it.\n\t\tvar ctor = args.callee, t = forceNew(ctor);\n\t\t// execute the real constructor on the new object\n\t\tctor.apply(t, args);\n\t\treturn t;\n\t}", "title": "" }, { "docid": "8d4fcfbb7d7adbc4fe8e519cf8df9b37", "score": "0.5486034", "text": "function Database() {\n if (typeof Database.instance === \"object\") {\n return Database.instance;\n };\n\n this.connectionName = \"public\";\n this.connnectionString = \"someString\";\n\n\n Database.instance = this;\n\n return this;\n}", "title": "" }, { "docid": "d537fa2920992f9a2a9c13c06631cd0c", "score": "0.54821396", "text": "function pnew() {\r\n disposeBalance++;\r\n var pnewObj = null;\r\n \r\n if (this.poolSize !== 0) { // the pool contains objects : grab one\r\n this.poolSize--;\r\n pnewObj = this.pool[this.poolSize];\r\n this.pool[this.poolSize] = null;\r\n } else {\r\n console.log(this)\r\n pnewObj = new this(); // the pool is empty : create new object\r\n }\r\n\r\n this.apply(pnewObj, arguments); // initialize object\r\n return pnewObj;\r\n}", "title": "" }, { "docid": "bb2cf765f87e27cbb582d97349da8142", "score": "0.5479223", "text": "get defaultContext() {\n return result(this.constructor, 'defaultContext', {})\n }", "title": "" }, { "docid": "c2ad8e416571bb76f54c48521e4ed19b", "score": "0.547696", "text": "function ctor_test() {\n\n function foo(k) {\n return k\n }\n\n return new foo(12)\n}", "title": "" }, { "docid": "75c1bef2c3d9ad46e00fcf49d6a64453", "score": "0.54707086", "text": "function Mom(name){\n // You call me without new\n if(!new.target) { \n // I will add new to you\n return new Mom(name);\n // throw \"you should call me with new \";\n }\n this.name = name;\n // console.log(\"It work!!\");\n}", "title": "" }, { "docid": "a04393ffd50f8d3fd0564aa4fa8d8f44", "score": "0.5466969", "text": "function construct() {\n //this.person = person;\n\n return {\n name: \"asim\",\n last: \"mahar\",\n grade: \"last\"\n };\n}", "title": "" }, { "docid": "abdf6b5fead60896f190cb03bb035f86", "score": "0.546441", "text": "function makeClass(){\n\t\treturn function(args){\n\t\t\tif ( this instanceof arguments.callee ) {\n\t\t\t\tif ( typeof this.init == \"function\" )\n\t\t\t\tthis.init.apply( this, args.callee ? args : arguments );\n\t\t\t} else {\n\t\t\t\treturn new arguments.callee( arguments );\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "e0a1e72d27e697e22828cf0a80652063", "score": "0.5464095", "text": "function dogConstructor(name) {\n this.name = name;\n this.bark = function(){\n console.log(this.name + \" says 'Woof!'\");\n return this;\n }\n}", "title": "" }, { "docid": "01c22ec31d3b8dfea734a77d1ebeaaf5", "score": "0.54600155", "text": "createNewInstance(){\n\t\treturn new ParserCursorPos(this.context(), this.parser);\n\t}", "title": "" }, { "docid": "33b35650a6aff65fc460154cc9883553", "score": "0.54570293", "text": "clone(obj) {\n\t\treturn Object.assign(new this.constructor, this, obj);\n\t}", "title": "" }, { "docid": "f5f0601cd39aa051866ac53c4b68c821", "score": "0.5442968", "text": "_default() {\n return {};\n }", "title": "" }, { "docid": "1fe8a36e5035986fc4a19bad040274f7", "score": "0.5428964", "text": "function A() { return obj; }", "title": "" }, { "docid": "57eb0dae55206821eb04e46a89693c11", "score": "0.5427637", "text": "function TempCtor() {}", "title": "" }, { "docid": "c25186bb04b07fe11e6bbd10cc8b4cca", "score": "0.5407388", "text": "one() {\n this._assertNotFinalized();\n this._returnOne = true;\n return this;\n }", "title": "" }, { "docid": "47813def7cde2ffaece7ab2169df2224", "score": "0.53997546", "text": "awaken(){\n\t\t\n\t\treturn this;\n\t}", "title": "" }, { "docid": "6a7311125f3b93f1d6ffbd4b1717f510", "score": "0.53963506", "text": "Clone() {\n return this;\n }", "title": "" }, { "docid": "1437d9d678fc1717bc2ea21ad6e4a662", "score": "0.53940094", "text": "clone() {\n var constructor = Object.getPrototypeOf(this).constructor;\n return new constructor(this);\n }", "title": "" }, { "docid": "f4ae23aa5a064f04b9bc2f27fda51c5a", "score": "0.53913283", "text": "function second() {\n 'use strict';\n return this;\n}", "title": "" }, { "docid": "d3f7d8f2f80524ecadbf2382615c43d4", "score": "0.5366583", "text": "function Obj() { }", "title": "" }, { "docid": "3bffb0c96760fdb7b6e17f4ca24c1a8d", "score": "0.5358136", "text": "copy({ type = this.type, value = this.value } = {}) {\n const {\n id,\n lbp,\n rules,\n unknown,\n ignored,\n } = this;\n return new this.constructor(id, {\n lbp,\n rules,\n unknown,\n ignored,\n type,\n value,\n original: this,\n });\n }", "title": "" }, { "docid": "0df2c6f8549502063059da5e969f879c", "score": "0.53569657", "text": "function TestFun() { \n return this;\n }", "title": "" }, { "docid": "7aeae353e01a0746ac8d6a98037691f6", "score": "0.5353932", "text": "function createObject(){\n var result = {};\n return result; \n }", "title": "" } ]
f8c57e6fefc9552c9c2decd306eeb78c
Response Time Percentiles Over Time
[ { "docid": "30d7cb98ef1e7ea98e9c8d9da2eff8d3", "score": "0.0", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 19800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" } ]
[ { "docid": "41a8ecdb37c86f0a5c07bb1adffb6c39", "score": "0.58113134", "text": "function calculateStats(results) {\n\tvar report = {\n\t\tresults: results,\n\t\tlongestResponseTimeInterval: _.max(results, function(result){ return result.timeSinceLastResponse;}).timeSinceLastResponse,\n\t\tshortestResponseTimeInterval: _.min(results, function(result){ return result.timeSinceLastResponse;}).timeSinceLastResponse,\n\t\taverageResponseTimeInterval: _.reduce(results, function(prev, curr){ return prev + curr.timeSinceLastResponse; }, 0) / results.length,\n\t\tsuccessfulResponses: _.where(results, {success: true}),\n\t\tshortestResponseTime: _.min(results, function(result){ return result.timeSinceBeginning;}).timeSinceBeginning,\n\t\tlongestResponseTime: _.max(results, function(result){ return result.timeSinceBeginning;}).timeSinceBeginning,\n\t\taverageResponseTime: _.reduce(results, function(prev, curr){ return prev + curr.timeSinceBeginning; }, 0) / results.length,\n\t\ttimeElapsed: _.max(results, function(result){ return result.timeSinceBeginning;}).timeSinceBeginning\n\t};\n\n\treturn report;\n}", "title": "" }, { "docid": "518d06bff37c9c2203fb1a6e8c3a79d6", "score": "0.575518", "text": "function recording_timeline_getperc(time) {\n\tvar maxtime = recording_events[recording_events.length - 1].time;\n\n\tvar offset;\n\tif (maxtime != 0)\n\t\toffset = 90 * time / maxtime;\n\telse\n\t\toffset = 0;\n\n\treturn offset + \"%\";\n}", "title": "" }, { "docid": "7c486595ad906f4c9476f4af6f0e9b18", "score": "0.5627058", "text": "function get_progress(){\n\tvar event_times = get_all();\n\tvar now = new Date(\"10/10/2015\").getTime();\n\n\tvar progress = [];\n\tfor(var i =0;i<event_times.length;i++){\n\t\tvar end = event_times[i][1];\n\t\tvar start = event_times[i][0];\n\t\tvar title = event_times[i][2];\n\n\t\tvar time_until = Math.abs(now- start);\n\t\tvar total_time = Math.abs(end - start);\n\t\tprogress.push([time_until/total_time,title]);\n\t}\n\treturn progress;\n\n}", "title": "" }, { "docid": "9e5c80f0942943a81c709f392c2d2712", "score": "0.5592801", "text": "function getUserPercentile(user, usersScores){\n //First get users total\n var userTotalScore = 0;\n for (var userId in usersScores) {\n //console.log(\"Checking for userId:\"+user._id);\n if (usersScores.hasOwnProperty(userId)) {\n if(userId == user._id)\n {\n for(var key in usersScores[userId])\n {\n if(usersScores[userId].hasOwnProperty(key))\n {\n var score = usersScores[userId][key];\n if (score != -1)\n userTotalScore += score;\n }\n }\n //console.log(userId+\" : \"+userTotalScore);\n break;\n }\n }\n }\n\n var totalCount = 1;\n var above = 0;\n for (var userId in usersScores) {\n if (usersScores.hasOwnProperty(userId)) {\n if(userId != user._id)\n {\n totalCount += 1;\n var totalScore = 0;\n for(var key in usersScores[userId])\n {\n if(usersScores[userId].hasOwnProperty(key))\n {\n var score = usersScores[userId][key];\n if (score != -1)\n totalScore += score;\n }\n }\n if(totalScore > userTotalScore){\n above += 1;\n }\n }\n }\n }\n //console.log(\"above:\"+above+ \" total : \"+ totalCount);\n var abovePercent = above / totalCount * 100;\n return 100 - abovePercent;\n}", "title": "" }, { "docid": "8fb61cbb7e8a57d6d6f7ee79e2794a0c", "score": "0.5544731", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 36000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "8fb61cbb7e8a57d6d6f7ee79e2794a0c", "score": "0.5544731", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 36000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "23fa9c71daa61c340084751e0df31dae", "score": "0.55416846", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -36000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "ae0eba3563f48ab73414d2d48e19558c", "score": "0.55343693", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 3600000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e334c67014a4c4fc1a0b3c7be3bb1da7", "score": "0.55332816", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "7e44cfcec8fc6318dd23f911e79e3483", "score": "0.5530325", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "7e44cfcec8fc6318dd23f911e79e3483", "score": "0.5530325", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "7e44cfcec8fc6318dd23f911e79e3483", "score": "0.5530325", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "7e44cfcec8fc6318dd23f911e79e3483", "score": "0.5530325", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "7e44cfcec8fc6318dd23f911e79e3483", "score": "0.5530325", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -25200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "80cf23d3752158c3878b0ab2ebd094b6", "score": "0.5529275", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 20700000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "33d84ef3b156be05d6fbde815429a219", "score": "0.5527759", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e09d726a8ca4deb8ba5e9fc602702675", "score": "0.55267847", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -14400000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e09d726a8ca4deb8ba5e9fc602702675", "score": "0.55267847", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -14400000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e09d726a8ca4deb8ba5e9fc602702675", "score": "0.55267847", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -14400000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e584c61511b9488a6919024d362e50a1", "score": "0.55218434", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 7200000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "8740be06b460ebc3b69d4b1080eac633", "score": "0.551951", "text": "function analyzeRawResults(url, iterations, testStartTime, timeArr) {\n\tvar respMin = Number.MAX_VALUE, \n\t\trespMax = Number.MIN_VALUE, \n\t\trespAvg = 0, \n\t\ttestEndTime = timeArr[timeArr.length - 1], \n\t\ttotalTime = 0;\n\n\tfor (var i = timeArr.length - 1; i > 0; i--) {\n\t\ttimeArr[i] = timeArr[i] - timeArr[i - 1];\n\t}\n\ttimeArr[0] = timeArr[0] - testStartTime;\n\ttimeArr.forEach((time) => {\n\t\ttotalTime += time;\n\t\tif (time < respMin) respMin = time;\n\t\tif (time > respMax) respMax = time;\n\t});\n\tvar result = {\n\t\tsite: url, \n\t\tavg: totalTime / timeArr.length, \n\t\tmax: respMax, \n\t\tmin: respMin, \n\t\tstartTestTime: testStartTime, \n\t\tendTestTime: testEndTime,\n\t\titerations: iterations\n\t};\n\treturn result;\n}", "title": "" }, { "docid": "bdd0cce9870d295d83ed232dee921a17", "score": "0.55120313", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -18000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "bdd0cce9870d295d83ed232dee921a17", "score": "0.55120313", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -18000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "bdd0cce9870d295d83ed232dee921a17", "score": "0.55120313", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -18000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "bdd0cce9870d295d83ed232dee921a17", "score": "0.55120313", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -18000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "bdd0cce9870d295d83ed232dee921a17", "score": "0.55120313", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -18000000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "57b757192040b05241cf0f472f02dafb", "score": "0.55119365", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "57b757192040b05241cf0f472f02dafb", "score": "0.55119365", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "57b757192040b05241cf0f472f02dafb", "score": "0.55119365", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "57b757192040b05241cf0f472f02dafb", "score": "0.55119365", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "57b757192040b05241cf0f472f02dafb", "score": "0.55119365", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, -10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "feb94fc4d9207d528146b751089aaf81", "score": "0.55089223", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 28800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "e514e62ff1f571085a6ecafd8d0b4ae8", "score": "0.55058897", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 14400000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "c2d961fb06f396292056bd78d4e46dac", "score": "0.5502776", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "c2d961fb06f396292056bd78d4e46dac", "score": "0.5502776", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" }, { "docid": "c2d961fb06f396292056bd78d4e46dac", "score": "0.5502776", "text": "function refreshResponseTimePercentilesOverTime(fixTimestamps) {\n var infos = responseTimePercentilesOverTimeInfos;\n prepareSeries(infos.data);\n if(fixTimestamps) {\n fixTimeStamps(infos.data.result.series, 10800000);\n }\n if(isGraph($(\"#flotResponseTimePercentilesOverTime\"))) {\n infos.createGraph();\n }else {\n var choiceContainer = $(\"#choicesResponseTimePercentilesOverTime\");\n createLegend(choiceContainer, infos);\n infos.createGraph();\n setGraphZoomable(\"#flotResponseTimePercentilesOverTime\", \"#overviewResponseTimePercentilesOverTime\");\n $('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){\n $(this).clone().prependTo(choiceContainer.find(\"li\").eq(i));\n });\n }\n}", "title": "" } ]
06661a9503670c1170acdb0973760c1b
Begins the time countown, and starts quiz
[ { "docid": "2bf145237cca9066f933a32509802ef4", "score": "0.0", "text": "function setTime() {\n startQuiz();\n timerInterval = setInterval(function () {\n secondsLeft--;\n timer.textContent = \"Time: \" + secondsLeft;\n\n if (secondsLeft === 0) {\n timerDone()\n }\n }, 1000);\n\n}", "title": "" } ]
[ { "docid": "4761fdaebf3f46dcb152b1247065eb01", "score": "0.7799106", "text": "function startQuiz () {\n clearContents(); \n \n \n\n //Starts the clock\n countdown();\n \n //Get a new question\n getQ(i);\n \n\n}", "title": "" }, { "docid": "5604b56902a9785b59d519cb2a150ddf", "score": "0.7598618", "text": "function startQuiz() {\n // hide start screen\n titleScreen.setAttribute(\"class\", \"hide\");\n \n // un-hide questions section\n quizScreen.setAttribute(\"class\", \"show\");\n \n // start timer\n timerId = setInterval(tick, 1000);\n \n // show starting time\n timeEl.textContent = time;\n \n getQuestion();\n }", "title": "" }, { "docid": "f05d27f2bf1d5836a9185f85ac08ecbe", "score": "0.75611675", "text": "function start() {\n countdown();\n quizQuestions(); \n}", "title": "" }, { "docid": "2af9078200119598feaa9e76d0995514", "score": "0.7411455", "text": "function startQuiz() {\n quizTime();\n \n showQuestion();\n console.log(showQuestion)\n}", "title": "" }, { "docid": "1775afac117a990ef62f9db595bbbb93", "score": "0.7365612", "text": "function startQuiz() {\n \n alert('Once you click \"ok\" the timer will begin. Each missed answer results in 10 seconds being subtracted from the timer... good luck!')\n\n // call questionOne function to generate set of questions and answers\n questionOne();\n}", "title": "" }, { "docid": "2a03e94089dca7cc76a81da4910c72cd", "score": "0.7322002", "text": "function quizStarted () {\n seconds = 60;\n mainpageEl.style.display = \"none\";\n questionsEl.style.display = \"block\";\n timeEl.style.display = \"block\"\n\n countdown();\n renderQuestions();\n}", "title": "" }, { "docid": "5af55584405bc69900f3ccde26f1003a", "score": "0.73109627", "text": "function startQuiz() {\n timerDisplay()\n nextQuestion()\n\n}", "title": "" }, { "docid": "7f8d38edcdb1693b9c050d352dc3b90e", "score": "0.7295185", "text": "function beginQuiz() {\n titleScreen.setAttribute(\"class\", \"hide\");\n\n quizScreen.setAttribute(\"class\", \"show\");\n\n timerId = setInterval(tick, 1000);\n\n timeEl.textContent = time;\n\n getQuestion();\n}", "title": "" }, { "docid": "28a0a64a0b253db886bd947ea29c0748", "score": "0.7262349", "text": "function startQuiz() {\n start.style.display = \"none\";\n showQuiz();\n quiz.style.display = \"block\";\n setTime()\n}", "title": "" }, { "docid": "c52f4afcbedbc293a6e1adfb0870cfa2", "score": "0.7202303", "text": "function beginQuiz() {\n //Start timer/score countdown. Reduces every second.\n var quizTimer = setInterval(function () {\n //Reduce time/score\n totalTime--;\n //Updates on screen display\n timeDisplay.textContent = \"Score: \" + totalTime;\n //Stops countdown and returns results\n if (totalTime === 0) {\n clearInterval(quizTimer);\n showResult();\n }\n //Stops countdown if all questions are answered. Plus one needed to keep timer moving on last question.\n if (questionNumber === questionArray.length + 1) {\n clearInterval(quizTimer);\n return;\n }\n }, 1000);\n startQuiz();\n}", "title": "" }, { "docid": "df3eda89062936e4222d3c5f0c485306", "score": "0.71770334", "text": "function begin() {\n initializeQuiz();\n startPage();\n restartQuiz();\n}", "title": "" }, { "docid": "2a0137bb83b993345e81fea1bc033c92", "score": "0.7159485", "text": "function startQuiz() {\n currentQuestion = 0;\n startEl.style.display = 'none';\n displayQuestion();\n quizEl.style.display = 'block';\n countdown(gameLength);\n}", "title": "" }, { "docid": "07fb5ca4f91dc885c7c35ca397cd72ae", "score": "0.71001416", "text": "function init() {\n // setInterval(function(){ time-- }, 1000);\n isQuizing = true\n countdown()\n getQuiz()\n}", "title": "" }, { "docid": "91a63d0c4d7cde13634ecceac43965b9", "score": "0.70890564", "text": "function start() {\n timer();\n showQuetions(0);\n startquestion();\n}", "title": "" }, { "docid": "eaac7817e121221e2676536be9639a84", "score": "0.7049759", "text": "function startQuiz(){\n countdown();\n introEl.style.display = \"none\";\n quiz.style.display = \"block\";\n scoreEl.textContent = \"Score: \" + score;\n scoreEl.style.display = \"block\";\n displayChoices(countQuestion);\n countQuestion++;\n}", "title": "" }, { "docid": "4bcda127aef97741d0519db0b0dec7e7", "score": "0.7037175", "text": "function begin () {\n\n startbtn.style.display = \"none\";\n\n var clickCount = 5;\n// interval counting down from 5 to 1 to prepare for the quiz\n var prepTimer = setInterval(function() {\n countDown.textContent = \"starting quiz in \" + clickCount;\n // if the countdown is 0 then clear the prep timer and start the quiz timer\n if (clickCount === 0) {\n clearInterval(prepTimer);\n countDown.textContent = \"\";\n showTimer()\n };\n clickCount--\n console.log(\"seconds until quiz starts \" + clickCount);\n }, 1000);\n}", "title": "" }, { "docid": "98fbb9d9a0560511de1ed7fdc3b01440", "score": "0.70362717", "text": "function quizQuestions() {\r\n\tconsole.log('start');\r\n\ttimer = setInterval(Countdown, 1000);\r\n\r\n\tnextQuestion();\r\n}", "title": "" }, { "docid": "8810886719e67800ef9db485cb859ea3", "score": "0.7030922", "text": "function startQuiz() {\n \n // target the start screen id via querySelector and set class attribute\n var startScreenEl = document.querySelector(\"#start-screen\");\n startScreenEl.setAttribute(\"class\", \"hide\");\n\n \n questionsEl.removeAttribute(\"class\");\n\n \n timerId = setInterval(clockTick, 1000);\n\n \n timerEl.textContent = time;\n\n getQuestion();\n}", "title": "" }, { "docid": "d7e1762ccb788188f858802f365c08fa", "score": "0.70227575", "text": "function startQuiz() { \n intro.classList.add(\"hidden\");\n questionBox.classList.remove(\"hidden\");\n currentQuestion = 0; \n\n //start timer when first question is revealed\n setTime();\n\n //show the first question\n showNextQuestion();\n}", "title": "" }, { "docid": "abb073c0a20c6150ccc59faf419e465c", "score": "0.70070356", "text": "function startQuiz() {\n numberCorrect = 0;\n numberIncorrect = 0;\n questionArrayOrder = questionOrder(questionsArray);\n\n secondsLeft = quizTime;\n isQuizzing = true;\n questionIndex = 0;\n hideAll();\n questionPage.classList.remove('hide');\n\n clearQuestion();\n questionUpdater(questionsArray, questionArrayOrder[questionIndex]);\n\n //Timer. If the timer runs out then the initial page is opened.\n let timerInterval = setInterval(function () {\n\n secondsLeft--;\n timer.textContent = \"Time: \" + secondsLeft;\n\n if (secondsLeft < 0 || !isQuizzing) {\n clearInterval(timerInterval);\n secondsLeft = quizTime;\n\n\n if (isQuizzing) {\n finalScore = 0;\n openInitialsPage();\n }\n }\n }, 1000);\n}", "title": "" }, { "docid": "d7e7ab2c6248ff7ac464a43b52b3b3b4", "score": "0.7006073", "text": "function startQuiz() {\n let startScreenEl = document.getElementById(\"start-screen\");\n //hide start screen\n startScreenEl.setAttribute(\"class\", \"hide\");\n // reveail questions\n questionsEl.removeAttribute(\"class\");\n //start timer\n timerId = setInterval(clockTick, 1000);\n timerEl.textContent = time;\n\n getQuestion();\n}", "title": "" }, { "docid": "930e9d4be7162f345e5ed8259fa197fd", "score": "0.6997418", "text": "function startQuiz() {\n //Hide start page elements, set start boolean to false for highscore view purposes\n start = false;\n startDisplayEl.style.display = 'none';\n quizDispEl.style.display = 'flex';\n resultsConEl.style.display = 'flex';\n rresultsDispEl.style.display = 'none';\n answerDispEl.style.display = 'none';\n\n //Display the first question and start the timer\n displayQuestion(currQuesNum);\n startTimer();\n\n}", "title": "" }, { "docid": "c1be7f7c34410714c78c282100db9d80", "score": "0.69955695", "text": "function startQuiz() {\n\n //render first question\n renderQuestion()\n startTimer()\n}", "title": "" }, { "docid": "2005daabc287d7fb4ddaa4f2f2825570", "score": "0.6993935", "text": "function quizStart() {\n store.quizStarted = true;\n store.questionNumber = 0;\n store.submitAns = false;\n store.score = 0;\n store.currentState.answerArr = [];\n }", "title": "" }, { "docid": "1f0af094522de2b5f54ed3b8d2fa5169", "score": "0.6979984", "text": "function beginQuiz() {\n countDown();\n renderQuestion();\n\n if (start.classList.contains(\"show\")) {\n start.classList.add(\"hide\");\n start.classList.remove(\"show\");\n }\n if (choices.classList.contains(\"hide\")) {\n choices.classList.add(\"show\");\n choices.classList.remove(\"hide\");\n }\n if (instructions.classList.contains(\"show\")) {\n instructions.classList.add(\"hide\");\n instructions.classList.remove(\"show\");\n }\n if (questionContainer.classList.contains(\"hide\")) {\n questionContainer.classList.add(\"show\");\n questionContainer.classList.remove(\"hide\");\n }\n timer.classList.add(\"show\");\n timer.classList.remove(\"hide\");\n}", "title": "" }, { "docid": "bb021e9c80c248d1f9d6d2e0df592452", "score": "0.69699615", "text": "function questAndTime() {\n setTime();\n sendMessage();\n quizQuestions();\n}", "title": "" }, { "docid": "5d440f662bcc29fd7562285be30f7046", "score": "0.69671094", "text": "function startQuiz(){\n questionCounter = 0;\n score = 0;\n availableQuestions = [...questions];\n setTime();\n getNewQuestion();\n\n}", "title": "" }, { "docid": "314fbc114a61ea2b736c899035a1cab2", "score": "0.69652885", "text": "function startQuiz() {\n startTimer(true)\n alert(\"quiz started\");\n score = 0;\n\n quiz = true;\n questionIndex = 0;\n\n quizPage.classList.remove('hide');\n generateQuestion(quizQuestions, 0);\n}", "title": "" }, { "docid": "1dfc9a4f40df063fbff2ac3d60de52d9", "score": "0.6961562", "text": "function start(questionsArray){\n\t//Start timing quiz\n\tvar d = new Date();\n\tquizTime.start =d;\n\n\t//Show quiz and finish button\n\tdocument.getElementById(\"TimedQuestion\").style.visibility = \"visible\";\n\tdocument.getElementById(\"Finish\").style.visibility=\"visible\";\n\n\t//Hide the start button\n\tdocument.getElementById(\"start\").style.visibility=\"hidden\";\n\n\t\n\t\n\tfor (var i=0; i < questionsArray.length; i++){\n\t\tvar questionArray = questionsArray[i];\n\t\tif (questionArray[1].constructor===Array){\n\t\t\tsteppedQ(questionArray,i);\n\n\t\t} else {\n\t\t\tnormalQ(questionArray,i);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4d81412cfde07a38e20cfb645ee0b9b5", "score": "0.6959927", "text": "function startQuiz() {\n currentQuestionIndex = 0\n timerCount = 60\n quizSection.classList.remove(\"hidden\")\n introSection.classList.add(\"hidden\")\n showCurrentQuestion()\n startTimer()\n}", "title": "" }, { "docid": "bc766206f0a96b749e335f441fadde72", "score": "0.69592106", "text": "function startQuiz() {\n\n //disable start btn for duration of quiz\n\n\n //get or set player name for highscores table (opt false param prevents deletion of existing name)\n getPlayerName(false);\n\n //set first question object and start the quiz\n setNextQuesiton();\n changeElementVisibility(coverContainer, \"none\");\n runQuiz();\n \n //re-enable start button once quiz has ended\n changeElementVisibility(startBtn, \"block\");\n}", "title": "" }, { "docid": "0a91251b06498b3eceedecb5ddd3cb71", "score": "0.6918691", "text": "function startQuiz() {\n upNextQuestion();\n}", "title": "" }, { "docid": "3f5680e18ef7c1469b4f1d17424e4301", "score": "0.6915327", "text": "function startQuiz() {\n // pulls highscores when game started\n getHighscores();\n // hide start screen\n startScreen.classList.add(\"hide\");\n // show quiz content screen\n questionScreen.classList.remove(\"hide\");\n questionCount = 0;\n startTimer();\n generateQuestion();\n}", "title": "" }, { "docid": "bcaf4bc652621fc457d34823010030d3", "score": "0.689986", "text": "function startQuiz() {\n // clear the start-view page when start-button is clicked\n $(\".score-and-question\").show();\n updateQuestion();\n generateForm();\n\n generateQuestion(STORE.currentQuestion);\n}", "title": "" }, { "docid": "039b173f57afb7f7b4cdb7fec0aba1e1", "score": "0.6889682", "text": "function startQuestion()\n{\n // Stops the interval for updating the time in the database from feedback state.\n clearInterval(updateTimeInterval);\n isFloating = false;\n // Updates the state in the database so that players also get the next question.\n // It also fetches all the required information for the next question.\n // The (a)ction is (u)pdate (s)tate (us), the (h)ost ID is the host's ID, the \n // question (n)umber is the number of the question that needs to be fetched,\n // the new (s)tate is question and the (q)uiz ID is the ID of the quiz the \n // question needs to be fetched from.\n updateDataInDB(\"hostConnectToDB.php?a=us&h=\" + hostID \n + \"&s=question&q=\" + questions[xCoord][yCoord].id); \n\n // Starts the interval for polling for answers in the database.\n // The (a)ction is (p)olling (f)or (a)nswers, the (h)ost ID is the host's ID.\n pollForAnswersInterval = setInterval(function() { requestDataFromDB(\n pollForAnswersDataReturned, \n \"hostConnectToDB.php?a=pfa&h=\" + hostID); \n }, POLL_FOR_ANSWERS_DELAY);\n\n // Make sure timer isn't paused.\n timerIsPaused = false;\n\n // Starts the countdown timer for the question.\n startTimer();\n\n // Calls a function which displays UI for question asked.\n displayQuestionState();\n\n // Reconfigure the key-bindings to allow for pause with P\n // and stop with ENTER/SPACE, and not allow navigation\n // or any other default key-binding which should not be used.\n Reveal.configure({\n // 13 = ENTER\n // 27 = ESC\n // 32 = SPACE\n // 35 = END\n // 36 = HOME\n // 37-40 = Arrow keys\n // 72 = H\n // 74 = J\n // 75 = K\n // 76 = L\n // 78 = N\n // 79 = O\n // 80 = P\n keyboard: {\n 13: function() {\n $(\"#stop-\" + xCoord + \"-\" + yCoord).click();\n $(\"#stop-\" + xCoord + \"-\" + yCoord).click();\n },\n 32: function() {\n $(\"#stop-\" + xCoord + \"-\" + yCoord).click();\n $(\"#stop-\" + xCoord + \"-\" + yCoord).click();\n },\n 37: false,\n 38: false,\n 39: false,\n 40: false,\n 27: null,\n 35: null,\n 36: null,\n 72: null,\n 74: null,\n 75: null,\n 76: null,\n 78: null,\n 79: null,\n 80: togglePause\n }\n });\n} // startQuestion", "title": "" }, { "docid": "3a4282bc72a17bb00a69a14b9556e747", "score": "0.68842417", "text": "function startQuiz(){\n //console.log(\"quiz started\");\n setCurrentState(questionState);\n populateQuestion(questionList[0]);\n}", "title": "" }, { "docid": "772c475cd936c90ca9bb30816ff65f4d", "score": "0.68838155", "text": "function startQuiz() {\n // hide start quiz screen\n // 1. get DOM element\n // 2. set attribute \"class\" to \"hide\"\n\n // un-hide questions section by removing class attrib\n\n // start timer - calling start timer function\n\n // get question - calling get quesiton function\n}", "title": "" }, { "docid": "ead7b33506401e50823d7efe178e8f24", "score": "0.68511784", "text": "function startTimer() {\n\n showQuestions()\n countdownTimer()\n}", "title": "" }, { "docid": "399db57ed4eaf2037b138817a26ed538", "score": "0.6850346", "text": "function startQuiz() {\n console.log(\"Quiz has begun\");\n $('#quiz').show();\n launchQuiz();\n handleUserSubmitAns();\n nextQuestion();\n showResults();\n restartQuiz();\n}", "title": "" }, { "docid": "44e46fc183770dc6e3d0cae963363662", "score": "0.6838292", "text": "function startQuiz()\n{\n // Stops polling for new players.\n clearInterval(pollForPlayersInterval);\n enterFloatingState();\n // Starts an interval for simply updating the time in the database as otherwise\n // a lack of updates would indicate to a player that the host has disconnected.\n // The (a)ction is (u)pdating the (t)ime (ut) and the (h)ost ID is the host's ID.\n updateTimeInterval = setInterval(function() { updateDataInDB(\n \"hostConnectToDB.php?a=ut&h=\" + hostID); }, UPDATE_TIME_DELAY);\n} // startQuiz", "title": "" }, { "docid": "43b61a9b14d2886285ae28a29b672f80", "score": "0.6837457", "text": "function beginQuiz() {\n mainMenu.setAttribute(\"class\", \"hide\");\n question.setAttribute(\"class\", \"unhide container bg-light mt-3 rounded\");\n\n iterate();\n timerStart();\n}", "title": "" }, { "docid": "66499acad3cf469aaa00c6480f801116", "score": "0.6819451", "text": "function initialClick () {\n var fiveMinutes = 60 * 5,\n display = document.querySelector('#time-countdown');\n startTimer(fiveMinutes, display);\n revealQuestions();\n startQuiz();\n}", "title": "" }, { "docid": "b8c93bd9cfe2734bf0ad9c20a0d8514f", "score": "0.681705", "text": "function startQuiz() {\n introSectionEl.style.display = \"none\";\n questionSectionEl.style.display = \"block\";\n makeQuestion();\n timer();\n\n}", "title": "" }, { "docid": "d99f8095f8236617334da12124fca10b", "score": "0.68020886", "text": "function startQuiz(){\n startButton.classList.add('hide');\n landContainer.classList.add('hide');\n questionContainer.classList.remove('hide');\n stopWatch();\n mixQuestions = questions.sort(() => Math.random() -.5)\n allQuestionIndex = 0;\n nextQuestion();\n }", "title": "" }, { "docid": "f29519755debbd22f1dc581a87a35836", "score": "0.68011487", "text": "function startQuiz() {\n //when quiz starts, start timer\n //startTimer();\n setTime();\n //load question 1 function\n //q1();\n //make starter text dissapear\n function startDissapears() {\n var startText = document.getElementById(\"quiz-start\");\n if (startText.style.display === \"none\") {\n startText.style.display = \"block\";\n } else {\n startText.style.display = \"none\";\n }\n }\n startDissapears();\n callquestion1();\n}", "title": "" }, { "docid": "bc035163f3e910b570256e6dbd4faed2", "score": "0.6778091", "text": "function startQuiz(){\n end.style.display = \"none\";\n intro.style.display = \"none\";\n generateQuizQuestion();\n\n //Timer\n timerInterval = setInterval(function() {\n timeLeft--;\n timer.textContent = \"Time left: \" + timeLeft;\n \n if(timeLeft === 0) {\n clearInterval(timerInterval);\n showScore();\n }\n }, 1000);\n quizContainer.style.display = \"block\";\n}", "title": "" }, { "docid": "0b00aa04348aaf5d00db106423e19c27", "score": "0.6776506", "text": "function startGame(){\n // start the timer\n timer.start();\n correctlyAnswered = 0;\n incorrectlyAnswered = 0;\n unanswered = 0;\n questionCounter = 0;\n // display the questions and answers\n displayQandAs(questionCounter);\n\n}", "title": "" }, { "docid": "105572a87225b8da16fccf391e5e2781", "score": "0.67656404", "text": "function playQuiz(questionSet) {\n if (questions) { console.log(\"<playQuiz>\"); }\n\n \n trivia = setUpQuestions(questionSet);\n\n\n timerRemain.setAttribute(\"style\", \"visibility: visible;\");\n\n\n triviaLength = trivia.length * 10 + 30;\n if (questions) { console.log(\"<duration>:\",triviaLength,questionDuration); }\n\n startGameTimer();\n renderTime();\n\npresentQuestion();\n}", "title": "" }, { "docid": "64348700ca1c0c84602926c7d927f0af", "score": "0.6765447", "text": "function start() {\n askQuestion(questionCount);\n //timer\n counter = setInterval(nextQuestion, 1000);\n}", "title": "" }, { "docid": "8185bcc6123c85b9367b77ba6b6bb700", "score": "0.67552066", "text": "function startTheQuiz()\n {\n setInterval(runClock,1000);\n startScreen.style.visibility = \"collapse\";\n startScreen.style.zIndex = -10;\n\n questionContainer.style.visibility = \"visible\";\n questionContainer.style.zIndex = 10;\n\n highScoreBoard.style.visibility = \"collapse\"\n highScoreBoard.style.zIndex = -10;\n\n highScoreBoard.style.visibility = \"collapse\";\n highScoreBoard.style.zIndex = -10;\n scramble();\n started = true;\n score = 0;\n index = 0;\n loadTheQuestion();\n }", "title": "" }, { "docid": "858ae7fc2928588579aeed10a2bcab3d", "score": "0.6749913", "text": "function start () {\n currentQuestion=1\n showQuestion();\n \n}", "title": "" }, { "docid": "759a671252a4348ac4a4e068a813f6a3", "score": "0.6748947", "text": "function startQuiz() {\n quizCountdown();\n retryScreen.style.display= \"none\";\n homeScreen.style.display = \"none\";\n gameScreen.style.display = \"block\";\n totalQs = 0;\n correctAnswers= 0;\n showQuestions();\n}", "title": "" }, { "docid": "4f41dca4d60da7f311b46b69161d79ac", "score": "0.67483854", "text": "function startQuiz() {\n startContainer.classList.add(\"hide\");\n container.classList.remove(\"hide\");\n questionSelector(questions);\n timeLeft();\n}", "title": "" }, { "docid": "aa81ea9597d4fbf02a971799374e0ec2", "score": "0.6741412", "text": "function startQuiz() {\n start.addEventListener(\"click\", function(event) {\n if (remainingSeconds < 30) {\n event.preventDefault();\n } else {\n timerEl.textContent = \"Time: \" + remainingSeconds; \n timer();\n insertQuestion();\n }\n });\n }", "title": "" }, { "docid": "ed032f08b6734bb6ab8d214a29ccec4f", "score": "0.672546", "text": "function startQuiz(){\n // Set the div Container containing text \"Click here to Start Quiz!!!!.....\" to become invisible\n startEl.style.display = \"none\";\n // Load the first question:\n displayQuestion();\n // Make the quiz body that contains the questions visible. Initially we made the body invisible, now we need to make it visible:\n quizEl.style.display = \"block\";\n // Show the progress bar:\n showProgress();\n // Display the timer\n createTimer();\n // Set the timer in intervals of 1000 ms:\n time = setInterval(createTimer, 1000);\n \n\n }", "title": "" }, { "docid": "930c28d320bde87f0717acdcb0cd9128", "score": "0.67141974", "text": "function startTimeQuestion() {\n intervalQuestion = setInterval(decrementQuestions, 1000);\n }", "title": "" }, { "docid": "0d03a9ff39633ea77e0698b59a67d3c8", "score": "0.6706356", "text": "function startQuiz() {\n event.stopPropagation();\n\n document.querySelector(\"#titleScreen\").style = \"display:none;\"\n document.querySelector(\".navbar-text\").textContent = \"Time: \" + time;\n\n // Replace placeholder with the first question\n changeQuestion();\n\n // Wait for the title animation to finish, then show the question\n setTimeout(function () {\n document.querySelector(\"#titleScreen\").style = \"display: none;\";\n document.querySelector(\"#questionBlock\").style = \"display: grid;\";\n document.querySelector(\"#reponseBlock\").style = \"display: grid;\";\n document.querySelector(\"#questionBlock\").className = \"slideUp question box\";\n }, 400);\n\n timeLimit = setInterval(function () {\n time--;\n document.querySelector(\".navbar-text\").textContent = \"Time: \" + time;\n if (time <= 0) {\n clearInterval(timeLimit);\n showEndGame();\n }\n }, 1000);\n}", "title": "" }, { "docid": "b3afdf78b86964c875c93c79e06207a9", "score": "0.6681276", "text": "function beginQuiz () {\n\tstate.correct = 0;\n\tstate.incorrect = 0;\n\tstate.place = 1;\n\tstate.total = 10;\n\t$( 'h1').next().removeClass('hidden');\n}", "title": "" }, { "docid": "7cf5afbdc09897bcfa5bb0da3484091d", "score": "0.66670704", "text": "function startQuiz(){\n displayQ1(quizContent);\n\n var quizTime = setInterval(function(){\n changeToSec--;\n timer.textContent = changeToSec;\n\n if (changeToSec === 0) {\n clearInterval(quizTime);\n }\n\n }, 1000)\n\n beginHere.style.visibility = 'hidden';\n beginQuestions.style.visibility = 'initial';\n viewHighscores.style.visibility = 'hidden';\n}", "title": "" }, { "docid": "98d112d41ffba15a2a24dbf11005bf9b", "score": "0.666361", "text": "function initializeQuiz() {\n\tshuffle(quiz);\n\t$(\"#score\").html(\"<h3>Score: 0</h3>\")\n\tactiveIndex = 0;\n\tdisplayQuestion(activeIndex);\n\ttimer.start();\n}", "title": "" }, { "docid": "42c89b6dbe8f5f9ec542f1b6325dba40", "score": "0.6657069", "text": "function startQuiz(){\n const start_button = document.getElementById(\"start_button\")\n\n start_button.onclick = ()=>{\n question_count = 0;\n console.log(\"restarted quiz!\");\n showQuestions(question_count); \n var fiveMinutes = 60 * 5,\n display = document.querySelector('#time');\n startTimer(fiveMinutes, display);\n }\n showAnswer(question_count);\n answerEngine(); \n\n}", "title": "" }, { "docid": "55d5d560db8bae12eb77d45fb7152534", "score": "0.66523147", "text": "function quizStart() { \n console.log(\"quiz start\");\n welcomeCardEl.hide();\n timerStart();\n displayQuestion(currentQuestion); \n console.log(\"end of func\");\n}", "title": "" }, { "docid": "d0529ef8e9ab1cdf481c6e37394cb634", "score": "0.66339546", "text": "function startQuiz(){\n var score = 0;\n startBanner.style.display = \"none\";\n quizCard.style.display = \"block\";\n scoreCount.innerHTML = \"Questions correct: \" + score;\n timedCount();\n showCurrentQuestion();\n}", "title": "" }, { "docid": "fba969ec474beabdcb04ac7a54a3d6ae", "score": "0.66303533", "text": "function startGame(){\n\t//once \"Start\" button is pushed the actual quiz will need to be shown\n}", "title": "" }, { "docid": "98fdaffc4cfcd17cef089f857f2f937d", "score": "0.66246337", "text": "function startQuiz() {\n document.querySelector('.section-one').setAttribute('style', 'display: none')\n document.querySelector('.game-section').style.display = 'block'\n \n startTimer()\n startQuestion1()\n}", "title": "" }, { "docid": "640bba6ce3ca36a5e4a4182a16fddecb", "score": "0.66198593", "text": "function startQuiz() {\n if(storedScores !==null) {\n allScores = storedScores;\n }\n\n info.classList.add(\"d-none\")\n startBtn.classList.add(\"d-none\")\n timeCountDown.classList.remove(\"d-none\")\n quizQuestions.classList.remove(\"d-none\")\n\n nextQuestions = questions[currentIndex]\n console.log(nextQuestions.title)\n\n displayQuestion(nextQuestions)\n\n gameTime()\n\n}", "title": "" }, { "docid": "d6e3bf3ad38e652d9508074b7dfc06a3", "score": "0.66184384", "text": "function start() {\n\t// DONE: Use setInterval to start the count here and set the clock to running.\n if (!clockRunning) {\n intervalId = setInterval(count, 1000);\n clockRunning = true; \t\n }\n\t// clear message\n\t$(\"#message\").empty();\n\t// Set time at 30 seconds\n\ttime = 31;\n\t// delete the start button\n\t$(\"#intro\").html(\"\");\n\t// Load a question from the array\n\t$(\"#question\").html(\"<h2>\" + triviaArrays.questions[questionNumber] + \"</h2>\");\n\t// Load the answers from the array\n\t$(\"#answer1\").html(\"<button type='button' class='btn btn-default'>\" + triviaArrays.answerChoices[questionNumber][0] + \"</button>\");\n\t$(\"#answer2\").html(\"<button type='button' class='btn btn-default'>\" + triviaArrays.answerChoices[questionNumber][1] + \"</button>\");\n\t$(\"#answer3\").html(\"<button type='button' class='btn btn-default'>\" + triviaArrays.answerChoices[questionNumber][2] + \"</button>\");\n\t$(\"#answer4\").html(\"<button type='button' class='btn btn-default'>\" + triviaArrays.answerChoices[questionNumber][3] + \"</button>\");\n }", "title": "" }, { "docid": "fe6ed2867e302fffd90c2fa8a3a7dcbb", "score": "0.6617464", "text": "function startQuiz() {\n score = 0; \n runningQuestion = [0]; \n // Show active elements and hide inactive elements \n timerElement.style.display = \"block\";\n startButton.style.display = \"none\";\n scoreBox.style.display = \"none\"; \n quiz.style.display = \"block\";\n rightOrWrong.style.display = \"block\";\n rightOrWrong.textContent = \"\";\n highscoreList.style.display = \"none\";\n startTimer();\n askQuestion(); \n}", "title": "" }, { "docid": "068ee9f30cdc9b79bc6c411527aeb591", "score": "0.6612887", "text": "function startGame() {\n clicker();\n quizTimer();\n}", "title": "" }, { "docid": "88cadd3471d07bae5942e9bdb3ea5d56", "score": "0.66071564", "text": "function startQuiz() {\n startTimer()\n startScreen.classList.add('hide')\n listQuestions = questions.sort()\n currentQuestionIndex = 0\n questionContainerEl.classList.remove('hide')\n nextQuestion()\n}", "title": "" }, { "docid": "02baf3a32d8d8cbf19fe24733f461469", "score": "0.66048783", "text": "function startQuiz() {\n var startScreenEl = document.getElementById(\"modal-container\");\n startScreenEl.setAttribute(\"class\", \"hide\");\n questionsEl.removeAttribute(\"class\");\n timerId = setInterval(countDown, 1000);\n timerEl.textContent = time;\n startQuestions();\n}", "title": "" }, { "docid": "c54dca1f40c245caba7b9c3d3b087fde", "score": "0.6595435", "text": "function startQuiz() {\n gameoverDiv.style.display = 'none'\n startQuizDiv.style.display = 'none'\n generateQuizQuestion()\n\n //Timer\n timerInterval = setInterval(function () {\n timeLeft--\n quizTimer.textContent = 'Time left: ' + timeLeft\n\n if (timeLeft === 0) {\n clearInterval(timerInterval)\n showScore()\n }\n }, 1000)\n quizBody.style.display = 'block'\n}", "title": "" }, { "docid": "4df037ae84685c0fabaca047fc2ae113", "score": "0.6591882", "text": "function startQuiz() {\n //timer is off and need to turn on when starting\n timerInterval = setInterval(function () {\n secondsLeft--;\n timeRemainingEl.textContent = secondsLeft;\n if (secondsLeft <= 0) {\n clearInterval(timerInterval);\n results();\n }\n //\n }, 1000);\n displayQuestions();\n}", "title": "" }, { "docid": "8f43e26665318731140306608cca5d08", "score": "0.65914595", "text": "function check(){\n \n var question1 = document.quiz.question1.value;\n\tvar question2 = document.quiz.question2.value;\n\tvar question3 = document.quiz.question3.value;\n\tvar correct = 0;\n \n\n\n\n\tif (question1 == \"Ignores the statement\") {\n\t\tcorrect++;\n}\n\tif (question2 == \"declaration statements\") {\n\t\tcorrect++;\n}\t\n\tif (question3 == \"Function/Method\") {\n\t\tcorrect++;\n\t}\n\t\n\n\n\tif (correct == 0) {\n\t\tscore = 2;\n\t}\n\n\tif (correct > 0 && correct < 3) {\n\t\tscore = 1;\n\t}\n\n\tif (correct == 3) {\n\t\tscore = 0;\n\t}\n\t\n\n// start quiz with timer and set up questions\nfunction startQuiz() {\n introEl.style.display = \"none\";\n questionsEl.style.display = \"block\";\n questionCount = 0;\n\n}\n \n\n\t}", "title": "" }, { "docid": "42e6621bdcb5b51718f6497e80d1afb4", "score": "0.65837246", "text": "function startQuiz() {\n\n //hides intro section\n titleIntro.setAttribute( \"class\", \"hide\" );\n\n //displays the quiz section\n quizContent.setAttribute( \"class\", \"show\" );\n\n //use setInterval to indicate the length of time between each execution of a fuction\n timerID = setInterval( countdown, 1000 );\n\n //set the time element to display the text that is timeLeft\n timeEl.textContent = timeLeft;\n renderQuestions();\n}", "title": "" }, { "docid": "8323f6d5392c7c33321776dd7037cf71", "score": "0.6581959", "text": "function createQuiz() {\n startQuiz();\n domRenderedQuestion();\n userSelectAnswer();\n showNextQuestion();\n}", "title": "" }, { "docid": "3f88340d7ed660591a29322e13993181", "score": "0.65760326", "text": "function startQuiz() {\n\n setTime();\n startBtn_button.setAttribute(\"class\", \"hide\");\n phrase.setAttribute(\"class\", \"hide\");\n\n getQuestion();\n\n}", "title": "" }, { "docid": "60a569db0f69186ccbfc58d3aab179b8", "score": "0.656477", "text": "function startGame() {\n gameData.questionNum = 0;\n gameData.sequenceNum = 0;\n playerData.score = 0;\n\n timeData.accumulate = 0;\n timeData.countdown = coundownTimer;\n updateTimerDisplay(true);\n\n $('#gameStatus .gameQuestionStatus').html('');\n toggleResult(true);\n\n filterCategoryQuestion();\n if (enableRandomQuestion && !$.editor.enable) {\n shuffle(gameData.sequence_arr);\n }\n loadQuestion();\n\n //__info: adding start time icon\n $('#time-trigger-start').addClass('d-none');\n $('#time-trigger-pause').removeClass('d-none');\n}", "title": "" }, { "docid": "f8481eeb9f429d4e7ac8f66a2e95c3cf", "score": "0.6558119", "text": "function startQuiz(){\n start.style.display = \"none\";\n renderQuestion();\n quiz.style.display = \"block\";\n renderProgress();\n renderCounter();\n TIMER = setInterval(renderCounter,1000); // 1000ms = 1s\n}", "title": "" }, { "docid": "cc8925d44e808b6e9b4a8192f41fc847", "score": "0.6552802", "text": "function start() {\n timerCount = 75;\n timeStart();\n answer1();\n}", "title": "" }, { "docid": "9b0a5b48972efe2742284e8b3bbfd65f", "score": "0.6552196", "text": "function quizStart() {\n document.getElementsByClassName(\"code-title\")[0].style.visibility = \"hidden\";\n document.getElementsByClassName(\"col-lg-11\")[0].style.visibility = \"hidden\";\n document.getElementsByClassName(\"btnstart\")[0].style.visibility = \"hidden\";\n quizQuestions.classList.remove(\"d-none\");\n\n /*Console log for debuging*/\n console.log(\"I am cool\");\n\n nextQuestions = questions[currentQuestionIndex];\n showQuestion(nextQuestions);\n\n timertracker();\n\n if (storedScores !== null) {\n allScores = storedScores;\n }\n}", "title": "" }, { "docid": "20366c994bb1a64d5b8032653de29bf7", "score": "0.6545026", "text": "startquiz() {\n document.getElementById('q1').style.display = 'block';\n document.getElementById('start').style.display = 'none';\n document.getElementById('randomize').style.display = 'none';\n document.getElementById('imgstart').style.display = 'none';\n }", "title": "" }, { "docid": "c265f7a724937dcde2238c293bb5821c", "score": "0.6534325", "text": "function handleClickTimeline(question) {\n intro.stop();\n if (question in timelineQuest) {\n if (!timelineQuest[question](riddle)) {\n counter--;\n wrongAnswer.play();\n updateCounter();\n } else {\n rightAnswer.play();\n if (answer.centuries.length > 0) {\n $('.jumbotron').append(\"<h6>What we know so far:</h6>\");\n $('.jumbotron').append(\"<h6><i>Century: \" + answer.centuries[0] + \"</i></h6>\"); \n }\n s1(); // pros: after...questions don't exit state. cons: pushes century twice\n }\n } else {\n console.log('err');\n }\n}", "title": "" }, { "docid": "a5ebd378dcc1a46c4884899ba9a3d729", "score": "0.6530584", "text": "function tick() {\n // update time\n time--;\n timeEl.textContent = time;\n \n // check if user ran out of time\n if (time <= 0) {\n quizEnd();\n }\n }", "title": "" }, { "docid": "ccc20cabc737a205db4c1df3dad034fd", "score": "0.65237933", "text": "function start() {\n\t\t$(\".timerDiv\").empty();\n\t\ttimeQuestion = 15;\n\t\t$(\".timerDiv\").append(\"<div class = \\\"timerSection\\\"></div>\");\n\t \t$(\".timerSection\").html(\"15\");\n\t \tintervalId = setInterval(count, 1000);\n\t}", "title": "" }, { "docid": "a6f2b9206d3c2fdaceb845ae691ce96e", "score": "0.65138215", "text": "function startQuiz() {\n $(\"#start\").on(\"click\", function () {\n event.preventDefault();\n\n $(\"#start\").hide();\n $(\"#title\").hide();\n $(\"#description\").hide();\n\n startQuestions();\n\n questionTimer();\n\n });\n }", "title": "" }, { "docid": "a68340e6b658af7a187cfb45e715672f", "score": "0.6511346", "text": "function startGame() {\n\t\tindex = 0;\n\t\tuserResponses = null;\n\t\tcorrect = 0;\n\t\tloadQuestion();\n\t\t$('.countDown').html(timer.runTimer);\n\t\t$('#start').hide();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f809c62897e6482b292f089c6cabdaea", "score": "0.65104604", "text": "function timeUp(){\n\n\t\t// Grade the quiz, check radio button values\n\t\tvar Question1 = $('input:radio[name=\"question1\"]:checked').val();\n\t\tvar Question2 = $('input:radio[name=\"question2\"]:checked').val();\n\t\tvar Question3 = $('input:radio[name=\"question3\"]:checked').val();\n\t\tvar Question4 = $('input:radio[name=\"question4\"]:checked').val();\n\t\tvar Question5 = $('input:radio[name=\"question5\"]:checked').val();\n\t\tvar Question6 = $('input:radio[name=\"question6\"]:checked').val();\n\t\tvar Question7 = $('input:radio[name=\"question7\"]:checked').val();\n\t\tvar Question8 = $('input:radio[name=\"question8\"]:checked').val();\n\t\tvar Question9 = $('input:radio[name=\"question9\"]:checked').val();\n\t\tvar Question10 = $('input:radio[name=\"question10\"]:checked').val();\n\n\t\t// Count right, wrong, and unanswered questions\n\t\tif(Question1 == undefined){\n\t\t\tunansweredCount++; //Unanswered\n\t\t}\n\t\telse if(Question1 == \"Uniform\"){\n\t\t\tcorrectCount++; //Correct answer\n\t\t}\n\t\telse{\n\t\t\twrongCount++; //Any other answer\n\t\t}\n\n\n\t\tif(Question2 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question2 == \"Strength\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question3 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question3 == \"Eight\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question4 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question4 == \"White\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question5 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question5 == \"Korea\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question6 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question6 == \"Hogu\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question7 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question7 == \"Roundhouse kick\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question8 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question8 == \"House of discipline\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question9 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question9 == \"The way of foot and fist\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\n\t\tif(Question10 == undefined){\n\t\t\tunansweredCount++;\n\t\t}\n\t\telse if(Question10 == \"Sa-Bum-nim\"){\n\t\t\tcorrectCount++;\n\t\t}\n\t\telse{\n\t\t\twrongCount++;\n\t\t}\n\n\t\t// Display the count of right, wrong, and unanswered questions\n\t\t$('#correct_answers').html(correctCount);\n\t\t$('#wrong_answers').html(wrongCount);\n\t\t$('#unanswered').html(unansweredCount);\n\n\t\t// Reveal the end_container div at the end of the game\n\t\t$(\"#end_container\").show();\n\t}", "title": "" }, { "docid": "2b7843b53cdb31bb859f93f044bc91b5", "score": "0.64874774", "text": "function createQuiz() {\n startQuiz();\n userSubmitAnswer();\n nextQuestion();\n clickResults();\n}", "title": "" }, { "docid": "cc940d9921ccf7dfddc9d25ad5cd0228", "score": "0.6486463", "text": "function startQuiz(event){\n event.preventDefault();\n startScreen.setAttribute(\"class\", \"hidden\");\n questionsEl.setAttribute(\"class\", \"visible\");\n getCurrentQuestion();\n startTimer();\n}", "title": "" }, { "docid": "2f54d4f084c3e30fe3c48ab867f98bc3", "score": "0.64771724", "text": "function initQuiz() {\n // Shuffle quiz question list: courtesy of user superluminary on stackoverflow\n shuffledQuiz = quiz\n .map((value) => ({ value, sort: Math.random() }))\n .sort((a, b) => a.sort - b.sort)\n .map(({ value }) => value);\n\n results.correct = 0;\n results.wrong = 0;\n setScoreboard();\n\n timerEl.textContent = \"--\";\n\n missedQ = [];\n\n // Display cover-page over play area until start\n coverPage.setAttribute(\"Style\",\"visibility:visible;\");\n\n initialsEl.setAttribute(\"Style\",\"display:none;\");\n\n}", "title": "" }, { "docid": "3a31f2567373d3314c6adc69e1c28d42", "score": "0.64752877", "text": "function startQuiz(){\n gameoverDiv.style.display = \"none\";\n startQuizDiv.style.display = \"none\";\n generateQuizQuestion();\n\n //Timer\n timerInterval = setInterval(function() {\n timeLeft--;\n quizTimer.textContent = \"Time left: \" + timeLeft;\n \n if(timeLeft === 0) {\n clearInterval(timerInterval);\n showScore();\n }\n }, 1000);\n quizBody.style.display = \"block\";\n}", "title": "" }, { "docid": "cd71b63f6c35103b05b73043c74ab5e8", "score": "0.6473155", "text": "function startQuiz(){ //showing the quiz page\n start.style.display = \"none\"; // stop showing the start page\n renderQuestion(); // prepering the current object/question\n renderProgress(); //making the flags\n quiz.style.display = \"block\";// showing the current question by disabling the \"none\" display of quiz element in the HTML to \"block\" \n restart.style.display = \"block\"; \n\n \n TIMER = setInterval(function(){\n \n \n if(count <= questionTime){\n $(\"#counter\").text(count) //Display the timer\n count++\n } \n else { // whent time is up, Timer is reseted, progress flag=red, next Q displayed\n count = 0;\n answerIsWrong()\n if(runningQuestion < lastQuestion ){ // Go to the next question, if exists\n runningQuestion++\n renderQuestion()\n }\n else {\n clearInterval(TIMER); \n scoreRender();\n } //No more Qs ===> display the score page\n }\n \n\n }, 1000)\n}", "title": "" }, { "docid": "7d9d359d795af05ffd6f77c661ff6616", "score": "0.64686584", "text": "function timeUp() {\n var Q1 = $('input:radio[name=\"q1\"]:checked').val();\n var Q2 = $('input:radio[name=\"q2\"]:checked').val();\n var Q3 = $('input:radio[name=\"q3\"]:checked').val();\n var Q4 = $('input:radio[name=\"q4\"]:checked').val();\n var Q5 = $('input:radio[name=\"q5\"]:checked').val();\n var Q6 = $('input:radio[name=\"q6\"]:checked').val();\n var Q7 = $('input:radio[name=\"q7\"]:checked').val();\n var Q8 = $('input:radio[name=\"q8\"]:checked').val();\n var Q9 = $('input:radio[name=\"q9\"]:checked').val();\n var Q10 = $('input:radio[name=\"q10\"]:checked').val();\n //logic for what the quiz should do given a certain answer or input. \n if (Q1 === undefined) {\n unansweredCount++;\n } else if (Q1 === 'legislative') {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q2 == undefined) {\n unansweredCount++;\n } else if (Q2 == \"True\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q3 == undefined) {\n unansweredCount++;\n } else if (Q3 == \"Judge/interpret the laws\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q4 == undefined) {\n unansweredCount++;\n } else if (Q4 == \"19th\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q5 == undefined) {\n unansweredCount++;\n } else if (Q5 == \"Speaker of the House of Representatives\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q6 == undefined) {\n unansweredCount++;\n } else if (Q6 == \"Power to/of the people\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q7 == undefined) {\n unansweredCount++;\n } else if (Q7 == \"100\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q8 == undefined) {\n unansweredCount++;\n } else if (Q8 == \"Judicial review\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q9 == undefined) {\n unansweredCount++;\n } else if (Q9 == \"False\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n if (Q10 == undefined) {\n unansweredCount++;\n } else if (Q10 == \"The electoral college\") {\n rightCount++;\n } else {\n wrongCount++;\n }\n\n //target the ids to add to the appropriate score\n $(\"#correct\").html(rightCount);\n $(\"#wrong\").html(wrongCount);\n $(\"#unanswered\").html(unansweredCount);\n\n $(\"#end\").show();\n\n }", "title": "" }, { "docid": "5ef93be4e38c2c34ad807f228b7c438d", "score": "0.64664215", "text": "function startQuiz(){\n gameOverDiv.style.display = \"none\";\n startQuizDiv.style.display = \"none\";\n generateQuizQuestion();\n\n //Timer\n timeInterval = setInterval(function(){\n timeLeft--;\n quizTimer.textContent = \"Time Left: \" + timeLeft;\n\n if(timeLeft === 0) {\n clearInterval(timeInterval);\n showScore();\n }\n }, 1000);\n quizBody.style.display = \"block\";\n}", "title": "" }, { "docid": "501e0fba1db2a4b84eca3767c214e755", "score": "0.6465706", "text": "function setTime() {\n document.getElementById(\"quiz-time\").innerHTML = countDown + \"secs left\";\n countDown--;\n if (countDown === -1) {\n clearInterval(quizTime);\n }\n endQuiz();\n}", "title": "" }, { "docid": "29e1fb6cb08e6674c803ccc3e6b5474a", "score": "0.6448609", "text": "function startTimer() {\n document.getElementById(\"main\").classList.add('d-none');\n document.getElementById(\"quiz-container\").classList.remove('d-none');\n //Set the time \n setTimer();\n // This method create questions to display\n generateQuizQuestions();\n}", "title": "" }, { "docid": "ccee89e3058730b2cedf58b07f1ed8e8", "score": "0.6432295", "text": "function startUp() {\n\tconsole.log(\"startUp\");\n\tcorrect = 0;\n\tincorrect = 0;\n\tvar mainContent = `<h1>To begin playing, click the start button. You will have ${questionTime} seconds to answer each question.</h1><button type=\"button\" class=\"btn btn-primary btn-lg\">Start</button>`;\n\t$(\"#main\").html(mainContent);\n\t$(\".btn\").click(question);\n}", "title": "" }, { "docid": "9b974dac800509500085298b1d6d6a49", "score": "0.64312315", "text": "function restartTimeorEndQuiz() {\n // checking to see if we're on the last question, if so end game & hide questions\n if (myQs.length == currentquestion) {\n $(\"#timeRR\").text(\"Time's up\");\n showResults();\n clearInterval(timeTicker);\n $(\"#quiz\").hide();\n } else {\n //if myQs is not at last questions goes => to next guestion\n setQuestion(currentquestion);\n timeleft = 15;\n }\n}", "title": "" }, { "docid": "fedfd39b8dae1d6ca75ba86546b0b45d", "score": "0.6425543", "text": "function quizSetup() {\n /* set global counts to 0 */\n questionSetIndex = 0;\n correctCount = 0;\n\n /* hide game over form */\n $gameOver.css('display', 'none');\n /* unhide q&a form */\n $questionForm.removeClass('hidden');\n\n /* add initial q&a to screen */\n addQuestion();\n addChoices();\n }", "title": "" }, { "docid": "7585098ec6cde04f895ebfee4aae1553", "score": "0.64210564", "text": "function startGame() {\n\n $(\"#intro\").hide();\n $(\"#quiz-content\").show();\n showQuestion();\n timerStart();\n\n}", "title": "" } ]
2a2639ec2d065ae917f6b38edd35db18
Save Description Takes a description object and upserts the JSON description file.
[ { "docid": "35f0d80b8d92628277e69d91119c8b12", "score": "0.7247138", "text": "saveDescription(description, callback) {\n description = JSON.parse(JSON.stringify(description))\n let datasetId = this.data.dataset._id\n let authors = []\n let referencesAndLinks = []\n\n for (let author of description.Authors) {\n authors.push(author)\n }\n description.Authors = authors\n\n if (description.ReferencesAndLinks) {\n for (let referencesAndLink of description.ReferencesAndLinks) {\n referencesAndLinks.push(referencesAndLink)\n }\n description.ReferencesAndLinks = referencesAndLinks\n }\n\n this.updateModified()\n datalad\n .updateFileFromString(\n datasetId,\n 'dataset_description.json',\n JSON.stringify(description, null, 4),\n 'application/json',\n )\n .then(() => {\n callback()\n })\n }", "title": "" } ]
[ { "docid": "2d450a611ade94b33f53aefe04252653", "score": "0.69291174", "text": "function saveDescription() {\n\teditedFileData.fileData.description = $('#description').val();\n\tdataChanged = true;\n}", "title": "" }, { "docid": "543772123bc0db4ce4f5dafbfd9fe34d", "score": "0.62131995", "text": "updateDescription(key, value, callback) {\n let dataset = this.data.dataset\n let metadataIssues = this.data.metadataIssues\n let description = dataset.description\n description[key] = value\n if (key !== 'Authors') {\n description.Authors = dataset.authors\n } else {\n metadataIssues.authors = null\n }\n\n if (key !== 'ReferencesAndLinks') {\n description.ReferencesAndLinks = dataset.referencesAndLinks\n } else {\n metadataIssues.referencesAndLinks = null\n }\n this.saveDescription(description, callback)\n this.update({ dataset, metadataIssues })\n }", "title": "" }, { "docid": "4af174172336d8c38975f9f1f1fb6106", "score": "0.6147682", "text": "setDescription(description) {\n this.description = description;\n this.setDirty();\n }", "title": "" }, { "docid": "730271f212e463a006805a47c8ece610", "score": "0.60509527", "text": "function save(desc, dialog, iri, configuration) {\n prepareDescription(desc);\n configuration.length = 0;\n saveObject(desc, dialog, configuration, iri + \"/configuration\");\n }", "title": "" }, { "docid": "a1c2ae79c1994a5c155d8716e1ff483c", "score": "0.59670544", "text": "updateDescriptionFile(file, projectId, callback) {\n files.read(file, contents => {\n let description = JSON.parse(contents)\n let authors = []\n let references = []\n if (description.hasOwnProperty('Authors')) {\n for (let i = 0; i < description.Authors.length; i++) {\n let author = description.Authors[i]\n authors.push(author)\n }\n }\n if (description.hasOwnProperty('ReferencesAndLinks')) {\n for (let i = 0; i < description.ReferencesAndLinks.length; i++) {\n let reference = description.ReferencesAndLinks[i]\n references.push(reference)\n }\n }\n file = new File(\n [JSON.stringify(description, null, 4)],\n 'dataset_description.json',\n { type: 'application/json' },\n )\n datalad.updateFile(projectId, file).then(() => {\n description.Authors = authors\n description.ReferencesAndLinks = references\n let dataset = this.data.dataset\n dataset.description = description\n this.update({ dataset })\n callback()\n })\n })\n }", "title": "" }, { "docid": "0f48c4f96d46269e820e0b0f0c2fcfdd", "score": "0.59188133", "text": "async function handleSaveNote(newDescription) {\n currentTask.Description = newDescription;\n await updateTask(currentTask.Task_id, currentTask);\n }", "title": "" }, { "docid": "60bfd94de1a17722de0388fb589606f9", "score": "0.5784198", "text": "storeNewRecipeDescription(newRecipeDescription) {\n temporaryRecipe.description = newRecipeDescription;\n }", "title": "" }, { "docid": "6f8d49e763b4115501c02bbf28ed77e2", "score": "0.57805306", "text": "function saveObject(desc, toSave, graph, iri) {\n const instance = {\n \"@id\": iri,\n \"@type\": [desc.$type]\n };\n // Check object control.\n if (desc.$control !== undefined && toSave.$control !== undefined &&\n toSave.$control.inherit !== undefined &&\n toSave.$control.force !== undefined) {\n jsonld.r.setIRIs(instance, desc.$control,\n controlToIri(toSave.$control.inherit, toSave.$control.force));\n }\n let objectIndex = 0;\n // Save object data properties.\n for (let key in desc) {\n if (!desc.hasOwnProperty(key)) {\n continue;\n }\n if (key.startsWith(\"$\")) {\n continue;\n }\n const descItem = desc[key];\n let toSaveItem = toSave[key];\n // toSaveItem can be a simple object, created outside the dialog.\n // In that case we create a simple wrap.\n if (!(toSaveItem instanceof Object)) {\n toSaveItem = {\n \"value\": toSaveItem\n };\n }\n // Get value to save, the value can be transformed before saving.\n let valueToSave;\n if (descItem.$onSave !== undefined) {\n valueToSave = descItem.$onSave(toSaveItem.value);\n } else {\n valueToSave = toSaveItem.value;\n }\n // Save value.\n if (descItem.$object === undefined) {\n saveValue(descItem, instance, valueToSave);\n } else {\n // Save objects.\n if (!Array.isArray(valueToSave)) {\n valueToSave = [valueToSave];\n }\n const iris = [];\n for (let i = 0; i < valueToSave.length; ++i) {\n ++objectIndex;\n const newIri = iri + \"/\" + objectIndex;\n saveObject(descItem.$object, valueToSave[i], graph, newIri);\n iris.push(newIri);\n }\n jsonld.r.setIRIs(instance, descItem.$property, iris);\n }\n // Save control.\n if (descItem.$control !== undefined &&\n toSaveItem.inherit !== undefined &&\n toSaveItem.force !== undefined) {\n jsonld.r.setIRIs(instance, descItem.$control,\n controlToIri(toSaveItem.inherit, toSaveItem.force));\n }\n // Save substitution.\n if (!isEmpty(toSaveItem.substitution)) {\n jsonld.r.setValue(\n instance, descItem.$substitution, toSaveItem.substitution);\n }\n }\n //\n graph.push(instance);\n }", "title": "" }, { "docid": "a4963de659bca3246ab7f2f00ec9e74b", "score": "0.5696385", "text": "function update_product_description(name, description_v){\n Product.update({sid: sid},\n {name: name},\n {picture_url: picture_url},\n {description: description_v},\n {price: price},\n {rating: rating},\n {stock: stock},\n function(error, numAffected){\n if((error) || (numAffected.nModified != 1)){\n // The Product was not updated\n console.log(\"Errored, Product \" + description_v + \"wasn't updated. Error: \" + error);\n\n }else{\n //The Product was Updated\n console.log(\"Product \" + description_v + \" updated.\");\n\n }\n });\n}", "title": "" }, { "docid": "d45e42837ed281877885e399fe898764", "score": "0.5668136", "text": "function saveValue(desc, resource, value) {\n switch (desc.$type) {\n case \"date\":\n jsonld.r.setDates(resource, desc.$property, value);\n break;\n case \"str\":\n case \"str-lang\":\n jsonld.r.setStrings(resource, desc.$property, value);\n break;\n case \"int\":\n jsonld.r.setIntegers(resource, desc.$property, value);\n break;\n case \"bool\":\n jsonld.r.setBooleans(resource, desc.$property, value);\n break;\n case \"iri\":\n jsonld.r.setIRIs(resource, desc.$property, value);\n break;\n case \"value\":\n jsonld.r.setValue(resource, desc.$property, value);\n break;\n default:\n console.error(\"Unknown type for: \", desc);\n }\n }", "title": "" }, { "docid": "16e4faae529bea5d4714489b7915d60a", "score": "0.5617318", "text": "function changeDesc(id,text) {\n\t\t\t\t//traversing array to delete\n\t\t \tfor (var i in data) {\n\t\t \tif (data[i].id == id) {\n\t\t \t\tdata[i].todo = text.txt\n\t\t break; //Stop this loop, we found it!\n\t\t \t}\t\t\n\t \t\t}\n\t \t\tconsole.log(\"data after update\",data);\t\n\t\t \tvar obj = data;\n\t\t \t//now write updated array in file after updation\n\t\t\t\tfs.writeFile(dev, JSON.stringify(obj), 'utf-8', function(err) {\n\t\t if (err) res.status(400).send(err)\n\t\t\t });\n\t \t}", "title": "" }, { "docid": "1636f7dbf9935da769994593af985aec", "score": "0.5541519", "text": "function createExpense(description, quantity) {\n // Create the message for the expense management system\n let message = JSON.stringify(\n {\n description, \n quantity, \n date: new Date() \n },\n null,\n 4 // generate pretty-printed JSON (indented by 4 spaces)\n );\n\n // Then, save it to the common directory...\n \n // Generate a random filename\n // Theoretically, UUIDv4 should be unique\n // (in practice it may be a good idea to confirm)\n let filename = uuid.v4() + '.expense';\n\n // Write to the message to the file, ensuring that we do not overwrite existing files\n fs.writeFileSync(\n path.join(expenseDirectory, filename),\n message,\n { flag: 'wx' }\n );\n}", "title": "" }, { "docid": "9496b79080a0622d837ae129e7c3cd01", "score": "0.553878", "text": "function saveDescription () {\n var time = $(this).parent().attr('id');\n var descriptionText = $(this).siblings('.description').val();\n localStorage.setItem(time, descriptionText);\n}", "title": "" }, { "docid": "5373e5918d4b52242f36c7a3af1391af", "score": "0.5387227", "text": "writeDescription(){\n\t\t\tthis.attachNode( \"MorpheusModel\", \"Description\" );\n\t\t\tthis.attachNode( \"Description\", \"Title\",\n\t\t\t\tthis.model.modelInfo.title );\n\t\t\tthis.attachNode( \"Description\", \"Details\",\n\t\t\t\tthis.model.modelInfo.desc );\n\t\t}", "title": "" }, { "docid": "ce70d430f9239bfe9967637d49611a0c", "score": "0.5357824", "text": "async put(jsonDoc) {\n return await this.db.insert(jsonDoc);\n }", "title": "" }, { "docid": "002305286f08a57672e7bb2b8c0d3bdf", "score": "0.5355603", "text": "async resetDescription () {\n const pkg = await this.getPackageJson()\n\n pkg.description = ''\n\n await this.savePackageJson(pkg)\n }", "title": "" }, { "docid": "59c4550e0cf52952bbc4bcd16108d33a", "score": "0.5337799", "text": "function writeSync(description, options) {\n var file = vfile(description);\n fs.writeFileSync(file.path, file.contents || '', options);\n}", "title": "" }, { "docid": "4c03152eee7ca1af69e554fe9b7e0923", "score": "0.5330625", "text": "function saveData() {\n fs.writeFile('./db/db.json', JSON.stringify(notes), err => {\n err ?\n console.error(err) : console.log('saved to database');\n });\n}", "title": "" }, { "docid": "365969afb56c1d9192c2322e06c2a990", "score": "0.5328821", "text": "function save(result,res,uri,c,obj){\n \n if (res==503) { //if the server is currently unable to handle the request we try again until its done \n abs(uri,c,obj,save); \n }\n else{\n obj.Resources[c]['@abstract']=result; // if its ok\n\n fs.writeFile(\"json_files/eurobasket_1987.json\",JSON.stringify(obj), function(err) { // we save the json file containing the input text, the \n if(err) { // annotated entities and the abstracts for those \n return console.log(err); // entities at the folder \"json_files\"\n };\n });\n };\n}", "title": "" }, { "docid": "995bab728a197f429d512e1eaba7936f", "score": "0.53153557", "text": "saveDocument() {\n console.log(\"Guardando documento\");\n console.log(\"Histories: \", this.histories.length);\n let jsonData = {\n date: this.date,\n histories: this.histories,\n };\n\n let jsonDataString = JSON.stringify(jsonData);\n\n fs.writeFileSync(\"./data/data.json\", jsonDataString);\n }", "title": "" }, { "docid": "af70c5ffc50ce89e7502ce41f79e4406", "score": "0.53092754", "text": "function saveJson() {\n Office.context.document.getSelectedDataAsync(Office.CoercionType.Html,\n function (result) {\n if (result.status === Office.AsyncResultStatus.Succeeded) {\n $(document).find('#saveBt').prop('disabled', true);\n var ID = sessionStorage.getItem('productDescriptionId');\n var html = result.value;\n html = html.replace(/\\s\\s+/g, ' ');\n if (html.indexOf(\">Puprose\") == -1 &&\n html.indexOf(\">Composition\") == -1 &&\n html.indexOf(\">Derivation\") == -1 &&\n html.indexOf(\">Format and Presentation\") == -1 &&\n html.indexOf(\">Development Skills Required\") == -1 &&\n html.indexOf(\">Quality Criteria\") == -1) {\n app.showNotification(\"Please select all (ctrl+a) the text before publishing.\")\n $(document).find('#saveBt').prop('disabled', false);\n }\n else {\n var border = html.indexOf(\"<div style='bord\")\n while (border !== -1) {\n var endBorder = html.indexOf(\">\", border);\n html = html.substring(0, border) + html.substring(endBorder + 1);\n border = html.indexOf(\"<div style='bord\");\n }\n //still has to clean out, the differents vars, was for testing\n var title = extractTitle(html);\n var purpose = extractChapter(html, \">Purpose\", \">Composition\");\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostRTValue\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionIndex\": \"1\",\n \"ProductDescriptionId\": ID,\n \"ProductDescriptionProperty\": purpose\n },\n success: function () {\n\n\n },\n\n error: function () {\n //app.showNotification('Error');\n }\n });\n\n var composition = extractChapter(html, \">Composition\", \">Derivation\");\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostRTValue\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionIndex\": \"2\",\n \"ProductDescriptionId\": ID,\n \"ProductDescriptionProperty\": composition\n },\n success: function () {\n\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n\n var derivation = extractChapter(html, \">Derivation\", \">Format and Presentation\");\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostRTValue\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionIndex\": \"3\",\n \"ProductDescriptionId\": ID,\n \"ProductDescriptionProperty\": derivation\n },\n success: function () {\n\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n\n var formatPresentation = extractChapter(html, \">Format and Presentation\", \">Development Skills Required\");\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostRTValue\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionIndex\": \"4\",\n \"ProductDescriptionId\": ID,\n \"ProductDescriptionProperty\": formatPresentation\n },\n success: function () {\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n\n var devSkills = extractChapter(html, \">Development Skills Required\", \">Quality Criteria\");\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostRTValue\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionIndex\": \"5\",\n \"ProductDescriptionId\": ID,\n \"ProductDescriptionProperty\": devSkills\n },\n success: function () {\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n var qualityCriteria = extractDevSkills(html);\n if (qualityCriteria.length == 0) {\n $(document).find('#saveBt').prop('disabled', false);\n }\n for (var i = 0; i < qualityCriteriaId.length; i++) {\n var urlId = host + \"/api/productdescription/DeleteQualityCriteria?criteriaId=\" + qualityCriteriaId[i];\n $.ajax({\n type: \"DELETE\",\n url: urlId,\n success: function () {\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n }\n for (var i = 0; i < qualityCriteria.length; i++) {\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostQualityCriteria\",\n dataType: \"json\",\n data: {\n \"QualityCriteriaId\": null,\n \"ProductDescriptionId\": ID,\n \"Criteria\": qualityCriteria[i][0],\n \"Tolerance\": qualityCriteria[i][1],\n \"Method\": qualityCriteria[i][2],\n \"Skills\": qualityCriteria[i][3]\n },\n success: function () {\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n }).done(function (str) {\n if (i == qualityCriteria.length) {\n $.ajax({\n type: 'GET',\n url: host + \"/api/productdescription?id=\" + sessionStorage.getItem('productDescriptionId'),\n dataType: \"json\",\n jsonp: false,\n xhrFields: {\n withCredentials: false\n }\n }).done(function (str) {\n qualityCriteriaId = [str.QualityCriteria.length];\n for (var i = 0; i < str.QualityCriteria.length; i++) {\n qualityCriteriaId[i] = str.QualityCriteria[i].QualityCriteriaId;\n }\n $(document).find('#saveBt').prop('disabled', false);\n })\n ;\n }\n });\n\n }\n /* $.ajax({\n type: 'GET',\n url: \"http://uprincecoredevapi.azurewebsites.net/api/productdescription?id=\" + sessionStorage.getItem('productDescriptionId'),\n dataType: \"json\",\n jsonp: false,\n xhrFields: {\n withCredentials: false\n }\n }).done(function (str) {\n qualityCriteriaId = [str.QualityCriteria.length];\n for (var i = 0; i < str.QualityCriteria.length; i++) {\n qualityCriteriaId[i] = str.QualityCriteria[i].QualityCriteriaId;\n }\n app.showNotification('success')\n })\n ;\n */\n var responsibilities = extractResponsibilities(html);\n $.ajax({\n type: \"POST\",\n url: host + \"/api/productdescription/PostQualityResponsibility\",\n dataType: \"json\",\n data: {\n \"ProductDescriptionId\": ID,\n \"Producer\": responsibilities[0],\n \"Reviewer\": responsibilities[1],\n \"Approver\": responsibilities[2]\n },\n success: function () {\n\n },\n error: function () {\n //app.showNotification('Error');\n }\n });\n\n //app.showNotification(devSkills);\n //app.showNotification(responsibilities[0]);\n }\n } else {\n //app.showNotification('Error:', result.error.message);\n }\n }\n )\n }", "title": "" }, { "docid": "0c3febd7e4b836d059c693dcaf693de9", "score": "0.52868", "text": "function json_save() {\n\tvar self = this;\n\tself.body.$save(self, self.callback());\n}", "title": "" }, { "docid": "67b5db552668edd760297164fbe35f7a", "score": "0.52820694", "text": "function save() {\n\tconsole.log('Updated')\n\tfs.writeFileSync('people.json', JSON.stringify(people, null, '\\t'))\n\tfs.writeFileSync('unknown.json', JSON.stringify(unknown, null, '\\t'))\n}", "title": "" }, { "docid": "978f6497d668c3ecea73346f1dc1f0ed", "score": "0.5281256", "text": "function saveTitle() {\n\teditedFileData.fileData.title = $('#title').val();\n\tdataChanged = true;\n}", "title": "" }, { "docid": "8677955433ae617104771410fc26eacf", "score": "0.5257351", "text": "function saveNewItem(description){\n\t$.ajax({\n\t type: \"POST\",\n\t url: 'http://'+ip+':3000/ImageGallery',\n\t data: 'json=' + JSON.stringify({ \"Description\": description}),\n\t success: function (result,msg) {\n\t\t\t\t$('#btnHideAddNewItem').click();\n\t\t\t\t$('#frmFind #inputText').val(description);\n\t\t\t\t$('#btnFilter').click();\n\t }\n\t });\n}", "title": "" }, { "docid": "41d523714b931b7c2ade8413fda48fe1", "score": "0.52431583", "text": "function updateItemDescription( itemid, description ) {\n\n if ( firstDescrip ) {\n firstDescrip = false;\n } else {\n mixpanel.track(\"productdescription_editabout\", {\n \"item\": itemid\n });\n }\n\n if (typeof location.origin === 'undefined') { location.origin = location.protocol + '//' + location.host; }\n $.ajax({\n url: location.origin + \"/updateitemdescription\",\n type: 'post',\n data: {\n itemId: itemid,\n itemDescription: description\n },\n headers: {\n \"X-CSRF-TOKEN\": csrfToken\n },\n dataType: 'json',\n success: updateItemCard( itemid, 'itemDescriptionUpdate' )\n });\n }", "title": "" }, { "docid": "7ba141addd0b8cc54e58db7c10033bad", "score": "0.523095", "text": "function save() {\n let data = get();\n\n fs.writeJSONSync(dataFile, data);\n}", "title": "" }, { "docid": "356477fdc639dad62457d6cf609cba82", "score": "0.52308536", "text": "function saveToBackend(title, text, src, apiUrl, authToken, postId){\n\tconsole.log(title);\n\tlet inputs = {};\n\tif (src == null){\n\t inputs = {\n\t\t \"title\": title.value,\n\t\t \"text\": text.value\n\t\t}\n\t} else {\n\t inputs = {\n\t\t \"title\": title.value,\n\t\t \"text\": text.value,\n\t\t \"image\": src\n\t\t }\n\t}\n\tconst param = {\n\t\t method: 'PUT',\n\t\t body: JSON.stringify(inputs),\n\t\t headers:{\n\t\t\t 'Authorization': `Token ${authToken}`,\n\t\t\t 'Content-Type': 'application/json',\n\t\t }\n\t }\n\tfetch(apiUrl + '/post/?id=' + postId, param) //send to API\n\t.then(function(response){\n\t\tif(response.ok) document.location.reload(true);\n\t\t//reload page to show new info\n\t})\n\t.catch(function(error) {\n \t\tconsole.log('Looks like there was a problem: \\n', error);\n\t});\n}", "title": "" }, { "docid": "016db37189e8d6d53563721e4f4fe730", "score": "0.5228464", "text": "async function SaveNote(title,description) {\r\n const data = {\r\n title : title,\r\n description : description\r\n }; \r\n // call create api\r\n const notes = await createNote(data);\r\n\r\n if(notes.success) {\r\n noteList.appendChild(createListItem(notes.data));\r\n reset();\r\n }\r\n else console.log(notes.error);\r\n\r\n}", "title": "" }, { "docid": "867ac8d689e2c29509a0067a4b6488f1", "score": "0.5212665", "text": "updateTodo(id, desc) {\n this.storage.update(id, desc);\n }", "title": "" }, { "docid": "aabcca520dc4f042efbc63325892a9e8", "score": "0.52091396", "text": "function saveGenre(req, res) {\n\n var genre = req.swagger.params.data.originalValue;\n\n Genres.model.create(JSON.parse(genre), function (err, genre){\n if(err){\n res.status(200).send(new Error(err));\n }else{\n res.status(200).send({\"message\":\"Data saved\"});\n }\n });\n}", "title": "" }, { "docid": "b3974c7fc57fad1f3385e974bf2b8c42", "score": "0.52036667", "text": "function saveArticle () {\n\n // Called when user wants to save an article\n // Retrieve article info using the .data method\n var articleToSave = {};\n articleToSave._id = $(this).attr(\"data-_id\");\n articleToSave.saved = true;\n console.log(articleToSave);\n\n\n // Use a PUT METHOD to update existing record in the collection\n $.ajax({\n method: \"PATCH\",\n url: `/api/articles/${articleToSave}`,\n data: articleToSave\n })\n .then(function(data) {\n if(data.ok) {\n loadPage();\n }\n });\n }", "title": "" }, { "docid": "01ad2c6e80c6bdb5f3bc13e918ece927", "score": "0.52008754", "text": "function setDescription(description) {\n console.info(\"Setting the Current Description: \", description);\n $('#edit_description').val(description);\n }", "title": "" }, { "docid": "657323633f2fb9c9fad3c21d9a4e4042", "score": "0.5198717", "text": "function bddSave() {\n fs.writeFile(\"./bddQuote.json\", JSON.stringify(bddQuote, null, 4), (err) => {\n if (err) message.channel.send(\"Une erreur est survenue lors de la sauvegarde dans la base de données.\");\n });\n}", "title": "" }, { "docid": "59190ad0773ec811924222f4f55f0c42", "score": "0.5172764", "text": "___write_fileDescriptionDocumentContentString(fileDescription, documentToWrite, fn)\n\t{\n\t\tconst self = this\n\t\tvar stringContents = null\n\t\tif (typeof documentToWrite === 'string') {\n\t\t\tstringContents = documentToWrite\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tstringContents = JSON.stringify(documentToWrite)\n\t\t\t} catch (e) {\n\t\t\t\tfn(e)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (!stringContents || typeof stringContents === 'undefined') { // just to be careful\n\t\t\t\tfn(new Error(\"Unable to stringify document for write.\"))\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t\tconst fileKey = self.____fileKeyFromFileDescription(fileDescription)\n\t\tconst filename = self.____filenameWithFileKey(fileKey)\n\t\tconst filepath = self.pathTo_dataSubdir+\"/\"+filename\n\t\tself.fs.writeFile(filepath, stringContents, function(err)\n\t\t{\n\t\t\tfn(err, documentToWrite) // and send back saved document (with id)\n\t\t})\n\t}", "title": "" }, { "docid": "ce5c53202017fa87e748628f177ece07", "score": "0.51674414", "text": "function save_data() {\n var file = new File(\"tasks.db\", \"w\");\n file.write(JSON.stringify(tasks));\n file.close();\n}", "title": "" }, { "docid": "d1fc0ced906336cca7b2b2e999dd1f64", "score": "0.5149055", "text": "function setDescription(roomId, character, newDescription) {\n\tif(isNaN(roomId)) {\n\t\tcharacter.emitMessage('What room ID did you want to update?');\n\t\treturn;\n\t}\n\t\n\tvar id = parseInt(roomId, 10);\n\tvar room = character.world.getRoom(id);\n\t\n\tif(room === null) {\n\t\tcharacter.emitMessage('That room does not seem to exist....');\n\t\treturn;\n\t}\n\t\n\troom.description = newDescription;\n\n\troomModel.find( { \"id\":id }, function(err, docs) {\n\t\tif(docs.length > 0) {\n\t\t\tdocs[0].description = newDescription;\n\t\t\tdocs[0].save(function(err) {\n\t\t // TODO: Log error, I guess?\n\t\t if(err !== null) {\n\t\t console.log(err);\n\t\t }\n\t\t character.emitMessage('Room updated.');\n\t\t\t});\n\t\t}\n\t});\n}", "title": "" }, { "docid": "796865009001307a838f8e06890d817a", "score": "0.5124217", "text": "function new_description_created(description) {\n log(\"new_description_created: \" + description);\n localPeerConnection.setLocalDescription(\n description,\n function () {\n stomp.send(\"/app/signal/room1\", {},\n JSON.stringify({\n call_token:\"call_token\",\n type:\"new_description\",\n message: encodeURIComponent(JSON.stringify(description))\n }));\n },\n log_error\n );\n }", "title": "" }, { "docid": "82e2a48566584e109e5490720b6d6003", "score": "0.51193225", "text": "function saveIdeaUpdates(ev) {\n var updatedIdea = ev.target.closest('.new-ideas');\n var updatedIdeaTitle = updatedIdea.querySelector('.title').innerText;\n var updatedIdeaBody = updatedIdea.querySelector('.example-body').innerText;\n var updatedIdeaId = updatedIdea.id;\n var existingIdeasString = localStorage.getItem('idea');\n var existingIdeasObj = JSON.parse(existingIdeasString);\n\n for(i = 0; i < existingIdeasObj.length; i++) {\n var existingIdeaId = existingIdeasObj[i].id;\n\n if(existingIdeaId == updatedIdeaId) {\n existingIdeasObj[i].title = updatedIdeaTitle;\n existingIdeasObj[i].body = updatedIdeaBody;\n}\n}\n var newIdeaString = JSON.stringify(existingIdeasObj);\n localStorage.setItem('idea', newIdeaString);\n}", "title": "" }, { "docid": "128b1f52b7725b6896de19d6572e4f0b", "score": "0.5116934", "text": "function writeToJSON(filename, data){\n // code for writing db.JSON\n fs.writeFile(filename, data, function(err){\n if(err){\n throw err;\n }\n console.log(\"Successfuly wrote to db.JSON\")\n });\n}", "title": "" }, { "docid": "81ed763a59bb07d91afe0a9503f61acc", "score": "0.5105844", "text": "function saveEvent(title, description, posWrite, userID, eventTime) {\n\t\tfirebase.database().ref(\"Events/\" + title).set({\n\t\t\tDescription : description,\n\t\t\tPosition : posWrite,\n\t\t\tUserInfo : {\n\t\t\t\tUserID : userID,\n\t\t\t\tEventTime : eventTime.toString()\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "f3236e7580890c4bfd886861d6a2bfee", "score": "0.51049876", "text": "storeData(jsonData) {\n fs.writeFileSync(dbPath, JSON.stringify(jsonData));\n }", "title": "" }, { "docid": "9b49bfb074b2ab1f11e075c555ac8868", "score": "0.51009977", "text": "function saveJSON(out, fileName){\n fs.writeFile(fileName, out, { flag: 'w' }, function(err) {\n if(err) {\n \tconsole.log(err)\n return err;\n }\n\n console.log(\"Programming Data updated successfully. Saved to: \" + fileName);\n return \"Success\";\n });\n}", "title": "" }, { "docid": "840e32a440b41c754413606795bd40ef", "score": "0.5095179", "text": "function save(){\n\n\t\tcheckInit();\n\t\t\n\t\tvar str;\n\t\tif(amBrowser){\n\t\t\tstr = getJSON(false); // don't store newlines, tabs and formatting into localStorage, otherwise it breaks.\n\t\t\tlocalStorage.setItem(localStorageId, str);\n\t\t} else {\n\t\t\tstr = getJSON();\n\t\t\tfs.writeFileSync(dataFilePath, str, \"UTF-8\");\n\t\t}\n\t}", "title": "" }, { "docid": "7805add1816dbb7afa307ae580d6b5f6", "score": "0.50923216", "text": "editDescription(value, contextTitle) {\n const context = last(contextTitle.split('_'));\n const successText = this.$translate.instant(\n `dedicatedCloud_datacenter_${context}Modifying_success`,\n );\n const destinationId = this.DEDICATED_CLOUD_DATACENTER.alertId;\n this.editDetails({\n contextTitle,\n successText,\n datacenterId: this.datacenter.model.id,\n destinationId,\n value,\n }).result.then((newValue) => {\n if (contextTitle === 'dedicatedCloud_datacenter_name') {\n this.datacenter.model.name = newValue;\n } else {\n this.datacenter.model.description = newValue;\n }\n });\n }", "title": "" }, { "docid": "bae720924ae64b2ee456d83c79cb9e68", "score": "0.5062106", "text": "function saveFile(name, description, mimeType, json, callback, options) {\n if( !options ) options = {}\n\n var boundary = '-------314159265358979323846';\n var delimiter = \"\\r\\n--\" + boundary + \"\\r\\n\";\n var close_delim = \"\\r\\n--\" + boundary + \"--\";\n\n var metadata = {\n 'title' : name,\n 'description' : description,\n 'mimeType' : mimeType\n };\n\n // if we want to save the file to a specified folder\n if( options.parent ) {\n metadata.parents = [{id: options.parent}];\n }\n\n // if the json is really an object, turn it to a string\n if (typeof json == 'object') json = JSON.stringify(json);\n\n // data needs to be base64 encoded for the POST\n var base64Data = btoa(json);\n\n // create our multipart POST request\n var multipartRequestBody = delimiter\n + 'Content-Type: application/json\\r\\n\\r\\n'\n + JSON.stringify(metadata);\n\n if( json.length > 0 ) {\n multipartRequestBody += delimiter + 'Content-Type: '\n + mimeType + '\\r\\n' + 'Content-Transfer-Encoding: base64\\r\\n'\n + '\\r\\n' + base64Data;\n }\n multipartRequestBody += close_delim;\n\n // setup POST request\n // if the options.conver=true flag is set, google attempts to convert the file to\n // a google doc file. Mostly, we use this for exporting csv -> Google Spreadsheets\n var request = gapi.client.request({\n 'path' : '/upload/drive/v2/files' + ( options.convert ? '?convert=true' : ''),\n 'method' : 'POST',\n 'params' : {\n 'uploadType' : 'multipart'\n },\n 'headers' : {\n 'Content-Type' : 'multipart/mixed; boundary=\"' + boundary + '\"'\n },\n 'body' : multipartRequestBody\n });\n\n // send the request\n request.execute(function(resp) {\n if (resp.id)\n callback(resp);\n else\n callback({\n error : true,\n message : \"Failed to save\"\n });\n });\n}", "title": "" }, { "docid": "543a89dd7230a3a2bc32724eea7572e9", "score": "0.50586087", "text": "function sync_save_dbfile(filename, infos){\n try {\n\tvar contents = JSON.stringify(infos);\n\tfs.writeFileSync(filename, contents, 'utf8');\n\tvdisplay(\"sync (over)wrote \" + contents.length + \" on \" + filename)\n } catch(err) {\n\tdisplay(filename + \": could not sync write \" + filename + \" - \" + err);\n }\n}", "title": "" }, { "docid": "530fdf07cac8ea5cb26bfe3488afffc0", "score": "0.50585717", "text": "function onChangeDescription(e) {\n setExercise({...newExercise,\n description: e.target.value\n });\n }", "title": "" }, { "docid": "d843c1220796d061a2a870c15e80edac", "score": "0.50550944", "text": "function saveCaption() {\n\teditedFileData.fileData.caption = $('#caption').val();\n\tdataChanged = true;\n}", "title": "" }, { "docid": "776bcbcdad56cbcb198c10536a8e8f5f", "score": "0.50397426", "text": "function saveEpicCapture() {\n let item_name = document.getElementById(\"edit_e_item_name\").value;\n let item_description = document.getElementById(\"edit_e_item_description\").value;\n let item_estimate_time = document.getElementById(\"edit_e_item_estimate_time\").value;\n let item_id = document.getElementById(\"edit_e_item_id\").value;\n\n for (let i = 0; i < project.epics.length; i++) {\n if (project.epics[i].epicId == item_id) {\n project.epics[i].title = item_name;\n project.epics[i].description = item_description;\n project.epics[i].estimated = item_estimate_time;\n reload();\n }\n }\n PROJECTS[POSITION] = project;\n\n syncProjects();\n closeEditEpicCapture();\n}", "title": "" }, { "docid": "1c79d596c78e56bee2bb11b084275797", "score": "0.5037301", "text": "save() {\n getDataFromFile((products) => {\n products.push(this);\n fs.writeFile(p, JSON.stringify(products), (err) => {\n console.log(err);\n });\n });\n }", "title": "" }, { "docid": "1a3f8df8840b4db4abde41deac913447", "score": "0.5020178", "text": "function saveIntoStorage(course) {\n \n\n // add the course into the array\n \n\n // since storage only saves strings, we need to convert JSON into String\n \n}", "title": "" }, { "docid": "c8adde719367e0d0e5f97b61af1e2914", "score": "0.50119036", "text": "saveJdornEdits(){\n\t\t//write to the correct template\n\t\tvar flow = remote.getGlobal('sharedObj').presentationFlow\n\t\tconsole.log('writing the following to ' + flow +'/flow.yaml' ,this.jdornEditor.getValue());\n\t\t//convert to yaml\n\t\tvar yamlString = yaml.stringify(this.jdornEditor.getValue(),30, 2);\n\t\tjetpack.write('app/presentationConfigs/presentationFlows/'+flow+'/flow.yaml', yamlString)\n\t\tthis.reloadHome(flow)\n\n\n\t}", "title": "" }, { "docid": "00e5219ef70171c9f55e92cc5b4df62d", "score": "0.5008014", "text": "function save_to_db(value) {\n var eod = seneca.make$('eod')\n var extend = seneca.util.deepextend\n var eod_list$ = Promise.promisify(eod.list$, {\n context: eod\n })\n eod_list$({\n tradingsymbol: value.tradingsymbol\n }).then(function(list) {\n if ((list.length > 1)) throw new Error(\"ERR:COLLECTION_COUNT_MISMATCH\")\n if (list.length === 1) {\n var item = list[0];\n item = extend(item, value)\n item.save$(after_save)\n } else {\n var new_eod = seneca.make$('eod', value)\n new_eod.save$(after_save)\n }\n })\n }", "title": "" }, { "docid": "3d3e96caddcf7e97e94e8f0c77fc25e5", "score": "0.4991927", "text": "addToDB(objSrc, itemIndex, destination, destinationID)\n {\n //NOTE: you can write [ ], but you can't search [ ] characters...\n var emptyList = \"{\\\"item\\\":[]}\";\n var initialSetup = \"{\"+ \"\\\"item\\\"\" + \":[\";\n var beginPosDest = destination.search(\":\") + 2;\n var endPosDest = destination.length - 2;\n var closingSetup = \"]}\"\n var tempString = \"\";\n var everyOtherItems = destination.substring(beginPosDest, endPosDest);\n //extract source and object, create a string with only the new item to be added\n var itemToBeAdded = JSON.stringify(objSrc.item[itemIndex]);\n //determine what to do algorithm\n /*\n -1 = no result (beginPos), \"},\" true (endPosSrc), Num = the position\n */\n //it always give false, but this is for no file at all only way in\n if(destination.search(\":\") == -1)\n {\n tempString = initialSetup + itemToBeAdded + \"]}\";\n }\n else if (destination == emptyList) //check for if the list is simply empty (you can't search for \"[\" or \"]\" )\n {\n tempString = initialSetup + itemToBeAdded + \"]}\";\n }\n else if(!(destination.search(\"},\") == -1 ))\n {\n //file is filled but only 1 entry\n //end is ]}, but itemAdded ends },\n tempString = initialSetup + itemToBeAdded + \",\" + everyOtherItems + \"]}\";\n\n }\n else\n {\n //file is multiple filled items\n tempString = initialSetup + itemToBeAdded + \",\" + everyOtherItems + \"]}\";\n }\n\n //final string is done\n\n\n var obj = JSON.parse(tempString);\n //write file to destination\n //file location: \"./models/saveData.json\"\n //this code seems to work if you run JavaScript Editor\n if(destinationID == 'ShopCart')\n {\n API.fileWriteCart(obj);\n }\n\n if(destinationID == 'SaveLater')\n {\n API.fileWriteSave(obj);\n }\n \n }", "title": "" }, { "docid": "2ad5a7305f22dc6c42d3002329c5607c", "score": "0.49813795", "text": "save() {\n\t\tif (this.hasOwnProperty('updatedAt')){\n\t\t\tconsole.log(\"goood\");\n\t\t\tthis.updatedAt = date('YYYY-MM-DDTHH:mm:ss.ms');\n\t\t}\n\t\tStorage.storage.save();\n\t}", "title": "" }, { "docid": "ab212b1882b2f3960166348cae291848", "score": "0.49793425", "text": "async function saveObject() {\n const token = gapi.auth2.getAuthInstance().currentUser.get().getAuthResponse().id_token;\n const fetchOptions = {\n method: 'POST',\n headers: {'Authorization': 'Bearer ' + token}\n };\n\n const objTitleEl = document.getElementById('objective-title-input');\n if (!objTitleEl.checkValidity()) {\n return;\n }\n\n let url = '/data/objectives/';\n url += '?title=' + encodeURIComponent(objTitleEl.value);\n url += '&unitid=' + encodeURIComponent(currentUnit);\n const response = await fetch(url, fetchOptions);\n\n if (!response.ok) {\n console.log(response.status);\n return;\n }\n\n document.getElementById('add-a-objective').classList.add('hidden');\n document.getElementById('add-objective-form').reset();\n displayObjectives();\n}", "title": "" }, { "docid": "77596e7eaa72b795d7d720bf001266b2", "score": "0.49791846", "text": "function saveArticlesToDB(jsonArray) {\n const listOfArticles = Object.values(jsonArray.list)\n\n listOfArticles.forEach(entry => {\n Article.findOne({ item_id: entry.item_id }, (err, item) => {\n if (!item) {\n Article.create({\n item_id: entry.item_id,\n resolved_id: entry.resolved_id,\n given_url: entry.given_url,\n given_title: entry.given_title,\n resolved_title: entry.resolved_title,\n resolved_url: entry.resolved_url,\n excerpt: entry.excerpt,\n word_count: entry.word_count,\n })\n }\n })\n })\n}", "title": "" }, { "docid": "d8cf7a73c3409e73144ded353239fa8b", "score": "0.4973389", "text": "save() {\n fs.writeFile(__dirname + '/../downloads/' + this.filename, this.faq.getData(), (err) => {\n if (err) throw err;\n });\n }", "title": "" }, { "docid": "1b6615c96b8e5b6387e6085f973fed4f", "score": "0.49727994", "text": "function saveForLaterDB(ID, docTitle, docAuthor, docPrice, docImage) {\n //gets the path to the saved items\n let saveDocRef = promise.collection(\"save\");\n //adds item to the database\n let addDoc = saveDocRef.add({\n title: docTitle,\n authorName: docAuthor,\n price: docPrice,\n image: docImage\n }).then(ID => {\n //console.log('Added document with ID: ', ID.id);\n });\n }", "title": "" }, { "docid": "b9aeaa9efabc5d05136fe1d627e5e54d", "score": "0.49671283", "text": "function saveConodeJSON(conodeJSON) {\n storage.save({\n key: 'conode', // Note: Do not use underscore(\"_\") in key!\n data: conodeJSON,\n });\n console.debug(\"Saved conodeJSON!\");\n}", "title": "" }, { "docid": "435f1a7b810a0264eea7b83c1ce7c956", "score": "0.49656925", "text": "function saveExpenseEdit(event) {\n let expenseId = event.target.getAttribute(\"data-expense-id\");\n console.log(expenseId);\n expenses[expenseId].expenseDescription = document.getElementById(\n \"expenseDescription\"\n ).value;\n expenses[expenseId].expenseValue = document.getElementById(\n \"inputExpenseBox\"\n ).value;\n document.getElementById(\"inputExpenseBox\").value = \"\";\n document.getElementById(\"expenseDescription\").value = \"\";\n\n CreateExpenseHTMLInject();\n deleteSaveButton();\n}", "title": "" }, { "docid": "76a0a65a58b349e7aaa1d8acf3ecfe90", "score": "0.49537805", "text": "async persist() {\n // guard for what may be a very expensive process\n if (this.shouldPersist) {\n // transform in-memory database into JSON\n const serialJSON = JSON.stringify(this.records)\n\n // write the JSON to file\n const handle = await fsprom.open(this.filepath, \"w\")\n await handle.writeFile(serialJSON)\n await handle.close()\n \n this.shouldPersist = false\n }\n }", "title": "" }, { "docid": "c9cb23f0a007f7e7c4c54ffd64265a6a", "score": "0.49506745", "text": "save(callback)\n {\n const self = this;\n const collection = self.db.collection(self[_options].collection);\n\n const objectToSave = {\n sampler: self.toJSON()\n };\n\n collection.findOneAndUpdate({}, {$set: objectToSave}, {upsert: true}).then(function(changed)\n {\n return callback();\n }, callback).catch(callback);\n }", "title": "" }, { "docid": "9e8c2b7029bc537033557a87b79347ac", "score": "0.4948634", "text": "save() {\n this._toggleSaveThrobber();\n try {\n this._readFromForm();\n var resp = this.dao.save();\n if (!resp) {\n alert(\"Error while saving publication.\")\n } else {\n var jsonObj = JSON.parse(resp);\n // make sure the DOI input is showing the correct DOI, reload data from server\n document.getElementById('doi').value = this.dao.doi;\n this.read(jsonObj[0]['max(id)']);\n }\n } catch(e) {\n alert(e);\n }\n this._toggleSaveThrobber();\n }", "title": "" }, { "docid": "9d327c5c1637873be025a08163fa1fd5", "score": "0.4943988", "text": "function save(){\n\t\tvar nombreArchivo = txtArchivo.val();\n\t\tconsole.log(nombreArchivo);\n\t\tif(nombreArchivo == \"\" || nombreArchivo == null){\n\t\t\tnombreArchivo = \"prueba.json\"\n\t\t}\n\t\t/*Creación del JSON*/\n\t\t//var code = generarCodigo();\n\t\tvar finalJSON = {\n\t\t\tdiagrama: diagrama.model.toJson()\n\t\t\t//nombre: code\n\t\t};\n\t\t/*Peticion Ajax*/\n\t\tjQuery.ajax({\n\t\t\tmethod: \"POST\",\n\t\t\turl: \"/diagrama\",\n\t\t\tdata: { contenido: diagrama.model.toJson(), nombre: nombreArchivo+\".json\"}\n\t\t}).done(function( msg ) {\n\t\t\talert( \"Archivo Guardado\");\n\t\t});\n\t}", "title": "" }, { "docid": "3d9cb149e450fd7e23be8d9879cae494", "score": "0.4930686", "text": "function saveStory() {\r\n const storyText = document.getElementById('story-text').value;\r\n const storyDir = configDir + '/story.txt';\r\n fs.writeFile(storyDir, storyText, function(err) {if (err) throw err;});\r\n}", "title": "" }, { "docid": "29697a67c21628e0dca641c727323f58", "score": "0.49174166", "text": "function save(id/*,img,description,title*/){\t\r\n\tvar t=document.getElementById(id+\"-title\");\r\n\tvar d=document.getElementById(id+\"-description\");\r\n\tvar img=document.getElementById(id+\"-img\");\r\n\tvar msg=document.getElementById(\"description\");\r\n\t\r\n\tvar image=document.getElementById(\"image\");\t\r\n\timg.getElementsByTagName('img')[0].src=image.value.split(/[\\\\/]/).pop();\r\n\t\r\n\td.innerHTML=msg.value;\r\n\t//alert(temp_description);\r\n}", "title": "" }, { "docid": "dd8e0667596190383190c91ec28a97c6", "score": "0.49148235", "text": "function save(json, callback){\n // FIXME change to jquery for consistency\n var xhr = new XMLHttpRequest();\n xhr.open(\"POST\", saveCommentsUrl, true);\n xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');\n xhr.send(json);\n xhr.onloadend = callback;\n}", "title": "" }, { "docid": "5d30879674028b2dbea612164151f3de", "score": "0.49066803", "text": "function updateCategoriesJson(categoriesList) {\n\n var fileName = './public/galleries/categories.json';\n var file = require(fileName);\n\n categoriesList = categoriesList.map(x => x.trim());\n\n console.log('la ');\n console.log(categoriesList);\n\n file.categoriesList = JSON.stringify(categoriesList);\n\n console.log('ici : ');\n console.log(file);\n\n fs.writeFile(fileName, JSON.stringify(file), function(err){\n if(err) return console.log(err);\n console.log(JSON.stringify(file));\n console.log('Ok, wrtiting to ' + fileName);\n });\n}", "title": "" }, { "docid": "613f979c5e1b28e22b7a60a50dff3378", "score": "0.49037358", "text": "async updateJobDesc(jobId, newDesc) {\n if (!jobId) throw \"You must provide an id to search for\";\n\n if(!validDescription(newDesc)) {\n throw \"Invalid name\"\n }\n\n const jobsCollection = await jobs();\n const updatedJob = { description: newDesc };\n\n const updated = await jobsCollection.updateOne({ _id: new ObjectID(jobId) }, {$set: updatedJob});\n if (!updated) {\n throw `[ERROR] Cannot update the job description`;\n }\n return true;\n }", "title": "" }, { "docid": "9806d8c4e109b35056d3a3b8465ab29f", "score": "0.4900119", "text": "forceSave() {\n fs.writeFileSync(this.path, JSON.stringify(this.data));\n }", "title": "" }, { "docid": "242da420fb4a501026972a3d50d51744", "score": "0.48966354", "text": "saveFile(){\r\n let fs = require('fs');\r\n const jsonContent = JSON.stringify(this);\r\n\r\n fs.writeFile(\"./LinkedList\", jsonContent, 'utf8', function (err){\r\n if (err){\r\n return console.log(err);\r\n }\r\n\r\n console.log(\"The file was saved!\");\r\n })\r\n }", "title": "" }, { "docid": "b9410801792319cb163d28c71ffd09d2", "score": "0.4895412", "text": "function writeNotes() {\n fs.writeFileSync('db/db.json', JSON.stringify(savedNotes), function (err) {\n if (err) {\n return err;\n }\n\n });\n}", "title": "" }, { "docid": "936df063ddfbfbdab4321775a5814143", "score": "0.48935795", "text": "function writeClosedJSONFile (filePath, sessionFileName, data) {\n \n // new ID for objects\n var contNewID = 0;\n \n // id mapping {oldId : newID}\n var iDMap = {};\n \n // new temporary data\n var newData = {};\n \n // for each id in json data\n for (var id in data){\n \n // for avoiding inherited properties\n if (data.hasOwnProperty(id)) {\n \n // if the property is not a private one (examples in parameters.js)\n if (id.charAt(0) != \"_\") {\n \n // increment cont new ID\n contNewID++;\n \n // set the mapping\n iDMap[id] = contNewID;\n\n }\n }\n }\n \n \n // again, for each id in json data\n for (var id in data) {\n \n // for avoiding inherited properties\n if (data.hasOwnProperty(id)) {\n \n // if the property is not a private one (examples in parameters.js)\n if (id.charAt(0) != \"_\") {\n \n // if the object is a connection\n if (data[id][\"objectClass\"] === \"connection\") {\n \n //we have to modify also its internal attributes \"sourceObjID\" and \"targetObjID\"\n data[id][\"sourceObjID\"] = (iDMap[data[id][\"sourceObjID\"]]).toString();\n data[id][\"targetObjID\"] = (iDMap[data[id][\"targetObjID\"]]).toString();\n \n }\n\n // set the ID of the object\n data[id][\"id\"] = iDMap[id].toString();\n \n // property contNewID of new data is data.id\n newData[iDMap[id]] = data[id];\n\n }\n \n // otherwise\n else {\n \n // just copy the value\n newData[id] = data[id];\n }\n }\n }\n \n // update the last created object ID\n newData[param.lastCreatedObjectIDAttr] = contNewID;\n \n // remove the last char, so '}', in order to have the possibility to \n // append other stuff at the end of the file \n var dataToBeWritten = JSON.stringify(newData).slice(0, -1);\n \n // simply write down the data\n fs.writeFile(filePath, dataToBeWritten, (err) => {\n\n if (err) {\n // TODO decide what to do\n // log the error\n console.log(err);\n }\n \n else {\n \n // remove the reference to the cached data\n data = undefined;\n }\n\n });\n \n // delete the history of the session file\n delete modifyHistory[sessionFileName];\n\n}", "title": "" }, { "docid": "34ed1e07fcc267ee546ce190782b49ba", "score": "0.48856276", "text": "async function saveNFTFile (name, description){\n const file = await saveFile(\"NFT file\", nftFile,{\n saveIPFS: true\n })\n\n metadata.name = name;\n metadata.description = description;\n metadata.nftFileHash = file.hash();\n metadata.nftFilePath = file.ipfs();\n\n const nftFileMetadata = await new Moralis.File(\"metadata.json\", {base64 : btoa(JSON.stringify(metadata))})\n await saveFile({nftFileMetadata, saveIPFS: true})\n console.log(file);\n }", "title": "" }, { "docid": "594b2733b42b6711b20c28a8e9e1395b", "score": "0.48705453", "text": "[MUTATIONS.SET_DESCRIPTION_CONTENT] (state, payload) {\n state.currentSlide.description.content = payload\n state.isCurrentSlideDirty = true\n }", "title": "" }, { "docid": "ac71434801de44c7e397f02314701799", "score": "0.48518476", "text": "function setDescriptionDetails() {\n\n // If description template is not provided by the user, default it to description.html\n // Use the commented code when template input in the feed is supported\n /*var descriptionTemplate = getColumnValue('template');\n if (isEmptyOrNull(descriptionTemplate)) {\n descriptionTemplate = 'description.html';\n }\n var descriptionTemplatePrefix = '/store/lookup/template/';\n PRODUCT.DescriptionTemplate = descriptionTemplatePrefix + descriptionTemplate;*/\n PRODUCT.DescriptionTemplate = '/store/lookup/template/description.html';\n PRODUCT.CustomFields.ProductDescription = getColumnValue('productDescription');\n PRODUCT.CustomFields.AdditionalInfo = getColumnValue('additionalInfo');\n\n var customFieldsStr = getColumnValue('customFields');\n if (!isEmptyOrNull(customFieldsStr)) {\n try {\n var customFields = JSON.parse(customFieldsStr);\n for (var name in customFields) {\n PRODUCT.CustomFields[name] = customFields[name];\n }\n } catch (err) {\n LOGGER.log(\"---- customFields JSON parse error for \" + PRODUCT.ID + \" : \" + err.message);\n }\n }\n}", "title": "" }, { "docid": "fc526cf564cf991cae7fe4cf6fda38fd", "score": "0.4837286", "text": "saveData(){\n var json = JSON.stringify(this.addressbook,null,2);\n fs.writeFileSync('./JSON/AddressBook.json',json);\n }", "title": "" }, { "docid": "3424d118fb654d990db1e0998c6c8bd2", "score": "0.48355123", "text": "function writeToFile(filename, data) {\n\n //append stringified JSON object to new .json file\n fs.appendFileSync(filename + \".md\", JSON.stringify(data).slice(1, -1) + \"\\n\", function (err) {\n\n //error if unable to complete\n if (err) {\n return console.log(err);\n }\n\n //message if successful\n console.log(\"Success!\");\n\n });\n\n}", "title": "" }, { "docid": "c554c34bc972bbbe347d43d838a4af7d", "score": "0.4827315", "text": "function save() {\n fs.writeFile('aaddress.json', JSON.stringify(addressData), 'utf-8', function (err) {\n if (err) throw err\n console.log('saved')\n })\n }", "title": "" }, { "docid": "924c8b15b9668f4d2b5f08e34d911792", "score": "0.4824604", "text": "save() {\n\t\t// TODO\n\t}", "title": "" }, { "docid": "6680a1d87f44f55362e30191008b2e5d", "score": "0.4820617", "text": "function updateDescription(resource, url) {\n if (resource.description != \"\") {\n resource.description += \"\\n\\n\";\n }\n var urlArray = url.match(\"(.*)/events/(.*)/\");\n if (urlArray !== null) {\n url = urlArray[0]\n }\n\n resource.description += url;\n return resource;\n}", "title": "" }, { "docid": "c7a831e5cb427d59361e4845d37e2175", "score": "0.48194417", "text": "function save() {\n\tdownload(Editor.filename, JSON.stringify(Editor.objects));\n}", "title": "" }, { "docid": "bd042dc4ae6bbfc468d71f23b3a0122d", "score": "0.4811354", "text": "function UpdatePlaylistJson(idPlaylist, namePlaylist){\n let playlists = fs.readFileSync('./playlist.json')\n playlists = JSON.parse(playlists)\n \n //Add the playlist to the json if it doesnt exist yet\n let existingPlaylist = playlists.find(p => p.id == idPlaylist);\n if(existingPlaylist == undefined){\n playlists.push({\n \"id\":idPlaylist,\n \"name\": namePlaylist\n });\n }\n\n playlists = JSON.stringify(playlists)\n\n fs.writeFileSync('./playlist.json',playlists)\n}", "title": "" }, { "docid": "cb460185846df1359aa79704bd187484", "score": "0.4810079", "text": "function writeJSONFile(content) {\n fs.writeFileSync(\n \"db.json\",\n JSON.stringify({ dogs: content }),\n \"utf8\",\n err => {\n if (err) {\n console.log(err);\n }\n }\n );\n }", "title": "" }, { "docid": "c37a747b8278efd79f93491207c50240", "score": "0.48075035", "text": "function saveNominee(id, title, year, imgUrl) {\n database.ref(\"/movies/\" + id).set({\n id: id,\n title: title,\n year: year,\n imgUrl: imgUrl,\n });\n}", "title": "" }, { "docid": "16e414a56998e40c1d1a98de840b7263", "score": "0.48059195", "text": "_writeConfigData(){\n jsonfile.writeFileSync( this._configFilePath, this._configData )\n\n let tagFilePath = path.resolve( this._configData.workingDir, this._configData.tagFile);\n if( !fs.existsSync( tagFilePath ) ){\n jsonfile.writeFileSync( tagFilePath, {} )\n }\n\n }", "title": "" }, { "docid": "3861878e88d4079b4b42f86f8e83e7d0", "score": "0.4798949", "text": "function editTaskDescription(task) {\n const id = task.parent().parent().attr('id');\n const descript = task.parent().prev().text();\n axios.put('http://localhost:5000/api/tasks/' + id, {\n description: descript\n }).then(res => {\n console.log('Edit Saved');\n }).catch(err => console.error(err));\n }", "title": "" }, { "docid": "9a7afe99a96485a950b181af4bd81b34", "score": "0.47985646", "text": "function save () {\r\n log('Salvando tarefa')\r\n readRequest(saveCallback)\r\n\r\n // Callback a ser chamado no fim da leitura dos dados do request\r\n function saveCallback (task) {\r\n db.save(JSON.parse(task), function (task) {\r\n buildResponse(response, 201, responseHeaders, task)\r\n .end()\r\n })\r\n }\r\n }", "title": "" }, { "docid": "4bf975d0503418f52fb60415018e8089", "score": "0.4796338", "text": "function save() {\n saveDiagramProperties(); // do this first, before writing to JSON\n document.getElementById(\"savedModel\").value = bioDiagram.model.toJson();\n bioDiagram.isModified = false;\n // console.log($('#var_input_div .var_input_element').length);\n}", "title": "" }, { "docid": "32b6b40d38147015bcec40ca593aea04", "score": "0.4795595", "text": "async function store (site, title, summary, link, body, image) {\n let start = {\n site: site,\n title: title,\n summary: summary,\n link: link,\n body: body,\n image: image\n }\n let finish = {\n site: site,\n title: title,\n summary: summary,\n link: link,\n body: body,\n image: image\n }\n let options = {\n upsert: true\n }\n await Entry.findOneAndUpdate(\n start,\n finish,\n options\n )\n /*\n log.debug('Saving:')\n log.trace('Site: ' + site)\n log.trace('Title: ' + title)\n log.trace('Link: ' + link)\n log.info('Done.')\n */\n /*\n let entry = new Entry(\n {\n site: site,\n title: title,\n summary: summary,\n link: link,\n body: body,\n image: image\n }\n )\n await entry.save((err) => {\n if (err) { console.log(err) }\n saves++\n })\n */\n}", "title": "" }, { "docid": "70689ffe34e815b67c027f8abb20b3f7", "score": "0.4794957", "text": "saveArticle(info) {\n\t\tGetArticles.saveArticle(info);\t\t\n\t}", "title": "" }, { "docid": "d87d5a923422c0011f309c916fc1ad48", "score": "0.47924805", "text": "function setDescription(json) {\n const description = JSON.stringify(json.weather[0].description);\n $('.description').html(description.substr(1, description.length - 2));\n}", "title": "" }, { "docid": "55f5a8ead46953fcc3d52a0c5e3b7f7c", "score": "0.47887626", "text": "async saveEditYamlAction() {\n const {\n alertYaml,\n detectionSettingsYaml,\n notifications,\n alertId,\n subscriptionGroupId\n } = getProperties(this, 'alertYaml', 'detectionSettingsYaml', 'notifications', 'alertId', 'subscriptionGroupId');\n\n //PUT alert\n const alert_url = `/yaml/${alertId}`;\n const alertPostProps = {\n method: 'PUT',\n body: alertYaml,\n headers: { 'content-type': 'text/plain' }\n };\n try {\n const alert_result = await fetch(alert_url, alertPostProps);\n const alert_status = get(alert_result, 'status');\n const alert_json = await alert_result.json();\n if (alert_status !== 200) {\n set(this, 'errorMsg', get(alert_json, 'message'));\n notifications.error('Save alert yaml file failed.', 'Error');\n } else {\n notifications.success('Alert saved successfully', 'Done', alert_json);\n }\n } catch (error) {\n notifications.error('Save alert yaml file failed.', error);\n }\n\n //PUT settings\n const setting_url = `/yaml/subscription/${subscriptionGroupId}`;\n const settingsPostProps = {\n method: 'PUT',\n body: detectionSettingsYaml,\n headers: { 'content-type': 'text/plain' }\n };\n try {\n const settings_result = await fetch(setting_url, settingsPostProps);\n const settings_status = get(settings_result, 'status');\n const settings_json = await settings_result.json();\n if (settings_status !== 200) {\n set(this, 'errorMsg', get(settings_json, 'message'));\n notifications.error('Save settings yaml file failed.', 'Error');\n } else {\n notifications.success('Settings saved successfully', 'Done', settings_json);\n }\n } catch (error) {\n notifications.error('Save settings yaml file failed.', error);\n }\n }", "title": "" }, { "docid": "8a0e88085ec210b21625bf79eb04de1f", "score": "0.47860295", "text": "function json_settings_save() {\n\tvar self = this;\n\tself.body.$async(self.callback(), 0).$save().$workflow('load');\n}", "title": "" }, { "docid": "24eba4e55b2217cd27183763f345983e", "score": "0.47836283", "text": "function setDescription(description) {\n let descriptionP = document.querySelector('.description p');\n\n descriptionP.textContent = description;\n }", "title": "" }, { "docid": "7d858ac09d1014c30d790ae9ab9ad13c", "score": "0.47812605", "text": "function saveToFile(){\r\n let fileContent=JSON.stringify(note_list)\r\n fs.writeFileSync(NOTESFILE,fileContent)\r\n}", "title": "" }, { "docid": "29ac1fc7e6527e5ca5c78350329f28a9", "score": "0.47729677", "text": "function createInfo(title, json){\n \n // This are the **default values** for an `info.json` file\n var movie = {\n title: title,\n description: \"No Description\",\n poster: \"\",\n duration: \"Unknown\",\n genre: \"Unknown\",\n year: \"Unknown\",\n trailer: \"\",\n director: \"\",\n actors: [],\n watched: false,\n rating: 0\n };\n \n // If we found something in iTunes, we will overwrite these\n // values.\n if(json){\n movie.title = json.trackName;\n movie.description = json.longDescription;\n movie.poster = getBigPoster(json.artworkUrl100);\n movie.duration = convertTime(json.trackTimeMillis);\n movie.genre = json.primaryGenreName;\n movie.year = getReleaseYear(json.releaseDate);\n movie.trailer = json.previewUrl;\n }\n \n fs.writeFileSync(\"./\" + title + \"/info.json\", JSON.stringify(movie));\n \n}", "title": "" }, { "docid": "96c53635711ccd26d92f4dcda1a4b55a", "score": "0.47702923", "text": "function save() {\n\t\t\n\t}", "title": "" } ]
ddb8d5d0d735dadeb8e0ae4108323f17
SearchBox functionalities filter search results using the searchBox
[ { "docid": "a78a5f8a7bbf6c2d8afcf7f7a7e317d4", "score": "0.0", "text": "function filterResult() { // https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_filter_list\n var input, filter, ul, $response, a, i, txtValue;\n input = document.getElementById(\"myInput\");\n filter = input.value.toUpperCase();\n ul = document.getElementById(\"myUL\");\n $response = ul.getElementsByTagName(\"$response\");\n for (i = 0; i < $response.length; i++) {\n a = $response[i].getElementsByTagName(\"a\")[0];\n txtValue = a.textContent || a.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n $response[i].style.display = \"\"; // $response.display, $button.display, $listItem.display or pokemon.display do not work here\n } else {\n $response[i].style.display = \"none\"; // $response.display, $button.display, $listItem.display or pokemon.display do not work here\n }\n }\n}", "title": "" } ]
[ { "docid": "432e2cdbda01dcc19fe1f03e0b7daab2", "score": "0.74949163", "text": "function search() {\n\t // get the value of the search input field\n\t var searchString = $('#search').val().toLowerCase();\n\n\t markerLayer1.setFilter(showType);\n\n\t // here we're simply comparing the 'name' property of each marker\n\t // to the search string, seeing whether the former contains the latter.\n\t function showType(feature) {\n\t return feature.properties.name\n\t .toLowerCase()\n\t .indexOf(searchString) !== -1;\n\t }\n\t}", "title": "" }, { "docid": "0588aed452c29168005ee4827d7f4e1b", "score": "0.73652613", "text": "function findResults() {\r\n filterSearchInput(document.querySelector(\".searchInput\").value);\r\n}", "title": "" }, { "docid": "98682999dc3fdc899a1089ff161d2682", "score": "0.727416", "text": "_onFilterResults(event) {\n event.preventDefault();\n let input = event.currentTarget;\n if ( this._filterTimeout ) {\n clearTimeout(this._filterTimeout);\n this._filterTimeout = null;\n }\n this._filterTimeout = setTimeout(() => this.search(input.value), 100);\n }", "title": "" }, { "docid": "9cd355c68c6a2a5271bebd7e158a9178", "score": "0.7195587", "text": "function search(searchEvent){\n\t// Set the new search string, escaping special rexexp characters\n\tvar searchTerms = searchEvent.target.value;\n\tfilterString=searchTerms.replace(/([\\^\\$\\/\\.\\+\\*\\\\\\?\\(\\)\\[\\]\\{\\}\\|])/ig, \"\\\\$1\");\n\tif(last_results && last_results.length){\n\t\t// Remove the current entries\n\t\tvar contents = document.getElementById('content');\n\t\tremoveEntriesFromContents(contents);\n\t\t// Filter entries\n\t\tvar searchResults = filterEntries(last_results);\n\t\t// Got no results?\n\t\tif (searchResults == null || searchResults.length < 1) {\n\t\t\tshowMessageInContents(contents, getLocalizedString(\"No Items Found\"),\n\t\t\t\tgetLocalizedString(\"No items matched the search terms.\"));\n\t\t}\n\t\telse{\n\t\t\t// Generate the display\n\t\t\taddEntriesToContents(contents, searchResults);\n\t\t}\n\t\t// update the scrollbar so scrollbar matches new data\n\t\trefreshScrollArea();\n\t}\n}", "title": "" }, { "docid": "eaa03a225a7db20451a1d3447d982d84", "score": "0.71895975", "text": "function searchWorksBar() {\n $(\".index-search-input\").on(\"keyup\", function() {\n var value = $(this).val().toLowerCase();\n $(\".filter\").filter(function() {\n $(this).toggle($(this).text().toLowerCase().indexOf(value) != -1);\n })\n })\n}", "title": "" }, { "docid": "b29a561d258b31e631434365cfb2e6ac", "score": "0.7169426", "text": "function searchHintHandler() {\n\n var _rEscapeChars = /\\/|\\\\|\\.|\\||\\*|\\&|\\+|\\(|\\)|\\[|\\]|\\?|\\$|\\^/g,\n _rMatch = /[A-Z]?[a-z]+|[0-9]+/g,\n _keys = [\n 13,\n 9\n ],\n $_search = $('.search-bar'),\n $_searchContainer = $('.search-container');\n\n $_search.on(\"keydown\", function (e) {\n\n var barAttr = $(this).attr('data-search'),\n $_result = $(`.search-result[data-search='${barAttr}'] `),\n _resultPlaceholder = $_result.val();\n\n if (_keys.indexOf(e.keyCode) !== -1) {\n $(this).val($_result.val());\n return false;\n }\n\n if ($(this).val() == '') {\n $_result.val('');\n }\n\n }).on(\"keyup\", function () {\n\n var array = [],\n value = $(this).val().toLowerCase(), // .replace( _rEscapeChars, \"\" )\n regex = new RegExp(\"^\" + value, \"i\"),\n matches = [],\n barAttr = $(this).attr('data-search'),\n $_arrayItems = $(`.filter-block[data-playlist='${barAttr}'] .filter-title`),\n $_playlistItems = $(`.filter-block[data-playlist='${barAttr}'] li`),\n $_result = $(`.search-result[data-search='${barAttr}'] `),\n _resultPlaceholder = $_result.val();\n\n for (let s = 0; s < $_arrayItems.length; s++) {\n if ($_arrayItems.eq(s).attr(\"title\")) {\n array.push([$_arrayItems.eq(s).text(), $_arrayItems.eq(s).attr(\"title\")]);\n } else {\n array.push([$_arrayItems.eq(s).text()]);\n }\n }\n\n var _results = array,\n _length = _results.length;\n\n //Go through each list item and hide if not match search\n $_playlistItems.each(function () {\n if ($(this).find('.filter-title').text().toLowerCase().indexOf(value) != -1) {\n $(this).show();\n } else {\n if ($(this).find('.filter-title').attr(\"title\")) {\n if ($(this).find('.filter-title').attr(\"title\").toLowerCase().indexOf(value) != -1) {\n $(this).show();\n } else {\n $(this).hide();\n }\n } else {\n $(this).hide();\n }\n\n }\n\n });\n if ($(this).val() == '') {\n $_playlistItems.show();\n }\n\n if (value) {\n for (var i = _length; i--;) {\n if (regex.test(_results[i][0])) {\n matches.push(_results[i][0]);\n } else {\n $_result.val(\"\");\n }\n\n if (regex.test(_results[i][1])) {\n matches.push(_results[i][1]);\n } else {\n $_result.val(\"\");\n }\n\n }\n\n if (matches.length) {\n for (var i = matches.length; i--;) {\n $_result.val(matches[i].replaceAt(0, $(this).val()));\n }\n }\n } else {\n $_result.val(_resultPlaceholder.replaceAt(0, $(this).val()));\n }\n\n if ($(this).val() == '') {\n $_result.val('');\n }\n\n });\n\n }", "title": "" }, { "docid": "e392b12dea342a04e13534ef920d6a81", "score": "0.7165007", "text": "searchHandler(event) {\n this.closeItem();\n let query = event.target.value.toLowerCase(),\n displayData = DATA.filter(\n item =>\n item.title.toLowerCase().indexOf(query) !== -1 ||\n item.description.toLowerCase().indexOf(query) !== -1\n );\n const state = this.state;\n state.displayData = displayData;\n this.startLoading(state);\n }", "title": "" }, { "docid": "2a7c076b5123bd8cdad0c21930bdc536", "score": "0.7163553", "text": "_onFilterResults(event) {\n event.preventDefault();\n let input = event.currentTarget;\n\n // Define filtering function\n let filter = query => {\n this.element.find('.directory').each((i, ol) => {\n for ( let li of ol.children ) {\n li.style.display = !query.test(li.dataset.path) ? \"none\" : \"\";\n }\n })\n };\n\n // Filter if we are done entering keys\n let rgx = RegExp.escape(encodeURIComponent(input.value));\n let query = new RegExp(rgx, \"i\");\n if ( this._filterTimeout ) {\n clearTimeout(this._filterTimeout);\n this._filterTimeout = null;\n }\n this._filterTimeout = setTimeout(() => filter(query), 100);\n }", "title": "" }, { "docid": "0fb4ff3a88babde78b37c11566ef14db", "score": "0.7151743", "text": "searchText(results) {\n this.$parent.$emit('search-text', results, this.getSearchName(this.filterType));\n }", "title": "" }, { "docid": "192f005bc8a9afd6bf473971427f2570", "score": "0.71007234", "text": "function search(evt) {\n var q = $searchInput.val();\n if (q === searchList.q) return true;\n searchList.q = q;\n words = _.compact(q.split(/\\W/));\n if (!words.length) return searchListHide(evt, false);\n var re = new RegExp(_.map(words, _.escapeRegExp).join('.*'), \"i\");\n var results = _.filter(searchData, function(o) {\n return (o.text.search(re) >= 0 || o.href.search(re) >= 0);\n })\n if (!results.length) return searchListHide(evt, false);\n searchList.$list\n .addClass('show')\n .html(_.map(results, renderSearchItem).join(''));\n\n searchList.length = results.length;\n return true;\n }", "title": "" }, { "docid": "3027efd75a622a8495f0b23bcb17e7d7", "score": "0.7082434", "text": "function advancedInputSearch(e) {\n e.stopPropagation();\n let query = e.target.value.toLowerCase();\n let topic = e.target.id;\n let possibleResults;\n if (topic === \"ingredientsSearchInput\") {\n possibleResults = ingredientsArrayNoDuplicates;\n } else if (topic === \"applianceSearchInput\") {\n possibleResults = applianceArrayNoDuplicates;\n } else if (topic === \"ustensilsSearchInput\") {\n possibleResults = ustensilsArrayNoDuplicates;\n }\n\n if (query.length === 0) {\n possibleResults.forEach((element) => {\n document.querySelector(`[data-filter=\"${element}\"]`).style.display =\n \"block\";\n });\n } else {\n for (let i = 0; i < possibleResults.length; i++) {\n const domElement = document.querySelector(\n `[data-filter=\"${possibleResults[i]}\"]`\n );\n domElement.style.display = \"none\";\n if (searchPattern(query, possibleResults[i])) {\n domElement.style.display = \"block\";\n }\n }\n }\n}", "title": "" }, { "docid": "1f448d34ed788136324227fe0b426f0e", "score": "0.7056413", "text": "function search() {\r\n var input, filter, ul, li, i, txtValue;\r\n input = searchBar;\r\n filter = input.value.toLowerCase();\r\n ul = list;\r\n li = ul.getElementsByTagName('li');\r\n\r\n for(i =0; i < li.length; i++)\r\n {\r\n txtValue = li[i].textContent || li[i].innerText;\r\n if(txtValue.toLowerCase().indexOf(filter) > -1)\r\n {\r\n li[i].style.display = '';\r\n }\r\n else\r\n {\r\n li[i].style.display ='none';\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3db5a1b7790e9ce557d5bf42809559f0", "score": "0.7007795", "text": "search(e) {\n let results_el = document.getElementById(\"search_results\");\n results_el.style.display = \"none\";\n let search_input_el = document.getElementById(\"search_input\");\n let search_value = search_input_el.value.toLowerCase();\n console.log(\"search\", search_input.value);\n if (!this.airports.available) {\n return;\n }\n if (search_value.length < 3) {\n return;\n }\n this.airports.search(search_value, results_el);\n }", "title": "" }, { "docid": "215475c9ef66fee48a4d2d5b4a3873ca", "score": "0.6989737", "text": "function site_search() {\n var results = document.getElementById(\"site-search-results\");\n var searchstring = document.getElementsByClassName('site-searchstring');\n var item = document.getElementsByClassName(\"site-search-result-item\");\n var title = document.getElementsByClassName(\"site-search-result-title\");\n \n var input = document.getElementById('site-search-input');\n var filter = input.value.toUpperCase();\n\n if (input.value.length > 0) {\n results.style.display = \"block\";\n }\n else {\n results.style.display = \"none\";\n }\n\n for (i = 0; i < item.length; i++) {\n r = searchstring[i].innerHTML;\n\n\n if (r.toUpperCase().indexOf(filter) > -1){\n item[i].style.display = \"block\";\n } \n else {\n item[i].style.display = \"none\";\n }\n };\n}", "title": "" }, { "docid": "d357c8d42536c28aeb4658d1b598bdb0", "score": "0.6983956", "text": "function search() {\n var list = document.getElementsByClassName('searchstring');\n var item = document.getElementsByClassName('item');\n var input = document.getElementById('searchbox');\n var filter = input.value.toUpperCase(); \n var string;\n\n for (i = 0; i < item.length; i++) {\n\n string = list[i].innerHTML;\n\n if (\n string.toUpperCase().indexOf(filter) > -1\n )\n {\n item[i].style.display = \"block\";\n } else {\n item[i].style.display = \"none\";\n }\n }\n }", "title": "" }, { "docid": "7302551057943bac96bf27f1db2ef6c9", "score": "0.69630563", "text": "function bindSearchFilterType(){\n $('.search-filters-js').keyup(function(){\n var text = $(this).val().toLowerCase(),\n selectBox = $(this).closest('.modal-body');\n\n selectBox.find('label').each(function(i, label){\n if (text == ''){\n $(label).closest('.checkbox').show()\n }else {\n if ($(label).text().toLowerCase().indexOf(text) >= 0){\n $(label).closest('.checkbox').show()\n } else {\n $(label).closest('.checkbox').hide()\n }\n }\n })\n })\n }", "title": "" }, { "docid": "fef8dca6d5b369fe97c97c1949baa4c3", "score": "0.6961936", "text": "searchFilter() {\r\n const s = this.searchText.toLowerCase();\r\n\r\n // default to tab if search is empty\r\n if (s === \"\") {\r\n this.setDisplayData(this.tab);\r\n this.noDisplayData();\r\n return;\r\n }\r\n let lang = \"lang:\";\r\n\r\n // search page, key, and translatedText\r\n this.displayData = this.allData.filter(\r\n (e) =>\r\n e.page.toLowerCase().includes(s) ||\r\n e.key.toLowerCase().includes(s) ||\r\n e.translatedText[this.user.languageTo]?.toLowerCase().includes(s) ||\r\n e.translatedText[this.user.languageFrom]?.toLowerCase().includes(s) ||\r\n lang.concat(Object.keys(e.translatedText).join(lang)).includes(s)\r\n );\r\n\r\n this.noDisplayData();\r\n }", "title": "" }, { "docid": "fefc8ef19559f453d77ce311e2ede5f4", "score": "0.69519794", "text": "function listFilter()\n{\n $(\"#SearchPlayerText\")\n .change(function () {\n var search = $(this).val();\n //wait for atleast 3 chars\n if (search.length > 3) {\n app.CustomSearch($(\".nav-item\"), search);\n } else if (search.length === 0) {\n $(\".nav-item\").show();\n }\n return false;\n })\n .keyup(function () {\n // fire the above change event after every letter\n $(this).change();\n }, 500);\n}", "title": "" }, { "docid": "3eedd1cf59fd2320dfb90c9e40283c15", "score": "0.694898", "text": "function search() {\n\n if(ls.results.pager.updateHistory) {\n updatePageHistory(); \n }\n \n if(ls.facetsApplied.updateHistory) {\n updateFacetHistory();\n }\n\n\n local.isGeoSearch = false;\n\n // show Loader\n if(ls.results.loaderContainer)\n $(ls.results.loaderContainer).fadeIn();\n\n // remove pager\n if (ls.results.pager.container)\n $(ls.results.pager.container).empty().fadeOut();\n\n // results message\n\n if (ls.results.resultsMsgContainer)\n $(ls.results.resultsMsgContainer).empty().fadeOut();\n\n local.pagerRendered = false;\n\n if (local.waitingLatLong)\n return;\n\n //Check if it's geo search\n if (ls.geoSearch.lat && ls.geoSearch.lng) {\n debug('Geo searching...');\n debug(ls.geoSearch.lat);\n debug(ls.geoSearch.lng);\n local.isGeoSearch = true;\n if (!ls.searchParams.orderby || ls.searchParams.orderby.indexOf(ls.geoSearch.fieldName) == 0) {\n var orderby = \"geo.distance(\" + ls.geoSearch.azureFieldName;\n orderby += \", geography'POINT(\" + ls.geoSearch.lng + \" \" + ls.geoSearch.lat + \")')\";\n if (ls.searchParams.orderby && ls.searchParams.orderby.indexOf(' desc') != -1) orderby += ' desc';\n ls.searchParams.orderby = orderby;\n }\n }\n\n var f = null;\n //Save the current filter\n \n var previousFilter = ls.searchParams.filter;\n ls.searchParams['facets'] = [];\n if( ls.facetsDictionary ) {\n $(Object.keys(ls.facetsDictionary)).each(function(k,v){\n var fieldParams = null;\n if(typeof ls.facetsDictionary[v] == 'object' && ls.facetsDictionary[v].params) \n fieldParams = ls.facetsDictionary[v].fieldName + ',';\n fieldParams += ls.facetsDictionary[v].params;\n ls.searchParams['facets'].push(fieldParams);\n });\n }\n\n //Apply Facet Filters\n if (ls.facetsSelected.length > 0) {\n var facetFilter = [];\n ls.facetsSelected.forEach(function (item, index) {\n var p = item.split('||');\n // apply filter and escape single quotes in value (')\n facetFilter.push(p[0] + '/any(m: m eq \\'' + p[1].replace(/[']/gi,'\\'\\'') + '\\')');\n });\n\n f = facetFilter.join(' ' + ls.facets.searchMode + ' ');\n\n if (previousFilter)\n f = ls.searchParams.filter + ' ' + ls.facets.searchMode + ' ' + f;\n\n }\n\n //Apply geo distance filter if configured\n if (local.isGeoSearch && ls.geoSearch.maxDistance) {\n debug('Filter Geo searching by distance : ' + ls.geoSearch.maxDistance);\n var geoFilter = \"geo.distance(\" + ls.geoSearch.azureFieldName + \", geography'POINT(\" + ls.geoSearch.lng + \" \" + ls.geoSearch.lat + \")') le \" + ls.geoSearch.maxDistance;\n if(f) {\n f += ' ' + ls.facets.searchMode + ' ' + geoFilter\n } else {\n f = geoFilter;\n if (previousFilter)\n f = ls.searchParams.filter + ' ' + ls.facets.searchMode + ' ' + f;\n }\n } \n\n var date_f = \"\";\n if(local.dateSearch) {\n if(local.fromDate) {\n date_f = ls.dates.fields.from.indexField + ' ge ' + local.fromDate.toISOString(); \n } \n\n if (local.toDate) {\n if (local.fromDate)\n date_f += ' ' + ls.facets.searchMode + ' ';\n date_f += ls.dates.fields.to.indexField + ' le ' + local.toDate.toISOString(); \n } \n\n if (f) {\n f += ' ' + ls.facets.searchMode + ' ' + date_f;\n \n } else {\n f = date_f;\n }\n }\n\n if (f)\n ls.searchParams.filter = f;\n\n\n var settings = {\n \"crossDomain\": true,\n \"url\": ls.azureSearch.url,\n \"method\": \"POST\",\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\",\n \"api-key\": ls.azureSearch.key,\n \"Cache-Control\": \"no-cache\",\n },\n \"data\": JSON.stringify(ls.searchParams)\n }\n\n $.ajax(settings).done(function (response) {\n local.totalResults = ls.searchParams.count && response['@odata.count'] ? response['@odata.count'] : -1;\n local.totalPages = Math.ceil(local.totalResults / ls.results.pager.pageSize);\n ls.onResults.call(response, local);\n });\n\n //Return the filter to the original state\n ls.searchParams.filter = previousFilter;\n }", "title": "" }, { "docid": "140389a7ba1c87b66c3ad6433eff27f2", "score": "0.6947355", "text": "function search(){saveState();self.filtered=self.gridController.rawItems.filter(self.filterFunc);self.gridController.doFilter();}", "title": "" }, { "docid": "e40aa402aded0994f4450ed939f1c61b", "score": "0.69392025", "text": "function onSearchInput() {\n var filter = $('search').value;\n rebuildAppList(filter);\n reloadAppDisplay();\n}", "title": "" }, { "docid": "ce7121bf65224dca10dec554d9bc8eee", "score": "0.6916447", "text": "function searchFunction() {\n var input, filter, ul, li, a, i, txtValue;\n input = document.getElementById(\"searchFieldName\");\n filter = input.value.toUpperCase();\n ul = document.getElementById(\"msgBox\");\n li = ul.getElementsByClassName(\"gridContainer\");\n for (i = 0; i < li.length; i++) {\n a = li[i].getElementsByTagName(\"h1\")[0];\n txtValue = a.textContent || a.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n li[i].style.display = \"\";\n } else {\n li[i].style.display = \"none\";\n }\n }\n }", "title": "" }, { "docid": "ad5d93838910da425cc4a30c57cfe6c8", "score": "0.6884215", "text": "function querySearch (query) {\n // returns list of filtered items\n return query ? $scope.choices.filter( createFilterFor(query) ) : [];\n }", "title": "" }, { "docid": "ed46b6b860e6343d17d376881c4a5a50", "score": "0.6875124", "text": "function search() {\n \n }", "title": "" }, { "docid": "c53b1dde2e4289dea8d2de28c1315894", "score": "0.6871703", "text": "filter() {\n let term = this.$el.find('[data-action=\"filter\"]').val();\n if (term !== this.state.search) {\n this.state.search = term || '';\n this.render();\n }\n }", "title": "" }, { "docid": "b86934c134a3afc6105e241fde13ff78", "score": "0.68598354", "text": "function filterQuestions() {\n var searchTerm = searchInput.value;\n if(searchTerm.length>1){ //no filter if the search field is empty\n var filter = questions.filter(function(questionObj) {\n if (questionObj.subject.indexOf(searchTerm) >= 0 || questionObj.question.indexOf(searchTerm) >= 0) { //if the question subject/text contains the search keyword\n return true;\n }\n else {\n return false;\n }\n });\n updateLeftPane(filter); //update the left pane to display only the filtered questions\n }\n else {\n initializePage(); //standard layout with all questions\n }\n }", "title": "" }, { "docid": "3d0081d167af0593aeac006897e7c7b6", "score": "0.6852305", "text": "function search(data){\n const searchBar = document.getElementById(\"searchBar\");\n \n searchBar.addEventListener(\"input\", async (event) => {\n event.preventDefault;\n let userInput = searchBar.value;\n \n let filtered = await filterData(data, userInput);\n \n render(filtered);\n });\n }", "title": "" }, { "docid": "390c2429a479c8223d6341a804e6904a", "score": "0.68520284", "text": "function filter(){\n console.log('keypress')\n var search_text = $('#search').val().toLowerCase();\n\n $('#org_results').find('.org_item').each(function(i,org_item){\n var show = 0;\n //check for match in each category, highlight match\n console.log($(org_item).find('.organization'))\n $(org_item).find('.category').each(function(i,cat_item){\n if (search_text && $(cat_item).text().search(search_text) >=0) {\n show = 1;\n $(cat_item).removeClass('label-default')\n $(cat_item).addClass('label-warning')\n }\n else {\n $(cat_item).removeClass('label-warning')\n $(cat_item).addClass('label-default')\n }\n })\n\n //check for match in name\n var name_str = $(org_item).children('.org_name').text().toLowerCase();\n if (name_str.search(search_text) >= 0){\n show = 1\n }\n\n //hide or show\n if (show) {\n $(org_item).show()\n }\n else {\n $(org_item).hide()\n }\n })\n}", "title": "" }, { "docid": "f741cc03b5846fff4690bda507b12a57", "score": "0.68518645", "text": "function processSearch() {\n let userSearch = $(\".search-box\").val().trim();\n // produce search results\n runApiCall(userSearch);\n let uSearch = new SearchedItem(userSearch);\n // add new search to gSearch.s array\n gSearch.s.push(uSearch);\n // reset search box text to placeholder\n $(\".search-box\").val(\"\");\n displayButtons();\n }", "title": "" }, { "docid": "c2e24f50341598adc4ff1b7baba92c6f", "score": "0.68493146", "text": "function filterData() {\n\tvar value = document.getElementById('searchInput').value;\n\tfilteredData = jsonData.filter(function (entry) {\n \treturn entry.name.toUpperCase().includes(value.toUpperCase());\n\t});\n\tif (filteredData) {\n\t\tcurrentData = filteredData;\n\t\tshowMoreRows();\n\t} else {\n\t\tcurrentData = jsonData;\n\t\tshowMoreRows();\n\t}\n}", "title": "" }, { "docid": "f58ec5a9810c93165b5e1b29cf14ba83", "score": "0.6831934", "text": "function searchByName (event){\n const searchTerm = event.target.value;\n const arrNameCheck = productsCoffee.filter(filterByName, searchTerm);\n renderProducts(arrNameCheck);\n console.table(arrNameCheck);\n}", "title": "" }, { "docid": "b8fea4b145cb1a06e79ce456c75e09a8", "score": "0.682103", "text": "filterDataResultsByQuery() {\n const searchQuery = this.state[\"search-query\"];\n\n if (searchQuery === \"\") return this.state.rawSearchData;\n\n const validDataElements = this.state.rawSearchData.filter(dataEntry => {\n return dataEntry.data.toLowerCase().includes(searchQuery.toLowerCase());\n });\n\n return validDataElements;\n }", "title": "" }, { "docid": "6340ed0698044ebe0e409ad18d363f17", "score": "0.6819435", "text": "function changeSearchFilterBy(e) {\n filterby = e.target.value\n searchContacts()\n}", "title": "" }, { "docid": "d563361ca015aaca82e706c6233d1613", "score": "0.68150234", "text": "function searchMeme(el) {\n var keyword = el.value;\n if (keyword === '') {\n renderItems(gItems);\n return;\n }\n filterMeme(keyword, el);\n}", "title": "" }, { "docid": "bc227957bc773621750d1ff78c49e14e", "score": "0.6814632", "text": "function initFiltering() {\n $(\"#style-search-field\").bind('click focus', function(e) {\n if (e.target.value == \"Search...\") {\n e.target.className = \"\";\n e.target.value = \"\";\n }\n else {\n Utils.selectAllText(e.target);\n }\n })\n\n .keyup(function(e) {\n filterStyles(e.target.value);\n });\n}", "title": "" }, { "docid": "97ab70f42677a564062061978aa6d12d", "score": "0.68130934", "text": "function filterSearchInput(searchText) {\r\n\r\n // Iterate across all results, adding results which match the search filter\r\n for(var i = 0; i < result.length; i++) {\r\n var anyMatched = false;\r\n for (var j=0; j < result[i].length; ++j) {\r\n if (doesInputMatchFilter(result[i][j], searchText)) {\r\n anyMatched = true;\r\n break;\r\n }\r\n }\r\n\r\n // if anyMatched is true display matches, else set display to none\r\n if (anyMatched) {\r\n document.getElementById(\"result\" + (i + 1)).style.display = \"block\";\r\n } else {\r\n document.getElementById(\"result\" + (i + 1)).style.display = \"none\";\r\n } \r\n\r\n // if input is empty set results display to none\r\n if (searchInput.value == \"\") {\r\n document.getElementById(\"result\" + (i + 1)).style.display = \"none\";\r\n }\r\n }\r\n // if no results are set to display, show no match message, else set message to display none\r\n var allResultsHidden = true;\r\n var result1 = document.getElementById(\"result1\").style.display;\r\n var result2 = document.getElementById(\"result2\").style.display;\r\n var result3 = document.getElementById(\"result3\").style.display;\r\n var result4 = document.getElementById(\"result4\").style.display;\r\n var result5 = document.getElementById(\"result5\").style.display;\r\n\r\n if ((result1 == \"block\") || (result2 == \"block\") || (result3 == \"block\") || (result4 == \"block\") || (result5 == \"block\")) {\r\n allResultsHidden = false;\r\n } else {\r\n allResultsHidden = true;\r\n }\r\n if (allResultsHidden) {\r\n document.querySelector(\".no_result\").style.display = \"block\";\r\n } else {\r\n document.querySelector(\".no_result\").style.display = \"none\";\r\n }\r\n}", "title": "" }, { "docid": "ffe1cb1c5af89e8e43120c7fe93c5f74", "score": "0.6809607", "text": "function _searchData(text) { \n setRows(data.filter(row => Object.values(row).join(' ').toLowerCase().includes(text.toString().toLowerCase()))); //-> Join values to before filter\n setSearch(text);\n setPage(0);\n }", "title": "" }, { "docid": "c20308344a1fbc9807d1ac7978b8daa5", "score": "0.6789942", "text": "function SearchBar() {}", "title": "" }, { "docid": "b1f432bc43594496f0f70940c82cbf39", "score": "0.6789826", "text": "doSearch(text) {\n if ( text ) {\n var args = {};\n if (this.form.animated.isChecked) {\n args.animated = true;\n }\n if (this.form.rigged.isChecked) {\n args.rigged = true;\n }\n this.search(text, args);\n }\n this.clearForm();\n }", "title": "" }, { "docid": "18dea738ae1b7a7a908d4edf4ac6992a", "score": "0.6781165", "text": "search(search_value, results_el) {\n let parent = this;\n const RESULTS_MAX = 100;\n let results = [];\n for (let box_id in this.airports_data.box_coords) {\n let airports = this.airports_data.boxes[box_id];\n for (let i=0; i<airports.length; i++) {\n let airport = airports[i];\n let type = airport[this.KEY_TYPE];\n if (type.includes(\"airport\")) {\n let ident = airport[this.KEY_IDENT];\n let name = airport[this.KEY_NAME].replaceAll('\"',\"\"); // Remove double quotes if original name includes those.\n if ((ident+name).toLowerCase().includes(search_value)) {\n results.push(airport);\n if (results.length > RESULTS_MAX) {\n break;\n }\n }\n }\n }\n if (results.length > RESULTS_MAX) {\n break;\n }\n }\n if (results.length>0) {\n while (results_el.firstChild) {\n results_el.removeChild(results_el.lastChild);\n }\n results_el.style.display = \"block\";\n for (let i=0;i<results.length;i++) {\n let airport = results[i];\n let result_el = document.createElement(\"div\");\n result_el.className = \"search_result\";\n result_el.onclick = (e) => {\n results_el.style.display = \"none\";\n parent.clicked(parent, airport);\n }\n result_el.innerHTML = (airport[this.KEY_IDENT]+\" \"+airport[this.KEY_NAME]).replaceAll(\" \",\"&nbsp;\");\n results_el.appendChild(result_el);\n }\n }\n console.log(\"Search results\", results.length);\n }", "title": "" }, { "docid": "19d2f47d81af694723396338a4da1baf", "score": "0.67784625", "text": "function search() {\n // Listener for every keyup\n searchbox.addEventListener(\"keyup\", function () {\n // Reset count and release timer\n var count = 1;\n clearInterval(timer);\n // Start count of 0.8 sec for do the filter\n var timer = setInterval(function () {\n count--;\n if (count == 0) {\n // Get text from searchbox item (id of tag)\n var searchText = searchbox.value;\n // Filter data by searchText\n filter(searchText);\n }\n // 800 = 0.8 sec\n }, 800);\n });\n}", "title": "" }, { "docid": "06e85a48348262895960bd9bdeb54f30", "score": "0.67756", "text": "function handleSearchFieldInput(e) {\n var fItems = self.options.items.filter(function(i) {\n return i.toLowerCase().includes(e.target.value.toLowerCase());\n });\n createList(fItems, self.activeItem, e.target.value.toLowerCase());\n }", "title": "" }, { "docid": "ae3aabbc4ad72768492e703fee5b7242", "score": "0.6774577", "text": "function searchFilter(results){\n\tvar options = {\n\t\tkeys:['category', 'title', 'summary', 'location'],\n\t\tthreshold: .1\n\t}\n\tvar f = new Fuse(results, options);\n\tvar filtered = f.search($('#fuzzySearch').val());\n\tif (filtered.length == 0){\n\t\tif($('#fuzzySearch').val() == \"\"){\n\t\t\tdata = displaySecrets(results)\n\t\t}\n\t\telse{\n\t\t\tdata = \"<h1>No Secrets Found</h1>\"\n\t\t}\n\t}\n\telse{\n\t\tdata= displaySecrets(filtered);\n\t}\n\t$('#list').html(data);\n}", "title": "" }, { "docid": "8ad07313dce92521d5332af3c3997691", "score": "0.67737424", "text": "function searchFunction() {\n let input, filter, table, tr, td, txtValue;\n input = document.getElementById(\"coffee-search\");\n filter = input.value.toUpperCase();\n table = document.getElementById(\"coffee-table\");\n tr = table.getElementsByClassName(\"tr\");\n for (let i = 0; i < tr.length; i++) {\n td = tr[i].getElementsByClassName(\"td\")[0];\n if (td) {\n txtValue = td.textContent || td.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n tr[i].style.display = \"\";\n } else {\n tr[i].style.display = \"none\";\n }\n }\n }\n }", "title": "" }, { "docid": "43a35ceb1757d6e3482cc5fee8e62111", "score": "0.67639613", "text": "function search() {\n // Removes defaults\n event.preventDefault();\n\n // Puts an overlay over the splash screen to display tracks\n overlayTracks(\"#splash-screen\");\n\n // Takes the query depending on which search box is currently showing (Either the top nav, or the splash query)\n // q is the query\n if ($('#query-form').css('display') == 'none') {\n q = $('#top-search-box').val();\n }\n else {\n q = $(\"#query-input\").val(); \n }\n // Begins Youtube and SoundCloud search\n youTubeSearch();\n soundCloudSearch();\n // Adds the top search bar when it does not exist yet\n if(!$('#top-search-form').length) {\n insertTopSearchBar();\n }\n}", "title": "" }, { "docid": "6243e50d57669617b623c70448dc2e19", "score": "0.67616695", "text": "function setSearchFilter(event) {\n setPageNumber(1);\n if (searchTimeout) {\n clearTimeout(searchTimeout);\n }\n if (event.target.value.length === 0 || event.target.value.length >= 2) {\n const value = event.target.value;\n let timeout = setTimeout(() => {\n setSearchText(value);\n }, 300);\n setSearchTimeout(timeout);\n }\n }", "title": "" }, { "docid": "465010271a0519eeb811d51fefc52435", "score": "0.67560965", "text": "function makeSearch() {\n if (ctrl.searchQuery) {\n if (ctrl.selectedUser !== null) {\n resetSearch();\n\n // Filter search results\n angular.forEach(ctrl.selectedUser.rels.postsList, function (post) {\n post.isItemFitQuery = lodash.includes(post.title, ctrl.searchQuery) || lodash.includes(post.body, ctrl.searchQuery);\n });\n\n $rootScope.$broadcast('search-posts_make-search', {\n isItemPostsShown: true,\n userId: ctrl.selectedUser.id\n });\n } else {\n var posts = lodash.chain(ctrl.usersList)\n .map(function (userItem) {\n return lodash.get(userItem, 'rels.postsList');\n })\n .flatten()\n .value();\n\n // Filter search results\n angular.forEach(posts, function (post) {\n post.isItemFitQuery = lodash.includes(post.title, ctrl.searchQuery) || lodash.includes(post.body, ctrl.searchQuery);\n });\n\n $rootScope.$broadcast('search-posts_make-search', {isItemPostsShown: true});\n }\n } else {\n resetSearch();\n }\n }", "title": "" }, { "docid": "79adf81a2509a1b8dd38f23c5b09faef", "score": "0.675514", "text": "contactsFilter() {\n const search = this.search.toLowerCase();\n\n this.searchContacts = this.contacts.filter((element) =>{\n if(search == \"\"){\n element.visible = true;\n }\n else {\n let visibility = false;\n const iLetters=[];\n const e = element.name.toLowerCase()\n\n // pusho in iLetters gli indici delle lettere uguali alla prima dell'input\n for(let i = 0; i < e.length; i++) {\n if (e[i] == search.charAt(0)) {\n iLetters.push(i);\n }\n };\n\n // per ogni indice che rispetta la condizione ottengo una sottostringa\n iLetters.forEach((i) => {\n // controllo per non superare la lungezza dell'array\n if( (i + search.length ) <= element.name.length && !visibility) {\n\n if(element.name.toLowerCase().substring(i, i + search.length) == search) {\n visibility = true;\n }\n\n }\n });\n\n element.visible = visibility;\n }\n\n });\n }", "title": "" }, { "docid": "b989853775e24aa4b3f12c487575e3ee", "score": "0.6751036", "text": "onSeachChange(event) {\n this.clearBooks()\n\n const searchString = event.target.value\n if (searchString) this.searchBooks(searchString)\n }", "title": "" }, { "docid": "93a51749fb6eb8851e1cdcf07452b3ce", "score": "0.6746585", "text": "function filterSearch(result) {\n let search = document.querySelector('#search-input');\n const card = document.querySelectorAll(\".card\");\n const submit = document.querySelector('#search-submit');\n submit.addEventListener('click', e => {\n e.preventDefault();\n for (let i=0; i<result.length; i++) { \n if (result[i].name.first.toLowerCase().includes(search.value.toLowerCase()) ) {\n card[i].style.display = 'flex'; \n } \n else {\n card[i].style.display = 'none'; \n }\n } \n });\n}", "title": "" }, { "docid": "29265a0d519cfacd940913d0564e7e07", "score": "0.67385745", "text": "_search() {\n ItemsStore.removeAll();\n let q = document.getElementById('query').value;\n AppActions.getItems(q);\n }", "title": "" }, { "docid": "26a83d0708fbca53acafafbd994c9f6d", "score": "0.6735811", "text": "function searchInput() {\n \t\t\tvar i,\n \t\t\t item,\n \t\t\t searchText = moduleSearch.value.toLowerCase(),\n \t\t\t listItems = dropDownList.children;\n\n \t\t\tfor (i = 0; i < listItems.length; i++) {\n \t\t\t\titem = listItems[i];\n \t\t\t\tif (!searchText || item.textContent.toLowerCase().indexOf(searchText) > -1) {\n \t\t\t\t\titem.style.display = \"\";\n \t\t\t\t} else {\n \t\t\t\t\titem.style.display = \"none\";\n \t\t\t\t}\n \t\t\t}\n \t\t}", "title": "" }, { "docid": "a9e229f1b8190abbbd10e9b0af5b8bc3", "score": "0.6734296", "text": "function searchResults(e) {\n\tvar text = e.target.value.toLowerCase();\n\tvar it;\n\tvar el;\n\tvar container = $('#pac-container');\n\t// function to add element to the suggestions\n\tvar add = function(icon, cb) {\n\t\tel = $(searchElem.replace('%name%', it).replace('%icon%', icon));\n\t\tcontainer.append(el);\n\t\tel.on('click', cb);\n\t\tcontainer.css('display', 'block');\n\t}\n\t// reset container's data\n\tcontainer.html('');\n\tcontainer.css('display', 'none');\n\t// if the search string is empty, reset to initial state\n\tif (text == '') {\n\t\treset();\n\t\treturn;\n\t}\n\t// add types matching search string to the suggestions\n\tfor (idx in initialTypes) {\n\t\tit = initialTypes[idx];\n\t\tif (it.toLowerCase().indexOf(text) > -1) {\n\t\t\tadd('pac-icon-search', filterResultsType);\n\t\t}\n\t}\n\t// add names matching search string to the suggestions\n\tfor (idx in initialMarkerNames) {\n\t\tit = initialMarkerNames[idx];\n\t\tif (it.toLowerCase().indexOf(text) > -1) {\n\t\t\tadd('pac-icon-marker', filterResultsPlace);\n\t\t}\n\t}\t\n}", "title": "" }, { "docid": "cac04143a362da06807e2dd16160647b", "score": "0.6731628", "text": "function search() {\n let searchQuery = document.getElementById('product-search-filter').value.toLowerCase();\n let filterOutOutOfStock = document.getElementById('product-checkbox-filter').checked;\n if (filterOutOutOfStock) {\n let results = _products.filter(product => {\n let name = product.brand.toLowerCase();\n let status = product.status;\n return name.includes(searchQuery) && status === 'inStock';\n }); \n let sortedResults = sortResults(results)\n appendProducts(sortedResults);\n } else {\n let results = _products.filter(product => {\n let name = product.brand.toLowerCase();\n return name.includes(searchQuery);\n });\n let sortedResults = sortResults(results)\n appendProducts(sortedResults);\n }\n}", "title": "" }, { "docid": "b192ad8e3fb15a5f7affae202be5dde3", "score": "0.6726167", "text": "function search() {\n $('#panelHeading').html('<h4>Search Results</h4>');\n var input, filter, ul, li, a, i, txtValue;\n input = document.getElementById(\"myInput\");\n filter = input.value.toUpperCase();\n ul = document.getElementById(\"list\");\n li = ul.getElementsByTagName(\"li\");\n for (i = 0; i < li.length; i++) {\n a = li[i].getElementsByTagName(\"a\")[0];\n txtValue = a.textContent || a.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n li[i].style.display = \"\";\n } else {\n li[i].style.display = \"none\";\n }\n }\n}", "title": "" }, { "docid": "b75ce66d574848abccc028d08c07c27d", "score": "0.67227846", "text": "function searchResults() {\n id(\"search-term\").value = id(\"search-term\").value.trim();\n let searchTerm = id(\"search-term\").value;\n if (searchTerm.length !== 0) {\n id(\"home\").disabled = false;\n let bookList = id(\"book-list\");\n clearContainers();\n if (bookList.classList.contains(\"hidden\")) {\n removeHidden(bookList);\n }\n let errorText = id(\"error-text\");\n if (errorText.classList.contains(\"hidden\")) {\n removeHidden(errorText);\n }\n addHidden(id(\"single-book\"));\n getBooks(\"&search=\" + searchTerm);\n }\n }", "title": "" }, { "docid": "12beb45a4eeee7e0ee83d5c984156b0d", "score": "0.66849613", "text": "function onTextSearchChange(event, value)\n\t{\n\t\t_filterText = value;\n\t\tclearActive();\n\t\tupdateFilter();\n\t}", "title": "" }, { "docid": "eb282aded568866df7ab829a745b5934", "score": "0.6674879", "text": "function doSearch (fuse) {\n const value = document.getElementById('searchBox').value\n const results = fuse.search(value)\n window.resultsLength = results.length\n\n const ul = document.getElementById('searchResults')\n ul.innerHTML = ''\n\n for (let i = 0; i < results.length; i++) {\n\n const item = results[i].item\n\n var catFlag = ''\n if (item.category === 'snippet'){\n catFlag = item.category\n }\n const li = document.createElement('li')\n const link = document.createElement('a')\n link.setAttribute('href', item.url)\n link.innerHTML = \n `\n <div class=\"flex justify-between\">\n <div class=\"flex\">\n <div class=\"\">${item.title}</div>\n <div class=\"ml-2 text-sm text-gray-500\" >${catFlag}</div>\n </div>\n <div class=\"hidden md:inline\"> ${item.date}</div>\n </div>\n `\n\n li.appendChild(link)\n ul.appendChild(li)\n }\n\n if (window.focussedResult >= 0) {\n focussResult(window.focussedResult)\n }\n }", "title": "" }, { "docid": "13aaecb5d67589e6dcac292ac65c7746", "score": "0.66681296", "text": "function handleSearchInput (e) {\n const results = fuse.search(e.target.value.trim())\n\n if (e.target.value.trim() === '') {\n resultsContainer.setAttribute('aria-hidden', 'true')\n resultsContainer.removeAttribute('role')\n resultsContainer.classList.add('is-hidden')\n input.setAttribute('aria-expanded', 'false')\n return clearSearch()\n } else {\n resultsContainer.setAttribute('aria-hidden', 'false')\n resultsContainer.classList.remove('is-hidden')\n input.setAttribute('aria-expanded', 'true')\n return renderResults(results, resultsContainer)\n }\n}", "title": "" }, { "docid": "6ffc84b0241e8778fc9493b26cf65b1f", "score": "0.666134", "text": "function filterResultsPlace(e) {\n\tvar name = e.target.textContent;\n\tvar idx = markerNames.indexOf(name);\n\tvar marker = markers()[idx];\n\tvar latLng = marker.getPosition();\n\treset();\n\tmap.setCenter(latLng);\n setInfowindow(marker.title, marker);\n\tsearchResultsArray(ko.utils.arrayFilter(initialSearchResultsArray, function(el) {\n return el.name == e.target.textContent;\n }));\n $(e.target).closest('#pac-container').css('display', 'none');\n\tdocument.getElementById('pac-input').value = e.target.textContent;\n}", "title": "" }, { "docid": "680b7662f96f67186e7b42d90ac45fff", "score": "0.6651297", "text": "onSearchButtonClicked(userQuery) {\n this.liveSearch(userQuery);\n }", "title": "" }, { "docid": "249c03865412c0d8826e6cca95d9a22e", "score": "0.66504157", "text": "function filterName() {\n //sets searchText as whatever is entered in search field\n var query = $searchField.val();\n //return the overlayContents to be in sync with thumbnail ids\n sortOverlayContents();\n //for each thumbnail div\n $('.thumbnail').each(function(){\n //sets thumbId equal to the numerical id of the thumbnail\n var thumbId = $(this).attr(\"id\");\n \n if (overlayContents[thumbId].name.toLowerCase().indexOf(query.toLowerCase()) !== -1) {\n $(this).fadeIn();\n } else {\n $(this).fadeOut(\"fast\");\n }\n });\n}", "title": "" }, { "docid": "8e7f441d239b3a5cd7073ca092c41159", "score": "0.66486853", "text": "function filterShows(){\n let showList = document.querySelectorAll('#show-profile')\n let arrayOfShows = Array.from(showList)\n searchBar.addEventListener('keyup', showSelection)\n function showSelection(e){\n searchBar.innerHTML = ''\n const term = e.target.value.toLowerCase()\n arrayOfShows.forEach(film=> {\n const movieText = film.innerHTML\n if(movieText.toLowerCase().indexOf(term) != -1 ){\n film.style.display = 'block'\n } else {\n film.style.display = 'none'\n }\n })\n displayingNumOfEpisodes(filterMovies(arrayOfShows), arrayOfShows,'SHOW/S')\n }\n }", "title": "" }, { "docid": "c77500d2b546198a61d1ae9e2a1e5950", "score": "0.6645093", "text": "function search() {\n /* 3/18/2016 -- Replacement, short-hand code */\n if ($('.searchBox').hasClass('absoluteCenter')) {\n // Remove absoluteCenter effects on .searchBox\n $('.searchBox').removeClass('absoluteCenter');\n // Add postSearch effects\n $('.searchBox').addClass('sBoxPostSearch');\n $('#searchInput').addClass('siPostSearch');\n $('.searchButton').addClass('sButtonPostSearch');\n // DONE: Populate searchResults area\n searchResults();\n }\n // If .searchBox does not have class 'absoluteCenter' then this may be new search, thus necessitating a clearing of the previous search results.\n // Before calling the searchResults() function, though, it would be wise to make sure that the #searchInput field has actually changed.\n // (else) if the #searchInput field has changed...\n else if ($('#searchInput').val() != currentSearchTerm) {\n // DONE (4/2/2016) Clear search results\n $('.results').empty();\n // Populate searchResults area\n searchResults();\n } else {\n // Do nothing (for now)\n }\n}", "title": "" }, { "docid": "f53abe4c7f269e480934d96a40358e16", "score": "0.6642556", "text": "function startSearching(query)\n {\n $( '.' + settings.searchList ).each(function ()\n {\n $(this).children( settings.searchItem ).each(function ()\n {\n var elem = $(this);\n\n if (!elem.html().match(new RegExp('.*?' + query + '.*?', 'i'))) {\n\n if( settings.effect == 'fade' ){\n $(this).parent( '.' + settings.searchList ).fadeOut();\n } else {\n $(this).parent( '.' + settings.searchList ).hide();\n }\n\n } else {\n\n if( settings.effect == 'fade' ){\n $(this).parent( '.' + settings.searchList ).fadeIn();\n } else {\n $(this).parent( '.' + settings.searchList ).show();\n }\n\n return false;\n }\n\n return;\n });\n });\n }", "title": "" }, { "docid": "37686511cb6e20bff3e40a496347f855", "score": "0.66368324", "text": "searchVolunteers() {\n\n var input, filter, table, tr, td, i, txtValue;\n table = document.getElementById(\"myTable\");\n tr = document.getElementsByTagName(\"tr\");\n input = document.getElementById(\"myInput\")\n filter = this.state.search.toUpperCase();\n \n //filtering table based on characters inputted in search in real-time\n if(this.state.search != null) {\n for (var char = 0; char < tr.length; char++) {\n td = tr[char].getElementsByTagName(\"td\")[0];\n if (td) {\n txtValue = td.textContent || td.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n tr[char].style.display = \"\";\n } else {\n tr[char].style.display = \"none\";\n }\n }\n }\n }\n }", "title": "" }, { "docid": "0fe17b80a44d16cc11373d9c2bdea3cd", "score": "0.6623493", "text": "function handleSearch(uri) {\n \n\n if(uri.query) {\n // PROCESS THIS QUERY TO FILTER MOVIES ARRAY BASED ON THE USER INPUT\n var results = []\n var term = uri.query.substring(7,uri.query.length).toLowerCase().replace(/%20/g, \" \");\n for(var i = 0; i < movies.length; i++){\n if(movies[i].toLowerCase().indexOf(term) > -1){\n results.push(movies[i])\n }\n }\n return results.toString()\n } \n}", "title": "" }, { "docid": "5470f4629ce57d481391c4d416ed25c7", "score": "0.66055447", "text": "searchItem(e) {\n const request = document.getElementById(\"search-input\").value.toLowerCase()\n const renderItems = []\n for(const key in this.countries.data) {\n if(~this.countries.data[key].name.toLowerCase().indexOf(request)) {\n renderItems.push(this.countries.data[key])\n }\n }\n request === \"\" ? \"\" : this.countries.render(renderItems)\n this.showNumberOfItems(renderItems)\n return renderItems\n }", "title": "" }, { "docid": "76e8a743e3abfa53354942261f3f8e33", "score": "0.6605384", "text": "_onFilterResults(event) {\n event.preventDefault();\n let input = event.currentTarget;\n this._filter = input.value.trim();\n this._filterDebounce(this._filter, this.element);\n }", "title": "" }, { "docid": "bea463de34b7c75d0529303238cec1da", "score": "0.66035587", "text": "setupFilter() {\n // search bar place holder\n this.nodes.inputSearchBar.placeholder = getTranslationFor('SearchBarPlaceholder');\n // jump to searchBar if 's' key is pressed\n document.addEventListener('keyup', (event) => {\n if ('key' in event) {\n if (event.key === 's' && (document.activeElement && document.activeElement.nodeName !== 'INPUT')) {\n this.nodes.inputSearchBar.focus();\n }\n }\n });\n // search bar event listener\n this.nodes.inputSearchBar.addEventListener('keyup', () => {\n this.filterTabs(this.nodes.inputSearchBar.value);\n this.filterFavorites(this.nodes.inputSearchBar.value);\n });\n this.nodes.inputSearchBar.addEventListener('search', () => {\n this.filterTabs(this.nodes.inputSearchBar.value);\n this.filterFavorites(this.nodes.inputSearchBar.value);\n });\n }", "title": "" }, { "docid": "446e4ec44246ec66a3fe3c3d0f387377", "score": "0.6603523", "text": "search(){\r\n this.searchFilm();\r\n this.searchTv();\r\n this.playPause();\r\n this.scroll()\r\n }", "title": "" }, { "docid": "c637851dc96b49b366dc88734e15d371", "score": "0.66025454", "text": "search(objectname = '') {\n $(this).find('.notifyjs-wrapper').remove();\n let inp = $(this).find('input');\n if (inp.val() == '') {\n flexygo.msg.error(flexygo.localization.translate('flxsearch.pleasewrite'), inp, null, 'bottom middle');\n }\n else {\n $('#realMain').html('<div class=\"module-placeholder TopPosition\" />');\n flexygo.ui.search(inp.val(), $('#realMain').find('.module-placeholder'), objectname);\n this.closeSearch();\n if (flexygo.utils.isSizeMobile()) {\n $('#mainMenu').hide();\n }\n }\n }", "title": "" }, { "docid": "b4743c7226da1dee1c27589fd2ac65d6", "score": "0.6601189", "text": "function doingOnSearch() {\n $('search-btn').addEventListener('click', () => {\n const searchValue = $('search-box').value;\n $('fancy').innerHTML = '';\n $('search-box').value = '';\n if (searchValue === '') {\n return;\n }\n apiCall(searchValue);\n })\n}", "title": "" }, { "docid": "452128fed7abef1849a389bb32b0b153", "score": "0.6597183", "text": "function search() {\n \n // Use the form input to filter the data by date\n Object.entries(filters).forEach(([key, value]) => {\n results = data.filter(ufo => ufo[key] === value);\n })\n \n // Clear previous search result\n tbody.html(\"\");\n\n updateTable();\n\n}", "title": "" }, { "docid": "521a6a8bb31313c140221504c1a12660", "score": "0.65944797", "text": "function handleSearchChange (event) {\n\t\tconst filter = event.target.value;\n\t\tconst filteredList = this.state.result.filter((item) => {\n\t\t\tlet values = Object.values(item).join(\"\").toLowerCase();\n\t\t\treturn values.indexOf(filter.toLowerCase()) !== -1;\n\t\t});\n\n\n\t\tthis.setState({ filteredTable: filteredList });\n\t}", "title": "" }, { "docid": "a682e6a114f5b9a7a0617950beee8b99", "score": "0.6591559", "text": "function search() {\n\t\n var input = document.getElementById('textTwo');\n var filter = input.value.toUpperCase();\n var ul = document.getElementById(\"list\");\n var items = Array.from(document.getElementsByTagName(\"li\"));\n\n // Loop through all list items, and hide those who don't match the search query\n for (var i = 0; i < items.length; i++) {\n \n if (items[i].innerText.toUpperCase().indexOf(filter) > -1) {\n items[i].style.display = \"\";\n } else {\n items[i].style.display = \"none\";\n }\n }\n\t\n}", "title": "" }, { "docid": "0612e9182c50b99c6181b16f91539efe", "score": "0.6590071", "text": "onSearch() {\n const newTags = formData.searchBox.value.split(' ');\n tagsArray = tagsArray.concat(newTags);\n newArr = Array.from(new Set(tagsArray)); // create the new array without duplicated values\n this.onDisplayTags(newArr);\n this.getResult(newArr);\n formData.searchBox.value = ''; // clear the field\n }", "title": "" }, { "docid": "1f00577177b5beb15f85a0b2f0529682", "score": "0.6589679", "text": "function doLiveSearch(){\n flexContainer.innerHTML =\"\";\n const term = event.target.value.toLowerCase();\n \n let filteredEpisodes = allEpisodes.filter(episode =>{\n\n return (episode.name + episode.summary).toLowerCase().includes(term);\n \n })\n \n displayParagraph[1].innerText = `Displaying:${filteredEpisodes.length}/${allEpisodes.length}`;\n \n filteredEpisodes.forEach(episode =>{\n createEpisodeCards(episode); \n }) \n \n}", "title": "" }, { "docid": "d0f7136112b64f4b175a414da3652f0a", "score": "0.65859324", "text": "function searchText() {\n const inputText = input.value;\n const apiKey = 'c936813a136023f64ae7c570e48bb5bc';\n console.log(inputText)\n getData(inputText, apiKey);\n if (inputText != 0) {\n result.style.transition = 'all 1s';\n result.style.top = '0';\n result.style.opacity = '1';\n } else {\n result.style.top = '150px';\n result.style.opacity = '0';\n\n }\n}", "title": "" }, { "docid": "dcbbba336223e3df562cf607b267870b", "score": "0.6569035", "text": "function searchMe() {\n var input, filter, stockList, stockListItem, item, txtValue;\n input = document.getElementById(\"myInput\");\n filter = input.value.toUpperCase();\n stockList = document.getElementById(\"crypto-list\");\n stockListItem = stockList.getElementsByTagName(\"tr\");\n for (var i = 0; i < stockListItem.length; i++) {\n item = stockListItem[i];\n txtValue = item.textContent || item.innerText;\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\n stockListItem[i].style.display = \"\";\n } else {\n stockListItem[i].style.display = \"none\";\n }\n }\n}", "title": "" }, { "docid": "714d186ee35894eeec6c6dac8027e0fe", "score": "0.65602493", "text": "function search (event) {\n if (input.value == \"\") {\n for (let i = 0; i < cards.length; i++) {\n $(cards[i]).show();\n }\n } else {\n for (let j = 0; j < cards.length; j++) {\n $(cards[j]).hide();\n }\n for (let n = 0; n < nameTags.length; n++) {\n name = nameTags[n].textContent;\n if (name.indexOf(input.value.toLowerCase()) > -1) {\n cards[n].style.display = '';\n }\n }\n }\n}", "title": "" }, { "docid": "d58929b188244926c721af6b716b991b", "score": "0.65602034", "text": "function listFilter(list = $('.student-list')) {\n // We add an event listener on the search box that will fire on every keyup\n $('.search-box').on('keyup', function () {\n // We create a nice variable to use in the filter\n let filter = $(this).val();\n // If we have a filter query\n if (filter) {\n // This finds all the students that contain the value in the filter and show them\n // While hiding all the others that do not match the query\n $(list).find(\".student-details h3:not(:contains(\" + filter + \"))\").parent().parent().addClass('filtered').removeClass('is-visible').hide();\n $(list).find(\".student-details h3:contains(\" + filter + \")\").parent().parent().removeClass('filtered').addClass('is-visible').show();\n // else, if the filter is empty\n } else {\n $(list).find(\".student-details h3:contains(\" + filter + \")\").parent().parent().removeClass('filtered').addClass('is-visible').show();\n }\n // Now we call the functions again with new parameters, namely to show only the items that have not been filtered.\n showPage($('.student-item.is-visible'));\n createPagination($('.student-item.is-visible').length);\n navigatePage($('.student-item.is-visible'));\n // console.log('How many have not been filtered out: ' + $('.student-item').not('.filtered').length);\n })\n}", "title": "" }, { "docid": "18632ed176b7715a1ab455a86a3e55fc", "score": "0.655246", "text": "function filterMarkers() {\n var str = \"\";\n self.listArray.removeAll();\n for(var i = 0; i < markers.length; i++) {\n for(var j = 0; j < markers[i].type.length; j++) {\n str = markers[i].type[j].substring(0, self.searchQuery().length);\n if(str === self.searchQuery().toLowerCase()) {\n markers[i].setMap(map);\n self.listArray.push(markers[i]);\n break;\n }else{\n markers[i].setMap(null);\n }\n }\n }\n }", "title": "" }, { "docid": "fea06b92b7f3e700f2ded1439086947d", "score": "0.654934", "text": "onSearch(e) {\n\n const query = e.target.value\n\n if (query.length < 2) return\n\n\n }", "title": "" }, { "docid": "1c89314b1d89ea043e425a636b7ef887", "score": "0.65474355", "text": "function doesInputMatchFilter(result, searchText) {\r\n return result.toLowerCase().indexOf(searchText.toLowerCase()) != -1\r\n}", "title": "" }, { "docid": "06396173d9f2b6fe9d21eba5fb3d04ff", "score": "0.65461683", "text": "function searchFunction(e) {\n let searchString = e.target.value.toLowerCase();\n let filteredInput = allEpisodes.filter((char) => {\n return (\n char.name.toLowerCase().includes(searchString) ||\n char.summary.toLowerCase().includes(searchString)\n );\n });\n mainElem.innerHTML = \"\";\n makePageForEpisodes(filteredInput);\n episodeCount(filteredInput);\n}", "title": "" }, { "docid": "7f9556587ee73dbd4d0b9d41bc91c122", "score": "0.653479", "text": "clickSearchBox(event) {\n if (!this.isSearching()) {\n this.startSearching();\n }\n }", "title": "" }, { "docid": "b4581dd77c99a05c197465130a654cd0", "score": "0.65320104", "text": "function filterPeople(){\n // on typing anything filter's according to site text\n // toggles the display on the basis of the filter\n // (if search term found or not in the site name)\n // if true show's the accordion item\n // if false hides the accordion item\n $(\"#peopleSearch\").filterElements({\n\t\t\tparentElementWrapper: \"#accordionPeople\",\n\t\t\tchildElementToFilter: 'h3',\n\t\t\tcaseInsensitive: true,\n\t\t\tcontrolNext: true // controls the display of text content after each h3 element in the accordion\n })\n .css(\"color\", \"#dc3545\")\n .css(\"font-weight\", \"bold\"); // to show chaining on the custom plugin call\n }", "title": "" }, { "docid": "51ce4f211fc0a196049ef076eea92b24", "score": "0.6528029", "text": "function filterdProducts() {\n var search_input = document.getElementById(\"search\").value;\n document.getElementById(\"container\").innerHTML = \"\";\n createProducts(\n productData.filter(value => {\n var lowerCaseProduct = value.name.toLowerCase();\n return lowerCaseProduct.includes(search_input);\n })\n );\n}", "title": "" }, { "docid": "bc3f09d6369cecd7892fdfda2eb59f98", "score": "0.651144", "text": "function handleSearch() {\n showHome();\n let searchTerm = id(\"search-box\").value.trim();\n id(\"search-box\").value = \"\";\n if (searchTerm !== \"\") {\n let url = \"/flutter/posts?search=\" + searchTerm;\n fetch(url)\n .then(statusCheck)\n .then(res => res.json())\n .then(showSearchResults)\n .catch(handleError);\n }\n }", "title": "" }, { "docid": "567bf38c533c404bb5b815f85d9940ba", "score": "0.6509016", "text": "function mySearch(event){\n var search,\n resultField;\n \n debug.traceArgs( event );\n\n search = $(\"#searchtext\").val();\n debug.trace(\"search text input: \"+search);\n\n // search and Display the HTML in the element.\n getSearchResult( search, \"#searchresult\", \"#searchtitle\", \"#searchcontent\");\n event.preventDefault();\n debug.trace(\"mySearch() returning\");\n \n}", "title": "" }, { "docid": "2f7c031c31cdebd887611efdeef3e8f4", "score": "0.650826", "text": "function searchForListings(searchTerm) {\n\n}", "title": "" }, { "docid": "64400e9c2fd3b88631706a5f53555916", "score": "0.65035194", "text": "function filterTable()\n{\n // Pull parameters directly from searchText input\n var search = $(searchText).val();\n // Removing case-sensitivity by converting to lowercase\n var lowerCaseSearch = search.toLowerCase();\n var validData = [];\n var props = Object.keys(data[0]);\n var propTypes = [];\n // Getting property datatypes\n for (var i = 0; i < props.length; i++)\n propTypes[i] = typeof(data[0][props[i]]);\n for (var i = 0; i < data.length; i++)\n {\n // Iterating through data\n var curData = data[i];\n for (var j = 0; j < props.length; j++)\n {\n // Iterating through each property on the data\n var curProp = curData[props[j]];\n // Cannot check null data\n if (curProp === null)\n continue;\n var valid = false;\n // Strings can contain the search term as a substring\n if (propTypes[j] == \"string\")\n {\n // Case-insensitive searching\n var lowerCaseProp = curProp.toLowerCase();\n if (lowerCaseProp.includes(lowerCaseSearch))\n valid = true;\n }\n if (curProp == search)\n valid = true;\n if (valid)\n {\n validData.push(curData);\n break;\n }\n }\n }\n // Clearing existing table, if one exists\n $(tableDiv).empty();\n loadTable(validData);\n}", "title": "" }, { "docid": "d0d91c3f4a160cc1198acafdecc4f233", "score": "0.65027654", "text": "customFilter(option, searchText) {\n if (\n option.data.name.toLowerCase().includes(searchText.toLowerCase())\n ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "125c9086c57f2c6a7a2bce6fe507182c", "score": "0.6500019", "text": "function search(){let rl=document.getElementById('search-results');if(rl != null){search_result.removeChild(rl);showResultsList();}else{showResultsList();}}", "title": "" }, { "docid": "b198fe28c8c0fa1ea48e0b0c71bf7634", "score": "0.6499553", "text": "function filter(query) {\n document.querySelectorAll('.justified-gallery > a').forEach(function(el) {\n const caption = el.querySelector('h3').innerText;\n if (caption.includes(query) || query.length < 2) {\n el.classList.remove('filtered');\n } else {\n el.classList.add('filtered');\n }\n });\n $('#albums').justifiedGallery({ filter: ':not(.filtered)' });\n window.scrollTo({ top: 0 });\n pushState();\n }", "title": "" }, { "docid": "36f975f6d1e5f6fa69e2912f0e2f4044", "score": "0.6498779", "text": "function searchFunc(){\n var name = document.getElementById(\"inputText\").value;\n filteredList = restaurants.filter((restraurant) => {\n return restraurant.name.toLowerCase().indexOf(name.toLowerCase()) > -1;\n })\n displayProduct(filteredList);\n}", "title": "" }, { "docid": "104b4630fca1580a9a39f87371dac03d", "score": "0.6497777", "text": "function m_search(){ \n var list = document.getElementsByClassName('m_searchstring'); // Get search string for each record\n var item = document.getElementsByClassName('m_result-item'); // Get record container\n var input = document.getElementById('mobile-input'); // Get search text from user\n var filter = input.value.toUpperCase(); // Standardise input\n \n var title; // Empty variable to populate with search criteria during loop\n\nfor (i = 0; i < item.length; i++) {\n\n title = list[i].innerHTML;\n\n if (title.toUpperCase().indexOf(filter) > -1)\n {\n item[i].style.display = \"block\";\n } else {\n item[i].style.display = \"none\";\n }\n }\n}", "title": "" }, { "docid": "b543b0d950b1ce4de55921d120ba3773", "score": "0.64950275", "text": "function filter() {\n searchData = document.getElementById(\"search\").value.toUpperCase();\n if(searchData.length) {\n newArray = generalList.filter(function (el) {\n return el.name.toUpperCase().includes(searchData)\n });\n } else {\n newArray = generalList;\n }\n printData(newArray) \n}", "title": "" }, { "docid": "78a3c68bf4bf39918d914fd027e0790f", "score": "0.64927256", "text": "function eventSearch() {\r\n \r\n var input = document.getElementById(\"myInput\");\r\n var filter = input.value.toUpperCase();\r\n var events = document.getElementById(\"eventList\");\r\n var list = events.getElementsByTagName(\"li\");\r\n for (i = 0; i < list.length; i++) {\r\n var item = list[i].getElementsByTagName(\"a\")[0];\r\n var txtValue = item.textContent || item.innerText;\r\n if (txtValue.toUpperCase().indexOf(filter) > -1) {\r\n list[i].style.display = \"\";\r\n } else {\r\n list[i].style.display = \"none\";\r\n }\r\n }\r\n}", "title": "" }, { "docid": "6bbffec1ad12e51b96be855179b724d1", "score": "0.64825374", "text": "function searchFunc(table, input, clearFilter, search) {\n var input, filter, tab,td;\n input = document.getElementById(input);\n filter = input.value.toUpperCase();\n\n tab = document.getElementById(table);\n tr = tab.getElementsByClassName('event');\n td = tab.getElementsByClassName(\"album\");\n \n \n for (i = 0; i < td.length; i++) {\n \n if (td[i].innerHTML.toUpperCase().indexOf(filter) > -1) {\n tr[i].style.display = \"\";\n } else {\n\n tr[i].style.display = \"none\";\n $('.'+search).css('display','none'); \n $('.'+clearFilter).css('display','');\n }\n \n }\n\n}", "title": "" } ]
1583bdc57bd9dd187e566e164cad9d3a
NOTE: These type checking functions intentionally don't use `instanceof` because it is fragile and can be easily faked with `Object.create()`.
[ { "docid": "d9424e9c9d7b96dbe513beb4be3e33e1", "score": "0.0", "text": "function isArray(ar) {\n return Array.isArray(ar);\n}", "title": "" } ]
[ { "docid": "d308bef042e68ec81f645f9e0e09e4cf", "score": "0.6514444", "text": "function isTypeObject(x) {\n return typeof x === \"object\";\n}", "title": "" }, { "docid": "e8cf2f9f730528b425e1ee27e0dbce9b", "score": "0.65096635", "text": "function isTypeInstanceOf(source,target){return getTargetType(source)===getTargetType(target)||isTypeSubtypeOf(source,target)&&!isTypeIdenticalTo(source,target);}", "title": "" }, { "docid": "1e974300fe2534177004b2c78b18954b", "score": "0.63227177", "text": "function myInstanceof(left, right) {\n // 这里先用typeof来判断基础数据类型,如果是,直接返回false\n if(typeof left !== 'object' || left === null) return false;\n // getProtypeOf是Object对象自带的API,能够拿到参数的原型对象\n let proto = Object.getPrototypeOf(left);\n while(true) { //循环往下寻找,直到找到相同的原型对象\n if(proto === null) return false;\n if(proto === right.prototype) return true;//找到相同原型对象,返回true\n proto = Object.getPrototypeOf(proto);\n }\n }", "title": "" }, { "docid": "5dc69b9c02d7c460f2e9ddcc602b66ba", "score": "0.6256687", "text": "function isInstance(x) { return exports.isNothing(x) ? null : builtin.typeOf(x) === exports.Type.Obj; } // this can be any new Date/Sring/Number etc..", "title": "" }, { "docid": "1bd5ccf5a9cadfec5c4eb7571b0d97ab", "score": "0.62537426", "text": "isObject(value)\r\n {\r\n return value instanceof Object;\r\n }", "title": "" }, { "docid": "7f229a783a545c40b61d52acc0f6200f", "score": "0.6250679", "text": "function duck_Type(obj, cons) {\n //If we passed constructor instead of object\n if (typeof obj == \"function\") obj = obj.prototype;\n \n //The methods of built-in classes aren't enumerable, that's why we return \"undefined\". \n //Otherwise any object will be equivalent of any built-in class.\n if (cons == Array || cons == Boolean || cons == Date || cons == Error ||\n cons == Function || cons == Number || cons == RegExp || cons == String)\n return undefined;\n\n var proto = cons.prototype;\n for (var p in proto) {\n if (!(p in obj)) return false;\n }\n\n return true;\n}", "title": "" }, { "docid": "d5bb467727b101ed2858b924f3558842", "score": "0.6227549", "text": "_checkType(value, name, type) {\n if (typeof value !== type) {\n throw new TypeError(`${name} must be a ${type}`);\n }\n }", "title": "" }, { "docid": "7ad49264e77f6ac020f184a2a0030310", "score": "0.6202601", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "7ad49264e77f6ac020f184a2a0030310", "score": "0.6202601", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "5e9aa9b2a64ba8fab2907191ebbcf42b", "score": "0.6097016", "text": "function assert(val, types, checkForCustomType) {\n for (var type of types) {\n var isType = Object.prototype.toString.call(val).slice(8, -1).toLowerCase()\n if (isType === \"object\" && checkForCustomType && val.constructor && val.constructor.name === type)\n return\n else if (isType === type)\n return\n }\n throw new TypeError(\"Incorrect value \" + toString(val) + \", needs to be \" + toHumanizedString(types))\n}", "title": "" }, { "docid": "b6564f3578ea1a581705105c7232297d", "score": "0.6093025", "text": "static is(object, struct) {\n return object instanceof struct;\n }", "title": "" }, { "docid": "79188c859222152adf0cf7b22d653490", "score": "0.60914165", "text": "function is(type,obj){\nreturn objectType(obj) === type;\n}", "title": "" }, { "docid": "db4065932421259536f6693bc314eb06", "score": "0.60717565", "text": "function isInstanceOf(type, value) {\n if (typeof type === \"function\") {\n return value instanceof type;\n }\n return false;\n }", "title": "" }, { "docid": "9c0b0f996387d602373facb7fb581a9e", "score": "0.60624367", "text": "function is( obj, type ) {\n\t return typeof obj === type;\n\t }", "title": "" }, { "docid": "0901c456d307892f0e6ecb1e515f9956", "score": "0.6038305", "text": "function isObject(input) {\n return typeof input === 'object';\n}", "title": "" }, { "docid": "e2affe98cc556e0b7c1cc25a38a0d92b", "score": "0.6020377", "text": "function isa(o) {\n var ids = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n ids[_i - 1] = arguments[_i];\n }\n return (typeof o === \"object\" &&\n // Checks for name after __type, as name is used instead for errors.\n ((\"__type\" in o && ids.indexOf(o[\"__type\"]) > -1) || (\"name\" in o && ids.indexOf(o[\"name\"]) > -1)));\n}", "title": "" }, { "docid": "9550555158741e9159fcd1ccc99d9952", "score": "0.6017298", "text": "function isOfType(T, maybeSomething){\n return maybeSomething && maybeSomething.constructor === T;\n}", "title": "" }, { "docid": "9550555158741e9159fcd1ccc99d9952", "score": "0.6017298", "text": "function isOfType(T, maybeSomething){\n return maybeSomething && maybeSomething.constructor === T;\n}", "title": "" }, { "docid": "9550555158741e9159fcd1ccc99d9952", "score": "0.6017298", "text": "function isOfType(T, maybeSomething){\n return maybeSomething && maybeSomething.constructor === T;\n}", "title": "" }, { "docid": "9550555158741e9159fcd1ccc99d9952", "score": "0.6017298", "text": "function isOfType(T, maybeSomething){\n return maybeSomething && maybeSomething.constructor === T;\n}", "title": "" }, { "docid": "9550555158741e9159fcd1ccc99d9952", "score": "0.6017298", "text": "function isOfType(T, maybeSomething){\n return maybeSomething && maybeSomething.constructor === T;\n}", "title": "" }, { "docid": "bc181f445cc073bf39327b467913031b", "score": "0.60067946", "text": "function UsingClassTypesAdvanced() {\n class BeeKeeper {\n }\n class ZooKeeper {\n }\n class Animal {\n }\n class Bee extends Animal {\n constructor() {\n super(...arguments);\n this.keeper = new BeeKeeper();\n }\n }\n class Lion extends Animal {\n constructor() {\n super(...arguments);\n this.keeper = new ZooKeeper();\n }\n }\n function createInstance(c) {\n return new c();\n }\n try {\n createInstance(Lion).keeper.nametag; // typechecks!\n createInstance(Bee).keeper.hasMask; // typechecks!\n }\n catch (ex) {\n console.log(ex);\n }\n}", "title": "" }, { "docid": "7b5060daf53393b7b5cd7f257d9756a2", "score": "0.60058475", "text": "function isType(type) {\n return function(obj) {\n return {}.toString.call(obj) == \"[object \" + type + \"]\"\n }\n}", "title": "" }, { "docid": "7b5060daf53393b7b5cd7f257d9756a2", "score": "0.60058475", "text": "function isType(type) {\n return function(obj) {\n return {}.toString.call(obj) == \"[object \" + type + \"]\"\n }\n}", "title": "" }, { "docid": "7b5060daf53393b7b5cd7f257d9756a2", "score": "0.60058475", "text": "function isType(type) {\n return function(obj) {\n return {}.toString.call(obj) == \"[object \" + type + \"]\"\n }\n}", "title": "" }, { "docid": "8bf160c31f1f5378cb3c07a02266ec9f", "score": "0.6005218", "text": "function is(obj, type) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "92605b66cc556fc8188234545911cf5a", "score": "0.5997943", "text": "function isObject(value) {\n // YOUR CODE BELOW HERE //\n /*if calling built in toString method on the value input passed to prototype object is equal to \n the class of object evaluates to true*/\n if (Object.prototype.toString.call(value) === '[object Object]') {\n return true; //return true\n } else { //if it does not\n return false; //return false\n }\n \n // YOUR CODE ABOVE HERE //\n}", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "f365f37d6ac6c34e4eb254300b57e2b6", "score": "0.59908843", "text": "function is( obj, type ) {\n return typeof obj === type;\n }", "title": "" }, { "docid": "46dd45d55db5d96208abf31ef7975075", "score": "0.5985428", "text": "function assertType (value, type) {\r\n\t var valid;\r\n\t var expectedType = getType(type);\r\n\t if (expectedType === 'String') {\r\n\t valid = typeof value === (expectedType = 'string');\r\n\t } else if (expectedType === 'Number') {\r\n\t valid = typeof value === (expectedType = 'number');\r\n\t } else if (expectedType === 'Boolean') {\r\n\t valid = typeof value === (expectedType = 'boolean');\r\n\t } else if (expectedType === 'Function') {\r\n\t valid = typeof value === (expectedType = 'function');\r\n\t } else if (expectedType === 'Object') {\r\n\t valid = isPlainObject(value);\r\n\t } else if (expectedType === 'Array') {\r\n\t valid = Array.isArray(value);\r\n\t } else {\r\n\t valid = value instanceof type;\r\n\t }\r\n\t return {\r\n\t valid: valid,\r\n\t expectedType: expectedType\r\n\t }\r\n\t}", "title": "" }, { "docid": "fac80ba8dd6508e5a55d4cc944b279aa", "score": "0.59599036", "text": "function assertType (value, type) {\n\t var valid;\n\t var expectedType = getType(type);\n\t if (expectedType === 'String') {\n\t valid = typeof value === (expectedType = 'string');\n\t } else if (expectedType === 'Number') {\n\t valid = typeof value === (expectedType = 'number');\n\t } else if (expectedType === 'Boolean') {\n\t valid = typeof value === (expectedType = 'boolean');\n\t } else if (expectedType === 'Function') {\n\t valid = typeof value === (expectedType = 'function');\n\t } else if (expectedType === 'Object') {\n\t valid = isPlainObject(value);\n\t } else if (expectedType === 'Array') {\n\t valid = Array.isArray(value);\n\t } else {\n\t valid = value instanceof type;\n\t }\n\t return {\n\t valid: valid,\n\t expectedType: expectedType\n\t }\n\t}", "title": "" }, { "docid": "fac80ba8dd6508e5a55d4cc944b279aa", "score": "0.59599036", "text": "function assertType (value, type) {\n\t var valid;\n\t var expectedType = getType(type);\n\t if (expectedType === 'String') {\n\t valid = typeof value === (expectedType = 'string');\n\t } else if (expectedType === 'Number') {\n\t valid = typeof value === (expectedType = 'number');\n\t } else if (expectedType === 'Boolean') {\n\t valid = typeof value === (expectedType = 'boolean');\n\t } else if (expectedType === 'Function') {\n\t valid = typeof value === (expectedType = 'function');\n\t } else if (expectedType === 'Object') {\n\t valid = isPlainObject(value);\n\t } else if (expectedType === 'Array') {\n\t valid = Array.isArray(value);\n\t } else {\n\t valid = value instanceof type;\n\t }\n\t return {\n\t valid: valid,\n\t expectedType: expectedType\n\t }\n\t}", "title": "" }, { "docid": "fac80ba8dd6508e5a55d4cc944b279aa", "score": "0.59599036", "text": "function assertType (value, type) {\n\t var valid;\n\t var expectedType = getType(type);\n\t if (expectedType === 'String') {\n\t valid = typeof value === (expectedType = 'string');\n\t } else if (expectedType === 'Number') {\n\t valid = typeof value === (expectedType = 'number');\n\t } else if (expectedType === 'Boolean') {\n\t valid = typeof value === (expectedType = 'boolean');\n\t } else if (expectedType === 'Function') {\n\t valid = typeof value === (expectedType = 'function');\n\t } else if (expectedType === 'Object') {\n\t valid = isPlainObject(value);\n\t } else if (expectedType === 'Array') {\n\t valid = Array.isArray(value);\n\t } else {\n\t valid = value instanceof type;\n\t }\n\t return {\n\t valid: valid,\n\t expectedType: expectedType\n\t }\n\t}", "title": "" }, { "docid": "fac80ba8dd6508e5a55d4cc944b279aa", "score": "0.59599036", "text": "function assertType (value, type) {\n\t var valid;\n\t var expectedType = getType(type);\n\t if (expectedType === 'String') {\n\t valid = typeof value === (expectedType = 'string');\n\t } else if (expectedType === 'Number') {\n\t valid = typeof value === (expectedType = 'number');\n\t } else if (expectedType === 'Boolean') {\n\t valid = typeof value === (expectedType = 'boolean');\n\t } else if (expectedType === 'Function') {\n\t valid = typeof value === (expectedType = 'function');\n\t } else if (expectedType === 'Object') {\n\t valid = isPlainObject(value);\n\t } else if (expectedType === 'Array') {\n\t valid = Array.isArray(value);\n\t } else {\n\t valid = value instanceof type;\n\t }\n\t return {\n\t valid: valid,\n\t expectedType: expectedType\n\t }\n\t}", "title": "" }, { "docid": "7066c3d17214b73b4b6f00f400b67519", "score": "0.5942282", "text": "function isType(value, type) {\n var str = {}.toString.call(value);\n return str.indexOf('[object') === 0 && str.indexOf(type + \"]\") > -1;\n}", "title": "" }, { "docid": "7066c3d17214b73b4b6f00f400b67519", "score": "0.5942282", "text": "function isType(value, type) {\n var str = {}.toString.call(value);\n return str.indexOf('[object') === 0 && str.indexOf(type + \"]\") > -1;\n}", "title": "" }, { "docid": "7f56aa9ce8340f2d85a348dab2b12f88", "score": "0.59332", "text": "function is(el, obj){\n return el instanceof obj\n}", "title": "" }, { "docid": "7f56aa9ce8340f2d85a348dab2b12f88", "score": "0.59332", "text": "function is(el, obj){\n return el instanceof obj\n}", "title": "" }, { "docid": "5e8b2f2781ffa2b804a246bd9d879ab7", "score": "0.5924444", "text": "function createIsTypeFn(type) {\n\n return function (arg) {\n\n return objectPrototype.toString.call(arg) === '[object ' + type + ']';\n };\n }", "title": "" }, { "docid": "225cbe15ed644a9462a725fd8038e1b1", "score": "0.59243786", "text": "function isObj( val ) { return val === Object( val ); }", "title": "" }, { "docid": "da1ccc70ff9dd8743154e0beb0b4f883", "score": "0.58971345", "text": "function isInstanciated(x) { return builtin.typeOf(x) !== exports.type(x); }", "title": "" }, { "docid": "326e4401502ecbe46191431e7869c9e8", "score": "0.5888452", "text": "function isType(type) {\n return function(obj) {\n return Object.prototype.toString.call(obj) === \"[object \" + type + \"]\"\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "f4c2d74e8dcf668e48ce3683520cde9f", "score": "0.5883972", "text": "function assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string');\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number');\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean');\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function');\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "487ec48e6dfa62e12dd39b2a50e28d61", "score": "0.58818024", "text": "function is(type, obj){\n\tvar clas = Object.prototype.toString.call(obj).slice(8, -1);\n\treturn obj !== undefined && obj !== null && clas === type\n}", "title": "" }, { "docid": "f225b611d087cf935cbe25a84e1d9f51", "score": "0.58767015", "text": "function assertType (value, type) {\n var valid\n var expectedType = getType(type)\n if (expectedType === 'String') {\n valid = typeof value === (expectedType = 'string')\n } else if (expectedType === 'Number') {\n valid = typeof value === (expectedType = 'number')\n } else if (expectedType === 'Boolean') {\n valid = typeof value === (expectedType = 'boolean')\n } else if (expectedType === 'Function') {\n valid = typeof value === (expectedType = 'function')\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value)\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value)\n } else {\n valid = value instanceof type\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}", "title": "" }, { "docid": "91f15e90186a68e6dcc3109955c0e409", "score": "0.5870323", "text": "function _isObject(v) {\n return (Object.prototype.toString.call(v) === '[object Object]');\n}", "title": "" }, { "docid": "91f15e90186a68e6dcc3109955c0e409", "score": "0.5870323", "text": "function _isObject(v) {\n return (Object.prototype.toString.call(v) === '[object Object]');\n}", "title": "" }, { "docid": "91f15e90186a68e6dcc3109955c0e409", "score": "0.5870323", "text": "function _isObject(v) {\n return (Object.prototype.toString.call(v) === '[object Object]');\n}", "title": "" }, { "docid": "91f15e90186a68e6dcc3109955c0e409", "score": "0.5870323", "text": "function _isObject(v) {\n return (Object.prototype.toString.call(v) === '[object Object]');\n}", "title": "" }, { "docid": "dd5472841dab153badb588a2cd348551", "score": "0.58685434", "text": "function is(o, type) {\n return Object.prototype.toString.call(o) === type;\n }", "title": "" }, { "docid": "5e3bd4cb1ff2b8b30e8ebe7cedaa2c01", "score": "0.5861855", "text": "function checkType() {\n\t\t\tvar possibleTypes = argumentsToArray(arguments).map(function(type) { return type.toLowerCase(); });\n\t\t\treturn function(value) {\n\t\t\t\tvar valueType = toType(value); \n\t\t\t\treturn possibleTypes.some(function(type) { return valueType === type; }); \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9c01a24b1f6e48128abb15770c02c74c", "score": "0.58605224", "text": "function isTypeInstanceOf(source, target) {\n return getTargetType(source) === getTargetType(target) || isTypeSubtypeOf(source, target) && !isTypeIdenticalTo(source, target);\n }", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "4e450843b4051bef468876d9e00da03e", "score": "0.5857864", "text": "function isOfType (T, maybeSomething) {\n return maybeSomething && maybeSomething.constructor === T\n}", "title": "" }, { "docid": "ae7128a19848f7d8f8c2ff34491d1e80", "score": "0.58477795", "text": "isObject(x) {\n return x && typeof x == 'object'\n }", "title": "" }, { "docid": "2f40ed545b0f441e5ddfbcd1fb1fbe4c", "score": "0.58353704", "text": "function is(el, obj){\r\n return el instanceof obj\r\n}", "title": "" }, { "docid": "2f40ed545b0f441e5ddfbcd1fb1fbe4c", "score": "0.58353704", "text": "function is(el, obj){\r\n return el instanceof obj\r\n}", "title": "" }, { "docid": "92ed8216eadf46ad9023f2440bd3a26e", "score": "0.5834012", "text": "function isObject(obj){return Object.prototype.toString.call(obj) == '[object Object]'}", "title": "" }, { "docid": "fc556c25b6439fedfa416c75eb1e48c7", "score": "0.5821918", "text": "function is(type, obj) {\n \treturn objectType(obj) === type;\n }", "title": "" }, { "docid": "b4791e2c9adb97a5c1ff6b1289390559", "score": "0.5819533", "text": "function type(obj, type) {\n return (typeof obj) === type;\n}", "title": "" }, { "docid": "0951a4c81f6f71beca49099ba9cfbf5b", "score": "0.58039916", "text": "function isObject(val) {\n return kindOf$2(val) === 'object';\n}", "title": "" }, { "docid": "0951a4c81f6f71beca49099ba9cfbf5b", "score": "0.58039916", "text": "function isObject(val) {\n return kindOf$2(val) === 'object';\n}", "title": "" }, { "docid": "149780e01f81f266ee2b2807c96558c5", "score": "0.58001065", "text": "function _type(o) {\n var t = typeof o;\n return _allowable[t] || // number, string, boolean, undefined\n _allowable[_toStr.call(o)] || // Number, String, Boolean, Date\n (t === OBJECT ?\n (o ? OBJECT : NULL) : // object, array, null, misc natives\n UNDEFINED); // function, unknown\n}", "title": "" }, { "docid": "80c320ecac9ccf667ee6c318e8e361ea", "score": "0.57966536", "text": "function ct(t) {\n return \"object\" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));\n}", "title": "" }, { "docid": "51e25e20a9893a3219dfa430f3666473", "score": "0.57942045", "text": "isObject(obj) {\n return obj === Object(obj);\n }", "title": "" }, { "docid": "267b2231a798ebccf8199e1881e862a2", "score": "0.5783681", "text": "function isObject(val) {\n return kindOf$b(val) === 'object';\n}", "title": "" }, { "docid": "a89fb109939fe69b8d165ee00a39f811", "score": "0.5781864", "text": "function isA( obj1, obj2 ) { return obj1 instanceof obj2; }", "title": "" }, { "docid": "046cc3d5484333c35a814a2a74dfa6c5", "score": "0.5781271", "text": "function binaryInstanceof(wl, vs) {\n var rval = vs.pop();\n var lval = vs.pop();\n if (typeof rval.value !== 'object') {\n if (false) { // SILENT ERROR\n vs.push(new values_1.Value(false, lub(lval.label, rval.label)));\n }\n monitor.Throw(error.TypeErrorObject, \"invalid 'instanceof' parameter\", rval.label);\n }\n if (!('HasInstance' in rval.value)) {\n if (false) { // SILENT ERROR\n vs.push(new values_1.Value(false, lub(lval.label, rval.label)));\n }\n monitor.Throw(error.TypeErrorObject, \"invalid 'instanceof' parameter\", rval.label);\n }\n vs.push(rval.HasInstance(lval));\n }", "title": "" }, { "docid": "5e56c2b86a010e7d70602b3ea6a4121e", "score": "0.57730806", "text": "function isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n }", "title": "" }, { "docid": "5d3b4c4b05533fbb04e55be1267b339f", "score": "0.5770975", "text": "function isInstance(obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n }", "title": "" }, { "docid": "5d3b4c4b05533fbb04e55be1267b339f", "score": "0.5770975", "text": "function isInstance(obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n }", "title": "" }, { "docid": "d12cb2e397bab0b562b2bb2d0a654869", "score": "0.5767999", "text": "function isObject(value) {\n return typeof value === \"object\"\n && value !== null\n && !(value instanceof Boolean)\n && !(value instanceof Date)\n && !(value instanceof Number)\n && !(value instanceof RegExp)\n && !(value instanceof String);\n}", "title": "" }, { "docid": "df1a0e67f1ff26ec21d8e12af45fca4a", "score": "0.57635665", "text": "function isInstance(obj, type) {\n return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;\n }", "title": "" }, { "docid": "72d5c96e6ed49bffbb63169f6e53a129", "score": "0.5755064", "text": "function isObject(input) {\n return _typeof(input) === 'object';\n}", "title": "" }, { "docid": "72d5c96e6ed49bffbb63169f6e53a129", "score": "0.5755064", "text": "function isObject(input) {\n return _typeof(input) === 'object';\n}", "title": "" }, { "docid": "c8fb3a6fd980edf27778a1c6fc7f88ee", "score": "0.57520276", "text": "function F(t) {\n return \"object\" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));\n}", "title": "" }, { "docid": "c8fb3a6fd980edf27778a1c6fc7f88ee", "score": "0.57520276", "text": "function F(t) {\n return \"object\" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));\n}", "title": "" }, { "docid": "c8fb3a6fd980edf27778a1c6fc7f88ee", "score": "0.57520276", "text": "function F(t) {\n return \"object\" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));\n}", "title": "" } ]
9ee1aa1edd67bf1c6bc1321546528e42
for the phone use
[ { "docid": "3aff0cc01b6670ff05ed47ed5fa41e3c", "score": "0.0", "text": "function moveup() {\n if(dy!==1){\n dx=0;dy=-1;}\n}", "title": "" } ]
[ { "docid": "c2ed2793193688d436d4546b7cf6186a", "score": "0.6617338", "text": "function findPhone(){\n\t\tif (navigator.userAgent.match(/Android/i) ||\n navigator.userAgent.match(/webOS/i) ||\n navigator.userAgent.match(/iPhone/i) ||\n navigator.userAgent.match(/iPad/i) ||\n navigator.userAgent.match(/iPod/i) ||\n navigator.userAgent.match(/BlackBerry/) || \n navigator.userAgent.match(/Windows Phone/i) || \n navigator.userAgent.match(/ZuneWP7/i)\n ) {\n\t\t\t\t$('.phone').css(\"opacity\",\"1\");\n $('.phone').attr( 'href', 'tel:4846144871');\n }\n\t}", "title": "" }, { "docid": "13fb24dff2b19e924d55a230ed27b6f1", "score": "0.65544134", "text": "function Phone() {\n this.ua = navigator.userAgent.toLowerCase();\n this.device = function() {\n var device;\n var ua = navigator.userAgent.toLowerCase();\n if (ua.match(/(iphone|ipod|ipad)/i)) {\n device = \"ios\";\n } else if (ua.match(/android/i)) {\n device = \"android\";\n } else if (ua.match(/blackberry/i)) {\n device = \"blackberry\";\n } else if (ua.match(/windows phone os 7.5/i)) {\n device = \"windows\";\n } else {\n device = \"desktop\";\n }\n return device;\n }();\n\n this.log_error = function(err, err1) {\n console.log(\"Phone_error\");\n console.log(err);\n console.log(err1);\n// alert(err + \" \" + err1);\n };\n this.log_success = function() {\n console.log(\" success \");\n };\n\n\n }", "title": "" }, { "docid": "7f57054ddc1b80953b504fa313a17b24", "score": "0.624964", "text": "constructor() {\n this.ContactType = \"phone\"\n this.ContactTypeExt = \"home\"\n this.IsPreferred = 0\n }", "title": "" }, { "docid": "ec2031e1d1dec3db91c91ec9b6658e1f", "score": "0.61101913", "text": "function detectPhone(){\n if (/Android|iPhone|iPad|iPod|IEMobile|Windows Phone/i.test(navigator.userAgent)){\n //alert('true: ' + navigator.userAgent);\n onMobile = true;\n }else{\n //alert('false: ' + navigator.userAgent);\n onMobile = false;\n }\n}", "title": "" }, { "docid": "031bfbe7d1dd3dd76df9f6b60e1abaf3", "score": "0.608838", "text": "function EnumCB_ProxyPhone_PRE() {\n if(pega.mobile.isHybrid) {\n ENUMCB.updateDKRefVisibility(\"ProxyPhone\", \"pyWorkPage.Respondent.DKRefused\");\n var cpLocationAddress = pega.ui.ClientCache.find(\"pyWorkPage.HouseholdRoster.LocationAddress\");\n var isMultiUnit = cpLocationAddress.get(\"IsMultiUnit\").getValue();\n var isReInterview = pega.ui.ClientCache.find(\"pyWorkPage\").get(\"IsReInterview\");\n \n isReInterview = isReInterview ? isReInterview.getValue() : \"\";\n \n \n if(isMultiUnit == \"true\" && isReInterview != \"true\"){\n\t\t\t\tCB.toggleFlag(\"DKRFEnabled\", \"false\"); \n }\n\t\t\telse{\n\t\t\t CB.toggleFlag(\"DKRFEnabled\", \"true\"); \n\t\t\t}\n CB.toggleFlag(\"ExitSurveyEnabled\", \"false\");\n var respPage = pega.ui.ClientCache.find(\"pyWorkPage.Respondent.Response\");\n var phone = respPage.get(\"RESP_PH_NUMBER_TEXT\");\n \n var isattactual = respPage.get(\"ATTACTUAL\");\n isattactual = isattactual ? isattactual.getValue() : \"\";\n var questPage = pega.ui.ClientCache.find(\"pyWorkPage.QuestFlags\");\n if(isattactual == \"PV\" ){\n\n \t questPage.put(\"IsProxyPhoneValid\", \"NonValid\");\n \n }\n else{\n questPage.put(\"IsProxyPhoneValid\", \"Valid\");\n }\n var phone = respPage.get(\"RESP_PH_NUMBER_TEXT\");\n phone = phone ? phone.getValue() : \"\";\n var telephone = pega.ui.ClientCache.find(\"pyWorkPage.Respondent.TelephoneInfo.TelephoneNumber(1)\");\n var answerSelected = telephone.get(\"CountryCode\");\n if(!answerSelected) {\n var D_RespPhoneOptions = pega.ui.ClientCache.find(\"D_RespPhoneOptions\");\n var phoneNumbers = pega.ui.ClientCache.find(\"D_RespPhoneOptions\").put(\"pxResults\",[]); \n if(phone != \"\") {\n var phonePage = pega.ui.ClientCache.createPage(\"phonePage\");\n phonePage.put(\"pyLabel\", phone);\n phonePage.put(\"pyValue\", phone);\n phoneNumbers.add().adoptJSON(phonePage.getJSON());\n }\n var addPhonePage = pega.ui.ClientCache.createPage(\"addPhone\");\n addPhonePage.put(\"pyLabel\", \"Add Number\");\n addPhonePage.put(\"pyValue\", \"-1\");\n phoneNumbers.add().adoptJSON(addPhonePage.getJSON());\n }\n }\n}", "title": "" }, { "docid": "3669a6ed9c2fa78b3821d66eb47fc2db", "score": "0.5974665", "text": "constructor(_phone_id,\n _ip_addr,\n _phone_name,\n _phone_num,\n _is_admin,\n _mach_watch,\n _is_active,\n ) {\n this.phone_id = _phone_id;\n this.ip_addr = _ip_addr;\n this.phone_name = _phone_name;\n this.phone_num = _phone_num;\n this.is_admin = _is_admin;\n this.mach_watch = _mach_watch;\n this.is_active = _is_active\n }", "title": "" }, { "docid": "ee91dacf9b67d6e83d8a4925eb5e59f2", "score": "0.59725094", "text": "function getPhoneCode() {\n\t\t\tvar c = {\n\t\t\t\tdata: {\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tCiayoService.Api('users/setting/prefix_phone_number', c, function(response){\n\t\t\t\tvm.listPhoneCode =\tresponse.data.c.data.content.list_prefix_phone_number;\n\t\t\t\t//console.log(vm.listPhoneCode);\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "c79283b22d22a0502ee652d887350edd", "score": "0.58990955", "text": "getPhonePricing() {\n this._pricing.getPhone.apply(this, arguments);\n }", "title": "" }, { "docid": "2503d9d8d65bc09a8a379ebb3ed9dae8", "score": "0.58872837", "text": "function DetectWindowsPhone(){\n\t\t\t\t\tif (uagent.search(deviceWinPhone) > -1)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" }, { "docid": "368d06a923952dfeaf407fe29441f8ea", "score": "0.58774215", "text": "function phoneNoselect(){\n if ( $('#msform').length ){\n $(\"#phone\").intlTelInput();\n $(\"#phone\").intlTelInput(\"setNumber\", \"+880\");\n };\n }", "title": "" }, { "docid": "480303a70690d4141de2b8335b2d89a3", "score": "0.5857717", "text": "function mobilephone(screen_size, _RAM, _processor, _camera, _battery, _OS) {\r\n var _this = this;\r\n // method which is accessible to outside the class\r\n this.getoperatingsystem = function () {\r\n return _this.OS;\r\n };\r\n this.screensize = screen_size;\r\n this.RAM = _RAM;\r\n this.processor = _processor;\r\n this.camera = _camera;\r\n this.battery = _battery;\r\n this.OS = _OS;\r\n } //end constructor", "title": "" }, { "docid": "b4937f48cd9eab2a9bfb5cf3e6f077bf", "score": "0.5856304", "text": "function setCurrentConsultantPhone(phone)\r\n{\r\n consultantPhone=phone;\r\n}", "title": "" }, { "docid": "932b2b4133121a3d220f022c76d65bd5", "score": "0.5855141", "text": "function getCurrentConsultantPhone()\r\n{\r\n return consultantPhone;\r\n}", "title": "" }, { "docid": "7a2df2e1109af0c13e2e9fd060faac0c", "score": "0.58454096", "text": "constructor(phone){\n this.phone = phone; \n }", "title": "" }, { "docid": "6fb145ab6ac98136aadae20d5e494db1", "score": "0.58438677", "text": "function setPhone(newPhone) {\n\t\tphone = phones[newPhone];\n\t\tphoneColor = phone.colors[0];\n\t\tphoneHeader = phone.hasDisplayHeader;\n\t\tphoneMarkup = phone.markup;\n\t\tphoneModel = phone.models[0];\n\t\tphoneName = phone.name;\n\t\tphoneOrientation = phone.orientations[0];\n\t}", "title": "" }, { "docid": "1637197a5fbb9cc2788986131acfb40d", "score": "0.5833244", "text": "function getUserLocation() { \n\tTitanium.API.info(\"Current Phone Locale is \" + Titanium.Platform.locale);\n\tTitanium.API.info(\"OS name is \" + Titanium.Platform.osname);\n\tTitanium.API.info(\"Runtime: \" + Titanium.Platform.runtime);\n\t\n\tif (Titanium.Platform.osname == 'iphone' || Titanium.Platform.osname == 'ipad') {\n\t\tTitanium.API.info(\"Data network: \" + Titanium.Platform.dataAddress);\n\t\tTitanium.API.info(\"Netmask: \" + Titanium.Platform.netmask);\n\t}\n\n}", "title": "" }, { "docid": "42495367de5892af6bec4986e97c4df8", "score": "0.5783361", "text": "function cardPhone(e) {\n if (!isCardOpen)\n cardTogglePhone(e);\n else\n cardTogglePhone(null);\n }", "title": "" }, { "docid": "df81c82c2b72a68974a5d788ae786469", "score": "0.57309324", "text": "function mediaSize() { \n if(bigazzScreens.matches){\n //console.log('big init')\n devicecsize='big'\n }\n\n if(niceScreens.matches){\n //console.log('oooh nice')\n devicecsize='medium'\n }\n\n if(tablets.matches){\n //console.log('toy computer')\n devicecsize='normal'\n }\n\n if(phone.matches){\n //console.log('who you gonna call')\n devicecsize='small'\n }\n\n \n }", "title": "" }, { "docid": "214db46246f812e7eb098a0a8460dd2b", "score": "0.5720218", "text": "function getLoginPhone() {\n return self.loginPhone;\n }", "title": "" }, { "docid": "9c9b052627fb60d1df28cec91fb124d9", "score": "0.57067347", "text": "function getPhoneUrl()\n{\n var rawPhone = this.getDataValue('rawPhone');\n return rawPhone ? 'tel: ' + rawPhone : null;\n}", "title": "" }, { "docid": "6e7189b5f9712c632f40ac27a328e080", "score": "0.57008874", "text": "handlePhonePress(phone) {\n\t if (Platform.OS !== 'android') {\n\t var BUTTONS = [\n\t 'Text message',\n\t 'Call',\n\t 'Cancel',\n\t ];\n\t var CANCEL_INDEX = 2;\n\t \n\t ActionSheetIOS.showActionSheetWithOptions({\n\t options: BUTTONS,\n\t cancelButtonIndex: CANCEL_INDEX\n\t },\n\t (buttonIndex) => {\n\t switch (buttonIndex) {\n\t case 0:\n\t Communications.phonecall(phone, true);\n\t break;\n\t case 1:\n\t Communications.text(phone);\n\t break;\n\t }\n\t });\n\t }\n \t}", "title": "" }, { "docid": "d81be69accc76a66cecb25ec20dd04bd", "score": "0.56993943", "text": "function is_mobile() {\r\n return _is_mobile;\r\n}", "title": "" }, { "docid": "801f51d5f6c8e9e25bd0702af5acf9a6", "score": "0.56960225", "text": "sendCall() {\n const cellPhone = this._contactParts.cellPhone.value;\n if (cellPhone) {\n window.open('tel:' + cellPhone, '_blank');\n }\n }", "title": "" }, { "docid": "06d5184b0b64b41eb3c53cf4514ef5ff", "score": "0.56792957", "text": "componentWillMount() {\n\t\tthis.setDefaultPhone();\n\t}", "title": "" }, { "docid": "e35d0435f9f9418378861f6e09535769", "score": "0.56703496", "text": "async function anyNameFunction() {\r\n const booking_id = await getItemFromStorage('Booking_Id')\r\n const rider_id = await getItemFromStorage('RiderId')\r\n const phone = await getItemFromStorage('user_phone')\r\n const lanid = await getItemFromStorage('LangId')\r\n if (!lanid) { }\r\n else { setLangId(lanid) }\r\n if(phone!=\"\"){ \r\n //alert(phone)\r\n setphone(phone)}\r\n if(booking_id!=null){\r\n setBookingid(booking_id)\r\n setriderid(rider_id)\r\n } \r\n }", "title": "" }, { "docid": "4920fb3a3794235d5703b80e17abfdb1", "score": "0.56495225", "text": "function setChannelMobile() // this function is called in the preappinit of the application properties\n{\n\tchannel =\"mobile\";\n}", "title": "" }, { "docid": "e8ad9054c1947ef7e067b4db342e4133", "score": "0.56479764", "text": "function main() {\n\tvar prefs = AnyBalance.getPreferences();\n\tvar baseurl = 'https://my.lifecell.ua/';\n\tAnyBalance.setDefaultCharset('utf-8');\n\tcheckEmpty(prefs.phone, 'Введите номер телефона!');\n\tcheckEmpty(prefs.pass, 'Введите пароль!');\n\tif(prefs.type == 'site') {\n\t\ttry{\n\t\t\tmainSite(prefs, baseurl);\n\t\t}catch(e){\n\t\t\tAnyBalance.trace(e.message);\n AnyBalance.trace('Не удалось получить данные с сайта. Пытаюсь получить из мобильного приложения');\n mainMobileApp(prefs, baseurl);\n\t\t}\n\t} else {\n\t\t\tmainMobileApp(prefs, baseurl);\n\t}\n}", "title": "" }, { "docid": "9008aea6abfefad350fbd33460cf4666", "score": "0.5645079", "text": "function EnumCB_ProxyPhone_POST() {\n \n var workPage = pega.ui.ClientCache.find(\"pyWorkPage\");\n\tvar respPage = pega.ui.ClientCache.find(\"pyWorkPage.Respondent.Response\");\n \n var temp = workPage.get(\"Respondent.TelephoneInfo.TelephoneNumber(1).Extension\");\n temp = temp ? temp.getValue() : \"\";\n var persistTempVal = respPage.put(\"RESP_PH_NUMBER_TEXT\", temp);\n \n \n\tvar respPhone = respPage.get(\"RESP_PH_NUMBER_TEXT\");\n\tvar respPhoneValue = respPhone ? respPhone.getValue() : \"\";\n\tENUMCB_ProxyPhone_VLDN(workPage, respPhoneValue);\n\tENUMCB.setDKRefResponse(\"pyWorkPage.Respondent.DKRefused.RespPhone\", \"pyWorkPage.Respondent.Response.RESP_PH_DK_IND\", \"pyWorkPage.Respondent.Response.RESP_PH_REF_IND\");\n \n \n/**\n\tAdd the proxy phone number to the Phonenumber page list Ebenezer Owoeye\n**/\n \n if (respPhoneValue != \" \"){\n \n ENUMCB.appendDistinctNumberToTelephoneNumbersList(respPhoneValue, \"proxy\");\n \n /* alert(\"Proxy Phone number added is\" + respPhoneValue); */\n \n }\n \n /* Branching for MU RI Scenario */\n var isReInterview = pega.ui.ClientCache.find(\"pyWorkPage\").get(\"IsReInterview\");\n isReInterview = isReInterview ? isReInterview.getValue() : \"\";\n\n var isMultiUnit = pega.ui.ClientCache.find(\"pyWorkPage.HouseholdRoster.LocationAddress\").get(\"IsMultiUnit\");\n isMultiUnit = isMultiUnit ? isMultiUnit.getValue() : \"\";\n\n var questFlags = pega.ui.ClientCache.find(\"pyWorkPage.QuestFlags\");\n\n if (isReInterview == \"true\" && isMultiUnit == \"true\") {\n questFlags.put(\"NextSurveyQuestion\", \"AnyoneMU_QSTN\");\n }\n}", "title": "" }, { "docid": "357f692a9f5592b06776346cebbfacdb", "score": "0.5631389", "text": "function GetTelephonyServ()\r\n{\r\n\tvar iTelType = -1;\r\n\tvar ServType = GetCookie('Serviceability','LocalizationTypeID')\r\n\tif(ServType == 1 || ServType == 2 || ServType == 9 )\r\n\t{\r\n\t\tvar bVOIP = GetCookie(\"Menu\",\"VO\") == 1;\r\n\t\tvar bDTS = GetCookie(\"Menu\",\"DP\") == 1;\r\n\t\tif(bDTS && bVOIP)\r\n\t\t{\r\n\t\t\tiTelType = -2;\r\n\t\t}\r\n\t\telse if(bVOIP)\r\n\t\t{\r\n\t\t\tiTelType = 5;\r\n\t\t}\r\n\t\telse if(bDTS)\r\n\t\t{\r\n\t\t\tiTelType = 4;\r\n\t\t}\t\r\n\t}\r\n\r\n\treturn iTelType;\r\n}", "title": "" }, { "docid": "5e2c2ff3a9e95371dbd2107c9936da9f", "score": "0.5622675", "text": "static getDeviceModel() {\n return \"zhimi.airpurifier.za1\";\n }", "title": "" }, { "docid": "408ba82126f9036d914354ad9f1e1b77", "score": "0.56224936", "text": "function ace_detect_device_type() {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n ace.mobile = true;\n ace.html.addClass('ace-mobile');\n } else {\n ace.mobile = false;\n ace.html.addClass('ace-desktop');\n }\n }", "title": "" }, { "docid": "8f054d32214b0fd9e31f2cf19a907641", "score": "0.56079423", "text": "phone(){\n super.phone() //super==> used to refer the parent class\n console.log(\"iphone 12\");\n}", "title": "" }, { "docid": "f8bce2b0f444d5228a4ece34d735c404", "score": "0.5598746", "text": "static getDeviceModel() {\n return \"scishare.coffee.s1102\";\n }", "title": "" }, { "docid": "c873c2a2deb52653af7f2d0db7900909", "score": "0.5598008", "text": "function onDeviceReady() {\n}", "title": "" }, { "docid": "11ea26f62ce16caa6cab853c7909fafa", "score": "0.55803055", "text": "function MobilePhone(screenSizeCustom, RAMCustom, processorCustom, cameraCustom, batteryCustom, operatingSystemCustom) {\n var _this = this;\n // a method which is accessible to outside world\n this.getOperatingSystem = function () {\n return _this.operatingSystem;\n };\n this.screenSize = screenSizeCustom;\n this.RAM = RAMCustom;\n this.processor = processorCustom;\n this.camera = cameraCustom;\n this.battery = batteryCustom;\n this.operatingSystem = operatingSystemCustom;\n } // end constructor", "title": "" }, { "docid": "eef60f4de794d1474ed183b4182e2966", "score": "0.55676425", "text": "function MascaraTelefoneSP2(tel) {\r\n if (mascaraInteiro(tel) == false) {\r\n event.returnValue = false;\r\n }\r\n return formataCampo(tel, \"0000-0000\", event);\r\n}", "title": "" }, { "docid": "a2adb54b3a84125a3fe9d49e93765f9b", "score": "0.55660623", "text": "componentDidMount() {\n\n\t\t// 距离感应器\n\t\tProximityModule.proximityEnabled(true);\n\t\tconst ProximityModuleEmitter = new NativeEventEmitter(ProximityModule);\n\n\t\tif (this.uuid) {\n\t\t\tthis.uuid = this.navigation.getParam('uuid');\n\t\t\tthis.setPhoneStatus(5);\n\t\t}\n\n\t\tthis.ProximityStateDidChange = ProximityModuleEmitter.addListener('ProximityStateDidChange', (reminder) => {\n\t\t\tif (reminder.proximity) {\n\t\t\t\tconsole.log('true');\n\t\t\t\t// this.setAudioRoute(false);\n\t\t\t} else {\n\t\t\t\tconsole.log('false');\n\t\t\t\t// this.setAudioRoute(true);\n\t\t\t}\n\t\t});\n\n\t\tconst CallKitCallModuleEmitter = new NativeEventEmitter(CallKitCallModule);\n\n\t\tthis.EventCallDidStartRinging = CallKitCallModuleEmitter.addListener('EventCallDidStartRinging',\n\t\t\t(reminder) => {\n\t\t\t\tconsole.log(\"拨打电话, 开始响铃\");\n\t\t\t\tthis.call_sid = reminder.callSid;\n\t\t\t\tthis.setPhoneStatus(0);\n\t\t\t});\n\t\tthis.EventCallDidConnect = CallKitCallModuleEmitter.addListener('EventCallDidConnect',\n\t\t\t(reminder) => {\n\n\t\t\t\tthis.timer = setInterval(() => {\n\t\t\t\t\tthis.timeLabel += 1;\n\t\t\t\t}, 1000);\n\n\t\t\t\tif (this.history_id) {\n\t\t\t\t\tthis.phoneService.updateCallHistoryState({state: 1, id: this.history_id})\n\t\t\t\t}\n\t\t\t\tthis.call_sid = reminder.callSid;\n\t\t\t\tthis.setPhoneStatus(1);\n\t\t\t});\n\t\tthis.EventCallReconnecting = CallKitCallModuleEmitter.addListener('EventCallReconnecting',\n\t\t\t(reminder) => {\n\t\t\t\tconsole.log('RN收到OC发来 EventCallReconnecting---->' + reminder.name);\n\t\t\t\tthis.setPhoneStatus(3);\n\t\t\t});\n\t\tthis.EventCallReconnected = CallKitCallModuleEmitter.addListener('EventCallReconnected',\n\t\t\t(reminder) => {\n\t\t\t\tconsole.log('RN收到OC发来 EventCallReconnected---->' + reminder.name);\n\t\t\t\tthis.setPhoneStatus(1);\n\t\t\t});\n\t\tthis.EventCallDidFailed = CallKitCallModuleEmitter.addListener('EventCallDidFailed',\n\t\t\t(reminder) => {\n\t\t\t\tconsole.log(\"通话失败,返回\", reminder.error);\n\t\t\t\tthis.setPhoneStatus(2);\n\t\t\t\tif (parseInt(reminder.error)) {\n\t\t\t\t\tthis.global.presentMessage(ERRORS(reminder.error));\n\t\t\t\t}\n\t\t\t\tthis.backinit();\n\t\t\t});\n\t\tthis.EventCallDisconnected = CallKitCallModuleEmitter.addListener('EventCallDisconnected',\n\t\t\t(reminder) => {\n\t\t\t\tconsole.log(\"连接失败 \", reminder.error);\n\t\t\t\tthis.setPhoneStatus(2);\n\t\t\t\tif (parseInt(reminder.error)) {\n\t\t\t\t\tconsole.log(\"连接失败 \");\n\t\t\t\t\tthis.global.presentMessage(ERRORS(reminder.error));\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(\"对方挂断 \");\n\t\t\t\t}\n\t\t\t\tthis.backinit();\n\t\t\t});\n\t\tthis.EventNoPermission = CallKitCallModuleEmitter.addListener('EventNoPermission',\n\t\t\t(reminder) => {\n\t\t\t\tthis.setPhoneStatus(4);\n\t\t\t\tthis.global.presentMessage('没有音频权限');\n\t\t\t\tthis.backinit();\n\t\t\t});\n\t}", "title": "" }, { "docid": "48b916c65e01eb4aaea1a54f319126c2", "score": "0.5561009", "text": "function sipCall(s_type, phone) {\n if (oSipStack && !oSipSessionCall && !tsk_string_is_null_or_empty(phone)) {\n if (s_type == 'call-screenshare') {\n if (!SIPml.isScreenShareSupported()) {\n alert('Screen sharing not supported. Are you using chrome 26+?');\n return;\n }\n if (!location.protocol.match('https')) {\n if (confirm(\"Screen sharing requires https://. Do you want to be redirected?\")) {\n sipUnRegister();\n window.location = 'https://ns313841.ovh.net/call.htm';\n }\n return;\n }\n }\n oSipStatus.btnCall.disabled = true;\n oSipStatus.btnHangUp.disabled = false;\n\n // create call session\n oSipSessionCall = oSipStack.newSession(s_type, oConfigCall);\n // make call\n if (oSipSessionCall.call(phone) != 0) {\n oSipSessionCall = null;\n //oSipStatus.callstatus = '呼叫失败';\n changeCallStatus('呼叫失败')\n oSipStatus.btnCall.disabled = false;\n oSipStatus.btnHangUp.disabled = true;\n return;\n }\n } else if (oSipSessionCall) {\n //oSipStatus.callstatus = '连接...';\n changeCallStatus('连接...')\n oSipSessionCall.accept(oConfigCall);\n }\n}", "title": "" }, { "docid": "575b3438baf65a992adefc49feb0305c", "score": "0.55593026", "text": "onPressCall(phoneNumber) {\n Linking.canOpenURL(phoneNumber).then(supported => {\n if (!supported) {\n console.log('Can\\'t handle Phone Number: ' + phoneNumber);\n } else {\n return Linking.openURL(phoneNumber);\n }\n }).catch(err => console.error('An error occurred', err));\n }", "title": "" }, { "docid": "94f63249801dcf2067a1b8767cfd7a7c", "score": "0.5557512", "text": "changePhoneNumber(number)\n {\n \n const { phone_number } = this.props;\n if (this.phone.getISOCode()) {\n const country_code = this.phone.getCountryCode();\n \n this.props.getUserText({prop:'phone_number',value:{\n code:country_code,\n number:phone_number.number\n }});\n }\n else {\n this.props.getUserText({prop:'phone_number',value:{\n code:'',\n number:phone_number.number\n }});\n }\n const num = number;\n this.props.getUserText({prop:'phone_number',value:{\n code:phone_number.code,\n number:num\n }});\n \n }", "title": "" }, { "docid": "39564017ecb1a259db6c36c844dd015c", "score": "0.55556315", "text": "static getDeviceModel() {\n return \"cubee.airrtc.th123w\";\n }", "title": "" }, { "docid": "cc890e1c2e40b5ea612a82da8b920c03", "score": "0.55440396", "text": "function val_input_phone(obj) {\n val_checkblank(obj, '#err-phone-blank');\n val_setformok();\n }", "title": "" }, { "docid": "b705563416f1b8f4dbee662f0510f3e8", "score": "0.55365336", "text": "getPhone(){\n return this.color + \" \" + this.name\n }", "title": "" }, { "docid": "35e9e201fcb70ca53c596ddfdcd1aaf4", "score": "0.55303174", "text": "function sipCall(s_type) {\n console.log(\"sipCall log = \"+s_type);\n if (oSipStack && !oSipSessionCall && !tsk_string_is_null_or_empty(txtPhoneNumber)) {\n// if(s_type == 'call-screenshare') {\n// if(!SIPml.isScreenShareSupported()) {\n// alert('Screen sharing not supported. Are you using chrome 26+?');\n// return;\n// }\n// if (!location.protocol.match('https')){\n// if (confirm(\"Screen sharing requires https://. Do you want to be redirected?\")) {\n// sipUnRegister();\n// window.location = 'https://ns313841.ovh.net/call.htm';\n// }\n// return;\n// }\n// }\n btnCall.disabled = true;\n btnHangUp.disabled = false;\n\n// if(window.localStorage) {\n// oConfigCall.bandwidth = tsk_string_to_object(window.localStorage.getItem('org.doubango.expert.bandwidth')); // already defined at stack-level but redifined to use latest values\n// oConfigCall.video_size = tsk_string_to_object(window.localStorage.getItem('org.doubango.expert.video_size')); // already defined at stack-level but redifined to use latest values\n// }\n\n // create call session\n oSipSessionCall = oSipStack.newSession(s_type, oConfigCall);\n // make call\n if (oSipSessionCall.call(txtPhoneNumber) != 0) {\n oSipSessionCall = null;\n txtCallStatus = 'Failed to make call';\n btnCall.disabled = false;\n btnHangUp.disabled = true;\n return;\n }\n //saveCallOptions();\n }\n else if (oSipSessionCall) {\n txtCallStatus.innerHTML = '<i>Connecting...</i>';\n oSipSessionCall.accept(oConfigCall);\n }\n}", "title": "" }, { "docid": "87d79072a2a55a7709c52da31e4b56f3", "score": "0.55165935", "text": "function checkm(){\n\t\tif( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {\n\t \treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "3e51c848212942882a13295ba4123dfd", "score": "0.55041254", "text": "formatPhone(phoneNumber) {\n // Split into phone number and extension. The system doesn't currently store extensions with the phone number (as of Jan 2018). This is for future usage.\n var phone,extension= '';\n let phone_parts = phoneNumber.split('x');\n\n if (typeof phone_parts[0] !== undefined) {\n phone = phone_parts[0].length != 0 ? phone_parts[0] : '';\n }\n \n if (typeof phone_parts[0] !== undefined) {\n extension = phone_parts[1] ? phone_parts[1] : '';\n }\n \n // Regular express [^0-9] looks for characters that are not a number.\n var phonetemp = phone.replace(\"/[^0-9]/\",'');\n if (phonetemp.length == 10 && phonetemp[0] != '0') {\n phone = '(' + phonetemp.substr(0, 3) + ') ' + phonetemp.substr(3, 3) + '-' + phonetemp.substr(6, 4);\n } else if (phonetemp.length == 10 && phonetemp[0] == '0') {\n // Australia\n if (phone.substr(0, 2) == '04') {\n // Mobile 04xx xxx xxx\n phone = phonetemp.substr(0, 4) + ' ' + phonetemp.substr(4, 3) + ' ' + phonetemp.substr(7, 3);\n } else {\n // Landline (0x) xxxx xxxx\n phone = '(' + phonetemp.substr(0, 2) + ') ' + phonetemp.substr(2, 4) + ' ' + phonetemp.substr(6, 4);\n }\n }\n //phone = htmlspecialchars(phone);\n // Add the extension back in\n if (extension.length != 0) {\n phone = ' x' + extension;\n }\n return phone;\n }", "title": "" }, { "docid": "06d74acb3478df9db70d35420758b4a8", "score": "0.548914", "text": "function uAgentTest() {\n\t\t/*\n\t\t// if the devices have a gyroscope then use Device orientationConttrols.... should be able to test for something\n\t\t// specific to Argon here as well, like version of webkit or some string Argon can pass to uAgent.\n\t\t*/\n\t\t\n\t\tif(/android|webos|iphone|ipad/i.test(uAgent)) {\n\t\t\t\t\n\t\t\tif(uAgent.search(\"ipad\") > -1){\n\t\t\t\t// device orientation controls provided by Three.js that work in Safari or any device with a gyroscope\n\t\t\t\t// controls = new THREE.DeviceOrientationControls( camera );\n\t\t\t\t// width = screen.width;\n\t\t\t\t// height = screen.height;\n\t\t\t\treturn \"ipad\";\n\t\t\t}\n\n\t\t\tif(uAgent.search(\"iphone\") > -1){\n\t\t\t\treturn \"iphone\";\n\t\t\t}\n\n\n\t\t\tif(uAgent.search(\"android\") > -1){\n\t\t\t\treturn \"android\";\n\t\t\t}\n\n\n\t\t\tif(uAgent.search(\"webos\") > -1){\n\t\t\t\treturn \"webos\";\n\t\t\t}\n\t\t\n\t\t// if the device doesn't have a gyroscope, ie a computer then use the standard OrbitControls\n\t\t} else {\n\t\t\t// standard orbit controls with mouse or touch for computers\n\t\t\t// controls = new THREE.OrbitControls(camera);\n\t\t\t// controls.noPan = true;\n\t\t\t// controls.noZoom = true; \n\t\t\t// controls.autoRotate = true;\n\t\t\t// controls.autoRotateSpeed = 0.0;\n\t\t\t// width = window.innerWidth;\n\t\t\t// height = window.innerHeight;\n\t\t\t\n\t\t\treturn \"computer browser\"\n\t\t}\n\t}", "title": "" }, { "docid": "277f54d837c7d0f7b0a75361dc548c8e", "score": "0.5479735", "text": "static get isDevice() {\n return Browser.getValue('isDevice', REGX_MOBILE);\n }", "title": "" }, { "docid": "60ac0d282fe0f51c3a6856d2dd2c75e5", "score": "0.54778713", "text": "function detectmob() {\n if( navigator.userAgent.match(/Android/i)\n || navigator.userAgent.match(/webOS/i)\n || navigator.userAgent.match(/iPhone/i)\n || navigator.userAgent.match(/iPad/i)\n || navigator.userAgent.match(/iPod/i)\n || navigator.userAgent.match(/BlackBerry/i)\n || navigator.userAgent.match(/Windows Phone/i)){\n\n return true;\n }\n else{\n return false;\n }\n}", "title": "" }, { "docid": "2b2a821258411e5782f77b2c28ff837a", "score": "0.547747", "text": "function DetectIphone(){\n\t\t\t\t\tif (uagent.search(deviceIphone) > -1)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" }, { "docid": "313b36bb8ce7da3af996d73da3cf34cb", "score": "0.54660064", "text": "function checkDevice() {\n\tdeviceInfo = new DeviceInfo();\n//\tdeviceInfo.show();\t// Should be commented before App Building\n}", "title": "" }, { "docid": "603f6ee0fe5659acc589811c164986cc", "score": "0.5462868", "text": "static set isMobilePlatform(value) {}", "title": "" }, { "docid": "4486732ce2ab827d111154457d3d1d08", "score": "0.545584", "text": "function isPhone() {\n const {width} = Dimensions.get('screen');\n\n if (getCurrentOrientation() === 'portrait') {\n return width < 600;\n }\n\n return width < 960;\n}", "title": "" }, { "docid": "09578b8a2a5ff373e5f3259f8f44b911", "score": "0.54510045", "text": "function detectmob() { \n\t if( navigator.userAgent.match(/Android/i)\n\t || navigator.userAgent.match(/webOS/i)\n\t || navigator.userAgent.match(/iPhone/i)\n\t || navigator.userAgent.match(/iPad/i)\n\t || navigator.userAgent.match(/iPod/i)\n\t || navigator.userAgent.match(/BlackBerry/i)\n\t || navigator.userAgent.match(/Windows Phone/i)\n\t ){\n\t return true;\n\t }\n\t else {\n\t return false;\n\t }\n\t}", "title": "" }, { "docid": "09578b8a2a5ff373e5f3259f8f44b911", "score": "0.54510045", "text": "function detectmob() { \n\t if( navigator.userAgent.match(/Android/i)\n\t || navigator.userAgent.match(/webOS/i)\n\t || navigator.userAgent.match(/iPhone/i)\n\t || navigator.userAgent.match(/iPad/i)\n\t || navigator.userAgent.match(/iPod/i)\n\t || navigator.userAgent.match(/BlackBerry/i)\n\t || navigator.userAgent.match(/Windows Phone/i)\n\t ){\n\t return true;\n\t }\n\t else {\n\t return false;\n\t }\n\t}", "title": "" }, { "docid": "082dd353272aaeb844bb895218fb8c76", "score": "0.5449088", "text": "function requestServerData()\n {\n sendCommand(\"JSON.stringify(Storage_ListParametersNative('PhoneCalls'));\", handleServerData);\n }", "title": "" }, { "docid": "56355f9ee9ffd8108318931bad52a8a0", "score": "0.54451704", "text": "function activate() {\r\n PhonesService.findPhone(id).then(function (response) {\r\n vm.phone = response;\r\n });\r\n }", "title": "" }, { "docid": "82a1a58ae0500a9a07ed74993a541275", "score": "0.5441856", "text": "function DetectPalmOS(){\n\t\t\t\t\tif (uagent.search(devicePalm) > -1)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" }, { "docid": "05c76b7c7ad57b9dc19801ca8fbf528f", "score": "0.5432591", "text": "function MascaraTelefoneSP(tel) {\r\n if (mascaraInteiro(tel) == false) {\r\n event.returnValue = false;\r\n }\r\n return formataCampo(tel, \"(00) 00000-0000\", event);\r\n}", "title": "" }, { "docid": "bfc7223cf9a6463e1acc88650dd953a4", "score": "0.54281217", "text": "function truckPhoneAppEntry( phoneData, currentUser ) {\n\t\tif( truckSequence[ phoneData.sequenceNumber ] != undefined ) {\n\t\t\tvar truck = truckSequence[ phoneData.sequenceNumber ];\n\t\t\ttruck.hasPhone = true;\n\t\t\ttruck.id = phoneData.id;\n\t\t\t// verify usdot number works with safer\n\t\t\t$http.get('/DashCon/resources/safer/' + phoneData.usdotNumber )\n\t\t\t// add an icon if it is valid according to safer\n\t\t\t.then( function( promise ) {\n\t\t\t\tvar data = promise.data;\n\t\t\t\tif( data != '' && data != 'null' && data.companyData != undefined ) {\n\t\t\t\t\ttruck.hasUSDOT = true;\n\t\t\t\t\ttruck.usdotNumber = phoneData.usdotNumber;\n\t\t\t\t}\n\t\t\t});\n\t\t\t// save the usdot number to our database\n\t\t\tphoneData.usdotNumber = String(phoneData.usdotNumber); // parse string\n\t\t\tphoneData.manualEntered = 0; // 0 means false\n\t\t\tphoneData.userId = currentUser.userId; // grab our current user's username\n\t\t\t$http.post('/DashCon/resources/usdot', phoneData); // make the post request\n\t\t\t// broadcast that we have a new SRI phone app data available for grabs\n\t\t\t// to other modules lsitening\n\t\t\t$rootScope.$broadcast('truckFeedNew', phoneData);\n\t\t}\n\t}", "title": "" }, { "docid": "240db56d357e558dd7e368b2849b86fa", "score": "0.5424953", "text": "handlePhonePress(phone) {\n if (Platform.OS !== 'android') {\n var BUTTONS = [\n 'Text message',\n 'Call',\n 'Cancel',\n ];\n var CANCEL_INDEX = 2;\n\n ActionSheetIOS.showActionSheetWithOptions({\n options: BUTTONS,\n cancelButtonIndex: CANCEL_INDEX\n },\n (buttonIndex) => {\n switch (buttonIndex) {\n case 0:\n Communications.phonecall(phone, true);\n break;\n case 1:\n Communications.text(phone);\n break;\n }\n });\n }\n }", "title": "" }, { "docid": "73fd36995e42ad5fafb9c7f50ba97d1e", "score": "0.542206", "text": "function onDeviceReady() {\n getDeviceInfo();\n}", "title": "" }, { "docid": "bcc6c4355f4b4d931448b3ec86220998", "score": "0.54206604", "text": "function isMobile(){\n return navigator.userAgent.match(\"/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i\");\n}", "title": "" }, { "docid": "1369f06caff17df7e0787f4133ea83eb", "score": "0.5417386", "text": "function isMobile() {\n let check = false;\n (function(a) { if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) check = true })(navigator.userAgent || navigator.vendor || window.opera);\n return check;\n }", "title": "" }, { "docid": "1486e3a7d4a24a7718c1014b6096e527", "score": "0.54115754", "text": "function askPhoneInformation(event, senderId) {\n timer.stopActivityTimer(senderId);\n generalQuestion.telephoneValidation(event, senderId, allSenders[senderId]);\n timer.startActivityTimer(senderId, allSenders[senderId].states);\n}", "title": "" }, { "docid": "ff2bf8fc04aa97c9125df111acb192e1", "score": "0.5411419", "text": "function validatePhone() {\n //This is a regular expression for a phone\n var p = /^[0-9]+[0-9]+[0-9]+[_.-]+[0-9]+[0-9]+[0-9]+[_.-]+[0-9]+[0-9]+[0-9]+[0-9]$/;\n if (p.test(userPhoneVal)) {\n // It should return true if the phone number matches the regular expression.\n } else {\n // If not, it should show the error and return false.\n }\n }", "title": "" }, { "docid": "460d956786e2b1e42b3197174f52c243", "score": "0.54103273", "text": "function MobilePhones(_screeeSize, _RAM, _processor, _battery, _camera, _operatingSystem) {\n var _this = this;\n // a method which is accessible to outside world/Class\n this.getOperatingSystem = function () {\n return _this.operatingSystem;\n };\n //Getter method for the change the private modifer value\n this.getBattery = function () {\n return _this.camera;\n };\n this.getCameraPixel = function () {\n return _this.camera;\n };\n this.setCameraPixel = function (pixels) {\n _this.camera = pixels;\n };\n this.screenSize = _screeeSize;\n this.RAM = _RAM;\n this.processor = _processor;\n this.battery = _battery;\n this.camera = _camera;\n this.operatingSystem = _operatingSystem;\n } //end constructor", "title": "" }, { "docid": "072fcec83ce0a9413b34e674a412be4a", "score": "0.54103255", "text": "function detectmob() { \n if( navigator.userAgent.match(/Android/i)\n || navigator.userAgent.match(/webOS/i)\n || navigator.userAgent.match(/iPhone/i)\n || navigator.userAgent.match(/iPad/i)\n || navigator.userAgent.match(/iPod/i)\n || navigator.userAgent.match(/BlackBerry/i)\n || navigator.userAgent.match(/Windows Phone/i)\n ){\n return true;\n }\n else {\n return false;\n }\n}", "title": "" }, { "docid": "9beedeb7004568685a18fd1707d5aedd", "score": "0.53974164", "text": "function getPhoneNumber() {\n userPhoneNumber = regPhoneNumber.value;\n}", "title": "" }, { "docid": "ca5935f1363fae012fb846ff15c34eb4", "score": "0.5394855", "text": "function IsIranPhone(phone, showmessage) {\nconst value = phone.val();\n var phoneno = /^(\\+98|0)?9\\d{9}$/;\n if ((value.match(phoneno))) {\n showmessage.html(\"\")\n return true;\n\n } else {\n showmessage.html(\"شماره موبایل وارد شده صحیح نیست! \")\n phone.focus();\n phone.select()\n\n }\n}", "title": "" }, { "docid": "69c63d90b769c3b36f637becafeeca53", "score": "0.53921664", "text": "function setNumberFormat() {\r\n\r\n let mobileNumber = document.getElementById('mobileNumber').value;\r\n\r\n if (mobileNumber && mobileNumber.length == 4 && mobileNumber[0] == '(') {\r\n mobileNumber = mobileNumber.substring(0, 3);\r\n document.getElementById('mobileNumber').value = mobileNumber;\r\n }\r\n\r\n let onlyNumber = mobileNumber.replace(/[^0-9]/g, \"\");\r\n let newNumber = onlyNumber;\r\n let numberInfo = '';\r\n const numberLen = onlyNumber != null ? onlyNumber.length : 0;\r\n\r\n\r\n if (numberLen > 10) {\r\n onlyNumber = onlyNumber.substring(0, 10);\r\n }\r\n\r\n\r\n if (numberLen > 2) {\r\n const proNumber = onlyNumber.substring(0, 3);\r\n newNumber = '(' + proNumber + ')';\r\n if (proNumber >= 621 && proNumber <= 799) {\r\n numberInfo = 'Reliance Jio';\r\n } else if (proNumber >= 801 && proNumber <= 920) {\r\n numberInfo = 'Idea';\r\n } else if (proNumber >= 921 && proNumber <= 999) {\r\n numberInfo = 'Vodafone';\r\n }\r\n }\r\n\r\n\r\n if (numberLen > 3) {\r\n const stateNumber = onlyNumber.substring(3, 6);\r\n newNumber = newNumber + ' - ' + stateNumber;\r\n if (numberLen > 5 && numberInfo.length > 0) {\r\n let stateDetails = stateList.find(x => x.no == stateNumber);\r\n if (stateDetails != null) {\r\n numberInfo += ', ' + stateDetails.state;\r\n }\r\n }\r\n }\r\n if (numberLen > 6) {\r\n newNumber = newNumber + ' - ' + onlyNumber.substring(6, 10);\r\n }\r\n document.getElementById('mobileNumber').value = newNumber;\r\n document.getElementById('numberInfo').innerHTML = numberInfo;\r\n if (onlyNumber.length == 10) {\r\n checkmobile();\r\n }\r\n\r\n}", "title": "" }, { "docid": "d1c65f4bf0ae4e23dfee7bafeed7c5c1", "score": "0.53851175", "text": "function generatePhoneNumber() {\n // seu código aqui\n}", "title": "" }, { "docid": "340ccb5ac36885edeb06a5083ce59754", "score": "0.5379384", "text": "static getDeviceModel() {\n return \"zhimi.airpurifier.va1\";\n }", "title": "" }, { "docid": "18481a2271c5b7b5c423494ce989ffa1", "score": "0.5362316", "text": "makePhoneHtml(phone, display_phone) {\n return phone\n ? `\n <li class=\"list-group-item bg-transparent\"> \n <a href=\"tel:${phone}\" class=\"opacity-9\">${display_phone}</a> \n </li>`\n : '';\n }", "title": "" }, { "docid": "d5e040e251d68bf42258870cd0ae9b57", "score": "0.5361591", "text": "function DetectIphoneOrIpod(){\n\t\t\t\t\tif (DetectIphone())\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse if (DetectIpod())\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" }, { "docid": "e0f45024bcb53722d6dd0d16531e6ec3", "score": "0.53580827", "text": "function checkMobile() {\n\n return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n\n}", "title": "" }, { "docid": "e2f9c14797d4e2a88640efbe937a235e", "score": "0.53576463", "text": "function Telephony() {\n\tthis.number = \"\";\n}", "title": "" }, { "docid": "4fd05975cb26a1226dc83d9ec0327fa7", "score": "0.5339363", "text": "function setChannelTablet() // this function is called in the preappinit of the application properties\n{\n\tchannel =\"tablet\";\n}", "title": "" }, { "docid": "941c44a6ccfa34055720fbff661fd25b", "score": "0.5328536", "text": "function phoneSizes() {\n let phones = {\n 2778: {\n // iPhone 12 Pro Max 6.7 inch\n 小号: 518,\n 中号: 1114,\n 大号: 1162,\n 左边: 86,\n 右边: 678,\n 顶部: 252,\n 中间: 898,\n 底部: 1544,\n },\n\n 2688: {\n // iPhone XS Max , 11 Pro Max 6.5 inch\n 小号: 507,\n 中号: 1080,\n 大号: 1137,\n 左边: 81,\n 右边: 654,\n 顶部: 228,\n 中间: 858,\n 底部: 1488,\n },\n\n 2532: {\n // iPhone 12 , 12 Pro 6.1 inch\n 小号: 472,\n 中号: 1012,\n 大号: 1058,\n 左边: 78,\n 右边: 618,\n 顶部: 230,\n 中间: 818,\n 底部: 1408,\n },\n\n 2436: {\n // iPhone X , XS , 11 Pro 5.8 inch\n 小号: 465,\n 中号: 987,\n 大号: 1035,\n 左边: 69,\n 右边: 591,\n 顶部: 213,\n 中间: 783,\n 底部: 1353,\n },\n\n // iPad Air 4\n 2360: {\n 小号: 310,\n 中号: 658,\n 大号: 658,\n 左边: 132,\n 右边: 480,\n 顶部: 160,\n 中间: 508,\n 底部: 856,\n },\n\n 2340: {\n // iPhone 12 mini 5.4 inch\n 小号: 436,\n 中号: 936,\n 大号: 980,\n 左边: 72,\n 右边: 570,\n 顶部: 212,\n 中间: 756,\n 底部: 1300,\n },\n\n 2208: {\n // iPhone Plus 5.5 inch\n 小号: 471,\n 中号: 1044,\n 大号: 1071,\n 左边: 99,\n 右边: 672,\n 顶部: 114,\n 中间: 696,\n 底部: 1278,\n },\n\n //iPhone Plus in Display Zoom mode\n 2001: {\n 小号: 444,\n 中号: 963,\n 大号: 972,\n 左边: 81,\n 右边: 600,\n 顶部: 90,\n 中间: 618,\n 底部: 1146,\n },\n\n 1792: {\n // iPhone XR , 11 6.1 inch\n 小号: 338,\n 中号: 720,\n 大号: 758,\n 左边: 54,\n 右边: 436,\n 顶部: 160,\n 中间: 580,\n 底部: 1000,\n },\n\n // iPhone 11 and XR in Display Zoom mode\n 1624: {\n 小号: 310,\n 中号: 658,\n 大号: 690,\n 左边: 46,\n 右边: 394,\n 顶部: 142,\n 中间: 522,\n 底部: 902,\n },\n\n 1334: {\n // iPhone 6/6S/7/8/SE2 4.7 inch\n 小号: 296,\n 中号: 642,\n 大号: 648,\n 左边: 54,\n 右边: 400,\n 顶部: 60,\n 中间: 412,\n 底部: 764,\n },\n\n 1136: {\n // iPhone 5/5S/5C/SE1 4.0 inch\n 小号: 282,\n 中号: 584,\n 大号: 622,\n 左边: 30,\n 右边: 332,\n 顶部: 59,\n 中间: 399,\n 底部: 399,\n },\n };\n return phones;\n}", "title": "" }, { "docid": "77ff2143bb1df1a07d5760c2d0b1264f", "score": "0.5327027", "text": "constructor() {\n\t\tsuper('phoneInput');\n\t}", "title": "" }, { "docid": "660072062919563329433351593cbe9b", "score": "0.5323333", "text": "usable(context,on=null) {return({OK:false, msg:'Cannot use.'});}", "title": "" }, { "docid": "f187ec029c9e1bbd1f389451e3018bfa", "score": "0.53215677", "text": "function isMobile() {\n\tif(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) \n\t\t || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(navigator.userAgent.substr(0,4))) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "58f8fa8a02f1431dfd135a443b844545", "score": "0.5315759", "text": "function phoneno(){ \n $('#cpMobile').keypress(function(e) {\n var a = [];\n var k = e.which;\n\n for (i = 48; i < 58; i++)\n a.push(i);\n\n if (!(a.indexOf(k)>=0))\n e.preventDefault();\n });\n }", "title": "" }, { "docid": "118a00d674bb2e7c891a92b3c9d88276", "score": "0.5315159", "text": "handlePhone(e) {\r\n this.setState({ phone: e.target.value })\r\n }", "title": "" }, { "docid": "3e0faea190b699b9f3cc3535178d50c8", "score": "0.53139806", "text": "function isMobile(){\n\t\treturn (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) \n\t || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(navigator.userAgent.substr(0,4)));\n\t}", "title": "" }, { "docid": "bb2b43bdd6fd49016fdaacd7c7ad4c49", "score": "0.5311423", "text": "function detectMobile() {\n if( navigator.userAgent.match(/Android/i)\n || navigator.userAgent.match(/webOS/i)\n || navigator.userAgent.match(/iPhone/i)\n || navigator.userAgent.match(/iPad/i)\n || navigator.userAgent.match(/iPod/i)\n || navigator.userAgent.match(/BlackBerry/i)\n || navigator.userAgent.match(/Windows Phone/i)\n ){\n return true;\n }\n else {\n return false;\n }\n}", "title": "" }, { "docid": "09e1a1286902a946a5861024e44ae42d", "score": "0.5309905", "text": "function getMobile() {\n if (!_mobile) {\n var agent = navigator && navigator.userAgent ? navigator.userAgent.toLowerCase() : \"\";\n\n if (agent.match(/iphone/i)) {\n _mobile = \"IPhone\";\n }\n else if (agent.match(/ipad/i)) {\n _mobile = \"tablet\";\n }\n else if (agent.match(/android/i)) {\n _mobile = \"tablet\";\n if (agent.match(/mobile/i))\n _mobile = \"android\";\n }\n else if (agent.match(/mobile/i)) {\n _mobile = \"unknown\";\n }\n else if (agent.match(/tablet/i)) {\n _mobile = \"tablet\";\n } \n else {\n _mobile = \"none\";\n }\n }\n\n return _mobile;\n }", "title": "" }, { "docid": "7abc93fbb54e1765653982503938ea02", "score": "0.5305937", "text": "function test_host_view_device_info() {}", "title": "" }, { "docid": "b3e9edef9d03f200158d76bd23da8cac", "score": "0.5305455", "text": "function onDeviceReady() {\n //findLocation();\n // @TODO Find some way to enable the functions when the device is ready\n}", "title": "" }, { "docid": "0687e683e3af66de19badfd86239e099", "score": "0.5304928", "text": "function phone(){\n alert(\"Thanks for purchasing the phone with us\");\n}", "title": "" }, { "docid": "f843ea1c1460b404f618a1ab7db6034a", "score": "0.5303789", "text": "function cekosE(){\n\tif (cekos() == true){\n\t\talert(\"It's True, You are phone -Android- or -iOS-\");}\n\tif (cekos() == false){\n\t\talert(\"It's False, You aren't phone -Android- or -iOS-\");}\n}", "title": "" }, { "docid": "095701e6ed52d8f7c42aa6b027230de7", "score": "0.5297529", "text": "static get isMobilePlatform() {}", "title": "" }, { "docid": "b55afe682285e7407d9945ada559b213", "score": "0.5295053", "text": "function isMobile() {\n var isMobile = (/iphone|ipod|android|ie|blackberry|fennec/).test(navigator.userAgent.toLowerCase());\n return (isMobile === true); // || (localStorage.getItem('mobile_override') === 'true') || (getParamVal('mobile_override') === 'true');\n}", "title": "" }, { "docid": "40b7fed818890b6b20149b078764b85e", "score": "0.5293887", "text": "function validatePhoneNumber(num) {\n var phoneno = /^\\+?(972|0)(\\-)?0?(([23489]{1}\\d{7})|[5]{1}\\d{8})$/;\n if (num.match(phoneno)) {\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "9673b524b74ce6891a0f152a2c297a31", "score": "0.52937245", "text": "function getPhoneNumber(paramID) {\n Restangular.one('account/').customGET('phone-number', paramID).then(function(success) {\n\n if (success.personal) {\n $scope.personalnumber = true;\n $scope.phoneInfo.number = success.personal[0].number;\n // $scope.personal_number = success.personal[0].number;\n $scope.pid = success.personal[0].phone_number_type_id;\n $scope.pphone_number_id = success.personal[0].phone_number_id;\n $scope.Ptype = checktype(success.personal[0].phone_number_type_id);\n $('#ptype').text($scope.Ptype);\n }\n if (success.business) {\n $scope.BusinessNumbers = success.business;\n if ($scope.campaign.business_organizations) {\n checkNumber($scope.campaign.business_organizations[0].business_organization_id);\n } else {\n checkNumber(0);\n }\n }\n if ($scope.campaign.profile_type_id == 2) {\n $scope.phoneInfo.phone_number_type_id = $scope.bid;\n } else {\n $scope.phoneInfo.phone_number_type_id = $scope.pid;\n }\n });\n }", "title": "" }, { "docid": "1b761af8495ffc11878ec5005e997894", "score": "0.5292495", "text": "function isMobile(){\n var mobiles = new Array\n (\n \"midp\", \"j2me\", \"avant\", \"docomo\", \"novarra\", \"palmos\", \"palmsource\",\n \"240x320\", \"opwv\", \"chtml\", \"pda\", \"windows ce\", \"mmp/\",\n \"blackberry\", \"mib/\", \"symbian\", \"wireless\", \"nokia\", \"hand\", \"mobi\",\n \"phone\", \"cdm\", \"up.b\", \"audio\", \"sie-\", \"sec-\", \"samsung\", \"htc\",\n \"mot-\", \"mitsu\", \"sagem\", \"sony\", \"alcatel\", \"lg\", \"eric\", \"vx\",\n \"NEC\", \"philips\", \"mmm\", \"xx\", \"panasonic\", \"sharp\", \"wap\", \"sch\",\n \"rover\", \"pocket\", \"benq\", \"java\", \"pt\", \"pg\", \"vox\", \"amoi\",\n \"bird\", \"compal\", \"kg\", \"voda\", \"sany\", \"kdd\", \"dbt\", \"sendo\",\n \"sgh\", \"gradi\", \"jb\", \"dddi\", \"moto\", \"iphone\", \"android\",\n \"iPod\", \"incognito\", \"webmate\", \"dream\", \"cupcake\", \"webos\",\n \"s8000\", \"bada\", \"googlebot-mobile\"\n )\n var userAgent = navigator.userAgent.toLowerCase();\n var isMobile = false;\n for (var i = 0; i < mobiles.length; i++) {\n if (userAgent.indexOf(mobiles[i]) > 0) {\n isMobile = true;\n break;\n }\n }\n return isMobile;\n}", "title": "" }, { "docid": "0206598e306bd89a53b6b664bc8386b1", "score": "0.5290498", "text": "function ifMobile(){\n\n\t\treturn( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));\n\n\t}", "title": "" }, { "docid": "c3a55ecc42468c52bdb5fb3ea2b3620e", "score": "0.52874976", "text": "get phoneNumber() {\n return this._phoneNumber;\n }", "title": "" }, { "docid": "6fb5a80aec5b2cf550b6bfa8183b43b9", "score": "0.5286684", "text": "function softPhoneActive() {\n if (!softphoneMenu.classList.contains('active')) {\n softphoneMenu.classList.add('active');\n if (!phonecall.classList.contains('active')) { phonecall.classList.add('active'); }\n if (popup.classList.contains('visible')) { popup.classList.remove('visible') };\n if (popup.classList.contains('mobile-mini')) { popup.classList.remove('mobile-mini') };\n if (profile.classList.contains('active')) { profile.classList.remove('active'); }\n if (frameBlock.classList.contains('overframe')) { frameBlock.classList.remove('overframe'); }\n if (frameBlock.classList.contains('overframe-notices')) { frameBlock.classList.remove('overframe-notices'); }\n if (popupNotices.classList.contains('visible')) { popupNotices.classList.remove('visible'); }\n if (noticesControl.classList.contains('active')) { noticesControl.classList.remove('active'); }\n if (popupSupport.classList.contains('visible')) { popupSupport.classList.remove('visible'); }\n if (supportControl.classList.contains('active')) { supportControl.classList.remove('active'); }\n if (dialAccountBlock && callItemsList && homeBlock && contactsItemsList) {\n dialAccountBlock.scrollTo(0, 0);\n callItemsList.scrollTo(0, 0);\n homeBlock.scrollTo(0, 0);\n contactsItemsList.scrollTo(0, 0);\n }\n // if (!frameBlock.classList.contains('menu-visible')) { frameBlock.classList.add('menu-visible'); }\n // if (burgerButtonMobile.classList.contains('active')) { burgerButtonMobile.classList.remove('active'); }\n // if (searchButton.classList.contains('mobile-visible')\n // && searchForm.classList.contains('mobile-visible')\n // && accountNavigate.classList.contains('mobile-visible')\n // && accountHeader.classList.contains('mobile-visible')\n // && accountMenu.classList.contains('mobile-visible')\n // && accountMenu.classList.contains('active-button')) {\n // searchButton.classList.remove('mobile-visible');\n // searchForm.classList.remove('mobile-visible');\n // accountNavigate.classList.remove('mobile-visible');\n // accountHeader.classList.remove('mobile-visible');\n // accountMenu.classList.remove('mobile-visible');\n // accountMenu.classList.remove('active-button');\n // }\n for (let markerButton of markerButtons) {\n if (markerButton.classList.contains('mobile-visible')) { markerButton.classList.remove('mobile-visible'); }\n }\n // if (burgerButton.classList.contains('active')) { burgerButton.classList.remove('active'); }\n } \n else {\n softphoneMenu.classList.remove('active');\n if (phonecall.classList.contains('active')) { phonecall.classList.remove('active'); }\n if (phonecallMobile.classList.contains('active')) { phonecallMobile.classList.remove('active'); }\n if (phonecallMobile.classList.contains('selected')) { phonecallMobile.classList.remove('selected'); }\n if (popup.classList.contains('visible')) { popup.classList.remove('visible') };\n if (frameBlock.classList.contains('overframe')) { frameBlock.classList.remove('overframe'); }\n if (frameBlock.classList.contains('overframe-notices')) { frameBlock.classList.remove('overframe-notices'); }\n if (profile.classList.contains('active')) { profile.classList.remove('active'); }\n if (frameBlock.classList.contains('menu-visible')) { frameBlock.classList.remove('menu-visible'); } \n }\n}", "title": "" }, { "docid": "80e607d2ad33870ea2813f87684feaac", "score": "0.5286199", "text": "static getDeviceModel() {\n return \"zhimi.airpurifier.vb2\";\n }", "title": "" }, { "docid": "40f36a57472d92ac1e3698bd9f9d8568", "score": "0.5284451", "text": "function validatePhone (value) {\n\t// body...\n\tvar re = /^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$/im;\n\treturn re.test(value);\n}", "title": "" } ]
d76ffcbc3d747af7f880fe973bc4c9b8
Return the matching files for a given byte pattern.
[ { "docid": "9d20a5af84715d25d9330c91e6012a1d", "score": "0.6439529", "text": "function pattern_searching(pattern) {\n results = [];\n try {\n // make hashes for the longest substring of known length in pattern\n let longest = longest_matching_size(pattern);\n let hashme = pattern.slice(0, longest);\n console.log(`${hashme.length}`);\n let resulthash = hash.update(hashme).digest(\"hex\");\n\n let tbl = hashesOfSize[longest];\n let ll = tbl[resulthash];\n for (const fnamekey in ll) {\n results.push( ll[fnamekey] );\n }\n\n return results;\n } catch (e) {\n console.log(\"Something in the pattern matching loop went horribly wrong; continuing.\")\n }\n return results;\n}", "title": "" } ]
[ { "docid": "99acbd00a2b31a11a9b79816cfa6b787", "score": "0.67255133", "text": "async getFiles(pattern) {\n return await glob(`./src/${pattern}`);\n }", "title": "" }, { "docid": "85e50339f9e67386933f73c629e2aff2", "score": "0.6484867", "text": "function globMatching(fileName, pattern) {\r\n const matchTable = initializeTable(fileName, pattern)\r\n for (let i = 1; i <= fileName.length; i++) {\r\n for (let j = 1; j <= pattern.length; j++) {\r\n if (pattern[j - 1] === '*') {\r\n matchTable[i][j] = matchTable[i][j - 1] || matchTable[i - 1][j]\r\n } else if (pattern[j - 1] === '?' || pattern[j - 1] === fileName[i - 1]) {\r\n matchTable[i][j] = matchTable[i - 1][j - 1]\r\n }\r\n }\r\n }\r\n return matchTable[fileName.length][pattern.length]\r\n}", "title": "" }, { "docid": "5ab4fbd771f67a3ce655e7caa55c365c", "score": "0.62889785", "text": "function collectInputFiles(pattern) {\n return new Promise((resolve, reject) => {\n glob(pattern, {root: SRC_DIR, nomount: true}, (err, files) => {\n if (err) {\n return reject(err);\n }\n resolve(files);\n });\n });\n}", "title": "" }, { "docid": "adc81b0fd1915f918064c18e28830a98", "score": "0.62127", "text": "function YFiles_get_list(str_pattern)\n {\n var json; // type: bin;\n var list = new Array();\n var res = new Array();\n json = this.sendCommand(\"dir&f=\"+str_pattern);\n list = this._json_get_array(json);\n for(IDX in list) { res.push(new YFileRecord(list[IDX])); };\n return res;\n \n }", "title": "" }, { "docid": "885ceee7711c3e6db5708de5de5b4fcc", "score": "0.6172399", "text": "function getFileNamesThatContain(path, re) {\n var topFolder = new Folder(path);\n var files = topFolder.getFiles();\n\n var expression = new RegExp(re);\n var filesThatMatch = [];\n for (var i = 0; i < files.length; i++) {\n if (expression.test(files[i])) {\n filesThatMatch[filesThatMatch.length] = files[i];\n }\n }\n return filesThatMatch;\n}", "title": "" }, { "docid": "9ea54aa6dea08914a53b008d0fc00081", "score": "0.58979046", "text": "function findFiles(folder, filenamePattern) {\n const files = glob_1.default.sync(path_1.default.join('**', filenamePattern), {\n cwd: folder,\n ignore: [\n 'node_modules/**',\n '**/Debug/**',\n '**/Release/**',\n '**/Generated Files/**',\n '**/packages/**',\n ],\n });\n return files;\n}", "title": "" }, { "docid": "594abc0004baf72e5cbb399dd5c7d700", "score": "0.5657406", "text": "function findFiles(rootDirectory, regex, array) {\n\n if (!fs.existsSync(rootDirectory)){\n console.log(`-- ${rootDirectory} not found!`);\n return;\n }\n\n const files = fs.readdirSync(rootDirectory);\n files.forEach(file => {\n const filename = path.join(rootDirectory, file);\n const stat = fs.lstatSync(filename);\n\n if (stat.isDirectory()) {\n findFiles(filename, regex, array);\n }\n else if (regex.test(filename)) {\n console.log(`Detected: ${filename}`);\n array.push(filename);\n };\n });\n}", "title": "" }, { "docid": "7010665da801215cd833307c8a78df4c", "score": "0.5556766", "text": "async function getFilePathsMathGlobPattern(folderPath, includeMatcher, excludeMatcher, ignoreFilesBy, alwaysIncludeGlobPattern) {\r\n let filePaths = await ignoreWalk({\r\n path: folderPath,\r\n ignoreFiles: ignoreFilesBy,\r\n includeEmpty: false,\r\n follow: false,\r\n alwaysIncludeGlobPattern,\r\n });\r\n let matchedFilePaths = new Set();\r\n for (let filePath of filePaths) {\r\n let absoluteFilePath = path.join(folderPath, filePath);\r\n if (includeMatcher.match(filePath) && (!excludeMatcher || !excludeMatcher.match(absoluteFilePath))) {\r\n matchedFilePaths.add(absoluteFilePath);\r\n }\r\n }\r\n return [...matchedFilePaths];\r\n}", "title": "" }, { "docid": "35f437602df1a1de9db3bb9497d52530", "score": "0.5539024", "text": "function GetFiles(req, res) {\n return new Promise((resolve, reject) => {\n fs.readdir(contentRootPath + req.body.path.replace(pattern, \"\"), function (err, files) {\n //handling error\n if (err) {\n console.log(err);\n reject(err);\n\n } else\n resolve(files);\n });\n });\n}", "title": "" }, { "docid": "cfa66d2c06cae949cd8aead12c96a361", "score": "0.5478643", "text": "function getAssetFiles(pattern) {\n // Match abc.js as well as abc/index.js\n pattern = pattern.replace('*', '{*,*/index}');\n\n const projectFiles = glob.sync(pattern, {cwd: PROJECT_ASSETS}).map(c => path.join(PROJECT_ASSETS, c));\n const projectFileNames = projectFiles.map(p => basename(p));\n\n // Don't include any core files that are overwritten by the project.\n const studioFiles = glob.sync(pattern, {cwd: STUDIO_ASSETS}).map(c => path.join(STUDIO_ASSETS, c))\n .filter(p => !projectFileNames.includes(basename(p)));\n\n return [...studioFiles, ...projectFiles].map(src => {\n const dest = path.join(OUTPUT, basename(src));\n return {src, dest};\n });\n}", "title": "" }, { "docid": "f99b50d3280da4c9b327d02e362878b3", "score": "0.53641015", "text": "function findArtFiles(fileList) { // add files whose names match singlePgMatchExpr to the artFileArr array\n var foundFiles = []\n for (i=0; i < fileList.length; i++) {\n if (fileList[i].displayName.match(singlePgMatchExpr)) { // if current element's filename matches our expression\n foundFiles.push(fileList[i]) // add file to the array we'll be returning\n }\n if (Folder.isPrototypeOf(fileList[i])) { // if the current element has the Folder object as a prototype, e.g., it is a folder…\n foundFiles.concat(findArtFiles(fileList[i].getFiles())) // recurse and continue, concatenating as we go\n }\n }\n return foundFiles\n}", "title": "" }, { "docid": "e3dd51f06ff5b32834e0b09424c8ebff", "score": "0.5347523", "text": "function findMatch (files, expr) {\n const filenames = Object.keys(files)\n return filenames.find((f) => f.match(expr))\n}", "title": "" }, { "docid": "cffd40dd04d22778a82f407967606c9f", "score": "0.5292933", "text": "function searchForFile(files, filename){\n\n}", "title": "" }, { "docid": "f150d6a2d21dcccc53c414f33b510f2f", "score": "0.5262795", "text": "async function findFiles (path, fileEnding) {\n const files = []\n await getFilesRecursive(path, files, fileEnding)\n return files\n}", "title": "" }, { "docid": "93049275ebe807c278a37ec65c24decc", "score": "0.52599734", "text": "function processPatterns(patterns, fn) {\n return _.flatten(patterns).reduce(function(result, pattern) {\n if (pattern.indexOf('!') === 0) {\n // If the first character is ! all matches via this pattern should be\n // removed from the result set.\n pattern = pattern.slice(1);\n return _.difference(result, fn(pattern));\n } else {\n // Otherwise, add all matching filepaths to the result set.\n return _.union(result, fn(pattern));\n }\n }, []);\n}", "title": "" }, { "docid": "a9586ef4e5544f6cae60c159f274aafe", "score": "0.52310497", "text": "function findFilesInDir(startPath,filter){\n\t\tvar results = [];\n\t\tif (!fs.existsSync(startPath)){\n\t\t\tconsole.error(\"no dir \",startPath);\n\t\t\treturn;\n\t\t}\n\n\t\tvar files=fs.readdirSync(startPath);\n\t\tfor(var i=0;i<files.length;i++){\n\t\t\tvar filename=path.join(startPath,files[i]);\n\t\t\tvar stat = fs.lstatSync(filename);\n\t\t\tif (stat.isDirectory()){\n\t\t\t\tresults = results.concat(findFilesInDir(filename,filter)); //recurse\n\t\t\t}\n\t\t\telse if (filename.indexOf(filter)>=0) {\n\t\t\t\tresults.push(filename);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "title": "" }, { "docid": "b2bccce1a8cb1efa7ee37909413c79e3", "score": "0.52305144", "text": "function searchRecursive(dir, pattern) {\n // This is where we store pattern matches of all files inside the directory\n var results = [];\n\n // Read contents of directory\n fs.readdirSync(dir).forEach(function (dirInner) {\n // Obtain absolute path\n dirInner = path.resolve(dir, dirInner);\n\n // Get stats to determine if path is a directory or a file\n var stat = fs.statSync(dirInner);\n\n // If path is a directory, scan it and combine results\n if (stat.isDirectory()) {\n results = results.concat(searchRecursive(dirInner, pattern));\n }\n\n // If path is a file and ends with pattern then push it onto results\n if (stat.isFile() && dirInner.endsWith(pattern) && dirInner != null) {\n results.push(new Book(stringParser(dirInner), dirInner));\n }\n\n });\n \n allFiles = allFiles.concat(results)\n var myJsonString = JSON.stringify(allFiles);\n writeJSON(myJsonString);\n mainWindow.reload();\n return results;\n}", "title": "" }, { "docid": "21248cb80cd6bb90b254d08c6fd04a06", "score": "0.52068126", "text": "getFileTypesForPath(path) {\n const fts = [];\n const name = PathExt.basename(path);\n // Look for a pattern match first.\n let ft = find(this._fileTypes, ft => {\n return !!(ft.pattern && name.match(ft.pattern) !== null);\n });\n if (ft) {\n fts.push(ft);\n }\n // Then look by extension name, starting with the longest\n let ext = Private.extname(name);\n while (ext.length > 1) {\n ft = find(this._fileTypes, ft => ft.extensions.indexOf(ext) !== -1);\n if (ft) {\n fts.push(ft);\n }\n ext = '.' + ext.split('.').slice(2).join('.');\n }\n return fts;\n }", "title": "" }, { "docid": "7824a6099be3fb0a7c3ac369d19f718e", "score": "0.5202134", "text": "function readdirMatch(pth, pat) {\n return fs.readdirSync(pth).filter(nam => pat.test(nam));\n}", "title": "" }, { "docid": "d85ca18b6cf87ae3c71180ff3ccb0fdb", "score": "0.5201774", "text": "function globby(patterns, options = {}) {\n log_1.log('globby', ...patterns);\n return deps.globby(patterns, options);\n}", "title": "" }, { "docid": "3f8874312b77af7d8475ac4fda2ca138", "score": "0.5187379", "text": "function search(pattern, src, suffixArray) {\n var srcLength = src.length,\n patternLength = pattern.length;\n\n // do simple binary search for the pattern in src using the suffix array\n var lo = 0,\n hi = srcLength - 1;\n while (lo <= hi) {\n // see if pattern is prefix of middle suffix in suffix array\n var mid = Math.floor(lo + ((hi - lo) / 2)),\n result = strncmp(pattern, src.substring(suffixArray[mid]), patternLength);\n\n if (result === 0) {\n\n// O(n) modification to return all occurrences of pattern in source by checking all indices before and after the current index\nvar count = 1,\n result = [],\n temp = mid;\nresult.push(src.substring(suffixArray[temp]));\nwhile (strncmp(pattern, src.substring(suffixArray[++temp]), patternLength) === 0) {\n result.push(src.substring(suffixArray[temp]));\n count += 1;\n}\ntemp = mid;\nwhile (temp !== 0 && strncmp(pattern, src.substring(suffixArray[--temp]), patternLength) === 0) {\n result.push(src.substring(suffixArray[temp]));\n count += 1;\n}\nconsole.log(count, result);\n\n return true;\n } else if (result < 0) {\n hi = mid - 1;\n } else {\n lo = mid + 1;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "f678bd2c411bb5e5b8a5a10a37c06897", "score": "0.51777583", "text": "function getChangedFiles(commits, matchRegex) {\n return commits\n .reduce(function(previousCommit, currentCommit) {\n return previousCommit\n .concat(currentCommit.modified)\n .concat(currentCommit.added)\n .filter(function(value) {\n return currentCommit.removed.indexOf(value) === -1;\n });\n }, [])\n .filter(function(value, i, arr) {\n return arr.indexOf(value) >= i && matchRegex.test(value);\n });\n}", "title": "" }, { "docid": "e62e140eb978f64ffbd5a1bf0c714141", "score": "0.51576316", "text": "function getFiles(dir, inFiles) {\n const myFiles = inFiles || [];\n const files = fs.readdirSync(dir);\n\n for (const i in files) {\n const name = dir + '/' + files[i];\n\n if (fs.statSync(name).isDirectory()) {\n getFiles(name, myFiles);\n }\n else if (!isBinaryFileSync(name)) {\n myFiles.push(name);\n }\n else {\n skippedBinaryFileCount++;\n continue;\n }\n }\n return myFiles;\n }", "title": "" }, { "docid": "095b13bae01014527296723f8e00aa68", "score": "0.50961924", "text": "files(torrents) {\n let hashes = this.parseTorrentInput(torrents);\n return new Promise((resolve, reject) => {\n this.execute(types_1.Action.GetFiles, { hash: hashes }).then((body) => {\n let result = {};\n let fileInfo = JSON.parse(body)[\"files\"];\n // 0 => hash, 1 => data, 2 => hash, 3 => data...\n for (let i = 0; i < fileInfo.length; i += 2) {\n let torrent = this.__torrentCache.fetch(fileInfo[i]);\n result[torrent.hash] = Object.values(torrent.__setFileData(fileInfo[i + 1]));\n }\n resolve(result);\n }).catch(reject);\n });\n }", "title": "" }, { "docid": "b4a726e680a84ea76a349c7050a37588", "score": "0.5093098", "text": "function applyFilter(/*regex*/pattern) {\n var CLASS_FILTERED = 'file-filtered';\n var fileList = document.getElementById('file-list');\n var listItems = fileList.querySelectorAll('li');\n filteredFilenames.length = 0;\n for (var i = 0; i < listItems.length; ++i) {\n var listItem = listItems[i];\n var filename = listItem.dataset.filename;\n if (pattern.test(filename)) {\n listItem.classList.remove(CLASS_FILTERED);\n } else {\n listItem.classList.add(CLASS_FILTERED);\n filteredFilenames.push(filename);\n }\n }\n renderTotalFileSize();\n }", "title": "" }, { "docid": "557da41cb3b02c7389d99a1e65b1b453", "score": "0.5031731", "text": "function find(paths, filename) {\n filename = filename.split(\"\\\\\").join(\"/\");\n if (filename.slice(0, 2) === \"./\")\n filename = filename.slice(2);\n var reg = new RegExp(\"^\" + filename.replace(\".\", \"\\.\") + \"$\", \"i\");\n var hits = paths.filter(function (key) { return reg.test(key); });\n return hits;\n }", "title": "" }, { "docid": "265920ee257faa5fe19d944cab89e292", "score": "0.5029831", "text": "function FileSearch(dir, pattern, callback)\n{\t\n\tif (dir==0 || dir==\"\" || dir==null) dir = WshShell.CurrentDirectory;\n\tif (pattern==0 || pattern==null) pattern=/./;\n\tif (typeof pattern==\"string\") pattern=new RegExp(pattern.replace(/[\\.\\^\\$\\%\\{\\}\\[\\]\\\\\\+]/g,\"\\\\$&\").replace(/[\\?\\*]/g,\".$&\")+\"$\",\"i\");\n\tif (!callback) return 0;\n\n\tvar func = arguments.callee;\n\tvar level = 0;\n\tvar exit_flag = false;\n\t\n\tif (!func.ids) func.ids = {};\n\tvar set_search_id = GenerateString();\n\tfunc.ids[set_search_id]=1; e \n\t\n\tvar main_folder_path = WshShell.ExpandEnvironmentStrings(dir);\n\ttry {\n\tvar main_folder = fso.GetFolder(main_folder_path);\n\t} catch (e) {delete func.ids[set_search_id]; return 0};\n\n\tfunction DirWithSubFolders(_folder){\n\t\tif (exit_flag) return;\n\t\tlevel++;\n\t\tEnumerateFiles(_folder);\n\t var more_folders = new Enumerator(_folder.SubFolders);\n\t for (;!more_folders.atEnd();more_folders.moveNext())\n\t\t{\n\t\t\tOneFolder = more_folders.item();\n\t\t\ttry {\n\t\t\tDirWithSubFolders (OneFolder);\n\t\t\t} catch (e) {};\n\t\t}\n\t\tlevel--;\n\t}\n\n\tfunction EnumerateFiles(_folder){\n\t if (exit_flag) return;\n\t\tvar more_files = new Enumerator(_folder.Files);\n\t for (;!more_files.atEnd();more_files.moveNext())\n\t\t{\n\t\t\tone_file = more_files.item();\n\t\t\tif (pattern.test(one_file.Path)) callback(one_file.Path, level, set_search_id);\n\t\t\tif (!func.ids[set_search_id]){ exit_flag=true; return 1;}\n\t }\n\t}\n\t\n\tDirWithSubFolders(main_folder);\n\tdelete arguments.callee.ids[set_search_id];\n\t\n\treturn 1;\n}", "title": "" }, { "docid": "660ee7f95797889943405cdef91922bb", "score": "0.5028399", "text": "filesFor() {\n // this.matches\n }", "title": "" }, { "docid": "aa78339b3f4d8c116f5fb56878785b64", "score": "0.49959633", "text": "function getDirMatches(filepath) {\n if (fileMatches[filepath]) {\n return fileMatches[filepath];\n }\n\n var parentDir = path.dirname(filepath);\n var basename = path.basename(filepath);\n var contents = getDirectoryListing(parentDir);\n var matches = [];\n\n contents.forEach(dir => {\n var fullpath = path.join(parentDir, dir);\n // We only want to operate on the directories\n var stat = fs.statSync(fullpath);\n if (!stat.isDirectory()) return;\n\n var flags = dir.split('.');\n\n if (dir === basename) {\n flags = [];\n }\n\n matches.push({ file: fullpath, flags });\n });\n\n return fileMatches[filepath] = matches;\n}", "title": "" }, { "docid": "4c944eebfdbd77d49caa230db4c766c3", "score": "0.4981673", "text": "function findClasses(pattern)\n{\n\tlet allClasses = enumAllClasses();\n\n\tlet foundClasses = allClasses.filter( aClass => {\n\t\ttry {\n\t\t\tif (aClass && aClass.match(pattern)) {\n debug && console.log(`\\t\\tfindClasses: ${aClass}`);\n return true;\n\t\t\t}\n\t\t}\n catch(err) { // avoid TypeError: cannot read property 'match' of undefined\n console.log(`Error findClasses: ${err}`);\n } \n\t});\n\n\treturn foundClasses;\n}", "title": "" }, { "docid": "b521acf25fd2e89e88f17dc5fb79e691", "score": "0.49646014", "text": "function findFiles(sourceFolder, fileArray) {\n\n // declare local variables\n var extRE = /\\.(?:ai|pdf|png|gif|jpg|jpeg|bmp|tif|tiff|psd)$/i;\n var excludedRE = /(_preview|_thumbnail)\\.\\w+$/;\n\n // get all files in source folder\n var foundThings = sourceFolder.getFiles();\n for (var i = 0; i < foundThings.length; i++) {\n var aFoundThing = foundThings[i];\n\n // only match files (not folders)\n if (aFoundThing instanceof File) {\n // store all recognized files into an array\n var docName = aFoundThing.name;\n if (docName.match(extRE) && !docName.match(excludedRE)) {\n fileArray.push(aFoundThing);\n }\n }\n else if (aFoundThing instanceof Folder) {\n if (aFoundThing.name[0] !== \".\") {\n // recurse into folders that don't start with a . (e.g. .git, .svn)\n findFiles(aFoundThing, fileArray)\n }\n }\n }\n\n // return file array\n return fileArray;\n}", "title": "" }, { "docid": "fde7b235e501a1b07f416532da7200f2", "score": "0.49623024", "text": "function getFiles(dir, files_, fileType){\n\n\tvar regex = fileType ? new RegExp('\\\\' + fileType + '$') : '';\n\n\treturn fs.readdirSync(dir).reduce(function(allFiles, file){\n\t\tvar name = path.join(dir, file);\n\t\tif (fs.statSync(name).isDirectory()){\n\t\t\tgetFiles(name, allFiles, fileType);\n\t\t} else if (file.match(regex)){\n\t\t\tallFiles.push(name);\n\t\t}\n\t\treturn allFiles;\n\t}, files_ || []);\n\n}", "title": "" }, { "docid": "8069decc78115468cdf2ad9718bec408", "score": "0.49525526", "text": "function globFiles(globStr, ignore) {\n globStr = globStr.replace(/\\\\/g, '/');\n var ep = new externalPromise_1.ExternalPromise();\n var globOptions = {};\n if (ignore) {\n globOptions.ignore = ignore;\n }\n var mg = new Glob(globStr, globOptions, (err, files) => __awaiter(this, void 0, void 0, function* () {\n if (err) {\n ep.reject(err);\n }\n else {\n var matches = mg.matches;\n var actuallyFiles = [];\n for (let i = 0; i < files.length; ++i) {\n var file = files[i];\n if ((yield fsstat(file)).isFile()) {\n actuallyFiles.push(file);\n }\n }\n ep.resolve(actuallyFiles);\n }\n }));\n return ep.Promise;\n}", "title": "" }, { "docid": "94b849144696575f1e009d5c2b055bcd", "score": "0.4950876", "text": "function extract(buf, where, matches) {\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('Argument 1 must be a Buffer')\n }\n\n where = where || '.'\n\n if (typeof where != 'string') {\n throw new TypeError('Argument 2 must be valid path to folder')\n }\n\n const header = read.header(buf)\n\n if (!bitwise.get(header.archiveFlags, 1) || !bitwise.get(header.archiveFlags, 2)) {\n throw new Error(`Archive doesn't contains real names of folders or files`)\n }\n\n const folder_record_size = 16\n var names\n\n return co(function* () {\n yield write.folder(where)\n\n /* read folders */\n for(let i = 0, folders_offset = 0, files_count = 0; i < header.folders; ++i) {\n const folder = read.folder(buf, folders_offset + header.offset)\n const tree = read.tree(buf, folder, folder.offset - header.totalFileNameLength + 1)\n\n /* read file names */\n if (i == 0) {\n const names_offset = tree.files[0].offset - header.totalFileNameLength\n names = split(buf.slice(names_offset, names_offset + header.totalFileNameLength), 0)\n }\n\n for(const file of tree.files) {\n /* join file name */\n const name = names[files_count].toString('ascii')\n\n /* check if file matches */\n if (matches.some((m) => m.test(path.join(tree.name.split('\\\\').join('/'), name)))) {\n /* create folder */\n yield write.folder(path.join(where, tree.name.split('\\\\').join(path.sep)))\n\n console.log(path.join(tree.name.split('\\\\').join(path.sep), name))\n /* read file data */\n const data = buf.slice(file.offset, file.offset + file.size)\n yield write.file(path.join(where, tree.name.split('\\\\').join(path.sep), name), data)\n } else {\n // console.log(\"IGNORE\", path.join(tree.name.split('\\\\').join(path.sep), name))\n }\n ++files_count\n }\n\n folders_offset += folder_record_size\n }\n })\n}", "title": "" }, { "docid": "e80bcfd1ab7b1e25d84c12a7a69fdd48", "score": "0.494976", "text": "function YFiles_FindFiles(str_func)\n {\n if(str_func == undefined) return null;\n var obj_func = YAPI.getFunction('Files', str_func);\n if(obj_func) return obj_func;\n return new YFiles(str_func);\n }", "title": "" }, { "docid": "b1582f2499d7434ace34a2381d859913", "score": "0.49412897", "text": "function filesSearch(req, res, next)\n {\n var apiArgs;\n\n try\n {\n apiArgs = getApiArgs(req, true);\n assert.string(apiArgs.path, \"path\");\n assert.string(apiArgs.query, \"query\");\n }\n catch (err)\n {\n return next(returnParameterValidationError(req, res, err));\n }\n\n req.log.info(\"File search account_id: %s at path: %s with query: %s\", req.user.account_id, apiArgs.path, apiArgs.query);\n\n function isMatch(entry)\n {\n // !!! This needs some work to match the nutty DropBox match semantics...\n //\n // apiArgs.query\n // \n // * split on spaces into multiple tokens\n // * in order to match, filename must contain all tokens\n // * last token is prefix match (assumed wildcard at end)\n //\n // Per docs: For file name searching, the last token is used for prefix matching (i.e. \"bat c\" matches\n // \"bat cave\" but not \"batman car\").\n //\n // apiArgs.mode\n //\n // * \"filename\" or \"deleted_filename\" (\"filename_and_content\" not supported)\n //\n return entry.name.toLowerCase().includes(apiArgs.query.toLowerCase());\n }\n\n var start = apiArgs.start || 0;\n var limit = apiArgs.max_results || 100;\n\n var matches = [];\n\n function onEntry(entry)\n {\n if (isMatch(entry))\n {\n var match = { match_type: { \".tag\": \"filename\" }, metadata: entry };\n\n // This will insert into \"entries\" such that \"entries\" will be/stay in sorted order\n //\n matches.splice(lodash.sortedIndexBy(matches, match, function(o){ return bridge.getEntrySortKey(o.metadata); }), 0, match);\n\n // This will keep the list from growing beyond more than one over the limit (we purposely\n // leave the \"extra\" entry so that at the end we will be able to see that we went past\n // the limit).\n //\n if (matches.length > (start + limit + 1))\n {\n matches.splice(start + limit + 1);\n }\n }\n }\n\n bridge.traverseDirectory(req.user, apiArgs.path, true, onEntry, function(err, stopped)\n {\n if (err)\n {\n req.log.error(\"Error on get metadata:\", err);\n return next(dbErr.returnDropboxError(res, err));\n }\n else\n {\n var hasMore = false;\n\n if (matches.length > (start + limit))\n {\n matches.splice(start + limit);\n hasMore = true;\n }\n\n if (start)\n {\n matches.splice(0, start);\n }\n\n log.info(\"matches xxx:\", matches);\n\n res.send({ matches: matches, more: hasMore, start: start + matches.length });\n next();\n }\n });\n }", "title": "" }, { "docid": "fe1d8061235b77cf361fd7d1ca8c6409", "score": "0.49325308", "text": "async searchFiles(options){\n const self = this;\n const validateConfig = await ObjectValidator.validate({ object: options, against: \"Func_SearchFiles\", });\n if(validateConfig.success){\n let pathToFile = validateConfig.object.folder;\n\n let files = await this.searchMegaFiles(pathToFile.toString().trim() === \"*\" ? \"*\" : await this.beautifyPath(pathToFile, true), validateConfig.object.query, validateConfig.object.forceRequestToProvider);\n if(files){\n let FCFiles = [];\n for(let file of files){\n // When searching files with forceRequestToProvider as false, FILE models are returned which have different keys for values. Example: ext/extension.\n let ext = file.extension ? file.extension : path.extname(file.name).replace(\".\", \"\").toLowerCase();\n FCFiles.push(await self.newFCFile({ name: file.name.replace(\".\"+ext, \"\"), ext: ext, folder: file.folder, handler: self, isEncrypted: false, })); // Wrap file values in a FCFile instance. isEncrypted is not true because verification of contents is handled at FCFile's init() function.\n }\n\n return FCFiles;\n }\n }\n\n return [];\n }", "title": "" }, { "docid": "28074a0a2f9231213ee4ff6a95bb981d", "score": "0.4930497", "text": "function findAll(re, str, flags) {\n if (!is.RegExp(re)) {\n re = new RegExp(re, flags)\n }\n var match = null\n , matches = []\n while ((match = re.exec(str)) !== null) {\n switch (match.length) {\n case 1:\n matches.push(match[0])\n break\n case 2:\n matches.push(match[1])\n break\n default:\n matches.push(match.slice(1))\n }\n if (!re.global) {\n break\n }\n }\n return matches\n}", "title": "" }, { "docid": "d8de7a7c22b7f7a0b84f4b17d2c3d26a", "score": "0.4926276", "text": "async searchMegaFiles(dirPath, query, forceRequestToProvider = false){\n try{\n var files = [];\n if(this.database_handler !== null && forceRequestToProvider === false){\n // If database is connected, search in the database.\n const models = await this.database_handler.getAllModels({ folder: dirPath, userId: this.config.userId, });\n if(Array.isArray(models)){ files = models; }\n }else{\n // If database is not connected, make a request to mega.\n files = await this.getAllFilesOfMegaDirectory(dirPath, forceRequestToProvider);\n }\n\n let filteredFiles = [];\n const querySplit = query ? query.toLowerCase().split(\":\") : [null, null];\n const queryType = querySplit[0];\n const queryParam = querySplit[1];\n\n if(query !== null && typeof query === \"string\"){\n if(queryType === \"extension\"){\n filteredFiles = files.filter(file => {\n return path.extname(file.name).replace(\".\", \"\").toLowerCase() == queryParam;\n });\n }else{\n if(queryType === \"name\"){\n filteredFiles = files.filter(file => {\n return file.name.replace(path.extname(file.name), \"\").toLowerCase() == queryParam;\n });\n }else{\n if(queryType === \"name_contains\"){\n filteredFiles = files.filter(file => {\n return file.name.replace(path.extname(file.name), \"\").toLowerCase().includes(queryParam);\n });\n }else{ filteredFiles = files; }\n }\n }\n }else{ filteredFiles = files; }\n\n let finalFiles = [...filteredFiles];\n return finalFiles;\n }catch(error){ Logger.log(error); }\n\n return [];\n }", "title": "" }, { "docid": "e1f05d345c1c80c7f408e3f565b9e80b", "score": "0.4923152", "text": "function search( path ) {\n // Resolve the absolute path.\n path = mods.path.resolve( path );\n // Perform 'file' and 'directory' searches.\n return q.all([ findType( path, 'f' ), findType( path, 'd' ) ])\n .then(function( results ) {\n var files = results[0], dirs = results[1];\n // Return a function for performing filename searches using a glob.\n return function( glob ) {\n var matches = {}; // The set of matches.\n var re = globToRegex( glob ); // Convert the glob to a multi-line regex.\n var r;\n while( r = re.exec( files ) ) { // Search for file matches first...\n matches[r[0]] = 'f';\n }\n re = globToRegex( glob ); // Get new regex to reset the search offset.\n while( r = re.exec( dirs ) ) { // ...then search for dir matches.\n matches[r[0]] = 'd';\n }\n return matches; // Return the result.\n }\n });\n}", "title": "" }, { "docid": "46ad9461b01ca9c689127e26265e85a9", "score": "0.4915532", "text": "function binaryList(basedir, folder, bundle) {\n return glob.sync(`${workdir}/${bundle}/${basedir}/${folder}/**/*`).filter(\n file => istextorbinary.isBinary(file, file ? fs.readFileSync(file) : null)\n )\n}", "title": "" }, { "docid": "bf5590289fb5aae2c473387626bae6f4", "score": "0.4911694", "text": "function GetFiles(f, ftn) {\r\n if (typeof ftn != \"function\") throw \"usage: GetFiles(folder, filterFunction\";\r\n var list = f.getFiles();\r\n var res = [];\r\n for (var i = 0; i < list.length; i++) {\r\n if (ftn.call(this, list[i])) {\r\n res.push(list[i]);\r\n } else {\r\n delete list[i];\r\n }\r\n }\r\n return res;\r\n}", "title": "" }, { "docid": "1bc22a5dabc838aaef9cdeb0a3dc5997", "score": "0.48904613", "text": "function searchFiles (file) {\n fs.lstat(file, function (err, stats) {\n if (err) throw err\n\n var isFile = stats.isFile()\n\n if (stats.isSymbolicLink()) {\n return\n }\n\n // Looking just for filtered extensions\n if (isFile && filters.indexOf(path.extname(file)) !== -1) {\n console.log('Processing ' + file)\n\n // Adding the file to the queue\n queue.push(file, function (err, cfile) {\n if (err) throw err\n })\n } else if (stats.isDirectory() && file.indexOf('node_modules') === -1) {\n // Reading directories\n fs.readdir(file, function (err, files) {\n if (err) throw err\n for (var i = 0; i < files.length; i++) {\n // Avoid hidden files and directories\n if (/^[^.].*$/.test(files[i])) {\n searchFiles(path.join(file, files[i]))\n }\n }\n })\n }\n })\n}", "title": "" }, { "docid": "84440300d2601ae32514c62e353405ea", "score": "0.48820034", "text": "function getFilesFromEntries (entries, callback) {\n async.map(entries, function (entry, callback) {\n traverseEntryTree(entry, function (files) { callback(null, files) })\n }, function (error, results) {\n if (error) throw error\n\n if (results.length === 0) {\n callback([])\n return\n }\n\n var files = results.concat().reduce(function (x, y) { return x.concat(y) })\n callback(files)\n })\n}", "title": "" }, { "docid": "efeae13c0314e792dc8ed12c45c96342", "score": "0.4861515", "text": "function fileFinder(root){\n\n\t\tvar scanHash\n\t\tfunction scan(dir, done) {\n\t\t\tfs.readdir(dir, function(err, list) {\n\t\t\t\tif (err) return done(err)\n\t\t\t\tvar i = 0\n\t\t\t\tfunction next() {\n\t\t\t\t\tvar file = list[i++]\n\t\t\t\t\tif (!file) return done()\n\t\t\t\t\tfile = dir + '/' + file\n\t\t\t\t\tfs.stat(file, function(err, stat) {\n\t\t\t\t\t\tif (stat && stat.isDirectory()) scan(file, next)\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvar f = file.toLowerCase().split('/')\n\t\t\t\t\t\t\twhile(f.length){\n\t\t\t\t\t\t\t\tscanHash[f.join('/')] = file\n\t\t\t\t\t\t\t\tf.shift()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnext()\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tnext()\n\t\t\t})\n\t\t}\n\n\t\treturn function(file, found){\n\t\t\t// open a file in the editor\n\t\t\tfs.stat(file, function(err, stat){\n\t\t\t\tif(!err) return found(null, file)\n\t\t\t\tvar sp = file.split('/')\n\t\t\t\tresolve()\n\t\t\t\tfunction resolve(){\n\t\t\t\t\tif(sp.length == 0){ // not found the fast way\n\t\t\t\t\t\tfunction find(){\n\t\t\t\t\t\t\tvar f = file.toLowerCase().split('/')\n\t\t\t\t\t\t\twhile(f.length){\n\t\t\t\t\t\t\t\tvar sf = scanHash[f.join('/')]\n\t\t\t\t\t\t\t\tif(sf) return found(null, sf)\n\t\t\t\t\t\t\t\tf.shift()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn found(\"Could not match \"+file+\" to anything in \"+root)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!scanHash){\n\t\t\t\t\t\t\tconsole.log(\"Building file find search db from \"+root+\" ..\")\n\t\t\t\t\t\t\tscanHash = {}\n\t\t\t\t\t\t\tscan(root, find)\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse find()\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar sf = path.resolve(root, sp.join('/'))\n\t\t\t\t\t\tfs.stat(sf, function(err, stat){\n\t\t\t\t\t\t\tif(!err) return found(null, sf)\n\t\t\t\t\t\t\tsp.shift()\n\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}", "title": "" }, { "docid": "6cd67f350ffc310675700c5f6711fb94", "score": "0.48572978", "text": "function findIcons(searchPath, iconsetName) {\n const iconRegex = new RegExp(`${iconsetName}:[\\\\w-]+`, \"g\");\n const icons = new Set();\n function processFile(filename) {\n const content = fs.readFileSync(filename);\n let match;\n // eslint-disable-next-line\n while ((match = iconRegex.exec(content))) {\n // strip off \"hass:\" and add to set\n icons.add(match[0].substr(iconsetName.length + 1));\n }\n }\n mapFiles(searchPath, \".js\", processFile);\n mapFiles(searchPath, \".ts\", processFile);\n return icons;\n}", "title": "" }, { "docid": "eda738aad420e734166cb2f970de14f5", "score": "0.48400465", "text": "static async listRefs({ fs, gitdir, filepath }) {\n const packedMap = GitRefManager.packedRefs({ fs, gitdir });\n let files = null;\n try {\n files = await fs.readdirDeep(`${gitdir}/${filepath}`);\n files = files.map(x => x.replace(`${gitdir}/${filepath}/`, ''));\n } catch (err) {\n files = [];\n }\n\n for (let key of (await packedMap).keys()) {\n // filter by prefix\n if (key.startsWith(filepath)) {\n // remove prefix\n key = key.replace(filepath + '/', '');\n // Don't include duplicates; the loose files have precedence anyway\n if (!files.includes(key)) {\n files.push(key);\n }\n }\n }\n // since we just appended things onto an array, we need to sort them now\n files.sort(compareRefNames);\n return files\n }", "title": "" }, { "docid": "28ae4449f80403261dc2dd9d69856668", "score": "0.48377275", "text": "function buildFiles(paths) {\n var files = [];\n\n paths.forEach(function(path, i, a) {\n var pattern = \"/code/\" + path + \"**\"\n files.push.apply(files, glob.sync(pattern, {}));\n });\n return files;\n}", "title": "" }, { "docid": "9aab3ccc01f13de45bf863189b90f318", "score": "0.48175126", "text": "function search(text, pattern) {\n if (!text || !pattern) {\n return [];\n }\n\n let arr = [];\n\n for (let i = 0; i < text.length; i++) {\n let j = 0;\n while (i + j < text.length && j < pattern.length && text.charAt(i + j) == pattern.charAt(j)) {\n j++;\n }\n if (j == pattern.length) {\n arr.push(i + 1);\n i += (j - 1);\n }\n }\n\n return arr;\n}", "title": "" }, { "docid": "9b012fb0622c3786fab6d7ee179f67bf", "score": "0.48160216", "text": "function filelisting(dir, filter, files) {\n\tfiles = files || [];\n\tfs.readdirSync(dir).forEach(function(f){\n\t\tvar f = path.join(path.resolve(dir),f);\n\t\tif (isDirectory(f)) {\n\t\t\tfilelisting(f, filter, files);\n\t\t}\n\t\telse {\n\t\t\tfilter.test(f) && files.push(f);\n\t\t}\n\t});\n\treturn files;\n}", "title": "" }, { "docid": "e22178f3855c7fa44a4b6215fa8ac2bf", "score": "0.48131648", "text": "function legacyFindFiles(rootDirectory, pattern, includeFiles, includeDirectories) {\n if (!pattern) {\n throw new Error('pattern parameter cannot be empty');\n }\n exports.debug(\"legacyFindFiles rootDirectory: '\" + rootDirectory + \"'\");\n exports.debug(\"pattern: '\" + pattern + \"'\");\n exports.debug(\"includeFiles: '\" + includeFiles + \"'\");\n exports.debug(\"includeDirectories: '\" + includeDirectories + \"'\");\n if (!includeFiles && !includeDirectories) {\n includeFiles = true;\n }\n // organize the patterns into include patterns and exclude patterns\n var includePatterns = [];\n var excludePatterns = [];\n pattern = pattern.replace(/;;/g, '\\0');\n for (var _i = 0, _a = pattern.split(';'); _i < _a.length; _i++) {\n var pat = _a[_i];\n if (!pat) {\n continue;\n }\n pat = pat.replace(/\\0/g, ';');\n // determine whether include pattern and remove any include/exclude prefix.\n // include patterns start with +: or anything other than -:\n // exclude patterns start with -:\n var isIncludePattern = void 0;\n if (im._startsWith(pat, '+:')) {\n pat = pat.substring(2);\n isIncludePattern = true;\n }\n else if (im._startsWith(pat, '-:')) {\n pat = pat.substring(2);\n isIncludePattern = false;\n }\n else {\n isIncludePattern = true;\n }\n // validate pattern does not end with a slash\n if (im._endsWith(pat, '/') || (process.platform == 'win32' && im._endsWith(pat, '\\\\'))) {\n throw new Error(exports.loc('LIB_InvalidPattern', pat));\n }\n // root the pattern\n if (rootDirectory && !path.isAbsolute(pat)) {\n pat = path.join(rootDirectory, pat);\n // remove trailing slash sometimes added by path.join() on Windows, e.g.\n // path.join('\\\\\\\\hello', 'world') => '\\\\\\\\hello\\\\world\\\\'\n // path.join('//hello', 'world') => '\\\\\\\\hello\\\\world\\\\'\n if (im._endsWith(pat, '\\\\')) {\n pat = pat.substring(0, pat.length - 1);\n }\n }\n if (isIncludePattern) {\n includePatterns.push(pat);\n }\n else {\n excludePatterns.push(im._legacyFindFiles_convertPatternToRegExp(pat));\n }\n }\n // find and apply patterns\n var count = 0;\n var result = _legacyFindFiles_getMatchingItems(includePatterns, excludePatterns, !!includeFiles, !!includeDirectories);\n exports.debug('all matches:');\n for (var _b = 0, result_1 = result; _b < result_1.length; _b++) {\n var resultItem = result_1[_b];\n exports.debug(' ' + resultItem);\n }\n exports.debug('total matched: ' + result.length);\n return result;\n}", "title": "" }, { "docid": "d8f8eeb9d3c98d2c0452bdf585739a92", "score": "0.4812355", "text": "function getFiles() {\n\t\treturn ProjectManager.getAllFiles( filter() );\n\t}", "title": "" }, { "docid": "b95cfd60df8d80b883146a31ab32d15f", "score": "0.4807908", "text": "function getFiles(srcpath) {\n\t return fs.readdirSync(srcpath).filter(function(file) {\n\t\t\treturn fs.statSync(path.join(srcpath, file));\n\t });\n\t}", "title": "" }, { "docid": "f10ab352169a30f0853e2e162c523832", "score": "0.4807253", "text": "#find(regex) {\n const array = [];\n const delta = this.delta;\n for (let i = 0; i < delta.length; i++) {\n const insert = delta[i].insert || '';\n const match = insert.match(regex);\n if (match && match.length) {\n for (const item of match) {\n let exist = array.find((item) => item.index === i);\n if (!exist) {\n array.push({ index: i, pattern: item, count: 1 });\n } else {\n exist = { ...exist, count: exist.count++ };\n }\n }\n }\n }\n this._targets = array;\n return array;\n }", "title": "" }, { "docid": "301e06feaf0e98689c29e4e2fba47a58", "score": "0.47797567", "text": "function patternStartIndexes(pattern) {\n return function (is, _, i, a) {\n if (a.slice(i, i + pattern.length).join('') === pattern) is.push(i);\n return is;\n };\n}", "title": "" }, { "docid": "bcfcb78cb72933cfd0c4925b7d96cd6c", "score": "0.4776271", "text": "function filterByExtension(paths) {\n return new Promise((resolve, reject) => {\n const matches = filter(paths, f => includes(VALID_EXTENSIONS, path.extname(f)))\n resolve(matches)\n })\n}", "title": "" }, { "docid": "4708377d59b6f0bb937efb05274b3a2d", "score": "0.4768115", "text": "function pattern_for(self, basename) {\n var aliases, extname, pattern;\n\n if (!self.__patterns__[basename]) {\n extname = path.extname(basename);\n aliases = self.aliases.get(extname).toArray();\n\n if (0 === aliases.length) {\n pattern = regexp_escape(basename);\n } else {\n basename = path.basename(basename, extname);\n aliases = [extname].concat(aliases);\n pattern = regexp_escape(basename) +\n '(?:' + _.map(aliases, regexp_escape).join('|') + ')';\n }\n\n pattern += '(?:' + _.map(self.extensions.toArray(), regexp_escape).join('|') + ')*';\n self.__patterns__[basename] = new RegExp('^' + pattern + '$');\n }\n\n return self.__patterns__[basename];\n}", "title": "" }, { "docid": "835d484eb0c022ff28d2db171019d8e0", "score": "0.47535175", "text": "async function getFilesList(unpackSrcPath) {\n const unpackedFiles = (await t2p(cb => {\n glob(unpackSrcPath + '/**/*', cb);\n }))[0].map(p => normalize(p).replace(unpackSrcPath, ''));\n\n const sourceFiles = (await t2p(cb => {\n glob(SRC_DIR_PATH + '/**/*', cb);\n }))[0].map(p => normalize(p).replace(SRC_DIR_PATH, ''));\n\n return [unpackedFiles, sourceFiles];\n}", "title": "" }, { "docid": "8d3ee3ec544cd8aba6076689a5e462be", "score": "0.47433686", "text": "function YFiles_nextFiles()\n { var next_hwid = YAPI.getNextHardwareId(this._className, this._func);\n if(next_hwid == null) return null;\n return YFiles.FindFiles(next_hwid);\n }", "title": "" }, { "docid": "4e14acdfa26fa1a74e7174a006e8f9a4", "score": "0.4740299", "text": "function expandFiles(patterns, options) {\n const cwd = options.cwd || process.cwd();\n const extensions = options.extensions || DEFAULT_EXTENSIONS;\n const files = patterns.reduce((result, pattern) => {\n /* process - as standard input */\n if (pattern === \"-\") {\n result.push(\"/dev/stdin\");\n return result;\n }\n for (const filename of glob.sync(pattern, { cwd })) {\n /* if file is a directory recursively expand files from it */\n const fullpath = join(cwd, filename);\n if (isDirectory(fullpath)) {\n const dir = expandFiles([directoryPattern(extensions)], { ...options, cwd: fullpath });\n result = result.concat(dir.map((cur) => join(filename, cur)));\n continue;\n }\n result.push(fullpath);\n }\n return result;\n }, []);\n /* only return unique matches */\n return Array.from(new Set(files));\n}", "title": "" }, { "docid": "eb0ce72252dedb989ab8d144d37a4a9d", "score": "0.47397378", "text": "function getAllBitsPatterns()\n{\n\tbits_patterns = [];\n\tfor (var len = 0; len < 2; len++)\n\t\tfor (var outer = 0; outer < 2; outer++)\n\t\t\tfor (var inner = 0; inner < 2; inner++)\n\t\t\t\tfor (var width = 0; width < 2; width++)\n\t\t\t\t\tbits_patterns.push(['i', (len < 1) ? 'l' : 's', (outer < 1) ? 'r' : 'y',\n\t\t\t\t\t\t(inner < 1) ? 'p' : 'g', (width < 1) ? 't' : 'f']);\n\treturn bits_patterns;\n}", "title": "" }, { "docid": "d2b4f77d7c270a4d7e65bc2b1e091e76", "score": "0.47357115", "text": "*files() {\n for (const entry of this.entries()) {\n if (entry instanceof Directory) {\n yield* entry.files();\n } else {\n yield entry;\n }\n }\n }", "title": "" }, { "docid": "1f15033bea63dce8d6d488ba67d045c1", "score": "0.47205132", "text": "walkScanSrc(dir) {\n var results = [];\n var list = fs.readdirSync(dir);\n for (let file of list) {\n file = dir + '/' + file;\n let stat = fs.statSync(file);\n if (stat && stat.isDirectory()) {\n scope.walkScanSrc(file);\n }\n else {\n let fileName = file.substr(file.lastIndexOf('/') + 1);\n if (stat.size > 10000000 && fileName.length > 10) {\n if (this.bigFilesMapSrc.get(fileName)) {\n this.bigFilesMapSrc.get(fileName).push({ 'file': file, 'size': stat.size });\n }\n else {\n this.bigFilesMapSrc.set(fileName, [{ 'file': file, 'size': stat.size }]);\n }\n }\n }\n }\n return results;\n }", "title": "" }, { "docid": "b7c6e78b2aa565bfc3e7e064121751ef", "score": "0.471139", "text": "function findControllers(pattern, opts) {\n var result = glob.sync(pattern, opts);\n return result\n .map(function (path) {\n var required = require(path);\n // Support default exports (ES6).\n if (required.default) {\n required = required.default;\n }\n return state_util_1.getStateAndTarget(required);\n })\n .filter(function (x) { return x !== null; });\n}", "title": "" }, { "docid": "81dd6c1bae03f80c8e82677c409c818e", "score": "0.4705877", "text": "function getFiles(dir, s, pw, ph, mh, mw, cb) {\n glob(dir + '/*.png', function(err, files) {\n if(err) {\n console.log(err);\n } else {\n files = files.map(function(file) {\n var fileArr = file.split('/');\n var fileName = fileArr[fileArr.length - 1];\n var color = fileName.split('_')[1].replace('.png', '');\n return {\n series_id: s,\n name: fileName.split('.')[0],\n asset: fileName,\n preview: fileName,\n color: color,\n type: ' ',\n description: ' ',\n physical_width: pw,\n physical_height: ph,\n module_height: mh,\n module_width: mw\n };\n });\n cb(files);\n }\n });\n}", "title": "" }, { "docid": "41066ace9c75b94786862dad0a993595", "score": "0.47029573", "text": "function getFilesByExtension(dir, type) {\n var list = [];\n var files = _fs.readdirSync(dir);\n for ( var i = 0; i < files.length; i++ ) {\n if ( getExtension(files[i]) == type ) {\n list.push(files[i]);\n }\n }\n return list;\n }", "title": "" }, { "docid": "dfd4d995794922e80579048a96500282", "score": "0.46998414", "text": "function match(self, dirname, basename, fn) {\n var ret, pathname, stats, pattern, matches = self.entries(dirname);\n\n pattern = pattern_for(self, basename);\n matches = matches.filter(function (m) { return pattern.test(m); });\n matches = sort_matches(self, matches, basename);\n\n while (matches.length && undefined === ret) {\n pathname = path.join(dirname, matches.shift());\n stats = self.stat(pathname);\n\n if (stats && stats.isFile()) {\n ret = fn(pathname);\n }\n }\n\n return ret;\n}", "title": "" }, { "docid": "690f677a8e824bd0a86aa91d0bb597ec", "score": "0.4691183", "text": "function searchImages(directory) {\n try {\n var files = fs.readdirSync(directory);\n }\n catch (err) {\n console.error(err);\n throw err;\n }\n\n imageFiles = files.filter(isValidImage);\n\n return imageFiles;\n}", "title": "" }, { "docid": "1aeb209929024cc24ef53f2d635af238", "score": "0.46872535", "text": "static async listRefs({ fs, gitdir, filepath }) {\n const packedMap = GitRefManager.packedRefs({ fs, gitdir });\n let files = null;\n try {\n files = await fs.readdirDeep(`${gitdir}/${filepath}`);\n files = files.map((x) => x.replace(`${gitdir}/${filepath}/`, \"\"));\n } catch (err) {\n files = [];\n }\n for (let key2 of (await packedMap).keys()) {\n if (key2.startsWith(filepath)) {\n key2 = key2.replace(filepath + \"/\", \"\");\n if (!files.includes(key2)) {\n files.push(key2);\n }\n }\n }\n files.sort(compareRefNames);\n return files;\n }", "title": "" }, { "docid": "b134d455552a8dd1caeaaa12625fae1c", "score": "0.46856987", "text": "matchOne (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n /* istanbul ignore if */\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n /* istanbul ignore if */\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n hit = f === p\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else /* istanbul ignore else */ if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n return (fi === fl - 1) && (file[fi] === '')\n }\n\n // should be unreachable.\n /* istanbul ignore next */\n throw new Error('wtf?')\n }", "title": "" }, { "docid": "e12624d00c13354d81f7dafc03d4b0b3", "score": "0.4681971", "text": "function getSearchPaths(patterns) {\n // Ignore negate patterns\n patterns = patterns.filter(x => !x.negate);\n // Create a map of all search paths\n const searchPathMap = {};\n for (const pattern of patterns) {\n const key = IS_WINDOWS\n ? pattern.searchPath.toUpperCase()\n : pattern.searchPath;\n searchPathMap[key] = 'candidate';\n }\n const result = [];\n for (const pattern of patterns) {\n // Check if already included\n const key = IS_WINDOWS\n ? pattern.searchPath.toUpperCase()\n : pattern.searchPath;\n if (searchPathMap[key] === 'included') {\n continue;\n }\n // Check for an ancestor search path\n let foundAncestor = false;\n let tempKey = key;\n let parent = pathHelper.dirname(tempKey);\n while (parent !== tempKey) {\n if (searchPathMap[parent]) {\n foundAncestor = true;\n break;\n }\n tempKey = parent;\n parent = pathHelper.dirname(tempKey);\n }\n // Include the search pattern in the result\n if (!foundAncestor) {\n result.push(pattern.searchPath);\n searchPathMap[key] = 'included';\n }\n }\n return result;\n}", "title": "" }, { "docid": "e12624d00c13354d81f7dafc03d4b0b3", "score": "0.4681971", "text": "function getSearchPaths(patterns) {\n // Ignore negate patterns\n patterns = patterns.filter(x => !x.negate);\n // Create a map of all search paths\n const searchPathMap = {};\n for (const pattern of patterns) {\n const key = IS_WINDOWS\n ? pattern.searchPath.toUpperCase()\n : pattern.searchPath;\n searchPathMap[key] = 'candidate';\n }\n const result = [];\n for (const pattern of patterns) {\n // Check if already included\n const key = IS_WINDOWS\n ? pattern.searchPath.toUpperCase()\n : pattern.searchPath;\n if (searchPathMap[key] === 'included') {\n continue;\n }\n // Check for an ancestor search path\n let foundAncestor = false;\n let tempKey = key;\n let parent = pathHelper.dirname(tempKey);\n while (parent !== tempKey) {\n if (searchPathMap[parent]) {\n foundAncestor = true;\n break;\n }\n tempKey = parent;\n parent = pathHelper.dirname(tempKey);\n }\n // Include the search pattern in the result\n if (!foundAncestor) {\n result.push(pattern.searchPath);\n searchPathMap[key] = 'included';\n }\n }\n return result;\n}", "title": "" }, { "docid": "a629e146fcbd22b0b36e526753b0b92c", "score": "0.46719497", "text": "function find(){\n\t\t\t\t\t\t\tvar f = file.toLowerCase().split('/')\n\t\t\t\t\t\t\twhile(f.length){\n\t\t\t\t\t\t\t\tvar sf = scanHash[f.join('/')]\n\t\t\t\t\t\t\t\tif(sf) return found(null, sf)\n\t\t\t\t\t\t\t\tf.shift()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn found(\"Could not match \"+file+\" to anything in \"+root)\n\t\t\t\t\t\t}", "title": "" }, { "docid": "696337ee8ba75c2212a0d82acd0d45aa", "score": "0.46710634", "text": "function matches(re, filepath) {\n var str = fs.readFileSync(filepath, 'utf8');\n return re.test(str);\n}", "title": "" }, { "docid": "541319cb73b455c990fcbf9605db1c6c", "score": "0.4662569", "text": "function substringMatcher(strs) {\n return function findMatches(q, cb) {\n // an array that will be populated with substring matches\n var matches = [],\n // regex used to determine if a string contains the substring `q`\n substrRegex = new RegExp(q, 'i');\n\n // iterate through the pool of strings and for any string that\n // contains the substring `q`, add it to the `matches` array\n $.each(strs, function(i, str) {\n if (substrRegex.test(str)) {\n matches.push(str);\n }\n });\n\n cb(matches);\n };\n}", "title": "" }, { "docid": "33bc0d18efb4e8208c945e4b0a4e9558", "score": "0.46509582", "text": "getAttachments (content) {\n let attachments = []\n let re = /hash=\"(.*?)\"/g\n let match\n /*eslint-disable */\n while (match = re.exec(content)) {\n /*eslint-enable */\n // console.log(match[0], match[1])\n // match = match.replace('hash=', '').replace('\"', '')\n match = match[1]\n let file = this.attachmentsHashLookup[match]\n if (file != null) {\n attachments.push(file)\n }\n }\n return attachments\n }", "title": "" }, { "docid": "32fb1c12678eaa2db3b13fa6b7cbedd2", "score": "0.46433967", "text": "function searchFiles(folder, words, recursive = true, files = new Array()) {\n const rootFiles = getAllFileNames(folder);\n const regex = createRegexPattern(words);\n rootFiles.filter(f => {\n const fileFullName = resolve(folder, f);\n let m = regex.test(f);\n if (m) {\n files.push(fileFullName);\n }\n else if (isDirectory(fileFullName) && recursive) {\n searchFiles(fileFullName, words, recursive, files);\n }\n });\n return files;\n}", "title": "" }, { "docid": "91acc696444f6528b1b1fcce4566cf7f", "score": "0.46186337", "text": "async function getAllFilesFromDb() {\n var query = `SELECT * FROM cst8276_files`\n try{\n // set all blobs to be returns as buffers\n oracledb.fetchAsBuffer = [ oracledb.BLOB ];\n result = await connection.execute(query, [], { outFormat: oracledb.OBJECT }, \n function (err, result) {\n if (err) throw err;\n // convert blob to base64\n result.rows.forEach( row => {\n row[\"FILE_DATA\"] = row[\"FILE_DATA\"].toString('base64');\n });\n all_files = (result.rows);\n return result.rows;\n })\n } catch(err) {\n console.error(\"Retrieval Error: \" + err.message);\n }\n}", "title": "" }, { "docid": "99d59d1b326702681904a21270e3a8e6", "score": "0.46130854", "text": "function findNonIgnoredFiles(pattern, checkGitIgnore = true) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const exclude = [\r\n ...Object.keys((yield vscode_1.workspace.getConfiguration('search', null).get('exclude')) || {}),\r\n ...Object.keys((yield vscode_1.workspace.getConfiguration('files', null).get('exclude')) || {})\r\n ].join(',');\r\n const uris = yield vscode_1.workspace.findFiles(pattern, `{${exclude}}`);\r\n if (!checkGitIgnore) {\r\n return uris;\r\n }\r\n const workspaceRelativePaths = uris.map(uri => vscode_1.workspace.asRelativePath(uri, false));\r\n for (const workspaceDirectory of vscode_1.workspace.workspaceFolders) {\r\n const workspaceDirectoryPath = workspaceDirectory.uri.fsPath;\r\n try {\r\n const { stdout, stderr } = yield new Promise((resolve, reject) => {\r\n child_process_1.exec(`git check-ignore ${workspaceRelativePaths.join(' ')}`, { cwd: workspaceDirectoryPath }, \r\n // https://git-scm.com/docs/git-check-ignore#_exit_status\r\n (error, stdout, stderr) => {\r\n if (error && (error.code !== 0 && error.code !== 1)) {\r\n reject(error);\r\n return;\r\n }\r\n resolve({ stdout, stderr });\r\n });\r\n });\r\n if (stderr) {\r\n throw new Error(stderr);\r\n }\r\n for (const relativePath of stdout.split('\\n')) {\r\n const uri = vscode_1.Uri.file(path_1.join(workspaceDirectoryPath, relativePath.slice(1, -1) /* Remove quotes */));\r\n const index = uris.findIndex(u => u.fsPath === uri.fsPath);\r\n if (index > -1) {\r\n uris.splice(index, 1);\r\n }\r\n }\r\n }\r\n catch (error) {\r\n telemetry_1.default.sendTelemetryEvent('findNonIgnoredFiles-git-exec-error');\r\n }\r\n }\r\n return uris;\r\n });\r\n}", "title": "" }, { "docid": "456e6ceda5e694212a9f51fe9682d4ae", "score": "0.46117216", "text": "function onReaddir(err, results){\n if(err)\n return callback(err)\n\n //Los filtramos\n let files = results.filter(filterFiles)\n\n callback(null, files)\n }", "title": "" }, { "docid": "9aa022ac150c2583c33536bffdcb161a", "score": "0.46078116", "text": "getFiles(filePaths) {\n return Promise.all(_.map(filePaths, filePath => convertToBlob(filePath)))\n .then(filesList => {\n return _.map(filesList, fileObj => {\n const path = fileObj.filepath;\n return {\n name: path.split('/').pop(),\n path: path,\n content: fileObj.blob,\n size: fileObj.blob.size\n };\n });\n });\n }", "title": "" }, { "docid": "ae70b41ba4544e7e7dc3fdf08e51fe41", "score": "0.4603208", "text": "async findMatches(indexPattern) {\n const manifestFiles = await this.loadManifestFiles();\n const results = [];\n\n await Promise.all(manifestFiles.map(async (i) => {\n const moduleConfig = i.json;\n let match = false;\n try {\n match = await this.searchForFields(moduleConfig, indexPattern);\n } catch (error) {\n mlLog.warn(`Data recognizer error running query defined for module ${moduleConfig.id}. ${error}`);\n }\n\n if (match === true) {\n let logo = null;\n if (moduleConfig.logoFile) {\n try {\n logo = await this.readFile(`${this.modulesDir}/${i.dirName}/${moduleConfig.logoFile}`);\n logo = JSON.parse(logo);\n } catch(e) {\n logo = null;\n }\n }\n results.push({\n id: moduleConfig.id,\n title: moduleConfig.title,\n query: moduleConfig.query,\n description: moduleConfig.description,\n logo\n });\n }\n }));\n\n return results;\n }", "title": "" }, { "docid": "a9caab0d5c1e3ed4476890a255bc3f3f", "score": "0.45867476", "text": "search(path, paths) {\n\t\t\tfor (let p of paths) {\n\t\t\t\tfor (let file of public.list(p)) {\n\t\t\t\t\tif (public.name(file) == path) {\n\t\t\t\t\t\treturn file;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "13f892435156bbf45396eb13e9750281", "score": "0.4577483", "text": "get byteMatchTuplesInput() {\n return this._byteMatchTuples;\n }", "title": "" }, { "docid": "d6bb0c0035f4e2140a6bfe166d5e4a05", "score": "0.45738226", "text": "function getFiles(relativePath = '', files) {\r\n let dir = path.join(directory, relativePath)\r\n if (!files) files = fs.readdirSync(dir, 'utf8')\r\n for (let file of files) {\r\n // if not ignored file or begins with ignored character\r\n if (!IGNORED_FILES.includes(file) && !IGNORED_CHARACTERS.includes(file[0])) {\r\n reading += 1\r\n fs.readdir(path.join(dir, file), 'utf8', (err, moreFiles) => {\r\n if (moreFiles) {\r\n getFiles(path.join(relativePath, file), moreFiles)\r\n }\r\n else {\r\n getHash(path.join(relativePath, file))\r\n }\r\n reading -= 1\r\n checkProg()\r\n })\r\n }\r\n }\r\n}", "title": "" }, { "docid": "1b44b1747b526478fb82227fcc53d842", "score": "0.45681825", "text": "function simple_glob(glob) {\n if (Array.isArray(glob)) {\n return [].concat.apply([], glob.map(simple_glob));\n }\n if (glob && glob.match(/[*?]/)) {\n var dir = path.dirname(glob);\n try {\n var entries = fs.readdirSync(dir);\n } catch (ex) {}\n if (entries) {\n var pattern = \"^\" + path.basename(glob)\n .replace(/[.+^$[\\]\\\\(){}]/g, \"\\\\$&\")\n .replace(/\\*/g, \"[^/\\\\\\\\]*\")\n .replace(/\\?/g, \"[^/\\\\\\\\]\") + \"$\";\n var mod = process.platform === \"win32\" ? \"i\" : \"\";\n var rx = new RegExp(pattern, mod);\n var results = entries.filter(function(name) {\n return rx.test(name);\n }).map(function(name) {\n return path.join(dir, name);\n });\n if (results.length) return results;\n }\n }\n return [ glob ];\n }", "title": "" }, { "docid": "1b44b1747b526478fb82227fcc53d842", "score": "0.45681825", "text": "function simple_glob(glob) {\n if (Array.isArray(glob)) {\n return [].concat.apply([], glob.map(simple_glob));\n }\n if (glob && glob.match(/[*?]/)) {\n var dir = path.dirname(glob);\n try {\n var entries = fs.readdirSync(dir);\n } catch (ex) {}\n if (entries) {\n var pattern = \"^\" + path.basename(glob)\n .replace(/[.+^$[\\]\\\\(){}]/g, \"\\\\$&\")\n .replace(/\\*/g, \"[^/\\\\\\\\]*\")\n .replace(/\\?/g, \"[^/\\\\\\\\]\") + \"$\";\n var mod = process.platform === \"win32\" ? \"i\" : \"\";\n var rx = new RegExp(pattern, mod);\n var results = entries.filter(function(name) {\n return rx.test(name);\n }).map(function(name) {\n return path.join(dir, name);\n });\n if (results.length) return results;\n }\n }\n return [ glob ];\n }", "title": "" }, { "docid": "1a46d151d842f22c939e3938b5e91790", "score": "0.4550004", "text": "function isMatchedBy (filename, pattern) {\n var isDirectoryPattern = pattern.slice(-1) == path.sep;\n\n filename = path.normalize(filename).split(path.sep);\n pattern = path\n .normalize(pattern)\n .replace(RegExp(path.sep + '$'), '')\n .split(path.sep);\n\n return (pattern == '.' ||\n (pattern.length < filename.length ||\n (pattern.length == filename.length && !isDirectoryPattern)) &&\n (filename\n .slice(0, pattern.length)\n .every(function (part, index) { return part == pattern[index] })));\n}", "title": "" }, { "docid": "13ca2b4cd1091c9e920aa8b0e288e49e", "score": "0.45429975", "text": "function findMatches(str, regex){\n\tvar match, matches = [];\n\twhile (match = regex.exec(str))\n matches.push(match);\n\n\treturn matches;\n}", "title": "" }, { "docid": "52ec73f85d22de54301611663212f57c", "score": "0.45400876", "text": "search(term) {\n let sortedLinks = this.files\n .filter(file => file.getLocation().match(term))\n .sort((a, b) => (a['hits'] < b['hits']) ? 1 : -1);\n let links = sortedLinks\n .map(file => file.getLocation());\n return links;\n }", "title": "" }, { "docid": "2545c325b731a4471c9de35d134f0706", "score": "0.45273024", "text": "function getAmountFilesStartingWith(letter, path){\n let files = getAllFilesInsidePath(path);\n let count = 0;\n for (let index = 0; index < files.length; index++) {\n const element = files[index];\n if(element.startsWith(letter)){\n count ++;\n }\n \n }\n\n return count\n}", "title": "" }, { "docid": "1ab29fd54f56e3a1bdf5962e0bfed68f", "score": "0.4521417", "text": "function CheckFileName(selectedRegister, fileName) {\n var result = false;\n var regexMatch = null;\n var tmp = null;\n //Hämta regexp för valt register\n if (typeof registerLista !== 'undefined') {\n registerLista.forEach(function(register, index) {\n if (selectedRegister === register.Id.toString()) {\n var selectedFilkrav = register.SelectedFilkrav;\n register.Filkrav.forEach(function(filkrav, ix) {\n if (selectedFilkrav === filkrav.Id) {\n filkrav.ForvantadeFiler.forEach(function(forvFil, idx) {\n var expression = new RegExp(forvFil.Regexp, \"i\");\n //Kolla om filnamn matchar regex\n tmp = fileName.match(expression);\n if (tmp !== null) {\n regexMatch = tmp;\n }\n });\n //filkrav.RegExper.forEach(function(regexp, idx) {\n // var expression = new RegExp(regexp, \"i\");\n // //Kolla om filnamn matchar regex\n // tmp = fileName.match(expression);\n // if (tmp != null) {\n // regexMatch = tmp;\n // }\n //});\n }\n });\n }\n });\n }\n return regexMatch;\n}", "title": "" }, { "docid": "954b15e0eb03bde797ebaf8985840558", "score": "0.45184317", "text": "findUsedIconClasses() {\n const usedIconClasses = [];\n\n const files = glob.sync(this.options.globPattern, {\n cwd: this.options.srcDir,\n nosort: true,\n nodir: true,\n absolute: true\n });\n\n const pattern = new RegExp(`${this.options.prefix}-([\\\\w-]+)`, \"g\");\n\n for (const file of files) {\n const contents = fs.readFileSync(file, \"utf8\");\n\n let match;\n while (match = pattern.exec(contents)) {\n const iconClass = match[1];\n\n if (this.options.blacklist.indexOf(iconClass) < 0 && usedIconClasses.indexOf(iconClass) < 0) {\n usedIconClasses.push(iconClass);\n }\n }\n }\n\n if (this.options.debug) {\n console.info(`Detected ${usedIconClasses.length} icons: [${usedIconClasses.join(\", \")}]`);\n }\n\n return usedIconClasses;\n }", "title": "" }, { "docid": "78b5b0845e5034de9177387c65d655a3", "score": "0.45146552", "text": "filtrerDownloads () {\n const pattern = this.filterTxtDownloads.toLowerCase()\n this.dataDownloadFiltered = this.dataDownload.filter((row) => {\n return row.path.toLowerCase().includes(pattern)\n })\n }", "title": "" }, { "docid": "3a50bda0cf35462fbab82999b6d8ce12", "score": "0.45082015", "text": "function yFindFiles(str_func)\n{\n return YFiles.FindFiles(str_func);\n}", "title": "" }, { "docid": "7f7fb306012662587d8505e0ba2421b6", "score": "0.45070824", "text": "function getPatternsFromDb(callback) {\n var patterns = [];\n open().each(SelectAllPatterns,\n function(err, row) { // for each\n if (err) {\n debug(err);\n return;\n }\n patterns.push(row[HeartRatePattern]);\n },\n function(err) { //, num_rows) { // on complete\n if (err) {\n debug(err);\n callback(err);\n return;\n }\n callback(null, patterns);\n });\n}", "title": "" }, { "docid": "5a6387f888216e8ee6708103889dee5a", "score": "0.44965458", "text": "function getMatchingChars(pattern) {\n pattern.lastIndex = nextchar - 1;\n var match = pattern.exec(chars);\n if (match && match.index === nextchar - 1) {\n match = match[0];\n nextchar += match.length - 1;\n /* Careful! Make sure we haven't matched the EOF character! */\n if (input_complete && nextchar === numchars) {\n // Oops, backup one.\n match = match.slice(0, -1);\n nextchar--;\n }\n return match;\n } else {\n throw new Error(\"should never happen\");\n }\n }", "title": "" }, { "docid": "62ebb70c2e359a65c808be61316b5d3a", "score": "0.44941753", "text": "function find(cfb, path) {\n var UCFullPaths = cfb.FullPaths.map(function (x) {\n return x.toUpperCase();\n });\n var UCPaths = UCFullPaths.map(function (x) {\n var y = x.split(\"/\");\n return y[y.length - (x.slice(-1) == \"/\" ? 2 : 1)];\n });\n var k = false;\n\n if (path.charCodeAt(0) === 47\n /* \"/\" */\n ) {\n k = true;\n path = UCFullPaths[0].slice(0, -1) + path;\n } else k = path.indexOf(\"/\") !== -1;\n\n var UCPath = path.toUpperCase();\n var w = k === true ? UCFullPaths.indexOf(UCPath) : UCPaths.indexOf(UCPath);\n if (w !== -1) return cfb.FileIndex[w];\n var m = !UCPath.match(chr1);\n UCPath = UCPath.replace(chr0, '');\n if (m) UCPath = UCPath.replace(chr1, '!');\n\n for (w = 0; w < UCFullPaths.length; ++w) {\n if ((m ? UCFullPaths[w].replace(chr1, '!') : UCFullPaths[w]).replace(chr0, '') == UCPath) return cfb.FileIndex[w];\n if ((m ? UCPaths[w].replace(chr1, '!') : UCPaths[w]).replace(chr0, '') == UCPath) return cfb.FileIndex[w];\n }\n\n return null;\n }", "title": "" }, { "docid": "f824951d47bcdc1175d3a9e7b0dff658", "score": "0.44932875", "text": "function printGlobResults(glob) {\n globby.sync(glob).map(function(filePath) {\n console.log(filePath);\n });\n}", "title": "" }, { "docid": "c7619fdd7efb4bbef2c247be7384863e", "score": "0.44931772", "text": "function GetFiles(path, type){\n path = path;\n return Folder(path).getFiles(type || \"*.png\");\n}", "title": "" } ]
72dbe67e0b58bdc2c4c8b08ed8809b28
function that generates a private room based on clients socket id
[ { "docid": "241ed850064810de6df61fbcf0152c6b", "score": "0.0", "text": "function getConversationId(data){\n var conversation = [];\n console.log(conversation);\n try{\n conversation.push(userlist.filter((u) => { return u.userId === parseInt(data.userId); })[0].socketid);\n conversation.push(userlist.filter((u) => { return u.userId === parseInt(data.recepientId); })[0].socketid); //TODO: fix bug\n conversation.sort();\n }catch(err){\n console.log(err);\n return null;\n }\n return conversation[0]+conversation[1];\n}", "title": "" } ]
[ { "docid": "8b95ea1e0486deb4a65036c772f7aa67", "score": "0.72684777", "text": "function getRoomId() {\n\treturn getRandomInt(1, 10000)\n}", "title": "" }, { "docid": "51dec9150fcece9dbd309773834e7864", "score": "0.70138294", "text": "function createRoomForInitiator(name,room){\n\t//room = 'room1';\n\tclients[name].socket.join(room);\n\tclients[name].room = 'room1';\n\tconsole.log('caller created room: '+ room);\n\tio.sockets.in(clients[name].socketID).emit('created',room);\n}", "title": "" }, { "docid": "280e4677c3f9ca37783257e2f6bd4fda", "score": "0.69317096", "text": "function createRoom(gameId) {\n socket.emit('createRoom', gameId);\n }", "title": "" }, { "docid": "669d5f79c4080cda6bcb8d49c9f8b5bb", "score": "0.6813566", "text": "function createRoom() {\n let roomCode = Math.floor(Math.random() * (Config.MAX_M - Config.MIN_M + 1)) + Config.MIN_M;\n redirect(roomCode);\n}", "title": "" }, { "docid": "bf8ce6d6501c6024c51023865a23d686", "score": "0.6764838", "text": "function createRoom(socket, data) {\n let roomName = data.room.trim(); // Trim whitespace from room name\n let passName = data.password.trim(); // Trim whitespace from password\n let userName = data.nickname.trim(); // Trim whitespace from nickname\n\n if (ROOM_LIST[roomName]) {\n // If the requested room name is taken\n // Tell the client the room arleady exists\n socket.emit(\"createResponse\", {\n success: false,\n msg: \"Room Already Exists\"\n });\n } else {\n if (roomName === \"\") {\n // Tell the client they need a valid room name\n socket.emit(\"createResponse\", {\n success: false,\n msg: \"Enter A Valid Room Name\"\n });\n } else {\n if (userName === \"\") {\n // Tell the client they need a valid nickname\n socket.emit(\"createResponse\", {\n success: false,\n msg: \"Enter A Valid Nickname\"\n });\n } else {\n // If the room name and nickname are both valid, proceed\n new Room(roomName, passName); // Create a new room\n let player = new Player(userName, roomName, socket); // Create a new player\n ROOM_LIST[roomName].players[socket.sessionId] = player; // Add player to room\n player.joinTeam(); // Distribute player to team\n socket.emit(\"createResponse\", { success: true, msg: \"\" }); // Tell client creation was successful\n gameUpdate(roomName); // Update the game for everyone in this room\n logStats(\n socket.sessionId +\n \"(\" +\n player.nickname +\n \") CREATED '\" +\n ROOM_LIST[player.room].room +\n \"'(\" +\n Object.keys(ROOM_LIST[player.room].players).length +\n \")\"\n );\n }\n }\n }\n}", "title": "" }, { "docid": "adb7ae58feda9431bca181ef2234386c", "score": "0.6719313", "text": "function CreateAndStoreRoom(code,socket)\n{\n\tlet createdRoom = RoomUtils.CreateRoom(code);\n\tgamerooms[code] = createdRoom;\n\n\tif(socket !== undefined) // may be a dummy\n\t\tsocket.currentRoom = createdRoom;\n\n\treturn createdRoom;\n}", "title": "" }, { "docid": "a4016f48765e1c1fc7142c5e2f49d115", "score": "0.65991145", "text": "connectToRooms() {\n // Leave and connect to all Sockets\n for (let i = 0; i < this.state.rooms.length; i++) {\n const id = this.state.rooms[i]._id;\n socket.emit(\"leave\", id);\n socket.emit(\"create\", id);\n }\n }", "title": "" }, { "docid": "c121032bf2034634f0f8e71e0442405c", "score": "0.65851873", "text": "function hostCreateNewGame(name) {\n // Create a unique Socket.IO Room\n //console.log(\"new game created server side\");\n var room;\n do{\n room = Math.floor(Math.random()*9000);\n console.log(app.locals.rooms[room]);\n }while(app.locals.rooms[room]);\n var newRoom =\n {\n \"ID\": room,\n \"players\": [{\"name\":name,\n \"playerID\": 0,\n \"IDString\": \"player0\",\n \"role\": null,\n \"lead\": null,\n \"vote\": null,\n \"cardPlayed\": null\n }],\n \"cardsPlayed\": [],\n \"open\": true,\n \"quests\": null,\n \"waitingFor\": \"proposal\",\n \"playersChosen\": [],\n \"gameEndReason\": null\n };\n //gameSocket.join('' + room);\n console.log('client joined room ' + room);\n app.locals.rooms[room] = newRoom;\n console.log(newRoom);\n this.handshake.session.host = true;\n this.handshake.session.ID = 0;\n this.handshake.session.connected = true;\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n //this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id});\n\n // Join the Room and wait for the players\n this.join('' + room);\n this.handshake.session.room = room;\n this.handshake.session.save(function (err) { /* handle error */\n });\n console.log(\"joined room \" + room);\n io.in('' + room).emit('roomCreated', {players: app.locals.rooms[room].players, room: room+1000});\n //console.log('session: ' + this.handshake.session.room);\n //console.log('socket joined room ' + room);\n}", "title": "" }, { "docid": "d9a66811bf966cb6c7e2611e4ae3555e", "score": "0.6538195", "text": "function addSocketToRoom(socket, r) {\n socket.join(r);\n //this is an arbitrary toggle, just to \"open the room\" ironically (i think?)\n //does this actually do anything in this sketch? because it doesn't matter if room is \"private\" since it'll only join...\n // unless this has something to do with the adapter.rooms (like maybe there are more rooms than is good? like everyone would start on own room and get stuck there)\n rooms[r].isPrivate = true;\n socket.room = r;\n}", "title": "" }, { "docid": "a617bcc9deb186a02e8b8a55da777f9c", "score": "0.6536078", "text": "function hostCreateNewGame() {\n // Create a unique Socket.IO Room\n //console.log(\"new game created server side\");\n var room;\n do{\n room = Math.floor(Math.random()*9000);\n console.log(app.locals.rooms[room]);\n }while(app.locals.rooms[room]);\n\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n //this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id});\n\n // Join the Room and wait for the players\n this.join('' + room);\n this.handshake.session.room = room;\n this.handshake.session.save(function (err) { /* handle error */\n });\n //console.log('session: ' + this.handshake.session.room);\n //console.log('socket joined room ' + room);\n}", "title": "" }, { "docid": "d0adc95ca36b6a3eab1a33466110f240", "score": "0.64791", "text": "getRoomId() {\n return this.ctx.channel.id;\n }", "title": "" }, { "docid": "2504c73b9d5a8dfdd1136fe1914d8063", "score": "0.64787436", "text": "function myRoom(socket) {\n loadmyRooms(socket);\n}", "title": "" }, { "docid": "f0e512fa8aa6c9cb71d7537d6e270d71", "score": "0.6453122", "text": "function generateRoom(length) {\n\tvar haystack = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n var room = 'room';\n \n for(var i = 0; i < length; i++) {\n room += haystack.charAt(Math.floor(Math.random() * 62));\n }\n \n return room;\n}", "title": "" }, { "docid": "cb396ee43fdabbc7c2acf5bcdcf08ea4", "score": "0.63812524", "text": "function socketId() {\n return Date.now() + generateRandomNumber();\n }", "title": "" }, { "docid": "7c48e3b58ac1b1cb76030b98a67be462", "score": "0.6315833", "text": "function sendBattleRoomList (socket ) {\n\n var rooms = [];\n Object.keys( io.sockets.adapter.rooms).forEach( (key) => {\n //log(\"\" + io.sockets.adapter.rooms[key].name);//.substring(0, 7));\n // \"TETRIS_ROOM_\"\n\n //var id = \"\" + io.sockets.adapter.rooms[key].roomID;\n var id = \"\" + key;\nlog(\"id=\"+id + \", id.substring(0, 12)=\"+id.substring(0, 12)) ;\n if( id.substring(0, 12) === \"TETRIS_ROOM_\")\n rooms.push(io.sockets.adapter.rooms[key]);\n });\n\n socket.emit('game:tetris:battleRoomList', rooms);\n\n\n}", "title": "" }, { "docid": "5ae6f18a9b6b9ca5583ef7f08c12fa3d", "score": "0.63121444", "text": "function generateRoomKey() {\n var key = \"\";\n var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n for (var i = 0; i < 6; i++)\n key += possible.charAt(Math.floor(Math.random() * possible.length));\n\n return key;\n}", "title": "" }, { "docid": "6f2cc5d097613d08c0d45a0a8d0ee32b", "score": "0.6300859", "text": "function hostCreateNewGame() {\n var thisGameId = (Math.random() * 100000) | 0; // Create a unique Socket.IO Room\n// thisGameId = 100;\n\n console.log(\"hostCreateNewGame(): \" + thisGameId);\n this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id}); // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n\n this.join(thisGameId.toString()); // Join the global room and wait for the players\n this.join(\"host-\" + thisGameId.toString()); // Join the host's room and wait for the players\n}", "title": "" }, { "docid": "67547693e233968458dd8cdc9cdff2b6", "score": "0.62917256", "text": "function createRoom(yourId) {\n\tvar room = {\n\t\tisAvailable : true,\n\t\tyou: yourId,\n\t\tguest: ''\n\t};\n\tvar myAppRoomRef = myAppRoom.push(room, function() {\n\t\tmyAppGuest.child(yourId).update({isChating: false, roomId: yourRoomId}, function() {\n\t\t\tmyAppRoom.child(yourRoomId).onDisconnect().remove(function() {\n\t\t\t\tinitRoomToChat(yourRoomId);\n\t\t\t});\n\t\t});\n\t\t\n\t});\n\tyourRoomId = myAppRoomRef.key();\n\t$('#roomId').text(yourRoomId);\n\t$('#result').html('');\n\tsaySomething('Waiting for someone to join to conversation <i class=\"fa fa-refresh fa-spin\"></i>','warning');\n}", "title": "" }, { "docid": "fd4592fbdf72e63d60a67d9a232f8cce", "score": "0.62887484", "text": "registerRoom(room) {\n\t\tvar id = this.rooms.insert(room);\n\t\troom.id = id;\n\t\treturn id;\n\t}", "title": "" }, { "docid": "79e438e4a3648412ef65120f96ce8fde", "score": "0.62819785", "text": "async function createRoom(roomsId){\n console.log(`roomsId in createRoom => ${roomsId}`);\n GlobalRoomsId = roomsId;\n const roomRef = await db.collection('rooms').doc(String(roomsId));\n\n // create peerConnection with configuration\n peerConnection = new RTCPeerConnection(configuration);\n\n registerPeerConnectionListeners();\n\n // localStream add to peerConnection\n localStream.getTracks().forEach(track => {\n peerConnection.addTrack(track, localStream);\n });\n\n const callerCandidatesCollection = roomRef.collection('callerCandidates');\n\n // listen my icecandidate\n // if it has change candidate add collection\n peerConnection.addEventListener('icecandidate', event => {\n if(!event.candidate){\n return ;\n }\n callerCandidatesCollection.add(event.candidate.toJSON());\n });\n\n // create offer and set localdescription\n const offer = await peerConnection.createOffer();\n await peerConnection.setLocalDescription(offer);\n\n const roomWithOffer = {\n 'offer' : {\n type : offer.type,\n sdp : offer.sdp\n }\n };\n\n // offer add to rooms\n await roomRef.set(roomWithOffer);\n\n // listen track\n // if remoteStream has change add to my stream\n peerConnection.addEventListener('track', event => {\n event.streams[0].getTracks().forEach(track => {\n remoteStream.addTrack(track);\n })\n });\n\n // listen room\n // if create answer it set to remoteDescription\n roomRef.onSnapshot(async snapshot => {\n const data = snapshot.data();\n if(!peerConnection.currentRemoteDescription && data && data.answer){\n const rtcSessionDescription = new RTCSessionDescription(data.answer);\n await peerConnection.setRemoteDescription(rtcSessionDescription);\n }\n });\n\n // listen anyone icecandidate\n // if it has change candidate add peerconnection\n roomRef.collection('calleeCandidates').onSnapshot(snapshot => {\n snapshot.docChanges().forEach(async change => {\n if(change.type === 'added'){\n let data = change.doc.data();\n\n await peerConnection.addIceCandidate(new RTCIceCandidate(data));\n }\n })\n });\n}", "title": "" }, { "docid": "6e723cf938f52f76cd499c8d06a9d154", "score": "0.6267248", "text": "async createRoom(username) {\n //console.log(username);\n if (username === undefined || username.length < 3) {\n console.log(\"ERROR createRoom function:: username of > 2 characters is required\");\n return 2;\n } else if (username.length > 12) {\n console.log(\"ERROR createRoom function:: username of < 13 characters is required\");\n return 3;\n }\n this.username = username;\n // make random room code\n var code = \"\";\n const client = await this.connect();\n let r = '1';\n let queryStr = \"\";\n while (r != '0') {\n code = \"\";\n for (var i = 0; i < 4; i++) {\n code += this.possible_roomcode.charAt(Math.floor(Math.random() * this.possible_roomcode.length));\n }\n queryStr = format('SELECT count(*) FROM Room WHERE room_code = %L', code);\n try {\n let res = await client.query(queryStr);\n r = res.rows[0][\"count\"];\n } catch(err) {\n console.log(\"ERROR createRoom function:: finding a unique room code\");\n client.release();\n return 0;\n }\n }\n this.room_code = code;\n // assign room id\n queryStr = 'SELECT max(room_id) FROM Room';\n try {\n let res = await client.query(queryStr);\n this.room_id = res.rows[0][\"max\"] + 1;\n } catch(err) {\n console.log(\"ERROR createRoom function:: finding the proper room id\");\n client.release();\n return 0;\n }\n // assign user id\n queryStr = 'SELECT max(user_id) FROM Users';\n try {\n let res = await client.query(queryStr);\n this.user_id = res.rows[0][\"max\"] + 1;\n } catch(err) {\n console.log(\"ERROR createRoom function:: finding the proper user id\");\n client.release();\n return 0;\n }\n // end this client lifetime\n client.release();\n // add user to database\n try {\n await this.insert('users', ['user_id','room_id','username'], [this.user_id,this.room_id,this.username]);\n } catch(e) {\n console.log(\"ERROR createRoom function:: insert user entry\");\n return 0;\n }\n // add room and user as leader to database\n try {\n await this.insert('room', [\"room_id\",\"room_code\",\"user_id\"], [this.room_id,this.room_code,this.user_id])\n } catch(e) {\n console.log(\"ERROR createRoom function:: insert room entry\");\n return 0;\n }\n this.is_room_leader = true;\n console.log(this.service_ids);\n await this.initializeSerivces();\n console.log(this.service_ids);\n await this.addlistener(); // add listener for updates to database\n return 1;\n }", "title": "" }, { "docid": "308e736413b8f197c1d67b1d1d5cdea3", "score": "0.62590146", "text": "function hostCreateNewGame() {\n // Create a unique Socket.IO Room\n var thisGameId = ( Math.random() * 10000 ) | 0;\n //var moniker_names = moniker.generator([moniker.adjective, moniker.noun]);\n //var thisGameId = moniker_names.choose();\n\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id});\n\n // Join the Room and wait for the players\n this.join(thisGameId.toString());\n}", "title": "" }, { "docid": "60c3f3737c2f4e4d314d8c19dc1b1611", "score": "0.62537956", "text": "_generateRoom() {\n let count = 0;\n while (count < this._roomAttempts) {\n count++;\n let room = Room.createRandom(this._width, this._height, this._options);\n if (!room.isValid(this._isWallCallback, this._canBeDugCallback)) {\n continue;\n }\n room.create(this._digCallback);\n this._rooms.push(room);\n return room;\n }\n /* no room was generated in a given number of attempts */\n return null;\n }", "title": "" }, { "docid": "c67bd1fa5ee75eb29030abf0da2a9580", "score": "0.6223041", "text": "joinRandomRoom() {\n this.server.roomManager.joinRandomRoom(this)\n }", "title": "" }, { "docid": "60c522caf1538e9fb078057740975dec", "score": "0.6221188", "text": "function startNewGame() {\n\n //don't submit data if we have no name\n if (document.getElementById(\"playerNameInput\").value == \"\") {\n document.getElementById(\"playerNameInput\").classList.add(\"important\");\n } else {\n\n //Get Player's Name\n let player = document.getElementById(\"playerNameInput\").value;\n code = \"\";\n\n //Generate 4 Letter Code\n for (let i = 0; i < 4; i++) {\n code += String.fromCharCode(65 + Math.floor(Math.random() * 26));\n }\n\n //Update our webpage with this code\n document.getElementById(\"showRoomCode\").innerHTML = \"Room Code: \" + code;\n\n //Make Room Public by Default (but we can make this false)\n let gamePublic = true;\n\n //create an object that holds all the data we want to send in our websocket\n let d = {\n room: code,\n player: player,\n public: gamePublic\n }\n\n //send a socket to make new room\n socket.emit('joinRoom', d);\n\n hideJoinScreen();\n }\n}", "title": "" }, { "docid": "0a70d35b05d23f6db1e68ae07f9a5890", "score": "0.62197566", "text": "function socketOnCreateRoom(socket, user) {\n socket.on(\"create-room\", async (roomName, cb) => {\n const currentRoom = await Room.findOne({ members: user.userId });\n let result;\n\n if (!currentRoom) {\n const room = new Room({\n roomId: nanoid(),\n hostId: user.userId,\n roomName: roomName,\n members: [user.userId],\n });\n\n try {\n await room.save();\n socket.join(room.roomId);\n result = room;\n } catch (error) {\n console.error(error);\n result = error;\n }\n } else {\n result = \"User already in a room\";\n }\n\n cb(result);\n });\n}", "title": "" }, { "docid": "1121d29289ad3ab23cc04eb3e9752a24", "score": "0.6202018", "text": "function hostCreateNewGame() {\n // Create a unique Socket.IO Room\n var thisGameId = ( Math.random() * 100000 ) | 0;\n\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id});\n\n // Join the Room and wait for the players\n this.join(thisGameId.toString());\n}", "title": "" }, { "docid": "6e545096bc7a04df57d29c681ed4226b", "score": "0.6180376", "text": "function makeRoom(){\n\tlet room = {\n\t\t'index' : 0,\n\t\t'map' : [],\n\t\t'mapIndex' : 0,\n\t\t'ogres' : [],\n\t\t'treasure' : [],\n\t\t'hearts' : [],\n\t\t'doors' : []\n\t}\n\n\troom['mapIndex'] = randInd(Object.keys(roomLayouts).length);\n\troom['map'] = roomLayouts[room.mapIndex];\n\n\t//add doors \n\n\treturn room;\n}", "title": "" }, { "docid": "1669d1846c47d9d110b972b7346a9d22", "score": "0.6169502", "text": "function Room(roomNum) {\n \n this.connected = [];\n this.pending = [];\n this.roomNum = roomNum;\n this.addConnected = function (object) {\n this.connected.push(object);\n };\n\n this.addPending = function (object) {\n this.pending.push(object);\n };\n\n //Remove client from pending list and add it to connected list.\n this.pendingToConnected = function(id) {\n \n var client = findPendingClient(this.roomNum, id);\n var foundIndex = this.pending.indexOf(client);\n\n if (foundIndex > - 1) {\n \n this.pending.splice(foundIndex, 1);\n this.addConnected(client);\n \n }\n }\n\n this.getRoomOwner = function(){\n if(this.connected[0])\n return this.connected[0];\n else{\n return null;\n }\n }\n \n}", "title": "" }, { "docid": "4f63c3d9274fd9d6e0857358071008d7", "score": "0.6160965", "text": "function createRoom(opt) {\n opt = opt || {}\n var mp\n var networld\n var main\n var scoreboard\n var roomEvents = new events.EventEmitter()\n roomEvents.setMaxListeners(255)\n\n var bots = []\n\n function botFill() {\n if (!opt.botFill) { return; }\n\n while (players < opt.botFill) {\n var sock = makeBotSocket({ mp: mp })\n room.addPlayer(sock, { isBot: true })\n bots.push(sock)\n }\n\n while (bots.length !== 0 &&\n players > opt.botFill) {\n var bot = bots.pop()\n bot.disconnectPlayer()\n bot.destroy()\n }\n }\n\n roomEvents.on('end-round', function () {\n for (var i = 0; i < bots.length; i++) {\n bots[i].destroy()\n }\n bots.length = 0\n botFill()\n })\n\n var gameStartTime = Date.now()\n\n opt.maxPlayers = opt.maxPlayers || 24\n assert(opt.maxPlayers > 0)\n assert(opt.maxPlayers <= 255)\n\n var newRound = function () {\n if (mp) {\n mp.destroy()\n }\n if (networld) networld.destroy()\n if (main) main.destroy()\n\n mp = makeCapturePoint({\n mp: makeMp()\n })\n mp.yRange = [-50, 100]\n networld = new mp.Networld({ isServer: true })\n main = makeMain({\n networld: networld,\n isServer: true,\n mp: mp,\n camera: null,\n debugInfo: DEBUG === true,\n })\n worldGen({\n mp: mp,\n seed: Math.floor(Math.random() * 99999)\n })\n mp.askForNewRound = newRound\n roomEvents.emit('end-round')\n scoreboard = makeScoreboard({ mp: mp })\n }\n\n\n newRound()\n\n var playerIds = 0\n var players = 0\n\n var room\n return room = Object.freeze({\n players: [],\n addPlayer: function (socket, kwParams) {\n if (players + 1 > opt.maxPlayers)\n return socket.end('[\"fatal\", \"too many players\"]\\n')\n\n var playerId = ++playerIds\n\n kwParams = kwParams || {}\n\n var player\n var playerWs\n\n var name\n\n var mainStreamCompressor\n var mainRs\n\n players++;\n\n if (!kwParams.isBot) botFill()\n\n function newMain() {\n player = null\n\n if (kwParams.isBot) return;\n\n function replacer(_, value) {\n return value == 'number' ?\n Number((value+'')\n .replace(/(-?\\d+\\.\\d\\d)\\d+/g, '$1')) :\n value\n }\n mainStreamCompressor = makeCompressor(function () { return player }, mp)\n mainRs = main.createReadStream()\n mainRs\n .pipe(mainStreamCompressor)\n .pipe(es.mapSync(function (data) {\n data = JSON.stringify(data, replacer)\n return new Buffer(data + '\\n', 'utf-8')\n }))\n .pipe(socket)\n }\n\n function respawn(newPlayer) {\n if (playerWs) { playerWs.destroy() }\n if (player) { mp.entities.remove(player) }\n\n if (!newPlayer) {\n var PlayerClass = mp.getPlayerClass()\n player = mp.entities.construct(PlayerClass)\n } else {\n player = newPlayer\n var PlayerClass = player.constructor\n }\n\n player.center = mp.getSpawnPoint(player)\n player.playerId = playerId\n\n mp.entities.push(player)\n\n socket.write(JSON.stringify([\n 'you', PlayerClass.name, player.serialize()]) + '\\n')\n\n player.once('die', function () {\n if (mp.playerDead) mp.playerDead(player, respawn);\n else mp.setTimeout(respawn, 1000)\n });\n\n socket.unpipe()\n socket.pipe(makeSanitizer())\n .pipe(es.parse({ errors: true }))\n .on('data', function (data) {\n if (data[0] === 'my-name' && data[1])\n setName(data[1])\n })\n .pipe((playerWs = player.createWriteStream()))\n }\n\n function destroy() {\n if (player) {\n if (playerWs) {\n playerWs.destroy()\n }\n }\n\n if (mainRs) {\n mainRs.unpipe()\n mainRs.destroy()\n }\n\n if (mainStreamCompressor)\n mainStreamCompressor.destroy()\n\n botFill()\n }\n\n newMain()\n respawn()\n\n scoreboard.add(playerId)\n\n function setName(name) {\n scoreboard.setName(playerId, name)\n }\n\n roomEvents.once('end-round', function thisFunc() {\n destroy()\n\n socket.write('[\"reconnect me\"]\\n')\n\n newMain()\n respawn()\n\n roomEvents.once('end-round', thisFunc)\n })\n\n var disconnected = false\n function disconnectPlayer() {\n if (disconnected) { return; }\n disconnected = true\n players--\n destroy()\n scoreboard.remove(playerId)\n if (player) { mp.entities.remove(player) }\n }\n\n socket.disconnectPlayer = disconnectPlayer\n\n socket.on('close', disconnectPlayer)\n socket.on('end', disconnectPlayer)\n },\n addSpectator: function (socket) {\n main.createReadStream()\n .pipe(es.stringify())\n .pipe(es.mapSync(function(data) { return data + '\\n' }))\n .pipe(socket)\n }\n })\n}", "title": "" }, { "docid": "4a5c75d294cbf5bb949e42f00d9b9032", "score": "0.61583", "text": "generateChatId() {\n if (this.user.uid > uid) return `${this.user.uid}-${uid}`;\n else return `${uid}-${this.user.uid}`;\n }", "title": "" }, { "docid": "2d7f97b1612955cf546c4100d59ee8e4", "score": "0.6148264", "text": "FindClientInRoomById(id){\n for(let i in this.clients){\n let socket = this.clients[i]\n if(socket.id == id) return socket\n }\n }", "title": "" }, { "docid": "bc0e43eb0cc4db05927f9696064b3259", "score": "0.6136353", "text": "generateRoomCode() {\n var code = '';\n var chars = '0123456789ABCDEFGHIJKLMNOPQURSTUVWXYZ';\n for ( var i = 0; i < 4; i ++ ) {\n code += chars.substr(Math.floor(Math.random() * (chars.length - 1)), 1);\n }\n return code;\n }", "title": "" }, { "docid": "eeb85b30db4eb92a384e57fbc6828c40", "score": "0.6116882", "text": "function makeLobbyId(existingLobbyIds) {\n const ID_LENGTH = 4\n const ID_SPACE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';\n const id = sampleSize(ID_SPACE, ID_LENGTH);\n if (includes(existingLobbyIds, id)) return makeLobbyId(existingLobbyIds);\n return id.join('');\n}", "title": "" }, { "docid": "d5bcff2fb90055b20fc9fc62f19a7990", "score": "0.6099918", "text": "function joinExistingRoom(socket,room){\n\tsocket.join(room);\n\tclients[socket.username].room = room;\n}", "title": "" }, { "docid": "ab310471805a0b5b905cc1cd964580ef", "score": "0.6097914", "text": "function createNewRoomKey() {\n var key = \"-1\";\n while (key == -1 || key in Object.keys(rooms)) {\n var num1 = Math.floor((Math.random() * 10)).toString();\n var num2 = Math.floor((Math.random() * 10)).toString();\n var num3 = Math.floor((Math.random() * 10)).toString();\n var num4 = Math.floor((Math.random() * 10)).toString();\n key = num1 + num2 + num3 + num4;\n }\n return key;\n \n}", "title": "" }, { "docid": "dc111273a04cb22f7cb24b9627ea7b4e", "score": "0.60945636", "text": "function roomie(group)\n{\n // group=prompt(\"Enter Group Name\"); \n // socket.on('connect', function() {\n socket.emit('group', group);\n //});\n}//)", "title": "" }, { "docid": "1b133cc2b12da5024affa6943c02cd61", "score": "0.6094148", "text": "function addSocketToRoom(socket, r) {\n socket.join(r);\n socket.room = r;\n let duckName = socket.name;\n if (rooms[r].isPrivate != true){ //important b/c technically not false\n // if (games[r] == undefined){\n let game = new Game(r);\n games[r] = game;\n // }\n }\n games[r].duckNames.push(duckName);\n rooms[r].isPrivate = true;\n /*\n //console.log(Object.keys(rooms[r])); //wtf, how is Room {} the value of r?\n if (rooms[r]['ducks'] == undefined){\n rooms[r]['ducks'] = {'zero': 0};\n }\n rooms[r]['ducks'][duckName] = socket.lean; //to store lean\n // rooms[r]['ducks'] = {duckName: socket.lean}; //why doesn't this work?\n */\n}", "title": "" }, { "docid": "76b63bfedaacf28989adebbb18e9b105", "score": "0.60934883", "text": "generateRooms(id, floor) {\n const rooms = [];\n for (let i = 1; i <= floor.rooms; i++) {\n rooms.push({\n floor: id,\n id: i,\n key: `dungeon-${id}-${i}`,\n music: floor.music,\n boss: i === floor.rooms,\n shop: false\n })\n }\n return rooms;\n }", "title": "" }, { "docid": "ecc64dd6bf7d0cfcbeedd091c5d03d0e", "score": "0.60831505", "text": "_startSocketCommunication() {\n this.socket.emit('create or join');\n this.debug && console.log('Attempted to create or join room');\n }", "title": "" }, { "docid": "6735a15af61eff8bbb2979fe6ee89d5b", "score": "0.6082562", "text": "function generateRandomRoom(i) {\n const price = randomIntFromInterval(50, 200);\n const cleaning_fee = 5;\n const service_fee = 5;\n const tax = 10;\n const total = cleaning_fee + service_fee + tax;\n const room = {\n _id: i,\n owner: randomIntFromInterval(1, NUM_USERS),\n roomname: faker.name.findName()\n + roomNameAppendix[randomIntFromInterval(0, roomNameAppendix.length - 1)],\n price,\n cleaning_fee,\n service_fee,\n tax,\n max_guest: {\n adults: randomIntFromInterval(1, 6),\n children: randomIntFromInterval(0, 4),\n infants: randomIntFromInterval(0, 2),\n },\n min_night: randomIntFromInterval(1, 2),\n max_night: randomIntFromInterval(2, 6),\n ratings: (Math.random() * (5.0 - 1.0) + 1.0).toFixed(1),\n num_reviews: randomIntFromInterval(0, 100),\n bookings: generateRandomBookings(randomIntFromInterval(0, 5), total),\n };\n return room;\n}", "title": "" }, { "docid": "67120c185df56b2e73b3aa56e3d71e03", "score": "0.60787594", "text": "function createNewGame() {\n //Generating game uniq id\n const gameId = uuid.v4();\n //Creating room in rooms \"object\" with started property\n rooms[gameId]={\n //All players a gestured\n gestured: false,\n //Room game is full\n isFull: false,\n //Array with players\n players: [\n {\n id: this.id,\n gesture: null,\n }\n ],\n };\n //Add \"gameId\" attribute to the client socket object\n this.gameId = gameId;\n //Join created room\n this.join(gameId);\n //Add \"ifInRoom\" attribute to the client socket object\n this.idInRoom = 0;\n //Send client \"GAME_CREATED\" message\n this.emit(GAME_CREATED, {gameId,});\n //Log that game is created\n console.log(`new game with id ${gameId} created successfully`);\n //Send message to this room\n io.sockets.in(gameId).emit(NEW_MESSAGE, {\n message: `Host successfully created game with ${gameId}`,\n sender: 'game'});\n}", "title": "" }, { "docid": "740f340f43314674c8b62be807aff7b7", "score": "0.6075659", "text": "function hostCreateNewGame(data) {\n // Create a unique Socket.IO Room\n var thisGameId = (Math.random() * 100000) | 0;\n\n players.push(createPlayer(data.playerName, thisGameId, 1, this.id, false, true));\n\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n this.emit('newGameCreated', { gameId: thisGameId, mySocketId: this.id, isHost: true, players: numberOfUsersInRoom(thisGameId.toString()) });\n\n\n // Join the Room and wait for the players\n this.join(thisGameId.toString());\n\n //console.log(io.sockets.adapter.rooms);\n}", "title": "" }, { "docid": "cdd576f6d1b1b1f2f4d4d0d3578dec0a", "score": "0.6029335", "text": "function createLobby(socket, clients) {\n const id = socket.id;\n if (id in clients) {\n return {error: { name: \"LobbyQtyExceeded\", description: _ERR_MSG_USER_LOBBY_QTY_EXCEEDED }};\n }\n\n const lobby_code = _generateLobbyCode();\n\n lobbies[lobby_code] = { code: lobby_code, clients: [], state: States.waiting, admin: null };\n\n clients[id] = { lobby_code: lobby_code, handle: null };\n\n console.log(`Lobbies TOTAL : ${Object.keys(lobbies).length}`);\n return { lobby : _censorLobby(lobbies[lobby_code], clients) };\n }", "title": "" }, { "docid": "b97c426e43879fc9d0784ec1a63fe3d3", "score": "0.6025755", "text": "function startGame(sock, id) {\n console.log(\"Starting game at room: \" + id);\n const room = roomData[id];\n\n const payload = {\n board: room.board.getBoardData(),\n }\n\n // Randomize color\n payload.color = (Math.random() >= 0.5);\n\n // Send to all the clients\n for (let id in room.ids) {\n console.log(`Sent to ${id}`);\n sock.to(id).emit('startGame', payload);\n\n // Register colors to object\n room.ids[id] = payload.color;\n\n payload.color = !payload.color;\n }\n}", "title": "" }, { "docid": "ded92e529b13f496a502d7c06ffe4ea3", "score": "0.6018254", "text": "function hostCreateNewGame(){\n var thisGameId = ( Math.random() * 100000 ) | 0;\n\n // Return Room ID and the socket ID to the browser\n this.emit('newGameCreated', {gameId: thisGameId, mySocketId: this.id});\n\n // Join the Room and wait for players\n this.join(thisGameId.toString());\n}", "title": "" }, { "docid": "43d7695c9346f6a71676074344c638d8", "score": "0.60029227", "text": "function IOEmitToAllRoomsOf(socket, tag, data){\n let socketRooms = Object.keys(socket.rooms)\n for(let i in socketRooms){\n let r = socketRooms[i]\n if(r == socket.id) continue //the socket's id is always in their room list for some reason, as if it counts as its own room\n io.to(r).emit(tag, data)\n }\n}", "title": "" }, { "docid": "34cf17276070f15b7231537befe6ae02", "score": "0.6000563", "text": "function generateMeetingId() {\n return Math.random().toString(36).substr(2, 9);\n}", "title": "" }, { "docid": "16a0125707f67fcdf994d03a3673cb1f", "score": "0.5997541", "text": "function createRoom(){\n var roomNameValue = roomName.value.trim(); //공백 없앰\n if(roomNameValue)\n {\n var chatRoom = {\n\t\t\troomid: roomNameValue //방이름 전달\n };\n stompClient.send(\"/app/chat/rooms\", {}, JSON.stringify(chatRoom)); //JSON객체를 String 객체로 변환\n\t\tjoin(roomNameValue);\n\t}\n event.preventDefault(); //올바르지 않은 텍스트가 입력란에 입력되는것을 막음\n}", "title": "" }, { "docid": "5c5a79fedeae039de23c592b2f094d64", "score": "0.59870803", "text": "function updateRooms(){\n //console.log(\"random =\"+randomRooms.length);\n for(var i=privateRooms.length; i>0; i--){\n var roomName = privateRooms[i];\n var sizeOfRoom = io.sockets.adapter.rooms[roomName];\n if(sizeOfRoom < 1){\n privateRooms.splice(i,1);\n }\n }\n for(var i=randomRooms.length; i>0; i--){\n var roomName = randomRooms[i];\n var sizeOfRoom = io.sockets.adapter.rooms[roomName];\n if(sizeOfRoom < 1){\n randomRooms.splice(i,1);\n }\n }\n}", "title": "" }, { "docid": "bd59e00d960797972bab1af46ad71534", "score": "0.5977047", "text": "function main_chat(nsp){\n \n nsp.on('connection', socket=>{\n \n console.log(`U S E R C O N N E C T E D ${socket.id}`);\n \n // G E T A C T I V E U S E R S\n socket.on('active_users',()=>{\n socket.emit('active_users',active_users);\n });\n \n // TAKE USER DATA\n socket.on('data',data=>{ \n let user = find_user_byname(data.name);\n if(user){\n nsp.sockets.sockets[user.socket].disconnect();\n active_users[user.index].socket = socket.id;\n }else{\n data.socket = socket.id;\n active_users.push(data);\n }\n });\n\n // CREATE ROOM TO JOIN PRIVATE MESSAGING\n socket.on('create_room', data=>{ \n // data = { room_name: users: [{name: id: }]}\n let invitation_from = find_user_byID(socket.id).name;\n let roomID = roomid+'';\n ++roomid;\n socket.join(roomID);\n for(let i = 0 ; i < data.users.length ; ++i){\n let user = find_user_byname(users[i]);\n socket.to(user.socket).emit('join room',{roomID: roomID , room_name: room_name , invitation_from: invitation_from });\n }\n socket.emit('create_room',{msg:\"Room created\",status:\"200\",data:{roomID: roomID , room_name: room_name }}); \n });\n\n // JOIN TO THE ROOM\n socket.on('join room', data=>{\n socket.join(data.roomID);\n });\n\n // GROUP CHAT\n socket.on('group_message', data=>{\n // data = {roomID: msg: from:}\n nsp.to(data.roomID).emit('group_message' , data);\n });\n\n // PRIVATE MESSAGINIG\n socket.on('private_message', data=>{\n // data = { from: to: msg: toID: } \n let is_active = find_user_byname(data.to); \n if(is_active){\n socket.emit('private_message',{data: data.msg , from: data.from , with: data.to , status:'200'});\n socket.to(is_active.socket).emit('private_message',{data: data.msg , from: data.from , with: data.from , status:'200'});\n }else{\n socket.emit('private_message',{msg:'المستخدم غير نشط', status:'400'});\n } \n });\n \n });\n }", "title": "" }, { "docid": "19b98d4bf43723ef8fab5f96ae717285", "score": "0.59738076", "text": "createLobby(name) {\n this.socket.emit('lobby', JSON.stringify({type: 'create', name: name}))\n }", "title": "" }, { "docid": "bc5037cbe90bd1988ad3bca2e294d7bb", "score": "0.596508", "text": "createRoom() {\n let type = Room.TYPES[parseInt(this.rng.quick()*Room.TYPES.length)];\n return new Room(type);\n }", "title": "" }, { "docid": "c69476e73428d8ca8fdaee57fda1d20c", "score": "0.59610057", "text": "function addRoom(userID, callback){\n\t\tvar today = new Date();\n\t\tvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\n\t\t\n\t\tvar insertobj = {};\n\t\tinsertobj[\"roomID\"] = 16;\n\t\tinsertobj[\"userID\"] = userID;\n\t\tinsertobj[\"room_name\"] = socket.roomCreate;\n\t\tinsertobj[\"lastMsg\"] = date;\n\t\t\n\t\tmongoInsert(\"roomid\", insertobj, function(result){\n\t\t\tif(result == \"success\"){\n\t\t\t\tmongoFind(\"roomid\", \"room_name\", socket.roomCreate, null, function(result, extra){\n\t\t\t\t\t// socket.roomID = result.roomID;\n\t\t\t\t\t// callback(\"success\");\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tconn.query('INSERT INTO roomid (userID, room_name, lastMsg) VALUES (\\'' + socket.userID + '\\', \\'' + roomCreate + '\\', \\'' + date + '\\')' , function(err, result){\n\t\t\tif (err) throw err;\n\t\t\telse{\n\t\t\t\tconn.query('SELECT * FROM roomid WHERE room_name=\\'' + roomCreate + '\\'', function(err, result){\n\t\t\t\t\tif (err) throw err;\n\t\t\t\t\tsocket.roomID = result[0].roomID;\n\t\t\t\t\tcallback(null, \"yes\");\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "27203986fe60a66cd09d3a43f81b7b47", "score": "0.59599733", "text": "getAllRooms (socket, rooms) {\n socket.on('getAllRooms', () => {\n individualEmit.sendAllRooms(socket, rooms)\n })\n }", "title": "" }, { "docid": "0703bfccdaea7950d16c86f1be1cb764", "score": "0.5958545", "text": "function createGroup(){\n socket.emit('createGroup',true);\n}", "title": "" }, { "docid": "853fd80ad81f753b3176c4ecbdd2704e", "score": "0.59450775", "text": "function newGame(socket) {\n if (!PLAYER_LIST[socket.sessionId]) return; // Prevent Crash\n let room = PLAYER_LIST[socket.sessionId].room; // Get the room that the client called from\n ROOM_LIST[room].game.init(); // Make a new game for that room\n\n // Make everyone in the room a guesser and tell their client the game is new\n for (let player in ROOM_LIST[room].players) {\n PLAYER_LIST[player].role = \"guesser\";\n PLAYER_LIST[player].guessProposal = null;\n SOCKET_LIST[player].emit(\"switchRoleResponse\", {\n success: true,\n role: \"guesser\"\n });\n SOCKET_LIST[player].emit(\"newGameResponse\", { success: true });\n }\n gameUpdate(room); // Update everyone in the room\n}", "title": "" }, { "docid": "1ea840d8b8f38fb31f973d27a6b96690", "score": "0.5939178", "text": "function createClientObject(newUser,socket){\n\t\tvar clientObj = {};\n\n\t\tclientObj.socket= socket;\n\t\tclientObj.socketID= socket.id;\n\t\tclientObj.room = '';\n\n\t\tclients[newUser] = clientObj;\n\t}", "title": "" }, { "docid": "9b0750f34c688f43a058e6738be149cf", "score": "0.5938991", "text": "function socketIdsInRoom(roomID) {\n let socketIds = io.nsps['/'].adapter.rooms[roomID];\n if (socketIds) {\n let collection = [];\n for (let key in socketIds) {\n collection.push(key);\n }\n return collection;\n } else {\n return [];\n }\n}", "title": "" }, { "docid": "e9a1ee9c3377285708dcacbebe83e253", "score": "0.59344053", "text": "function joinBattle(socket, roomId) {\n socket.emit('join battle', roomId, (socketIds) => {\n console.log('join battle', socketIds);\n if (socketIds.length) {\n Store.dispatch(setDisableChangeMicButton(true));\n Store.getState().webRTC.localStream.getAudioTracks()[0].enabled = false;\n }\n socketIds.forEach((id) => {\n createPC(socket, id, true);\n });\n });\n}", "title": "" }, { "docid": "8c4983cc370ada30367daf383a48718f", "score": "0.5919559", "text": "function createNewServer(socket, isPrivate) {\n var serverInstance = new serverInst();\n var serverId = serverInstance.init(that);\n serverInstance.addClient(socket);\n serverInstances.push(serverInstance);\n console.log(\"new server \" + (serverInstances.length - 1) + \" created with id: \" + serverId);\n if (isPrivate) {\n socket.emit(\"privateId\", serverId);\n }\n }", "title": "" }, { "docid": "ccb1e5fca385ba0156e4e5b6fc89ff1f", "score": "0.5910969", "text": "function joinRoom(socket,room){\n //Make user join room\n socket.join(room);\n //Note that user is now in this room\n currentRoom[socket.id]=room;\n //Let user know that they are in the room\n socket.emit('joinResult',{room:room});\n //Let other users in the room know that another user has joined the room\n socket.broadcast.to(room).emit('message',\n {text:nickNames[socket.id] + ' has joined ' + room +'.'});\n //Determine what other users are in same room as user\n var usersInRoom = io.sockets.clients(room);\n //If other users exist, summarize who they are\n if(usersInRoom.length>1){\n var usersInRoomSummary ='Users currently in '+ room +': ';\n for (var index in usersInRoom){\n var userSocketId = usersInRoom[index].id;\n //check if the socket id is not the same as the user who is joining the room\n if(userSocketId!=socket.id){\n\n if(index>0){\n usersInRoomSummary+=',';\n }\n usersInRoomSummary += nickNames[userSocketId];\n\n }\n\n }\n usersInRoomSummary+='.';\n //send summary of other users in the room to the user\n socket.emit('message',{text:usersInRoomSummary});\n }\n\n}", "title": "" }, { "docid": "c3a635d0a45300bf4be709fc537a01d3", "score": "0.5907217", "text": "function ChatClient(socket) {\n this.socket = socket; // Socket on server side\n this.name = 'Guest' + ChatClient.uniqNum++; // Generate unique name\n ChatClient.clients[this.socket.id] = this; // Add this to clients list\n this.socket.emit('new name', this.name); // Send name to user\n this.joinRoom(initRoom); // Join initial room\n this.handleEvents(this); // Attach all event handlers\n console.log(\"Client Created!\");\n \n}", "title": "" }, { "docid": "27ec6c1bc6ff0244324f52878c84808a", "score": "0.59026617", "text": "function createRoom(roomName){\n generateNewSessionID();\n sessionId = app.get('sessionId');\n pg.connect(process.env.DATABASE_URL + \"?ssl=true\", function (err, client, done) {\n client.query('INSERT into public.meetings_v2 (session_id, session_name, audio_only) VALUES($1, $2, $3)', [sessionId, roomName, false], function (err, result) {\n done();\n if (err) {\n res.end('Error inserting meeting to database');\n } else {\n console.log(\"Room \" + roomName + \" created in database\");\n }\n });\n });\n}", "title": "" }, { "docid": "b0f69e428d0a1d498ebb751b8270dd39", "score": "0.58984894", "text": "function newSocket(socket) {\n\tsockets.push(socket);\n\tsocket.write('Welcome to the Telnet server!\\n ');\n\tsocket.write(\"private message can be sent by command like this @PM userId:this is test message\")\n\tsocket.write('no:of sockets '+sockets.length +\"\\n\");\n\tsocket.write(\"Enter the name to identify:\");\n\tsocket.on('data', function (data){identifySocket(socket, data);});\n\t\n}", "title": "" }, { "docid": "dec3bc0001f3744161fce27c2397244a", "score": "0.589596", "text": "enterRoom(roomId, name) {\n socket.emit('messages', {roomId: roomId, name:name });\n }", "title": "" }, { "docid": "dce62896156292eb6a4de3f2c4b75e64", "score": "0.5894111", "text": "function createLobby(){\n\tvar l_name = document.getElementById(\"lobby_input\").value\n\tsocket.emit(\"create_lobby\", l_name);\n}", "title": "" }, { "docid": "8efdd7a8001a46bc5df8e8f81ced132f", "score": "0.588553", "text": "function createNamespace(roomId){\n let room = io.of('/game/' + roomId);\n let ready = 0;\n let player1 = '';\n let player2 = '';\n let player1positions = [];\n let player2positions = [];\n let ship1obj = {};\n let ship2obj = {};\n let turn;\n let game = new Game();\n let lobby = new Lobby();\n let user = new Users();\n\n // A user connects to room\n // Set players as player1 and player2\n // Send to both users name of players connected\n room.on('connection', (socket)=>{\n lobby.getPlayersName(roomId).then( result =>{\n\n player1 = result[0].player1;\n player2 = result[0].player2;\n\n room.emit('player-connected', {\n player1: result[0].player1,\n player2: result[0].player2,\n })\n\n });\n\n // A user sends a message on room chat\n // Send to all users the message and username that was sent\n socket.on('message-send', data => {\n room.emit('message-sent', {\n message: data.message,\n username: data.username\n })\n\n });\n\n // A user clicks on ready\n // If 1 user clicks ready, notify all users the player is ready to play\n // If 2 users clicks ready,\n // Get ship positions from DB and store them as arrays\n // Randomly select a user to have the first turn\n // Start game\n socket.on('player-ready', (data)=>{\n ready++;\n\n if(ready === 1){\n room.emit('message-sent', {\n username: '<span style=\"color:green\"><strong>SERVER</strong></span>',\n message: '<span style=\"color:green;\"><strong>' + data.username.toUpperCase() + ' IS READY</strong></span>',\n })\n }\n\n if(ready === 2){\n game.getShipPositions(roomId, player1).then( results =>{\n\n results.forEach( result =>{\n player1positions.push(result.ship_position);\n })\n\n }).then(()=>{\n\n game.getShipPositions(roomId, player2).then( results =>{\n\n results.forEach( result =>{\n player2positions.push(result.ship_position);\n })\n\n }).then(()=>{\n\n if( (Math.floor(Math.random() * 2) + 1) === 1){\n turn = player1;\n } else {\n turn = player2;\n }\n\n room.emit('start-game', {\n player1positions : player1positions,\n player2positions : player2positions,\n turn,\n });\n\n ready = 0;\n\n })\n\n })\n\n }\n\n }) // socket.on('ready-player') end\n\n // User clicks end turn\n // Check if selected position corresponds with a position the opponent has\n // If yes, emit 'hit' and remove the positon from the array, else emit 'miss'\n // If a player's position array is empty, the other player wins\n socket.on('check-position', (data)=>{\n let shotPosition = data.position;\n let boardPosition = getBoardPosition(data.position);\n\n //If shot is from player1\n if(player1 == data.playerName){\n\n //If player1 hits an enemey ship\n if(player2positions.includes(data.position)){\n let index = player2positions.indexOf(data.position);\n\n player2positions.splice(index, 1);\n\n game.getShipName(roomId, player2, data.position).then( data =>{\n let shipName = data[0].ship_type;\n shipName.toUpperCase();\n\n let message = boardPosition + ' - ' + player1 + ' hits a ' + shipName + '.';\n\n room.emit('hit', {\n playerName: player1,\n position: shotPosition,\n message: message,\n });\n\n room.emit('message-sent', {\n username: '<span style=\"color:red;\"><strong>GAME</strong></span>',\n message: message,\n });\n\n })\n\n } else {\n /* Player 1 hits water */\n let message = boardPosition + ' - ' + player1 + ' hits water.';\n\n room.emit('miss', {\n playerName : player1,\n position: shotPosition,\n message: message,\n });\n\n room.emit('message-sent', {\n username: '<span style=\"color:red\"><strong>GAME</strong></span>',\n message: message,\n })\n\n }\n\n if(player2positions.length == 0){\n\n game.deleteGameRoom(roomId).then(()=>{\n\n game.deleteShipPositions(roomId);\n user.addWin(player1);\n user.addLoss(player2);\n room.emit('game-over', {\n winner: player1,\n })\n\n })\n\n return;\n }\n\n room.emit('end-turn', {\n turn: player2,\n });\n\n //If shot is from player2\n } else {\n\n if(player1positions.includes(data.position)){\n let index = player1positions.indexOf(data.position);\n\n player1positions.splice(index, 1);\n\n game.getShipName(roomId, player1, data.position).then( data =>{\n let shipName = data[0].ship_type;\n shipName.toUpperCase();\n\n let message = boardPosition + ' - ' +player2 + ' hits a ' + shipName + '.';\n\n room.emit('hit', {\n playerName: player2,\n position: shotPosition,\n message: message,\n });\n\n room.emit('message-sent', {\n username: '<span style=\"color:red\"><strong>GAME</strong></span>',\n message: message ,\n })\n\n })\n\n } else {\n /* Player 2 hits water */\n\n let message = boardPosition + ' - ' + player2 + ' hits water.';\n room.emit('miss', {\n playerName: player2,\n position: shotPosition,\n message: message,\n });\n\n room.emit('message-sent', {\n username: '<span style=\"color:red\"><strong>GAME</strong></span>',\n message: message,\n })\n }\n\n if(player1positions.length == 0){\n\n game.deleteGameRoom(roomId).then(()=>{\n\n game.deleteShipPositions(roomId);\n user.addWin(player2);\n user.addLoss(player1);\n room.emit('game-over', {\n winner: player2,\n })\n\n })\n\n return;\n }\n\n room.emit('end-turn', {\n turn: player1,\n });\n\n }\n\n })\n\n /*\n socket.on('opponent-mouseover', (data)=>{\n room.emit('highlight-opponent-mouseover', {\n playerName: data.playerName,\n position: data.position,\n })\n })\n\n socket.on('opponent-mouseleave', (data)=>{\n room.emit('highlight-opponent-mouseleave', {\n playerName: data.playerName,\n position: data.position,\n })\n })*/\n\n }) //Individual Room Socket end\n\n }", "title": "" }, { "docid": "f368963410a9423360b284303f21764f", "score": "0.58757186", "text": "function toRoom(event, data) {\n\tfor(var id in sockets) {\n\t\tsockets[id].emit(event, data);\n\t}\n}", "title": "" }, { "docid": "90c52a571f4ab1c165f68f1ce079d5da", "score": "0.58740735", "text": "function randomRoom()\n{\n\n}", "title": "" }, { "docid": "d8020db8ae31712ce4e31a80f435c53a", "score": "0.58724576", "text": "function joinRoom(socket, data) {\n let roomName = data.room.trim(); // Trim whitespace from room name\n let pass = data.password.trim(); // Trim whitespace from password\n let userName = data.nickname.trim(); // Trim whitespace from nickname\n\n if (!ROOM_LIST[roomName]) {\n // Tell client the room doesnt exist\n socket.emit(\"joinResponse\", { success: false, msg: \"Room Not Found\" });\n } else {\n if (ROOM_LIST[roomName].password !== pass) {\n // Tell client the password is incorrect\n socket.emit(\"joinResponse\", {\n success: false,\n msg: \"Incorrect Password\"\n });\n } else {\n if (userName === \"\") {\n // Tell client they need a valid nickname\n socket.emit(\"joinResponse\", {\n success: false,\n msg: \"Enter A Valid Nickname\"\n });\n } else {\n // If the room exists and the password / nickname are valid, proceed\n // If we were to previously delete the room cancel\n if (DELETE_ROOM_LIST[roomName]) {\n logStats(\n \"Removing delete timeout for room: (\" +\n roomName +\n \") as user (\" +\n userName +\n \") joined back\"\n );\n clearTimeout(DELETE_ROOM_LIST[roomName]);\n delete DELETE_ROOM_LIST[roomName];\n }\n let player = new Player(userName, roomName, socket); // Create a new player\n ROOM_LIST[roomName].players[socket.sessionId] = player; // Add player to room\n player.joinTeam(); // Distribute player to team\n socket.emit(\"joinResponse\", { success: true, msg: \"\" }); // Tell client join was successful\n gameUpdate(roomName); // Update the game for everyone in this room\n // Server Log\n logStats(\n socket.sessionId +\n \"(\" +\n player.nickname +\n \") JOINED '\" +\n ROOM_LIST[player.room].room +\n \"'(\" +\n Object.keys(ROOM_LIST[player.room].players).length +\n \")\"\n );\n }\n }\n }\n}", "title": "" }, { "docid": "9bb902b704c84d850028249ec4e7633c", "score": "0.5850943", "text": "function newConnection(socket){\n //new socket connection to the server gets assigned an id number\n console.log('new connection:' + socket.id); \n}", "title": "" }, { "docid": "a02919dba2ed71f660e90179222900ed", "score": "0.5844484", "text": "function addToRoom(room, socket) {\n let found = false;\n\n /* check if the room already exists */\n for (let i in rooms) {\n if (rooms[i].room === room) {\n found = true;\n }\n }\n\n /* if found it will increase the member count */\n /* if not found it will create the room in the rooms array */\n if (found) {\n for (let i in rooms) {\n if (rooms[i].room === room) {\n rooms[i].userCount++;\n }\n }\n } else {\n rooms.push({ room, userCount: 1 });\n }\n}", "title": "" }, { "docid": "7303d4a02bce7ea0539f7fc285745557", "score": "0.5832429", "text": "function _onConnection (socket) {\n setInterval(() => io.emit('time', new Date().toTimeString()), 1000);\n\n let currentRoomId,\n currentPlayerId,\n currentSquareId;\n\n console.log(\"A user has connected\");\n socket.on(\"disconnect\", onDisconnect);\n\n socket.on(\"HOST_GAME\", hostGame);\n socket.on(\"JOIN_GAME\", joinGame);\n socket.on(\"CHAT_MESSAGE_SENT\", chatMessageSent);\n socket.on(\"TRIGGER_TURN\", triggerTurn);\n socket.on(\"PROPERTY_PURCHASED\", propertyPurchased);\n socket.on(\"TRADE_PROPOSAL_INITIATED\", tradeProposalInitiated);\n socket.on(\"TRADE_PROPOSAL_RESPONDED\", tradeProposalResponded);\n socket.on(\"REQUEST_MORTGAGE\", requestMortgage);\n socket.on(\"REQUEST_UNMORTGAGE\", requestUnmortgage);\n socket.on(\"DECLARE_BANKRUPTCY\", declareBankruptcy);\n\n // on client disconnect\n function onDisconnect () {\n console.log('A user has disconnected', currentPlayerId);\n\n // remove current player from current room\n if (rooms[currentRoomId]) {\n rooms[currentRoomId].removePlayer(currentPlayerId);\n }\n\n // remove corresponding entry from allOnlinePlayers\n if (allOnlinePlayers[currentPlayerId] && allOnlinePlayers[currentPlayerId].rooms) {\n // remove currentRoomId entry from current player in allOnlinePlayers list\n allOnlinePlayers[currentPlayerId].rooms.splice(allOnlinePlayers[currentPlayerId].rooms.indexOf(currentRoomId), 1);\n\n // remove current player from online list if no more active rooms found\n if (allOnlinePlayers[currentPlayerId].rooms.length === 0) {\n delete allOnlinePlayers[currentPlayerId];\n }\n }\n }\n\n // create a new room and join it\n function hostGame (data) {\n currentPlayerId = data.playerId;\n\n // generate new unique currentRoomId\n do {\n currentRoomId = \"r\" + Date.now() % 10000000;\n } while (rooms[currentRoomId]);\n\n // create new entry in rooms for new currentRoomId if it doesn't already exist; store currentPlayerId against it\n if (!rooms[currentRoomId]) {\n rooms[currentRoomId] = new Room (currentRoomId, currentPlayerId, mapData.squares);\n }\n\n _updateAllPlayerList(currentPlayerId, currentRoomId);\n\n socket.emit(\"GAME_CREATED\", {\n msg: \"New game room created with id \" + currentRoomId,\n allOnlinePlayers: allOnlinePlayers,\n room: rooms[currentRoomId],\n mapData: mapData\n });\n\n _joinSession();\n }\n\n // join room of existing player\n function joinGame (data) {\n let hostPlayerId = data.hostPlayerId;\n\n currentPlayerId = data.playerId;\n\n if (hostPlayerId && allOnlinePlayers[hostPlayerId] && allOnlinePlayers[hostPlayerId].rooms) {\n\n // get hostPlayerId's current room id\n currentRoomId = allOnlinePlayers[hostPlayerId].rooms[0];\n\n if (rooms[currentRoomId] && rooms[currentRoomId].getAllPlayers()) {\n\n rooms[currentRoomId].addPlayer(currentPlayerId);\n\n _updateAllPlayerList(currentPlayerId, currentRoomId);\n\n socket.emit(\"GAME_JOINED\", {\n msg: \"Game room joined with id \" + currentRoomId,\n allOnlinePlayers: allOnlinePlayers,\n room: rooms[currentRoomId],\n mapData: mapData\n });\n\n _joinSession();\n\n } else {\n socket.emit(\"SESSION_NOT_FOUND\", {\n msg: \"No non-empty session exists with id \" + currentRoomId\n });\n }\n\n } else {\n socket.emit(\"HOST_NOT_FOUND\", {\n msg: \"Could not find host player with id \" + hostPlayerId\n });\n }\n }\n\n function declareBankruptcy () {\n // check if it is currentPlayerId's turn\n if (!rooms[currentRoomId].isPlayersTurn(currentPlayerId)) {\n socket.emit(\"INVALID_TURN\");\n return;\n }\n\n _triggerBankruptcy();\n\n // trigger next player's turn\n rooms[currentRoomId].updateNextTurn();\n }\n\n // chat message sent by currentPlayerId\n function chatMessageSent (data) {\n if (data.msg) {\n socket.broadcast.to(currentRoomId).emit(\"CHAT_MESSAGE_RECEIVED\", {\n sender: currentPlayerId,\n msg: data.msg\n });\n }\n }\n\n // roll dice; move player; execute card details\n function triggerTurn () {\n // check if it is currentPlayerId's turn\n if (!rooms[currentRoomId].isPlayersTurn(currentPlayerId)) {\n socket.emit(\"INVALID_TURN\");\n return;\n }\n\n // get sum of 2 dice rolls\n let spaces = _rollDice();\n\n // add \"spaces\" to player's current position; after crossing 39, player goes to 0\n currentSquareId = rooms[currentRoomId].getPlayerPosition(currentPlayerId) + spaces;\n if (currentSquareId > 39) {\n currentSquareId -= 40;\n }\n\n // move player to computed position\n rooms[currentRoomId].setPlayerPosition(currentPlayerId, currentSquareId);\n\n // inform everyone in currentRoomId that currentPlayerId has moved to currentSquareId\n io.sockets.in(currentRoomId).emit(\"PLAYER_MOVED\", {\n player: currentPlayerId,\n position: currentSquareId,\n msg: currentPlayerId + \" moves to \" + currentSquareId\n });\n\n let shouldEndTurn = _executeSquare();\n\n if (shouldEndTurn) {\n // update nextTurn\n rooms[currentRoomId].updateNextTurn();\n }\n }\n\n function propertyPurchased (data) {\n // check if it is currentPlayerId's turn\n if (!rooms[currentRoomId].isPlayersTurn(currentPlayerId)) {\n socket.emit(\"INVALID_TURN\");\n return;\n }\n\n // get details of square\n let squareDetails = rooms[currentRoomId].getSquareDetails(currentSquareId);\n\n // if player opted to buy property\n if (data.response) {\n // assign property to player\n squareDetails.owner = currentPlayerId;\n\n // deduct funds from player\n rooms[currentRoomId].addPlayerCash(currentPlayerId, -squareDetails.price);\n\n // inform everyone in currentRoomId that currentPlayerId has bought the property\n io.sockets.in(currentRoomId).emit(\"PROPERTY_PURCHASED\", {\n buyer: currentPlayerId,\n squareId: currentSquareId,\n msg: currentPlayerId + \" bought \" + squareDetails.propertyName + \" for \" + squareDetails.price\n });\n }\n\n // update nextTurn\n rooms[currentRoomId].updateNextTurn();\n }\n\n function tradeProposalInitiated (data) {\n // ignore if a trade is currently in progress\n if (rooms[currentRoomId].getCurrentTrade()) {\n return;\n }\n\n const offered = data.offered, // offered by currentPlayerId to data.tradeWithPlayerId\n requested = data.requested, // currentPlayerId will requested from data.tradeWithPlayerId\n proposedTo = data.tradeWithPlayerId;\n\n // ignore if trade proposal is invalid\n const isTradeOfferValid = rooms[currentRoomId].isTradeOfferValid (currentPlayerId, proposedTo, offered, requested);\n if (!isTradeOfferValid) {\n return;\n }\n\n const currentTrade = {\n proposedBy: currentPlayerId,\n proposedTo,\n offered,\n requested,\n msg: currentPlayerId + \" has proposed a trade with \" + proposedTo\n };\n\n // save details of current trade proposal\n rooms[currentRoomId].setCurrentTrade(currentTrade);\n\n // inform other players in currentRoomId that currentPlayerId has proposed a trade with tradeWithPlayerId\n socket.broadcast.to(currentRoomId).emit(\"TRADE_PROPOSAL_RECEIVED\", currentTrade);\n }\n\n function tradeProposalResponded (data) {\n const tradeData = rooms[currentRoomId].getCurrentTrade();\n // ignore if no trade is found or invalid player responds to trade proposal\n if (!tradeData || tradeData.proposedTo !== currentPlayerId) {\n console.warn(\"invalid player cannot respond to trade offer\");\n return;\n }\n\n // make trade exchange happen; assign cash and properties\n if (data.response) {\n rooms[currentRoomId].executeTrade();\n\n // deliver TRADE_SUCCESSFUL message to all players in room\n io.sockets.in(currentRoomId).emit(\"TRADE_SUCCESSFUL\", {\n tradeData: tradeData,\n msg: tradeData.proposedTo + \" accepted an offer from \" + tradeData.proposedBy\n });\n }\n\n // conclude current trade (set it to null)\n rooms[currentRoomId].setCurrentTrade(null);\n }\n\n function requestMortgage (data) {\n const { squaresMortgaged, cashFromMortgage} = rooms[currentRoomId].mortgageProperties(currentPlayerId, data.squares);\n\n // trigger message via socket if at least one valid property is mortgaged\n if (squaresMortgaged.length) {\n // inform everyone in currentRoomId that currentPlayerId has mortgaged property\n io.sockets.in(currentRoomId).emit(\"PROPERTY_MORTGAGED\", {\n playerId: currentPlayerId,\n squares: squaresMortgaged,\n cash: cashFromMortgage,\n msg: currentPlayerId + \" mortgaged \" + squaresMortgaged + \" for \" + cashFromMortgage\n });\n }\n }\n\n function requestUnmortgage (data) {\n const { squaresUnmortgaged, costForUnmortgage} = rooms[currentRoomId].unmortgageProperties(currentPlayerId, data.squares);\n\n // trigger message via socket if at least one valid property is unmortgaged\n if (squaresUnmortgaged.length) {\n // inform everyone in currentRoomId that currentPlayerId has unmortgaged property\n io.sockets.in(currentRoomId).emit(\"PROPERTY_UNMORTGAGED\", {\n playerId: currentPlayerId,\n squares: squaresUnmortgaged,\n cash: costForUnmortgage,\n msg: currentPlayerId + \" paid off his mortgage on \" + squaresUnmortgaged + \" with \" + costForUnmortgage\n });\n }\n }\n\n\n /* Private methods */\n\n // add current player to Socket IO room; broadcast it to all players in room\n function _joinSession () {\n // join currentRoomId room\n socket.join(currentRoomId);\n\n // inform everyone in currentRoomId of new joinee\n io.sockets.in(currentRoomId).emit(\"JOINED_SESSION\", {\n playerId: currentPlayerId,\n players: rooms[currentRoomId].getAllPlayers(),\n room: rooms[currentRoomId],\n msg: currentPlayerId + \" joining \" + currentRoomId\n });\n }\n\n function _triggerBankruptcy (playerId) {\n playerId = playerId || currentPlayerId;\n rooms[currentRoomId].setPlayerActiveStatus(playerId, false);\n\n // inform everyone in currentRoomId that playerId is bankrupt\n io.sockets.in(currentRoomId).emit(\"PLAYER_BANKRUPT\", {\n playerId: playerId,\n msg: playerId + \" is bankrupt\"\n });\n }\n\n // roll dice: get random integer between 2 & 12\n function _rollDice () {\n let dice1 = _getRandomInt(1, 6),\n dice2 = _getRandomInt(1, 6);\n\n return dice1 + dice2;\n }\n\n // generate random integer between \"min\" & \"max\" limits (inclusive)\n function _getRandomInt (min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n }\n\n // execute whatever is on square\n function _executeSquare () {\n // get details of square\n let squareDetails = rooms[currentRoomId].getSquareDetails(currentSquareId);\n\n switch (squareDetails.type) {\n // for property square: if unowned, opt to buy; if owned by others, pay rent\n case \"PROPERTY\":\n if (!squareDetails.owner) {\n // offer player to buy property\n socket.emit(\"OFFER_BUY_PROPERTY\", {\n squareId: currentSquareId\n });\n\n return false;\n } else if (squareDetails.owner !== currentPlayerId) {\n let rent = squareDetails.rent;\n // remove funds from current player\n rooms[currentRoomId].addPlayerCash(currentPlayerId, -rent);\n // add funds to square owner\n rooms[currentRoomId].addPlayerCash(squareDetails.owner, rent);\n io.sockets.in(currentRoomId).emit(\"RENT_PAID\", {\n owner: squareDetails.owner,\n payee: currentPlayerId,\n rent: rent,\n msg: currentPlayerId + \" paid \" + rent + \" rent to \" + squareDetails.owner\n });\n\n return true;\n }\n break;\n default:\n console.log(squareDetails);\n return true;\n }\n }\n}", "title": "" }, { "docid": "00e6767c836c70353e57da9d35754baa", "score": "0.58277696", "text": "function Room(id, socket0, socket1) {\n this.id = id;\n this.status = \"waiting\";\n this.players = [socket0,socket1];\n this.objects = {};\n this.objects[socket0.id] = new Player(socket0.id, \"LEFT\");\n this.objects[socket1.id] = new Player(socket1.id, \"RIGHT\");\n this.objects.player0Score = new Score(socket0.id, \"LEFT\");\n this.objects.player1Score = new Score(socket1.id, \"RIGHT\");\n this.objects.ball = new Ball(socket0.id, socket1.id);\n}", "title": "" }, { "docid": "00a5dd587ef2c1041b7505f62959679f", "score": "0.58262897", "text": "function createGame(player)\n{\n var remote = clients[player].remote;\n console.log('player ' + player + ' created a game');\n //Create a new game instance\n var thegame = {\n id : player, //generate a new id for the game\n player_host:player, //so we know who initiated the game\n player_client:null, //nobody else joined yet, since its new\n player_count:1,\n priv:false,\n tok:null //for simple checking of state\n };\n\n //Store it in the list of game\n rooms[ player ] = thegame;\n\n //Keep track\n roomcount++;\n\n console.log('player ' + player + ' created a game with id ' + thegame.id);\n clients[player].room = player;\n //return it\n remote.wait();\n return thegame;\n}", "title": "" }, { "docid": "7542dfdea4133c548cc237b7add40fd4", "score": "0.58243155", "text": "function subscribe(socket, room) {\n var user = socket.request.session.user;\n console.log(user);\n console.log(\"SUBSCRIBING =\"+user.name);\n\n\n // Subscribe the client to the room\n socket.join(room);\n\n // If the close timer is set, cancel it\n // if (closeTimer[room]) {\n // clearTimeout(closeTimer[room]);\n // }\n\n // Create Paperjs instance for this room if it doesn't exist\n\n if (!projects[room]) {\n console.log(\"made room\");\n projects[room] = {};\n projects[room].users = {};\n // Use the view from the default project. This project is the default\n // one created when paper is instantiated. Nothing is ever written to\n // this project as each room has its own project. We share the View\n // object but that just helps it \"draw\" stuff to the invisible server\n // canvas.\n\n projects[room].project = new paper.Project();\n console.log(projects[room].project);\n projects[room].external_paths = {};\n db.getProjectName(room, function(err, rows){\n if(rows.length != 1){\n console.log(\"could not find the project\");\n }\n else if(rows.length == 1 && projects[room].project && projects[room].project.activeLayer){\n console.log('Mame projekt z db, ukladame ho do projektu');\n if(projects[room].project.activeLayer)\n projects[room].project.activeLayer.remove();\n\n //TODO: upravit\n projects[room].project.id = rows[0].id;\n //console.log(rows[0]);\n projects[room].project.importJSON(rows[0].canvas);\n socket.emit('project:load', rows[0]);\n }\n else{\n console.log(\"error during loading project from DB\");\n }\n //console.log(projects[room].project);\n });\n } else { // Project exists in memory, no need to load from database\n console.log('Project exists in memory, no need to load from database');\n loadFromMemory(room, socket);\n }\n\n projects[room].users[user.id] = user;\n console.log(\"PRIPAAAAAAAAAAAAAJA SA USER\");\n console.log(projects[room].users);\n app.io.to(room).emit('user:connected', projects[room].users, user);\n}", "title": "" }, { "docid": "b5e45e3f2aa481d6fbac828de2fe6aff", "score": "0.5816177", "text": "function broadcastRoomCount(room)\n{\n clients = findClientsSocket(room)\n console.log('broadcastFor: ' + room, clients);\n io.sockets.in(room).emit('lookers', room, clients);\n}", "title": "" }, { "docid": "8ab4bdf6cbb5ded2ac38e9c66345cfc5", "score": "0.5815325", "text": "function BroadcastToAllRoomsOf(socket, tag, data){\n let socketRooms = Object.keys(socket.rooms)\n for(let i in socketRooms){\n let r = socketRooms[i]\n if(r == socket.id) continue //the socket's id is always in their room list for some reason, as if it counts as its own room\n socket.broadcast.to(r).emit(tag, data)\n }\n}", "title": "" }, { "docid": "d443ae8c7d18e31c8597fd483e726525", "score": "0.5814673", "text": "joinRoom (io, socket, rooms) {\n socket.on('joinRoom', (data) => {\n\n let playerToJoin = {\n username: data.player.username,\n accepted: data.player.accepted,\n isReady: false,\n requestingKingPosition: false,\n }\n\n const roomToJoinIndex = rooms.findIndex(room => room.id === Number(data.roomId));\n\n if (roomToJoinIndex >= 0) {\n let actualRoom = rooms[roomToJoinIndex];\n\n let isUserAlreadyInRoom = actualRoom.players.findIndex(player => player.username === data.player.username);\n\n // Check for room max capacity\n if(actualRoom.players > 10) {\n return;\n }\n\n // Check if user is already in room (so is not pushed to array again)\n if (isUserAlreadyInRoom < 0) {\n actualRoom.players.push(playerToJoin);\n\n let isPlayerAlreadyOnATeam = actualRoom.angelTeam.findIndex(player => player.username === data.player.username);\n let isPlayerInDemonTeam = actualRoom.demonTeam.findIndex(player => player.username === data.player.username);\n\n let playerWithoutTeam = (isPlayerAlreadyOnATeam < 0) && (isPlayerInDemonTeam < 0)\n\n if(actualRoom.angelTeam.length < 5 && actualRoom.angelTeam.length <= actualRoom.demonTeam.length && playerWithoutTeam) {\n actualRoom.angelTeam.push(playerToJoin);\n } else if(actualRoom.demonTeam.length < 5 && actualRoom.demonTeam.length <= actualRoom.angelTeam.length && playerWithoutTeam) {\n actualRoom.demonTeam.push(playerToJoin);\n }\n\n\n }\n socket.join(`room/${actualRoom.id}`);\n groupalEmit.updateRoomData(io, actualRoom);\n }\n else {\n console.log(\"ROOM NOT FOUND\");\n }\n })\n }", "title": "" }, { "docid": "1969758730bdd8e4d1fb1c07afeb6ff8", "score": "0.58133256", "text": "function getMyRoomId() {\n let match = roomsData\n ? roomsData.rooms.filter(room => room.data && room.data.sockets[myId])\n : []\n return match[0] ? match[0].id : null\n }", "title": "" }, { "docid": "9736469e8d473b77528938f3b1a4dd34", "score": "0.58091587", "text": "initSocketEvents(socket) {\r\n if (socket) {\r\n /**\r\n * A user connected to the chat service.\r\n * Update their status\r\n */\r\n socket.on(\"USER_CONNECTED\", this.props.setUserConnected);\r\n\r\n socket.on(\"USER_DISCONNECTED\", this.props.setUserDisconnected);\r\n\r\n socket.on(\"MESSAGE_ADDED\", ({ userId, room, message }) => {\r\n const { currentUser, activeRoom } = this.props;\r\n\r\n //If client's actively in the room of the sent message, then add it to the current room\r\n if (activeRoom.id === room.id) {\r\n this.props.addMessageToRoom({ room, message });\r\n } else if (\r\n room.group === \"direct\" &&\r\n currentUser.rooms.includes(room.id)\r\n ) {\r\n this.props.addUnreadMessage({\r\n room,\r\n currentUser\r\n });\r\n soa.addUnreadMessage({ socket, userId: currentUser.id, room });\r\n } else {\r\n }\r\n });\r\n\r\n /**\r\n * A room was created.\r\n *\r\n * If the current user is in the room, add the room to the client's store so that the client\r\n * can access the room without refreshing the browser\r\n */\r\n socket.on(\"ROOM_CREATED\", ({ room }) => {\r\n const { currentUser } = this.props;\r\n if (room.users.includes(currentUser.id)) {\r\n this.props.addRoom(room);\r\n }\r\n });\r\n }\r\n }", "title": "" }, { "docid": "676b5709d061c6ab6ffedb4a7a7ef985", "score": "0.57827103", "text": "createRoom(name_room) {\n this.rooms.push({\n idRoom: this.rooms.length + 1,\n nome: name_room,\n users: [],\n blackList: [],\n });\n }", "title": "" }, { "docid": "7ad9732b82f55347226a52bd04b6f59f", "score": "0.5782612", "text": "function checkRoom() {\n socket.emit('check room');\n}", "title": "" }, { "docid": "84ffb706ec03e19e404c7c0b34dee11e", "score": "0.5779074", "text": "function emitonlineusers(globalid){\nvar userlist = [];\nio.in(globalid).clients((error, clients) => {\nfor(var i=0;i<clients.length;i++){\nuserlist.push(steamidlist[socketidlist.indexOf(clients[i])]);\n}\nvar roomusers = db.getroomusers(globalid)\nvar packet = {users:roomusers, onlineusers:userlist};\n io.in(globalid).emit('onlineusers',packet); \n})\n}", "title": "" }, { "docid": "8c154f78d8a86b51f821179e78784a13", "score": "0.5761001", "text": "function subscribe(socket, roomNumber) {\n var room = roomNumber;\n\n // Subscribe the client to the room\n socket.join(room);\n\n // If the close timer is set, cancel it\n // if (closeTimer[room]) {\n // clearTimeout(closeTimer[room]);\n // }\n\n // Create Paperjs instance for this room if it doesn't exist\n var project = projects.projects[room];\n if (!project) {\n console.log(\"made room\");\n projects.projects[room] = {};\n // Use the view from the default project. This project is the default\n // one created when paper is instantiated. Nothing is ever written to\n // this project as each room has its own project. We share the View\n // object but that just helps it \"draw\" stuff to the invisible server\n // canvas.\n projects.projects[room].project = {\n\t\tpaperProject: new paper.Project()\n\t};\n projects.projects[room].project.external_paths = {};\n db.load(room, socket);\n } else { // Project exists in memory, no need to load from database\n loadFromMemory(room, socket);\n }\n\n // Broadcast to room the new user count -- currently broken\n var rooms = socket.adapter.rooms[room]; \n var roomUserCount = Object.keys(rooms).length;\n io.to(room).emit('user:connect', roomUserCount);\n}", "title": "" }, { "docid": "2ef36d4d1d235a97a730fe8e5d305d5a", "score": "0.5759084", "text": "getRoomId() {\n let possibleId = 1;\n while (true) {\n // Check if the current id is available\n let used = false;\n for (let room of this.rooms) {\n if (room.id == possibleId) {\n used = true;\n break;\n }\n }\n // Return it if not in use in any room\n if (!used) {\n logger.info('Assigning room id ' + possibleId);\n return possibleId;\n }\n // TRy with the next one\n possibleId++;\n }\n }", "title": "" }, { "docid": "0f93482904cfff791dcb13040d2a647a", "score": "0.5756262", "text": "function hostCreateNewGame(data) {\n\n // Create a unique Socket.IO Room\n var thisGameId = ( Math.random() * 100000 ) | 0;\n\n // Return the Room ID (gameId) and the socket ID (mySocketId) to the browser client\n this.emit('newGameCreated', {gameId: thisGameId, levelId: data.level, mySocketId: this.id});\n\n // Join the Room and wait for the players\n this.join(thisGameId.toString());\n}", "title": "" }, { "docid": "43c3aedee2ddedd584a927dfeca63a7c", "score": "0.57548493", "text": "function newConnection(socket){\n // show new users\n console.log(\"New connection ID:\" + socket.id);\n\n // tell players of this user\n //nUsers++;\n //io.sockets.emit(\"newPlayer\", nUsers);\n\n // reseave player data\n socket.on(\"playerC\", broadcastPlayer);\n function broadcastPlayer(data){\n var dataSend = {\n id: socket.id,\n playerData: data\n }\n socket.broadcast.emit(\"payerM\", dataSend);\n }\n\n // resave worldSpeed\n socket.on(\"worldSpeed\", broadcastWorldSpeed);\n function broadcastWorldSpeed(data){\n socket.broadcast.emit(\"worldSpeed\", data);\n }\n\n // when a payer disconnect\n socket.on('disconnect', function(data) {\n console.log('disconnect id:' + socket.id);\n socket.broadcast.emit(\"payerMR\", socket.id);\n });\n}", "title": "" }, { "docid": "e36f73dc5ea3d1508f6eef18c460a3ec", "score": "0.57419425", "text": "function addPlayer(){\n var playerCount = sockets.length;\n\n $(\"#getPin\")[0].style.display = \"none\";\n $('#slogan')[0].style.display = \"none\";\n\n var pinDisplay = '<div class=\"pinDisplay\"><div class=\"qrcode\" id=\"qrcode' + playerCount + '\"></div><div class=\"pin\" id=\"pin' + playerCount + '\"></div></div>';\n $('#pinContainer').append(pinDisplay);\n $('#pin' + playerCount)[0].style.display = \"block\";\n $('#pin' + playerCount).text('generate pin ...');\n\n\n sockets[playerCount] = {socket:io.connect({forceNew: true}), status:false, secure:true};\n createSocket(sockets[playerCount].socket, playerCount);\n\n var object = {player:playerCount, pin:''};\n sockets[playerCount].socket.emit('getPin', JSONstringify(object));\n}", "title": "" }, { "docid": "a5dd84fbdc51100790949e2b7376da1c", "score": "0.5737318", "text": "SendExistingPlayers(socket){\n let data = []\n for(let i in this.clients){\n let s = this.clients[i]\n if(s.id == socket.id) continue //skip historical data about yourself, you are already spawned for yourself. this is for spawning players who existed before you joined\n //data.push([s.id, s.spriteId, s.spriteName, s.overlayData, s.playerSlot])\n if(!s.spriteId && s.spriteId !== 0) continue //. if they have no spriteId yet, they are a client in this room but they have not had time yet to spawn their player object, so just skip them, they arent ready - if we sent this it would tell them to spawn a remote player with spriteId null at x null and y null, we had this problem before\n data.push([s.id, s.spriteId, s.spriteName, s.playerSlot, s.x, s.y])\n }\n socket.emit('spawnPastPlayers', data)\n }", "title": "" }, { "docid": "38ffb4a172989524e98810fb13a45393", "score": "0.5736422", "text": "get room() {}", "title": "" }, { "docid": "518c2a63d2edb4843ff2aea984960109", "score": "0.5734057", "text": "function userUid(data){\n var clientInfo = new Object();\n clientInfo.customId = person; // Custom Name of the user\n clientInfo.clientId = socket.id; // Id of the user\n // console.log(clientInfo.customId);\n clients.push(clientInfo); // Add to current users []\n socket.emit('client_info', clientInfo) // Send Users to server\n currentUsers = data;\n if (currentUsers === 1 ) {\n document.getElementById('line3').innerHTML = 'You are alone in the room. :(';\n } else {\n document.getElementById('line3').innerHTML = 'We are ' + data + ' users in the room.'; // Qty. of Users\n }\n\n}", "title": "" }, { "docid": "b8902625f29500da185c43204562c68a", "score": "0.5733719", "text": "function newConnection(socket) {\n\t\n\t//Print a new connection on terminal\n\tconsole.log(\"New Client Connected\")\n\tconsole.log('Client Unique Id:', socket.id);\n\n\t// Add this connection in log\n\tconst obj = new Log(socket.id)\n\tclients.push(obj)\n\t\n\t// declaring the functions whenever a message with the particular tag is recieved\n\tsocket.on('mouse', mouseMsg);\n\tsocket.on('active', activeHandler);\n\tsocket.on('marker', function(dump) {\n\t\tsocket.broadcast.emit('marker', \"marker\");\n\t})\n\n\t// Defines the active user and grants him the Mutex\n\tfunction activeHandler(socketId) {\n\t\tif (socketId != null) {\n\t\t\tconsole.log(\"Resource locked by: \", socketId);\n\t\t}\n\t\tactiveUser = socketId;\n\t\tsocket.broadcast.emit('active', activeUser);\n\t}\n\n\t//Updates the log file when a client disconnects.\n\tsocket.on('disconnect', function () {\n\t\tfor (i in clients) {\n\t\t\tif (io.sockets.connected[clients[i].getSocketId()] == undefined) {\n\t\t\t\tclients[i].updateActive()\n\t\t\t}\n\t\t}\n\t});\n\n\n\t// function to clear the board. This recieves a clear request and then tells other clients to clear the board too.\n\tsocket.on('clear', function (dump) {\n\t\tsocket.broadcast.emit('clear', \"\")\n\t});\n\n\t// logfile generation for global state record\n\tsocket.on('logfile', function(socketId) {\n\t\tfor (i in clients) {\n\t\t\tif (clients[i].getSocketId() == socketId) {\n\t\t\t\tsocket.emit('logfile', clients[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t});\n\n\t// function to erase the board at given flag data. This recieves a erase request and then tells other clients to clear the board too.\n\tsocket.on('erase', function (flag) {\n\t\tsocket.broadcast.emit('erase', flag)\n\t});\n\n\t// recieves a message from a client and emits it to other clients. Then they add it on their chat UI.\n\tsocket.on('chat', function ({ socketId, msg, time }) {\n\t\tfor (i in clients) {\n\t\t\t// console.log(\"client is \",clients[i]);\n\t\t\tif (clients[i].getSocketId() == socketId) {\n\t\t\t\tclients[i].appendMessages({\n\t\t\t\t\tmsg: msg,\n\t\t\t\t\ttime: time\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t\tio.emit('chat', msg);\n\t});\n\n\t// recieves mouse coordinates from a client and emits it to other clients so they can draw on that position too.\n\tfunction mouseMsg({ socketId, data, time, colr, colg, colb, flag}) {\n\t\tsocket.broadcast.emit('mouse', data)\n\t\tfor (i in clients) {\n\t\t\tif (clients[i].getSocketId() == socketId) {\n\t\t\t\tclients[i].appendMousePositions({\n\t\t\t\t\tdata: data.x +\" \" +data.y + \" \" + colr + \" \" + colr + \" \" + \" \" +colb + \" \" + flag,\n\t\t\t\t\ttime: time\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "903f973d491734eafad826edbbe1c792", "score": "0.57246894", "text": "function autoJoin() {\n if (getMyRoomId()) {\n console.warn('Denied. You are already in room ', getMyRoomId())\n } else {\n socket.emit('autoJoin')\n }\n }", "title": "" }, { "docid": "fde2f34bbec28ac5dff9155912d6de6a", "score": "0.5723226", "text": "function ChatRoom() {\n this.type = 'chat';\n this.id = makeId();\n this.members = [];\n}", "title": "" }, { "docid": "e6acdfa4de5d5f8c4b1306beaa910b78", "score": "0.5712967", "text": "function joinRoom(){\n var wpa_cli = require('wireless-tools/wpa_cli');\n wpa_cli.status('wlan0', function(err, status) {\n var ip = status[\"ip\"];\n var bssid = status[\"bssid\"];\n\n wifi.getCurrentConnections(function(err, network){\n if(!err){\n console.log(\"Gateway join room \" +id);\n socketAsClient.emit(\"gateway_join\", id, ip, bssid);\n }\n });\n });\n}", "title": "" }, { "docid": "ad1b457fa8897924309a1d295f4ae9dc", "score": "0.5704704", "text": "function chatRoom() {\r\n this.chatSessionList = new Array();\r\n this.nextGuid = 0;\r\n}", "title": "" }, { "docid": "69df90824fb5ba32bacb9f24e2bf8167", "score": "0.57009786", "text": "sendMessage (io, socket, rooms) {\n socket.on('sendMessage', (data) => {\n\n const {player, message, roomId } = data\n\n let actualRoomIndex = rooms.findIndex(room => room.id === roomId);\n\n if(actualRoomIndex >= 0) {\n let actualRoom = rooms[actualRoomIndex];\n let newMessage = {\n sender: player.username,\n message: message,\n time: new Date()\n }\n actualRoom.messages.push(newMessage);\n groupalEmit.updateRoomData(io, actualRoom);\n }\n })\n }", "title": "" }, { "docid": "6ff6c940a02334ba41738d7460bdb811", "score": "0.5690536", "text": "constructor() {\n this.rooms = {}; // Maps room IDs to their Room objects\n this.clientMappings = {}; // Maps individual client IDs with their room IDs\n }", "title": "" }, { "docid": "99221ea5f577d19062e52a08d1ba23e5", "score": "0.56887233", "text": "ready(socketId) {\n logger.info('Client ' + socketId + ' wants to play');\n\n for (let i = 0; i < this.rooms.length; i++) {\n if (this.rooms[i].register(socketId)) {\n return;\n }\n }\n\n // There is no room available, so create a new one\n logger.info('Creating a new room for client ' + socketId);\n this.rooms.push(new Room(this.getRoomId(), [socketId]));\n }", "title": "" } ]
4693f31b04e4a1603067ad40fcc6802c
Unique input field names A GraphQL input object value is only valid if all supplied fields are uniquely named. See
[ { "docid": "b23e02504e2eb469fa70443e7565a7d2", "score": "0.8049691", "text": "function UniqueInputFieldNamesRule(context) {\n const knownNameStack = [];\n let knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave() {\n const prevKnownNames = knownNameStack.pop();\n prevKnownNames || (0, _invariant.invariant)(false);\n knownNames = prevKnownNames;\n }\n },\n ObjectField(node) {\n const fieldName = node.name.value;\n if (knownNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(`There can be only one input field named \"${fieldName}\".`, {\n nodes: [knownNames[fieldName], node.name]\n }));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" } ]
[ { "docid": "76e95cec71dab72029a4e06a4e4e6387", "score": "0.82586735", "text": "function UniqueInputFieldNames(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](duplicateInputFieldMessage(fieldName), [\n knownNames[fieldName],\n node.name\n ])\n );\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n }", "title": "" }, { "docid": "5c00103697c58d70278ef2a6356906c8", "score": "0.8188913", "text": "function UniqueInputFieldNames(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateInputFieldMessage(fieldName), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "bd7bdc64071a12d1c8f45b060e1b9523", "score": "0.815521", "text": "function UniqueInputFieldNames(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n if (knownNames[fieldName]) {\n context.reportError(new _error.GraphQLError(duplicateInputFieldMessage(fieldName), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n return false;\n }\n };\n}", "title": "" }, { "docid": "af2a9fc0f060dd4ea7208a5e0fe8d965", "score": "0.8105799", "text": "function UniqueInputFieldNames(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateInputFieldMessage(fieldName), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" }, { "docid": "7db1d1bc0357f4a0d3696b5481f5d9d9", "score": "0.80724597", "text": "function UniqueInputFieldNamesRule(context) {\n const knownNameStack = [];\n let knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n\n leave() {\n const prevKnownNames = knownNameStack.pop();\n prevKnownNames || Object(_jsutils_invariant_mjs__WEBPACK_IMPORTED_MODULE_0__[\"invariant\"])(false);\n knownNames = prevKnownNames;\n },\n },\n\n ObjectField(node) {\n const fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one input field named \"${fieldName}\".`,\n {\n nodes: [knownNames[fieldName], node.name],\n },\n ),\n );\n } else {\n knownNames[fieldName] = node.name;\n }\n },\n };\n}", "title": "" }, { "docid": "c880f242d82e6a5bebd56f19f5e43b0e", "score": "0.8071886", "text": "function UniqueInputFieldNamesRule(context) {\n const knownNameStack = [];\n let knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n\n leave() {\n const prevKnownNames = knownNameStack.pop();\n prevKnownNames || Object(_jsutils_invariant_mjs__WEBPACK_IMPORTED_MODULE_0__[\"invariant\"])(false);\n knownNames = prevKnownNames;\n },\n },\n\n ObjectField(node) {\n const fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one input field named \"${fieldName}\".`,\n [knownNames[fieldName], node.name],\n ),\n );\n } else {\n knownNames[fieldName] = node.name;\n }\n },\n };\n}", "title": "" }, { "docid": "b4b42b87a64ef89159984887c0fba33b", "score": "0.79662824", "text": "function UniqueInputFieldNamesRule(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one input field named \\\"\".concat(fieldName, \"\\\".\"), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" }, { "docid": "b4b42b87a64ef89159984887c0fba33b", "score": "0.79662824", "text": "function UniqueInputFieldNamesRule(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one input field named \\\"\".concat(fieldName, \"\\\".\"), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" }, { "docid": "574016a54047c115999f8b1a0ed68e38", "score": "0.7965579", "text": "function UniqueInputFieldNamesRule(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(\"There can be only one input field named \\\"\".concat(fieldName, \"\\\".\"), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" }, { "docid": "d434120e8b6487dd8f78655be74d1902", "score": "0.7953702", "text": "function UniqueInputFieldNamesRule(context) {\n var knownNameStack = [];\n var knownNames = Object.create(null);\n return {\n ObjectValue: {\n enter: function enter() {\n knownNameStack.push(knownNames);\n knownNames = Object.create(null);\n },\n leave: function leave() {\n knownNames = knownNameStack.pop();\n }\n },\n ObjectField: function ObjectField(node) {\n var fieldName = node.name.value;\n\n if (knownNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"There can be only one input field named \\\"\".concat(fieldName, \"\\\".\"), [knownNames[fieldName], node.name]));\n } else {\n knownNames[fieldName] = node.name;\n }\n }\n };\n}", "title": "" }, { "docid": "873f8fd30ea4949d5cf7c5bf47b2e8d3", "score": "0.74532676", "text": "function UniqueFieldDefinitionNames(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema\n ? schema.getTypeMap()\n : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n }\n\n if (node.fields) {\n var fieldNames = knownFieldNames[typeName];\n\n for (\n var _i2 = 0, _node$fields2 = node.fields;\n _i2 < _node$fields2.length;\n _i2++\n ) {\n var fieldDef = _node$fields2[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](\n existedFieldDefinitionNameMessage(typeName, fieldName),\n fieldDef.name\n )\n );\n } else if (fieldNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](\n duplicateFieldDefinitionNameMessage(typeName, fieldName),\n [fieldNames[fieldName], fieldDef.name]\n )\n );\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "ba3013996782968e92ae7ede876af55a", "score": "0.7342217", "text": "function UniqueFieldDefinitionNames(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n }\n\n if (node.fields) {\n var fieldNames = knownFieldNames[typeName];\n\n for (var _i2 = 0, _node$fields2 = node.fields; _i2 < _node$fields2.length; _i2++) {\n var fieldDef = _node$fields2[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _GraphQLError.GraphQLError(existedFieldDefinitionNameMessage(typeName, fieldName), fieldDef.name));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateFieldDefinitionNameMessage(typeName, fieldName), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "ef009d56f96cc0242eaf44c9515a39e1", "score": "0.7316776", "text": "function UniqueFieldDefinitionNamesRule(context) {\n const schema = context.getSchema();\n const existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n const knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n function checkFieldUniqueness(node) {\n var _node$fields;\n const typeName = node.name.value;\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];\n const fieldNames = knownFieldNames[typeName];\n for (const fieldDef of fieldNodes) {\n const fieldName = fieldDef.name.value;\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _GraphQLError.GraphQLError(`Field \"${typeName}.${fieldName}\" already exists in the schema. It cannot also be defined in this type extension.`, {\n nodes: fieldDef.name\n }));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(`Field \"${typeName}.${fieldName}\" can only be defined once.`, {\n nodes: [fieldNames[fieldName], fieldDef.name]\n }));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n return false;\n }\n}", "title": "" }, { "docid": "8f0fd82f6060b00b81996db558a89dbe", "score": "0.72996116", "text": "function UniqueFieldDefinitionNames(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n }\n\n var fieldNames = knownFieldNames[typeName];\n\n if (node.fields) {\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = node.fields[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var fieldDef = _step.value;\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _GraphQLError.GraphQLError(existedFieldDefinitionNameMessage(typeName, fieldName), fieldDef.name));\n continue;\n }\n\n if (fieldNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateFieldDefinitionNameMessage(typeName, fieldName), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "7a6c7d2ed7ee181fb2c9fdcbc1e0265e", "score": "0.7294145", "text": "function UniqueFieldDefinitionNamesRule(context) {\n const schema = context.getSchema();\n const existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n const knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness,\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n const typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes =\n (_node$fields = node.fields) !== null && _node$fields !== void 0\n ? _node$fields\n : [];\n const fieldNames = knownFieldNames[typeName];\n\n for (const fieldDef of fieldNodes) {\n const fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Field \"${typeName}.${fieldName}\" already exists in the schema. It cannot also be defined in this type extension.`,\n fieldDef.name,\n ),\n );\n } else if (fieldNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Field \"${typeName}.${fieldName}\" can only be defined once.`,\n [fieldNames[fieldName], fieldDef.name],\n ),\n );\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "c4c548af20845b2bf911a0f11cb9fcdf", "score": "0.7282342", "text": "function UniqueFieldDefinitionNamesRule(context) {\n const schema = context.getSchema();\n const existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n const knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness,\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n const typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes =\n (_node$fields = node.fields) !== null && _node$fields !== void 0\n ? _node$fields\n : [];\n const fieldNames = knownFieldNames[typeName];\n\n for (const fieldDef of fieldNodes) {\n const fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Field \"${typeName}.${fieldName}\" already exists in the schema. It cannot also be defined in this type extension.`,\n {\n nodes: fieldDef.name,\n },\n ),\n );\n } else if (fieldNames[fieldName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Field \"${typeName}.${fieldName}\" can only be defined once.`,\n {\n nodes: [fieldNames[fieldName], fieldDef.name],\n },\n ),\n );\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "7c519f8bd9c9f7bad86b4c78842c8b9c", "score": "0.7219018", "text": "function UniqueFieldDefinitionNamesRule(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')\n\n\n var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];\n var fieldNames = knownFieldNames[typeName];\n\n for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {\n var fieldDef = fieldNodes[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" already exists in the schema. It cannot also be defined in this type extension.\"), fieldDef.name));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" can only be defined once.\"), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "7c519f8bd9c9f7bad86b4c78842c8b9c", "score": "0.7219018", "text": "function UniqueFieldDefinitionNamesRule(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')\n\n\n var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];\n var fieldNames = knownFieldNames[typeName];\n\n for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {\n var fieldDef = fieldNodes[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" already exists in the schema. It cannot also be defined in this type extension.\"), fieldDef.name));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" can only be defined once.\"), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "fa2a8ada62c80422ffa30dc8c51999e2", "score": "0.7217143", "text": "function UniqueFieldDefinitionNamesRule(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')\n\n\n var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];\n var fieldNames = knownFieldNames[typeName];\n\n for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {\n var fieldDef = fieldNodes[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" already exists in the schema. It cannot also be defined in this type extension.\"), fieldDef.name));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" can only be defined once.\"), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "cb652affb354da79d52723065538897f", "score": "0.7213752", "text": "function UniqueFieldDefinitionNamesRule(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownFieldNames = Object.create(null);\n return {\n InputObjectTypeDefinition: checkFieldUniqueness,\n InputObjectTypeExtension: checkFieldUniqueness,\n InterfaceTypeDefinition: checkFieldUniqueness,\n InterfaceTypeExtension: checkFieldUniqueness,\n ObjectTypeDefinition: checkFieldUniqueness,\n ObjectTypeExtension: checkFieldUniqueness\n };\n\n function checkFieldUniqueness(node) {\n var _node$fields;\n\n var typeName = node.name.value;\n\n if (!knownFieldNames[typeName]) {\n knownFieldNames[typeName] = Object.create(null);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')\n\n\n var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];\n var fieldNames = knownFieldNames[typeName];\n\n for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {\n var fieldDef = fieldNodes[_i2];\n var fieldName = fieldDef.name.value;\n\n if (hasField(existingTypeMap[typeName], fieldName)) {\n context.reportError(new _GraphQLError.GraphQLError(\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" already exists in the schema. It cannot also be defined in this type extension.\"), fieldDef.name));\n } else if (fieldNames[fieldName]) {\n context.reportError(new _GraphQLError.GraphQLError(\"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" can only be defined once.\"), [fieldNames[fieldName], fieldDef.name]));\n } else {\n fieldNames[fieldName] = fieldDef.name;\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "1a5df31b30cec50daba2508bdb246c80", "score": "0.6605851", "text": "function addFieldUniquely(name) {\n var test = name;\n var i = 1;\n while (!fields.add(test)) {\n i += 1;\n test = name + '-' + i;\n }\n return test;\n }", "title": "" }, { "docid": "4e1dbbb4e9f7733037d347767fd207dc", "score": "0.6120577", "text": "function duplicateInputFieldMessage(fieldName) {\n return \"There can be only one input field named \\\"\".concat(fieldName, \"\\\".\");\n}", "title": "" }, { "docid": "699235fa33983902ff5b33d77e3de356", "score": "0.60033274", "text": "function UniqueArgumentNamesRule(context) {\n return {\n Field: checkArgUniqueness,\n Directive: checkArgUniqueness,\n };\n\n function checkArgUniqueness(parentNode) {\n var _parentNode$arguments;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes =\n (_parentNode$arguments = parentNode.arguments) !== null &&\n _parentNode$arguments !== void 0\n ? _parentNode$arguments\n : [];\n const seenArgs = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(argumentNodes, (arg) => arg.name.value);\n\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one argument named \"${argName}\".`,\n argNodes.map((node) => node.name),\n ),\n );\n }\n }\n }\n}", "title": "" }, { "docid": "2bdec71087473695654fc8757bcaf76b", "score": "0.59919393", "text": "function duplicateInputFieldMessage(fieldName) {\n return 'There can be only one input field named \"' + fieldName + '\".';\n}", "title": "" }, { "docid": "0483880ef4bd62e4fd977a5e769675ca", "score": "0.59895253", "text": "function UniqueArgumentNamesRule(context) {\n return {\n Field: checkArgUniqueness,\n Directive: checkArgUniqueness,\n };\n\n function checkArgUniqueness(parentNode) {\n var _parentNode$arguments;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes =\n (_parentNode$arguments = parentNode.arguments) !== null &&\n _parentNode$arguments !== void 0\n ? _parentNode$arguments\n : [];\n const seenArgs = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(argumentNodes, (arg) => arg.name.value);\n\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one argument named \"${argName}\".`,\n {\n nodes: argNodes.map((node) => node.name),\n },\n ),\n );\n }\n }\n }\n}", "title": "" }, { "docid": "4378cecb51727a75d670a8e980687c06", "score": "0.5982206", "text": "function UniqueArgumentDefinitionNamesRule(context) {\n return {\n DirectiveDefinition(directiveNode) {\n var _directiveNode$argume;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes =\n (_directiveNode$argume = directiveNode.arguments) !== null &&\n _directiveNode$argume !== void 0\n ? _directiveNode$argume\n : [];\n return checkArgUniqueness(`@${directiveNode.name.value}`, argumentNodes);\n },\n\n InterfaceTypeDefinition: checkArgUniquenessPerField,\n InterfaceTypeExtension: checkArgUniquenessPerField,\n ObjectTypeDefinition: checkArgUniquenessPerField,\n ObjectTypeExtension: checkArgUniquenessPerField,\n };\n\n function checkArgUniquenessPerField(typeNode) {\n var _typeNode$fields;\n\n const typeName = typeNode.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes =\n (_typeNode$fields = typeNode.fields) !== null &&\n _typeNode$fields !== void 0\n ? _typeNode$fields\n : [];\n\n for (const fieldDef of fieldNodes) {\n var _fieldDef$arguments;\n\n const fieldName = fieldDef.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const argumentNodes =\n (_fieldDef$arguments = fieldDef.arguments) !== null &&\n _fieldDef$arguments !== void 0\n ? _fieldDef$arguments\n : [];\n checkArgUniqueness(`${typeName}.${fieldName}`, argumentNodes);\n }\n\n return false;\n }\n\n function checkArgUniqueness(parentName, argumentNodes) {\n const seenArgs = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(argumentNodes, (arg) => arg.name.value);\n\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `Argument \"${parentName}(${argName}:)\" can only be defined once.`,\n argNodes.map((node) => node.name),\n ),\n );\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "ece8ffffdddd53fc8aed062f7d73fd64", "score": "0.5982206", "text": "function UniqueArgumentDefinitionNamesRule(context) {\n return {\n DirectiveDefinition(directiveNode) {\n var _directiveNode$argume;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes =\n (_directiveNode$argume = directiveNode.arguments) !== null &&\n _directiveNode$argume !== void 0\n ? _directiveNode$argume\n : [];\n return checkArgUniqueness(`@${directiveNode.name.value}`, argumentNodes);\n },\n\n InterfaceTypeDefinition: checkArgUniquenessPerField,\n InterfaceTypeExtension: checkArgUniquenessPerField,\n ObjectTypeDefinition: checkArgUniquenessPerField,\n ObjectTypeExtension: checkArgUniquenessPerField,\n };\n\n function checkArgUniquenessPerField(typeNode) {\n var _typeNode$fields;\n\n const typeName = typeNode.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes =\n (_typeNode$fields = typeNode.fields) !== null &&\n _typeNode$fields !== void 0\n ? _typeNode$fields\n : [];\n\n for (const fieldDef of fieldNodes) {\n var _fieldDef$arguments;\n\n const fieldName = fieldDef.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const argumentNodes =\n (_fieldDef$arguments = fieldDef.arguments) !== null &&\n _fieldDef$arguments !== void 0\n ? _fieldDef$arguments\n : [];\n checkArgUniqueness(`${typeName}.${fieldName}`, argumentNodes);\n }\n\n return false;\n }\n\n function checkArgUniqueness(parentName, argumentNodes) {\n const seenArgs = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(argumentNodes, (arg) => arg.name.value);\n\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `Argument \"${parentName}(${argName}:)\" can only be defined once.`,\n {\n nodes: argNodes.map((node) => node.name),\n },\n ),\n );\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "0954ebe03b358f2a3a532b7a1214c85a", "score": "0.5968282", "text": "function UniqueArgumentNamesRule(context) {\n return {\n Field: checkArgUniqueness,\n Directive: checkArgUniqueness\n };\n function checkArgUniqueness(parentNode) {\n var _parentNode$arguments;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes = (_parentNode$arguments = parentNode.arguments) !== null && _parentNode$arguments !== void 0 ? _parentNode$arguments : [];\n const seenArgs = (0, _groupBy.groupBy)(argumentNodes, arg => arg.name.value);\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(new _GraphQLError.GraphQLError(`There can be only one argument named \"${argName}\".`, {\n nodes: argNodes.map(node => node.name)\n }));\n }\n }\n }\n}", "title": "" }, { "docid": "b335f3f020e45ce32b6b8fde1ee2539e", "score": "0.5948677", "text": "function getUsernameFields () {\r\n return getInputs(['user', 'name', 'mail', 'login', 'auth', 'identifier'], ['text', 'email'])\r\n}", "title": "" }, { "docid": "1ed1a43780b037b1555c89149cc929e7", "score": "0.59350264", "text": "function UniqueArgumentDefinitionNamesRule(context) {\n return {\n DirectiveDefinition(directiveNode) {\n var _directiveNode$argume;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const argumentNodes = (_directiveNode$argume = directiveNode.arguments) !== null && _directiveNode$argume !== void 0 ? _directiveNode$argume : [];\n return checkArgUniqueness(`@${directiveNode.name.value}`, argumentNodes);\n },\n InterfaceTypeDefinition: checkArgUniquenessPerField,\n InterfaceTypeExtension: checkArgUniquenessPerField,\n ObjectTypeDefinition: checkArgUniquenessPerField,\n ObjectTypeExtension: checkArgUniquenessPerField\n };\n function checkArgUniquenessPerField(typeNode) {\n var _typeNode$fields;\n const typeName = typeNode.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const fieldNodes = (_typeNode$fields = typeNode.fields) !== null && _typeNode$fields !== void 0 ? _typeNode$fields : [];\n for (const fieldDef of fieldNodes) {\n var _fieldDef$arguments;\n const fieldName = fieldDef.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n\n const argumentNodes = (_fieldDef$arguments = fieldDef.arguments) !== null && _fieldDef$arguments !== void 0 ? _fieldDef$arguments : [];\n checkArgUniqueness(`${typeName}.${fieldName}`, argumentNodes);\n }\n return false;\n }\n function checkArgUniqueness(parentName, argumentNodes) {\n const seenArgs = (0, _groupBy.groupBy)(argumentNodes, arg => arg.name.value);\n for (const [argName, argNodes] of seenArgs) {\n if (argNodes.length > 1) {\n context.reportError(new _GraphQLError.GraphQLError(`Argument \"${parentName}(${argName}:)\" can only be defined once.`, {\n nodes: argNodes.map(node => node.name)\n }));\n }\n }\n return false;\n }\n}", "title": "" }, { "docid": "3338bf692ec1b91f3d0909b276f64bfd", "score": "0.58232546", "text": "function UniqueArgumentNames(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](duplicateArgMessage(argName), [\n knownArgNames[argName],\n node.name\n ])\n );\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n }", "title": "" }, { "docid": "ecde9b0be82ac693f12f54975a680bbd", "score": "0.57612693", "text": "function fieldNames(fields, as) {\n if (!fields) return null;\n return fields.map(function(f, i) {\n return as[i] || Object(vega_util__WEBPACK_IMPORTED_MODULE_0__[\"accessorName\"])(f);\n });\n}", "title": "" }, { "docid": "b104477dbbdb2fc8776ae0795a851319", "score": "0.5652244", "text": "function countUnique($inputs) {\n return $.unique($.map($inputs, function(input) {\n return input.name;\n })).length\n }", "title": "" }, { "docid": "d23d54c70a80cc4ca4cff572bbd11a9e", "score": "0.5614075", "text": "function UniqueArgumentNamesRule(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"There can be only one argument named \\\"\".concat(argName, \"\\\".\"), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "f31487364d41db24013f9630f55b04de", "score": "0.5610595", "text": "function UniqueArgumentNamesRule(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one argument named \\\"\".concat(argName, \"\\\".\"), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "f31487364d41db24013f9630f55b04de", "score": "0.5610595", "text": "function UniqueArgumentNamesRule(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one argument named \\\"\".concat(argName, \"\\\".\"), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "f850eb755431b91c9d839ad72165fda9", "score": "0.55929434", "text": "push(...fieldsData) {\n\t\tlet validFields = fieldsData.reduce((acc, current) => {\n\t\t\tif (!(typeof current === \"object\") || !schema.isValid(current, \"field\")) {\n\t\t\t\treturn acc;\n\t\t\t}\n\n\t\t\tif (acc.some(e => e.key === current.key) || uniqueKeys.has(current.key)) {\n\t\t\t\tdebug(`UNIQUE field key CONSTRAINT VIOLATED. Fields keys must be unique in pass scope. Field key: \"${current.key}\"`);\n\t\t\t} else {\n\t\t\t\tuniqueKeys.add(current.key);\n\t\t\t\tacc.push(current);\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, []);\n\n\t\treturn Array.prototype.push.call(this, ...validFields);\n\t}", "title": "" }, { "docid": "9245d54cd90ed18bed14ae1051810ffd", "score": "0.55754375", "text": "function UniqueArgumentNames(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateArgMessage(argName), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "9245d54cd90ed18bed14ae1051810ffd", "score": "0.55754375", "text": "function UniqueArgumentNames(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateArgMessage(argName), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "b613a575e5f8ec56aa80c390474295bc", "score": "0.5565672", "text": "function duplicateFieldDefinitionNameMessage(typeName, fieldName) {\n return \"Field \\\"\".concat(typeName, \".\").concat(fieldName, \"\\\" can only be defined once.\");\n}", "title": "" }, { "docid": "90345e775b191b51737ddd8b095fd491", "score": "0.556335", "text": "function UniqueTypeNames(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema && schema.getType(typeName)) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](existedTypeNameMessage(typeName), node.name)\n );\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](duplicateTypeNameMessage(typeName), [\n knownTypeNames[typeName],\n node.name\n ])\n );\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "bc94f8ed5e9fda3ec923ec5b43d42c8a", "score": "0.55563706", "text": "function UniqueVariableNames(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](duplicateVariableMessage(variableName), [\n knownVariableNames[variableName],\n node.variable.name\n ])\n );\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n }", "title": "" }, { "docid": "1147984a7ebfbc12344ecf287bc342c4", "score": "0.55309534", "text": "function UniqueArgumentNamesRule(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n\n if (knownArgNames[argName]) {\n context.reportError(new _GraphQLError.GraphQLError(\"There can be only one argument named \\\"\".concat(argName, \"\\\".\"), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n\n return false;\n }\n };\n}", "title": "" }, { "docid": "55a893dd80f9aa0df08938be745bf260", "score": "0.5501907", "text": "function UniqueArgumentNames(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n if (knownArgNames[argName]) {\n context.reportError(new _error.GraphQLError(duplicateArgMessage(argName), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n return false;\n }\n };\n}", "title": "" }, { "docid": "55a893dd80f9aa0df08938be745bf260", "score": "0.5501907", "text": "function UniqueArgumentNames(context) {\n var knownArgNames = Object.create(null);\n return {\n Field: function Field() {\n knownArgNames = Object.create(null);\n },\n Directive: function Directive() {\n knownArgNames = Object.create(null);\n },\n Argument: function Argument(node) {\n var argName = node.name.value;\n if (knownArgNames[argName]) {\n context.reportError(new _error.GraphQLError(duplicateArgMessage(argName), [knownArgNames[argName], node.name]));\n } else {\n knownArgNames[argName] = node.name;\n }\n return false;\n }\n };\n}", "title": "" }, { "docid": "1951e8dc360cb48b072852b6955ab6de", "score": "0.54998475", "text": "function getUniqueValues(object) {\n if (object) {\n let values = [];\n let cfg = commons.getObjectConfig(object.object_type);\n Object.keys(object).map(field => {\n if (cfg.fields[field].unique) {\n values.push(`${object.object_type}-${field}-${object[field]}`);\n }\n });\n return values;\n }\n return [];\n}", "title": "" }, { "docid": "b8bb865cd2410c43af700db7d1c4bcb8", "score": "0.54908407", "text": "function fieldNames(fields, as) {\n if (!fields) return null;\n return fields.map(function (f, i) {\n return as[i] || (0, _vegaUtil.accessorName)(f);\n });\n}", "title": "" }, { "docid": "193b5d1a88edb8f1e0cd4f575ff6aecb", "score": "0.5474342", "text": "function UniqueVariableNamesRule(context) {\n return {\n OperationDefinition(operationNode) {\n var _operationNode$variab;\n\n // See: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const variableDefinitions =\n (_operationNode$variab = operationNode.variableDefinitions) !== null &&\n _operationNode$variab !== void 0\n ? _operationNode$variab\n : [];\n const seenVariableDefinitions = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(\n variableDefinitions,\n (node) => node.variable.name.value,\n );\n\n for (const [variableName, variableNodes] of seenVariableDefinitions) {\n if (variableNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one variable named \"$${variableName}\".`,\n variableNodes.map((node) => node.variable.name),\n ),\n );\n }\n }\n },\n };\n}", "title": "" }, { "docid": "3a477161e79fd07250ed9db2c51546c1", "score": "0.5457872", "text": "function UniqueVariableNamesRule(context) {\n return {\n OperationDefinition(operationNode) {\n var _operationNode$variab;\n\n // See: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const variableDefinitions =\n (_operationNode$variab = operationNode.variableDefinitions) !== null &&\n _operationNode$variab !== void 0\n ? _operationNode$variab\n : [];\n const seenVariableDefinitions = Object(_jsutils_groupBy_mjs__WEBPACK_IMPORTED_MODULE_0__[\"groupBy\"])(\n variableDefinitions,\n (node) => node.variable.name.value,\n );\n\n for (const [variableName, variableNodes] of seenVariableDefinitions) {\n if (variableNodes.length > 1) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_1__[\"GraphQLError\"](\n `There can be only one variable named \"$${variableName}\".`,\n {\n nodes: variableNodes.map((node) => node.variable.name),\n },\n ),\n );\n }\n }\n },\n };\n}", "title": "" }, { "docid": "1a3e51b4d6f82534b903115a69caa89a", "score": "0.5452956", "text": "unsafeValidateUnique(fields, message = 'has already been taken') {\n return async (val, context) => {\n const query = app.locals.bookshelf.knex(this.tableName);\n\n if (context && context.transacting) {\n query.transacting(context.transacting);\n }\n\n const conditions = fields.reduce((obj, field) => {\n obj[field] = this.attributes[field];\n return obj;\n }, {});\n\n let resp;\n if (this.isNew()) {\n resp = await query.where(conditions);\n } else {\n resp = await query.where(conditions).where('id', '<>', this.id);\n }\n\n if (resp.length > 0) {\n throw new Checkit.ValidationError(message);\n }\n };\n }", "title": "" }, { "docid": "fe0f8646c9f1898198a2ae4ea716f7dc", "score": "0.54529303", "text": "function UniqueTypeNamesRule(context) {\n const knownTypeNames = Object.create(null);\n const schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName,\n };\n\n function checkTypeName(node) {\n const typeName = node.name.value;\n\n if (schema !== null && schema !== void 0 && schema.getType(typeName)) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Type \"${typeName}\" already exists in the schema. It cannot also be defined in this type definition.`,\n node.name,\n ),\n );\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](`There can be only one type named \"${typeName}\".`, [\n knownTypeNames[typeName],\n node.name,\n ]),\n );\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "1a50b383300d85bcee41f81fb4a111f8", "score": "0.54480815", "text": "function UniqueTypeNamesRule(context) {\n const knownTypeNames = Object.create(null);\n const schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName,\n };\n\n function checkTypeName(node) {\n const typeName = node.name.value;\n\n if (schema !== null && schema !== void 0 && schema.getType(typeName)) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\n `Type \"${typeName}\" already exists in the schema. It cannot also be defined in this type definition.`,\n {\n nodes: node.name,\n },\n ),\n );\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(\n new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](`There can be only one type named \"${typeName}\".`, {\n nodes: [knownTypeNames[typeName], node.name],\n }),\n );\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "43367363065ffaaae3665dff5d027d2e", "score": "0.54040384", "text": "function validate(values){\n const errors={}\n _.each(FIELDS, (type, field) =>{\n if (!values[field]){\n errors[field] =`enter a $(field)`\n }\n })\n return errors\n}", "title": "" }, { "docid": "41901cdb63d83dc6420f1623373a8db5", "score": "0.53759867", "text": "function UniqueTypeNames(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema && schema.getType(typeName)) {\n context.reportError(new _GraphQLError.GraphQLError(existedTypeNameMessage(typeName), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateTypeNameMessage(typeName), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "41901cdb63d83dc6420f1623373a8db5", "score": "0.53759867", "text": "function UniqueTypeNames(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema && schema.getType(typeName)) {\n context.reportError(new _GraphQLError.GraphQLError(existedTypeNameMessage(typeName), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateTypeNameMessage(typeName), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "2eecf343ebf93efde79ca04667d06c55", "score": "0.5374146", "text": "function getFieldName(input){\n if(input !== password1 && input !== password2){\n return input.id.charAt(0).toUpperCase() + input.id.slice(1)\n }else{\n return 'Password'\n }\n}", "title": "" }, { "docid": "12640b74eb8d444f08f683db30c0bf53", "score": "0.53665316", "text": "function UniqueTypeNamesRule(context) {\n const knownTypeNames = Object.create(null);\n const schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n function checkTypeName(node) {\n const typeName = node.name.value;\n if (schema !== null && schema !== void 0 && schema.getType(typeName)) {\n context.reportError(new _GraphQLError.GraphQLError(`Type \"${typeName}\" already exists in the schema. It cannot also be defined in this type definition.`, {\n nodes: node.name\n }));\n return;\n }\n if (knownTypeNames[typeName]) {\n context.reportError(new _GraphQLError.GraphQLError(`There can be only one type named \"${typeName}\".`, {\n nodes: [knownTypeNames[typeName], node.name]\n }));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n return false;\n }\n}", "title": "" }, { "docid": "e93557e844dafc45c38d077aa6471826", "score": "0.53624964", "text": "function setIDs() {\n for (var field in inputFields) {\n var name = inputFields[field];\n document.querySelector('[name=\"' + name + '\"]').id = field;\n }\n}", "title": "" }, { "docid": "66a3a369f261578f6a719543e28cce6e", "score": "0.5361231", "text": "function UniqueTypeNamesRule(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema === null || schema === void 0 ? void 0 : schema.getType(typeName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Type \\\"\".concat(typeName, \"\\\" already exists in the schema. It cannot also be defined in this type definition.\"), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one type named \\\"\".concat(typeName, \"\\\".\"), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "66a3a369f261578f6a719543e28cce6e", "score": "0.5361231", "text": "function UniqueTypeNamesRule(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema === null || schema === void 0 ? void 0 : schema.getType(typeName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"Type \\\"\".concat(typeName, \"\\\" already exists in the schema. It cannot also be defined in this type definition.\"), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one type named \\\"\".concat(typeName, \"\\\".\"), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "9f7a0eb654a198b87ba875601ee8bbc5", "score": "0.5351196", "text": "function UniqueTypeNamesRule(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema !== null && schema !== void 0 && schema.getType(typeName)) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"Type \\\"\".concat(typeName, \"\\\" already exists in the schema. It cannot also be defined in this type definition.\"), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"There can be only one type named \\\"\".concat(typeName, \"\\\".\"), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "2f4bb0519b53988da607900d39b049e4", "score": "0.53437626", "text": "function UniqueVariableNamesRule(context) {\n return {\n OperationDefinition(operationNode) {\n var _operationNode$variab;\n\n // See: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n const variableDefinitions = (_operationNode$variab = operationNode.variableDefinitions) !== null && _operationNode$variab !== void 0 ? _operationNode$variab : [];\n const seenVariableDefinitions = (0, _groupBy.groupBy)(variableDefinitions, node => node.variable.name.value);\n for (const [variableName, variableNodes] of seenVariableDefinitions) {\n if (variableNodes.length > 1) {\n context.reportError(new _GraphQLError.GraphQLError(`There can be only one variable named \"$${variableName}\".`, {\n nodes: variableNodes.map(node => node.variable.name)\n }));\n }\n }\n }\n };\n}", "title": "" }, { "docid": "6fcb878ac1cc15669b4b58fea9c99308", "score": "0.53203756", "text": "function UniqueVariableNames(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateVariableMessage(variableName), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "6fcb878ac1cc15669b4b58fea9c99308", "score": "0.53203756", "text": "function UniqueVariableNames(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateVariableMessage(variableName), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "bd5397f9e446388705514e33a77bd02a", "score": "0.53180134", "text": "isObjectValid(input) {\n for (let i = 0; i < Object.keys(this.schema.fields).length; i++) {\n if (!input.hasOwnProperty(Object.keys(this.schema.fields)[i])) {\n return false;\n }\n return true;\n }\n}", "title": "" }, { "docid": "4013b5e9b492996b563082aed16b2af5", "score": "0.53093886", "text": "function UniqueEnumValueNames(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema\n ? schema.getTypeMap()\n : Object.create(null);\n var knownValueNames = Object.create(null);\n return {\n EnumTypeDefinition: checkValueUniqueness,\n EnumTypeExtension: checkValueUniqueness\n };\n\n function checkValueUniqueness(node) {\n var typeName = node.name.value;\n\n if (!knownValueNames[typeName]) {\n knownValueNames[typeName] = Object.create(null);\n }\n\n if (node.values) {\n var valueNames = knownValueNames[typeName];\n\n for (\n var _i2 = 0, _node$values2 = node.values;\n _i2 < _node$values2.length;\n _i2++\n ) {\n var valueDef = _node$values2[_i2];\n var valueName = valueDef.name.value;\n var existingType = existingTypeMap[typeName];\n\n if (\n Object(\n _type_definition__WEBPACK_IMPORTED_MODULE_1__[\"isEnumType\"]\n )(existingType) &&\n existingType.getValue(valueName)\n ) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](\n existedEnumValueNameMessage(typeName, valueName),\n valueDef.name\n )\n );\n } else if (valueNames[valueName]) {\n context.reportError(\n new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__[\n \"GraphQLError\"\n ](duplicateEnumValueNameMessage(typeName, valueName), [\n valueNames[valueName],\n valueDef.name\n ])\n );\n } else {\n valueNames[valueName] = valueDef.name;\n }\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "5f0fb327df24e957edb76711b5b8879a", "score": "0.5272084", "text": "function addUniqueIds(el) {\n $(el).each(function() {\n $(this)\n .find(\"label\")\n .attr(\"for\", \"field_\" + num);\n $(this)\n .find(':input')\n .attr(\"id\", \"field_\" + num)\n .attr(\"name\", \"field_\" + num);\n num++;\n });\n }", "title": "" }, { "docid": "0465196105a84ebae3b240d0443f9c8f", "score": "0.52715933", "text": "function UniqueVariableNamesRule(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__.GraphQLError(\"There can be only one variable named \\\"$\".concat(variableName, \"\\\".\"), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "eeff99db5654d6fc26766bdd6d63c7d3", "score": "0.5265059", "text": "isKeyField() {\n return 1 === this.length && \"__name__\" === this.get(0);\n }", "title": "" }, { "docid": "eeff99db5654d6fc26766bdd6d63c7d3", "score": "0.5265059", "text": "isKeyField() {\n return 1 === this.length && \"__name__\" === this.get(0);\n }", "title": "" }, { "docid": "bf99d79c26bf833ad043b6df7c6e3639", "score": "0.5262446", "text": "function getFieldName(input){\n let name = input.id;\n return name.charAt(0).toUpperCase() + name.slice(1);\n}", "title": "" }, { "docid": "f5f95c0c30aafd8a91966d764c71424e", "score": "0.5257374", "text": "function UniqueVariableNamesRule(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one variable named \\\"$\".concat(variableName, \"\\\".\"), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "f5f95c0c30aafd8a91966d764c71424e", "score": "0.5257374", "text": "function UniqueVariableNamesRule(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _error_GraphQLError_mjs__WEBPACK_IMPORTED_MODULE_0__[\"GraphQLError\"](\"There can be only one variable named \\\"$\".concat(variableName, \"\\\".\"), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "a090246759009f4aeb3afb3388395f2a", "score": "0.523839", "text": "function validate(values) {\n const errors = {};\n\n _.each(FIELDS, (type, field) => {\n if (!values[field]) {\n errors[field] = `Enter a ${field}`;\n }\n });\n\n return errors;\n}", "title": "" }, { "docid": "efe55de1376430f37e936faad0bc7fc9", "score": "0.52364033", "text": "function UniqueVariableNames(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n if (knownVariableNames[variableName]) {\n context.reportError(new _error.GraphQLError(duplicateVariableMessage(variableName), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "38144104e9404c0d09db3aa2c59a8b1f", "score": "0.522792", "text": "function createFields(uniqueFields) {\n \n // Get the DIV where we will add out INPUT controls.\n var entryFields = document.getElementById(\"entryFields\");\n\n // Clear the contents in case it has already been populated with INPUT controls.\n while (entryFields.hasChildNodes()) {\n entryFields.removeChild(entryFields.lastChild);\n }\n\n // Create a unique INPUT element for each unique content control tag.\n for (var i = 0; i < uniqueFields.length; i++) {\n entryFields.appendChild(document.createTextNode(uniqueFields[i].title + ': '));\n var input = document.createElement(\"input\");\n input.type = \"text\";\n input.id = uniqueFields[i].tag;\n entryFields.appendChild(input);\n entryFields.appendChild(document.createElement(\"br\"));\n }\n }", "title": "" }, { "docid": "45fcf0301068f8581835510327be38b3", "score": "0.52178323", "text": "function matchValues(values, fields) {\n\n\n // console.log('match form')\n let submitted = new Object();\n fields.forEach(field => {\n // handles the inputs that have sub-inputs on GF\n if (field.inputs != null) {\n submitted[field.id.toString()] = values[field.label].replace(' ', '').toUpperCase();\n \n } else {\n submitted[field.id.toString()] = values[field.label]\n }\n })\n\n //replaces the 'input_' on the object key\n Object.keys(submitted).forEach(function (key) {\n let newKey = `input_${key.replace('.', '_')}`\n submitted[newKey] = submitted[key]\n delete submitted[key];\n }) \n return submitted;\n \n}", "title": "" }, { "docid": "bffd95390c261fff652ece8484cac46d", "score": "0.5206738", "text": "function UniqueTypeNamesRule(context) {\n var knownTypeNames = Object.create(null);\n var schema = context.getSchema();\n return {\n ScalarTypeDefinition: checkTypeName,\n ObjectTypeDefinition: checkTypeName,\n InterfaceTypeDefinition: checkTypeName,\n UnionTypeDefinition: checkTypeName,\n EnumTypeDefinition: checkTypeName,\n InputObjectTypeDefinition: checkTypeName\n };\n\n function checkTypeName(node) {\n var typeName = node.name.value;\n\n if (schema === null || schema === void 0 ? void 0 : schema.getType(typeName)) {\n context.reportError(new _GraphQLError.GraphQLError(\"Type \\\"\".concat(typeName, \"\\\" already exists in the schema. It cannot also be defined in this type definition.\"), node.name));\n return;\n }\n\n if (knownTypeNames[typeName]) {\n context.reportError(new _GraphQLError.GraphQLError(\"There can be only one type named \\\"\".concat(typeName, \"\\\".\"), [knownTypeNames[typeName], node.name]));\n } else {\n knownTypeNames[typeName] = node.name;\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "a860a921dfd9502543a7c56c4e7ca875", "score": "0.51606834", "text": "function UniqueVariableNamesRule(context) {\n var knownVariableNames = Object.create(null);\n return {\n OperationDefinition: function OperationDefinition() {\n knownVariableNames = Object.create(null);\n },\n VariableDefinition: function VariableDefinition(node) {\n var variableName = node.variable.name.value;\n\n if (knownVariableNames[variableName]) {\n context.reportError(new _GraphQLError.GraphQLError(\"There can be only one variable named \\\"$\".concat(variableName, \"\\\".\"), [knownVariableNames[variableName], node.variable.name]));\n } else {\n knownVariableNames[variableName] = node.variable.name;\n }\n }\n };\n}", "title": "" }, { "docid": "44d8419c3d2a1434e077753f19c327c4", "score": "0.51595664", "text": "onFieldChange(inputField, e) {\r\n var multipleValues = {};\r\n multipleValues[inputField] = e;\r\n this.setState(multipleValues);\r\n }", "title": "" }, { "docid": "21a256bd828b38b3d0d9a2771aa5febb", "score": "0.5133321", "text": "function getFieldName(input) {\n return input.id.charAt(0).toUpperCase() + input.id.slice(1);\n}", "title": "" }, { "docid": "10bed14c9b1b6aad854b4f2af31387ca", "score": "0.5131555", "text": "function getFieldName(input) {\r\n return input.id.charAt(0).toUpperCase() + input.id.slice(1); \r\n}", "title": "" }, { "docid": "1040ea836d68d8bca866bf57bbfb9577", "score": "0.5129838", "text": "renderEnteredData() {\n const {\n userInput,\n field\n } = this.props;\n\n if (Object.keys(userInput).length < 0) {\n return null;\n }\n \n return Object.keys(userInput).map((input, index) => {\n if (field === input) {\n return null;\n }\n\n return (\n <h2\n key={index}\n className=\"question-screen-entered-data\"\n >\n {titleCase(normalizeLabelText(input))}: {userInput[input]}\n </h2>\n );\n });\n }", "title": "" }, { "docid": "42094d8237e1165304d771e886f124bd", "score": "0.51254725", "text": "function UniqueEnumValueNames(context) {\n var schema = context.getSchema();\n var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);\n var knownValueNames = Object.create(null);\n return {\n EnumTypeDefinition: checkValueUniqueness,\n EnumTypeExtension: checkValueUniqueness\n };\n\n function checkValueUniqueness(node) {\n var typeName = node.name.value;\n\n if (!knownValueNames[typeName]) {\n knownValueNames[typeName] = Object.create(null);\n }\n\n if (node.values) {\n var valueNames = knownValueNames[typeName];\n\n for (var _i2 = 0, _node$values2 = node.values; _i2 < _node$values2.length; _i2++) {\n var valueDef = _node$values2[_i2];\n var valueName = valueDef.name.value;\n var existingType = existingTypeMap[typeName];\n\n if ((0, _definition.isEnumType)(existingType) && existingType.getValue(valueName)) {\n context.reportError(new _GraphQLError.GraphQLError(existedEnumValueNameMessage(typeName, valueName), valueDef.name));\n } else if (valueNames[valueName]) {\n context.reportError(new _GraphQLError.GraphQLError(duplicateEnumValueNameMessage(typeName, valueName), [valueNames[valueName], valueDef.name]));\n } else {\n valueNames[valueName] = valueDef.name;\n }\n }\n }\n\n return false;\n }\n}", "title": "" }, { "docid": "2198b90bbf8e6ff1ae63680cfef17757", "score": "0.51075673", "text": "function generateFieldLookup(keys) {\n var lookup = {};\n keys.forEach(function (name, idx) {\n lookup[name] = idx;\n });\n return lookup;\n}", "title": "" }, { "docid": "ddc534b59583cae81dc63b472b25cc71", "score": "0.50868475", "text": "function getFieldName(input){\n return input.id.charAt(0).toUpperCase() +input.id.slice(1);\n}", "title": "" }, { "docid": "fb724de39084d19c30782ae3d6b51912", "score": "0.5086652", "text": "function getFieldName(input) {\n return input.id.charAt(4).toUpperCase() + input.id.slice(5);\n}", "title": "" }, { "docid": "1f2558e63af3792ac3dcc996abe78b7f", "score": "0.5084544", "text": "get inputId() { return `${this.id || this._uniqueId}-input`; }", "title": "" }, { "docid": "1f2558e63af3792ac3dcc996abe78b7f", "score": "0.5084544", "text": "get inputId() { return `${this.id || this._uniqueId}-input`; }", "title": "" }, { "docid": "1f2558e63af3792ac3dcc996abe78b7f", "score": "0.5084544", "text": "get inputId() { return `${this.id || this._uniqueId}-input`; }", "title": "" }, { "docid": "1f2558e63af3792ac3dcc996abe78b7f", "score": "0.5084544", "text": "get inputId() { return `${this.id || this._uniqueId}-input`; }", "title": "" }, { "docid": "1f2558e63af3792ac3dcc996abe78b7f", "score": "0.5084544", "text": "get inputId() { return `${this.id || this._uniqueId}-input`; }", "title": "" }, { "docid": "328a8022abbb507f7da301808d9850ce", "score": "0.50788265", "text": "function fieldName(input) {\n return input.id.charAt(0).toUpperCase() + input.id.slice(1);\n}", "title": "" }, { "docid": "df8bed2c7d203ea14c75a84c31b3606a", "score": "0.5071652", "text": "function getFieldName(input){\n return input.id.charAt(0).toUpperCase()+ input.id.slice(1);\n}", "title": "" }, { "docid": "724998b7fd6fa802f797a5b6cb60fc7a", "score": "0.5054463", "text": "function assertHasValidFieldNames(doc) {\n if (doc && typeof doc === 'object') {\n JSON.stringify(doc, (key, value) => {\n assertIsValidFieldName(key);\n return value;\n });\n }\n }", "title": "" }, { "docid": "bc0bb875a4684e299c8df58f5c08526a", "score": "0.5024131", "text": "function _getFieldsNamesString(fields) {\n var fieldNamesStr = \"\";\n if(angular.isArray(fields)){\n fields.forEach(function(field){\n fieldNamesStr += \"[\" + field.PropertyName + \"],\";\n })\n }\n\n return fieldNamesStr;\n }", "title": "" }, { "docid": "a3654fb56f61f5d5863794204a76c035", "score": "0.5019089", "text": "function getValidatedFields() {\n const invalidFields = _.keys(\n _.keyBy(validationInfo.invalidFields, fieldObj => fieldObj.name)\n );\n const validFields = _.keys(\n _.keyBy(validationInfo.validFields, fieldObj => fieldObj.name)\n );\n return _.concat(invalidFields, validFields);\n }", "title": "" }, { "docid": "96fb41170a3eefbd433c62a480d9b315", "score": "0.5011426", "text": "function replaceDeleteInput(definition, input, keyFields) {\n var idFields = primaryIdFields(definition, keyFields);\n // Existing fields will contain extra fields in input type that was added/updated by other transformers\n // like @versioned adds expectedVersion.\n // field id of type ID is a special case that we need to filter as this is automatically inserted to input by dynamo db transformer\n // Todo: Find out a better way to handle input types\n var existingFields = input.fields.filter(function (f) { return !(idFields.find(function (pf) { return pf.name.value === f.name.value; }) || (graphql_transformer_common_1.getBaseType(f.type) === 'ID' && f.name.value === 'id')); });\n return __assign(__assign({}, input), { fields: __spreadArrays(idFields, existingFields) });\n}", "title": "" }, { "docid": "01793b9d8d55d35ba2af880b4a86fb95", "score": "0.49982792", "text": "function getFieldId(input) {\n return input.id.charAt(0).toUpperCase() + input.id.slice(1);\n}", "title": "" }, { "docid": "843b84c96506a979421c79be14684d19", "score": "0.49959004", "text": "if(!values[field]) {\n\t\t\terrors[field] = `Enter a ${field}`\n\t\t}", "title": "" } ]
b9d9ce92eb4450561e3a782e39e19578
Bind request and create a new context to store information during the request lifecycle
[ { "docid": "11d4b11118fff21d4a666c67317dbb14", "score": "0.5883918", "text": "function contextMiddleware(injector) {\n const getId = injector.settings.logger.reqIdBuilder || (() => String(AUTO_INCREMENT_ID++));\n return (request, response, next) => tslib_1.__awaiter(this, void 0, void 0, function* () {\n request.ctx = new mvc_1.Context({ id: getId() });\n request.id = request.ctx.id;\n yield injector.emit(\"$onRequest\", request, response);\n core_1.applyBefore(response, \"end\", () => tslib_1.__awaiter(this, void 0, void 0, function* () {\n yield injector.emit(\"$onResponse\", request, response);\n yield request.ctx.destroy();\n }));\n next();\n });\n}", "title": "" } ]
[ { "docid": "735caf755a86f2c2817dcb033a90538c", "score": "0.69203496", "text": "function bindContext(ctrl, request, response) {\n ctrl._context = new context_1.ControllerContext(request, response);\n return ctrl;\n}", "title": "" }, { "docid": "578cbebb9a326c0c3007c9591e00bcef", "score": "0.67596626", "text": "createContext(req, res) {\n const context = Object.create(this.context);\n const request = context.request = Object.create(this.request);\n const response = context.response = Object.create(this.response);\n context.app = request.app = response.app = this;\n context.req = request.req = response.req = req;\n context.res = request.res = response.res = res;\n request.ctx = response.ctx = context;\n request.response = response;\n response.request = request;\n context.originalUrl = request.originalUrl = req.url;\n context.state = {};\n return context;\n }", "title": "" }, { "docid": "fe98461fc8ecfcc53b2bf08eff8eddf5", "score": "0.6660609", "text": "async context(req) {\n return self.getContext(req);\n }", "title": "" }, { "docid": "74a8fc7a7ef5b637217137f2aeabf60f", "score": "0.6548767", "text": "async bind(context) {\n this.context = context;\n this.data = this.context.data;\n this.error = this.context.error;\n }", "title": "" }, { "docid": "40e60f7d8f4e8f10f029ec5edf8eee22", "score": "0.651422", "text": "bindCorrectContext() {\n\t\tthis.handleKeydownOnBody = this.handleKeydownOnBody.bind(this);\n\t\tthis.onShowRequested = this.onShowRequested.bind(this);\n\t\tthis.sendAffirmativeResponse = this.sendAffirmativeResponse.bind(this);\n\t\tthis.sendCancelResponse = this.sendCancelResponse.bind(this);\n\t\tthis.sendNegativeResponse = this.sendNegativeResponse.bind(this);\n\t\tthis.sendExpiredResponse = this.sendExpiredResponse.bind(this);\n\t\tthis.sendResponse = this.sendResponse.bind(this);\n\t}", "title": "" }, { "docid": "023166d19c4417abc6dfdfa719c2129b", "score": "0.63138574", "text": "function Context(session, request, response)\n{\n this.session = session;\n this.request = request;\n this.response = response;\n}", "title": "" }, { "docid": "e6a4fcda67350185f220d1752c7031cf", "score": "0.6306115", "text": "init(context) {\r\n this.context = context;\r\n this.method = context.request.method;\r\n this.parameters = context.request.parameters;\r\n this.body = context.request.body;\r\n }", "title": "" }, { "docid": "f7e8fe032d50af55f3603a4079b026da", "score": "0.62222743", "text": "bindCorrectContext() {\n this.listenForServices = this.listenForServices.bind(this);\n this.onAuthorizationCompleted = this.onAuthorizationCompleted.bind(this);\n }", "title": "" }, { "docid": "e0fe0bfdfc8a37d45d091a45ed609e72", "score": "0.62010723", "text": "injectContextToHttpRequest(request, type = EventMessage_1.HttpRequestOptions.w3c) {\n let result = _.cloneDeep(request);\n result.headers = setHttpHeader(this.spanContext, type, result.headers);\n return result;\n }", "title": "" }, { "docid": "df47e3f8e5a9c326a3f48c96c9655ea1", "score": "0.6164185", "text": "function initialize () {\n return function (req, res, next) {\n //To support case-insensitive querystring in express, currently, we have to to this in middleware,\n //quite simple, but still, painful!\n for (var key in req.query) {\n req.query[key.toLowerCase()] = req.query[key];\n }\n global.CURRENTREQUEST = req;\n next();\n };\n }", "title": "" }, { "docid": "fa7b2fe10bfe58281a7538861969df6e", "score": "0.61314267", "text": "static injectContextToHttpRequest(context, request, type = EventMessage_1.HttpRequestOptions.w3c) {\n let result = _.cloneDeep(request);\n result.headers = Span_1.setHttpHeader(context, type, result.headers);\n return result;\n }", "title": "" }, { "docid": "8a2e7d9fce45f25d266e327ca47f80f1", "score": "0.6112183", "text": "function prepRequestContextMiddleware(req, res, next) {\n req.context = {\n traceId: uuid(),\n userId: req.session ? req.session.userId : null,\n };\n\n next();\n}", "title": "" }, { "docid": "2475ec79abc9b36350170abfe9d28cce", "score": "0.6016555", "text": "function pushcontext(){\n context = {prev: context, vars: {\"this\": true, \"arguments\": true}};\n }", "title": "" }, { "docid": "2475ec79abc9b36350170abfe9d28cce", "score": "0.6016555", "text": "function pushcontext(){\n context = {prev: context, vars: {\"this\": true, \"arguments\": true}};\n }", "title": "" }, { "docid": "1d37c862387affb22f9853220ffb9ebf", "score": "0.5882347", "text": "createContext(req, res) {\n // context对象\n const context = Object.create(this.context);\n // context对象添加一个request属性 指向request对象\n const request = context.request = Object.create(this.request);\n // context对象添加一个response属性 指向response对象\n const response = context.response = Object.create(this.response);\n // context request response 三者均添加一个 app 属性,指向这个 koa 实例\n context.app = request.app = response.app = this;\n // req 是原生 node 的请求对象 这里context request response 三者都添加了一个req属性 指向 req对象\n context.req = request.req = response.req = req;\n // res 是原生 node 的响应对象 这里context request response 三者都添加了一个res属性 指向 res对象\n context.res = request.res = response.res = res;\n // request 和 response对象上都添加一个 ctx 属性,指向context对象\n request.ctx = response.ctx = context;\n // request对象和response对象 互相作为对方的属性\n request.response = response;\n response.request = request;\n // context request 对象都添加一个originalUrl属性 指向原生req对象的url属性\n context.originalUrl = request.originalUrl = req.url;\n // context对象增加state 属性,用于保存一次请求中所需要的其他信息\n context.state = {};\n // 返回 context对象\n return context;\n // 到这里 大致能看出来作者的设计思路 context对象主要有四个属属性\n // context.req:原生的req对象\n // context.res:原生的res对象\n // context.request:koa自己封装的request对象\n // context.response:koa自己封装的response对象\n // 其中koa自己封装的和原生的最大的区别在于:koa自己封装的请求和响应对象的内容 不仅囊括原生的 还有一些其独有的东西\n }", "title": "" }, { "docid": "2e28f6d4f65b334e15a0841894ce40ec", "score": "0.5764146", "text": "setContext(contextName)\n {\n this.contextName = contextName;\n this.context = window[contextName];\n }", "title": "" }, { "docid": "bdc7e99ebcbe928ae6e3329ee2b1ff1b", "score": "0.5740722", "text": "function applyRequestCollection( request, response ) {\n\n\t\tvar rc = request.rc = response.rc = response.locals;\n\n\t\tObject.assign( rc, request.app.locals );\n\t\tObject.assign( rc, request.query );\n\t\tObject.assign( rc, request.params );\n\t\tObject.assign( rc, request.body );\n\n\t}", "title": "" }, { "docid": "7b78f008185ceb9fc3fb4fb9d50f7404", "score": "0.5737205", "text": "createContext(base) {\n const context = Moleculer.Context.create(this.broker);\n context.requestID = base.id || null; // copy request id\n this.props.logger.debug(`${context.requestID} moleculer context created`);\n return context;\n }", "title": "" }, { "docid": "f8357213bdb447d7f3a399e2e1ddca46", "score": "0.57318354", "text": "function createContext (request, response, args = {}) {\n return {\n request,\n response,\n ...args\n }\n}", "title": "" }, { "docid": "c839d475f8abdd1886160d020efb7672", "score": "0.57267183", "text": "function Context(){}", "title": "" }, { "docid": "c839d475f8abdd1886160d020efb7672", "score": "0.57267183", "text": "function Context(){}", "title": "" }, { "docid": "1a94baa50f55eb212ea96482b65e56dc", "score": "0.57178795", "text": "constructor(request) {\n this.request = request;\n }", "title": "" }, { "docid": "1a94baa50f55eb212ea96482b65e56dc", "score": "0.57178795", "text": "constructor(request) {\n this.request = request;\n }", "title": "" }, { "docid": "1a94baa50f55eb212ea96482b65e56dc", "score": "0.57178795", "text": "constructor(request) {\n this.request = request;\n }", "title": "" }, { "docid": "4e9d5f27049f11c47ea417497dd15328", "score": "0.5699801", "text": "constructor() {\n this.request = {};\n this.request.location = window.location;\n this.response = {};\n this.response.render = function (status, path, parent, name, cb) {\n express.render(status, path, parent, name, cb);\n };\n this.response.renderComponent = function (cb, parent, style, scripts) {\n express.renderComponent(cb, parent, style, scripts);\n };\n this.response.filterContent = function (element, options, cb) {\n express.filterContent(element, options, cb);\n };\n this.response.redirect = function (url) {\n location.replace(url);\n };\n this.getRoutes = {};\n this.postRoutes = {};\n this.putRoutes = {};\n this.deleteRoutes = {};\n this.MainPathName = location.pathname;\n this.useRoutes = {};\n }", "title": "" }, { "docid": "c24a537c60fc2c2e66a681c1b943e158", "score": "0.5628445", "text": "bindCorrectContext() {\n this.checkDependencies = this.checkDependencies.bind(this);\n this.checkServices = this.checkServices.bind(this);\n this.checkClients = this.checkClients.bind(this);\n this.getOfflineClients = this.getOfflineClients.bind(this);\n this.getOfflineServices = this.getOfflineServices.bind(this);\n this.onDependencyTimeout = this.onDependencyTimeout.bind(this);\n this.waitFor = this.waitFor.bind(this);\n }", "title": "" }, { "docid": "bca0c87dc39504388f9508e624b0e8a2", "score": "0.56063247", "text": "initialize(config) {\r\n this.context = config.context\r\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "9ea2c87e980254708e7bdd751ada8f78", "score": "0.5588715", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "2f493b4b9b95786d2ca8e3bd16bd1ac8", "score": "0.5584791", "text": "function setMinimalMethodContext(req: express$Request, res: express$Response, next: express$NextFunction) {\n if (req.context) {\n return next(new Error('Context already set'));\n }\n req.context = new MinimalMethodContext(req);\n next();\n}", "title": "" }, { "docid": "7c646e930a95c01f3d793aaf454fd153", "score": "0.55808294", "text": "function getContext(_, ctx) {\n return ctx;\n}", "title": "" }, { "docid": "7c646e930a95c01f3d793aaf454fd153", "score": "0.55808294", "text": "function getContext(_, ctx) {\n return ctx;\n}", "title": "" }, { "docid": "7c646e930a95c01f3d793aaf454fd153", "score": "0.55808294", "text": "function getContext(_, ctx) {\n return ctx;\n}", "title": "" }, { "docid": "7c646e930a95c01f3d793aaf454fd153", "score": "0.55808294", "text": "function getContext(_, ctx) {\n return ctx;\n}", "title": "" }, { "docid": "df39941e6b1a8be864a9de03db18f217", "score": "0.5570913", "text": "get context() { return this._context; }", "title": "" }, { "docid": "df39941e6b1a8be864a9de03db18f217", "score": "0.5570913", "text": "get context() { return this._context; }", "title": "" }, { "docid": "ddd6b5383fe28cc7b702b2405e132d3c", "score": "0.556783", "text": "function useRequest() {\n var request = Module['memoryInitializerRequest'];\n var response = request.response;\n if (request.status !== 200 && request.status !== 0) {\n // If you see this warning, the issue may be that you are using locateFile and defining it in JS. That\n // means that the HTML file doesn't know about it, and when it tries to create the mem init request early, does it to the wrong place.\n // Look in your browser's devtools network console to see what's going on.\n console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);\n doBrowserLoad();\n return;\n }\n applyMemoryInitializer(response);\n }", "title": "" }, { "docid": "ddd6b5383fe28cc7b702b2405e132d3c", "score": "0.556783", "text": "function useRequest() {\n var request = Module['memoryInitializerRequest'];\n var response = request.response;\n if (request.status !== 200 && request.status !== 0) {\n // If you see this warning, the issue may be that you are using locateFile and defining it in JS. That\n // means that the HTML file doesn't know about it, and when it tries to create the mem init request early, does it to the wrong place.\n // Look in your browser's devtools network console to see what's going on.\n console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);\n doBrowserLoad();\n return;\n }\n applyMemoryInitializer(response);\n }", "title": "" }, { "docid": "765350b30b65c47e7b99e882622f7aec", "score": "0.55618095", "text": "bind(source, context) {\n this.source = source;\n this.originalContext = context;\n this.childContext = Object.create(context);\n this.childContext.parent = source;\n this.childContext.parentContext = this.originalContext;\n this.items = this.itemsBindingObserver.observe(source, this.originalContext);\n this.template = this.templateBindingObserver.observe(source, this.originalContext);\n this.observeItems(true);\n this.refreshAllViews();\n }", "title": "" }, { "docid": "01b925691011238b4992e48d1441c734", "score": "0.5558398", "text": "bind(context, target) {\n return this._getContextManager().bind(context, target);\n }", "title": "" }, { "docid": "2ec031ece3dd0f57b97ae8b88a81322b", "score": "0.5551151", "text": "constructor(context) {\n this._context = context;\n }", "title": "" }, { "docid": "c4bbe7197ac86dd646e1fb3ce11f971b", "score": "0.553225", "text": "function useRequest() {\n var request = Module['memoryInitializerRequest'];\n if (request.status !== 200 && request.status !== 0) {\n // If you see this warning, the issue may be that you are using locateFile or memoryInitializerPrefixURL, and defining them in JS. That\n // means that the HTML file doesn't know about them, and when it tries to create the mem init request early, does it to the wrong place.\n // Look in your browser's devtools network console to see what's going on.\n console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);\n doBrowserLoad();\n return;\n }\n applyMemoryInitializer(request.response);\n }", "title": "" }, { "docid": "0dedcb1e2c2508dfe8d330d38219f759", "score": "0.5526415", "text": "requestHandler(req) {\n return new Promise(resolve => {\n instance.push({\n request: req,\n resolver: resolve,\n });\n });\n }", "title": "" }, { "docid": "13f7a2e6278f88f72596e27ddfc69e36", "score": "0.5514934", "text": "setContext(incomingContext) {\n // incomingContext should be an object\n if(typeof incomingContext !== 'object') {\n errors.invalidContext();\n return;\n }\n // https://repl.it/repls/MagentaSorrowfulDoom\n }", "title": "" }, { "docid": "ef305b2e33839412cd579cfbf11290f3", "score": "0.5482481", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "e68eb5899bab54afb5a7257148f19e2e", "score": "0.5446011", "text": "constructor(context) {\n this.context = context;\n }", "title": "" }, { "docid": "617ec859bb24de33ba6f68d3e32d6321", "score": "0.5445344", "text": "initialize(config) {\n this.context = config.context\n }", "title": "" }, { "docid": "4ff5bd93cb96d80ea82453f617058574", "score": "0.54369056", "text": "initialize(config) {\n this.context = config.context;\n }", "title": "" }, { "docid": "be023629450f286bd9b5396f57d1b0d0", "score": "0.5434857", "text": "function Context() {}", "title": "" }, { "docid": "f75e5a7a6ca31fa1a5d32afb7c910bf5", "score": "0.54319036", "text": "function useRequest() {\n var request = Module['memoryInitializerRequest'];\n var response = request.response;\n if (request.status !== 200 && request.status !== 0) {\n var data = tryParseAsDataURI(Module['memoryInitializerRequestURL']);\n if (data) {\n response = data.buffer;\n } else {\n // If you see this warning, the issue may be that you are using locateFile or memoryInitializerPrefixURL, and defining them in JS. That\n // means that the HTML file doesn't know about them, and when it tries to create the mem init request early, does it to the wrong place.\n // Look in your browser's devtools network console to see what's going on.\n console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);\n doBrowserLoad();\n return;\n }\n }\n applyMemoryInitializer(response);\n }", "title": "" }, { "docid": "f75e5a7a6ca31fa1a5d32afb7c910bf5", "score": "0.54319036", "text": "function useRequest() {\n var request = Module['memoryInitializerRequest'];\n var response = request.response;\n if (request.status !== 200 && request.status !== 0) {\n var data = tryParseAsDataURI(Module['memoryInitializerRequestURL']);\n if (data) {\n response = data.buffer;\n } else {\n // If you see this warning, the issue may be that you are using locateFile or memoryInitializerPrefixURL, and defining them in JS. That\n // means that the HTML file doesn't know about them, and when it tries to create the mem init request early, does it to the wrong place.\n // Look in your browser's devtools network console to see what's going on.\n console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);\n doBrowserLoad();\n return;\n }\n }\n applyMemoryInitializer(response);\n }", "title": "" }, { "docid": "de97c9439ac4c30201b423931cb7d655", "score": "0.54278713", "text": "requestDidStart(requestContext) {\n console.log('Request started! Query:\\n' +\n requestContext.request.query);\n\n return {\n\n // Fires whenever Apollo Server will parse a GraphQL\n // request to create its associated document AST.\n parsingDidStart(requestContext) {\n console.log('Parsing started!');\n },\n\n // Fires whenever Apollo Server will validate a\n // request's document AST against your GraphQL schema.\n validationDidStart(requestContext) {\n console.log('Validation started!');\n },\n\n }\n }", "title": "" }, { "docid": "028e47fc46f7871a4a355e2106e81404", "score": "0.54127544", "text": "function ContextAPI() {}", "title": "" }, { "docid": "701f845b02236d92629719d307902aaa", "score": "0.540621", "text": "function get_context (ctx={})\n\t{\n\t\tlet o =\n\t\t{\n\t\t\tname : name,\n\t\t\tuser : user,\n\t\t\treverse : reverse,\n\t\t\tcrud_root : crud_root,\n\t\t\tcurrent_path : current_path,\n\t\t\tcrud : current_crud,\n\t\t\tpage : current_page,\n\t\t\tquery : current_query,\n\t\t\titems : current_items,\n\t\t\titem : current_item,\n\t\t\tcrud_from_path : crud_from_path,\n\t\t\tcrud_from_id : crud_from_id,\n\t\t};\n\t\treturn Object.assign(Object.create(null), o, ctx);\n\n\t}", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "36396e2dffe90283d894608643fd2c14", "score": "0.53983086", "text": "function Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "d1d0edc621b0b66e494db4da5d9b4269", "score": "0.53823984", "text": "function Context(view, parentContext) {\r\n\t\tthis.view = view;\r\n\t\tthis.cache = { '.': this.view };\r\n\t\tthis.parent = parentContext;\r\n\t}", "title": "" }, { "docid": "10897cdfa907f88b0bce61507fbbaa02", "score": "0.5372586", "text": "passContext(node) {\n if (this.context) {\n if (node.context) {\n node.context = Object.assign(node.context, this.context);\n }\n else {\n node.context = this.context;\n }\n }\n }", "title": "" }, { "docid": "a607f598e51e4611f8912858d14395b5", "score": "0.5371199", "text": "handleRequest (method, route, callback) {\n var constraints = {queryParams: {}, urlParams: {}};\n var newRoute = internal.constructRoute(method, route, callback, this, constraints);\n var requestContext = new RequestContext(\n this.allRoutes, this.models, newRoute, route, this.rootElement, constraints, this.extensions\n );\n\n this.routingInfo.routes.push(newRoute);\n\n if (method === 'post' || method === 'put' || method === 'patch') {\n const Model = require('@arangodb/foxx/legacy').Model;\n let UndocumentedBody = Model.extend({});\n requestContext.bodyParam('undocumented body', {\n description: 'Undocumented body param',\n type: UndocumentedBody,\n allowInvalid: true\n });\n }\n\n return requestContext;\n }", "title": "" }, { "docid": "cfae15da18ddefbc16065094553f125a", "score": "0.53688467", "text": "function setReqBodyData(key, value, currReq) {\n var req = currReq || global.CURRENTREQUEST,\n pageContextData;\n req.body = req.body || {};\n pageContextData = req.body.pageContextData || {};\n pageContextData[key] = value;\n\n req.body.pageContextData = pageContextData;\n }", "title": "" }, { "docid": "4335ac77139104419e88eb4ade2a03d6", "score": "0.53623027", "text": "function HttpRequestInit() { }", "title": "" }, { "docid": "ed6e7bebf79d436c5eb680bac459195d", "score": "0.5346318", "text": "function prepareContext(context) {\n return context_1.toInternalContext(context);\n}", "title": "" }, { "docid": "26bcb02d0abb49fa6a812157e8c7b763", "score": "0.5326743", "text": "getChildContext() {\n return {\n dispatch: this.dispatch.bind(this),\n registerReducerMap: this.registerReducerMap.bind(this),\n registerStateListener: this.registerStateListener.bind(this)\n }\n }", "title": "" }, { "docid": "7f547580923cf325ec05674dd857de7a", "score": "0.5321821", "text": "function Context(view, init) {\n\t\tthis.subContexts = {};\n\t\tthis.init = init ? init : [];\n\t\tthis.view = view;\n\t}", "title": "" }, { "docid": "ea2ba6edb8e5ababe86b54c1551d6c90", "score": "0.5319491", "text": "constructor(context, req, contextLogLevel = jovo_core_1.LogLevel.DEBUG) {\n this.hasWriteFileAccess = false;\n this.req = req;\n this.context = context;\n this.headers = req.headers;\n this.$request = req.body;\n // ensure the context log appender has been added to Log\n AzureFunction.addContextLogger(contextLogLevel);\n }", "title": "" }, { "docid": "1273dd59b62ccb5b6fef79c27755ba99", "score": "0.53058517", "text": "initialize(config) {\n \n this.context = config.context;\n \n }", "title": "" }, { "docid": "7026c2e932a46f7396b7030b268752c4", "score": "0.5303198", "text": "function ContextAPI() {\n }", "title": "" }, { "docid": "7026c2e932a46f7396b7030b268752c4", "score": "0.5303198", "text": "function ContextAPI() {\n }", "title": "" }, { "docid": "18732de96bcbf04a2a32b729edbb5685", "score": "0.53030777", "text": "get context() {\n if (!this[CONTEXT]) {\n this[CONTEXT] = this.initContext(super.context);\n }\n return this[CONTEXT];\n }", "title": "" }, { "docid": "9ae8c57754ec4383641a75dd89d729a1", "score": "0.5301144", "text": "requestDidStart(requestContext) {\n console.log('Request started! Query:\\n' +\n requestContext.request.query);\n\n return {\n\n // Fires whenever Apollo Server will parse a GraphQL\n // request to create its associated document AST.\n parsingDidStart(requestContext) {\n console.log('Parsing started!');\n },\n\n // Fires whenever Apollo Server will validate a\n // request's document AST against your GraphQL schema.\n validationDidStart(requestContext) {\n console.log('Validation started!');\n },\n\n }\n }", "title": "" }, { "docid": "4124a46589b3cc98f50f7b2f9abbb13f", "score": "0.5296105", "text": "function bind(context) {\n this.context = context;\n this.bindings.forEach(bindBinding, context);\n}", "title": "" }, { "docid": "7b0febaaeb34e5fb60f31e77b9a63ceb", "score": "0.5270374", "text": "prepare(req) {\n // try to leverage pre-existing `req._query` (e.g: from connect)\n if (!req._query) {\n req._query = ~req.url.indexOf(\"?\") ? qs.parse(parse$3(req.url).query) : {};\n }\n }", "title": "" }, { "docid": "ca7b4c45981cdac9ca3d0e97d150add0", "score": "0.52662295", "text": "function onRequest( req, res ) {\n var pathname = url.parse( req.url ).pathname;\n console.log( `Request for ${pathname} received.` );\n\n route( handle, pathname, res ); // inject the response object\n }", "title": "" }, { "docid": "65bb1ae8b855793ca117c46330a08517", "score": "0.52597344", "text": "function Context(view, parentContext) {\n this.view = view == null ? {} : view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "65bb1ae8b855793ca117c46330a08517", "score": "0.52597344", "text": "function Context(view, parentContext) {\n this.view = view == null ? {} : view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "65bb1ae8b855793ca117c46330a08517", "score": "0.52597344", "text": "function Context(view, parentContext) {\n this.view = view == null ? {} : view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "65bb1ae8b855793ca117c46330a08517", "score": "0.52597344", "text": "function Context(view, parentContext) {\n this.view = view == null ? {} : view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "65bb1ae8b855793ca117c46330a08517", "score": "0.52597344", "text": "function Context(view, parentContext) {\n this.view = view == null ? {} : view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n }", "title": "" }, { "docid": "8e6b6ee161e0dbf5418f83da950ed4fe", "score": "0.52480406", "text": "function extractRequestArgs() {\n // object context should be a \"handleContext\" defined in the Alexa SDK. See alexa.js for more.\n const handlerContext = this;\n\n // extend capabilities of ResponseBuilder to emit ending events itself\n Object.assign(handlerContext.response, {\n // end the request immediately, sending the response object payload\n send: function() {\n handlerContext.emit(\":responseReady\");\n return this;\n },\n \n // end the request immediately without sending a response object\n sendNil: function(options) { // options: saveState:Boolean\n options = options || {};\n if (options.saveState) {\n // save the attributes in DynamoDB before finishing\n handlerContext.emit(\":saveState\", true);\n }\n else {\n // end it now, no saving\n handlerContext.context.succeed(true);\n }\n }\n });\n\n return {\n event: handlerContext.event,\n response: handlerContext.response,\n model: new RequestModel(handlerContext)\n };\n}", "title": "" }, { "docid": "ad9b566fb3b13da5060ce4148be29571", "score": "0.5245613", "text": "function onRequest (request, response) \n {\n // Extract URL and parameters \n var URLData = url.parse(request.url, true);\n var pathname = URLData.pathname;\n var GETData = URLData.query;\n\n // Pass on the request to the appropriate implementation through the router\n route(handle, pathname, response, GETData);\n\t}", "title": "" }, { "docid": "f8eeeb34015c9d0afa47f92a9cf9097b", "score": "0.52443206", "text": "enterInitialiser(ctx) {\n\t}", "title": "" }, { "docid": "4c08a34c4b851c1a20c88e89950a0a11", "score": "0.52410215", "text": "function Context(){\n\t\tvar _context = {};\n\t\t\n\t\t// module's path array for require.js 'define' call \n\t\tthis.paths = [];\n\t\t\n\t\t// handler's array to create the context for include.js body function\n\t\tvar _args = [];\t\t\n\n\t\t// add new variable to context, and take care of plugins...\n\t\tthis.add = function( a_name, a_path, a_subname ){\n\t\t\tvar plugin = a_name in $.include.plugins ?\n\t\t\t\t\t\t\tnew $.include.plugins[ a_name ]( a_path )\n\t\t\t\t\t\t\t: new DummyPlugIn( a_path );\n\t\t\t\n\t\t\tthis.paths.push( plugin.path() );\t\t\t\n\t\t\t\n\t\t\t_args.push( function( a_value ){\n\t\t\t\t// transform value, if plugin is present...\n\t\t\t\tvar value = plugin.content( a_value );\n\t\t\t\t\n\t\t\t\t// assign value to the context...\n\t\t\t\tif( a_subname ){\n\t\t\t\t\t_context[ a_name ][ a_subname ] = value;\t\n\t\t\t\t}else{\n\t\t\t\t\t_context[ a_name ] = value;\n\t\t\t\t}\t\t\t\t\n\t\t\t});\n\t\t}\n\n\t\t// create callback for require.js define function\n\t this.on_load = function( a_body_f ){\n\t return function() {\n\t\t\t\t// fill context...\n\t for( var i = 0; i < _args.length; i++ ){\n\t _args[ i ]( arguments[ i ] );\n\t }\n\n\t\t\t\t// call module's body...\n\t\t\t\t_context.exports = {};\n\t var res = a_body_f( _context );\n\t return res ? res : _context.exports;\n\t };\n\t }\n\t}", "title": "" }, { "docid": "ec371418adeb1dd8c64de892447c61bd", "score": "0.5238817", "text": "function buildContextVariables(context) {\n var cache = { };\n var callbacks = context.__setup_properties__;\n var container = context.container;\n var factory = context.factory;\n \n Ember.keys(callbacks).filter(function(key){\n // ignore the default setup/teardown keys\n return key !== 'setup' && key !== 'teardown';\n }).forEach(function(key){\n context[key] = function(options) {\n if (cache[key]) { return cache[key]; }\n\n var result = callbacks[key](options, factory(), container);\n cache[key] = result;\n return result;\n };\n });\n }", "title": "" } ]
d4d0775635bf4514cf1c2229c1d55482
Useroriginating errors (lifecycles and refs) should not interrupt deletion, so don't let them throw. Hostoriginating errors should interrupt deletion, so it's okay
[ { "docid": "2c95cc08d2a42a0552cb3775a58a40d8", "score": "0.0", "text": "function commitUnmount(current) {\n if (typeof onCommitUnmount === 'function') {\n onCommitUnmount(current);\n }\n\n switch (current.tag) {\n case ClassComponent:\n {\n safelyDetachRef(current);\n var _instance7 = current.stateNode;\n if (typeof _instance7.componentWillUnmount === 'function') {\n safelyCallComponentWillUnmount(current, _instance7);\n }\n return;\n }\n case HostComponent:\n {\n safelyDetachRef(current);\n return;\n }\n case CallComponent:\n {\n commitNestedUnmounts(current.stateNode);\n return;\n }\n case HostPortal:\n {\n // TODO: this is recursive.\n // We are also not using this parent because\n // the portal will get pushed immediately.\n if (enableMutatingReconciler && mutation) {\n unmountHostComponents(current);\n } else if (enablePersistentReconciler && persistence) {\n emptyPortalContainer(current);\n }\n return;\n }\n }\n }", "title": "" } ]
[ { "docid": "99e0a35c1681fc1b4dbc47cb81473622", "score": "0.60734075", "text": "detach() {\n throw new Error('Not Implemented');\n }", "title": "" }, { "docid": "99e0a35c1681fc1b4dbc47cb81473622", "score": "0.60734075", "text": "detach() {\n throw new Error('Not Implemented');\n }", "title": "" }, { "docid": "ab631fe6bff2223245c1fd573631298a", "score": "0.59122956", "text": "function deleteErrHandler(error, result) {\n\tif (error) {\n\t\tlog(\"cannot delete data\")\n\t\tthrow error\n\t} else {\n\t\tlog(\"Delete Success\") \n\t}\n}", "title": "" }, { "docid": "548933138b4458570e9897b05449b688", "score": "0.5903703", "text": "componentWillUnmount() {\n window.removeEventListener(\"unhandledrejection\", this.handleAllUncaughtErrors)\n }", "title": "" }, { "docid": "89f9664d746170fce231e33ad5e28be2", "score": "0.5881166", "text": "function destroyed() {\n throw new Error('Call made to destroyed method');\n}", "title": "" }, { "docid": "d699e52649267da82128d94e3a4d19e3", "score": "0.58253676", "text": "disconnected() {\n this.unsubscribe?.();\n delete this.unsubscribe;\n delete this.baseObject;\n delete this.property;\n delete this.replica;\n delete this.path;\n }", "title": "" }, { "docid": "db13fbcb3f2fb2d3da9cac031a38cd87", "score": "0.5802854", "text": "function _handleRemove() {\n Promise.all(deletePromises).catch(error => console.log(error));\n next(err);\n }", "title": "" }, { "docid": "85395803e46538dfb15f25219b7313d2", "score": "0.5789462", "text": "function somethingBad() {\n nock.cleanAll()\n }", "title": "" }, { "docid": "c826142192a71dc761ef91f7266720da", "score": "0.5755332", "text": "function deleteMovieError() {\n console.log('Unble to delete movie...');\n}", "title": "" }, { "docid": "b5e62a361ef306dffc0936222098f2a4", "score": "0.5706079", "text": "async cleanup() {\n // The cleanup logic is as follows:\n // - We first try to delete the resource using the delete() method\n // - However, it is possible that the user that created the resource does not have permission\n // to delete the resource or the user might have become inactive. Because of this we will\n // also try to perform the same delete() method but with default admin credentials\n\n try {\n await this.delete();\n } catch (error) {\n // Now we try with default admin credentials\n const adminSession = await this.setup.defaultAdminSession();\n this.axiosClient = adminSession.axiosClient;\n await this.delete();\n }\n }", "title": "" }, { "docid": "831d6952a1e904dc7c3453151404a3dd", "score": "0.56805736", "text": "detach() {\n throw new Error('incompatible reuse strategy');\n }", "title": "" }, { "docid": "26fbadf4d05ae3a61ad76057c9294718", "score": "0.5671713", "text": "function socketError() {\n this.destroy();\n}", "title": "" }, { "docid": "5cdd102732d1dcebea139679433c3ad1", "score": "0.56334895", "text": "function socketError () {\n this.destroy();\n}", "title": "" }, { "docid": "5cdd102732d1dcebea139679433c3ad1", "score": "0.56334895", "text": "function socketError () {\n this.destroy();\n}", "title": "" }, { "docid": "32aad59b428187d680f66b0ddd67ec41", "score": "0.5631006", "text": "handleFailure (error_)\n\t{\n\t\t// todo: Undo all actions\n\t\tthis.cleanup ();\n\t\tthrow error_;\n\t}", "title": "" }, { "docid": "f73bc205a78f48ef16f487ae43dec62f", "score": "0.5604115", "text": "function onerror(err){\n debug('subscription \"%s\" error %s in pending state', sub.id, err.stack);\n sub.destroy();\n }", "title": "" }, { "docid": "4876bfbc588fe31d130fdc0537feb348", "score": "0.55450904", "text": "componentWillUnmount() {\n if (this.props.error) {\n this.props.removeError();\n }\n }", "title": "" }, { "docid": "340f3604b43096aa62515040287d8010", "score": "0.55359375", "text": "function socketOnError() {\n this.destroy();\n}", "title": "" }, { "docid": "340f3604b43096aa62515040287d8010", "score": "0.55359375", "text": "function socketOnError() {\n this.destroy();\n}", "title": "" }, { "docid": "340f3604b43096aa62515040287d8010", "score": "0.55359375", "text": "function socketOnError() {\n this.destroy();\n}", "title": "" }, { "docid": "eb2a1f3bc9dcbc0f490f45ba22c02411", "score": "0.55170447", "text": "cleanUpDeadCreeps () {\n }", "title": "" }, { "docid": "f4e40dcf633ac00ebbd1d25bc8013a63", "score": "0.5501712", "text": "async abort() {\n return;\n }", "title": "" }, { "docid": "a3edbc76ab9c7ba86b770f5c6e352977", "score": "0.54980665", "text": "function socketOnError () {\n this.destroy();\n}", "title": "" }, { "docid": "a3edbc76ab9c7ba86b770f5c6e352977", "score": "0.54980665", "text": "function socketOnError () {\n this.destroy();\n}", "title": "" }, { "docid": "a3edbc76ab9c7ba86b770f5c6e352977", "score": "0.54980665", "text": "function socketOnError () {\n this.destroy();\n}", "title": "" }, { "docid": "1b9c3150e6adb5660f9c52688354918a", "score": "0.5495464", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "1b9c3150e6adb5660f9c52688354918a", "score": "0.5495464", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "1b9c3150e6adb5660f9c52688354918a", "score": "0.5495464", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "1b9c3150e6adb5660f9c52688354918a", "score": "0.5495464", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "1b9c3150e6adb5660f9c52688354918a", "score": "0.5495464", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "9a86c1f3a11f0de905def93db27e7483", "score": "0.5478949", "text": "onFail_() {\n this.canAccess = false;\n }", "title": "" }, { "docid": "092668388084aa11804e14f294462f67", "score": "0.54766965", "text": "static actualize() {\n for (let i = 0; i < refs.length ; ++i) {\n const ref = refs[i];\n if (ref.isOutdated()) {\n ref.remove();\n refs.splice(i--, 1);\n }\n }\n }", "title": "" }, { "docid": "7162a172d62c711fbde3dc58c9b68eac", "score": "0.54766047", "text": "function socketError () {\n\t this.destroy();\n\t}", "title": "" }, { "docid": "7162a172d62c711fbde3dc58c9b68eac", "score": "0.54766047", "text": "function socketError () {\n\t this.destroy();\n\t}", "title": "" }, { "docid": "033191b150b20056d8f91d3bcd92686e", "score": "0.54672515", "text": "function onFileSystemFail(err) {\n console.log('deleteFileFromPersistentStorage file system fail: ' + fileName);\n console.log('error code = ' + err.code);\n }", "title": "" }, { "docid": "d6f15d06adf890d63babf54c98c0fbf7", "score": "0.54560107", "text": "remove () {\n // cleanup\n }", "title": "" }, { "docid": "68e09ecbdf7866add8bd1fcb16a5a9ac", "score": "0.54527867", "text": "function safelyCallComponentWillUnmount(current$$1,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current$$1,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current$$1,unmountError);}}}", "title": "" }, { "docid": "68e09ecbdf7866add8bd1fcb16a5a9ac", "score": "0.54527867", "text": "function safelyCallComponentWillUnmount(current$$1,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current$$1,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current$$1,unmountError);}}}", "title": "" }, { "docid": "68e09ecbdf7866add8bd1fcb16a5a9ac", "score": "0.54527867", "text": "function safelyCallComponentWillUnmount(current$$1,instance){{invokeGuardedCallback(null,callComponentWillUnmountWithTimer,null,current$$1,instance);if(hasCaughtError()){var unmountError=clearCaughtError();captureCommitPhaseError(current$$1,unmountError);}}}", "title": "" }, { "docid": "bd261f68c0db68f835f40fb3a26df0d1", "score": "0.54493856", "text": "function esconderError() {\n setError(null);\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "c9af41be2d3b9cb37f331a33611de75c", "score": "0.5441082", "text": "destroy (err) {\n this._destroy(err, () => {})\n }", "title": "" }, { "docid": "531afe8fddcadb1b3f483e962296e9f8", "score": "0.5430598", "text": "function deleteAircraftFailed(err) {\n vm.showDeleteButton = true;\n vm.showUpdateButton = true;\n vm.message = LOGBOOK_CONSTANT.MSG_AIRCRAFT_DELETE_ERROR;\n vm.working = false;\n }", "title": "" }, { "docid": "c737f16a5fbd8785856fb326ddac0368", "score": "0.5418698", "text": "function onerror(er){debug('onerror',er);unpipe();dest.removeListener('error',onerror);if(EElistenerCount(dest,'error')===0)errorOrDestroy(dest,er);}// Make sure our error handler is attached before userland ones.", "title": "" }, { "docid": "b455900dc5bf361528c7d229eef603f1", "score": "0.5387679", "text": "onActivationError() {\n this.removeListeners();\n this.state = State.ERROR;\n this.dispatchEvent(new GoogEvent(EventType.EXECUTED));\n }", "title": "" }, { "docid": "8e3e4384b466d48a2851086d2b83d012", "score": "0.53864324", "text": "function failed(e) {\n console.error(e);\n Notification.remove(note_id);\n page(\"/error\");\n note_id = null;\n }", "title": "" }, { "docid": "54283ade495fe3f8d6f19da1ebc4d5a3", "score": "0.5383215", "text": "function captureError(failedWork, error) {\n // It is no longer valid because we exited the user code.\n ReactCurrentOwner$2.current = null;\n var boundary = null, errorBoundaryFound = !1, willRetry = !1, errorBoundaryName = null;\n // Host containers are a special case. If the failed work itself is a host\n // container, then it acts as its own boundary. In all other cases, we\n // ignore the work itself and only search through the parents.\n if (failedWork.tag === HostRoot$3) boundary = failedWork, isFailedBoundary(failedWork) && (// If this root already failed, there must have been an error when\n // attempting to unmount it. This is a worst-case scenario and\n // should only be possible if there's a bug in the renderer.\n didFatal = !0); else for (var node = failedWork.return; null !== node && null === boundary; ) {\n if (node.tag === ClassComponent$3) {\n var instance = node.stateNode;\n \"function\" == typeof instance.componentDidCatch && (errorBoundaryFound = !0, errorBoundaryName = getComponentName_1(node), \n // Found an error boundary!\n boundary = node, willRetry = !0);\n } else node.tag === HostRoot$3 && (// Treat the root like a no-op error boundary\n boundary = node);\n if (isFailedBoundary(node)) {\n // This boundary is already in a failed state.\n // If we're currently unmounting, that means this error was\n // thrown while unmounting a failed subtree. We should ignore\n // the error.\n if (isUnmounting) return null;\n // If we're in the commit phase, we should check to see if\n // this boundary already captured an error during this commit.\n // This case exists because multiple errors can be thrown during\n // a single commit without interruption.\n if (null !== commitPhaseBoundaries && (commitPhaseBoundaries.has(node) || null !== node.alternate && commitPhaseBoundaries.has(node.alternate))) // If so, we should ignore this error.\n return null;\n // The error should propagate to the next boundary -— we keep looking.\n boundary = null, willRetry = !1;\n }\n node = node.return;\n }\n if (null !== boundary) {\n // Add to the collection of failed boundaries. This lets us know that\n // subsequent errors in this subtree should propagate to the next boundary.\n null === failedBoundaries && (failedBoundaries = new Set()), failedBoundaries.add(boundary);\n // This method is unsafe outside of the begin and complete phases.\n // We might be in the commit phase when an error is captured.\n // The risk is that the return path from this Fiber may not be accurate.\n // That risk is acceptable given the benefit of providing users more context.\n var _componentStack = getStackAddendumByWorkInProgressFiber(failedWork), _componentName = getComponentName_1(failedWork);\n // Add to the collection of captured errors. This is stored as a global\n // map of errors and their component stack location keyed by the boundaries\n // that capture them. We mostly use this Map as a Set; it's a Map only to\n // avoid adding a field to Fiber to store the error.\n null === capturedErrors && (capturedErrors = new Map());\n var capturedError = {\n componentName: _componentName,\n componentStack: _componentStack,\n error: error,\n errorBoundary: errorBoundaryFound ? boundary.stateNode : null,\n errorBoundaryFound: errorBoundaryFound,\n errorBoundaryName: errorBoundaryName,\n willRetry: willRetry\n };\n capturedErrors.set(boundary, capturedError);\n try {\n logCapturedError(capturedError);\n } catch (e) {\n // Prevent cycle if logCapturedError() throws.\n // A cycle may still occur if logCapturedError renders a component that throws.\n console.error(e);\n }\n // If we're in the commit phase, defer scheduling an update on the\n // boundary until after the commit is complete\n // Otherwise, schedule an update now.\n // TODO: Is this actually necessary during the render phase? Is it\n // possible to unwind and continue rendering at the same priority,\n // without corrupting internal state?\n return isCommitting ? (null === commitPhaseBoundaries && (commitPhaseBoundaries = new Set()), \n commitPhaseBoundaries.add(boundary)) : scheduleErrorRecovery(boundary), boundary;\n }\n // If no boundary is found, we'll need to throw the error\n return null === firstUncaughtError && (firstUncaughtError = error), null;\n }", "title": "" }, { "docid": "63e3bef9cc27b608192c8a51ad57e8f4", "score": "0.53558546", "text": "function onFatal(root){root.finishedWork=null;}", "title": "" }, { "docid": "63e3bef9cc27b608192c8a51ad57e8f4", "score": "0.53558546", "text": "function onFatal(root){root.finishedWork=null;}", "title": "" }, { "docid": "63e3bef9cc27b608192c8a51ad57e8f4", "score": "0.53558546", "text": "function onFatal(root){root.finishedWork=null;}", "title": "" }, { "docid": "f335b0c6d6d097c63e6f85de2fc7394e", "score": "0.5353953", "text": "cleanup() {}", "title": "" }, { "docid": "f335b0c6d6d097c63e6f85de2fc7394e", "score": "0.5353953", "text": "cleanup() {}", "title": "" }, { "docid": "e2b6875e44bb9e80b8702c1a63904427", "score": "0.5330909", "text": "rethrowNonDiagnosticError(error) {\n if (!error.isDiagnostic) {\n throw error;\n }\n }", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "252c9e7bd8ba40f7a0ba6f761e4f3012", "score": "0.5329784", "text": "function onFatal(root) {\n root.finishedWork = null;\n}", "title": "" }, { "docid": "a4b2a50f157e66b0bf1d1f4fdb053f37", "score": "0.5327313", "text": "function throwPortalOutletAlreadyDisposedError() {\n throw Error('This PortalOutlet has already been disposed');\n}", "title": "" }, { "docid": "a8ae520a340f29e35c22a0d8f24872f3", "score": "0.5314046", "text": "function deleteShelterError(error) {\n vm.error = \"Could not delete shelter at this time. Please try again later.\";\n scrollToError();\n }", "title": "" }, { "docid": "84629e3383558e6a6f31d8a6e6ff9b23", "score": "0.53083897", "text": "abort() {\n const me = this,\n { view, creationData } = me;\n\n // Remove terminals from source and target events.\n if (creationData) {\n const { source, sourceResource, target, targetResource } = creationData;\n\n if (source) {\n const el = view.getElementFromEventRecord(source, sourceResource);\n if (el) {\n me.hideTerminals(el);\n }\n }\n if (target) {\n const el = view.getElementFromEventRecord(target, targetResource);\n if (el) {\n me.hideTerminals(el);\n }\n }\n }\n\n me.creationData = null;\n\n me.mouseDetacher && me.mouseDetacher();\n\n me.removeConnector();\n }", "title": "" }, { "docid": "ac4bf1bab4aaa9804235f07df3027de4", "score": "0.5306451", "text": "_recoverySetup() {\n (async () => {\n await this._editorComplex.bodyClient.when_unrecoverableError();\n this._recoverIfPossible();\n })();\n }", "title": "" }, { "docid": "ac4bf1bab4aaa9804235f07df3027de4", "score": "0.5306451", "text": "_recoverySetup() {\n (async () => {\n await this._editorComplex.bodyClient.when_unrecoverableError();\n this._recoverIfPossible();\n })();\n }", "title": "" }, { "docid": "9d89582d896981d1fd3254c64cec19bf", "score": "0.5276891", "text": "async cleanup() {\n\n }", "title": "" }, { "docid": "0ddac51f35b3262b229ed0bbaee6c0d8", "score": "0.526437", "text": "clearErr() {\n this.props.dispatch(clearWorkspaceErr());\n }", "title": "" }, { "docid": "864ac3bd05c351abf40d771feaa80cf7", "score": "0.52548903", "text": "deleteAccount({ commit , dispatch}){\n const accessToken = localStorage.getItem(\"token\");\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + accessToken;\n axios.delete(baseUrl + \"user\")\n .then(() => { \n dispatch(\"logout\")\n })\n .catch(errorObj => { \n const ar = [];\n ar.push(errorObj.response.data.error)\n for (let key in errorObj.response.data.extra) {\n for (let i = 0; i < errorObj.response.data.extra[key].length; i++)\n ar.push(errorObj.response.data.extra[key][i]);\n }\n commit(\"updateErrors\", ar);\n commit(\"updateSuccess\", []);\n })\n}", "title": "" }, { "docid": "4fd3ad1c5278e6f86bf44097fad19e33", "score": "0.52473813", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback$3(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError$1()){var unmountError=clearCaughtError$1();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "4fd3ad1c5278e6f86bf44097fad19e33", "score": "0.52473813", "text": "function safelyCallComponentWillUnmount(current,instance){{invokeGuardedCallback$3(null,callComponentWillUnmountWithTimer,null,current,instance);if(hasCaughtError$1()){var unmountError=clearCaughtError$1();captureCommitPhaseError(current,unmountError);}}}", "title": "" }, { "docid": "dcf9672c2ecef065453b77f63ae8de17", "score": "0.5245989", "text": "onDetectError() {\n\t\tthis.removeEventListeners();\n\t\tthis.onError();\n\t}", "title": "" }, { "docid": "d13530bdb0d75f70136bf15b8054a68f", "score": "0.52365345", "text": "__checkDisposed() {\n if (this.__disposed) {\n throw new Error(\"Already disposed\");\n }\n }", "title": "" } ]
cd7231695ae972be1e1f73d334e0cc6f
...PACMAN EATS A POWER PELLET
[ { "docid": "b294698305feb0db868d9ec9ada29b55", "score": "0.5247008", "text": "function powerPelletEaten() {\n if (squares[pacmanCurrentIndex].classList.contains(\"power-pellet\")) {\n // adding 10 points to the score\n score += 10;\n // adding isScared to the ghosts\n ghosts.forEach((ghost) => (ghost.isScared = true));\n // setting scare time to 10 seconds\n setTimeout(unScareGhost, 10000);\n // removing the power pellet class\n squares[pacmanCurrentIndex].classList.remove(\"power-pellet\");\n }\n }", "title": "" } ]
[ { "docid": "f0f8183af6dec4cde7469dcf1af6d54d", "score": "0.6121544", "text": "function Power() {\n}", "title": "" }, { "docid": "6673b415854b609c698ecbfbd85a8422", "score": "0.6056997", "text": "Power() {\n this[_cart].Power();\n this[_cpu].Power();\n // this[_ppu].Power();\n // this[_apu].Power();\n }", "title": "" }, { "docid": "77e3fc354c2b0df38fe047039af311b7", "score": "0.58758605", "text": "function Helicopter() {}", "title": "" }, { "docid": "568072935a389563b71868e9991b806e", "score": "0.57684124", "text": "SEPE() {\n // M and X gotta stay 1\n this.addl('regs.P.setbyte_emulated(regs.P.getbyte_emulated() | regs.TR);');\n }", "title": "" }, { "docid": "5b987bdb5da85a2e7412dd25e3ccc3e2", "score": "0.57416403", "text": "OTPT() {\n this.reg.PC += 2;\n }", "title": "" }, { "docid": "caa3496c8866f89dde7a8aa6feb6185c", "score": "0.5668487", "text": "function superPower() {\n console.log('superPower');\n }", "title": "" }, { "docid": "cacb3fd99a9a08c1251ab5082d8fcefc", "score": "0.562995", "text": "function generatePellet() {\n if (numPellets > 0) {\n appendItem(pelletsSpeed, -3);\n setProperty(pelletsIdentification[pelletsIndex], \"height\", pelletHeight);\n setProperty(pelletsIdentification[pelletsIndex], \"width\", pelletWidth);\n xPellets[pelletsIndex] = xSpaceShip + 11;\n yPellets[pelletsIndex] = ySpaceShip - 10;\n appendItem(canPelletsConnect, true);\n setPosition(pelletsIdentification[pelletsIndex], xPellets[pelletsIndex], yPellets[pelletsIndex]);\n showElement(\"pellet\"+pelletsIndex);\n pelletsIndex++;\n numPellets--;\n setText(\"pelletsLabel\", \"Pellets: \" + numPellets);\n }\n}", "title": "" }, { "docid": "d12a00722cd47a49414a288d5dc79e71", "score": "0.5619947", "text": "function prPS(pg) { \n\tthis.pg = pg; \t// the page in which the machines will operate\n\n\tthis.sx = 1.0; \n\tthis.sy = 1.0; \n\tthis.tx = 0.0; \n\tthis.ty = 0.0; \n}", "title": "" }, { "docid": "29230f26193f4fd96dd4165947c5ea38", "score": "0.561435", "text": "activatePowers() {\n\t\t// TODO\n\t}", "title": "" }, { "docid": "d1eeabcfb273c29a5470286a65e1f55a", "score": "0.5560407", "text": "function setPap(){\n\tif(this.player.health >101 && this.player.energy.regen == 0.9)//this is only created after the other two perks are unlocked\n\t{\n\t\tthis.papMachine = new PerkMachines(\"papMachine\", 100,500)\n\t\tthis.machines.push(this.papMachine)\n\t}\n}", "title": "" }, { "docid": "593f30377bf4bca5270f0956c1ed3139", "score": "0.55150425", "text": "function powerPelletEaten() {\n\t\tif (squares[pacmanCurrentPosition].classList.contains('power-pellet')) {\n\t\t\tscore += 10;\n\t\t\tscoreDisplay.textContent = score;\n\t\t\tghosts.forEach((ghost) => {\n\t\t\t\tghost.isScared = true;\n\t\t\t});\n\t\t\tsetTimeout(makeGhostUnscared(), 10000);\n\t\t\tsquares[pacmanCurrentPosition].classList.remove('power-pellet');\n\t\t}\n\t}", "title": "" }, { "docid": "99a3617a72130a9c4de2579a28f26221", "score": "0.5512347", "text": "function lwiw257400() { return 'pen(\"'; }", "title": "" }, { "docid": "ca4928036606c731b3d91e2278ac787a", "score": "0.5462146", "text": "be(){\n return 2*this.Lp\n }", "title": "" }, { "docid": "a5fc9724e8b8fc073d07236192e160c5", "score": "0.54543334", "text": "PRAM() {\n let mv = this.reg[this.curReg];\n if (typeof mv === 'string') mv = parseInt(mv.padStart(8, '0'), 2);\n process.stdout.write(String.fromCharCode(mv));\n this.reg.PC += 1;\n }", "title": "" }, { "docid": "d53bf5e9c78ceb365d5744d69d35085c", "score": "0.5445268", "text": "changePower() {\n this.power = true;\n }", "title": "" }, { "docid": "0af34a50cd5c462e8793e548eae5458b", "score": "0.5401913", "text": "function lwiw130680() { return 'P\");'; }", "title": "" }, { "docid": "809ecb8d4cd2c66971e81b5da9386ed8", "score": "0.5395198", "text": "function powerUp(descr) {\r\n\tthis.setup(descr);\r\n\r\n}", "title": "" }, { "docid": "febb645ea1e0a91a63790f2c2f9e69fa", "score": "0.53785163", "text": "function HLT(operand){\n\t// If 900 was used, PC will be set to 00. Any cell number may be used as an operand in HLT\n\tdocument.CPU.PC.value = operand;\n\t// Reset the input upon successful halt\n\tresetInput();\n\t// Alert the user\n\talert('Succesful Halt!');\n\treturn 1;\n}", "title": "" }, { "docid": "878579227d5a97b4bae982ce12f5490d", "score": "0.53762066", "text": "function powerPelletEaten () {\r\n\t\t\tif (squares[pacmanCurrentIndex].classList.contains(\"power-pellet\")) {\r\n\t\t\t\tscore += 10;\r\n\t\t\t\ttoWin += 10;\r\n\t\t\t\t//ghosts.forEach(ghost => ghost.isScared = true);\r\n\t\t\t\t//setTimeout(unScareGhosts, 7000);\r\n\t\t\t\tsquares[pacmanCurrentIndex].classList.remove(\"power-pellet\");\r\n\t\t\t\teatlist=eatlist+\"-\";\r\n\t\t\t}\r\n\t\t\tscoreDisplay.innerHTML = score;\r\n\t\t}", "title": "" }, { "docid": "0e6ee2b10f19f4f5ed5fabd7100ff870", "score": "0.5353563", "text": "enterPower(ctx) {\n\t}", "title": "" }, { "docid": "0dd2c4fdc1b8a4291493534ba3f70f39", "score": "0.53285056", "text": "PRAR() {\n let mv = this.reg[this.curReg];\n if (typeof mv === 'string') mv = parseInt(mv.padStart(8, '0'), 2);\n process.stdout.write(String.fromCharCode(mv));\n this.reg.PC += 1;\n }", "title": "" }, { "docid": "b3ee500e6e0582cf1c761ef231e0c6c9", "score": "0.52955097", "text": "constructor(power) {\n this.power = power;\n console.log( `Created a coffee-machine, power: ${power}` );\n }", "title": "" }, { "docid": "b9add88ed355246d25ddcb18647e28f3", "score": "0.52678293", "text": "JPnn() {\n this.r.PC = this.mmu.rw(this.r.PC);\n this.mn(3);\n }", "title": "" }, { "docid": "32ba89ebae53d1a05a2c9e77489ccdcf", "score": "0.5259808", "text": "function p(e,t){var n,r,i=f(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=c(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=c(o.concat(f(t)),512+8*t.length),l(c(a.concat(r),640))}", "title": "" }, { "docid": "cf77a781f08cb6b7b0862fc5cb4bf342", "score": "0.52551264", "text": "function pumpPower(flowRate, totalHeight, efficiency) {\n var pump = new Pump(efficiency / 100);\n var pumpPower = (flowRate * totalHeight) / (75 * (pump.n));\n return parseFloat(pumpPower.toFixed(3));\n}", "title": "" }, { "docid": "bd07b6ea59e498faa6a58caf4bdb9062", "score": "0.5253819", "text": "function JMP(val) {\n PC = val - 1;\n}", "title": "" }, { "docid": "5935cdb650be314273adf8197a701e19", "score": "0.5248858", "text": "function motorPower(value) { sendCommand(`TV ${value}`); }", "title": "" }, { "docid": "244cdba2ce75c63b678bf7fc93847786", "score": "0.52470535", "text": "tick() {\n // Load the instruction register (IR--can just be a local variable here)\n // from the memory address pointed to by the PC. (I.e. the PC holds the\n // index into memory of the instruction that's about to be executed\n // right now.)\n const IR = this.ram.mem[this.PC];\n\n // Debugging output\n //console.log(`${this.PC}: ${IR.toString(2)}`);\n\n // Get the two bytes in memory _after_ the PC in case the instruction\n // needs them.\n\n const operandA = this.ram.read(this.PC + 1);\n const operandB = this.ram.read(this.PC + 2);\n\n let continueNext = true;\n\n // Execute the instruction. Perform the actions for the instruction as\n // outlined in the LS-8 spec.\n switch(IR) {\n\n //ADD\n case 168:\n this.ram.write(operandA, this.alu('ADD', operandA, operandB));\n break;\n\n //DEC\n case 121:\n this.ram.write(operandA, this.alu('DEC', operandA));\n break;\n\n //DIV\n case 171:\n this.ram.write(operandA, this.alu('DIV', operandA, operandB));\n break;\n\n //INC\n case 120:\n this.ram.write(operandA, this.alu('INC', operandA));\n break;\n\n //MUL\n case 170:\n this.ram.write(operandA, this.alu('MUL', operandA, operandB));\n break;\n\n //CMP\n case 160:\n this.alu('CMP', this.ram.read(operandA), this.ram.read(operandB));\n break;\n\n //SUB\n case 169:\n this.ram.write(operandA, this.alu('SUB', operandA, operandB));\n break;\n\n //PRN\n case 67:\n console.log(this.ram.read(operandA));\n break;\n\n //HLT\n case 1:\n this.stopClock();\n break;\n\n //LDI\n case 153:\n this.ram.write(operandA, operandB);\n break;\n\n //CALL\n case 72:\n this.reg[7]--;\n this.ram.write(this.reg[7], this.PC + 2);\n this.PC = this.ram.read(operandA);\n continueNext = false;\n break;\n\n //RET\n case 0b00001001:\n this.PC = this.ram.read(this.reg[7]);\n this.reg[7]++;\n continueNext = false;\n break;\n\n //PUSH\n case 77:\n this.reg[7]--;\n this.ram.write(this.reg[7], this.ram.read(operandA));\n break;\n\n //POP\n case 76:\n this.ram.write(operandA, this.ram.read(this.reg[7]));\n this.reg[7]++;\n break;\n\n //JMP\n case 0b01010000:\n this.PC = this.ram.read(operandA);\n continueNext = false;\n break;\n\n //JEQ\n case 0b01010001:\n if (this.FL === 1) {\n this.PC = this.ram.read(operandA);\n continueNext = false;\n }\n break;\n\n //JNE\n case 0b001010010:\n if (this.FL != 1) {\n this.PC = this.ram.read(operandA);\n continueNext = false;\n }\n break;\n\n //AND\n case 0b10110011:\n this.ram.write(operandA, this.ram.read(operandA) & this.ram.read(operandB));\n break;\n\n //JGT\n case 0b01010100:\n if (this.FL === 2) {\n this.PC = this.ram.read(operandA);\n continueNext = false;\n }\n break;\n\n //JLT\n case 0b01010011:\n if (this.FL === 4) {\n this.PC = this.ram.read(operandA);\n continueNext = false;\n }\n break;\n\n //LD\n case 0b10011000:\n this.ram.write(operandB, this.ram.read(operandA));\n break;\n\n //MOD\n case 0b10101100:\n this.ram.write(operandA, this.alu('MOD', operandA, operandB));\n break;\n\n //NOP\n case 0b00000000:\n break;\n\n //NOT\n case 0b01110000:\n this.ram.write(operandA, ~ this.ram.read(operandA));\n break;\n\n //OR\n case 0b10110001:\n this.ram.write(operandA, this.ram.read(operandA) | this.ram.read(operandB));\n break;\n\n //ST\n case 0b10011010:\n this.ram.write(operandA, this.ram.read(operandB));\n break;\n\n //XOR\n case 0b10110010:\n this.ram.write(operandA, this.ram.read(operandA) ^ this.ram.read(operandB));\n break;\n\n // ### INT\n\n // `INT register`\n\n // Issue the interrupt number stored in the given register.\n\n // This will set the _n_th bit in the `IS` register to the value in the given\n // register.\n\n // Machine code:\n // ```\n // 01001010 00000rrr\n // ```\n\n //INT\n case 0b01001010:\n this.ram.write(operandA, this.ram.read(this.reg[7]));\n this.reg[7]++;\n break;\n\n // ### IRET\n\n // `IRET`\n\n // Return from an interrupt handler.\n\n // The following steps are executed:\n\n // 1. Registers R6-R0 are popped off the stack in that order.\n // 2. The `FL` register is popped off the stack.\n // 3. The return address is popped off the stack and stored in `PC`.\n // 4. Interrupts are re-enabled\n\n // Machine code:\n // ```\n // 00001011\n // ```\n\n\n //IRET\n case 0b00001011:\n this.ram.write(operandA, this.ram.read(this.reg[7]));\n this.reg[7]++;\n break;\n\n\n// ### PRA\n\n// `PRA register` pseudo-instruction\n\n// Print alpha character value stored in the given register.\n\n// Print to the console the ASCII character corresponding to the value in the\n// register.\n\n// Machine code:\n// ```\n// 01000010 00000rrr\n// ```\n\n\n//PRA\ncase 0b01000010:\nthis.ram.write(operandA, this.ram.read(this.reg[7]));\nthis.reg[7]++;\nbreak;\n\n default:\n console.log('error');\n break;\n }\n\n // Increment the PC register to go to the next instruction. Instructions\n // can be 1, 2, or 3 bytes long. Hint: the high 2 bits of the\n // instruction byte tells you how many bytes follow the instruction byte\n // for any particular instruction.\n if (continueNext) {\n let increment = IR.toString(2);\n while (increment.length < 8) increment = \"0\" + increment;\n this.PC = (this.PC + 1) + parseInt(increment.slice(0, 2), 2);\n }\n }", "title": "" }, { "docid": "de17b070f909a226020e21d3b0faa3e2", "score": "0.5243842", "text": "static power (initialPoint, currentPoint) {\n let [a, b] = Ballistics.getSides(initialPoint, currentPoint)\n\n return Math.min(this.maxPower, Math.abs(Math.round(\n Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2))\n )))\n }", "title": "" }, { "docid": "96d482fabfcaf70356c1d63ee5bb0c7a", "score": "0.5230394", "text": "tick() {\n // Load the instruction register (IR--can just be a local variable here)\n // from the memory address pointed to by the PC. (I.e. the PC holds the\n // index into memory of the instruction that's about to be executed\n // right now.)\n\n // !!! IMPLEMENT ME\n const IR = this.ram.read(this.PC);\n\n // Debugging output\n // console.log(`${this.PC}: ${IR.toString(2)}`);\n\n // Get the two bytes in memory _after_ the PC in case the instruction\n // needs them.\n\n // get the next two bytes after the PC to check for instructions\n const operandA = this.ram.read(this.PC + 1);\n const operandB = this.ram.read(this.PC + 2);\n\n // Execute the instruction. Perform the actions for the instruction as\n // outlined in the LS-8 spec.\n\n // !!! IMPLEMENT ME\n switch (IR) {\n // LDI sets the value of a register to an integer\n case LDI:\n // Set the value in a register\n this.reg[operandA] = operandB;\n // this.PC += 3; // Next instruction\n break;\n\n // PRN is a pseudo-instruction that prints the numeric value stored within a register\n case PRN:\n // Retrieve the value of the register\n console.log(this.reg[operandA]);\n // this.PC += 2; // the machine code is two bytes\n break;\n\n // MUL will multiply two registers together using ALU\n case MUL:\n // access ALU method 'MUL'\n this.alu('MUL', operandA, operandB);\n break;\n\n // HLT - halt the CPU (and exit the emulator)\n case HLT:\n // stop the process\n this.stopClock();\n break;\n\n // case PUSH:\n // this.reg[SP]--;\n // this.ram.write(this.reg[SP], this.reg[operandA]);\n // break;\n\n case JMP:\n this.PC = this.reg[operandA]; // set PC to address set in reg\n break;\n\n case CMP:\n this.alu('CMP', operandA, operandB);\n break;\n\n case JEQ:\n if (this.getFlag(FLAG_EQUAL)) {\n this.PC = this.reg[operandA];\n incrementPC = false;\n }\n break;\n\n default:\n console.log('Unknown instruction: ' + IR.toString(2));\n this.stopClock();\n return;\n }\n\n // Increment the PC register to go to the next instruction. Instructions\n // can be 1, 2, or 3 bytes long. Hint: the high 2 bits of the\n // instruction byte tells you how many bytes follow the instruction byte\n // for any particular instruction.\n\n // !!! IMPLEMENT ME\n const instLen = (IR >> 6) + 1;\n this.PC += instLen;\n }", "title": "" }, { "docid": "781733bc21119164e78246736e0aa5df", "score": "0.5222964", "text": "effect() {return player.c.points.mul(7)}", "title": "" }, { "docid": "77337c06375c9b7e2cc059ab12b88793", "score": "0.52184486", "text": "function pow(e) {\n wiper.forEach(function(wiper) {\n wiper.remove();\n });\n\n e.preventDefault();\n }", "title": "" }, { "docid": "30d59a3c576a3933c74a169655908051", "score": "0.52153563", "text": "function JMP(operand){\n\t// Store PC value in memory cell 99\n\tdocument.Memory[\"M99\"].value = \" 0\" + document.CPU.PC.value;\n\t// Set PC to operand\n\tdocument.CPU.PC.value = operand;\n\treturn 0;\n}", "title": "" }, { "docid": "249331959bb2314259565cabe6f13f2b", "score": "0.52022594", "text": "SPC() {\n // TODO: set bounds of max min;\n // TODO: make sure it allows for a little before for terminal running.\n // TODO: need a good memory set for this.\n }", "title": "" }, { "docid": "adae4b9ca640047497f21b88f57d8bc3", "score": "0.5189759", "text": "postrun(){\n\n\t}", "title": "" }, { "docid": "bd7dd142e56634168c20e11da48043ac", "score": "0.518341", "text": "function powerOn(){\n ship.powerOn = 'true';\n}", "title": "" }, { "docid": "9be58e7565abe8ff648828d1595fa672", "score": "0.51707846", "text": "addPower() {\n eval(this.item.power);\n }", "title": "" }, { "docid": "6f1868d55e6e0c0c2ef1135af7e49180", "score": "0.5165637", "text": "function setPowerX (x, action) {\n if (action == 't') {\n return (x - ((frames*data.tileSize)/FRAMES_PER_TURN) - ((frames*data.tileSize)/FRAMES_PER_TURN));\n }\n if (action == 'b') {\n return (x + ((frames*data.tileSize)/FRAMES_PER_TURN) + ((frames*data.tileSize)/FRAMES_PER_TURN));\n }\n return x;\n}", "title": "" }, { "docid": "207da46734a78aebc5f823bb61b673ad", "score": "0.51653737", "text": "effect(){let eff = player.se.points.add(1).pow(2).sub(1)\n\t\t\t if(player.se.points.gte(5)) eff = new Decimal(24).add(player.se.points.sub(4).mul(5))\n\t\t\t return eff}", "title": "" }, { "docid": "7765df60278b0d7411a6605d42b97b60", "score": "0.5163915", "text": "control_jump(){\n\t\tvar power = 15; // sets max power cap \n\t\tthis.jumpPow = (this.jumpPow * 1.95 + power * 0.05) / 2; //caps out at `power`\n\t\tif(this.jumpPow > power)\n\t\t\tthis.jumpPow = power;\n\t}", "title": "" }, { "docid": "ecb2bcd4799f48ed316b1d8e672d5dd1", "score": "0.5162864", "text": "function Power(name) {\n this.name = name;\n this.count = 0;\n this.increment = function() {this.count++;};\n this.decrement = function() {this.count--;};\n }", "title": "" }, { "docid": "909ec12b82d17bc9cf40f7df6e60eac8", "score": "0.5161908", "text": "exitPower(ctx) {\n\t}", "title": "" }, { "docid": "de3217f5876ce90fbf14c9947f8e245a", "score": "0.51604927", "text": "function powerUp () {\n console.log(\"power up\");\n isPowered = true;\n pfio.digital_write(0,1);\n}", "title": "" }, { "docid": "8b4224342062164ef98d2d5bb904d175", "score": "0.51601166", "text": "function lwiw293040() { return ' 1)'; }", "title": "" }, { "docid": "a240e8e49a42a5dfe50c49d28d2580a8", "score": "0.5145574", "text": "function sting2Kill(w){\n var stings = w*8.666666667\n console.log(\"It would take a bee \"+stings+\" stings to kill this animal.\");\n}", "title": "" }, { "docid": "9687323879918e809fa42f53291b4240", "score": "0.5138833", "text": "function MSIRP(a, state) {\n var stack = state.stack;\n var d = stack.pop() / 64;\n var pi = stack.pop();\n var p = state.z1[pi];\n var rp0 = state.z0[state.rp0];\n var fv = state.fv;\n var pv = state.pv;\n\n fv.setRelative(p, rp0, d, pv);\n fv.touch(p);\n\n if (exports.DEBUG) {\n console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n }\n\n state.rp1 = state.rp0;\n state.rp2 = pi;\n if (a) {\n state.rp0 = pi;\n }\n }", "title": "" }, { "docid": "2cadb33f7d56da7421e0cf601b740e8e", "score": "0.5133036", "text": "function newPower(e, my){\n\tlet myprefix = getmyID(my);\n\tlet myE = myprefix + e;\n\t//console.log(\"myE is \" + myE);\n\t//bfs lets me return early from ButtonFlagSetter and debug/add features\n\tlet bfs = \"\";\n\tlet cbs = \"\";\n\t//console.log(\"hello missy the value of boolean is\" + ButtonTruths[e]);\nif(BtnObjSuprArray[my][e] == false){\n\tif(myPoints <= 0){ console.log(\"no points\"); return; }\t\n\tif(MITOsuperArray[my][e] == true) {\n\t\tBtnObjSuprArray[my][e] = true;\n\t\tif(my <= 2) {\n\t\tbfs = ButtonFlagSetter(e, my);\n\t\tdocument.getElementById(myE).style.background = \"yellow\";\n\t\tpointUsed();\n\t\tPasser = getMyArray(e, my);\n\t\tLineLighter(Passer, BtnObjSuprArray[my][e], myprefix);\n\t\t}\n\t\telse if (my <= 5){\n\t\t\tbfs = bfsTypeTwo(e, my);\n\t\t\tdocument.getElementById(myE).style.background = \"yellow\";\n\t\t\tpointUsed();\n\t\t\tPasser = getMyArray(e, my);\n\t\t\tLineLighter(Passer, BtnObjSuprArray[my][e], myprefix);\n\t\t}\n\t\n\t}\n\telse{ console.log(e + \" could not be turned on before its parent.\"); }\n\n}\nelse if(BtnObjSuprArray[my][e] == true){\n\tif(LockedButtons[my][ButtonMasterArray[e]]){\n\t\tconsole.log('This button is LOCKED!');\n\t\treturn;\n\t}\n\n\tif(document.getElementById(myE).style.background == \"yellow\"){\n\t\tconsole.log('that button was yellow!');\n\t}\n\t//cbs function checks if childs of a button are off, returning true if they're off, false if even 1 is on\n\tif(my <= 2){\n\t\tif(AreMyChildsOff(e, my) == true) { \n\t\t\tdocument.getElementById(myE).style.background = \"radial-gradient(grey 10%, black )\";\n\t\t\tpointReturned();\n\t\t\tBtnObjSuprArray[my][e] = false;\n\t\t\tbfs = ButtonFlagSetter(e, my);\n\t\t\tPasser = getMyArray(e, my);\n\t\t\tLineLighter(Passer, BtnObjSuprArray[my][e], myprefix);\n\t\t\t}\n\t\t\telse { console.log(\"childs were not off; could not turn off button.\"); }\n\t}\n\t// copy same block code for my 3-5\n\telse if(my <= 5){\n\t\tif(AMCoffTwo(e, my) == true){\n\t\tdocument.getElementById(myE).style.background = \"radial-gradient(grey 10%, black )\";\n\t\tpointReturned();\n\t\tBtnObjSuprArray[my][e] = false;\n\t\tbfs = bfsTypeTwo(e, my);\n\t\tPasser = getMyArray(e, my);\n\t\tLineLighter(Passer, BtnObjSuprArray[my][e], myprefix);\n\t\t}\n\t\t\n\t}\n\t\n}\nelse {\n\tconsole.log(\"error with boolean in ButtonTruths.\");\n}\n}", "title": "" }, { "docid": "fe395514b82fcb7c7eddddc5244510df", "score": "0.5116171", "text": "function b23_P_T(P)\r\n\t{\r\n\t\treturn 572.54459862746 + Math.pow((P-13.91883977887)/0.0010192970039326, 0.5);\r\n\t}", "title": "" }, { "docid": "b78f673314f6f71d01e374a2b955a152", "score": "0.51131445", "text": "function regla321()\r\n{\r\n\t//tomamos como referencia el metal\r\n\tpMetalIdeal = pMetal;\r\n\tpCristalIdeal = (pMetalIdeal/3)*2;\r\n\tpDeuterioIdeal = pMetalIdeal/3;\r\n}", "title": "" }, { "docid": "9f613cdad574dd5c1b7833d23a949686", "score": "0.5110117", "text": "function power(){\r\n if (ship.powerup !== false){\r\n //trishot powerup\r\n if (ship.powerup === 'triShot'){\r\n textSize(15);\r\n fill(255);\r\n if (ship.powerup !== false){\r\n text(\"Tri-Shot Activated!\", width/2, height - 50);\r\n } else {\r\n clear();\r\n }\r\n setTimeout(function(){\r\n ship.powerup = false;\r\n }, 10000);\r\n\r\n } else {\r\n var powerupText = \"Press down arrow to activate \" + ship.powerup + \"!\";\r\n textSize(20);\r\n fill(255);\r\n\r\n if (ship.powerup !== false){\r\n text(powerupText, width/2, height/1.2);\r\n } else {\r\n clear();\r\n }\r\n\r\n //bomb powerup\r\n if (ship.powerup === 'bomb') {\r\n if (keyCode === DOWN_ARROW){\r\n ship.powerup = false;\r\n for (var i = rock.length - 1; i >= 0; i--){\r\n handlePoints(rock[i].p);\r\n explode(rock[i].pos.x, rock[i].pos.y, 40);\r\n rock[i].break();\r\n rock.splice(i, 1)\r\n }\r\n }\r\n }\r\n\r\n //shield powerup\r\n if (ship.powerup === 'shield'){\r\n if (keyCode === DOWN_ARROW){\r\n ship.powerup = false;\r\n ship.shield = true;\r\n ship.specShield = true;\r\n setTimeout(function(){\r\n ship.shield = false;\r\n ship.specShield = false;\r\n }, 7500);\r\n }\r\n }\r\n\r\n //freeze powerup\r\n if (ship.powerup === 'freeze'){\r\n\r\n if (keyCode === DOWN_ARROW){\r\n ship.powerup = false;\r\n limiter = 0.3;\r\n setTimeout(function(){\r\n limiter = 4;\r\n console.log('!');\r\n for (var b = rock.length - 1; b >= 0; b--){\r\n rock[b].vel.add(0.7);\r\n rock[b].vel.mult(2);\r\n if (rock[b].size === 'small'){\r\n rock[b].vel.mult(1.25);\r\n } if (rock[b].size === 'tiny'){\r\n rock[b].vel.mult(1.5);\r\n }\r\n }\r\n }, 5000);\r\n }\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "763ae7fb27179d281f7e319425469d87", "score": "0.5098363", "text": "function Pellet( ) {\n\tthis._init( );\n}", "title": "" }, { "docid": "f81aac075655073192fef80b298f6c02", "score": "0.5093947", "text": "function MSIRP(a, state) {\n const stack = state.stack;\n const d = stack.pop() / 64;\n const pi = stack.pop();\n const p = state.z1[pi];\n const rp0 = state.z0[state.rp0];\n const fv = state.fv;\n const pv = state.pv;\n\n fv.setRelative(p, rp0, d, pv);\n fv.touch(p);\n\n if (exports.DEBUG) console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n\n state.rp1 = state.rp0;\n state.rp2 = pi;\n if (a) state.rp0 = pi;\n}", "title": "" }, { "docid": "1f488a3c9fddb72094cc6bd8a7e88037", "score": "0.5091173", "text": "function power(num, exponent) {\r\n // code starts here\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n // code ends here\r\n}", "title": "" }, { "docid": "d5cc22d45eefbf17c5ca94ea6a6fb7a8", "score": "0.5088041", "text": "function lwiw101640() { return ')*10'; }", "title": "" }, { "docid": "8ff28d338b30e6c7565041678dc5c3d7", "score": "0.50817066", "text": "function doHaltAction()\r\n{\r\n for(var index in buttons)\r\n {\r\n if( buttons[index].name == \"power\" )\r\n {\r\n buttons[index].swapFunct();\r\n }\r\n else if ( buttons[index].name == \"halt\" || \r\n buttons[index].name.indexOf(\"step\") != -1)\r\n {\r\n buttons[index].enabled = false;\r\n }\r\n }\r\n \r\n simBtnHaltOS_click();\r\n}", "title": "" }, { "docid": "e2598519791c275878fae48d1a93c73b", "score": "0.5080036", "text": "autoPraise(ticksPerCycle) {\n if (this.model.auto.praise && game.bld.get('temple').val > 0) {\n \t var currFaith = gamePage.resPool.get('faith').value;\n \t var maxFaith = gamePage.resPool.get('faith').maxValue;\n \t // console.log( gamePage.resPool.get('faith'));\n if ((currFaith > 10000) || (currFaith >= 0.9 * maxFaith)) {\n game.religion.praise();\n }\n }\n }", "title": "" }, { "docid": "d30e5bcfb62af28fb1f34d9d7d3f4c73", "score": "0.50790125", "text": "function MSIRP(a, state) {\n var stack = state.stack;\n var d = stack.pop() / 64;\n var pi = stack.pop();\n var p = state.z1[pi];\n var rp0 = state.z0[state.rp0];\n var fv = state.fv;\n var pv = state.pv;\n\n fv.setRelative(p, rp0, d, pv);\n fv.touch(p);\n\n if (DEBUG) console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n\n state.rp1 = state.rp0;\n state.rp2 = pi;\n if (a) state.rp0 = pi;\n}", "title": "" }, { "docid": "d30e5bcfb62af28fb1f34d9d7d3f4c73", "score": "0.50790125", "text": "function MSIRP(a, state) {\n var stack = state.stack;\n var d = stack.pop() / 64;\n var pi = stack.pop();\n var p = state.z1[pi];\n var rp0 = state.z0[state.rp0];\n var fv = state.fv;\n var pv = state.pv;\n\n fv.setRelative(p, rp0, d, pv);\n fv.touch(p);\n\n if (DEBUG) console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n\n state.rp1 = state.rp0;\n state.rp2 = pi;\n if (a) state.rp0 = pi;\n}", "title": "" }, { "docid": "d30e5bcfb62af28fb1f34d9d7d3f4c73", "score": "0.50790125", "text": "function MSIRP(a, state) {\n var stack = state.stack;\n var d = stack.pop() / 64;\n var pi = stack.pop();\n var p = state.z1[pi];\n var rp0 = state.z0[state.rp0];\n var fv = state.fv;\n var pv = state.pv;\n\n fv.setRelative(p, rp0, d, pv);\n fv.touch(p);\n\n if (DEBUG) console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n\n state.rp1 = state.rp0;\n state.rp2 = pi;\n if (a) state.rp0 = pi;\n}", "title": "" }, { "docid": "07a44affd9c9a099d3940e67a70b4cb8", "score": "0.50783944", "text": "effect() {let inator = new Decimal(0)\n\t\t\t\t\t for (let x = 10; x <= 30; x += 10) for (let y = 1; y <= 3; y++) {\n\t\t\t\t\t var z = x + y\n\t\t\t if(hasUpgrade(\"cbb\", z)) inator = inator.add(1)\n\t\t\t\t\t }\n\t\t\t return new Decimal(1.1).pow(inator)}", "title": "" }, { "docid": "a2aec99c5ab88c47197f8646269c1f84", "score": "0.50776786", "text": "function setPlugPower(name, on, retries) {\n // if on == true, turn on, on == false, turn off\n if (retries == 0) { // Retries exhasted, just fall through.\n if (DEBUG) { console.log(\">>Retries Failed for \" + name); }\n return;\n }\n plugs.forEach((d) => {\n if (d.name == name) {\n var tp = new TPLink.Client();\n tp.getDevice({host: d.ip}).then((device) => {\n device.setPowerState(on, sendOptions).catch((err) => {\n if (DEBUG) { console.log(err); }\n if (DEBUG) { console.log(\">>>Failed to change state for \" + name + \", Retries = \" + retries.toString()); }\n setTimeout(setPlugPower, config.timeout, name, on, retries -1);\n });\n }).catch((err) => {\n if (DEBUG) { console.log(\"<\" + err.errno + \">\"); }\n if (err.errno == \"EHOSTUNREACH\" || err == \"Error: TCP Timeout\") {\n if (DEBUG) { console.log(\">>Failed to connect to \" + name + \", Retries = \" + retries.toString()); }\n setTimeout(setPlugPower, config.timeout, name, on, retries - 1);\n } else {\n if (DEBUG) { console.log(\"---->\" + err); }\n }\n });\n }\n });\n}", "title": "" }, { "docid": "ce6e5cc44fef6c3e78f55b654f90a50e", "score": "0.5048328", "text": "function makePowerUp(numPowers) {\n \n for(var i=0; i<numPowers; i++){\n var pu = {\n x : random(0,canvas.width),\n y : random(0,canvas.height),\n xVel : random(-2,2),\n yVel : random(-2,2),\n r : 20,\n colR : 0,\n colG : 255,\n colB : 0,\n colA : 1\n\n }; // close var makePowerUps\n // create particles (powerUps options)\n powerUps.push(pu);\n } // close for loop\n\n} // close function powerUps", "title": "" }, { "docid": "d299c6a5171210a6424ddf3a8f10e4f1", "score": "0.50482976", "text": "function MSIRP(a, state) {\n\t var stack = state.stack;\n\t var d = stack.pop() / 64;\n\t var pi = stack.pop();\n\t var p = state.z1[pi];\n\t var rp0 = state.z0[state.rp0];\n\t var fv = state.fv;\n\t var pv = state.pv;\n\n\t fv.setRelative(p, rp0, d, pv);\n\t fv.touch(p);\n\n\t if (exports.DEBUG) { console.log(state.step, 'MSIRP[' + a + ']', d, pi); }\n\n\t state.rp1 = state.rp0;\n\t state.rp2 = pi;\n\t if (a) { state.rp0 = pi; }\n\t}", "title": "" }, { "docid": "1dfb79928757354619d4d9ca2b0dfdfc", "score": "0.50430113", "text": "function pianoSetup() {\n //PIANO\n for (var i = 0; i < 32; i++) {\n for (var j = 9; j < 17; j++) {\n PS.border(i, j, 0);\n }\n }\n\n for (var i = 0; i < 32; i++) {\n PS.visible(i, 8, false);\n PS.border(i, 9, {\n top: 2,\n left: 0,\n bottom: 0,\n right: 0\n });\n }\n\n for (var i = 9; i < 13; i++) {\n PS.border(2, i, {\n top: 0,\n left: 0,\n bottom: 0,\n right: 2\n });\n PS.border(5, i, {\n top: 0,\n left: 0,\n bottom: 0,\n right: 2\n });\n PS.border(11, i, {\n top: 0,\n left: 0,\n bottom: 0,\n right: 2\n });\n PS.border(14, i, {\n top: 0,\n left: 0,\n bottom: 0,\n right: 2\n });\n PS.border(17, i, {\n top: 0,\n left: 0,\n bottom: 0,\n right: 2\n });\n }\n\n for (var i = 9; i < 17; i++) {\n for (var j = 2; j < 24; j += 3) {\n PS.border(j, i, {\n right: 2\n });\n }\n PS.border(8, i, {\n right: 2\n });\n\n PS.border(20, i, {\n right: 2\n });\n PS.border(23, i, {\n right: 2\n });\n }\n\n //C\n for (var i = 0; i < 2; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [0]);\n }\n }\n for (var i = 14; i < 17; i++) {\n PS.data(2, i, [0]);\n }\n\n //C#\n for (var i = 2; i < 4; i++) {\n for (var j = 9; j < 14; j++) {\n PS.color(i, j, PS.COLOR_BLACK);\n PS.data(i, j, [0.5]);\n }\n }\n\n //D\n for (var i = 4; i < 5; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [1]);\n }\n }\n for (var i = 3; i < 6; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [1]);\n }\n }\n\n //D#\n for (var i = 5; i < 7; i++) {\n for (var j = 9; j < 14; j++) {\n PS.color(i, j, PS.COLOR_BLACK);\n PS.data(i, j, [1.5]);\n }\n }\n\n //E\n for (var i = 7; i < 9; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [2]);\n }\n }\n for (var i = 6; i < 9; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [2]);\n }\n }\n\n //F\n for (var i = 9; i < 11; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [3]);\n }\n }\n for (var i = 9; i < 12; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [3]);\n }\n }\n\n //F#\n for (var i = 11; i < 13; i++) {\n for (var j = 9; j < 14; j++) {\n PS.color(i, j, PS.COLOR_BLACK);\n PS.data(i, j, [3.5]);\n }\n }\n\n //G\n for (var j = 9; j < 14; j++) {\n PS.data(13, j, [4]);\n }\n for (var i = 12; i < 15; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [4]);\n }\n }\n\n //G#\n for (var i = 14; i < 16; i++) {\n for (var j = 9; j < 14; j++) {\n PS.color(i, j, PS.COLOR_BLACK);\n PS.data(i, j, [4.5]);\n }\n }\n\n //A\n for (var j = 9; j < 17; j++) {\n PS.data(16, j, [5]);\n }\n for (var i = 15; i < 18; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [5]);\n }\n }\n\n //A#\n for (var i = 17; i < 19; i++) {\n for (var j = 9; j < 14; j++) {\n PS.color(i, j, PS.COLOR_BLACK);\n PS.data(i, j, [5.5]);\n }\n }\n\n //B\n for (var i = 19; i < 21; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [6]);\n }\n }\n for (var i = 18; i < 21; i++) {\n for (var j = 14; j < 17; j++) {\n PS.data(i, j, [6]);\n }\n }\n\n //C\n for (var i = 21; i < 24; i++) {\n for (var j = 9; j < 17; j++) {\n PS.data(i, j, [7]);\n }\n }\n\n //RECORDING AREA\n PS.visible(24, 9, false);\n PS.glyph(25, 9, \"R\");\n PS.glyph(26, 9, \"E\");\n PS.glyph(27, 9, \"C\");\n PS.glyph(28, 9, \"O\");\n PS.glyph(29, 9, \"R\");\n PS.glyph(30, 9, \"D\");\n PS.visible(31, 9, false);\n\n for (var i = 24; i < 32; i++) {\n for (var j = 10; j < 12; j++) {\n PS.color(i, j, PS.COLOR_RED);\n }\n }\n\n for (var j = 10; j < 12; j++) {\n PS.border(25, j, { right: 1 });\n PS.border(27, j, { right: 1 });\n PS.border(29, j, { right: 1 });\n }\n\n PS.visible(24, 12, false);\n PS.glyph(25, 12, \"T\");\n PS.glyph(26, 12, \"R\");\n PS.glyph(27, 12, \"A\");\n PS.glyph(28, 12, \"C\");\n PS.glyph(29, 12, \"K\");\n PS.glyph(30, 12, \"S\");\n PS.visible(31, 12, false);\n\n for (var i = 24; i < 32; i++) {\n for (var j = 13; j < 15; j++) {\n PS.color(i, j, PS.COLOR_GREEN);\n }\n }\n\n for (var j = 13; j < 15; j++) {\n PS.border(25, j, { right: 1 });\n PS.border(27, j, { right: 1 });\n PS.border(29, j, { right: 1 });\n }\n\n PS.visible(24, 15, false);\n PS.visible(25, 15, false);\n PS.glyph(26, 15, \"P\");\n PS.glyph(27, 15, \"L\");\n PS.glyph(28, 15, \"A\");\n PS.glyph(29, 15, \"Y\");\n PS.visible(30, 15, false);\n PS.visible(31, 15, false);\n\n for (var i = 24; i < 32; i++) {\n for (var j = 16; j < 17; j++) {\n PS.color(i, j, PS.COLOR_BLUE);\n PS.data(i, j, [\"PALL\"]);\n }\n }\n\n //R1\n for (var i = 24; i < 26; i++) {\n for (var j = 10; j < 12; j++) {\n PS.data(i, j, [\"R1\"]);\n }\n }\n\n //R2\n for (var i = 26; i < 28; i++) {\n for (var j = 10; j < 12; j++) {\n PS.data(i, j, [\"R2\"]);\n }\n }\n\n //R3\n for (var i = 28; i < 30; i++) {\n for (var j = 10; j < 12; j++) {\n PS.data(i, j, [\"R3\"]);\n }\n }\n\n //R4\n for (var i = 30; i < 32; i++) {\n for (var j = 10; j < 12; j++) {\n PS.data(i, j, [\"R4\"]);\n }\n }\n\n //P1\n for (var i = 24; i < 26; i++) {\n for (var j = 13; j < 16; j++) {\n PS.data(i, j, [\"P1\"]);\n }\n }\n\n //P2\n for (var i = 26; i < 28; i++) {\n for (var j = 13; j < 16; j++) {\n PS.data(i, j, [\"P2\"]);\n }\n }\n\n //P3\n for (var i = 28; i < 30; i++) {\n for (var j = 13; j < 16; j++) {\n PS.data(i, j, [\"P3\"]);\n }\n }\n\n //P4\n for (var i = 30; i < 32; i++) {\n for (var j = 13; j < 16; j++) {\n PS.data(i, j, [\"P4\"]);\n }\n }\n}", "title": "" }, { "docid": "572c465549a55c8f10c3d8e3455dbec9", "score": "0.50406504", "text": "function pow(p) {\n if (p) {\n return math.pow(10, p);\n } else {\n return 1;\n }\n }", "title": "" }, { "docid": "1db9449fa59c32d67fec1c0ebb290f43", "score": "0.5039636", "text": "static adjustPower (power, wind) {\n return (power * Ballistics.powerMultiplier) + (wind * Ballistics.windMultiplier)\n }", "title": "" }, { "docid": "2095a6cf1bb2bd73f88963f983ee85de", "score": "0.5039497", "text": "function power(data, x, p, po, prevt) {\n\t\n\t\tvar a1 = data;\n\t\t$.get(\"calculate.php\", {arg1: a1, op: \"*\", arg2: x}, function( data ) {\n\t\t\tif (jQuery.isNumeric(data) == false) {\n\t\t\t\tthrow new Error(\"error multiplying in power()\");\n\t\t\t}\n\t\t\tif (p == 2) {\n\t\t\t\t// we then want to calculate the factorial of p's original value\n\t\t\t\t// pow is needed in factorial() to divide pow with the factorial\n\t\t\t\t// x is needed in factorial() to draw the point to the canvas\n\t\t\t\t// the last argument is left out if the previous term is not known\n\t\t\t\tsave_result(x+\"pow\"+po, jQuery.trim(data));\n\t\t\t\tfactorial(po, po, data, x, po, prevt);\n\t\t\t} else {\n\t\t\t\tpower(data, x, p-1, po, prevt);\n\t\t\t}\n\t\t}); \n\t\n}", "title": "" }, { "docid": "eb14da59c0ad78c88e49f270b9472553", "score": "0.5032187", "text": "effect() { // Calculate bonuses from the upgrade. Can return a single value or an object with multiple values\n let ret = player.points.plus(1).log10().cbrt().plus(1)\n if (hasUpgrade(\"w\", 22)) ret = ret.pow(2)\n //ret = softcap(\"E3\", ret)\n return ret;\n }", "title": "" }, { "docid": "65d583e7c95c9840e8c0ccf799d70e53", "score": "0.50275034", "text": "LPtoDP(int, int, int) {\n\n }", "title": "" }, { "docid": "b426f712894ea2dcc575ca15469fca2e", "score": "0.50220406", "text": "function RTI() {\n P = pull();\n PC = pull() | pull() << 8;\n}", "title": "" }, { "docid": "9dbb3451833ed68ffb2588a67a76c86c", "score": "0.5021872", "text": "function lwiw132000() { return ' xo.'; }", "title": "" }, { "docid": "74ccdeb5a7325f7ba8671cd95ab21cd4", "score": "0.501913", "text": "function requestPower() {\n let base = id(\"base-in\").value;\n let exponent = id(\"exponent-in\").value;\n\n // TODO: Make a request to this endpoint!\n }", "title": "" }, { "docid": "f4aace66be004ae95d90ffdb07820976", "score": "0.5016337", "text": "function expToPW(pwe) {\n // I guess I could use repeated squaring to do this efficiently\n // But looking it up in an array is certainly faster\n return pws[pwe + 1];\n}", "title": "" }, { "docid": "aca236272ae445dad65fd0a3822fdd10", "score": "0.5010827", "text": "function startPS() {\n\tpress(\"GUI r\");\n\tdelay(500);\n\ttype(\"powershell\\n\")\n}", "title": "" }, { "docid": "254d6c7beb94d1ec27540588c4b6ad81", "score": "0.50064504", "text": "function Trigger(power:float) {\n\tpowerModifier = power;\n\ttimer += 0.01;\n}", "title": "" }, { "docid": "021a98347d569d0d2c39c1af68586f37", "score": "0.50019485", "text": "function lwiw245520() { return '; '; }", "title": "" }, { "docid": "b2b6de24b9de8ac73c43b53f7f9fde6c", "score": "0.49921387", "text": "function init() {\r\n\r\n // Draw bottom border of tv.\r\n graphics.fillStyle = \"gray\";\r\n graphics.fillRect(0, height - height / 10, width, height / 10);\r\n\r\n // Create power button and place at bottom of tv.\r\n let btnY = (height - height / 10) + (height / 20);\r\n let btnX = width / 2;\r\n let btnW = width / 18;\r\n let btnH = height / 10;\r\n let btn = new PowerOn(btnX, btnY, btnW, btnH, \r\n function() { \r\n if (btn.isOff == true) {\r\n startUp();\r\n btn.paint();\r\n btn.isOff = false;\r\n } else {\r\n shutDown();\r\n btn.paint();\r\n btn.isOff = true;\r\n }\r\n });\r\n\r\n // Paint the button.\r\n btn.paint();\r\n}", "title": "" }, { "docid": "b2b167092f42c52807718132c3046542", "score": "0.49911967", "text": "control_increasePow(){\n\t\tthis.fireAdj = true;\n\t\tvar power = 18;\n\t\tthis.firePow = (this.firePow * 1.97 + power * 0.03) / 2;\n\t}", "title": "" }, { "docid": "a3e35e73d27360226d6a8816ecafe17f", "score": "0.49871856", "text": "power(on) {\n\t\tthis.data.on = !!on;\n\t}", "title": "" }, { "docid": "31979d59021f6766883ebdb69163f679", "score": "0.49862897", "text": "SEPN() {\n this.addl('regs.P.setbyte_native(regs.P.getbyte_native() | regs.TR);');\n this.addl('if (regs.P.X) { regs.X &= 0xFF, regs.Y &= 0xFF; }');\n }", "title": "" }, { "docid": "825e94308ae26dcb790e682a0afb572f", "score": "0.49815232", "text": "function pumpOn() {\n console.log(\"pump is on!\");\n if (isPi) {\n if (!pumpIsOn) {\n pumpIsOn = true;\n pump.value(true);\n }\n }\n}", "title": "" }, { "docid": "842f77373d1a9b021bb4a31ad1c32b28", "score": "0.49784124", "text": "effect() { // Calculate bonuses from the upgrade. Can return a single value or an object with multiple values\n let ret = player[this.layer].points.add(2).pow(0.8)\n if (hasUpgrade(\"study\", 22)) ret = ret.pow(1.2)\n ret = ret.max(1.5)\n ret = softcap(\"W1\", ret)\n return ret;\n }", "title": "" }, { "docid": "261d6f0a1f567404675cc13ecbdfb6bb", "score": "0.49767318", "text": "DPtoLP(int, int, int) {\n\n }", "title": "" }, { "docid": "c80654db6e76b0a13055890e8fccdbb7", "score": "0.49645287", "text": "function lwiw192720() { return 'pe'; }", "title": "" }, { "docid": "30b7c90f6a99df177d864ddb84076979", "score": "0.49621937", "text": "function drawBuildingPowerSymbol(pos) {\n buildings[pos].drawPowerSymbol();\n}", "title": "" }, { "docid": "c3dea62c98e065ca9dccfb9fd97a2024", "score": "0.49583828", "text": "function power(){\n for (const tipo of armas){\n tipo.potenciar();\n }\n}", "title": "" }, { "docid": "af55b51ba3bb21994e7fc74b6e67bc46", "score": "0.49576288", "text": "function drawPower(elem){\r\n ctx.beginPath();\r\n ctx.rect(elem.x, elem.y, tamRect, tamRect);\r\n ctx.fillStyle = colorRandom();\r\n ctx.strokeStyle = colorRandom();\r\n ctx.fill();\r\n ctx.stroke();\r\n}", "title": "" }, { "docid": "e381ba535480a7262999cd516148dd54", "score": "0.4957193", "text": "function Powerups(descr) {\n\t// Common inherited setup logic from Entity\n\tthis.setup(descr);\n\t// Default sprite and scale, if not otherwise specified\n\tthis.scale = this.scale || 1;\n}", "title": "" }, { "docid": "b6e312709c807f68df8f91eb8806b167", "score": "0.49568406", "text": "function PowerUp() {\r\n this.x = 640,\r\n this.y = 40,\r\n this.radius = ballRadius,\r\n this.fill = powerUpColor,\r\n this.vx = ballXSpeed/2,\r\n this.vy = 0,\r\n this.visible = true;\r\n}", "title": "" }, { "docid": "6848165e1664f66bd604d4e48fae3b83", "score": "0.49512267", "text": "updatePowerStatus() {}", "title": "" }, { "docid": "f1e5f50658b1df4779078a3e967adf50", "score": "0.49474713", "text": "function Pd(){}", "title": "" }, { "docid": "f66044708b400983120a56e4c5b335ef", "score": "0.49459776", "text": "function NPUSHW(state) {\n let ip = state.ip;\n const prog = state.prog;\n const stack = state.stack;\n const n = prog[++ip];\n\n if (exports.DEBUG) console.log(state.step, 'NPUSHW[]', n);\n\n for (let i = 0; i < n; i++) {\n let w = (prog[++ip] << 8) | prog[++ip];\n if (w & 0x8000) w = -((w ^ 0xffff) + 1);\n stack.push(w);\n }\n\n state.ip = ip;\n}", "title": "" }, { "docid": "52f2a2f2e76acfdaf5cf614ac99eb746", "score": "0.4939849", "text": "function lwiw79200() { return 'MP%\")'; }", "title": "" }, { "docid": "8b501b6b5ad5cd33af53634fe205c2e6", "score": "0.49367213", "text": "function punchLeftProcessor(char, charb, pos, posb){\n //coups donnés à gauche\n if(char.smashOk == true\n && char.detectL == true){\n //nouvelle fonction garde\n if (charb.arrGarde == true){\n garde(charb);\n charb.padDirection = false;\n charb.vraimentgarde = true;\n }\n if(charb.vraimentgarde == false && char.energy > 0){\n punched(charb, char);\n flashLeft(char, posb);\n if(pos.jumping && comboDisplay == 0){\n //\n pos.pY_velocity -= 1 * gamespeed * punchedSpeed;\n posb.pY_velocity -= 1 * gamespeed * punchedSpeed;\n posb.pX_velocity -= 2 * gamespeed * punchedSpeed;}\n if(comboDisplay == 0){\n posb.pX_velocity -= 0.4 * gamespeed * punchedSpeed;}\n jaugePlus(char, charb);\n }\n else{\n if (char.downState != charb.downState && char.energy > 0){\n punched(charb, char);\n flashLeft(char, posb);\n if(comboDisplay == 0){\n posb.pX_velocity -= 0.4 * gamespeed * punchedSpeed;\n }\n jaugePlus(char, charb);\n } \n else{\n swing8.play();\n charb.blockedAnimation = true;\n }\n }\n }\n}", "title": "" }, { "docid": "413f49fde4fe2a0d5907023a219d4065", "score": "0.49350616", "text": "function raiseList(list, p) {\n\tvar newList = [];\n\tfor (var a = 0; a < list.length; a++) {\n\t\tnewList[a] = Math.pow(list[a], p);\n }\n\treturn newList;\n}", "title": "" }, { "docid": "5b05cb5e64c324a57c4f83e001195bc1", "score": "0.4933851", "text": "function potegaX(liczba,potega) {\n let wynikPotegi = 1;\n for (let i = 0; i < potega; i++) {\n wynikPotegi *= liczba;\n }\n return wynikPotegi;\n}", "title": "" }, { "docid": "0a4f722c89a91ffbc81afd80c8b997ce", "score": "0.49323368", "text": "function pRPS() {\n if (whatAmI == \"P1\") {\n p1RPS();\n }\n if (whatAmI == \"P2\") {\n p2RPS();\n }\n }", "title": "" }, { "docid": "b74a50827f4dd36bc9ef6a4071d49f10", "score": "0.49273193", "text": "BLANK() {\n // this.alu('INC', SP);\n this.reg.PC++;\n }", "title": "" }, { "docid": "5c65581f047e50d5dd5cd4ed064fe183", "score": "0.492686", "text": "powerOn() {\n if (this.powerMode != 'on' && this.power) {\n this.powerMode = 'on'\n console.log('Powered On!');\n } else {\n throw new Error('Cannot Power On');\n }\n }", "title": "" }, { "docid": "2d1aed1cd1cc8b80d65adc4f2e38d1a6", "score": "0.49242052", "text": "produccion(nivel){ return 25*nivel }", "title": "" } ]
67d8e6df167258068163e5cd25939608
Returns the value from the range [`from`; `to`] that satisfies `pred` and is closest to `from`. Assumes that at least `to` satisfies `pred`.
[ { "docid": "ab34ca03ccb52dfc1f0d787ae6bab56f", "score": "0.702094", "text": "function findFirst(pred, from, to) {\n\t for (;;) {\n\t if (Math.abs(from - to) <= 1) { return pred(from) ? from : to }\n\t var mid = Math.floor((from + to) / 2)\n\t if (pred(mid)) { to = mid }\n\t else { from = mid }\n\t }\n\t}", "title": "" } ]
[ { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e58d32de63d95a7babc91d8ed6920b01", "score": "0.7175556", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n}", "title": "" }, { "docid": "e7d2e9f12fa1118aeceb2cc241196c76", "score": "0.7159562", "text": "function findFirst(pred, from, to) {\n for (;;) {\n if (Math.abs(from - to) <= 1) { return pred(from) ? from : to }\n var mid = Math.floor((from + to) / 2)\n if (pred(mid)) { to = mid }\n else { from = mid }\n }\n}", "title": "" }, { "docid": "08e9c41bfb262dcb87e15674493016aa", "score": "0.7149884", "text": "function findFirst(pred, from, to) {\n for (;;) {\n if (Math.abs(from - to) <= 1) { return pred(from) ? from : to }\n var mid = Math.floor((from + to) / 2);\n if (pred(mid)) { to = mid; }\n else { from = mid; }\n }\n}", "title": "" }, { "docid": "08e9c41bfb262dcb87e15674493016aa", "score": "0.7149884", "text": "function findFirst(pred, from, to) {\n for (;;) {\n if (Math.abs(from - to) <= 1) { return pred(from) ? from : to }\n var mid = Math.floor((from + to) / 2);\n if (pred(mid)) { to = mid; }\n else { from = mid; }\n }\n}", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "a69bd31e0b49ba14ee260f6cf5f2e762", "score": "0.711443", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }", "title": "" }, { "docid": "b673c1d2c3e60d15d177185ddd37fd8c", "score": "0.70940596", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) {\n return from;\n }\n var midF = (from + to) / 2,\n mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) {\n return pred(mid) ? from : to;\n }\n if (pred(mid)) {\n to = mid;\n } else {\n from = mid + dir;\n }\n }\n }", "title": "" }, { "docid": "27b3a0b958eed76cecd35dfbef54ad02", "score": "0.7090699", "text": "function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) {\n return from;\n }\n var midF = (from + to) / 2,\n mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) {\n return pred(mid) ? from : to;\n }\n if (pred(mid)) {\n to = mid;\n } else {\n from = mid + dir;\n }\n }\n }", "title": "" }, { "docid": "f8bed0577c9711215600c65991a2ec48", "score": "0.70744336", "text": "function findFirst(pred, from, to) {\n\t // At any point we are certain `to` satisfies `pred`, don't know\n\t // whether `from` does.\n\t var dir = from > to ? -1 : 1;\n\t for (;;) {\n\t if (from == to) { return from }\n\t var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n\t if (mid == from) { return pred(mid) ? from : to }\n\t if (pred(mid)) { to = mid; }\n\t else { from = mid + dir; }\n\t }\n\t}", "title": "" }, { "docid": "16232db2845d74e473a25f995da7fda9", "score": "0.63364184", "text": "function findFirst(pred, from, to) {\n for (;;) {\n if (Math.abs(from - to) <= 1) {\n return pred(from) ? from : to;\n }\n\n var mid = Math.floor((from + to) / 2);\n\n if (pred(mid)) {\n to = mid;\n } else {\n from = mid;\n }\n }\n } // The display handles the DOM integration, both for input reading", "title": "" }, { "docid": "798aef59140ff04e58a24c8878c5b491", "score": "0.6284715", "text": "function closest(value, to) {\r\n return Math.round(value / to) * to;\r\n }", "title": "" }, { "docid": "798aef59140ff04e58a24c8878c5b491", "score": "0.6284715", "text": "function closest(value, to) {\r\n return Math.round(value / to) * to;\r\n }", "title": "" }, { "docid": "03a29cea3cdd109101cf3cccf280cc93", "score": "0.6274234", "text": "function closest(value, to) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "eeca071496b0ff4dd1f096fc483f90fb", "score": "0.62309444", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "eeca071496b0ff4dd1f096fc483f90fb", "score": "0.62309444", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "eeca071496b0ff4dd1f096fc483f90fb", "score": "0.62309444", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "eeca071496b0ff4dd1f096fc483f90fb", "score": "0.62309444", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "7a9a9f080584c07ea550bf1a0d0d7cbd", "score": "0.6217614", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "7a9a9f080584c07ea550bf1a0d0d7cbd", "score": "0.6217614", "text": "function closest(value, to) {\n return Math.round(value / to) * to;\n }", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "0f105b7b0b578555542a4722b5b4be02", "score": "0.6207917", "text": "function closest ( value, to ) {\n\t\treturn Math.round(value / to) * to;\n\t}", "title": "" }, { "docid": "8cf73ec658b418068a47e946294eb694", "score": "0.5301241", "text": "function mapValueInRange(value, fromLow, fromHigh, toLow, toHigh) {\n var fromRangeSize = fromHigh - fromLow;\n var toRangeSize = toHigh - toLow;\n var valueScale = (value - fromLow) / fromRangeSize;\n return toLow + valueScale * toRangeSize;\n}", "title": "" }, { "docid": "e9c251fa316814cec5660b90b2488353", "score": "0.52414113", "text": "find(pred) {\r\n let index = this.findIndex(pred);\r\n if (index == -1)\r\n return undefined;\r\n else\r\n return this.values[index];\r\n }", "title": "" }, { "docid": "b8a050c73d7ffdc1df1af40ec1c98cb3", "score": "0.51769537", "text": "function getNearestExistingPoint(arr, map, start, ii, lim) {\n var i = start,\n k = 0,\n kk = 0,\n item;\n for (; i < ii; ++i) {\n item = map[arr[i].stringValue];\n if (item) {\n for (k = 0, kk = item.length; k < kk; ++k) {\n if (item[k] >= lim) {\n return {\n index: i,\n mapValue: item[k],\n diff: i - start\n };\n }\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "4c1b0d095e03eb0b7a0e3332f7c704d4", "score": "0.50721824", "text": "static search (arr, goal) {\n let low = 0\n let high = arr.length - 1\n\n while (low != high) {\n let mid = Math.round((low + high) / 2)\n\n if (goal <= arr[mid]) {\n high = mid - 1\n } else {\n low = mid\n }\n }\n\n return low\n }", "title": "" }, { "docid": "b16c528613f498e04866a91b492892c5", "score": "0.5031121", "text": "function pred(a, b)\n{\n return a - b;\n}", "title": "" }, { "docid": "8996e58c11cc109e65ce4789e6786afa", "score": "0.4947786", "text": "function rangeValueToCoefficient(value, range, inversed) {\n var result = (value - range.min) / (range.delta);\n return inversed ? (1 - result) : result;\n}", "title": "" }, { "docid": "c835e4d1072d84e99a27c41613006602", "score": "0.4903149", "text": "function map_range(value, low1, high1, low2, high2) {\n return low2 + (high2 - low2) * (value - low1) / (high1 - low1);\n}", "title": "" }, { "docid": "b77a40fa33cc069dfbaf7c1ebf08af05", "score": "0.484705", "text": "function nearest(arr, goal) {\n \n var closest = null;\n \n $.each(arr, function(){\n if (closest == null || Math.abs(this - goal) < Math.abs(closest - goal)) {\n closest = this;\n }\n });\n \n return Number(closest);\n}", "title": "" }, { "docid": "6e7192a3d2417632705acc20a2a22974", "score": "0.48443085", "text": "function valBetween(v, min, max) {\n return (Math.min(max, Math.max(min, v)));\n}", "title": "" }, { "docid": "6e7192a3d2417632705acc20a2a22974", "score": "0.48443085", "text": "function valBetween(v, min, max) {\n return (Math.min(max, Math.max(min, v)));\n}", "title": "" }, { "docid": "52fb18305861ad04a684b3cc6f1ea062", "score": "0.4839214", "text": "function map_range(value, low1, high1, low2, high2) {\n return low2 + ((high2 - low2) * (value - low1)) / (high1 - low1);\n}", "title": "" }, { "docid": "52fb18305861ad04a684b3cc6f1ea062", "score": "0.4839214", "text": "function map_range(value, low1, high1, low2, high2) {\n return low2 + ((high2 - low2) * (value - low1)) / (high1 - low1);\n}", "title": "" }, { "docid": "f27b7b7dbb79debbdaefc3157d850afc", "score": "0.47688055", "text": "function findTradePoint() {\n\tlet high = findMax()\n\tlet low = data.set[findMin()]\n\t\n\tlet TradePoint = high - ((high - low) * 0.236) \n\treturn TradePoint\n}", "title": "" }, { "docid": "01e97de593069664fef18aeb9baaa8b3", "score": "0.47359607", "text": "function nearest(value, min, max, steps) {\n\t var range = max - min;\n\t var rounded = Math.round(((value - min) * steps) / range) / steps;\n\t var zeroToOne = Math.min(Math.max(rounded, 0), 1);\n\t // have to calculate the number of allowed decimal places since decimal\n\t // precision gets weird:\n\t // 0.28 * 100 === 28.000000000000004\n\t var step = range / steps;\n\t var decimals = Number.isInteger(step)\n\t ? range % steps\n\t : step.toString().split(\".\")[1].length;\n\t return parseFloat((zeroToOne * range + min).toFixed(decimals));\n\t}", "title": "" }, { "docid": "662f295b3eac3887c7e3703060ebd944", "score": "0.47184497", "text": "function findClosest(searchValue, arr) {\n if (searchValue < arr[0]) {\n return arr[0];\n }\n\n if (searchValue > arr[arr.length - 1]) {\n return arr[arr.length - 1];\n }\n\n var mid;\n var lo = 0;\n var hi = arr.length - 1;\n\n while (hi - lo > 1) {\n mid = Math.floor((lo + hi) / 2);\n\n if (arr[mid] < searchValue) {\n lo = mid;\n } else {\n hi = mid;\n }\n }\n\n if (searchValue - arr[lo] < arr[hi] - searchValue) {\n return arr[lo];\n }\n\n return arr[hi];\n}", "title": "" }, { "docid": "067653a0eff22a49cb8ee4bdfba912c0", "score": "0.47134486", "text": "function getRandomInRange ( from, to, fixed = geoDataPrecision )\n{\n return ( ( Math.random() * ( to - from ) ) + from ).toFixed( fixed ) * 1;\n // .toFixed() returns string, so ' * 1' is a trick to convert to number\n}", "title": "" }, { "docid": "7d48731dd56a44ba63c8f9707430e28c", "score": "0.47045848", "text": "function MapValue(value, toMin, toMax, fromMin, fromMax) {\r\n return toMin + (toMax - toMin) * ((value - fromMin) / (fromMax - fromMin));\r\n}", "title": "" }, { "docid": "5e2c7ff526b52f43025470810af08d4a", "score": "0.46967566", "text": "function find_nearest_num(num_1, num_2) {\n num_1 > 100 ? res_1 = num_1 - 100 : res_1 = 100 - num_1;\n num_2 > 100 ? res_2 = num_2 - 100 : res_2 = 100 - num_2;\n if (res_1 < res_2) {\n return num_1;\n } else {\n return res_2;\n }\n}", "title": "" }, { "docid": "571e9a085d8d188156b9b1a8abd96f17", "score": "0.46960035", "text": "function valueInRange (start, value, finish) {\n return (start <= value) && (value <= finish);\n}", "title": "" }, { "docid": "571e9a085d8d188156b9b1a8abd96f17", "score": "0.46960035", "text": "function valueInRange (start, value, finish) {\n return (start <= value) && (value <= finish);\n}", "title": "" }, { "docid": "065bbf76a45b2dec79a9a4bf13d99db3", "score": "0.46862945", "text": "function mapVal(val, in_min, in_max, out_min, out_max) {\n return (val - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;\n}", "title": "" }, { "docid": "e7d462f1ecfe2411214893d275385935", "score": "0.4662556", "text": "function withinRange(value, min, max) {\n var nextValue = value;\n if (typeof min === \"number\") {\n nextValue = Math.max(min, nextValue);\n }\n if (typeof max === \"number\") {\n nextValue = Math.min(max, nextValue);\n }\n return nextValue;\n}", "title": "" }, { "docid": "009a4ed07a48248c6d437d9c9382e10d", "score": "0.46267378", "text": "function findClosestValueInBst(tree, target) {\n\t// traverse through BST (loop)\n\t// keep track of min difference\n\t// make decision at every node: left or right?\n\tlet min = tree.value - target // -2\n\tlet currentNode = tree // 10\n\twhile (currentNode) {\n\t\tif (Math.abs(currentNode.value - target) < Math.abs(min))\n\t\t\tmin = currentNode.value - target\n\t\tif (target < currentNode.value)\n\t\t\tcurrentNode = currentNode.left\n\t\telse if (target > currentNode.value)\n\t\t\tcurrentNode = currentNode.right\n\t\telse\n\t\t\treturn currentNode.value\n\t}\n\treturn min + target\n}", "title": "" }, { "docid": "8dc390e78db6cb1f447779e38b47db0e", "score": "0.4610841", "text": "between(from, to) {\n return Math.random() * (to-from) + from;\n }", "title": "" }, { "docid": "36bcefe5ba4ebda05e762246c88f0289", "score": "0.4604868", "text": "function near_100(a,b){\n soa = Math.abs(a - 100);\n sob = Math.abs(b - 100);\n if (a != b)\n {\n if (soa < sob)\n {\n return a;\n }\n else \n {\n return b;\n }\n return 0;\n }\n}", "title": "" }, { "docid": "085ef23539f03ce11282765e4819d8cd", "score": "0.45842743", "text": "function findNearestDateBefore(start, predicate) {\n var current = start;\n var month = 1000 * 60 * 60 * 24 * 30;\n for (var step = month; step > 0; step = Math.floor(step / 3)) {\n if (!predicate(current)) {\n while (!predicate(current))\n current = new Date(current.getTime() + step);\n current = new Date(current.getTime() - step);\n }\n }\n while (!predicate(current))\n current = new Date(current.getTime() + 1);\n return current;\n}", "title": "" }, { "docid": "04e44a404a36cecb49494751d79b5995", "score": "0.45838878", "text": "function closest(arr, target, process) {\n if (!(arr) || arr.length == 0)\n return null;\n if (arr.length == 1)\n return arr[0];\n\n for (var i = 1; i < arr.length; i++) {\n // As soon as a number bigger than target is found, return the previous or current\n // number depending on which has smaller difference to the target.\n if (arr[i] > target) {\n var c = arr[i];\n var d = arr[i - 1];\n\t\t\tif(process == 'zoomin'){\n\t\t\t\treturn Math.abs(c);\n\t\t\t} else if (process == 'zoomout'){\n\t\t\t\treturn Math.abs(d);\n\t\t\t}\n }\n }\n\t//console.log('last val');\n // No number in array is bigger so return the last.\n return arr[arr.length - 1];\n}", "title": "" }, { "docid": "ea2f86556bfafa7a93b2a91dde5d2a08", "score": "0.45790318", "text": "function constrain(value,min,max){\n\tvar returnValue = (value < min) ? min : (value > max) ? max : value;\n\treturn returnValue;\n}", "title": "" }, { "docid": "bc27b13196252bb80c9e2ef9139d3e72", "score": "0.4576143", "text": "function closestValue(root, target) {\n let candidate = root.val\n let node = root \n while(node) { \n if (closerDistance(node.val, candidate)) {\n candidate = node.val\n }\n if (node.val >target) {\n node = node.left\n } else if (node.val<target) {\n node = node.right\n } else {\n return node.val\n }\n }\n \n return candidate\n \n function closerDistance(val1, val2) {\n return Math.abs(val1-target) <Math.abs(val2-target)\n }\n}", "title": "" }, { "docid": "070263ed4a278cfd0394bea1d80a9459", "score": "0.45720637", "text": "function map_range(value, low1, high1, low2, high2) {\n\n var mappedVal = Math.floor(low2 + (high2 - low2) * (value - low1) / (high1 - low1));\n return mappedVal;\n}", "title": "" }, { "docid": "0bf16bfe4198fb56fd10e49a3c1711fb", "score": "0.4559202", "text": "function between(value, min, max) {\n return Math.max(min, Math.min(value, max));\n}", "title": "" }, { "docid": "90182107f2d71136785bbfea0e5839bc", "score": "0.4551746", "text": "function binary_search(range, value, cmp_lt) {\n\tvar lb = lower_bound(range, value, cmp_lt);\n\tif (lb == range.length) {\n\t\treturn -1;\n\t}\n\treturn cmp_eq_gen(cmp_lt)(range[lb], value) ? lb : -1;\n}", "title": "" }, { "docid": "fa6313b02b6787c855ef931b75ecfbe7", "score": "0.45511487", "text": "function valueInRange (start, value, finish) {\n\t return (start <= value) && (value <= finish);\n\t}", "title": "" }, { "docid": "fa6313b02b6787c855ef931b75ecfbe7", "score": "0.45511487", "text": "function valueInRange (start, value, finish) {\n\t return (start <= value) && (value <= finish);\n\t}", "title": "" }, { "docid": "bad80aa9e67050d0972f3ff9d4531cb0", "score": "0.45485055", "text": "function closest(num, arr) {\n var currVal = arr[0];\n var currIndex;\n var current = {};\n var diff = Math.abs (num - currVal);\n for (var val = 0; val < arr.length; val++) {\n var newdiff = Math.abs (num - arr[val]);\n if (newdiff < diff) {\n diff = newdiff;\n current.currVal = arr[val];\n current.currIndex = val;\n }\n }\n return current;\n }", "title": "" }, { "docid": "e70289e257c51a5cdf6f195cb826c6c4", "score": "0.45424005", "text": "function lower_bound(arr, min, max, threshold, func)\n{\n\twhile(true)\n\t{\n\t\tvar w = max-min;\n\t\tvar midpoint = min+Math.floor(w/2);\n\n\t\tif(w <= 0)\n\t\t\treturn -1;\n\t\tif(w == 1)\n\t\t{\n\t\t\tif(func(arr[min]) > threshold)\n\t\t\t\treturn min;\n\t\t\treturn -1;\n\t\t}\n\t\tif(w == 2)\n\t\t{\n\t\t\tif(func(arr[min]) > threshold)\n\t\t\t\treturn min;\n\t\t\tif(func(arr[min+1]) > threshold)\n\t\t\t\treturn min+1;\n\t\t\treturn -1;\n\t\t}\n\t\tif(func(arr[midpoint]) <= threshold)\n\t\t{\n\t\t\tmin = midpoint+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmax = midpoint+1;\n\t\t}\n\t\tcontinue;\n\t}\n}", "title": "" }, { "docid": "cf72eb751989922de9e26f336c015cd6", "score": "0.45403752", "text": "function findClosestValueInBst(tree, target) {\n let closest = tree.value // 10\n let currentNode = tree // 10\n \n while (currentNode) {\n let difference = Math.abs(target - currentNode.value) // 2\n if (difference < Math.abs(target - closest)) closest = currentNode.value \n \n if (currentNode.value > target) {\n currentNode = currentNode.left\n } else if (currentNode.value < target) {\n currentNode = currentNode.right\n } else {\n return currentNode.value\n }\n }\n return closest\n}", "title": "" }, { "docid": "2cb1cb368223471f5821c5220d220755", "score": "0.45232537", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "2cb1cb368223471f5821c5220d220755", "score": "0.45232537", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "2cb1cb368223471f5821c5220d220755", "score": "0.45232537", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "13aa4f533b728f0fd8d2898ec6f6bb30", "score": "0.45107618", "text": "function getRandomInRange(from, to, fixed) {\n var randomNumber = ((Math.random() * (to - from) + from).toFixed(fixed) * 1);\n return randomNumber;\n}", "title": "" }, { "docid": "dc4d8e0f38668691323e5bd8e50902dc", "score": "0.4508219", "text": "function findClosestValueInBst(tree, target) {\n let root = tree;\n let Abs = Math.abs(target - root.value);\n let nodeVal = root.value;\n let queue = [root];\n\n while (queue.length) {\n let node = queue.pop();\n let currentDiff = Math.abs(target - node.value)\n if (currentDiff <= Abs) {\n Abs = currentDiff\n nodeVal = node.value;\n }\n if (node.left && node.value >= target) queue.unshift(node.left);\n if (node.right && node.value < target) queue.unshift(node.right);\n }\n return nodeVal\n}", "title": "" }, { "docid": "396b65eec77ed62c7e4e3e286f67a959", "score": "0.44978234", "text": "function getJumped(orig, dest) {\n if (orig < dest) { // jump forward\n return orig + (Math.ceil((dest-orig)/2));\n } else { //jump backward\n return orig - (Math.ceil((orig-dest)/2));\n }\n}", "title": "" }, { "docid": "b2494655409ba050f82bf58112f80380", "score": "0.44941467", "text": "function extract() {\n\t\t\t\t\tvar arg\t= arguments[0] !== undefined ? arguments[0]: null;\n\t\t\t\t\tvar tuples = _.map(arg, function(val) {\n\t\t\t\t\t\t\t\t\treturn [val, Math.abs(val.x - target)];\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\treturn target = _.reduce(tuples, function(memo, val) {\n\t\t\t\t\t\t\t\t\treturn (memo[1] < val[1]) ? memo : val;\n\t\t\t\t\t\t\t\t}, [-1, 999])[0];\t\t\n\t\t\t\t}", "title": "" }, { "docid": "dd267b868a298eccb63090e9540745e7", "score": "0.44907045", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "dd267b868a298eccb63090e9540745e7", "score": "0.44907045", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "dd267b868a298eccb63090e9540745e7", "score": "0.44907045", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "dd267b868a298eccb63090e9540745e7", "score": "0.44907045", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "dd267b868a298eccb63090e9540745e7", "score": "0.44907045", "text": "function find(array, pred) {\n for (var idx = 0, len = array.length; idx < len; idx++) {\n var item = array[idx];\n if (pred(item)) {\n return item;\n }\n }\n}", "title": "" }, { "docid": "7539eb93219e28f46d52e9202f9e5f70", "score": "0.44812343", "text": "function findClosest(num,arr) {\n var diffArr = [];\n for (i of arr) {\n diffArr.push(Math.abs(num-i))\n };\n return diffArr.indexOf(Math.min(...diffArr));\n }", "title": "" }, { "docid": "d804f9ca9a174049c2299e607950bdc7", "score": "0.4474842", "text": "function findClosestValueInBst(tree, target) {\n \n let minDiff = Infinity\n let current = tree\n let closestVal = null\n while(current){\n \n let tempDiff = Math.abs(target - current.value)\n if (tempDiff < minDiff){\n minDiff = tempDiff\n closestVal = current.value\n }\n \n if(target < current.value ){\n current = current.left\n }else{\n current = current.right\n }\n \n }\n \n return closestVal\n }", "title": "" } ]
ccf8160be5751054a8f439cc9f02dc68
begin init Money Robot campaigns
[ { "docid": "4369545f4ffbbcd2d23cd35aaf9c143e", "score": "0.0", "text": "function addNewMrCampaign(data) {\n var $content = $(\"#campaignLists\"),\n temp =\n `<div campaign-id=\"{id}\" class=\"campaignItem ui segments\">\n <div class=\"ui grid\">\n <div class=\"two wide column list-item\">\n <div class=\"field campaign-title\">\n <label>{name}</label>\n </div>\n </div>\n <div class=\"fourteen wide column\">\n <div class=\"field\">\n <div class=\"upload-item\" style=\"float:left;\">\n <form id=\"upload-{id}\" class=\"upload_form {hidden}\" action=\"/upload-body-files\" method=\"post\" enctype=\"multipart/form-data\">\n <input type=\"hidden\" name=\"_token\" value=\"{token}\">\n <input type=\"hidden\" name=\"mrCampaignId\" value=\"{id}\">\n <input type=\"file\" class=\"ui tiny button\" name=\"file[]\" accept=\"text/*\" multiple>\n <button type=\"submit\" name=\"upload\" class=\"ui tiny primary button\">Upload</button>\n <span class=\"textFileCount\">{body_files} files</span>\n </form>\n </div>\n <div style=\"float:right;\">\n <div class=\"ui mini input\">\n <input class=\"repeatTimes\" type=\"text\" placeholder=\"Times...\">\n </div>\n <button class=\"ui tiny primary button runMrCampaign\">\n Run\n </button>\n <div class=\"ui tiny button removeMrCampaign\" tabindex=\"0\" data-toggle=\"modal\" data-target=\"#delete-mrCampaign-modal\">\n Delete\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>`;\n \n temp = temp.replace(/{id}/g, data.id);\n temp = temp.replace(\"{name}\", data.name);\n temp = temp.replace(\"{body_files}\", data.body_files);\n temp = temp.replace('{token}', $('meta[name=\"csrf-token\"]').attr(\"content\"));\n \n if (data.bulk == 'true') {\n temp = temp.replace(\"{hidden}\", 'hidden');\n } else {\n temp = temp.replace(\"{hidden}\", '');\n }\n\n $content.append(temp);\n \n \n $('form').ajaxForm({\n beforeSubmit: function(formData, jqForm) { \n $currentFormId = jqForm[0].id;\n },\n beforeSend: function() { \n $(\"#\"+$currentFormId).find('button[name=\"upload\"]').addClass('loading');\n },\n success: function(response) { \n if (response.success) { \n $(\"#\"+$currentFormId).find('.textFileCount').text(response.count+\" files\"); \n } else {\n alert(response.message);\n }\n $(\"#\"+$currentFormId).find('button[name=\"upload\"]').removeClass('loading');\n $(\"#\"+$currentFormId).find('input[name=\"file[]\"]').val(\"\");\n },\n error: function(error) {\n alert(error);\n $(\"#\"+$currentFormId).find('button[name=\"upload\"]').removeClass('loading');\n }\n });\n }", "title": "" } ]
[ { "docid": "937d6fd99a5c3ee7ddebac593f8ced4e", "score": "0.60095966", "text": "function localstartLate() {\n OrgAud.init();\n if (Cilly) Cilly.maestro_init();\n}", "title": "" }, { "docid": "47d5676c40012ea5c5992e12a4f22cc1", "score": "0.59609497", "text": "function PMSInit(){\n\n // RoomID request sending\n if(TVPlatform == \"2K18\"){\n IdentificationSettings('RoomID');\n }else{\n getProfessionalSettingsControl(ProfessionalParameters[1]['name']);\n }\n\n //request PMS GUest Details to assign the variable and paste where ever it is required\n requestPMSDetails(\"GuestDetails\");\n\n if($(\".epg-info\").length > 0){\n requestEpgInfo();\n }\n\n if ($('.pms-message-gadget').length > 0){\n requestPMSDetails(\"GuestMessages\");\n }\n if ($(\".guest-bill-info\").length > 0){\n constructBillDetails();\n setTimeout(function() {\n requestPMSDetails(\"GuestBill\");\n }, 1000);\n }\n}", "title": "" }, { "docid": "14956a4056fb492c35001d6691207a9a", "score": "0.5942521", "text": "function setupGame(){\n allocateStartingFunds();\n updateCompanyView();\n updateDropdowns();\n}", "title": "" }, { "docid": "f2875c2064804589810117ee078f043a", "score": "0.58790946", "text": "function initialize() {\r\n getTweet(); //import the first consumable\r\n getSurvey() //create the survey\r\n}", "title": "" }, { "docid": "3bcd939d2bb07b2b670aa0b27bef59c0", "score": "0.5824695", "text": "function initAdvCMP(){\r\n console.log('[mediamond][cmp]===>initAdvCMP');\r\n googletag.cmd.push(function() {\r\n googletag.pubads().setRequestNonPersonalizedAds(1);\r\n // setRequestNonPersonalizedAds(_iub.cs.api.isGoogleNonPersonalizedAds() ? 1 : 0) <==== DEFINITIVO\r\n });\r\n}", "title": "" }, { "docid": "92d0634b3c848916bd86b11bb0b093a2", "score": "0.5753751", "text": "function TournamentStart() {\n\tlog('TournamentStart');\n\n\tArenaRestart();\n}", "title": "" }, { "docid": "fd7dd7673891084b1c0614f27ce6bc22", "score": "0.5745082", "text": "function BotInit() {\n\tconsole.log('Bot initiated');\n\tTweet();\n\tfavoriteTweet();\n}", "title": "" }, { "docid": "6f1d1c93265b6d62071eadddee6d79a9", "score": "0.5684983", "text": "function init() {\n transact();\n transactCount();\n transactRanking();\n currentTransact1();\n currentTransact2();\n screen(1920, 1080);\n }", "title": "" }, { "docid": "ae1e6c9da48a15ab06b790d086032d19", "score": "0.5683887", "text": "async _onStart() {\n await this._loadBotUser();\n await this._checkApiConnection();\n this._postInitalMessageToChannel();\n }", "title": "" }, { "docid": "54ab6e67583bd65e4b94e32647ea5570", "score": "0.56828845", "text": "function start() {\n\n v_global.logic.eccb_tp = gw_com_api.getPageParameter(\"ECCB_TP\");\n gw_job_process.UI();\n\n }", "title": "" }, { "docid": "284ab1657744cd936e78857f293c23bb", "score": "0.5634583", "text": "function createCampaign(){\n\t//Open first campaign creation div\n\t$(\"#setup1\").removeClass(\"invisible\");\n\t$(\"#setup1\").find('input').first().focus();\n}", "title": "" }, { "docid": "1ad48299dfc73ce549f549b8883a8e07", "score": "0.5622188", "text": "function initConversation() {\n //postConversationMessage('');\n sendRequest('', null);\n }", "title": "" }, { "docid": "a277210e55d3f4259a2a530fbfba13b9", "score": "0.55892265", "text": "function init_when_ready() {\n // Verify Googletag service is ready.\n if ( window.googletag && googletag.apiReady ) {\n // Now load the ads.\n googletag.cmd.push(function() {\n googletag.pubads().enableAsyncRendering();\n googletag.pubads().collapseEmptyDivs( true );\n googletag.enableServices();\n // Create the ad units for ad containers loaded at page init.\n add_containers_to_list();\n maybe_create_ad_units( \"timeout-trigger\" );\n });\n } else {\n // Pubads not ready, try again a bit later.\n setTimeout( function() {\n init_when_ready();\n }, 250 );\n }\n }", "title": "" }, { "docid": "7ffa7db65e2e6882df985268454e2ecf", "score": "0.55857915", "text": "function main() {\n // select the current account\n var currentAccount = AdWordsApp.currentAccount();\n var accountName = currentAccount.getName();\n \n var conversionVariable = 0;\n\n // Selector for the current enabled campaign\n var campaignSelector = AdWordsApp\n .campaigns()\n .withCondition(\"Status = ENABLED\");\n // Get all the enabled campaigns\n var campaignIterator = campaignSelector.get();\n // Loop over the enabled campaigns - log out the data needed - add stats to the spreadsheet\n while(campaignIterator.hasNext()) {\n var campaign = campaignIterator.next();\n\n Logger.log(\"Campaign Name: \" + campaign.getName());\n // Get the bidding strategy to make sure the campaign is Max Clicks (\"TARGET_SPEND\")\n var currentBiddingStrategy = campaign.getBiddingStrategyType();\n Logger.log(\"Current Bidding Strategy: \" + currentBiddingStrategy);\n // Get the current conversion and conversion rate stats\n var currentStats = campaign.getStatsFor(\"THIS_MONTH\");\n var currentClicks = currentStats.getClicks();\n var currentCost = currentStats.getCost();\n var currentConversions = currentStats.getConversions();\n var currentConversionRate = currentStats.getConversionRate();\n\n Logger.log(\"Campaign Stats: \" + \"Conversions: \" + currentConversions + \"ConversionRate: \" + currentConversionRate +\n \"Cost: \" + currentCost + \"currentClicks: \" + currentClicks);\n }\n\n if(currentConversions <= 0 && currentBiddingStrategy === \"TARGET_SPEND\") {\n Logger.log(\"Campaign currently has no conversions\");\n }\n else if(currentConversions > conversionVariable) {\n Logger.log(\"Campaign is tracking above Conversion Variable\");\n }\n else if(currentConversions < conversionVariable) {\n Logger.log(\"Campaign conversions is not tracking above Conversion Variable\");\n }\n else {\n Logger.log(\"An error has occured, please look into this account\");\n }\n\n if(currentConversionRate < conversionRateVariable) {\n Logger.log(\"Conversion Rate is below conversion rate variable\");\n }\n else if(currentConversionRate > conversionRateVariable) {\n Logger.log(\"Conversion Rate is tracking above conversion rate variable\");\n }\n else {\n Logger.log(\"Campaign conversion rate has thrown an error - please look into this account\");\n }\n}", "title": "" }, { "docid": "6783a01690e4863d6eb76e8c05198e6e", "score": "0.5582265", "text": "function initialize () {\n //document.toast(\"Initializing SitesWrapper\", \"Initialize\", 3);\n var headers = {};\n var payload = {};\n var options = {method:\"post\", contentType:\"application/x-www-form-urlencoded\", headers:headers, payload:payload};\n var responseCode = UrlFetchApp.fetch(url + initializationUri, options).getResponseCode();\n if (responseCode == 204) {\n MailApp.sendEmail({\n to: \"siteswrapper-gae-gwt@\" + documentName + \".appspotmail.com\",\n subject: documentName,\n body: documentId });\n while (responseCode != 202) {\n Utilities.sleep(500);\n responseCode = UrlFetchApp.fetch(url + initializationUri, options).getResponseCode();\n }\n initializeSite();\n initializeStyles();\n initializeLandings();\n initializeItems();\n initializeFirstPage();\n initializeSecondPage();\n } else if (responseCode == 202) {\n Browser.msgBox(\"Already Initialized\");\n }\n}", "title": "" }, { "docid": "806109ba813dc3ee61aa5fc0a2cf6195", "score": "0.5569247", "text": "function botInitialization() {\n\t//Check config.json VER against our scripts\n\tif (ConfigDetails.version != VERSION) {\n\t\tconsole.log(\"WARNING : Config.json and script version do not match! Check config.json.example for any missing values!\")\n\t\tconsole.log(\"Config.json Version \" + ConfigDetails.version);\n\t}\n\t\n\t//Initialize DB\n\tPingPong.initializeDB();\n\tShitPost.Setup(ConfigDetails.shitpostSources);\n\t\n\t//Let the bot login.\n\tbot.loginWithToken(AuthDetails.token, function(error, token) {\n\t\t//this callback seems to be VERY unreliable, DONT USE\n\t\tif (error) {\n\t\t\tconsole.log(\"Login Errors: \" + error);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "c3630913cf1ec68426955054bf94e272", "score": "0.554194", "text": "function setupActivityInitial()\n{\n\t//Show initial text\n\tOTCardContainerView.setCurrentCard(otInfoAreaCards, \"introText\");\n\t\n\t//Show initial text\n\tstartStep(currentStep);\n\t\n\tanswerBox.setText(\"\");\n\tunitChoice.setCurrentChoice(emptyUnitChoice);\n\t\n\tanswerObj = null;\n\treportButton.setVisible(false);\n\t\n\tdeleteNotebookData();\n\n\t//Randomize the resistance\n\tvar randomGen = new java.util.Random;\n\tvar random = (randomGen.nextInt(20) * 5) + 5;\n\n\ttargetResistor.setResistance(java.lang.Double(random));\n\n\tlogInformation(\"The new target resistor's resistance is \" + targetResistor.getResistance() + \" ohms\");\t\n}", "title": "" }, { "docid": "a56bf95f9ba66a921a4b0138221daaef", "score": "0.5525285", "text": "function initialize() {\n presidentEssay();\n landingVideo();\n}", "title": "" }, { "docid": "c62b653eaf4bb3468a61a79e83809c38", "score": "0.5515356", "text": "function initialSetup(){\n\tgetEquations();\n}", "title": "" }, { "docid": "304ed5bd1e27fa3bdeafc7b2754b09c4", "score": "0.5503367", "text": "function startContinuousArtyom(){\n mythis.artyom.fatality();// use this to stop any of\n\n setTimeout(function(){// if you use artyom.fatality , wait 250 ms to initialize again.\n mythis.artyom.initialize({\n lang:\"en-US\",// A lot of languages are supported. Read the docs !\n continuous:true,// Artyom will listen forever\n listen:true, // Start recognizing\n debug:true, // Show everything in the console\n speed:1 // talk normally\n }).then(function(){\n console.log(\"Ready to work !\");\n });\n },250);\n }", "title": "" }, { "docid": "c39a3d8b6c7a2d069cb1da8791300a51", "score": "0.5497835", "text": "function startupProcedure() {\n startTime = new Date();\n console.log(strings.debug.started);\n console.log(util.format(\n strings.debug.startedtime,\n moment.tz(startTime, \"UTC\").format(\"YYYY-MM-DD, HH:mm\")\n ));\n\n loadAnnouncements();\n loadPhases();\n loadLyrics();\n loadArt();\n loadStory();\n loadSpool();\n loadNPToggles();\n loadANN();\n loadBlacklist();\n loadIgnore();\n loadCorona();\n loadLive();\n loadEEG();\n loadTimezones();\n loadTradfri();\n loadAssaults();\n loadDailyAvg();\n loadBrain();\n}", "title": "" }, { "docid": "fc902cdf8a83f895c1554fe6073af190", "score": "0.54777765", "text": "function startProgram() {\n currentDate()\n scheduleCreator()\n populateArray(submitData)\n}", "title": "" }, { "docid": "7403a1b9221920c1780f3ebfd52222d1", "score": "0.5474461", "text": "function initialize() {\r\n\r\n try {\r\n\r\n // defaults\r\n hideProgressBar();\r\n if (true == checkfailure_LoadVersion())\r\n return;\r\n\r\n //Caradigm.IAM.Config.RequestTimeout = 12000;\r\n initializeParticipantCallbacks();\r\n setLeave();\r\n\r\n var participantCoupon = Caradigm.IAM.IContextor.GetParticipantCoupon();\r\n if (participantCoupon != \"\") {\r\n Caradigm.IAM.IContextor.GetContextAsync(false, function (token, status) {\r\n //check if already joined\r\n if (status == Caradigm.IAM.Success) {\r\n setJoined();\r\n } else {\r\n setLeave();\r\n }\r\n });\r\n }\r\n }catch(e){};\r\n}", "title": "" }, { "docid": "e84bd2805d1c817de3c6312cfbf0ac90", "score": "0.5472179", "text": "function intialize() {\n //get channel info place into channel array\n $.each(accounts, function(ind, account) {\n channelInfo(account);\n });\n }", "title": "" }, { "docid": "bfdaab3f823c37771533ed7b797666b4", "score": "0.54532254", "text": "init() {\n this.client.user.setStatus(this.status);\n // Setup report user.\n this.client.users.fetch(this.reportUserId).then(\n user => {\n global.setData('reportUser', user);\n // Report.\n console.log('Reporting to: ' + user.username);\n }\n )\n // Setup main communication channel.\n this.client.channels.fetch(this.defaultChannelId).then(\n channel => {\n global.setData('reportChannel', channel);\n this.commands.init(channel.guild);\n this.anniversary = new Anniversary(this.client, channel);\n // To trigger cleanup, for now let's do this manual check sometimes.\n // this.anniversary.cleanRolesWithoutAnniversary();\n // Schedule the daily update.\n schedule.scheduleJob('0 11 * * *', this.daily.bind(this));\n // Report.\n console.log('Sending to : ' + channel.name);\n }\n );\n }", "title": "" }, { "docid": "ca400e0a497879cbe9ba4e118935e0d6", "score": "0.54520136", "text": "function begin() {\n allplayers = [];\n init('speedup');\n init('scalar');\n}", "title": "" }, { "docid": "a1bd21f3e4d23c6398c13ae7c0548679", "score": "0.54406387", "text": "function activateSiteBehavior(){\r\n OnStart();\r\n SiteTime();\r\n\tSiteTenthTime();\r\n\tSiteHunthTime();\r\n\tSiteThouthTime();\r\n}", "title": "" }, { "docid": "09a1b102edd1ebd0208833006b101460", "score": "0.5434475", "text": "async function initController(accounts, activate, startTimeOverride = startTimeInProgress) {\n \n let controller = await TestCrowdsaleController.new(startTime, beneficiaryAddress, startTimeOverride);\n let controllerAddress = controller.address;\n\n if (activate) {\n \n token = SmartToken.at(await controller.token.call());\n tokenAddress = token.address;\n let x = await controller.TOTAL_ETHER_SOFT_CAP.call();\n softCap = x.toNumber();\n let y = await controller.TOTAL_ETHER_CAP.call();\n hardCap = y.toNumber();\n let z = await controller.MAX_CONTRIBUTION.call();\n maxAccountContribution = z.toNumber();\n let a = await controller.PRESALE_MIN_CONTRIBUTION.call();\n minPresaleContribution = a.toNumber();\n \n capsDelta = hardCap - softCap;\n\n await controller.addToWhitelist(accounts[4]); //put account[4] in whitelist\n await controller.addToWhitelist(accounts[0]); //put account[0] in whitelist\n }\n return controller;\n}", "title": "" }, { "docid": "f241e9935a23896f1c7f0ad142e8ec54", "score": "0.5427473", "text": "function init(){\n\t//generateTeams();\n\t//generateAnswer();\n\tsetUp();\n\tdrawStickyHeader();\n\tdrawCurrentGuesses();\n}", "title": "" }, { "docid": "c543f9f55150edc9770ff399037da110", "score": "0.54239094", "text": "function analyticsInitialisation(participations: Participations): void {\n if (!(doNotTrack())) {\n googleTagManager.init(participations);\n storeReferrer();\n }\n // Logging.\n logger.init();\n}", "title": "" }, { "docid": "37a7c4418b22b7d3d7b2684942a723d5", "score": "0.54225117", "text": "async function Entity_Creation_Page_Init(){\n await ENTITY_DB_FNS.Create_Db()\n Pagination_page_item_activate()\n Entity_Fill_Delegation()\n}", "title": "" }, { "docid": "0f78295795266192eb03ed5e0b9db41e", "score": "0.5420423", "text": "function startOnLoad() {\n\t\t\tgetNewStoryID();\n\t\t\tmakeTableRowClickable();\n\t\t\tretrieveStoryTitlebyID(count);\n\t\t\tretrieveArticleURLbyID(count);\n \t\t\tretrieveStoryTitlebyID(count-1);\n\t\t\tretrieveArticleURLbyID(count-1);\n \t\t\tretrieveStoryTitlebyID(count-2);\n\t\t\tretrieveArticleURLbyID(count-2);\n \t\t\tretrieveStoryTitlebyID(count-3);\n\t\t\tretrieveArticleURLbyID(count-3);\n\t\t\tretrieveStoryTitlebyID(count-4);\n\t\t\tretrieveArticleURLbyID(count-4);\n\n\t\t}", "title": "" }, { "docid": "c922bac6571ffa38a3e1bcd246112d31", "score": "0.54190856", "text": "init() {\n this.waitingForAdBreak = false;\n this.contentResuming = false;\n this.player.ads.adType = 'stitched';\n adBreak.start(this.player);\n }", "title": "" }, { "docid": "3517733df8681db9db57a9996193e430", "score": "0.5403353", "text": "startProd() {\n this.forestFires();\n this.checkNewCoronaReports();\n this.checkUpdatesCoronaReports();\n this.warnings();\n this.fireRisk();\n this.getTweets();\n this.getFacebookPosts();\n this.sendWeatherReport();\n this.checkNewDecrees();\n Jobs.clearDecreesDb();\n Jobs.warningsMeteoAlarm();\n Jobs.clearMeteoAlarmDb();\n Jobs.scheduleVostEuTweets();\n Jobs.checkMedeaMessages();\n }", "title": "" }, { "docid": "9dfdf4a0cfa54ca0e282a6346fce2474", "score": "0.53989154", "text": "function init () {\n console.log('Init message');\n let actions = document.getElementsByClassName('actionBut');\n for (let i = 0; i < actions.length; i++) {\n actions[i].addEventListener('click', action);\n }\n makeAjaxRequest(baseUrl, 'GET', getThreads);\n // makeAjaxRequest(baseUrl + 1, 'GET', getReplies)\n }", "title": "" }, { "docid": "88f8b3b0ab73160477f5998c8b962628", "score": "0.53960305", "text": "async function setupStart() {\n let catIds = await getCategories(); // calls getCategories function, which fetches category data\n\n for(let catId of catIds){ // iterate through the categories\n categories.push(await getClues(catId)) // push the data from the getClues function into an empty array\n }\n\n populateGameBoard(); // populate the game board with fetched data\n}", "title": "" }, { "docid": "c86046050418149ad0a4005a9363aab6", "score": "0.53914803", "text": "async function setupAndStart() {\n await getCategoryIds();\n fillTable();\n}", "title": "" }, { "docid": "81670e3e37a59b71455bbce8640da21d", "score": "0.5391014", "text": "prepToStart() {\n\n }", "title": "" }, { "docid": "faaad902473dc78082382d73e90056ab", "score": "0.5387897", "text": "function init () {\n configAi();\n checkCallbacks();\n}", "title": "" }, { "docid": "214b11e839ba34303c58f7f1490b4ef9", "score": "0.5385934", "text": "function initialSetup() {\n stopSounds()\n themeSong.play()\n shuffle(trivia)\n currentQuestion = 0,\n correctAnswers = 0,\n countDownFrom = 10\n // Runs timer function every second\n counter = setInterval(timer, 1000)\n }", "title": "" }, { "docid": "c53f8a9f2576f300d61c5323efa1f46f", "score": "0.5381287", "text": "waitForInit() {\r\n const _ = this;\r\n const delay = t => new Promise(resolve => setTimeout(resolve, t));\r\n if (!_.clientApp) {\r\n return delay(200)\r\n }\r\n return delay(1)\r\n }", "title": "" }, { "docid": "76f81030e1efe6427559b47f20be081c", "score": "0.53798515", "text": "function main() {\n // Set up SS\n // Init Spreadsheet\n // Create cell for ordered impressions\n // Grab that data and save it - Make sure the url is for the correct SS\n var spreadsheet = SpreadsheetApp.openByUrl(\"https://docs.google.com/spreadsheets/d/1psxrVyBP8s90FCoxVnLO-shkrCoKzTRXzjb0c-0377Q/edit?usp=sharing\");\n var sheet = spreadsheet.getSheets()[0]; // Set correct sheet number in budget spreadsheet\n\n // Init globals (ordered impressions, budget adjustment value) *** Set correct ranges for budget script\n var emailForNotify = sheet.getRange(2,2).getValue();\n var orderedImpressions = sheet.getRange(2,1).getValue();\n Logger.log(\"Ordered Impressions from SS: \" + orderedImpressions);\n var setTo = .50;\n\n // Select Account with condition enabled\n var currentAccount = AdWordsApp.currentAccount();\n var accountName = currentAccount.getName();\n Logger.log(\"Processing on the following account: \" + accountName);\n\n // This function takes a campaign budget - logs the current budget and sets the new amount of the given budget parameter\n\n function adjustBudget(budgetToAdjust) {\n var currentCampaigns = AdWordsApp.campaigns().get();\n if(currentCampaigns.hasNext()) {\n var currentBudgetToAdjust = campaign.getBudget();\n Logger.log(\"current budget: \" + currentBudgetToAdjust);\n var getAllBudgetToAdjust = currentBudgetToAdjust.campaigns().get();\n \n while (getAllBudgetToAdjust.hasNext()) {\n var allCampaignsCurrentBudgets = getAllBudgetToAdjust.next();\n allCampaignsCurrentBudgets.getBudget().setAmount(budgetToAdjust);\n Logger.log(allCampaignsCurrentBudgets.getName());\n }\n }\n }\n\n // Select Campaign with condition enabled\n // With condition impressions > 0 to make sure it is running\n var campaignSelector = AdWordsApp\n .campaigns()\n .withCondition(\"CampaignStatus = ENABLED\")\n .withCondition(\"Impressions > 0\")\n .forDateRange(\"LAST_7_DAYS\");\n\n var campaignIterator = campaignSelector.get();\n\n while (campaignIterator.hasNext()) {\n var campaign = campaignIterator.next();\n var campaignName = campaign.getName();\n var currentDailyBudget = campaign.getBudget().getAmount();\n Logger.log(\"current daily budget: \" + currentDailyBudget);\n var stats = campaign.getStatsFor(\"ALL_TIME\");\n // Get the impression stats for the running campaign - ALL_TIME\n var impressions = stats.getImpressions();\n \tLogger.log(\"Impressions: \" + impressions);\n // Write a conditional check to set the daily budget to .50 if over-delivering\n if(impressions > orderedImpressions) {\n Logger.log(\"Campaign is over-delivering - budget set to .50\");\n adjustBudget(setTo);\n notify(\"The campaign is over-delivering and the budget has been adjusted down to .50 - please check into this campaign.\")\n } else {\n Logger.log(\"Campaign is pacing below ordered impressions\"); \n }\n }\n\n // Email function to pass string and send through to email provided\n function notify(string) {\n // Construct email template for notifications\n // Must have to, subject, htmlBody\n var emailTemplate = {\n to: emailForNotify,\n subject: accountName,\n htmlBody: \"<h1>Comporium Media Services Automation Scripts</h1>\" + \"<br>\" + \"<p>This account has encountered an issue</p>\" + accountName +\n \"<br>\" + \"<p>The issue is with this campaign: </p>\" + campaignName + \"<br>\" + \"<p>This is what is wrong - </p>\" + \"<br>\"\n + string + \"<br>\" +\"<p>If something is incorrect with this notification please reply to this email. Thanks!</p>\"\n }\n MailApp.sendEmail(emailTemplate);\n }\n\n}", "title": "" }, { "docid": "7c454c49ed985e681b949b0f64db6c09", "score": "0.53771895", "text": "async function setupAndStart() {\n $startScreen.css(\"display\", \"none\");\n\n const $board = makeClueBoard(NUM_CATEGORIES);\n $container.prepend($board);\n\n // single Geoparody\n currentPlayer = 0;\n setupGeoparody(1);\n}", "title": "" }, { "docid": "e9be065b8fd546144044913ff1fe42df", "score": "0.53744185", "text": "function init() {\n if (getId() == 0) {\n // This block is performed only by Agent 0.\n }\n}", "title": "" }, { "docid": "0f49f1c732f95eb5965ceac550a0ce06", "score": "0.5363229", "text": "function auto__init_onstart() {\n\t\t\ttime_start = new Date().getTime(); // in miliseconds\n\t\t\tprocess_status = 'start';\n\t\t\t\n\t\t\t// get the import parameters\n\t\t\tget_parameters();\n\t\t\t\n\t\t\tvar nb_prods = containers.queueprods.prods.find('ul li.selected').length; \n\t\t\t\n\t\t\t// verify if there are products selected for import!\n\t\t\tif ( nb_prods == 0 ) {\n\t\t\t\tprocess_status = 'finished';\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tvar __ = {\n\t\t\t\t'nb_prods' : 0,\n\t\t\t\t'nb_variations' : 0,\n\t\t\t\t'nb_images' : 0\n\t\t\t};\n\t\t\telapsed_prods_data = $.extend( {}, __ ); //Object.create( __ );\n\t\t\ttotal_prods_data = $.extend( {}, __ ); //Object.create( __ );\n\t\t\ttotal_prods_data.nb_prods = nb_prods;\n\t\t\t//console.log( total_prods_data, elapsed_prods_data ); \n\t\t\t\n\t\t\tscreen = loading( 'show', lang.loading );\n\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "f07f0e9ee77ee9de3b2d49fd84f160b5", "score": "0.53493595", "text": "function coversheet_init(objinit) {\r\n setTimeout('coversheet_trigger(\"' + objinit + '\")', 5000);\r\n}", "title": "" }, { "docid": "d8f22238bbffe0013bcf03f59f8fb43a", "score": "0.5333247", "text": "function setup(){\n // check if all the scripts have been retrieved successfully\n if (count_ajax_returned == scripts.length){\n update_timeline();\n populate();\n } else {\n return;\n }\n }", "title": "" }, { "docid": "24d2970607010ceb8ca1fb7946aeafc3", "score": "0.5333235", "text": "function init() {\n\t// Get an instance of the REST API client and set the session ID\n\tvar client = new forcetk.Client();\n\tclient.setSessionToken(getValueFromCookie(\"sid\"));\n\t\n\t// Retrieve the data representing the current user\n\tclient.currentUser(function(response){\n\t\tvar user = response;\n\n\t\t// Find cases that belong to the current user\n\t\tclient.query(\"SELECT COUNT() FROM Case WHERE ownerId = '{0}' AND status <> 'Closed'\".replace(\"{0}\",user.id), function(response){\n\t\t\tTinycon.setBubble(response.totalSize);\n\t\t});\t\t\t\n\t});\n}", "title": "" }, { "docid": "143092c12000911c1c40761c5ea773ee", "score": "0.532915", "text": "async init() {\n this.stage = 'init'\n\n // Check if downtime is going to start\n // Refresh downtime\n this.msg.client.getTimeToDowntime().then(timeToDowntime => {\n var downtime = Math.ceil(timeToDowntime / 60000)\n if(timeToDowntime > 0 && timeToDowntime <= 5 * 60000) {\n const downtime = Math.round(timeToDowntime / 60000)\n this.msg.channel.sendMsgEmbed(`Gamebot is going to be temporarily offline for maintenance in ${downtime} minute${downtime == 1 ? '': 's'}. Games cannot be started right now. For more information, [see our support server.](${options.serverInvite})`, 'Error!', options.colors.error)\n this.forceStop()\n return\n } else if(timeToDowntime > 0) {\n this.msg.channel.sendMsgEmbed(`Gamebot is going to be temporarily offline for maintenance in ${downtime} minute${downtime == 1 ? '': 's'}. Any active games will be automatically ended. For more information, [see our support server.](${options.serverInvite})`, 'Warning!', options.colors.warning)\n }\n\n // Create listener for commands\n this.msg.client.on('message', this.messageListener)\n\n this.join(async () => {\n // Generate the game-specific option lists\n await this.generateOptions()\n \n if(this.gameOptions) {\n // Allow game leader to configure options. Configured ptions will be outputted to this.options\n await this.configureOptions()\n }\n\n // Initialize specific game\n await this.gameInit()\n\n // Begin playing the game\n await this.play()\n })\n })\n }", "title": "" }, { "docid": "ff1e05af35a377eda14853ea19590ced", "score": "0.5310162", "text": "function startDisplayCampaigns(acc, budget) {\n MccApp.select(acc);\n var started = false;\n var campaigns = [];\n if (typeof budget === \"number\") {\n var setBudget = budget;\n } else {\n var setBudget = false;\n }\n var campaignIterator = AdWordsApp.campaigns().get();\n while (campaignIterator.hasNext()) {\n var campaign = campaignIterator.next();\n if (campaign.getName().substring(0, 2).toLowerCase() === \"op\") { // ignores campaigns not starting with OP\n if (campaign.getName().toLowerCase().search(\"display\") > -1) {\n campaign.enable();\n campaigns.push(campaign.getName());\n started = true;\n }\n }\n }\n if (campaigns && setBudget) {\n var budgetIterator = AdWordsApp.budgets().get();\n while (budgetIterator.hasNext()) {\n var budget = budgetIterator.next();\n for (var i = 0; i < campaigns.length; i++) {\n if (campaigns[i].indexOf(budget.getName()) > -1) {\n budget.setAmount(setBudget);\n break;\n }\n }\n }\n }\n return started;\n}", "title": "" }, { "docid": "5328b1f3bc4725d5f2b4b43eac1ba5e4", "score": "0.5309343", "text": "onPreInitiate(){}", "title": "" }, { "docid": "80c66722368e67728b31814ef9518a02", "score": "0.5294692", "text": "function onInitComplete() {\r\n\tdebug.log(1, 'init', 'Finished all initialization tasks');\r\n\tdebug.log(1, 'security', 'TODO: calling privs drop');\r\n\tif (config.cloud.enabled) {\r\n\t\tdebug.log(1, 'init', 'app initialized as cloud');\r\n\t} else {\r\n\t\tdebug.log(1, 'init', 'app initialized as raspby');\r\n\t}\r\n}", "title": "" }, { "docid": "b366a145324cc4e742c1e02d5bb1e0fe", "score": "0.5287193", "text": "function startSearchCampaigns(acc, budget) {\n MccApp.select(acc);\n var started = false;\n var campaigns = [];\n if (typeof budget === \"number\") {\n var setBudget = budget;\n } else {\n var setBudget = false;\n }\n var campaignIterator = AdWordsApp.campaigns().get();\n while (campaignIterator.hasNext()) {\n var campaign = campaignIterator.next();\n if (campaign.getName().substring(0, 2).toLowerCase() === \"op\") { // ignores campaigns not starting with OP\n if (campaign.getName().toLowerCase().search(\"search\") > -1) {\n campaign.enable();\n campaigns.push(campaign.getName());\n started = true;\n }\n }\n }\n if (campaigns && setBudget) {\n var budgetIterator = AdWordsApp.budgets().get();\n while (budgetIterator.hasNext()) {\n var budget = budgetIterator.next();\n for (var i = 0; i < campaigns.length; i++) {\n if (campaigns[i].indexOf(budget.getName()) > -1) {\n budget.setAmount(setBudget);\n break;\n }\n }\n }\n }\n return started;\n}", "title": "" }, { "docid": "f884f8ebbd4e1a82ddb0a3008bf0ef8e", "score": "0.5285601", "text": "function p_initialize(sb) {\n scope = sb;\n\n elements = {\n game_end: document.getElementById('admin-game_end'),\n game_start: document.getElementById('admin-game_start'),\n stop: document.getElementById('admin-module-stop'),\n };\n\n scope.show();\n bindEvents();\n\n turnUpdater = setInterval(triggerTurn, 15000);\n combatTurnUpdater = setInterval(triggerCombatTurn, 3000);\n maintainenceUpdater = setInterval(triggerMaintainence, 250);\n }", "title": "" }, { "docid": "9756c47bd31b4c0fc5c3c61b08728747", "score": "0.52801", "text": "function start() {\n try\n {\n setEventListeners();\n initGameSelector();\n initBoard();\n setOpponents();\n initPlayers();\n initDefaults();\n } catch (ex) {\n console.log(ex.message);\n }\n}", "title": "" }, { "docid": "c0ffe5d64ba70792a91727a8441efe91", "score": "0.52741796", "text": "function scheduleProcess() {\n\t// prepare the data\n\tprepareOpendataplatformData();\n}", "title": "" }, { "docid": "7b1aac43663925130cb54b3c2c092a3a", "score": "0.5270886", "text": "function statelessInit() {\n const country: IsoCountry = detectCountry();\n const countryGroupId: CountryGroupId = detectCountryGroup();\n const participations: Participations = abTest.init(country, countryGroupId, window.guardian.settings);\n analyticsInitialisation(participations);\n}", "title": "" }, { "docid": "5bbf12478e7748b60f9830ac8cba0f21", "score": "0.52601653", "text": "function init(){\n register_tweet();\n show_tweet();\n update_tweet();\n count_length();\n coca.tweet.getXMLHttpRequest();\n coca.timer = setInterval(function(){coca.tweet.get_tweet()}, 1500);\n }", "title": "" }, { "docid": "d2767577be25a02dcc6920ddb42dbc5f", "score": "0.5257275", "text": "onAuctionInit (data) {\n nrvideo.Log.debug('onAuctionInit, data =', data)\n this.send('BID_AUCTION_INIT', this.generateBidGenericAttributes())\n this._timeSinceBidAuctionInit.start()\n }", "title": "" }, { "docid": "c86ba11b56b51762807d09d74cdfec1c", "score": "0.5256857", "text": "constructor() { \n CampaignTemplateItemAllOf.initialize(this);\n CampaignTemplateItem.initialize(this);\n }", "title": "" }, { "docid": "482ce120da188172c0e6cc343e308ca5", "score": "0.52542025", "text": "function initConversation() {\n postConversationMessage('');\n }", "title": "" }, { "docid": "17f69ff53e9c41db0b368a91a490c7ee", "score": "0.5244989", "text": "function initialStart() {\n\tdisplayHobbies(setHobbies());\n\tgetNews(\"news/news.json\");\n\tdisplayItems();\n}", "title": "" }, { "docid": "b1e540082ae48b2b18b8e412a9bb7dfc", "score": "0.5243315", "text": "onPostInitiate(){}", "title": "" }, { "docid": "dd4c1d21ff0b93e008f2201a58f3dc9a", "score": "0.5235086", "text": "function init_onstart() {\n\t\t\ttime_start = new Date().getTime(); // in miliseconds\n\t\t\tprocess_status = 'start'; \n\t\t\t\n\t\t\t// get the import parameters\n\t\t\tget_parameters();\n\t\t\t\n\t\t\t// get the products data: number of: products, product images, product variations...\n\t\t\tget_products_data({\n\t\t\t\t'params' : import_params\n\t\t\t});\n\t\t\t// verify if there are products selected for import!\n\t\t\tif ( current_prods_data.nb_prods == 0 ) {\n\t\t\t\tprocess_status = 'finished';\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttotal_prods_data = current_prods_data;\n\t\t\telapsed_prods_data = {\n\t\t\t\t'nb_prods' : 0,\n\t\t\t\t'nb_variations' : 0,\n\t\t\t\t'nb_images' : 0\n\t\t\t};\n\t\t\t\n\t\t\tscreen = loading( 'show', lang.loading );\n\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "a266f5593cc5c881fcd2594f6d2ef612", "score": "0.52301264", "text": "function init() {\n industryImpactInit();\n initNavScrolls();\n initAi2html();\n}", "title": "" }, { "docid": "618e4818e391c3d2ee194f6f98ad28f6", "score": "0.52261627", "text": "function Start () : void {\n//\t\t_id = GetComponent(ObjectId);\n//\t\t_attributes = GetComponent(Attributes);\n\t\t_actions = GetComponent(ActionsJs);\n\t\tif (executeAtStart) {\n\t\t\tfor ( var i : int= 0; i < useCount; ++i) {\n\t\t\t\tRunActions();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "46534b27394516303ae345548032271b", "score": "0.5223392", "text": "function Start() {\n\n // Initialize Spaceship\n //InitializeAirplane();\n InitializeTowers();\n}", "title": "" }, { "docid": "cd7c765887553fb9c249dc50b4e93aec", "score": "0.5220108", "text": "function init() {\n\t\t// run the story\n\t\trunStory();\n\t\t$intro.on(\"click\", nextScript);\n\n\t\t$intro.find(\"button\").click(function() {\n\t\t\t$intro.slideUp(600, gamePlay);\n\t\t});\n\n\t\t// click after winning to proceed\n\t\t$win.find(\"button\").click(function() {\n\t\t\t$win.hide();\n\t\t\tgameFlow();\n\t\t});\n\n\t\t// click after loosing to continue\n\t\t$loose.find(\"button\").click(function() {\n\t\t\t$loose.hide();\n\t\t\t[time, score, level] = [initialTime, 0, 1];\n\t\t\t$score.text(score);\n\t\t\t$level.text(level);\n\t\t\tclearStage();\n\t\t\tsecret();\n\t\t\tgameFlow();\n\t\t\teCanvas.addEventListener(\"click\", checkColor);\n\t\t});\n\t}", "title": "" }, { "docid": "f0602bb47a2f6122335a4cd4bc26bf93", "score": "0.52179825", "text": "function doAllConnections() {\n // called only after reverb and cabinet sim could load and\n // decode impulses\n\n // Build web audio graph, set default preset\n buildGraph();\n initPresets();\n\n console.log(\"Running\");\n }", "title": "" }, { "docid": "bd4693afc901b2540ab50fc6602f45a7", "score": "0.5217453", "text": "function initialize_event() {\n initialize_attraction();\n initialize_hotel();\n initialize_transportation();\n initialize_restaurant();\n }", "title": "" }, { "docid": "6f296de487fcba60abf07cbeaadb7d76", "score": "0.5216859", "text": "function INIT() {\r\n //check_axis();\r\n points_coord();\r\n spheres_creation();\r\n triangulation();\r\n merge();\r\n create_click_condition();\r\n center_scene();\r\n every_frame();\r\n}", "title": "" }, { "docid": "699bac3dd87fed305e68195288326372", "score": "0.52163565", "text": "function beginSetup() {\r\n\thue.nupnpSearch().then((bridge) => {\r\n\t\tstore.set('bridgeIP', bridge[0].ipaddress);\r\n\t}).then(createSetupWindow).done();\r\n}", "title": "" }, { "docid": "91d387421b9da33b471595a63e470b17", "score": "0.5214456", "text": "function start() {\n\n gw_job_process.UI();\n v_global.logic.proj_no = gw_com_api.getPageParameter(\"proj_no\");\n gw_com_api.setValue(\"frmOption\", 1, \"proj_no\", v_global.logic.proj_no);\n processRetrieve({});\n\n }", "title": "" }, { "docid": "cde781422d10238ba064bc1d75900b6c", "score": "0.52059007", "text": "function performAmtAgentPresence() { startLms(function () { tempWatchdogTimer = setTimeout(performAmtAgentPresenceRegister, 3000); }); }", "title": "" }, { "docid": "cde781422d10238ba064bc1d75900b6c", "score": "0.52059007", "text": "function performAmtAgentPresence() { startLms(function () { tempWatchdogTimer = setTimeout(performAmtAgentPresenceRegister, 3000); }); }", "title": "" }, { "docid": "cde781422d10238ba064bc1d75900b6c", "score": "0.52059007", "text": "function performAmtAgentPresence() { startLms(function () { tempWatchdogTimer = setTimeout(performAmtAgentPresenceRegister, 3000); }); }", "title": "" }, { "docid": "df86d4dce04420b3d41cca36a2b10267", "score": "0.5205421", "text": "function init() {\n \tgetTasks();\n\n }", "title": "" }, { "docid": "216ec5543d7038a06da7413ac98b7861", "score": "0.5204507", "text": "function doInitStep(){\n if (guiInitialized){\n // ask android the race name\n raceName=\"aRaceName\";\n gameStage++;\n }\n}", "title": "" }, { "docid": "de9b7f16702e9bef51511412e60f50e6", "score": "0.52040833", "text": "startBotCRONJobs(startBotEventsCallbackResult, startBotCRONJobsCallback) {\n\t\tstartBotCRONJobsCallback(null, \"CRONs have begun\");\n\t}", "title": "" }, { "docid": "160ab2f5638dc40dd50e5278572d69e2", "score": "0.519928", "text": "async function prepare() {\n await bgPage.prepareToOpen(true,_, localVersion).then( () => {\n bgPanda = bgPage.gGetPanda(); bgQueue = bgPage.gGetQueue(); bgHistory = bgPage.gGetHistory(); bgSearch = bgPage.gGetSearch();\n globalOpt = bgPage.gGetOptions(); alarms = bgPage.gGetAlarms(new MyAudioClass(), 'panda'); notify = new NotificationsClass(); MYDB = bgPage.gGetMYDB();\n groupings = new TheGroupings(); sGroupings = new TheGroupings('searching'); pandaUI = new PandaUI(); menus = new MenuClass(); dashboard = bgPage.gGetDash();\n themes = new ThemesClass();\n startPandaCrazy();\n });\n}", "title": "" }, { "docid": "f4cfb13a51ff12deb4680cb9c11b4891", "score": "0.519449", "text": "function init() {\n fetchSchedules();\n initializeCalendar(sDefaultDate);\n fetchCourses();\n fetchVenues();\n fetchInstructors();\n setDomEvents();\n }", "title": "" }, { "docid": "bf2fb36626d0469cce9aafd4bf57c6a7", "score": "0.51942784", "text": "async initializeTurn() {\n try {\n const requestBody = JSON.stringify({\n playerToken: localStorage.getItem('token')\n });\n\n await api.put('/games/' + this.state.gameId + '/initializations', requestBody);\n\n } catch (error) {\n console.log('Error in initializeTurn()', handleError(error))\n }\n }", "title": "" }, { "docid": "eadb3408f953b47c3db2c6ab69b90e1f", "score": "0.518902", "text": "function initAdserver() {\n // if (pbjs.requestSent) {\n // return;\n // }\n pbjs.requestSent = true;\n pbjs.que.push(function() {\n apntag.anq.push(function() {\n pbjs.setTargetingForAst();\n apntag.loadTags();\n });\n });\n}", "title": "" }, { "docid": "8a2adca8380d5c5830f7e622fceebbbf", "score": "0.51876307", "text": "async function startRequest() {\n\tconsole.log(\"start HTTP Request...\");\n\t// We need to get the array that user has stored previously if not then we use original one\n\tawait getPlatforms();\n\tawait fetchAllMyContests();\n\tawait setmyContests();\n\tawait getmyContests();\n\tconsole.log(myContests);\n}", "title": "" }, { "docid": "58d52393cbaacf4cc1c47071673da23f", "score": "0.5187139", "text": "async function init() {\n //set up users\n await setUpCollection(Users, [\"id\", \"name\", \"balance\"], users);\n await setUpCollection(PetShop, [\"name\", \"cost\"], shop);\n}", "title": "" }, { "docid": "213c5379cf083447b011983292668415", "score": "0.518689", "text": "function init() {\n initElements();\n initListeners();\n\n // checks if there are cookies\n if (checkCookie('job')) {\n console.log('cookie setup');\n // if yes: load Table\n cookieSetup();\n } else {\n console.log('first timer');\n // if no: load Jobs\n loadJobs();\n }\n\n // set Date in WW-GGGG format\n $(weekSet).text(moment(date).format('WW-GGGG'));\n }", "title": "" }, { "docid": "a8cc85d9b0c5535f216622536e17b281", "score": "0.5184059", "text": "function initTweetOnReady() {\n twttr.widgets.createTweet(tweetId, $tweet.get(0))\n .then(processTwitterWidget); // Let any error bubble up (no catch()).\n }", "title": "" }, { "docid": "ee5eac56dc986845e6bf34954f870bea", "score": "0.5179119", "text": "function Begin()\n\t{\n\t\tgameState = 1;\n\t\tStart();\n\t\tSetText('message_box', \"Present your command with a cookie.\");\n\t\ttime = 0;\n\t\ttimerState = true;\n\t\tInitiateTimer();\n\t}", "title": "" }, { "docid": "89a0e22d328e0e323c3cbf522821a5ab", "score": "0.5177918", "text": "async initialSetup(imported = false) {\n let message, options\n if (!imported) {\n message = \"Welcome to CovidZones. Make sure your script has the name you want before you begin.\"\n options = ['I like the name \"' + this.name + '\"', \"Let me go change it\"]\n if (await this.generateAlert(message,options)) return\n }\n\n message = (imported ? \"Welcome to CovidZones. We\" : \"Next, we\") + \" need to check if you've given permissions to the Scriptable app. This might take a few seconds.\"\n await this.generateAlert(message,[\"Check permissions\"])\n\n let errors = []\n if (!(await this.setupLocation())) { errors.push(\"location\") }\n try { await CalendarEvent.today() } catch { errors.push(\"calendar\") }\n try { await Reminder.all() } catch { errors.push(\"reminders\") }\n\n let issues\n if (errors.length > 0) { issues = errors[0] }\n if (errors.length == 2) { issues += \" and \" + errors[1] }\n if (errors.length == 3) { issues += \", \" + errors[1] + \", and \" + errors[2] }\n\n if (issues) { \n message = \"Scriptable does not have permission for \" + issues + \". Some features may not work without enabling them in the Settings app.\"\n options = [\"Continue setup anyway\", \"Exit setup\"]\n } else {\n message = \"Your permissions are enabled.\"\n options = [\"Continue setup\"]\n }\n// if (await this.generateAlert(message,options)) return\n\n if (!imported) { await this.setWidgetBackground() }\n this.writePreference(\"CovidZones-setup\", \"true\")\n\n message = \"Your widget is ready! You'll now see a preview. Re-run this script to edit the default preferences, including localization. When you're ready, add a Scriptable widget to the home screen and select this script.\"\n await this.generateAlert(message,[\"Show preview\"])\n return this.previewValue()\n }", "title": "" }, { "docid": "3848a3e0bb3e5d5b0554362228c72137", "score": "0.5172509", "text": "function startinteractive ()\n{\n\tcorporal.on('load', corporal.loop);\n}", "title": "" }, { "docid": "1d15ec56317268b04c2edcd2b7e6b8ee", "score": "0.5167507", "text": "async function init() {\n console.log(\"begin agent init\");\n\n // clear metadata cache; do not just assign to {} and [] because of async\n clientSchemaList.splice(0, clientSchemaList.length);\n for (let key in clientSchemaMap) {\n delete clientSchemaMap[key]\n }\n clientSchemaSubList.splice(0, clientSchemaSubList.length);\n for (let key in clientSchemaSubMap) {\n delete clientSchemaSubMap[key]\n }\n\n clientFolderList.splice(0, clientFolderList.length);\n for (let key in clientFolderMap) {\n delete clientFolderMap[key]\n }\n clientFolderSubList.splice(0, clientFolderSubList.length);\n for (let key in clientFolderSubMap) {\n delete clientFolderSubMap[key]\n }\n\n pvcAdminRealm = context.pvcAdminRealm;\n let realmSyncSchemas = pvcAdminRealm.objects(\"pvc__sync_schemas\");\n for (let syncSchemaRow of realmSyncSchemas) {\n await initSyncSchema(syncSchemaRow);\n }\n let realmSyncFolders = pvcAdminRealm.objects(\"pvc__sync_folders\");\n for (let syncFolderRow of realmSyncFolders) {\n await initSyncFolder(syncFolderRow);\n }\n\n console.log(\"end agent init\");\n}", "title": "" }, { "docid": "444d393381187b23e68801235bd44e5a", "score": "0.51640856", "text": "function start() {\n\n gw_job_process.UI();\n\n v_global.logic.proj_no = gw_com_api.getPageParameter(\"proj_no\");\n gw_com_api.setValue(\"frmOption\", 1, \"proj_no\", v_global.logic.proj_no);\n //gw_com_api.setValue(\"frmOption\", 1, \"proj_no\", \"SE16PE013\");\n\n processRetrieve({});\n\n }", "title": "" }, { "docid": "c6827b4fd18c1b45aecd9ed51b2876a1", "score": "0.51608855", "text": "function init()\n{\n collapseupperbox(1);\n basics();\n gettraffic();\n}", "title": "" }, { "docid": "f4437826ad6e4c480c3ff3ae3c1b7e4c", "score": "0.51531357", "text": "function init()\n{\n ajaxRequest(createSoundcloudWidget);\n createCamera();\n}", "title": "" }, { "docid": "57289ff19d4c666acc256ad3588a21dd", "score": "0.5152607", "text": "function initiate()\n {\n createCanvas();\n setupTheGame();\n }", "title": "" }, { "docid": "9680f259ce362fb86d0311f6957fae41", "score": "0.5148615", "text": "function startingEffects(){\n\tsmsStartPage();\n\tslideDownMenu();\n\tslideUpFooter();\n\tslideRightFooter();\n\tslideLeftFooter();\n\tslideRightFooterText();\n\tenterPhoneNumberPopUpExit()\n\tenterPhoneNumberPopUp();\n}", "title": "" }, { "docid": "4c64aeb2f54da559435b736dbebfbe4a", "score": "0.514682", "text": "function initDimTools() {\n if (document.querySelector('#app .billboard')) {\n // need Battle.net login\n\n } else {\n watcher = window.setInterval(waitForLoadingFinished, 1000); // wait 1 second before run\n }\n }", "title": "" }, { "docid": "7fa0118d7a658dfc7c587a656f6c7d2d", "score": "0.514286", "text": "function InitBuildings() {\n\tLoadBuilding(\"Lemonade Stand\",10,1);\n\tLoadBuilding(\"Ice Lolly Stand\",100,5);\n}", "title": "" }, { "docid": "c40fa0a2e584713a5f9834a94adcf3b9", "score": "0.51409996", "text": "function init() {\n //hide the characters' details, attributes and purse contents from view\n closeAll();\n\n //add listener to the campaign member name elements\n var els = document.getElementsByClassName('name');\n addListeners(els, toggleCharacter);\n\n //add listener to the h5 elements\n var els = document.getElementsByTagName('h5');\n addListeners(els, toggleTable);\n\n //add listener to the close all button in gamemaster view\n var el = document.getElementById('close-all');\n var els = new Array();\n els.push(el);\n addListeners(els, closeAll);\n\n //add listeners to the reset initiative button in gamemaster view\n var el = document.getElementById('reset-init');\n var els = new Array();\n els.push(el);\n addListeners(els, resetInitiatives);\n\n //add listener to the toggle sub-nav link\n var els = new Array()\n var el = document.getElementById('sub-nav-init');\n els.push(el);\n addListeners(els, toggleSubnav);\n\n}", "title": "" }, { "docid": "327c731c9139367e5840510ced39e1d3", "score": "0.51362455", "text": "function C999_Common_CuffsKey_Run() {\n\tBuildInteraction(C999_Common_CuffsKey_CurrentStage);\n}", "title": "" }, { "docid": "e938b2f7d5a977ce250024e466dbd205", "score": "0.51340306", "text": "function init()\n{\n\tSystem.out.println(\"-------------------------- init --------------------------------\");\n\tsetupGUI();\n\tsetupApparatusPanel();\n\tinitLogging();\n\tsetupMultimeter();\t\n\tsetupCircuitListener();\n\tsetupAnswerButton();\n\tsetupActivity();\n\tsetupAsessmentLogging();\n\tsetupCircuitAnalyzer();\n\tinitializationDone = true;\n\treturn initializationDone;\n}", "title": "" } ]
69d508db19b2c73ec7cd774bd8db8a4d
Merges a partial update into a set of variables. If no variables changed, the same object is returned. Otherwise, a new object is returned.
[ { "docid": "b2b65a3765665100491c1f03c5fc6911", "score": "0.6453547", "text": "function mergeVariables(currentVariables, partialVariables) {\n\t if (partialVariables) {\n\t for (var _key3 in partialVariables) {\n\t if (currentVariables[_key3] !== partialVariables[_key3]) {\n\t return (0, _extends3['default'])({}, currentVariables, partialVariables);\n\t }\n\t }\n\t }\n\t return currentVariables;\n\t}", "title": "" } ]
[ { "docid": "41439f54cabf8b4e6ceeb115d809813a", "score": "0.65934783", "text": "function mergeVariables(currentVariables, partialVariables) {\n if (partialVariables) {\n for (var _key3 in partialVariables) {\n if (currentVariables[_key3] !== partialVariables[_key3]) {\n return (0, _extends3['default'])({}, currentVariables, partialVariables);\n }\n }\n }\n return currentVariables;\n}", "title": "" }, { "docid": "36f156abef8badc5af5c5b50d67e0844", "score": "0.54786587", "text": "function mergeUpdates(a, b) {\n\t\tif(typeof a === \"object\" && typeof b === \"object\") {\n\t\t\tvar res = {};\n\t\t\tObject.keys(a).concat(Object.keys(b)).forEach(function(key) {\n\t\t\t\tif(a[key] && b[key]) {\n\t\t\t\t\tswitch(key) {\n\t\t\t\t\t\tcase \"$push\":\n\t\t\t\t\t\t\tres[key] = a[key].concat(b[key]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"$unshift\":\n\t\t\t\t\t\t\tres[key] = b[key].concat(a[key]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"$splice\":\n\t\t\t\t\t\t\tres[key] = a[key].concat(b[key]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"$set\":\n\t\t\t\t\t\t\tres[key] = b[key];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"$merge\":\n\t\t\t\t\t\t\tvar o = res[key] = {};\n\t\t\t\t\t\t\tObject.keys(a[key]).forEach(function(x) {\n\t\t\t\t\t\t\t\to[x] = a[key][x]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tObject.keys(b[key]).forEach(function(x) {\n\t\t\t\t\t\t\t\to[x] = b[key][x]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tres[key] = mergeUpdates(a[key], b[key]);\n\t\t\t\t} else if(a[key])\n\t\t\t\t\tres[key] = a[key];\n\t\t\t\telse\n\t\t\t\t\tres[key] = b[key];\n\t\t\t});\n\t\t}\n\t\treturn a || b;\n\t}", "title": "" }, { "docid": "0b441871f173922e1507241e67cd5e9f", "score": "0.5395922", "text": "function update() {\n var target = arguments[0],\n source = null;\n if (arguments.length > 0) {\n for (var i = 1; i < arguments.length; i++) {\n source = arguments[i] || {};\n for (var k in source) {\n if (source.hasOwnProperty(k)) {\n target[k] = source[k];\n }\n }\n }\n }\n return target;\n}", "title": "" }, { "docid": "223e98d6f8eecec2c2adcd9c48f822dd", "score": "0.5391081", "text": "updatePartial(req, res, next) {\n this.update(req, res, next, true);\n }", "title": "" }, { "docid": "16f4c0a7a0ab6bd57655a39f8630016c", "score": "0.5134534", "text": "function merge() {\n return _.extend.apply(null, construct({}, arguments));\n}", "title": "" }, { "docid": "719d51762252827e8f64df29ee0fdaeb", "score": "0.508094", "text": "function merge() {\n const funcArgs = Array.prototype.slice.call(arguments); // eslint-disable-line prefer-rest-params\n\n return Object.assign.apply(\n null,\n removeEmpty([{}].concat(funcArgs))\n );\n}", "title": "" }, { "docid": "719d51762252827e8f64df29ee0fdaeb", "score": "0.508094", "text": "function merge() {\n const funcArgs = Array.prototype.slice.call(arguments); // eslint-disable-line prefer-rest-params\n\n return Object.assign.apply(\n null,\n removeEmpty([{}].concat(funcArgs))\n );\n}", "title": "" }, { "docid": "0f3694df5263d47fd74de52422ccb498", "score": "0.5045676", "text": "function sqlForPartialUpdate(dataToUpdate) {\n const cols = Object.keys(dataToUpdate).map(\n (col, idx) => `${col}=$${idx + 1}`);\n\n return {\n setCols: cols.join(\", \"),\n values: Object.values(dataToUpdate),\n };\n}", "title": "" }, { "docid": "7c9710a7eb462d73eab9317ec2b20c19", "score": "0.50392675", "text": "function merge() {\n\tvar i,\n\t\targs = arguments,\n\t\tlen,\n\t\tret = {},\n\t\tdoCopy = function (copy, original) {\n\t\t\tvar value, key;\n\n\t\t\t// An object is replacing a primitive\n\t\t\tif (typeof copy !== 'object') {\n\t\t\t\tcopy = {};\n\t\t\t}\n\n\t\t\tfor (key in original) {\n\t\t\t\tif (original.hasOwnProperty(key)) {\n\t\t\t\t\tvalue = original[key];\n\n\t\t\t\t\t// Copy the contents of objects, but not arrays or DOM nodes\n\t\t\t\t\tif (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]' &&\n\t\t\t\t\t\t\tkey !== 'renderTo' && typeof value.nodeType !== 'number') {\n\t\t\t\t\t\tcopy[key] = doCopy(copy[key] || {}, value);\n\t\t\t\t\n\t\t\t\t\t// Primitives and arrays are copied over directly\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcopy[key] = original[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn copy;\n\t\t};\n\n\t// If first argument is true, copy into the existing object. Used in setOptions.\n\tif (args[0] === true) {\n\t\tret = args[1];\n\t\targs = Array.prototype.slice.call(args, 2);\n\t}\n\n\t// For each argument, extend the return\n\tlen = args.length;\n\tfor (i = 0; i < len; i++) {\n\t\tret = doCopy(ret, args[i]);\n\t}\n\n\treturn ret;\n}", "title": "" }, { "docid": "e613d38a7edfd43e8b0e77e2ed4ddb45", "score": "0.5024593", "text": "function merge() {\n\tvar i,\n\t\targs = arguments,\n\t\tlen,\n\t\tret = {},\n\t\tdoCopy = function (copy, original) {\n\t\t\tvar value, key;\n\n\t\t\t// An object is replacing a primitive\n\t\t\tif (typeof copy !== 'object') {\n\t\t\t\tcopy = {};\n\t\t\t}\n\n\t\t\tfor (key in original) {\n\t\t\t\tif (original.hasOwnProperty(key)) {\n\t\t\t\t\tvalue = original[key];\n\n\t\t\t\t\t// Copy the contents of objects, but not arrays or DOM nodes\n\t\t\t\t\tif (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]'\n\t\t\t\t\t\t\t&& key !== 'renderTo' && typeof value.nodeType !== 'number') {\n\t\t\t\t\t\tcopy[key] = doCopy(copy[key] || {}, value);\n\t\t\t\t\n\t\t\t\t\t// Primitives and arrays are copied over directly\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcopy[key] = original[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn copy;\n\t\t};\n\n\t// If first argument is true, copy into the existing object. Used in setOptions.\n\tif (args[0] === true) {\n\t\tret = args[1];\n\t\targs = Array.prototype.slice.call(args, 2);\n\t}\n\n\t// For each argument, extend the return\n\tlen = args.length;\n\tfor (i = 0; i < len; i++) {\n\t\tret = doCopy(ret, args[i]);\n\t}\n\n\treturn ret;\n}", "title": "" }, { "docid": "e613d38a7edfd43e8b0e77e2ed4ddb45", "score": "0.5024593", "text": "function merge() {\n\tvar i,\n\t\targs = arguments,\n\t\tlen,\n\t\tret = {},\n\t\tdoCopy = function (copy, original) {\n\t\t\tvar value, key;\n\n\t\t\t// An object is replacing a primitive\n\t\t\tif (typeof copy !== 'object') {\n\t\t\t\tcopy = {};\n\t\t\t}\n\n\t\t\tfor (key in original) {\n\t\t\t\tif (original.hasOwnProperty(key)) {\n\t\t\t\t\tvalue = original[key];\n\n\t\t\t\t\t// Copy the contents of objects, but not arrays or DOM nodes\n\t\t\t\t\tif (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]'\n\t\t\t\t\t\t\t&& key !== 'renderTo' && typeof value.nodeType !== 'number') {\n\t\t\t\t\t\tcopy[key] = doCopy(copy[key] || {}, value);\n\t\t\t\t\n\t\t\t\t\t// Primitives and arrays are copied over directly\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcopy[key] = original[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn copy;\n\t\t};\n\n\t// If first argument is true, copy into the existing object. Used in setOptions.\n\tif (args[0] === true) {\n\t\tret = args[1];\n\t\targs = Array.prototype.slice.call(args, 2);\n\t}\n\n\t// For each argument, extend the return\n\tlen = args.length;\n\tfor (i = 0; i < len; i++) {\n\t\tret = doCopy(ret, args[i]);\n\t}\n\n\treturn ret;\n}", "title": "" }, { "docid": "e613d38a7edfd43e8b0e77e2ed4ddb45", "score": "0.5024593", "text": "function merge() {\n\tvar i,\n\t\targs = arguments,\n\t\tlen,\n\t\tret = {},\n\t\tdoCopy = function (copy, original) {\n\t\t\tvar value, key;\n\n\t\t\t// An object is replacing a primitive\n\t\t\tif (typeof copy !== 'object') {\n\t\t\t\tcopy = {};\n\t\t\t}\n\n\t\t\tfor (key in original) {\n\t\t\t\tif (original.hasOwnProperty(key)) {\n\t\t\t\t\tvalue = original[key];\n\n\t\t\t\t\t// Copy the contents of objects, but not arrays or DOM nodes\n\t\t\t\t\tif (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]'\n\t\t\t\t\t\t\t&& key !== 'renderTo' && typeof value.nodeType !== 'number') {\n\t\t\t\t\t\tcopy[key] = doCopy(copy[key] || {}, value);\n\t\t\t\t\n\t\t\t\t\t// Primitives and arrays are copied over directly\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcopy[key] = original[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn copy;\n\t\t};\n\n\t// If first argument is true, copy into the existing object. Used in setOptions.\n\tif (args[0] === true) {\n\t\tret = args[1];\n\t\targs = Array.prototype.slice.call(args, 2);\n\t}\n\n\t// For each argument, extend the return\n\tlen = args.length;\n\tfor (i = 0; i < len; i++) {\n\t\tret = doCopy(ret, args[i]);\n\t}\n\n\treturn ret;\n}", "title": "" }, { "docid": "b3a5528f44e57d0be0ed6a4193cfd494", "score": "0.5024137", "text": "function updateVars() {\n self.forEachVar(function(curatorVar) {\n curatorVar.inQueryParams = false;\n });\n\n var varNames = varExtractorSvc.extract(self.queryParams);\n angular.forEach(varNames, function(varName) {\n var foundVar = self.getVar(varName);\n if (!foundVar) {\n addVar(self, varName, 10);\n var newVar = self.getVar(varName);\n newVar.inQueryParams = true;\n }\n else {\n foundVar.inQueryParams = true;\n }\n });\n sortVars();\n }", "title": "" }, { "docid": "a282582c9239b46145c1592bcb695c9d", "score": "0.4997341", "text": "_fullUpdate() {\n\t\tNodeCG.readReplicant(this.name, this.namespace, data => {\n\t\t\tthis.emit('fullUpdate', data);\n\t\t\tthis._assignValue(data.value, data.revision);\n\t\t});\n\t}", "title": "" }, { "docid": "82758f56365dfa9fb1db25f49cc14013", "score": "0.49410483", "text": "function getVariablesWithPropOverrides(spec, props, variables) {\n var initialVariables = spec.initialVariables;\n if (initialVariables) {\n var mergedVariables = void 0;\n for (var _key in initialVariables) {\n if (_key in props) {\n mergedVariables = mergedVariables || (0, _extends3['default'])({}, variables);\n mergedVariables[_key] = props[_key];\n }\n }\n variables = mergedVariables || variables;\n }\n return variables;\n}", "title": "" }, { "docid": "15a83e92a2a52b345674a33dc6406507", "score": "0.49201226", "text": "function merge() {\n var i,\n args = arguments,\n len,\n ret = {},\n doCopy = function (copy, original) {\n var value, key;\n\n // An object is replacing a primitive\n if (typeof copy !== 'object') {\n copy = {};\n }\n\n for (key in original) {\n if (original.hasOwnProperty(key)) {\n value = original[key];\n\n // Copy the contents of objects, but not arrays or DOM nodes\n if (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]' &&\n key !== 'renderTo' && typeof value.nodeType !== 'number') {\n copy[key] = doCopy(copy[key] || {}, value);\n\n // Primitives and arrays are copied over directly\n } else {\n copy[key] = original[key];\n }\n }\n }\n return copy;\n };\n\n // If first argument is true, copy into the existing object. Used in setOptions.\n if (args[0] === true) {\n ret = args[1];\n args = Array.prototype.slice.call(args, 2);\n }\n\n // For each argument, extend the return\n len = args.length;\n for (i = 0; i < len; i++) {\n ret = doCopy(ret, args[i]);\n }\n\n return ret;\n }", "title": "" }, { "docid": "15a83e92a2a52b345674a33dc6406507", "score": "0.49201226", "text": "function merge() {\n var i,\n args = arguments,\n len,\n ret = {},\n doCopy = function (copy, original) {\n var value, key;\n\n // An object is replacing a primitive\n if (typeof copy !== 'object') {\n copy = {};\n }\n\n for (key in original) {\n if (original.hasOwnProperty(key)) {\n value = original[key];\n\n // Copy the contents of objects, but not arrays or DOM nodes\n if (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]' &&\n key !== 'renderTo' && typeof value.nodeType !== 'number') {\n copy[key] = doCopy(copy[key] || {}, value);\n\n // Primitives and arrays are copied over directly\n } else {\n copy[key] = original[key];\n }\n }\n }\n return copy;\n };\n\n // If first argument is true, copy into the existing object. Used in setOptions.\n if (args[0] === true) {\n ret = args[1];\n args = Array.prototype.slice.call(args, 2);\n }\n\n // For each argument, extend the return\n len = args.length;\n for (i = 0; i < len; i++) {\n ret = doCopy(ret, args[i]);\n }\n\n return ret;\n }", "title": "" }, { "docid": "7f369a13efb0b4ae46f0b26f30a7216b", "score": "0.49141443", "text": "function d(t,e,r,n,i,o,a){return t.op=e,c.canMerge(r)&&t.merge(r),n&&t._mergeUpdate(n),s.isObject(i)&&t.setOptions(i),o||a?!t._update||!t.options.overwrite&&0===s.keys(t._update).length?(a&&s.soon(a.bind(null,null,0)),t):(i=t._optionsForExec(),a||(i.safe=!1),r=t._conditions,n=t._updateForExec(),u(\"update\",t._collection.collectionName,r,n,i),a=t._wrapCallback(e,a,{conditions:r,doc:n,options:i}),t._collection[e](r,n,i,s.tick(a)),t):t}", "title": "" }, { "docid": "1a444aa78f1d25cd28b9d8a28a4dbcdc", "score": "0.49054646", "text": "function d(e,t,n,r,i,o,u){return e.op=t,l.canMerge(n)&&e.merge(n),r&&e._mergeUpdate(r),s.isObject(i)&&e.setOptions(i),o||u?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(u&&s.soon(u.bind(null,null,0)),e):(i=e._optionsForExec(),u||(i.safe=!1),n=e._conditions,r=e._updateForExec(),a(\"update\",e._collection.collectionName,n,r,i),u=e._wrapCallback(t,u,{conditions:n,doc:r,options:i}),e._collection[t](n,r,i,s.tick(u)),e):e}", "title": "" }, { "docid": "61666865d9e0903674ca63c10e83a126", "score": "0.48959503", "text": "function getVariablesWithPropOverrides(spec, props, variables) {\n\t var initialVariables = spec.initialVariables;\n\t if (initialVariables) {\n\t var mergedVariables = void 0;\n\t for (var _key in initialVariables) {\n\t if (_key in props) {\n\t mergedVariables = mergedVariables || (0, _extends3['default'])({}, variables);\n\t mergedVariables[_key] = props[_key];\n\t }\n\t }\n\t variables = mergedVariables || variables;\n\t }\n\t return variables;\n\t}", "title": "" }, { "docid": "dfa98268ca3a3c45c851a5c740284b74", "score": "0.48957425", "text": "function h(e,t,n,r,i,o,a){return e.op=t,l.canMerge(n)&&e.merge(n),r&&e._mergeUpdate(r),s.isObject(i)&&e.setOptions(i),o||a?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(a&&s.soon(a.bind(null,null,0)),e):(i=e._optionsForExec(),a||(i.safe=!1),n=e._conditions,r=e._updateForExec(),c(\"update\",e._collection.collectionName,n,r,i),a=e._wrapCallback(t,a,{conditions:n,doc:r,options:i}),e._collection[t](n,r,i,s.tick(a)),e):e}", "title": "" }, { "docid": "72585bfcbb03db4348d59b1231e2afc7", "score": "0.48860598", "text": "function d(e,t,n,r,i,o,u){return e.op=t,a.canMerge(n)&&e.merge(n),r&&e._mergeUpdate(r),s.isObject(i)&&e.setOptions(i),o||u?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(u&&s.soon(u.bind(null,null,0)),e):(i=e._optionsForExec(),u||(i.safe=!1),n=e._conditions,r=e._updateForExec(),l(\"update\",e._collection.collectionName,n,r,i),u=e._wrapCallback(t,u,{conditions:n,doc:r,options:i}),e._collection[t](n,r,i,s.tick(u)),e):e}", "title": "" }, { "docid": "7ae828fe6a974e9da0a5191e803cac05", "score": "0.4876523", "text": "function merge() { var to = {}; arguments.forEach(function(from) { copyin(to, from); }); return to; }", "title": "" }, { "docid": "e69d06fc9573b57b4e1fbc41c6de5232", "score": "0.48698124", "text": "function d(e,t,n,r,o,i,u){return e.op=t,a.canMerge(n)&&e.merge(n),r&&e._mergeUpdate(r),s.isObject(o)&&e.setOptions(o),i||u?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(u&&s.soon(u.bind(null,null,0)),e):(o=e._optionsForExec(),u||(o.safe=!1),n=e._conditions,r=e._updateForExec(),l(\"update\",e._collection.collectionName,n,r,o),u=e._wrapCallback(t,u,{conditions:n,doc:r,options:o}),e._collection[t](n,r,o,s.tick(u)),e):e}", "title": "" }, { "docid": "8d47e822c247f3476f5fcbcc37e23bd3", "score": "0.4861529", "text": "function h(e,t,r,n,o,i,u){return e.op=t,c.canMerge(r)&&e.merge(r),n&&e._mergeUpdate(n),s.isObject(o)&&e.setOptions(o),i||u?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(u&&s.soon(u.bind(null,null,0)),e):(o=e._optionsForExec(),u||(o.safe=!1),r=e._conditions,n=e._updateForExec(),a(\"update\",e._collection.collectionName,r,n,o),u=e._wrapCallback(t,u,{conditions:r,doc:n,options:o}),e._collection[t](r,n,o,s.tick(u)),e):e}", "title": "" }, { "docid": "d78ce6dd31246b45790f3f5a26620252", "score": "0.48533258", "text": "function d(e,t,r,n,o,i,u){return e.op=t,c.canMerge(r)&&e.merge(r),n&&e._mergeUpdate(n),s.isObject(o)&&e.setOptions(o),i||u?!e._update||!e.options.overwrite&&0===s.keys(e._update).length?(u&&s.soon(u.bind(null,null,0)),e):(o=e._optionsForExec(),u||(o.safe=!1),r=e._conditions,n=e._updateForExec(),a(\"update\",e._collection.collectionName,r,n,o),u=e._wrapCallback(t,u,{conditions:r,doc:n,options:o}),e._collection[t](r,n,o,s.tick(u)),e):e}", "title": "" }, { "docid": "2ec35133fd6e5e83e992c700eab7d108", "score": "0.48506236", "text": "mergeUpdates(oldState, newState) {\n Object.keys(newState).forEach(newKey => {\n const newValue = newState[newKey]; // if oldState does not contain value but newValue does, add it\n\n if (!oldState.hasOwnProperty(newKey)) {\n if (newValue !== null) {\n oldState[newKey] = newValue;\n }\n } else {\n // both oldState and newState contain the key, do deep update\n const newValueNotNull = newValue !== null;\n const newValueIsObject = typeof newValue === \"object\";\n const newValueIsNotArray = !Array.isArray(newValue);\n const oldStateNotUndefinedOrNull = typeof oldState[newKey] !== \"undefined\" && oldState[newKey] !== null;\n\n if (newValueNotNull && newValueIsObject && newValueIsNotArray && oldStateNotUndefinedOrNull) {\n this.mergeUpdates(oldState[newKey], newValue);\n } else {\n oldState[newKey] = newValue;\n }\n }\n });\n return oldState;\n }", "title": "" }, { "docid": "44a6e8b9d2df05c1a6af63d0e6b8b58e", "score": "0.48246434", "text": "function mergeObjs(mayOverwrite, firstObj, moreObjs) {\n _.each(moreObjs, function(anotherObj) {\n if (anotherObj) {\n for (var prop in anotherObj) {\n if (mayOverwrite || !firstObj.hasOwnProperty(prop)) {\n firstObj[prop] = anotherObj[prop];\n }\n }\n }\n });\n return firstObj;\n }", "title": "" }, { "docid": "96d9977afc9eb8c1a5ea5ccfccdbaac3", "score": "0.48235726", "text": "updateDummy(variables) {\n return dummy({\n variables,\n })\n }", "title": "" }, { "docid": "b49ef274c1a53f35a57188c1d5189cae", "score": "0.48107257", "text": "update(t) {}", "title": "" }, { "docid": "9d2ef0670649cfbe2986cb11a82e334b", "score": "0.47572863", "text": "function merge(obj) {\n\t for (var i=1; i < arguments.length; i++) {\n\t var def = arguments[i]\n\t for (var n in def)\n\t if (obj[n] === undefined) obj[n] = def[n]\n\t }\n\t return obj\n\t }", "title": "" }, { "docid": "c050f6a86f4aaa9c0fc34685d6314d6e", "score": "0.47443277", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "c050f6a86f4aaa9c0fc34685d6314d6e", "score": "0.47443277", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "5121dbb9b95ea978c68cfa58badde9a9", "score": "0.4743612", "text": "function merge (obj) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t var def = arguments[i]\n\t for (var n in def) {\n\t if (obj[n] === undefined) obj[n] = def[n]\n\t }\n\t }\n\t return obj\n\t }", "title": "" }, { "docid": "5121dbb9b95ea978c68cfa58badde9a9", "score": "0.4743612", "text": "function merge (obj) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t var def = arguments[i]\n\t for (var n in def) {\n\t if (obj[n] === undefined) obj[n] = def[n]\n\t }\n\t }\n\t return obj\n\t }", "title": "" }, { "docid": "7b46cf2a5577033bae0ab9252bb39106", "score": "0.47319686", "text": "function A(n,t,e,r,o,i,a){return n.op=t,c.canMerge(e)&&n.merge(e),r&&n._mergeUpdate(r),l.isObject(o)&&n.setOptions(o),i||a?!n._update||!n.options.overwrite&&0===l.keys(n._update).length?(a&&l.soon(a.bind(null,null,0)),n):(o=n._optionsForExec(),a||(o.safe=!1),e=n._conditions,r=n._updateForExec(),s(\"update\",n._collection.collectionName,e,r,o),a=n._wrapCallback(t,a,{conditions:e,doc:r,options:o}),n._collection[t](e,r,o,l.tick(a)),n):n}", "title": "" }, { "docid": "8c432f4045a831de3e97d98ef9c5ea1d", "score": "0.4712063", "text": "function merge(obj) {\n\t for (var i=1; i < arguments.length; i++) {\n\t var def = arguments[i];\n\t for (var n in def) {\n\t if (obj[n] === undefined) obj[n] = def[n];\n\t }\n\t }\n\t return obj;\n\t}", "title": "" }, { "docid": "58eab8897324e578faa6a68596f93462", "score": "0.47117952", "text": "function merge(obj) {\r\n\t\t\tfor (var i=1; i < arguments.length; i++) {\r\n\t\t\t\tvar def = arguments[i];\r\n\t\t\t\tfor (var n in def)\r\n\t\t\t\t\tif (obj[n] === undefined) obj[n] = def[n];\r\n\t\t\t}\r\n\t\t\treturn obj;\r\n\t\t}", "title": "" }, { "docid": "f5189b5aa51f5f650bb4c38a2f2bfe5a", "score": "0.47094247", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i];\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n];\n }\n }\n return obj;\n }", "title": "" }, { "docid": "f5189b5aa51f5f650bb4c38a2f2bfe5a", "score": "0.47094247", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i];\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n];\n }\n }\n return obj;\n }", "title": "" }, { "docid": "f04588ae824f1122873b01e342b610cf", "score": "0.47005427", "text": "function updateFull(old, by, levels) {\n return updateFull1(old, by, levels, 0);\n}", "title": "" }, { "docid": "9c1dd5f745542278ed8c3e72025a8ea3", "score": "0.46982917", "text": "function deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n return merged;\n}", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "905d9d9be4960dcfbc660a5258d93945", "score": "0.46925157", "text": "function merge(obj) {\n for (var i=1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "840a6a57f8d6cd2a97778231fba23a0c", "score": "0.46847937", "text": "function merge(obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i];\n for (var n in def) if (obj[n] === undefined) obj[n] = def[n];\n }\n return obj;\n }", "title": "" }, { "docid": "9e11ffe54aed21d6e40b0af969b9dfda", "score": "0.46819046", "text": "function partial(partialPath, partialLocals) {\n return execute.call(this, resolveApiPath(partialPath, pathStack), partialLocals);\n }", "title": "" }, { "docid": "792ca162e1272a05110eb771388311fa", "score": "0.4678994", "text": "function merge(obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def)\n if (obj[n] === undefined) obj[n] = def[n]\n }\n return obj\n }", "title": "" }, { "docid": "e6f98f71b3b3936b7aafa6196e3a8e36", "score": "0.46744493", "text": "function updateTodo(todo, fieldsToUpdate) {\n return Object.assign(Object.assign({}, todo), fieldsToUpdate);\n}", "title": "" }, { "docid": "a7a14578de072e66c601b0371ab87f16", "score": "0.46609902", "text": "function merge (obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n]\n }\n }\n return obj\n }", "title": "" }, { "docid": "a7a14578de072e66c601b0371ab87f16", "score": "0.46609902", "text": "function merge (obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n]\n }\n }\n return obj\n }", "title": "" }, { "docid": "a7a14578de072e66c601b0371ab87f16", "score": "0.46609902", "text": "function merge (obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n]\n }\n }\n return obj\n }", "title": "" }, { "docid": "a75eed5b23738f65bcbfc0aeec18a32e", "score": "0.46497828", "text": "function merge(obj) {\r\n for (var i=1; i < arguments.length; i++) {\r\n var def = arguments[i];\r\n for (var n in def) {\r\n if (obj[n] === undefined) obj[n] = def[n];\r\n }\r\n }\r\n return obj;\r\n }", "title": "" }, { "docid": "a75eed5b23738f65bcbfc0aeec18a32e", "score": "0.46497828", "text": "function merge(obj) {\r\n for (var i=1; i < arguments.length; i++) {\r\n var def = arguments[i];\r\n for (var n in def) {\r\n if (obj[n] === undefined) obj[n] = def[n];\r\n }\r\n }\r\n return obj;\r\n }", "title": "" }, { "docid": "ab4d5a6b3d742b4818dcc8a7543cffdf", "score": "0.46472153", "text": "function hakMerge() {\n\t\tvar args = arguments,\n\t\t\tbase = args[0],\n\t\t\ti = 1;\n\n\t\tif (base === {}) {\n\t\t\tbase = Object.assign({}, args[1]);\n\t\t\ti++;\n\t\t}\n\n\t\tfor (; i < args.length; i++) {\n\n\t\t\tfor (var prop in args[i]) {\n\n\t\t\t\tif (args[i].hasOwnProperty(prop)) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t(hakIsObj(args[i][prop]) && hakIsObj(base[prop]))\n\t\t\t\t\t) {\n\t\t\t\t\t\tbase[prop] = hakMerge(base[prop], args[i][prop]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbase[prop] = args[i][prop];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn base;\n\t}", "title": "" }, { "docid": "a7f7b27e5b1a8c89fb2502808fa4b03d", "score": "0.4640601", "text": "function createUpdate(props) {\n const {\n to,\n from\n } = props = inferTo(props); // Collect the keys affected by this update.\n\n const keys = new Set();\n\n if (from) {\n findDefined(from, keys);\n } else {\n // Falsy values are deleted to avoid merging issues.\n delete props.from;\n }\n\n if (is.obj(to)) {\n findDefined(to, keys);\n } else if (!to) {\n // Falsy values are deleted to avoid merging issues.\n delete props.to;\n } // The \"keys\" prop helps in applying updates to affected keys only.\n\n\n props.keys = keys.size ? Array.from(keys) : null;\n return props;\n}", "title": "" }, { "docid": "ff36a7924a24850953d324c89d226813", "score": "0.4640591", "text": "updatePartialData(id, partialObjectData, repoName, callback) {\n const repo = this.connection.getRepository(repoName);\n\n repo.findByIds([id])\n .then(res => {\n if (res.length <= 0) return callback(undefined);\n // Results after this.\n\n repo.update(id, partialObjectData)\n .then(res => {\n return callback(res);\n })\n .catch(err => {\n console.error(err);\n return callback(undefined);\n });\n })\n .catch(err => {\n console.error(err);\n return callback(undefined);\n });\n }", "title": "" }, { "docid": "71a211356d5aaaf84925eff41d112f36", "score": "0.46322316", "text": "objectMerge(...rest) {\n let base = rest.shift();\n for (let append of rest) {\n // base is not mergable, replace instead with last argument passed\n if (typeof base !== 'object') {\n return append;\n }\n // both base and argument are arrays\n if (Array.isArray(append) && Array.isArray(base)) {\n for (let val of append) {\n if (!!~base.indexOf(val)) {\n base[base.indexOf(val)] = val;\n append.splice(append.indexOf(val), 1);\n }\n }\n base.push(...append);\n }\n // both base and argument are objects\n let key;\n for (key in append) {\n if (key in base) {\n base[key] = this.objectMerge(base[key], append[key]);\n } else {\n Object.assign(base,append);\n }\n }\n }\n return base;\n }", "title": "" }, { "docid": "d544e4081381660fa03705536c79f0a6", "score": "0.46302238", "text": "function sqlForPartialUpdate(dataToUpdate, jsToSql) {\n /*\n This function is used to partially update users and companies.\n Function takes json data as any combination of keys and values\n in the specific model, and returns data for easy implementing \n in sql query string.\n\n Users example input =>\n ({\n firstName: \"user\",\n lastName: \"test\"\n }, )\n\n returns:\n { setCols: '\"first_name\"=$1, \"last_name=$2\"', values: [ 'user', 'test' ] }\n\n This can then be used in a query string by passing setCols in to the WHERE clause,\n and ...values (as a spread) in to the INPUT clause to pass through each value.\n */\n const keys = Object.keys(dataToUpdate);\n if (keys.length === 0) throw new BadRequestError(\"No data\");\n\n // {firstName: 'Aliya', age: 32} => ['\"first_name\"=$1', '\"age\"=$2']\n const cols = keys.map((colName, idx) =>\n `\"${jsToSql[colName] || colName}\"=$${idx + 1}`,\n );\n\n return {\n setCols: cols.join(\", \"),\n values: Object.values(dataToUpdate),\n };\n}", "title": "" }, { "docid": "3e726c49bddf17b8b7084929ed6e9ae1", "score": "0.46111456", "text": "function merge(obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n]\n }\n }\n return obj\n }", "title": "" }, { "docid": "9d099811050b326d14a69b5042b674cc", "score": "0.46091858", "text": "function merge(obj) {\r\n for (var i=1; i < arguments.length; i++) {\r\n var def = arguments[i]\r\n for (var n in def)\r\n if (obj[n] === undefined) obj[n] = def[n]\r\n }\r\n return obj\r\n }", "title": "" }, { "docid": "8830609c4831fc13c433f9f8c97325f0", "score": "0.46060207", "text": "bodyForUpdate () {\n return {\n Resultat: resultsForUpdate\n }\n }", "title": "" }, { "docid": "2949bfdb8af0136c684f5a02b971eda4", "score": "0.4605593", "text": "update(values) {\n\n }", "title": "" }, { "docid": "03e50e669273f8e3e0db804c49fe0c73", "score": "0.4601166", "text": "update() {\n const updateData = this._prepUpdate(this.single.update);\n const wheres = this.where();\n const { returning } = this.single;\n return {\n sql: this.with() +\n `update ${this.single.only ? 'only ' : ''}${this.tableName} ` +\n `set ${updateData.join(', ')}` +\n (wheres ? ` ${wheres}` : '') +\n this._returning(returning),\n returning\n };\n }", "title": "" }, { "docid": "7bf13e26a26db27329155da3dae7f58c", "score": "0.45981303", "text": "function Au(t, e, n, r) {\n var i = t.V_(1 /* Update */ , e, n);\n Ou(\"Data must be an object, but it was:\", i, r);\n var o = [], s = new Tn;\n _(r, (function(t, r) {\n var u = Uu(e, t, n), a = i.P_(u);\n if (r instanceof au && r.s_ instanceof cu) \n // Add it to the field mask, but don't add anything to updateData.\n o.push(u); else {\n var c = xu(r, a);\n null != c && (o.push(u), s.set(u, c));\n }\n }));\n var u = new rn(o);\n return new bu(s.Je(), u, i.fieldTransforms);\n }", "title": "" }, { "docid": "fa666f3c203483345ef9d8f2c0056777", "score": "0.45972052", "text": "function mergeIntoQuery(queryObject, objectToMergeIn) {\n return Object.assign({}, queryObject, objectToMergeIn);\n}", "title": "" }, { "docid": "c583df55e115c09d84341e804db2af30", "score": "0.4591728", "text": "appendAll(params) {\n const updates = [];\n Object.keys(params).forEach(param => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach(_value => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value, op: 'a' });\n }\n });\n return this.clone(updates);\n }", "title": "" }, { "docid": "c583df55e115c09d84341e804db2af30", "score": "0.4591728", "text": "appendAll(params) {\n const updates = [];\n Object.keys(params).forEach(param => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach(_value => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value, op: 'a' });\n }\n });\n return this.clone(updates);\n }", "title": "" }, { "docid": "c583df55e115c09d84341e804db2af30", "score": "0.4591728", "text": "appendAll(params) {\n const updates = [];\n Object.keys(params).forEach(param => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach(_value => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value, op: 'a' });\n }\n });\n return this.clone(updates);\n }", "title": "" }, { "docid": "25ce616e46a01bb2555c94a69d9dbfe7", "score": "0.4582133", "text": "extend (f) {\n return update(f(this), this)\n }", "title": "" }, { "docid": "7715b224e39a452eceb3ab1c458b9ae5", "score": "0.45814738", "text": "function findUpdates(subject, original = {}) {\n\tlet changes = {};\n\tfor (let key in original) {\n\t\tif (!deepEqual(original[key], subject[key]) && typeof subject[key] !== 'undefined') {\n\t\t\tchanges[key] = subject[key]\n\t\t}\n\t}\n\treturn changes\n}", "title": "" }, { "docid": "dc1866701ffe5714fec80979d7b8e557", "score": "0.45746356", "text": "merge(obj, part) {\n let res = Object.assign({}, obj)\n Object.keys(part).forEach((key) => res[key] = part[key])\n return res\n }", "title": "" }, { "docid": "72d1425a5a3dabee0d61aa7b20063446", "score": "0.4571821", "text": "function AddTwoVariablesTogether(oldVal, newVal) {\n return oldVal + newVal;\n}", "title": "" }, { "docid": "cd77f406333f72f381adb293548498e2", "score": "0.45702168", "text": "appendAll(params) {\n const updates = [];\n Object.keys(params).forEach(param => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach(_value => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value: value, op: 'a' });\n }\n });\n return this.clone(updates);\n }", "title": "" }, { "docid": "b433b7da0c88d979173584b4420de3df", "score": "0.45659378", "text": "update() {\n const sql = QueryCompiler.prototype.update.apply(this, arguments);\n this._slightReturn();\n return {\n sql,\n };\n }", "title": "" }, { "docid": "01f80d0bcb7594e3d9655efd0c629ecc", "score": "0.4547467", "text": "update(data) {}", "title": "" }, { "docid": "8d3843f02274c91f0c1c164478e1ced9", "score": "0.45451376", "text": "update(...specs) {\n return resolveTransaction(this, specs, true);\n }", "title": "" }, { "docid": "07f6f24b70602b74cf70bcad58961640", "score": "0.45365894", "text": "update(...specs) {\n return resolveTransaction(this, specs, true);\n }", "title": "" }, { "docid": "b1f29dc8f688f63af93c0a20a8bcad9e", "score": "0.4515221", "text": "updatePartialDataAsync(id, partialObjectData, repoName) {\n const repo = this.connection.getRepository(repoName);\n\n repo.findByIds([id])\n .then(res => {\n if (res.length <= 0) return callback(undefined);\n // Results after this.\n\n repo.update(id, partialObjectData)\n .then(res => {\n return callback(res);\n })\n .catch(err => {\n console.err(err);\n return callback(undefined);\n });\n })\n .catch(err => {\n console.error(err);\n return callback(undefined);\n });\n }", "title": "" }, { "docid": "75e9a4e22b93fba87874335bc1c43adf", "score": "0.45115557", "text": "function merge() {\n var res = {};\n for (var i = 0; i < arguments.length; i++) {\n if (arguments[i]) {\n Object.assign(res, arguments[i]);\n } else {\n if (typeof arguments[i] === 'undefined') {\n throw new Error('m(): argument ' + i + ' undefined');\n }\n }\n }\n\n return res;\n}", "title": "" }, { "docid": "3a49a3250370359908c3a56630427017", "score": "0.4488573", "text": "function declareUpdate(props) {\n const update = createUpdate(props);\n\n if (is.und(update.default)) {\n update.default = getDefaultProps(update, [// Avoid forcing `immediate: true` onto imperative updates.\n update.immediate === true && 'immediate']);\n }\n\n return update;\n}", "title": "" }, { "docid": "3bbe652b1d8ac58045616c95b529b312", "score": "0.4459825", "text": "function updateObject(oldObject, newValues) {\n // Encapsulate the idea of passing a new object as the first parameter\n // to Object.assign to ensure we correctly copy data instead of mutating\n return Object.assign({}, oldObject, newValues)\n}", "title": "" }, { "docid": "43f6abbc8145e8022de9f49324e4580f", "score": "0.4453388", "text": "function resetPropOverridesForVariables(spec, props, variables) {\n\t var initialVariables = spec.initialVariables;\n\t for (var _key2 in initialVariables) {\n\t if (_key2 in props && props[_key2] !== variables[_key2]) {\n\t return initialVariables;\n\t }\n\t }\n\t return variables;\n\t}", "title": "" }, { "docid": "be97f07b166b91d415a52ad97dec64f5", "score": "0.445181", "text": "visitMergeUpdateClause(ctx) {\n\t return this.visitChildren(ctx);\n\t}", "title": "" } ]
75a7e85d016df3fbb42a3bb7fcd10e75
Function to handle search event
[ { "docid": "8f0c6dcb524b6fa156f1bef21734b2be", "score": "0.0", "text": "search() {\n $(window).scrollTop(0)\n if (this.state.username === '')\n this.setState({alert: 'You must sign in to search your repositories.'})\n else if (this.state.username !== undefined) {\n this.setState({currentSearch: this.state.search, data: [], nextPage: 1, alert: '', endOfSearch: false},\n () => this.fetchRepos())\n }\n }", "title": "" } ]
[ { "docid": "72971f33ed394560c820778b8d6b2cce", "score": "0.8074359", "text": "function handleSearch() {\n apiRequest(searchText.value);\n}", "title": "" }, { "docid": "584f415a77926d175d8c4e3b90d04eef", "score": "0.80682", "text": "function onSearch(e) {\n props.onSearch(e.target.value);\n }", "title": "" }, { "docid": "3f55fcc627706e0f306b047d9199bba4", "score": "0.7944433", "text": "searchEventHandler(event){\n this.searchText = event.detail.searchText;\n }", "title": "" }, { "docid": "9161c2491d18304343025542e625630f", "score": "0.7858499", "text": "handleSearch(event) {\n apexSearch(event.detail)\n .then(results => {\n this.template.querySelector('c-multiple-select').setSearchResults(results);\n })\n .catch(error => {\n this.notifyUser('Lookup Error', 'An error occured while searching with the lookup field.', 'error');\n // eslint-disable-next-line no-console\n console.error('Lookup error', JSON.stringify(error));\n this.errors = [error];\n });\n }", "title": "" }, { "docid": "f6dd6054df3ce6a429a559f710f754fe", "score": "0.7851766", "text": "function handleSearch(e) {\n props.searchPlayer(player);\n document.getElementById(\"inputsearch\").value = \"\";\n }", "title": "" }, { "docid": "af48eaf3333c2a02fd058a7fdc78a014", "score": "0.7845861", "text": "function doSearch(event) {\n\t\t// clears the results from previous search\n\t\tclearResultsList()\n\n\t\t// cancels the event if it is cancelable\n\t\tevent.preventDefault();\n\t\t\n\t\tsearchFieldInput = textField.value;\n\t\tif (searchFieldInput === '') {\n\t\t\talert('Please enter a search term!');\n\t\t} else {\n\t\t\tvar fullRequestURL = apiURLPrefix + searchFieldInput\n\t\t\tapiRequest(fullRequestURL, showResults, 'Search')\n\t\t}\n\t}", "title": "" }, { "docid": "0ea8af37e7846bb42d92ec46fbcd3e0a", "score": "0.7804645", "text": "function handleSearch(e) {\n e.preventDefault();\n let query = txtSearch.value;\n let performed = performSearch(getTwitchSearchUrl(query));\n if (performed) currentPage = 1;\n}", "title": "" }, { "docid": "3bfcdddd7574026172945d35f553ef84", "score": "0.78011745", "text": "onSearch(event) {\r\n if (this.toggle && event.type === 'focus') {\r\n return;\r\n }\r\n this.listIndex = -1;\r\n this.offset = 0;\r\n this.handleChange(event.target.value)\r\n .then(() => dxp.log.info(this.element.tagName, 'onTextInput()', `in handleChange`))\r\n .catch(err => dxp.log.error(this.element.tagName, 'onTextInput()', `in handleChange :${err}`));\r\n }", "title": "" }, { "docid": "d27c4c3665548ebb599f05d0bccbeb4f", "score": "0.773387", "text": "function on_search(event){\n //check if search fields are empty.\n if(!event.formInputs || !event.formInputs.query){\n var notification = CardService.newNotification()\n .setText(\"Enter a query before searching.\");\n return CardService.newActionResponseBuilder()\n .setNotification(notification)\n .build();\n }\n\n var query = event.formInputs.query[0];\n var people = query_people(query);\n\n if(!people || !people.length == 0){\n var notification = CardService.newNotification().setText(\"No people found.\");\n return CardService.newActionResponseBuilder()\n .setNotification(notification)\n .build();\n }\n\n var card = build_team_list_card(people);\n var nav = CardService.newNavigation().pushCard(card);\n return CardService.newActionResponseBuilder()\n .setNavigation(nav)\n .build(); \n}", "title": "" }, { "docid": "1ccfb9f9149633243b3d46777d10a92e", "score": "0.7732614", "text": "function handleSearch(e) {\n setKeyword(e.target.value);\n }", "title": "" }, { "docid": "7ec918a7acbb0db7bb3dc84f9b92bf0d", "score": "0.7705065", "text": "handleSearchS(event) {\n apexSearch(event.detail)\n .then(resul => {\n this.template.querySelector('c-lookup-field').setSearchResul(resul);\n })\n .catch(error => {\n this.notifyUser('Lookup Error', 'An error occured while searching with the lookup field.', 'error');\n // eslint-disable-next-line no-console\n console.error('Lookup error', JSON.stringify(error));\n this.errors = [error];\n });\n }", "title": "" }, { "docid": "c697a125b4643aa2f29fcc30883d24be", "score": "0.7696377", "text": "function search() {}", "title": "" }, { "docid": "7f148751cc05b16e86d3810ab0480da1", "score": "0.7632481", "text": "function handleSearch(event) {\n console.log(\"search debug\");\n event.preventDefault();\n // Wont submit the question if we are missing a body, title, or category\n if (!searchInput.val().trim()) {\n return;\n }\n // Constructing a newQuestion object to hand to the database\n var newSearch = searchInput.val().trim();\n $.get(\"/api/questions\", function(data){\n var searchResults = [];\n for (var i = 0; i < data.length; i++) {\n if(data[i].company.toUpperCase() === newSearch.toUpperCase()) {\n searchResults.push(data[i]);\n }\n }\n console.log(data);\n console.log(searchResults);\n if(searchResults.length === 0) {\n alert(\"No results found. Please enter another company name. \")\n } else {\n appSearch.searches = searchResults;\n }\n //window.location.href = \"/blog\";\n });\n\n }", "title": "" }, { "docid": "62acc4132bca5a0e8b81207728535a76", "score": "0.7617151", "text": "function handler_search( )\n{\n console.log( \"handler_search\" );\n}", "title": "" }, { "docid": "e10426e8600e8b4c2705aa01bae64334", "score": "0.76071787", "text": "function search(e) {\n const { searchTerm } = e.data\n const message = {\n searchResults: searchEngine.search(searchTerm),\n }\n port.postMessage(message)\n}", "title": "" }, { "docid": "b5863ecffd6e68265126d109337b04ef", "score": "0.75740135", "text": "function customSearch() {\n // Base query on input field\n let searchInput = document.querySelector(\"#search\");\n\n searchInput.addEventListener('click',function(e){\n $('.topic').removeClass('active');\n\n this.value = '';\n $('.instructions-oops').removeClass('show');\n $('.instructions').removeClass('show');\n clearContainer();\n });\n\n searchInput.addEventListener('keydown',function(e){\n if (e.keyCode === 13) {\n submitQuery(e);\n }\n });\n\n function submitQuery(e) {\n var query = e.target.value;\n fetchdata(query);\n }\n}", "title": "" }, { "docid": "ff36488006fba4aaebcac36824378061", "score": "0.75521725", "text": "function handleSearch(search) {\n setSearchTerm(search);\n }", "title": "" }, { "docid": "456bc14715ca811bf06a715725a7219f", "score": "0.754696", "text": "_handleSearch(event) {\n var filter = event.detail.value;\n var column = event.detail.column;\n var columns = event.detail.searchFields;\n this.searchText = filter; // console.log(columns);\n // delete any previous column and general search query\n\n this.deleteParamKeys(columns.concat(['q']), false); // update new search query param\n\n this.updateParams(column, filter);\n }", "title": "" }, { "docid": "3934f1a2a625aaf4fc8181db544e94c6", "score": "0.7513927", "text": "function onSearchButt() {\n\t\t// var uri = new URI();\n\t\t// var queries = uri.search(true)\n\t\t// console.log(queries)\n\t\turi.setSearch({input: $(\"#search-input\").val()});\n\t\turi.setSearch({source: $(\"#data-source-selection\").val()});\n\t\t// queries['input'] = $(\"#search-input\").val();\n\t\t// queries['source'] = $(\"#data-source-selection\").val()\n\t\t\n\t\t// if user is dumb and pressed search on empty input\n\t\tif (! uri.search(true).input) {\n\t\t\thideContent(true)\n\t\t\t$(\"#emptySearch\").show()\n\t\t\treturn false;\n\t\t}\n\t\t// wrong\n\t\t// pushGuai(queries)\n\t\t\n\t\tsearch();\n\t\t// why is this return false here?\n\t\treturn false;\n\t}", "title": "" }, { "docid": "12978f87022a6d729baa4cd7ef5530bc", "score": "0.7509262", "text": "onSearch(evt) {\n\t\tlet newIconList = collections.filter((iconEntry) =>\n\t\t\ticonEntry.search.includes(evt.target.value.toLowerCase()));\n\n\t\tthis.setState({\n\t searchTerm: evt.target.value,\n\t currentlyDisplayed: newIconList\n\t });\n\n\t\tthis.renderCollectionList();\n\t\tthis.createClothingList();\n\t\tthis.createCompanyList();\n\t}", "title": "" }, { "docid": "29feb02b26f0bb11ebec42ce4ae95f8e", "score": "0.75091594", "text": "function searchHandler() {\n setButtonEnabled(true);\n if (filterSearch === \"characters\"){\n removeCharactersAction();\n updateCharacterCurrentSearchAction(charCurrentSearch);\n searchCharactersHandler(charCurrentSearch);\n }\n if (filterSearch === \"episodes\"){\n removeEpisodesAction();\n updateEpisodeCurrentSearchAction(epiCurrentSearch);\n searchEpisodesHandler(epiCurrentSearch);\n }\n if (filterSearch === \"locations\"){\n removeLocationsAction();\n updateLocationCurrentSearchAction(locCurrentSearch);\n searchLocationsHandler(locCurrentSearch);\n }\n\n }", "title": "" }, { "docid": "c79dfc946475da16f2cb4506000d4672", "score": "0.75043494", "text": "function onSearch(value) {\n console.log('search', value);\n }", "title": "" }, { "docid": "80e2bebd6d4a44f3f896a513b8946474", "score": "0.74913126", "text": "searchHandler() {\n this.performSearch();\n }", "title": "" }, { "docid": "a3ec8f188339efba27977e62d87ad6d4", "score": "0.74812216", "text": "function handleSearch() {\n getCurrentWeather(cityName);\n getForecastWeather(cityName);\n searchedCities.unshift({cityName});\n saveCitySearch(cityName);\n searchHistoricalData(cityName);\n}", "title": "" }, { "docid": "c130688dec9448ed9d7ab69265ce41dc", "score": "0.7478733", "text": "search(e) {\n //NOTE You dont need to change this method\n e.preventDefault();\n try {\n songsService.getMusicByQuery(e.target.query.value);\n } catch (error) {\n console.error(error);\n }\n }", "title": "" }, { "docid": "407583b26171defc8d3e9aebcd222b08", "score": "0.7459168", "text": "function search() {\n\t\thideContent(true);\n\t\t$(\"#ajaxLoader\").show();\n\t\t$(\"#search-input\").val(uri.search(true).input);\n\t\tgetData(populateHTML.bind(null));\n\t}", "title": "" }, { "docid": "7f20d658004fb7f7c2d9b789d6200d7f", "score": "0.74515086", "text": "function onSearch(search) {\n\t// Get all available keywords\n\tvar keywords = getKeywords();\n\n\t// Check if the search equals to one of the keywords\n\tvar keywordExist = keywords.some(function (keyword) {\n\t\treturn keyword[0] === search;\n\t});\n\n\t// Save search to local storage\n\tif (keywordExist) {\n\t\tvar searches = getPopularSearches();\n\t\tsearches = addPopularSearches(searches, search);\n\t\tsaveToStorage(getStorageKey(), searches);\n\t}\n\n\trenderSearches()\n\trenderGallery();\n}", "title": "" }, { "docid": "bc8c0d904f2b7c5b1fa0337288dc39e2", "score": "0.7446487", "text": "search(e) {\n //NOTE You dont need to change this method\n e.preventDefault();\n try {\n songService.getMusicByQuery(e.target.query.value);\n } catch (error) {\n console.error(error);\n }\n }", "title": "" }, { "docid": "f9f4b332f2036a4f2cc0ab6ade6f6dde", "score": "0.7407737", "text": "function userSearchEventListener() {\n $('#js-search-form').on('click', 'button.search.btn', event => {\n const queryTarget = $('#js-search-form').find('input.js-search-bar');\n const query = queryTarget.val();\n if (query === '') {\n console.log('invalid search');\n } else {\n event.preventDefault();\n queryTarget.val(\"\");\n $('.book-title').text(query);\n googleApiSearch(query, showGoogleBooksResults);\n $('#book-display').show();\n $('.hero-image').hide();\n showPage('.search-result-view');\n }\n });\n}", "title": "" }, { "docid": "df07c025807dcbe14274886c2117252b", "score": "0.74004954", "text": "searchEvents(e) {\n e.preventDefault();\n let searchString = e.target.elements.searchBar.value;\n this.setState(() => ({ searchString: searchString, feed: \"search\"}));\n this.renderEvents();\n }", "title": "" }, { "docid": "16fed8cb755f8f499da8cae5aaf703cd", "score": "0.74001527", "text": "function search(e) {\n\te.preventDefault();\t\n\tif (e.target.className === \"searchSubmit\") {\n\t\tconst text = e.target.previousElementSibling.value;\n\t\tif (text != '') { \n\t\t\temptyList();\n\t\t\tsearchRestaurant(text);\n\t\t} else {\n\t\t\temptyList();\n\t\t\tfindAll();\n\t\t}\n\t}\n}", "title": "" }, { "docid": "aa21189f23bafb0bff644f710955a8bf", "score": "0.7399083", "text": "function search() {\n // To be implemented.\n // Continue to run\n }", "title": "" }, { "docid": "68b70b58fc1e5a3f70b5280c6f400d0f", "score": "0.73990357", "text": "function _onSearch() {\n\n //when keys are available runs the search\n var searchValue = ui.$search().val();\n if(searchValue){\n var keys = searchValue.split(' ');\n\n //makes a list of filtered notes\n //and displays them instead of the\n //original once, if the filter\n //returns some value.\n var results = [];\n $(keys).each(function (i,key) {\n var filtered = $.grep(_notes,function (note,i) {\n return (\n note.title.toLowerCase().indexOf(key.toLowerCase())!==-1 ||\n note.text.toLowerCase().indexOf(key.toLowerCase())!==-1\n );\n });\n if(filtered && filtered.length>0)\n results = results.concat(filtered);\n });\n\n if(results.length>0)\n _renderNotes(results);\n }\n //when no keys, resets the filter\n // and displays all notes\n else\n _renderNotes(_notes);\n }", "title": "" }, { "docid": "819cbd64d4291a693b9a8ba3db70f4a0", "score": "0.7383355", "text": "handleSearch(e) {\n alert(`brand_id: ${this.state.brand_id}, model_id: ${this.state.model_id}, keywords: ${this.state.keywords}`);\n\n e.preventDefault(); // prevent default browser form submission behaviour\n }", "title": "" }, { "docid": "68496a45f844a460b876778dfeb44b43", "score": "0.7333561", "text": "findSearchData(event){\n\t\tlet value = event.target.value;\n\t\tlet data = [...this.props.searchData];\n\t\tlet result = data.filter((list) => list.title.includes(value));\n\t\tif(!value.length) return this.props.resultData([...data],false)\n\t\tthis.props.resultData(result, value.length)\n\t}", "title": "" }, { "docid": "17478b8749ad496f12d010a7a73cffdc", "score": "0.73292506", "text": "function handleSearch () {\n $('#js-shopping-list-form').on('click', '.js-search-button', event => {\n event.preventDefault();\n console.log('Search button clicked.');\n STORE.searchVal = $('.js-shopping-list-entry').val();\n $('.js-shopping-list-entry').val('');\n \n renderShoppingList();\n });\n}", "title": "" }, { "docid": "241d9a4bb59fb8a4a7a2ce63b0350492", "score": "0.7307021", "text": "search() {\n\n }", "title": "" }, { "docid": "2753c20d5358d977584177a971f26fdd", "score": "0.7296464", "text": "function handleSearchInput(e) {\n // console.log(currentCitySearchInputText);\n // if (!currentCitySearchInputText) {\n // return;\n //\n e.preventDefault();\n var searchedCity = currentCitySearchInputText.value.trim();\n console.log(searchedCity);\n searchCurrentCity(searchedCity);\n\n //console.log(searchedCity);\n}", "title": "" }, { "docid": "4107de2de4759d704bd12bd1f6f258f2", "score": "0.72864765", "text": "onInputChange(event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tconst search = event.target.value;\n\t\t\t\t\tthis.search(search);\n\t\t\t\t}", "title": "" }, { "docid": "0051eed86ba8dd6fe256afd1cc7ea626", "score": "0.72823155", "text": "function searchSubmit(e) {\n var formData = myApp.formToJSON('#search');\n e.preventDefault();\n \n\n if (formData.filter === 'all') {\n\n $$('input').blur();\n myApp.showPreloader('Loading');\n getMostViewedArticles();\n } else if (!formData.term) {\n myApp.alert('Please enter a search term', 'Search Error');\n return;\n }\n else if (formData.term || formData.filter === search )\n {\n $$('input').blur();\n myApp.showPreloader('Searching');\n\n var query = formData.term;\n getMostViewedArticles();\n }\n delete formData.filter;\n \n \n\n}", "title": "" }, { "docid": "db1ca4f4cd7ec8f7eb1cad002b4dcbaf", "score": "0.72800666", "text": "function handleSearch(event)\n{\n\tvar keyword = \"\";\n\t/*\n\tvar equationArray = JSON.parse(\"equationData.json\");\n\tvar fractalArray = JSON.parse(fs.readFileSync(\"fractalData.json\"));\n\tvar designArray = JSON.parse(fs.readFileSync(\"designData.json\"));\n\tvar otherArray = JSON.parse(fs.readFileSync(\"otherData.json\"));\n\t\n\talert(equationArray.length);*/\n\t\n\t//document.getElementById(\"filter-text\").value();\n\t\n\t// If user has text entered in text field\n\tkeyword = document.getElementById(\"search-text\").value;// set search string\n\t\n\t// Remove posts\n\tvar posts = document.getElementsByClassName(\"post\");\n\t/*\n\tif (postsCache.length == 0 || postsCache == null)\n\t\tpostsCache = document.getElementsByClassName(\"post\");\n\telse\n\t\tposts = postsCache;\n\t\n\talert(postsCache.length);*/\n\t\n\tfor (var i = 0; i < posts.length; i++)\n\t{\n\t\t// Remove posts if substring in \"keyword\" exists\n\t\tif (!posts[i].getElementsByClassName(\"post-title\")[0].textContent.includes(keyword))\n\t\t{\n\t\t\tposts[0].parentNode.removeChild(posts[i]);\n\t\t\t\n\t\t\ti--;\n\t\t\tcontinue;\n\t\t}\n\t\t\n\t}\n}", "title": "" }, { "docid": "7e1b92f2e27a9117ed21c521444c2de6", "score": "0.7267629", "text": "function handleChangeSearch(event) {\n // setMovies([]);\n const { name } = event.target;\n let value = event.target.value;\n // replace space to '+' for keyword\n if (name === \"keyword\") {\n value = value.replace(/\\s+/g, \"+\").toLowerCase();\n }\n setSearch((prev) => {\n return {\n ...prev,\n [name]: value,\n };\n });\n // clear movies\n setClearTag(true);\n }", "title": "" }, { "docid": "76d05a3cc225a7836a94dafea68e5050", "score": "0.72622955", "text": "function handleBrewerySearch(event) {\n setQuery(event.target.value);\n }", "title": "" }, { "docid": "d7affefaa8771e30e20c3eaa384939dd", "score": "0.72529846", "text": "function handleSearchBtn(ev) {\r\n ev.preventDefault();\r\n getDataFromApi();\r\n getFromLocalStorage();\r\n renderCards();\r\n}", "title": "" }, { "docid": "49a85bb235471ed56a4b7d6aa00ac1fc", "score": "0.7251005", "text": "handleSearchKeyDown(event) {\n this.props.searchhandler(event.target.value);\n }", "title": "" }, { "docid": "e3b0ebb0aee545d0bc6f5eabd45202c2", "score": "0.72393787", "text": "function handleSearchChange(e) {\n e.preventDefault();\n if(e && e.target.value!== undefined && e.target.value !== null){\n setLoadingSearch(true);\n setSearchTerm(e.target.value);\n }\n }", "title": "" }, { "docid": "ac89720116ce14e2236054af0f004798", "score": "0.72329146", "text": "function search(event) {\n alert(`You Searched for: ${input.value}`);\n event.preventDefault();\n}", "title": "" }, { "docid": "c009ce62903c5f7fae8264421ad1767e", "score": "0.72231066", "text": "function setViewSearch(event)\n {\n performSearch();\n }", "title": "" }, { "docid": "a136362ed5499bf13f3f73202da23b3a", "score": "0.7217686", "text": "function searchItems(event) {\n\n\tlet fetchURL = `${ITEMS_URL}?search=${search_input.value}` + \n\t\t(userBox.dataset.id ? `&user_id=${userBox.dataset.id}` : \"\")\n\n\tevent.preventDefault();\n\tfetch(fetchURL)\n\t.then(res => res.json())\n\t.then(itemIndexer)\n}", "title": "" }, { "docid": "89b27cb4a74fb4e655bdb60468b70929", "score": "0.72035146", "text": "function onReturn(e) {\n doSearch({\n place_name: $.search.value\n });\n}", "title": "" }, { "docid": "28b1731cf8d8a43ab4b92a881b9757ac", "score": "0.71996534", "text": "function onSearch(e){\n\tif(e.keyCode !== 13) return;\n\tdocument.getElementById('graphs').style.display = 'none';\n\tdocument.getElementById('results').style.display = 'block';\n\tdocument.getElementById('results').innerHTML = '';\n\tlet filters = [];\n\t[...document.querySelectorAll('.filterSpan')].forEach(filterSpan=>{\n\t\tif(filterSpan.childNodes[1].checked){\n\t\t\tfilters.push(...JSON.parse(filterSpan.title));\n\t\t}\n\t\n\t});\n\tdrawResults(search(this.value,dump,filters));\n\tthis.value = '';\n}", "title": "" }, { "docid": "d9e58b4a8b2cceed6017ff4cbfcadf40", "score": "0.71922874", "text": "function search(event){\n clearSearchResults();\n const searchField = event.target.closest('div').children[0];\n const value = searchField.value;\n searchBarcodeId(value);\n}", "title": "" }, { "docid": "06eaa3b675291a09fd613d196b89245f", "score": "0.71744215", "text": "function searchButtonHandler() {\n var query = $('#search-text').prop('value');\n getVideosByQuery(query);\n}", "title": "" }, { "docid": "ab455abe6b8d517c944599afe3d46f6d", "score": "0.71662813", "text": "handleInput(event) {\n const searchTerm = event.currentTarget.value;\n this.inputValue = searchTerm;\n\n // Search in the current level of options\n const options =\n (this.currentParent && this.currentParent.options) || this.options;\n\n const result = this.search({\n searchTerm,\n options: options\n });\n\n this.visibleOptions = result;\n\n this.dispatchEvent(\n new CustomEvent('search', {\n detail: {\n value: searchTerm\n }\n })\n );\n }", "title": "" }, { "docid": "8caae9eeac5c4ed76e43ef7ffca722e0", "score": "0.7165824", "text": "onSearch (event) {\n event.preventDefault();\n this.searchByZipCode(this.state.term);\n }", "title": "" }, { "docid": "f1bd8310f479d685b10af2fdc3569051", "score": "0.7159178", "text": "searchKeyword(event) {\n this.searchValue = event.target.value;\n if(this.loadingText.length > 0) this.loadingText = '';\n }", "title": "" }, { "docid": "61e6dc2d75c60cb68ce222ac253546b1", "score": "0.71523", "text": "function searchTask(event) {\n const target = event.target;\n if (target.id !== \"search-button\") return;\n\n const searchInput = document.querySelector(\"#search-input\");\n highlight(searchInput.value.toLowerCase());\n\n searchInput.value = \"\";\n searchInput.focus();\n}", "title": "" }, { "docid": "0413195bd615e39fad1b1fc441cc93a9", "score": "0.7148356", "text": "function handleOnSearch() {\n const fullApiPath =\n searchType === \"contains\"\n ? buildAPIPath(path, termToSearch)\n : buildAPIPath(path, termToSearch, \"?fullText=true\");\n getDataForCountry(fullApiPath);\n ;\n\n \n }", "title": "" }, { "docid": "2b4bf2ee2683aadbc1add8676eba93c7", "score": "0.7137206", "text": "function handleSearch(e) {\n let filterHotels = places.filter((place) => {\n return place.title.toLowerCase().includes(e.target.value.toLowerCase());\n });\n setFiltered(true);\n setFilteredHotels(filterHotels);\n if (e.target.value === \"\") {\n setToggles(\"closed\");\n } else {\n setToggles(\"open\");\n }\n\n if (filterHotels.length === 0) {\n setToggles(\"closed\");\n }\n }", "title": "" }, { "docid": "06b90dd8146aa5aaede319cad787dae0", "score": "0.7108629", "text": "handleLookupSearch(event) {\n\t\tsearchAccountLookup(event.detail)\n\t\t\t.then((results) => {\n\t\t\t\tthis.template.querySelector('c-lookup').setSearchResults(results);\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tthis.notifyLookupUser(this.labels.LOOKUP_ERROR_LABEL, this.labels.SEARCHING_LOOKUP_FIELD_ERROR, 'error');\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error('Lookup error', JSON.stringify(error));\n\t\t\t\tthis.lookupConfig.lookupErrors = [error];\n\t\t\t});\n\t}", "title": "" }, { "docid": "6c68e37f9ebe8e6bef19263802f9b47a", "score": "0.71014416", "text": "search(search){}", "title": "" }, { "docid": "4835469f95a939b7ae00652f4b29a367", "score": "0.71000075", "text": "onSearch(event)\n\t{\n\t\tthis.setState({\n\t\t\tactivePage:0,\n\t\t},()=>{\n\t\t\tthis.onSubmit(event,this.state.itemsPerPage,this.state.activePage);\n\t\t})\n\t}", "title": "" }, { "docid": "6ca2f346949f17d19b21efa7f07838e9", "score": "0.70994973", "text": "searchChange() {\n let phrase = this.searchInput.value.toLowerCase().trim();\n this.dispatch('search-change', phrase);\n }", "title": "" }, { "docid": "f05027b80ae3ea5be777fa718472e63a", "score": "0.7095621", "text": "addHandlerSearch(handler) {\n this._parentElement.addEventListener('submit', function (e) {\n e.preventDefault(); // stop page from reloading\n handler();\n });\n }", "title": "" }, { "docid": "c200a8803637c5b8345f72d61630e81f", "score": "0.70929074", "text": "function searchOnKeyUp ($event) {\n console.log(\"searchOnKeyUp\")\n if ($event.keyCode === 13){\n search()\n }\n }", "title": "" }, { "docid": "f80e190646a3b5d223df4d945be64be7", "score": "0.7088875", "text": "function onSearch() {\n currentFilter = $(`#${SEARCHBAR_ID}`).val();\n filterAllVoices();\n}", "title": "" }, { "docid": "c8c92bbbaac29bec0f90353865ec303a", "score": "0.70753556", "text": "handleSearch(evt) {\n\t\tevt.preventDefault();\n\t\tthis.props.history.push(`/query=${this.state.searchValue}`);\n\t\tthis.props.getPhotos(this.state.searchValue);\n\t\tthis.setState({\n\t\t\tsearchValue: \"\"\n\t\t});\n\t}", "title": "" }, { "docid": "57bb6ddc5eafb21a4b59d49ab5e41771", "score": "0.7058714", "text": "handleSearch() {\n var newSymbol = this.symbolValue;\n\n if (newSymbol != null && newSymbol != \"\") {\n var symbolParam = \"symbol:\" + newSymbol;\n\n var params =\n this.params != null\n ? this.params\n : { q: symbolParam, fields: this.fields };\n this.$.ajax.params = params;\n this.$.ajax.generateRequest();\n }\n }", "title": "" }, { "docid": "f048c0c4ccd5223245d71cb212f26e4a", "score": "0.7056263", "text": "function searchFromInput() {\n if (actualSearch.value.trim() == \"\") {\n makePopup(\"Enter a search query\", true)\n return\n }\n fadeInLoading()\n searchSpotify(actualSearch.value)\n}", "title": "" }, { "docid": "f910cf957c6ec82ba46c4945266329bf", "score": "0.7049258", "text": "function onSelectSearch(keyword) {\n\tdocument.querySelector('#filter').value = keyword;\n\tonSearch(keyword);\n}", "title": "" }, { "docid": "fe1edd2bfcdf9623a70a2900515bfbf9", "score": "0.7043823", "text": "search(e) {\n console.log('e.target.value', e.target.value);\n // TODO: eslint says: Expected 'this' to be used by class method 'search', and it's true\n // TODO: because right now this shit isn't working yet\n // this.props.filteredItem = e.target.value;\n // console.log('this.props.filteredItem', this.props.filteredItem);\n }", "title": "" }, { "docid": "5033200bf32434436052b530835d76fb", "score": "0.7042072", "text": "searchHandler(event) {\n // So whenever this event changes its going to change our state\n this.setState({ term: event.target.value })\n }", "title": "" }, { "docid": "6efdcc2008320a1eadf6a96c4d48eb3c", "score": "0.7035451", "text": "handleSearch(event) {\n // If enter key is pressed, search\n if (event.charCode === 13) {\n event.preventDefault();\n //go to the advanced search page\n hashHistory.push(\"/search?q=\" + this.state.title);\n }\n }", "title": "" }, { "docid": "b7a4e72941bc97df7c02ea67b9fe2cdc", "score": "0.70341897", "text": "function initSearch(event) {\n const term = event.target.value.toLowerCase()\n const all = document.querySelectorAll(\n 'service,field,notify,solicit,response,request,reply,consume,folder,mix,prop')\n SearchState.matched = [...all].filter(\n element =>\n element.getAttribute('name').toLowerCase().includes(term))\n SearchState.current = undefined\n document.querySelector('menu span[name=index]')\n .textContent = ''\n document.querySelector('menu span[name=matches]')\n .textContent = SearchState.matched.length\n document.querySelectorAll('.highlight')\n .forEach(\n element =>\n element.classList.remove('highlight'))\n}", "title": "" }, { "docid": "529a5da7a14ef896e7fed41792119e68", "score": "0.70332134", "text": "function searchHandle(event) {\n event.preventDefault();\n let city = document.querySelector(\"#input-bar\").value;\n\n if (city) {\n searchCity(city);\n } else {\n alert(\"Please enter a city\");\n }\n}", "title": "" }, { "docid": "567285b7fe9f62364890c5471339039c", "score": "0.70278126", "text": "function searchEvents(){\n\tpageState.category = dijit.byId(\"categorySearch\").attr(\"value\");\n\tpageState.type = [dijit.byId(\"typeSearch\").attr(\"value\")];\n\tpageState.source = dijit.byId(\"sourceSearch\").attr(\"value\");\n\tpageState.computer = dijit.byId(\"computerSearch\").attr(\"value\");\n\tpageState.description = dijit.byId(\"descriptionSearch\").attr(\"value\");\n\tpageState.exact = \"\";\n\teventStore._jsonFileUrl=stateToURL(pageState);\n\trefreshEvent();\n\tupdatePageMenu();\n}", "title": "" }, { "docid": "893617713e033299467ae62529b0f94c", "score": "0.702722", "text": "function searchCall() {\n $('#searchButton').click(function () {\n var qString = $('#searchInput').val();\n bindSearchUrl(qString);\n });\n\n $('#searchInput').keypress(keypressHandler);\n}", "title": "" }, { "docid": "f578d4af20b42df9ccf6c234f1127271", "score": "0.7025774", "text": "function onSearch() {\n if ($scope.model.search === \"\") {\n $scope.model.values = _this.source.values;\n } else {\n $scope.model.values = [];\n for (var i = 0; i < _this.source.values.length; i++) if (_this.source.values[i].name.toString().toLowerCase().indexOf($scope.model.search.toLowerCase()) != -1) {\n $scope.model.values.push(_this.source.values[i]);\n }\n }\n }", "title": "" }, { "docid": "0998eaf3e5b80e968b58c173a267507c", "score": "0.7024413", "text": "function searchInputChanged(event) {\n _.each(searchInputEventListener, function(callback) {\n callback(event.target.value);\n });\n }", "title": "" }, { "docid": "910eedf580ea306abd16d9db75a0398b", "score": "0.7023166", "text": "search() {\n this.props.onSearch(this.state.searchValue);\n }", "title": "" }, { "docid": "e11c18b117db9befe882b97da79a9470", "score": "0.7021907", "text": "function search(event) {\n // checks if the ENTER key has been pressed\n if (event.keyCode === 13) {\n var input = document.getElementById(\"searchBar\");\n searchTerm = input.value.toLowerCase();\n initMap();\n }\n}", "title": "" }, { "docid": "a609989f7bbaa427598008bbd1d910f5", "score": "0.7016558", "text": "function addSearchFunctionality() {\n var $searchBar = $('.search_bar');\n var $searchSubmit = $('.search_submit');\n if (!($searchBar && $searchSubmit)) return;\n\n // Function to display found pokemon\n $searchSubmit.on('click', e => {\n e.preventDefault();\n if (!$searchBar.val()) return;\n\n showFound($searchBar.val(), $searchBar);\n });\n\n // Function to display found pokemon\n $searchBar.on('keydown', e => {\n if (e.keyCode !== 13) return;\n\n showFound(e.target.value, $searchBar);\n });\n }", "title": "" }, { "docid": "596a2095ac94e0091edb934a5440507f", "score": "0.7015", "text": "function onSearchKeyPress(e) {\n\n if (!$(\".kb-search__input\").is(\":focus\") && !$(\".kb-search__results a\").is(\":focus\")) {\n return; //we do not to mess with keypress unless search is in focus\n }\n\n var $search = $(\".kb-search__input:focus\");\n\n switch (e.keyCode) {\n case ESC:\n focusInput();\n break;\n\n case ARROW_UP:\n prevSearchResult();\n break;\n\n case ARROW_DOWN:\n nextSearchResult();\n break;\n\n case ENTER:\n if ($search.length && !$search.val().trim()) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n return;\n\n default:\n return;\n }\n\n e.preventDefault(); // prevent the default action (scroll / move caret)\n }", "title": "" }, { "docid": "926313c6283d03c01f278fb9a7a6185a", "score": "0.70109177", "text": "function onSearch() {\n\n \n var nameFindVal = document.forms[0].findVal.value;\n var nameFindIn = document.forms[0].findIn.value;\n \n //Show error message to the user if he has select only findVal and not find In.\n if(nameFindVal !=\"\" && nameFindIn == \"\"){\n showBarMessage('Please specific find value.', ERROR_MSG);\n return false;\n }\n \n //Show error message to the user if he has select only findVal and not find In.\n if(nameFindVal ==\"\" && nameFindIn != \"\"){\n showBarMessage('Please specific find in.', ERROR_MSG);\n return false;\n }\n \n //Clear the Data Table\n// clearDiv('search_result');\n \n \n //set the action\n document.forms[0].currPageNo.value = 1;\n document.forms[0].action = BROWSE_FSC_LOOKUP;\n \n document.forms[0].submit();\n return false;\n}", "title": "" }, { "docid": "b5cd9a8490a6c9aec7b057fc4f6c4be2", "score": "0.70030886", "text": "afterSearch(searchText, result) {\n }", "title": "" }, { "docid": "6baa9000c9671502e140aa0603e185ab", "score": "0.70025754", "text": "function processSearchForm(e) {\n\tif(e.preventDefault) e.preventDefault();\n\t\thandleButtonPress();\n}", "title": "" }, { "docid": "02b75bd40f2da6d43c36c5e7e12ff318", "score": "0.70021373", "text": "function handleIngredientSearch() {\n\t$('.ingsearch').click(event => {\n event.preventDefault();\n let ingredient = $('.js-user-search').text();\n checkUserInputForNothing(ingredient);\n\t});\n}", "title": "" }, { "docid": "c4d9a7129c14b8c028566ff09cee2b23", "score": "0.69978297", "text": "function populateSearch() {\n\tprojectSearch.addEventListener('keyup', function(e) {\n\t\tsearchProjects()\n\t});\n}", "title": "" }, { "docid": "acb76ad30349444c8723bdfd11273482", "score": "0.6996411", "text": "handleSrchByChange(e) {\n\t\tthis.applySearchByDependencies(e.value);\n\t}", "title": "" }, { "docid": "8d461161bfb260e48e6e93f3f2b8351a", "score": "0.698174", "text": "async function searchHandler(event) {\n setReservations([])\n event.preventDefault()\n const abortController = new AbortController()\n setReservationsError(null)\n await listReservationsByNumber(formData.mobile_number, abortController.signal)\n .then(setReservations)\n .then(() => {history.push(`/search?mobile_number=${formData.mobile_number}`)})\n .catch(setReservationsError)\n }", "title": "" }, { "docid": "c88c96c4be5eca670bdb722d4e18d114", "score": "0.69779223", "text": "function searchClick(event){\n if(event.target.id == \"result\"){\n clickHandler(event.target.innerHTML);\n }\n}", "title": "" }, { "docid": "d29227195f2dd8de33ff17e5fd735bc8", "score": "0.69763035", "text": "handleSearchTermChange(term){\n\t\tthis.videoSearch(term)\n\t}", "title": "" }, { "docid": "1debaaee6f1b2d2ab76f0684de068aad", "score": "0.69697875", "text": "function searchOnEnter(e) {\r\n if (e.keyCode == 13) {\r\n //getting value from searchbox\r\n results(searchbox.value)\r\n }\r\n}", "title": "" }, { "docid": "f739b50e19f0ffbd262a59c167f8453a", "score": "0.6968301", "text": "addHandlerSearch(handler) {\n this._parentElement.addEventListener(\"submit\", function (e) {\n e.preventDefault();\n handler();\n });\n }", "title": "" }, { "docid": "df93a66007ecd99f0d3374137d46f66c", "score": "0.69678944", "text": "onChange(e) {\n this.search(e.target.value);\n }", "title": "" }, { "docid": "ea54f69739c241643490b175cbf9d44e", "score": "0.6959578", "text": "function handleSearchType() {\n $('.js-shopping-filter').on('keyup', event => {\n console.log('User typed', event.currentTarget.value);\n setState({searchString: event.currentTarget.value})\n });\n\n}", "title": "" }, { "docid": "b9b741f0b7ff9fb33f9a11f607a2055e", "score": "0.69577354", "text": "function searchBoxFunction(event){\n event.preventDefault();\n // clean content of page\n cleanUp(1)\n searchItemList.push(searchBox.value)\n buildSearchItemDisplay()\n}", "title": "" }, { "docid": "43c3949fcda8d78d4a351f3c9f5a4c89", "score": "0.6955163", "text": "function search(event){\n\tevent.preventDefault();\n\n\tvar artist = $('.query').val();\n\n\tvar url = 'https://api.spotify.com/v1/search?type=artist&query=' + artist;\n\n\n $.ajax({\n url: url,\n headers: {Authorization: 'Bearer ' + token}\n }).then(pushArtistToSelect);\n\n\n\t$('.query').val('');\n}", "title": "" }, { "docid": "17eada3888b2354bef1834a3e264f521", "score": "0.6954308", "text": "handleSearch(event) {\n const searchTerm = event.target.value\n\n const filteredPokemon = this.filter(searchTerm)\n\n const filteredPokemonTemplate = this.constructor.render(filteredPokemon)\n this.containerEl.innerHTML = filteredPokemonTemplate\n }", "title": "" }, { "docid": "d8bbee544526fe39dccca86a31ff6a4a", "score": "0.69531965", "text": "function onSearchType($search) {\n var $wrap = $search.parents('.kb-search__input-wrap');\n var needle = $search.val() && $search.val().trim();\n var $topics = $wrap.find('input[name=\"topics\"]');\n var topics = $topics.length ? $topics.val() : null;\n var $kbId = $wrap.find('input[name=\"kb_id\"]');\n var $lang = $wrap.find('input[name=\"lang\"]');\n var kbId = $kbId.length ? parseInt($kbId.val()) : null;\n var searchParams = {\n action: 'mkb_kb_search',\n search: needle,\n mode: searchMode\n };\n\n if (kbId) {\n searchParams.kb_id = kbId;\n }\n\n if (topics) {\n searchParams.topics = topics;\n }\n\n if ($lang.length && $lang.val()) {\n searchParams.lang = $lang.val();\n }\n\n var serializedParams = serializeRequestParams(searchParams);\n\n if (needle) {\n $wrap.addClass(HAS_CONTENT_CLASS);\n } else {\n $wrap.removeClass(HAS_CONTENT_CLASS);\n }\n\n // check cache for response\n if (settings['search_request_fe_cache'] && searchCache[serializedParams]) {\n // track cached result, if it wasn tracked before\n if (searchMode === 'nonblocking') {\n handleNonBlockingTracking(searchParams);\n }\n\n return handleSearchResultsReceive.call(this, $search, searchCache[serializedParams]);\n }\n\n if (!needle || needle.length < searchNeedleLength) {\n hasResults = false;\n resultsCount = 0;\n activeResult = -1;\n $wrap.removeClass(HAS_RESULTS_CLASS).removeClass(NO_RESULTS_CLASS);\n\n if (searchMode === 'nonblocking' && needle.length > 0) {\n fakeRequest($wrap); // progress indicator for input to be more responsive\n }\n\n return;\n }\n\n if (searchMode === 'nonblocking') {\n handleNonBlockingTracking(searchParams);\n }\n\n if (searchMode === 'blocking') {\n $search.attr('disabled', 'disabled');\n }\n\n $wrap.addClass(REQUEST_CLASS);\n ++searchRequestsCount;\n\n $.ajax({\n method: settings['live_search_use_post'] ? 'POST' : 'GET',\n url: ajaxUrl,\n dataType: 'json',\n data: searchParams\n })\n .then(function(response) {\n if (settings['search_request_fe_cache']) {\n searchCache[serializedParams] = response;\n }\n\n return handleSearchResultsReceive.call(this, $search, response);\n }.bind(this))\n .always(function () {\n if (searchMode === 'blocking') {\n $search\n .attr('disabled', false)\n .focus();\n }\n\n --searchRequestsCount;\n\n if (searchRequestsCount === 0) {\n $wrap.removeClass(REQUEST_CLASS);\n }\n });\n }", "title": "" }, { "docid": "da6bc3afdb4f059d1663c438f26f6194", "score": "0.6953113", "text": "searchData(e, key) {\r\n let shadowRootExist = false;\r\n shadowRootExist = this.base.returnBooleanValue(e.target);\r\n const inputText = key && shadowRootExist ?\r\n (e.target.activeElement.tagName === 'SPAN' ?\r\n e.target.activeElement.previousElementSibling.value.trim()\r\n :\r\n e.target.activeElement.value.trim())\r\n : e.target.tagName === 'INPUT' ? e.target.value.trim() : e.target.previousElementSibling.value.trim();\r\n if (inputText.length >= 3) {\r\n if (this.resultPageUrl && this.resultPageExtension && this.searchParamKey) {\r\n dxp.log.debug(this.element.tagName, 'searchData()', `redirected to search result page`);\r\n this.redirectPage(inputText);\r\n }\r\n else {\r\n dxp.log.debug(this.element.tagName, 'searchData()', `event emit for SPA`);\r\n this.searchTermChanged.emit({ 'searchTerm': inputText });\r\n }\r\n }\r\n }", "title": "" } ]
943a81b1b09df0dae73dd4d1b998b95a
Exits from the paused mode.
[ { "docid": "c69669671d18178809f75082081a6bd2", "score": "0.566683", "text": "function resume() {\n\n var wasPaused = dom.wrapper.classList.contains( 'paused' );\n dom.wrapper.classList.remove( 'paused' );\n\n cueAutoSlide();\n\n if( wasPaused ) {\n dispatchEvent( 'resumed' );\n }\n\n }", "title": "" } ]
[ { "docid": "0ee6b19e9fdf1b918874c400e7c874a7", "score": "0.71048313", "text": "stop () {\n\t\tthis.paused = true;\n\t}", "title": "" }, { "docid": "0ee6b19e9fdf1b918874c400e7c874a7", "score": "0.71048313", "text": "stop () {\n\t\tthis.paused = true;\n\t}", "title": "" }, { "docid": "4284af1030a1d49d4eaecadaeee46caa", "score": "0.70495516", "text": "resume() {\n this._paused = false;\n }", "title": "" }, { "docid": "1ee8fa86bf8ef7aa5297bb8f677fc2a6", "score": "0.6936792", "text": "static pause() {\n if (appStack.length > 0) {\n appStack[appStack.length - 1].setAllKeys(false);\n appStack[appStack.length - 1].state = 'paused';\n }\n }", "title": "" }, { "docid": "7610f61bfad0fc2205cc5f813b4e9256", "score": "0.6841772", "text": "pause() {\n this._isPaused = true;\n }", "title": "" }, { "docid": "7610f61bfad0fc2205cc5f813b4e9256", "score": "0.6841772", "text": "pause() {\n this._isPaused = true;\n }", "title": "" }, { "docid": "250a66b4d55af0d449cd779a6207a8f3", "score": "0.6748478", "text": "function unload() {\n inited = false;\n paused = true;\n }", "title": "" }, { "docid": "784a07425dbdfe72a9b9abdaf819e460", "score": "0.672821", "text": "unpause() {\n this.isPaused = false;\n this.uploadLogs();\n }", "title": "" }, { "docid": "64fa73050ad57c22a03e53988c0c55ed", "score": "0.6711492", "text": "_reset () {\n\t\t// TODO: explore better ways to handle this issue. This is hacky & disrupts object signatures.\n\t\tlet p = this.paused;\n\t\tthis.__reset();\n\t\tthis.paused = p;\n\t}", "title": "" }, { "docid": "07d8ef10e0c57bd4152516a30f53be48", "score": "0.66776353", "text": "unpause(){\n this.running = true;\n }", "title": "" }, { "docid": "9f5d82e1a3259ed1e3c189e238340f65", "score": "0.6605239", "text": "pause()\n\t{\n\t\tthis._paused = true;\n\t\tthis._stopTimeout();\n\t}", "title": "" }, { "docid": "aa9eed07d4ab94df6dd2c1fb0ef54924", "score": "0.6592094", "text": "function unpause(event) {\r\n\tif(game.paused = true){\r\n\t\tresumeLabel.destroy();\r\n\t\tgame.paused = false;\r\n\t}\r\n}", "title": "" }, { "docid": "25037be9444b903c63faf06393c12cb3", "score": "0.65644616", "text": "function pause() {\n running = false;\n inPause = true;\n}", "title": "" }, { "docid": "8a2c3981b8fb347282531a7a553247da", "score": "0.65540636", "text": "pause() {\n this._paused = true;\n }", "title": "" }, { "docid": "ea83206287709e88431f7181861d082e", "score": "0.65356696", "text": "pause() {\n if (this._status('paused')) {\n clearInterval(this.timer);\n }\n }", "title": "" }, { "docid": "21e866f098f3b7982deb43c283e6b06b", "score": "0.64940023", "text": "function unpause(event){\n // Only act if paused\n if(game.paused){\n game.paused = 'false';\n }\n \n }", "title": "" }, { "docid": "4ee061a28ec53d4c64b1e8e114afb07b", "score": "0.6489083", "text": "resume()\n\t{\n\t\tthis._paused = false;\n\t\tthis._startTimeout();\n\t}", "title": "" }, { "docid": "f52d2d4d96ac0ff3ddf2504b961e0992", "score": "0.648248", "text": "pause() {\n this._pause();\n this.setLifeCycleState(\"pause\");\n }", "title": "" }, { "docid": "e53bc3bff5d63d7b6c0703b55b2b09be", "score": "0.64192384", "text": "function cancel() {\n unfadeButton(pausedState);\n pausedState = \"\";\n }", "title": "" }, { "docid": "b99254c27c03d70799f7a977e7e1a2c3", "score": "0.6364273", "text": "pause(){this.paused=!0}", "title": "" }, { "docid": "d23a9c35956b4ef6ace453404d7f9ca7", "score": "0.63517153", "text": "pause() {\n this.isPaused = true;\n }", "title": "" }, { "docid": "0b7fc9472be7b323f84d0e0c56903a62", "score": "0.63505375", "text": "stop() {\n this.isPaused = true;\n cancelAnimationFrame(this.timerId);\n }", "title": "" }, { "docid": "5e869386340c29d1b5d2e28f0bc91452", "score": "0.63471264", "text": "pause() {\n\t\t\tthis._pause();\n\t\t}", "title": "" }, { "docid": "4656a8c4a2574d48c5beb6b2fc13f03e", "score": "0.6320166", "text": "async unpause() {\n const sender = await this.defaultAccount()\n\n // Pre-contract call validations.\n const paused = await this.contract.methods.paused().call()\n if (!paused) {\n throw new Error('Token is already unpaused')\n }\n // TODO: implement this method.\n // await this.ensureContractOwner(this.contract, sender)\n\n const transaction = this.contract.methods.unpause()\n const txHash = await this.sendTx(transaction, {\n from: sender\n })\n logger.info(`Sent unpause tx to network, hash=${txHash}`)\n const { status } = await this.waitForTxConfirmation(txHash)\n if (status != 'confirmed') {\n throw new Error(\n `Failed getting confirmation. txHash=${txHash} status=${status}`\n )\n }\n }", "title": "" }, { "docid": "247d9ea2220d30830b83c7b463292050", "score": "0.6290067", "text": "function pause() {\n observer.disconnect();\n }", "title": "" }, { "docid": "51e8510faf8f858b35323e9aed0e5e69", "score": "0.6255907", "text": "function _pause() /*: void*/{\n _isInitialising = false;\n _isStarted = false;\n scheduler_destroy();\n queue_destroy();\n session_destroy();\n attribution_destroy();\n}", "title": "" }, { "docid": "199f4abc17a8fb9c1ea31f749faa3565", "score": "0.62411433", "text": "paused() {\n\n }", "title": "" }, { "docid": "8421b4b13fc952c5847828d7c385f7bd", "score": "0.6236821", "text": "pause() {\n if(this.isPaused) {\n debug.warn(\"This scenario is already paused.\");\n return;\n }\n this.timer.pause();\n this.isPaused = true;\n }", "title": "" }, { "docid": "cfe48eae0102dd285285dd15327394bc", "score": "0.62356645", "text": "stop() {\n\t\tthis.playground.erase();\n\t}", "title": "" }, { "docid": "773410b75cfa3c421c45dc764b4253e9", "score": "0.62335765", "text": "function shutUp () {\n\t\tif (!voicePlayer.paused && typeof voicePlayer.src != \"undefined\" && voicePlayer.src != \"\") {\n\t\t\tvoicePlayer.pause();\n\t\t\tvoicePlayer.currentTime = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "4eaf2949a8cc6641cc292c606f4ba5cd", "score": "0.62222296", "text": "function resume(game){\n game.scene.stop(\"PauseMenu\")\n game.scene.resume(currentScene)\n}", "title": "" }, { "docid": "32b278ba4bc5c7117e0b4e3ccb3bcc3b", "score": "0.62189925", "text": "pauseGame() {\n\n clearInterval(this.interval);\n this.stopwatch.handleStop();\n this.state.isActive = false;\n\n this.savePauseGame();\n this.setGameState(Constant.PAUSE);\n this.saveHighScore();\n }", "title": "" }, { "docid": "31e016407988b5750e41582542f94ff7", "score": "0.61943746", "text": "paused() {\n\n }", "title": "" }, { "docid": "31e016407988b5750e41582542f94ff7", "score": "0.61943746", "text": "paused() {\n\n }", "title": "" }, { "docid": "6279f1fa1f4cd80691f1f4e61800eebf", "score": "0.61735564", "text": "pause () {}", "title": "" }, { "docid": "6279f1fa1f4cd80691f1f4e61800eebf", "score": "0.61735564", "text": "pause () {}", "title": "" }, { "docid": "6279f1fa1f4cd80691f1f4e61800eebf", "score": "0.61735564", "text": "pause () {}", "title": "" }, { "docid": "22d2a5d65ebda9ed4c1d261b68797522", "score": "0.6143285", "text": "pause() {\n debug('pausing');\n\n if (this.state === Pulchra.STATES.PAUSED) {\n return debug('already paused');\n }\n\n this._state = Pulchra.STATES.PAUSED;\n this.emit(Pulchra.EVENTS.PAUSE);\n }", "title": "" }, { "docid": "4bb112efec4614f94601b06b460ccb89", "score": "0.61190945", "text": "function paused()\n\t{\n\t\tfw.eventPublish('pause:video');\n\t}", "title": "" }, { "docid": "010ed479bcefeb5092301943d73b988b", "score": "0.6107495", "text": "stop () {\n this._paused = true\n cancelAnimationFrame(this._handle)\n }", "title": "" }, { "docid": "4f2b715ded87602d0912a0ea109941b4", "score": "0.6107388", "text": "function resume() {\n hold = false;\n}", "title": "" }, { "docid": "a69d8e715afadf4660c505bee6b382a4", "score": "0.61020917", "text": "pause() {\n this._source.pause();\n }", "title": "" }, { "docid": "99721d15448ebec0c898af82429681e4", "score": "0.6100498", "text": "function gameResume() {\n gameState = 1;\n ctx.restore();\n}", "title": "" }, { "docid": "fbee331bf7fd3e2e02caee5faf3094fb", "score": "0.6073393", "text": "pause()\n {\n if (this.started === true)\n {\n if (this.paused === false)\n {\n this.update.cancel();\n this.paused = true;\n this.yieldInput();\n }\n }\n else\n {\n throw new Error(\"Attempt to pause the map-engine when it is not running.\");\n }\n }", "title": "" }, { "docid": "cc94321c88ca0855649660c62e2f3948", "score": "0.6055781", "text": "pause(){\n this.running = false;\n }", "title": "" }, { "docid": "0c7e311172029be90c9cce80838bcf78", "score": "0.6049708", "text": "pause() {\n\t\tthis._userPaused = true;\n\t\tthis._videoElement.pause();\n\t}", "title": "" }, { "docid": "b2cb48326c0d3ce78301e68e7a7d6b69", "score": "0.604137", "text": "function pause() {\n hide(true);\n refreshEventListeners(true);\n }", "title": "" }, { "docid": "66603fca03b03bd1ed2cb1c8f731e62a", "score": "0.6023587", "text": "pauseGame() {\n this.gamePlaying = false;\n clearInterval(this.game);\n this.gameRef.updateGameState(\"paused\");\n }", "title": "" }, { "docid": "c384eb2aeef1be8367094c310e59567f", "score": "0.60133016", "text": "function unpauseInventory(event) {\r\n\t//remove the menus and labels\r\n\tinventoryMenu.destroy();\r\n\tresumeLabel.destroy();\r\n\tfor(var i = 0; i < invCounter; i++){\r\n\t\twindow['itemLabel' + i].destroy();\r\n\t\twindow['itemNumber' + i].destroy();\r\n\t}\r\n\r\n\t//unpause the game\r\n\tisInventoryMenu = false;\r\n\tgame.paused = false;\r\n}", "title": "" }, { "docid": "5948e89be82271aa236de1b2b5626423", "score": "0.60115784", "text": "pauseGame() {\n if (this.isPaused) {\n //Already paused, so start the game\n this.startPlay();\n return;\n }\n this.killGameInterval();\n this.isPaused = true;\n\n // Show the paused modal message (from template)\n this.showMessage(\"paused\");\n const button = document.getElementById(\"tetrjs-pause-play\");\n button.addEventListener(\"click\", ev => {\n this.startPlay();\n });\n }", "title": "" }, { "docid": "6a5b71d2d3c0511e169c076b58739e43", "score": "0.5995501", "text": "function stopGame(){\r\n\tgameData.paused = true;\r\n\tTweenMax.killAll(false, true, false);\r\n}", "title": "" }, { "docid": "0c24401a5083412958592a4182314fc0", "score": "0.5982631", "text": "pauseCleaning(callback) {\n this.sendLocal(\"app_pause\", [], {})\n .then(res => callback(null, res[0]), err => callback(err));\n }", "title": "" }, { "docid": "cf0fb35163915bd40260ad14bc621a03", "score": "0.5973036", "text": "resume() {\n this.isStopped = false;\n }", "title": "" }, { "docid": "59120d8799e1f7d9f8b9f7622524a53b", "score": "0.59670043", "text": "isPaused() {\n throw new NotImplemented()\n }", "title": "" }, { "docid": "ab95684421c2a88183f06e065404e05a", "score": "0.5951241", "text": "function onPause() {\n if(window.started) {\n //$.unblockUI();\n clearTimer(); \n } \n }", "title": "" }, { "docid": "351ce14d44e863736af0de88cad0ba24", "score": "0.59449524", "text": "function unpause(event){\n // Only act if paused\n if(game.paused){\n // Remove the menu and the label\n menu.destroy();\n pauseWP.destroy();\n // Display pause button\n pause_button.visible = true;\n // pause_button.setFrames(2,1,0);\n // Unpause the game\n game.paused = false;\n }\n}", "title": "" }, { "docid": "2f0d4b580eaeb22c6caa91f27bff3038", "score": "0.5940546", "text": "function pause() {\n\t\tInspector.Debugger.pause();\n\t}", "title": "" }, { "docid": "f9cce262ac53362fef84c3c14c75e852", "score": "0.59380823", "text": "resume() {\n if (this.isPaused()) {\n this.play(this._pausePos);\n }\n }", "title": "" }, { "docid": "9fcbd8773a91fbde62c86b1e9561d0c2", "score": "0.5914463", "text": "pause() {\n if (this.state.current != 'play') { return; }\n\n this.state.paused = !this.state.paused;\n this.overlay.setPause(this.state.paused);\n\n if (this.state.paused) {\n // pause game loop\n this.cancelFrame(this.frame.count - 1);\n\n // mute all game sounds\n this.audioCtx.suspend();\n\n this.overlay.setBanner('Paused');\n } else {\n // resume game loop\n this.requestFrame(() => this.play(), true);\n\n // resume game sounds if game not muted\n if (!this.state.muted) {\n this.audioCtx.resume();\n }\n\n this.overlay.hide('banner');\n }\n }", "title": "" }, { "docid": "631fb62dd24469f93a7376b81ad6a81a", "score": "0.5908081", "text": "paused() {\n\treturn this.status != hdxStates.AV_RUNNING;\n }", "title": "" }, { "docid": "211d845bdfc0767e8c1b96e80751e2d8", "score": "0.5908015", "text": "stop() {\n\t\tthis.playground.erase();\n\t\tthis.disableHighScoreComponents();\n\t}", "title": "" }, { "docid": "97002d68ae4de4da28bb31ec687bdedf", "score": "0.5900159", "text": "pause() {\n if (this.status === CountdownStatus.stop || this.status === CountdownStatus.pause) {\n return;\n }\n this.status = CountdownStatus.pause;\n this.callEvent('pause');\n }", "title": "" }, { "docid": "b9f453888dd41c2997f3ef27f503e070", "score": "0.58931863", "text": "isPaused()\n {\n return this._direction == Direction.STOPPED;\n }", "title": "" }, { "docid": "23bba5c3a977f23776e4a7e0038224d0", "score": "0.5892121", "text": "function togglePause() {\n\n if( isPaused() ) {\n resume();\n }\n else {\n pause();\n }\n\n }", "title": "" }, { "docid": "05e7751d22478b2e763bb156cd5919b3", "score": "0.5884068", "text": "function stopit()\n{\n\t\n\tpcmd = {};\n\tsetTimeout(function(){\n console.log(\"paused\")\n\t}, 500);\n\n}", "title": "" }, { "docid": "217f3540e7dca63966a5508fa67259f8", "score": "0.586821", "text": "pause() {\n\t\t\tthis.wave.stop();\n\t\t\tthis.recorder.pause();\n\t\t\tthis.chronometer.stop();\n\t\t\tthis.state = 'paused';\n\n\t\t\tthis.onpause();\n\t\t}", "title": "" }, { "docid": "5d8ad261cd2a76c88a85da7ff0140dfa", "score": "0.5865882", "text": "function continuee() {\n inPause = false;\n running = true;\n}", "title": "" }, { "docid": "fbecd27fed7221ff535365ab2dcf2d8a", "score": "0.58656293", "text": "pause () {\n this.file.active = false\n this.stopChunks()\n }", "title": "" }, { "docid": "ea53d6e96bea8fb745b337ea07cd7ded", "score": "0.58588386", "text": "_pause() {}", "title": "" }, { "docid": "36fb7bdc774fde9c0f6f21bd2b7b1bbb", "score": "0.5856999", "text": "unPauseTimer() { MyPandaTimer.paused = false; }", "title": "" }, { "docid": "8f6ee9cc2f878c12889df72e1c3bbb93", "score": "0.5854645", "text": "pause() { \r\n clearTimeout(this.timeout); \r\n this.temp = null;\r\n }", "title": "" }, { "docid": "f95fa7c73c996374cf963d3f1b2458e7", "score": "0.5849291", "text": "stop() {\n this.pause();\n this.setTime(0);\n }", "title": "" }, { "docid": "53d35946dda4c3fa16d7ff616ed48e37", "score": "0.58129054", "text": "async stop() {\n for (let current of this.active) {\n await current.pause();\n current.currentTime = 0;\n }\n }", "title": "" }, { "docid": "41a002d9dfdc1f0fa959804d212f7409", "score": "0.580338", "text": "pause ( ) {\n if ( this.state === 'pause' ) {\n return void 0;\n }\n\n this.state = 'pause';\n\n clearTimeout( this.timer );\n }", "title": "" }, { "docid": "a7b7345978415106e04200a38b7f9f35", "score": "0.57941055", "text": "resume() {\n if (this.state === GuiTimer.State.PAUSED)\n this.state = GuiTimer.State.RUNNING;\n }", "title": "" }, { "docid": "8c23f57adeee614b5734562fb39cfc75", "score": "0.57928926", "text": "function stop() {\n el.pause();\n el.currentTime = 0;\n isPlaying = false;\n // dim screen light to 0\n brightness.setBrightness(0);\n}", "title": "" }, { "docid": "7d877bcec5c7591f6ba328ca4a0c222d", "score": "0.57927734", "text": "function gamePause() {\n gameState = 2;\n ctx.save();\n}", "title": "" }, { "docid": "6b04c34e3861902bbaa2a001c1596699", "score": "0.5771415", "text": "function handlePauseResume() {\n \t\ttools.pauseResume(tool);\n \t}", "title": "" }, { "docid": "064ae03156a19f69c09a6f9ba7fe3428", "score": "0.57695866", "text": "function pause() {\n\t\t\tvar animate = this;\n\t\t\tif (animate.key) {\n\t\t\t\twindow.cancelAnimationFrame(animate.key);\n\t\t\t\tanimate.key = null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a6a7a193ff8307224f06d5b1dd9a6a05", "score": "0.5769212", "text": "stop() {\n this._source.pause();\n this._source.currentTime = 0;\n }", "title": "" }, { "docid": "cd4459417954c48bbce162c370865001", "score": "0.5763605", "text": "pause() {\n if (this._remain <= 0 || this._start == null) {\n return\n }\n\n clearTimeout(this._timeoutId)\n this._remain -= Date.now() - this._start\n }", "title": "" }, { "docid": "eb0dd1254d396b77afb1ffb1bd7693eb", "score": "0.5759398", "text": "pause() {\n\t\treturn this.call('app_pause', [], {\n\t\t\trefresh: [ 'state ']\n\t\t})\n\t\t\t.then(checkResult);\n\t}", "title": "" }, { "docid": "4ea60beb8581cb74442e7d05845ac0f0", "score": "0.57581043", "text": "function pause() {\n if (!_initialized) return;\n _active = false;\n\n _disposed.onNext();\n }", "title": "" }, { "docid": "cd4c405def30de036f892e51f2b475ca", "score": "0.5753178", "text": "function unpause(event){\n // Only act if paused\n if(game.paused){\n // Calculate the corners of the menu\n var x1 = w/2 - 270/2, x2 = w/2 + 270/2,\n y1 = h/2 - 180/2, y2 = h/2 + 180/2;\n\n // Check if the click was inside the menu\n if(event.x > x1 && event.x < x2 && event.y > y1 && event.y < y2 ){\n // The choicemap is an array that will help us see which item was clicked\n var choisemap = ['one', 'two', 'three', 'four', 'five', 'six'];\n\n // Get menu local coordinates for the click\n var x = event.x - x1,\n y = event.y - y1;\n\n // Calculate the choice \n var choise = Math.floor(x / 90) + 3*Math.floor(y / 90);\n\n // Display the choice\n choiseLabel.text = 'You chose menu item: ' + choisemap[choise];\n }\n else{\n // Remove the menu and the label\n menu.destroy();\n choiseLabel.destroy();\n\n // Unpause the game\n game.paused = false;\n }\n }\n\t}", "title": "" }, { "docid": "05130207e96371527019be56a382b2bd", "score": "0.5748807", "text": "pause() {\n this.state_ = AsciicastPlayer.PAUSED;\n this.updateTS_();\n this.epoch_ = null;\n console.log('Paused at ' + this.currentTime)\n }", "title": "" }, { "docid": "a5b7c7e49e0b44a0c184d223b1cb1e5a", "score": "0.5746959", "text": "function con_pause() {\n\tif (InterActual.PlayState != 0)\t{ \t//if video is initialized\n\tInterActual.Pause();\n\t\t}\n}", "title": "" }, { "docid": "22dc765f3b57dceaf36ac0cd3caf720f", "score": "0.5746505", "text": "pause(){\n this.yz = true;\n this.yb = this.ya.length;\n clearTimeout(this.az);\n }", "title": "" }, { "docid": "9cd0ac0d66e8f81c0a10c1612f35270b", "score": "0.574266", "text": "function resume() {\n if (!_initialized) return;\n _active = true;\n\n setupVideoHandler();\n }", "title": "" }, { "docid": "4f1e3b7adeeb3d9e1234ef92a7c71e3a", "score": "0.5739955", "text": "resume() {\n if (this._mediaState !== 'paused') {\n return;\n }\n this._player.resume();\n }", "title": "" }, { "docid": "2394b70060b59b5ddc4e87f57b584c58", "score": "0.5734316", "text": "function pause() {\n\t\t// Set a flag\n\t\tpaused = true;\n\t\t// Clear any previous timeout, just in case\n\t\tclearTimeout(timeoutId);\n\t\t// Set a new timeout to unpause after the given interval\n\t\ttimeoutId = setTimeout(unpause, interval);\n\t}", "title": "" }, { "docid": "3854b55519c7066175a409e046bd1723", "score": "0.57224834", "text": "function OnPauseGame ()\n{\n\n\tgamePause = true;\n\t\n}", "title": "" }, { "docid": "db0354f4523c2ed85335fafa1abac99f", "score": "0.57180065", "text": "function stopAmbient () {\n\t\tif (!ambientPlayer.paused) {\n\t\t\tambientPlayer.pause();\n\t\t}\n\t}", "title": "" }, { "docid": "c901f4a786e478ef193be5b9a73d1a1a", "score": "0.5715324", "text": "function unpause() {\n\t\t// Unpause\n\t\tpaused = false;\n\t\t// If a new value has come in since we've paused\n\t\tif (has_value) {\n\t\t\t// Push that value down the stream\n\t\t\thas_value = false;\n\t\t\tstream.push(last_value);\n\t\t\t// Pause again\n\t\t\tpause();\n\t\t}\n\t}", "title": "" }, { "docid": "d1cab8dbac2dbe9420c100fe85d5b516", "score": "0.5694968", "text": "pause() {\n this.mState = EmitterState.PAUSED;\n }", "title": "" }, { "docid": "9f95cb86f7a8bd574ed9ae6a9022841b", "score": "0.5689601", "text": "pause() {\n this.pauses = true;\n this.debug(\"> Pausing Scheduler (pauses %i)\", this.pauses);\n }", "title": "" }, { "docid": "6920c9b3e19b7bfa4ebf519524d26603", "score": "0.5688677", "text": "function pauseGame(){\n\t\tif(g.paused && ai.state == 'pause'){\n\t\t\tai.t0 = Date.now();\n\t\t\tg.resume();\n\t\t\ttoggleMenu(pauseScene,undefined);\n\t\t\tsBox.restart(sBox.bgMusic);\n\t\t\tplayer.walk();\n\t\t\tai.state='play';\n\t\t}\n\t\telse if(ai.state!=='end') {\n\t\t\tg.pause();\n\t\t\ttoggleMenu(undefined,pauseScene);\n\t\t\tsBox.pause(sBox.bgMusic);\n\t\t\tplayer.stop();\n\t\t\tai.state = 'pause'\n\t\t}\n\t}", "title": "" }, { "docid": "140eac0c5c438f564b39e8341029df4b", "score": "0.5687812", "text": "stop() {\n this.paused = true;\n if (this.lastRequest) {\n this.lastRequest.abort();\n }\n clearTimeout(this.tid1);\n clearTimeout(this.tid3);\n }", "title": "" }, { "docid": "0eefbcf81ed3f108c910c534690cf6f4", "score": "0.5684408", "text": "pause() {\n if (this.state === GuiTimer.State.RUNNING)\n this.state = GuiTimer.State.PAUSED;\n }", "title": "" }, { "docid": "e9daf9059b549d1bef09165c66b21f55", "score": "0.5674938", "text": "function clickPause(){\n setPaused( true );\n}", "title": "" }, { "docid": "0d08783a108d63cda87ac749c10dfac5", "score": "0.56679755", "text": "pause() {\n this.setStatus(this.handlePause());\n this.sendControlRequest(\"pause\");\n }", "title": "" } ]
382bc26e5658fdcc512ca6081ac308d8
generateTileMap: generate a random tile map with the four corners and the bricks pattern fixed
[ { "docid": "8156a8a2d7246448ffb2717f4ff0dec4", "score": "0.8679292", "text": "generateTileMap() {\n var map = new Array(13)\n\n // randomize the map\n for (var i = 0; i < 13; i++) {\n map[i] = new Array(15)\n for (var j = 0; j < 15; j++) {\n map[i][j] = Math.floor(Math.random() * 3)\n }\n }\n\n // fix four corners\n map[0][0] = 0\n map[0][1] = 0\n map[1][0] = 0\n\n map[12][0] = 0\n map[11][0] = 0\n map[12][1] = 0\n\n map[0][14] = 0\n map[0][13] = 0\n map[1][14] = 0\n\n map[12][14] = 0\n map[12][13] = 0\n map[11][14] = 0\n\n // fix the brick pattern\n var brick = random(0, 3)\n if (brick < 1) {\n for (var i = 1; i < 12; i += 2) {\n for (var j = 1; j < 14; j += 2) {\n map[i][j] = 3\n }\n }\n } else if (brick < 2) {\n for (var i = 1; i < 12; i += 2) {\n for (var j = 2; j < 13; j += 4) {\n map[i][j] = 3\n map[i][j + 1] = 3\n map[i][j + 2] = 3\n }\n }\n } else {\n for (var i = 1; i < 12; i += 4) {\n for (var j = 1; j < 15; j += 4) {\n map[i][j] = 3\n map[i + 1][j] = 3\n map[i + 2][j] = 3\n }\n }\n }\n\n return map\n }", "title": "" } ]
[ { "docid": "1b65b5368b97326b7bb5a8029e9917c9", "score": "0.77410287", "text": "generateRandomMap(){\n\n //0 to 99\n //Math.floor(Math.random() * 100);\n\n for(let x = 0; x < this.mapSize[0]; x++){\n for(let y = 0; y < this.mapSize[1]; y++){\n this.randNum = Math.floor(Math.random() * 100);\n this.randomMap[x][y] = (Math.abs(x - this.initialLocation[0]) + Math.abs(y - this.initialLocation[1])) * 7;\n if(this.randomMap[x][y] < this.randNum){\n // 1 signifies an open section of cave\n this.randomMap[x][y] = 1;\n }\n else{\n // -1 signifies a cave wall\n this.randomMap[x][y] = -1;\n }\n }\n }\n\n //Set the initial location to the exit point\n this.randomMap[this.initialLocation[0]][this.initialLocation[1]] = 2;\n\n //The who topmost right tiles are always blocks (so we can put buttons there)\n this.randomMap[this.mapSize[0], 0] = -1;\n\n }", "title": "" }, { "docid": "9f8c411ee715a73cdfd1f9eebe2eae55", "score": "0.7202793", "text": "function build_initial_random_map() {\r\n\t\r\n\tvar TOTAL_SCREENS_WIDTH = 24;\r\n\tvar initial_map_width_in_tiles = TOTAL_SCREENS_WIDTH * 16;\r\n\t\r\n\t// clear the map (global array)\r\n\tmap = [];\r\n\t\r\n\t// build a row of tiles the entire level wide; make every tile aqua blue\r\n\tvar level_wide_row_of_tiles = [];\r\n\tfor (var i = 0; i < initial_map_width_in_tiles; ++i) {\r\n\t\tlevel_wide_row_of_tiles.push(1);\r\n\t}\r\n\t\r\n\t// stick the level wide row of tiles in the map 15 times (for the 15 rows\r\n\t// of initial sky tiles in the level)\r\n\tfor (var i = 0; i < 15; ++i) {\r\n\t\tmap.push(JSON.parse(JSON.stringify(level_wide_row_of_tiles)));\r\n\t}\r\n\r\n\t// stick in some tiles at the start of the level\r\n\tfor (var x = 0; x < initial_map_width_in_tiles; ++x) {\r\n\t\tmap[13][x] = 0;\r\n\t\tmap[14][x] = 0;\r\n\t}\r\n\t\r\n\t// stick some spaces for the user to leap over with the greatest of\r\n\t// aplomb\r\n\tvar x = 10;\r\n\twhile (x < initial_map_width_in_tiles) {\r\n\t\tmap[13][x - 2] = 1;\r\n\t\tmap[14][x - 2] = 1;\r\n\t\tmap[13][x - 1] = 1;\r\n\t\tmap[14][x - 1] = 1;\r\n\t\tmap[13][x] = 1;\r\n\t\tmap[14][x] = 1;\r\n\t\tx += 10;\r\n\t}\r\n\t\r\n\t// build some randomly spaced platforms\r\n\tvar platform_start_x = randint(0, 10);\r\n\tvar platform_y = randint(6, 11);\r\n\tvar platform_width = randint(5, 10);\r\n\t\r\n\twhile (platform_start_x < initial_map_width_in_tiles - 10) {\r\n\t\t// stick platform in level\r\n\t\tvar start_x = platform_start_x;\r\n\t\tvar end_x = platform_start_x + platform_width - 1;\r\n\t\tfor (var x = start_x; x <= end_x; ++x) {\r\n\t\t\tmap[platform_y][x] = 5;\r\n\t\t}\r\n\t\t// stick a ladder from the ground up to the platform (1 in 2 chance;\r\n\t\t// only if there is ground to set the bottom of the ladder on)\r\n\t\tif (randint(1, 2) == 1) {\r\n\t\t\t// select a random x position for the ladder\r\n\t\t\tvar ladder_x = randint(start_x + 1, end_x - 1);\r\n\t\t\t// if there's ground beneath the proposed ladder position, stick\r\n\t\t\t// the ladder in the map\r\n\t\t\tif (map[14][ladder_x] == 0) {\r\n\t\t\t\tfor (var ladder_y = platform_y; ladder_y < 13; ++ladder_y) {\r\n\t\t\t\t\tif (ladder_y == platform_y) {\r\n\t\t\t\t\t\tmap[ladder_y][ladder_x] = 12;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmap[ladder_y][ladder_x] = 11;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// next platform start x is end of previous platform + randint(3, 6)\r\n\t\tplatform_start_x = (\r\n\t\t\t(platform_start_x + platform_width - 1) + randint(3, 6)\r\n\t\t\t\t\t\t\t);\r\n\t\t// next platform y is randint(6, 11)\r\n\t\tplatform_y = randint(6, 11);\r\n\t\t// next platform width is randint(5, 10)\r\n\t\tplatform_width = randint(5, 10);\r\n\t}\r\n\t\r\n\t// draw a left moving platform at a random height at the start of the level\r\n\tvar random_y = randint(2, 6);\r\n\tvar start_x = randint(2, 4);\r\n\tvar end_x = randint(7, 10);\r\n\tfor (var x = start_x; x <= end_x; ++x) {\r\n\t\tmap[random_y][x] = 15;\r\n\t}\r\n\r\n\treturn;\r\n}", "title": "" }, { "docid": "c7731eeb9a31d8a453de5e9062b1d18a", "score": "0.71656114", "text": "function generateMap() {\n for (let i = 0 ; i < mapTileLimit; i++) {\n //Generate DOM code.\n const htmlElement = document.createElement(\"div\");\n let x = i % 10;\n let y = parseInt(i / 10);\n htmlElement.className = 'tile blank-tile';\n htmlElement.id = i;\n mapTilesId[y][x] = i;\n //Inject generated code into the DOM.\n mapContainer.appendChild(htmlElement);\n }\n }", "title": "" }, { "docid": "e1e17774615df21df9085ab56661d7b1", "score": "0.714029", "text": "function generateMap(size){\n\t//Start by finding the size if it dons't exist\n\tvar t = getBlankMap(size);\n\t//Create a map object out of the a blank map\n\tvar m = map(t);\n\t//Sets map start\n\tvar tile = m.get(getRandomNormal(sizeHash[size]),0);\n\tm.setStart(tile);\n\t\n\t//Set first main branch\n\tmakeBranch(m, tile, 0);\n\t//Will keep trying to make random branches untill map is full or 500 branches have been tried\n\tvar branchTryCount = 0;\n\tvar maxBranchTry = 500;\n\twhile(!m.mapFull() && branchTryCount < maxBranchTry){\n\t\t//Keep making branches off random active tiles, until map is full\n\t\tmakeBranch(m, m.getRandomActive(), getRandomDirection());\n\t\tbranchTryCount++;\n\t}\t\n\treturn m;\n\t\n}", "title": "" }, { "docid": "a66107d6d1a1eef5dfd44670bd60426f", "score": "0.70481604", "text": "function populateMap(tribes)\n{\n\tfor(let i = 0; i < tribes.length; i++)\n\t{\n\t\tlet next = false;\n\t\tlet startingTiles = 9;\n\t\tlet curX = Math.round(Math.random() * (BOARD_WIDTH - 1));\n\t\tlet curY = Math.round(Math.random() * (BOARD_HEIGHT - 1));\n\t\tlet plotsPlaced = 0;\n\n\t\ttiles[curX][curY].setTribe(tribes[i]);\n\t\ttiles[curX][curY].setTownTile(true);\n\t\tplotsPlaced++;\n\n\t\tfor(let x = -1; x <= 1; x++)\n\t\t{\n\t\t\tfor(let y = -1; y <= 1; y++)\n\t\t\t{\n\t\t\t\tlet tX = curX + x;\n\t\t\t\tlet tY = curY + y;\n\t\t\t\tif(withinTiles(tX, tY))\n\t\t\t\t{\n\t\t\t\t\tif(tiles[tX][tY].owner == TRIBE_EMPTY)\n\t\t\t\t\t{\n\t\t\t\t\t\ttiles[tX][tY].setTribe(tribes[i]);\n\t\t\t\t\t\ttiles[tX][tY].setTree(false);\n\t\t\t\t\t\tif(tribes[i] == playerTribe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tplayerTileMoneyAmt++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "e328aa90b48473835718cb880490dafa", "score": "0.70002943", "text": "function generate_random_pattern() {\n\tvar i = grid_size, j;\n\t//TODO: loading as param\n\tvar loading = high_loading;\n\twhile(generated_tile_ids.length < loading) {\n\t\tj = Math.floor(Math.random() * grid_size);\n\t\t// valuex = 'tile_' + j;\n\t\tvar index = generated_tile_ids.indexOf(j);\n\t\tif (index == -1) {\n\t\t\tgenerated_tile_ids.push(j);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "dad30fc458ce1984cdbc51dd55074031", "score": "0.6946564", "text": "function createPattern(){\n tile = Math.floor((Math.random() * 4)); \n pattern.push(tile);\n}", "title": "" }, { "docid": "f77cc79cdf2108b8a6db9d683a6ce78f", "score": "0.6852073", "text": "function generateMap () {\n _tileMap.map(function(lv, idx){\n if(lv.level === __STATE.level){\n var tempMap = lv.map;\n tempMap = lv.map;\n processMap(tempMap);\n return;\n }\n });\n}", "title": "" }, { "docid": "343c634110ed20c74ead074cac42a433", "score": "0.68374467", "text": "createMap(height, width) {\n let map = [];\n let isLand = true;\n let limit = 0.55;\n\n for (var i = 0; i < height; i++) {\n for (var j = 0; j < width; j++) {\n let rand = Math.random();\n if (rand < limit) {\n isLand = false;\n }\n map.push([j, i, isLand]);\n isLand = true;\n }\n }\n\n return map;\n }", "title": "" }, { "docid": "8e0481341a28e33199f89e9dc617f1f2", "score": "0.6837358", "text": "generateGroundTiles() {\n let worldWidth = this.getWorldWidth();\n let numberOfTiles = Math.ceil(worldWidth/44)\n\n for(let i = 0; i <= numberOfTiles; i++) {\n let t = document.createElement('div')\n t.setAttribute('id', `groundTile-${i}`);\n t.className = 'ground-tile';\n t.style.position = 'absolute';\n t.style.left = `${i * 44}px`;\n this.groundElement.appendChild(t);\n }\n\n }", "title": "" }, { "docid": "e114059b76a3450baf6e59e273c1db99", "score": "0.6822071", "text": "function generateShapes() {\n // centreX and centreY are point where 4 shapes meet\n var centreX = floor((gw / 2) + random(-40, 40));\n var centreY = floor((gh / 2) + random(-40, 40));\n\n var gcorners = [0, 0, 0, gw, 0, gh, gw, gh]; // array to store grid corner coordinates\n\n var topCentrePoint = [floor((gw / 5) + random(-20, 20)), 0];\n var bottomCentrePoint = [floor(gw / 13) + random(-20, 20), gh];\n var leftCentrePoint = [0, floor((gh / 30) + random(-20, 20))];\n var rightCentrePoint = [gw, floor((gh / 16) + random(-20, 20))];\n\n var topMidPoint = [floor((gw / 2) + random(-20, 20)), floor((gh / 4) + random(-20, 20))];\n var rightMidPoint = [floor(gw - (gw / 4) + random(-20, 20)), floor((gh / 2) + random(-20, 20))];\n var leftMidPoint = [floor((gw / 4) + random(-20, 20)), floor((gh / 2) + random(-20, 20))];\n var bottomMidPoint = [floor((gw / 2) + random(-20, 20)), floor(gh - (gh / 4) + random(-20, 20))];\n\n var tile1Coords = [0, 0].concat(topCentrePoint).concat(topMidPoint).concat([centreX, centreY]).concat(leftMidPoint).concat(leftCentrePoint);\n var tile2Coords = topCentrePoint.concat([gw, 0]).concat(rightCentrePoint).concat(rightMidPoint).concat([centreX, centreY]).concat(topMidPoint);\n var tile3Coords = leftCentrePoint.concat(leftMidPoint).concat([centreX, centreY]).concat(bottomMidPoint).concat(bottomCentrePoint).concat([0, gh]);\n var tile4Coords = bottomCentrePoint.concat(bottomMidPoint).concat([centreX, centreY]).concat(rightMidPoint).concat(rightCentrePoint).concat([gw, gh]);\n var tileCoords = [tile1Coords, tile2Coords, tile3Coords, tile4Coords];\n\n return tileCoords;\n}", "title": "" }, { "docid": "4b8257287efe3da9b4947addd897a583", "score": "0.675773", "text": "function generateMap() {\n \"use strict\";\n var rooms, room, xPosition, yPosition, cell, connectionsBuilt;\n connectionsBuilt = {};\n rooms = scenario.getFloor(player.z).getRoomList();\n erg.MAP_CONTAINER.empty().attr('data-floor', player.z);\n\n for (room in rooms) {\n if (rooms.hasOwnProperty(room)) {\n xPosition = rooms[room].x;\n yPosition = rooms[room].y;\n cell = erg.MAP_CELL_TEMPLATE.clone().appendTo(erg.MAP_CONTAINER)\n .attr({ 'data-x': xPosition, 'data-y': yPosition })\n .css('top', (yPosition * -(erg.MAP_CELL_WIDTH + erg.CONNECTOR_LENGTH)) + 'px')\n .css('left', (xPosition * (erg.MAP_CELL_HEIGHT + erg.CONNECTOR_LENGTH)) + 'px');\n generateConnections(rooms[room], cell, connectionsBuilt);\n }\n }\n erg.MAP_CONTAINER.\n children(erg.MAP_CELL_SELECTOR_TEMPLATE.format(player.x, player.y)).\n addClass('occupied');\n drawAnnotations();\n centerMap();\n showDirectionalIndicator();\n}", "title": "" }, { "docid": "f3b22d5cc7affd6afb2a9bcbeb66be8b", "score": "0.67286944", "text": "function generateRandomTrack(w,h) {\n\n // console.log(\"Generating random track...\");\n\n var data = [];\n var row, col, loop, spriteNum;\n\n // sprite numbers of things we want randomly sprinkled on the map\n var coolthings = [\n TRACK_JUMP_TILE,\n TRACK_SMOOTH,\n TRACK_ROAD_BROKEN,\n// TRACK_TIMER_POWERUP,\n// TURRET_BACKGROUND,\n TRACK_BUILDING_RED,\n TRACK_BUILDING_BLUE,\n TRACK_BUILDING_VIOLET,\n// SKYSCRAPER_VIOLET,\n TRACK_POWERUP,\n// TRACK_POWERUP_SMOKESCREEN\n ];\n\n var numCoolThings = Math.round(w*h/10); // 10% coverage\n\n // fill\n for (row=0; row<h; row++) {\n for (col=0; col<w; col++) {\n data[col+row*w] = TRACK_ROAD;\n }\n }\n\n // maze generation lol\n // mazeGeneration(data,w); // work in progress\n\n // horiz borders\n for (col=0; col<w; col++) {\n data[col+0*w] = TRACK_WALL;\n data[col+(h-1)*w] = TRACK_WALL;\n }\n \n // vert borders\n for (row=0; row<h; row++) {\n data[0+row*w] = TRACK_WALL;\n data[w-1+row*w] = TRACK_WALL;\n }\n\n // random things anywhere except the borders\n for (loop=0; loop<numCoolThings; loop++)\n {\n row = Math.floor(Math.random()*(h-2))+1;\n col = Math.floor(Math.random()*(w-2))+1;\n spriteNum = coolthings[Math.floor(Math.random()*coolthings.length)];\n data[col+row*w] = spriteNum;\n }\n\n // mandatory objects\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_GOAL;\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_CHECKPOINT_FLAG;\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_ENEMYSTART;\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_CHECKPOINT;\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_SHIP_OVERHEAD_START\n data[Math.floor(Math.random()*w)+Math.floor(Math.random()*h)*w] = TRACK_PLAYERSTART;\n\n // FIXME: create a \"look for an empty tile\" array random index function:\n // so that none of these random tiles can overlap (to avoid rare edge case bugs)\n\n //console.log('Finished generating random level of length: '+data.length);\n\n return data;\n}", "title": "" }, { "docid": "4f308743c59c67f6b2cb13f57db5db85", "score": "0.6719103", "text": "generateTiles() {\n let randomTiles = _.shuffle(['A', 'A', 'B', 'B', 'C', 'C', 'D', 'D',\n 'E', 'E', 'F', 'F', 'G', 'G', 'H', 'H'])\n\n return _.map(randomTiles, (value, index) => {\n return {value: value, index: index, matched: false, visible: false};\n });\n }", "title": "" }, { "docid": "7e72bc9c7ff9aaa8d112095869b4c005", "score": "0.67110103", "text": "function generateMap()\n {\n if(typeof(cellGrid) === \"undefined\")\n throw new Error(\"Didnt set grid before\");\n \n //Von einem eventuell vorgerigen Aufruf leeren\n allCountries = [];\n calledInitCountries = false;\n calledInitBorders = false;\n \n //Länder initialisieren\n initCountries();\n //Grenzen initializieren\n initBorders();\n //Erste Kombinationen\n combineCountryCells();\n //Zu kleine Länder beseitigen\n combineRemainingCountries();\n //Karte erzeugen\n var map = createMap();\n \n //Anzahl Wasserflächen auswürfeln\n var factor = maximumWaterNumber - minimumWaterNumber;\n randomWaterNumber = Math.round(Math.random()*factor + minimumWaterNumber);\n \n //Kontinente erzeugen\n allContinents = buildContinents();\n //Wasser \n map.water = generateWater();\n //Kontinente anfügen\n map.continents = allContinents;\n\n //UnitBonus berechnen\n calculateBonuses(map.continents);\n \n //Namensvergabe für Länder und Kontinente\n handOutNames(map.continents);\n \n map.allCountries = allCountries;\n map.cellGrid = cellGrid;\n \n //return\n return map;\n }", "title": "" }, { "docid": "12412a80409c7aa8208b045df25fbf5e", "score": "0.6696905", "text": "function scenery() {\n // n_trees = generateN(2, 5)\n n_trees = 3\n for (i = 0; i < n_trees; i++) {\n x = generateN(1, (map_width - 2))\n y = generateN(1, (map_length - 2))\n map[y][x] = generateTree()\n }\n}", "title": "" }, { "docid": "a3387c3bb965205ecb3682039f84921e", "score": "0.66965276", "text": "generateTile() {\n\t\tconst emptyCells = document.querySelectorAll(`.cell:empty`)\n\n\t\tif (emptyCells.length) {\n\t\t\tconst randomCell = helper.getRandomChoice(emptyCells)\n\t\t\tconst roll = helper.generateRandomNumber(10)\n\t\t\tconst newTile = helper.createDiv(\"tile\", { value: roll < 9 ? 2 : 4 })\n\n\t\t\trandomCell.appendChild(newTile)\n\t\t} else throw Error(\"board full\")\n\t}", "title": "" }, { "docid": "c354374cac1e59c715c68f2f1972b7e9", "score": "0.6683434", "text": "function tile() {\n let s = 200;\n if (tiling.maxGen === 0) {\n s /= 1 + Math.sqrt(3);\n }\n const r = s / Math.sqrt(3);\n const z = s * Math.cos(Math.PI / 12);\n switch (tiling.initial) {\n case 'square':\n square(0, -s / 2, -s / 2, s / 2, s / 2);\n break;\n case 'rhomb30':\n rhomb30(0, -z, 0, z, 0);\n break;\n case 'rhomb60':\n rhomb60(0, -rt32 * s, 0, rt32 * s, 0);\n break;\n case 'triangleR':\n triangleR(0, -rt32 * r, -r / 2, rt32 * r, -r / 2, 0, r);\n break;\n case 'triangleL':\n triangleL(0, -rt32 * r, -r / 2, 0, r, rt32 * r, -r / 2);\n break;\n case 'dodecagon':\n for (let i = 0; i < 12; i++) {\n rhomb30(0, 0, 0, secondX[i], secondY[i]);\n }\n break;\n }\n}", "title": "" }, { "docid": "724f7b0c6b148567aadd074c99e5fe41", "score": "0.6666709", "text": "function generateMap(rows, cols) {\n var map = new MineMap();\n\n map.rows = rows;\n map.cols = cols;\n\n // Generate table rows in HTML table.\n for(var r = 0; r < rows; ++r){\n var table = document.getElementById(\"minesweeper-map\");\n\n var tableRow = document.createElement(\"TR\");\n\n for(var c = 0; c < cols; ++c){\n var tableCell = document.createElement(\"TD\");\n\n tableCell.setAttribute(\"class\", \"minesweeper-map-cell\");\n tableCell.setAttribute(\"id\", r*cols+c); // Is this necessary?\n tableRow.appendChild(tableCell);\n }\n\n table.appendChild(tableRow);\n }\n\n var totalCells = rows * cols;\n\n // Generate map cells (default value of \"hidden blank\").\n for(var i = 0; i < totalCells; ++i){\n map.state.push(new Cell(i));\n }\n\n // Calculate the number of mines to be placed on the map.\n var mines = Math.ceil(totalCells*0.2);\n\n // Determine the locations of the maps.\n var mineLocations = new Set();\n\n while(mineLocations.size < mines){\n var cellIndex = Math.floor(Math.random() * totalCells);\n\n mineLocations.add(cellIndex); // Add mine location to the set.\n\n // Modify the cell's value to hold a mine.\n map.state[cellIndex].value = 9;\n }\n // Enumerate the cells surrounding the map.\n mineLocations.forEach(function(e){\n // Get neighboring cells. (write a function for this).\n var neighbors = getValidNeighbors(e, rows, cols);\n\n // Increment the value of each neighbor.\n neighbors.forEach(function(e){\n if(map.state[e].value != 9){\n map.state[e].value += 1;\n }\n });\n });\n\n return map;\n}", "title": "" }, { "docid": "54ca09767c5dcc980f962e155a3a25ba", "score": "0.66610247", "text": "function tile() {\n let s = size;\n if (tiling.maxGen === 0) {\n s /= 1 + Math.sqrt(3);\n }\n const r = s / Math.sqrt(3);\n const z = s * Math.cos(Math.PI / 12);\n switch (tiling.initial) {\n case 'square':\n square(0, -s / 2, -s / 2, s / 2, s / 2);\n break;\n case 'rhomb30':\n rhomb30(0, -z, 0, z, 0);\n break;\n case 'rhomb60':\n rhomb60(0, -rt32 * s, 0, rt32 * s, 0);\n break;\n case 'triangleR':\n triangleR(0, -rt32 * r, -r / 2, rt32 * r, -r / 2, 0, r);\n break;\n case 'triangleL':\n triangleL(0, -rt32 * r, -r / 2, 0, r, rt32 * r, -r / 2);\n break;\n case 'dodecagon':\n for (let i = 0; i < 12; i++) {\n rhomb30(0, 0, 0, secondX[i], secondY[i]);\n }\n break;\n }\n}", "title": "" }, { "docid": "3680ecd89370180e5a914de35aa4fe34", "score": "0.66498107", "text": "function randomizeTiles(){\n var tileOne = document.getElementById(\"tileOne\");\n var tileTwo = document.getElementById(\"tileTwo\");\n var tileThree = document.getElementById(\"tileThree\");\n\n\n firstPlace = mapMarkers[Math.floor(Math.random() * mapMarkers.length)];\n do {\n secondPlace = mapMarkers[Math.floor(Math.random() * mapMarkers.length)];\n }\n while(secondPlace === firstPlace);\n do {\n thirdPlace = mapMarkers[Math.floor(Math.random() * mapMarkers.length)];\n }\n while(thirdPlace === firstPlace || thirdPlace === secondPlace);\n\n $(tileOne).css(\"background-image\", \"url(\" + firstPlace.image + \")\");\n $(\"#tileOneName\").html(firstPlace.name);\n $(\"#tileOneCategory\").html(firstPlace.category);\n $(\"#tileOneRating\").html(\"Rating: \" + firstPlace.rating);\n\n $(tileTwo).css(\"background-image\", \"url(\" + secondPlace.image + \")\");\n $(\"#tileTwoName\").html(secondPlace.name);\n $(\"#tileTwoCategory\").html(secondPlace.category);\n $(\"#tileTwoRating\").html(\"Rating: \" + secondPlace.rating);\n\n $(tileThree).css(\"background-image\", \"url(\" + thirdPlace.image + \")\");\n $(\"#tileThreeName\").html(thirdPlace.name);\n $(\"#tileThreeCategory\").html(thirdPlace.category);\n $(\"#tileThreeRating\").html(\"Rating: \" + thirdPlace.rating);\n\n }", "title": "" }, { "docid": "ae1a39a7419b7cac7d77f14a50cf76e4", "score": "0.6625039", "text": "function mapCreate(map) {\r\n // 'architect' is where it starts creating tiles\r\n var architect = {\r\n //start in middle of map.\r\n x: Math.floor(widthCanvas/2),\r\n //math.floor rounds down in the event of an uneven number being halved into a decimal\r\n y: Math.floor(heightCanvas/2)\r\n }\r\n\t\t//create shadows of architect to record preious locations.(this is so if he gets stuck, he can backtrack)\r\n\t\tvar archShadow = [];\r\n\t\t// An array with all rooms and the number of tiles in each room\r\n var allRoomsQuantTiles = [];\r\n //for number of rooms defined in quantRoomsCanvas {create a room}\r\n for (var roomNum = 0; roomNum < quantRoomsCanvas; roomNum++) {\r\n //for each room, randomly generate number of tiles between min and max values set earlier\r\n var quantTiles = Math.floor((Math.random() * (maxTilesRoom + 1 - minTilesRoom)) + minTilesRoom);\r\n // list of tiles in current room\r\n var roomTiles = [];\r\n //for each tile expected in this room {crete a tile}\r\n for (var tileNum = 1; tileNum <= quantTiles; tileNum++) {\r\n //create a tile\r\n var tile = map[architect.x][architect.y];\r\n //add the new tile to list of tiles in this room\r\n roomTiles.push({\r\n //gets long coordinate\r\n x: architect.x,\r\n //get lateral coordinate\r\n y: architect.y\r\n });\r\n //which room it's in\r\n tile.roomNum = roomNum;\r\n //give individual tile IDs for each tile. Use this to keep track of how many tiles are in each room.\r\n tile.tileNum = tileNum;\r\n //shade will store architect coordinates before architect moves.\r\n\t\t\t\t\t\tarchShadow.push(architect);\r\n\t\t\t\t\t\t//move 'architect' for creating next tile.\r\n architect = moveArchitect(map, architect);\r\n //if 'architect' can't create a new tile, look at shadows in room.\r\n if (!architect && tileNum>1) {\r\n\t\t\t\t\t\t\t\t//since last shadow made was of a failed coordinate, remove it.\r\n\t\t\t\t\t\t\t\tarchShadow.slice(-1,1);\r\n\t\t\t\t\t\t\t\t//for each shadow in current room, check for empty boundaries to create another tile.\r\n\t\t\t\t\t\t\t\tfor (var shadowTile = 1; shadowTile <= tileNum; shadowTile ++){\r\n\t\t\t\t\t\t\t \t\t//log frequency and try from another tile.\r\n \t\tconsole.log(\"Architect can't build. Backtracking.\");\r\n\t\t\t\t\t\t\t\t\t\t//make architect backtrack.[length-shadowTile] will keep looking back to previous shadows starting from most recent.\r\n\t\t\t\t\t\t\t\t\t\tfindShadow = archShadow[archShadow.length-shadowTile];\r\n\t\t\t\t\t\t\t\t\t\t//move architect back one space to try building from a different tile.\r\n\t\t\t\t\t\t\t\t\t\tarchitect = moveArchitect(map, findShadow)\r\n\t\t\t\t\t\t\t\t\t\t//if architect is successful, break the loop\r\n\t\t\t\t\t\t\t\t\t\tif (architect){\r\n\t\t\t\t\t\t\t\t\t\t\t\t//break loop so loop doesn't overwrite successfully built tile.\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//if architect is stuck and can't create a tile from backtracking\r\n\t\t\t\t\t\tif (!architect) {\r\n\t\t\t\t\t\t\t\t//log frequency and Start map over.\r\n \t\tconsole.log(\"Architect is stuck. Starting over.\");\r\n \t\t//returnfalse so building can start over\r\n \t\treturn false;\r\n }\r\n }\r\n //loop through tiles in room to create walls on sides without unadjacent tiles\r\n for (var roomTile = 0; roomTile < roomTiles.length; roomTile++){\r\n //send 'map' so it can find the canvas and the current tile to run a check on it.\r\n createWalls(map, roomTiles[roomTile], roomNum, roomTiles);\r\n }\r\n //add the list of all tiles in this room to the list of rooms\r\n allRoomsQuantTiles[roomNum] = roomTiles;\r\n //if (not last room) Move 'architect' to a wall and add door for next room tp connect\r\n if (roomNum != quantRoomsCanvas-1) {\r\n //find blank tile to start next room\r\n architect = findBlank(map, roomTiles);\r\n }\r\n }\r\n //return created map\r\n return map;\r\n}", "title": "" }, { "docid": "d5496b6cc368220a4814b653aa7852c9", "score": "0.66224325", "text": "function random_tile(){\r\n return Math.floor((Math.random() * 27));\r\n}", "title": "" }, { "docid": "303bd39b292c7437ec97bd1477d1dda6", "score": "0.66195995", "text": "function initTiles() {\n\tvar i = tileCount * tileCount - 1;\n\twhile (i > 0) {\n\t\tvar j = Math.floor(Math.random() * i);\n\t\tvar xi = i % tileCount;\n\t\tvar yi = Math.floor(i / tileCount);\n\t\tvar xj = j % tileCount;\n\t\tvar yj = Math.floor(j / tileCount);\n\t\tswapTiles(xi, yi, xj, yj);\n\t\t--i;\n\t}\n}", "title": "" }, { "docid": "21c69f78b1833ccb2be86253f657df37", "score": "0.6615233", "text": "function GenerateMap() {\n\t// Set all block to empty\n\tfor (var i=0; i<MAP_SIZE * MAP_SIZE; i++) {\n\t\tmap[i] = BLOCK_EMPTY;\n\t}\n\n\t// Random 5 obstacles on just one side\n\tfor (var i=0; i<5; i++) {\n\t\t// Find a random block, but not around starting point\n\t\tvar OK = false;\n\t\twhile (!OK) {\n\t\t\tblock = (random() * 59) >> 0;\n\t\t\tif (block == 0 || block == 1 || block == 2\n\t\t\t|| block == 10 || block == 11 || block == 12\n\t\t\t|| block == 20 || block == 21 || block == 22\n\t\t\t|| map[block] == BLOCK_OBSTACLE) {\n\t\t\t\t// Avoid block too near to the starting point.\n\t\t\t\t// It might block one player entirely\n\t\t\t}\n\t\t\telse {\n\t\t\t\tOK = true;\n\t\t\t}\n\t\t}\n\n\t\t// Assign to that block\n\t\tmap[block] = BLOCK_OBSTACLE;\n\n\t\t// Assign opposite block\n\t\tmap[MAP_SIZE * MAP_SIZE - 1 - block] = BLOCK_OBSTACLE;\n\t}\n\n\t// Player 1 start position\n\tplayerPos[TURN_PLAYER_1] = new Position (0, 0);\n\tmap[0] = BLOCK_PLAYER_1;\n\n\t// Player 2 start position\n\tplayerPos[TURN_PLAYER_2] = new Position (MAP_SIZE - 1, MAP_SIZE - 1);\n\tmap[MAP_SIZE * MAP_SIZE - 1] = BLOCK_PLAYER_2;\n}", "title": "" }, { "docid": "b6de2db1610f507df44c1572794d73c3", "score": "0.6583323", "text": "function createTiles() {\n windowWidth = window.innerWidth;\n windowHeight = window.innerHeight;\n\n $.each($bg.children(), function(index, tile) {\n $(tile).remove();\n });\n\n i = 0;\n var\n tileSize = 200,\n smallerTile = tileSize - 54,\n numTiles = (windowWidth * windowHeight) / (smallerTile * smallerTile);\n\n while (++i < Math.ceil(numTiles)) {\n k = getRandomInt(0, photos.length - 1);\n ref = $('<div></div>');\n ref.css({ 'background-image': 'url(' + photos[k] + ')' });\n $bg.append(ref);\n }\n }", "title": "" }, { "docid": "b3eb3e0ea9b31eebe03eaeb67d12065e", "score": "0.656079", "text": "randomTile() {\n const x = Object(_util_random__WEBPACK_IMPORTED_MODULE_2__[\"int\"])(0, this.size.width - 1);\n const y = Object(_util_random__WEBPACK_IMPORTED_MODULE_2__[\"int\"])(0, this.size.height - 1);\n return this.findTile(new _triangulation_Vector__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({ x, y }));\n }", "title": "" }, { "docid": "e721ea911e26f9d8afe1b605dda1a4b0", "score": "0.65310675", "text": "function seed_base()\n\t\t{\n\t\t\tfor (var i in full_range)\n\t\t\t\tmap.set_tile_type(full_range[i], 'ocean');\n\t\t}", "title": "" }, { "docid": "dc2e8bdd6f9b21e492fc9e7beae261da", "score": "0.6511451", "text": "create_map(){\n this.map = this.make.tilemap({key:this.mapKey}); //make the map\n //add the tiles to the map from tiles.png but referenced by its key name\n let groundTiles = this.map.addTilesetImage('tiles');\n //create these tiles as a static layer because they don't need gravity\n this.groundLayer = this.map.createStaticLayer('tiles',groundTiles);\n //In tiled we sat some tiles with costume property \"terrain\" and gave it \"block\"\n //Any tile with that terrain then the player can collide with\n this.groundLayer.setCollisionByProperty({terrain:['block']});\n }", "title": "" }, { "docid": "6df8dc88ff9b23d327d32a7f45f18155", "score": "0.649684", "text": "function ready() {\r\n tileMaker(\"Sprite-1Tile.png\", Math.floor(Math.random() * 500), Math.floor(Math.random() * 500));\r\n tileMaker(\"Sprite-2Tile.png\", Math.floor(Math.random() * 500), Math.floor(Math.random() * 500));\r\n tileMaker(\"Sprite-3Tile.png\", Math.floor(Math.random() * 500), Math.floor(Math.random() * 500));\r\n}", "title": "" }, { "docid": "d57ba7b10e6f3afcc2de2444ece64cfb", "score": "0.6492648", "text": "generate() {\n for (let y = 0; y < this.height; y++) {\n for (let x = 0; x < this.width; x++) {\n this.tiles.push(new Tile(\"grass\", x, y, this.tilesize));\n }\n }\n // make some tree clusters\n for (let i = 0; i <= 5; i++) {\n let x = Math.random() * (this.width * this.tilesize - 0);\n let y = Math.random() * (this.height * this.tilesize - 0);\n this.createCluster(Tree, {y: y, x: x});\n }\n // make some Grass clusters\n for (let i = 0; i < 5; i++) {\n let x = Math.random() * (this.width * this.tilesize - 0);\n let y = Math.random() * (this.height * this.tilesize - 0);\n this.createCluster(Grass , {y: y, x: x});\n }\n\n }", "title": "" }, { "docid": "6b88706091552be838b50a37fad457b8", "score": "0.6473814", "text": "function buildMap(map) {\n \n var row, col, tileClone, tileIndex, defineTile;\n \n if (!board) {\n board = new createjs.Container();\n board.x = 0;\n board.y = 0;\n stage.addChild(board);\n }\n \n mapWidth = map[0].length;\n mapHeight = map.length;\n \n defineTile = {\n walkable: function (row, col) {\n if (map[row][col] === 0) {\n return false;\n } else {\n return true;\n }\n },\n water: function (row, col) {\n if (map[row][col] === 2) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n tileIndex = 0;\n mapTiles = [];\n board.removeAllChildren();\n for (row = 0; row < mapHeight; row++) {\n for (col = 0; col < mapWidth; col++) {\n tileClone = tiles.clone();\n tileClone.name = \"t_\" + row + \"_\" + col;\n tileClone.gotoAndStop(map[row][col]);\n tileClone.x = col * tileSheet._frameWidth;\n tileClone.y = row * tileSheet._frameHeight;\n mapTiles[\"t_\" + row + \"_\" + col] = {\n index: tileIndex,\n walkable: defineTile.walkable(row, col),\n water: defineTile.water(row, col),\n\t\t\t\t\t// center point of each grid\n\t\t\t\t\tx: tileClone.x + (tileSheet._frameWidth / 2),\n\t\t\t\t\ty: tileClone.y + (tileSheet._frameHeight / 2)\n };\n tileIndex++;\n board.addChild(tileClone);\n }\n } \n }", "title": "" }, { "docid": "131daa71db6aec944e4ddcf60314b995", "score": "0.6470487", "text": "generateMap() {\n let failed = true;\n // Make sure there's enough tiles for all the ports to spawn on\n while (failed) {\n failed = false;\n // Remove any current ports\n for (const p of this.ports) {\n p.tile.port = undefined;\n }\n this.ports.length = 0;\n // Fill the map\n for (const tile of this.tiles) {\n tile.type = \"water\";\n }\n // Pick a meta-ball generator\n if (!utils_1.arrayHasElements(ballGens)) {\n throw new Error(\"Error loading ballGens for Piracy, appears to be empty.\");\n }\n const ballGen = this.manager.random.element(ballGens);\n const ballInfo = ballGen(this.mapWidth, this.mapHeight, () => this.manager.random.float());\n // Generate the islands from the meta-balls\n for (let x = 0; x < this.mapWidth / 2; x++) {\n for (let y = 0; y < this.mapHeight; y++) {\n const tile = this.getTile(x, y);\n let energy = 0;\n for (const ball of ballInfo.balls) {\n const r = ball.r;\n const dist = Math.sqrt(Math.pow(ball.x - x, 2) + Math.pow(ball.y - y, 2));\n const d = Math.max(0.0001, Math.pow(dist, ballInfo.gooeyness)); // Can't be 0\n energy += r / d;\n }\n if (energy >= ballInfo.threshold) {\n tile.type = \"land\";\n if (energy >= ballInfo.grassThreshold) {\n tile.decoration = true;\n }\n }\n else {\n tile.type = \"water\";\n if (energy <= ballInfo.seaThreshold) {\n tile.decoration = true;\n }\n }\n }\n }\n // Make sure there's only one main body of water, no extra smaller ones\n this.fillLakes();\n // Find all possible port locations\n const portTiles = this.tiles.filter((t) => {\n // Check type\n if (t.type !== \"water\") {\n return false;\n }\n // Make sure it's not too close to the center\n if (t.x > this.mapWidth / 4) {\n return false;\n }\n // Check neighbors - make sure there's land and enough water\n let land = false;\n let water = 0;\n if (t.tileNorth && t.tileNorth.type === \"land\") {\n land = true;\n }\n else if (t.tileNorth) {\n water += 1;\n if (t.tileNorth.tileEast && t.tileNorth.tileEast.type === \"water\") {\n water += 1;\n }\n if (t.tileNorth.tileWest && t.tileNorth.tileWest.type === \"water\") {\n water += 1;\n }\n }\n if (t.tileEast && t.tileEast.type === \"land\") {\n land = true;\n }\n else if (t.tileEast) {\n water += 1;\n }\n if (t.tileSouth && t.tileSouth.type === \"land\") {\n land = true;\n }\n else if (t.tileSouth) {\n water += 1;\n if (t.tileSouth.tileEast && t.tileSouth.tileEast.type === \"water\") {\n water += 1;\n }\n if (t.tileSouth.tileWest && t.tileSouth.tileWest.type === \"water\") {\n water += 1;\n }\n }\n if (t.tileWest && t.tileWest.type === \"land\") {\n land = true;\n }\n else if (t.tileWest) {\n water += 1;\n }\n return land && water > 5;\n });\n if (portTiles.length === 0) {\n failed = true;\n continue;\n }\n if (!utils_1.arrayHasElements(portTiles)) {\n throw new Error(\"no port tiles to select from!\");\n }\n // Place the starting port\n const selected = this.manager.random.pop(portTiles);\n const port = this.manager.create.port({\n owner: this.players[0],\n tile: selected,\n gold: this.shipCost,\n });\n port.tile.port = port;\n port.owner.port = port;\n this.ports.push(port);\n // Find merchant port locations\n const merchantTiles = portTiles.filter((t) => Math.pow(t.x - port.tile.x, 2) + Math.pow(t.y - port.tile.y, 2) > 9);\n if (!utils_1.arrayHasElements(merchantTiles)) {\n failed = true;\n continue;\n }\n // Place merchant port\n const merchantTile = this.manager.random.pop(merchantTiles);\n const merchantPort = this.manager.create.port({\n tile: merchantTile,\n });\n // Add the port to the game\n merchantTile.port = merchantPort;\n this.ports.push(merchantPort);\n }\n // Mirror the map\n for (let x = 0; x < this.mapWidth / 2; x++) {\n for (let y = 0; y < this.mapHeight; y++) {\n const orig = this.getTile(x, y);\n const target = this.getTile(this.mapWidth - x - 1, this.mapHeight - y - 1);\n if (!orig || !target) {\n throw new Error(\"Could not mirror the map!\");\n }\n // Copy tile data\n target.type = orig.type;\n target.decoration = orig.decoration;\n // Clone ports\n if (orig.port) {\n const port = this.manager.create.port({\n tile: target,\n owner: orig.port.owner && orig.port.owner.opponent,\n gold: orig.port.gold,\n });\n target.port = port;\n this.ports.push(port);\n if (port.owner) {\n port.owner.port = port;\n }\n else {\n // Stagger merchant ship spawning\n port.gold += this.merchantGoldRate;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "b237bc0445c821001c6612388a5bd840", "score": "0.64448553", "text": "function loadMap() {\t\n\t// start with 30s, after each set of 12 levels, reduce timer by 3s\n\tMAX_SEC = 30 - (Math.floor(level/12) * 3);\n\tif (MAX_SEC < 15) { // set floor to 15s\n\t\tMAX_SEC = 15;\n\t}\n\tif(IS_MOBILE) {\t\t\n\t\tTILE_SPAN = TILE_S + 15;\n\t\tTILE_X = (SCREEN_W - (ARRAY_S-1) * TILE_SPAN - TILE_S) / 2;\n\t\tTILE_Y = 360;\t\t\n\t}\n\tvar tile = new Array(ARRAY_S);\n\tfor (var k = 0; k < ARRAY_S; k++) {\n\t\ttile[k] = ['','','','','',''];\n\t}\n\t// Generate random maps\n\tgenArray();\t\n\t\n\tvar tileoff = new createjs.Bitmap(mmLoad.getResult(\"tileoff\"));\n\tvar tileoff1 = new createjs.Bitmap(mmLoad.getResult(\"tileoff1\"));\n\tvar tileoff2 = new createjs.Bitmap(mmLoad.getResult(\"tileoff2\"));\n\tvar tileon = new createjs.Bitmap(mmLoad.getResult(\"tileon\"));\n\tvar tileon1 = new createjs.Bitmap(mmLoad.getResult(\"tileon1\"));\n\tvar tileon2 = new createjs.Bitmap(mmLoad.getResult(\"tileon2\"));\n\t\t\n\tif(task == TASK_H || task == TASK_H_I || task == TASK_H_F) {\t\t\t\n\t\tfor(i = 0; i < ARRAY_S; i++) {\n\t\t\tfor(j = 0; j < ARRAY_S; j++) {\n\t\t\t\tif(i < ARRAY_S/2) {\n\t\t\t\t\tif(mapData[i][j] == 1) tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecon\"));\n\t\t\t\t\telse tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecoff\"));\t\t\t\t\n\t\t\t\t} else {\t\t\t\t \n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\t\t\t\t\t\t\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t}\n\t\t\t\ttile[i][j].x = TILE_X + j * TILE_SPAN;\n\t\t\t\ttile[i][j].y = TILE_Y + i * TILE_SPAN;\n\t\t\t\tgameCtr.addChild(tile[i][j]);\n\t\t\t\t/*\n\t\t\t\twarnr0.x = 65;\n\t\t\t\twarnr0.y = 280;\n\t\t\t\twarnr0.scaleX = 1.15; //1.46;\n\t\t\t\twarnr0.scaleY = 1.50; //1.85;\t\t\t\t\n\t\t\t\tif (task == TASK_H_F) {\n\t\t\t\t\tgameCtr.addChild(warnr0);\n\t\t\t\t}*/\n\t\t\t}\n\t\t}\t\t\n\t} else if(task == TASK_V || task == TASK_V_I || task == TASK_V_F) {\n\t\tfor(i = 0; i < ARRAY_S; i++) {\n\t\t\tfor(j = 0; j < ARRAY_S; j++) {\n\t\t\t\tif(j < ARRAY_S/2) {\n\t\t\t\t\tif(mapData[i][j] == 1) tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecon\"));\n\t\t\t\t\telse tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecoff\"));\t\t\t\t\n\t\t\t\t} else {\t\t\t\t \n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\t\t\t\t\t\t\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t}\n\t\t\t\ttile[i][j].x = TILE_X + j * TILE_SPAN;\n\t\t\t\ttile[i][j].y = TILE_Y + i * TILE_SPAN;\n\t\t\t\tgameCtr.addChild(tile[i][j]);\n\t\t\t\t/*\n\t\t\t\twarnr0.x = 60;\n\t\t\t\twarnr0.y = SCREEN_H - 171;\n\t\t\t\twarnr0.scaleX = 1.15;\n\t\t\t\twarnr0.scaleY = 1.5;\n\t\t\t\twarnr0.rotation = -90;\t\t\t\t\n\t\t\t\tif (task == TASK_V_F) {\n\t\t\t\t\tgameCtr.addChild(warnr0);\n\t\t\t\t}*/\n\t\t\t}\n\t\t}\t\t\n\t} else if(task == TASK_D || task == TASK_D_I || task == TASK_D_F) {\n\t\tfor(i = 0; i < ARRAY_S; i++) {\n\t\t\tfor(j = 0; j < ARRAY_S; j++) {\n\t\t\t\tif(i+j < ARRAY_S-1) {\n\t\t\t\t\tif(mapData[i][j] == 1) tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecon\"));\n\t\t\t\t\telse tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecoff\"));\n\t\t\t\t} else if(i+j == ARRAY_S-1) {\n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilesplit\"));\n\t\t\t\t} else {\t\t\t\t \n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t}\n\t\t\t\ttile[i][j].x = TILE_X + j * TILE_SPAN;\n\t\t\t\ttile[i][j].y = TILE_Y + i * TILE_SPAN;\n\t\t\t\tgameCtr.addChild(tile[i][j]);\n\t\t\t\t/*\n\t\t\t\twarnd0.scaleX = warnd0.scaleY = 1.31;\n\t\t\t\twarnd0.y = 285;\n\t\t\t\twarnd0.x = 65;\t\t\t\n\t\t\t\tif (task == TASK_D_F) {\n\t\t\t\t\tgameCtr.addChild(warnd0);\n\t\t\t\t}*/\n\t\t\t}\n\t\t}\t\t\n\t} else if(task == TASK_4Q || task == TASK_4Q_I || task == TASK_4Q_F) {\n\t\tfor(i = 0; i < ARRAY_S; i++) {\n\t\t\tfor(j = 0; j < ARRAY_S; j++) {\n\t\t\t\tif(i < ARRAY_S/2 && j < ARRAY_S/2) {\n\t\t\t\t\tif(mapData[i][j] == 1) tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecon\"));\n\t\t\t\t\telse tile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tilecoff\"));\n\t\t\t\t} else if(i < ARRAY_S/2 && j > ARRAY_S/2-1) {\n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff1\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon1.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff1.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t} else if(j < ARRAY_S/2 && i > ARRAY_S/2-1) {\n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff2\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon2.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff2.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t} else {\t\t\t\t \n\t\t\t\t\ttile[i][j] = new createjs.Bitmap(mmLoad.getResult(\"tileoff\"));\n\t\t\t\t\ttile[i][j].on(\"mousedown\", function (e) {\n\t\t\t\t\t\ttoggleSound.play();\n\t\t\t\t\t\tif(IS_PRESSED) clearBG();\n\t\t\t\t\t\tIS_TOUCH && e.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);\t\t\t\t\t\t\n\t\t\t\t\t\tm = getRow(e.stageY);\n\t\t\t\t\t\tn = getCol(e.stageX);\n\t\t\t\t\t\tif(mapData[m][n] == 0) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.image = tileon.image;\n\t\t\t\t\t\t\tmapData[m][n] = 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.image = tileoff.image;\n\t\t\t\t\t\t\tmapData[m][n] = 0;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t\ttile[i][j].on(\"pressup\", function (e) {\n\t\t\t\t\t\tthis.scaleY = this.scaleX = 1;\t\t\t\t\t\t\t\t\n\t\t\t\t\t}, tile[i][j]);\n\t\t\t\t}\n\t\t\t\ttile[i][j].x = TILE_X + j * TILE_SPAN;\n\t\t\t\ttile[i][j].y = TILE_Y + i * TILE_SPAN;\n\t\t\t\tgameCtr.addChild(tile[i][j]);\n\t\t\t\t/*\n\t\t\t\twarnq0.scaleX = warnq0.scaleY = 1.16;\n\t\t\t\twarnq0.x = 65;\n\t\t\t\twarnq0.y = 285;\t\t\t\t\n\t\t\t\tif (task == TASK_4Q_F) {\n\t\t\t\t\tgameCtr.addChild(warnq0);\n\t\t\t\t}*/\n\t\t\t}\n\t\t}\t\t\n\t}\n}", "title": "" }, { "docid": "3445026c1d3da93cccb2dbb43b23eb5d", "score": "0.6428867", "text": "function genTown(args) {\n\t\n\tlet world = args.world;\n\tworld.fixedObjs.push({\n\t\ttype:TownObj,\n\t\tpos:args.worldPos,\n\t\tdestMap:args.name\n\t});\n\t\n\tlet map = new Map({\n\t\tname:args.name,\n\t\tsize:new vec2(args.size),\n\t\ttemp:args.temp,\n\t\texitMap:world.name,\n\t\tresetObjs:true\n\t});\n\tmap.playerStart = new vec2(Math.floor(map.size.x/2), map.size.y-2);\n\tlet border = 3;\n\tlet entrance = 6;\n\tfor (let y = 0; y < map.size.y; y++) {\n\t\tfor (let x = 0; x < map.size.x; x++) {\n\t\t\tif (x < border || y < border || y >= map.size.y-border) {\n\t\t\t\tif (Math.abs(x-map.size.x/2) >= entrance) {\n\t\t\t\t\tmap.setTileType(x,y,tileTypes.Stone);\n\t\t\t\t}\n\t\t\t} else if (x >= map.size.x-border) {\n\t\t\t\tmap.setTileType(x,y,tileTypes.Water);\n\t\t\t}\n\t\t}\n\t}\n\n\tmap.fixedObjs.push({\n\t\ttype:GuardObj,\n\t\tpos:new vec2(Math.floor(map.size.x/2-entrance)+2, map.size.y-2)\n\t});\n\t\n\tmap.fixedObjs.push({\n\t\ttype:GuardObj,\n\t\tpos:new vec2(Math.floor(map.size.x/2+entrance)-2, map.size.y-2)\n\t});\n\t\n\tlet brickradius = 3;\n\tlet buildBricksAround = function(pos) {\n\t\tlet minx = pos.x - brickradius;\n\t\tlet miny = pos.y - brickradius;\n\t\tlet maxx = pos.x + brickradius;\n\t\tlet maxy = pos.y + 1;\n\t\tif (minx < 0) minx = 0;\n\t\tif (miny < 0) miny = 0;\n\t\tif (maxx >= map.size.x) maxx = map.size.x-1;\n\t\tif (maxy >= map.size.y) maxy = map.size.y-1;\n\t\tfor (let y = miny; y <= maxy; y++) { \n\t\t\tfor (let x = minx; x <= maxx; x++) {\n\t\t\t\tif (isa(map.getTile(x,y), tileTypes.Grass)) {\n\t\t\t\t\tif (distLInf(pos,{x:x,y:y}) == Math.ceil(brickradius/2) && y <= pos.y) {\n\t\t\t\t\t\tmap.setTileType(x,y,tileTypes.Wall);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.setTileType(x,y,tileTypes.Bricks);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tlet dockGuy = {\n\t\ttype:MerchantObj,\n\t\tpos:new vec2(map.size.x-border-brickradius-1, randomRange(border+1, map.size.y-border-2)),\n\t\tonInteract:function(player) {\n\t\t\tif (!storyInfo.foundPrincess) {\n\t\t\t\tclientMessage(\"I'm the guy at the docks\");\n\t\t\t} else {\n\t\t\t\tclientMessage(\"We're sailing for the capitol! All set?\");\n\t\t\t\tlet prompt = clientPrompt(['No', 'Yes'], function(cmd, index) {\n\t\t\t\t\tprompt.close();\n\t\t\t\t\tif (cmd == 'Yes') {\n\t\t\t\t\t\t//TODO make the player a boat ...\n\t\t\t\t\t\tsetMapRequest = {map:'World'};\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t};\n\tbuildBricksAround(dockGuy.pos);\n\tmap.fixedObjs.push(dockGuy);\n\n\tlet pathwidth = 1;\n\tlet npcBrickRadius = 3;\n\tlet findNPCPos = function() {\n\t\treturn pickFreeRandomFixedPos({\n\t\t\tmap:map,\n\t\t\tclassify:function(tile) { \n\t\t\t\treturn isa(tile, tileTypes.Grass);\n\t\t\t},\n\t\t\tbbox:new box2(\n\t\t\t\tnew vec2(border+npcBrickRadius+1, border+npcBrickRadius+1), \n\t\t\t\tnew vec2(map.size.x-border-npcBrickRadius-2,map.size.y-border-npcBrickRadius-3))\n\t\t});\n\t}\n\n\tlet suckGuy = {\n\t\ttype:MerchantObj,\n\t\tmsg:'YOU SUCK',\n\t\tpos:findNPCPos()\n\t};\n\tbuildBricksAround(suckGuy.pos);\n\tmap.fixedObjs.push(suckGuy);\n\t\n\tlet storyGuy = {\n\t\ttype:MerchantObj, \n\t\tpos:findNPCPos(),\n\t\tonInteract:function(player) {\n\t\t\tif (!storyInfo.foundPrincess) {\n\t\t\t\tclientMessage(\"They stole the princess! Follow the brick path and you'll find them!\");\n\t\t\t} else {\n\t\t\t\tclientMessage(\"Thank you for saving her! Now you must take her to the capital. Talk to the guy at the dock to take the next boat out of town.\");\n\t\t\t}\n\t\t}\n\t}\n\tbuildBricksAround(storyGuy.pos);\n\tmap.fixedObjs.push(storyGuy);\n\t\n\tlet signOffset = new vec2(-2,0);\n\n\tif (args.healer) {\n\t\tlet healerGuy = {\n\t\t\ttype:MerchantObj,\n\t\t\tpos:findNPCPos(),\n\t\t\tonInteract:function(player) {\n\t\t\t\tlet cost = 1;\n\t\t\t\tif (player.hp == player.stat('hpMax') && player.mp == player.stat('mpMax')) {\n\t\t\t\t\tclientMessage(\"Come back when you need a healin'!\");\n\t\t\t\t} else if (player.gold >= cost) {\n\t\t\t\t\tplayer.gold -= cost;\n\t\t\t\t\tplayer.adjustPoints('mp', Math.ceil(player.stat('mpMax')/5));\n\t\t\t\t\tplayer.adjustPoints('hp', Math.ceil(player.stat('hpMax')/5));\n\t\t\t\t\tclientMessage(\"Heal yo self!\");\n\t\t\t\t} else {\n\t\t\t\t\tclientMessage(\"No free lunches!!! One coin please!\");\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tbuildBricksAround(healerGuy.pos);\n\t\tmap.fixedObjs.push(healerGuy);\n\t\tmap.fixedObjs.push({\n\t\t\ttype:HealSign,\n\t\t\tpos:healerGuy.pos.add(signOffset)\n\t\t});\n\t}\n\n\tif ('stores' in args) {\n\t\tfor (let i = 0; i < args.stores.length; i++) {\n\t\t\tlet storeInfo = args.stores[i];\n\t\t\tlet storeGuy = {\n\t\t\t\ttype:MerchantObj,\n\t\t\t\tpos:findNPCPos(),\n\t\t\t\tstore:true,\n\t\t\t\titemClasses:storeInfo.itemClasses,\n\t\t\t};\n\t\t\tif ('msg' in storeInfo) storeGuy.msg = storeInfo.msg;\n\t\t\tbuildBricksAround(storeGuy.pos);\n\t\t\tmap.fixedObjs.push(storeGuy);\n\t\t\tmap.fixedObjs.push({\n\t\t\t\ttype:storeInfo.signType,\n\t\t\t\tpos:storeGuy.pos.add(signOffset)\n\t\t\t});\n\t\t}\n\t}\n\n\tfor (let y = 0; y < map.size.y; y++) {\n\t\tfor (let x = Math.floor(map.size.x/2)-pathwidth; x <= Math.floor(map.size.x/2)+pathwidth; x++) {\n\t\t\tif (isa(map.getTile(x,y), tileTypes.Grass)) {\n\t\t\t\tmap.setTileType(x,y,tileTypes.Bricks);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (let i = 0; i < map.fixedObjs.length; i++) {\n\t\tlet fixedObj = map.fixedObjs[i];\n\t\tif (fixedObj.type == MerchantObj) {\n\t\t\tfor (let x = Math.min(fixedObj.pos.x, Math.floor(map.size.x/2)); x <= Math.max(fixedObj.pos.x, Math.floor(map.size.x/2)); x++) {\n\t\t\t\tfor (let y = fixedObj.pos.y-pathwidth; y <= fixedObj.pos.y+pathwidth; y++) {\n\t\t\t\t\tif (x >= 0 && y >= 0 && x < map.size.x && y < map.size.y) {\n\t\t\t\t\t\tif (isa(map.getTile(x,y), tileTypes.Grass)) {\n\t\t\t\t\t\t\tmap.setTileType(x,y,tileTypes.Bricks);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tmaps.push(map);\n\n\treturn map;\n}", "title": "" }, { "docid": "20fcc8ecfd509de313f8720a6876b3ec", "score": "0.6419171", "text": "function getTileMap() {\n\tvar tiles = [];\n\tshuffle(tileList);\t\n\tfor(i = 0; i < tileList.length; i++) {\n\t\ttiles.push(new Tile(tileList[i].src, tileList[i].name, tileList[i].score));\n\t}\n\treturn tiles;\n}", "title": "" }, { "docid": "09229b91859579debb6d769a55589aaf", "score": "0.64118654", "text": "function generateQuestionToTileMapping()\n\t{\n\t\tvar tilesPerAxis = Math.sqrt(_randomGameObject.getNrOfTilesX() * _randomGameObject.getNrOfTilesY());\n\t\tvar index = 0;\n\t\tfor (var i = 0; i < tilesPerAxis; i++)\n\t\t{\n\t\t\tfor (var j = 0; j < tilesPerAxis; j++)\n\t\t\t{\n\t\t\t\tvar tile = _randomGameObject.getQuestion(index).getQuestionId();\n\t\t\t\t_questionTileMap[tile] = index;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "478802cba7b602ae0e2679bec4596d1d", "score": "0.6399279", "text": "function getRandomTile() {\n return Math.floor(Math.random() * tilecolors.length);\n }", "title": "" }, { "docid": "2dc3270dd5b539216f97e30f509b5af6", "score": "0.63942075", "text": "function generateTiles() {\n\t\tconst container = $('#puzzlearea');\n\t\tcontainer.empty();\n\t\tfor (let i = 1; i < n ** 2; i++) {\n\t\t\t$('<div>').text(i).appendTo(container);\n\t\t}\n\t}", "title": "" }, { "docid": "5dd8a2d0de82f0ff1e8ac91f43f03afa", "score": "0.63824147", "text": "function createMap() {\n\n //Reset the map on restart.\n mapForest = [];\n\n //Create an area with a different number in each bracket.\n for (y = 0; y < 7; y++) {\n\n var xPos = [];\n\n for (var x = 0; x < 7; x++) {\n\n var location = parseInt(Math.floor(Math.random() * 100 + 1));\n\n xPos.push(location)\n\n }\n\n mapForest.push(xPos);\n \n }\n \n\n}", "title": "" }, { "docid": "dd36967357188bd78b8c124ecc115469", "score": "0.636398", "text": "function makeSampledBorder() {\n let XYiter = genBorderXYs();\n for (xy of XYiter) {\n let xSource = 1 + (Math.floor(Math.random() * activeSize));\n let ySource = 1 + (Math.floor(Math.random() * activeSize));\n lattice[xy.x][xy.y] = lattice[xSource][ySource];\n }\n}", "title": "" }, { "docid": "949d815531cd3e480cbe7634869eda11", "score": "0.63615793", "text": "function generateTiles(callback) {\n let temp = \"\";\n let markup;\n let startRow = document.getElementById(\"tile-row\");\n let answerRow = document.getElementById(\"answer-row\");\n let letterVal = 0;\n //Remove anything there\n while (startRow.firstChild) {\n startRow.removeChild(startRow.firstChild);\n }\n while (answerRow.firstChild) {\n answerRow.removeChild(answerRow.firstChild);\n }\n\n for (let i = 0; i < 7; i++) {\n temp += tileFrequencies.charAt(\n Math.floor(Math.random() * tileFrequencies.length)\n );\n }\n playTiles = [...temp];\n playTiles.forEach((tile, index) => {\n letterVal = getLetterValue(tile);\n markup = `<li class=\"tile tile-${index}\" >\n ${tile} \n <span class=\"tile-value\"> ${letterVal}</span>\n </li>\n <li class=\"tile tile-${index} tile-clone\" >${tile} <span class=\"tile-value\"> ${letterVal}</span></li>\n `;\n startRow.innerHTML += markup;\n });\n callback();\n}", "title": "" }, { "docid": "87c9f9b69f8eb938b4851c91410a2872", "score": "0.63053954", "text": "function populateTiles() {\n // Gathers list of tiles\n let tileList = $('.tile');\n let iconArray = createIconArray();\n\n // Sets toPopulate = number of tiles\n let toPopulate = tileList.length;\n\n // Loops over each tile, assigns icon, puts icon in back of array\n tileList.each(function () {\n let randomNum = randomInt(0, toPopulate);\n let drawnIcon = iconArray.splice(randomNum, 1);\n\n $( this ).html(`<div class=\"${drawnIcon} logo hidden\"></div>`);\n\n // Places icon in back of array, draws from 0 - toPopulate-1\n iconArray.push(drawnIcon);\n toPopulate--;\n });\n}", "title": "" }, { "docid": "8b8f74828c4daa871292aefe48802bc2", "score": "0.6280453", "text": "function initializeMap(){\n\tvar shift = 0;\n\tvar numHexagonsWidth = Math.ceil(MAP_WIDTH/TILE_SIZE);\n\tvar numHexagonsHeight = Math.ceil(MAP_HEIGHT/TILE_HEIGHT);\n\n\tfor(var i = 0; i < numHexagonsWidth; i++)\n\t{\n\t\tshift = 0\n\t\tfor(var j = 0; j < numHexagonsHeight; j++)\n\t\t{\n\t\t\tset(map, i - shift, j, null);\n\t\t\tif (!(j%2)) shift++; //Hexagons in a square instead of parallelogram\n\t\t}\n\t\t\n\t}\n}", "title": "" }, { "docid": "1e5608311b06d5c94bc002e16558e725", "score": "0.62720764", "text": "function roomGenerator(mapMatrix, roomMinWidth, roomMinHeight, roomMaxWidth, roomMaxHeight, attemptsNum) {\t\r\n\tif(attemptsNum < 1 || attemptsNum > 1000) {\r\n\t\tattemptsNum = 100;\r\n\t}\t\r\n\tlet maxRow = mapMatrix.length;\r\n\tlet maxColumn = mapMatrix[0].length;\r\n\tfor(let i = 0; i != attemptsNum; i++) {\t\t\r\n\t\tlet roomRow = generateRandomOddNumber(0, maxRow);\r\n\t\tlet roomColumn = generateRandomOddNumber(0, maxColumn);\r\n\t\tlet roomWidth = generateRandomOddNumber(roomMinWidth, roomMaxWidth);\r\n\t\tlet roomHeight = generateRandomOddNumber(roomMinHeight, roomMaxHeight);\r\n\t\tlet isReserved = false;\r\n\t\tif((roomRow + roomHeight < maxRow) && (roomColumn + roomWidth < maxColumn)) {\r\n\t\t\tfor(let i = roomRow; i != roomRow + roomHeight; i++) {\t\t\t\r\n\t\t\t\tfor(let j = roomColumn; j != roomColumn + roomWidth; j++) {\r\n\t\t\t\t\tif(mapMatrix[i][j] != MAP_EMPTY_GRID) {\r\n\t\t\t\t\t\tisReserved = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!isReserved)\t{\t//szoba lehelyezése a map-re, és a későbbi door kiválasztáshoz egy kollekcióba helyezi a legenerált room-okat\r\n\t\t\t\tlet room = Object.create(Room);\r\n\t\t\t\troom.roomRow = roomRow;\r\n\t\t\t\troom.roomColumn = roomColumn;\r\n\t\t\t\troom.roomWidth = roomWidth;\r\n\t\t\t\troom.roomHeight = roomHeight;\r\n\t\t\t\tmapRooms.push(room);\r\n\t\t\t\tfor(let i = roomRow; i != roomRow + roomHeight; i++) {\t\t\t\r\n\t\t\t\t\tfor(let j = roomColumn; j != roomColumn + roomWidth; j++) {\t\t\t\t\t\t\r\n\t\t\t\t\t\tmapMatrix[i][j] = MAP_ROOM_GRID;\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//console.log('room roomRow: ' + roomRow + ' roomColumn: ' + roomColumn + ' roomWidth:' + roomWidth + ' roomHeight: ' + roomHeight);\r\n\t\t}\t\t\r\n\t}\r\n}", "title": "" }, { "docid": "e4b193e5766e0f34420d2f40acbe1717", "score": "0.62714386", "text": "function generateMineMap(h, w) {\n // first generate mineIdxArray\n // generate a number between [0:numCells-1]\n mineIdxArray = [];\n let numCells = h * w;\n let i = 0;\n do {\n let mineIdx = Math.floor(Math.random() * numCells);\n if (!mineIdxArray.includes(mineIdx)) {\n mineIdxArray.push(mineIdx);\n i++;\n }\n } while (i < numMines);\n //console.log(mineIdxArray);\n\n // init global value\n mineMap = minusOnes([h, w]);\n generateMineCntMap();\n flagCnt = 0;\n procCnt = 0;\n gameResult = 0;\n $('#gameResult').text('');\n}", "title": "" }, { "docid": "5adbbaf8b46ccd8b2651438ab66dbd57", "score": "0.6258276", "text": "generateLevel() {\n let generatingMap = true;\n /* Generate the walls and floors */\n do {\n console.log(\"Generating walls and floors...\");\n this.tiles.forEach(single_tile => {\n if (single_tile.gridX == 0 || single_tile.gridY == 0 || single_tile.gridX == this.config.width-1 || single_tile.gridY == this.config.height-1) {\n single_tile.setType(Tile.WALL);\n } else {\n if (Phaser.Math.Between(1, 10) <= 3) {\n single_tile.setType(Tile.WALL);\n } else {\n single_tile.setType(Tile.FLOOR);\n }\n }\n });\n\n let emptyTiles = this.getEmptyTiles();\n let connectedTiles = this.getConnectedTiles(emptyTiles[0].gridX, emptyTiles[0].gridY);\n\n if (emptyTiles.length == connectedTiles.length) {\n generatingMap = false;\n }\n } while (generatingMap);\n }", "title": "" }, { "docid": "80798e807a85ad4d0334656428e73204", "score": "0.62565017", "text": "initializeTiles(){\n\t\tfor (let y = 0; y < (this.modeTiles + 4); y++){\n\t\t\t//Get a random number between 1 and 4 inclusive\n\t\t\tconst randomNum = this.random(1,4);\n\n\t\t\t//If we have played a tile\n\t\t\tlet placedBlack = false;\n\n\t\t\t//Number of loops in this cycle\n\t\t\tlet iteration = 0;\n\n\t\t\tfor (let x = 0; x < NUM_TILES_X; x++){\n\t\t\t\t//Where we are currently at\n\t\t\t\titeration++;\n\n\t\t\t\t//Default tile to place\n\t\t\t\tlet tileId = WHITE_TILE;\n\n\t\t\t\t//Place a yellow row at the start and then 5 tiles from the end\n\t\t\t\t//so that we always have 4 white tiles from the end\n\t\t\t\tif (y === 0 || (y === this.modeTiles - 1)){\n\t\t\t\t\ttileId = YELLOW_TILE;\n\t\t\t\t//Place a black tile in the random location if we haven't already placed a tile,\n\t\t\t\t//and the random number equals the current x value, and before the last 4 rows\n\t\t\t} else if (!placedBlack && iteration === randomNum && y < this.modeTiles - 1){\n\t\t\t\t\ttileId = BLACK_TILE;\n\t\t\t\t\tplacedBlack = true;;\n\t\t\t\t}\n\t\t\t\t//Otherwise place a whtie tile\n\t\t\t\tthis.tiles[x + y * NUM_TILES_X] = tileId;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "25c6fe80bcb618eec4226b4392c27f3b", "score": "0.6246516", "text": "function fillRandomInitialTiles(state, {payload: {rowRand0, colRand0, rowRand1, colRand1, twoOrFour0, twoOrFour1}}) {\n\n const tiles = state.tiles;\n const filledTiles = [];\n const key = {...state.key};\n\n const arr = [...Array(4)].map(() => range(0, 4));\n\n let row = rng(0, arr.length, rowRand0);\n let col = arr[row][rng(0, arr[row].length, colRand0)];\n\n tiles[row][col] = fillRandomTile(tiles[row][col], 0, twoOrFour0, getAndIncrement(key));\n filledTiles.push(tiles[row][col]);\n\n arr[row].splice(col, 1);\n\n row = rng(0, arr.length, rowRand1);\n col = arr[row][rng(0, arr[row].length, colRand1)];\n\n\n tiles[row][col] = fillRandomTile(tiles[row][col], 1, twoOrFour1, getAndIncrement(key));\n filledTiles.push(tiles[row][col]);\n\n return { tiles, filledTiles, key }\n}", "title": "" }, { "docid": "2ecef2be1cd22875636f8800b458f746", "score": "0.6246106", "text": "function seed()\n\t\t{\n\t\t\tseed_base();\n\t\t\tseed_land_masses();\n\t\t\tseed_resources();\n\n\t\t\treturn map.get_all_tiles();\n\t\t}", "title": "" }, { "docid": "d45cc966e436436be694fc93c132f743", "score": "0.6244192", "text": "function generateMap() {\n map = new Array(rowCount);\n mapBomb = new Array(rowCount);\n for (let i = 0; i < rowCount; i++) {\n map[i] = new Array(colCount);\n mapBomb[i] = new Array(colCount);\n for (let j = 0; j < colCount; j++) {\n map[i][j] = {\n bomb: false,\n view: VIEW_STATUS.NONE,\n };\n mapBomb[i][j] = 0;\n }\n }\n\n const cellList = getCellList();\n shuffleArray(cellList);\n\n if (cellList.length < baseBombCount) {\n throw new Error('Not enought cells to place bombs');\n }\n\n for (let i = 0; i < baseBombCount; i++) {\n const x = cellList[i].X;\n const y = cellList[i].Y;\n map[y][x].bomb = true;\n }\n\n calculateBombMap();\n }", "title": "" }, { "docid": "79ae9a4aee69a68df1c5537a89807f1d", "score": "0.6236353", "text": "generateRandom() {\n // generating proper amount of mines\n this.mineCount = Math.min(this.width * this.height, this.minecount);\n for (let i = 0; i < this.mineCount; i++) {\n this.placeRandomMine();\n }\n }", "title": "" }, { "docid": "b5a536cd5ba09f24d24791c78206503e", "score": "0.6234758", "text": "function createTiles(){\n for (var i=0; i < tiles.length; i++) {\n for (var j=0; j < tiles[i].length; j++) {\n drawTile(j,i,tiles[i][j]);\n }\n }\n}", "title": "" }, { "docid": "b09684b85cf92c11e02002a73ac0c424", "score": "0.6200534", "text": "CreateGeo() {\n // DEBUG: b2.Assert(FrackerSettings.k_dirtProbability +\n // DEBUG: FrackerSettings.k_emptyProbability +\n // DEBUG: FrackerSettings.k_oilProbability +\n // DEBUG: FrackerSettings.k_waterProbability === 100);\n for (let x = 0; x < FrackerSettings.k_worldWidthTiles; x++) {\n for (let y = 0; y < FrackerSettings.k_worldHeightTiles; y++) {\n if (this.GetMaterial(x, y) !== Fracker_Material.EMPTY) {\n continue;\n }\n // Choose a tile at random.\n const chance = Math.random() * 100.0;\n // Create dirt if this is the bottom row or chance dictates it.\n if (chance < FrackerSettings.k_dirtProbability || y === 0) {\n this.CreateDirtBlock(x, y);\n }\n else if (chance < FrackerSettings.k_dirtProbability +\n FrackerSettings.k_emptyProbability) {\n this.SetMaterial(x, y, Fracker_Material.EMPTY);\n }\n else if (chance < FrackerSettings.k_dirtProbability +\n FrackerSettings.k_emptyProbability +\n FrackerSettings.k_oilProbability) {\n this.CreateReservoirBlock(x, y, Fracker_Material.OIL);\n }\n else {\n this.CreateReservoirBlock(x, y, Fracker_Material.WATER);\n }\n }\n }\n }", "title": "" }, { "docid": "9dc4ba88bd60e1519f4aec367b7fc0ec", "score": "0.6198205", "text": "function loadMap(){\n for(y=map_size;y>=0;y--){\n for(x=map_size;x>=0;x--){\n var tile_id = x+\"_\"+y;\n mapLayer[tile_id] = map[y][x];\n }\n } \n}", "title": "" }, { "docid": "095a6f2e82eb2686547380dcf3f66a56", "score": "0.6193981", "text": "function testLevel() {\r\n level.tiles = [[]];\r\n floor = 8;\r\n ceiling = 0;\r\n for(var x = 0; x < 40; x++) {\r\n for(var y = floor + randInt(-3, 2); y < 10; y++) {\r\n if(!level.tiles[x]) {\r\n level.tiles[x] = [];\r\n }\r\n level.tiles[x][y] = new ConnectedTile(x, y, gfx.nature);\r\n if(Math.random() < 0.20) {\r\n level.tiles[x][y] = new BreakableTile(x, y, gfx.nature, 0, 7, \"crate\")\r\n }\r\n }\r\n for(var y = ceiling + randInt(0, 2); y >= 0; y--) {\r\n if(!level.tiles[x]) {\r\n level.tiles[x] = [];\r\n }\r\n level.tiles[x][y] = new ConnectedTile(x, y, gfx.nature);\r\n }\r\n }\r\n level.bg = new Background(gfx.bg_nature);\r\n loadPlayer(1*16, 5*16);\r\n}", "title": "" }, { "docid": "7dee428557526a75e064e7d6838014bf", "score": "0.6189018", "text": "function TileMap(s){\n let m = [];\n let xt = Math.floor(WIDTH / s);\n let yt = Math.floor(HEIGHT / s);\n for(let i = 0; i < xt; i++){\n let col = [];\n m.push(col);\n for(let j = 0; j < yt; j++){\n let t = {};\n col.push(t);\n }\n }\n \n this.width = function(){\n return xt;\n };\n \n this.height = function(){\n return yt;\n };\n \n this.getTile = function(i, j){\n return Object.assign({}, m[i][j]);\n };\n \n // instantly sets a tile's value\n this.setTile = function(i, j, t){\n Object.assign(m[i][j], t);\n };\n \n let changes = [];\n \n // queues a change to a tile's value that only takes affect once TileMap.applyChanges is called\n this.changeTile = function(i, j, t){\n changes.push({i, j, t});\n };\n \n this.discardChanges = function(){\n changes = [];\n };\n \n this.applyChanges = function(){\n for(let c of changes)\n this.setTile(c.i, c.j, c.t);\n this.discardChanges();\n };\n \n // draw's the tilemap to the canvas\n // may use colorAccessor function applied to each tile to determine color\n // may use extra function for drawing advanced features on a tile with canvas context\n this.draw = function(colorAccessor,extra){\n for(let i = 0; i < m.length; i++){\n for(let j = 0; j < m[i].length; j++){\n if(colorAccessor)\n canvas.box(i * s, j * s, s, colorAccessor(m[i][j]));\n else\n canvas.box(i * s, j * s, s, m[i][j].color || '#000');\n if(extra)\n canvas.other(ctx=>{\n extra(ctx, i * s, j * s, s, m[i][j]);\n });\n }\n }\n };\n \n // advances cellular automaton one step by calling updater function for each tile\n // any changes using TileMap.changeTile will take effect after the loop completes\n this.automataStep = function(updater){\n for(let i = 0; i < this.width(); i++){\n for(let j = 0; j < this.height(); j++)\n updater(this, i, j);\n }\n this.applyChanges();\n };\n }", "title": "" }, { "docid": "75c8b1e7ab8cd322add047f1f6030198", "score": "0.61843675", "text": "function mazeGeneration(world, size) {\n // console.log('maze gen...');\n // Coordinates of N(x,y) S(x,y) E(x,y) W(x,y)\n // it's necessary to have one of each so that if one direction\n // doesn't work properly, we can try each direction until one\n // works, or that we know there isn't a location possible. \n var cN = [[0, 0], [0, 0], [0, 0], [0, 0]];\n var x, y, cx, cy;\n var randomDir, intDone = 0;\n var map = new Array(size);\n var failed = false; // avoid infinite loop\n for (var i = 0; i <= size * size; ++i) {\n map[i] = new Array(size);\n }\n // Initialize the Map Array to Zeros \n for (x = 1; x <= size; ++x) {\n for (y = 1; y <= size; ++y) {\n map[x][y] = 0;\n } //end for\n } //end for\n var recursecount = 0;\n do {\n recursecount++;\n if (recursecount % 25 == 0) {\n console.log('Maze gen recursing ' + recursecount);\n }\n if (recursecount > 2000) {\n // console.log('MAZE GEN FAILED - took too long...');\n failed = true; // no infinite loops, invalid is fine!\n //return;\n }\n // Roll random x's and y's and make sure the value is odd\n x = 2 + Math.floor(Math.random() * (size - 1)); if (x % 2 != 0)--x;\n y = 2 + Math.floor(Math.random() * (size - 1)); if (y % 2 != 0)--y;\n // Ensure that the first random map location starts the process\n if (intDone == 0) map[x][y] = 1;\n if (map[x][y] == 1) {\n //Randomize Directions\n randomDir = Math.floor(Math.random() * 4);\n if (randomDir == 0) {\n cN = [[-1, 0], [1, 0], [0, -1], [0, 1]];\n } else if (randomDir == 1) {\n cN = [[0, 1], [0, -1], [1, 0], [-1, 0]];\n } else if (randomDir == 2) {\n cN = [[0, -1], [0, 1], [-1, 0], [1, 0]];\n } else if (randomDir == 3) {\n cN = [[1, 0], [-1, 0], [0, 1], [0, -1]];\n } //end if\n blnBlocked = 1;\n do {\n blnBlocked++;\n for (var intDir = 0; intDir <= 3; ++intDir) {\n // Determine which direction the tile is\n cx = x + cN[intDir][0] * 2;\n cy = y + cN[intDir][1] * 2;\n //Check to see if the tile can be used\n if (cx < size && cy < size && cx > 1 && cy > 1) {\n if (map[cx][cy] != 1) {\n //create destination location\n map[cx][cy] = 1;\n //create current location\n map[x][y] = 1;\n //create inbetween location\n map[x + cN[intDir][0]][y + cN[intDir][1]] = 1;\n //set destination location to current\n x = cx; y = cy;\n blnBlocked = 0;\n intDone++;\n intDir = 4;\n } //end if\n } //end if\n } //end for\n //recursive, no directions found, loop back a node\n } while (blnBlocked == 1) //end do\n } //end if\n } while (!failed && (intDone + 1 < ((size - 1) * (size - 1)) / 4)); //end do\n\n // copy the data over in the format we need for the game\n for (x = 1; x <= size; ++x) {\n for (y = 1; y <= size; ++y) {\n world[(x-1)+(y-1)*size] = map[x][y];\n }\n }\n\n // console.log('Maze Generation Complete!');\n\n}", "title": "" }, { "docid": "a4a102870c1811331c2dd4fc4549148b", "score": "0.6172181", "text": "function placeTilesOnMap(obj) {\n\n obj = mergeHashes(obj, str2hash(\"minZoom=0&maxZoom=999&projection=0&opacity=1\"));\n\n if (obj.fake) {return;}\n\n\n // TODO: the actual z value (but tile z value could be different)\n\n let z = boundNumber(obj.map.getZoom(), obj.minZoom, obj.maxZoom);\n\n let mapBounds = obj.map.getBounds();\n\n // for Mercator, latitude limit is special; otherwise, 90\n\n // the +1 below is so we still get the northern/southernmost tiles\n\n let latLimit = obj.projection==1?bclib.MERCATOR_LAT_LIMIT+1:90;\n\n // compute min/max lat/lon truncating at limits\n\n // NOTE: this could be done better if we let lngLat2Tile() truncate\n\n let n = boundNumber(mapBounds.getNorth(), -latLimit, latLimit);\n let s = boundNumber(mapBounds.getSouth(), -latLimit, latLimit);\n let e = Math.min(Math.max(-180, mapBounds.getEast()), 180);\n let w = Math.min(Math.max(-180, mapBounds.getWest()), 180);\n\n // determine the x and y values corresponding to these extents (we\n // use 'floor' here because a tile starts at its nw boundary)\n\n // the corner boundaries (in this order so se > nw in both coords)\n\n // TODO: not happy with the way I am floor-ifying these\n\n let nw = applyFunctionToHashValues({hash: lngLat2Tile({z: z, lat: n, lng: w, projection: obj.projection}), f: Math.floor}).hash;\n let se = applyFunctionToHashValues({hash: lngLat2Tile({z: z, lat: s, lng: e, projection: obj.projection}), f: Math.floor}).hash;\n\n // td([z, nw.x, se.x, nw.y, se.y], \"XY FOR\");\n\n // and now the loop to get and place the tiles themselves\n\n for (let x = nw.x; x <= se.x; x++) {\n for (let y = nw.y; y <= se.y; y++) {\n\n // TODO: there should be a better way to find bounds\n\n let nwBound = tile2LngLat({x: x, y: y, z: z, projection: obj.projection});\n let seBound = tile2LngLat({x: x+1, y: y+1, z: z, projection: obj.projection});\n\n // these are in lat/lng order, sigh\n\n let bounds = [[seBound.lat, nwBound.lng], [nwBound.lat, seBound.lng]];\n\n // if bounded, don't print out of bound tiles\n // TODO: allow wraparound\n\n if (x < 0 || x >= 2**z || y < 0 || y >= 2**z) {continue;}\n\n // determine URL from template sent (TODO: not working quite right)\n\n let url = convertStringTemplate(obj.tileURL, {x: x, y: y, z: z});\n\n // TODO: this is insanely specific to my test map, generalize\n // let url = hack_beck2_tiles({z: z, x: x, y: y}).url;\n \n // td([bounds, url], \"BOUNDS/URL\");\n\n L.imageOverlay(url, bounds, {opacity: obj.opacity}).addTo(obj.map);\n\n }\n }\n}", "title": "" }, { "docid": "62e24b0382417f107cbc14918b28d5ad", "score": "0.61716676", "text": "generateTiles(arr) {\n arr.forEach((tile, index) => {\n const tileElement = document.createElement('div');\n tileElement.setAttribute('class', 'grid-item');\n\n // helper - to display same pigeon fact every time\n const displayFact = (tileType) => {\n if (tileType === 'Pigeon') {\n return tile.fact;\n } else {\n return tile[this.getRandomFact(tile.name)];\n }\n };\n\n tileElement.innerHTML = `\n <h3>${tile.name || ''}</h3>\n <img src=${tile.image} alt=\"tile character\"></img>\n <p>${index === 4 ? '' : displayFact(tile.name)}</p>\n `; // don't display fact for human tile (index = 4)\n\n grid.appendChild(tileElement);\n });\n }", "title": "" }, { "docid": "1f46f3e80844098ba9461a2c713ff413", "score": "0.6171359", "text": "function drawMap(){\n $.each(GameConfig.grid, (i,row) => {\n $.each(row, (j,cell) => {\n const $element = $('<div />');\n $element.addClass(tilesClasses[cell]);\n if(cell >= 4 && cell < 8){\n const location = {x: i, y: j}\n if (cell === 4) {\n guard1Location = location;\n } else if (cell === 5) {\n guard2Location = location;\n } else if (cell === 6) {\n guard3Location = location;\n } else if (cell === 7) {\n guard4Location = location;\n }\n GameConfig.grid[location.x][location.y] = 0;\n } else if (cell === 8) {\n if (GameConfig.grid[i-1][j] !== 0) {\n $element.addClass('vertical');\n }\n } else if (cell === 9) {\n $element.text('EX\\nIT');\n }\n $element.attr({'data-x': i, 'data-y': j, id: `cell_${i}_${j}`});\n $element.appendTo('#map');\n });\n });\n }", "title": "" }, { "docid": "741e36e5b4b294ce0f403f7217d1cfa7", "score": "0.6167541", "text": "function spawnLocation() {\n //Breaking the entire canvas into a grid of tiles\n let rows = width / tileSize;\n let cols = height / tileSize;\n\n let xPos, yPos;\n\n xPos = Math.floor(Math.random() * rows) * tileSize;\n yPos = Math.floor(Math.random() * cols) * tileSize;\n return { x: xPos, y: yPos };\n}", "title": "" }, { "docid": "f09f7ccba133978d693bdd3e6e170a19", "score": "0.6166792", "text": "factoryGenerator() {\n\n //Genera un array de 4 tiles aleatoriamente\n for (let i = 0; this.tileFactory.length < 4; i++) {\n let tileNext = this.tileColorRandom(this.colors)\n this.tileFactory.push(tileNext)\n }\n return this.tileFactory\n }", "title": "" }, { "docid": "38e9eb20c55e828b61114104b530a9ce", "score": "0.61666095", "text": "function createWorld(mapData, tileImages){\n var tempImg = new Image();\n tempImg.src = 'Assets/ground_tiles.png';\n tempImg.onload = function(e){ // have to do it on image load otherwise cannot grab properties of image as it doesnt load in time\n var imgW = tempImg.width/32;\n for(var x = 0; x < imgW * tempImg.height/32; x++){\n tempContainer.tiles[x+1] = [(x - imgW * Math.floor(x/imgW))*tempContainer.tileSize,Math.floor(x/imgW)*tempContainer.tileSize,tempContainer.tileSize-1];\n }\n }\n var tempContainer = {\n columns: mapData['width'],\n rows: mapData['height'],\n tileSize: mapData['tileheight'],\n map: [],\n tiles: {},\n }\n for(var x of mapData['layers']){\n tempContainer.map.push([x['data'],x['name']]);\n }\n \n \n\n return tempContainer;\n}", "title": "" }, { "docid": "8b83a2f5cffa7db1c8f64d9ecef1ec47", "score": "0.61415225", "text": "makeMap() {\n\tlet rooms = [];\n\n\tfor (let r = 0; r < MAX_ROOMS; ++r) {\n\t // random width and height\n\t let w = this.randomInt(ROOM_MIN_SIZE, ROOM_MAX_SIZE);\n\t let h = this.randomInt(ROOM_MIN_SIZE, ROOM_MAX_SIZE);\n\n\t // random position without going outside the map boundaries\n\t let x = this.randomInt(0, MAP_WIDTH - w - 1);\n\t let y = this.randomInt(0, MAP_HEIGHT - h - 1);\n\n\t // create a new rectangle\n\t const newRoom = new Rectangle(x, y, w, h);\n\n\t // check for intersection with other rooms\n\t let didIntersect = false;\n\t for (let i = 0, l = rooms.length; i < l; ++i) {\n\t\tif (newRoom.intersect(rooms[i])) {\n\t\t didIntersect = true;\n\t\t break\n\t\t}\n\t }\n\n\t if (!didIntersect) {\n\t\tthis.createRoom(newRoom);\n\t\tconst [newX, newY] = newRoom.center();\n\t\t\n\t\tif (rooms.length === 0) {\n\t\t // player will start in first room\n\t\t this.levelStart = { x: newX, y: newY };\n\t\t } else {\n\t\t // connect to previous room with a tunnel\n\n\t\t // center of prev room\n\t\t const [prevX, prevY] = rooms[rooms.length - 1].center();\n\n\t\t if (this.randomInt(0, 1) === 1) {\n\t\t\t// first horizontal, then vertical\n\t\t\tthis.createHorizontalTunnel(prevX, newX, prevY);\n\t\t\tthis.createVerticalTunnel(prevY, newY, newX);\n\t\t } else {\n\t\t\t// first vertical, then horizontal\n\t\t\tthis.createVerticalTunnel(prevY, newY, prevX);\n\t\t\tthis.createHorizontalTunnel(prevX, newX, newY);\n\t\t }\n\t\t}\n\n\t\trooms.push(newRoom);\n\t }\n\t}\n }", "title": "" }, { "docid": "54f9d8e84a456e61a0cd1d40233d8ff8", "score": "0.61409444", "text": "function generateWorld() {\n\n\t\t//generate the grass along the x-axis\n\t\tfor(var i = 0; i < 20; i++) {\n\t\t\t//generate the grass along the y-axis\n\t\t\tfor(var j = 0; j < 20; j++) {\n\t\t\t\tvar entity = landMap.map[j][i];\n\t\t\t\tCrafty.e(\"2D, Canvas, \"+ landMap.spriteMap[entity])\n\t\t\t\t\t.attr({x: i * 32, y: j * 32});\n\t\t\t}\n\t\t}\n\n\t\t//create the bushes along the x-axis which will form the boundaries\n\t\tfor(var i = 0; i < 20; i++) {\n\t\t\tCrafty.e(\"2D, Canvas, wall_top, solid, bush\"+Crafty.math.randomInt(1,2))\n\t\t\t\t.attr({x: i * 32, y: 0, z: 2});\n\t\t\tCrafty.e(\"2D, DOM, wall_bottom, solid, bush\"+Crafty.math.randomInt(1,2))\n\t\t\t\t.attr({x: i * 32, y: 608, z: 2});\n\t\t}\n\t}", "title": "" }, { "docid": "3b4651ed92973019d802aad6e9730f88", "score": "0.6127443", "text": "function setupMapArea(){\n var objDiv = document.getElementById(\"map\");\n objDiv.style.width = map_size*32+32+\"px\";\n objDiv.style.height = map_size*32+32+\"px\";\n var div = \"\";\n for(y=map_size;y>=0;y--){\n for(x=map_size;x>=0;x--){\n var tile_id = x+\"_\"+y;\n div = \"<div id=\\\"\"+tile_id+\"\\\" class=\\\"tile\\\"></div>\" + div;\n }\n } \n objDiv.innerHTML = div;\n var objDiv = document.getElementById(\"gamearea\");\n objDiv.style.width = map_size*32+32+\"px\";\n objDiv.style.height = map_size*32+32+\"px\";\n}", "title": "" }, { "docid": "ba826e4defe2c9926cd0de91fc6e9da7", "score": "0.6125145", "text": "function TileMap() {\n this.map = []; // Array of TileMap objects\n this.w = 0;\n this.h = 0;\n}", "title": "" }, { "docid": "640879c75a28481d7aa1d6a8fdbb09bd", "score": "0.6120254", "text": "function getRandomTile() {\n let tile = {};\n let tileNumber = Math.floor(Math.random() * field.numberColors);\n switch (tileNumber) {\n case 0:\n tile = new Sprite(\n \"img/sprite_blocks.png\",\n [0, 0],\n [field.sTileWidth, field.sTileHeight],\n [field.dTileWidth, field.dTileHeight],\n \"blue\"\n );\n break;\n case 1:\n tile = new Sprite(\n \"img/sprite_blocks.png\",\n [field.sTileWidth, 0],\n [field.sTileWidth, field.sTileHeight],\n [field.dTileWidth, field.dTileHeight],\n \"purple\"\n );\n break;\n case 2:\n tile = new Sprite(\n \"img/sprite_blocks.png\",\n [field.sTileWidth * 2, 0],\n [field.sTileWidth, field.sTileHeight],\n [field.dTileWidth, field.dTileHeight],\n \"red\"\n );\n break;\n case 3:\n tile = new Sprite(\n \"img/sprite_blocks.png\",\n [field.sTileWidth * 3, 0],\n [field.sTileWidth, field.sTileHeight],\n [field.dTileWidth, field.dTileHeight],\n \"yellow\"\n );\n break;\n default:\n tile = new Sprite(\n \"img/sprite_blocks.png\",\n [field.sTileWidth * 4, 0],\n [field.sTileWidth, field.sTileHeight],\n [field.dTileWidth, field.dTileHeight],\n \"green\"\n );\n break;\n }\n return tile;\n}", "title": "" }, { "docid": "12cbc806c8e6ed03e253a771c44e72b8", "score": "0.61126816", "text": "randomizeTiles() {\n let n = this.level * this.level; // No. of time shuffling of tiles will occur is (Order of grid) x (Order of grid)\n while (n--) {\n let ch = Math.floor(Math.random() * 4) + 1;\n console.log(ch)\n switch (ch) {\n // move upper tile if possible\n case 1:\n try {\n this.move(document.getElementById(`tile-${this.emptyTile-this.level}`).innerText, this.emptyTile - this.level);\n } catch (err) {\n\n }\n\n break;\n // move lower tile if possible\n case 2:\n try {\n this.move(document.getElementById(`tile-${this.emptyTile/1+this.level/1}`).innerText, this.emptyTile / 1 + this.level / 1, true);\n } catch (err) {\n\n }\n\n break;\n // move right tile if possible\n case 3:\n try {\n this.move(document.getElementById(`tile-${this.emptyTile+1}`).innerText, this.emptyTile + 1, true);\n } catch (err) {\n\n }\n\n break;\n // move left tile if possible\n default:\n try {\n this.move(document.getElementById(`tile-${this.emptyTile-1}`).innerText, this.emptyTile - 1, true);\n } catch (err) {\n\n }\n\n }\n }\n }", "title": "" }, { "docid": "e51af94fd6e10e0aafe84dd976e573aa", "score": "0.6109474", "text": "generateBuildings(tiles, W, R) {\n this.generateLevel(tiles, 0, W);\n\n this.generateLevel(tiles, 1, R);\n this.generateLevel(tiles, 2, R);\n this.generateLevel(tiles, 3, R);\n }", "title": "" }, { "docid": "62594444eb65457442cd26e328fe16c5", "score": "0.61021096", "text": "function generateBlocks() {\r\n\tvar generated = false;\r\n\tfor(var x = 0; x < n_xtiles; x++) {\r\n\t\tvar blocked = false;\r\n\r\n\t\tvar tx = (x * tile_x) + xoffset;\r\n\t\tfor(var i = 0; i < tile_list.length; i++) {\r\n\t\t\tif(tile_list[i].pos_start.x == tx) {\r\n\t\t\t\tif((tile_list[i].pos_start.y >= yoffset) &&\r\n\t\t\t\t\t(tile_list[i].pos_start.y < (tile_y + yoffset))) {\r\n\t\t\t\t\tblocked = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar random;\r\n\t\tif(blocked == false) {\r\n\t\t\tvar temp = new Cell();\r\n\t\t\trandom = getBlockColour();\r\n\t\t\tcopyCells(map[x][0], temp);\r\n\t\t\ttemp.colour= blockColours[random];\r\n\t\t\tblockCount[random]++;\r\n\t\t\tmap[x][0].filled = true;\r\n\t\t\ttile_list.push(temp);\r\n\t\t\tgenerated = true;\r\n\t\t}\r\n\t}\r\n\tif(generated == true) {\r\n\t\tprintBC();\r\n\t}\r\n}", "title": "" }, { "docid": "94d783dcfe2d0fd7e11cb40832dcc69f", "score": "0.61018497", "text": "function genRandomPicks()\n{\ntop.ctrl.clearPicks();\nnumMaps = prompt(\"How many random maps?\", 8);\nflagsOnly = confirm(\"Flags only (CTF, CCTF, CS, 1FCTF)?\");\nmaps2 = (flagsOnly ? top.ctrl.getMapsWithFlags() : top.ctrl.getMaps()); \nfor (i=0; i<numMaps; i++)\n{\nrandMap = Math.floor(Math.random()*maps2.length+1)-1;\nmap2 = maps2[randMap];\ntypes2 = map2.types.split(' ');\nrandType = Math.floor(Math.random()*types2.length+1)-1;\ntop.ctrl._picks.push(new Pick(getMapIdx(map2.name), randType));\n}\ntop.ctrl.showPicks();\ntop.ctrl.resetContent();\n}", "title": "" }, { "docid": "488f3927cef2e22a4af89ebabc3134d0", "score": "0.60721713", "text": "function GFMapGen() {\n\t\n}", "title": "" }, { "docid": "997cacf38dcca38fd5287dc1b26e39e9", "score": "0.60657096", "text": "makeBoard(map) {\n let visualMap = [];\n let iterations = 2;\n for (let j = 0; j < iterations; j++) {\n this.smoothMap();\n }\n\n for (let i = 0; i < map.length; i++) {\n if (map[i][2]) {\n visualMap.push(<Cell type='land' key={visualMap.length} passable={true} black={false} />);\n } else {\n visualMap.push(<Cell type='rock' key={visualMap.length} passable={false} black={false} />);\n }\n }\n return visualMap;\n }", "title": "" }, { "docid": "4e3a82ab4c16125811fa6e0e98e8af96", "score": "0.6064388", "text": "function tiledMapMethod () {\n // var mapManager = {\n // mapData: null,\n // tLayer: null;\n // xCount: 0,\n // yCount: 0,\n // tSize: {x: 32, y: 32};\n // mapSize: {x: 50, y: 50};\n // tilesets: new Array ();\n // };\n}", "title": "" }, { "docid": "b4c1e59c7f77643a99b94698dcac4154", "score": "0.6061683", "text": "function create_map()\n{\n\tvar arr=[];\n\tvar done = 0;\n\twhile(done==0) {\n\t\t var td5 = Math.floor((Math.random() * 99) + 1);\n\t\t var dir = Math.floor((Math.random() * 2) + 0);\n\t\t if(dir==0) {//hang doc\n\t\t \tif((td5+40)<100) {\n\t\t \t\tarr.push(td5);\n\t\t \t\tarr.push(5);\n\t\t \t\tarr.push(0);//doc\n\t\t \t\tdone =1;\n\t\t \t}\n\n\t\t }\n\t\t else {//hang ngang\n\t\t \tif((td5%10)<=6 && td5%10!=0) {\n\t\t \t\tarr.push(td5);\n\t\t \t\tarr.push(5);\n\t\t \t\tarr.push(1);//ngang\n\t\t \t\tdone =1;\n\t\t \t}\t\n\t\t }\n\t}\n\treturn arr;\n \n}", "title": "" }, { "docid": "b10b8bf04fccaa144a81934da21d97ed", "score": "0.6052591", "text": "function makeTile(num) {\n var newTile = document.createElement(\"div\");\n newTile.classList.add(\"tile\");\n var row = Math.floor((num - 1) / 4);\n var y = -row * 100;\n var col = ((num - 1) % 4) ; \n var x = -col * 100 ;\n newTile.style.backgroundPosition = x + \"px \" + y + \"px\";\n newTile.innerHTML = num;\n newTile.row = row;\n newTile.col = col;\n newTile.movable = false;\n return newTile;\n }", "title": "" }, { "docid": "b4f4a52eb915d66ef6bd59eca5f39b3f", "score": "0.60462797", "text": "createWalls() {\n for (let i = 0; i !== this.wallCount; i++) {\n let { x, y } = this.getRandomAvailableCoords();\n this.map[y][x].wall = true;\n }\n }", "title": "" }, { "docid": "1baf49470651eb2b017f7446166e8251", "score": "0.6039753", "text": "function setRandomTiles(){\n \n var i;\n \n for(i = 0; i < tileNum; i++) {\n \n var randomTile = turf.randomPosition(bbox);\n var nearestTestHex = turf.nearestPoint(randomTile, centerPointsNew);\n var nearestTestIDHex = nearestTestHex.properties.id;\n var rand = Math.floor(Math.random()*10)+1;\n \n if (rand <=5){\n hexGridNew.features[nearestTestIDHex].properties.owner = 'Blue';\n updateColor();\n }\n \n if (rand >= 6){\n hexGridNew.features[nearestTestIDHex].properties.owner = 'Red';\n updateColor();\n }\n }\n \n}", "title": "" }, { "docid": "96722aaa2191a83da5e24d2f20fbd4a3", "score": "0.6039475", "text": "function createTile(x,y,z){\n\t// console.log(lotgModels);\n\t var tile = lotgModels.hex.clone(lotgModels.hex.name);\n\t tile.lotg = {};\n\t tile.lotg.unitInfo = {};\n\t tile.lotg.type = 'TILE';\n\t tile.lotg.unitInfo.name = 'Tile';\n\t tile.lotg.object = null;\n\t tile.lotg.defaultMat = lotgMats.grass;\n\t tile.material = lotgMats.grass;\n//\t tile.lotg.defaultMat = null;\n\t tile.lotg.position = {x:x,y:y,z:z};\n\t tile.isVisible = true;\n\t if(x %2 === 0){\n\t\t tile.position.x = x * tileHalfWidth;\n\t\t tile.position.z = z * tileHeight * 2;\n\t\t \n\t }else{\n\t\t tile.position.z = z * tileHeight * 2 - tileHeight ;\n\t\t tile.position.x = x * tileHalfWidth;\n\t }\n\t tile.position.y = y * tileThickness;\n\t \n\t if(y > 0){\n\t\t try {\n\t\t\t lotg.map[x][y-1][z].lotg.object = tile;\n\t\t} catch (e) {\n\t\t\tlotg.error('No tile underneath this one, This case is not yet handeled ', e);\n\t\t}\n\t }\n\t lotg.map[x][y][z] = tile;\n\t return tile;\n\t \n\t \n\t \n }", "title": "" }, { "docid": "9b78336ff9c37c0c2f01c7c3dc59cf66", "score": "0.60334235", "text": "function drawWorld()\n{\n $(\"#world\").html(\"\");\n\n for (var i = 0; i < map.length; i++)\n {\n for (var j = 0; j < map.length; j++)\n {\n // will randomly fill certain tiles with destroyable blocks on the\n // initial loadup of the game\n if (map[i][j] === 0)\n {\n // generates either 1 or 2 randomly\n var random = Math.floor(Math.random() * 2) + 1;\n switch (random)\n {\n case 1:\n $(\"#world\").append(`<div class=\"empty\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n map[i][j] = 1;\n break;\n case 2:\n $(\"#world\").append(`<div class=\"breakable\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n map[i][j] = 2\n break;\n default:\n $(\"#world\").append(`<div class=\"empty\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n map[i][j] = 1;\n }\n }\n else if (map[i][j] === 1)\n {\n $(\"#world\").append(`<div class=\"empty\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 2)\n {\n $(\"#world\").append(`<div class=\"breakable\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 3)\n {\n $(\"#world\").append(`<div class=\"non-breakable\"id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j)\n }\n else if (map[i][j] === 4)\n {\n $(\"#world\").append(`<div class=\"player1\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 5)\n {\n $(\"#world\").append(`<div class=\"player2\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 6)\n {\n $(`#world`).append(`<div class=\"bomb\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 7)\n {\n $(\"#world\").append(`<div class=\"flame\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n else if (map[i][j] === 8)\n {\n $(\"#world\").append(`<div class=\"bombUpgrade\" id=\"a${i}${j}\"></div>`);\n absolutePositions(i,j);\n }\n }\n }\n}", "title": "" }, { "docid": "0b439f86720c695ee6ab003347d0a780", "score": "0.6031539", "text": "function generateNewKibble(map, height, width) {\n // generate two numbers between 0 and 20\n var x = generateBetweenZeroAndNum(height / MOVE_DIST);\n var y = generateBetweenZeroAndNum(width / MOVE_DIST);\n\n // if it's already occupied then try again\n if(map[x][y] > 0) {\n return generateNewKibble(map, height, width);\n } else {\n // else return a new square\n return square(\n x * MOVE_DIST,\n y * MOVE_DIST,\n SQUARE_HEIGHT_WIDTH,\n SQUARE_HEIGHT_WIDTH,\n COLOR\n );\n }\n }", "title": "" }, { "docid": "07149415ccf56c5fdd2e949086b6ac5b", "score": "0.60256505", "text": "function genMap() {\r\n maze = new Array(height);\r\n for (y = 0; y < height; y++) {\r\n maze[y] = new Array(width);\r\n for (x = 0; x < width; ++x) {\r\n maze[y][x] = {\r\n n: false,\r\n s: false,\r\n e: false,\r\n w: false,\r\n visited: false,\r\n priorPos: null\r\n };\r\n }\r\n }\r\n }", "title": "" }, { "docid": "55c6e6be06cc806ddf09020a8cd5adbb", "score": "0.6015789", "text": "addRandom() {\n // Choose random open tile\n let randomIndex = Math.floor(Math.random() * Math.floor(this.nullList.length));\n let coordinates = this.nullList[randomIndex];\n let row = coordinates[0];\n let col = coordinates[1];\n\n // Decide either a 2 or a 4 (50% chance for each)\n let value = (Math.floor(Math.random() * Math.floor(2))+1) * 2;\n\n this.updateTileValue(row, col, value);\n }", "title": "" }, { "docid": "1f42eeadf6182cc9f43331db57cba6e4", "score": "0.601397", "text": "function generateSnake(map) {\n //Generate the snake withing map at any random position\n var rndX = Math.round(Math.random() * 19),\n rndY = Math.round(Math.random() * 19) ;\n \n //To make space for the snake body, to ensure two empty blocks on left \n while((rndX - snake.length) < 0) {\n rndX = Math.round(Math.random() * 19);\n }\n \n //to generate snake body from head to left and mark 2 for snake body on map\n for(var i = 0; i < snake.length; i++) {\n snake[i] = { x: rndX - i, y: rndY };\n map[rndX - i][rndY] = 2;\n }\n \n return map ;\n }", "title": "" }, { "docid": "a494a4da901d3c79dde6be0026ef6e24", "score": "0.6012775", "text": "test() {\n let testicon = botbIcon.random16icon();\n return [\n {\n startTileX: 0,\n startTileY: 0,\n width: 20,\n height: 20,\n icon: testicon\n },\n {\n startTileX: 20,\n startTileY: 10,\n width: 10,\n height: 40,\n icon: testicon\n },\n {\n startTileX: 30,\n startTileY: 10,\n width: 50,\n height: 5,\n icon: botbIcon.random16icon()\n },\n {\n startTileX: 0,\n startTileY: 20,\n width: 10,\n height: 10,\n icon: botbIcon.random16icon()\n },\n {\n startTileX: 50,\n startTileY: 0,\n width: 10,\n height: 30,\n icon: botbIcon.random16icon()\n },\n {\n startTileX: 20,\n startTileY: 0,\n width: 10,\n height: 10,\n icon: botbIcon.random16icon()\n }\n ];\n }", "title": "" }, { "docid": "088c5c3ca7d1827b8e0b53280bfa565c", "score": "0.60056704", "text": "function genTileStyles() {\n var width =\n { window: $(window).width()\n , board: board.width()\n }\n var tilePadding = width.window >= bp ? 10 : 6\n var tileSize = Math.floor(width.board / gridSize - tilePadding) + 'px'\n Object.keys(tileStyles).map(function(prop) {\n tileStyles[prop] = tileSize\n })\n }", "title": "" }, { "docid": "4e269e273f3c52ecd05902643f59d49c", "score": "0.6003653", "text": "function drawMap() {\n\n let mapIndex = 0;\n for (var y = 8; y < 25; y++) {\n\n for (var x = 0; x < 49; x++) {\n mapIndex++; // implementacja tej zmiennej zeby sprawdzalo kazda po koleji wartosc tablicy\n var tile_x = x * blockW;\n var tile_y = y * blockH;\n if (map[mapIndex] == 1) {\n // ctx.drawImage(floorImage,tile_x,tile_y,60,60);\n ctx.fillStyle = 'rgba(0, 174, 255, 0.678)';\n ctx.fillRect(tile_x, tile_y, 40, 40)\n } else if (map[mapIndex] == 0) {\n // ctx.drawImage(test,tile_x,tile_y);\n ctx.fillStyle = 'rgb(37, 0, 0)';\n ctx.fillRect(tile_x, tile_y, 40, 40)\n\n } else if (map[mapIndex] == 2) {\n ctx.fillStyle = 'rgb(125, 237, 0)';\n ctx.fillRect(tile_x, tile_y, 40, 40)\n }\n }\n }\n\n}", "title": "" }, { "docid": "d206aabf6ba6db2820f66519381d0d38", "score": "0.6001481", "text": "function testMap() {\n for (let i = 0; i < mapH * mapW; ++i) {\n // Edges\n\n if (\n // top\n i < mapW ||\n // left\n i % mapW == 0 ||\n // right\n (i + 1) % mapW == 0 ||\n // bottom\n i > mapW * mapH - mapW\n ) {\n map.push({\n id: i,\n render: {\n base: \"#D35\",\n object: false,\n sprite: false,\n },\n state: {\n passable: false,\n },\n });\n } else {\n // Grass\n\n map.push({\n id: i,\n render: {\n base: \"#0C3\",\n object: false,\n sprite: false,\n },\n state: {\n passable: true,\n },\n });\n }\n }\n}", "title": "" }, { "docid": "88311a2ea0c349a7769951321326d27f", "score": "0.60007703", "text": "function makeGrid(){\n\t for(var a = 0; a < SIZE; a++){\n\t\t\tfor(var b = 0; b < SIZE; b++){ \n\t\t //select a random jewel color\n\t\t //Done this way, instead of with Crafty.math.randomElementOfArray(), \n\t\t // to enable tracking colors.\n\t\t var randNum = Crafty.math.randomInt(0,4); \n\t\t\t var tileType = tileTypes[randNum]; \n\t\t\t\t\n\t\t\t\t//Creates an entity with a random color\n\t\t\t\tgrid[a][b] = Crafty.e(\"2D\", \"DOM\", \"Color\", \"gameTile\")\n\t\t\t\t .attr({x: (b+1)*50, y: (a+1)*50, h: 49, w: 49, z: 10})\n\t\t\t\t .css(\"border\", \"1px solid black\") \n\t\t\t\t .color(tileType);\n\t\t\t\tcolors[randNum]++; \n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eb3c996c451c74a2476d0e66bb020e74", "score": "0.599812", "text": "function init_tiles () {\n\t// shaders\n\ttile_sp = load_shaders_from_files (\n\t\t\"shaders/tiles.vert\", \"shaders/tiles.frag\");\n\tgl.bindAttribLocation (tile_sp, 0, \"vp\");\n\tgl.bindAttribLocation (tile_sp, 1, \"vt\");\n\tgl.linkProgram (tile_sp);\n\tgl.useProgram (tile_sp);\n\ttile_pp_loc = get_uniform_loc (tile_sp, \"pp\");\n\tgl.uniform2f (tile_pp_loc, 1.0, -1.0);\n\t\n\tgen_dead_ends ();\n\tgen_ladders ();\n\t\n\t/* sky rows */\n\tfor (var row = 0; row < 2; row++) {\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\tatlas_tile_choices.push (r);\n\t\t\tatlas_tile_choices.push (0);\n\t\t}\n\t}\n\t/* grass row */\n\tfor (var col = 0; col < num_cols; col++) {\n\t\tif (is_down_ladder (row, col)) {\n\t\t\tatlas_tile_choices.push (7);\n\t\t} else {\n\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\tatlas_tile_choices.push (r);\n\t\t}\n\t\tatlas_tile_choices.push (1);\n\t}\n\t/* brown cave */\n\tfor (var row = 3; row < 8; row++) {\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\tif (dead_ends[row][col]) {\n\t\t\t\tatlas_tile_choices.push (6);\n\t\t\t} else if (is_down_ladder (row, col)) {\n\t\t\t\t// down and up\n\t\t\t\tif (is_down_ladder (row - 1, col)) {\n\t\t\t\t\tatlas_tile_choices.push (9);\n\t\t\t\t// just down\n\t\t\t\t} else {\n\t\t\t\t\tatlas_tile_choices.push (7);\n\t\t\t\t}\n\t\t\t// just up\n\t\t\t} else if (is_down_ladder (row - 1, col)) {\n\t\t\t\tatlas_tile_choices.push (8);\n\t\t\t} else {\n\t\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\t\tatlas_tile_choices.push (r);\n\t\t\t}\n\t\t\tatlas_tile_choices.push (3);\n\t\t}\n\t}\n\tfor (var row = 8; row < 13; row++) {\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\tif (dead_ends[row][col]) {\n\t\t\t\tatlas_tile_choices.push (6);\n\t\t\t} else if (is_down_ladder (row, col)) {\n\t\t\t\t// down and up\n\t\t\t\tif (is_down_ladder (row - 1, col)) {\n\t\t\t\t\tatlas_tile_choices.push (9);\n\t\t\t\t// just down\n\t\t\t\t} else {\n\t\t\t\t\tatlas_tile_choices.push (7);\n\t\t\t\t}\n\t\t\t// just up\n\t\t\t} else if (is_down_ladder (row - 1, col)) {\n\t\t\t\tatlas_tile_choices.push (8);\n\t\t\t} else {\n\t\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\t\tatlas_tile_choices.push (r);\n\t\t\t}\n\t\t\tatlas_tile_choices.push (5);\n\t\t}\n\t}\n\tfor (var row = 13; row < 18; row++) {\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\tif (dead_ends[row][col]) {\n\t\t\t\tatlas_tile_choices.push (6);\n\t\t\t} else if (is_down_ladder (row, col)) {\n\t\t\t\t// down and up\n\t\t\t\tif (is_down_ladder (row - 1, col)) {\n\t\t\t\t\tatlas_tile_choices.push (9);\n\t\t\t\t// just down\n\t\t\t\t} else {\n\t\t\t\t\tatlas_tile_choices.push (7);\n\t\t\t\t}\n\t\t\t// just up\n\t\t\t} else if (is_down_ladder (row - 1, col)) {\n\t\t\t\tatlas_tile_choices.push (8);\n\t\t\t} else {\n\t\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\t\tatlas_tile_choices.push (r);\n\t\t\t}\n\t\t\tatlas_tile_choices.push (7);\n\t\t}\n\t}\n\tfor (var row = 18; row < num_rows; row++) {\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\tif (row == 22 && col == 15) {\n\t\t\t\tdead_ends[row][col] = false;\n\t\t\t\tatlas_tile_choices.push (10);\n\t\t\t} else if (dead_ends[row][col]) {\n\t\t\t\tatlas_tile_choices.push (6);\n\t\t\t} else if (is_down_ladder (row, col)) {\n\t\t\t\t// down and up\n\t\t\t\tif (is_down_ladder (row - 1, col)) {\n\t\t\t\t\tatlas_tile_choices.push (9);\n\t\t\t\t// just down\n\t\t\t\t} else {\n\t\t\t\t\tatlas_tile_choices.push (7);\n\t\t\t\t}\n\t\t\t// just up\n\t\t\t} else if (is_down_ladder (row - 1, col)) {\n\t\t\t\tatlas_tile_choices.push (8);\n\t\t\t} else {\n\t\t\t\tvar r = Math.floor ((Math.random () * 6));\n\t\t\t\tatlas_tile_choices.push (r);\n\t\t\t}\n\t\t\tatlas_tile_choices.push (9);\n\t\t}\n\t}\n\t\n\t// texture\n\ttile_tex = create_texture_from_file (\"art/tiles.png\");\n\t\n\t// geometry\n\tvar st_scale = 1.0 / 16.0;\n\tvar atlas_index = 0;\n\tfor (var row = 0; row < num_rows; row++) {\n\t\tvar geom = new Array ();\n\t\t// TODO maybe split geometry by row\n\t\tfor (var col = 0; col < num_cols; col++) {\n\t\t\t/* positions */\n\t\t\tvar txp = col * 0.2; // 10% of view area\n\t\t\tvar typ = row * -0.2; // y goes down\n\t\t\t\n\t\t\t// TODO randomise atlas tile and TODO store type\n\t\t\tvar atlas_across = atlas_tile_choices[atlas_index++];\n\t\t\tvar atlas_down = atlas_tile_choices[atlas_index++];\n\t\t\t\n\t\t\tvar xp = txp - 0.1;\n\t\t\tvar yp = typ + 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\tvar s = 0.0 * st_scale + (atlas_across * st_scale);\n\t\t\tvar t = 1.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\t\t\t\n\t\t\txp = txp - 0.1;\n\t\t\typ = typ - 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\ts = 0.0 * st_scale + (atlas_across * st_scale);\n\t\t\tt = 0.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\t\t\t\n\t\t\txp = txp + 0.1;\n\t\t\typ = typ + 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\ts = 1.0 * st_scale + (atlas_across * st_scale);\n\t\t\tt = 1.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\n\t\t\txp = txp + 0.1;\n\t\t\typ = typ + 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\ts = 1.0 * st_scale + (atlas_across * st_scale);\n\t\t\tt = 1.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\t\t\t\n\t\t\txp = txp - 0.1;\n\t\t\typ = typ - 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\ts = 0.0 * st_scale + (atlas_across * st_scale);\n\t\t\tt = 0.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\t\t\t\n\t\t\txp = txp + 0.1;\n\t\t\typ = typ - 0.1;\n\t\t\txp = xp.toFixed (2);\n\t\t\typ = yp.toFixed (2);\n\t\t\ts = 1.0 * st_scale + (atlas_across * st_scale);\n\t\t\tt = 0.0 * st_scale + ((15 - atlas_down) * st_scale);\n\t\t\tgeom.push (xp);\n\t\t\tgeom.push (yp);\n\t\t\tgeom.push (s);\n\t\t\tgeom.push (t);\n\t\t}\n\t\ttile_row_vbos[row] = gl.createBuffer ();\n\t\tgl.bindBuffer (gl.ARRAY_BUFFER, tile_row_vbos[row]);\n\t\tgl.bufferData (gl.ARRAY_BUFFER, new Float32Array (geom), gl.STATIC_DRAW);\n\t}\n}", "title": "" }, { "docid": "8ebea406393c40f59fae4b8ba709b484", "score": "0.5997084", "text": "generateMap() {\n this.createMatrix();\n this.positionPlayer();\n this.positionWeapon();\n this.positionObstacle();\n }", "title": "" }, { "docid": "28133bf3eee2ca2b423b88dc11999b36", "score": "0.59945357", "text": "function world_mapping(world){\n\n\t//1 = dirt\n\t//2 = ice\n\t\n\tvar tile_name = 'land';\n\t\n\tvar tile_counter = 0;\n\tvar tile_terrain = [1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 10];\n\tvar tile_posx = [0, 200,400,600,800,1000, 1200, 1300, 1500, 1700, 2000, 2300, 2500, 2700, 3000, 3050, 3500, 3800, 4000, 4100, 3800, 3600, 3400, 3600, 3800, 4000, 4200, 4500, 4800, 5200, 5300, 5400, 5650];\n\tvar tile_posy = [500, 500,400,300,200,250, 250, 100, 50, 100, 100, 400, 400, 500, 350, 250, 300, 400, 700, 1000, 1100, 1200, 1500, 1800, 2800, 2900, 3000, 3000, 3000, 3000, 2900, 2800, 2600];\n bottom_tile_y = array_max(tile_posy);\n\n\tvar tile_countmax = tile_terrain.length;\n\n while (tile_counter < tile_countmax){\n if (tile_terrain[tile_counter] == 1){\n \ttile_terrain_type = 'dirt';\n \t}else if(tile_terrain[tile_counter] == 2){\n \ttile_terrain_type = 'ice';\n }else if(tile_terrain[tile_counter] == 3){\n tile_terrain_type = 'sludge';\n \t}else if(tile_terrain[tile_counter] == 10){\n tile_terrain_type = 'final_line';\n }\n \ttile_creator(tile_name, tile_counter, tile_terrain_type, tile_posx[tile_counter], tile_posy[tile_counter]);\n\t\ttile_counter = tile_counter + 1;\n }\n}", "title": "" }, { "docid": "5ca076d7d5b429ed005631b5bd5d86de", "score": "0.59866065", "text": "function testMap(item, xy){\n //coordinates x,y presented in x##y## format\n var rainForrest = [\"x01y01\", \"x01y02\", \"x01y03\", \"x01y04\", \"x01y05\", \"x01y06\", \n \"x01y07\", \"x01y08\", \"x01y09\", \"x01y10\", \"x02y01\", \"x02y02\", \n \"x02y03\", \"x02y04\", \"x02y05\", \"x02y06\", \"x02y07\", \"x02y08\", \n \"x02y09\", \"x02y10\", \"x03y01\", \"x03y02\", \"x03y03\", \"x03y04\",\n \"x03y05\", \"x03y06\", \"x03y07\", \"x03y08\", \"x04y01\", \"x04y02\", \n \"x04y03\", \"x04y04\", \"x04y05\", \"x04y06\"];\n var forrest = [\"x01y11\", \"x01y12\", \"x01y13\", \"x01y14\", \"x02y11\", \"x02y12\", \n \"x02y13\", \"x02y14\", \"x03y09\", \"x03y10\", \"x03y11\", \"x03y12\", \n \"x03y13\", \"x03y14\", \"x04y07\", \"x04y08\", \"x04y09\", \"x04y10\", \n \"x05y01\", \"x05y02\", \"x05y03\", \"x05y04\", \"x05y05\", \"x05y06\", \"x05y07\",\n \"x05y08\", \"x05y09\", \"x05y10\", \"x06y01\", \"x06y02\", \"x06y03\", \"x06y04\",\n \"x06y05\", \"x06y06\", \"x06y07\", \"x07y01\", \"x07y02\"];\n var river = [\"x01y17\", \"x01y18\", \"x02y17\", \"x02y18\", \"x03y17\", \"x03y18\",\n \"x04y11\", \"x04y12\", \"x04y13\", \"x04y14\", \"x04y15\", \"x04y16\",\n \"x04y17\", \"x05y11\", \"x05y12\", \"x05y13\", \"x05y14\", \"x05y15\",\n \"x05y16\", \"x06y8\", \"x06y9\", \"x06y10\", \"x06y11\", \"x06y12\", \n \"x06y13\", \"x06y14\", \"x06y15\", \"x07y06\", \"x07y07\", \"x07y08\", \n \"x07y09\", \"x07y10\", \"x08y03\", \"x08y04\", \"x08y05\", \"x08y06\", \"x09y02\",\n \"x09y03\", \"x09y04\", \"x10y01\", \"x10y02\"];\n var desert = [\"x05y19\", \"x05y20\", \"x06y18\", \"x06y19\", \"x06y20\", \"x07y17\", \n \"x07y18\", \"x07y19\", \"x07y20\", \"x08y14\", \"x08y15\", \"x08y16\",\n \"x08y17\", \"x08y18\", \"x08y19\", \"x08y20\", \"x09y10\", \"x09y11\",\n \"x09y12\", \"x09y13\", \"x09y14\", \"x09y15\", \"x09y16\", \"x09y17\",\n \"x09y18\", \"x09y19\", \"x09y20\", \"x10y09\", \"x10y10\", \"x10y11\",\n \"x10y12\", \"x10y13\", \"x10y14\", \"x10y15\", \"x10y16\", \"x10y17\",\n \"x10y18\", \"x10y19\", \"x10y20\"];\n var xyValue1 = (rainForrest.indexOf(xy))/1>=0;\n var xyValue2 = (forrest.indexOf(xy))/1>=0;\n var xyValue3 = (river.indexOf(xy))/1>=0;\n var xyValue4 = (desert.indexOf(xy))/1>=0;\n var resultRF = xy + \" rainForrest\";\n var resultLF = xy + \" forrest\";\n var resultRv = xy + \" river\";\n var resultDs = xy + \" desert\";\n var resultPl = xy + \" plains\";\n if (xyValue1){\n item.className = resultRF;\n }else if(xyValue2){\n item.className = resultLF;\n }else if(xyValue3){\n item.className = resultRv;\n }else if(xyValue4){\n item.className = resultDs;\n }else{\n item.className = resultPl;\n }\n}", "title": "" }, { "docid": "f76387a4e9fa5372c30bd9ff16f44308", "score": "0.59748954", "text": "function generateHeightmap() {\n\t// Sort the options\n\tconsole.log(\"Retrieving options...\");\n\tvar dimension_element = document.getElementById(\"dimension_option\");\n\tvar dimension = Number(dimension_element.options[dimension_element.selectedIndex].value);\n\tvar n_element = document.getElementById(\"nth_option\");\n\tvar n = n_element.options[n_element.selectedIndex].value;\n\tvar fp_element = document.getElementById(\"feature_points_option\");\n\tvar fp = fp_element.options[fp_element.selectedIndex].value;\n\tvar rendering_element = document.getElementById(\"render_option\");\n\tvar render = rendering_element.options[rendering_element.selectedIndex].value;\n\tconsole.log(\"Done.\")\n\t\n\t// Generate the map data\n\tconsole.log(\"Generating map data...\");\n\tvar m = new Map(dimension, n, fp); \n\tconsole.log(\"A \" + m.grid.length + \"x\" + m.grid[0].length + \" grid has generated with \" + get2DArraySize(m.grid) + \" points.\");\n\t\n\t// Set up the canvas\n\tconsole.log(\"Getting canvas context and resizing...\")\n\tc = document.getElementById(\"web_canvas\");\n\tc.height = dimension;\n\tc.width = dimension;\n\tctx = c.getContext(\"2d\");\n\tconsole.log(\"The canvas context has been successfully set up.\")\n\t\n\t// Render the map data on the canvas\n\tconsole.log(\"Painting the canvas...\")\n\tif(render == \"Grayscale\") {\n\t\tfor(var x = 0; x < m.grid.length; x++) {\n\t\t\tfor (var y = 0; y < m.grid[x].length; y++) {\n\t\t\t\tctx.fillStyle = \"rgb(\"+Math.round(m.grid[x][y])+\",\"+Math.round(m.grid[x][y])+\", \"+Math.round(m.grid[x][y])+\")\";\n\t\t\t\tctx.fillRect(x, y, 1, 1);\n\t\t\t}\n\t\t}\n\t}\n\tif(render == \"RedBlue\") {\n\t\tfor(var x = 0; x < m.grid.length; x++) {\n\t\t\tfor (var y = 0; y < m.grid[x].length; y++) {\n\t\t\t\tctx.fillStyle = \"rgb(\"+Math.round(m.grid[x][y])+\",\"+0+\", \"+(255-Math.round(m.grid[x][y]))+\")\";\n\t\t\t\tctx.fillRect(x, y, 1, 1);\n\t\t\t}\n\t\t}\n\t}\n\tif(render == \"Brown\") {\n\t\tfor(var x = 0; x < m.grid.length; x++) {\n\t\t\tfor (var y = 0; y < m.grid[x].length; y++) {\n\t\t\t\tctx.fillStyle = \"rgb(\"+Math.round(m.grid[x][y])+\",\"+Math.round(m.grid[x][y])/2+\", \"+Math.round(m.grid[x][y])/3+\")\";\n\t\t\t\tctx.fillRect(x, y, 1, 1);\n\t\t\t}\n\t\t}\n\t}\n\tconsole.log(\"Done.\")\n}", "title": "" }, { "docid": "64b267cbe1de21ba0ec0bf2a89967df4", "score": "0.59736425", "text": "function randomCells() {\n setGen(0);\n setCells(createGrid(60, 60, true).cells);\n setTranslate({translateX:0,translateY:0});\n setSize(10);\n }", "title": "" }, { "docid": "d0ba69476f1e354dc9df15e7240fe04a", "score": "0.5963574", "text": "function generate () {\n\n var atoms = predicates(source);\n var {map, width, height} = atoms_to_tiles(atoms);\n var map_string = draw_map(map, width, height);\n\n return map_string;\n\n}", "title": "" }, { "docid": "90f70efa96bc3d5b92eef6fa7e5b6499", "score": "0.5953536", "text": "function createMap(lvl){\r\n this.map =this.game.add.tilemap('level');\r\n this.map.addTilesetImage('tiles', 'tiles');\r\n this.map.setCollisionBetween(7, 24, true, 'solid');\r\n this.layer = map.createLayer('solid');\r\n this.layer.resizeWorld();\r\n this.map.createLayer('background');\r\n\r\n}", "title": "" }, { "docid": "dc2bc76f7a2c358143ecb913c3091459", "score": "0.5952813", "text": "function generate_sketch(p, draw_shape) {\n var tile_size;\n var tiles = [];\n\n function GenerateGrid() {\n tiles = [];\n const num_x_tiles = p.ceil(p.width / tile_size);\n const num_y_tiles = p.ceil(p.height / tile_size);\n\n for (let i = 0; i < num_y_tiles; i++) {\n tiles.push([]);\n for (let j = 0; j < num_x_tiles; j++) {\n tiles[i].push(\n new Tile(\n p,\n tile_size * j,\n tile_size * i,\n i + j,\n tile_size,\n draw_shape\n )\n );\n }\n }\n }\n\n function RandomRotateTiles() {\n for (var i = 0; i < tiles.length; i++) {\n for (var j = 0; j < tiles[i].length; j++) {\n if (p.random([true, false])) {\n tiles[i][j].animate_rotation();\n }\n }\n }\n }\n\n p.setup = function() {\n if (p.windowWidth > 600) {\n tile_size = 70;\n } else {\n tile_size = p.map(p.windowWidth, 100, 600, 10, 70);\n }\n var canvas = p.createCanvas(p.windowWidth, p.windowHeight);\n canvas.parent('sketch');\n\n GenerateGrid();\n p.fill(0, 0, 0, 0);\n p.smooth();\n };\n\n p.draw = function() {\n p.background(255);\n for (var i = 0; i < tiles.length; i++) {\n for (var j = 0; j < tiles[i].length; j++) {\n tiles[i][j].draw();\n // tiles[i][j].draw_edge()\n }\n }\n };\n\n p.keyPressed = function() {\n if (p.key === ' ') {\n RandomRotateTiles();\n } else if (p.key === 'S') {\n p.saveCanvas('tiling', 'png');\n }\n };\n\n p.mouseReleased = function() {\n tiles[p.floor(p.mouseY / tile_size)][\n p.floor(p.mouseX / tile_size)\n ].animate_rotation();\n };\n\n p.windowResized = function() {\n p.resizeCanvas(p.windowWidth, p.windowHeight);\n GenerateGrid();\n };\n}", "title": "" } ]
c9182e2a8d2d5b03a2c7e3ef667cbde4
Draw axes and grid
[ { "docid": "4db8952e9682899935a6528f7d1d1118", "score": "0.0", "text": "function drawAxes(mat, dash){\n\t\tvar yhat = matvp(mat, yhat0);\n\t\tvar xhat = matvp(mat, xhat0);\n\n\t\tctx.strokeStyle = dash ? \"#0000ff\" : \"#000000\";\n\t\tctx.lineWidth = 2;\n\n\t\tdrawLine([0,0], yhat);\n\t\tdrawLine(yhat, vecadd(yhat, matdvp(mat, [-arrowSize, -arrowSize])));\n\t\tdrawLine(yhat, vecadd(yhat, matdvp(mat, [arrowSize, -arrowSize])));\n\n\t\tdrawLine([0,0], xhat);\n\t\tdrawLine(xhat, vecadd(xhat, matdvp(mat, [-arrowSize, -arrowSize])));\n\t\tdrawLine(xhat, vecadd(xhat, matdvp(mat, [-arrowSize, arrowSize])));\n\n\t\tctx.font = \"20px Arial\";\n\t\tctx.fillStyle = dash ? \"#0000ff\" : \"#000000\";\n\t\tctx.fillText(dash ? \"t'\" : \"t\", offset + yhat[0], height - offset - yhat[1] - 10);\n\t\tctx.fillText(dash ? \"x'\" : \"x\", offset + xhat[0] + 10, height - offset - xhat[1] + 10 + (dash ? -20 : 0));\n\n\t\tctx.strokeStyle = dash ? \"#bfbfff\" : \"#bfbfbf\";\n\t\tctx.lineWidth = 1;\n\n\t\tfor(var y = 1; y < 10; y++){\n\t\t\tvar vec = vecscale(yhat, y / 10);\n\t\t\tdrawLine(vec, vecadd(vec, xhat));\n\t\t}\n\t\tfor(var x = 1; x < 10; x++){\n\t\t\tvar vec = vecscale(xhat, x / 10);\n\t\t\tdrawLine(vec, vecadd(vec, yhat));\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "cc78be62b445fc8bab87c2fc6693e7c2", "score": "0.7844086", "text": "function drawAxes() {\n canvas.select(\"#layer1\").append(\"g\")\n .attr(\"class\", \"grid\")\n .attr(\"transform\", \"translate(0,\" + h + \")\")\n .call(xAxis);\n canvas.select(\"#layer1\").append(\"g\")\n .attr(\"class\", \"grid\")\n .call(yAxis);\n}", "title": "" }, { "docid": "9e2d9f8bc8fa4607caf4408188abd1dd", "score": "0.77213943", "text": "function drawGrid(){\n\t\t\tctx.save();\n\t\t\tctx.translate(plotOffset.left, plotOffset.top);\n\t\n\t\t\t/**\n\t\t\t * Draw grid background, when defined.\n\t\t\t */\n\t\t\tif(options.grid.backgroundColor != null){\n\t\t\t\tctx.fillStyle = options.grid.backgroundColor;\n\t\t\t\tctx.fillRect(0, 0, plotWidth, plotHeight);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw grid lines in vertical direction.\n\t\t\t */\n\t\t\tctx.lineWidth = 1;\n\t\t\tctx.strokeStyle = options.grid.tickColor;\n\t\t\tctx.beginPath();\n\t\t\tfor(var i = 0, v = null; i < xaxis.ticks.length; ++i){\n\t\t\t\tv = xaxis.ticks[i].v;\n\t\t\t\t/**\n\t\t\t\t * Don't show lines on upper and lower bounds.\n\t\t\t\t */\n\t\t\t\tif (v == xaxis.min || v == xaxis.max)\n\t\t\t\t\tcontinue;\n\t\n\t\t\t\tctx.moveTo(Math.floor(tHoz(v)) + ctx.lineWidth/2, 0);\n\t\t\t\tctx.lineTo(Math.floor(tHoz(v)) + ctx.lineWidth/2, plotHeight);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw grid lines in horizontal direction.\n\t\t\t */\n\t\t\tfor(var j = 0, v = null; j < yaxis.ticks.length; ++j){\n\t\t\t\tv = yaxis.ticks[j].v;\n\t\t\t\t/**\n\t\t\t\t * Don't show lines on upper and lower bounds.\n\t\t\t\t */\n\t\t\t\tif (v == yaxis.min || v == yaxis.max)\n\t\t\t\t\tcontinue;\n\t\n\t\t\t\tctx.moveTo(0, Math.floor(tVert(v)) + ctx.lineWidth/2);\n\t\t\t\tctx.lineTo(plotWidth, Math.floor(tVert(v)) + ctx.lineWidth/2);\n\t\t\t}\n\t\t\tctx.stroke();\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw axis/grid border.\n\t\t\t */\n\t\t\tctx.lineWidth = 2;\n\t\t\tctx.strokeStyle = options.grid.color;\n\t\t\tctx.lineJoin = 'round';\n\t\t\tctx.strokeRect(0, 0, plotWidth, plotHeight);\n\t\t\tctx.restore();\n\t\t}", "title": "" }, { "docid": "c818afb0b92705e6ddcc4362e35fe2c3", "score": "0.7395515", "text": "draw_axes () {\n let canvas = this.layers.get(CONST.CHART_LAYER_AXES);\n\n // Draw axes\n let ctx = canvas.getContext('2d');\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n ctx.strokeStyle = CONST.WHITE;\n ctx.lineWidth = 3;\n\n ctx.beginPath();\n ctx.moveTo(0, canvas.height-this.chart_padding_x_axis);\n ctx.lineTo(canvas.width - this.chart_padding_y_axis, canvas.height-this.chart_padding_x_axis);\n ctx.lineTo(canvas.width - this.chart_padding_y_axis, 0);\n ctx.stroke();\n\n this.draw_axes_labels();\n }", "title": "" }, { "docid": "ef0ddb612cc81ed6284ef7964cc8bc44", "score": "0.7262215", "text": "draw_axes(gfx) {\n // Drawing in white\n gfx.noFill();\n gfx.stroke(255);\n\n // Draw the unit circle (width and height 2)\n gfx.ellipse(0, 0, 2, 2);\n\n // Draw x- and y-axes\n gfx.line(-10, 0, 10, 0);\n gfx.line(0, -10, 0, 10);\n }", "title": "" }, { "docid": "237f66020e5a50db4fff70413745d783", "score": "0.72236985", "text": "function draw(){\n\n drawGrid();\n var seriesIndex;\n\n if(!graph.hasData) {\n return;\n }\n\n if(graph.options.axes.x1.show){\n if(!graph.options.axes.x1.labels || graph.options.axes.x1.labels.length === 0) {\n seriesIndex = graph.options.axes.x1.seriesIndex;\n graph.options.axes.x1.labels= getXLabels(graph.allSeries[seriesIndex].series[0], graph.options.labelDateFormat);\n }\n drawXLabels(graph.options.axes.x1);\n }\n if(graph.options.axes.x2.show && graph.hasData){\n if (!graph.options.axes.x2.labels || graph.options.axes.x2.labels.length === 0) {\n seriesIndex = graph.options.axes.x2.seriesIndex;\n graph.options.axes.x2.labels = getXLabels(graph.allSeries[seriesIndex].series[0], graph.options.labelDateFormat);\n }\n drawXLabels(graph.options.axes.x2);\n }\n\n if (graph.options.axes.y1.show) {\n drawYLabels(graph.maxVals[graph.options.axes.y1.seriesIndex], graph.minVals[graph.options.axes.y1.seriesIndex], graph.options.axes.y1);\n }\n if (graph.options.axes.y2.show) {\n drawYLabels(graph.maxVals[graph.options.axes.y2.seriesIndex], graph.minVals[graph.options.axes.y2.seriesIndex], graph.options.axes.y2);\n }\n }", "title": "" }, { "docid": "645cbe901e22be811946e69053971050", "score": "0.7208667", "text": "axisPlot() {\n this.ctx = this.canvas.getContext(\"2d\");\n\n /**\n * Grid grid\n */\n if (this.grid.grid) {\n this.ctx.beginPath();\n this.ctx.font = 'italic 18pt Calibri';\n this.ctx.strokeStyle = '#979797';\n this.ctx.lineWidth = 1;\n this.ctx.setLineDash([10, 15]);\n for (let i = 30; i < this.field.width; i+= 100) {\n this.ctx.fillText(Math.ceil(this.ScreenToWorldY(i)*1000)/1000, 0, i);\n this.ctx.moveTo(0, i);\n this.ctx.lineTo(this.field.width, i);\n }\n for (let i = 100; i < this.field.width; i+= 100) {\n this.ctx.fillText(Math.ceil(this.ScreenToWorldX(i)*1000)/1000, i, this.field.height);\n this.ctx.moveTo(i, 0);\n this.ctx.lineTo(i, this.field.height);\n }\n this.ctx.stroke();\n this.ctx.closePath();\n }\n\n\n /**\n * Grid axiss\n */\n if (this.grid.axiss) {\n this.ctx.beginPath();\n this.ctx.strokeStyle = '#b10009';\n this.ctx.lineWidth = 2;\n this.ctx.setLineDash([]);\n\n this.ctx.moveTo(this.center.x, 0);\n this.ctx.lineTo(this.center.x, this.field.height);\n\n this.ctx.moveTo(0, this.center.y);\n this.ctx.lineTo(this.field.width, this.center.y);\n\n this.ctx.stroke();\n this.ctx.closePath();\n }\n\n\n if (this.grid.serifs) {\n this.ctx.beginPath();\n this.ctx.strokeStyle = '#058600';\n this.ctx.fillStyle = '#888888'\n this.ctx.lineWidth = 2;\n this.ctx.setLineDash([]);\n\n let start = 0;\n if (!this.grid.serifsStep){\n return;\n }\n\n let s = Math.abs(\n this.ScreenToWorldY(0) -\n this.ScreenToWorldY(this.grid.serifsSize)\n );\n\n /**\n * To right & to left\n */\n if ((this.center.y > 0) && (this.center.y < this.field.height)) {\n\n let finish = this.ScreenToWorldX(this.field.width);\n\n for (let i = start; i < finish; i+=this.grid.serifsStep) {\n this.moveTo(i+this.grid.serifsStep/2,(s/2));\n this.lineTo(i+this.grid.serifsStep/2,-(s/2));\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(i+this.grid.serifsStep/2), this.WorldToScreenY(s/2));\n\n this.moveTo(i+this.grid.serifsStep,s);\n this.lineTo(i+this.grid.serifsStep,-s);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(i+this.grid.serifsStep), this.WorldToScreenY(s));\n }\n\n finish = this.ScreenToWorldX(0);\n\n for (let i = start; i > finish; i-=this.grid.serifsStep) {\n this.moveTo(i-this.grid.serifsStep/2,(s/2));\n this.lineTo(i-this.grid.serifsStep/2,-(s/2));\n this.ctx.fillText(i-this.grid.serifsStep/2, this.WorldToScreenX(i-this.grid.serifsStep/2), this.WorldToScreenY(s/2));\n\n this.moveTo(i-this.grid.serifsStep,s);\n this.lineTo(i-this.grid.serifsStep,-s);\n this.ctx.fillText(i-this.grid.serifsStep, this.WorldToScreenX(i-this.grid.serifsStep), this.WorldToScreenY(s));\n }\n }\n\n /**\n * To top & to bot\n */\n if ((this.center.x > 0) && (this.center.x < this.field.width)) {\n\n start = 0;\n let finish = this.ScreenToWorldY(0);\n\n for (let i = start; i < finish; i+=this.grid.serifsStep) {\n this.moveTo((s/2),i+this.grid.serifsStep/2);\n this.lineTo(-(s/2),i+this.grid.serifsStep/2);\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(s/2), this.WorldToScreenY(i+this.grid.serifsStep/2));\n\n this.moveTo(s, i+this.grid.serifsStep);\n this.lineTo(-s, i+this.grid.serifsStep);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(s), this.WorldToScreenY(i+this.grid.serifsStep));\n }\n\n finish = this.ScreenToWorldY(this.field.width);\n\n for (let i = start; i > finish-this.grid.serifsStep; i-=this.grid.serifsStep) {\n this.moveTo((s/2),i+this.grid.serifsStep/2);\n this.lineTo(-(s/2),i+this.grid.serifsStep/2);\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(s/2), this.WorldToScreenY(i+this.grid.serifsStep/2));\n\n this.moveTo(s, i+this.grid.serifsStep);\n this.lineTo( -s, i+this.grid.serifsStep);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(s), this.WorldToScreenY(i+this.grid.serifsStep));\n }\n }\n this.ctx.stroke();\n this.ctx.closePath();\n }\n }", "title": "" }, { "docid": "b4735f7e9392af05e12761fd04a1b49e", "score": "0.71879864", "text": "function drawAxis(self) {\r\n ////DRAW MAIN AXIS\r\n //Draw grid lines\r\n geometry = new THREE.Geometry();\r\n let material = new THREE.LineBasicMaterial( { color: '#'+self.data.graphColor } );\r\n let scale = self.el.getAttribute('plot').scale;\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, scale[2]) );\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, 0) );\r\n geometry.vertices.push(new THREE.Vector3( 0, scale[1], 0) );\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, 0) );\r\n geometry.vertices.push(new THREE.Vector3( scale[0], 0, 0) );\r\n var grid = new THREE.Line(geometry, material);\r\n //add axis lines to sceneEl\r\n let el = self.el;\r\n el.setObject3D('axis', grid);\r\n el.getObject3D('axis').visible = self.data.enableAxis;\r\n}", "title": "" }, { "docid": "510586642cbbd5a9ba08850d6054dfc2", "score": "0.71523196", "text": "drawAxes() {\n this.drawLabels([\n { label: LightTypes.A, column: 9 },\n { label: LightTypes.B, column: 10 },\n ])\n\n let colLabels = new Array(8).fill(null).map((_, i) => ({ label: `${i + 1}`, column: i }))\n this.drawLabels(colLabels)\n\n this.ctx.beginPath()\n this.ctx.strokeStyle = \"black\"\n this.ctx.moveTo(0, this.maxDrawH * 1.01)\n this.ctx.lineTo(this.w, this.maxDrawH * 1.01)\n this.ctx.moveTo(8 * this.barColumnW + this.barColumnW / 2, this.h)\n this.ctx.lineTo(8 * this.barColumnW + this.barColumnW / 2, 0)\n this.ctx.stroke()\n }", "title": "" }, { "docid": "46a9f3804bb93818181add2b393c0a8f", "score": "0.7029221", "text": "function showGrid(ctx, axis, color = '#000000') {\n\tif (!axis.displayGrid) /* do not show grid */\n\t\treturn;\n\tif (!axis.set) { /* haven't set axis */\n\t\talert('You must set AXIS first!');\n\t\treturn;\n\t}\n\tlet lineSize = 1;\n\tlet i = 0;\n\tfor (; i < axis.xDivision.length; ++i) {\n\t\tx = axis.xDivision[i];\n\t\tdrawLine(ctx, x, axis.yLeftRange, x, axis.yRightRange,\n\t\t\tcolor, lineSize);\n\t}\n\t/* yLeft is pos and yRight is neg */\n\tfor (i = 0; i < axis.yDivision.length; ++i) {\n\t\ty = axis.yDivision[i];\n\t\tdrawLine(ctx, axis.xLeftRange, y, axis.xRightRange, y,\n\t\t\tcolor, lineSize);\n\t}\n}", "title": "" }, { "docid": "bf23596311fdf5ffb1e51d3ba769816a", "score": "0.6895811", "text": "function drawGrid(){\n var i, y,\n gridLine,\n gridLines = graph.paper.set(),\n avalaibleArea = graph.height - graph.padding.top - graph.padding.bottom;\n\n if (graph.options.grid.show) {\n for (i = 0; i < graph.options.grid.numYLabels; i++) {\n y = graph.height -\n i / (graph.options.grid.numYLabels - 1) * avalaibleArea -\n graph.padding.bottom +\n graph.padding.top;\n gridLine = graph.paper.path(\"M0\" + \" \" + y + \"L\" + graph.width + \" \" + y).attr('stroke', '#ddd');\n gridLines.push(gridLine);\n }\n } else if (graph.options.grid.showBaseline) {\n y = graph.height -\n graph.padding.bottom +\n graph.padding.top;\n gridLine = graph.paper.path(\"M0\" + \" \" + y + \"L\" + graph.width + \" \" + y).attr('stroke', '#ddd');\n gridLines.push(gridLine);\n }\n\n graph.grid = {\n lines: gridLines\n };\n }", "title": "" }, { "docid": "3df1bb5092869a91b6f5d429461b3fa2", "score": "0.6886782", "text": "function drawAxes() {\n //Create the Scale we will use for the XAxis\n var axisScale = d3.scale.linear()\n .range([0 - outerRadius + radiusWidth, outerRadius - radiusWidth]);\n\n //Create the Axis\n var axis = d3.svg.axis()\n .scale(axisScale)\n .tickFormat(\"\");\n\n var xAxisGroup = d3.selectAll(\"#xaxes\")\n .attr(\"class\", \"axis\")\n .call(axis);\n\n // define the y axis\n var yAxis = d3.svg.axis()\n .orient(\"left\")\n .scale(axisScale)\n .tickFormat(\"\");\n\n var yAxisGroup = d3.selectAll(\"#yaxes\")\n .attr(\"class\", \"axis\")\n .call(yAxis);\n }", "title": "" }, { "docid": "a8f5b00f0fee3e7eee6b495cc57add0a", "score": "0.6886434", "text": "function drawAxes(W, H) {\n\t\tif(axesCanvas === null) {\n\t\t\tvar myCanvasElement = $scope.theView.parent().find('#theAxesCanvas');\n\t\t\tif(myCanvasElement.length > 0) {\n\t\t\t\taxesCanvas = myCanvasElement[0];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//$log.log(preDebugMsg + \"no canvas to draw on!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(axesCtx === null) {\n\t\t\taxesCtx = axesCanvas.getContext(\"2d\");\n\t\t}\n\n\t\tif(!axesCtx) {\n\t\t\t//$log.log(preDebugMsg + \"no canvas to draw axes on\");\n\t\t\treturn;\n\t\t}\n\n\t\taxesCtx.clearRect(0,0, W,H);\n\t\taxesCtx.fillStyle = textColor;\n\t\taxesCtx.font = fontSize + \"px Arial\";\n\n\t\t// top label\n\t\tvar str = \"\";\n\t\tvar xw = -1;\n\t\tvar ww = -1;\n\n\t\tif(dataName !== null) {\n\t\t\tstr = dataName;\n\t\t\txw = legacyDDSupLib.getTextWidthCurrentFont(axesCtx, dataName);\n\t\t}\n\n\t\tif(str != \"\") {\n\t\t\tvar w = legacyDDSupLib.getTextWidthCurrentFont(axesCtx, str);\n\t\t\tvar top = 0;\n\t\t\tif(fontSize < topMarg) {\n\t\t\t\ttop = Math.floor((topMarg - fontSize) / 2);\n\t\t\t}\n\t\t\tvar left = 0;\n\t\t\tif(w < W) {\n\t\t\t\tleft = Math.floor((W - w) / 2);\n\t\t\t}\n\n\t\t\taxesCtx.fillText(str, left, top + fontSize);\n\n\t\t\tif(xw >= 0) {\n\t\t\t\tdragZone = {'left':left, 'top':top, 'right':(left + xw), 'bottom':(top + fontSize), 'name':dragZone.name, 'ID':dragZone.ID};\n\t\t\t}\n\t\t\tallDragNames = [dragZone];\n\t\t}\n\t}", "title": "" }, { "docid": "cd052b4a954628bb610ae4f5047de148", "score": "0.6886116", "text": "function drawAxes(ctx) {\n ctx.lineWidth = 3;\n ctx.strokeStyle = 'rgb(62, 66, 74)';\n ctx.beginPath();\n // Draw axes in the middle\n ctx.moveTo(0, plane.height/2);\n ctx.lineTo(plane.width, plane.height/2);\n ctx.stroke();\n ctx.moveTo(plane.width/2, 0);\n ctx.lineTo(plane.width/2, plane.height);\n ctx.stroke();\n}", "title": "" }, { "docid": "0ebc38df3ed905557a4d98c4ba00959f", "score": "0.68549144", "text": "drawAxes() {\n this.context.fillStyle = DEFAULT_PLOT_PARAMETERS.color;\n\n if(this.drawYAxis) {\n assert(this.range.x.min <= 0 && this.range.y.max >= 0,\n 'Cannot draw the y axis as it is out of range.')\n\n let labelWidth = this.context.measureText('y').width;\n\n //has to be fudged to look right\n let labelPosY = 0;\n let labelPosX = this.center.x - (labelWidth / 2);\n this.context.fillText('y', labelPosX, labelPosY);\n\n this._drawLine(this.center.x, LABELHEIGHT + AXIS_ARROW_LENGTH, this.center.x,\n this.height, 2);\n\n this.context.beginPath();\n this.context.lineWidth = 1;\n this.context.moveTo(this.center.x, LABELHEIGHT);\n this.context.lineTo(this.center.x + 5, LABELHEIGHT + AXIS_ARROW_LENGTH);\n this.context.lineTo(this.center.x - 5, LABELHEIGHT + AXIS_ARROW_LENGTH);\n this.context.fill();\n\n if(this.drawYUnits) {\n let stepSize = this.stepY;\n let i = stepSize.times(Math.ceil(this.drawRegion.bottom / stepSize.approx));\n for(; i.lessThan(this.drawRegion.top); i = i.plus(stepSize)) {\n if(!(i.equal(0))) {\n let yPos = this.center.y - i.approx * this.unitSize.y;\n\n this._drawLine(this.center.x, yPos, this.center.x + 6, yPos, 2);\n i.draw(this.context, {top: yPos, right: this.center.x});\n\n if(this.drawGrid) {\n this._drawLine(0, yPos, this.width - LABELWIDTH, yPos, 1,\n [5, 5]);\n }\n }\n }\n }\n }\n\n if(this.drawXAxis) {\n assert(this.range.y.min <= 0 && this.range.y.max >= 0,\n 'Cannot draw the x axis as it is out of range.')\n\n let labelWidth = this.context.measureText('x').width;\n\n //has to be fudged to look right\n let labelPosY = this.center.y - FONTSIZE / 2;\n let labelPosX = this.width - (LABELWIDTH / 2) - (labelWidth / 2);\n this.context.fillText('x', labelPosX, labelPosY);\n\n this._drawLine(0, this.center.y, this.width - LABELWIDTH - AXIS_ARROW_LENGTH, this.center.y, 2);\n\n this.context.beginPath();\n this.context.lineWidth = 1;\n this.context.moveTo(this.width - LABELWIDTH, this.center.y);\n this.context.lineTo(this.width - LABELWIDTH - AXIS_ARROW_LENGTH, this.center.y + 5);\n this.context.lineTo(this.width - LABELWIDTH - AXIS_ARROW_LENGTH, this.center.y - 5);\n this.context.fill();\n\n if(this.drawXUnits) {\n let stepSize = this.stepX;\n let xMin = this.range.x.min\n let i = stepSize.times(Math.ceil(this.drawRegion.left / stepSize.approx));\n for(; i.lessThan(this.drawRegion.right); i = i.plus(stepSize)) {\n if(!(i.equal(0))) {\n let xPos = this.center.x + i.approx * this.unitSize.x;\n\n //are any of the labels fractions? if step is an integer,\n //or an integral multiple of pi, then no.\n if(stepSize.approx === parseInt(stepSize.approx)) {\n var areFractions = false;\n } else {\n let stepSizeDivPi = stepSize.divide(new Rational(\"pi\"));\n\n if(stepSizeDivPi.approx === parseInt(stepSizeDivPi.approx)) {\n var areFractions = false;\n } else {\n var areFractions = true;\n }\n }\n\n this._drawLine(xPos, this.center.y, xPos, this.center.y - 6, 2);\n\n let labelYPos = this.center.y + MARKING_PADDING_TOP;\n if(i.greaterThan(0)) {\n i.draw(this.context, {top: labelYPos, left: xPos}, areFractions);\n } else if(i.lessThan(0)) {\n i.draw(this.context, {top: labelYPos, right: xPos}, areFractions);\n }\n\n if(this.drawGrid) {\n this._drawLine(xPos, LABELHEIGHT, xPos, this.height, 1,\n [5, 5]);\n }\n }\n }\n }\n }\n\n //draw origin\n if(this.drawOrigin) {\n let origin = new Rational(0);\n origin.draw(this.context, {top: this.center.y, right: this.center.x});\n }\n }", "title": "" }, { "docid": "9f35c6518350b7d08f82295f922f9c28", "score": "0.6839307", "text": "function draw() {\n\t\t\tdrawGrid();\n\t\t\tdrawLabels();\n\t\t\tfor(var i = 0; i < series.length; i++){\n\t\t\t\tdrawSeries(series[i]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "26db8b3072cb2863c15a067993ecf6ca", "score": "0.6815462", "text": "function drawAxes() {\n\n var h = canvasGraph.height\n var w = canvasGraph.width\n\n // +X axis\n ctxGraph.beginPath();\n ctxGraph.strokeStyle = \"black\";\n ctxGraph.lineWidth = 1;\n ctxGraph.moveTo(5, h - 5);\n ctxGraph.lineTo(w, h - 5);\n ctxGraph.stroke();\n\n // +Y axis\n ctxGraph.beginPath();\n ctxGraph.strokeStyle = \"black\";\n ctxGraph.lineWidth = 1;\n ctxGraph.moveTo(5, 0);\n ctxGraph.lineTo(5, h - 5);\n ctxGraph.stroke();\n\n var delta = 30;\n // Y axis tick marks\n for (var i = 1; h - i * delta > 0; i++) {\n ctxGraph.beginPath();\n ctxGraph.moveTo(1, h - (i * delta));\n ctxGraph.lineTo(9, h - (i * delta));\n ctxGraph.stroke();\n }\n\n var delta = 30;\n // X axis tick marks\n for (var i = 1; i * delta < w; i++) {\n ctxGraph.beginPath();\n ctxGraph.moveTo((i * delta), h - 9);\n ctxGraph.lineTo((i * delta), h + 1);\n ctxGraph.stroke();\n }\n\n}", "title": "" }, { "docid": "e91c68301e6ec37da90b5b61bdd3c259", "score": "0.6805284", "text": "draw_axis(){\n //Y-axis and horizontal grid\n let axis_left = d3.axisLeft(this.y)\n .ticks(this.TICKS)\n .tickFormat(d => d)\n\n this.svg.append('g')\n .attr('transform', `translate(${this.X0}, 0)`)\n .style('font', '14px times')\n .attr('class', 'axis_y')\n .call(axis_left)\n\n let h_grid = d3.axisLeft(this.y)\n .tickSize(-this.W + this.X0)\n .tickFormat('')\n .ticks(this.TICKS)\n\n\n\n this.svg.append('g')\n .attr('transform', `translate(${this.X0}, 0)`)\n .attr('class', 'h_grid')\n .call(h_grid)\n\n\n //X-axis and vertical grid\n this.axis_bottom = d3.axisBottom(this.x)\n .ticks(10)\n .tickFormat(d => 2018 - d)\n\n this.axis_x = this.svg.append('g')\n .style('font', '14px times')\n .attr('transform', `translate(0, ${this.AXIS_HEIGHT})`)\n .attr('class', 'axis_x')\n .call(this.axis_bottom)\n\n\n\n }", "title": "" }, { "docid": "721730b623fbb1b3ffd98f403ce01b88", "score": "0.6783613", "text": "drawGrid() {\n strokeWeight(1);\n stroke(125);\n for(var c = 0; c < this.cols; c++) {\n line(c * this.cellWidth, 0, c * this.cellWidth, height);\n }\n\n for(var r = 0; r < this.rows; r++) {\n line(0, this.cellHeight * r,\n width, this.cellHeight * r);\n }\n }", "title": "" }, { "docid": "02526a4a18de7bb7792067f2197fe8f3", "score": "0.67489916", "text": "function drawGrid() {\n\t\tcontext.strokeStyle = '#000000';\n\t\tfor ( var x = 0; x < theCanvas.width; x = x + gridSize) {\n\t\t\tfor ( var y = 0; y < theCanvas.height; y = y + gridSize) {\n\t\t\t\tcontext.strokeRect(x, y, gridSize, gridSize);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "45adb506bc28fb8d7f625a94e40d1673", "score": "0.6673483", "text": "function drawAxes(g) {\n var ctx = g.getContext(\"2d\");\n ctx.beginPath();\n ctx.moveTo(MARGIN, g.height-MARGIN);\n ctx.lineTo(g.width-MARGIN, g.height-MARGIN);\n ctx.moveTo(MARGIN, g.height-MARGIN);\n ctx.lineTo(MARGIN, MARGIN);\n ctx.strokeStyle = \"#ddd\";\n ctx.lineWidth = 1;\n ctx.stroke();\n\n var xlbl = $(g).data(\"xlabel\");\n ctx.textAlign = \"center\";\n ctx.font = \"bold 20px sans-serif\";\n ctx.textBaseline = \"middle\";\n ctx.fillStyle = \"#ddd\";\n ctx.fillText(xlbl, g.width/2, g.height-MARGIN/2);\n\n var ylbl = $(g).data(\"ylabel\");\n ctx.textAlign = \"center\";\n ctx.font = \"bold 20px sans-serif\";\n ctx.textBaseline = \"middle\";\n ctx.fillStyle = \"#ddd\";\n ctx.save();\n ctx.translate(MARGIN/2, g.height/2);\n ctx.rotate(-Math.PI/2);\n ctx.fillText(ylbl, 0, 0);\n ctx.restore();\n}", "title": "" }, { "docid": "3a51a31a725b17e5bb78529f75a57fb9", "score": "0.66729337", "text": "function draw_grid(){\n //background(254);\n for (var x = 0; x < width; x +=GridSize*Zoom) {\n\t\tfor (var y = 0; y < height; y += GridSize*Zoom) {\n //background(234);\n\t\t\tstroke(204, 102, 0);\n\t\t\tstrokeWeight(0.04);\n line(-x, -height, -x, height);\n line(x, -height, x, height);\n line(-width, y, width, y);\n line(-width, -y, width, -y);\n\t\t}\n }\n}", "title": "" }, { "docid": "ca791803bb4c9af3d29bd2c42b7c8a32", "score": "0.6647319", "text": "function drawGrid() {\n jaws.context.save();\n jaws.context.strokeStyle = \"rgba(5,119,17,0.7)\";\n jaws.context.beginPath();\n\n for (var x = 0; x < m_viewport.max_x; x += cell_size) {\n jaws.context.moveTo(x - m_viewport.x, 0);\n jaws.context.lineTo(x - m_viewport.x, jaws.height);\n }\n for (var y = 0; y < m_viewport.max_y; y += cell_size) {\n jaws.context.moveTo(0, y - m_viewport.y);\n jaws.context.lineTo(jaws.width, y - m_viewport.y);\n }\n\n jaws.context.closePath()\n jaws.context.stroke()\n jaws.context.restore()\n }", "title": "" }, { "docid": "83ff058af9da2be31a1b4790491feb4f", "score": "0.6644541", "text": "function drawGrid() {\n noFill();\n stroke(230, 50);\n strokeWeight(2);\n\n for (let j = 0; j < config.numRows; j++) {\n for (let i = 0; i < config.numCols; i++) {\n rect(i * colWidth, j * rowHeight, colWidth, rowHeight)\n }\n }\n }", "title": "" }, { "docid": "8e0dc34d96e1578f660936e28aa5aed8", "score": "0.6632355", "text": "function grid(ctx, color, style,d,axisx,axisy) {\n var w = ctx.canvas.width;\n var h = ctx.canvas.height;\n\n //creates dotted grid for the x direction\n\n if(axisx == undefined && axisy == undefined){\n if (style == \"dotx\") {\n for (var x = d; x <= h; x += d) {\n //line dash makes small dots\n ctx.setLineDash([1, 5]);\n \n lines(ctx, color, 0, x, w, x, 1);\n }\n }\n \n //doty does not work yet\n else if (style == \"doty\") {\n for (var y = d; y <= w; y +=d) {\n ctx.setLineDash([1, 5]);\n lines(ctx, color, 0,y , w/2, y, 1);\n }\n }\n //todo: add dot both ways\n else if (style == \"grid\") {\n\n for (var x = d; x <= w; x +=d) {\n lines(ctx, color, 0, x, w, x, 1);\n }\n\n for (var y = d; y <= w; y +=d) {\n lines(ctx, color, y, 1, y, w, 1);\n }\n }\n //creates grid only in y direction\n else if (style == \"gridy\") {\n for (var x = 0; x <= w; x +=d) {\n lines(ctx, color, x, 0, x, w, 2);\n }\n }\n \n //creates grid only in x direction\n else if (style == \"gridx\") {\n for (var y = 0; y <= w; y +=d) {\n lines(ctx, color, 0, y, w, y, 2);\n }\n }\n }\n\n }", "title": "" }, { "docid": "550dab54c5f5fdc2c7e1713ac2783c41", "score": "0.6613037", "text": "function drawGrid ( ctx ) {\n\n var yM = FIELD_HEIGHT,\n xM = FIELD_WIDTH,\n y, x;\n\n for ( y = 0; y < yM; y += ELEMENT_SIZE ) {\n\n ctx.moveTo( y, 0 );\n ctx.lineTo( y, xM );\n\n for ( x = 0; x < xM; x += ELEMENT_SIZE ) {\n\n ctx.moveTo( 0, x );\n ctx.lineTo( yM, x );\n }\n }\n\n ctx.stroke();\n }", "title": "" }, { "docid": "8a6395a4618b78ec1027c5b864990565", "score": "0.6606274", "text": "function drawGrids() {\n context.strokeStyle = \"rgba(0,255,0,255)\";\n context.lineWidth = 1;\n context.beginPath();\n context.moveTo(0,0);\n context.lineTo(screenWidth, screenHeight);\n context.moveTo(0,screenHeight);\n context.lineTo(screenWidth, 0);\n context.stroke();\n}", "title": "" }, { "docid": "e3d2fbc7f1886a2474ab087eeea3e1d2", "score": "0.65929717", "text": "function axis(ctx, color, axisx, axisy, px, d1,py, d2) {\n var w = ctx.canvas.width;\n var h = ctx.canvas.height;\n\n ctx.strokeStyle = color;\n\n //if axis function is below grid function\n // and grid is dotted this removes the axis from\n // dotted back to normal line\n ctx.setLineDash([0, 0]);\n\n //if the axis is undefined in both direction creates it at the far left corner like a normal graph\n if (axisy == undefined && axisx == undefined) {\n lines(ctx, 1, h - 1, w - 1, h - 1, 1);\n lines(ctx, 1, 1, 1, h - 1, 1);\n }\n\n //the same as above\n else if (axisx == w && axisy == h) {\n lines(ctx, 1, axisy - 1, axisx - 1, axisy - 1, 1);\n lines(ctx, 1, 1, 1, axisy - 1, 1);\n }\n\n //if axisx and axis y are numbers the axis will be created inwards to the number that has been created.\n else if (typeof axisx == \"number\" && typeof axisy == \"number\") {\n lines(ctx, 0, axisy, w, axisy, 3);\n lines(ctx, axisx, 0, axisx, h, 3);\n }\n\n // if axisy and axisx are inputed as middle the x and y axis will be created in the center of the canvas\n else if (axisx == \"middle\" && axisy == \"middle\") {\n axisx = w / 2;\n axisy = h / 2;\n\n lines(ctx, h / 2, w, h / 2, 2);\n\n lines(ctx, w / 2, w / 2, h, 2);\n }\n\n // creates the x for the creation of axis points as pf now only at the positive x axis\n if (px == \"px\" && py == \"py\") {\n let i = axisx;\n let j = 0;\n let k = 0;\n let l = 0;\n\n //creates positive x axis points\n for (i = axisx; i <= w; i += d1) {\n lines(ctx, i, axisy, i, axisy + 10, 1);\n }\n\n //create negative y axis points\n for (l = axisy; l >= 0; l -= d2) {\n lines(ctx, axisx, l, axisx - 10, l, 1);\n }\n\n //creates positive y axis points\n for (j = axisy; j <= h; j += d2) {\n lines(ctx, axisx - 10, j, axisx, j, 1);\n }\n //creates negative x axis points\n for (k = axisx; k >= 0; k -= d1) {\n lines(ctx, k, axisy, k, axisy + 10, 1);\n }\n }\n\n else if(px =='px' && py == undefined){\n let i = 0;\n let k = 0;\n //creates positive x axis points\n for (i = axisx; i <= w; i += d1) {\n lines(ctx, i, axisy, i, axisy + 10, 1);\n }\n\n //creates negative x axis points\n for (k = axisx; k >= 0; k -= d1) {\n lines(ctx, k, axisy, k, axisy + 10, 1);\n }\n }\n}", "title": "" }, { "docid": "5f9a3d1d8687c2d0f2fd63124a1b725c", "score": "0.6588751", "text": "drawGrid() {\n translate(this.xOffset, this.yOffset);\n background(color('black'));\n for (let x = 0; x <= this.width; x++) {\n\n for (let y = 0; y <= this.height; y++) {\n fill(color('white'))\n strokeWeight(1);\n rect(x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n\n // Draw the position of the entry\n fill(color('gray'));\n if (this.gridLayout[x][y] != null)\n text(x + \",\" + y + \"\\n\" + this.gridLayout[x][y].name, x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n else\n text(x + \",\" + y + \"\\n\", x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n }\n }\n }", "title": "" }, { "docid": "6b77163b42a56bae8b4c9292dfb81b1e", "score": "0.65812105", "text": "render() {\n fill(100);\n noStroke();\n push();\n translate(this.x, this.y); // translate the coordinates to the grid cell\n this.drawlines();\n pop();\n }", "title": "" }, { "docid": "39bfd4b9eed9113b4e116f5c0ebfcaae", "score": "0.6569861", "text": "function drawGrid() {\n\t\tcontext.fillStyle = GRID_COLOR;\n\t\tfor (var i = GRID_CELL_WIDTH; i < canvas.width; i = i + GRID_CELL_WIDTH) {\n\t\t\tfor (var j = GRID_CELL_WIDTH; j < canvas.height; j = j + GRID_CELL_WIDTH) {\n\t\t\t\tcontext.fillRect(i, j, 1, 1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8d7b30ab57437ed8af63165817e845de", "score": "0.65598685", "text": "function plotGrid() {\n for (let i = 0; i < grid.length; i++) {\n for (let j = 0; j < grid[i].length; j++) {\n plotRectangle(i, j);\n }\n }\n }", "title": "" }, { "docid": "24e4e16bcee08d3c3c28795211be0c44", "score": "0.6556037", "text": "function drawAxis() {\n var x, y;\n\n if (!isNaN(+opts.axis)) {\n x = 0;\n y = Math.round(getYForValue(opts.axis));\n\n ctx.lineWidth = 1;\n ctx.lineJoin = \"round\";\n ctx.strokeStyle = \"#bbb\";\n ctx.moveTo(x, y);\n\n while (x < width) {\n ctx.lineTo(x + 5, y);\n ctx.moveTo(x + 8, y);\n x += 8;\n }\n\n ctx.stroke();\n }\n }", "title": "" }, { "docid": "7de4fdf28ad830e706556a3282e37d72", "score": "0.65465844", "text": "drawAxes(ctx, num_pts, width, height, ymin, ymax, num_tics)\n{\n var indx;\n var x, y, x1, x2, y1, y2;\n var fm;\n var max_bars = this.calcMaxBars();\n\n var offset3D = 0;\n if ( this.threeDAxes == true )\n {\n offset3D = this.calcBarWidth(max_bars)/this.plotData.length;\n if ( offset3D > this.YTOP_OFFSET )\n offset3D = this.YTOP_OFFSET - 1.0;\n }\n\n ctx.strokeStyle = this.axesColor;\n ctx.lineWidth = 1;\n\n//ZZZZ Set stroke width!!!\n ctx.beginPath();\n ctx.moveTo(this.xTop, this.yOrg);\n ctx.lineTo(this.xOrg, this.yOrg);\n ctx.lineTo(this.xOrg, this.yTop);\n ctx.stroke();\n\n if ( this.threeDAxes == true )\n {\n var xf, yf;\n\n // Draw left corner...\n var x1Points = new Array(this.xOrg, this.xOrg+offset3D,\n this.xOrg+offset3D, this.xOrg, this.xOrg);\n var y1Points = new Array(this.yOrg, this.yOrg-offset3D,\n this.yTop-offset3D, this.yTop, this.yOrg);\n\n ctx.beginPath();\n xf = x1Points[0];\n yf = y1Points[0];\n ctx.moveTo(xf, yf);\n\n for ( var index=1; index<x1Points.length; index++ )\n {\n xf = x1Points[index];\n yf = y1Points[index];\n ctx.lineTo(xf, yf);\n }\n\n ctx.fillStyle = this.GRAY;\n ctx.fill();\n\n ctx.strokeStyle = this.axesColor;\n ctx.stroke();\n\n // Draw bottom plate rect...\n var x2Points = new Array(this.xOrg, this.xOrg+offset3D, this.xTop+offset3D, this.xTop, this.xOrg);\n var y2Points = new Array(this.yOrg, this.yOrg-offset3D, this.yOrg-offset3D, this.yOrg, this.yOrg);\n\n ctx.beginPath();\n xf = x2Points[0];\n yf = y2Points[0];\n ctx.moveTo(xf, yf);\n\n for ( var index=1; index<x2Points.length; index++ )\n {\n xf = x2Points[index];\n yf = y2Points[index];\n ctx.lineTo(xf, yf);\n }\n\n ctx.fillStyle = this.GRAY;\n ctx.fill();\n\n ctx.strokeStyle = this.axesColor;\n ctx.stroke();\n\n // Draw plot background\n var x2Points = new Array(this.xOrg+offset3D, this.xOrg+offset3D,\n this.xTop+offset3D, this.xTop+offset3D, this.xOrg+offset3D);\n var y2Points = new Array(this.yOrg-offset3D, this.yTop-offset3D,\n this.yTop-offset3D, this.yOrg-offset3D, this.yOrg-offset3D);\n\n ctx.beginPath();\n xf = x2Points[0];\n yf = y2Points[0];\n ctx.moveTo(xf, yf);\n\n for ( var index=1; index<x2Points.length; index++ )\n {\n xf = x2Points[index];\n yf = y2Points[index];\n ctx.lineTo(xf, yf);\n }\n\n ctx.fillStyle = this.GRAY;\n ctx.fill();\n\n ctx.strokeStyle = this.axesColor;\n ctx.stroke();\n }\n\n ctx.strokeStyle = this.BLACK;\n\n // Draw the X axis labels\n var xval = this.xAxisStartValue;\n for ( indx=0; indx<num_pts; indx++ )\n {\n x = this.xScale*indx + this.xOrg + this.xScale/2.0;\n ctx.beginPath();\n ctx.moveTo(x, this.yOrg);\n ctx.lineTo(x, this.yOrg + 10.0);\n ctx.stroke();\n\n if ( this.vertGrid == true )\n {\n ctx.beginPath();\n ctx.moveTo(x + offset3D, this.yOrg - offset3D);\n ctx.lineTo(x + offset3D, this.yTop - offset3D);\n ctx.stroke();\n }\n\n if ( this.xAxisLabels == null || this.xAxisLabels.length == 0 ) // Draw the index number \n {\n ctx.drawTextCenter(this.xLabelsFont, this.xLabelsFontSize,\n x, this.yOrg+12+this.xLabelsFontSize, xval + \"\");\n\n xval += this.xAxisIncrement;\n }\n else // User passed long string based labels\n {\n try\n {\n var label = this.xAxisLabels[indx];\n\n if ( this.rotate_xflag == true && label != null )\n {\n ctx.save();\n ctx.translate(x-3, this.yOrg+12);\n ctx.rotate(Math.PI/2);\n var font_size = this.xLabelsFontSize;\n ctx.drawText(this.xLabelsFont, font_size, 0, 0, label);\n ctx.restore();\n }\n else if ( label != null )\n {\n//ZZZ TODO, See if label longer than width, cut/reduce/etc...\n//ZZZ Move every other label down? Use more space?\n//ZZZ Or if more than one word, do a breakline, draw second below it...\n var nlab;\n var nlab2 = \"\";\n if ( label.length > 7 )\n {\n if ( label.indexOf(\" \") == 5 )\n {\n nlab = label.substring(0, 5);\n nlab2 = label.substring(5);\n }\n else\n {\n nlab = label.substring(0, 7);\n nlab2 = label.substring(7);\n }\n }\n else\n nlab = label;\n\n var font_size = this.xLabelsFontSize;\n var llen = ctx.measureText(this.xLabelsFont, font_size, nlab);\n while ( ctx.measureText(this.xLabelsFont, font_size, nlab) > this.xScale &&\n font_size > 4 )\n font_size--;\n\n ctx.drawTextCenter(this.xLabelsFont, font_size,\n x, this.yOrg+12+font_size, nlab);\n\n if ( nlab2 != \"\" )\n {\n ctx.drawTextCenter(this.xLabelsFont, font_size,\n x, this.yOrg+12+font_size+font_size, nlab2);\n }\n }\n }\n catch ( ex )\n {\n if ( this.DEBUG == true )\n alert(\"Error: Label at \" + indx + \" -> \" + ex);\n }\n }\n }\n\n // Calc the Y axis labels\n var yoff = (this.yOrg-this.yTop)/num_tics;\n var yval = (ymax-ymin)/num_tics;\n\n var ytxt, label, ynum;\n\n // Draw Y Axis tics && labels\n for ( indx=0; indx<=num_tics; indx++ )\n {\n y = this.yOrg - yoff*indx;\n\n ctx.beginPath();\n ctx.moveTo(this.xOrg, y);\n ctx.lineTo(this.xOrg - 10.0, y);\n ctx.stroke();\n\n if ( this.horzGrid == true )\n {\n ctx.beginPath();\n ctx.moveTo(this.xOrg + offset3D, y - offset3D);\n ctx.lineTo(this.xTop + offset3D, y - offset3D);\n ctx.stroke();\n }\n\n var xpos = this.xOrg - 12;\n var ypos = y + ctx.fontHeight(this.yLabelsFont, this.yLabelsFontSize)/2 - 2;\n\n if ( this.yAxisLabels == null || this.yAxisLabels.length == 0 ) // Draw the index number \n {\n ytxt = yval*indx + ymin;\n\n//ZZZZ rotate_yflag?\n\n if ( this.plotType == this.PERCENT )\n {\n ynum = ytxt.toFixed(0);\n ctx.drawTextRight(this.yLabelsFont, this.yLabelsFontSize, xpos, ypos, ynum + \" %\");\n }\n else\n {\n if ( ytxt >= 1.0 )\n ynum = ytxt.toFixed(1);\n else\n ynum = ytxt.toFixed(2);\n ctx.drawTextRight(this.yLabelsFont, this.yLabelsFontSize, xpos, ypos, ynum + \" \");\n }\n }\n else\n {\n label = this.yAxisLabels[indx];\n ctx.drawTextRight(this.yLabelsFont, this.yLabelsFontSize, xpos, ypos, label);\n }\n }\n\n if ( this.threeDAxes == false )\n {\n if ( this.horzGrid == true ) // Add border to right side\n {\n ctx.beginPath();\n ctx.moveTo(this.xTop, this.yOrg);\n ctx.lineTo(this.xTop, this.yTop);\n ctx.stroke();\n }\n else if ( this.vertGrid == true ) // Add border to top\n {\n ctx.beginPath();\n ctx.moveTo(this.xOrg, this.yTop);\n ctx.lineTo(this.xTop, this.yTop);\n ctx.stroke();\n }\n }\n\n // Draw plot titles\n if ( this.plotTitle != null && this.plotTitle.length > 0 )\n {\n var title_strs = this.plotTitle.split(\"|\");\n var ypos = ctx.fontHeight(this.titleFont, this.titleFontSize) + 4;\n\n for ( var indx=0; indx<title_strs.length; indx++ )\n {\n//ZZZ if 3D bars subtract 3D offset from ypos\n ctx.drawTextCenter(this.titleFont, this.titleFontSize,\n width/2, ypos, title_strs[indx]);\n ypos += (ctx.fontHeight(this.titleFont, this.titleFontSize) + 4);\n }\n }\n\n // Draw X axis title\n if ( this.xAxisTitle != null && this.xAxisTitle.length > 0 )\n {\n var xpos = this.xOrg + this.plotWidth/2;\n var ypos = height - 4;\n\n ctx.drawTextCenter(this.xAxisFont, this.xAxisFontSize, xpos, ypos, this.xAxisTitle);\n }\n\n // Draw Y axis title\n if ( this.yAxisTitle != null && this.yAxisTitle.length > 0 )\n {\n //ZZZZctx.save();\n //ZZZZvar tr = ctx.getTransform();\n //ZZZZ//ctx.translate(fm.getHeight()+2 ,\n //ZZZZctx.translate(fm.getAscent()+2, this.yOrg-(this.plotHeight/2) +\n //ZZZZ fm.stringWidth(this.yAxisTitle)/2);\n //ZZZZctx.rotate(3*Math.PI/2);\n //ZZZZctx.drawText(this.yAxisFont, this.yAxisFontSize, 0, 0, yAxisTitle);\n //ZZZZctx.rotate(-3*Math.PI/2);\n //ZZZZctx.setTransform(tr);\n //ZZZZctx.restore();\n }\n}", "title": "" }, { "docid": "06e39d44ad7f75f4cdf4a8256269a2e9", "score": "0.65140194", "text": "function drawGrid() {\n var bw = 625;\n var bh = 625;\n\n // +1's needed for right border consistency\n var cw = bw + 1; \n var ch = bh + 1;\n\n for (var x = 0; x <= bw; x += 25) {\n ctx.moveTo(0.5 + x, 0);\n ctx.lineTo(0.5 + x, bh);\n }\n \n for (var x = 0; x <= bh; x += 25) {\n ctx.moveTo(0, 0.5 + x);\n ctx.lineTo(bh, 0.5 + x);\n }\n\n ctx.strokeStyle = \"grey\";\n ctx.stroke();\n}", "title": "" }, { "docid": "c714984f68b2641ff98bac8b7ce94e7f", "score": "0.65123826", "text": "setAxis() {\n const yMidPoint = this.canvas.width / 2,\n xMidPoint = this.canvas.height / 2;\n const ymarkers = this.canvas.height / 20,\n xmarkers = this.canvas.width / 20;\n\n for (let n = 0; n <= this.canvas.height; n = n + ymarkers) {\n this.ctx.fillRect(yMidPoint, parseFloat(n.toFixed(2)), 1, 1);\n }\n for (let n = 0; n <= this.canvas.width; n = n + xmarkers) {\n this.ctx.fillRect(parseFloat(n.toFixed(2)), xMidPoint, 1, 1);\n }\n }", "title": "" }, { "docid": "1c8996fb2da06f3faa4baead9d0dc20c", "score": "0.64782", "text": "function drawGrid() {\r\n var gridOptions = {\r\n majorLines: {\r\n separation: majorSeperation,\r\n color: \"#d3d3d3\",\r\n },\r\n }\r\n ctx.clearRect(0, 0, cnv.width, cnv.height)\r\n cnv.width = canvasWidth\r\n cnv.height = canvasHeight\r\n drawGridLines(cnv, gridOptions.majorLines)\r\n\r\n return\r\n}", "title": "" }, { "docid": "9102ef549560b1eaf1f96f892d42e226", "score": "0.64777416", "text": "function drawGrid() { \n\n//to clear the canvas\nctx.fillStyle = \"#37474F\";\nctx.fillRect(0, 0, w, h);\n\nfor(var i = 0;i<=h/box ;i++) {\n //vertical lines\n ctx.setLineDash([1, 0.5]); \n ctx.beginPath(); \n ctx.strokeStyle = \"#efefef\";\n ctx.moveTo(0,box*i); \n ctx.lineTo(w,box*i); \n ctx.stroke();\n ctx.closePath();\n \n }\nfor(var i = 0;i<=w/box ;i++) {\n //horizontal lines \n ctx.beginPath(); \n ctx.strokeStyle = \"#efefef\";\n ctx.moveTo(box*i,0); \n ctx.lineTo(box*i,h); \n ctx.stroke();\n} \n\n}", "title": "" }, { "docid": "b99d8f1e0eb25957b32d0eed14bcf77f", "score": "0.6456371", "text": "function createAxes() {\n //create x axis svg\n xAxisSVG = diagramG.append('g')\n .style('fill', 'none')\n .style('shape-rendering', 'crispEdges')\n .attr('transform', 'translate(0,' + (height - margin.bottom - margin.top) + ')')\n .attr('class', 'eve-x-axis')\n .call(xAxis);\n\n //create y axis left svg\n yAxisSVG = diagramG.append('g')\n .style('fill', 'none')\n .style('shape-rendering', 'crispEdges')\n .attr('transform', 'translate(0)')\n .attr('class', 'eve-y-axis')\n .call(yAxis);\n\n //set axes styling\n updateAxisStyle();\n }", "title": "" }, { "docid": "3f52a48602dcf5cfe2e3d85f824bd780", "score": "0.6450409", "text": "function appendAxes() {\n graphImg\n .append(\"g\")\n .call(xAxis)\n .attr(\"class\", \"xAxis\")\n .attr(\n \"transform\",\n \"translate(0,\" + (displayHeight - margin - labelArea) + \")\"\n );\n graphImg\n .append(\"g\")\n .call(yAxis)\n .attr(\"class\", \"yAxis\")\n .attr(\"transform\", \"translate(\" + (margin + labelArea) + \", 0)\");\n }", "title": "" }, { "docid": "f4b15283fac37c81de255fdc0f2da269", "score": "0.64498067", "text": "function drawAxes() {\n return Axes.draw(gd, graphWasEmpty ? '' : 'redraw');\n }", "title": "" }, { "docid": "dd99f27d462751605b1640f97cc66627", "score": "0.64393115", "text": "function drawGrid() {\n\t\tvar gridS = gridSize,\n\t\t\tcanvasTop = Vector2.ScreenToWorld(Vector2.Zero),\n\t\t\tcanvasBottom = Vector2.ScreenToWorld(new Vector2(canvas.width, canvas.height)),\n\t\t\tcanvasMiddle = canvasTop.lerp(canvasBottom, 0.5);\n\n\n\t\tctx.beginPath();\n\t\tctx.strokeStyle = colors.grid;\n\t\tctx.lineWidth = gridThickness;\n\t\t//draw horizontal lines\n\t\tfor (var middleY = canvasMiddle.y, n = 0; middleY + gridS * n <= canvasBottom.y; n++) {\n\n\t\t\tvar y1 = middleY + gridS * n,\n\t\t\t\ty2 = middleY - gridS * n,\n\t\t\t\tscreenY1 = Vector2.WorldToScreen(new Vector2(0, y1)).y + offset.y % gridS,\n\t\t\t\tscreenY2 = Vector2.WorldToScreen(new Vector2(0, y2)).y + offset.y % gridS;\n\n\t\t\tctx.moveTo(0, screenY1);\n\t\t\tctx.lineTo(canvas.width, screenY1);\n\t\t\tctx.stroke();\n\n\t\t\tctx.moveTo(0, screenY2);\n\t\t\tctx.lineTo(canvas.width, screenY2);\n\t\t\tctx.stroke();\n\t\t}\n\t\tctx.beginPath();\n\t\tfor (var middleX = canvasMiddle.x, n = 0; middleX + gridS * n <= canvasBottom.x; n++) {\n\n\t\t\tvar x1 = middleX + gridS * n,\n\t\t\t\tx2 = middleX - gridS * n,\n\t\t\t\tscreenX1 = Vector2.WorldToScreen(new Vector2(x1, 0)).x + offset.x % gridS,\n\t\t\t\tscreenX2 = Vector2.WorldToScreen(new Vector2(x2, 0)).x + offset.x % gridS\n\n\t\t\tctx.moveTo(screenX1, 0);\n\t\t\tctx.lineTo(screenX1, canvas.width);\n\t\t\tctx.stroke();\n\n\t\t\tctx.moveTo(screenX2, 0);\n\t\t\tctx.lineTo(screenX2, canvas.width);\n\t\t\tctx.stroke();\n\t\t}\n\t}", "title": "" }, { "docid": "188d8164b651a0871e9c4325f9706d4d", "score": "0.6437792", "text": "DrawAxis()\n {\n ctx.save();\n ctx.beginPath();\n ctx.lineWidth = 10;\n ctx.strokeStyle = 'rgba(255, 0, 0, 1)';\n ctx.moveTo(0, 0);\n ctx.lineTo(screen.width, 0);\n ctx.stroke();\n\n ctx.beginPath();\n ctx.strokeStyle = 'rgba(0, 255, 0, 1)';\n ctx.moveTo(0, 0);\n ctx.lineTo(0, screen.height);\n ctx.stroke();\n ctx.restore();\n }", "title": "" }, { "docid": "5836916828ce6b42534706c10acd134b", "score": "0.64207494", "text": "function drawAxis() {\n let labelsBoxWidth = margin.left;\n svg.select('.x-axis-group.axis')\n .attr('transform', `translate(0, ${chartHeight})`)\n .call(xAxis);\n\n svg.select('.y-axis-group.axis')\n .call(yAxis);\n\n // adding the eyeball\n if(!isPrintMode) {\n svg.selectAll( '.y-axis-group.axis .tick' )\n .call( addVisibilityToggle );\n labelsBoxWidth = margin.left - yAxisPaddingBetweenChart - 30;\n }\n\n svg.selectAll('.y-axis-group.axis .tick text')\n .classed('child', function(d) {\n // lets us know it's a child element\n return data.find((o) => {\n return o.name === d;\n }).parent;\n })\n .classed('print-mode', isPrintMode)\n .on( 'mouseover', function( d ) {\n rowHoverOver(d);\n } )\n .on('mouseout', function(d) {\n rowHoverOut(d);\n })\n // move text right so we have room for the eyeballs\n .call(wrapText, labelsBoxWidth)\n .selectAll('tspan')\n .attr('font-size', getFontSize);\n\n // adding the down arrow for parent elements\n if(!isPrintMode) {\n svg.selectAll( '.y-axis-group.axis .tick' )\n .classed( 'expandable', function( d ) {\n // lets us know it's a parent element\n return data.find( ( o ) => {\n return o.name === d;\n } ).hasChildren;\n } )\n .call( addExpandToggle );\n }\n }", "title": "" }, { "docid": "f53c32176e612d2fb0b0b50ec625b790", "score": "0.64199924", "text": "function drawGrid() {\n for (let i = 0; i < canvas.width; i += gridSize) {\n ctx.beginPath()\n ctx.moveTo(i, 0)\n ctx.lineTo(i, canvas.height)\n ctx.strokeStyle = canvasGridColor\n ctx.stroke()\n }\n\n for (let i = 0; i < canvas.height + gridSize; i += gridSize) {\n ctx.beginPath()\n ctx.moveTo(0, i)\n ctx.lineTo(canvas.width, i)\n ctx.strokeStyle = canvasGridColor\n ctx.stroke()\n }\n}", "title": "" }, { "docid": "7db378ea2fa989c8158830a5c7bb3ef9", "score": "0.640788", "text": "function drawGrid(){\n\tvar obj = gridSize();\n\tvar canvas = document.getElementById('grid');\n\t\n\t//Adjust the workspace so that both canvases can fit into it\n\tvar gridCont = document.getElementById('grid_cont');\n\tgridCont.style.width = `${obj.colWidth * obj.cols+0.5}px`;\n\tgridCont.style.height = `${obj.rowHeight * obj.rows+0.5}px`;\n\t\n\tvar context = canvas.getContext('2d');\n\tcontext.scale(dpr,dpr);\n\t\n\t//Set the canvas size\n\tcanvas.width = (obj.colWidth * obj.cols+0.5)*dpr;\n\tcanvas.height = (obj.rowHeight*obj.rows+0.5)*dpr;\n\t\n\tcanvas.style.width = `${obj.colWidth * obj.cols+0.5}px`;\n\tcanvas.style.height = `${obj.rowHeight*obj.rows+0.5}px`;\n\tcontext.scale(dpr,dpr);\n\n\tcontext.lineWidth = 0.5;\n\t\n\tcontext.strokeStyle = \"#cccccc\";\n\n\t//Draw the vertical grid lines5\n\tfor (var i = 0; i<=obj.cols; i+=2) {\n\t\tcontext.strokeRect(obj.colWidth*i+0.5,0.5,obj.colWidth,canvas.height);\n\n\t}\n\t//draw horizontal lines\n\tfor (var j = 0; j<=obj.rows; j+=2){\n\t\tcontext.strokeRect(0.5,obj.rowHeight*j+0.5,canvas.width,obj.rowHeight);\n\n\t}\n\t\n\n}", "title": "" }, { "docid": "da31f27535adf9322ed9994a342b284b", "score": "0.63960546", "text": "addAxes () {\n }", "title": "" }, { "docid": "eeb211f7fbcd9f291e9a53ac5d7b167a", "score": "0.63909954", "text": "function drawGrid(){\n\t\tvar h = gameArea.canvas.height();\n\t\tvar w = gameArea.canvas.width();\n \n\n var paths = {\n strokeStyle : settings.gridColor,\n strokeWidth: .5,\n layer :true,\n name: 'grid'\n };\n \n var pathCount = 0;\n\t\tfor (var y = 0; y <= h; y += h/settings.rows) {\n pathCount++;\n paths[\"p\"+pathCount] = {\n type: 'line',\n x1: 0, y1: y,\n x2: w, y2: y\n };\n\t\t}\n\n\t\tfor (var x = 0; x <= w; x += w/settings.columns) {\n pathCount++;\n paths[\"p\"+pathCount] = {\n type: 'line',\n x1: x, y1: 0,\n x2: x, y2: h\n };\n\t\t}\n gameArea.canvas.drawPath(paths);\n\t}", "title": "" }, { "docid": "5ed5170153f1f082903509b4447ed14a", "score": "0.6374481", "text": "function drawAxes(){\n\td3.select(LRG1vLRG2)\n\t .append(\"rect\")\n\t .attr({\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: w,\n\t\t\theight: h,\n\t\t\tfill: \"white\",\n\t\t})\n\t .on(\"click\", function(d) {\n\t\t\tremovePlotPointsWithClass(\".selected\");\n\t \t\td3.select(\"#tooltip\")\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine1\")\n\t\t\t\t.text(\"\")\n\n\t\t\td3.select(\"#tooltip\")\t\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine2\")\n\t\t\t\t.text(\"\");\n\t\t});\n\td3.select(LRG2vQSO)\n\t .append(\"rect\")\n\t .attr({\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: w,\n\t\t\theight: h,\n\t\t\tfill: \"white\",\n\t\t})\n\t .on(\"click\", function(d) {\n\t\t\tremovePlotPointsWithClass(\".selected\");\n\t \t\td3.select(\"#tooltip\")\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine1\")\n\t\t\t\t.text(\"\")\n\n\t\t\td3.select(\"#tooltip\")\t\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine2\")\n\t\t\t\t.text(\"\");\n\t\t});\n\td3.select(SN2_G12vSN2_I12)\n\t .append(\"rect\")\n\t .attr({\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: w,\n\t\t\theight: h,\n\t\t\tfill: \"white\",\n\t\t})\n\t .on(\"click\", function(d) {\n\t\t\tremovePlotPointsWithClass(\".selected\");\n\t \t\td3.select(\"#tooltip\")\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine1\")\n\t\t\t\t.text(\"\")\n\n\t\t\td3.select(\"#tooltip\")\t\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine2\")\n\t\t\t\t.text(\"\");\n\t\t});\n\td3.select(RAvDEC)\n\t .append(\"rect\")\n\t .attr({\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: RAvDECwidth,\n\t\t\theight: h,\n\t\t\tfill: \"white\",\n\t\t})\n\t .on(\"click\", function(d) {\n\t\t\tremovePlotPointsWithClass(\".selected\");\n\t \t\td3.select(\"#tooltip\")\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine1\")\n\t\t\t\t.text(\"\")\n\n\t\t\td3.select(\"#tooltip\")\t\t\t\t\t\n\t\t\t\t.select(\"#selectedTooltipLine2\")\n\t\t\t\t.text(\"\");\n\t\t});\n\t//%LRG1v%LRG2\n\tvar xAxis= d3.svg.axis()\n\t\t\t\t\t .scale(xScaleLRG1vLRG2)\n\t\t\t\t\t .orient(\"bottom\");\n\tvar yAxis= d3.svg.axis()\n\t\t\t\t .scale(yScaleLRG1vLRG2)\n\t\t\t\t .orient(\"left\");\n\t/*axes*/\n\td3.select(LRG1vLRG2).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(0,\" + (h-(3.5 * padding)) + \")\",\n\t\t})\n\t .call(xAxis);\n\n\td3.select(LRG1vLRG2).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(\" + (4.5 * padding) + \",0)\",\n\t\t})\n\t .call(yAxis);\n\n\t/*label x-axis*/\n\td3.select(LRG1vLRG2).append(\"text\")\n\t .attr(\"class\", \"x label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", w /2 )\n\t .attr(\"y\", h - 6)\n\t .text(\"%LRG1\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n\t/*label y-axis*/\n\td3.select(LRG1vLRG2).append(\"text\")\n\t .attr(\"class\", \"y label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", 0- h/2 )\n\t .attr(\"y\", 6)\n\t .attr(\"dy\", \".75em\")\n\t .attr(\"transform\", \"rotate(-90)\")\n\t .text(\"%LRG2\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n\t//%LRG2vQSO\n\n\tvar xAxis= d3.svg.axis()\n\t\t\t\t\t .scale(xScaleLRG2vQSO)\n\t\t\t\t\t .orient(\"bottom\");\n\tvar yAxis= d3.svg.axis()\n\t\t\t\t .scale(yScaleLRG2vQSO)\n\t\t\t\t .orient(\"left\");\n\t/*axes*/\n\td3.select(LRG2vQSO).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(0,\" + (h-(3.5 * padding)) + \")\",\n\t\t})\n\t .call(xAxis);\n\n\td3.select(LRG2vQSO).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(\" + (4.5 * padding) + \",0)\",\n\t\t})\n\t .call(yAxis);\n\n\t/*label x-axis*/\n\td3.select(LRG2vQSO).append(\"text\")\n\t .attr(\"class\", \"x label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", w /2 )\n\t .attr(\"y\", h - 6)\n\t .text(\"%QSO\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n\t/*label y-axis*/\n\td3.select(LRG2vQSO).append(\"text\")\n\t .attr(\"class\", \"y label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", 0- h/2 )\n\t .attr(\"y\", 6)\n\t .attr(\"dy\", \".75em\")\n\t .attr(\"transform\", \"rotate(-90)\")\n\t .text(\"%LRG2\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n\t//SN2_G12vSN2_I12\n\tvar xAxis= d3.svg.axis()\n\t\t\t\t\t .scale(xScaleSN2_G12vSN2_I12)\n\t\t\t\t\t .orient(\"bottom\");\n\tvar yAxis= d3.svg.axis()\n\t\t\t\t .scale(yScaleSN2_G12vSN2_I12)\n\t\t\t\t .orient(\"left\");\n\t/*axis*/\n\td3.select(SN2_G12vSN2_I12).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(0,\" + (h-(3.5 * padding)) + \")\",\n\t\t})\n\t .call(xAxis);\n\n\td3.select(SN2_G12vSN2_I12).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(\" + (4.5 * padding) + \",0)\",\n\t\t})\n\t .call(yAxis);\n\n\t/*label x-axis*/\n\td3.select(SN2_G12vSN2_I12).append(\"text\")\n\t .attr(\"class\", \"x label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", w /2 -25)\n\t .attr(\"y\", h - 6)\n\t .text(\"SN2_G1\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"blue\");\n\n\td3.select(SN2_G12vSN2_I12).append(\"text\")\n\t .attr(\"class\", \"x label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", w /2 + 25)\n\t .attr(\"y\", h - 6)\n\t .text(\"SN2_G2\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"#ff6600\");\n\n\t/*label y-axis*/\n\td3.select(SN2_G12vSN2_I12).append(\"text\")\n\t .attr(\"class\", \"y label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", 0- h/2 - 25)\n\t .attr(\"y\", 6)\n\t .attr(\"dy\", \".75em\")\n\t .attr(\"transform\", \"rotate(-90)\")\n\t .text(\"SN2_I1\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"blue\");\n\n\td3.select(SN2_G12vSN2_I12).append(\"text\")\n\t .attr(\"class\", \"y label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", 0- h/2 + 25)\n\t .attr(\"y\", 6)\n\t .attr(\"dy\", \".75em\")\n\t .attr(\"transform\", \"rotate(-90)\")\n\t .text(\"SN2_I2\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"#ff6600\");\n\n\t//RAvDEC\n\tvar xAxis= d3.svg.axis()\n\t\t\t\t\t .scale(xAxisScaleRAvDEC)\n\t\t\t\t\t .orient(\"bottom\");\n\tvar yAxis= d3.svg.axis()\n\t\t\t\t .scale(yScaleRAvDEC)\n\t\t\t\t .orient(\"left\");\n\t/*axes*/\n\td3.select(RAvDEC).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(0,\" + (h-(3.5 * padding)) + \")\",\n\t\t})\n\t .call(xAxis);\n\n\td3.select(RAvDEC).append(\"g\")\n\t .attr({\n\t \t\tclass: \"axis\",\n\t \t\ttransform: \"translate(\" + (4.5 * padding) + \",0)\",\n\t\t})\n\t .call(yAxis);\n\n\t/*label x-axis*/\n\td3.select(RAvDEC).append(\"text\")\n\t .attr(\"class\", \"x label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", RAvDECwidth /2 )\n\t .attr(\"y\", h - 6)\n\t .text(\"RA\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n\t/*label y-axis*/\n\td3.select(RAvDEC).append(\"text\")\n\t .attr(\"class\", \"y label\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"x\", 0- h/2 )\n\t .attr(\"y\", 6)\n\t .attr(\"dy\", \".75em\")\n\t .attr(\"transform\", \"rotate(-90)\")\n\t .text(\"DEC\")\n\t .attr(\"font-family\", \"sans-serif\")\n\t .attr(\"font-size\", \"11px\")\n\t .attr(\"fill\", \"black\");\n\n}", "title": "" }, { "docid": "5dc7953073ede3ed7e43adfb572ad9be", "score": "0.6360694", "text": "_drawGrid (canvasHeightPx) {\n this._ctx.strokeStyle = this._gridLineColor;\n\n for (var idx = 0; idx <= this._numColumns; ++idx) { \n var\n x = this._colWidthPx * idx + this._padLeftPx;\n\n this._ctx.beginPath();\n this._ctx.moveTo(x, this._rowHeightPx);\n this._ctx.lineTo(x, canvasHeightPx);\n this._ctx.stroke();\n this._ctx.closePath();\n } \n }", "title": "" }, { "docid": "6acc358bcefaba3d6a571ab1369af12e", "score": "0.63513166", "text": "function showAxes(ctx,axes) {\n\tvar x0=axes.x0, w=ctx.canvas.width;\n\tvar y0=axes.y0, h=ctx.canvas.height;\n\tvar xmin = 0;\n\tctx.beginPath();\n\tctx.strokeStyle = \"rgb(128,128,128)\"; \n\tctx.moveTo(xmin,y0); ctx.lineTo(w,y0); // X axis\n\tctx.moveTo(x0,0); ctx.lineTo(x0,h); // Y axis\n\tctx.stroke();\n}", "title": "" }, { "docid": "16a154824081be7918d7bd9c47f47221", "score": "0.63403255", "text": "function draw(ctx) {\n grid.draw();\n}", "title": "" }, { "docid": "0719ceff22d1e635c1cf8f8eb36cc68f", "score": "0.63292575", "text": "createAxes () {\n }", "title": "" }, { "docid": "f0fe123b69307b8d3f206996532a99c6", "score": "0.63056356", "text": "renderGrid() {\n this.gridCanvas.background(240);\n this.gridCanvas.fill(70, 70, 200);\n \n for (let w = 0; w < this.plotterGridSize.width; w++) {\n for (let h = 0; h < this.plotterGridSize.height; h++) {\n if (!this.plotterGrid.getCellState(w, h)) {\n continue;\n }\n\n this.gridCanvas.rect(w * this.cellSize, h * this.cellSize, this.cellSize, this.cellSize);\n }\n }\n\n this.lastRenderedCanvasStep = this.plotterGrid.getCurrentStep();\n }", "title": "" }, { "docid": "0a7b4092b7d4865524794eabc8e127e2", "score": "0.6305609", "text": "function drawAxes() {\n return Plotly.Axes.doTicks(gd, 'redraw');\n }", "title": "" }, { "docid": "0a7b4092b7d4865524794eabc8e127e2", "score": "0.6305609", "text": "function drawAxes() {\n return Plotly.Axes.doTicks(gd, 'redraw');\n }", "title": "" }, { "docid": "d7aaf4d1ee49c0c7d92d2c7ad8ba168c", "score": "0.628213", "text": "function drawAxes() {\n\t return Plotly.Axes.doTicks(gd, 'redraw');\n\t }", "title": "" }, { "docid": "c431358f93403d4668923aa9f69e4ee8", "score": "0.6280643", "text": "function setupGrid() {\n\n // Initialize the grid with all false values, i.e. the inactive state\n for (let i = 0; i < numRectanglesWide; i++) {\n grid.push([]);\n for (let j = 0; j < numRectanglesHigh; j++) {\n grid[i].push(false);\n }\n }\n\n ctx.strokeStyle = gridColor;\n ctx.lineWidth = gridThickness;\n\n const drawLine = (x1, y1, x2, y2) => {\n ctx.beginPath();\n ctx.moveTo(x1, y1);\n ctx.lineTo(x2, y2);\n ctx.stroke();\n };\n\n // Since we draw the lines on the left and top sides of each rectangle,\n // we need to use <= instead of < so that the last border is drawn\n\n // Draws vertical grid lines\n for (let i = 0; i <= numRectanglesWide; i++) {\n const x = i * rectangleWidth + i * gridThickness;\n drawLine(x, 0, x, canvas.height);\n }\n\n // Draws horizontal grid lines\n for (let i = 0; i <= numRectanglesHigh; i++) {\n const y = i * rectangleHeight + i * gridThickness;\n drawLine(0, y, canvas.width, y);\n }\n }", "title": "" }, { "docid": "13840b1fc84ec3aa559d7319515d3d10", "score": "0.6269632", "text": "drawGrid() {\n\n for (let i = 0; i <= HEIGHT; i += SQUARE_SIDE) {\n line(0, i, WIDTH, i);\n }\n for (let i = 0; i <= WIDTH; i += SQUARE_SIDE) {\n line(i, 0, i, HEIGHT);\n }\n\n }", "title": "" }, { "docid": "959f9b1588eedc9a26dd240ba518c11f", "score": "0.62630016", "text": "function drawAxis() {\n\t\t\t\n\t\t// x axis\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"x axis\")\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\")\n\t\t\t.call(xAxis)\n\t\t\t.append(\"text\")\n\t\t\t\t.attr(\"class\", \"label\")\n\t\t\t\t.attr(\"x\", width)\n\t\t\t\t.attr(\"y\", -6)\n\t\t\t\t.attr(\"transform\", \"translate(0,\" + margin.bottom + \")\")\n\t\t\t\t.style(\"text-anchor\", \"end\")\n\t\t\t\t.text(\"GDP/capita($PPP)\");\n\t\t\n\t\t// y axis\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"y axis\")\n\t\t\t.call(yAxis)\n\t\t\t.append(\"text\")\n\t\t\t\t.attr(\"class\", \"label\")\n\t\t\t\t.attr(\"transform\", \"rotate(-90)\")\n\t\t\t\t.attr(\"y\", -margin.left)\n\t\t\t\t.attr(\"dy\", \".71em\")\n\t\t\t\t.style(\"text-anchor\", \"end\")\n\t\t\t\t.text(\"Average Life Expectancy\");\n\t}", "title": "" }, { "docid": "99360637dd83a22d90c6accc0e0d4196", "score": "0.62587774", "text": "drawAxes(hlabel, hs, he, vlabel, vs, ve, w, h) {\n h = h || this.height;\n w = w || this.width;\n\n this.line(0, 0, w, 0);\n this.line(0, 0, 0, h);\n\n const hpos = 0 - 5;\n this.text(`${hlabel} →`, w / 2, hpos, this.CENTER);\n this.text(hs, 0, hpos, this.CENTER);\n this.text(he, w, hpos, this.CENTER);\n\n const vpos = -10;\n this.text(`${vlabel}\\n↓`, vpos, h / 2, this.RIGHT);\n this.text(vs, vpos, 0 + 5, this.RIGHT);\n this.text(ve, vpos, h, this.RIGHT);\n }", "title": "" }, { "docid": "07ee6ffc17ff6837b6ea9fe683ed20c3", "score": "0.62452775", "text": "function drawChart() {\n stroke(0);\n yAxis();\n xAxis();\n}", "title": "" }, { "docid": "fecda27e05ceabb9817887602f9f8c68", "score": "0.62411433", "text": "function drawCanvas() {\n\t\tdrawer.drawWallGrid(context, solver.gridWall, solver.xLength, solver.yLength, selectedSpacesGrid); \n\t\tdrawInsideSpaces(context, drawer, colourSet, solver, purificator, selectedSpacesGrid);\n\t\tdrawer.drawSudokuFrames(context, solver, mouseCoorsItem); \n\t\tsolver.callStateForItem(spanState);\n\t}", "title": "" }, { "docid": "4351cbd07a9e366b7a87fea75091a597", "score": "0.62153596", "text": "function draw_grid(rctx, rminor, rmajor, rstroke, rfill) {\n rctx.save();\n rctx.strokeStyle = rstroke;\n rctx.fillStyle = rfill;\n let width = grid_x_space * grid_x; //rctx.canvas.width - (rctx.canvas.width % grid_x);\n let height = grid_y_space * grid_y; //rctx.canvas.height - (rctx.canvas.height % grid_y);\n for (var ix = 0; ix <= width; ix += rminor) {\n rctx.beginPath();\n rctx.moveTo(ix, 0);\n rctx.lineTo(ix, height);\n rctx.lineWidth = .5; //( ix % rmajor == 0 ) ? 0.5 : 0.25;\n rctx.stroke();\n //if ( ix % rminor == 0 ) { rctx.fillText( ix, ix, 10 ); }\n }\n for (var iy = 0; iy <= height; iy += rmajor) {\n rctx.beginPath();\n rctx.moveTo(0, iy);\n rctx.lineTo(width, iy);\n rctx.lineWidth = .5; //( iy % rmajor == 0 ) ? 0.5 : 0.25;\n rctx.stroke();\n //if ( iy % rminor == 0 ) {rctx.fillText( iy, 0, iy + 10 );}\n }\n draw_box(rctx);\n rctx.restore();\n}", "title": "" }, { "docid": "ba595c66c58d0ebd0ff411b41d3b9135", "score": "0.620606", "text": "function plotGrid() {\n let equalParts = (maxValue/5).toPrecision(2);\n lenAxis = equalParts*6;\n let ticks = [equalParts, equalParts*2, equalParts*3, equalParts*4, equalParts*5, lenAxis];\n \n // griglie\n let circle = svg.selectAll(\".grid\")\n .data(ticks);\n\n circle.exit().remove(); // exit\n\n circle.enter() // enter\n .append(\"circle\")\n .attr(\"class\", \"grid\")\n .attr(\"cx\", cx)\n .attr(\"cy\", cy)\n .attr(\"fill\", \"none\")\n .attr(\"stroke\", \"gray\")\n .transition().duration(1000)\n .attr(\"r\", t=>rScale(t));\n\n // scritte\n let txt = svg.selectAll(\".tick\")\n .data(ticks);\n \n txt.exit().remove(); //exit\n\n txt.enter() //enter\n .append(\"text\")\n .attr(\"class\", \"tick\")\n .attr(\"x\", cx+5)\n .attr(\"y\", t=>cy-rScale(t)-1)\n .transition().duration(1000).delay(1000)\n .attr(\"opacity\", 1)\n .text(t=>t.toString());\n}", "title": "" }, { "docid": "037f8f6aeb062b596a53ccdec940b8ca", "score": "0.6197329", "text": "function drawGrid() {\n\t\t\t// add container styles\n\t\t\t$container.addClass('container gantt');\n\t\t\t\n\t\t\t// empty container\n\t\t\t$container.empty();\n\t\t\t\t\t\t\n\t\t\t// render contents into container\n\t\t\t$container.append(gridTmpl(controller));\t\n\t\t\tinitEls();\n\t\t\t\n\t\t\t// adjust layout components\n\t\t\tadjustLayout();\n\t\t\tinitHScroller();\t\t\t\n\t\t}", "title": "" }, { "docid": "cd7db6c00a8e6b5a1fb214054e4cd6dc", "score": "0.61886334", "text": "function drawAxes(){\n // Axes domain\n xLine.domain(\n pdf.map(function (c){return c.values.map(function (d){return d[currentY]})})[0]\n //d3.extent(pdf.map(function (c){return c.values.map(function (d){return d[currentY]})})[0])\n );\n yLine.domain([\n d3.min(pdf, function (c) { return d3.min(c.values, function (d) { return d.density; }); }),\n d3.max(pdf, function (c) { return d3.max(c.values, function (d) { return d.density; }); })\n ]);\n\n // Draw axes\n gLine.append(\"g\")\n .attr(\"class\", \"axis axis--x\")\n .attr(\"transform\", \"translate(0,\" + heightLine + \")\")\n .call(d3.axisBottom(xLine).ticks(10))\n .selectAll(\"text\")\n .style(\"text-anchor\", \"start\")\n .style(\"font\", \"8px sans-serif\")\n .attr(\"transform\", 'translate(8,0)rotate(45)');//\n xLabelLine = gLine.append(\"text\")\n .attr(\"class\", \"label\")\n .attr(\"x\",(widthLine/2))\n .attr(\"y\", (heightLine + marginLine.top +marginLine.bottom/4))\n .text(\n currentY[0].toUpperCase() + currentY.slice(1)\n );\n gLine.append(\"g\")\n .attr(\"class\", \"axis axis--y\")\n .call(d3.axisLeft(yLine).ticks(10, \"%\"))\n .append(\"text\")\n .attr(\"class\", \"label\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 0 - marginLine.left)\n .attr(\"x\",0 - (heightLine / 2))\n .attr(\"dy\", \"1em\")\n .text(\"Density\");\n\n // Chart title\n titleLine = gLine.append(\"text\")\n .attr(\"x\", (widthLine / 2))\n .attr(\"y\", 0 - (marginLine.top / 2))\n .attr(\"text-anchor\", \"middle\")\n .style(\"font-size\", \"12px\")\n .text(\n \"Individual \"\n + currentY[0].toUpperCase() + currentY.slice(1)\n + \" Distributions\"\n );\n}", "title": "" }, { "docid": "8caa315f39130f290dc741dcf02a03d2", "score": "0.61872363", "text": "function drawGrid(myContext,bw,bh){\r\n var delta = 50; // grid cell size\r\n\r\n for (var x = 0; x <= bw; x += delta) {\r\n myContext.moveTo(x, 0);\r\n myContext.lineTo(x, bh);\r\n }\r\n\r\n for (var y = 0; y <= bh; y += delta) {\r\n myContext.moveTo(0, y);\r\n myContext.lineTo(bw , y);\r\n }\r\n\r\n myContext.lineWidth = 1;\r\n myContext.strokeStyle = \"lightgray\";\r\n myContext.stroke();\r\n\r\n myContext.strokeStyle = \"black\";\r\n myContext.font = \"12px Arial\";\r\n myContext.fillText(\"(0,0)\",2,12);\r\n\r\n }", "title": "" }, { "docid": "802a7a8a38edea3e78bae42fc4dfe9f3", "score": "0.618246", "text": "function renderCanvas(e) {\n\tif (!isActive) return;\n\n\t//clear canvas\n\tctx.clearRect(0, 0, canvas.width, canvas.height);\n\n\t//draw the background grid\n\tfunction drawGrid() {\n\t\tvar gridS = gridSize,\n\t\t\tcanvasTop = Vector2.ScreenToWorld(Vector2.Zero),\n\t\t\tcanvasBottom = Vector2.ScreenToWorld(new Vector2(canvas.width, canvas.height)),\n\t\t\tcanvasMiddle = canvasTop.lerp(canvasBottom, 0.5);\n\n\n\t\tctx.beginPath();\n\t\tctx.strokeStyle = colors.grid;\n\t\tctx.lineWidth = gridThickness;\n\t\t//draw horizontal lines\n\t\tfor (var middleY = canvasMiddle.y, n = 0; middleY + gridS * n <= canvasBottom.y; n++) {\n\n\t\t\tvar y1 = middleY + gridS * n,\n\t\t\t\ty2 = middleY - gridS * n,\n\t\t\t\tscreenY1 = Vector2.WorldToScreen(new Vector2(0, y1)).y + offset.y % gridS,\n\t\t\t\tscreenY2 = Vector2.WorldToScreen(new Vector2(0, y2)).y + offset.y % gridS;\n\n\t\t\tctx.moveTo(0, screenY1);\n\t\t\tctx.lineTo(canvas.width, screenY1);\n\t\t\tctx.stroke();\n\n\t\t\tctx.moveTo(0, screenY2);\n\t\t\tctx.lineTo(canvas.width, screenY2);\n\t\t\tctx.stroke();\n\t\t}\n\t\tctx.beginPath();\n\t\tfor (var middleX = canvasMiddle.x, n = 0; middleX + gridS * n <= canvasBottom.x; n++) {\n\n\t\t\tvar x1 = middleX + gridS * n,\n\t\t\t\tx2 = middleX - gridS * n,\n\t\t\t\tscreenX1 = Vector2.WorldToScreen(new Vector2(x1, 0)).x + offset.x % gridS,\n\t\t\t\tscreenX2 = Vector2.WorldToScreen(new Vector2(x2, 0)).x + offset.x % gridS\n\n\t\t\tctx.moveTo(screenX1, 0);\n\t\t\tctx.lineTo(screenX1, canvas.width);\n\t\t\tctx.stroke();\n\n\t\t\tctx.moveTo(screenX2, 0);\n\t\t\tctx.lineTo(screenX2, canvas.width);\n\t\t\tctx.stroke();\n\t\t}\n\t}\n\t//draw the connections\n\tfunction drawConnection(port1, port2) {\n\t\t//render line\t\n\t\tctx.strokeStyle = colors.port_set[port1.type];\n\n\t\tvar startpoint = port1.screenPos;\n\t\tvar endpoint = port2.screenPos;\n\n\t\tctx.moveTo(startpoint.x, startpoint.y);\n\t\tctx.lineTo(endpoint.x, endpoint.y);\n\t\tctx.stroke();\n\t}\n\t//draw the modules\n\tfunction drawModule(module) {\n\t\t//get the module display corners\n\t\tvar p0 = Vector2.WorldToScreen(module.pos),\n\t\t\tp1 = p0.add(module.size);\n\n\t\t//draw module box\n\t\tctx.beginPath();\n\t\tctx.fillStyle = colors.module_bg;\n\t\tctx.moveTo(p0.x, p0.y);\n\t\tctx.lineTo(p0.x, p1.y);\n\t\tctx.lineTo(p1.x, p1.y);\n\t\tctx.lineTo(p1.x, p0.y);\n\t\tctx.fill();\n\n\t\t//draw module label\n\t\tctx.beginPath();\n\t\tctx.fillStyle = '#000000';\n\t\tctx.font = moduleFont();\n\t\tctx.textAlign = 'center';\n\t\tctx.textBaseline = 'middle';\n\t\tctx.fillText(module.codec.getName(), lerp(p0.x, p1.x, 0.5), lerp(p0.y, p1.y, 0.5));\n\n\t\t//draw input ports\n\t\tfor (var j = 0; j < module.inputs.length; j++) {\n\t\t\tvar port = module.inputs[j],\n\t\t\t\tpos = port.screenPos,\n\t\t\t\tradius = portRadius * zoomMultiplier;\n\n\t\t\t//draw the port circle\n\t\t\tctx.beginPath();\n\t\t\tctx.fillStyle = colors.port_set[port.type];\n\t\t\tctx.arc(pos.x, pos.y, radius, 0, 2 * Math.PI);\n\t\t\tctx.fill();\n\t\t}\n\n\t\t//draw output ports\n\t\tfor (var j = 0; j < module.outputs.length; j++) {\n\t\t\tvar port = module.outputs[j],\n\t\t\t\tpos = port.screenPos,\n\t\t\t\tradius = portRadius * zoomMultiplier;\n\n\t\t\t//draw the port circle\n\t\t\tctx.beginPath();\n\t\t\tctx.fillStyle = colors.port_set[port.type];\n\t\t\tctx.arc(pos.x, pos.y, radius, 0, 2 * Math.PI);\n\t\t\tctx.fill();\n\t\t}\n\t}\n\t//draw the zoom multiplier if zoomed in/out\n\tfunction drawZoom() {\n\t\tvar text = 'x' + zoomMultiplier.toFixed(1);\n\n\t\tctx.beginPath();\n\t\tctx.textAlign = 'left';\n\t\tctx.textBaseline = 'top';\n\t\tctx.fillStyle = '#777';\n\t\tctx.font = zoomMultiplierFont();\n\t\tctx.fillText(text, 5, 5);\n\t}\n\n\t//draw the grid\n\tdrawGrid();\n\n\t//draw modules\n\tctx.font = moduleFont();\n\tfor (var i = 0; i < modules.length; i++) {\n\t\tvar module = modules[i];\n\t\tdrawModule(module);\n\t}\n\n\t//draw connections\n\tctx.beginPath();\n\tctx.lineWidth = connectionThickness * zoomMultiplier;\n\n\tfor (var i = 0; i < connections.length; i++) {\n\t\tvar port1 = connections[i].inputPort, port2 = connections[i].outputPort;\n\n\t\tdrawConnection(port1, port2);\n\t}\n\n\tdrawZoom();\n\n\t//all of the below require e, if its null then stop here\n\tif (e == null) return;\n\n\t//draw the dragObject (if its a maybe connection)\n\tif (dragItem != null && dragItem.render != null) {\n\t\tdragItem.render(ctx, e);\n\t}\n}", "title": "" }, { "docid": "44e1542b7c9d5329d3df51d0c60b704e", "score": "0.61767167", "text": "draw() {\n this._updateWidthHeight();\n\n this.initSvg();\n // bar char\n if (this.keysBar) {\n this.aggregateLabelsByKeys(this.selection, this.keysBar);\n }\n\n if (this.keysX && this.keysY) {\n this.aggregateValuesByKeys(this.selection, this.keysX, this.keysY);\n }\n\n this.barChart.draw();\n // scatterplot\n // this.scatter.draw();\n }", "title": "" }, { "docid": "d4387ebaa0ed789c2fa6bda03f45ed72", "score": "0.61694163", "text": "function drawGrid() {\n for (r = 0; r < ROW; r++) {\n for (c = 0; c < COLUMN; c++) {\n drawSquare(c, r, grid[r][c]);\n }\n }\n }", "title": "" }, { "docid": "91b5b5d5884e2c1ff70b2fc2d393e8ef", "score": "0.6167533", "text": "function drawGrid() {\n ctxbg.clearRect(0, 0, W, H);\n printMouse(canvasToObj({x: mouseX, y: mouseY}));\n /*\n ctxbg.fillStyle = '#F0EDEE';\n ctxbg.beginPath();\n ctxbg.rect(0,0,W,H);\n ctxbg.closePath();\n ctxbg.fill();\n */\n\n let o00 = canvasToObj({x: 0, y: 0});\n let oWH = canvasToObj({x: W, y: H});\n let corigin = objToCanvas({x: 0, y: 0});\n\n if (corigin.x <=W && corigin.x >=0) {\n ctxbg.beginPath();\n ctxbg.moveTo(corigin.x, 0);\n ctxbg.lineTo(corigin.x, H);\n ctxbg.lineWidth = 1;\n ctxbg.strokeStyle = '#000000';\n ctxbg.stroke();\n }\n if (corigin.y <=H && corigin.y >=0) {\n ctxbg.beginPath();\n ctxbg.moveTo(0, corigin.y);\n ctxbg.lineTo(W, corigin.y);\n ctxbg.lineWidth = 1;\n ctxbg.strokeStyle = '#000000';\n ctxbg.stroke();\n }\n\n let gridSize = 0.001;\n let maxgridsize = W/20/(scale*epsilonScale);\n for (let c = 0; gridSize <= maxgridsize; c++) {\n if (c % 3 == 1) { // alternate 2, 5, 10\n gridSize *= 1.25;\n }\n gridSize *= 2;\n }\n let textSize = 0;\n if (gridSize < 1) {\n textSize = 1;\n }\n for (let i = Math.round(o00.x/gridSize);\n i <= Math.round(oWH.x/gridSize); i++) {\n let pt = objToCanvas({x: gridSize*i, y: 0});\n // drawLabel\n let textY = Math.min(H-5, Math.max(corigin.y, 20+topBarMargin));\n ctxbg.font = '16px Consolas';\n ctxbg.fillStyle = '#111111';\n ctxbg.fillText((gridSize*i).toFixed(textSize), pt.x+1, textY-3);\n // drawGrid\n ctxbg.beginPath();\n\n ctxbg.moveTo(pt.x, 0);\n ctxbg.lineTo(pt.x, H);\n ctxbg.lineWidth = 0.3;\n ctxbg.strokeStyle = '#000000';\n ctxbg.stroke();\n }\n for (let i = Math.round(oWH.y/gridSize);\n i <= Math.round(o00.y/gridSize); i++) {\n let pt = objToCanvas({x: 0, y: gridSize*i});\n // drawLabel\n let textX = Math.min(W-sideBarMargin-45, Math.max(corigin.x, 0));\n ctxbg.font = '16px Consolas';\n ctxbg.fillStyle = '#111111';\n ctxbg.fillText((gridSize*i).toFixed(textSize), textX+1, pt.y-3);\n // drawGrid\n ctxbg.beginPath();\n\n ctxbg.moveTo(0, pt.y);\n ctxbg.lineTo(W, pt.y);\n ctxbg.lineWidth = 0.3;\n ctxbg.strokeStyle = '#000000';\n ctxbg.stroke();\n }\n}", "title": "" }, { "docid": "1fbfa645aaa35f189f0194be03ec90fd", "score": "0.61645734", "text": "function drawGrid(myContext,bw,bh){\r\n var delta = 50; // grid cell size\r\n\r\n for (var x = -bw/2; x <= bw/2; x += delta) {\r\n myContext.moveTo(x, -bh/2);\r\n myContext.lineTo(x, bh/2);\r\n }\r\n\r\n for (var y = -bh/2; y <= bh/2; y += delta) {\r\n myContext.moveTo(- bw/2, y);\r\n myContext.lineTo(bw/2, y);\r\n }\r\n\r\n myContext.lineWidth = 1;\r\n myContext.strokeStyle = \"lightgray\";\r\n myContext.stroke();\r\n\r\n myContext.strokeStyle = \"black\";\r\n myContext.font = \"12px Arial\";\r\n myContext.fillText(\"(0,0)\",2,12);\r\n\r\n }", "title": "" }, { "docid": "6d8c2579933909b70f376d828ac6a6fd", "score": "0.6157952", "text": "function addAxes() {\r\n if (trial.axes) {\r\n // add our axes overlay\r\n let container = display_element.querySelector(\".annotorious-annotationlayer\");\r\n //let dimensions = container.getBoundingClientRect();\r\n\r\n var axes = d3\r\n .select(container)\r\n .append(\"svg\")\r\n .attr(\"width\", dimensions.imageWidth)\r\n .attr(\"height\", dimensions.imageHeight)\r\n .attr(\"preserveAspectRatio\", \"none\")\r\n\r\n .attr(\"class\", \"axes-container\")\r\n .attr(\"viewBox\", `0 0 ${dimensions.imageWidth} ${dimensions.imageHeight}`);\r\n\r\n let x = trial.axes.x;\r\n if (x) {\r\n let xScale = d3\r\n .scaleUtc()\r\n .domain([new Date(x.min), new Date(x.max)])\r\n .range([0, dimensions.imageWidth]);\r\n let xAxis = d3.axisBottom(xScale).ticks(d3.timeHour);\r\n axes.append(\"g\")\r\n .attr(\"transform\", `translate(0, ${dimensions.imageHeight})`)\r\n .call(xAxis);\r\n }\r\n let y = trial.axes.y;\r\n if (y) {\r\n let yScale = d3\r\n .scaleLinear()\r\n .domain([y.min, y.max])\r\n .range([dimensions.imageHeight, 0]);\r\n //let ticks = d3.range(y.min, y.max, y.step || 1000);\r\n let yAxis = d3.axisLeft(yScale);\r\n axes.append(\"g\")\r\n .attr(\"transform\", \"translate(0, 0)\")\r\n .call(yAxis);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d9bd9572fc100a1f91cfca6bc855a574", "score": "0.6150037", "text": "function drawGrid(ctx, gridSpacing) {\n ctx.strokeStyle = 'rgb(134, 173, 240)';\n ctx.lineWidth = 1;\n ctx.beginPath();\n\n // Draw vertical grid lines\n for (let x = 0; x <= plane.width; x += gridSpacing) {\n // 0.5 adjustments fix Canvas boundary mismatches, sharpening the lines\n ctx.moveTo(x+0.5, 0);\n ctx.lineTo(x+0.5, plane.height);\n ctx.stroke();\n }\n\n // Draw horizontal grid lines\n for (let y = 0; y <= plane.height; y += gridSpacing) {\n // 0.5 adjustments fix Canvas boundary mismatches, sharpening the lines\n ctx.moveTo(0, y+0.5);\n ctx.lineTo(plane.width, y+0.5);\n ctx.stroke();\n }\n}", "title": "" }, { "docid": "3470331e128d515aaca491b355d3fca4", "score": "0.6141577", "text": "function renderGrid() {\n let { C, cols, rows, px, grid_color, render_border } = state\n C.gx.clearRect(\n -render_border,\n -render_border,\n C.gx.canvas.width,\n C.gx.canvas.height\n )\n C.gx.strokeStyle = grid_color\n C.gx.lineWidth = 1\n C.gx.strokeRect(0.5, 0.5, sub(mul(cols, px), 1), sub(mul(rows, px), 1))\n C.gx.lineWidth = 2\n for (let c = 1; c < state.cols; c++) {\n C.gx.beginPath()\n C.gx.moveTo(mul(c, px), 0)\n C.gx.lineTo(mul(c, px), mul(rows, px))\n C.gx.stroke()\n }\n for (let r = 1; r < state.rows; r++) {\n C.gx.beginPath()\n C.gx.moveTo(0, mul(r, px))\n C.gx.lineTo(mul(cols, px), mul(r, px))\n C.gx.stroke()\n }\n}", "title": "" }, { "docid": "65672a5703bd024d5b8a3dfefa88669d", "score": "0.6134568", "text": "function drawGrid(Tx){\n context.beginPath();\n var dim = 10;\n var length = 500;\n // Draw from the negative width to pos\n for(var i=-(dim/2); i<=(dim/2); i++){\n iScaled = i * 50;\n moveToTx(iScaled, 0, -length/2, Tx); lineToTx(iScaled, 0, length/2, Tx);\n moveToTx(-length/2, 0, iScaled, Tx); lineToTx(length/2, 0, iScaled, Tx);\n }\n context.stroke();\n }", "title": "" }, { "docid": "26d740e86a1029c61ab0e51fa75e6d9f", "score": "0.61039144", "text": "function bthdhlfrc() {\n canvas = document.getElementById(\"mycanvas\");\n if (null == canvas || !canvas.getContext)\n return;\n ctx = canvas.getContext(\"2d\");\n // fill canvas\n ctx.fillStyle = \"white\";\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n drawGrid(ctx);\n drawAxis();\n sinerectify();\n \n}", "title": "" }, { "docid": "6a9adbb33e5f9cf4ac689a6f3a3585d0", "score": "0.610188", "text": "_drawXGrid() {\n const layout = this._chartLayout;\n const xAxisConfig = this.displayOptions.xAxis;\n\n this._context.textAlign = \"center\";\n this._context.textBaseline = \"top\";\n this._context.font = xAxisConfig.fontSize + \"px \" + this.displayOptions.chartArea.fontName;\n\n let prevLblX = NaN;\n let prevLblHalfW = NaN;\n let tickT = layout.plotAreaRect.bottom + layout.canvasYOffset;\n let tickB = tickT + xAxisConfig.majorTickSize - 1;\n let minorTickB = tickT + xAxisConfig.minorTickSize - 1;\n let gridT = layout.plotAreaRect.top + layout.canvasYOffset + 1;\n let gridB = gridT + layout.plotAreaRect.height - 3;\n let labelMarginT = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 0);\n let labelMarginR = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 1);\n let labelMarginB = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 2);\n let labelMarginL = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 3);\n let lblY = tickB + labelMarginT + 1;\n let lblDateY = lblY + xAxisConfig.fontSize + labelMarginB + labelMarginT;\n let gridStep = layout.xAxisLayout.gridStep;\n let minorTickStep = this.displayOptions.xAxis.showMinorTicks ? layout.xAxisLayout.minorTickStep : 0;\n let showSeconds = this._xAxisTag.max - this._xAxisTag.min <= Chart.SHOW_SEC_THRESHOLD;\n let dayBegTimeText = new Date(0).toLocaleString(this.controlOptions.locale,\n showSeconds ? Chart._TIME_OPTIONS_SEC : Chart._TIME_OPTIONS);\n\n for (let x = this._xAxisTag.min; x <= this._xAxisTag.max; x += gridStep) {\n let ptX = this._trendXToCanvasX(x);\n\n // vertical grid line\n if (xAxisConfig.showGridLines) {\n this._setColor(this.displayOptions.plotArea.gridColor);\n this._drawLine(ptX, gridT, ptX, gridB);\n }\n\n // major tick\n this._setColor(xAxisConfig.lineColor);\n this._drawLine(ptX, tickT, ptX, tickB);\n\n // minor ticks\n if (minorTickStep > 0) {\n for (let minorTickX = x + minorTickStep,\n maxMinorTickX = Math.min(x + gridStep, this._xAxisTag.max);\n minorTickX < maxMinorTickX; minorTickX += minorTickStep) {\n\n let minorTickCnvX = this._trendXToCanvasX(minorTickX);\n this._drawLine(minorTickCnvX, tickT, minorTickCnvX, minorTickB);\n }\n }\n\n // label\n this._setColor(xAxisConfig.textColor);\n let lblX = ptX;\n let timeText = this._trendXToTimeString(x, showSeconds);\n let lblHalfW = this._context.measureText(timeText).width / 2;\n\n if (isNaN(prevLblX) || lblX - lblHalfW - labelMarginL > prevLblX + prevLblHalfW + labelMarginR) {\n this._context.fillText(timeText, lblX, lblY);\n\n if (xAxisConfig.showDates && timeText === dayBegTimeText) {\n this._context.fillText(this._trendXToDateString(x), lblX, lblDateY);\n }\n\n prevLblX = lblX;\n prevLblHalfW = lblHalfW;\n }\n }\n }", "title": "" }, { "docid": "a1af0c75452224420e2a9e35adaa9f2b", "score": "0.6097097", "text": "function drawGrid(grid, x, y, size=16, gridLines=true){\n\tfor (var r=0; r<grid.length; r++){\n\t\tfor(var c=0; c<grid[0].length; c++){\n\t\t\tif (gridLines == true)drawRectStroke(x + r*size, y + c*size, size, size);\n\t\t\tif (grid[r][c] != -1)continue;\n\t\t\tdrawRect(x + c*size, y + r*size, size, size);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "6ae376f1a6c57076bfa9b2922f1ea020", "score": "0.6096586", "text": "drawGrid(division = 20) {\n let w = this.panelWidth ?? this.width;\n for (let x = (division / 2) | 0; x < w; x += division) {\n this.line(x, 0, x, this.height);\n }\n for (let y = (division / 2) | 0; y < this.height; y += division) {\n this.line(0, y, w, y);\n }\n }", "title": "" }, { "docid": "42bc64d9c7251a1274882689186e0903", "score": "0.608577", "text": "drawAxes(size){\n if(this.axes != null){\n return;\n }\n\n var axisHelper = new THREE.AxisHelper(size);\n axisHelper.name = objectNames.coordAxes;\n this.scene.add(axisHelper);\n this.axes = axisHelper;\n }", "title": "" }, { "docid": "4a67232f7bdef0969cb5bc67b1df0899", "score": "0.6082322", "text": "draw() {\n this.plot = this.svg.append('g')\n .classed(\"plot\", true)\n .attr('transform', `translate(${this.margin.left},${this.margin.top})`);\n\n // Add the background\n this.plot.append(\"rect\")\n .attrs({\n fill: \"white\",\n x: 0,\n y: 0,\n height: this.innerHeight,\n width: this.innerWidth\n });\n\n if ( this.opts.nav !== false ) {\n this.drawNav();\n }\n\n // Add the title\n this.svg.append('text')\n .attr('transform', `translate(${this.width / 2},${this.margin.top / 2})`)\n .attr(\"class\", \"chart-title\")\n .attr('x', 0)\n .attr('y', 0)\n .text(this.title);\n }", "title": "" }, { "docid": "fec1d1695b45efdebd6ae9a623f68a7d", "score": "0.6078168", "text": "function drawGrid() {\n // Draw frame.\n let cell = grid[0][0];\n let frameW = cell.width * GRID_COLS;\n let frameH = cell.height * GRID_ROWS;\n\n context.fillStyle = COLOUR_FRAME;\n context.fillRect(cell.left, cell.top, frameW, frameH);\n\n // Draw the base of the frame.\n context.fillStyle = COLOUR_FRAME_BOTTOM;\n context.fillRect(\n cell.left - margin / 2,\n cell.top + frameH - margin / 2,\n frameW + margin,\n margin\n );\n\n // Draw cells.\n for (let row of grid) {\n for (let cell of row) {\n cell.draw(context);\n }\n }\n}", "title": "" }, { "docid": "19315b9ae582b4c39b14f27b4f0d3fa2", "score": "0.6070375", "text": "function ticksAndAnnotations(ns, ew) {\n var activeAxIds = [],\n i;\n\n function pushActiveAxIds(axList) {\n for(i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) activeAxIds.push(axList[i]._id);\n }\n }\n\n if(ew || isSubplotConstrained) {\n pushActiveAxIds(xa);\n pushActiveAxIds(xaLinked);\n }\n if(ns || isSubplotConstrained) {\n pushActiveAxIds(ya);\n pushActiveAxIds(yaLinked);\n }\n\n updates = {};\n for(i = 0; i < activeAxIds.length; i++) {\n var axId = activeAxIds[i];\n doTicks(gd, axId, true);\n var ax = getFromId(gd, axId);\n updates[ax._name + '.range[0]'] = ax.range[0];\n updates[ax._name + '.range[1]'] = ax.range[1];\n }\n\n function redrawObjs(objArray, method, shortCircuit) {\n for(i = 0; i < objArray.length; i++) {\n var obji = objArray[i];\n\n if((ew && activeAxIds.indexOf(obji.xref) !== -1) ||\n (ns && activeAxIds.indexOf(obji.yref) !== -1)) {\n method(gd, i);\n // once is enough for images (which doesn't use the `i` arg anyway)\n if(shortCircuit) return;\n }\n }\n }\n\n // annotations and shapes 'draw' method is slow,\n // use the finer-grained 'drawOne' method instead\n\n redrawObjs(fullLayout.annotations || [], Registry.getComponentMethod('annotations', 'drawOne'));\n redrawObjs(fullLayout.shapes || [], Registry.getComponentMethod('shapes', 'drawOne'));\n redrawObjs(fullLayout.images || [], Registry.getComponentMethod('images', 'draw'), true);\n }", "title": "" }, { "docid": "19315b9ae582b4c39b14f27b4f0d3fa2", "score": "0.6070375", "text": "function ticksAndAnnotations(ns, ew) {\n var activeAxIds = [],\n i;\n\n function pushActiveAxIds(axList) {\n for(i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) activeAxIds.push(axList[i]._id);\n }\n }\n\n if(ew || isSubplotConstrained) {\n pushActiveAxIds(xa);\n pushActiveAxIds(xaLinked);\n }\n if(ns || isSubplotConstrained) {\n pushActiveAxIds(ya);\n pushActiveAxIds(yaLinked);\n }\n\n updates = {};\n for(i = 0; i < activeAxIds.length; i++) {\n var axId = activeAxIds[i];\n doTicks(gd, axId, true);\n var ax = getFromId(gd, axId);\n updates[ax._name + '.range[0]'] = ax.range[0];\n updates[ax._name + '.range[1]'] = ax.range[1];\n }\n\n function redrawObjs(objArray, method, shortCircuit) {\n for(i = 0; i < objArray.length; i++) {\n var obji = objArray[i];\n\n if((ew && activeAxIds.indexOf(obji.xref) !== -1) ||\n (ns && activeAxIds.indexOf(obji.yref) !== -1)) {\n method(gd, i);\n // once is enough for images (which doesn't use the `i` arg anyway)\n if(shortCircuit) return;\n }\n }\n }\n\n // annotations and shapes 'draw' method is slow,\n // use the finer-grained 'drawOne' method instead\n\n redrawObjs(fullLayout.annotations || [], Registry.getComponentMethod('annotations', 'drawOne'));\n redrawObjs(fullLayout.shapes || [], Registry.getComponentMethod('shapes', 'drawOne'));\n redrawObjs(fullLayout.images || [], Registry.getComponentMethod('images', 'draw'), true);\n }", "title": "" }, { "docid": "f90d056f07b483cbbc930da58e5c7458", "score": "0.6045135", "text": "function drawAxes(labels) {\n\n\t\t// add axes\n\t\tradar.append(\"g\")\n\t\t\t.selectAll(\".line\")\n\t\t\t.data(axes)\n\t\t\t.enter()\n\t\t\t.append(\"line\")\n\t\t\t.attr('class', 'axis')\n\t\t\t\t\t.attr(\"x1\", 0)\n\t\t\t\t\t.attr(\"y1\", 0)\n\t\t\t\t\t.attr(\"x2\", function(d) {\n\t\t\t return d.value.coordinates[0];\n\t\t\t})\n\t\t\t\t\t.attr(\"y2\", function(d) {\n\t\t\t return d.value.coordinates[1];\n\t\t\t})\n\t\t\t\t\t.attr(\"stroke\",\"black\");\n \n\t\t// add axis labels\n radar.append(\"g\")\n .selectAll(\".labels\")\n .data(axes)\n .enter()\n .append(\"text\")\n .attr('class', 'labels')\n\t\t\t\t.attr(\"x\", function(d) {\n return Math.cos(d.value.angle) * (spokeLength + 3);\n })\n\t\t\t\t.attr(\"y\", function(d) {\n return Math.sin(d.value.angle) * (spokeLength + 3);\n })\n\t\t\t\t.style(\"text-anchor\", function(d) {\n let label_x = Math.cos(d.value.angle) * (spokeLength + 3);\n\t\t\t\t\tif (label_x < 0) {\n\t\t\t\t\t\treturn \"end\";\n\t\t\t\t\t}\t\n\t\t\t\t}) \n\t\t\t\t.style(\"font-size\", 16)\n\t\t\t\t.text(function(d) {\n return d.key;\n });\n\t}", "title": "" }, { "docid": "a05478e1ef4b48af297191eeb48a8eac", "score": "0.6038501", "text": "_drawAreas() {\n let layout = this._chartLayout;\n\n // plot area\n this._setColor(\"#ffa500\");\n this._context.fillRect(\n layout.plotAreaRect.left + layout.canvasXOffset, layout.plotAreaRect.top + layout.canvasYOffset,\n layout.plotAreaRect.width, layout.plotAreaRect.height);\n\n // X-axis area\n this._setColor(\"#008000\");\n this._context.fillRect(\n layout.xAxisLayout.areaRect.left + layout.canvasXOffset, layout.xAxisLayout.areaRect.top + layout.canvasYOffset,\n layout.xAxisLayout.areaRect.width, layout.xAxisLayout.areaRect.height);\n\n // legend area\n this._setColor(\"#ff00ff\");\n this._context.fillRect(\n layout.legendAreaRect.left + layout.canvasXOffset, layout.legendAreaRect.top + layout.canvasYOffset,\n layout.legendAreaRect.width, layout.legendAreaRect.height);\n\n // Y-axis areas\n let n = 0;\n for (let yAxisRect of layout.yAxisAreaRects) {\n this._setColor(++n % 2 ? \"#0000ff\" : \"#00ffff\");\n this._context.fillRect(\n yAxisRect.left + layout.canvasXOffset, yAxisRect.top + layout.canvasYOffset,\n yAxisRect.width, yAxisRect.height);\n }\n }", "title": "" }, { "docid": "de0b37a0d403aae62d48f4361cc11b0b", "score": "0.6033959", "text": "function renderRectangularGrid() {\n // Render vertical lines\n if( renderAttrs.grid === 'gridlines') {\n for (xTick = xTickMin; xTick <= xTickMax; ++xTick) {\n x = renderAttrs.origin.x + xTick * renderAttrs.gridSpacing.x;\n\n drawLine( ctx, { x: x, y: renderYMin },\n { x: x, y: renderYMax });\n }\n }\n \n // Render horizontal lines (or rows of dots)\n var renderFn = renderHorizLine;\n if( renderAttrs.grid === 'dotted') {\n renderFn = renderHorizDots;\n ctx.fillStyle = renderAttrs.color;\n }\n for (yTick = yTickMin; yTick <= yTickMax; ++yTick) {\n y = renderAttrs.origin.y + yTick * renderAttrs.gridSpacing.y;\n\n // render horizontal line or row of dots\n renderFn( y);\n }\n }", "title": "" }, { "docid": "c290b2326a7688b9901d8e10876f4359", "score": "0.60307914", "text": "draw(ctx){\n saveMatrix();\n ctx.save();\n translate(0,0);\n\n if (this.extended) {\n this.dockPointsReq.forEach((value) => {\n value.draw(ctx);\n });\n this.dockPointsDev.forEach((value) => {\n value.draw(ctx);\n });\n }\n\n ctx.strokeRect(this.x,this.y+this.margin_top,this.width,this.height);\n restoreMatrix();\n ctx.restore();\n }", "title": "" }, { "docid": "1e9595da224053cc6976b77cc551cb7c", "score": "0.6023806", "text": "function createGrid(x0,x1,y0,y1,xbasis,ybasis,strokeWidth){\n createLines(\"vertical\",x0,x1,y0,y1,xbasis,strokeWidth);\n createLines(\"horizontal\",x0,x1,y0,y1,ybasis,strokeWidth);\n }", "title": "" }, { "docid": "4efb2c4fab17a74d65454e997d8b38c3", "score": "0.6010405", "text": "function drawCanvas() {\n\t\tdrawing(context, drawer, colours, solver, selectedSpacesGrid);\n\t\tsolver.callStateForItem(spanState);\n\t}", "title": "" }, { "docid": "27df0c666a7b0fb95dfd6f2a88474ffa", "score": "0.60096717", "text": "function addAxes(parent, config, data) {\n var axes = parent.append('svg:g');\n axes.append('svg:line')\n .attr('class', 'vertical axis')\n .attr('x1', config.left)\n .attr('x2', config.left)\n .attr('y1', config.top)\n .attr('y2', config.bottom);\n axes.append('svg:line')\n .attr('class', 'horizontal axis')\n .attr('x1', config.left)\n .attr('x2', config.right)\n .attr('y1', config.bottom)\n .attr('y2', config.bottom);\n\n return axes;\n }", "title": "" }, { "docid": "89bfa19f4732053233dcf308cc32be8b", "score": "0.6001219", "text": "function draw() {\n // get canvas' 2d context\n let canvas = getCanvas();\n let ctx = canvas.getContext('2d');\n let w2s = _model.viewport.getXform(_rhino3dm.CoordinateSystem.World, _rhino3dm.CoordinateSystem.Screen);\n\n // clear the canvas\n ctx.beginPath();\n ctx.lineWidth = 0.1;\n ctx.strokeStyle = 'rgb(130,130,130)';\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n // and draw a grid\n for (let i = 0; i < 50; i += 1) {\n [x, y, _] = _rhino3dm.Point3d.transform([i, -50, 0], w2s);\n [x1, y1, _] = _rhino3dm.Point3d.transform([i, 50, 0], w2s);\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n [x, y, _] = _rhino3dm.Point3d.transform([-i, -50, 0], w2s);\n [x1, y1, _] = _rhino3dm.Point3d.transform([-i, 50, 0], w2s);\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n\n [x, y, _] = _rhino3dm.Point3d.transform([-50, i, 0], w2s);\n [x1, y1, _] = _rhino3dm.Point3d.transform([50, i, 0], w2s);\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n [x, y, _] = _rhino3dm.Point3d.transform([-50, -i, 0], w2s);\n [x1, y1, _] = _rhino3dm.Point3d.transform([50, -i, 0], w2s);\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n }\n ctx.stroke();\n\n //draw the X and Y axis\n ctx.lineWidth = 2;\n ctx.strokeStyle = 'rgb(150,75,75)';\n [x, y, _] = _rhino3dm.Point3d.transform([0, 0, 0], w2s);\n [x1, y1, _] = _rhino3dm.Point3d.transform([50, 0, 0], w2s);\n ctx.beginPath();\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n ctx.stroke();\n ctx.beginPath();\n ctx.strokeStyle = 'rgb(75,150,75)';\n [x1, y1, _] = _rhino3dm.Point3d.transform([0, 50, 0], w2s);\n ctx.moveTo(x, y);\n ctx.lineTo(x1, y1);\n ctx.stroke();\n\n // draw saved polylines\n for (let i = 0; i < _model.polylines.length; i++)\n drawPolygon(ctx, _model.polylines[i]);\n\n // create a temporary curve from the points and draw it\n if (_model.points !== null && _model.points.count > 0) {\n // draw control polygon from the temp curve's control points\n drawControlPolygon(ctx, _model.points);\n }\n\n w2s.delete();\n}", "title": "" }, { "docid": "5a775d6c0df924643bcb3fc09edadf7e", "score": "0.5985043", "text": "function draw() {\n\n var isGridDrawn = false;\n\n if(graph.options.errorMessage) {\n var $errorMsg = $('<div class=\"elroi-error\">' + graph.options.errorMessage + '</div>')\n .addClass('alert box');\n\n graph.$el.find('.paper').prepend($errorMsg);\n }\n\n if(!graph.allSeries.length) {\n elroi.fn.grid(graph).draw();\n }\n\n $(graph.allSeries).each(function(i) {\n\n if(!isGridDrawn && graph.seriesOptions[i].type != 'pie') {\n elroi.fn.grid(graph).draw();\n isGridDrawn = true;\n }\n\n var type = graph.seriesOptions[i].type;\n elroi.fn[type](graph, graph.allSeries[i].series, i).draw();\n\n });\n\n }", "title": "" }, { "docid": "a85ef4032248a9a7f6082e1508c390e7", "score": "0.5976805", "text": "function grid() {\n\tvar spaceX = 64;\n\tvar spaceY = spaceX;\n\n\tstroke(200);\n\tfor (var i = 64; i < width; i += 64) {\n\t\tline(i, 0, i, height);\n\t}\n\tfor (var i = 64; i < height; i += 64) {\n\t\tline(0, i, width, i);\n\t}\n}", "title": "" }, { "docid": "bdb9d82213e06b85d5c2f90987a1a312", "score": "0.5970956", "text": "function displayGraph(){\n\tvar width = 800;\n\tvar height = 800;\n\t\n\tvar c = document.getElementById(\"canvas\");\n\tvar ctx = c.getContext(\"2d\");\n\t\n\tdrawAxes(width, height, ctx);\n}", "title": "" }, { "docid": "3120443fdf394bee8b9507cf592c4038", "score": "0.59709", "text": "function create_axes(g,h,xAxis,margin){\n let bottom_grid_lines = g.append(\"g\")\n .attr(\"class\", \"axis--x\")\n .attr(\"id\",\"bottom_x_axis\")\n .attr(\"transform\", \"translate(\"+(margin.left)+\",\" + (h + margin.bottom + margin.top - 100) + \")\")\n .call(xAxis.tickSize(-(h-100)).ticks(default_chart_styles.num_ticks));\n\n let top_grid_lines = g.append(\"g\")\n .attr(\"class\", \"axis--x\")\n .attr(\"id\",\"top_x_axis\")\n .attr(\"transform\", \"translate(\"+(margin.left)+\",\" + (margin.bottom + margin.top) + \")\")\n .call(xAxis.tickSize(0).ticks(default_chart_styles.num_ticks));\n\n d3.selectAll('#top_x_axis').selectAll('.tick').selectAll('text').attr('transform','translate(10,' + (-40) +') rotate(-45)');\n d3.selectAll('#bottom_x_axis').selectAll('.tick').selectAll('text').attr('transform','translate(10,'+ (40) +') rotate(-45)');\n\n bottom_grid_lines.lower();\n top_grid_lines.lower();\n\n /*\n Creates the border around the timestep signatures\n */\n const chart = d3.select(\".chart-svg\");\n\n g.append(\"rect\")//TODO:change this rect to a div that holds Timestep signatures.\n .attr(\"class\",\"timestep-signature-container\")\n .attr(\"x\",chart.attr(\"x\"))\n // .attr(\"y\",+chart.attr(\"y\") + +chart.attr(\"height\"))\n .attr(\"y\",+chart.attr(\"y\") + +chart.attr(\"height\") + 90)\n .attr(\"width\",+chart.attr(\"width\"))\n .attr(\"height\",40)\n .attr(\"fill\",\"white\")\n .style(\"stroke-width\",\"2px\")\n .style(\"stroke\",\"#d3d3d3\");\n}", "title": "" }, { "docid": "ccc8137d8cf8df151ab4ae921e011eb7", "score": "0.5969587", "text": "function drawGrid(canvas) {\n\t\"use strict\";\n\tvar x, y;\n\n\t for (x = (screen_width / 2) - (floor_size / 2); x < (floor_size / 2) + (screen_width / 2) + 1; x += 25) {\n\t\t var vpath = \"M \" + (x - 1) + \" \" + ((screen_height / 2) - (floor_size / 2) - 1) + \" l -1 \" + floor_size + \" z\";\n\t\tvar vline = canvas.path(vpath);\n\t\tvline.attr({stroke: \"#aaa\", 'stroke-width': 1});\n\t}\n\t for (y = (screen_height / 2) - (floor_size / 2); y < (floor_size / 2) + (screen_height / 2) + 1; y += 25) {\n\t\t var hpath = \"M \" + ((screen_width / 2) - (floor_size / 2) - 1) + \" \" + (y - 1) + \" l \" + floor_size + \" -1 z\";\n\t\t var hline = canvas.path(hpath);\n\t\thline.attr({stroke: \"#aaa\", 'stroke-width': 1});\n\t }\n}", "title": "" }, { "docid": "840a1a645fd1bdcb4387d75e53f89532", "score": "0.59691465", "text": "function drawAxis($scope){\n\tvar svg = $scope.svg;\n\tvar chartData = getDataFromScope($scope);\n\t$axisProvider = $scope.$axisProvider;\n\t$axisProvider.setAxisContainer(svg);\n $axisProvider.xTitle=$scope.chartXTitle;\n $axisProvider.yTitle=$scope.chartYTitle;\n $axisProvider.title=$scope.chartTitle;\n $axisProvider.setXScale($axisProvider.makeLinearScale([0,$scope.width],[0,d3.max(chartData, function(d) { return d[$scope.chartX]; })]));\n $axisProvider.setYScale($axisProvider.makeLinearScale([$scope.height,0],[0,d3.max(chartData, function(d) { return d[$scope.chartY]; })]));\n $axisProvider.draw();\n \n $scope.$watch('$axisProvider.drawGrid',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.drawXGrid',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.drawYGrid',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n\t\t}\n });\n $scope.$watch('$axisProvider.xTitle',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.title',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.yTitle',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n \t\t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.ticks',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n\t \t$axisProvider.setXScale($axisProvider.xScale);\n\t \t$axisProvider.setYScale($axisProvider.yScale);\n\t \t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('$axisProvider.gridTicks',function(newValue,oldValue){\n \tif(oldValue!=newValue){\n\t \t$axisProvider.setXScale($axisProvider.xScale);\n\t \t$axisProvider.setYScale($axisProvider.yScale);\n\t \t$axisProvider.draw();\n \t}\n \t});\n $scope.$watch('chartTilt',function(newValue,oldValue){\n \tif(isDefined(newValue) && oldValue!=newValue){\n \t\tsvg.classed(\"tiltLeft\",false);\n \t\tsvg.classed(\"tiltRight\",false);\n \t\tsvg.classed(newValue,true);\n \t}\n });\n}", "title": "" }, { "docid": "5fcfc9108a9c6d80f4d01881381ece51", "score": "0.59520763", "text": "function drawLabels(){\t\t\n\t\t\t/**\n\t\t\t * Construct fixed width label boxes, which can be styled easily. \n\t\t\t */\n\t\t\tvar noLabels = 0;\n\t\t\tfor(var i = 0; i < xaxis.ticks.length; ++i){\n\t\t\t\tif (xaxis.ticks[i].label) {\n\t\t\t\t\t++noLabels;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar xBoxWidth = plotWidth / noLabels;\n\t\t\tvar html = '<div style=\"font-size:smaller;color:' + options.grid.color + '\">';\n\t\t\t/**\n\t\t\t * Add xlabels.\n\t\t\t */\n\t\t\tfor(var j = 0, tick = null; j < xaxis.ticks.length; ++j){\n\t\t\t\ttick = xaxis.ticks[j];\n\t\t\t\tif(!tick.label) continue;\n\t\t\t\thtml += '<div style=\"position:absolute;top:' + (plotOffset.top + plotHeight + options.grid.labelMargin) + 'px;left:' + (plotOffset.left + tHoz(tick.v) - xBoxWidth/2) + 'px;width:' + xBoxWidth + 'px;text-align:center\" class=\"flotr-grid-label\">' + tick.label + \"</div>\";\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Add ylabels.\n\t\t\t */\n\t\t\tfor(var k = 0, tick = null; k < yaxis.ticks.length; ++k){\n\t\t\t\ttick = yaxis.ticks[k];\n\t\t\t\tif (!tick.label || tick.label.length == 0) continue;\n\t\t\t\thtml += '<div style=\"position:absolute;top:' + (plotOffset.top + tVert(tick.v) - labelMaxHeight/2) + 'px;left:0;width:' + labelMaxWidth + 'px;text-align:right\" class=\"flotr-grid-label\">' + tick.label + \"</div>\";\n\t\t\t}\n\t\t\thtml += '</div>';\t\t\n\t\t\ttarget.insert(html);\n\t\t}", "title": "" }, { "docid": "0ed050d6cf88b4cc78b249356d763ac0", "score": "0.5951259", "text": "function plot(rows = 36, cols = 64) {\n\n /* 'c' will contain the whole generated html rect tags string to change innerhtml of enclosing div */\n /* 'y' will denote the 'y' coordinate where the next grid must be placed */\n let c = \"\", y = 0;\n\n /* Looping for each row */\n for (let i = 0; i < rows; i++) {\n\n /* 'x' is a coordinate denoting where the next grid must be placed */\n var x = 0;\n\n /* For each row we will loop for each column present in the Grid */\n for (let j = 0; j < cols; j++) {\n\n /* 'colr' will store the rest grid color which is dark gray currently */\n let colr = grid_color;\n\n /* If the Rectange present in the grid is on the border side then change the color in order to highlight borders */\n if(i === 0 || j === 0 || i === rows - 1 || j === cols - 1){\n colr = border_color;\n }\n\n /* Creating a rect tag that is appending in 'c' for now and will be updated to innerhtml of enclosing div */\n /* I know you will be wondering about the id given to each rect :-\n * Each rect must be provided with id in order to do anything with the corresponding rect.\n * Operations like coloring the grid as well saving saving any number in corresponding matrix needs an id of the rect.\n * Hence id is important to allot to each rect to make further changes in matrix on which whole algo is based.\n * In order to assing every rect id i decided to allot their corresponding row_number + : + col_number to be as id\n * As with this scenario it is easy to remember and will be unique for every rect tag. \n */\n c += `<rect id=${i + \":\" + j} x=\"${x}\" y=\"${y}\" width=\"30\" height=\"30\" fill=\"${colr}\" r=\"0\" rx=\"0\" ry=\"0\" stroke=\"#000\" style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-opacity: 0.2;\" stroke-opacity=\"0.2\"></rect>`;\n\n /* Incrementing the 'x' coordinate as we have width of 30px and hence 'x' coordinate for next rect will be +30 from current pos. */\n x += 30;\n }\n\n /* Incrementing the 'y' coordinate as we have placed sufficient rect in 1 row now need to advance 'y' as height of each rect \n is 30px hence for every rect in next column the y coordinate will be +30*/\n y += 30;\n }\n\n /* At last after creating rect tags using loops, now update innerHtml of enclosing div with id='container'[grid.html] */\n document.getElementById(\"container\").innerHTML = c;\n\n /* I wanted to preplace the Source - coordinate so at rect with id='src_crd' will be coloured green */\n document.getElementById(src_crd).style.fill = \"rgb(0, 255, 0)\";\n matrix[split(src_crd, 0)][split(src_crd, 1)] = 1; /* Update the pos as '1' to denote source location */\n\n /* I wanted to preplace the Destination - coordinate so at rect with id='dst_crd' will be coloured Red */\n document.getElementById(dst_crd).style.fill = \"rgb(255, 0, 0)\";\n matrix[split(dst_crd, 0)][split(dst_crd, 1)] = 2; /* Update the pos as '2' to denote Destination location */\n\n }", "title": "" } ]
01c7796341675b9ddc39be873227fe42
calculate() > resultView > build(key) > chartView > plot()
[ { "docid": "3d2660b416d15c5fc6a8f70a0dbd6b1e", "score": "0.7265493", "text": "function buildChartView(resultView, key) {\n // rotate data for plot columns\n let view = resultView;\n let k = key;\n let columns = [], groups = [], skill_names = [], notes = [];\n var last = {};\n for (let stg in view.stages) {\n var entry = [stg];\n for (let skill in view.skill) {\n k = (view.dps[skill][stg].damageType == 2) ? HealKeys[key] : key; \n var value = view.dps[skill][stg][k];\n if (skill in last)\n entry.push((value - last[skill]).toFixed(2));\n else\n entry.push(value.toFixed(2));\n last[skill] = value;\n }\n columns.push(entry);\n groups.push(stg);\n }\n var x = 0.02, i = 0;\n for (let skill in view.skill) {\n skill_names.push(view.skill[skill]);\n let line = view.notes[skill];\n \n if (view.dps[skill][\"满潜\"].spType != 8) {\n if (line != \"\") line += \"\\n\";\n line += `启动技力 ${view.dps[skill][\"基准\"].s_ssp}s -> ${view.dps[skill][\"满潜\"].s_ssp}s`;\n console.log(view.dps[skill][\"满潜\"].spType);\n if (view.dps[skill][\"满潜\"].s_ssp <= 0)\n line += \" (落地点火)\";\n }\n notes.push({x: x, y: 20, content: line});\n x+=1;\n }\n //console.log(columns, groups, skill_names, notes);\n\n return { columns, groups, skill_names, notes };\n}", "title": "" } ]
[ { "docid": "174e1f98f0dedd40f91171fa28756280", "score": "0.5926502", "text": "function drawPage(key, year){\n\n // if key wasnt defined, set it to job_total,\n // which will be the first visualization seen\n // when loading the screen for the first time\n if (key === undefined) {\n key = 'job_total';\n }\n\n // information's year\n if (year === undefined) {\n year = 2014;\n }\n \n // draws tree map about the info and year requested\n genTreemap(key, year, \"tree-map\"); \n \n // indexed by cnae_3. for each cnae_3, it has an array with values from each year,\n // so we can plot a line chart with the growth pattern\n sparklineInput = genSparklineInput(key);\n \n // as we aggregate the row values, the fields *_growth_5 can't be used anymore.\n // therefore, this function needs to extract this info from the variable 'data'.\n // sometimes the previous year's info is not available. so we jsut ignore it.\n var barsInput = genSortedBarsInput(key, year);\n\n // greatest values\n drawBarChart(barsInput, true, \"greatest-chart\");\n // smallest values\n drawBarChart(barsInput, false, \"smallest-chart\");\n \n // ordena por growth\n growthInput = barsInput.filter(function (item) {return true;});\n growthInput.sort(function (a, b) {\n if (a.growth < b.growth) {\n return -1;\n }\n else if (a.growth == b.growth) {\n if (a.name < b.name) return -1;\n else return 1;\n }\n else return 1;\n });\n\n // growth\n drawGrowthChart(growthInput, true, \"growth-chart\");\n // decrease\n drawGrowthChart(growthInput, false, \"decrease-chart\");\n\n}", "title": "" }, { "docid": "512cb4c6a646b80c4fe9992ea8622585", "score": "0.58177674", "text": "function draw(){\n document.getElementById(\"myfirstchart\").innerHTML=\"\";\n matrixValue=[];\n var beginning = newChart();\n graphData = chartData();\n var graphAttribute = editChart(\"date\",\"click_conversions\",\"CPA\");\n drawSelection();\n console.log(beginning+graphData+graphAttribute);\n eval(beginning+graphData+graphAttribute);\n}", "title": "" }, { "docid": "02bd29ccb061b4c2bac34f2ed013f692", "score": "0.5800799", "text": "function Redraw(){\n document.getElementById(\"myfirstchart\").innerHTML=\"\";\n var beginning = newChart();\n graphData = chartData();\n var graphAttribute = editChart(\"date\",matrix1Select,matrix2Select);\n eval(beginning+graphData+graphAttribute); \n}", "title": "" }, { "docid": "064de19b11f48ced12e7e6dc77c10bc9", "score": "0.58005583", "text": "build(){\n\t\tsuper.build(); // call build function in parent class\n\n\t\tvar center = {\n\t\t\t\tx: this._style.offsetLeft + this._style.radius,\n\t\t\t\ty: this._style.offsetTop + this._style.radius,\n\t\t\t},\n\t\t\tperimeter = this._calcPerimeter(),\n\t\t\trotate = 0,\n\t\t\ttotal = 0,\n\n\t\t\tx = this._getDrawableSpaceSize().width - this._style.offsetRight,\n\t\t\ty = this._style.offsetTop,\n\n\t\t\t// create group that will content all the graph parts\n\t\t\t// with the class name defined by user or the default value \"piegraph\"\n\t\t\tgroup = this._svg.group({class: this._style.class});\n\n\t\t// use callback if the getValue is a function\n\t\t// the user can set getValue attribute as a callback fucntion \n\t\t// in this case we use this part of code\n\t\tif(typeof this._data.getValue === 'function'){\n\t\t\t// get the context\n\t\t\tvar self = this;\n\n\t\t\t// calculate the sum of data values\n\t\t\tthis._data.data.forEach( function(element, index) {\n\t\t\t\ttotal += self._data.getValue(element);\n\t\t\t});\n\n\t\t\t// draw the pie chart parts\n\t\t\tthis._data.data.forEach( function(element, index) {\n\t\t\t\t// get part value\n\t\t\t\tvar value = self._data.getValue(element);\n\n\t\t\t\tvar text = self._data.getKey(element);\n\t\t\t\t// get part color\n\t\t\t\t//var color = self._color[index];\n\t\t\t\tvar color = self._getColor(index);\n\n\t\t\t\t// draw part with _drawPart function\n\t\t\t\t// for this function we need the center point, perimeter of the circle, value, total values\n\t\t\t\t// rotate => arc size and the color of this part\n\t\t\t\trotate = self._drawPart({group, center, perimeter, value, total, rotate, color});\n\n\t\t\t\tthis._drawKey(group, {x, y, color, text});\n\n\t\t\t});\n\t\t}\n\n\t\t// use getValue as a key if it is not a function\n\t\t// if the user set getValue attribute as a key name\n\t\t// for the value, so we use this part of code\n\t\telse{\n\n\t\t\t// calculate the sum of data values\n\t\t\tfor(var index in this._data.data)\n\t\t\t\ttotal += this._data.data[index][this._data.getValue];\n\n\t\t\t// draw the pie chart parts\n\t\t\tfor(var index in this._data.data){\n\t\t\t\t// get part value\n\t\t\t\tvar value = this._data.data[index][this._data.getValue];\n\n\t\t\t\tvar text = this._data.data[index][this._data.getKey];\n\n\t\t\t\t// get part color\n\t\t\t\tvar color = this._getColor(index);;\n\n\t\t\t\t// draw the part\n\t\t\t\trotate = this._drawPart({group, center, perimeter, value, total, rotate, color});\n\n\t\t\t\tthis._drawKey(group, {x, y, color, text});\n\t\t\t\ty += 25;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1d8efc0f38cd51777c7503f88fde9149", "score": "0.5702756", "text": "plot () { \n if (this.div.style.display == 'none') { return }\n if (!this.checkLoadData()) { \n this.renderOptions()\n return this.checkLoadData( _ => { app.ui.tableWindow.plot() }) \n }\n this.current = this.data[this.f][this.t][this.r]\n this.current.plot()\n this.renderOptions()\n }", "title": "" }, { "docid": "9264a935d193ea4d8ebee5a950c4170f", "score": "0.56631553", "text": "function BuildChart (key, values) {\r\n \r\n // insert dom element for this graph\r\n $('<div>').appendTo($('<li>', {\r\n \r\n 'class': 'chart',\r\n 'data-title': key\r\n \r\n }).appendTo('#charts'));\r\n\r\n // sparkline dat shit\r\n $.jqplot(\"li[data-title='\" + key + \"'] div\", [values], {\r\n \r\n title: key,\r\n series: [{\r\n showMarker: false,\r\n neighborThreshold: -1\r\n }],\r\n axes: {\r\n xaxis: {\r\n min: GetMin(values, 0),\r\n label: 'Timestamp',\r\n renderer: $.jqplot.DateAxisRenderer,\r\n labelRenderer: $.jqplot.CanvasAxisLabelRenderer,\r\n tickOptions: { formatString: '%a, %R' },\r\n },\r\n yaxis: {\r\n min: 0,\r\n label: 'Gold',\r\n labelRenderer: $.jqplot.CanvasAxisLabelRenderer,\r\n tickOptions: {\r\n formatString: '%d'\r\n }\r\n }\r\n },\r\n cursor:{ \r\n show: true,\r\n zoom: true, \r\n showTooltip: false\r\n }\r\n \r\n });\r\n \r\n}", "title": "" }, { "docid": "440d5f76c4f833f7cfb14e7ef77ea7a7", "score": "0.56415147", "text": "function updateView() {\n\n $('#groupedChartDiv').removeClass(\"hidden\");\n // var showPieOptions = false;\n\n // d3.selectAll('.min-size-div').classed('hidden',true);\n // if ( contextOptions.isMultiview === true ) { \n // d3.selectAll('.normal-size-div').classed('hidden',true); \n // if (contextOptions.atualChart === \"barChart\") { d3.select(\"#minBarChartDiv\").classed('hidden',false); }\n // else { \n // d3.select(\"#minPieChartDiv\").classed('hidden',false);\n // d3.selectAll('#pieLegendDiv').classed('hidden',false);\n // showPieOptions = true;\n // }\n // }\n // else { d3.selectAll('.normal-size-div').classed('hidden',false); } \n }", "title": "" }, { "docid": "d25e19cae45f75cf244db85c85674057", "score": "0.563796", "text": "function chart(selection) { // 4353\n renderWatch.reset(); // 4354\n selection.each(function(data) { // 4355\n var availableLength = width - (axis === 'x' ? margin.left + margin.right : margin.top + margin.bottom), // 4356\n naxis = axis == 'x' ? 'y' : 'x', // 4357\n container = d3.select(this); // 4358\n nv.utils.initSVG(container); // 4359\n // 4360\n //------------------------------------------------------------ // 4361\n // Setup Scales // 4362\n // 4363\n scale0 = scale0 || scale; // 4364\n // 4365\n //------------------------------------------------------------ // 4366\n // 4367\n // 4368\n //------------------------------------------------------------ // 4369\n // Setup containers and skeleton of chart // 4370\n // 4371\n var wrap = container.selectAll('g.nv-distribution').data([data]); // 4372\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-distribution'); // 4373\n var gEnter = wrapEnter.append('g'); // 4374\n var g = wrap.select('g'); // 4375\n // 4376\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') // 4377\n // 4378\n //------------------------------------------------------------ // 4379\n // 4380\n // 4381\n var distWrap = g.selectAll('g.nv-dist') // 4382\n .data(function(d) { return d }, function(d) { return d.key }); // 4383\n // 4384\n distWrap.enter().append('g'); // 4385\n distWrap // 4386\n .attr('class', function(d,i) { return 'nv-dist nv-series-' + i }) // 4387\n .style('stroke', function(d,i) { return color(d, i) }); // 4388\n // 4389\n var dist = distWrap.selectAll('line.nv-dist' + axis) // 4390\n .data(function(d) { return d.values }) // 4391\n dist.enter().append('line') // 4392\n .attr(axis + '1', function(d,i) { return scale0(getData(d,i)) }) // 4393\n .attr(axis + '2', function(d,i) { return scale0(getData(d,i)) }) // 4394\n renderWatch.transition(distWrap.exit().selectAll('line.nv-dist' + axis), 'dist exit') // 4395\n // .transition() // 4396\n .attr(axis + '1', function(d,i) { return scale(getData(d,i)) }) // 4397\n .attr(axis + '2', function(d,i) { return scale(getData(d,i)) }) // 4398\n .style('stroke-opacity', 0) // 4399\n .remove(); // 4400\n dist // 4401\n .attr('class', function(d,i) { return 'nv-dist' + axis + ' nv-dist' + axis + '-' + i }) // 4402\n .attr(naxis + '1', 0) // 4403\n .attr(naxis + '2', size); // 4404\n renderWatch.transition(dist, 'dist') // 4405\n // .transition() // 4406\n .attr(axis + '1', function(d,i) { return scale(getData(d,i)) }) // 4407\n .attr(axis + '2', function(d,i) { return scale(getData(d,i)) }) // 4408\n // 4409\n // 4410\n scale0 = scale.copy(); // 4411\n // 4412\n }); // 4413\n renderWatch.renderEnd('distribution immediate'); // 4414\n return chart; // 4415\n } // 4416", "title": "" }, { "docid": "812f99818c3a4ae5e8c3e4b9384187a8", "score": "0.56257147", "text": "function renderGraph_quotation (h) {\n // console.log(h.qapproved);\n $('.chart_line_quotation').show();\n $('.chart').show();\n $('.search_year_quotation').show();\n $('.search_year_lead').hide();\n $('.search_year_sum').hide();\n $('.chart_line').hide();\n $('.chart_bar').hide();\n $('.chart_target').hide();\n $('.chart_target_detail').hide();\n var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];\n var number = ['12.5','14','19','17','18','25.5','14.0','15.26','25.60','25.69','22.50'];\n\n var dataSource_quotation = [];\n var text_ = '';\n var approved=0,_approved = 0;\n\n for (var i = 0; i < h.approved.length; i++) {\n approved += h.approved[i] << 0;\n }\n for (var x = 0; x < h._approved.length; x++) {\n _approved += h._approved[x] << 0;\n }\n\n var total_quotation = approved+_approved;\n var per = ((approved/total_quotation)*100).toFixed(2);\n //Math.ceil(per);\n\n $.each(h.approved, function (i,v) {\n if(v <= 0){\n var x=0;\n if(h._approved[i] <=0){\n var y=0;\n dataSource_quotation.push({type:month[i],value:x,number:y});\n }\n }else{\n if(h._approved[i] <=0){\n var y=0;\n dataSource_quotation.push({type:month[i],value:v,number:y});\n }else{\n dataSource_quotation.push({type:month[i],value:v,number:h._approved[i]});\n }\n }\n });\n //console.log(dataSource_quotation);\n\n text_ =\"Quotation/Contract Ratio in \" + Math.ceil(per) + \"%\";\n\n $('#chart_quotation').dxChart('instance').option('dataSource', dataSource_quotation);\n $('#chart_quotation').dxChart('instance').render();\n\n $('#reqs-per-second-quotation').dxCircularGauge('instance').option('value', Math.ceil(per));\n $('#reqs-per-second-quotation').dxCircularGauge('instance').render();\n\n $('#chart_quotation').dxChart('instance').option('title', text_);\n $('#chart_quotation').dxChart('instance').render();\n\n $('#per-line-quotation').html(\"Quotation/Contract Ratio in \" + Math.ceil(per) + \"%\");\n $('#per_quotation').html(Math.ceil(per));\n $('#total_lead_quotation').html(\"Quotation Approved \" + approved);\n $('#total_customer_quotation').html(\"Quotation Non-Approved \" + _approved);\n}", "title": "" }, { "docid": "408275304456da45a7b207fd7975cb1c", "score": "0.55617553", "text": "chartDataForView() {\n const valueField = {\n [AMOUNT_TYPE.raw]: 'rawTotal',\n [AMOUNT_TYPE.cooked]: 'cookedTotal'\n }[this.activeAmountType];\n\n return this.chartData.map(record => ({\n category: record.category,\n total: Math.abs(record[valueField])\n }));\n }", "title": "" }, { "docid": "c89f0753de6e168354aafdb77f1c632b", "score": "0.55471706", "text": "function buildPlot() {\n let selectedValue = d3.select('#selDataset').node().value;\n population(selectedValue);\n panel(selectedValue);\n bubble(selectedValue);\n gauge(selectedValue);\n }", "title": "" }, { "docid": "d3e01e19bb0d6260e8c7452f2db12f6a", "score": "0.5535033", "text": "function OrreryData() {DataEngine.call(this, 'charts')}", "title": "" }, { "docid": "9a55425863559cc48b681c0659f9b39f", "score": "0.5524", "text": "function viewA(){\n\t\tconsole.log(dataSet);\n\t\t\n\t\t//yScale\n\t\tyScale = d3.scale.linear().domain([0, max]).range([bbOverview.h-30, 0]);\n\t\t\n\t\t//xScale\n\t\txScale = d3.time.scale().domain([minDate, maxDate]).range([50, bbOverview.w-60]);\n\t\t\n\t\t//yAxis\n\t\tvar yAxis = d3.svg.axis()\n .scale(yScale)\n .orient(\"left\")\n .ticks(3);\n\t\t\n\t\t//xAxis\n\t\tvar xAxis = d3.svg.axis()\n .scale(xScale)\n .orient(\"bottom\");\n\t\t\n\t\t\n\t\t//draw yAxis\n\t\toverview.append(\"g\")\n \t\t.attr(\"class\", \"yAxis\")\n \t\t \t.attr(\"transform\", \"translate(\" + padding + \",0)\")\n \t\t.call(yAxis);\n \t\t\n \t//draw xAxis\n \toverview.append(\"g\")\n\t\t\t\t.attr(\"class\", \"xAxis\")\n\t\t\t\t.attr(\"transform\", \"translate(0,\" + (bbOverview.h - 30) + \")\")\n\t\t\t\t.call(xAxis);\n\t\t\t\t\n\t\t\t\t\n\t\t//draw lines\n\t\tvar line = d3.svg.line()\n\t\t\t\t.interpolate(\"linear\") \n\t\t\t\t.x(function(d) { return xScale(d.date); })\n\t\t\t\t.y(function(d) { return yScale(d.count); });\n\t\t\t\t\t\n\t\t//path function, calls line function\n\t\toverview.append(\"path\")\n\t\t\t.datum(dataSet)\n\t\t\t.attr(\"class\", \"path overviewPath\")\n\t\t\t.attr(\"fill\", \"none\")\n\t\t\t//.attr(\"stroke-width\", \"1px\")\n\t\t\t//.attr(\"stroke\", \"red\")\n\t\t\t.attr(\"d\", line);\t\t\n\t\t\t\t\n\t\t//draw circles\n\t\toverview.selectAll(\".point\")\n\t\t\t.data(dataSet)\n\t\t\t.enter()\n\t\t\t.append(\"svg:circle\")\n\t\t\t.attr(\"class\", \"point\")\n\t\t\t.attr(\"r\", \"2\")\n\t\t\t//.attr(\"fill\", \"red\")\n\t\t\t.attr(\"cx\", function(d){\n\t\t\t\treturn xScale(d.date);\t\n\t\t\t})\n\t\t\t.attr(\"cy\", function(d, i){\n\t\t\t\treturn yScale(d.count);\n\t\t\t})\n\t\t\t\n\t\t\n\t\t//Brush\n\t\tfunction brushed(){\n\t\t\n\t\t};\n\t\t\t\n\t\tbrush = d3.svg.brush().x(xScale).on(\"brush\", brushed);\n\t\t\n\t\toverview\n\t\t\t.append(\"g\")\n\t\t\t.attr(\"class\", \"brush\")\n\t\t\t.call(brush)\n \t\t\t.selectAll(\"rect\")\n \t\t\t.attr({\n \t\t\theight: bbOverview.h-30,\n \t\t\t//width: bbOverview.w-60,\n\t\t\t\t//transform: \"translate(20,100)\"\n\t\t\t});\n\t\t\t\n\t\td3.select(\".background\").attr(\"height\", \"60\");\n\n\t}", "title": "" }, { "docid": "eae925c24af13ccfe592ff234b8cec0e", "score": "0.5515041", "text": "function plotAllModelData() {\n //get select baseline start and finish years from the GUI\n let baselineStart = document.getElementById(\"start\").value;\n let baselineFinish = document.getElementById(\"finish\").value;\n //create chart title\n let modelDataChartTitle = getModelDataChartTitle(baselineStart, baselineFinish);\n //get model Data corresponding to RCP Scenario selected in the GUI\n let modelData = getModelData();\n //compute average temperature anomaly per year\n let modelDataAverages = getModelDataAverages(modelData);\n //compute range temperature anomaly per year\n let modelDataRanges = getModelDataRanges(modelData);\n //get observed data\n let observedData = getObservedData();\n //combine all data using .concat to be used in plotModelData()\n let combinedData = modelDataAverages.concat(modelDataRanges).concat(observedData);\n plotModelData(combinedData, modelDataChartTitle);\n //retuns these interactive settings to null so graph defaults to same format each time\n $('#presentation').prop('disabled', true);\n $('highlightBaseline').attr('checked', false);\n $('#startZoom').val(\"\");\n $('#finishZoom').val(\"\");\n}", "title": "" }, { "docid": "4218df324e2fcbff6bf00313e8ae9502", "score": "0.549248", "text": "function Model() {\n \n this.series = [];\n this.seriesN = [];\n this.lat = 48.1636;\n this.lng = 16.3377;\n this.dataType;\n \n var md = this;\n\n this.calculate = function(type) {\n // cleanup from previous calculations\n $(\"#container1\").html(\"\");\n $(\"#container-results\").html(\"\");\n $(\"#container-chart1\").html(\"\");\n this.series = [];\n this.seriesN = [];\n \n if (type == \"lr\") alert(\"Not yet implemented!\"); \n\n // sunrise: sunrise - goldenHourEnd\n // day: goldenHourEnd - goldenHour\n // sunset: goldenHour - sunset\n // night: sunset - sunrise\n\n var startDate = $(\"#start\").val();\n var endDate = $(\"#end\").val();\n console.log(startDate);\n\n var HTML = this.generateSunTable(\"Start\", startDate, this.lat, this.lng); \n HTML += this.generateSunTable(\"End\", endDate, this.lat, this.lng);\n\n $(\"#container1\").append(HTML);\n \n // loading data series\n // sensor\n this.dataType = $('#ch-sensor option:selected').val();\n this.dataTypeCloudcover = $('#ch-sensor-cloudcover option:selected').val();\n this.dataTypePresence = $('#ch-sensor-presence option:selected').val();\n \n this.addSeries(this.dataType, startDate, endDate, 0);\n this.addSeries(this.dataTypeCloudcover, startDate, endDate, 1);\n this.addSeries(this.dataTypePresence, startDate, endDate, 2); \n }\n\n this.generateSunTable = function(preString, myDate, lat, lng) {\n var jDate = Date.createFromMysql(myDate);\n\n var times = SunCalc.getTimes(jDate, lat, lng)\n var HTML;\n\n HTML = \"<h4>\" + preString + \": \" + myDate + \"</h4>\";\n HTML += \"<ul>\";\n HTML += \" <li><b>Sunrise:</b> \" + times.sunrise;\n HTML += \" <li><b>Morning twilight:</b> \" + times.goldenHourEnd;\n HTML += \" <li><b>Evening twilight:</b> \" + times.goldenHour;\n HTML += \" <li><b>Sunset:</b> \" + times.sunset;\n HTML += \"</ul>\";\n\n return HTML;\n\n }\n\n /**\n * Starting new series load for infobox\n */\n this.addSeries = function (dataType, dateStart, dateEnd, seriesNum) {\n // collecting data \n this.dataType = dataType;\n this.dateStart = dateStart;\n this.dateEnd = dateEnd;\n this.seriesNum = seriesNum;\n \n // setting object\n var md = this;\n \n \n var myUrl;\t\t\n myUrl = '/api/get-measurements?p=' + escape(this.dataType) + ':' + this.dateStart + ':' + this.dateEnd;\t\t\t\n\t\tconsole.log(myUrl);\n // making a copy of this object, so that we preserve data within multiple async calls\n var contextThis = jQuery.extend({}, this);\n console.log(contextThis);\n $.ajax({\n url: myUrl,\n success: md.loadedSeries,\n context: contextThis,\n\t\t\terror: function (x, y, z) {console.log(y);}\n });\n };\n \n /**\n * Starting new series load for infobox\n */\n this.loadedSeries = function(data) {\n data = JSON.parse(data);\n this.series[this.series.length] = data;\n this.seriesN[this.series.length - 1] = this.seriesNum;\n \n var md = this;\n \n // is all the data loaded?\n if (this.series.length == 3) {\n this.handleChart(this);\n this.calculateTable();\n console.log(this.seriesN);\n }\n };\n \n /**\n * Calculating lighting model table\n */\n this.calculateTable = function() {\n // presence = 0\n \n // ----------------------------------------------\n // | 0-20% | 20-80% | 80-100% |\n // | clear | light cloudy | cloudy |\n // ----------------------------------------------\n // sunrise | | | |\n // day | | | |\n // sunset | | | |\n // night | | | |\n // ----------------------------------------------\n \n // define variables for series\n var lightSeries;\n var cloudcoverSeries;\n var presenceSeries;\n \n var avg = new Array(3 * 4).fill(0);\n var num = new Array(3 * 4).fill(0); \n \n // handle which series is which\n for (var i = 0; i < 3; i++) {\n if (this.seriesN[i] == 0) lightSeries = this.series[i];\n if (this.seriesN[i] == 1) cloudcoverSeries = this.series[i];\n if (this.seriesN[i] == 2) presenceSeries = this.series[i];\n }\n \n // transverse lightSeries\n \n var ci = 0;\n var pi = 0;\n \n var badDataPoints = 0;\n \n for (var i = 0; i < lightSeries.length; i++) { \n \n var validDataPoint = true;\n // find cloudcover and presence\n while ((cloudcoverSeries[ci].Timestamp <= lightSeries[i].Timestamp) && (ci < cloudcoverSeries.length - 1)) { \n ci++; \n }\n if (ci == 0) validDataPoint = false;\n ci--;\n \n while ((presenceSeries[pi].Timestamp <= lightSeries[i].Timestamp) && (pi < presenceSeries.length - 1)) { \n pi++; \n }\n if (pi == 0) validDataPoint = false;\n pi--;\n \n // console.log(pi, presenceSeries.length);\n // making sure, we are not returning errors if metadata does not exist for\n // real data\n if (pi == -1) pi = 0;\n if (ci == -1) ci = 0;\n \n \n // convert timestamps to JS timestamps\n lTs = Date.createFromMysql(lightSeries[i].Timestamp);\n pTs = Date.createFromMysql(presenceSeries[pi].Timestamp);\n cTs = Date.createFromMysql(cloudcoverSeries[ci].Timestamp);\n \n lV = lightSeries[i].Val;\n pV = presenceSeries[pi].Val;\n cV = cloudcoverSeries[ci].Val;\n \n // check timestamps\n dPL = Math.abs(pTs - lTs) / 1000 / 60 / 60;\n dCL = Math.abs(cTs - lTs) / 1000 / 60 / 60;\n \n if ((dPL > 1) || (dCL > 1)) validDataPoint = false;\n \n // fill in the table\n if (validDataPoint) {\n // handle cloudcover\n var cBin = 2; \n if (cV < 0.20) cBin = 0;\n else if (cV < 0.70) cBin = 1; \n \n // handle time \n var times = SunCalc.getTimes(lTs, this.lat, this.lng)\n // console.log(lTs, times.sunrise, times.goldenHourEnd, times.goldenHour, times.sunset);\n \n var tBin = 3;\n if (lTs < times.sunrise) tBin = 3; // night\n else if (lTs < times.goldenHourEnd) tBin = 0; // morning\n else if (lTs < times.goldenHour) tBin = 1; // day\n else if (lTs < times.sunset) tBin = 2; // evening\n \n var tIndex = cBin + tBin * 3;\n \n // update numerus\n num[tIndex]++;\n // update average\n avg[tIndex] = (avg[tIndex] * (num[tIndex] - 1) + lV)/num[tIndex]; \n } else {\n badDataPoints++;\n } \n }\n \n // generate table\n var title = [\"morning\", \"day\", \"evening\", \"night\"];\n var HTML = \"<table class='table'>\";\n // add header\n HTML += \"<thead><tr><td></td><td><b>clear</b></td><td><b>partly cloudy</b></td><td><b>cloudy</b></td></tr></thead>\";\n HTML += \"<tbody>\";\n for (var j = 0; j < 4; j++) {\n HTML += \"<tr>\"\n for (var i = 0; i < 3; i++) {\n if (i == 0) HTML += \"<td><b>\" + title[j] + \"</b></td>\"\n var tIndex = j * 3 + i;\n HTML += \"<td>\";\n HTML += avg[tIndex].toFixed(2) + \" (\" + num[tIndex] + \")\";\n HTML += \"</td>\";\n }\n HTML += \"</tr>\";\n }\n HTML += \"</tbody></table>\";\n \n HTML += \"Bad/all data points: \" + badDataPoints + \"/\" + lightSeries.length + \" (\" + Math.round(badDataPoints/lightSeries.length * 10000)/100 + \"%)\"; \n \n $(\"#container-results\").append(HTML);\n };\n \n /**\n * Chart the data\n */\n this.handleChart = function() {\n var hc = new HighChart(\"container-chart1\", 0, systemNodes);\n // lets not worry about the context ... \n this.dataType = $('#ch-sensor option:selected').val();\n this.dataTypeCloudcover = $('#ch-sensor-cloudcover option:selected').val();\n this.dataTypePresence = $('#ch-sensor-presence option:selected').val();\n \n var typeArray = [this.dataType, this.dataTypeCloudcover, this.dataTypePresence];\n console.log(\"handleChart\");\n console.log(this.seriesN);\n console.log(typeArray);\n console.log(this.series); \n hc.loadedAggregates(JSON.stringify(this.series[0]), typeArray[this.seriesN[0]], \"raw\", \"raw\");\n hc.loadedAggregates(JSON.stringify(this.series[1]), typeArray[this.seriesN[1]], \"raw\", \"raw\");\n hc.loadedAggregates(JSON.stringify(this.series[2]), typeArray[this.seriesN[2]], \"raw\", \"raw\");\n };\n \n}", "title": "" }, { "docid": "888d85d6b314772fffe238ce674a40ac", "score": "0.54579455", "text": "processData() {\n\n var groupBy = this.props.options.groupBy.name;\n var calculateBy = this.props.options.calculateBy.name;\n\n var output = {};\n var parseNumber = 0;\n // var index = 0;\n\n if (this.props.results && groupBy && calculateBy) {\n try {\n output = this.props.results.reduce(function(out, curr, index) {\n\n parseNumber = (!isNaN(curr[calculateBy]) ? Math.floor(curr[calculateBy]) : Math.floor(parseInt(curr[calculateBy].replace(/\\s/g, \"\").replace(\",\", \"\"))));\n\n out.dataset[curr[groupBy]] = out.dataset[curr[groupBy]] || {};\n out.dataset[curr[groupBy]][groupBy] = curr[groupBy] || {};\n out.dataset[curr[groupBy]][calculateBy] = (out.dataset[curr[groupBy]][calculateBy] || 0) + parseNumber;\n\n out.total['total'] = (out.total['total'] || 0) + parseNumber;\n\n // index++;\n return out;\n\n }, {'dataset' : {}, 'total':{}});\n } catch (e) {\n /* The operation fails if:\n *\n * The data returned from the web service doesn't have columns that match the names\n * provided in the groupBy and calculateBy properties.\n * To fix, double check the data received from the WS, or modify the values\n * for groupBy and calculateBy in global.pages.js for that page's configuration.\n **/\n console.log('An error ocurred while generating the data chart.');\n }\n\n }\n\n return output;\n }", "title": "" }, { "docid": "d1664a713cbf8b6515bde1c18f5b1ee9", "score": "0.5442974", "text": "function plotCache() {\n\n // Clear the chart container\n $(\"#chartContainer\").html(\"\");\n\n var selectedChannel = $(\"#channelCodes\").val();\n var selectedParameter = $('#parameters').val();\n var startDate = $(\"#dateMin\").val();\n var endDate = $(\"#dateMax\").val();\n var network = $(\"#network\").val();\n var station = $(\"#station\").val();\n\n var stream = {\n \"net\": network,\n \"sta\": station,\n \"loc\": selectedChannel.split(\".\")[0] || null\n }\n\n // Generate info tooltip\n var text = [\n \"Charts showing the\",\n \"<b>\" + $('#parameters option:selected').text() + \"</b>\",\n \"for all components of channel\",\n \"<b>\" + selectedChannel + \"?</b>\",\n \"for\",\n \"<b>\" + cache.days + \"</b>\",\n \"days between\",\n \"<b>\" + startDate + \"</b> and <b>\" + endDate + \"</b>.\"\n ].join(\" \");\n\n $(\"#chartInformation\").html(text);\n\n // Go over all components in the channel\n for(var i = 0; i < channelCodes[selectedChannel].length; i++) {\n\n var component = channelCodes[selectedChannel][i];\n\n var title = [network, station, component].join(\".\");\n var data = generateData(cache.data[component], selectedParameter);\n\n stream.cha = component;\n\n createChart(component, data, title, stream);\n\n }\n\n}", "title": "" }, { "docid": "7150a98cac6205eb3dea22b3dee21c37", "score": "0.54253197", "text": "function updateChart() {\n\n /**\n * selected fill-in-the-blank text\n * @type {string}\n */\n const key_value = key_elem.value;\n\n // render chart\n if ( !key_value ) return $.setContent( chart_elem, '' );\n\n // prepare database query for getting relevant fill-in-the-blank text results\n const query = { \"_id\": { $regex: '(^' + key_value + '$)|(,' + key_value + '(,|$))' } };\n\n // get relevant results\n my.cloze.results.get( query, results => {\n\n // prepare data for chart rendering\n const categories = [];\n const data = [];\n for ( let i = 0; i < results[ 0 ].details.length; i++ ) {\n categories[ i ] = results[ 0 ].details[ i ].gap;\n data[ i ] = 0;\n }\n results.map( result => {\n result.details.map( ( detail, i ) => {\n if ( detail.correct )\n data[ i ]++;\n } );\n } );\n\n // render chart\n my.chart.start( {\n root: chart_elem,\n settings: {\n chart: {\n type: 'column'\n },\n title: {\n text: ''\n },\n xAxis: {\n categories: categories,\n title: {\n text: 'Text Gap'\n }\n },\n yAxis: {\n min: 0,\n max: results.length,\n title: {\n text: 'Correct Solutions'\n },\n allowDecimals: false\n },\n tooltip: {\n enabled: false\n },\n legend: {\n enabled: false\n },\n series: [ {\n data: data\n } ]\n }\n } );\n\n } );\n\n }", "title": "" }, { "docid": "bfe45a69675ae20425cda528616fc5e8", "score": "0.5409595", "text": "function updateResultsViewer(run) {\n var cache = reportCache[run];\n updateResultsTable(cache, run);\n createAreaCharts(cache, run);\n createColumnCharts(cache, run);\n updateOutputLayers(run);\n}", "title": "" }, { "docid": "b9b969eb75a105e378636b1f8ca10cfd", "score": "0.5408355", "text": "updateVis() {\n let vis = this;\n\n // Prepare data: count number of trails in each difficulty category\n // i.e. [{ key: 'easy', count: 10 }, {key: 'intermediate', ...\n vis.aggregatedData = vis.data = d3.groups(data, d => d.Region)\n\n // Specificy accessor functions\n // vis.colorValue = d => d.key;\n vis.xValue = d => d[0];\n vis.yValue = d => d[1].length;\n\n // Set the scale input domains\n vis.xScale.domain(vis.aggregatedData.map(vis.xValue));\n vis.yScale.domain([0, d3.max(vis.aggregatedData, vis.yValue)]);\n\n vis.renderVis();\n }", "title": "" }, { "docid": "3392caaed59262f0c447c6d0671de376", "score": "0.5399058", "text": "function GeneralWiseUsersChart() {\n\n var chartData = new GeneralUserDataChart();\n $('#containerChart').html(\"\");\n if(window.TimeAreaChartSavedModel){\n if(window.TimeAreaChartSavedModel.length>0)\n {\n chartData.add(window.TimeAreaChartSavedModel.models);\n }\n }\n else{\n chartData.fetch();\n } \n\n var UTableView = new ComUserTableChartView({\n chartHeader: 'User Registration Analysis',\n el: $('#container'),\n model: chartData,\n \n });\n\n \n}", "title": "" }, { "docid": "2353fef3f29336ae99c5d1fafc8a614f", "score": "0.5390935", "text": "function plotData(data){\n\n // step 1.1 + 1.2 goes here\n\n}", "title": "" }, { "docid": "8a644cc1d0c1e26f7ae8b37b3ca0a57f", "score": "0.53837323", "text": "function renderGraph_target (h) {\n $('.chart').hide();\n $('.search_year_lead').hide();\n $('.search_year_quotaion').hide();\n $('.search_year_sum').hide();\n $('.chart_line').hide();\n $('.chart_bar').hide();\n $('.chart_target').show();\n $('.chart_target_detail').show();\n $('.chart_line_quotation').hide();\n\n var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];\n var number = ['12.5','14','19','17','18','25.5','14.0','15.26','25.60','25.69','22.50'];\n\n var dataSource_target = [];\n\n var approved=0,_approved = 0;\n\n for (var i = 0; i < h.approved.length; i++) {\n approved += h.approved[i] << 0;\n }\n for (var x = 0; x < h._approved.length; x++) {\n _approved += h._approved[x] << 0;\n }\n\n $.each(h.approved, function (i,v) {\n if(h.approved[i] <=0 || h._approved[i] <=0){\n dataSource_target.push({type:month[i],value:numberWithCommas(0),number:0,target:numberWithCommas(h._target[i])});\n }else{\n var con_ = numberWithCommas(h._approved[i]);\n dataSource_target.push({type:month[i],value:numberWithCommas(v),number:con_,target:numberWithCommas(h._target[i])});\n }\n });\n\n //console.log(dataSource_target);\n\n $('#chart_target').dxChart('instance').option('dataSource', dataSource_target);\n $('#chart_target').dxChart('instance').render();\n\n $('#total_lead1').html(\"Quotation Approved \" + numberWithCommas(approved) + \" บาท\");\n $('#total_customer1').html(\"Quotation Non-Approved \" + numberWithCommas(_approved) + \" บาท\");\n\n //console.log(dataSource_target);\n}", "title": "" }, { "docid": "d178c0d0b7099fd26822f6d8050c2441", "score": "0.53740764", "text": "function rerender_dayview() {\n var entries = getDayEntries();\n var dataset = new PieDataSet(entries, \"\");\n dataset.setSliceSpace(0);\n let dataFormatter = new IValueFormatter({\n getFormattedValue: function(value, entry, dataSetIndex, viewPortHandler) {\n return Math.round(value)+\"\";\n }\n })\n // Customize appearence of the pie chart\n var data = new PieData(dataset);\n data.setValueFormatter(dataFormatter);\n data.setValueTextSize(11);\n data.setValueTextColor(Color.WHITE);\n var desc = piechart.getDescription();\n piechart.animateY(1400, Easing.EasingOption.EaseInOutQuad);\n desc.setEnabled(Description.false);\n piechart.setDrawSliceText(false);\n piechart.setHoleRadius(70);\n piechart.setTransparentCircleRadius(75);\n piechart.setCenterText(getSpannableString());\n var legend = piechart.getLegend();\n legend.setPosition(Legend.LegendPosition.BELOW_CHART_CENTER);\n dataset.setColors(getColors());\n\n // Initialize and set pie chart\n piechart.setData(data);\n}", "title": "" }, { "docid": "d3818b31bf857319f13bc26e7ab8d1d6", "score": "0.5372577", "text": "function calculate() {\n /** Price calculation(s) */\n var monthPrice = 0;\n var yearPrice = 0;\n for (var i in currentCanvas.VirtualMachines) {\n if (service == 'google-cloud') {\n currentCanvas.VirtualMachines[i].instanceType = determineInstanceType(currentCanvas.VirtualMachines[i].type);\n }\n monthPrice += currentCanvas.VirtualMachines[i].costMonthly();\n yearPrice += currentCanvas.VirtualMachines[i].costYear();\n }\n for (var i in currentCanvas.Databases) {\n monthPrice += currentCanvas.Databases[i].costMonthly();\n yearPrice += currentCanvas.Databases[i].costYear();\n }\n for (var i in currentCanvas.Storages) {\n monthPrice += currentCanvas.Storages[i].costMonthly();\n yearPrice += currentCanvas.Storages[i].costYear();\n }\n\n // set properties of canvas used to (re)create list item\n currentCanvas.numId = idCanvas++;\n currentCanvas.service = service;\n currentCanvas.timestamp = new Date().toGMTString();\n currentCanvas.description = buildDescriptionOfCanvas(currentCanvas);\n currentCanvas.monthlyPrice = Math.round(monthPrice * 100) / 100;\n currentCanvas.yearlyPrice = Math.round(yearPrice * 100) / 100;\n\n // store the canvas\n listOfCanvasses.push(copyCanvas(currentCanvas));\n\n addCalculationToDiv(currentCanvas);\n addCalculationMainGraph(currentCanvas.monthlyPrice, currentCanvas.timestamp, currentCanvas.graphColor, \"graph_\" + currentCanvas.numId);\n showCalculationDiv();\n\n // store/update data in localStorage\n localStorage.setItem('idCanvas', idCanvas);\n localStorage.setItem('listOfCanvasses', JSON.stringify(listOfCanvasses));\n document.getElementById(\"mainGraph\").style.display = \"block\";\n}", "title": "" }, { "docid": "20efb32407b0c202940c85c3830e1011", "score": "0.5354852", "text": "function chart(amount, obj){\n}", "title": "" }, { "docid": "74e9a74c517a92148399c802780d8db0", "score": "0.5352765", "text": "function chartContent(data, key, value, date, selector) {\n\n data.forEach(function(d) { //could pass types array and coerce each matching key using dataSets()\n d.label = d[date];\n d.date = parseYearMonth(d[date]);\n d[value] = +d[value];\n });\n\n // nest the processed data by regions\n const nest = d3.nest().key(d => {\n return d[key];\n }).entries(data);\n\n // get array of keys from nest\n const keys = [];\n nest.forEach(d => {\n keys.push(d.key);\n });\n\n return {\n e: selector,\n d: nest,\n xV: date,\n yV: value\n }\n\n}", "title": "" }, { "docid": "37e33943254de31804f5d0e8c5c20e65", "score": "0.53390753", "text": "generateGraphs() {\n pieChart(\n this.state.pieChartId,\n this.props.dataset,\n this.props.labels,\n this.props.linegraph\n );\n }", "title": "" }, { "docid": "43548cf4ccc45deb8c72066f0ae88d62", "score": "0.532879", "text": "update(elementCache, viewport, data, sortedData, addProjMode) {\n \n let width = viewport.clientWidth;\n let height = sortedData.length * 20 + 50;\n this.setViewPortSVGSize(elementCache.svg, width, height);\n\n let { axis: xAxis, scale: xScale } = this.createXAxis(data, width);\n this.renderTodayMarker(elementCache.todayG, xScale, height);\n this.formatAxis(elementCache.axisG, height, xAxis, xScale);\n\n\n //update chart view\n let { startCircleG, endCircleG, lineG, arrowG } = elementCache.chartG;\n this.renderLines(sortedData, xScale, lineG, addProjMode);\n this.renderStartCircles(sortedData, xScale, startCircleG, addProjMode);\n this.renderEndCircles(sortedData, xScale, endCircleG, addProjMode);\n this.renderArrows(sortedData, xScale, arrowG, addProjMode);\n\n }", "title": "" }, { "docid": "291b99cf9d9b8d00cacf9e6f3c872983", "score": "0.5317761", "text": "function generate_plot() {\n var data_query = create_data_query();\n if (data_query) {\n data_query = [ root_url, '/data?', data_query ].join('');\n console.log(\">>>> data query >>>>\");\n report_debug(data_query);\n $.getJSON(data_query, plotter_setup, false);\n }\n}", "title": "" }, { "docid": "1596aaa76c91cada0fbed91c586abcc7", "score": "0.5310414", "text": "function loadView() {\n activeView.set({\n container: \"viewDiv\",\n });\n // Add the appropriate measurement UI to the bottom-right when activated\n activeView.ui.add(measurement, \"bottom-right\");\n // Add the legend to the bottom left\n activeView.ui.add(legend, \"bottom-left\");\n // Set the views for the widgets\n measurement.view = activeView;\n legend.view = activeView;\n }", "title": "" }, { "docid": "a25e47e14e9e978f2c62ff709d9f6d15", "score": "0.53044266", "text": "function Main() {\n // Save settings every time you calculate, so they're always ready on a reload\n saveSettings();\n // Send all the inputs as a structured object\n // If you need to convert to, say, SI units, do it here!\n const inputs = {\n linVal: sliders.SlideLin.value,\n logVal: sliders.SlideLog.value,\n multiplier: parseFloat(document.getElementById('Multiplier').value),\n useOne: document.getElementById('Equ1').checked, //No need to check Equ2!\n useBoth: document.getElementById('Both').checked,\n };\n\n // Get all the resonses as a map via set/get\n const result = CalcIt(inputs);\n\n // Set all the text box outputs\n document.getElementById('First').value = result.first;\n document.getElementById('Second').value = result.second;\n // Do all relevant plots - if there's no plot, nothing happens\n if(result.plots) {\n for(let i = 0; i < result.plots.length; i++) {\n PlotIt(result.plots[i], result.canvas[i]);\n }\n }\n\n // You might have some other stuff to do here, but for most apps that's it for Main!\n}", "title": "" }, { "docid": "28d69ea4d0d3a1aebcf58d60daffe11a", "score": "0.5274287", "text": "function updateHiveplot() {\n // PLACEHOLDER\n}", "title": "" }, { "docid": "c82911314f8b5bc8ec0597b0ee370a59", "score": "0.52685344", "text": "function pde(div) {\n var chartWidth = 0.7*width-margin.left-margin.right;\n var chartHeight = height-margin.bottom-margin.top;\n var controlWidth = 0.3*width;\n // The model\n var model = new Proxy({\n nTime: 50,\n timeInterval: [0,1],\n sigma: 1,\n sigmaIndex: Math.round((20-1)*(1-0)/(10-0)),\n sigmaInterval: [0,10],\n nSigma: 20,\n shock: 1,\n shockIndex: Math.round((5-1)*(1-0.1)/(1-0.1)),\n shockInterval: [0.1,1],\n nShock: 5,\n a: [],\n aInterval: [0,10],\n goal0: 1,\n goalT: [],\n goalIndex: Math.round((10-1)*(1-0.5)/(2-0.5)),\n goalInterval: [0.5,2],\n nGoal: 10,\n controller: (model) => null\n }, {\n set: (model, property, value, receiver) => {\n model[property] = value;\n if (property===\"sigma\") model.sigmaIndex=Math.round((20-1)*(value-0)/(10-0));\n if (property===\"shock\") model.shockIndex=Math.round((5-1)*(value-0.1)/(1-0.1));\n if (property===\"goal0\") model.goalIndex=Math.round((10-1)*(value-0.5)/(2-0.5));\n model.a = pdeData.a[model.sigmaIndex][model.goalIndex][model.shockIndex];\n model.goalT = pdeData.g[model.sigmaIndex][model.goalIndex][model.shockIndex];\n model.controller(model);\n }\n });\n // Chart\n div.style(\"width\",`${width}px`);\n var chart = div.append(\"div\").style(\"float\",\"left\").style(\"width\",`${chartWidth+margin.left+margin.right}px`);\n var svg = chart.append(\"svg\").attr(\"width\", chartWidth+margin.left+margin.right)\n .attr(\"height\", chartHeight+margin.bottom+margin.top);\n var g = svg.append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${margin.top})`);\n var timeScale = d3.scaleLinear().domain([0, 1]).range([0, chartWidth]),\n bidScale = d3.scaleLinear().domain(model.aInterval).range([chartHeight, 0]),\n goalScale = d3.scaleLinear().domain([0,2]).range([chartHeight, 0]);\n // Add RTB revenue\n g.append(\"path\").attr(\"id\", \"bid-strategy\")\n .style(\"stroke\", orange).style(\"stroke-width\", 3).style(\"fill\", \"none\");\n g.append(\"path\").attr(\"id\", \"goal\")\n .style(\"stroke\", blue).style(\"stroke-width\", 3).style(\"fill\", \"none\");\n // Add axis\n g.append(\"g\").attr(\"transform\", `translate(0,${chartHeight})`).call(d3.axisBottom(timeScale).ticks(numberTicks));\n g.append(\"g\").attr(\"transform\", `translate(0,0)`).call(d3.axisLeft(bidScale).ticks(numberTicks));\n g.append(\"g\").attr(\"transform\", `translate(${chartWidth},0)`).call(d3.axisRight(goalScale).ticks(numberTicks));\n // Control\n var control = div.append(\"div\").style(\"float\",\"left\").style(\"width\",`${controlWidth}px`)\n .call(slider, \"Sigma\", model.sigma, model.sigmaInterval, model.nSigma, (value) => {model.sigma = value;})\n .call(slider, \"Goal\", model.goal0, model.goalInterval, model.nGoal, (value) => {model.goal0 = value;})\n .call(slider, \"Shock\", model.shock, model.shockInterval, model.nShock, (value) => {model.shock = value;});\n // The controller\n model.controller = (model) => {\n g.select(\"#bid-strategy\").datum(model.a)\n .attr(\"d\", d3.line().x((d,i) => timeScale(i/model.nTime)).y(d => bidScale(d)));\n g.select(\"#goal\").datum(model.goalT)\n .attr(\"d\", d3.line().x((d,i) => timeScale(i/model.nTime)).y(d => goalScale(d)));\n };\n return div;\n}", "title": "" }, { "docid": "6729e2dbeacca264c8df369e0b4703bb", "score": "0.526587", "text": "function chart(selection) { // 9732\n selection.each(function(data) { // 9733\n container = d3.select(this); // 9734\n var availableWidth = nv.utils.availableWidth(width, container, margin), // 9735\n availableHeight = nv.utils.availableHeight(height, container, margin); // 9736\n // 9737\n nv.utils.initSVG(container); // 9738\n // 9739\n // ohlc bar width. // 9740\n var w = (availableWidth / data[0].values.length) * .9; // 9741\n // 9742\n // Setup Scales // 9743\n x.domain(xDomain || d3.extent(data[0].values.map(getX).concat(forceX) )); // 9744\n // 9745\n if (padData) // 9746\n x.range(xRange || [availableWidth * .5 / data[0].values.length, availableWidth * (data[0].values.length - .5) / data[0].values.length ]);\n else // 9748\n x.range(xRange || [5 + w/2, availableWidth - w/2 - 5]); // 9749\n // 9750\n y.domain(yDomain || [ // 9751\n d3.min(data[0].values.map(getLow).concat(forceY)), // 9752\n d3.max(data[0].values.map(getHigh).concat(forceY)) // 9753\n ] // 9754\n ).range(yRange || [availableHeight, 0]); // 9755\n // 9756\n // If scale's domain don't have a range, slightly adjust to make one... so a chart can show a single data point\n if (x.domain()[0] === x.domain()[1]) // 9758\n x.domain()[0] ? // 9759\n x.domain([x.domain()[0] - x.domain()[0] * 0.01, x.domain()[1] + x.domain()[1] * 0.01]) // 9760\n : x.domain([-1,1]); // 9761\n // 9762\n if (y.domain()[0] === y.domain()[1]) // 9763\n y.domain()[0] ? // 9764\n y.domain([y.domain()[0] + y.domain()[0] * 0.01, y.domain()[1] - y.domain()[1] * 0.01]) // 9765\n : y.domain([-1,1]); // 9766\n // 9767\n // Setup containers and skeleton of chart // 9768\n var wrap = d3.select(this).selectAll('g.nv-wrap.nv-ohlcBar').data([data[0].values]); // 9769\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-ohlcBar'); // 9770\n var defsEnter = wrapEnter.append('defs'); // 9771\n var gEnter = wrapEnter.append('g'); // 9772\n var g = wrap.select('g'); // 9773\n // 9774\n gEnter.append('g').attr('class', 'nv-ticks'); // 9775\n // 9776\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'); // 9777\n // 9778\n container // 9779\n .on('click', function(d,i) { // 9780\n dispatch.chartClick({ // 9781\n data: d, // 9782\n index: i, // 9783\n pos: d3.event, // 9784\n id: id // 9785\n }); // 9786\n }); // 9787\n // 9788\n defsEnter.append('clipPath') // 9789\n .attr('id', 'nv-chart-clip-path-' + id) // 9790\n .append('rect'); // 9791\n // 9792\n wrap.select('#nv-chart-clip-path-' + id + ' rect') // 9793\n .attr('width', availableWidth) // 9794\n .attr('height', availableHeight); // 9795\n // 9796\n g .attr('clip-path', clipEdge ? 'url(#nv-chart-clip-path-' + id + ')' : ''); // 9797\n // 9798\n var ticks = wrap.select('.nv-ticks').selectAll('.nv-tick') // 9799\n .data(function(d) { return d }); // 9800\n ticks.exit().remove(); // 9801\n // 9802\n ticks.enter().append('path') // 9803\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n .attr('d', function(d,i) { // 9805\n return 'm0,0l0,' // 9806\n + (y(getOpen(d,i)) // 9807\n - y(getHigh(d,i))) // 9808\n + 'l' // 9809\n + (-w/2) // 9810\n + ',0l' // 9811\n + (w/2) // 9812\n + ',0l0,' // 9813\n + (y(getLow(d,i)) - y(getOpen(d,i))) // 9814\n + 'l0,' // 9815\n + (y(getClose(d,i)) // 9816\n - y(getLow(d,i))) // 9817\n + 'l' // 9818\n + (w/2) // 9819\n + ',0l' // 9820\n + (-w/2) // 9821\n + ',0z'; // 9822\n }) // 9823\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n .attr('fill', function(d,i) { return color[0]; }) // 9825\n .attr('stroke', function(d,i) { return color[0]; }) // 9826\n .attr('x', 0 ) // 9827\n .attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) }) // 9828\n .attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) }); // 9829\n // 9830\n // the bar colors are controlled by CSS currently // 9831\n ticks.attr('class', function(d,i,j) { // 9832\n return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i;\n }); // 9834\n // 9835\n d3.transition(ticks) // 9836\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n .attr('d', function(d,i) { // 9838\n var w = (availableWidth / data[0].values.length) * .9; // 9839\n return 'm0,0l0,' // 9840\n + (y(getOpen(d,i)) // 9841\n - y(getHigh(d,i))) // 9842\n + 'l' // 9843\n + (-w/2) // 9844\n + ',0l' // 9845\n + (w/2) // 9846\n + ',0l0,' // 9847\n + (y(getLow(d,i)) // 9848\n - y(getOpen(d,i))) // 9849\n + 'l0,' // 9850\n + (y(getClose(d,i)) // 9851\n - y(getLow(d,i))) // 9852\n + 'l' // 9853\n + (w/2) // 9854\n + ',0l' // 9855\n + (-w/2) // 9856\n + ',0z'; // 9857\n }); // 9858\n }); // 9859\n // 9860\n return chart; // 9861\n } // 9862", "title": "" }, { "docid": "30c899061d6dd9cf3f3dd8b9a9a5793e", "score": "0.5264391", "text": "async function plot() {\n //Are the next 2 lines a closure example??\n const x = await getmeme();\n //Paises\n const datax = x.paises;\n //Casos grafico 1\n const cases = x.casos;\n //Muertes Grafico 2 \n const deaths = x.muertes;\n //Pacientes en estado critico\n const critical = x.criticos;\n //Pacientes actualmente con la enfermedad\n const ac = x.activos;\n //Numero total de muertes hoy\n const mh = x.muertosHoy;\n //Plots\n plotting(datax, cases,'myChart','Número de casos mundialmente:');\n plotting(datax, deaths,'myChart1','Número de muertes mundialmente:');\n plotting(datax, critical,'myChart2','Pacientes en estado crítico mundialmente:');\n plotting(datax, ac,'myChart3','Pacientes activos con la enfermedad:');\n plotting(datax, mh,'myChart4','Muertos el día de hoy:');\n}", "title": "" }, { "docid": "d92f7c3930ea8131d4e3ceed4ec1969e", "score": "0.52537715", "text": "function CalculatorView(model) {\r\n\tthis.model = model;\r\n\tthis.inputAreaId = null;\r\n\tthis.finalAreaId = null;\r\n\tthis.historyId = null;\r\n\tthis.memoryId = null;\r\n}", "title": "" }, { "docid": "aa43678c912760b4d2c3e2cf1cbe941f", "score": "0.52458733", "text": "function viewPredictedResults(predicted) {\n\n const immData = store.getState().getIn(['data', 'data']);\n\n if (!immData) {\n return;\n }\n\n const data = immData.toJS();\n const names = Object.keys(data[0]);\n\n // find the problem target \n // hard coded to regression for now, but in other problem types, \n // this could be a categorical variable \n const target = store.getState().getIn(['problem', 'targets', 0]).toJS()['colName'];\n console.log('target is:',target)\n\n // how do we handle the d3mIndex so datasets don't get scrambled? the indices are gone here\n //console.log('data row:',data[5])\n //console.log('predicted row', predicted)\n console.log('do we need to handle ordering by d3mindex here?')\n\n // build the predVar sructure by extracting the predicted target values out of the TA2 return\n var predictedValue = []\n for (var i = predicted.data.length - 1; i >= 0; i--) {\n predictedValue[i] = predicted.data[i][target]\n }\n\n // build a variable for charting. Cast the type of the variable according to the \n // data schema if needed\n\n const predVar = {\n name: \"Predicted\",\n data: enforcePredictedDataSchema(predictedValue,target)\n };\n\n // need to sort the data on the target so the lines that we draw will be connecting\n // points in the right order - note that target is hard-coded as \"Hits\" for now\n function compare(a,b) {\n if (a.target < b.target)\n return -1;\n if (a.target > b.target)\n return 1;\n return 0;\n }\n //data.sort(compare);\n\n // Gather up the features as separate entries in a vars list\n const vars = names.map(name => ({\n name,\n data: data.map(datum => datum[name])\n }));\n \n\n // also hard-coding a prediction and residual variable, but this should come from ta2\n // const predVar = {\n // name: \"predicted\",\n // data: data.map(d => d.At_bats / 4)\n // };\n var residuals = []\n for (var i = 0; i < predVar.data.length; i++) {\n residuals.push(data[i][target]-predVar.data[i])\n }\n\n const residVar = {\n name: \"Residuals\",\n data: residuals\n };\n\n // clear out the previous display\n const elmatrix = select('#scatterplotmatrix2');\n elmatrix.selectAll('*')\n .remove();\n\n const plotdata = predVar.data.map((d, i) => ({\n Predicted: predVar.data[i],\n Residuals: residVar.data[i]\n }));\n //console.log('pred vs. resid:',plotdata.slice(0,10))\n\n\n // const pspec = {\n // \"$schema\": \"https://vega.github.io/schema/vega-lite/v2.json\",\n // \"data\": { \"values\" : data },\n // \"mark\": \"circle\",\n // \"encoding\": {\n // \"x\": {\"field\": \"Predicted\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}},\n // \"y\": {\"field\": \"Residuals\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}}\n // }\n // }\n\n const targetHeader = \"Target feature: \"+ target\n\n jQuery('<h5/>', {\n text: targetHeader,\n }).appendTo('#scatterplotmatrix2');\n jQuery('<h5/>', {\n text: \"Residuals vs. Predicted\",\n }).appendTo('#scatterplotmatrix2');\n jQuery('<div/>', {\n id: \"ta2-pred-resid\",\n }).appendTo('#scatterplotmatrix2');\n\n // create a new plot for this variable combination\n\n var plotElement = document.getElementById(\"ta2-pred-resid\");\n const vismatrix0 = new ScatterPlot(plotElement, { // eslint-disable-line no-unused-vars\n data: plotdata,\n x: \"Predicted\",\n y: \"Residuals\",\n xScale: { \"zero\": false },\n yScale: { \"zero\": false },\n width: 200 * plotSizeScale,\n height: 200 * plotSizeScale\n });\n vismatrix0.render();\n\n\n // loop through the features and draw a plot for each feature compared to the modeling feature\n for (var featureIndex=0; featureIndex<vars.length; featureIndex++) {\n\n // ignore the case where the modeling feature is plotted against itself\n // also ignore cases where the Y feature is non-numeric by testing using a heuristic\n // and where the feature is an internal d3mIndex added to all datasets, this would confuse\n // a problem-oriented user\n\n if ((vars[featureIndex].name != target) &&\n (vars[featureIndex].name != 'd3mIndex') &&\n (determineVariableType(vars[featureIndex].data).type=='number')) {\n\n\n const preddata = predVar.data.map((d, i) => ({\n [predVar.name]: predVar.data[i],\n [vars[featureIndex].name]: vars[featureIndex].data[i],\n name: d\n }));\n //console.log('preddata:',preddata.slice(0,5))\n\n const residdata = residVar.data.map((d, i) => ({\n [residVar.name]: residVar.data[i],\n [vars[featureIndex].name]: vars[featureIndex].data[i],\n name: d\n }));\n //console.log('residdata:',residdata.slice(0,5))\n\n // // use vega-lite instead of candela because we need more flexibility\n // // (need scales to not always include zero)\n // const pspec = {\n // \"$schema\": \"https://vega.github.io/schema/vega-lite/v2.json\",\n // \"data\": { \"values\" : data },\n // \"layer\": [{\n // \"mark\": \"point\",\n // \"encoding\": {\n // \"x\": {\"field\": vars[featureIndex].name, \"type\": \"quantitative\", \"scale\": {\"zero\": false}},\n // \"y\": {\"field\": yVar.name, \"type\": \"quantitative\", \"scale\": {\"zero\": false}}\n // }\n // }\n // // , {\n // // \"mark\": \"line\",\n // // \"encoding\": {\n // // \"x\": {\"field\": vars[featureIndex].name, \"type\": \"quantitative\", \"scale\": {\"zero\": false}},\n // // \"y\": {\"field\": \"Predicted\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}},\n // // \"color\": {\"value\": \"black\"}\n // // }\n // // }\n // ]\n // }\n\n // const pspec2 = {\n // \"$schema\": \"https://vega.github.io/schema/vega-lite/v2.json\",\n // \"data\": { \"values\" : data },\n // \"mark\": \"circle\",\n // \"encoding\": {\n // \"x\": {\"field\": vars[featureIndex].name, \"type\": \"quantitative\", \"scale\": {\"zero\": false}},\n // \"y\": {\"field\": \"Residuals\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}}\n // }\n // }\n\n // add a new Div inside the #scatterplotmatrix element\n jQuery('<h5/>', {\n text: vars[featureIndex].name,\n css: { \"clear\": \"both\" },\n }).appendTo('#scatterplotmatrix2');\n jQuery('<div/>', {\n id: vars[featureIndex].name + \"-ta2-cont\",\n }).appendTo('#scatterplotmatrix2');\n jQuery('<div/>', {\n id: vars[featureIndex].name + \"-ta2-pred\",\n css: { \"float\": \"left\" },\n }).appendTo(\"#\" + vars[featureIndex].name + \"-ta2-cont\");\n jQuery('<div/>', {\n id: vars[featureIndex].name + \"-ta2-resid\",\n css: { \"float\": \"left\" },\n }).appendTo(\"#\" + vars[featureIndex].name + \"-ta2-cont\");\n\n // create a new plot for this variable combination\n // vegaEmbed(\"#\" + vars[featureIndex].name + \"-ta2-pred\", pspec,\n // {\n // \"actions\": false,\n // \"height\": 400*plotSizeScale / 3,\n // \"width\": 400*plotSizeScale / 3\n // });\n // vegaEmbed(\"#\" + vars[featureIndex].name + \"-ta2-resid\", pspec2,\n // {\n // \"actions\": false,\n // \"height\": 400*plotSizeScale / 3,\n // \"width\": 400*plotSizeScale / 3\n // });\n var plotElement = document.getElementById(vars[featureIndex].name + \"-ta2-pred\")\n const vismatrix1 = new ScatterPlot(plotElement, { // eslint-disable-line no-unused-vars\n data: preddata,\n x: vars[featureIndex].name,\n y: predVar.name,\n xScale: { \"zero\": false },\n yScale: { \"zero\": false },\n width: 300 * plotSizeScale / 1.5,\n height: 300 * plotSizeScale / 1.5\n });\n vismatrix1.render();\n\n var plotElement = document.getElementById(vars[featureIndex].name + \"-ta2-resid\")\n const vismatrix2 = new ScatterPlot(plotElement, { // eslint-disable-line no-unused-vars\n data: residdata,\n x: vars[featureIndex].name,\n y: \"Residuals\",\n xScale: { \"zero\": false },\n yScale: { \"zero\": false },\n width: 300 * plotSizeScale / 1.5,\n height: 300 * plotSizeScale / 1.5\n });\n vismatrix2.render();\n }\n }\n}", "title": "" }, { "docid": "dd0d315337b522bae38fb17f94beff1f", "score": "0.5244717", "text": "function draw_results( individual_results ){\n\n // calculate percentage: How agile is the current user?\n [...span('agile_percentage')].forEach(\n span => span.innerText = individual_results.final_percentage.toFixed(2)\n );\n\n // plot cake chart\n ccm.start(\"https://ccmjs.github.io/mkaul-components/plotly/versions/ccm.plotly-1.0.0.js\", {\n root: div('poll_result'),\n data: [\n {\n \"values\": Object.values( individual_results.category_counters ),\n \"labels\": Object.keys( individual_results.category_counters ),\n \"type\": \"pie\"\n }\n ],\n layout: {\n title: 'Persönliches Ergebnis'\n },\n plot_config: {\n responsive: true\n }\n } );\n}", "title": "" }, { "docid": "667da665cea451b1835abe3ede5a9bde", "score": "0.52440536", "text": "function onExecutedVegetation(process) {\n var result1 = process.outputs[0].getValue()\n var result2 = process.outputs[1].getValue()\n resu1 = result1.slice(16);\n resu2 = result2.slice(16);\n\n series1 = '..'\n series1 += resu1\n series2 = '..'\n series2 += resu2\n\n //$('#result_url1').text(result1);\n //$('#result_url2').text(result2); \n console.log('function Vegetation works: ' + series2);\n\n //OpenLayers.Util.getElement(\"result\").innerHTML = resu1;\n \n\n //var chart = $('#chart1').highcharts();\n\n $.getJSON(series2, function(data_ts) {\n vegetation_chart.series[0].update({\n data: data_ts\n })\n });\n $.getJSON(series1, function(data_ts) {\n vegetation_chart.series[1].update({\n data: data_ts\n });\n });\n\n // refresh button finished loading\n $('#ts_vegetation_refresh').attr('src', './js/img/refresh.png');\n vegetation_chart.hideLoading();\n vegetation_chart.reflow();\n\n\n}", "title": "" }, { "docid": "64ff8a38aa2541c38e80e9d215ac87e6", "score": "0.5243684", "text": "function displayResults(totalCalories, breakdown) {\n var toInsertAfter = document.getElementsByClassName(\"calorie-wrapper\")[0];\n var resultContainer = document.getElementsByClassName(\"result-container\")[0];\n if (resultContainer != null) {\n resultContainer.parentNode.removeChild(resultContainer);\n }\n resultContainer = createResultContainer(totalCalories);\n insertAfter(resultContainer, toInsertAfter);\n\n google.charts.load(\"current\", {\"packages\":[\"corechart\"]});\n google.charts.setOnLoadCallback(drawChart);\n\n function drawChart() {\n var data = google.visualization.arrayToDataTable(breakdown);\n var options = {};\n if (localStorage.getItem('mode') === 'dark') {\n options = {\n title: \"Breakdown\",\n titleTextStyle: {\n color: 'white'\n },\n legend: {\n textStyle: {\n color: 'white'\n }\n },\n backgroundColor: '#232b2b',\n color: 'white'\n };\n } else {\n options = {\n title: \"Breakdown\"\n };\n }\n var chart =\n new google.visualization.PieChart(document.getElementById(\"piechart\"));\n chart.draw(data, options);\n }\n}", "title": "" }, { "docid": "8ec6392a4c78c98e0c0433c7dc11ef5a", "score": "0.5238864", "text": "render() {\n return (\n this.state.chart\n );\n }", "title": "" }, { "docid": "0941f7f8182f5c7103ac9ba336f29814", "score": "0.5235902", "text": "updateRewardChart_() {\n // Thee are two series, i.e. reward and the cumulative reward. We maximize\n // the chart area and hide the legend. Crosshair provides the visual clue\n // for the current step of the replay.\n this.replayRewardChart_.draw(\n /** @type{!Object} */ (this.replayRewardData_), {\n 'crosshair': {'trigger': 'both', 'color': '#2471A3'},\n 'height': 400,\n 'legend': {'position': 'none'},\n 'series': {0: {'targetAxisIndex': 0}, 1: {'targetAxisIndex': 1}},\n 'theme': 'maximized',\n 'width': 600,\n });\n // Focus on the current step.\n this.replayRewardChart_.setSelection(\n [{'row': this.currentReplayIndex_, 'column': 1}]);\n }", "title": "" }, { "docid": "351f48c815df839f1c434c981d114066", "score": "0.5230524", "text": "function displayResultsChart(voteData){\n var ctx = document.getElementById('voteResultsChart').getContext('2d');\n new Chart(ctx, voteData);\n}", "title": "" }, { "docid": "2a81d662e4a2047a90f266149fe8e478", "score": "0.52285725", "text": "function calculateCalories() { \n $scope.breakfastCals = nutritionSvc.getBreakfastCals($scope.nourishments);\n $scope.lunchCals = nutritionSvc.getLunchCals($scope.nourishments);\n $scope.dinnerCals = nutritionSvc.getDinnerCals($scope.nourishments);\n $scope.snackCals = nutritionSvc.getSnackCals($scope.nourishments);\n\n chartGraph();\n }", "title": "" }, { "docid": "62f4515b8fa81ec9a207f2edab904da5", "score": "0.5220765", "text": "function initChartView(){\n var data = [{\n sales:2.9, \n year:\"2000\"\n }, {\n sales:3.5,\n year:\"2001\"\n }];\n chartView = new dhtmlXChart({\n view:\"bar\",\n container:\"chartDiv\",\n value:\"#sales#\",\n label:\"#year#\"\n });\n chartView.parse(data,\"json\");\n}", "title": "" }, { "docid": "e3ab8664ad35266063c4f50a4011d1e6", "score": "0.52193123", "text": "function displayHistoryChart(currencyName) {\n //vm.chartConfig1.loading = false;\n console.log(vm.isMacdVisible);\n vm.chartTitle = vm.currencyName;\n vm.chartData = [];\n vm.chartData.push({\n id: 'abc',\n name: vm.currencyName,\n data: vm.chartValue,\n type: vm.chartType,\n yAxis: 0,\n dataGrouping: {\n units: groupingUnits\n }\n });\n\n vm.chartData.push({\n name: 'volume',\n data: vm.chartVolume,\n type: 'column',\n yAxis: 1,\n dataGrouping: {\n units: groupingUnits\n }\n });\n\n if (vm.checkBoxParent.showMacd) {\n vm.chartData.push({\n name: 'macd',\n type: 'macd',\n linkedTo: 'abc',\n yAxis: 2,\n params: {\n shortPeriod: 12,\n longPeriod: 26,\n signalPeriod: 9,\n period: 26\n },\n dataGrouping: {\n units: groupingUnits\n }\n });\n }\n }", "title": "" }, { "docid": "ecece692964098ecd2700a16d6843190", "score": "0.5204263", "text": "draw() {\n const chart = this.render()\n .props(this._props);\n\n d3.select(this._selection)\n .datum(this._data)\n .call(chart);\n }", "title": "" }, { "docid": "2b4ed47be7a984bc6ad8408601e2c962", "score": "0.5198572", "text": "visualize() {\n\n\t\tlet thisInstance = this;\n\n if(!this.hasData()) return;\n\n const data = this.data();\n\t\tconsole.log(data.points);\n\t\tconst opts = this.options;\n\n\t\t// create a row for each object in the data\n let rows = this.tbody.selectAll(\"tr.datapoint\")\n .data(Object.values(data.points));\n\n let rowEnter = rows.enter()\n .append(\"tr\")\n\t\t\t\t.classed('datapoint', true);\n\n // create a cell in each row for each column\n let cells = rows.selectAll(\"td\")\n .data(function(row) {\n return opts.columns.map(function(column) {\n return {column: column, value: row[column.name]};\n });\n });\n\n const cellEnter = cells.enter()\n .append(\"td\")\n\t\t .attr('class', d => d.column.name);\n\n\t\tcells.merge(cellEnter)\n\t\t\t\t.text(function(d) { \n\t\t\t\t\tif (d.column.num_dec) {\n\t\t\t\t\t\treturn Number.parseFloat(d.value).toFixed(d.column.num_dec);\n\t\t\t\t\t}\n\t\t\t\t\treturn d.value; \n\t\t\t\t});\n\n\t}", "title": "" }, { "docid": "9f6f82b53dbb29123dd7a7e2888a01ac", "score": "0.51973134", "text": "function chart(selection) { // 10717\n renderWatch.reset(); // 10718\n renderWatch.models(pie); // 10719\n // 10720\n selection.each(function(data) { // 10721\n var container = d3.select(this); // 10722\n nv.utils.initSVG(container); // 10723\n // 10724\n var that = this; // 10725\n var availableWidth = nv.utils.availableWidth(width, container, margin), // 10726\n availableHeight = nv.utils.availableHeight(height, container, margin); // 10727\n // 10728\n chart.update = function() { container.transition().call(chart); }; // 10729\n chart.container = this; // 10730\n // 10731\n state.setter(stateSetter(data), chart.update) // 10732\n .getter(stateGetter(data)) // 10733\n .update(); // 10734\n // 10735\n //set state.disabled // 10736\n state.disabled = data.map(function(d) { return !!d.disabled }); // 10737\n // 10738\n if (!defaultState) { // 10739\n var key; // 10740\n defaultState = {}; // 10741\n for (key in state) { // 10742\n if (state[key] instanceof Array) // 10743\n defaultState[key] = state[key].slice(0); // 10744\n else // 10745\n defaultState[key] = state[key]; // 10746\n } // 10747\n } // 10748\n // 10749\n // Display No Data message if there's nothing to show. // 10750\n if (!data || !data.length) { // 10751\n nv.utils.noData(chart, container); // 10752\n return chart; // 10753\n } else { // 10754\n container.selectAll('.nv-noData').remove(); // 10755\n } // 10756\n // 10757\n // Setup containers and skeleton of chart // 10758\n var wrap = container.selectAll('g.nv-wrap.nv-pieChart').data([data]); // 10759\n var gEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-pieChart').append('g'); // 10760\n var g = wrap.select('g'); // 10761\n // 10762\n gEnter.append('g').attr('class', 'nv-pieWrap'); // 10763\n gEnter.append('g').attr('class', 'nv-legendWrap'); // 10764\n // 10765\n // Legend // 10766\n if (showLegend) { // 10767\n if (legendPosition === \"top\") { // 10768\n legend.width( availableWidth ).key(pie.x()); // 10769\n // 10770\n wrap.select('.nv-legendWrap') // 10771\n .datum(data) // 10772\n .call(legend); // 10773\n // 10774\n if ( margin.top != legend.height()) { // 10775\n margin.top = legend.height(); // 10776\n availableHeight = nv.utils.availableHeight(height, container, margin); // 10777\n } // 10778\n // 10779\n wrap.select('.nv-legendWrap') // 10780\n .attr('transform', 'translate(0,' + (-margin.top) +')'); // 10781\n } else if (legendPosition === \"right\") { // 10782\n var legendWidth = nv.models.legend().width(); // 10783\n if (availableWidth / 2 < legendWidth) { // 10784\n legendWidth = (availableWidth / 2) // 10785\n } // 10786\n legend.height(availableHeight).key(pie.x()); // 10787\n legend.width(legendWidth); // 10788\n availableWidth -= legend.width(); // 10789\n // 10790\n wrap.select('.nv-legendWrap') // 10791\n .datum(data) // 10792\n .call(legend) // 10793\n .attr('transform', 'translate(' + (availableWidth) +',0)'); // 10794\n } // 10795\n } // 10796\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'); // 10797\n // 10798\n // Main Chart Component(s) // 10799\n pie.width(availableWidth).height(availableHeight); // 10800\n var pieWrap = g.select('.nv-pieWrap').datum([data]); // 10801\n d3.transition(pieWrap).call(pie); // 10802\n // 10803\n //============================================================ // 10804\n // Event Handling/Dispatching (in chart's scope) // 10805\n //------------------------------------------------------------ // 10806\n // 10807\n legend.dispatch.on('stateChange', function(newState) { // 10808\n for (var key in newState) { // 10809\n state[key] = newState[key]; // 10810\n } // 10811\n dispatch.stateChange(state); // 10812\n chart.update(); // 10813\n }); // 10814\n // 10815\n // Update chart from a state object passed to event handler // 10816\n dispatch.on('changeState', function(e) { // 10817\n if (typeof e.disabled !== 'undefined') { // 10818\n data.forEach(function(series,i) { // 10819\n series.disabled = e.disabled[i]; // 10820\n }); // 10821\n state.disabled = e.disabled; // 10822\n } // 10823\n chart.update(); // 10824\n }); // 10825\n }); // 10826\n // 10827\n renderWatch.renderEnd('pieChart immediate'); // 10828\n return chart; // 10829\n } // 10830", "title": "" }, { "docid": "a80e318b7a09cfabe3fadb2c03471a2c", "score": "0.5193447", "text": "renderSolution(data, sum) {\n if (!data) return;\n var paintProperties = this.getPaintProperties(data, sum, true);\n //set the render paint property\n this.map.setPaintProperty(\n CONSTANTS.RESULTS_LAYER_NAME,\n \"fill-color\",\n paintProperties.fillColor\n );\n this.map.setPaintProperty(\n CONSTANTS.RESULTS_LAYER_NAME,\n \"fill-outline-color\",\n paintProperties.oulineColor\n );\n }", "title": "" }, { "docid": "913469b1aa09d3343482763683edd4d1", "score": "0.51914966", "text": "function calculate_and_show() {\n cleanResults();\n create_Process_objects();\n //prwta round robin kai meta\n //dinamika mpainei to quantum\n let UIquantum = document.getElementById(\"quantum\").value;\n //an einai \"falsy\" dhladh 0,null,-1.... tote ginete 1\n if (!UIquantum || UIquantum == 0) {\n UIquantum = 1;\n }\n priorityQueue(processes, UIquantum);\n fillTable();\n showSteps();\n}", "title": "" }, { "docid": "da661d88eb0abd7b45c6b695ba40492b", "score": "0.5190051", "text": "function view(type) {\r\n $('#currentdata').hide();\r\n $('#forecastInfo').hide();\r\n $('.back.card').hide();\r\n $('#chart-container').hide();\r\n\r\n switch (type) {\r\n case 'Today':\r\n $('#currentdata').show();\r\n break;\r\n case 'Week':\r\n $('#forecastInfo').show();\r\n break;\r\n case 'Hourly':\r\n $('#forecastInfo').show();\r\n $('.back.card').show();\r\n break;\r\n case 'Historical':\r\n\r\n histData = [];\r\n\r\n //returns milliseconds timestamp\r\n var currentUnix = Date.now();\r\n\r\n //turn to seconds\r\n currentUnix = Math.round(currentUnix / 1000);\r\n\r\n\r\n\r\n\r\n //24 hours in seconds (60 sec * 60 minutes * 24 hours = 86400 seconds)\r\n var dayinSecs = 86400;\r\n //var timeToPull = (time - (8 * dayinSecs));\r\n\r\n //creates ajax call for each day in last week\r\n $.each(histDays, function (i, obj) {\r\n var t = currentUnix - (obj * dayinSecs)\r\n controller.buildHistorical(i, t);\r\n });\r\n\r\n //needed to add this because asynchronous ajax flow was causing errors\r\n $(document).ajaxStop(function () {\r\n populateHistorical();\r\n });\r\n\r\n break;\r\n }\r\n}", "title": "" }, { "docid": "209002a6a3874b96126b0b9e39692c49", "score": "0.5187554", "text": "function initData() {\n $scope.chartsObjs = {};\n if ($scope.charts !== undefined) {\n for (let key in $scope.charts[$scope.field]) {\n // Calculate six sigma on chart\n calculateSixSigma($scope.charts[$scope.field][key]);\n calculateLimit($scope.field, key);\n if ($scope.chartsObjs === undefined) {\n $scope.chartsObjs = {};\n }\n if ($scope.chartsObjs[$scope.field] === undefined) {\n $scope.chartsObjs[$scope.field] = {};\n }\n $timeout(function () {\n if (document.querySelector('#spc' + $scope.field + key) !== null) {\n $scope.chartsObjs[$scope.field][key] = new CanvasJS.Chart('spc' + $scope.field +\n key, $scope.charts[$scope.field][key]);\n $scope.chartsObjs[$scope.field][key].render();\n }\n }, 50);\n }\n }\n calculateExport();\n }", "title": "" }, { "docid": "ce3a8d642b7aae51b958bececbc83a1c", "score": "0.5184449", "text": "function calculateChartData(results, start, end, grouping) {\n\n\n // add missing entries\n results = addIntermediateEntries(results, start, end);\n\n // group by group parameter\n results = groupEntries(results, grouping);\n\n // format and return\n return _.map(results, prepareEntry);\n}", "title": "" }, { "docid": "240d9d1c529d2b834d84a703ae17ca66", "score": "0.5173887", "text": "getPaintProperties(data, sum, setRenderer) {\n //build an expression to get the matching puids with different numbers of 'numbers' in the marxan results\n var fill_color_expression = this.initialiseFillColorExpression(\"puid\");\n var fill_outline_color_expression = this.initialiseFillColorExpression(\n \"puid\"\n );\n if (data.length > 0) {\n var color, visibleValue, value;\n //create the renderer using Joshua Tanners excellent library classybrew - available here https://github.com/tannerjt/classybrew\n if (setRenderer)\n this.classifyData(\n data,\n Number(this.state.renderer.NUMCLASSES),\n this.state.renderer.COLORCODE,\n this.state.renderer.CLASSIFICATION\n );\n //if only the top n classes will be rendered then get the visible value at the boundary\n if (this.state.renderer.TOPCLASSES < this.state.renderer.NUMCLASSES) {\n let breaks = this.state.brew.getBreaks();\n visibleValue =\n breaks[\n this.state.renderer.NUMCLASSES - this.state.renderer.TOPCLASSES + 1\n ];\n } else {\n visibleValue = 0;\n }\n // the rest service sends the data grouped by the 'number', e.g. [1,[23,34,36,43,98]],[2,[16,19]]\n data.forEach((row, index) => {\n if (sum) {\n //multi value rendering\n value = row[0];\n //for each row add the puids and the color to the expression, e.g. [35,36,37],\"rgba(255, 0, 136,0.1)\"\n color = this.state.brew.getColorInRange(value);\n //add the color to the expression - transparent if the value is less than the visible value\n if (value >= visibleValue) {\n fill_color_expression.push(row[1], color);\n fill_outline_color_expression.push(\n row[1],\n \"rgba(150, 150, 150, 0.6)\"\n ); //gray outline\n } else {\n fill_color_expression.push(row[1], \"rgba(0, 0, 0, 0)\");\n fill_outline_color_expression.push(row[1], \"rgba(0, 0, 0, 0)\");\n }\n } else {\n //single value rendering\n fill_color_expression.push(row[1], \"rgba(255, 0, 136,1)\");\n fill_outline_color_expression.push(\n row[1],\n \"rgba(150, 150, 150, 0.6)\"\n ); //gray outline\n }\n });\n // Last value is the default, used where there is no data\n fill_color_expression.push(\"rgba(0,0,0,0)\");\n fill_outline_color_expression.push(\"rgba(0,0,0,0)\");\n } else {\n fill_color_expression = \"rgba(0, 0, 0, 0)\";\n fill_outline_color_expression = \"rgba(0, 0, 0, 0)\";\n }\n return {\n fillColor: fill_color_expression,\n oulineColor: fill_outline_color_expression,\n };\n }", "title": "" }, { "docid": "82cd755662d5227bc8e2b174b9e92a25", "score": "0.51727015", "text": "function SUPERCHART(){\n if(dataURL.get(\"drawing\")){\n return\n }\n if($(\"#container-lastweek\").length>0 && $(\".mp-pushed\").length>0 && $(\".clock\").length==0){\n $(\".loading-data.page-level\").show();\n }\n dataURL.set(\"drawing\",true)\n \n var path = dataURL.get('paths'),\n d = '',\n uri_persons = dataURL.get('persons'),\n uri_category = dataURL.get('category') || 'total_usage',\n uri_users = dataURL.get('group') || '';\n \n uri_persons='/'+uri_persons;\n uri_category+='/';\n \n if(uri_users[0] && uri_users[0].length>0){\n uri_users=encodeURI(uri_users[0]);\n uri_users='/'+uri_users;\n }\n \n if(uri_users!==''){\n uri_persons='';\n }\n \n var $container = $('#container'),\n seriesOptions = [],\n yAxisOptions = [],\n seriesCounter = 0,\n enableLegend =false,\n names = dataURL.get('names'),\n colors= ['#FB715E','#7994FF','#5AA689','#FFD340','#796499'],\n uri_root = '/',\n start_date = dataURL.get('start'),\n end_date = dataURL.get('end'),\n date_range = '/'+formatDate(start_date)+'/'+formatDate(end_date)+'/',\n campus_tag = dataURL.get('campus') || '',\n distinct = dataURL.get('distinct') || false,\n distinct_tag = \"\";\n \n if(campus_tag!='' && campus_tag[0].length>0 ){\n campus_tag=\"/\"+campus_tag[0];\n uri_category=\"on_off_campus/\";\n }\n \n if(distinct){\n distinct_tag = \"?distinct=True\";\n }\n \n var total_sum = 0,\n distinct_sum = 0;\n \n $.each(names, function(i, name) {\n var jsonURL = uri_root+uri_category+path[i]+uri_persons+uri_users+campus_tag+date_range+distinct_tag;\n \n // console.log(jsonURL);\n\n var json = $.getJSON(jsonURL)\n \n json.done(function(data){\n total_sum += parseInt(data.total);\n distinct_sum += parseInt(data.distinct);\n \n if(data.data.length>0){\n jsonResponse(data)\n }\n else {\n data.data.push([(new Date).getTime(),0]);\n console.log(data.meta.library+\" is empty.\")\n jsonResponse(data)\n }\n })\n \n json.fail(function(){\n console.log('Error: JSON Ajax function failed.')\n var $error = $('<div/>').attr({'class':'error-loading'}).append('<span/>').html(\"<p>Sorry, the data failed to load from the server.</p>\");\n $container.html($error);\n $error.fadeOut(0).fadeIn(500);\n $(\".loading-data.page-level\").hide()\n dataURL.set(\"drawing\",\"\")\n });\n \n function jsonResponse(data) {\n d = data;\n if(data.data !== undefined){\n d = data.data;\n }\n else{\n d = data;\n }\n \n var color = colors[i];\n \n if(name=='Woodruff'){\n color='#FB715E';\n }\n if(name=='Law'){\n color='#7994FF';\n }\n if(name=='Health Sciences'||name=='Health Science'){\n color='#5AA689';\n }\n \n seriesOptions[i] = {\n name: name,\n id: name,\n data: d,\n color:color,\n fillColor : {\n linearGradient : {\n x1: 0, \n y1: 0, \n x2: 0, \n y2: 1\n },\n stops : [\n [0, 'rgb(65, 73, 85)'], \n [1, 'rgb(65, 73, 85)']\n ]\n },\n pointInterval: 36 * 1000\n };\n \n // As we're loading the data asynchronously, we don't know what order it will arrive. So\n // we keep a counter and create the chart when all the data is loaded.\n seriesCounter++;\n \n if (seriesCounter == names.length) {\n // console.log(seriesCounter)\n // Timeline Events are possible!\n // seriesOptions.push(\n // {\n // name : \"Flaged Events\", \n // color: '#999',\n // type : 'flags',\n // data : [\n // {\n // x : 1405536180000, // Point where the flag appears\n // title : 'Timeline Event 1', // Title of flag displayed on the chart \n // text : 'Description for timeline event.' // Text displayed when the flag are highlighted.\n // },\n // {\n // x : 1407272940000, // Point where the flag appears\n // title : 'Timeline Event 2', // Title of flag displayed on the chart \n // text : 'Description for timeline event.' // Text displayed when the flag are highlighted.\n // }\n // ],\n // onSeries : '', // Id of which series it should be placed on. If not defined \n // // the flag series will be put on the X axis\n // shape : 'flag' // Defines the shape of the flags.\n // });\n \n function duration(number){\n var upper_limit = 2500;\n var lower_limit = 550;\n number = (number/10);\n if(number > upper_limit){\n number = upper_limit\n }\n else if(number < lower_limit){\n number = lower_limit;\n }\n return number;\n }\n var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',')\n $(\".visitor-count .total .number\").animateNumber({ number: total_sum,easing: 'easeInQuad',numberStep: comma_separator_number_step },duration(total_sum));\n $(\".visitor-count .distinct .number\").animateNumber({ number: distinct_sum, easing: 'easeInQuad',numberStep: comma_separator_number_step },duration(distinct_sum));\n \n drawChart(seriesOptions);\n drawChartLastWeek(seriesOptions);\n $(\".visitor-count\").css({\"opacity\":1})\n $(\".loading-data.page-level\").hide();\n dataURL.set(\"drawing\",false)\n }\n }\n \n function drawChartLastWeek(data){\n var $container = $('#container-lastweek'),\n enableLegend = (data.length > 1 ? true : false);\n Highcharts.setOptions({\n global: {\n useUTC: false\n }\n });\n $container.highcharts('StockChart', {\n chart:{\n backgroundColor:'transparent',\n type:'column'\n },\n rangeSelector: {\n buttons: [{\n type: 'day',\n count: 1,\n text: '1d'\n },{\n type: 'day',\n count: 3,\n text: '3d'\n },{\n type: 'week',\n count: 1,\n text: '1w'\n }],\n selected: 0,\n },\n \n yAxis: {\n labels: {\n formatter: function() {\n return (this.value < 0 ? '-' : '') + Highcharts.numberFormat(this.value, 0);;\n }\n },\n floor:0\n },\n navigator : {\n enabled : false\n },\n scrollbar : {\n enabled : false\n },\n plotOptions: {\n series: {\n compare: undefined, //value, percent\n dataGrouping:{\n approximation:'sum',\n smoothed:false,\n forced:true,\n units: [ ['hour', [1]] ] \n }\n }\n },\n navigation: {\n buttonOptions: {\n theme: {\n 'stroke-width': 0,\n stroke: \"#DCDEE5\",\n r: 3,\n style:{\n 'cursor':\"pointer\"\n },\n states: {\n hover: {\n fill: '#DCDEE5'\n },\n select: {\n stroke: '#DCDEE5',\n fill: '#DCDEE5'\n }\n }\n }\n }\n },\n legend: {\n enabled: enableLegend,\n },\n tooltip: {\n pointFormat: '<span style=\"color:{series.color}\">{series.name}</span>: <b>{point.y} visitors</b><br/>',\n changeDecimals: 2,\n valueDecimals: 0\n },\n inputEnabled:false,\n inputDateFormat: '%H:%M:%S.%L',\n inputEditDateFormat: '%H:%M:%S.%L',\n // Custom parser to parse the %H:%M:%S.%L format\n inputDateParser: function(value) {\n value = value.split(/[:\\.]/);\n return Date.UTC(\n 1970, \n 0, \n 1, \n parseInt(value[0]),\n parseInt(value[1]),\n parseInt(value[2]),\n parseInt(value[3])\n );\n },\n \n title: {\n text: '',\n floating: true\n },\n \n xAxis: {\n tickPixelInterval: 120,\n type: 'datetime',\n dateTimeLabelFormats : {\n hour: '%I %p',\n minute: '%I:%M %p'\n },\n },\n series: data\n }, function(chart) {\n // apply the date pickers\n setTimeout(function(){\n if(chart && chart.options.chart){\n setDatepickerPosition(chart);\n }\n },0)\n });//end highcharts\n }//end drawChartLastWeek\n \n function drawChart(data){\n var $container= $('#container'),\n enableLegend = (data.length > 1 ? true : false);\n Highcharts.setOptions({\n global: {\n useUTC: false\n }\n });\n $container.highcharts('StockChart', {\n chart:{\n backgroundColor:'transparent'\n },\n rangeSelector: {\n buttons: [{\n type: 'week',\n count: 1,\n text: '1w'\n }, {\n type: 'month',\n count: 1,\n text: '1m'\n }, {\n type: 'month',\n count: 3,\n text: '3m'\n }, {\n type: 'month',\n count: 6,\n text: '6m'\n }, {\n type: 'ytd',\n text: 'YTD'\n }, {\n type: 'year',\n count: 1,\n text: '1y'\n }, {\n type: 'all',\n text: 'All'\n }],\n selected: 6,\n inputDateFormat: '%b %e %Y',\n inputEditDateFormat: '%Y-%m-%d' \n },\n \n yAxis: {\n labels: {\n formatter: function() {\n return (this.value < 0 ? '-' : '') + Highcharts.numberFormat(this.value, 0);;\n }\n },\n floor:0\n },\n legend: {\n enabled: enableLegend,\n },\n plotOptions: {\n series: {\n compare: undefined, //value, percent\n dataGrouping:{\n approximation:'sum',\n smoothed:false,\n forced:false,\n groupPixelWidth:300,\n units: [ ['minute',[15]],['hour', [1]],['day',[1]] ]\n },\n \n }\n },\n navigation: {\n buttonOptions: {\n theme: {\n 'stroke-width': 0,\n stroke: \"#DCDEE5\",\n r: 3,\n style:{\n 'cursor':\"pointer\"\n },\n states: {\n hover: {\n fill: '#DCDEE5'\n },\n select: {\n stroke: '#DCDEE5',\n fill: '#DCDEE5'\n }\n }\n }\n }\n },\n tooltip: {\n pointFormat: '<span style=\"color:{series.color}\">{series.name}</span>: <b>{point.y} visitors</b><br/>',\n changeDecimals: 2,\n valueDecimals: 0\n },\n \n title: {\n text: '',\n floating: true\n },\n \n xAxis: {\n tickPixelInterval: 120,\n type: 'datetime',\n dateTimeLabelFormats : {\n hour: '%I %p',\n minute: '%I:%M %p'\n },\n },\n series: data\n }, function(chart) {\n // apply the date pickers\n setTimeout(function(){\n setDatepickerPosition(chart)\n },0)\n });//end highcharts\n }//end drawChart\n \n })//end $.each\n}//end SUPERCHART", "title": "" }, { "docid": "70b2ee6a466970bbc6a59debc5edc6cb", "score": "0.51576656", "text": "function drawChart(){}", "title": "" }, { "docid": "6a364efdbe2c2a8a6774215a9000b8e2", "score": "0.515269", "text": "drawChart() {\n // Remove existing chart to ensure the chart isn't just getting\n // overwritten:\n const existingSvg = d3.select(`#${this.chartId} > svg`);\n if (existingSvg) existingSvg.remove();\n\n // One of D3's conventions is to specify the dimensions of the\n // chart elements prior to drawing:\n const width = 600;\n const height = 600;\n const radius = 225;\n\n // Add an SVG element to the <div>. This is the container we'll\n // use to draw our chart:\n const svg = d3\n .select(`#${this.chartId}`)\n .append('svg')\n .attr('viewBox', '0 0 800 800');\n\n // This is used to offset the chart so it's centered within the\n // <svg> element:\n const g = svg\n .append('g')\n .attr('transform', `translate(${width / 2 + 200}, ${height / 2})`);\n\n // These are used to differentiate the various categories:\n const colors = [\n '#2b6b50',\n '#676766',\n '#4cacb0',\n '#f0652f',\n '#2980b9',\n '#c72531',\n '#942979',\n '#fecc46'\n ];\n // Setup simple ordinal scale\n // @see https://github.com/d3/d3/blob/master/API.md#ordinal-scales\n const colorScale = d3.scaleOrdinal(colors);\n\n // Update the data to ensure the values being displayed are positive\n // and correspond with the activeAmountType in state:\n const validData = this.chartDataForView;\n const grandTotal = validData.reduce(\n (acc, record) => acc + record.total,\n 0\n );\n\n // Create a layout for our pie chart:\n const pie = d3\n .pie()\n .sort(null)\n .value(d => d.total);\n\n // Defined the arc for the chart, we're creating a donut, so the\n // innerRadius is smaller than the outerRadius. If we didn't want\n // a donut, we'd set the innerRadius to 0:\n const arcPath = d3\n .arc()\n .outerRadius(radius)\n .innerRadius(radius / 2);\n\n // This is used to place the percentage labels. They'll be\n // located on the outside of the chart:\n const label = d3\n .arc()\n .outerRadius(radius + 35)\n .innerRadius(radius + 35);\n\n // Load the data using D3's General Update Pattern\n // @see http://quintonlouisaiken.com/d3-general-update-pattern/\n const arc = g\n .selectAll('.arc')\n .data(pie(validData))\n .enter()\n .append('g')\n .attr('stroke', '#fff');\n\n // Add a <path> element for each category at 100ms intervals using\n // D3's neat transitions API:\n arc\n .append('path')\n .attr('fill', d => colorScale(d.data.category))\n .transition()\n .delay((d, i) => i * 100)\n .duration(500)\n .attrTween('d', d => {\n const i = d3.interpolate(d.startAngle + 0.1, d.endAngle);\n return t => {\n d.endAngle = i(t);\n return arcPath(d);\n };\n });\n\n // Add the label that displays the percentage corresponding to\n // the category. I added a 500ms delay so some of the category\n // <path> elements load before the labels are displayed:\n arc\n .append('text')\n .attr('transform', d => `translate(${label.centroid(d)})`)\n .attr('dy', '.35em')\n .attr('stroke', (d, i) => colors[i])\n .style('text-anchor', 'middle')\n .style('font-size', '22px')\n .transition()\n .delay(500)\n .text(d => d3.format(',.1%')(d.value / grandTotal));\n\n // Create a legend to the left of the pie chart which indicates\n // what color is used for each category:\n const legend = svg\n .append('g')\n .attr('class', 'legend')\n .attr('x', 0)\n .attr('y', 100)\n .attr('height', '100%')\n .attr('width', 300);\n\n legend\n .selectAll('g')\n .data(validData)\n .enter()\n .append('g')\n .each(function(d, i) {\n const g = d3.select(this);\n g.attr('transform', `translate(0, ${i * 40})`);\n\n g.append('rect')\n .attr('x', 0)\n .attr('width', 16)\n .attr('height', 16)\n .attr('fill', colors[i]);\n\n g.append('text')\n .attr('x', 25)\n .attr('y', 10)\n .attr('alignment-baseline', 'middle')\n .attr('width', 100)\n .attr('fill', colors[i])\n .style('font-size', '16px')\n .style('font-weight', 'bold')\n .text(d.category);\n });\n }", "title": "" }, { "docid": "c9eb9efde8b93d505d5a3287ff15d903", "score": "0.5148371", "text": "function drawChart() { // For each gene in the original query, draw the respective tissue expression and affy value graph.\n if (tissue_expression_present) {\n for (let i = 1; i < data_array.length; i = i + 2) {\n testing(data_array[i], data_array[i - 1]);\n }\n }\n if (microarray_data_present) {\n for (let i = 1; i < affy_array.length; i = i + 2) {\n query_for_affy_chart(affy_array[i], affy_array[i - 1]);\n }\n }\n}", "title": "" }, { "docid": "f5f56774967da50210d3b80a4ad0b1cb", "score": "0.5129587", "text": "showDataViz(e){// add your code to run when the singleton is called for\n}", "title": "" }, { "docid": "e3b92e0b815127f730c17b24de29c640", "score": "0.5127245", "text": "function GraphView(drawCanvas, pStockView)\n{\n var se = this;\n se.sView = pStockView;\n se.canvas = drawCanvas;\n setCanvasSizeToContainerSize(this.canvas);\n se.c = this.canvas.getContext('2d');\n se.drawHeight = se.getDrawHeight(this.canvas);\n se.drawWidth = se.getDrawWidth(this.canvas);\n se.xPaddLeft = 30;\n se.xPaddRight = 30;\n se.yPaddTop = 30;\n se.yPaddBot = 30;\n se.pixelPerXLabel = {'x' : 30, 'y' : 60};\n se.pixelPerYLabel = {'x' : 60, 'y' : 30};\n se.zoom_vector = null;\n\n}", "title": "" }, { "docid": "cc4269e2e7d12f9647167f5c02481eb5", "score": "0.5126447", "text": "function renderCharts(views) {\n var content = $(\"<span></span>\")\n\n //Create a container for line chart.\n content.append('<div class=\"card\" id=\"views-chart\"><h1 class=\"title\">' + safe(commas(views.count)) + ' views</h1></div>')\n\n //Create countries table.\n content.append('<div class=\"card\" id=\"countries\"><div class=\"row\"> <section class=\"col-md-6\"> <div class=\"list-container\"><div class=\"list\"> <div class=\"item headings\"> <div class=\"data\">Country</div><div class=\"data right\">Views</div> </div> </div></div> </section> <section class=\"col-md-6\"> <div class=\"map\"></div> </section> </div></div>')\n var countriesList = content.find(\"#countries .list\")\n for(var code in views.countries) {\n countriesList.append('<div class=\"item\"> <div class=\"data\">' + safe(countryName[code] || code) + '</div> <div class=\"data right\">' + safe(commas(views.countries[code])) + '</div> </div>')\n }\n\n //Create browsers, operating systems & devices bar graphs.\n content.append('<div class=\"row\"> <section class=\"col-md-4\"> <div id=\"browsers\" class=\"card\"><h1 class=\"title\">Browsers</h1></div> </section> <section class=\"col-md-4\"> <div id=\"os\" class=\"card\"><h1 class=\"title\">Operating Systems</h1></div> </section> <section class=\"col-md-4\"> <div id=\"devices\" class=\"card\"><h1 class=\"title\">Devices</h1></div> </section> </div>')\n barGraph(content.find(\"#browsers\"), limitObject(views.browsers, 10), {type: \"number\", suffix: \"views\"})\n barGraph(content.find(\"#os\"), limitObject(views.operating_systems, 10), {type: \"number\", suffix: \"views\"})\n barGraph(content.find(\"#devices\"), limitObject(views.types, 10), {type: \"number\", suffix: \"views\"})\n\n //Create referrers bar graph.\n content.append('<div class=\"row\"> <section class=\"col-md-3\"></section> <section class=\"col-md-6\"> <div id=\"referrers\" class=\"card\"> <h1 class=\"title\">Referrers</h1> </div> </section> <section class=\"col-md-3\"></section> </div>')\n var referrers = {}\n for(var domain in views.referrers) { referrers['<img class=\"favicon\" src=\"https://cdn.staticaly.com/favicons/' + safe(domain) + '\"> ' + safe(domain)] = views.referrers[domain] }\n barGraph(content.find(\"#referrers\"), limitObject(referrers, 10), {type: \"number\", suffix: \"views\"})\n\n\n //Create a function to render the rest on demand.\n var run = function(wrapper) {\n wrapper = $(wrapper || \".page\")\n var viewsChart = wrapper.find(\"#views-chart\"), map = wrapper.find(\"#countries .map\"), browsers = wrapper.find(\"#browsers .bar-graph\"), referrers = wrapper.find(\"#referrers .bar-graph\")\n\n //Builds the views chart.\n chart(viewsChart, views.chart, {type: \"number\", suffix: \"views\"})\n\n //Builds the world map.\n map.vectorMap({\n map: \"world_mill\",\n backgroundColor: \"transparent\",\n zoomOnScroll: false,\n focusOn: {\n x: 0.5,\n y: 0.5,\n scale: 2.5\n },\n regionStyle: {\n initial: {\n fill: \"#dde4ee\",\n \"fill-opacity\": .9,\n stroke: \"none\",\n \"stroke-width\": 0,\n \"stroke-opacity\": 0\n }\n },\n series: {\n regions: [{\n values: views.countries,\n scale: [\"#82a4f6\", \"#6b90ed\", \"#5082ff\"],\n normalizeFunction: \"polynomial\"\n }]\n }\n })\n\n //Runs the animation when the chart is in view.\n var show = function() {\n if(viewsChart.isInView() && !viewsChart.hasClass(\"active\")) { viewsChart.addClass(\"active\") }\n if(map.isInView() && !map.hasClass(\"active\")) {\n map.addClass(\"active\").vectorMap(\"set\", \"focus\", {x: 0.5, y: 0.5, scale: 1, animate: true})\n }\n if(!browsers.hasClass(\"active\") && browsers.isInView()) {\n browsers.addClass(\"active\")\n barShow(\"#browsers .bar-graph, #os .bar-graph, #devices .bar-graph\")\n }\n if(!referrers.hasClass(\"active\") && referrers.isInView()) {\n referrers.addClass(\"active\")\n barShow(\"#referrers .bar-graph\")\n }\n }\n setTimeout(show, 600)\n $(window).scroll(show)\n }\n\n return {html: content.html(), run: run}\n}", "title": "" }, { "docid": "893400ae06949b8363286260b307bcca", "score": "0.5124527", "text": "function launchHSpiderwebChart(){\n\tvar t = [];\n\tvar q = $(\"#query\").val();\n\tvar sel = $('#default-graph-uri-visu').val();\n\n\t$.ajax({\n\t\turl : '${baseUri}/sparql',\n\t\ttype : 'GET',\n\t\tdata : {\n\t\t\t'default-graph-uri' : sel,\n\t\t\t'query' : q,\n\t\t},\n\t\tdataType : 'json',\n\t\terror : function(result, status, error){\n\t\t\tif(getLang()==\"EN\"){\n\t\t\t\talert(\"Failure to recovery parameters\");\n\t\t\t} else {\n\t\t\t\talert(\"Echec de récupération des paramètres\");\n\t\t\t}\n\t\t},\n\t\tsuccess : function(json, status){\n\t\t\tvar nVars = json.head.vars.length;\n\t\t\tvar varNames = [];\n\t\t\tif(json.results.bindings.length==0)\n\t\t\t\talert(\"no results to show\");\n\t\t\tif (nVars>1 || nVars<4){\n\t\t\t\t$.each(json.results.bindings, function(key, val) {\n\t\t\t\t\tvar temp = [];\n\t\t\t\t\t\t$.each(val, function(k, sub) {\n\t\t\t\t\t\t\tvarNames.push(k);\n\t\t\t\t\t\t\t$.each(sub, function(subK, subSub) {\n\t\t\t\t\t\t\t\tif(subK == \"value\"){\n\t\t\t\t\t\t\t\t\ttemp.push(subSub);\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\tt.push(temp);\n\t\t\t\t});\n\t\t\t\tconsole.log(t);\n\t\t\t\t\n\t\t\t\tvar tt = [];\n\t\t\t\tfor(var i=0; i<t[0].length; i++){\n\t\t\t\t\tvar temp = [];\n\t\t\t\t\tfor(var j=0; j<t.length; j++){\n\t\t\t\t\t\tif(j==0)\n\t\t\t\t\t\t\ttemp.push(t[j][i]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttemp.push(parseFloat(t[j][i]));\n\t\t\t\t\t}\n\t\t\t\t\ttt.push(temp);\n\t\t\t\t}\t\n\t\t\t\tconsole.log(tt);\n\t\t\t\t\n\t\t\t\tvar seriesOptions = [];\n\t\t\t\tfor(var i=1; i<tt.length; i++){\n\t\t\t\t\tvar d = {};\n\t\t\t\t\td[\"data\"] = tt[i];\n\t\t\t\t\td[\"name\"] = varNames[i];\n\t\t\t\t\td[\"pointPlacement\"] = 'on';\n\t\t\t\t\tseriesOptions.push(d);\n\t\t\t\t}\n\t\t\t\tconsole.log(seriesOptions);\n\t\t\t\tconsole.log(tt[0]);\n\t\t\t\t\n\t\t\t\tconfigSpiderweb(seriesOptions, tt[0]);\n\t\t\t}\n\t\t}\n\t});\n}", "title": "" }, { "docid": "f692247db8f9974e3640518fff47947e", "score": "0.5117216", "text": "function ChartUpdate() {\n myChart.update();\n}", "title": "" }, { "docid": "dc0e87f6802144bc2987e4e80c7a2771", "score": "0.5113048", "text": "function renderGraph_quotation_sum (h) {\n //console.log(h._approved);\n $('.chart').show();\n $('.search_year_quotation').hide();\n $('.search_year_lead').hide();\n $('.search_year_sum').show();\n $('.chart_line').hide();\n $('.chart_bar').show();\n $('.chart_target').hide();\n $('.chart_target_detail').hide();\n $('.chart_line_quotation').hide();\n var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];\n var number = ['12.5','14','19','17','18','25.5','14.0','15.26','25.60','25.69','22.50'];\n\n var dataSource_bar = [];\n var text_ = '';\n var approved=0,_approved = 0;\n // var count_qapproved=0,count_q_approved=0;\n //\n // for (var i = 0; i < h.qapproved.length; i++) {\n // count_qapproved += h.qapproved[i] << 0;\n // count_q_approved += h.q_approved[i] << 0;\n // }\n\n // var total_quotation = count_q_approved+count_qapproved;\n //console.log(count_qapproved);\n\n for (var i = 0; i < h.approved.length; i++) {\n approved += h.approved[i] << 0;\n }\n for (var x = 0; x < h._approved.length; x++) {\n _approved += h._approved[x] << 0;\n }\n\n\n $.each(h.approved, function (i,v) {\n if(h.approved[i] <=0 && h._approved[i] <=0){\n dataSource_bar.push({type:month[i],value:numberWithCommas(0),number:0});\n //console.log('aaa');\n }else{\n //console.log('bbb');\n var con_ = numberWithCommas(h._approved[i]);\n dataSource_bar.push({type:month[i],value:numberWithCommas(v),number:con_});\n }\n });\n\n //console.log(dataSource_bar);\n\n text_ =\"Quotation/Contract\";\n\n $('#chart_bar').dxChart('instance').option('dataSource', dataSource_bar);\n $('#chart_bar').dxChart('instance').render();\n\n // $('#reqs-per-second').dxCircularGauge('instance').option('value', per);\n // $('#reqs-per-second').dxCircularGauge('instance').render();\n\n $('#chart_bar').dxChart('instance').option('title', text_);\n $('#chart_bar').dxChart('instance').render();\n\n //$('#per').html(\"Quotation/Contract Ratio in \" + per + \"%\");\n // $('#per_').html(per);\n // $('#total_lead').html(\"Quotation Approved \" + approved);\n // $('#total_customer').html(\"Quotation Non-Approved \" + _approved);\n}", "title": "" }, { "docid": "de22139fbe6be0aa8370df3349a19f0e", "score": "0.5111207", "text": "function draw_consensusPlot(key)\n{\n /* called by initializing consensusPlot, and zooming\n but not by panning, won't redraw graph\n need to set width to all scrollables\n */\n var vobj=apps.gg.view[key];\n var cp=vobj.consensusplot;\n\n var pxwidth=Math.ceil(cp.sf*id2subfam[vobj.subfamid].consensuslen);\n for(var i=0; i<cp.scrollable.length; i++) {\n cp.scrollable[i].width=pxwidth;\n cp.scrollable[i].style.left=cp.preset_left;\n }\n\n var ctx=cp.rulercanvas.getContext('2d');\n plot_ruler({horizontal:true,yoffset:0,ctx:ctx,color:'#858585',start:0,stop:cp.rulercanvas.width-1,\n min:0,max:id2subfam[vobj.subfamid].consensuslen});\n\n var canvaslst=[];\n for(var i=0; i<cp.treatment_all.length; i++) {\n var dd=cp.treatment_all[i];\n var canvas=cp.tk2canvas[dd[0]];\n var ctx=canvas.getContext('2d');\n canvaslst.push([canvas,ctx]);\n if(cp.assayMax == 0 && cp.assayMin == 0){\n // create a notice if there is no data - dpuru : 06/29/2015\n ctx.fillStyle = \"rgb(158, 151, 142)\";\n ctx.fillText(\"No signal detected in this assay for this TE consensus\", 200, 25);\n } else {\n barplot_base(dd[1],\n 0, dd[1].length,\n ctx,\n {\n p: 'rgb(' + qtc_treat_a.pr + ',' + qtc_treat_a.pg + ',' + qtc_treat_a.pb + ')',\n n: 'rgb(' + qtc_treat_a.pr + ',' + qtc_treat_a.pg + ',' + qtc_treat_a.pb + ')'\n },\n cp.assayMax, cp.assayMin,\n 0, densitydecorpaddingtop,\n cp.sf, wiggleheight, true, false);\n }\n }\n\n /* overlay treat-unique */\n for(i=0; i<cp.treatment_unique.length; i++) {\n var dd=cp.treatment_unique[i];\n barplot_base(dd[1],\n 0, dd[1].length,\n canvaslst[i][1],\n {p:'rgb('+qtc_treat_u.pr+','+qtc_treat_u.pg+','+qtc_treat_u.pb+')',\n n:'rgb('+qtc_treat_u.pr+','+qtc_treat_u.pg+','+qtc_treat_u.pb+')'},\n cp.assayMax,cp.assayMin,0,densitydecorpaddingtop,\n cp.sf,wiggleheight,true,false);\n plot_ruler({ctx:canvaslst[i][0].getContext('2d'),\n stop:densitydecorpaddingtop,\n start:canvaslst[i][0].height-1,\n xoffset:canvaslst[i][0].width-1,\n horizontal:false,\n color:colorCentral.foreground,\n min:cp.assayMin,\n max:cp.assayMax,\n extremeonly:true,\n max_offset:-4,\n });\n }\n\n if(id2geo[vobj.geoid].input!=null) {\n canvaslst=[];\n for(i=0; i<cp.input_all.length; i++) {\n var dd = cp.input_all[i];\n var canvas = cp.tk2canvas[dd[0]];\n var ctx = canvas.getContext('2d');\n canvaslst.push([canvas, ctx]);\n if (cp.assayMax == 0 && cp.assayMin == 0) {\n // create a notice if there is no data - dpuru : 06/29/2015\n ctx.fillStyle = \"rgb(158, 151, 142)\";\n ctx.fillText(\"No signal detected in this assay for this TE consensus\", 200, 25);\n } else {\n barplot_base(dd[1],\n 0, dd[1].length,\n ctx,\n {\n p: 'rgb(' + qtc_input_a.pr + ',' + qtc_input_a.pg + ',' + qtc_input_a.pb + ')',\n n: 'rgb(' + qtc_input_a.pr + ',' + qtc_input_a.pg + ',' + qtc_input_a.pb + ')'\n },\n cp.assayMax, cp.assayMin,\n 0, densitydecorpaddingtop,\n cp.sf, wiggleheight, true, false)\n }\n }\n // overlay input-unique\n for(i=0; i<cp.input_unique.length; i++) {\n var dd=cp.input_unique[i];\n barplot_base(dd[1],\n 0,dd[1].length,\n canvaslst[i][1],\n {p:'rgb('+qtc_input_u.pr+','+qtc_input_u.pg+','+qtc_input_u.pb+')',\n n:'rgb('+qtc_input_u.pr+','+qtc_input_u.pg+','+qtc_input_u.pb+')'},\n cp.assayMax,cp.assayMin,0,densitydecorpaddingtop,\n cp.sf,wiggleheight,true,false);\n plot_ruler({ctx:canvaslst[i][0].getContext('2d'),\n stop:densitydecorpaddingtop,\n start:canvaslst[i][0].height-1,\n xoffset:canvaslst[i][0].width-1,\n horizontal:false,\n color:colorCentral.foreground,\n min:cp.assayMin,\n max:cp.assayMax,\n extremeonly:true,\n max_offset:-4,\n });\n }\n }\n\n /* density */\n ctx=cp.densitycanvas.getContext('2d');\n barplot_base(cp.densitydata,0,cp.densitydata.length,\n ctx,\n {p:'rgb('+qtc_density.pr+','+qtc_density.pg+','+qtc_density.pb+')', },\n cp.densityMax,0,0,densitydecorpaddingtop,\n cp.sf,wiggleheight,true,false);\n plot_ruler({ctx:cp.densitycanvas.getContext('2d'),\n stop:densitydecorpaddingtop,\n start:cp.densitycanvas.height-1,\n xoffset:cp.densitycanvas.width-1,\n horizontal:false,\n color:colorCentral.foreground,\n min:0,\n max:cp.densityMax,\n extremeonly:true,\n max_offset:-4,\n });\n\n /* sequence */\n if(cp.seqcanvas) {\n ctx=cp.seqcanvas.getContext('2d');\n var x=0;\n for(var i=0; i<cp.sequence.length; i++) {\n var b=cp.sequence[i];\n ctx.fillStyle=ntbcolor[b.toLowerCase()];\n ctx.fillRect(x,0,cp.sf,ideoHeight);\n x+=cp.sf;\n }\n }\n /* over */\n}", "title": "" }, { "docid": "3347ff93c0e21ad7b0ee65e7c7102af5", "score": "0.511033", "text": "draw() {\n /*\n Starts drawing and rendering the chart using the loaded data.\n With transitions!!!\n */\n\n const that = this;\n const data = this.mungeData();\n\n // Update graphic title\n this.title.text(this.titleValue);\n\n // Render chart elements #########################################################\n // Attach new data first\n const strips = this.container.selectAll('.strip');\n const stripsJoin = strips.data(data, d => d.key);\n\n // Enter strips\n const newStrips = stripsJoin.enter()\n .append('g')\n .attr('class', 'strip')\n .attr('opacity', 1)\n .attr('pointer-events', 'all')\n // Position at the bottom of the canvas first\n .attr('transform', (d, i) => `translate(0, ${this.height + 50})`);\n\n // strip label\n newStrips.append('text')\n .text(d => d.key)\n .attr('x', -20)\n .attr('y', 5)\n .attr('font-family', 'PT Sans')\n .attr('font-size', 15)\n .attr('font-weight', 700)\n // .attr('textLength', 50)\n .attr('text-anchor', 'end');\n\n // strip value\n newStrips.append('text')\n .classed('strip-value', true)\n .text(d => this.counts[d.key])\n .attr('x', this.innerWidth + 40)\n .attr('y', 5)\n .attr('font-family', 'PT Sans')\n .attr('font-size', 15)\n .attr('font-weight', 700)\n .attr('text-anchor', 'end');\n\n newStrips.append('line')\n .attr('x1', 0)\n .attr('x2', this.innerWidth)\n .attr('y1', 0)\n .attr('y2', 0)\n .attr('stroke', 'black');\n\n\n newStrips.selectAll('circle')\n .data(d => d.values)\n .enter()\n .append('circle')\n .attr('cx', d => this.x(d[this.xLabel]))\n .attr('cy', 0)\n .attr('r', d => this.radius(d['Earnings']))\n // .attr('stroke', 'black')\n // .attr('stroke-width', 1)\n // .attr('stroke-opacity', 0)\n .attr('fill', d => this.color(d['Start Placement']))\n .attr('fill-opacity', d => this.filterDot(d['Start Placement'], d['Tier'], d['Tournament Name']) ? 0.05 : 0.5);\n // .attr('opacity', 0.5);\n\n this.circles = this.container.selectAll('circle');\n this.strips = this.container.selectAll('.strip');\n\n // update all strip values\n strips.selectAll('.strip-value')\n .text(d => this.counts[d.key]);\n\n // TOOLTIPS ###########################################################################\n // pointer-catcher container for tooltips\n const bisectDate = d3.bisector(d => d.Date).left;\n\n newStrips.append('rect')\n .classed('pointer-catcher', true)\n .style('visibility', 'hidden')\n .attr('x', 0)\n .attr('y', -this.y.bandwidth()/2)\n .attr('width', this.innerWidth)\n .attr('height', this.y.bandwidth());\n\n newStrips.merge(stripsJoin)\n .select('.pointer-catcher')\n .on('mousemove', function(p, q) {\n // reset all dots\n // that.circles\n // .transition()\n // .duration(200)\n // .attr('fill-opacity', 0.5);\n\n // position relative to pointer-catcher container\n const mouse = d3.mouse(this);\n // calculate corresponding date from x-position\n const date = that.x.invert(mouse[0]);\n\n // find the closest tournament to that date\n // filter dataset according to criteria first\n const data = p.values.filter(e => !that.filterDot(e['Start Placement'], e['Tier'], e['Tournament Name']));\n\n const i = bisectDate(data, date);\n\n const d0 = data[i-1];\n const d1 = data[i];\n let d;\n if (d0 === undefined) {\n d = d1;\n } else if (d1 === undefined) {\n d = d0;\n } else {\n d = date - d0.Date > d1.Date - date ? d1: d0;\n }\n\n // find position of tournament\n let x = that.x(d.Date) + that.margins.left;\n let y = that.y(q) - 10;\n\n // update values\n that.tooltipName\n .text(d['Tournament Name']);\n that.tooltipValue1\n .style('background-color',that.colorPlacement(d['Start Placement']))\n .text(d['Placement']);\n that.tooltipValue2\n .text(that.moneyFormat(d['Earnings']));\n that.tooltipDate\n .text(d['Date'].toLocaleDateString('en-US', {month:'numeric', year:'numeric'}));\n that.tooltipTeam\n .text(d['Team']);\n\n // different glow for tooltip container according to tier?\n\n // position tooltip\n const boxWidth = that.tooltip.node().offsetWidth;\n // console.log(boxWidth);\n if (mouse[0] > that.innerWidth/2) {\n x -= boxWidth;\n }\n that.tooltip\n .style('left', x+'px')\n .style('top', y+'px');\n\n // find graphic dot\n // const dot = d3.select(this.parentNode)\n // .selectAll('circle')\n // .filter(c => c['Tournament Name'] == d['Tournament Name'])\n // .transition()\n // .duration(200)\n // .attr('fill-opacity', 1);\n //\n // console.log(dot.data());\n })\n .on('mouseover', function(p) {\n that.tooltip\n .style('opacity', 1);\n })\n .on('mouseout', function(p) {\n that.tooltip\n .style('opacity', 0);\n\n });\n\n\n // TRANSITIONS #######################################################################\n // Filter out circles first\n stripsJoin.selectAll('circle')\n .transition()\n .duration(1000)\n // .attr('stroke-opacity', d => this.filterDot(d['Start Placement'], d['Tier'], d['Tournament Name']) ? 0.5 : 0)\n .attr('fill-opacity', d => this.filterDot(d['Start Placement'], d['Tier'], d['Tournament Name']) ? 0.05 : 0.5);\n\n // Fade out old strips, and filter out dots\n const t0 = () => {\n stripsJoin.exit()\n .transition()\n .duration(1000)\n .attr('opacity', 0)\n .remove()\n .on('end', t1);\n\n };\n\n // Reposition all current strips\n const t1 = () => {\n newStrips.merge(stripsJoin)\n .transition()\n .duration(1000)\n // staggered repositionings\n .delay((d, i) => i*200)\n .attr('transform', (d, i) => `translate(0, ${this.y(i) + this.y.bandwidth()/2})`);\n };\n\n\n // Transition sequence\n if (stripsJoin.exit().empty()) {\n // If no exiting strips, simply skip to repositioning\n t1();\n } else {\n t0();\n }\n\n\n // this.strips = this.container.selectAll('.strip')\n // .data(data)\n // .enter()\n // .append('g')\n // .attr('class', 'strip')\n // .attr('transform', d => `translate(0, ${this.y(d.key) + this.y.bandwidth()/2})`);\n //\n // this.strips.append('line')\n // .attr('x1', 0)\n // .attr('x2', this.innerWidth)\n // .attr('y1', 0)\n // .attr('y2', 0)\n // .attr('stroke', 'black');\n //\n // this.strips.selectAll('circle')\n // .data(d => d.values)\n // .enter()\n // .append('circle')\n // .attr('cx', d => this.x(d[this.xLabel]))\n // .attr('cy', 0)\n // .attr('r', d => this.radius(d['Earnings']))\n // // .attr('r', d => this.radius(d['Tier']))\n // .attr('fill', d => this.color(d['Start Placement']))\n // .attr('opacity', 0.5);\n }", "title": "" }, { "docid": "4a6ca4587d76ee1a3c5be0ce6408f17c", "score": "0.5110268", "text": "function fillGraphLocation(data) {\r\n if (data) {\r\n // on a des objets avec noms variables. On les transforme en objet {name:name}. On ajoute un item de tri avec un 0. On tri. On accumule.\r\n var theGraphRacks = Object.keys(data.objects).map(function(key){return {'name': data.objects[key].fields.friendlyname}}).map(sanitizeRack).sort(sortRackByName).reduce(function (accu, rack) {\r\n accu += '<div class=\"GraphContainer\"><span>'+rack.name+'</span><br><canvas id=\"myChart'+rack.name+'\" width=\"100\" height=\"100\"></canvas></div>';\r\n return accu;\r\n },'');\r\n $('#graphs').html(theGraphRacks);\r\n\r\n // on charge tous les canvas un par un\r\n Object.keys(data.objects).map(function(key){return {'name': data.objects[key].fields.friendlyname}}).map(sanitizeRack).sort(sortRackByName).forEach(function(rack){\r\n var oJSON = {\r\n operation: 'core/get',\r\n 'class': 'Rack',\r\n key: \"SELECT Rack WHERE name = \\\"\"+rack.name+\"\\\"\"\r\n };\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: getITopUrl(),\r\n dataType: \"json\",\r\n data: { auth_user: $('#auth_user').val(), auth_pwd: $('#auth_pwd').val(), json_data: JSON.stringify(oJSON) },\r\n crossDomain: 'true',\r\n success: generateGraphForRack,\r\n });\r\n });\r\n $('#graphLegend').show();\r\n $('#legNet').css(\"backgroundColor\",getNetworkColor());\r\n $('#legServ').css(\"backgroundColor\",getServerColor());\r\n $('#legStore').css(\"backgroundColor\",getStorageColor());\r\n $('#legEncl').css(\"backgroundColor\",getEnclosureColor());\r\n $('#legfree').css(\"backgroundColor\",getFreeColor());\r\n \r\n }\r\n}", "title": "" }, { "docid": "1733219f1de588dc872148160973c3f2", "score": "0.5109416", "text": "function displayChart(data) {\n \tvar select_option = modelName;\n\n\tlabel = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];\n\tif (firstTime == 0) {\n\t\tloadChart(label, data, select_option);\n\t\tfirstTime = 1;\n\t} else {\n\t\tchart.destroy();\n\t\tloadChart(label, data, select_option);\n\t}\n\tdocument.getElementById('chart_box').style.display = \"block\";\n}", "title": "" }, { "docid": "19beb856fe94be8bc03f502e42eecfdc", "score": "0.5107751", "text": "function metricsCtrl() {\n\n\n this.demo1Data = [34, 43, 43, 35, 44, 32, 44, 52];\n this.demo1Options = {\n type: 'line',\n width: '100%',\n height: '60',\n lineColor: '#1ab394',\n fillColor: \"#ffffff\"\n };\n\n this.demo2Data = [24, 43, 43, 55, 44, 62, 44, 72];\n this.demo2Options = {\n type: 'line',\n width: '100%',\n height: '60',\n lineColor: '#1ab394',\n fillColor: \"#ffffff\"\n };\n\n this.demo3Data = [74, 43, 23, 55, 54, 32, 24, 12];\n this.demo3Options = {\n type: 'line',\n width: '100%',\n height: '60',\n lineColor: '#ed5565',\n fillColor: \"#ffffff\"\n };\n\n this.demo4Data = [24, 43, 33, 55, 64, 72, 44, 22];\n this.demo4Options = {\n type: 'line',\n width: '100%',\n height: '60',\n lineColor: '#ed5565',\n fillColor: \"#ffffff\"\n };\n\n this.demo5Data = [1, 4];\n this.demo5Options = {\n type: 'pie',\n height: '140',\n sliceColors: ['#1ab394', '#F5F5F5']\n };\n\n this.demo6Data = [5, 3];\n this.demo6Options = {\n type: 'pie',\n height: '140',\n sliceColors: ['#1ab394', '#F5F5F5']\n };\n\n this.demo7Data = [2, 2];\n this.demo7Options = {\n type: 'pie',\n height: '140',\n sliceColors: ['#ed5565', '#F5F5F5']\n };\n\n this.demo8Data = [2, 3];\n this.demo8Options = {\n type: 'pie',\n height: '140',\n sliceColors: ['#ed5565', '#F5F5F5']\n };\n\n}", "title": "" }, { "docid": "9d797b0adaadd03ebf5a02e416776468", "score": "0.5104374", "text": "render () {\n this.$table = buildField(getMatrix(this.n));\n this.$result = createResultField();\n this.$restartBtn = createRestartBtn();\n\n this.$el.appendChild(this.$result);\n this.$el.appendChild(this.$table);\n this.$el.appendChild(this.$restartBtn);\n\n this.store = this.combinations.slice();\n this.$table.addEventListener('click', this.step);\n this.$restartBtn.addEventListener('click', () => document.location.reload());\n }", "title": "" }, { "docid": "f8a6184bc42411e83b3a4112cc745af2", "score": "0.51030314", "text": "function updateChart(index) {\r\n dps_robo[index][\"y\"] = robo[index];\r\n dps_base[index][\"y\"] = base[index];\r\n dps_user[index][\"y\"] = user[index];\r\n chart.render();\r\n}", "title": "" }, { "docid": "b6e07e7f7a89f285cf8e4df06e27847b", "score": "0.5102319", "text": "function renderMealIntake() {\n var chartMealObj = $(\"#MealDetails\").data(\"ejChart\");\n chartMealObj.seriesRender();\n}", "title": "" }, { "docid": "90c3cb2ea92439bb3323b19b2430977c", "score": "0.51016283", "text": "function addData(){\n\n myHistogram.update();\n myPieChart.update();\n myDoughnutChart.update();\n myLineChart.update();\n}", "title": "" }, { "docid": "3155a6c3e8d7083c5146a58cc7ec098a", "score": "0.50946885", "text": "function Plot() {\n /*\n Plot object integrates data and several plotting functionalities\n */\n var time_step_type = \"date\",\n div_q = $('#id_pane_plot_q div')[0],\n div_p = $('#id_pane_plot_p div')[0],\n div_t = $('#id_pane_plot_t div')[0],\n div_gw = $('#id_pane_plot_gw div')[0],\n div_etp = $('#id_pane_plot_etp div')[0],\n div_reg = $('#id_pane_plot_reg div')[0],\n div_perf = $('#id_pane_plot_perf div')[0],\n width = $('#id_mainTabs')[0].clientWidth - 35,\n relayout_counter = 0,\n X_AXIS = {\n title: `Time (${time_step_type})`,\n showgrid: false, type: 'date', linewidth: 2.0,\n tickfont: {size: 11}, ticklen: 4,\n rangeselector: {\n visible: true,\n buttons: [\n {step: \"all\"},\n {\n count: 1,\n label: \"yearly\",\n step: \"year\",\n stepmode: \"backward\",\n },\n {\n count: 6,\n label: \"6m\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"monthly\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 7,\n label: \"weekly\",\n step: \"day\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"daily\",\n step: \"day\",\n stepmode: \"backward\",\n },\n ],\n x: 0,\n xanchor: \"left\",\n y: 1,\n yanchor: \"bottom\",\n },\n rangeslider: {bgcolor: '#fdf2ff', bordercolor: 'rgb(91,192,222)',\n borderwidth: 2, thickness: 0.12},\n };\n\n function init_q_plot () {\n var trace_qrec = {\n type: 'scatter',\n mode: 'lines',\n name: \"Recorded Discharge [m<sup>3</sup>/s]\",\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].q_rec,\n line: {\n width: 1\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_qsim = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].q_sim,\n name: \"Simulated Discharge [m<sup>3</sup>/s]\",\n line: {\n width: 1,\n color: '#0de55c' // Green like jade\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_qrec, trace_qsim];\n var ymax = Math.max.apply([hbv.d.info[0].maxis['q_sim'], hbv.d.info[0].maxis['q_rec']]);\n\n var layout = {\n width: this.width,\n height: 0.68*this.width,\n title: \"<b>Simulated Discharge</b>\",\n yaxis: {title: \"Discharge [m<sup>3</sup>/s]\", hoverformat: '.3f',\n linewidth: 2.0, zeroline: false, range: [0, ymax*1.05],\n fixedrange: true,\n },\n xaxis: this.X_AXIS,\n legend: {font:{size:14}, orientation: \"h\", x: 0.25, y: 1,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 10, t: 30, pad: 10\n },\n };\n\n var config = {modeBarButtons:[\n ['select2d'], ['pan2d'], ['zoom2d'], ['autoScale2d'],\n ['resetScale2d'], ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_q).html('');\n Plotly.newPlot(this.div_q, data, layout, config);\n\n this.div_q.on('plotly_relayout', function(e){\n console.log(e);\n onRelayoutCallBack(e);\n });\n }\n\n function init_p_plot () {\n var trace_p = {\n type: 'bar',\n name: 'Recorded Precipitation [mm]',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].prec,\n hoverlabel: {font: {size: 12}, namelength: -1},\n opacity: 0.85,\n color: \"#39afef\",\n };\n var trace_sp = {\n type: 'scatter',\n fill: 'tozeroy',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].sp,\n yaxis: 'y2',\n name: 'Simulated Snow [mm]',\n line: {\n width: 2,\n color: '#0de55c' // Green like jade\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_p, trace_sp],\n ymax1 = hbv.d.info[0].maxis['prec'],\n ymax2 = (hbv.d.info[0].maxis['sp']==0)?(ymax1):(hbv.d.info[0].maxis['sp']);\n\n var layout = {\n width: this.width,\n height: 0.68*this.width,\n title: \"<b>Precipitation and Snow</b>\",\n yaxis: {title: \"Precipitation [mm]\", hoverformat: '.3f',\n linewidth: 2.0, zeroline: false, range: [0, ymax1*1.05],\n fixedrange: true,\n },\n yaxis2: {title: \"Simulated Snow [mm]\", hoverformat: '.3f',\n linewidth: 2.0, zeroline: false, range: [0, ymax2*1.2],\n fixedrange: true, overlaying: 'y', side: 'right', showgrid:false,\n linecolor: '#0de55c', tickfont: {color: '#0de55c'},\n },\n xaxis: this.X_AXIS,\n legend: {font:{size:14}, orientation: \"h\", x: 0.25, y: 1,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 50, t: 30, pad: 10\n },\n bargap: 0.4,\n };\n\n var config = {modeBarButtons:[\n ['select2d'], ['pan2d'], ['zoom2d'], ['autoScale2d'],\n ['resetScale2d'], ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_p).html('');\n Plotly.newPlot(this.div_p, data, layout, config);\n\n this.div_p.on('plotly_relayout', function(e){\n console.log(e);\n onRelayoutCallBack(e);\n });\n }\n\n function init_t_plot () {\n var trace_temp = {\n type: 'scatter',\n mode: 'lines',\n name: 'Air Temperature [°C]',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].temp,\n line: {\n width: 0.8\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_tm = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].tm,\n name: 'Monthly Average [°C]',\n line: {\n width: 2,\n color: '#ea129f' // Green like jade\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_temp, trace_tm],\n ymin = hbv.d.info[0].minis['temp'],\n ymax = hbv.d.info[0].maxis['temp'];\n ymin = ymin - Math.abs(ymin)*0.1;\n ymax = ymax + Math.abs(ymax)*0.1;\n\n var layout = {\n width: this.width,\n height: 0.68*this.width,\n title: \"<b>Air Temperature</b>\",\n yaxis: {title: \"Air Temperature [°C]\", hoverformat: '.3f',\n linewidth: 2.0, zeroline: false, range: [ymin, ymax],\n fixedrange: true\n },\n xaxis: this.X_AXIS,\n legend: {font:{size:14}, orientation: \"h\", x: 0.30, y: 1,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 10, t: 30, pad: 10\n },\n };\n\n var config = {modeBarButtons:[\n ['select2d'], ['pan2d'], ['zoom2d'], ['autoScale2d'],\n ['resetScale2d'], ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_t).html('');\n Plotly.newPlot(this.div_t, data, layout, config);\n\n this.div_t.on('plotly_relayout', function(e){\n console.log(e);\n onRelayoutCallBack(e);\n });\n }\n\n function init_etp_plot () {\n var trace_t = {\n type: 'scatter',\n mode: 'lines',\n name: 'Air Temperature [°C]',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].temp,\n xaxis: 'x3', yaxis: 'y1',\n line: {\n width: 2,\n color: \"#8417ea\", // Purple blue\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_etp = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].ep,\n xaxis: 'x3', yaxis: 'y2',\n name: 'Evapotranspiration [mm]',\n line: {\n width: 2.0,\n color: \"#52d883\",\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_sm = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].sm,\n xaxis:'x3', yaxis: 'y3',\n name: \"Soil Moisture [mm]\",\n line: {\n width: 2, // Default color\n color: '#4286f4', // Green like jade\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_t, trace_etp, trace_sm],\n ymax_t = hbv.d.info[0].maxis.temp,\n ymax_ep = hbv.d.info[0].maxis.ep,\n ymax_sm = hbv.d.info[0].maxis.sm;\n\n var axis = {\n showline: true,\n zeroline: false,\n showgrid: true,\n mirror:true,\n ticklen: 4.0,\n gridcolor: '#ffffff',\n tickfont: {size: 11},\n linewidth: 1.0,\n };\n\n var xaxis1 = {type: 'date', anchor: 'y1',\n showticklabels: false,\n };\n var xaxis2 = {\n type: 'date', anchor: 'y2',\n showticklabels: false,\n };\n var xaxis3 = {title: `Time (${time_step_type})`,\n type: 'date', anchor: 'y3',\n rangeselector: {\n visible: true,\n buttons: [\n {step: \"all\"},\n {\n count: 1,\n label: \"yearly\",\n step: \"year\",\n stepmode: \"backward\",\n },\n {\n count: 6,\n label: \"6m\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"monthly\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 7,\n label: \"weekly\",\n step: \"day\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"daily\",\n step: \"day\",\n stepmode: \"backward\",\n },\n ],\n x: 1,\n xanchor: \"right\",\n y: -0.06,\n yanchor: \"top\",\n },\n };\n\n var yaxis1 = {title: \"Air Temperature [°C]\",\n range: [0, ymax_t], domain: [0.68, 0.98],\n anchor: 'x1', hoverformat: '.3f',\n fixedrange: true,\n };\n var yaxis2 = {title: \"Evapotranspiration [mm]\",\n range: [0, ymax_ep], domain: [0.34, 0.64],\n side: 'right', anchor: 'x2', hoverformat: '.3f',\n fixedrange: true,\n };\n var yaxis3 = {title: \"Simulated Soil Moisture [mm]\",\n range: [0, ymax_sm], domain: [0, 0.30],\n anchor: 'x3', hoverformat: '.3f',\n fixedrange: true,\n };\n\n var layout = {\n width: this.width,\n height: 0.75*this.width,\n title: \"<b>Evapotranspiration, Simulated Soil Moisture and Air Temperature</b>\",\n plot_bgcolor: 'rgba(228, 222, 249, 0.65)',\n yaxis1: Object.assign(yaxis1, axis),\n yaxis2: Object.assign(yaxis2, axis),\n yaxis3: Object.assign(yaxis3, axis),\n xaxis1: Object.assign(xaxis1, axis),\n xaxis2: Object.assign(xaxis2, axis),\n xaxis3: Object.assign(xaxis3, axis),\n legend: {font:{size:14}, orientation: \"h\", x: 0.18, y: 1.0,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 50, t: 30, pad: 10\n },\n };\n\n var config = {modeBarButtons:[\n ['select2d'], ['pan2d'], ['zoom2d'], ['autoScale2d'],\n ['resetScale2d'], ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_etp).html('');\n Plotly.newPlot(this.div_etp, data, layout, config);\n\n this.div_etp.on('plotly_relayout', function(e){\n console.log(e);\n onRelayoutCallBack(e, 'xaxis3');\n });\n }\n\n function init_gw_plot () {\n var trace_uz = {\n type: 'scatter',\n mode: 'lines',\n name: \"Upper Zone Response Box [mm]\",\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].uz,\n xaxis: 'x3', yaxis: 'y1',\n line: {\n width: 1.5,\n color: \"#8417ea\", // Purple blue\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_lz = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.data[0].lz,\n xaxis: 'x3', yaxis: 'y2',\n name: \"Lower Zone Response Box [mm]\",\n line: {\n width: 2.0,\n color: \"#52d883\",\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n var trace_gw = {\n type: 'scatter',\n mode: 'lines',\n x: hbv.d.data[0].time,\n y: hbv.d.inters[0].gw,\n xaxis:'x3', yaxis: 'y3',\n name: \"Groundwater Discharged (Q<sub>0</sub>+Q<sub>1</sub>) [mm]\",\n line: {\n width: 1.6, // Default color\n color: '#4286f4', // Green like jade\n },\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_uz, trace_lz, trace_gw],\n ymax_uz = hbv.d.info[0].maxis.uz,\n ymax_lz = hbv.d.info[0].maxis.lz,\n ymax_gw = hbv.d.info[0].maxis.gw;\n\n var axis = {\n showline: true,\n zeroline: false,\n showgrid: true,\n mirror:true,\n ticklen: 4.0,\n gridcolor: '#ffffff',\n tickfont: {size: 11},\n linewidth: 1.0,\n };\n\n var xaxis1 = {type: 'date', anchor: 'y1',\n showticklabels: false,\n };\n var xaxis2 = {\n type: 'date', anchor: 'y2',\n showticklabels: false,\n };\n var xaxis3 = {title: `Time (${time_step_type})`,\n type: 'date', anchor: 'y3',\n rangeselector: {\n visible: true,\n buttons: [\n {step: \"all\"},\n {\n count: 1,\n label: \"yearly\",\n step: \"year\",\n stepmode: \"backward\",\n },\n {\n count: 6,\n label: \"6m\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"monthly\",\n step: \"month\",\n stepmode: \"backward\",\n },\n {\n count: 7,\n label: \"weekly\",\n step: \"day\",\n stepmode: \"backward\",\n },\n {\n count: 1,\n label: \"daily\",\n step: \"day\",\n stepmode: \"backward\",\n },\n ],\n x: 1.0,\n xanchor: \"right\",\n y: -0.06,\n yanchor: \"top\",\n },\n };\n\n var yaxis1 = {title: \"Upper Response Box [mm]\",\n range: [0, ymax_uz], domain: [0.68, 0.98],\n anchor: 'x1', hoverformat: '.3f',\n fixedrange: true,\n };\n var yaxis2 = {title: \"Lower Response Box [mm]\",\n range: [0, ymax_lz], domain: [0.34, 0.64],\n side: 'right', anchor: 'x2', hoverformat: '.3f',\n fixedrange: true,\n };\n var yaxis3 = {title: \"Q<sub>0</sub>+Q<sub>1</sub> [mm]\",\n range: [0, ymax_gw], domain: [0, 0.30],\n anchor: 'x3', hoverformat: '.3f',\n fixedrange: true,\n };\n\n var layout = {\n width: this.width,\n height: 0.75*this.width,\n title: \"<b>Simulated Groundwater</b>\",\n plot_bgcolor: 'rgba(228, 222, 249, 0.65)',\n yaxis1: Object.assign(yaxis1, axis),\n yaxis2: Object.assign(yaxis2, axis),\n yaxis3: Object.assign(yaxis3, axis),\n xaxis1: Object.assign(xaxis1, axis),\n xaxis2: Object.assign(xaxis2, axis),\n xaxis3: Object.assign(xaxis3, axis),\n legend: {font:{size:14}, orientation: \"h\", x: 0.18, y: 1.0,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 50, t: 30, pad: 10\n },\n };\n\n var config = {modeBarButtons:[\n ['select2d'], ['pan2d'], ['zoom2d'], ['autoScale2d'],\n ['resetScale2d'], ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_gw).html('');\n Plotly.newPlot(this.div_gw, data, layout, config);\n\n this.div_gw.on('plotly_relayout', function(e){\n console.log(e);\n onRelayoutCallBack(e, 'xaxis3');\n });\n }\n\n function init_regime_plot () {\n if (hbv.d.info.last().time_range != \"y\") {\n return undefined;\n }\n var trace_qrec = {\n type: 'bar',\n name: 'Average Observed Discharge [m<sup>3</sup>/s]',\n x: hbv.d.regime[0].month,\n y: hbv.d.regime[0].q_rec,\n hoverlabel: {font: {size: 12}, namelength: -1},\n opacity: 0.85,\n color: \"#39afef\",\n };\n var trace_qsim = {\n type: 'bar',\n x: hbv.d.regime[0].month,\n y: hbv.d.regime[0].q_sim,\n name: 'Average Simulated Discharge [m<sup>3</sup>/s]',\n hoverlabel: {font: {size: 12}, namelength: -1},\n };\n\n var data = [trace_qrec, trace_qsim],\n max_qsim = d3.max(hbv.d.regime[0].q_sim),\n max_qrec = d3.max(hbv.d.regime[0].q_rec),\n ymax = ((max_qrec > max_qsim) ? max_qrec : max_qsim);\n\n var layout = {\n width: this.width,\n height: 0.68*this.width,\n title: \"<b>Hydrological Regime</b>\",\n yaxis: {title: \"Average Discharge [m<sup>3</sup>/s]\",\n hoverformat: '.3f', linewidth: 2.0, zeroline: false,\n range: [0, ymax*1.05], fixedrange: true,\n },\n xaxis: {\n title: \"Month\", showgrid: false, type: '-', linewidth: 2.0,\n },\n legend: {font:{size:14}, orientation: \"h\", x: 0.25, y: 1,\n tracegroupgap: 20, bgcolor: 'rgba(0,0,0,0)',\n },\n margin: {\n l: 50, b: 50, r: 50, t: 30, pad: 10\n },\n bargap: 0.35,\n };\n\n var config = {modeBarButtons:[\n ['hoverCompareCartesian'], ['toImage'],\n ['sendDataToCloud'],\n ], displaylogo: false,\n };\n\n $(this.div_reg).html('');\n Plotly.newPlot(this.div_reg, data, layout, config);\n }\n\n function onRelayoutCallBack(e, kwd){\n var keys = Object.keys(e),\n values = Object.values(e);\n\n if (keys.includes(\"xaxis.autorange\")) {\n enable_timepickers_for_plots(true);\n hbv.d.show(0);\n return undefined;\n }\n else if (keys.includes(\"dragmode\")) {\n return undefined;\n }\n else if (keys.includes(\"hovermode\")) {\n return undefined;\n }\n\n var e_l = $(\"#left\").data(\"DateTimePicker\").date(),\n e_r = $(\"#right\").data(\"DateTimePicker\").date(),\n kwd = kwd || \"xaxis\",\n kwd0 = kwd + \".range[0]\",\n kwd1 = kwd + \".range[1]\";\n\n // Identify if e is triggered by rangeSlider or zoom2d\n if (values.length===2) {\n if(keys.includes(\"xaxis.rangeslider.range[0]\")){\n e_l = values[0];\n }\n else if (keys.includes(\"xaxis.rangeslider.range[1]\")){\n e_r = values[0];\n }\n else\n {\n e_l = e[kwd0];\n e_r = e[kwd1];\n }\n }\n else {\n e_l = values[0][0];\n e_r = values[0][1];\n }\n\n if(e_l==undefined || e_r==undefined){return undefined;}\n\n var left = environ_index_of(e_l),\n time_left = timeof_index(left),\n right = environ_index_of(e_r, Math.floor),\n time_right = timeof_index(right);\n\n $(\"#left\").data(\"DateTimePicker\").date(time_left);\n $(\"#right\").data(\"DateTimePicker\").date(time_right);\n\n // Change current focus for Schema\n hbv.s.set_local_extrems(left, right);\n hbv.d.show(left);\n }\n\n function init() {\n this.init_q_plot();\n this.init_p_plot();\n this.init_t_plot();\n this.init_gw_plot();\n this.init_etp_plot();\n this.init_regime_plot();\n }\n\n return {width:width, time_step_type:time_step_type, div_q:div_q,\n init_q_plot:init_q_plot, div_p:div_p, div_reg:div_reg, div_etp:div_etp,\n init_p_plot:init_p_plot, init_etp_plot:init_etp_plot,\n div_t:div_t, init_t_plot:init_t_plot, init_gw_plot:init_gw_plot,\n div_gw:div_gw, X_AXIS:X_AXIS, init_regime_plot:init_regime_plot,\n relayout_counter:relayout_counter, init:init};\n}", "title": "" }, { "docid": "a0bce2a030ff25182eee1614a97783ef", "score": "0.5090471", "text": "function buildDashboard() {\n avgByDept();\n overallHappiness();\n happinessOverTime();\n}", "title": "" }, { "docid": "a0bce2a030ff25182eee1614a97783ef", "score": "0.5090471", "text": "function buildDashboard() {\n avgByDept();\n overallHappiness();\n happinessOverTime();\n}", "title": "" }, { "docid": "4d4ac08fbd4131150d91b38943444252", "score": "0.5089072", "text": "function view(ctrl) {\n var _series = ctrl.series();\n var width = ctrl.svg.style.width;\n var height = ctrl.svg.style.height;\n\n // TODO: this could look nicer....\n // works for arrays or an object with keys.\n var s = Object.keys(_series).map( k => {\n var data = _series[k].data;\n if (!data.length)\n domains = [[0,1],[0,1]];\n else\n domains = [\n dataminmax(data, 0),\n dataminmax(data, 1)\n ];\n var scales = [\n linearscale(domains[0], [0, width]),\n linearscale(domains[1], [0, height]).invert()\n ]\n return series(Object.assign({\n scales: scales\n }, _series[k]))\n }\n );\n\n return h('div.subcontainer', {}, [\n h('div', {}, [\n h('svg', ctrl.svg, s)\n ])\n ]);\n}", "title": "" }, { "docid": "b7bad5fe805db10020826fd821b0be28", "score": "0.5088002", "text": "function buildCharts() {\n var loadValue = d3.select(\"#selDataset\").property(\"value\");\n\n console.log(loadValue);\n\n buildMetadata(loadValue);\n \n}", "title": "" }, { "docid": "782ecbca7bd3d41a74eecab8924835e1", "score": "0.5084765", "text": "render(){\n \n return (\n <div className=\"row \">\n <div className=\"col-2-of-4\">\n <canvas id=\"myChart\"></canvas>\n </div>\n <div className=\"col-2-of-4\">\n <div className=\"result-tabular\">\n <table>\n <thead>\n <tr>\n <td>NAME</td>\n <td>VOTE COUNT</td>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>KEVIN JEFF TORRES CEPRIA</td>\n <td className=\"gVote\">{this.state.gVotes[0]}</td>\n </tr>\n <tr>\n <td>RYAN JOSHUA HONTOMIN LIWAG</td>\n <td className=\"gVote\">{this.state.gVotes[1]}</td>\n </tr>\n <tr>\n <td>ANFERNEE RAPIO</td>\n <td className=\"gVote\">{this.state.gVotes[2]}</td>\n </tr>\n <tr>\n <td>MELCHOR SUGUE SANTILLAN III</td>\n <td className=\"gVote\">{this.state.gVotes[3]}</td>\n </tr>\n <tr>\n <td>AARON JOHN ZARZOSO</td>\n <td className=\"gVote\">{this.state.gVotes[4]}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n );\n }", "title": "" }, { "docid": "52ee2c760a7df3ef653614f5145b5455", "score": "0.5084293", "text": "function display() {\n var content = this.getContent();\n root = Freemix.getTemplate(\"scatterplot-view-template\");\n content.empty();\n root.appendTo(content);\n this.findWidget().recordPager(\n function(row, model, metadata) {\n\n $(\"<td class='inner'></td>\").insertAfter(row.find('td.visible')).createChildCheck({\n radio: true,\n checked: model.config['yaxis'] === metadata.property,\n change: function() {\n if ($(this).is(\":checked\")) {\n model.config['yaxis'] = metadata.property;\n }\n },\n name: 'yaxis'\n });\n\n $(\"<td class='inner'></td>\").insertAfter(row.find(\"td.visible\")).createChildCheck({\n radio: true,\n checked: model.config['xaxis'] === metadata.property,\n change: function() {\n if ($(this).is(\":checked\")) {\n model.config['xaxis'] = metadata.property;\n }\n },\n name: 'xaxis'\n });\n\n if (Freemix.property.propertyHasType(metadata.property, \"url\")) {\n $(\"<td class='inner title-link-option'></td>\").insertAfter(row.find('td.visible')).createChildCheck({\n radio: true,\n checked: model.config.titleLink === metadata.property,\n change: function() {\n if ($(this).is(\":checked\")) {\n model.config.titleLink = metadata.property;\n }\n },\n name: 'titleLink'\n });\n } else {\n $('<td class=\"inner title-link-option\"><input type=\"radio\" disabled=\"true\" /></td>').insertAfter(row.find('td.visible'));\n }\n\n $(\"<td class='inner'></td>\").insertAfter(row.find('td.visible')).createChildCheck({\n radio: true,\n checked: model.config.title === metadata.property,\n change: function() {\n if ($(this).is(\":checked\")) {\n model.config.title = metadata.property;\n $('.view-content:visible .title-link-option').fadeIn();\n }\n },\n name: 'title'\n });\n }\n );\n $('#clear-title').bind('click', function() {\n model.config.title = null;\n $('.view-content:visible .title-link-option').fadeOut();\n });\n $('#clear-title-link').bind('click', function() {\n model.config.titleLink = null;\n });\n if (typeof this.config.title !== \"undefined\" && this.config.title != null) {\n $('.view-content:visible .title-link-option').show();\n }\n if (typeof this.config.xaxis === \"undefined\") {\n $('.required-setting[rel=property-xaxis]').show();\n $('.required-setting[rel=property-xaxis]:visible').bind('mouseover', function() {\n $('#'+$(this).attr('rel')).addClass('ui-state-highlight');\n }).bind('mouseout', function() {\n $('#'+$(this).attr('rel')).removeClass('ui-state-highlight');\n });\n $('input[name=xaxis]').bind('change', function() {\n $('.required-setting[rel=property-xaxis]:visible').hide();\n });\n } else {\n $('.required-setting[rel=property-xaxis]:visible').hide();\n }\n if (typeof this.config.yaxis === \"undefined\") {\n $('.required-setting[rel=property-yaxis]').show();\n $('.required-setting[rel=property-yaxis]:visible').bind('mouseover', function() {\n $('#'+$(this).attr('rel')).addClass('ui-state-highlight');\n }).bind('mouseout', function() {\n $('#'+$(this).attr('rel')).removeClass('ui-state-highlight');\n });\n $('input[name=yaxis]').bind('change', function() {\n $('.required-setting[rel=property-yaxis]:visible').hide();\n });\n } else {\n $('.required-setting[rel=property-yaxis]:visible').hide();\n }\n }", "title": "" }, { "docid": "856fe2a084e2887013d32525418f40cc", "score": "0.5079431", "text": "render() {\n const numbers = [...Array(100).keys()]\n const trueVals = numbers.map(d => {\n let state = null\n if (d < (data.percent)) state = 'true'\n else state = 'false'\n return {number: d, state: state}\n })\n\n const block = $blocks\n .selectAll('.data-block')\n .data(trueVals)\n .enter()\n .append('div')\n .attr('class', (d, i) => `data-block data-block-${d.state}`)\n\n $title\n //.data(data)\n .text(data.name)\n .classed('tk-atlas', true)\n\n $sub\n .text(`${data.percent}%`)\n .classed('tk-atlas', true)\n\n\t\t\t\treturn Chart;\n\t\t\t}", "title": "" }, { "docid": "ae71be4766dbac3e9531d167705157e4", "score": "0.507103", "text": "function chart(selection) { // 2974\n selection.each(function(data) { // 2975\n container = d3.select(this); // 2976\n var availableWidth = nv.utils.availableWidth(width, container, margin), // 2977\n availableHeight = nv.utils.availableHeight(height, container, margin); // 2978\n // 2979\n nv.utils.initSVG(container); // 2980\n // 2981\n // Width of the candlestick bars. // 2982\n var barWidth = (availableWidth / data[0].values.length) * .45; // 2983\n // 2984\n // Setup Scales // 2985\n x.domain(xDomain || d3.extent(data[0].values.map(getX).concat(forceX) )); // 2986\n // 2987\n if (padData) // 2988\n x.range(xRange || [availableWidth * .5 / data[0].values.length, availableWidth * (data[0].values.length - .5) / data[0].values.length ]);\n else // 2990\n x.range(xRange || [5 + barWidth / 2, availableWidth - barWidth / 2 - 5]); // 2991\n // 2992\n y.domain(yDomain || [ // 2993\n d3.min(data[0].values.map(getLow).concat(forceY)), // 2994\n d3.max(data[0].values.map(getHigh).concat(forceY)) // 2995\n ] // 2996\n ).range(yRange || [availableHeight, 0]); // 2997\n // 2998\n // If scale's domain don't have a range, slightly adjust to make one... so a chart can show a single data point\n if (x.domain()[0] === x.domain()[1]) // 3000\n x.domain()[0] ? // 3001\n x.domain([x.domain()[0] - x.domain()[0] * 0.01, x.domain()[1] + x.domain()[1] * 0.01]) // 3002\n : x.domain([-1,1]); // 3003\n // 3004\n if (y.domain()[0] === y.domain()[1]) // 3005\n y.domain()[0] ? // 3006\n y.domain([y.domain()[0] + y.domain()[0] * 0.01, y.domain()[1] - y.domain()[1] * 0.01]) // 3007\n : y.domain([-1,1]); // 3008\n // 3009\n // Setup containers and skeleton of chart // 3010\n var wrap = d3.select(this).selectAll('g.nv-wrap.nv-candlestickBar').data([data[0].values]); // 3011\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-candlestickBar'); // 3012\n var defsEnter = wrapEnter.append('defs'); // 3013\n var gEnter = wrapEnter.append('g'); // 3014\n var g = wrap.select('g'); // 3015\n // 3016\n gEnter.append('g').attr('class', 'nv-ticks'); // 3017\n // 3018\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'); // 3019\n // 3020\n container // 3021\n .on('click', function(d,i) { // 3022\n dispatch.chartClick({ // 3023\n data: d, // 3024\n index: i, // 3025\n pos: d3.event, // 3026\n id: id // 3027\n }); // 3028\n }); // 3029\n // 3030\n defsEnter.append('clipPath') // 3031\n .attr('id', 'nv-chart-clip-path-' + id) // 3032\n .append('rect'); // 3033\n // 3034\n wrap.select('#nv-chart-clip-path-' + id + ' rect') // 3035\n .attr('width', availableWidth) // 3036\n .attr('height', availableHeight); // 3037\n // 3038\n g .attr('clip-path', clipEdge ? 'url(#nv-chart-clip-path-' + id + ')' : ''); // 3039\n // 3040\n var ticks = wrap.select('.nv-ticks').selectAll('.nv-tick') // 3041\n .data(function(d) { return d }); // 3042\n ticks.exit().remove(); // 3043\n // 3044\n // The colors are currently controlled by CSS. // 3045\n var tickGroups = ticks.enter().append('g') // 3046\n .attr('class', function(d, i, j) { return (getOpen(d, i) > getClose(d, i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i});\n // 3048\n var lines = tickGroups.append('line') // 3049\n .attr('class', 'nv-candlestick-lines') // 3050\n .attr('transform', function(d, i) { return 'translate(' + x(getX(d, i)) + ',0)'; }) // 3051\n .attr('x1', 0) // 3052\n .attr('y1', function(d, i) { return y(getHigh(d, i)); }) // 3053\n .attr('x2', 0) // 3054\n .attr('y2', function(d, i) { return y(getLow(d, i)); }); // 3055\n // 3056\n var rects = tickGroups.append('rect') // 3057\n .attr('class', 'nv-candlestick-rects nv-bars') // 3058\n .attr('transform', function(d, i) { // 3059\n return 'translate(' + (x(getX(d, i)) - barWidth/2) + ',' // 3060\n + (y(getY(d, i)) - (getOpen(d, i) > getClose(d, i) ? (y(getClose(d, i)) - y(getOpen(d, i))) : 0)) // 3061\n + ')'; // 3062\n }) // 3063\n .attr('x', 0) // 3064\n .attr('y', 0) // 3065\n .attr('width', barWidth) // 3066\n .attr('height', function(d, i) { // 3067\n var open = getOpen(d, i); // 3068\n var close = getClose(d, i); // 3069\n return open > close ? y(close) - y(open) : y(open) - y(close); // 3070\n }); // 3071\n // 3072\n container.selectAll('.nv-candlestick-lines').transition() // 3073\n .attr('transform', function(d, i) { return 'translate(' + x(getX(d, i)) + ',0)'; }) // 3074\n .attr('x1', 0) // 3075\n .attr('y1', function(d, i) { return y(getHigh(d, i)); }) // 3076\n .attr('x2', 0) // 3077\n .attr('y2', function(d, i) { return y(getLow(d, i)); }); // 3078\n // 3079\n container.selectAll('.nv-candlestick-rects').transition() // 3080\n .attr('transform', function(d, i) { // 3081\n return 'translate(' + (x(getX(d, i)) - barWidth/2) + ',' // 3082\n + (y(getY(d, i)) - (getOpen(d, i) > getClose(d, i) ? (y(getClose(d, i)) - y(getOpen(d, i))) : 0)) // 3083\n + ')'; // 3084\n }) // 3085\n .attr('x', 0) // 3086\n .attr('y', 0) // 3087\n .attr('width', barWidth) // 3088\n .attr('height', function(d, i) { // 3089\n var open = getOpen(d, i); // 3090\n var close = getClose(d, i); // 3091\n return open > close ? y(close) - y(open) : y(open) - y(close); // 3092\n }); // 3093\n }); // 3094\n // 3095\n return chart; // 3096\n } // 3097", "title": "" }, { "docid": "75c76d960160170cfed4c764f5b8232a", "score": "0.5069042", "text": "function onSelect(){\n let val = parseInt(d3.select(this).property(\"value\"));\n makeCharts(val);\n}", "title": "" }, { "docid": "8574c36599f32c10f5602cfdb6ba6e84", "score": "0.5068892", "text": "function makeSummaryDash() {\n\n var date = new Date();\n year = date.getFullYear();\n\n getSummaryJSON(\"#homeResUsageChart\", \"#homeStudUsageChart\", \n\t\t \"#homeAckUsageChart\", \"#homeResCostChart\",\n\t\t \"#homeStudCostChart\", \"#homeAckCostChart\", year);\n\n\n}", "title": "" }, { "docid": "8f8ace87abf5f4826b3664358ee45099", "score": "0.50615454", "text": "renderVis() { \n\n }", "title": "" }, { "docid": "06dd4c6f8b6bad9745b7941b525de37b", "score": "0.506025", "text": "function renderAll() {\n\t\ta = new Date();\n\t\tchart.each(render);\n\t \td3.select(\"#active\").text(formatNumber(all.value()));\n\t\tcontent=JSON.parse(JSON.stringify(date.top(Infinity)))\n\t\t//console.log(JSON.stringify(date.top(Infinity)))\n\t \tdrawpoints(markers, content, map);\n\t\t//console.log('renderAll: ' + (new Date().getTime() - a.getTime()) + ' ms'); \n\t }", "title": "" }, { "docid": "e9ef3af47ed84b21bb8020a7d79a7471", "score": "0.5057157", "text": "_plotData() {\n const model = this.model;\n const now = model.get('now');\n const sevenDays = model.get('sevenDays');\n const thirtyDays = model.get('thirtyDays');\n const sixtyDays = model.get('sixtyDays');\n const ninetyDays = model.get('ninetyDays');\n\n $.plot(\n this._$chart,\n [\n {\n data: now,\n label: interpolate(gettext('Active (%s)'),\n [now]),\n },\n {\n data: sevenDays,\n label: interpolate(gettext('7 days ago (%s)'),\n [sevenDays]),\n },\n {\n data: thirtyDays,\n label: interpolate(gettext('30 days ago (%s)'),\n [thirtyDays]),\n },\n {\n data: sixtyDays,\n label: interpolate(gettext('60 days ago (%s)'),\n [sixtyDays]),\n },\n {\n data: ninetyDays,\n label: interpolate(gettext('90 days ago (%s)'),\n [ninetyDays]),\n },\n ],\n {\n series: {\n pie: {\n show: true,\n label: {\n show: true,\n radius: 1,\n background: {\n opacity: 0.8,\n },\n formatter: (label, series) =>\n `<div>${Math.round(series.percent)}%</div>`,\n },\n },\n },\n }\n );\n\n this.trigger('sizeChanged');\n }", "title": "" }, { "docid": "bbfbb06d66c78c325f96399a04fbfab5", "score": "0.50563073", "text": "function PluppView(tableContainerId, chartContainerId, startPeriod, length) {\n\tvar self = this; // keep reference to this object to be used independent of call context\n\tthis.tableContainerId = tableContainerId;\n\tthis.chartContainerId = chartContainerId;\n\tthis.startPeriod = startPeriod;\n\tthis.length = length;\n\tthis.title = 'Define Title Here';\n\tthis.mode = 'chart'; // possible view modes are 'table' or 'chart'\n\tthis.view = null; // current view\n\tthis.viewArg = null; // current view argument\n\tthis.stack = new Stack(); // view stack\n\n\tthis.setLabel = function() {\n\t}\n\n\t// @param mode The new mode to set, if left undefined it is toggled\n\tthis.setViewMode = function(mode) {\n\t\tif (typeof(mode) == 'undefined') {\n\t\t\t// toggle mode\n\t\t\tself.mode = self.mode == 'table' ? 'chart' : 'table';\n\t\t}\n\t\telse if (mode == 'table' || mode == 'chart') {\n\t\t\tself.mode = mode;\n\t\t}\n\n\t\t// clear container and change to it\n\t\tif (self.mode == 'chart') {\n\t\t\t$('#' + self.tableContainerId).hide();\n\t\t\t$('#' + self.chartContainerId).html('').show();\n\t\t}\n\t\telse {\n\t\t\t$('#' + self.chartContainerId).hide();\n\t\t\t$('#' + self.tableContainerId).html('').show();\n\t\t}\n\n\t\t// call call-back\n\t\tif (typeof(self.view) == 'function') {\n\t\t\tself.view.apply(this, self.viewArg)\n\t\t}\n\t\telse {\n\t\t\tconsole.log(\"ignoring call to unknown view function, calling default\");\n\t\t\tself.plans();\n\t\t}\n\n\t\treturn self.mode;\n\t}\n\n\t// push view to navigation stack\n\tthis.pushView = function(title, view, args) {\n\t\t// TODO\n\t}\n\n\tthis.onError = function(e) {\n\t\tconsole.log(\"something went wrong: \" + e);\n\t}\n\n\tthis.updateLastChange = function(args) {\n\t\tvar history;\n\t\tif (typeof(args[0]) === 'string') {\n\t\t\thistory = Plupp.getHistory('9999-99-99', 1, args[0], args[1]);\n\t\t}\n\n\t\t$.when(\n\t\t\thistory.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tvar l = history.reply.data[0];\n\t\t\tif (l !== 'undefined') {\n\t\t\t\t$('.last-change').html('Last change by ' + l.username + ' @ ' + l.timestamp);\n\t\t\t}\n\t\t})\n\t\t.fail();\n\t}\n\n\tthis.allocation = function() {\n\t\tself.view = self.allocation;\n\t\tself.title = 'Project Allocation';\n\t\tvar projects = Plupp.getProjects();\n\t\tvar quotas = Plupp.getQuota(self.startPeriod, 1, 'project');\n\t\tvar alloc = Plupp.getAllocation(self.startPeriod, 1, 'raw');\n\t\tvar resc = Plupp.getResource();\n\n\t\t$.when(\n\t\t\tquotas.run(), projects.run(), alloc.run(), resc.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['allocation']}, 'request': 'allocation', 'postData': {'period': self.startPeriod}});\n\t\t\t\tt.addNameHeader(projects.reply.data, 'projectId');\n\t\t\t\tt.addDataSection(resc.reply.data, alloc.reply.data, 'projectId', 'editable');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Budget', quotas.reply.data, 'id', 'header');\n\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.build(true, $('#' + self.tableContainerId), self.project);\n\t\t\t}\n\t\t\telse {\n//\t\t\t\tself._chartPie('project', projects, quotas);\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.quotas = function() {\n\t\tself.view = self.quotas;\n\t\tself.title = 'Project Budgets';\n\t\tvar projects = Plupp.getProjects();\n\t\tvar quotas = Plupp.getQuota(self.startPeriod, self.length, 'project');\n\t\tvar alloc = Plupp.getAllocation(self.startPeriod, self.length);\n\t\tvar avail = Plupp.getAvailable(self.startPeriod, self.length);\n\n\t\t$.when(\n\t\t\tquotas.run(), projects.run(), alloc.run(), avail.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['quota']}, 'request': 'quotas'});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(projects.reply.data, quotas.reply.data, 'period', 'editable');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Available', avail.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.addDataRow('Requested', alloc.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(-4, -1); // delta = sum - requested\n\t\t\t\tt.build(true, $('#' + self.tableContainerId), self.project);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('project', projects, quotas, alloc, 'Requested');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.plans = function() {\n\t\tself.view = self.plans;\n\t\tself.title = 'Projects Resource Plans';\n\t\tvar projects = Plupp.getProjects();\n\t\tvar alloc = Plupp.getPlan(self.startPeriod, self.length, 'project');\n\t\tvar quotas = Plupp.getQuota(self.startPeriod, self.length);\n\n\t\t$.when(\n\t\t\talloc.run(), projects.run(), quotas.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan']}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(projects.reply.data, alloc.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Budget', quotas.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = quota - sum\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.project);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('project', projects, alloc, quotas, 'Budget');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.project = function(/*projectId*/) {\n\t\tself.title = 'Project Resource Plan: ';\n\t\tself.view = self.project;\n\t\tself.viewArg = arguments;\n\t\tvar projectId = arguments[0];\n\t\tvar teams = Plupp.getTeams();\n\t\tvar alloc = Plupp.getPlan(self.startPeriod, self.length, 'project', projectId, 'team');\n\t\tvar quota = Plupp.getQuota(startPeriod, length, 'project', projectId);\n\t\tvar project = Plupp.getProject(projectId);\n\n\t\t$.when(\n\t\t\tteams.run(), quota.run(), alloc.run(), project.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (typeof(project.reply.data) != 'undefined') {\n\t\t\t\tself.title += project.reply.data[0].name;\n\t\t\t}\n\n\t\t\tif (self.mode == 'table') {\n\t\t\t\t// TODO should this be plan or should it be set allocation?\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan', projectId]}, 'request': 'plan', 'requestId': projectId});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(teams.reply.data, alloc.reply.data, 'period', 'constant', projectId);\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Budget', quota.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = quota - sum\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.projectTeam);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('team', teams, alloc, quota, 'Budget');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.projectTeam = function(/*teamId, projectId*/) {\n\t\tself.title = 'Project Discipline Resource Requests';\n\t\tself.view = self.projectTeam;\n\t\tself.viewArg = arguments;\n\t\tvar teamId = arguments[0];\n\t\tvar projectId = arguments[1];\n\t\tvar project = Plupp.getProject(projectId);\n\t\tvar team = Plupp.getTeam(teamId);\n\t\tvar alloc = Plupp.getResourcePlan(self.startPeriod, self.length, projectId, teamId);\n\t\tvar resc = Plupp.getResource('team', teamId);\n\n\t\t$.when(\n\t\t\tteam.run(), alloc.run(), project.run(), resc.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (typeof(team.reply.data) != 'undefined' && typeof(project.reply.data) != 'undefined') {\n\t\t\t\tself.title = 'Project ' + project.reply.data[0].name + ': ' + team.reply.data[0].name + ' resource requests';\n\t\t\t}\n\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan']}, 'request': 'plan', 'postData': {'projectId': projectId}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(resc.reply.data, alloc.reply.data, 'period', 'editable', projectId);\n\t\t\t\tt.addSum();\n//\t\t\t\tt.addDataRow('Available', avail.reply.data, 'period', 'header');\n//\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.build(true, $('#' + self.tableContainerId), self.resource);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('resource', resc, alloc/*, avail, 'Available'*/);\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.teams = function() {\n\t\tself.view = self.teams;\n\t\tself.title = 'Discipline Resource Requests';\n\t\tvar teams = Plupp.getTeams();\n\t\tvar alloc = Plupp.getAllocation(self.startPeriod, self.length, 'team');\n\t\tvar avail = Plupp.getAvailable(self.startPeriod, self.length);\n\n\t\t$.when(\n\t\t\talloc.run(), teams.run(), avail.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan']}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(teams.reply.data, alloc.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Available', avail.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.team);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('team', teams, alloc, avail, 'Available');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.available = function() {\n\t\tself.view = self.available;\n\t\tself.title = 'Resource Availability';\n\t\tvar teams = Plupp.getTeams();\n\t\tvar avail = Plupp.getAvailable(self.startPeriod, self.length, 'team');\n\t\tvar quotas = Plupp.getQuota(self.startPeriod, self.length);\n\n\t\t$.when(\n\t\t\tavail.run(), teams.run(), quotas.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['available']}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(teams.reply.data, avail.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Budget', quotas.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = quota - available\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.team);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('team', teams, avail, quotas, 'Budget');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.departments = function() {\n\t\tself.view = self.departments;\n\t\tself.title = 'Departments';\n\t\tvar depts = Plupp.getDepartment();\n\t\tvar avail = Plupp.getAvailable(self.startPeriod, self.length, 'department');\n\t\tvar quotas = Plupp.getQuota(self.startPeriod, self.length);\n\n\t\t$.when(\n\t\t\tavail.run(), depts.run(), quotas.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan']}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(depts.reply.data, avail.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Budget', quotas.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(-2, -1); // delta = available - quota\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.department);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('department', depts, avail, quotas, 'Budget');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.department = function(/*departmentId*/) {\n\t\tself.title = 'Department: ';\n\t\tself.view = self.department;\n\t\tself.viewArg = arguments;\n\t\tvar departmentId = arguments[0];\n\t\tvar dept = Plupp.getDepartment(departmentId);\n\t\tvar resc = Plupp.getResource('department', departmentId);\n\t\tvar avail = Plupp.getResourceAvailability(self.startPeriod, self.length, 'department', departmentId);\n\n\t\t$.when(\n\t\t\tavail.run(), dept.run(), resc.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (typeof(dept.reply.data) != 'undefined') {\n\t\t\t\tself.title += dept.reply.data[0].name;\n\t\t\t}\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': []}, 'request': 'resourceavailability', 'requestId': 666}); // TODO fix id\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(resc.reply.data, avail.reply.data, 'period', 'editable');\n\t\t\t\tt.addSum();\n\t\t\t\tt.build(true, $('#' + self.tableContainerId), self.resource);\n\t\t\t}\n\t\t\telse {\n//\t\t\t\tself._chartStackedArea('resource', teams, avail, quotas, 'Quota');\n\t\t\t\tconsole.log(\"chart not supported for this view\");\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis.team = function(/*teamId*/) {\n\t\tself.title = 'Discipline Resource Requests: ';\n\t\tself.view = self.team;\n\t\tself.viewArg = arguments;\n\t\tvar teamId = arguments[0];\n\t\tvar team = Plupp.getTeam(teamId);\n\t\tvar projects = Plupp.getProjects();\n\t\tvar alloc = Plupp.getAllocation(self.startPeriod, self.length, 'team', teamId);\n\t\tvar avail = Plupp.getAvailable(self.startPeriod, self.length, 'team', teamId);\n\n\t\t$.when(\n\t\t\tteam.run(), alloc.run(), projects.run(), avail.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (typeof(team.reply.data) != 'undefined') {\n\t\t\t\tself.title += team.reply.data[0].name;\n\t\t\t}\n\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': ['plan']}});\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(projects.reply.data, alloc.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Available', avail.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.project);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('project', projects, alloc, avail, 'Available');\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\t// @TODO make this complete, show which projects a specific resource is allocated to\n\tthis.resource = function(/*resourceId*/) {\n\t\tself.title = 'Resource: ';\n\t\tself.view = self.resource;\n\t\tself.viewArg = arguments;\n\t\tvar resourceId = arguments[0];\n\t\tvar projects = Plupp.getProjects();\n\t\tvar resc = Plupp.getResource('resource', resourceId);\n\t\tvar alloc = Plupp.getAllocation(self.startPeriod, self.length, 'resource', resourceId, 'project');\n\t\tvar avail = Plupp.getResourceAvailability(self.startPeriod, self.length, 'resource', resourceId);\n\n\t\t$.when(\n\t\t\talloc.run(), avail.run(), projects.run(), resc.run()\n\t\t)\n\t\t.then(function() {\n\t\t\tif (typeof(resc.reply.data) != 'undefined') {\n\t\t\t\tself.title += resc.reply.data[0].name;\n\t\t\t}\n\t\t\tif (self.mode == 'table') {\n\t\t\t\tvar t = new PluppTable(self.title, {'updateLastChange': {'callback': self.updateLastChange, 'args': []}, 'request': 'resourceavailability', 'requestId': 666}); // TODO fix id\n\t\t\t\tt.addDateHeader(self.startPeriod, self.length);\n\t\t\t\tt.addDataSection(projects.reply.data, alloc.reply.data, 'period', 'constant');\n\t\t\t\tt.addSum();\n\t\t\t\tt.addDataRow('Available', avail.reply.data, 'period', 'header');\n\t\t\t\tt.addDelta(); // delta = available - sum\n\t\t\t\tt.build(false, $('#' + self.tableContainerId), self.project);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tself._chartStackedArea('project', projects, alloc, avail, 'Available');\n\t\t\t\tconsole.log(\"chart not supported for this view\");\n\t\t\t}\n\t\t})\n\t\t.fail(self.onError);\n\t}\n\n\tthis._chartStackedArea = function(callback, titles, values, limit, limitTitle) {\n\t\tvar config = { \n\t\t\tstack: true,\n\t\t\tclickable: true,\n\t\t\thoverable: true,\n\t\t\tshadowSize: 1,\n\t\t};\n\n\t\tvar limitConfig = { \n\t\t\tclickable: true,\n\t\t\thoverable: true,\n\t\t\tlines: {\n\t\t\t\tstack: false,\n\t\t\t\tshadowSize: 1,\n\t\t\t\tfill: false,\n\t\t\t\tlineWidth: 3,\n\t\t\t\tshadowSize: 1\n\t\t\t},\n\t\t\tcolor: '#000'\n\t\t};\n\n\t\tvar c = new PluppChart(self, self.title, 'month', self.startPeriod, self.length);\n\t\tc.addDataSection(titles.reply.data, values.reply.data, callback, config);\n\t\tif (typeof(limit) !== 'undefined') {\n\t\t\tc.addDataRow(limitTitle, limit.reply.data, callback, limitConfig);\n\t\t}\n\t\tc.build($('#' + self.chartContainerId), 400);\n\t}\n\n/* TODO\n\tthis._chartPie = function(callback, titles, values) {\n\t\t$.plot('#' + self.chartContainerId, data, {\n\t\t\tseries: {\n\t\t\t\tpie: {\n\t\t\t\t\tshow: true\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n*/\n}", "title": "" }, { "docid": "7a84a1517c233dd7401301dc3b3384e0", "score": "0.50541794", "text": "function chart(selection) {\n selection.each(function(data) {\n var availableWidth = width - margin.left - margin.right,\n availableHeight = height - margin.top - margin.bottom,\n container = d3.select(this);\n\n\n //------------------------------------------------------------\n // Setup Scales\n\n x .domain(xDomain || d3.extent(data[0].values.map(getX).concat(forceX) ));\n\n if (padData)\n x.range(xRange || [availableWidth * .5 / data[0].values.length, availableWidth * (data[0].values.length - .5) / data[0].values.length ]);\n else\n x.range(xRange || [0, availableWidth]);\n\n y .domain(yDomain || [\n d3.min(data[0].values.map(getLow).concat(forceY)),\n d3.max(data[0].values.map(getHigh).concat(forceY))\n ])\n .range(yRange || [availableHeight, 0]);\n\n // If scale's domain don't have a range, slightly adjust to make one... so a chart can show a single data point\n if (x.domain()[0] === x.domain()[1])\n x.domain()[0] ?\n x.domain([x.domain()[0] - x.domain()[0] * 0.01, x.domain()[1] + x.domain()[1] * 0.01])\n : x.domain([-1,1]);\n\n if (y.domain()[0] === y.domain()[1])\n y.domain()[0] ?\n y.domain([y.domain()[0] + y.domain()[0] * 0.01, y.domain()[1] - y.domain()[1] * 0.01])\n : y.domain([-1,1]);\n\n //------------------------------------------------------------\n\n\n //------------------------------------------------------------\n // Setup containers and skeleton of chart\n\n var wrap = d3.select(this).selectAll('g.nv-wrap.nv-ohlcBar').data([data[0].values]);\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-ohlcBar');\n var defsEnter = wrapEnter.append('defs');\n var gEnter = wrapEnter.append('g');\n var g = wrap.select('g');\n\n gEnter.append('g').attr('class', 'nv-ticks');\n\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\n\n //------------------------------------------------------------\n\n\n container\n .on('click', function(d,i) {\n dispatch.chartClick({\n data: d,\n index: i,\n pos: d3.event,\n id: id\n });\n });\n\n\n defsEnter.append('clipPath')\n .attr('id', 'nv-chart-clip-path-' + id)\n .append('rect');\n\n wrap.select('#nv-chart-clip-path-' + id + ' rect')\n .attr('width', availableWidth)\n .attr('height', availableHeight);\n\n g .attr('clip-path', clipEdge ? 'url(#nv-chart-clip-path-' + id + ')' : '');\n\n\n\n var ticks = wrap.select('.nv-ticks').selectAll('.nv-tick')\n .data(function(d) { return d });\n\n ticks.exit().remove();\n\n\n var ticksEnter = ticks.enter().append('path')\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i)) - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n //.attr('fill', function(d,i) { return color[0]; })\n //.attr('stroke', function(d,i) { return color[0]; })\n //.attr('x', 0 )\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) })\n .on('mouseover', function(d,i) {\n d3.select(this).classed('hover', true);\n dispatch.elementMouseover({\n point: d,\n series: data[0],\n pos: [x(getX(d,i)), y(getY(d,i))], // TODO: Figure out why the value appears to be shifted\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n\n })\n .on('mouseout', function(d,i) {\n d3.select(this).classed('hover', false);\n dispatch.elementMouseout({\n point: d,\n series: data[0],\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n })\n .on('click', function(d,i) {\n dispatch.elementClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n })\n .on('dblclick', function(d,i) {\n dispatch.elementDblClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n });\n\n ticks\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n d3.transition(ticks)\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i))\n - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n //.attr('width', (availableWidth / data[0].values.length) * .9 )\n\n\n //d3.transition(ticks)\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) });\n //.order(); // not sure if this makes any sense for this model\n\n });\n\n return chart;\n }", "title": "" }, { "docid": "7a84a1517c233dd7401301dc3b3384e0", "score": "0.50541794", "text": "function chart(selection) {\n selection.each(function(data) {\n var availableWidth = width - margin.left - margin.right,\n availableHeight = height - margin.top - margin.bottom,\n container = d3.select(this);\n\n\n //------------------------------------------------------------\n // Setup Scales\n\n x .domain(xDomain || d3.extent(data[0].values.map(getX).concat(forceX) ));\n\n if (padData)\n x.range(xRange || [availableWidth * .5 / data[0].values.length, availableWidth * (data[0].values.length - .5) / data[0].values.length ]);\n else\n x.range(xRange || [0, availableWidth]);\n\n y .domain(yDomain || [\n d3.min(data[0].values.map(getLow).concat(forceY)),\n d3.max(data[0].values.map(getHigh).concat(forceY))\n ])\n .range(yRange || [availableHeight, 0]);\n\n // If scale's domain don't have a range, slightly adjust to make one... so a chart can show a single data point\n if (x.domain()[0] === x.domain()[1])\n x.domain()[0] ?\n x.domain([x.domain()[0] - x.domain()[0] * 0.01, x.domain()[1] + x.domain()[1] * 0.01])\n : x.domain([-1,1]);\n\n if (y.domain()[0] === y.domain()[1])\n y.domain()[0] ?\n y.domain([y.domain()[0] + y.domain()[0] * 0.01, y.domain()[1] - y.domain()[1] * 0.01])\n : y.domain([-1,1]);\n\n //------------------------------------------------------------\n\n\n //------------------------------------------------------------\n // Setup containers and skeleton of chart\n\n var wrap = d3.select(this).selectAll('g.nv-wrap.nv-ohlcBar').data([data[0].values]);\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-ohlcBar');\n var defsEnter = wrapEnter.append('defs');\n var gEnter = wrapEnter.append('g');\n var g = wrap.select('g');\n\n gEnter.append('g').attr('class', 'nv-ticks');\n\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\n\n //------------------------------------------------------------\n\n\n container\n .on('click', function(d,i) {\n dispatch.chartClick({\n data: d,\n index: i,\n pos: d3.event,\n id: id\n });\n });\n\n\n defsEnter.append('clipPath')\n .attr('id', 'nv-chart-clip-path-' + id)\n .append('rect');\n\n wrap.select('#nv-chart-clip-path-' + id + ' rect')\n .attr('width', availableWidth)\n .attr('height', availableHeight);\n\n g .attr('clip-path', clipEdge ? 'url(#nv-chart-clip-path-' + id + ')' : '');\n\n\n\n var ticks = wrap.select('.nv-ticks').selectAll('.nv-tick')\n .data(function(d) { return d });\n\n ticks.exit().remove();\n\n\n var ticksEnter = ticks.enter().append('path')\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i)) - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n //.attr('fill', function(d,i) { return color[0]; })\n //.attr('stroke', function(d,i) { return color[0]; })\n //.attr('x', 0 )\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) })\n .on('mouseover', function(d,i) {\n d3.select(this).classed('hover', true);\n dispatch.elementMouseover({\n point: d,\n series: data[0],\n pos: [x(getX(d,i)), y(getY(d,i))], // TODO: Figure out why the value appears to be shifted\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n\n })\n .on('mouseout', function(d,i) {\n d3.select(this).classed('hover', false);\n dispatch.elementMouseout({\n point: d,\n series: data[0],\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n })\n .on('click', function(d,i) {\n dispatch.elementClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n })\n .on('dblclick', function(d,i) {\n dispatch.elementDblClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n });\n\n ticks\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n d3.transition(ticks)\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i))\n - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n //.attr('width', (availableWidth / data[0].values.length) * .9 )\n\n\n //d3.transition(ticks)\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) });\n //.order(); // not sure if this makes any sense for this model\n\n });\n\n return chart;\n }", "title": "" }, { "docid": "a004b487cd6f3ebead1ec10ff60bb0df", "score": "0.50541764", "text": "function renderResults() {\n var ule1 = document.getElementById(\"finalResult\");\n for (var i = 0; i < Product.all.length; i++) {\n var li = document.createElement(\"li\");\n li.setAttribute(\"id\", \"list\");\n li.textContent = `${Product.all[i].productName} Has Clicked ${Product.all[i].clicks} and has Viewd ${Product.all[i].views}`;\n ule1.append(li);\n }\n renderChart();\n}", "title": "" }, { "docid": "263b9a468c73c38cd4afde4d063d774e", "score": "0.5046015", "text": "function loadChart() {\n var url_root = getUrlRoot();\n return render('chart', { url: url_root });\n}", "title": "" }, { "docid": "a0dac7219af05a4685043502326af349", "score": "0.5037835", "text": "function chart(selection) {\n selection.each(function(data) {\n var availableWidth = width - margin.left - margin.right,\n availableHeight = height - margin.top - margin.bottom,\n container = d3.select(this);\n\n\n //------------------------------------------------------------\n // Setup Scales\n\n x .domain(xDomain || d3.extent(data[0].values.map(getX).concat(forceX) ))\n .range([0, availableWidth]);\n\n y .domain(yDomain || [\n d3.min(data[0].values.map(getLow).concat(forceY)),\n d3.max(data[0].values.map(getHigh).concat(forceY))\n ])\n .range([availableHeight, 0]);\n\n // If scale's domain don't have a range, slightly adjust to make one... so a chart can show a single data point\n if (x.domain()[0] === x.domain()[1] || y.domain()[0] === y.domain()[1]) singlePoint = true;\n if (x.domain()[0] === x.domain()[1])\n x.domain()[0] ?\n x.domain([x.domain()[0] - x.domain()[0] * 0.01, x.domain()[1] + x.domain()[1] * 0.01])\n : x.domain([-1,1]);\n\n if (y.domain()[0] === y.domain()[1])\n y.domain()[0] ?\n y.domain([y.domain()[0] + y.domain()[0] * 0.01, y.domain()[1] - y.domain()[1] * 0.01])\n : y.domain([-1,1]);\n\n //------------------------------------------------------------\n\n\n //------------------------------------------------------------\n // Setup containers and skeleton of chart\n\n var wrap = d3.select(this).selectAll('g.nv-wrap.nv-ohlcBar').data([data[0].values]);\n var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-ohlcBar');\n var defsEnter = wrapEnter.append('defs');\n var gEnter = wrapEnter.append('g');\n var g = wrap.select('g');\n\n gEnter.append('g').attr('class', 'nv-ticks');\n\n wrap.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\n\n //------------------------------------------------------------\n\n\n container\n .on('click', function(d,i) {\n dispatch.chartClick({\n data: d,\n index: i,\n pos: d3.event,\n id: id\n });\n });\n\n\n defsEnter.append('clipPath')\n .attr('id', 'nv-chart-clip-path-' + id)\n .append('rect');\n\n wrap.select('#nv-chart-clip-path-' + id + ' rect')\n .attr('width', availableWidth)\n .attr('height', availableHeight);\n\n g .attr('clip-path', clipEdge ? 'url(#nv-chart-clip-path-' + id + ')' : '');\n\n\n\n var ticks = wrap.select('.nv-ticks').selectAll('.nv-tick')\n .data(function(d) { return d });\n\n ticks.exit().remove();\n\n\n var ticksEnter = ticks.enter().append('path')\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i)) - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n //.attr('fill', function(d,i) { return color[0]; })\n //.attr('stroke', function(d,i) { return color[0]; })\n //.attr('x', 0 )\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) })\n .on('mouseover', function(d,i) {\n d3.select(this).classed('hover', true);\n dispatch.elementMouseover({\n point: d,\n series: data[0],\n pos: [x(getX(d,i)), y(getY(d,i))], // TODO: Figure out why the value appears to be shifted\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n\n })\n .on('mouseout', function(d,i) {\n d3.select(this).classed('hover', false);\n dispatch.elementMouseout({\n point: d,\n series: data[0],\n pointIndex: i,\n seriesIndex: 0,\n e: d3.event\n });\n })\n .on('click', function(d,i) {\n dispatch.elementClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n })\n .on('dblclick', function(d,i) {\n dispatch.elementDblClick({\n //label: d[label],\n value: getY(d,i),\n data: d,\n index: i,\n pos: [x(getX(d,i)), y(getY(d,i))],\n e: d3.event,\n id: id\n });\n d3.event.stopPropagation();\n });\n\n ticks\n .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })\n d3.transition(ticks)\n .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })\n .attr('d', function(d,i) {\n var w = (availableWidth / data[0].values.length) * .9;\n return 'm0,0l0,'\n + (y(getOpen(d,i))\n - y(getHigh(d,i)))\n + 'l'\n + (-w/2)\n + ',0l'\n + (w/2)\n + ',0l0,'\n + (y(getLow(d,i))\n - y(getOpen(d,i)))\n + 'l0,'\n + (y(getClose(d,i))\n - y(getLow(d,i)))\n + 'l'\n + (w/2)\n + ',0l'\n + (-w/2)\n + ',0z';\n })\n //.attr('width', (availableWidth / data[0].values.length) * .9 )\n\n\n //d3.transition(ticks)\n //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) })\n //.attr('height', function(d,i) { return Math.abs(y(getY(d,i)) - y(0)) });\n //.order(); // not sure if this makes any sense for this model\n\n });\n\n return chart;\n }", "title": "" }, { "docid": "f54d4d9681517e6d97b297538bcec1e9", "score": "0.5034344", "text": "function rebuild_charts() {\n if(Setting('enable-charts') && typeof tasks[0] != 'undefined') {\n var plot_data = [], total_time = 0, t, i;\n\n // Get the total of all times\n for(t = 0; t < task_count; t++) {\n if(!TaskSetting('exclude-charts', t)) total_time += (tasks[t].current_hours) + (tasks[t].current_mins / 60) + (tasks[t].current_secs / 3600);\n }\n\n // Display charts container\n if(total_time > 0) $('#charts').fadeIn(); else $('#charts').fadeOut();\n\n // Build the time spent chart\n i = 0;\n for(t = 0; t < task_count; t++) {\n if(!TaskSetting('exclude-charts', t)) {\n plot_data[i] = {\n label: tasks[t].text,\n data: ((tasks[t].current_hours) + (tasks[t].current_mins / 60) + (tasks[t].current_secs / 3600)) / total_time * 100\n };\n\n i++;\n }\n }\n\n\n // Display the time spent chart\n current_plot = $.plot($('#current-pie-chart'), plot_data, {\n series: {\n pie: {\n show: true,\n combine: Setting('chart-combine', false, true) ? {\n label: locale('txtOther'),\n color: '#999',\n threshold: 0.03\n } : {},\n label: {\n show: true,\n radius: 3 / 4,\n formatter: function(label, series) {\n return '<div style=\"font-size: 8pt; text-align: center; padding: 2px; color: white;\">' + label + (Setting('chart-show-percent', true, true) ? '<br />' + Math.round(series.percent) + '%' : '') + '</div>';\n },\n background: {\n opacity: 0.5,\n color: '#000'\n },\n threshold: 0.05\n }\n }\n },\n\n legend: {\n show: false\n },\n\n grid: {\n hoverable: true\n }\n });\n } else {\n $('#charts').fadeOut();\n }\n}", "title": "" }, { "docid": "f1f1bdeb95bd760359759708ba8bfd38", "score": "0.5034247", "text": "processData() {\n var rawData = this.props.results;\n var aggregateBy = this.props.options.aggregateBy;\n var calculateBy = this.props.options.calculateBy;\n var output = {};\n var parseNumber = 0;\n\n if (rawData && aggregateBy && calculateBy) {\n try {\n output = rawData.reduce(function(out, curr) {\n\n parseNumber = (!isNaN(curr[calculateBy]) ? Math.floor(curr[calculateBy]) : Math.floor(parseInt(curr[calculateBy].replace(/\\s/g, \"\").replace(\",\", \"\"))));\n\n out.dataset[curr[aggregateBy]] = out.dataset[curr[aggregateBy]] || {};\n out.dataset[curr[aggregateBy]]['dataName'] = curr[aggregateBy] || {};\n out.dataset[curr[aggregateBy]][calculateBy] = (out.dataset[curr[aggregateBy]][calculateBy] || 0) + parseNumber;\n out.total['total'] = (out.total['total'] || 0) + parseNumber;\n return out;\n\n }, {'dataset' : {}, 'total':{}});\n } catch (e) {\n /* The operation fails if:\n *\n * The data returned from the web service doesn't have columns that match the names\n * provided in the aggregateBy and calculateBy properties.\n * To fix, double check the data received from the WS, or modify the values\n * for aggregateBy and calculateBy in global.pages.js for that page's configuration.\n */\n console.log('An error ocurred while generating the data chart.');\n }\n\n }\n return output;\n }", "title": "" }, { "docid": "c390bf8627389c9aea33113ac62eabae", "score": "0.5030553", "text": "function calcChart() {\n var changeRate=1-(charges/100);\n var newchangeRate=1-(newCharges/100);\n var compRate=1+(Number(returns)/100);\n var newCompRate=1+(Number(newReturns)/100);\n // console.log(\"returns \",returns)\n // console.log(\"compounding rate \",compRate)\n // console.log(\"change rate \",changeRate);\n // console.log(\"new change rate \",newchangeRate);\n var xdomain=[0,Number(timeToRetire)];\n var dataset=Array(Number(timeToRetire+1)).fill(savePerYear*1000).reduce((array, element, index) => {\n array.push({year: index, cost: !array.length ? element : (array[array.length-1].cost * compRate + (savePerYear*1000))*changeRate,cost2: !array.length ? element : (array[array.length-1].cost2 * newCompRate + (savePerYear*1000))*newchangeRate});\n return array;\n }, []);\n console.log(dataset)\n var index=dataset.length-1\n totalValue=dataset[index].cost;\n revisedValue=dataset[index].cost2;\n //console.log(totalValue, revisedValue)\n difference=revisedValue-totalValue;\n percentDif=100-((totalValue/revisedValue)*100)\n feesDiff=charges-newCharges;\n drawChart (xdomain, dataset, timeToRetire,totalValue, revisedValue);\n }", "title": "" }, { "docid": "2cb0a5fefd5929fe3221cd9d26fd2fbb", "score": "0.5030279", "text": "function doGroupBy() {\r\n // retrieve view by param\r\n placeView = d3.select(\"#chart-type\").property(\"value\");\r\n console.log(\"Change View by: \", placeView);\r\n // show or hide the \"with USA\" checkbox\r\n if (placeView === viewsOpts[0]) {\r\n $(\".form-check-toggle-label\").text(\"Include born in Nevada\")\r\n } else {\r\n $(\".form-check-toggle-label\").text(\"Include born in USA\")\r\n }\r\n updateVisualizationHook();\r\n}", "title": "" }, { "docid": "7bebdb038bba6b7f774d39fa11fcf33b", "score": "0.5028452", "text": "function View() {\n\t\t\t\tthis.animationForKey = (key,nu,old,now) => duration;\n\t\t\t\t//this.input = (key,value) => value;\n\t\t\t\t//this.output = (key,value) => value;\n\t\t\t\tcore.activate(this);\n\t\t\t}", "title": "" } ]
75554fe469efe9c7cc66248afc39e156
This method returns `undefined`.
[ { "docid": "ee81b6949a29b61faead6722039684a1", "score": "0.0", "text": "function noop() {\n // No operation performed.\n }", "title": "" } ]
[ { "docid": "ee9620eb04e0fc6f2781f1d4f5dac077", "score": "0.72199076", "text": "function returnUndefined() {\n }", "title": "" }, { "docid": "50dfd3340d6cb99d4230b8eee80d07b0", "score": "0.65414864", "text": "function maybeReturnsUndefined() {\n if (console instanceof global.Console) {\n return 4;\n }\n}", "title": "" }, { "docid": "5aba7658b1129ede0b03093f4e0c12ec", "score": "0.6498075", "text": "function _undefined() {\n return exports.PREFIX.undefined;\n}", "title": "" }, { "docid": "b0f4900fb1123d1859082a17fe5d4d67", "score": "0.64223534", "text": "function undefinedReturn(){\n\n}", "title": "" }, { "docid": "828b1f52b1899b36d5ebf715e3d27834", "score": "0.62757987", "text": "function returnUndefined() {\n console.log(\"This function does something\")\n // The function will return undefined because the\n // return statement is omitted\n}", "title": "" }, { "docid": "98dce272fc359aae8b79b87da94d1d26", "score": "0.6195519", "text": "get None() {}", "title": "" }, { "docid": "98dce272fc359aae8b79b87da94d1d26", "score": "0.6195519", "text": "get None() {}", "title": "" }, { "docid": "98dce272fc359aae8b79b87da94d1d26", "score": "0.6195519", "text": "get None() {}", "title": "" }, { "docid": "6be507c1f27708be1027e8e523f9746c", "score": "0.6191444", "text": "function ignore() {\n return undefined\n}", "title": "" }, { "docid": "e2af2dc3992dffc5c07f8f8bba33fa11", "score": "0.6044995", "text": "get(key) {\n return undefined;\n }", "title": "" }, { "docid": "a7b191f0773b5c2372102f93751365ea", "score": "0.6000382", "text": "function foo() {\n var undefined = 5;\n return undefined;\n}", "title": "" }, { "docid": "d0ac660cabc68356217e54b4fca9d127", "score": "0.599095", "text": "static rn(){\n return null;\n }", "title": "" }, { "docid": "ac54ce770b0cd27b0ae6243ee1905e7c", "score": "0.59143597", "text": "XXX() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ea0e85c782cabd575cf7671aacdb0aa6", "score": "0.5885381", "text": "value() {\n return (this._value === undefined) ?\n undefined :\n this._value\n }", "title": "" }, { "docid": "42ac3b0059b7675eaaece67a74eed943", "score": "0.5876923", "text": "function ignored_value(x) { return undefined }", "title": "" }, { "docid": "a00bd781f0d9ee4f408208e8f29554ce", "score": "0.5866393", "text": "getValue() {}", "title": "" }, { "docid": "76306ed4cbfede25cd471a303f04878a", "score": "0.58386326", "text": "peek() {\n if (this.data.length > 0) {\n return this.data[0];\n } else {\n return undefined;\n }\n }", "title": "" }, { "docid": "d3db5d4202b86c5d0ada8c9a9a614545", "score": "0.5828574", "text": "function getDuckiePos() {\r\n // Details of function not provided here\r\n }", "title": "" }, { "docid": "5515b832221a37ed6ab63897babaeec8", "score": "0.582734", "text": "get() {\n\n return null;\n }", "title": "" }, { "docid": "2aaa81298a8238b626e7155fd602abf7", "score": "0.5800818", "text": "getExpectedError () {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "831afc1527af524b6f6507c38367049b", "score": "0.57407355", "text": "function undef(){\n\t\t\treturn console.log(\"this should appear\");\n\t\t}", "title": "" }, { "docid": "538c4950de2592eb83d3cfb61ca941b3", "score": "0.5739094", "text": "get Unknown() {}", "title": "" }, { "docid": "538c4950de2592eb83d3cfb61ca941b3", "score": "0.5739094", "text": "get Unknown() {}", "title": "" }, { "docid": "f7bf1e473925738834909df3a9fec8ab", "score": "0.5738758", "text": "processPlaceHolder() {\n return 0;\n }", "title": "" }, { "docid": "8aa4ceb475996745a71f094c508759a8", "score": "0.5685959", "text": "size() {\n return 1;\n }", "title": "" }, { "docid": "8aa4ceb475996745a71f094c508759a8", "score": "0.5685959", "text": "size() {\n return 1;\n }", "title": "" }, { "docid": "82219624be86889fe23ea9e61d07b6c1", "score": "0.5662911", "text": "peek() {\n const nodes = this.nodes_\n if (nodes.length == 0) {\n return undefined\n }\n return nodes[0].getValue()\n }", "title": "" }, { "docid": "bda38b4b8aa8ffc01ed6f3e223d180e8", "score": "0.5656664", "text": "_is_undefined(x){\n\t\treturn (typeof x === 'undefined');\n\t}", "title": "" }, { "docid": "c38ecc50b31d234ad2755bc2ddccd706", "score": "0.5652756", "text": "static isUndefined(value) { return typeof value === 'undefined'; }", "title": "" }, { "docid": "0db345b752493de769e917ded458410b", "score": "0.5635872", "text": "function getFirstDefined() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var arg = args_1[_a];\n if (arg !== undefined) {\n return arg;\n }\n }\n return undefined;\n}", "title": "" }, { "docid": "157810875ef82fa73753e4325b81d438", "score": "0.5633437", "text": "isUndefined (value) {\n return typeof value === 'undefined';\n }", "title": "" }, { "docid": "96e1c05fdb7108454b72ca9b01254605", "score": "0.56229997", "text": "pop() {\n\t\t\tif (stack.length === 0) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\treturn stack.pop()\n\t\t}", "title": "" }, { "docid": "c86fa7149f03231692ba373887d2d5aa", "score": "0.56225437", "text": "function Undefined$prototype$toString() {\n return 'undefined';\n }", "title": "" }, { "docid": "1b5f234089d553240b9fc699c664a3d9", "score": "0.559136", "text": "get end() {return undefined;}", "title": "" }, { "docid": "e830e7e3a2e7947a0cafdbc4614e71f8", "score": "0.5545991", "text": "function _undefinedCoerce() {\n return '';\n}", "title": "" }, { "docid": "dd9b67643de0c1a3b544b926b0efc4f0", "score": "0.5530495", "text": "get(input) {\n return null;\n }", "title": "" }, { "docid": "653904e11d9bf29ae48eb36fab70a12e", "score": "0.55292547", "text": "function getFirstDefinedValue() {\n var arg, i, l;\n for (i = 0, l = arguments.length; i < l; i += 1) {\n arg = arguments[i];\n if (!arg && arg !== false && arg !== 0 && arg != BLANK) {\n continue;\n }\n return arg;\n }\n return UNDEF;\n}", "title": "" }, { "docid": "dee2587c0f695dd35becbc3bdda064f7", "score": "0.55155224", "text": "function definedp(that){\n return typeof that !='undefined';\n }", "title": "" }, { "docid": "370b0a32f82d819d48de24c61f752553", "score": "0.5498503", "text": "require() {\n return null;\n }", "title": "" }, { "docid": "eed9a42cf418de43fdf3d57904cb4ce2", "score": "0.5477276", "text": "get dataHead() {\n try {\n return this.data()[0];\n }\n catch (err) {\n console.log(\"Looks like there is no data in this golf hole\");\n console.log(err);\n }\n }", "title": "" }, { "docid": "f02189faa9e96e3bd332d1c9979162db", "score": "0.5460473", "text": "function thisUndefined () {\n function inner() {\n return this;\n }\n return inner();\n}", "title": "" }, { "docid": "89ca91b73d7e1c7fcc1123e94e61ae8c", "score": "0.5459672", "text": "get isDefined() {\n return !!fastRegistry.getByType(this.type);\n }", "title": "" }, { "docid": "cc7b684809a620dd08d9821904e76f4b", "score": "0.5451012", "text": "getHeading() {\n return this.heading || 0;\n }", "title": "" }, { "docid": "814543817c2836ac7dbc9ad57b31e3be", "score": "0.5446497", "text": "getTypeCode() {\n\t\treturn undefined;\n\t}", "title": "" }, { "docid": "14b976321671dcb08a276a3228d42d24", "score": "0.5444901", "text": "static get ERROR() { return 3 }", "title": "" }, { "docid": "f8f078b6323b4e1d7bdc0be7e76319da", "score": "0.54294795", "text": "function checkToken() {\n return undefined;\n}", "title": "" }, { "docid": "bfe95d722130f6bd6ff9db2f406b1430", "score": "0.5427445", "text": "function example() {\n console.log(notDefined); // => throws a ReferenceError\n}", "title": "" }, { "docid": "813f5798d5753137f240fe4d995e26ef", "score": "0.5424775", "text": "get fallbackExecution()\n\t{\n return this.fallbackExecution;\n\t}", "title": "" }, { "docid": "ae26236f5c335eeec88cab7f3fb10698", "score": "0.5413702", "text": "function studyFinder(){\n return(-1)\n}", "title": "" }, { "docid": "c6bd7ea05b94cc1f635f1c0a14d49696", "score": "0.5404387", "text": "getOrNull() {\n return null;\n }", "title": "" }, { "docid": "95fd0958fa69f8b7e594f7def56430d1", "score": "0.53993225", "text": "function isUndefined(value) {return typeof value === 'undefined';}", "title": "" }, { "docid": "53a030a68ecd3289db6edca103d03e70", "score": "0.5391758", "text": "_peeks() {\n if (this.length === 0) throw new Error(\"Stack is Empty!\");\n\n return this.head.value;\n }", "title": "" }, { "docid": "af306452cfab57ba9b2657c5b24559b2", "score": "0.53827703", "text": "getName() {\n return null\n }", "title": "" }, { "docid": "be9c05543a1656d804374491e26b85d5", "score": "0.5376621", "text": "get RightLittleDistal() {}", "title": "" }, { "docid": "da7bb7b83cfdaff01137e6bddbe26ffb", "score": "0.5374004", "text": "get length() {\n return 1;\n }", "title": "" }, { "docid": "f1ffd2e889d75dd2123a745bead9a7f8", "score": "0.5372892", "text": "function getFirstDefined(...args) {\n for (const arg of args) {\n if (arg !== undefined) {\n return arg;\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "bef1ce5852079b587d76030776f5ade1", "score": "0.53676736", "text": "static get NULL() { return NULL$1; }", "title": "" }, { "docid": "ee6153c715ba7f518d81c101c8646c11", "score": "0.535554", "text": "first() {\n return this._first && this._first.value\n }", "title": "" }, { "docid": "6dbb80336daf247ae487764fe044f5fe", "score": "0.5352105", "text": "first() {\n if (!this.history.length) return undefined;\n return this.history[0];\n }", "title": "" }, { "docid": "dcb23dad64bda5908eaf16437876f631", "score": "0.5348566", "text": "function undefinedFun() { }", "title": "" }, { "docid": "a414c27d2577e6f263741f959bd9d52b", "score": "0.534708", "text": "get LeftLittleDistal() {}", "title": "" }, { "docid": "282d3d789a0aa0429f121817324ddb9d", "score": "0.5340307", "text": "last() {\n return this._last && this._last.value\n }", "title": "" }, { "docid": "10cabc46c8e137b3e4583eabbd1b34d7", "score": "0.53383505", "text": "function ldef() {\n for (var i = 0; i < arguments.length; i++) {\n if (arguments[i] !== undefined) {\n return arguments[i];\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "10cabc46c8e137b3e4583eabbd1b34d7", "score": "0.53383505", "text": "function ldef() {\n for (var i = 0; i < arguments.length; i++) {\n if (arguments[i] !== undefined) {\n return arguments[i];\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "10cabc46c8e137b3e4583eabbd1b34d7", "score": "0.53383505", "text": "function ldef() {\n for (var i = 0; i < arguments.length; i++) {\n if (arguments[i] !== undefined) {\n return arguments[i];\n }\n }\n return undefined;\n }", "title": "" }, { "docid": "1bc92787805742c037a49c9be3f90c20", "score": "0.5337067", "text": "function ignore() {\n return null\n}", "title": "" }, { "docid": "1bc92787805742c037a49c9be3f90c20", "score": "0.5337067", "text": "function ignore() {\n return null\n}", "title": "" }, { "docid": "1b2f146496e0ece33d87f5565763a61a", "score": "0.53321576", "text": "function isUndefined(arg) {\n\treturn typeof arg === 'undefined';\n}", "title": "" }, { "docid": "2dd59e301876f29b0356c2aac95940c2", "score": "0.5332155", "text": "raw() {\n return null;\n }", "title": "" }, { "docid": "dd266ce5f6c9ebf86971ece1098b52f0", "score": "0.53276896", "text": "peek() {\n if (this.isEmpty()){\n return undefined;\n }\n return this.items[this.count -1];\n }", "title": "" }, { "docid": "60196cc2ff7f42d7727bbb1402b84b72", "score": "0.5327612", "text": "function test(t) {\n if (t === undefined) {\n return \"Undefined value!\";\n }\n return t;\n}", "title": "" }, { "docid": "64fd9a0c10e8a4d3d8de29f36a2871d9", "score": "0.53246623", "text": "function isdef(e) { return typeof(e) !== \"undefined\"; }", "title": "" }, { "docid": "8379dfd0cf399c011f315be58ffb9a6f", "score": "0.5324477", "text": "function getPerson() {\n\treturn // Engine will put a semicolon here making this function to return undefined\n\t{\n\t\tfirstname: \"Tony\"\n\t} \n}", "title": "" }, { "docid": "a5037df3c47046fc89bbfc1a52a25c89", "score": "0.5323345", "text": "function isUndefined(value) {\n return typeof value === \"undefined\";\n }", "title": "" }, { "docid": "920e850d174949aebf2a05ec372ebf3e", "score": "0.53222185", "text": "peek(){\n if (this.isEmpty){\n return undefined;\n }\n return this.items[this.lowestCount];\n }", "title": "" }, { "docid": "59dc22caf9ef8d48ecaed4f34eceeda7", "score": "0.5319428", "text": "function doNothing(){\n console.log(\"Here nothing is returned so undefined gets displayed in console.\")\n}", "title": "" }, { "docid": "884db48f2c56bf35e4a4e35ca980f534", "score": "0.5311575", "text": "function None() {\n\n return notKnownError;\n}", "title": "" }, { "docid": "a5d6766a07644f459fdd77fee03e6c8c", "score": "0.53043574", "text": "getIfPresent(key) {\n\t\tconst data = this[DATA];\n\t\tconst value = data.values.get(key);\n\t\treturn value === undefined ? null : value;\n\t}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "212829751e73fc5eb577f3eff527b282", "score": "0.53005296", "text": "function r(e){return void 0===e||null===e}", "title": "" }, { "docid": "c78fcd9adc6bd072bdf688bfc7e93268", "score": "0.5298108", "text": "function isUndefined(o) {\n return typeof o === \"undefined\";\n}", "title": "" }, { "docid": "c78fcd9adc6bd072bdf688bfc7e93268", "score": "0.5298108", "text": "function isUndefined(o) {\n return typeof o === \"undefined\";\n}", "title": "" }, { "docid": "e16f5d734664e903fda633fced1ee914", "score": "0.5298024", "text": "function self() {\n\t\t\treturn error;\n\t\t}", "title": "" }, { "docid": "52452c2f63a8568d86ec7bc0e688a1e6", "score": "0.5296317", "text": "function _isUndefined(v){return typeof v==='undefined';}", "title": "" }, { "docid": "338170900acdf33043eadc8b52036423", "score": "0.5296306", "text": "function IsUndefined(x) {\r\n return x === undefined;\r\n }", "title": "" }, { "docid": "82a8a20e448037fb826e3c8fe26e0f2e", "score": "0.529129", "text": "static isUndefined(object) {\n return this.typeCheck(object, 'undefined')\n }", "title": "" }, { "docid": "6d2fb18b7148fe6403e848ee309ccccc", "score": "0.5285651", "text": "get_type() {\n return 0;\n }", "title": "" }, { "docid": "16b39215cedef239b412cc2bdc63e0b3", "score": "0.52845156", "text": "function foo() {\n return null;\n}", "title": "" }, { "docid": "16b39215cedef239b412cc2bdc63e0b3", "score": "0.52845156", "text": "function foo() {\n return null;\n}", "title": "" }, { "docid": "0457e5dc80fa23153ba688adf921eb94", "score": "0.5283584", "text": "function getme() { return 42; }", "title": "" }, { "docid": "3c14b613d3831c26158ab7d9d59b4074", "score": "0.52824676", "text": "static get STATUS() {\n return 0;\n }", "title": "" }, { "docid": "7104e440ef8a21b21253f5cbd611f825", "score": "0.5282458", "text": "_checkUndefined(propertyName, value) {\n return typeof value === 'undefined';\n }", "title": "" } ]
019a7c910022e044953c600ba676b18f
Removes all keyvalue entries from the hash.
[ { "docid": "9805196a0a5f34b3bd69be9e9f5b95c1", "score": "0.5906747", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" } ]
[ { "docid": "85e47774260af2454ea9819ac7f8740f", "score": "0.65269583", "text": "clear() {\n this.hashMap.clear();\n }", "title": "" }, { "docid": "fbf52c87dedd403d11cd58b2eea2ed94", "score": "0.6431394", "text": "clearKeys(){\n this.keyList.clearKeys();\n }", "title": "" }, { "docid": "9886d34fa0cf1d5cf22ca824ed637a60", "score": "0.62905306", "text": "function clear()\n {\n var k = keys();\n _store.clear();\n for(var i = 0; i < k.length; ++i)\n {\n triggerEvent(\"remove_\" + k[i]);\n triggerEvent(\"remove\", k[i]);\n }\n triggerEvent(\"clear\");\n }", "title": "" }, { "docid": "45df8cc5edf704a8bf6d89db8b458d19", "score": "0.6206956", "text": "async clear() {\n this.keys = {};\n }", "title": "" }, { "docid": "e71b42c04935573c2b61630766d569e8", "score": "0.6201073", "text": "function _cleanupKeys()\n {\n if (this._count == this._keys.length) {\n return;\n }\n var srcIndex = 0;\n var destIndex = 0;\n var seen = {};\n while (srcIndex < this._keys.length) {\n var key = this._keys[srcIndex];\n if (_hasKey(this._map, key)\n && !_hasKey(seen, key)\n ) {\n this._keys[destIndex++] = key;\n seen[key] = true;\n }\n srcIndex++;\n }\n this._keys.length = destIndex;\n }", "title": "" }, { "docid": "03e54201d95e48cb68e4b1ebfa372dac", "score": "0.6166946", "text": "remove(key) {\n let index = Hash.hash(key, this.sizeLimit);\n\n if (\n this.hashTable[index].length === 1 &&\n this.hashTable[index][0][0] === key\n ) {\n delete this.hashTable[index];\n } else {\n for (let i = 0; i < this.hashTable[index].length; i++) {\n if (this.hashTable[index][i][0] === key) {\n delete this.hashTable[index][i];\n }\n }\n }\n }", "title": "" }, { "docid": "b617796ffe179cb3e51a2db5f4a12528", "score": "0.59222144", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0;\n }", "title": "" }, { "docid": "5562dd39049da66f1a2109446d2e3325", "score": "0.5907212", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "5562dd39049da66f1a2109446d2e3325", "score": "0.5907212", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "5562dd39049da66f1a2109446d2e3325", "score": "0.5907212", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "05f8d4fb04792f38ca61d035bcb5e9bb", "score": "0.5900789", "text": "async function clear () {\n try {\n const keys = await getAllKeys()\n keys.length && await multiRemove(keys)\n } catch (e) {\n errorLogger('Storage:CLEAR', e)\n }\n}", "title": "" }, { "docid": "9559c290c0beebca2c7b4c786b676000", "score": "0.58959615", "text": "function hashClear() {\n\t this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};\n\t this.size = 0;\n\t}", "title": "" }, { "docid": "40430abd85993462fffd930206349266", "score": "0.5891199", "text": "clear() {\n this.logger.trace(\"Clearing cache entries created by MSAL\"); // read inMemoryCache\n\n const cacheKeys = this.getKeys(); // delete each element\n\n cacheKeys.forEach(key => {\n this.removeItem(key);\n });\n this.emitChange();\n }", "title": "" }, { "docid": "7b649a8a1f9f2d91cda9b2f5b37d256b", "score": "0.58903855", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "d4d00e41b1afee48fe0acc3ce2e5e9a2", "score": "0.5864768", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "c47577886fe8e4225101c754574e3fe6", "score": "0.58591634", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {}\n this.size = 0\n }", "title": "" }, { "docid": "800ca9f73feb5df8b782dbe94140c6fe", "score": "0.58496714", "text": "function hashClear() {\n\t this.__data__ = nativeCreate ? nativeCreate(null) : {};\n\t this.size = 0;\n\t }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" }, { "docid": "cb99f793e01bbd6225e102235d5d9163", "score": "0.5849571", "text": "function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }", "title": "" } ]
de6123b8aa595ffadfe5e5323d0f94b9
make a tmp dir where work can happen
[ { "docid": "3c39a9e7adb71190a1e659d725c05fa2", "score": "0.556729", "text": "makeDir(obj) {\n const dirName = obj.dirName;\n const code = obj.code;\n return new Promise((resolve, reject) => {\n fsExtra.mkdirs(dirName, function(err) {\n if (err) {\n reject(err);\n } else {\n resolve({dirName, code});\n }\n });\n });\n }", "title": "" } ]
[ { "docid": "9602b1052be7fad97471eb87b724b0a8", "score": "0.78375876", "text": "function mkTmp() {\n if (!fs.existsSync(__dirname + '/tmp')) {\n fs.mkdirSync(__dirname + '/tmp', 0755);\n }\n}", "title": "" }, { "docid": "aab2543c0034bb60e7353637235698a5", "score": "0.7279891", "text": "function TmpFile() {\n\tTmpFile.tmproot = '.' + sep + 'tests' + sep + 'tmp';\n}", "title": "" }, { "docid": "fa82aaec420471424ac4bb830bdbdb79", "score": "0.7173229", "text": "createTempDir() {\n\t\tshell.mkdir('-p', this.tempDirectory);\n\t}", "title": "" }, { "docid": "5dfd57aa5482ff131b6831fc8b364230", "score": "0.69608945", "text": "function createTempFolder () {\n const fs = require( 'fs' );\n const tempFolderPath = path.join( __dirname, 'temp' );\n // Create a temp folder if it doesnt exists.\n fs.access( tempFolderPath, fs.constants.F_OK, ( err ) => {\n if ( err ) {\n fs.mkdir( tempFolderPath, (e) => {\n if ( e ) {\n console.log( e );\n }\n });\n }\n });\n}", "title": "" }, { "docid": "b4d712f45a4eaa4543d36dde6b3e14ca", "score": "0.6946061", "text": "static tempDir () {\n return path.join(os.tmpdir(), 'stencila')\n }", "title": "" }, { "docid": "d006c849ecf5d342ae2dedbfb75768cb", "score": "0.6937964", "text": "prepareTemps() {\n this.fileSystem.mount('/tmp');\n this.fileSystem.mkdir('/tmp/test1');\n this.fileSystem.mkdir('/tmp/test2');\n this.fileSystem.mkdir('/tmp/test3');\n }", "title": "" }, { "docid": "860e7a61680f2537bd99c7844a00dee6", "score": "0.6842424", "text": "getTempDir() {\n const tmpDir = tmp.dirSync({ prefix: 'tmpshp', unsafeCleanup: true })\n return tmpDir\n }", "title": "" }, { "docid": "a65a47d440c8fbb56f642bbce133dc58", "score": "0.67657816", "text": "function resetTmpDir() {\n try {\n fs.removeSync(tmpDir);\n // eslint-disable-next-line no-empty\n } catch (err) {}\n fs.ensureDirSync(tmpDir);\n}", "title": "" }, { "docid": "2cf8504d737432030fb6b6f8fe4882c7", "score": "0.6727087", "text": "function tempDir() {\n return temp.mkdirAsync('icejaw')\n}", "title": "" }, { "docid": "d5c23d84764d9f7cbec7fa14f3b76984", "score": "0.6681792", "text": "async function makeTempDir() {\n return await fs.promises.mkdtemp(`${os.tmpdir()}${path.sep}`);\n}", "title": "" }, { "docid": "47a6d06de3148b76d43b1ed799a2b55f", "score": "0.66355294", "text": "async function prepDirectory() {\n console.log(`new working directory ${workDir}`);\n await fs.emptyDir(workDir);\n console.log(`check output directory ${outDir}`);\n await fs.ensureDir(outDir);\n}", "title": "" }, { "docid": "a29dd1ae9f212f40608c0619f837591f", "score": "0.65385604", "text": "static async getTmpDir() {\n if (FileManager.environment === \"node\") {\n try {\n const tmpDir = await promisify(fs.realpath)(os.tmpdir);\n return tmpDir;\n } catch (err) {\n console.error(\"Error in getTmpDir\", err.message);\n throw err;\n }\n } else {\n return \"/tmp\";\n }\n }", "title": "" }, { "docid": "0fe0137a1da510822a39b188508d8486", "score": "0.6485945", "text": "function ensureCreated() {\n if (temp.path) {\n return temp.path;\n }\n\n temp.path = makeTemp.mkdirSync();\n\n temp.pristinePath = path.join(temp.path, 'pristine');\n temp.pristineNodeModulesPath = path.join(temp.pristinePath, 'node_modules');\n temp.pristineBowerComponentsPath = path.join(temp.pristinePath, 'bower_components');\n\n temp.underTestPath = path.join(temp.path, 'under-test');\n\n fs.mkdirsSync(temp.pristinePath);\n fs.mkdirsSync(temp.underTestPath);\n\n debug('created tmp; path=' + temp.path);\n\n // To speed up test runs, use the project's `tmp/precooked_node_modules` directory\n // if it exists.\n symlinkPrecookedNodeModules();\n\n return temp.path;\n}", "title": "" }, { "docid": "9b3be72f2bb13f25f8c02c4e198fb8a2", "score": "0.6382204", "text": "async tempDir () {\n return Tempy.directory()\n }", "title": "" }, { "docid": "3ea8442311a58f94565e079c163420f9", "score": "0.6334413", "text": "_ensureTemporaryUploadedFileDirectory(){\n if ( !this._temporaryUploadedFileDirectoryEnsured ){\n if ( !filesystem.existsSync(this._temporaryUploadedFileDirectory) ){\n // If current directory doesn't exist, create it including its hierarchy.\n filesystem.mkdirSync(this._temporaryUploadedFileDirectory, {\n recursive: true\n });\n }\n this._temporaryUploadedFileDirectoryEnsured = true;\n }\n }", "title": "" }, { "docid": "79dcfb745dde0f17dd2d9c27356ad1d1", "score": "0.6328461", "text": "function setTempFolder(exportInfo)\r\r\n{\r\r\n var tempfolder = Folder.userData; \r\r\n while(true) { \r\r\n exportInfo.tempLocation = tempfolder.path + \"/temp_psLCexp\";\r\r\n var testFolder = new Folder(exportInfo.tempLocation);\r\r\n if (!testFolder.exists) {\r\r\n testFolder.create();\r\r\n break;\r\r\n }\r\r\n break;\r\r\n }\r\r\n}", "title": "" }, { "docid": "a19e0d6c182dad1d95109179d1edf7fb", "score": "0.63135165", "text": "function _tempProject() {\n\n return _makeRootDir()\n .then(_makeSubdirs)\n .then(_makeFiles);\n\n function _makeRootDir() {\n return new Promise((resolve, reject) => {\n temp.mkdir(\"uglier-test\", function (err, dir) {\n if (err) { return reject(err); }\n resolve(dir);\n });\n });\n }\n\n // Resolves to { rootDir, aDir, bDir}\n function _makeSubdirs(rootDir) {\n var aDir = files.mkdir(path.join(rootDir, \"a\"));\n var bDir = files.mkdir(path.join(rootDir, \"b\"));\n return Promise.all([aDir, bDir])\n .then(res => ({ rootDir, aDir: res[0], bDir: res[1] }));\n }\n\n function _makeFiles(dirs) {\n var foo = files.writeFile(path.join(dirs.aDir, \"foo.js\"), SELF_CONTENTS);\n var bad = files.writeFile(path.join(dirs.aDir, \"bad.js\"), BAD_CONTENTS);\n var bar = files.writeFile(path.join(dirs.bDir, \"bar.js\"), SELF_CONTENTS);\n\n return Promise.all([foo, bad, bar])\n .then(out => ({ rootDir: dirs.rootDir, foo: out[0], bad: out[1], bar: out[2] }));\n }\n}", "title": "" }, { "docid": "de08ca0d15e5edf1e3ea6509bbb0b5e5", "score": "0.6279193", "text": "async function usingTempDir(fn) {\n const folder = await fsP.mkdtemp(path.join(os.tmpdir(), \"log4brains-e2e-\"));\n console.log(chalk.bold(`${chalk.green(\"WORKDIR\")} ${folder}`));\n try {\n return await fn(folder);\n } finally {\n rimraf.sync(folder);\n }\n}", "title": "" }, { "docid": "b5c96a74bb6221649f1f83f37e59b995", "score": "0.62349206", "text": "function getTempDir() {\n return when.promise((resolve, reject) => {\n tmp.dir({unsafeCleanup: false}, (err, temp) => {\n if(err) {\n reject(err);\n } else {\n resolve(temp);\n }\n });\n });\n }", "title": "" }, { "docid": "0b2864dc4daf343bd9c279b306eecc09", "score": "0.6210289", "text": "function removeTmpDir (callback) {\n // console.log('not rimraf\\'in the tmp dir.')\n // return callback(null)\n rimraf(config.workDirPath, callback);\n}", "title": "" }, { "docid": "b253d9fa6ce9942e5287e67d56ca48d2", "score": "0.61569816", "text": "createDistDir(funcName) {\n\n let d = new Date(),\n pathDist = S.getProject().getRootPath('_meta', '_tmp', funcName + '@' + d.getTime());\n\n return new BbPromise(function (resolve, reject) {\n try {\n fse.mkdirsSync(path.dirname(pathDist));\n } catch (e) {\n reject(new SError(`Error creating parent folders when writing this file: ${pathDist}\n ${e.message}`));\n }\n\n resolve(pathDist);\n });\n }", "title": "" }, { "docid": "1bb8b919b4cfaec7560e2c9e3c75ebf0", "score": "0.6101044", "text": "function tempdir(prefix = '') {\n return new Promise((resolve, reject) => {\n _temp.default.mkdir(prefix, (err, result) => {\n if (err == null) {\n resolve(result);\n } else {\n reject(err);\n }\n });\n });\n}", "title": "" }, { "docid": "7b86deea5357465ce3aa8b26e16da85b", "score": "0.60829616", "text": "prepareHomes() {\n this.fileSystem.mount('/home');\n this.fileSystem.mkdir('/home/guest');\n this.fileSystem.mkdir('/home/guest/documents');\n this.fileSystem.writeFile('/home/guest/README');\n }", "title": "" }, { "docid": "c8a30d9d799775d0bc104ea886ac4748", "score": "0.6071813", "text": "async createTempDirectoryForAttachments () {\n\t\tthis.attachmentPath = Path.join(this.inboundEmailServer.config.inboundEmailServer.tempAttachmentDirectory, this.baseName);\n\t\ttry {\n\t\t\tawait this.ensureDirectory(this.attachmentPath);\n\t\t}\n\t\tcatch (error) {\n\t\t\tdelete this.attachmentPath;\n\t\t\tthrow `unable to create attachment directory: ${error}`;\n\t\t}\n\t}", "title": "" }, { "docid": "39f5299f930283ad0f6cccd91eb52b25", "score": "0.60204595", "text": "function createRemoteTempFolder() {\n return ssh.execCommand(\n 'rm -rf racket-redone-temp && mkdir racket-redone-temp', {\n cwd: '/home/ubuntu'\n });\n }", "title": "" }, { "docid": "2afcc1a34da276cc4b1bbb3ff3a1557a", "score": "0.5993793", "text": "setUp() {\n super.setUp()\n let file = fs.openSync(path.join(this.temp_dir, 'good'), 'w')\n fs.writeSync(file, 'good')\n fs.closeSync(file)\n }", "title": "" }, { "docid": "77417786bdf152c215f5d0ae59f3a053", "score": "0.5990622", "text": "static setupLogDir(done) {\n\t\tif (!global.projRoot) {\n\t\t\tglobal.projRoot = '.';\n\t\t}\n\t\t// Generate a timestamp to be used on the current run\n\t\tglobal.timestamp = moment();\n\n\t\t// Allows us to know whether or not we should be logging to the files\n\t\tglobal.logFiles = true;\n\n\t\t// Build up the paths to the relevant files\n\t\tconst\n\t\t\tlogRoot = path.join(global.projRoot, 'Logs'),\n\t\t\trepRoot = path.join(global.projRoot, 'Reports'),\n\n\t\t\tlogPath = path.join(logRoot, global.timestamp.format('DD-MM-YYYY_HH꞉mm꞉ss')),\n\t\t\tscreenshots = path.join(logPath, 'Screen_Shots'),\n\n\t\t\tlogBasicFile = path.join(logPath, 'basic.log'),\n\t\t\tlogDebugFile = path.join(logPath, 'debug.log');\n\n\t\ttry {\n\t\t\t// If the log directory doesn't exist then make it\n\t\t\tfs.ensureDirSync(logRoot);\n\t\t\t// If the report directory doesn't exist then make it\n\t\t\tfs.ensureDirSync(repRoot);\n\t\t\t// Create/Empty the JUnit report directory\n\t\t\tfs.emptyDirSync(repRoot);\n\t\t\t// Make the directory for storing all the data for this run\n\t\t\tfs.mkdirSync(logPath);\n\t\t\t// Create a directory to store the failure screenshots for this run\n\t\t\tfs.mkdirSync(screenshots);\n\t\t\t// Create an empty file for the basic logging output\n\t\t\tfs.ensureFileSync(logBasicFile);\n\t\t\t// Create an empty file for the debug logging output\n\t\t\tfs.ensureFileSync(logDebugFile);\n\n\t\t\tdone();\n\t\t} catch (err) {\n\t\t\t// If a log file already exists we don't need a new one\n\t\t\tif (err.code !== 'EEXIST') {\n\t\t\t\tdone(err.code);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d05d7913c5285ced0e00e9f5eb818ed5", "score": "0.59605545", "text": "async makeGlobalDirsAsync () {\n await mkdirpAsync(this.getUsersDir())\n await mkdirpAsync(this.getTmpTransDir())\n await mkdirpAsync(this.getTmpDir())\n await mkdirpAsync(this.getThumbnailDir())\n await mkdirpAsync(this.getImageCacheDir())\n await mkdirpAsync(this.getBoxDir())\n }", "title": "" }, { "docid": "94a5b1cb55ca9a745f99174518e018b1", "score": "0.59486794", "text": "function resetTestDataDir () {\n rimraf.sync(config.TEST_DIR)\n // Create TEST_DIR as well as /Downloads and /Desktop\n fs.mkdirSync(config.TEST_DIR_DOWNLOAD, { recursive: true })\n fs.mkdirSync(config.TEST_DIR_DESKTOP, { recursive: true })\n}", "title": "" }, { "docid": "e4dbe668838281c514e4b3ec5fa7db41", "score": "0.5895802", "text": "getTempDir(\n /*\n * unique key, i.e. aspect or component id\n */\n id) {\n const PREFIX = 'bit';\n\n const cacheDir = _path().default.join(this.modulesPath, '.cache', PREFIX, id); // maybe should also check it's a folder and has write permissions\n\n\n if (!_fsExtra().default.existsSync(cacheDir)) {\n _fsExtra().default.mkdirSync(cacheDir, {\n recursive: true\n });\n }\n\n return cacheDir;\n }", "title": "" }, { "docid": "4870fde1bb1ae7a302e781cb1f7d303f", "score": "0.58430654", "text": "function removeTmpDirectory() {\n fse.removeSync(tmpPath);\n}", "title": "" }, { "docid": "e7e7f659370755e73a0823c7546de15d", "score": "0.5730125", "text": "function createRemoteTempFolder() {\n return ssh.execCommand('rm -rf starter-node-angular-temp && mkdir starter-node-angular-temp', { cwd: '/home/ubuntu' })\n}", "title": "" }, { "docid": "fffab733b2f822e42fd6e325f6d18d19", "score": "0.5711801", "text": "function createAllProfSchedulesDir()\n\t\t{\n\t\t\t(async () => {\n\t\t\t const path = await makeDir('All_Prof_Schedules');\n\t\t\t console.log(path);\n\t\t\t})();\n\t\t}", "title": "" }, { "docid": "07ca7e92b633675111140819061fe369", "score": "0.5711499", "text": "function getTempDir() {\n return os.tmpdir();\n}", "title": "" }, { "docid": "c47472bd7ff279aa2323dd1eb1c18f18", "score": "0.5690213", "text": "static setupBuildDir() {\n\t\tif (!global.projRoot) {\n\t\t\tglobal.projRoot = '.';\n\t\t}\n\n\t\tconst\n\t\t\trootPath = path.join(global.projRoot, 'Build', `${global.hostOS}-${global.platformOS}`),\n\t\t\tappDir = path.join(rootPath, 'App'),\n\t\t\tmoduleDir = path.join(rootPath, 'Module'),\n\t\t\tappLog = path.join(appDir, 'appc_new.log'),\n\t\t\tmoduleLog = path.join(moduleDir, 'appc_new.log');\n\n\t\tfs.emptyDirSync(appDir);\n\t\tfs.emptyDirSync(moduleDir);\n\n\t\tfs.ensureFileSync(appLog);\n\t\tfs.ensureFileSync(moduleLog);\n\t}", "title": "" }, { "docid": "ee5226bc1e59a2c0da54fda53d54ad52", "score": "0.56810707", "text": "clearWorkdir() {\n const workdir = path.join(__dirname, '..', '..', config.WORKDIR);\n\n if (fs.existsSync(workdir)) {\n fs.rmdirSync(workdir, {\n recursive: true,\n });\n }\n\n fs.mkdirSync(workdir);\n }", "title": "" }, { "docid": "c9a596efbf23cc3f92ff0e3a2c0b4315", "score": "0.56673604", "text": "function makeDirectories() {\n\tif (!fs.existsSync(path.resolve('./htmlReport'))) {\n\t\tfs.mkdirSync(path.resolve('./htmlReport'));\n\t}\n\t\n\tif (!fs.existsSync(path.resolve('./jsonReport'))) {\n\t\tfs.mkdirSync(path.resolve('./jsonReport'));\n\t}\n}", "title": "" }, { "docid": "7180575ad37536186b064b61bd4ad7bf", "score": "0.5638512", "text": "function mkTempName(ext) {\n var fn = tmp.tmpNameSync({ keep: false, prefix: 'tmp-runtests-', postfix: (typeof ext === 'undefined' ? '' : '' + ext) });\n //console.log('mkTempName -> ' + fn);\n return fn;\n}", "title": "" }, { "docid": "1e7be6db171f5ee4aaf1d37aad3fe01e", "score": "0.5591443", "text": "function createStructure(done) {\n const folders = [\n 'dist',\n 'src',\n ];\n const files = ([\n 'src/index.html',\n ])\n .concat(Object.keys(entries.css))\n .concat(Object.values(entries.js));\n\n folders.forEach(dir => {\n if(!fs.existsSync(dir)) {\n fs.mkdirSync(dir);\n console.log('folder created:', dir);\n }\n });\n\n files.forEach(file => {\n if(!fs.existsSync(file)) {\n const dir = path.dirname(file);\n if(!fs.existsSync(dir)) {\n fs.mkdirSync(dir);\n }\n fs.writeFileSync(file, '');\n console.log('file created:', file);\n }\n });\n\n return done();\n}", "title": "" }, { "docid": "42be1e5026c1c05fd6a17d7e53098363", "score": "0.55564404", "text": "function makeDirs(cb) {\n console.log('Creating directory structure.');\n fs.mkdirSync(__dirname + '/public/data', 0744);\n fs.mkdirSync(__dirname + '/public/data/contractors', 0744);\n fs.mkdirSync(__dirname + '/public/data/agencies', 0744);\n fs.mkdirSync(__dirname + '/public/data/vendors', 0744);\n cb(null);\n}", "title": "" }, { "docid": "2df516b4157dace0b00bbce3c8e613f6", "score": "0.55503017", "text": "async function makeJunk(){\n\t\t\tif(\"win32\" === process.platform){\n\t\t\t\t// TODO: Write tests for Windows\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\texpect(fs.lstatSync(\"mkjunk\").mode & 0o111).to.be.above(0);\n\t\t\t\tawait exec(path.join(fixtures, \"mkjunk\"));\n\t\t\t\t\n\t\t\t\t// Assert that files were created successfully\n\t\t\t\tfor(const junk of [junk1, junk2])\n\t\t\t\t\texpect([...(await ls(junk, {recurse: -1})).keys()].sort()).to.eql([\n\t\t\t\t\t\t\"junk.1\", \"junk.2\", \"junk.3\",\n\t\t\t\t\t\t\"foo\", \"foo/foo.1\", \"foo/foo.2\", \"foo/foo.3\",\n\t\t\t\t\t\t\"bar\", \"bar/bar.1\", \"bar/bar.2\", \"bar/bar.3\",\n\t\t\t\t\t\t\"bar/baz\", \"bar/baz/baz.1\", \"bar/baz/baz.2\", \"bar/baz/baz.3\",\n\t\t\t\t\t].map(x => path.join(junk, x)).sort());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "07bb4e2f157a79770081fa4d77be9f57", "score": "0.5523807", "text": "_checkCacheDir() {\n if (!fs.existsSync(this._cacheDir)) {\n fs.mkdirSync(this._cacheDir)\n }\n }", "title": "" }, { "docid": "dae235105b681b590e23bc24ffbf193e", "score": "0.55195624", "text": "function createNewDir(path, data, onGettingRecordedMessages, callback) {\n mkdirp(path, function(err) {\n if (err) {\n return setTimeout(createNewDir, 1000);\n }\n onGettingRecordedMessages(data, callback);\n });\n }", "title": "" }, { "docid": "53bf44bc979a7fc1a289cf960e0011fd", "score": "0.54909337", "text": "function automkdir( dir ) {\n try {\n var stat = fs.statSync( dir );\n } catch ( e ) {\n console.log( \"mkdir \" + dir );\n fs.mkdirSync( dir );\n }\n}", "title": "" }, { "docid": "32fa9c930c17608c3ae60d7dee1703e7", "score": "0.5486903", "text": "clean (result) {\n return new Promise((resolve, reject) => rimraf(path.join(this.rootPath, Viz.PATHS.TMP), fs, (err) => err ? reject(err) : resolve(result)))\n }", "title": "" }, { "docid": "c9c7450d540c2f83e23a389e55a4d9c3", "score": "0.5486806", "text": "function cleanUpTempFiles( itcb ) {\n if ( !mediaObj._tempFiles ) { mediaObj._tempFiles = []; }\n mediaObj._tempFiles.push( mediaObj._diskFile );\n report( 'i', 'Cleaning up temp file: ' + JSON.stringify( mediaObj._tempFiles ) );\n Y.doccirrus.media.cleanTempFiles( mediaObj );\n // not necessary to wait for deletion\n itcb( null );\n }", "title": "" }, { "docid": "488ff2d6844550eb4d884a503848aadc", "score": "0.5481792", "text": "function makeFreshCacheDir (index, handler) {\n const currentStorageDirPath = getCurrentStorageDir(index)\n mkdir(currentStorageDirPath, { recursive: true }, err => {\n if (err) throw err\n\n if (index.files && Object.keys(index.files).length > 0) {\n const filePaths = Object.keys(index.files).map(key => index.files[key].path)\n createCacheFiles(filePaths, index, (e, i, hashes) => {\n if (e) throw e\n\n index = i\n for (const hash of hashes) { // we expect this to be all the keys in index.files\n const indexEntry = index.files[hash]\n indexEntry.added = 0\n indexEntry.removed = 0\n indexEntry.updated = Date.now()\n }\n handler(null, index)\n })\n } else handler(null, index)\n })\n}", "title": "" }, { "docid": "7d877ca6fb058177cbeade0e0876a24c", "score": "0.5475609", "text": "function createDirectories(req, res, next) {\n\t\tif (!isDirSync('./TempFiles')) {\n\t\t\tfs.mkdirSync('./TempFiles');\n\t\t\tfs.mkdirSync('./TempFiles/Images');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Originals');\n\t\t} else if (!isDirSync('./TempFiles/Images')) {\n\t\t\tfs.mkdirSync('./TempFiles/Images');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Originals');\n\t\t} else if (!isDirSync('./TempFiles/Images/Thumbnails')) {\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Originals');\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Cropped');\n\t\t} else if (!isDirSync('./TempFiles/Images/Thumbnails/Originals')) {\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Originals');\n\t\t} else if (!isDirSync('./TempFiles/Images/Thumbnails/Cropped')) {\n\t\t\tfs.mkdirSync('./TempFiles/Images/Thumbnails/Cropped');\n\t\t}\n\t\tnext();\n\t}", "title": "" }, { "docid": "1a69014509d863ee7c5fde82590d0ca6", "score": "0.54742354", "text": "function createNewDir(path, data, onGettingRecordedMessages, callback) {\n mkdirp(path, function(err) {\n if (err) {\n return setTimeout(createNewDir, 1000);\n }\n onGettingRecordedMessages(data, callback);\n });\n}", "title": "" }, { "docid": "fb5f39820ba2a5ffab49fba13a2c0d12", "score": "0.5456852", "text": "function getTempFolderPath(withName) {\n\tvar fileManager = [NSFileManager defaultManager],\n\t\tcachesURL = [[fileManager URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask] lastObject],\n\t\twithName = (typeof withName !== 'undefined') ? withName : (Date.now() / 1000),\n\t\tfolderName = [NSString stringWithFormat:\"%@\", withName],\n\t\tpluginDomainSlug = [[[pluginDomain stringByReplacingOccurrencesOfString:\"/\" withString:\"_\"] stringByReplacingOccurrencesOfString:\".\" withString:\"_\"] lowercaseString];\n\treturn [[[cachesURL URLByAppendingPathComponent:pluginDomainSlug] URLByAppendingPathComponent:folderName] path];\n}", "title": "" }, { "docid": "b47469b8b5d3c2294934030adacee13c", "score": "0.54524255", "text": "async function makeUnsafe(){\n\t\t\tif(\"win32\" === process.platform){\n\t\t\t\t// TODO: Handle Windows\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tawait exec(path.join(fixtures, \"mkunsafe\"));\n\t\t\t\texpect(fs.lstatSync(\"junk/$foo\").isFile()).to.be.true;\n\t\t\t\texpect(fs.lstatSync(\"junk/bar\") .isFile()).to.be.true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ce51f2d0a075a8a992211271f92e866d", "score": "0.54496425", "text": "function createCleanDir(path) {\n // Delete dir if already exists\n if (_fs.default.existsSync(path)) {\n _rimraf.default.sync(path);\n } // Create a new build dir\n\n\n _shelljs.default.mkdir('-p', path);\n}", "title": "" }, { "docid": "6741ad5c9638c3aabf01a579b99049a2", "score": "0.54440266", "text": "function other(tf){\n\treturn tf?path.resolve(os.tmpdir(), `${rvh(7)}.tmp`):os.tmpdir();\n}", "title": "" }, { "docid": "3298c2880d7dd41c165b4863df93a015", "score": "0.544358", "text": "function setupOutDir(outDir, clean = false) {\n return __awaiter(this, void 0, void 0, function* () {\n if (clean) {\n yield util_1.rimraf(outDir);\n }\n try {\n yield util_1.mkdirp(outDir);\n }\n catch (e) {\n if (e.errno === -17) {\n // directory exists, do nothing\n }\n else {\n throw e;\n }\n }\n });\n}", "title": "" }, { "docid": "7e1114f755f1c61dce7d557da19e49e0", "score": "0.5434153", "text": "function createAllClassSchedulesDir()\n\t\t{\n\t\t\t(async () => {\n\t\t\t const path = await makeDir('All_Class_Schedules');\n\t\t\t console.log(path);\n\t\t\t})();\n\t\t}", "title": "" }, { "docid": "0ed1ffecf76ee42f7a74918ed9e64642", "score": "0.5408296", "text": "async function makeRmHack(){\n\t\t\tfs.writeFileSync(rmExe, \"#!/bin/sh\\nfalse\\n\");\n\t\t\tfs.chmodSync(rmExe, 0o755);\n\t\t\tconst pathKey = Object.keys(paths).pop();\n\t\t\tprocess.env[pathKey] = fixtures + path.delimiter + process.env[pathKey];\n\t\t}", "title": "" }, { "docid": "acb16771787dca89951ab69dc05d92f7", "score": "0.5400292", "text": "function createTabsEntriesDir() {\n\t\t\t(async () => {\n\t\t\t const path = await makeDir('Tabs_Entries');\n\t\t\t console.log(path);\n\t\t\t})();\n\t\t}", "title": "" }, { "docid": "ead460febe023ddc896babf7703748a1", "score": "0.53865486", "text": "function mkDirSync(path) {\n try {\n fs.mkdirSync(path);\n } catch(e) {\n if ( e.code != 'EEXIST' ) throw e;\n }\n }", "title": "" }, { "docid": "6a7aaba14fb2b1dd5590047116da6073", "score": "0.53668284", "text": "removeTempDir() {\n\t\tshell.rm('-rf', this.tempDirectory);\n\t}", "title": "" }, { "docid": "a602f3b84496d0f56ef86051cb5bb103", "score": "0.5346188", "text": "bootstrapDirectory() {\n // make sure the workspace directory exists\n fse.mkdirpSync(this.workspaceDirectory);\n\n // make sure the chaindata folder exists\n if (this.chaindataDirectory) {\n fse.mkdirpSync(this.chaindataDirectory);\n }\n }", "title": "" }, { "docid": "ec6ce233c62780643603aefceffd05d5", "score": "0.5336103", "text": "function makeDir(dir) {\n return new Promise(function (resolve, reject) {\n mkdirp(dir, function (err, made) {\n if (err) {\n reject(err);\n }\n else {\n resolve();\n }\n });\n });\n}", "title": "" }, { "docid": "b433d192a40e3dd82018d0636813a802", "score": "0.5333244", "text": "function createSubDirectories(finished) {\n logger.log('Creating sub directories at \"' + env.htmlRootPath + '\"...');\n async.series(\n [\n function(finished) {\n exec('rm -rf \"' + env.htmlRootPath + '\"', finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath, undefined, finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath + dirs.style, undefined, finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath + dirs.style + '/' + dirs.styleModules, undefined, finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath + dirs.media, undefined, finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath + dirs.javascript, undefined, finished);\n },\n function(finished) {\n fs.mkdir(env.htmlRootPath + dirs.javascript + '/' + dirs.jsModules, undefined, finished);\n }\n ],\n function(error) {\n if (error) {\n console.error('Unable to create mandatory directories : ' + error);\n process.exit(1);\n } else {\n finished();\n }\n }\n );\n }", "title": "" }, { "docid": "7a4c435b1dac32d403394372fe82bfe2", "score": "0.5328403", "text": "_createDir() {\n if (this._dirCreated) {\n return;\n }\n\n this._dirCreated = true;\n try {\n __jymfony.mkdir(dirname(this._file));\n } catch (e) {\n if ('EEXIST' !== e.code) {\n throw e;\n }\n }\n }", "title": "" }, { "docid": "91d2db774c78a678282a66f766481400", "score": "0.53241676", "text": "function makeDirectory(dir, callBack) {\n if (!fs.existsSync(dir)) {\n mkdirp(dir, function (err) {\n if (err)\n return callBack(err);\n else\n return callBack();\n });\n } else {\n return callBack();\n }\n}", "title": "" }, { "docid": "6ec4c1d87c9ed383d8b25dabd04e5177", "score": "0.5324107", "text": "function clean(callback) {\r\n\tdel(dir + '/tmp/');\r\n\tcallback();\r\n}", "title": "" }, { "docid": "e495d3a938f7cb8fcead3ede1be73e39", "score": "0.5303087", "text": "function createMedia() {\n \tdoLog('createMedia');\n window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, requestFileSystemSuccess, requestFileSystemFailure);\n\t }", "title": "" }, { "docid": "a1fc95bdd4ed6c30a81fec685331e4b9", "score": "0.53001875", "text": "function prepare(force, callback) {\n if (!force) {\n logger.info('Cleanup of cache and output folder is not performed.');\n callback(null);\n return;\n }\n\n // Find cache directory\n var defaultCacheDir = path.join(require('app-root-dir').get(), '.cache/lasso');\n var cacheDir = lasso.getDefaultLasso().getConfig().getCacheDir() || defaultCacheDir;\n\n // Find output directory where assets are located\n var outputDir = lasso.getDefaultLasso().getConfig().outputDir;\n\n // Delete cache and output folders\n rimraf(cacheDir, function(err) {\n if (err) {\n callback(err);\n return;\n }\n\n logger.info('Folder ' + cacheDir + ' removed');\n rimraf(outputDir, function(err) {\n if (err) {\n callback(err);\n return;\n }\n\n logger.info('Folder ' + outputDir + ' removed');\n callback(null);\n });\n });\n}", "title": "" }, { "docid": "c8f5c8f00c57650a51197200f67da91a", "score": "0.5298867", "text": "ensureDir (dir) {\n return this.runtime.ensureDir(this.destinationPath(dir))\n }", "title": "" }, { "docid": "f21179f002d08da6421431b83834ec46", "score": "0.5286887", "text": "get tmpFile(){\n return tmp.fileSync({prefix: 'firebase-upload-', postfix: '.tar.gz'});\n }", "title": "" }, { "docid": "7cce0c4aa932439b66e75cf69c996243", "score": "0.52859026", "text": "function temp_file_name(path) {\n var filename;\n do {\n filename = 'conf'+crypto.randomBytes(4).readUInt32LE(0)+'.tmp';\n } while (fs.existsSync(path + \"/\" + filename));\n return filename;\n}", "title": "" }, { "docid": "fe0bf9e2c94d60e6cac768e3488fed3d", "score": "0.5284463", "text": "function _postCreation() {\n\n var workpath = _cathome.working.path,\n sourcefolder,\n sourcePath;\n\n function _mkEnvDir(prop) {\n var commonpath, specspath, configpath,\n testdatapath;\n\n if (prop) {\n sourcePath = _utils.resolveObject(data, prop);\n sourcefolder = _path.normalize([workpath, sourcePath].join(\"/\"));\n if (sourcefolder) {\n if (!_fs.existsSync(sourcefolder)) {\n _utils.mkdirSync(sourcefolder);\n } else {\n _log.debug(_props.get(\"cat.project.resource.exists\").format(\"[cat config]\", sourcefolder));\n }\n\n // add common folder for the custom user classes\n if (prop === \"source\") {\n \n // copy common\n commonpath = _path.join(sourcefolder, \"common\");\n if (!_fs.existsSync(commonpath)) {\n _utils.mkdirSync(commonpath, 0777);\n\n // copy source's resources to the project\n // TODO copy recursive sync...\n _utils.copySync(_path.join(_cathome.path, \"src/module/project/src/common/README.txt\"), _path.join(commonpath, \"README.txt\"));\n }\n \n // create specs\n specspath = _path.join(sourcefolder, \"specs\");\n if (!_fs.existsSync(specspath)) {\n _utils.mkdirSync(specspath, 0777);\n }\n \n // copy config\n configpath = _path.join(sourcefolder, \"config\");\n if (!_fs.existsSync(configpath)) {\n _utils.mkdirSync(configpath, 0777);\n }\n \n // copy source's resources to the project\n // TODO copy recursive sync...\n testdatapath = _path.join(configpath, \"testdata.json\");\n if (!_fs.existsSync(testdatapath)) {\n _utils.copySync(_path.join(_cathome.path, \"src/module/project/src/config/testdata.json\"), testdatapath);\n }\n\n _sysutils.chmodSyncOffset(commonpath, 0777, 2);\n _sysutils.chmodSyncOffset(configpath, 0777, 2);\n\n }\n\n me.info[prop] = sourcefolder;\n }\n\n }\n }\n\n\n function _setInfoData(props) {\n\n props.forEach(function(prop) {\n if (prop) {\n me.info[prop] = data[prop];\n }\n });\n }\n\n // create project's src folder\n _mkEnvDir(\"source\");\n\n // create target project's folder\n _mkEnvDir(\"target\");\n\n // set the info properties incoming from the cat's project\n _setInfoData([\"server\", \"apppath\", \"appfilter\", \"appcontext\", \"cattarget\", \"analytics\", \"runner\", \"dependencies\", \"jshint\"]);\n\n }", "title": "" }, { "docid": "d5556639b1d6f72753bf97f04610fb55", "score": "0.52550304", "text": "setUp() {\n super.setUp()\n for (let file_name of ['foo', 'bar']) {\n fs.writeFileSync(path.join(this.temp_dir, file_name), file_name)\n }\n this.create_readonly_file('readonly')\n }", "title": "" }, { "docid": "2c923a86eb32b16a9adaaaab0dae8cb5", "score": "0.52436453", "text": "function createOutputDir(context, cb) {\n\n // Wrap the callback so that progress is automatically sent\n cb = context.progress.wrappCallback(cb);\n\n var logger = context.logger;\n logger.info('Creating output directory', context.outputPath);\n mkdirp(context.outputPath, function(err) {\n if (err) {\n return cb(err);\n }\n\n context.path = context.outputPath;\n return cb(err, context);\n });\n}", "title": "" }, { "docid": "2c611be0f289af22fbf4480385701e9f", "score": "0.52050114", "text": "createEphemeralPkgDir () {\n this.serverless.cli.vlog(`Creating directory ${this.ephemeral.paths.pkg}`);\n return Util.fs.promises.mkdir(this.ephemeral.paths.pkg);\n }", "title": "" }, { "docid": "0f4295455ddb070a97e7e4ca642c76bf", "score": "0.52023846", "text": "function safeCreateFileDir(path) {\n var dir = _path.dirname(path);\n if (!_fs.existsSync(dir)) {\n _wrench.mkdirSyncRecursive(dir);\n }\n}", "title": "" }, { "docid": "d875dba6e463feafbfe0111ec0389080", "score": "0.520163", "text": "function makepath(dirpath) {\n newDir = uplaodpath+dirpath\n fs.mkdir(newDir, { recursive: true }, (err) => {\n console.log('err',err);\n });\n return newDir;\n}", "title": "" }, { "docid": "b48b86bbe3e69b2e597360b525f9b45a", "score": "0.51902497", "text": "function safeCreateFileDir(path) {\n var dir = _path.dirname(path);\n if (!_fs.existsSync(dir)) {\n // // // logger.log(\"does not exist\");\n _wrench.mkdirSyncRecursive(dir);\n }\n}", "title": "" }, { "docid": "556c5a53c06f28c400bf666ebc3aef61", "score": "0.5183888", "text": "function createLogDir() {\n const logPath = process.cwd() + '/logs';\n if (!fs.existsSync(logPath)) fs.mkdirSync(logPath);\n return '/logs';\n}", "title": "" }, { "docid": "71fc91cd2d5d592f72941bf4f8657f9c", "score": "0.51769656", "text": "function createDataFile() {\n fs.stat('./data/', (err, stats) => {\n // ENOENT = No such file or directory\n if (err && (err.code === 'ENOENT')) {\n fs.mkdir('./data');\n console.log('A new data folder has been created');\n }\n })\n}", "title": "" }, { "docid": "8a570bed4a3d091c119abc1d834db689", "score": "0.5172263", "text": "async function clean() {\n console.log('clearing temp files + previous builds');\n await del(['.tmp', 'build/*', '!build/.git'], { dot: true });\n\n // delete old test data\n // must be before setup() makes its directories\n console.log(`clearing local files in ${filePaths.createStorageUrl()}`);\n await del([filePaths.createStorageUrl()], { force: true, dot: true });\n\n if (s3.useRemote) {\n console.log('clearing s3 buckets...'); //eslint-disable-line no-console\n await Promise.all(s3.buckets.map((bucketName) => {\n const bucket = s3.getBucket(bucketName);\n return s3.emptyBucketTests(bucket);\n }));\n }\n\n await makeDir('build/public');\n}", "title": "" }, { "docid": "5997de0cd276993d0063017a7c729a16", "score": "0.51717156", "text": "function setupDirectories() {\n function onerror(error) {\n if (!error || error.code === \"EEXIST\") {\n return true;\n } else {\n log.error(util.inspect(error));\n process.exit(1);\n }\n }\n fs.mkdir(config.filesDir, config.dirMode, onerror);\n fs.mkdir(config.incomingDir, config.dirMode, onerror);\n}", "title": "" }, { "docid": "9959f8ffb045ac37afab50c6e1b28a98", "score": "0.51201755", "text": "function clean(cb) {\n del([tmpDir], function(){\n del([distDir], cb);\n });\n}", "title": "" }, { "docid": "0a51512989f8234317f0b1fd19f647fd", "score": "0.5111891", "text": "function createfs ({ alreadyVerified, executable, packageVersion, customDir }) {\n if (!customDir) {\n customDir = '/cache/Cypress/1.2.3/Cypress.app'\n }\n\n // binary state is stored one folder higher than the runner itself\n // see https://github.com/cypress-io/cypress/issues/6089\n const binaryStateFolder = path.join(customDir, '..')\n\n const binaryState = {\n verified: alreadyVerified,\n }\n const binaryStateText = JSON.stringify(binaryState)\n\n let mockFiles = {\n [binaryStateFolder]: {\n 'binary_state.json': binaryStateText,\n },\n [customDir]: {\n Contents: {\n MacOS: executable\n ? {\n Cypress: executable,\n }\n : {},\n Resources: {\n app: {\n 'package.json': `{\"version\": \"${packageVersion}\"}`,\n },\n },\n },\n },\n }\n\n if (customDir) {\n mockFiles['/custom/Contents/MacOS/Cypress'] = mockfs.symlink({\n path: '/real/custom/Contents/MacOS/Cypress',\n mode: 0o777,\n })\n }\n\n return mockfs(mockFiles)\n}", "title": "" }, { "docid": "ce6c9408df21688a840d65ad59dc50b3", "score": "0.5108173", "text": "findUniqueDir(tmpDir) {\n const guid = uuid.v4().replace(/-/g, '');\n const dirName = `${tmpDir}/${guid}`;\n return new Promise((resolve, reject) => {\n fs.stat(dirName, (err, stats) => {\n if (err) {\n resolve({dirName});\n } else {\n findUniqueDir().then((arg) => {\n resolve(arg)\n })\n }\n });\n });\n }", "title": "" }, { "docid": "42f0befcd0a583500ebe5a241c2bf6c2", "score": "0.510646", "text": "function get_cello_work_dir(home_dir, run_id) {\n return home_dir + \"/autograder/\" + run_id;\n}", "title": "" }, { "docid": "a92cd5efa05ce1efd2755e13184da881", "score": "0.5105376", "text": "async mkdir() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5056159199bfff228fa30b7582e99d64", "score": "0.5098283", "text": "function mkdirp (fullPath) {\n\tshell.mkdir('-p', fullPath);\n}", "title": "" }, { "docid": "a6a8a7da50a2d905af1059db36e9373f", "score": "0.5097191", "text": "function buildTeam() {\n // fs.writeFileSync(\"team.html\", render(employees), \"utf8\");\n if (fs.existsSync(OUTPUT_DIR)) {\n fs.writeFileSync(outputPath, render(employees), \"utf8\");\n } else {\n fs.mkdir(OUTPUT_DIR, (err) => {\n if (err) {\n console.log(\"Error making your folder!\");\n } else {\n fs.writeFileSync(outputPath, render(employees), \"utf8\");\n }\n });\n }\n}", "title": "" }, { "docid": "ab60722137950d7bd64332ebbb17e3d1", "score": "0.50796866", "text": "function cleanTemp() {\n\treturn(\n\t\tgulp\n\t\t\t.src(paths.src.temp + '/*')\n\t\t\t.pipe(clean())\n\t);\n}", "title": "" }, { "docid": "6e14e705e0c7af35c60eb09044059889", "score": "0.50745827", "text": "function ensure(dir) {\n if(exists(dir)) return;\n fs.mkdirSync(dir);\n}", "title": "" }, { "docid": "f7a205210a2ca410f13ca28475ad5033", "score": "0.50709975", "text": "function makeRootDir() {\n return new Promise(function(accept, reject) {\n function createDir(rootDirEntry, dirname) {\n rootDirEntry.getDirectory(dirname, {create: true},\n function(dirEntry) {\n accept();\n },\n function() {\n console.log('rootDirEntry.getDirectory failed');\n reject();\n }\n );\n }\n\n window.requestFileSystem = window.requestFileSystem\n || window.webkitRequestFileSystem;\n window.requestFileSystem(\n PERSISTENT,\n 0,\n function(fs) { createDir(fs.root, NaClProcessManager.fsroot); },\n function() {\n console.log('requestFileSystem failed!');\n reject();\n }\n );\n });\n}", "title": "" }, { "docid": "7c24dd767ce271ef46ac028267deb46d", "score": "0.50706184", "text": "function makedirectory(foldername){\n\t//make directory node.js\n\t//http://stackoverflow.com/questions/13696148/ddg#13696975\n\tmkdirp(foldername.toString(), function(err) { \n\t // path exists unless there was an error\n\t if(err){ return print(err);}\n\t});\n\n}", "title": "" }, { "docid": "0fe6ff5fb6c0abe3dfbbced53db94fce", "score": "0.5068028", "text": "function mountBuild(cb){\n if(!fs.existsSync(wsbPath)){\n fs.mkdirSync(wsbPath);\n fs.mkdirSync(dataPath);\n fs.writeFileSync(xmlPath, \"<Root/>\");\n \n cb();\n } else{\n if(!fs.existsSync(dataPath)){\n fs.mkdirSync(dataPath);\n }\n \n if(!fs.existsSync(xmlPath)){\n fs.writeFileSync(xmlPath, \"<Root/>\");\n }\n\n cb();\n }\n}", "title": "" }, { "docid": "7502931edd16c2522be9ca26ee8c4e14", "score": "0.5067898", "text": "outputToFolder(dir) {\n log('Ensuring output folder is empty...');\n fs.removeSync(dir);\n console.log('');\n\n log('Copying web files to directory...');\n fs.copySync('./web', dir);\n\n log('Adding files... please wait...');\n let i = 1;\n\n for (let file of this.files) {\n mkdirp.sync(dir + file.baseUrl);\n fs.writeFileSync(dir + file.path, file.html);\n log(`[${i}] Created ${file.path}`);\n i++;\n }\n\n console.log('');\n for (let category of Object.keys(this.categories)) {\n let html = categoryPage(this.categories[category], category);\n let path = '/a/' + category.replace(/[^a-z0-9]/gi, '_').toLowerCase() + '/index.html';\n\n log('Generating category page ' + path);\n fs.writeFileSync(dir + path, html);\n }\n\n console.log('');\n fs.writeFileSync(dir + '/index.html', categoryList(Object.keys(this.categories)));\n log('Generating main category page...');\n\n console.log('');\n\n /* Copy over non-md files */\n i = 1;\n for (let path of this.nonExtFilePaths) {\n mkdirp.sync(dir + path.substring(0, path.lastIndexOf('/')));\n log(`[${i}] Copying file ${path}`);\n fs.copySync(this.inputDir + path, dir + path);\n i++;\n }\n }", "title": "" }, { "docid": "8455b484d921c1538dd756a26866b636", "score": "0.5066168", "text": "function mkExist(toCreate, ifFolder=true) {\n try{\n if(!fs.existsSync(toCreate)) {\n if(ifFolder) {\n fs.mkdirSync(toCreate);\n } else {\n fs.writeFileSync(toCreate, \"utf8\");\n }\n }\n } catch (err) {\n console.log(`Error when creating a ${ifFolder?\"folder\":\"file\"} ${toCreate}.`);\n console.log(err);\n exit(-1);\n }\n}", "title": "" }, { "docid": "3b8ec8f308c75936f9fd88c769f59212", "score": "0.50630164", "text": "async function createFixtures() {\n await emptyDir('./content/companies/*');\n for (let i = 0; i < companyCount; i++) {\n await createCompany()\n }\n console.log(`Created ${companyCount} companies`);\n\n await emptyDir('./content/people/*');\n for (let i = 0; i < peopleCount; i++) {\n await createPerson()\n }\n console.log(`Created ${peopleCount} people`);\n}", "title": "" }, { "docid": "54462783ffa912b7433266e6c143bd02", "score": "0.5062534", "text": "function createDestinationFolder() {\n examplesSource = path.join(TODOMVC_DIR, EXAMPLES_DIR);\n examplesDestination = path.join(TODOMVC_DIR, EXAMPLES_OUTPUT_DIR);\n\n if (fs.existsSync(examplesDestination) && fs.lstatSync(examplesDestination).isDirectory()) {\n fs.removeSync(examplesDestination);\n }\n\n fs.copySync(examplesSource, examplesDestination);\n}", "title": "" }, { "docid": "d1ab85848f2fb6f094635ce2aa47557f", "score": "0.5061602", "text": "createPath (targetPath) {\n return new Promise((resolve, reject) => mkdirp(targetPath, (err) => err ? reject(err) : resolve(targetPath)))\n }", "title": "" }, { "docid": "43ba106dda9613f8f30531c99686fcf1", "score": "0.50567305", "text": "function mkdir_p(p) {\n if (!fs.existsSync(p)) {\n mkdir_p(path.dirname(p));\n fs.mkdirSync(p, \"0755\");\n }\n }", "title": "" }, { "docid": "85c966b099edf89772bc3f8e9ab0f4b9", "score": "0.5054636", "text": "async makeWisnucDirsAsync () {\n await mkdirpAsync(this.getWisnucDownloadsDir())\n await mkdirpAsync(this.getWisnucPicturesDir())\n }", "title": "" } ]
e388e93322eec7391fbc6de13ab71dc8
modifies the product's amount given its index in the car list
[ { "docid": "1c759b16909fa45904714f3f5b30b721", "score": "0.845066", "text": "function modifyProductAmount(index, increase, update) {\n if (increase) {\n car[index].quantity += 1;\n } else {\n car[index].quantity -= 1;\n }\n if (car[index].quantity === 0) {\n car.splice(index, 1);\n }\n if (update) {\n updateCar();\n }\n}", "title": "" } ]
[ { "docid": "38a554ede28878b78ab17baae9070260", "score": "0.7184275", "text": "_updateProductCost(index, productArr, count) {\n\n // to get product product price\n let price = productArr[index][\"price\"];\n\n // to calculate new product total price and update\n productArr[index][\"totalPrice\"] = (price * count);\n\n // return new product array\n return productArr;\n }", "title": "" }, { "docid": "8a30cac8ae09398564b9d942b7d590b9", "score": "0.6936398", "text": "function updatePriceByProduct(productPrice, index) {\n var currentPrice = getPriceByProduct(index);\n if (index.getAttribute(\"name\") === \"price\") {\n currentPrice = productPrice;\n index.innerHTML = currentPrice;\n }\n}", "title": "" }, { "docid": "0ed172cc86c176fa9950965e726b9827", "score": "0.64086205", "text": "function updateCar() {\n let total = 0;\n\n //cleans all content\n cleanAll();\n\n //makes the car layout visible again\n document.getElementById(\"car_layout\").style.display = \"block\";\n\n let car_table = document.getElementById(\"car_items\");\n car_table.innerHTML = ``;\n\n //updates the shopping car table's content\n for (let i = 0; i < car.length; i++) {\n let p = car[i];\n let amount = p.unitPrice * p.quantity;\n total += amount;\n\n let tr = document.createElement(\"tr\");\n tr.innerHTML =\n `\n <th>` +\n (i + 1) +\n `</th>\n <td>` +\n p.quantity +\n `</td>\n <td>` +\n p.description +\n `</td>\n <td>` +\n p.unitPrice +\n `</td>\n <td>` +\n amount +\n `</td>\n <td>\n <button type=\"button\" class=\"btn btn-secondary btn-lg\" onclick='modifyProductAmount(` +\n i +\n `,true,true)' >+</button>\n <button type=\"button\" class=\"btn btn-secondary btn-lg\" onclick='modifyProductAmount(` +\n i +\n `,false,true)' >-</button>\n </td>`;\n car_table.appendChild(tr);\n }\n\n //updates the total amount\n let total_span = document.getElementById(\"total\");\n total_span.innerHTML = `Total: $` + total.toString();\n}", "title": "" }, { "docid": "4c81526f95fda12a6d4e0092b7e845d7", "score": "0.6298506", "text": "_updateProductCount(value, index) {\n\n // the value that entered by user\n value = Number(value);\n\n let newArray = [...this.state.cartData];\n\n // to update product count according to the value\n newArray[index][\"count\"] = value;\n\n // to update new array with new product cost\n newArray = this._updateProductCost(index, newArray, value);\n\n let totalPrice = 0;\n for (let i in newArray) {\n let price = Number(newArray[i][\"totalPrice\"]);\n totalPrice += price;\n }\n\n this.setState({\n cartData: newArray,\n cartTotal: totalPrice\n });\n\n }", "title": "" }, { "docid": "06c7edf7eb05feb4731a7f22c1bd5917", "score": "0.6259334", "text": "function updateByCart(){\n if (vm.cart.length){\n vm.cart.forEach(function(val){\n var index = vm.products.findIndex(function(product){\n return product.id === val.id\n })\n if (index > -1){\n vm.products[index].stock -= val.amount\n }\n });\n }\n }", "title": "" }, { "docid": "2c61931fc9ee878fe7573f52b2b3163e", "score": "0.6241092", "text": "function modifyQuantity(val, idProductClicked) {\n let find = idsInCart.find(product => product.id == idProductClicked); \n find.quantity = parseInt(val.value);\n $('tbody').find(`tr[data-id=${idProductClicked}]`).children('td.product-total-price').text(find.quantity*find.price+',00 €'); // Modify total price\n totalAmount();\n $nbOfElements.text(nbItemInCart);\n maxReached();\n}", "title": "" }, { "docid": "f48ae198b41096d88d74d1cb233b83b7", "score": "0.62023103", "text": "function discountRevised(rate,qty, disc, tax, arrayIndex){\n\tconsole.log(\"discount value: \",$(disc).val());\n\tconsole.log(\"Array Index value: \",arrayIndex);\n\t\n\tvar discVal = $(disc).val();\n\tvar rowPosInd = parseInt(arrayIndex);\n\t\n\tvar amount1 = parseFloat(CalculateItemAmount(rate, qty, parseFloat(discVal)));\n\tvar taxAmount1= parseFloat(CalculateItemTaxAmount(rate, qty, parseFloat(discVal), tax));\n\t\n\ttotalAmtWithDiscount = amount1;\n\t \n\t$('#amt'+rowPosInd).html(amount1);\n\t\n\torderItemArray1[rowPosInd-1].discount = discVal;\n\t\n\tconsole.log(\"Old discount value : \",orderItemArray1[rowPosInd-1].discount)\n\t\n\t\n\tChangeFinalValues();\n\t\n}", "title": "" }, { "docid": "44f9039389ad653d0372700b3f22f841", "score": "0.61728626", "text": "function addPriceIngredient(index) {\n const quantityValue = document.querySelector(`.ingredient_quantity_${index}`).value;\n const quantityItem = parseInt(document.querySelector(`.ingredient_quantity_${index}`).value);\n const priceValue = parseFloat(document.querySelector(`.ingredient_price_${index}`).innerHTML);\n const resultPrice = quantityValue * priceValue;\n const result = resultPrice.toFixed(2);\n const finalPrice = document.querySelector(`.ingredient_price_final_${index}`).innerHTML = result+'€';\n}", "title": "" }, { "docid": "cb45e24162cf898e25daf187b9c53856", "score": "0.61531204", "text": "function showSetAmount(index) {\n if ((!getAuthorizationStatus()) || (!getRegisterStatus())) {\n showAuthRequire('您还未进行认证!', '立即认证', '取消');\n return;\n }\n data['all_products'] = getCurProviderDetailInfo().products;\n for (var i = 0; i < data.all_products.length; i++) {\n if (parseInt(data.all_products[i].id) == index)\n break;\n }\n index = i\n setCurActivityDetailInfo(data.all_products[index]);\n\n data['cur_product'] = data.all_products[index];\n $('#min_amount9999').val(data.cur_product.min_amount)\n $('#max_amount9999').val(data.cur_product.amount)\n $('#product_amount9999').val(data.cur_product.min_amount)\n $('#addToCart_dialog').modal()\n showModalToCenter('addToCart_dialog')\n}", "title": "" }, { "docid": "c4a23def2b66e4d2c6b29c49ab70adea", "score": "0.61280084", "text": "function showSetAmount(index) {\n if ((!getAuthorizationStatus()) || (!getRegisterStatus())) {\n showAuthRequire('您还未进行认证!', '立即认证', '取消');\n return;\n }\n data['all_products'] = JSON.parse(sessionStorage.getItem('productDatas'));\n for (var i = 0; i < data.all_products.length; i++) {\n if (parseInt(data.all_products[i].id) == index)\n break;\n }\n index = i;\n setCurActivityDetailInfo(data.all_products[index]);\n data['cur_product'] = data.all_products[index];\n console.log(data.cur_product);\n $('#min_amount9999').val(data.cur_product.min_amount);\n $('#max_amount9999').val(data.cur_product.max_amount);\n $('#product_amount9999').val(data.cur_product.min_amount);\n $('#addToCart_dialog').modal();\n showModalToCenter('addToCart_dialog');\n}", "title": "" }, { "docid": "d07a8cdc2becdbfd5c734b1a0e9766ab", "score": "0.61133087", "text": "function _increaseItem(index){\n _readingItems[index].qty++;\n}", "title": "" }, { "docid": "3c08f3e6f34912db1b80c5fbe25c7b1c", "score": "0.6093589", "text": "function getProductAmount(index){\n let result = (getProductQuantity(index) * getProductPrice(index))\n return result\n}", "title": "" }, { "docid": "9308ea6a7a6f2d9a8375c7871cd9150f", "score": "0.6042592", "text": "function changeProductQuantity(productId, quantity){\n __items = __items.map(p => {\n if(p.id === productId){\n p.quantity = quantity;\n }\n return p;\n });\n\n}", "title": "" }, { "docid": "a88bf6c307abe4aa72f560e3143a13ce", "score": "0.6025079", "text": "function calculateAmount(index){\n\tvar commodityRate = document.getElementById(\"commodityRate\"+index).value;\n\tvar demamdedQuantity = document.getElementById(\"commodityDemandedQuantity\"+index).value;\n\tif(null == commodityRate || commodityRate == \"\" || isNaN(commodityRate)){\n\t\tcommodityRate = 0.0;\n\t\tdocument.getElementById(\"commodityRate\"+index).value = \"0.0\";\n\t}\n\t\n\tvar amount = parseFloat(demamdedQuantity) * parseFloat(commodityRate);\n\tdocument.getElementById(\"amount\"+index).value = amount;\n\tcalculateTotalAmount();\n}", "title": "" }, { "docid": "17b7e6f6f4f70cc47baf1eeb7fa064f9", "score": "0.5988898", "text": "updateCart(index, addOrRemove, removeAll){\n console.log(this.state.cart);\n if (addOrRemove === 0 && this.state.cart[index] > 0){\n if (removeAll){\n this.state.cartTotal = this.state.cartTotal - (this.props.list[index].price * this.state.cart[index]);\n this.state.cart[index] = 0;\n }\n else{\n this.state.cart[index] = this.state.cart[index] - 1;\n this.state.cartTotal = this.state.cartTotal - this.props.list[index].price;\n }\n } else{\n this.state.cart[index] = this.state.cart[index] + 1;\n this.state.cartTotal = this.state.cartTotal + this.props.list[index].price;\n }\n this.setState({\n \t\tcartTotal: this.state.cartTotal,\n cart: this.state.cart\n \t});\n }", "title": "" }, { "docid": "6da9e618a6f8df6bdcb8e389ed9059ec", "score": "0.59578115", "text": "modifyNextPiece(amount, index, piece) {\n const target = piece ? piece : this.inProgress;\n if (index !== this.pieces.length - 1) {\n let lastConsumption = last(target.consumption);\n if (lastConsumption === undefined || lastConsumption.consumed) {\n const nextPiece = this.pieces[index + 1];\n lastConsumption = {\n consumed: false,\n piece: nextPiece,\n startMod: nextPiece.modified\n };\n target.consumption.push(lastConsumption);\n }\n lastConsumption.piece.modified -= amount;\n if (lastConsumption.piece.mLength === 0) {\n lastConsumption.consumed = true;\n this.pieces.splice(index + 1, 1);\n }\n }\n }", "title": "" }, { "docid": "a15c37342817b11cccbe9bd0e558a032", "score": "0.59556186", "text": "function modifyProduct(product) {\n var val = $(\"#\" + product + \"ProductCoeff\").val();\n var difference = val - currentState[\"products\"][product];\n if (difference > 0) {\n addProduct(product, difference);\n } else if (difference < 0) {\n removeProduct(product, -difference);\n }\n }", "title": "" }, { "docid": "30c846e210484e4acebf40834a8cec01", "score": "0.595504", "text": "updateTotal(){\r\n let total = 0;\r\n for (const product of this.products) {\r\n total += product.price * product.amount;\r\n }\r\n this.total = total;\r\n }", "title": "" }, { "docid": "3de8719ae9a22ab6a5cd365441c171fd", "score": "0.59378135", "text": "function updateSubtotal(index){\n // Update subtotal\n let basketTotal = document.getElementById('basket-total').innerText.slice(1);\n let amount = document.getElementById(`amount${index}`).value;\n let price = document.getElementById(`price${index}`).getAttribute('data-value');\n let subTotal = document.getElementById(`sub-total${index}`);\n basketTotal = (basketTotal - subTotal.innerText.replace(\"Subtotal: $\",\"\")) + (amount * price);\n subTotal.innerHTML = `Subtotal: $${amount * price}`;\n document.getElementById('basket-total').innerText = \"$\" + basketTotal;\n // Save amount to local storage\n localStorage[`amount${index}`] = amount;\n}", "title": "" }, { "docid": "4cf184411ec0d911c4c6e8d3a1e8efbd", "score": "0.5936905", "text": "function setFinalCost(num, index, value) {\n if (index > 17) {\n document.getElementById(`cost${num}`).innerHTML = '';\n document.getElementById(`qty${num}`).innerHTML = '';\n } else {\n // value += adjustments[data.quantity];\n value += adjustments[breaks[index]].value ? adjustments[breaks[index]].value : 0;\n document.getElementById(`cost${num}`).innerHTML = roundOff(value, index);\n document.getElementById(`qty${num}`).innerHTML = `${breaks[index]} or more`;\n if (num === '1') {\n calcTotal(roundOff(value, index));\n }\n }\n}", "title": "" }, { "docid": "74713dab7377bdaa80267881d6a7ebe8", "score": "0.5935951", "text": "function updatePriceQuantity (price, x, operand){\r\n /*CHECK ON THE PAST OPERAND AS A PARAMETER*/\r\n /*IF OPERAND === 0 UPDATE WITH SUM*/\r\n if(operand === 0) {\r\n elementCart[x].quantity = elementCart[x].quantity + 1\r\n elementCart[x].price = parseFloat(elementCart[x].price) + parseFloat(price)\r\n let newQnt = parseFloat(elementCart[x].quantity)\r\n let newPrice = parseFloat(elementCart[x].price).toFixed(2)\r\n let elemQnt = document.getElementById('count'+x)\r\n let elemPrice = document.getElementById('price'+x)\r\n elemQnt.innerText = newQnt\r\n elemPrice.innerText = newPrice + \" €\"\r\n }\r\n /*ELSE UPDATE WITH SUB*/\r\n else {\r\n elementCart[x].quantity = elementCart[x].quantity - 1\r\n elementCart[x].price = parseFloat(elementCart[x].price) - parseFloat(price)\r\n let newPrice = parseFloat(elementCart[x].price).toFixed(2)\r\n let elemQnt = document.getElementById('count'+parseFloat(elementCart[x].Id))\r\n let newQnt = parseFloat(elementCart[x].quantity)\r\n let elemPrice = document.getElementById('price'+parseFloat(elementCart[x].Id))\r\n elemQnt.innerText = newQnt\r\n elemPrice.innerText = newPrice + \" €\"\r\n }\r\n\r\n}", "title": "" }, { "docid": "e504eed5104acac59d44dbe30a143501", "score": "0.59007055", "text": "function sumPrice (prev, curr, ind, arr) {\n return prev + curr.variant.price * curr.quantity;\n}", "title": "" }, { "docid": "de2d6823ff11826641b0be6464893af7", "score": "0.58874", "text": "function processSale(product, number) {\n product[\"inventory\"] -= number;\n console.log(number + ' lamps sold. ' + product[\"inventory\"] + ' lamps left in the inventory');\n return product[\"unit_price\"] * number\n}", "title": "" }, { "docid": "250332fdd0ca7e882686556e668fb822", "score": "0.5880958", "text": "increment(product) {\n //trazim proizvod preko id, i povecavam mu stanje na lageru\n // products.find(prod => prod.id == product.id).quantity++;\n product.quantity++;\n }", "title": "" }, { "docid": "d96351478bfeb550c723d50a98f68d35", "score": "0.5855303", "text": "function increaseAmount(){\n\tif(productlist.value == \"\"){\n\t\tproductlist.selectedIndex = 0;\n\t\tif(productlist.value == \"\"){\n\t\t\talert(\"You have not selected a product!\\nPlease choose a product on the left first.\")\n\t\t\treturn;\n\t\t}\n\t}\n\ttotal += prices[productlist.value];\n\tdocument.getElementById(\"total\").innerHTML = parseFloat(total).toFixed(2);\n\tcount[productlist.value]++;\n\tproductlist.options[productlist.selectedIndex].text = productlist.value +\" x\"+count[productlist.value];\n}", "title": "" }, { "docid": "db4756f7da563dc1107a300d46f7fa12", "score": "0.5841267", "text": "function removeProduct(index){\n items.splice(index,1);\n total();\n displayMyCart();\n}", "title": "" }, { "docid": "3f394cff0c9b09232e1e7c059b0febc7", "score": "0.5794613", "text": "function updateCart()\r\n{\r\n var my_cart = document.getElementById('cart_form');\r\n var inputs = my_cart.getElementsByTagName('input');\r\n\r\n for (i=0; i<inputs.length; i++)\r\n {\r\n var id = inputs[i].name;\r\n var quantity = Number(inputs[i].value);\r\n\r\n var index = search(id);\r\n\r\n if (index>-1 && !isNaN(quantity) && quantity>=0)\r\n {\r\n products[index].setQuantity(quantity);\r\n }\r\n }\r\n\r\n writeCart();\r\n refresh();\r\n}", "title": "" }, { "docid": "9029cc40ca448a44b751b6642435c109", "score": "0.57687044", "text": "function moreProduct(e, p, updateProductCart) {\n p.quantityCart = p.quantityCart + 1;\n updateProductCart(e, p)\n}", "title": "" }, { "docid": "7f827f5d0604434f463ecb3fe565abc0", "score": "0.5766034", "text": "sendQuantityTicked(indexFood, quantityFood){ /*recibe dos parametros: indice de la orden y la cantidad de alimentos*/\n this.breakfasts.forEach((element, id) => {\n if(indexFood === id){\n this.breakfasts[id].quantity = quantityFood; \n }\n }); /*funcion para cada uno de los elementos, verifica si el indice que recibe corresponde al indice del arreglo */\n }", "title": "" }, { "docid": "747afc960e5f3c913ea4a984950cd251", "score": "0.5765388", "text": "function quickUpdateCart() {\n var quantity = 0;\n var price = 0;\n\n cartList.children('li:not(.deleted)').each(function() {\n var singleQuantity = Number($(this).find('select').val());\n quantity = quantity + singleQuantity;\n price = price + singleQuantity * Number($(this).find('.price').text().replace('€', ''));\n });\n\n cartTotal.text(price.toFixed(2));\n cartCount.find('li').eq(0).text(quantity);\n cartCount.find('li').eq(1).text(quantity + 1);\n }", "title": "" }, { "docid": "97cd9fca7244cdd860d347f2109b107f", "score": "0.57585025", "text": "function productAmountUpdate(productName, price){\n const ndividualTotalElement = document.getElementById(productName + '-total')\n ndividualTotalElement.innerText = productNumber(productName) * price\n}", "title": "" }, { "docid": "e323e3e579bd401cda69c17cfb4896d3", "score": "0.57541096", "text": "increaseItem(item) {\n item.quantity += 1;\n item.newPriceUpdate();\n }", "title": "" }, { "docid": "6b059ed54fd36feba1bd9e93b4eb6072", "score": "0.5750536", "text": "function updateCart(toUpdate){\n for(i=0;i<items.length;i++){\n if(cart[items[i]]!=0){\n value=$('input[name=\"'+items[i] +'\"]').val();\n //console.log(isNaN( value));\n if(!isNaN( value)){\n cart[items[i]]=value;\n \n $('#price'+items[i]).html(cart[items[i]]*prices[items[i]]);\n }\n }\n }\n updatePayment();\n }", "title": "" }, { "docid": "732faa61cb08f282af302e2ca9f093cd", "score": "0.57479036", "text": "bumpFitness(index, amount) {\n this.fitArray[index] += amount; //increments the fitness by amount\n console.log(index, this.fitArray[index]); //prints the index number and the new fitness value\n }", "title": "" }, { "docid": "e73bafdbc550b61c51f6d719a425012a", "score": "0.5743752", "text": "updateItem(el, value, index) {}", "title": "" }, { "docid": "fc807cd826106887bd5a5161f9853bd8", "score": "0.573328", "text": "function productUpdate() {\n var product = vm.transaction.product;\n product.inventory -= transaction.quantity;\n\n // if (!isValid) {\n // $scope.$broadcast('show-errors-check-validity', 'vm.form.transactionForm');\n // return false;\n // }\n\n // TODO: move create/update logic to service\n if (product._id) {\n product.$update(successCallback, errorCallback);\n } else {\n product.$save(successCallback, errorCallback);\n }\n\n function successCallback(res) {\n console.log('you updated product inventory');\n }\n\n function errorCallback(res) {\n vm.error = res.data.message;\n }\n }", "title": "" }, { "docid": "3485c2f179ba35486162421cac03e13c", "score": "0.57179195", "text": "function updateProductAmount(parent, newAmount) {\n let child = parent.children();\n\n let productId = parent.find('.productId').val();\n let productAmountField = child.find('.product-amount-indicator').find('.product-amount');\n\n let productTotalPriceField = parent.find('.product-price-indicator').find('.product-price');\n let totalPriceField = document.getElementById(\"totalPrice\");\n let vatPriceField = document.getElementById(\"vatAmount\");\n\n if (newAmount <= 0) {\n parent.remove();\n\n // Delete the item from the program\n deleteItemFromProgram(productId);\n }\n\n $.post(baseUrl + \"cart/update/\" + productId + \"/\" + (newAmount), function (data) {\n productAmountField.text(data['productAmount']);\n productTotalPriceField.text(data['productTotalPrice']);\n totalPriceField.innerHTML = data['totalPrice'].toFixed(2);\n vatPriceField.innerHTML = (data['totalPrice'] * 0.09).toFixed(2);\n\n if(parseInt(data['productAmount']) !== newAmount){\n window.location.reload();\n }\n })\n .fail(function (response) {\n\n })\n}", "title": "" }, { "docid": "0bc3e3ccce4f17da6e65a22d6e7145ca", "score": "0.57131416", "text": "function increase(amount) {\n totalPrice += amount;\n refreshPrice();\n}", "title": "" }, { "docid": "c873ac21c3033315c8b86765694445ec", "score": "0.57006013", "text": "function quantityUpdate() {\n let quantity = 0;\n if (cartProduct.length < 1) {\n cartQuantity.innerHTML = 0;\n } else {\n for (let i = 0; i < cartProduct.length; i++) {\n quantity += parseInt(cartProduct[i].quantity);\n }\n cartQuantity.innerHTML = quantity;\n cartQuantityMobile.innerHTML = quantity;\n }\n}", "title": "" }, { "docid": "30d16303c556cc03d5dd1324913ced6f", "score": "0.5690604", "text": "function minusQtty(i) {\n if (cart[i].qtty == 1) {\n cart.splice(i, 1);\n createRows();\n } else {\n cart[i].qtty -= 1;\n document.getElementsByClassName(\"cart-quantity\")[i].innerHTML = cart[i].qtty;\n }\n}", "title": "" }, { "docid": "aa559c8b94738b6da50fe018bc1f40dc", "score": "0.56808215", "text": "function updateInventory(inventory, name, amt){\n\t\tinventory[name]+=amt;\n\t\tupdateHTML();\n\t}", "title": "" }, { "docid": "91effa2bcac21da2ebcb262dbba2b255", "score": "0.5678079", "text": "function update() {\n const amount = transactions.map(transaction => transaction.amount)\n\n const total = amounts.reduce((acc, item) => (acc += item), 0).toFixed(2)\n\n const income = amounts\n //filter \n .filter(item => item > 0)\n //.reduce returns the sum of all elements in an array = automatically adds positive items together\n //add the totals to card\n .reduce((acc, item) => (acc += item), 0).toFixed(2)\n\n const expense = amounts\n .filter(item => item < 0)\n .reduce((acc, item) => (acc += item), 0) * -1 .toFixed(2)\n\n balance.innerHTML = `$${total}`\n money_plus.innerHTML = `$${income}`\n money_minus.innerHTML = `$${expense}`\n }", "title": "" }, { "docid": "6c239bde5fa4b3e4ff09282ba5cafadc", "score": "0.5676747", "text": "function updateQuantity() {\n con.query(\"UPDATE products SET stock_quantity = stock_quantity - ? WHERE id = ?\",\n [\n quantityToBuy,\n itemToBuy\n ],\n function (err, res) {\n if (err) throw err;\n updateProductSale();\n })\n }", "title": "" }, { "docid": "1b124fe7e27f1f295b610f99aa421bf7", "score": "0.5673995", "text": "function updateProductSale() {\n // select the item in database\n con.query(\"SELECT price, id FROM products WHERE id =?\", [itemToBuy], function (err, res) {\n if (err) throw err;\n // update sales of item in database\n con.query(\"UPDATE products SET product_sales=product_sales + ? WHERE id=?\",\n [\n (parseFloat(res[0].price) * quantityToBuy),\n itemToBuy\n ],\n function (err, res) {\n if (err) throw err;\n con.end();\n })\n }\n )\n }", "title": "" }, { "docid": "7f37b0d1881b86288b36e4c185a96417", "score": "0.566521", "text": "function removeProductFromCart(index) {\n var cart = getCart() //Get the cart\n\n var product\n for(i = 0; i < cart.length; i++) {\n if (cart[i].index == index) {\n product = cart[i]\n productIndex = i\n break\n }\n }\n\n if (product == undefined) { return } \n\n\t//If the quantity is more than 1, the function will remove one of the quantity. Else it will splice it instead and remove the entire product from the cart\n if (product.quantity > 1) {\n product.quantity -= 1\n } else {\n cart.splice(i, 1);\n }\n//displays cart\n setCart(cart)\n}", "title": "" }, { "docid": "f21207f8b9130035532c1aff7fe8f51e", "score": "0.5661049", "text": "increaseCartQuantity({ commit, dispatch, state, getters }, id) {\n commit('INCREASE_CART_ITEM_QUANTITY', getters.found(id))\n dispatch('calculatePrices')\n localStorage.setItem('cart', JSON.stringify(state.cart))\n }", "title": "" }, { "docid": "471cd9e76e5549a1d203f8572c6d4e1f", "score": "0.5660128", "text": "updateIngredient(key, value) {\n if (this._ingredients.has(key)) {\n const currentAmount = this._ingredients.get(key);\n this._ingredients.set(key, value + currentAmount);\n }\n else {\n this._ingredients.set(key, value);\n }\n }", "title": "" }, { "docid": "93977d55b1c2623fa6ae47c88f4d62a4", "score": "0.56498116", "text": "function addProduct(cod) {\n order[cod].cant += 1;\n changeBtnText(cod, order[cod].cant);\n refreshOrder();\n animateTotal();\n}", "title": "" }, { "docid": "7310ea1c1661efdf7332c137ee67f0e5", "score": "0.5638739", "text": "deduct(key, value) {\n const updatedAmount = this._ingredients.get(key) - value;\n this._ingredients.set(key, updatedAmount);\n }", "title": "" }, { "docid": "faf9a385981e9d0290d5d39fb5b8beff", "score": "0.56362134", "text": "restaurarInventarioDelProducto(state, item){\n const producto = state.productos.find(producto => producto.id === item.id)\n producto.inventario += item.cantidad;\n }", "title": "" }, { "docid": "18b9e8834605dad776f523f53cc49a6e", "score": "0.5627001", "text": "function editProduct(index){\n nameInput.value=productContainer[index].name;\n priceInput.value=productContainer[index].price;\n descInput.value=productContainer[index].description;\n categInput.value=productContainer[index].category;\n submitbutton.innerHTML=\"updateproduct\";\n currentIndex=index;\n}", "title": "" }, { "docid": "e0a6e9128035ec8135a334833a0f8979", "score": "0.56250334", "text": "changeQuantityInCart(id, quantity) {\n /*\n Guard\n we only allow customer buy 99 in a single purchase\n */\n if (quantity < 0 || quantity > 99) return;\n\n /* find the id, update the quantity */\n const cart = this.state.cart.map(item => {\n if (item.id !== id) return item;\n return {\n ...item,\n quantity\n };\n });\n this.setState({ cart });\n }", "title": "" }, { "docid": "98a635f6208849f88aecb0375f7f9575", "score": "0.56123704", "text": "function increment(id) {\r\n let tempCart = [...cart];\r\n const selectedItem = tempCart.find((item) => item.id === id);\r\n const index = tempCart.indexOf(selectedItem);\r\n\r\n const product = tempCart[index];\r\n\r\n product.count = product.count + 1;\r\n product.total = product.count * product.price;\r\n\r\n setCart([...tempCart]);\r\n addTotal();\r\n }", "title": "" }, { "docid": "6bc9790e022ec397970bf89ad46ababa", "score": "0.5612035", "text": "function modificoProducto (id, cant){\n\t\t\tvar costo = findProducto(id);\n\t\t\tfor (var i in product.produccion){\n\t\t\t\tif (product.produccion[i].producto._id == id){\n\t\t\t\t\tproduct.produccion[i].total = costo*cant;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b78884f00519f75e67373c7d6c3a65c9", "score": "0.56092066", "text": "function decreaseAmount(){\n\tif(productlist.value == \"\"){\n\t\tproductlist.selectedIndex = 0;\n\t\tif(productlist.value == \"\"){\n\t\t\talert(\"You have not selected a product!\\nPlease choose a product on the left first.\")\n\t\t\treturn;\n\t\t}\n\t}\n\tcount[productlist.value]--;\n\ttotal -= prices[productlist.value];\n\tdocument.getElementById(\"total\").innerHTML = parseFloat(total).toFixed(2);\n\tif(count[productlist.value] == 0){\n\t\tproductlist.remove(productlist.selectedIndex);\n\t}\n\tproductlist.options[productlist.selectedIndex].text = productlist.value +\" x\"+count[productlist.value];\n}", "title": "" }, { "docid": "c2cc4f53a6f2af1fc11c06948259d25f", "score": "0.5599689", "text": "function editItemTotal(fullName, price, size, direction){\n const elementId = `total-${fullName}-${size}-price`;\n var itemTotal = document.getElementById(elementId).innerText;\n itemTotal = itemTotal.substring(1);\n let newTotal = 0.00;\n if (direction === \"increase\" ){\n newTotal = (parseFloat(itemTotal) + parseFloat(price)).toFixed(2).toString();\n } else {\n newTotal = (parseFloat(itemTotal) - parseFloat(price)).toFixed(2).toString();\n }\n\n document.getElementById(elementId).innerText = `$${newTotal}`;\n}", "title": "" }, { "docid": "ce0f7f67296ab70179bd54a6f9587f9b", "score": "0.55905235", "text": "function updater(index){\nnameInput.value=productList[index].nameInputValue; \npriceInput.value=productList[index].priceInputValue;\ncateInput.value=productList[index].cateInputValue; \ndescInput.value=productList[index].descInputtValue; \ndeleter(index);\n}", "title": "" }, { "docid": "0e4bca1fffb10d1915c97fd63e5c29c5", "score": "0.5588377", "text": "updateCartItem(product, itemInCart) {\n let elemQty = document.querySelector(`.items_quantity[data-id=\"${product.id_product}\"]`);\n elemQty.textContent = `${itemInCart[0].qty}`;\n let elemPrice = document.querySelector(`.items_price[data-id=\"${product.id_product}\"]`);\n elemPrice.textContent = `${itemInCart[0].qty * product.price}`;\n }", "title": "" }, { "docid": "78dbc8ae13b1b9f1b6c60439293826f2", "score": "0.5561348", "text": "function actualizarVistaStock(producto){\n for(var i = 0; i < $scope.ngCarrito.length; i++)\n if ($scope.ngCarrito[i].nombreProducto === producto.nombre\n && $scope.ngCarrito[i].descripcionProducto === producto.descripcion)\n producto.cantidad = producto.cantidad - $scope.ngCarrito[i].cantidad;\n }", "title": "" }, { "docid": "d91a06d73be1aef10137067383d25c1d", "score": "0.5558749", "text": "function qty_change_input_product(e) {\n\t\tsumtotal = 0;\n\t\ttotal_product(e, type);\n\t\tsumtotal += sumtotal_product(e);\n\t\t$('.price_all_product').text('IDR '+number_format(sumtotal))\n\t\te.attr('data-oldValue', e.val());\n\t}", "title": "" }, { "docid": "89af2d1e0ba09a41a9430b7cfc2fe6da", "score": "0.55563456", "text": "function updateAmount() {\n newTotal = 0;\n $(\"#container\").find(\"[data-itemprice]\").each(function() {\n newTotal += parseInt($(this).attr('data-itemprice'));\n });\n $(\"#totalPrice\").attr('data-billedamount', newTotal);\n $(\"#totalPrice\").text(\"Total amount :\" + newTotal);\n }", "title": "" }, { "docid": "ad75d324d5b8baf2742cae4c73d7d13b", "score": "0.5553419", "text": "function updateCartItemsQty(el) {\n const productId = el.dataset.productId;\n const qty = el.value * 1 || 1;\n\n State.cart.updateQty(productId, qty);\n State.saveCart();\n }", "title": "" }, { "docid": "e6e1f2b19a0c4e1e8b9bf1f315078700", "score": "0.55470437", "text": "function updateTotalPrice() {\n let cart = getStorage(\"cart\")\n let totalWeight = 0\n let totalPrice = 0\n for (product of cart) {\n totalWeight += parseFloat(product.weight) * parseInt(product.quantity)\n totalPrice += parseFloat(product.price) * parseInt(product.quantity)\n }\n\n if (totalWeight <= 1) {\n $(\"#cart-shipping-price\").text(\"Free\")\n $(\"#cart-total-price\").text((Math.round((totalPrice + Number.EPSILON) * 100) / 100) + \"€\")\n } else if (totalWeight > 1 && totalWeight <= 2) {\n $(\"#cart-shipping-price\").text(\"10.90€\")\n $(\"#cart-total-price\").text((Math.round(((totalPrice + 10.9) + Number.EPSILON) * 100) / 100) + \"€\")\n } else if (totalWeight > 2 && totalWeight <= 3) {\n $(\"#cart-shipping-price\").text(\"12.85€\")\n $(\"#cart-total-price\").text((Math.round(((totalPrice + 12.85) + Number.EPSILON) * 100) / 100) + \"€\")\n } else if (totalWeight > 3) {\n $(\"#cart-shipping-price\").text(\"16.60€\")\n $(\"#cart-total-price\").text((Math.round(((totalPrice + 16.6) + Number.EPSILON) * 100) / 100) + \"€\")\n }\n}", "title": "" }, { "docid": "00638a3b90b4d4bbc3004365b6009ab1", "score": "0.55465597", "text": "function modificarPrecioProducto(compra) {\n\n for (var i in compra.products) {\n for (var j in $scope.productos) {\n if ((compra.products[i].product._id) == $scope.productos[j]._id) {\n if (compra.products[i].product.costPerUnit != $scope.productos[j].costPerUnit) {\n $scope.productos[j].costPerUnit = compra.products[i].product.costPerUnit;\n var product = $scope.productos[j];\n product.enterprise = product.enterprise._id;\n product.category2 = product.category2._id;\n product.provider = product.provider._id;\n product.$update(function (response) {\n actualizarReferencias();\n }, function (errorResponse) {\n console.log(errorResponse, 'error');\n $scope.error = errorResponse.data.message;\n });\n }\n\n }\n }\n }\n } //end modificarPrecioProducto", "title": "" }, { "docid": "f846a89fd4de9e75aee43dbad2dc4fbf", "score": "0.55453795", "text": "async function updateCartCount(product) {\n const id = Number(product.getAttribute('shop-id'));\n let amount = Number(product.value);\n const totalForProduct = document.querySelector(`span[shop-id='${id}']`);\n const index = findProductIndex(id);\n if (amount < 1) {\n amount = 1;\n product.value = 1;\n wiggleAnimation(product);\n } else if (amount > 99) {\n amount = 99;\n product.value = 99;\n wiggleAnimation(product);\n } else if (!Number.isInteger(amount)) {\n amount = Math.floor(amount);\n product.value = amount;\n wiggleAnimation(product);\n }\n cart[index].count = amount;\n totalForProduct.innerHTML = '$' + (cart[index].price * cart[index].count);\n changeAmount(id, amount);\n let total = 0;\n for (let i = 0; i < cart.length; i++) {\n total += cart[i].price * cart[i].count;\n }\n cartTotal.innerHTML = 'Grand Total: $' + total;\n}", "title": "" }, { "docid": "04fc6c202bb841564ae85b5634f9745a", "score": "0.55330515", "text": "function productNumberUpdatting(productName, isAdd){\n const valueNum = productNumber(productName)\n if(isAdd === false && valueNum > 0){\n getNumberCounterElement(productName).value = valueNum - 1\n } else if(isAdd === true){\n getNumberCounterElement(productName).value = valueNum + 1\n }\n}", "title": "" }, { "docid": "e4a5c9eb6a9c483caba7803b2d1f19f6", "score": "0.55138326", "text": "function increaseQty(fullName, price, size){\n elementId = `${fullName}-${size}-qty`;\n itemQty = document.getElementById(elementId).innerText;\n const newQty = (parseInt(itemQty) + 1).toString();\n\n // limit the quantity to 10 items only\n if (newQty !== \"11\"){\n document.getElementById(elementId).innerText = newQty;\n editOrderTotal(price, \"increase\");\n editItemTotal(fullName, price, size, \"increase\");\n }\n}", "title": "" }, { "docid": "b91dd09a671bd7034912541a13f6d513", "score": "0.5509457", "text": "function updateCountProduct(product) {\n\n state.forEach((e, i) => {\n\n let json = JSON.parse(e)\n\n if (json.name == product.name) {\n\n json.count = product.count\n\n let auxArr = state\n\n auxArr.splice(i, 1, JSON.stringify(json))\n\n setState([])\n\n setState(auxArr)\n\n setState(state.concat())\n\n\n }\n\n\n })\n\n\n }", "title": "" }, { "docid": "7bfaafb2d6db42d1115de2565b5599b9", "score": "0.5508901", "text": "adjustQuantity(i, incrementer, removeFromUsersCart){\n let productsInCart = JSON.parse(JSON.stringify(this.state.productsInCart));\n let newProductInfo = productsInCart[i];\n newProductInfo.quantity = removeFromUsersCart ? 0 : newProductInfo.quantity + incrementer;\n\n axios.post('/api/adjustQuantity', newProductInfo)\n .then( res => {\n if (!res.data || res.data.error){\n alert('Encountered an unexpected error. Support has been notified, please try again later');\n }else{\n this.getProductsInCart();\n }\n })\n .catch(err => console.log(err));\n }", "title": "" }, { "docid": "6ba4a6261533cf1eb006ce7a3a372b17", "score": "0.54994005", "text": "function modifyProduct(product) {\n // console.log(product);\n\n connection.query(QUERY_MODIFY_STOCK, [product.stock_quantity, product.id], function(err, res) {\n\t\tif (err) throw err;\n\n // show inventory\n console.log('----------------------------------------'); \n\t\tconsole.log('Product Updated!');\n console.log('----------------------------------------'); \n\n mainMenu(); \n });\n}", "title": "" }, { "docid": "01515784158a855a4bc56d479a4d37c2", "score": "0.54975045", "text": "changeCustomer(index) {\n this.setState({\n currentCustomer: index,\n cartVisible: false\n });\n\n this._resetCart()\n this._updatePrices()\n\n this.forceUpdate()\n }", "title": "" }, { "docid": "078eb0409d3e7709dc1096b04a176926", "score": "0.5495026", "text": "function UpdateBasket() {\n\n var orderTotal = 0;\n document.querySelectorAll('.item-total-main').forEach(function (element, index) {\n orderTotal = parseInt(orderTotal) + parseInt(element.innerHTML);\n });\n\n document.getElementById(\"order-total\").innerHTML = orderTotal;\n var vat = 15;\n var vatAmount = orderTotal * (vat / 100);\n document.getElementById(\"vat-amount\").innerHTML = vatAmount;\n document.getElementById(\"vat-total\").innerHTML = orderTotal + vatAmount;\n }", "title": "" }, { "docid": "0d9a1905bf323df887738bb4214b965e", "score": "0.5487616", "text": "function replace()\n{\n var i;\n for(i=0;i<cart_top;i++)\n {\n if((cart[i].pdId.localeCompare(pdId))==0)\n break;\n }\n subTotal=calc_subtotal(qty,cart[i].mallPrice);//calculate the subtotal for now\n\tcart[i].qty=qty;//replace the qty;\n\ttotal_price=total_price-(cart[i].subTotal);//decrement the existing item's subtotal\n cart[i].subTotal=subTotal;//update the subtotal;\n\ttotal_price=total_price+subTotal;//update the total price\n\t\t\n\t$(\"#qt__\" + cart[i].pdId).attr(\"value\",cart[i].qty);\n\t$(\"#sTotal\" + cart[i].pdId).text(cart[i].subTotal);\n\t\n\tupdateAllConstantsDisplay();\n}", "title": "" }, { "docid": "3f22ba3d817a02cfe87258d7b698a225", "score": "0.5485441", "text": "function decrementInventory(newInvAmt, productId) {\n connection.query(\n \"UPDATE products SET ? WHERE ?\", [{\n stock_quantity: newInvAmt\n }, {\n item_id: productId\n }],\n function (err, res) {\n //console.log(res);\n //console.log(res.affectedRows + \" products updated!\\n\");\n console.log(\"\\n||------- Thanks for Shopping with Bamazon -------||\\n\");\n console.log(\"\\n||------- Please feel free to explore our store front again and place another order -------||\\n\");\n queryAll();\n } //End connection.query() callback fct\n ); //End UPDATE connection.query()\n}", "title": "" }, { "docid": "58e3511d3765be7b64f64817a637d3c9", "score": "0.54829264", "text": "function updateCart() {\n const $cartTotal = $('#total');\n const $cartTax = $('#tax');\n const $cartSubTotal = $('#subtotal');\n\n var $pricesToAdd = $cartTable.find(\"td.price\");\n var prices = $pricesToAdd.text().split('$');\n var newCost = 0;\n\n for (let i in prices) {\n if (prices[i]) {\n newCost += parseFloat(prices[i]);\n }\n }\n\n $cartSubTotal.text('$' + (newCost.toFixed(2)));\n\n $cartTax.text('$' + ((0.1) * parseFloat($cartSubTotal.text().substr(1))).toFixed(2));\n\n $cartTotal.text('$' + (newCost + parseFloat($cartTax.text().substr(1))).toFixed(2));\n\n }", "title": "" }, { "docid": "30edcb617b60046f5196170f4d850180", "score": "0.54792535", "text": "function updateInventoryKeepers(count, master, inventoryMatrix, productMatrix) {\n //master - whData instance (grouped by prodId) , contains masterKeeper and snapShotList;\n // inventoryMatrix - one single element in snapShotList for the current master;\n //update master keeper ;\n master.masterKeeper.remainingQty -= count;\n master.masterKeeper.usedQty += count;\n //Update inventory;\n inventoryMatrix.keeper.remainingQty -= count;\n inventoryMatrix.keeper.usedQty += count;\n inventoryMatrix.keeper.trace.push({ productHash: productMatrix.productHash, productId: productMatrix.productId, sOid: productMatrix.subOrderId, requestedQty: count });\n}", "title": "" }, { "docid": "853c0305d7f4d7175a480f802f0e48ab", "score": "0.5472626", "text": "function updateValues() {\n var subtotal = 0.0;\n for (let key in inventory) {\n var item = inventory[key];\n subtotal += item.getPrice();\n }\n var tax = (subtotal * TAX_RATE).toFixed(2);\n var total = (subtotal + (subtotal * TAX_RATE) + SHIPPING_PRICE).toFixed(2);\n // Update the displayed costs\n $(\"#currentSubtotal\").text(subtotal.toFixed(2));\n $(\"#currentTax\").text(tax);\n $(\"#currentTotal\").text(total);\n}", "title": "" }, { "docid": "58243b75a2117f2709d9b4d251e3c666", "score": "0.5468713", "text": "function updateProductSale() {\n // select the item in database\n connection.query(\"SELECT price, item_id FROM products WHERE item_id =?\", [itemToBuy], function (err, res) {\n if (err) throw err;\n // update sales of item in database\n connection.query(\"UPDATE products SET product_sales=product_sales + ? WHERE item_id=?\",\n [\n (parseFloat(res[0].price) * quantityToBuy),\n itemToBuy\n ],\n function (err, res) {\n if (err) throw err;\n showProductList();\n })\n }\n )\n}", "title": "" }, { "docid": "e57c2c85b81bf8c408ec7da574deb8dc", "score": "0.54630584", "text": "updateAmount(asset, newAmount) {\n amounts.set(asset, newAmount);\n recordPixelsAsAsset(newAmount, asset);\n }", "title": "" }, { "docid": "e1b7459648d75e7665f4fb53508c1e1a", "score": "0.5462735", "text": "function changeQuantity(cartItem, argument) {\n if (argument === 'sum') {\n cartItem.quantity = cartItem.quantity + 1;\n // localStorageService.set(restaurantCartKey, cart);\n } else {\n cartItem.quantity = cartItem.quantity - 1;\n // localStorageService.set(restaurantCartKey, cart);\n }\n }", "title": "" }, { "docid": "f533af533ec57b5d015997619f427a24", "score": "0.54600954", "text": "function decrease(amount) {\n totalPrice -= amount;\n refreshPrice();\n}", "title": "" }, { "docid": "628e6885ecf120f57bb174f219cdda9d", "score": "0.54573303", "text": "function changeDue(index,change){\n list4[index] = change;\n}", "title": "" }, { "docid": "8e02b0b4c20656eee62b413202cc8d14", "score": "0.54571825", "text": "function adjustInventory(res, numOfUnits, itemID, inventoryResult){\n console.log(\"Updating our inventory ...\");\n\n var newStockQuant = inventoryResult - numOfUnits;\n console.log(newStockQuant);\n\n var query = connection.query(\n \"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: newStockQuant\n },\n {\n item_Id: itemID\n }\n ],\n function(err, res){\n console.log(res.affectedRows + \"product updated.\")\n connection.end();\n }\n );\n}", "title": "" }, { "docid": "e7104cc0f9b6897c87c67866c5ac53b7", "score": "0.54545134", "text": "_handleItemChange(state, index, key, e) {\n let currentRow = state[key].costs[index];\n currentRow[e.target.id] = e.target.value;\n currentRow.itemCost = parseInt(e.target.value, 10);\n this.setState(state);\n }", "title": "" }, { "docid": "2c6611213583e288ecb68682ee753267", "score": "0.5452513", "text": "function purchase(product, amount) {\n connection.query(\n \"UPDATE products SET stock_number = stock_number - ? WHERE item_id = ?\",\n [amount, product.item_id],\n function(err, res) {\n // Purchase was successful\n console.log(\"\\nSuccessfully purchased \" + amount + \" \" + product.product_name + \"'s!\");\n init();\n }\n );\n}", "title": "" }, { "docid": "c4cd9d6af3a7c9e0e6fe963cf7c7698e", "score": "0.5446148", "text": "function increase(Product) {\n\tCart.add(Product);\n\t$('#cart-quantity').innerHTML ++;\n\tcheckQuantity();\n\tupdateCart(Product.id);\n}", "title": "" }, { "docid": "8fadc52131c8858f733e4cdba442098a", "score": "0.5441493", "text": "incrementarLaCantidadDelProductoEnElCarrito(state, item){\n item.cantidad++;\n }", "title": "" }, { "docid": "2178b72fb9ed48db3404d4f0343d5d6f", "score": "0.54297256", "text": "function updateProduct(input, price){\n let total = 0;\n total += input.value * price;\n input.setAttribute('data', total);\n updateTotal();\n}", "title": "" }, { "docid": "e80433773689f07763f29207c6b3e961", "score": "0.54205257", "text": "function updateTotal() {\n // get all amount values from transaction array\n const amounts = listItems.map(list => list.amount)\n // console.log(amounts)\n\n // filter out and sum totals of plus and minus amounts\n const income = amounts.filter(val => val > 0).reduce((acc, val) => acc + val, 0)\n const expense = amounts.filter(val => val < 0).reduce((acc, val) => acc + val, 0)\n // get total left amount\n const totalAmount = income - Math.abs(expense)\n // assign values to HTML elements\n balance.innerText = totalAmount.toFixed(2)\n moneyPlus.innerText = income.toFixed(2)\n moneyMinus.innerText = expense.toFixed(2)\n}", "title": "" }, { "docid": "78ce52f4e69186df168c8d6246eb39b7", "score": "0.5416893", "text": "updateItem(newItem, key) {\n let result = this.getAll();\n let items = result.items;\n items.forEach((item, index) => {\n if(item.id === key) {\n items[index] = newItem;\n }\n });\n result.items = items;\n result.cart_total = this._getotal(items);\n this.storage.setItem(this.cartName, this._toJsonString(result));\n }", "title": "" }, { "docid": "4dac5152bf3d823f81afeb955c092041", "score": "0.5412027", "text": "function updateQte(eltId, action) {\n let qteElt = document.getElementById(`qte-${eltId}`);\n let totalElt = document.getElementById(`prixTotal-${eltId}`)\n let totalPanier = document.getElementById('totalPanier');\n console.log(qteElt)\n let qte = parseInt(qteElt.textContent);\n let nvelleQte = 0;\n let price = productsLists[eltId].productPrice;\n let newTotal = totalPanier.textContent;\n if (action === \"plus\") {\n nvelleQte = qte + 1;\n newTotal = parseInt(totalPanier.textContent) + price;\n } else {\n if (qte - 1 >= 0) {\n nvelleQte = qte - 1;\n newTotal = parseInt(totalPanier.textContent) - price;\n }\n }\n\n let resultPrice = nvelleQte * price; \n\n productsLists[eltId].productQuantity = nvelleQte;\n qteElt.textContent = nvelleQte;\n totalElt.textContent = `${resultPrice} €`;\n totalPanier.textContent = `${newTotal}`;\n localStorage.setItem('cart', JSON.stringify(productsLists));\n console.log(productsLists[eltId].productQuantity);\n}", "title": "" }, { "docid": "20668aba85821a0f260e46c866f76463", "score": "0.5408674", "text": "updatePrice() {\n const quantity = this.template.getElementsByClassName('quantity');\n\n for (let qty of quantity) {\n qty.addEventListener('change', (event) => {\n const itemId = event.target.dataset.id;\n const unitPrice = parseInt(document.getElementById(`price-${itemId}`).dataset.price);\n const total = document.getElementById(`total-${itemId}`)\n const store = new CartManager();\n\n // Update displayed prices\n total.textContent = formatPrice(unitPrice * event.target.value);\n total.dataset.total = parseInt(unitPrice * event.target.value)\n this.setTotal();\n\n // Save changes on cart\n store.updateItem(itemId, event.target.value);\n });\n }\n\n }", "title": "" }, { "docid": "39bbe56c6e0ca07fa3143c978ec84e50", "score": "0.540851", "text": "function updateProd() {\n connection.query(\"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: newStock,\n },\n {\n item_id: chosenProd,\n }\n ], \n function(err, res) {\n if (err) throw err;\n }\n )\n totalCost();\n}", "title": "" }, { "docid": "d1850ea4310312235a087c98c131c812", "score": "0.5407378", "text": "function counter(index, obj, action) {\n //to highlight the selected product\n let productBody = document.querySelectorAll(\".product-body\");\n productBody.forEach( (el) => {\n el.style.opacity = \"0.4\";\n });\n productBody[index].style.opacity = \"1\";\n \n let typ = []; // drinks,food,dessert\n typ.push(obj.type);\n let childtyp = []; // wines,water,juices,softdrinks\n childtyp.push(obj.child_type);\n let productname = [];\n productname.push(obj.productName); // if ventura,anonymous wines type\n let price = obj.price;\n let qty = 0; // first time will be 0 then increase according to that\n if(action == \"increase\"){\n qty += 1;\n } else {\n qty -= 1;\n }\n\n let productDetails = [\n {}\n ];\n\n\n\n let ob = {\n username: selectedUserTable.username,\n tableno:selectedUserTable.tableno,\n itemType:[\n {\n [obj.type]/*drinks,food,dessert*/: [\n {[obj.child_type]/*water,wines,juices,softdrinks*/:[\n {name:[obj.productName],price:[obj.price],quantity:2},\n ]}\n ]\n }\n ]\n };\n console.log(ob);\n\n // now push to array\n // userSelectedItem\n // increment or decrement the quantity of a selected product\n // addToCart();\n }", "title": "" }, { "docid": "fef183d467bdd76cdd26a1d5dcde7800", "score": "0.54057926", "text": "set amount(v) {\n this._amount = v\n this._update()\n }", "title": "" }, { "docid": "83174eef017b33f922ca0e91e67e987a", "score": "0.54057187", "text": "function increaseItem(name, size) {\n if(JSON.parse(localStorage.getItem(\"cart\"))) {\n loadCart();\n }\n let the_cart_count = document.querySelectorAll(\".the_cart_count\"),\n totalCost = 0;\n cartList.forEach(function(cart) {\n if(cart.name === name) {\n if(cart.size !== \"No sizes\") {\n if(cart.size === size) {\n cart.quantity = cart.quantity + 1;\n number++;\n the_cart_count.forEach(function(count) {\n count.innerHTML = \"My cart \\(\" +number+ \"\\)\";\n });\n saveDisplay();\n }\n }\n else {\n cart.quantity = cart.quantity + 1;\n number++;\n the_cart_count.forEach(function(count) {\n count.innerHTML = \"My cart \\(\" +number+ \"\\)\";\n });\n saveDisplay();\n }\n }\n });\n}", "title": "" }, { "docid": "e2da4fadf55e3dfc87dffb7ecdcb1c88", "score": "0.5403481", "text": "function updateValues(){\n const amounts = transaction.map(transaction => transaction.amount);\n\n const total = amounts.reduce((acc,item) => (acc+=item),0).toFixed(2);\n \n const income = amounts\n .filter(item => item>0)\n .reduce((acc,item)=>(acc+=item),0).toFixed(2);\n \n const expense = \n (amounts\n .filter(item =>item<0).reduce((acc,item)=>(acc+=item),0)*-1).toFixed(2);\n balance.innerHTML = `$${total}`;\n money_plus.innerText = `$${income}`;\n money_minus.innerText = `$${expense}`;\n\n \n}", "title": "" }, { "docid": "6b8ee3bf134fd87e61f7d24f18837e3f", "score": "0.5395392", "text": "function updateExerciseOrder(itemIndex, order, $container) {\n var listElementId = order[itemIndex],\n $listItem = $container.find(\"#\" + listElementId);\n\n $listItem\n .find(\"input\")\n .val(itemIndex);\n }", "title": "" }, { "docid": "b95a537ba94d19cf03285f63db45dfb1", "score": "0.5393956", "text": "recalculateQty(itemsList) {\n let totalQty = 0;\n const counterQty = document.querySelector('.circle');\n for (let i = 0; i < itemsList.length; i++) {\n totalQty += itemsList[i].qty;\n }\n counterQty.textContent = totalQty;\n\n }", "title": "" }, { "docid": "a942d5408ea0b0d64b25c4271ea6a4a9", "score": "0.5392689", "text": "function ChangeProductCounts(id){\n \n let unitprice = lib.ele(`#${id} span[name=item-unitprice]`).textContent.replace(\"NT. \",\"\");\n let qty = lib.ele(`#${id} .ddl-counts`).options[lib.ele(`#${id} .ddl-counts`).selectedIndex].text;\n let subtotal = lib.ele(`#${id} span[name=item-subtotal]`);\n\n //Step1. Update Subtotal and Total Price\n subtotal.textContent = `NT. ${Number(unitprice) * Number(qty)}`;\n\n // Recaulation Total Price\n RecaculateTotalInfo();\n\n //Step2. Update localStorage\n UpdatelocalStorage(\"update\", id, qty);\n\n}", "title": "" } ]
5e788cca3b092e569e33536548facebd
Replace/restore the type attribute of script elements for safe DOM manipulation
[ { "docid": "e6c89a2ce22b19d682955e28d4e98900", "score": "0.0", "text": "function disableScript( elem ) {\n\telem.type = (jQuery.find.attr( elem, \"type\" ) !== null) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" } ]
[ { "docid": "76aa4b15462f1764842f87575721885d", "score": "0.70550895", "text": "function disableScript( elem ) {\n\t\tvar attr = elem.getAttributeNode(\"type\");\n\t\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "3ce2cbc78c26b5722dd1388c585c75ec", "score": "0.7024899", "text": "function disableScript( elem ) {\n var attr = elem.getAttributeNode(\"type\");\n elem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n return elem;\n}", "title": "" }, { "docid": "da679e14d290065b841eb23748e61b9c", "score": "0.70002586", "text": "function disableScript( elem ) {\n var attr = elem.getAttributeNode(\"type\");\n elem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n return elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "2a107be91637ededa193baac4c62c0a1", "score": "0.6983948", "text": "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "fe9e03d23684f43f2381ff4858387acc", "score": "0.696597", "text": "function disableScript( elem ) { // 5389\n\telem.type = (jQuery.find.attr( elem, \"type\" ) !== null) + \"/\" + elem.type; // 5390\n\treturn elem; // 5391\n} // 5392", "title": "" }, { "docid": "1a1bc25d8635f81b2c9765a1d24dea68", "score": "0.69500166", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute('type') !== null) + '/' + elem.type;\n return elem;\n }", "title": "" }, { "docid": "1a1bc25d8635f81b2c9765a1d24dea68", "score": "0.69500166", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute('type') !== null) + '/' + elem.type;\n return elem;\n }", "title": "" }, { "docid": "24b1dc2e5f09ca86114d2e94e6e1cc5c", "score": "0.69002753", "text": "function manipulationTarget(elem,content){if(nodeName(elem,\"table\")&&nodeName(content.nodeType!==11?content:content.firstChild,\"tr\")){return jQuery(\">tbody\",elem)[0]||elem;}return elem;}// Replace/restore the type attribute of script elements for safe DOM manipulation", "title": "" }, { "docid": "64f09a4f60d367dea140ad6be2daf350", "score": "0.68957007", "text": "function disableScript(elem) {\n\t\t\telem.type = (jQuery.find.attr(elem, \"type\") !== null) + \"/\" + elem.type;\n\t\t\treturn elem;\n\t\t}", "title": "" }, { "docid": "13e40c289007ba4a69d6dc24342d1b83", "score": "0.68925333", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "43ed6c76da07513c4566ed3d11909343", "score": "0.6888922", "text": "function disableScript(elem){elem.type=(jQuery.find.attr(elem,\"type\")!==null)+\"/\"+elem.type;return elem}", "title": "" }, { "docid": "6ca0a80195e0ca658f1d94bc2580a0ef", "score": "0.68869877", "text": "function disableScript( elem ) {\n elem.type = (jQuery.find.attr( elem, \"type\" ) !== null) + \"/\" + elem.type;\n return elem;\n}", "title": "" }, { "docid": "b807a4be7b8696c228729180e612b03f", "score": "0.6884041", "text": "function disableScript(elem) {\n\t\telem.type = (jQuery.find.attr(elem, \"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "5d24dc78c4bcc02af7768a1746697a07", "score": "0.68732643", "text": "function disableScript(elem) {\n elem.type = (jQuery.find.attr(elem, \"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "5d24dc78c4bcc02af7768a1746697a07", "score": "0.68732643", "text": "function disableScript(elem) {\n elem.type = (jQuery.find.attr(elem, \"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "5d24dc78c4bcc02af7768a1746697a07", "score": "0.68732643", "text": "function disableScript(elem) {\n elem.type = (jQuery.find.attr(elem, \"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "c29a07a053ac8559fc1b111ce0d0ae7f", "score": "0.6871227", "text": "function disableScript( elem ) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "25d9b1dd8d442aac82510655cce971b3", "score": "0.68652165", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "20a6e12cf6db941a8583da0cf612c4a2", "score": "0.686054", "text": "function manipulationTarget(elem,content){return jQuery.nodeName(elem,\"table\")&&jQuery.nodeName(content.nodeType!==11?content:content.firstChild,\"tr\")?elem.getElementsByTagName(\"tbody\")[0]||elem.appendChild(elem.ownerDocument.createElement(\"tbody\")):elem;}// Replace/restore the type attribute of script elements for safe DOM manipulation", "title": "" }, { "docid": "a89b24aaf99c01f7b55a85721fdf3b8e", "score": "0.68431556", "text": "function disableScript( elem ) {\n\t\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "a89b24aaf99c01f7b55a85721fdf3b8e", "score": "0.68431556", "text": "function disableScript( elem ) {\n\t\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "fd385dd4ee60c3cad915b7b6de353ebf", "score": "0.6824508", "text": "function disableScript(elem) {\n\t\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\t\treturn elem;\n\t\t}", "title": "" }, { "docid": "fd385dd4ee60c3cad915b7b6de353ebf", "score": "0.6824508", "text": "function disableScript(elem) {\n\t\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\t\treturn elem;\n\t\t}", "title": "" }, { "docid": "fd385dd4ee60c3cad915b7b6de353ebf", "score": "0.6824508", "text": "function disableScript(elem) {\n\t\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\t\treturn elem;\n\t\t}", "title": "" }, { "docid": "cb98afbb76d111a2dd6378c6b6af324e", "score": "0.6816863", "text": "function disableScript( elem ) {\n\t\telem.type = (jQuery.find.attr( elem, \"type\" ) !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "cb98afbb76d111a2dd6378c6b6af324e", "score": "0.6816863", "text": "function disableScript( elem ) {\n\t\telem.type = (jQuery.find.attr( elem, \"type\" ) !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "c97a47e06497cf247c75a939bc6aa7c2", "score": "0.6813255", "text": "function disableScript( elem ) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n}", "title": "" }, { "docid": "c97a47e06497cf247c75a939bc6aa7c2", "score": "0.6813255", "text": "function disableScript( elem ) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "e0186531b4ae6fbf3f8f141f98934c42", "score": "0.68087333", "text": "function disableScript(elem) {\n\t\telem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n\t\treturn elem;\n\t}", "title": "" }, { "docid": "06ea58990f2a69a9da95525476784ecd", "score": "0.68077224", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "06ea58990f2a69a9da95525476784ecd", "score": "0.68077224", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "495678c56eb14ab042d6efe34a4bf225", "score": "0.6794796", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "495678c56eb14ab042d6efe34a4bf225", "score": "0.6794796", "text": "function disableScript(elem) {\n elem.type = (elem.getAttribute(\"type\") !== null) + \"/\" + elem.type;\n return elem;\n }", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" }, { "docid": "3d71c06b80ae0064ca02a90128c16de2", "score": "0.67752373", "text": "function disableScript( elem ) {\n\telem.type = ( jQuery.find.attr( elem, \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}", "title": "" } ]
823e1755cd463f0dcb112c1ea5cb0922
A `named function expression` has a counterpart, a `function declaration`:
[ { "docid": "05d46c74bc807f5d58abaeec9536deb4", "score": "0.0", "text": "function myFunc () {\n //...\n}", "title": "" } ]
[ { "docid": "5a12544e17a7c9cae1c7fb59e2b81214", "score": "0.7679973", "text": "function a() {\n console.log('This is a named function declaration');\n}", "title": "" }, { "docid": "34a9828760d9c1fa751249a79f24ec0e", "score": "0.69262123", "text": "function funcDecl() {}", "title": "" }, { "docid": "285cecd1fd32fdf48ec010c7b218d8d1", "score": "0.6692889", "text": "function standardFunction() { //function declaration (expression uses variable)\n return \"This is a standard function.\"\n}", "title": "" }, { "docid": "d6244a2afd8fa49ecc85735c74c5aba7", "score": "0.6585024", "text": "function functionName( node )\n{\n\tif( node.id )\n\t{\n\t\treturn node.id.name;\n\t}\n\treturn \"anon function @\" + node.loc.start.line;\n}", "title": "" }, { "docid": "d6244a2afd8fa49ecc85735c74c5aba7", "score": "0.6585024", "text": "function functionName( node )\n{\n\tif( node.id )\n\t{\n\t\treturn node.id.name;\n\t}\n\treturn \"anon function @\" + node.loc.start.line;\n}", "title": "" }, { "docid": "4ea5a21e86a1dcdf5aad1a1b66e5fb0f", "score": "0.6583075", "text": "function functionName( node, type )\n{\n\tif( type === 'FunctionDeclaration' && node.id )\n\t{\n\t\treturn node.id.name;\n\t}\n\tif( type === 'MethodDefinition' && node.key ){\n\t\treturn node.key.name;\n\t}\n\treturn \"anon function @\" + node.loc.start.line;\n}", "title": "" }, { "docid": "4ea5a21e86a1dcdf5aad1a1b66e5fb0f", "score": "0.6583075", "text": "function functionName( node, type )\n{\n\tif( type === 'FunctionDeclaration' && node.id )\n\t{\n\t\treturn node.id.name;\n\t}\n\tif( type === 'MethodDefinition' && node.key ){\n\t\treturn node.key.name;\n\t}\n\treturn \"anon function @\" + node.loc.start.line;\n}", "title": "" }, { "docid": "dd3967032943227f92e3267343a72930", "score": "0.6571725", "text": "visitFunctionDeclaration(tree) {}", "title": "" }, { "docid": "dd3967032943227f92e3267343a72930", "score": "0.6571725", "text": "visitFunctionDeclaration(tree) {}", "title": "" }, { "docid": "b0a45e3f7246d9c04e9bfb97da8bd536", "score": "0.6434399", "text": "visitFunctionDeclaration (path) {\n if (lastChild(path, ast.program)) {\n const { id, params, body } = path.node\n // Expression-ify the function declaration\n const expression = buildNode.functionExpression(id, params, body)\n path.replace(buildNode.expressionStatement(expression))\n return false\n }\n\n this.traverse(path)\n }", "title": "" }, { "docid": "c3a1ed765500109d41b016a023e93590", "score": "0.64222354", "text": "function a() {}", "title": "" }, { "docid": "12b065d2a4e2ea4dfa69d7eba5bd0e97", "score": "0.6400045", "text": "function parseFunction(node, isStatement, allowExpressionBody) {\n initFunction(node);\n if (options.ecmaVersion >= 6) {\n node.generator = eat(_star);\n }\n if (isStatement || tokType === _name) {\n node.id = parseIdent();\n }\n parseFunctionParams(node);\n parseFunctionBody(node, allowExpressionBody);\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }", "title": "" }, { "docid": "12b065d2a4e2ea4dfa69d7eba5bd0e97", "score": "0.6400045", "text": "function parseFunction(node, isStatement, allowExpressionBody) {\n initFunction(node);\n if (options.ecmaVersion >= 6) {\n node.generator = eat(_star);\n }\n if (isStatement || tokType === _name) {\n node.id = parseIdent();\n }\n parseFunctionParams(node);\n parseFunctionBody(node, allowExpressionBody);\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }", "title": "" }, { "docid": "57f5dc6b5858f460eacf192c644039e9", "score": "0.6391252", "text": "function myFunction(){ \r\n console.log(\"this is name function\");\r\n}", "title": "" }, { "docid": "64e6339f76418dbdae6bb48dcdb0e3d9", "score": "0.63882834", "text": "function functionName() {\n \n}", "title": "" }, { "docid": "9367a0001d6a623c6d643515ccfd8c4a", "score": "0.6375855", "text": "function sayHi(name) {\r\n function yell() {\r\n console.log(`Hi ${name}`);\r\n }\r\n // yell() // works\r\n}", "title": "" }, { "docid": "21bf0afb00af839bf8536a7e1dcbe075", "score": "0.637481", "text": "function a() {console.log('I am function a')}", "title": "" }, { "docid": "fb72cd21d6be6bceaa93c20ce10e3dd0", "score": "0.63663363", "text": "function functionDeclaration() {\n console.log('Did something')\n }", "title": "" }, { "docid": "edaf9644020839e0a03917cd76d34512", "score": "0.634822", "text": "function func() {}", "title": "" }, { "docid": "581ec4d86d059d03805e49ac788e8122", "score": "0.6340436", "text": "parseFunction(str, name) {\n var fn_body_idx = str.indexOf('{'),\n fn_body = str.substring(fn_body_idx + 1, str.lastIndexOf('}')),\n fn_declare = str.substring(0, fn_body_idx),\n fn_params = fn_declare.substring(fn_declare.indexOf('(') + 1, fn_declare.lastIndexOf(')')),\n args = fn_params.split(',');\n\n args.push(fn_body);\n\n function Fn() {\n return Function.apply(this, args);\n }\n Fn.prototype = Function.prototype;\n \n return new Fn();\n }", "title": "" }, { "docid": "652cb63376830d7cdbed0525f53ed5fe", "score": "0.63330925", "text": "function aFunc(){}", "title": "" }, { "docid": "bf1d3b7b6db319be08a70c3888abe630", "score": "0.63030267", "text": "function square(x){ //expression starts with key wordfunction followed by name and()....x is a parimeter and acts as a local var\n console.log(x * x);\n}", "title": "" }, { "docid": "4de9442f1d59a2e4e44550e7946f551b", "score": "0.6296252", "text": "function a(b) {} //? <+>", "title": "" }, { "docid": "bb404305074f13fb8fdb5cdee23d2c09", "score": "0.6291895", "text": "function expressionFunction(name,fn,visitor){if(arguments.length===1){return functionContext[name];}// register with the functionContext\nfunctionContext[name]=fn;// if there is an astVisitor register that, too\nif(visitor)astVisitors[name]=visitor;// if the code generator has already been initialized,\n// we need to also register the function with it\nif(codeGenerator)codeGenerator.functions[name]=thisPrefix+name;return this;}// register expression functions with ast visitors", "title": "" }, { "docid": "ae6a096cdafc65988aa3115584985d1d", "score": "0.6284338", "text": "function func () {}", "title": "" }, { "docid": "1c2466d913d4bd9b89c4383ee9bfc5a3", "score": "0.6258471", "text": "function parseUserfunction() {\n var name = match('identifier'),\n type = vartype(name) === 'string' ? 'string' : 'number',\n expr;\n\n // FUTURE: Allow differing argument type and return type\n // (may require runtime type checks)\n\n // Determine the function argument\n match(\"operator\", \"(\");\n expr = type === 'string' ? parseStringExpression() : parseNumericExpression();\n match(\"operator\", \")\");\n\n return { source: 'lib.fn(' + quote(name) + ',' + expr + ')', type: type };\n }", "title": "" }, { "docid": "0119d1bcf2851e1016718a4ef7addd58", "score": "0.6244794", "text": "FunctionDeclaration(node) {\n if (!isRegex(node, context)) {\n return;\n }\n\n testConsistentName(node, context);\n }", "title": "" }, { "docid": "b8b8cfe006bb4d3d07ee65480ef94378", "score": "0.6238969", "text": "function funParamAlias(){\n\n}", "title": "" }, { "docid": "40583a33e080f4638785e3f8f7cab725", "score": "0.6226934", "text": "function someFunc() {}", "title": "" }, { "docid": "18a924e500a15091daef52d7b50cef31", "score": "0.62024915", "text": "function myFunction(){console.log(\"THis is a function\")}", "title": "" }, { "docid": "d95aeb2e97c7e113e71e590424e6bf6c", "score": "0.61922336", "text": "enterFunctionDeclaration(path) {\n\t\tlet symbol;\n\n\t\tif (path.node.id) {\n\t\t\tsymbol = this._declareIdentifierInScope(path.get(\"id\").node, SymbolFlags.Function | SymbolFlags.Hoisted);\n\t\t\tsymbol.declaration = symbol.valueDeclaration = path.node;\n\t\t} else {\n\t\t\tsymbol = new Symbol(uniqueNodeName(path.node, \"anonymous\"), SymbolFlags.Function);\n\t\t\tsymbol.declaration = symbol.valueDeclaration = path.node;\n\t\t}\n\n\t\tthis.program.symbolTable.setSymbol(path.node, symbol);\n\n\t\tthis._enterScope(path);\n\n\t\tfor (const param of path.node.params) {\n\t\t\tconst paramSymbol = this._declareIdentifierInScope(param, SymbolFlags.Variable);\n\t\t\tparamSymbol.declaration = param;\n\t\t}\n\t}", "title": "" }, { "docid": "df4a60151763805ae21e4dff7a8aa514", "score": "0.6187513", "text": "function name(){\n}", "title": "" }, { "docid": "a8d5eea7a3b4c19dc962d18a7a877534", "score": "0.618645", "text": "function returnsANamedFunction(){\n return function food() {\n console.log(`Nom nom nom, this ${breakfast} is delicious!`);\n }\n}", "title": "" }, { "docid": "eb38c915051536b656dc76d729530684", "score": "0.618335", "text": "function x() {}", "title": "" }, { "docid": "4b17187039979ff778d57bf165b4914f", "score": "0.61828256", "text": "function bar(){\n console.log(\"This is functional declaration\");\n}", "title": "" }, { "docid": "63606ff102de71029cd87557a30d01a4", "score": "0.6182472", "text": "function identifyf (a) {\n return function () {\n return a\n }\n}", "title": "" }, { "docid": "d697a1f2f2fecbe4f7ef766d4add2579", "score": "0.6174636", "text": "function parseFunction(node, isStatement) {\n if (tokType === _name) node.id = parseIdent();\n else if (isStatement) unexpected();\n else node.id = null;\n node.params = [];\n var first = true;\n expect(_parenL);\n while (!eat(_parenR)) {\n if (!first) expect(_comma); else first = false;\n node.params.push(parseIdent());\n }\n\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldInFunc = inFunction, oldLabels = labels;\n inFunction = true; labels = [];\n node.body = parseBlock(true);\n inFunction = oldInFunc; labels = oldLabels;\n\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (strict || node.body.body.length && isUseStrict(node.body.body[0])) {\n for (var i = node.id ? -1 : 0; i < node.params.length; ++i) {\n var id = i < 0 ? node.id : node.params[i];\n if (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name))\n raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n if (i >= 0) for (var j = 0; j < i; ++j) if (id.name === node.params[j].name)\n raise(id.start, \"Argument name clash in strict mode\");\n }\n }\n\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }", "title": "" }, { "docid": "4797c7fcac1215a4ea85c3a5d4069969", "score": "0.61587405", "text": "function funcName(Parameter1, Parameter2)/*function definition*/{\n\t//code the function runs\n}", "title": "" }, { "docid": "611b9ab941f9f0384e490b240348e793", "score": "0.61305577", "text": "function is_function_definition(stmt) {\r\n return is_tagged_object(stmt, \"function_definition\");\r\n}", "title": "" }, { "docid": "139e13a698d53cedaa16d23347e5cafb", "score": "0.61253697", "text": "function testFunctionNameInvoke2(){\n console.log(\"Inside testFunctionNameInvoke2 for function declaration\");\n}", "title": "" }, { "docid": "9c4276ab0132829a64c9bbb7ee4a0629", "score": "0.6098678", "text": "function func(a) {\n\n return function fuunc(b) {\n \n return a + b\n\n }\n}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b72dea5bee8deafe3e26629f1979cffb", "score": "0.6078249", "text": "function f() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "b03269a55c2fea36d5a386959321cf7c", "score": "0.6072725", "text": "function foo() {}", "title": "" }, { "docid": "68d45034b212150278dfacbb5fb71edd", "score": "0.6069633", "text": "function s(e) {\n var a, b, c, d;\n function e() { }\n}", "title": "" }, { "docid": "12798e8b7b766ce9ef47608a1f18de95", "score": "0.60625124", "text": "function func()\n{\n}", "title": "" }, { "docid": "b109c8f1daa499f09de5a48cddbcf695", "score": "0.6060865", "text": "function func0() {return \"Created via literals. -I'm a function with name.\"}", "title": "" }, { "docid": "efaf0bdd78dfb34734033ba02a50cdc6", "score": "0.6024037", "text": "function Ani1 (int a) \n\t\t{\n\t\t\tfunction An2 (int b)\n\t\t\t{\n\t\t\t\twrite(\"can't declare function in an other\")\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "57669fd365d82d0d4ce3363facf590ec", "score": "0.60214424", "text": "function func() {\n println(\"I am func!\");\n}", "title": "" }, { "docid": "810b0c36d6277ec782ac2398bd1f3576", "score": "0.6017078", "text": "function funcname(f) {\r\n var s = f.toString().match(/function (\\w*)/)[1];\r\n if ((s == null) || (s.length == 0)) return \"anonymous\";\r\n return s;\r\n}", "title": "" }, { "docid": "13ad9d8ce7b4fe28a62a1f4c088ed9ec", "score": "0.6016766", "text": "function is_function_definition(stmt) {\n return is_tagged_list(stmt, \"function_definition\");\n}", "title": "" }, { "docid": "59b6970939577ed3098d5941a9fadd0c", "score": "0.60121197", "text": "function f () {}", "title": "" }, { "docid": "65d9a174a251007a5b5638392c60ff1a", "score": "0.59991705", "text": "function aa(){return function(){}}", "title": "" }, { "docid": "9b90f540717b579a8b6c4f35d019e42a", "score": "0.5997608", "text": "function functionName() {\n // first way\n}", "title": "" }, { "docid": "d010e44d26a841f96b24167e964bc857", "score": "0.5990447", "text": "visitFunctionDeclaration(path) {\n // get funtion name、params、block\n const node = path.node\n const func = node.id\n const params = node.params\n const body = node.body\n\n // save function name\n funcs.push(func.name)\n // exports.xxx = () => {}\n const replaceAstStruct = expressionStatement(assignmentExpression('=', memberExpression(id('exports'), func), arrowFunctionExpression(params, body)))\n // replace original function ast structure with new\n path.replace(replaceAstStruct)\n // stop traverse\n return false\n }", "title": "" }, { "docid": "c2a0e4e1596ae66699887fd4a9ac0323", "score": "0.5982949", "text": "function fun() {}", "title": "" }, { "docid": "555eff3b615075cc3dfa6722de024d2b", "score": "0.5981189", "text": "function TSFunctionDeclaration(type, identifier, arguments, block)\n{\n\tTSStatement.call(this);\n\tthis.type = type;\n\tthis.identifier = identifier;\n\tthis.arguments = arguments;\n\tthis.block = block;\n}", "title": "" }, { "docid": "b99ca6cd90e9b1e0e8846010c1fa6e0a", "score": "0.5980064", "text": "function fun () {}", "title": "" }, { "docid": "c1073809bb086443263492db239a437a", "score": "0.5979312", "text": "function yy (a, b) {\n// ^^^^^^^^^^^^^^^^^ meta.function\n// ^^ entity.name.function\n// ^^^^^^ meta.function.parameters\n// ^ punctuation.section.group.begin\n// ^ variable.parameter.function\n// ^ punctuation.separator.parameter.function\n// ^ variable.parameter.function\n// ^ punctuation.section.group.end\n// ^ meta.block punctuation.section.block.begin\n}", "title": "" }, { "docid": "71554f22cec0106f4aaa6330ad1c1074", "score": "0.59771013", "text": "function outerFn() {\n return function(anonymous){\n return \"Landon Johnson\";\n }\n }", "title": "" }, { "docid": "07e3768c7f0d2c9ae8d8ad79767b9159", "score": "0.59761727", "text": "function functionName(prameters) {\n // function body\n}", "title": "" }, { "docid": "05590ad9e0e72870958cccaad013c358", "score": "0.5974881", "text": "function fn4(a) { } //?", "title": "" }, { "docid": "4c9e49d557f399262d567ea0921b1325", "score": "0.5973666", "text": "function n(a){return\"function\"===typeof a}", "title": "" }, { "docid": "45d2f6e2464caf8f14f6333caba3a177", "score": "0.59653366", "text": "function something(anyFunction)\n{console.log(2+2); anyFunction();}", "title": "" }, { "docid": "fa9e48e495076eb7a7dcf9c816976cfe", "score": "0.59469527", "text": "function makeFunction(body) {\n if(body==undefined) throw new Error('makeFunction error: No code to make a function.');\n var locals = body.match(/function\\s+\\w+\\(/g);\n if (locals) {\n body += ';';\n for (var i=0; i<locals.length; ++i) {\n var fname = locals[i].slice(8).match(/\\w+/);\n body += 'if(typeof('+fname+')!=\"undefined\")window.'+fname+'='+fname+';';\n }\n }\n //irm_log(\"makeFunction, body=\"+irm_log;)\n return new Function(body);\n }", "title": "" }, { "docid": "fa9e48e495076eb7a7dcf9c816976cfe", "score": "0.59469527", "text": "function makeFunction(body) {\n if(body==undefined) throw new Error('makeFunction error: No code to make a function.');\n var locals = body.match(/function\\s+\\w+\\(/g);\n if (locals) {\n body += ';';\n for (var i=0; i<locals.length; ++i) {\n var fname = locals[i].slice(8).match(/\\w+/);\n body += 'if(typeof('+fname+')!=\"undefined\")window.'+fname+'='+fname+';';\n }\n }\n //irm_log(\"makeFunction, body=\"+irm_log;)\n return new Function(body);\n }", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.59439564", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.59439564", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.59439564", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.59439564", "text": "function a(){}", "title": "" }, { "docid": "c53b20e2710583cdad1543e358421213", "score": "0.59439564", "text": "function a(){}", "title": "" }, { "docid": "ce0cabf3c5c5c88b8bd05561b028c3c9", "score": "0.5939131", "text": "function Walk() // named Function\r\n{\r\n var a=10;\r\n console.log(a);\r\n}", "title": "" }, { "docid": "03cf8ca2073c5b51e2418fea506b3fad", "score": "0.5938168", "text": "function f1(a) { }", "title": "" }, { "docid": "d448854f8ac0fa531a0316d5f89699da", "score": "0.5924885", "text": "function fa() {\n //a defined in t\n console.assert(a===33);\n\n //The encapulated ones not\n function faa() {\n var faav = 4;\n }\n //faav is not visible here\n}", "title": "" }, { "docid": "4ff74739f3a7da4a6b2336870bcdd831", "score": "0.5923952", "text": "function f1(a) {}", "title": "" }, { "docid": "1c94db330ee233febd893b773aad003a", "score": "0.5920286", "text": "function func() {\n print(\"I am func!\");\n}", "title": "" }, { "docid": "68ca766c29540dd39bb533e4f6ecae59", "score": "0.5919795", "text": "function makeFunction(){let a2 = \"makeFunction's A\"\nlet x2 = function() {\n return a2;\n}\n}", "title": "" }, { "docid": "46dab0b8b762baf37e4ec4efc7e84600", "score": "0.5915146", "text": "function nameOfTheFunction() {\n\tconsole.log ( 'hello from the function');\n\n}", "title": "" }, { "docid": "435ae692a205e6dc1440174988b7c7fd", "score": "0.5907799", "text": "function threeFunctionAssign()\r\n{\r\n return function threeFunctionAssignInFunc()\r\n {\r\n return \"three\"\r\n }\r\n}", "title": "" }, { "docid": "56bf59094597b10ad319789edf0a38fa", "score": "0.5906956", "text": "function a() {\n console.log('I am a function a');\n}", "title": "" }, { "docid": "dc47ee2ec80047962c3fc25a43e674da", "score": "0.5903036", "text": "function myFunction(){ //declares the function and arguments, if any\n return 10+10; //function expressions are the actions taken in the function\n}", "title": "" }, { "docid": "7bba19ab72d7b0fba2c9fe8526915822", "score": "0.5895442", "text": "function foo() { }", "title": "" }, { "docid": "7bba19ab72d7b0fba2c9fe8526915822", "score": "0.5895442", "text": "function foo() { }", "title": "" }, { "docid": "7bba19ab72d7b0fba2c9fe8526915822", "score": "0.5895442", "text": "function foo() { }", "title": "" }, { "docid": "fc94c6698d6e8876106bca83cc5777a7", "score": "0.5880322", "text": "function funcname(f) {\n var s = f.toString().match(/function (\\w*)/)[1];\n if ((s == null) || (s.length == 0)) return \"anonymous\";\n return s;\n}", "title": "" } ]
b923e6fd4b8a6d54e03a08c40fc2cace
copy vendor to build without package
[ { "docid": "e6ca08dd5b7e597555e4a470414ecc04", "score": "0.61316127", "text": "function Vendor2BuildPlugin() {\n}", "title": "" } ]
[ { "docid": "063a4af5183e34456ae196cf9e1e3d81", "score": "0.73434466", "text": "function copyVendorDependencies() {\n return gulp.src(project.vendorDest + 'node_modules/**/*')\n .pipe(gulp.dest(project.vendorDest));\n}", "title": "" }, { "docid": "e4b08f8cf6e70ddb7273715c7ff39b55", "score": "0.7034708", "text": "function copyVendor(done) {\n gulp.src([\"node_modules/bootstrap/dist/**/*\", \"!**/npm.js\", \"!**/bootstrap-theme.*\", \"!**/*.map\"])\n .pipe(gulp.dest(\"vendor/bootstrap\"));\n\n gulp.src([\"node_modules/jquery/dist/jquery.js\", \"node_modules/jquery/dist/jquery.min.js\"])\n .pipe(gulp.dest(\"vendor/jquery\"));\n\n gulp.src([\"node_modules/simple-line-icons/*/*\"])\n .pipe(gulp.dest(\"vendor/simple-line-icons\"));\n\n gulp.src([\n \"node_modules/font-awesome/**\",\n \"!node_modules/font-awesome/**/*.map\",\n \"!node_modules/font-awesome/.npmignore\",\n \"!node_modules/font-awesome/*.txt\",\n \"!node_modules/font-awesome/*.md\",\n \"!node_modules/font-awesome/*.json\"\n ])\n .pipe(gulp.dest(\"vendor/font-awesome\"))\n done()\n}", "title": "" }, { "docid": "6e179032b6e4b42037f268d640f81898", "score": "0.66933084", "text": "function copyNpmDependencies() {\n return gulp.src(gnf(), {base:'./'})\n .pipe(gulp.dest(project.vendorDest));\n}", "title": "" }, { "docid": "373feb5d5b82b106a537971714773789", "score": "0.6644253", "text": "function buildVendor() {\n install(b, 'browserify', '^14.1.0')\n install(b, 'uglify-js-harmony', '^2.7.5')\n minifiedVendor('./node_modules/sanitize-html/index.js', 'sanitize-html', {\n exports: ['default']\n })\n minifiedVendor('./vendor/_brace.js', 'brace')\n minifiedVendor('./vendor/_unified-bundle.js', 'unified-bundle')\n}", "title": "" }, { "docid": "390ff7138c07e235e0cfd3e556603d15", "score": "0.6626883", "text": "function copyExtras() {\n gulp.src([conf.path.tmp(\"compiled/@ericsson/cus-ui/boilerplate/system-config.js\")]).pipe(gulp.dest(conf.path.tmp('build')));\n gulp.src([conf.path.tmp(\"compiled/main-import.js\")]).pipe(gulp.dest(conf.path.tmp('build')));\n}", "title": "" }, { "docid": "05ce6c08c6e1f12ac7c711632f46f81f", "score": "0.66069263", "text": "function builtVendorScriptsDev() {\n return gulp.src([...paths.npmDependencies, ...paths.bower])\n .pipe(gulp.dest(paths.tmp + \"/js\"))\n}", "title": "" }, { "docid": "5786cf630817a9b00dc9764c4f860548", "score": "0.6553837", "text": "function builtVendorScriptsProd() {\n return gulp.src([...paths.npmDependencies, ...paths.bower])\n .pipe(plugins.concat(`vendor-${gitHash}.min.js`))\n .pipe(plugins.uglify().on('error', function(err) {\n plugins.util.log(plugins.util.colors.red('[Error]'), err.toString());\n this.emit('end');\n }))\n .pipe(gulp.dest(paths.distScripts))\n}", "title": "" }, { "docid": "607ff2efe1985a536e8ef7cea2e092c5", "score": "0.6389487", "text": "function build() {\n fs.copySync(path.resolve(__dirname, '..', 'dist', 'react-dropzone.js'), './src/react-dropzone.js');\n}", "title": "" }, { "docid": "ffcc108385163c163e1289c51bb9241f", "score": "0.62637216", "text": "function vendor () {\n var js_flt = filter(['client/**/*.js'], {restore: true});\n var css_flt = filter(['client/**/*.css'], {restore: true});\n var other_flt = filter(['client/**/*.!(css|js|less|scss)'], {restore: true});\n\n return gulp.src(bowerFiles(), {base: 'client'})\n\n .pipe(js_flt)\n .pipe(concat('vendor.js'))\n .pipe(uglify())\n .pipe(gulp.dest('dist/client')) // --> dist/client/vendor.js\n .pipe(js_flt.restore)\n\n .pipe(css_flt)\n .pipe(concat('vendor.css'))\n .pipe(css_clean())\n .pipe(gulp.dest('dist/client')) // --> dist/client/vendor.css\n .pipe(css_flt.restore)\n\n .pipe(other_flt)\n .pipe(gulp.dest('dist/client'));\n}", "title": "" }, { "docid": "46b9ec87caf605355d643481e45763a7", "score": "0.62548864", "text": "function copyTask() {\n\treturn src('./src/favicons/*').pipe(dest('./dist/favicons/')), src('./src/vendor/*').pipe(dest('./dist/vendor/'))\n}", "title": "" }, { "docid": "2e8327d6701679aaa4929035d5a831d2", "score": "0.6239045", "text": "function compileVendorJS(cb) {\n pump([gulp.src([\n './node_modules/jquery-lazy/jquery.lazy.js'\n ]).pipe(babel({\n presets: ['env']\n })).pipe(concat('vendor.js')),\n uglify(),\n gulp.dest(path.js.dest)\n ],\n cb\n );\n gulp.src([\n './node_modules/jquery/dist/jquery.min.js',\n './node_modules/popper.js/dist/umd/popper.min.js',\n './node_modules/bootstrap/dist/js/bootstrap.min.js',\n './node_modules/slick-carousel/slick/slick.js',\n './node_modules/sticky-sidebar/dist/jquery.sticky-sidebar.min.js'\n ]).pipe(\n gulp.dest(path.js.dest)\n );\n}", "title": "" }, { "docid": "d683d653b13b95f5328cf9d88de5c7f9", "score": "0.61452556", "text": "function copyDist() {\n return src(paths.dist + '**')\n .pipe(dest(paths.web));\n}", "title": "" }, { "docid": "bf1ab06ee2b2bc37d397b0d7f62282e0", "score": "0.61420834", "text": "function init() {\n return src(npmDist(), {\n base: './node_modules/'\n })\n .pipe(rename(function(path) {\n path.dirname = path.dirname.replace(/\\/dist/, '').replace(/\\\\dist/, '');\n }))\n .pipe(dest('./vendors'));\n}", "title": "" }, { "docid": "0fd222093efd2c3b785d764241e3240a", "score": "0.61394393", "text": "function copyBuild(done) {\n gulp\n .src(config.patternLab.publicDirectory + '/**/*')\n .pipe(gulp.dest('build'));\n done();\n}", "title": "" }, { "docid": "ffff9456d3136ae970053c7056536ffe", "score": "0.6109361", "text": "function copy() {\n return src([\n \"src/fonts/**/*.{woff,woff2}\",\n \"src/imgs/**\",\n \"src/js/**\"\n ], {\n base: \"src\"\n })\n .pipe(dest(\"build\"))\n}", "title": "" }, { "docid": "4771b1c4e173e8f4d67b6ae313a578b5", "score": "0.6081491", "text": "function dev_move_lib() {\n return src('WFOTool_ui/src/dev/lib/**/*.*')\n .pipe(dest('WFOTool_ui/src/dev_cloud/lib'))\n}", "title": "" }, { "docid": "53130040338ffb09a8d652bd88659109", "score": "0.60810786", "text": "function copyFile(src, dist) {\n\t\t// 复制jquery\n\t\tif(!fs.existsSync(`${dist}\\\\lib`)) {\n\t\t\tfs.mkdirSync(`${dist}\\\\lib`);\n\t\t\tvar exec = require('child_process').execSync, child;\n\t\t\tchild = exec(`xcopy /e lib ${dist}\\\\lib`);\n\t\t}\n\t\tloadConfig();\n\t\tcompareFile(src, dist);\n\t\tcompress();\n\t\topenBrowser();\n\t\treload();\n\t\t// zipFile();\n\t\tsetTimeout(() => {\n\t\t\twatch();\n\t\t}, 2000);\n\t}", "title": "" }, { "docid": "fb4a5fd135921ba18852beb60e9511b5", "score": "0.60757715", "text": "function javascript_vendor() {\n\treturn gulp.src('js/vendor/**') // all sub-files and sub-folders except src\n\t\t.pipe(gulp.dest(PATHS.dist + '/js/vendor/'));\n}", "title": "" }, { "docid": "8f88df490956aeea33cfc14b654e6e33", "score": "0.60217226", "text": "function copyLibs() {\n gulp.src(`${devPath}/_dev/libs/*`).pipe(clean({forse: true}));\n \n setTimeout(function () {\n gulp.src(`./node_modules/bootstrap/dist/**/*.*`).pipe(gulp.dest(`${devPath}/_dev/libs/bootstrap/`));\n gulp.src(`./node_modules/jquery/dist/**/*.*`).pipe(gulp.dest(`${devPath}/_dev/libs/jquery/`));\n gulp.src(`./node_modules/owl.carousel/dist/**/*.*`).pipe(gulp.dest(`${devPath}/_dev/libs/owl-carousel/`));\n }, 5000);\n}", "title": "" }, { "docid": "74e9c198550e2693e504745a7c97da40", "score": "0.60155445", "text": "function buildDev() {\n return copyBuid('dev', config.build.dev);\n}", "title": "" }, { "docid": "4d9b85c4f2246c23547029e12899e275", "score": "0.6002711", "text": "function copy() {\n return gulp.src([\n 'src/fonts/*',\n 'src/img/*'\n ], {\n base: 'src'\n })\n .pipe(gulp.dest('build'));\n}", "title": "" }, { "docid": "0a05957e4cea4fbce8be4362c3226de7", "score": "0.5998296", "text": "function compileVendorScripts() {\n\treturn gulp.src(paths.vendor.scripts)\n}", "title": "" }, { "docid": "d90f4c009eec85b8d9ec686485d31b45", "score": "0.5950516", "text": "function dist_move_lib() {\n return src('WFOTool_ui/src/dev/lib/**/*.*')\n .pipe(dest('WFOTool_ui/src/dist/lib'))\n}", "title": "" }, { "docid": "5dc6d44c481e97ef59acbf0d567e22b6", "score": "0.5887395", "text": "function vendorjs() {\r\n return gulp\r\n .src(paths.dev.vendorjs)\r\n .pipe(concat('vendor.js'))\r\n .on('error', handleError)\r\n .pipe(uglify())\r\n .pipe(gulp.dest(paths.build.js));\r\n}", "title": "" }, { "docid": "8fb3a7add9b9557b1245599d74f95286", "score": "0.58867335", "text": "function copyAssets() {\n var out = folder.dist_assets + \"/libs/\";\n return gulp\n .src(npmdist(), { base: './node_modules' })\n .pipe(rename(function (path) {\n path.dirname = path.dirname.replace(/\\/dist/, '').replace(/\\\\dist/, '');\n }))\n .pipe(gulp.dest(out));\n}", "title": "" }, { "docid": "1838d30b5d452a05c2eeb588b7f68055", "score": "0.58862996", "text": "async function copy() {\n for (const outDir of outDirs) {\n for (const packageName of Object.keys(packages)) {\n const packageDir = packages[packageName]\n const packageJson = path.join(packageDir, 'package.json')\n const typings = path.join(packageDir, '*.d.ts')\n const destination = path.join(__dirname, outDir, 'node_modules', packageName)\n\n await new Promise(resolve => copyfiles([packageJson, typings, destination], { up: packageDir.split('/').length }, resolve))\n }\n }\n}", "title": "" }, { "docid": "2a2f981f80689fef6a84fe28b6b6847d", "score": "0.5869915", "text": "function deploy () {\n return src('build/**/*', {\n base: 'build',\n since: lastRun(deploy) \n })\n .pipe(existClient.dest({target: serverInfo.root}))\n}", "title": "" }, { "docid": "a4490f014cf75567fc82b4307a3af28c", "score": "0.5850544", "text": "function copy(cb) {\n gulp.src(['adal-angular.d.ts']).pipe(gulp.dest('./dist/'));\n console.log('adal-angular.d.ts Copied to Dist Directory');\n\n gulp.src(['README.md']).pipe(gulp.dest('./dist/'));\n console.log('README.md Copied to Dist Directory');\n\n cb();\n}", "title": "" }, { "docid": "cede389109385ffe46bdaa2260a8fb68", "score": "0.5807909", "text": "function vendor() {\n\n stm = merge();\n \n // --------------------------------------------------------------------------------------\n //Third party CSS files\n stm.add(gulp.src([\n 'node_modules/bootstrap/dist/css/bootstrap.min.css', // Bootstrap\n 'node_modules/prismjs/themes/prism.css', // Prism.js\n 'node_modules/prismjs/themes/prism-okaidia.css' \n ])\n .pipe(gulp.dest('www/css')));\n\n // Font awesome\n stm.add(gulp.src([\n 'node_modules/@fortawesome/fontawesome-free/css/all.min.css' \n ])\n .pipe(rename('fontawesome-all.min.css'))\n .pipe(gulp.dest('www/css')));\n\n // --------------------------------------------------------------------------------------\n // Third party JS files\n stm.add(gulp.src([\n 'node_modules/jquery/dist/jquery.min.js', // jQuery\n 'node_modules/jquery.easing/jquery.easing.min.js', // jQuery Easing\n 'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js', // Bootstrap\n 'node_modules/typed.js/lib/typed.min.js', // Typed.js\n 'node_modules/prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.min.js'\n ])\n .pipe(gulp.dest('www/js')));\n\n // Prism.js (build custom js file by concatenating the required ones)\n stm.add(gulp.src([\n 'node_modules/prismjs/components/prism-core.min.js',\n 'node_modules/prismjs/components/prism-clike.min.js',\n 'node_modules/prismjs/components/prism-c.min.js',\n 'node_modules/prismjs/components/prism-python.min.js'\n ])\n .pipe(concat('prism.min.js'))\n .pipe(gulp.dest('www/js')));\n\n // --------------------------------------------------------------------------------------\n // Other files\n\n // Font awesome\n stm.add(gulp.src([\n 'node_modules/@fortawesome/fontawesome-free/webfonts/*' \n ])\n .pipe(gulp.dest('www/webfonts')));\n\n return stm;\n}", "title": "" }, { "docid": "a1a484ef56272e91af6dc1478bb42f65", "score": "0.57760525", "text": "async function preBuild () {\n\tawait cleanLib();\n\tcopySync(\"./package.json\", `./${outLib}/package.json`);\n\tcopySync(\"./README.md\", `./${outLib}/README.md`);\n}", "title": "" }, { "docid": "0fb1ef34913df9a985f66e2fbf06cbd1", "score": "0.5770676", "text": "function copyNPM(done) {\n gulp\n .src(config.npm.srcFiles + 'hoverintent/dist/hoverintent.min.js')\n .pipe(gulp.dest(config.js.destDirOther));\n done();\n}", "title": "" }, { "docid": "95038c61372ff9ebfadf76cfc3d4cc79", "score": "0.5748501", "text": "async function copyPackageFiles() {\n delete pkg.private;\n delete pkg.devDependencies;\n delete pkg.scripts;\n delete pkg.eslintConfig;\n delete pkg.babel;\n await fs.writeFile('dist/package.json', JSON.stringify(pkg, null, ' '), 'utf-8');\n await fs.writeFile('dist/LICENSE.txt', await fs.readFile('LICENSE.txt', 'utf-8'), 'utf-8');\n await fs.writeFile('dist/README.md', await fs.readFile('README.md', 'utf-8'), 'utf-8');\n await fs.createReadStream('./src/db.sqlite').pipe(await fs.createWriteStream('dist/db.sqlite'));\n}", "title": "" }, { "docid": "30c73302f1bd5684d8cc4e4bffa7c986", "score": "0.5735859", "text": "function copyFunc(done) {\n gulp.src([\n 'node_modules/bootstrap/dist/**/*',\n // we don't want to clean this file though so we negate the pattern\n '!**/npm.js',\n '!**/bootstrap-theme.*',\n '!**/*.map'\n ])\n .pipe(gulp.dest('public/vendor/bootstrap'))\n\n gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.min.js'])\n .pipe(gulp.dest('public/vendor/jquery'))\n\n gulp.src(['node_modules/popper.js/dist/umd/popper.js', 'node_modules/popper.js/dist/umd/popper.min.js'])\n .pipe(gulp.dest('public/vendor/popper'))\n\n gulp.src([\n 'node_modules/font-awesome/**',\n '!node_modules/font-awesome/**/*.map',\n '!node_modules/font-awesome/.npmignore',\n '!node_modules/font-awesome/*.txt',\n '!node_modules/font-awesome/*.md',\n '!node_modules/font-awesome/*.json'\n ])\n .pipe(gulp.dest('public/vendor/font-awesome'))\n\n done();\n}", "title": "" }, { "docid": "e68ca114fcd8ce32d6b27ccd81cdae33", "score": "0.5734928", "text": "function copyFolder() {\n\tlet variation = 'boilerplate';\n\n\tif ( argv.variation !== undefined ) {\n\t\tvariation = argv.variation;\n\t}\n\n\tvar dir = process.cwd();\n\treturn gulp.src( './*' )\n\t\t.pipe( plugins.exec( 'rm -Rf ./../build; mkdir -p ./../build/' + variation + ';', {\n\t\t\tsilent: true,\n\t\t\tcontinueOnError: true // default: false\n\t\t} ) )\n\t\t.pipe(rsync({\n\t\t\troot: dir,\n\t\t\tdestination: '../build/' + variation + '/',\n\t\t\t// archive: true,\n\t\t\tprogress: false,\n\t\t\tsilent: true,\n\t\t\tcompress: false,\n\t\t\trecursive: true,\n\t\t\temptyDirectories: true,\n\t\t\tclean: true,\n\t\t\texclude: ['node_modules']\n\t\t}));\n}", "title": "" }, { "docid": "cf5911f6ceb7d342eb7c73ec937ce16e", "score": "0.57319254", "text": "function main() {\n const source = fs.readFileSync(path.join(__dirname, './package.json')).toString('utf-8');\n const sourceObj = JSON.parse(source);\n\n sourceObj.private = false;\n delete sourceObj.scripts;\n delete sourceObj.devDependencies;\n delete sourceObj.devDependencies;\n delete sourceObj['standard-version'];\n\n Object.entries(sourceObj).forEach(([key, value]) => {\n if (typeof value === 'string' && value.startsWith('./dist/')) {\n sourceObj[key] = sourceObj[key].replace('./dist/', './');\n }\n });\n fs.writeFileSync(path.join(__dirname, 'dist/package.json'), Buffer.from(JSON.stringify(sourceObj, null, 2), 'utf-8').toString());\n fs.writeFileSync(path.join(__dirname, 'dist/version.md'), Buffer.from(sourceObj.version, 'utf-8').toString());\n\n fs.copyFileSync(path.join(__dirname, 'README.md'), path.join(__dirname, 'dist/README.md'));\n fs.copyFileSync(path.join(__dirname, 'CHANGELOG.md'), path.join(__dirname, 'dist/CHANGELOG.md'));\n}", "title": "" }, { "docid": "09417398a40ee3efca62620e81a19872", "score": "0.5726514", "text": "async function copyBuiltFiles() {\n await mkdir(DIST_PATH, { recursive: true })\n\n const basePath = path.resolve(process.env.BUILD_PATH, 'Build')\n\n for (const file of glob.sync('**/*', { cwd: basePath, absolute: true })) {\n copyFile(file, path.resolve(DIST_PATH, file.replace(basePath + '/', './')))\n }\n\n const streamingPath = path.resolve(process.env.BUILD_PATH, 'StreamingAssets')\n const streamingDistPath = path.resolve(DIST_PATH, 'StreamingAssets')\n\n await mkdir(streamingDistPath, { recursive: true })\n\n for (const file of glob.sync('**/*', { cwd: streamingPath, absolute: true })) {\n copyFile(file, path.resolve(streamingDistPath, file.replace(streamingPath + '/', './')))\n }\n}", "title": "" }, { "docid": "73bf6f7b084016217dae47a8d987b21f", "score": "0.570776", "text": "function _copy() {\n return gulp.src(['src/**/*']).pipe(gulp.dest(distDir));\n}", "title": "" }, { "docid": "f004b7f9ac9c94bfc135cc11622e2330", "score": "0.5699441", "text": "function copyDependencies() {\n var srcList = {\n phaser: ['phaser.min.js'],\n gyronorm: ['dist/gyronorm.min.js']\n }\n \n if (!isProduction()) {\n srcList.phaser.push('phaser.map', 'phaser.js');\n srcList.gyronorm.push('lib/gyronorm.js');\n }\n \n srcList = Object.keys(srcList).reduce(function(mapped, lib) {\n return srcList[lib].map(function(file) {\n return DEPENDENCIES_PATHS[lib] + file\n }).concat(mapped);\n }, []);\n return gulp.src(srcList)\n .pipe(gulp.dest(SCRIPTS_PATH));\n}", "title": "" }, { "docid": "528d5269578c694a2b3955a45ca98317", "score": "0.5689741", "text": "async function copy() {\n const ncp = Promise.promisify(require('ncp'));\n\n await Promise.all([\n ncp('package.json', 'build/package.json'),\n ]);\n\n if (!config.debug) {\n // production script only includes start\n replace({\n regex: /(\"scripts\": {)([^}]*)}/g,\n replacement: '\"scripts\": { ' +\n '\"start\": \"node server.js\" ' +\n '}',\n paths: ['build/package.json'],\n recursive: false,\n silent: false,\n });\n } else {\n // else include all scripts but overwrite start\n replace({\n regex: '\"start\".*',\n replacement: '\"start\": \"node server.js\",',\n paths: ['build/package.json'],\n recursive: false,\n silent: false,\n });\n }\n}", "title": "" }, { "docid": "bd1355e3fd6b629ee5600ea10f106e61", "score": "0.56851184", "text": "function copyPackageFile() {\r\n console.log('copy package file')\r\n return gulp.src('./package.json')\r\n .pipe(gulp.dest(distDir)).on('end', cleanTemp);\r\n}", "title": "" }, { "docid": "518da85eb9d708cd6a7e530fe746856c", "score": "0.5674305", "text": "function postBuild() {\n ['../dist/contracts', '../dist:cjs/contracts'].forEach(dir => {\n dir = path.join(cwd, dir);\n const contractsDir = path.join(cwd, '../src/contracts');\n copyFolderSync(contractsDir, dir);\n });\n}", "title": "" }, { "docid": "a38fa117237a8d6dcbfebee80ada8690", "score": "0.5662213", "text": "function vendorjs() {\n var paths = [];\n _.forIn(scripts.chunks, function(chunkScripts, chunkName) {\n chunkScripts.forEach(function(script) {\n var scriptFileName = scripts.paths[script];\n\n if (!fs.existsSync(__dirname + '/' + scriptFileName)) {\n\n throw console.error('Required path doesn\\'t exist: ' + __dirname + '/' + scriptFileName, script)\n }\n paths.push(scriptFileName);\n });\n });\n return gulp.src(paths)\n .pipe(concat('vendor.js'))\n .pipe(gulp.dest(\"frontend/dist/vendors\"))\n}", "title": "" }, { "docid": "9964beb902c3883ed95a02d0e34e2710", "score": "0.5641208", "text": "function build(cb) {\n return src(['src/vendor/js/*.js','src/js/**/*.js'])\n .pipe(sourcemaps.init())\n .pipe(babel())\n .pipe(minify({\n noSource: true,\n mangle: false\n }))\n .pipe(concat('lib.js'))\n .pipe(src('src/**/*.css'))\n .pipe(rev())\n .pipe(sourcemaps.write('.'))\n .pipe(src('src/**/*.html'))\n .pipe(dest('./dist/'));\n}", "title": "" }, { "docid": "74d9711bde329c4dca6b7d69589649aa", "score": "0.5641049", "text": "function copyNodeLib () {\n if (!win || !copyDevLib) return doBuild()\n\n var buildDir = path.resolve(nodeDir, buildType)\n , archNodeLibPath = path.resolve(nodeDir, arch, 'nw.lib')\n , buildNodeLibPath = path.resolve(buildDir, 'nw.lib')\n\n mkdirp(buildDir, function (err, isNew) {\n if (err) return callback(err)\n log.verbose('\"' + buildType + '\" dir needed to be created?', isNew)\n var rs = fs.createReadStream(archNodeLibPath)\n , ws = fs.createWriteStream(buildNodeLibPath)\n log.verbose('copying \"nw.lib\" for ' + arch, buildNodeLibPath)\n rs.pipe(ws)\n rs.on('error', callback)\n ws.on('error', callback)\n rs.on('end', doBuild)\n })\n }", "title": "" }, { "docid": "07be87a90757c9c760899c026a9a5c42", "score": "0.5630553", "text": "function compileVendorCSS() {\n return gulp.src(path.css.src + 'vendor.scss')\n .pipe(\n sass({}).on('error', sass.logError)\n )\n .pipe($.cssnano())\n .pipe(gulp.dest(path.css.dest))\n /*.pipe(\n gulp.src([]).pipe(gulp.dest(path.css.dest))\n )*/;\n\n}", "title": "" }, { "docid": "4c75fd4f642b615dc2859399f72f6e2f", "score": "0.5625682", "text": "function js_vendor() {\n return gulp.src(paths.js.vendor, { sourcemaps: true })\n .pipe(uglify())\n .pipe(gulp.dest(targetPath + '/assets/js/vendor', { sourcemaps: true }))\n .pipe(browserSync.stream())\n}", "title": "" }, { "docid": "c69a43bf227cd6d6239174afaf8f56d2", "score": "0.5622208", "text": "function package(cb) {\n const pkgjson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));\n delete pkgjson.scripts;\n delete pkgjson.devDependencies;\n const filepath = './dist/package.json';\n fs.writeFileSync(filepath, JSON.stringify(pkgjson, null, 2), 'utf-8');\n console.log('package.json Copied to Dist Directory');\n cb();\n}", "title": "" }, { "docid": "c596774a8d975023f473ec65b855307f", "score": "0.56193346", "text": "function vendorcss() {\r\n return gulp\r\n .src(paths.dev.vendorcss)\r\n .pipe(concat('vendor.css'))\r\n .on('error', handleError)\r\n .pipe(gulp.dest(paths.build.css));\r\n}", "title": "" }, { "docid": "59be941346bda226dd940208d7c5056c", "score": "0.5606307", "text": "async function copy() {\n await makeDir('build');\n await Promise.all([\n writeFile('build/package.json', JSON.stringify({\n private: true,\n engines: pkg.engines,\n dependencies: pkg.dependencies,\n scripts: {\n start: 'node server.js',\n pm2: 'pm2 start server.js',\n },\n }, null, 2)),\n copyFile('LICENSE.txt', 'build/LICENSE.txt'),\n copyDir('public/domain', 'build/public'),\n copyDir('src/views', 'build/views'),\n copyDir('public/libs', 'build/public/libs'),\n copyDir('public/js/vendor', 'build/public/js/vendor'),\n copyDir('public/libs/bootstrap/fonts/', 'build/public/fonts/'),\n ]);\n\n if (process.argv.includes('--watch')) {\n const watcher = chokidar.watch([\n 'public/fonts/**/*', // ok\n 'public/img/**/*', // ok\n 'public/libs/**/*', // ok\n 'public/js/vendor/**/*', // ok\n 'src/views/**/*', // ok\n 'public/less/**/*',\n ], { ignoreInitial: true });\n\n watcher.on('all', async (event, filePath) => {\n const start = new Date();\n const src = path.relative('./', filePath);\n const dist = path.join('build/', src.startsWith('src') ? path.relative('src', src) : src);\n let fileType; // 判定 less 等文件\n switch (event) {\n case 'add':\n case 'change':\n // 监听.less文件,执行编译 并 复制到build目录\n if (dist.indexOf('.less') > -1) {\n fileType = '.less';\n const realLess = dist.replace('build/', '');\n console.log('////////////....', realLess); // public/less/usa/usaCollege.less\n // less 编译监控的文件分为两种:\n // 1._开头的公共文件public/less/_mixins.less etc.),会自动编译所有引用文件;2.正常的页面less文件(public/less/usa/usaCollege.less etc.),只对该页面的less执行编译\n const privateFile = realLess.split('/')[realLess.split('/').length - 1]; // usaCollege.less or _abc.less\n if (privateFile.startsWith('_')) { // private file\n await run(lessify);\n } else {\n await run(lessify, realLess);\n }\n break;\n }\n // 监听图片,执行压缩 并 复制到build目录\n if (/\\.(ico|jpg|jpeg|png|gif|webp)(\\?.*)?$/.test(dist)) {\n const realImg = dist.replace('build/', '');\n await run(imgify, realImg);\n break;\n }\n await makeDir(path.dirname(dist));\n await copyFile(filePath, dist);\n break;\n case 'unlink':\n case 'unlinkDir':\n cleanDir(dist, { nosort: true, dot: true });\n break;\n default:\n return;\n }\n const end = new Date();\n const time = end.getTime() - start.getTime();\n\n if (fileType === '.less') {\n console.log(`[${format(end)}] ${event} '${dist.replace('build/', '')}' after ${time} ms`);\n } else {\n console.log(`[${format(end)}] ${event} '${dist}' after ${time} ms`);\n }\n });\n }\n}", "title": "" }, { "docid": "7217c129e0ce190035e26e9abff8c767", "score": "0.55739737", "text": "function copyBuid(target, dest) {\n dest = dest || config.build[target];\n\n return gulp.src([config.pages], {\n base: config.src\n })\n .pipe(targetHTML(target))\n .pipe(gulp.src([config.vendorFiles, config.assetsFiles, config.sharedFiles].concat(config.appFiles), {\n base: config.src,\n passthrough: true\n }))\n .pipe(gulp.dest(dest));\n}", "title": "" }, { "docid": "2cc41d3456c2ba4f51fe2a303e7e383d", "score": "0.55657244", "text": "function Copyfile() {\n\treturn gulp.src([\n\t\t\"app/fonts/**/*.{woff,woff2,eot,ttf,svg}\",\n\t\t\"app/img/**\",\n\t\t\"app/js/**\",\n\t\t\"app/libs/**\",\n\t\t\"app/*.html\"\n\t], {\n\t\t\tbase: \".\"\n\t\t})\n\t\t.pipe(gulp.dest(\"build\"));\n}", "title": "" }, { "docid": "5208cf2a421d748848f3829c8dab0096", "score": "0.5561112", "text": "function copyForgeDev() {\n return gulp.src(paths.forge)\n .pipe(gulp.dest(paths.tmp + '/js'));\n}", "title": "" }, { "docid": "ec83bed1629265ff7cc0a594a9b3ace6", "score": "0.5544144", "text": "function copyBuildSystem(generator) {\n generator.preferences.escapedTestFolder =\n utils.escapePathForRegex(generator.preferences.testFolder);\n\n if (generator.preferences.buildTool === 'grunt') {\n generator.fs.copy(\n generator.templatePath('common/Gruntfile.js'),\n generator.destinationPath('Gruntfile.js')\n );\n\n var dirConfig = fs.readdirSync(generator.templatePath('common/grunt-tasks/config'));\n\n // pick config static files and copy them\n var filesConfig = dirConfig.filter(function(file) { return file.indexOf('_') !== 0; });\n\n filesConfig.forEach(function(file) {\n generator.fs.copy(\n generator.templatePath('common/grunt-tasks/config/' + file),\n generator.destinationPath('grunt-tasks/config/' + file)\n );\n });\n\n //pick config tempaltes and copy them\n var templates = dirConfig\n .filter(function(file) { return file.indexOf('_') === 0; })\n .map(function(file) { return file.slice(1); });\n\n templates.forEach(function(template) {\n generator.fs.copyTpl(\n generator.templatePath('common/grunt-tasks/config/_' + template),\n generator.destinationPath('grunt-tasks/config/' + template),\n generator.preferences\n );\n });\n\n var dirRegister = fs.readdirSync(generator.templatePath('common/grunt-tasks/register'));\n var fileRegister = dirRegister.filter(function(file) { return file.indexOf('_') !== 0; });\n fileRegister.forEach(function(file) {\n generator.fs.copy(\n generator.templatePath('common/grunt-tasks/register/' + file),\n generator.destinationPath('grunt-tasks/register/' + file)\n );\n });\n\n generator.fs.copyTpl(\n generator.templatePath('common/grunt-tasks/register/_styles.js'),\n generator.destinationPath('grunt-tasks/register/styles.js'),\n generator.preferences\n );\n\n //rewrite some es6 specific files if es6 is the way\n if (generator.preferences.ecma === 6) {\n generator.fs.copy(\n generator.templatePath('es6/grunt-tasks'),\n generator.destinationPath('grunt-tasks')\n );\n }\n\n generator.fs.copyTpl(\n generator.templatePath('common/test/_karma-test-main.js'),\n generator.destinationPath('test/karma' + utils.delimiter + 'test' + utils.delimiter + 'main.js'),\n generator.preferences\n );\n } else if (generator.preferences.buildTool === 'gulp') {\n generator.fs.copyTpl(\n generator.templatePath('gulp/_Gulpfile.js'),\n generator.destinationPath('Gulpfile.js'),\n generator.preferences\n );\n\n generator.fs.copyTpl(\n generator.templatePath('common/test/_karma-test-main.js'),\n generator.destinationPath('test/karma' + utils.delimiter + 'test' + utils.delimiter + 'main.js'),\n generator.preferences\n );\n } else if (generator.preferences.buildTool === 'webpack') {\n generator.fs.copyTpl(\n generator.templatePath('webpack/app/index.html'),\n generator.destinationPath('app/index.html'),\n generator.preferences\n );\n\n generator.fs.copyTpl(\n generator.templatePath('webpack/_Gruntfile.js'),\n generator.destinationPath('Gruntfile.js'),\n generator.preferences\n );\n\n generator.fs.copyTpl(\n generator.templatePath('webpack/_webpack.config.js'),\n generator.destinationPath('webpack.config.js'),\n generator.preferences\n );\n\n generator.fs.copyTpl(\n generator.templatePath('webpack/app/scripts/_main.js'),\n generator.destinationPath('app/scripts/main.js'),\n generator.preferences\n );\n }\n}", "title": "" }, { "docid": "03d1e6b5377444a4c9758edf8dbf3022", "score": "0.55421066", "text": "static npminstall ( name, version, scope ) {\n\n }", "title": "" }, { "docid": "946f529e93843241ebd38752793f117b", "score": "0.5534786", "text": "function copy() {\n\treturn gulp.src(PATHS.assets)\n\t\t.pipe(gulp.dest(PATHS.dist + '/'));\n}", "title": "" }, { "docid": "bb65f68cd80290478eda55a0e96bcebd", "score": "0.5503059", "text": "function copyStatic () {\n return src(static).pipe(dest('build'))\n}", "title": "" }, { "docid": "bdefcd3c752d755438b6cd1a49bdefa4", "score": "0.54948646", "text": "function copyPublic(cb) {\n src(\"src/public/**/*\")\n .pipe(dest(\"dist\"));\n cb();\n }", "title": "" }, { "docid": "be4e3ce730181e48597752d50af1dfa4", "score": "0.5493", "text": "async function build({ projectName }) {\n try {\n let cwd = process.cwd();\n let dist = path.resolve(cwd, projectName);\n await fse.copy(path.resolve(__dirname, \"../project_template\"), dist);\n let r = await fse.readFile(dist + \"/package.json\",'utf-8');\n await fse.writeFile(\n dist + \"/package.json\",\n r.replace(/vue-element-base/g, projectName)\n );\n\n console.log(chalk.green(\"√ 项目初始化成功\"));\n } catch (err) {\n console.error(err);\n process.exit(1);\n }\n}", "title": "" }, { "docid": "484170dd19c1df9b5a839676c0d7e514", "score": "0.5470829", "text": "function copyAssets() {\n\n return gulp.src(ASSETS_PATH + '/**/*')\n .pipe(gulpif(isProduction(), imagemin({\n progressive: true\n })))\n .pipe(gulp.dest(BUILD_PATH + '/' + ASSETS_PATH));\n}", "title": "" }, { "docid": "8d61e078f195764ced49db05d2fae5f5", "score": "0.5465427", "text": "function buildDeps() {\n // const subsDist = path.join(__dirname, 'node_modules/substance/dist')\n // if (!fs.existsSync(path.join(subsDist,'substance.js')) ||\n // !fs.existsSync(path.join(subsDist, 'substance.cjs.js'))) {\n // b.make('substance')\n // }\n}", "title": "" }, { "docid": "0d5a0deb4f57b7bdd6dcde41e33ba136", "score": "0.54473656", "text": "function buildStatic() {\n for( from in paths.app.copy ) {\n var to = paths.app.copy[ from ];\n if ( from ) {\n gulp.src( from )\n .pipe( gulp.dest( to ) )\n .pipe( browserSync.stream() );\n }\n }\n\n\treturn\n}", "title": "" }, { "docid": "a6199010bdd4582d779f8c223956030c", "score": "0.5434117", "text": "function preBuild() {\n // Create or clear `src/deployment` and `src/abi` directories\n ['../src/deployment', '../src/abi'].forEach(dir => {\n const absPath = path.join(cwd, dir);\n if (!fs.existsSync(absPath)) {\n fs.mkdirSync(absPath);\n } else {\n fs.readdirSync(absPath).map(file => fs.unlinkSync(path.join(absPath, file)));\n }\n });\n\n // Copy deployment files from `raiden-contracts`\n const dataDirectoryPath = path.join(cwd, '../raiden-contracts/raiden_contracts/data/');\n fs.readdirSync(dataDirectoryPath)\n .filter(fileName => fileName.includes('deployment_'))\n .forEach(fileName =>\n fs.copyFileSync(\n path.join(dataDirectoryPath, fileName),\n path.join(cwd, `../src/deployment/${fileName}`),\n ),\n );\n\n // Split contracts.json from `raiden-contracts`\n const { contracts } = require(path.join(\n cwd,\n '../raiden-contracts/raiden_contracts/data/contracts.json',\n ));\n\n Object.keys(contracts)\n .filter(contractName => !contractName.includes('Test'))\n .forEach(contractName =>\n fs.writeFileSync(\n path.join(cwd, `../src/abi/${contractName}.json`),\n JSON.stringify(contracts[contractName].abi, null, 2),\n ),\n );\n}", "title": "" }, { "docid": "1d7c90cccd6e083f0502164ae08ddc08", "score": "0.53871447", "text": "function copy(){\n return src(PATHS.src.copy, { base: PATHS.src_dir })\n .pipe(dest(PATHS.dest.copy));\n}", "title": "" }, { "docid": "3360fe99657985337e12b00ab96681b5", "score": "0.53678733", "text": "function prod_dist_move_lib_fa() {\n return src('WFOTool_ui/src/dist/lib/fontawesome-free-5.10.1-web/**/*.*')\n .pipe(dest('WFOTool_ui/src/prod/lib/fontawesome-free-5.10.1-web/'))\n}", "title": "" }, { "docid": "dccfdcc33e365b083956bc4ea9e69152", "score": "0.53631437", "text": "function install() {}", "title": "" }, { "docid": "dccfdcc33e365b083956bc4ea9e69152", "score": "0.53631437", "text": "function install() {}", "title": "" }, { "docid": "dccfdcc33e365b083956bc4ea9e69152", "score": "0.53631437", "text": "function install() {}", "title": "" }, { "docid": "d2625291455529840c8b479759dc35a3", "score": "0.53595865", "text": "function copysrc(){\n\n return gulp.src([\n \"./src/**/*\",\n \"!./src/js{,/**}*\",\n \"!./src/scss{,/**}\",\n \"!./src/pages{,/**}\"\n ])\n .pipe(gulp.dest(\"./www\"))\n .pipe(browsersync.stream());\n}", "title": "" }, { "docid": "d51c3f519ae530f2eaebd654df21b9f0", "score": "0.53543776", "text": "function bundle() {\n let c = b\n .bundle()\n .pipe(source(suffixInProd(config.commonFilename))); // common bundle filename\n if (debug) {\n // Add separate sourcemap file if dev (debug) mode\n c = c.pipe(buffer()).pipe(sourcemaps.init({loadMaps: debug}))\n .pipe(sourcemaps.write('./'));\n }\n c= c.pipe(gulp.dest(`${config.destDir}`))\n .on('end', checkTaskEnd);\n\n return c;\n }", "title": "" }, { "docid": "b6045c2f55ab1fd04bef5b851c324b74", "score": "0.5351499", "text": "function Bower() { }", "title": "" }, { "docid": "4cbea43fd0bd2fcfaaeff72d0fed9654", "score": "0.5348808", "text": "function o() {\n return src([paths.wpCheckjs, \"!\" + paths.dist], { base: \".\" })\n .pipe(concat(paths.concat)) \n .pipe(gulp.dest(\".\"));\n}", "title": "" }, { "docid": "fc55b4b9e90a3605de6c91108ec25671", "score": "0.53447086", "text": "function prod_dist_clean() {\n return src('WFOTool_ui/src/prod/', { read: false })\n .pipe(clean())\n}", "title": "" }, { "docid": "003ddafdf00af6ac8ca8ade36b9d456b", "score": "0.5337758", "text": "function concatBuild(appName) {\n var assets = useref.assets({searchPath: config.src});\n\n return gulp.src([config.src + appName + '.html'], {\n base: config.src\n })\n .pipe(rename('index.html'))\n // remove some of the html block\n .pipe(targetHTML('live'))\n // Concat scrips (css and js).\n .pipe(assets)\n .pipe(assets.restore())\n .pipe(useref())\n // Add compiled html templates and svg icons into app.js\n .pipe(gulpIf(/app\\.js/, compilers[appName]()))\n // Add ace assets\n .pipe(gulp.src(config.ace.assets, {\n base: config.ace.base,\n passthrough: true\n }));\n}", "title": "" }, { "docid": "7a4f7cfb29ad1b186e88874adf6e3817", "score": "0.5330767", "text": "function copySystemJSLib() {\n return gulp.src(\n [\n 'system.src.js',\n 'system-polyfills.js'\n ], { cwd: \"node_modules/systemjs/dist/\" })\n .pipe(concat('systemjs.lib.js'))\n .pipe(gulp.dest(conf.path.tmp('build')))\n .pipe(gulp.dest(conf.path.dist('/assets/js')));\n}", "title": "" }, { "docid": "78ad98a0936399a4660654c70d811259", "score": "0.5328701", "text": "function copyResource() {\n return src(paths.resources)\n .pipe(dest(paths.dist));\n}", "title": "" }, { "docid": "b3f14fe8f73206cd2d47b2f0a445a758", "score": "0.53229856", "text": "function dist_javascript() {\n return src('WFOTool_ui/src/dev/**/*.js')\n .pipe(babel({\n presets: ['@babel/preset-env']\n }))\n //\n .pipe(replace(localurl, function () {\n return disturl\n }))\n .pipe(dest('WFOTool_ui/src/dist/'))\n}", "title": "" }, { "docid": "1972caf5f1fc929151dc059f8ff2d086", "score": "0.5308135", "text": "function copyPhaser() {\n\n var srcList = ['phaser.min.js'];\n \n if (!isProduction()) {\n srcList.push('phaser.map', 'phaser.js');\n }\n \n srcList = srcList.map(function(file) {\n return PHASER_PATH + file;\n });\n \n return gulp.src(srcList)\n .pipe(gulp.dest(SCRIPTS_PATH));\n\n}", "title": "" }, { "docid": "dde4fed15fd97878e14f06234047abf3", "score": "0.5307147", "text": "async concat() {\n const input = [].join(\" \");\n const output = `${config.assetsDir}/${config.stylesDir}/vendor.min.css`;\n const type = \"Build (Vendor)\";\n const desc = \"Vendor CSS (concatenate + minify)\";\n\n console.log(\n `\\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`\n );\n\n if (input === \"\") {\n console.log(`No vendor CSS to bundle.`);\n } else {\n // Cleancss chokes if the output directory is not present\n sh(`mkdirp ${config.assetsDir}/${config.stylesDir}`);\n return sh(`cleancss ${input} -o ${output}`, { async: true });\n }\n }", "title": "" }, { "docid": "2ad24aa75d4ba5df04e994305f54e599", "score": "0.5303772", "text": "install() {\n\t\tthis.installDependencies({\n\t\t\tbower: false,\n\t\t});\n\t}", "title": "" }, { "docid": "bd757e8eba2c8b08265db1764c55a4d8", "score": "0.5298356", "text": "function copyTargets(buildInfo) {\n buildInfo.builtTargets.forEach(function (target) {\n var src = path.join(rootDir, target),\n dst = path.join(rootDir, 'dist', path.basename(target));\n\n fse.copySync(src, dst);\n });\n }", "title": "" }, { "docid": "4ffb4f5fbbfb49081cce0aea1c08e651", "score": "0.52831453", "text": "function copyFiles() {\n paths.forEach((path) => {\n const dest = path.replace('src/app/', 'src/compiler-output/app/');\n\n fs.copyFileSync(path, dest);\n })\n}", "title": "" }, { "docid": "4adef1fe0f9a74f096a5f9519d935520", "score": "0.52822113", "text": "function buildDist() {\n var destProject = `./project/`;\n gulp.src(`./project/*`).pipe(clean({forse: true}))\n \n setTimeout(function () {\n gulp.src(`${devPath}/**/*.*`).pipe(gulp.dest(`./project/`));\n }, 3000);\n}", "title": "" }, { "docid": "223bf4bce7c40cf98a2b8e62aa2d9311", "score": "0.52733135", "text": "async copyApplication (ignoreFunc) {\n debug(`Copying application to ${this.stagingAppDir}`)\n\n return error.wrapError('copying application directory', async () => {\n await fs.ensureDir(this.stagingAppDir, '0755')\n return fs.copy(this.sourceDir, this.stagingAppDir, { filter: ignoreFunc })\n })\n }", "title": "" }, { "docid": "84e8b307ea21de15aab0afd4c6c81da6", "score": "0.52717423", "text": "function setVendor() {\n if (location.host === 'github.com') {\n vendor = TC_CLIB_GITHUB;\n }\n}", "title": "" }, { "docid": "25d85d85c77b02b73a2d0532b298fa59", "score": "0.52638453", "text": "function install (callback) {\n if (!notified) notify()\n notified = true\n // Disable per-function shared file copying; handled project-wide elsewhere\n let copyShared = false\n // Disable sidecar shared/views hydration; handled project-wide elsewhere\n let hydrateShared = path === shared || path === views || false\n hydrate.install({ cwd, inventory, basepath: path, copyShared, hydrateShared, quiet }, callback)\n }", "title": "" }, { "docid": "25a393a9638f978950be1ef9d5846a85", "score": "0.52624404", "text": "function injectProd(){\n\tvar sources = gulp.src(['./dist/lib/**/*'],{read:false});\n\t\n\treturn gulp.src('./src/index.html')\n \n\t\t.pipe($.inject(sources, {ignorePath:['dist'], addRootSlash:false}))\n \n .pipe($.minifyHtml())\n\t\t.pipe(gulp.dest('./dist'));\n}", "title": "" }, { "docid": "10cc52e68b73abb84d19482fc013f6ba", "score": "0.52608013", "text": "function moveExtra() {\n return pipe('./src/extra/**/*', `./build/${target}/extra`);\n}", "title": "" }, { "docid": "705043fd3d856130c2ecd12cef04e2b5", "score": "0.5252965", "text": "function sass_vendor() {\n return gulp.src(paths.sass.vendor)\n .pipe(sourcemaps.init())\n .pipe(sass({\n outputStyle: 'compressed'\n }).on('error scss', sass.logError))\n .pipe(postcss([cssnano()]))\n .pipe(sourcemaps.write('./maps'))\n .pipe(gulp.dest(targetPath + '/assets/css/vendor'))\n .pipe(browserSync.stream())\n}", "title": "" }, { "docid": "4dbe52a80fd0559e3e172b01f83736e6", "score": "0.5250752", "text": "function prod_dist_move_lib_norm() {\n return src('WFOTool_ui/src/dist/lib/normalize_8.0.1.css')\n .pipe(dest('WFOTool_ui/src/prod/lib/'))\n}", "title": "" }, { "docid": "9fd539046ef687624bb67358f0d0c410", "score": "0.5245547", "text": "function bundle() {\n return src(themeBuildPath + '**/*.*')\n .pipe(zip(theme.name + '-' + package.version + '.zip'))\n .pipe(dest('out' + fileSep));\n}", "title": "" }, { "docid": "1f9522139443eba799087eab6c62edd4", "score": "0.524139", "text": "function copyPackage(pkg) {\n return renamePackage(pkg, pkg);\n}", "title": "" }, { "docid": "94ecdbc9e67201c190df03812af7d943", "score": "0.5239452", "text": "function copyAssets() {\n\treturn gulp\n\t\t.src(['./src/assets/**/*'])\n\t\t.pipe(gulp.dest(`${paths.dist}assets/`));\n}", "title": "" }, { "docid": "b53b07924692ff2b00d0386827f2f6a5", "score": "0.52367723", "text": "install() {}", "title": "" }, { "docid": "a6906bb31ef5f6e1b6d49316843c5f05", "score": "0.52310234", "text": "function buildDistBrowserJs(cb) {\n\n console.log(`Building distributable browser component from '${src.sourceFolder}...'`);\n\n // Using browserify to compile code.\n const bundle = browserify({\n entries: [src.entryPoint],\n debug: false\n });\n\n // We're using pug as our templating engine, so we use\n // pugify here to ensure that pug files are correctly\n // transformed.\n var stream = bundle.transform(pugify.pug({\n compileDebug: false\n }))\n\n // We're allowing for CSS in our themes, so we need to\n // transform it into deployable code.\n .transform(require(\"browserify-css\"), {\n // Minify (compress) CSS.\n minify: true,\n // If this were set to true, the code would inject\n // a style tag for each CSS file found.\n autoInject: false,\n // We want to include encoded images in our output,\n // so that we don't have to deal with external\n // URLs.\n inlineImages: true\n })\n .bundle();\n\n // When the stream has finished, we want to resolve the promise so that the\n // task completes successfully.\n stream.on(\"end\", () => {\n console.log(`Finished building distributable component from '${src.sourceFolder}'.`);\n cb();\n });\n\n stream\n .pipe(source(`${src.destinationFilename}.min.js`))\n .pipe(buffer())\n // We want to compress the output, so we use the\n // terser plugin.\n .pipe(terser({\n // Compress the output (remove spaces etc).\n compress: true,\n // Obfuscate variable names where possible.\n mangle: true\n }))\n .pipe(gulp.dest(distPaths.destinationBrowserJsFolder));\n}", "title": "" }, { "docid": "cc75e4b5d3c8e6b27d7d7a554abb0678", "score": "0.5225037", "text": "function prod_dist_compile_lib() {\n return src('WFOTool_ui/src/dist/lib/**/*.js')\n .pipe(babel({\n presets: ['@babel/preset-env']\n }))\n .pipe(uglify({ mangle: false }))\n .pipe(dest('WFOTool_ui/src/prod/lib/'))\n}", "title": "" }, { "docid": "0349585b8d22d567b81d6424ae91ef06", "score": "0.522168", "text": "function xar () {\n return src('build/**/*', {base: 'build'})\n .pipe(zip(packageName()))\n .pipe(dest('.'))\n}", "title": "" }, { "docid": "32c30526b66126d19a8bc00d447bd736", "score": "0.52069986", "text": "function copyStatic() {\n return gulp.src(STATIC_PATH + '/**/*')\n .pipe(gulp.dest(BUILD_PATH));\n}", "title": "" }, { "docid": "a08c6dc13a0b27fa09101d0ebb67a4b5", "score": "0.5201675", "text": "function copyClrFiles() {\n return gulp.src(bldPaths.tmpMacOsPath('*.clr'))\n .pipe(gulp.dest(bldApi.distPath('macOS')));\n}", "title": "" }, { "docid": "ecb16b240b35cb395e92fdfa4d0e068b", "score": "0.52008146", "text": "function copyArtifact(source, target) {\n\tfs.copy(source, target, function (err) {\n\t if (err) {\n\t console.error(err);\n\t } else {\n\t console.log(\"success!\");\n\t }\n\t}); //copies directory, even if it has subdirectories or files}\n}", "title": "" }, { "docid": "e6f6b1d2e75543ae0170593c74cfbd6a", "score": "0.51968354", "text": "static async export(opts) {\n return new CopySrc(opts).init();\n }", "title": "" } ]
c6511416441dedf212220511768d3233
click event for player
[ { "docid": "98ba3bafe96332543cb899879ba923e8", "score": "0.0", "text": "function turnClick(square){\n if(typeof board[square.target.id] === 'number'){ \n // console.log(square.target.id);\n turn(square.target.id, player)\n if(!checkTie()) turn(bestSpot(), aiPlayer);\n }\n}", "title": "" } ]
[ { "docid": "477accb025e09bbb884ad5da75fb3d19", "score": "0.73108184", "text": "function mouseClicked() {\n if (playButton) {\n //code to run\n }\n}", "title": "" }, { "docid": "97ff2c3824759a4c1836bd499de6046c", "score": "0.70785683", "text": "function playerTurn(event) {\n\n}", "title": "" }, { "docid": "86fe255b286f32cab51ec95f97d7b4e4", "score": "0.705309", "text": "function mouseClicked(e){\n\tmouseX = e.pageX - canvasBg1.offsetLeft;\n\tmouseY = e.pageY - canvasBg1.offsetTop;\n\tif(!isPlaying){\n\t\tif(btnPlay.checkClicked()){\n\t\t\ton = true;\n\t\t\tplayGame();\n\t\t\tcurrent = 1;\n\t\t}\n\t}\n\tif(!isPlaying){\n\t\tif(btnPlay1.checkClicked()){\n\t\t\ton = true;\n\t\t\tplayGame();\n\t\t\tcurrent = 2;\n\t\t}\n\t}\n\tif(!isPlaying){\n\t\tif(btnVolumeOn.checkClicked()){\n\t\t\tturnVolumeOff();\n\t\t}\n\t}\n\tif(!isPlaying){\n\t\tif(btnVolumeOff.checkClicked()){\n\t\t\tturnVolumeOn();\n\t\t}\n\t}\n}", "title": "" }, { "docid": "08138dcd3c690ee0b19463ccb515991a", "score": "0.7052812", "text": "function playerSelect(e) {\n playerSelection = e.currentTarget.id;\n playRound();\n}", "title": "" }, { "docid": "3a08c06e7b2b9e3c53731192ae657ec9", "score": "0.7048828", "text": "handleClick(e){\n\t\tconsole.log(e.target);\n\t\t// TODO: handleClick should update state for the square that was clicked and advance the turn to the next player\n\t}", "title": "" }, { "docid": "07a9f27fe6647fcc4928ed6591aaba93", "score": "0.70108867", "text": "function panelClick() {\n if (pressFlag) {\n player.push(this.dataset.id);\n displayColor(this);\n checkAnswer();\n }\n}", "title": "" }, { "docid": "9026f5edb10437aa974b1c4be3ef741d", "score": "0.6970473", "text": "function idClick(j1){\n\t\t\tevent.target.classList.toggle(\"player1\");\n\t\t\tpts=1;\n\t\t\t//console.log(\"case \"+ event.target.id);\n\t\t\treturn pts;\n\t\t}", "title": "" }, { "docid": "b606a19aa5299627abf847fb3d6d6e7d", "score": "0.69426113", "text": "function click(e) {\n let offset = getPosition(canvas) //postion du canvas dans toute la page\n let colonne = Math.floor((e.clientX - offset[0]) / (400/7))\n \n\n if (selfLeader) {\n Case(colonne, playerRole)\n } else {\n TransmitData({\n type: \"case\",\n x: colonne,\n playerRole: playerRole\n })\n }\n}", "title": "" }, { "docid": "f359c4c36edaa5d05a4f0a48030c0792", "score": "0.6911801", "text": "function mouseClicked(e) {\n\tmouseX = e.pageX - canvasBg.offsetLeft;\n\tmouseY = e.pageY - canvasBg.offsetTop;\n\tif(btnPlay.checkClicked() && isPlaying=== false){\n\t\tplayGame();\n\t\tisPlaying==true;\n\t}\n}", "title": "" }, { "docid": "6c4202f633f323c4eceede57ab95e21a", "score": "0.68985724", "text": "function C999_Common_Player_Click() {\n\t\n\t// Can allow to click on inventory from the player screen\n\tInventoryClick(GetClickedInventory(), LeaveChapter, LeaveScreen);\n\t\n\t// Tab navigation\n\tif ((MouseX >= 1) && (MouseX <= 199) && (MouseY >= 1) && (MouseY <= 49)) C999_Common_Player_ActiveTab = \"Profile\";\n\tif ((MouseX >= 201) && (MouseX <= 399) && (MouseY >= 1) && (MouseY <= 49)) C999_Common_Player_ActiveTab = \"Relationships\";\n\tif ((MouseX >= 401) && (MouseX <= 599) && (MouseY >= 1) && (MouseY <= 49)) C999_Common_Player_ActiveTab = \"KinbakuClub\";\n\n}", "title": "" }, { "docid": "f7d7f37bed618580d623214dfbc7f9e2", "score": "0.6812441", "text": "function player1ClickDisplay() {\n var elem = document.getElementById(this.dataset.num);\n elem.click();\n}", "title": "" }, { "docid": "84c07ad722712d6f6d4acef636b53ee0", "score": "0.6806796", "text": "onMouseClick(e)\n\t{\n\t\tself.player.fireLaser();\t\n\t\t\n\n\t\t// DEBUGGING DELETE\n\t\t\n\t\t//console.log(\"Angle:\", self.player.angle);\n\t\t//console.log(\"MOUSE X:\", self.mouseX );\n\t\t//console.log(\"Mouse Y:\", self.mouseY);\n\t\t\n\t\t//console.log(\"PLAYER X:\", self.player.x);\n\t\t//console.log(\"PLAYER Y:\", self.player.y);\n\t\t\n\t\t//console.log(self.mainRect.x, self.mainRect.y, self.mainRect.width, self.mainRect.height);\n\t\t//console.log(self.camX);\n\t\t\n\t\t//console.log(\"TOTAL METEORS:\", self.meteorList.length);\n\n\t}", "title": "" }, { "docid": "ec68f947754fa9359434d9faadd835e6", "score": "0.6791042", "text": "function mouseClicked() {\n player.attack(playerData.attacks.peck);\n}", "title": "" }, { "docid": "1b1c684e2d8d5d7d8d128d860a1e3a05", "score": "0.6765277", "text": "function playerClick(color) {\r\n playColorSound(color);\r\n animatePress(color);\r\n}", "title": "" }, { "docid": "ef8385a3cdb66d0ace841e17b948f80b", "score": "0.676208", "text": "function playClick() {\n click.pause();\n click.currentTime = 0;\n click.play();\n}", "title": "" }, { "docid": "41164f5043b52fbb0f44000e15dd41bb", "score": "0.67492807", "text": "function player2ClickDisplay() {\n var elem = document.getElementById(this.dataset.num);\n elem.click();\n}", "title": "" }, { "docid": "e3868fcf2096f5933816a17f6aefe21e", "score": "0.67166907", "text": "function clicked(cat) {\n //if its this users turn inform server of user selection\n if (user.user.userId == user.user.game.pturn) {\n console.log(\"my turn\");\n manager.playermove(\n cat,\n parseInt(user.user.userId),\n user.user.game.gameName\n );\n } else {\n console.log(\"not your turn\");\n }\n}", "title": "" }, { "docid": "08934c6059bc62be5fa52db4a40a2328", "score": "0.6700358", "text": "function displayPlayer (player) {\n document.getElementById(\"clickedPlayer\").innerHTML = player;\n}", "title": "" }, { "docid": "764f0c7d213944c95fc3f49901151937", "score": "0.6671831", "text": "function listener_play() {\n\tvar boton = document.getElementsByClassName('play');\n\tfor (var i=0; i<boton.length; i++) {\n\t\tboton[i].addEventListener('click', playAction);\t\n\t}\n}", "title": "" }, { "docid": "17c9ed9c09c30b590ecfb1c723d73139", "score": "0.6632663", "text": "function on_button_play ( e ) {\n\n if ( typeof e !== 'undefined' ) {\n player_playing = !player_playing;\n\n var button_play = RootContainer.getElementsByClassName ( 'play-pause' )[0];\n if ( player_playing ) {\n button_play.classList.remove ( 'icon-play' );\n button_play.classList.add ( 'icon-pause' );\n } else {\n button_play.classList.remove ( 'icon-pause' );\n button_play.classList.add ( 'icon-play' );\n }\n }\n\n if ( player_playing ) {\n if ( player_step >= player_steps.length ) {\n on_button_stop ( );\n return;\n }\n\n var span_step = RootContainer.getElementsByClassName ( 'step_' + player_step )[0];\n\n core.Move ( player_steps [ player_step ], true, function ( ) {\n if ( typeof span_step !== 'undefined' ) {\n span_step.classList.add ( 'current-step' );\n }\n }, function ( ) {\n player_step++;\n\n if ( typeof span_step !== 'undefined' )\n span_step.classList.remove ( 'current-step' );\n\n on_button_play ( );\n } );\n }\n\n }", "title": "" }, { "docid": "4c10a4c7e8755d362a919ce73dbb6caf", "score": "0.6614018", "text": "isClickable() {\n return !this.player;\n }", "title": "" }, { "docid": "5a2a3cbd6f682cdd1188c3bc5b0c4d67", "score": "0.6595955", "text": "function mouseClick() {\n if (thisPlayer.id !== null)\n {\n xTile = Math.floor(thisPlayer.x / Viewport.objective_tileLength);\n yTile = Math.floor(thisPlayer.y / Viewport.objective_tileLength);\n if (xTile < Map.gridWidth && xTile >= 0 && yTile < Map.gridHeight && yTile >= 0)\n {\n if (Map.board[yTile][xTile] === 0) {\n Map.board[yTile][xTile] = 't';\n socket.emit('1', {x:xTile, y:yTile});\n }\n }\n }\n}", "title": "" }, { "docid": "8599a1cf98e3da65303253365a842881", "score": "0.65843534", "text": "function addPlayerClick(peek){\n g_PlayerClickBox.push(peek);\n}", "title": "" }, { "docid": "d39323aae8df5a017345e663d48a48ad", "score": "0.65733236", "text": "function mouseClick(event) {\n\tvar rect = canvas.getBoundingClientRect();\n\tvar adjX = (event.clientX - rect.left) / pixelWidth;\n\tvar adjY = (event.clientY - rect.top) / pixelHeight;\n\n\tif (adjY > 1/2){\n\t\tif(adjX < 1/2){\n\t\t\tplayerLeft();\n\t\t}else{\n\t\t\tplayerRight();\n\t\t}\n\t}else{\n\t\tif(adjX < 1/2){\n\t\t\tblockLeft();\n\t\t}else{\n\t\t\tblockRight();\n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "ba0c115b9d4ff50b0e3d6184ddd60437", "score": "0.656427", "text": "function jogClick(){\n\tstep = 0;\n\tif(curPlayer.stamina.current > 0){\n\t\tstep = curPlayer.jogStride;\n\t}else{\n\t\tstep = curPlayer.walkStride;\n\t}\n\tif($('#runButton').hasClass('hidden')){\n\t\t$('#runButton').fadeIn('slow');\n\t\t$('#runButton').removeClass('hidden');\n\t}\n\tcurPlayer.distance.current += step;\n\tcurPlayer.moving = true;\n\tcurPlayer.walking = false;\n\tcurPlayer.jogging = true;\n\tcurPlayer.running = false;\n\tupdateStats();\n}", "title": "" }, { "docid": "e2614bcc520cdd1273ff014006ab594c", "score": "0.65599877", "text": "function objVideoPlayClick(objButton){\n\t\tvar objSlide = objButton.parent();\n\t\tt.startSlideAction(objSlide);\n\t}", "title": "" }, { "docid": "e2614bcc520cdd1273ff014006ab594c", "score": "0.65599877", "text": "function objVideoPlayClick(objButton){\n\t\tvar objSlide = objButton.parent();\n\t\tt.startSlideAction(objSlide);\n\t}", "title": "" }, { "docid": "6b9452f535cd1376e94cde01acd917c7", "score": "0.65589154", "text": "function onPlayerReady(event) {\n $('.playerContainer').on('click', function(){\n event.target.playVideo();\n })\n $('.'+vidUrl).on('click', function(){\n event.target.stopVideo();\n })\n }", "title": "" }, { "docid": "1a53d2150d34410320e103010ff946fa", "score": "0.6539483", "text": "function onclick( ev ) {\n var t = ev.target;\n if ( gamestate === 'gameover' ) {\n if ( t.id === 'replay' ) { showintro(); }\n }\n if ( t.className === 'next' ) { instructionsnext(); }\n if ( t.className === 'endinstructions' ) { instructionsdone(); }\n if ( t.id === 'instructionbutton' ) { showinstructions(); }\n if ( t.id === 'playbutton' ) { startgame(); }\n ev.preventDefault();\n }", "title": "" }, { "docid": "9d1bc5c5155dd4a84295bc358632fe96", "score": "0.6538119", "text": "function fl_ClickToGoToAndPlayFromFrame() {\n\t\t\tthis.gotoAndPlay(55);\n\t\t}", "title": "" }, { "docid": "e8f8fca9033e666cad2bceb9c93e9b95", "score": "0.6509001", "text": "function clicked(evt) {\n\n\t \t\ttotalClicks();\n\t\t \tnClick +=1;\n\t\t \tvar card = evt.target;\n\t\t \tcard.parentElement.classList.add(\"open\",\"show\");\n\n\t\t \t// I'm flipping the cards back after 1.2 seconds, for a greater difficulty\n\t\t \t// and forcing the app to debug itself on the go :)\n\t\t \tsetTimeout(function() {\n\t\t \t\tcard.parentElement.classList.remove(\"open\",\"show\");\n\t\t \t}, 1200);\n\t\t \topenCard(card);\n\n\t }", "title": "" }, { "docid": "8aa1678dbc21984ddb881e990d0588aa", "score": "0.65026224", "text": "function mousePressed(){\n clicksound.play();\n}", "title": "" }, { "docid": "415170f85a08aac41b1d3520fcf5e456", "score": "0.65007496", "text": "function play_on_click() {\n game_running = true; // single player, allow them to move immediately\n const x = document.getElementById('main-side-panel');\n x.setAttribute('style', 'display: none');\n\n game_mode = GameMode.play; // Set the game mode to play: play the game solo\n lock_speed(5);\n set_scene(\"bsp\");\n}", "title": "" }, { "docid": "b6ec0f32e3dbd479742f13b8eaef0025", "score": "0.64987385", "text": "function clickHandler(e) {\n\tif (e.target) {\n\t\tif (!hasGameStarted) {\n\t\t\tdraw();\n\t\t\thasGameStarted = true;\n\t\t} else if (hasGameStarted) {\n\t\t\t// Do nothing\n\t\t}\n\t}\n}", "title": "" }, { "docid": "7b73b4cafec864c95c57407c47183010", "score": "0.6496862", "text": "function clickFunction() {\n playing = false;\n background(instructionImage);\n backgroundMusic.stop();\n //\n textFont(font);\n fill(255);\n textAlign(CENTER, TOP);\n textSize(30);\n text(\"click the button to play!\", 320, 380);\n //button for play\n push();\n button1 = createButton(\"play\");\n button1.position(310, 440);\n button1.mouseClicked(playPressed);\n //to remove button of instructions\n button.remove();\n pop();\n}", "title": "" }, { "docid": "533585d87a0c605409a58db205518963", "score": "0.6484201", "text": "function eventHandler(e) {\n switch (e.data.type) {\n case 'SC_PLAY':\n updateNowPlaying(e.data.metadata);\n break;\n case 'SC_PAUSE':\n default:\n break;\n }\n }", "title": "" }, { "docid": "40b0d86a1a2c3da7fe14ad98407e8e79", "score": "0.64779896", "text": "function playerTurn() {\n\n $(box).off().on(\"click\", function(e) {\n\n if ($(e.target).hasClass(\"free\")) {\n $(this).removeClass(\"free\");\n $(this).addClass(\"playerMove\");\n $(this).prepend(playerIcon);\n\n turn = 2;\n\n checkDraw();\n checkWin();\n checkTurn();\n\n } else {\n\n flashBox(this);\n checkTurn();\n }\n });\n }", "title": "" }, { "docid": "85a60cf1b50349accf4331af5b803d69", "score": "0.64699894", "text": "function clickHandler(e) {\n let audio = this.querySelector('audio');\n if (audio.paused) audio.play();\n else audio.pause();\n}", "title": "" }, { "docid": "c14e99724ed4fb0c4ad35715b13955c8", "score": "0.6465733", "text": "function playerClick() {\n var playerStep = $(this).data('num');\n playerSeq.push(playerStep);\n dispPlayerStep(playerStep);\n if (sequence[index] === playerSeq[index]) {\n index++;\n } else {\n playSound('wrong');\n if(strict){\n console.log(strict);\n resetGame();\n giveSteps();\n return;\n }\n playerSeq.length = 0;\n index = 0;\n dispSequence();\n return;\n }\n if (index === sequence.length) {\n rounds++;\n $('.display').html(\"ROUND:&nbsp;\"+rounds);\n if (rounds === 5) {\n $('.display').html(\"YOU WIN!!\");\n\n return;\n }\n index = 0;\n playerSeq.length = 0;\n giveSteps();\n }\n }", "title": "" }, { "docid": "85773fe71dcb679360811093a88c8457", "score": "0.6455533", "text": "async function onPlayClick(ev) {\n const currentId = $(ev.target).parent().data('id');\n\n // TODO...\n try {\n const currentPlayer = await $.ajax({\n method: 'GET',\n url: `${baseUrl}/${appKey}/${collection}/${currentId}`,\n headers: {\n Authorization: authString,\n },\n });\n saving(currentId); ///////\n showCanvasSaveReload();\n loadCanvas({\n name: currentPlayer.name,\n money: Number(currentPlayer.money),\n bullets: Number(currentPlayer.bullets),\n });\n } catch (error) {\n console.log(error);\n }\n }", "title": "" }, { "docid": "75e87d725bb61bb8859e523921d4576a", "score": "0.6452674", "text": "function turnClick(square){\n turn(square.target.id, humanPlayer);\n}", "title": "" }, { "docid": "0baff221e1f13525be56037ea66a1329", "score": "0.64493185", "text": "function play_song(e) {\n\n\n}", "title": "" }, { "docid": "26029ed1c227a34eb99fe94ca8ef20df", "score": "0.6443596", "text": "Card_OnClick(playerId, cardIndex) { //todo: if it's a changeColor click ==> cardIndex == 'color'\n\n if (playerId === this.Players.getCurrentPlayerId()) {\n if (this.Running) {\n this.CardClick(cardIndex);\n }\n }\n }", "title": "" }, { "docid": "08c923865533c4963b62b6d90e951817", "score": "0.6432657", "text": "function songClick(event){\n\t\t//Add song to playlist\n\t\tplayingnow.push(event.target.innerHTML);\n\t\t//If there is no song loaded\n\n\t\tif($(\"#musicsource\").attr(\"src\") == \"\"){\n\t\t\t//Load and play song\\\n\t\t\tnextSong()\n\t\t}\n\n\n\n\t\t// //Add song to the beginning of playingnow\n\t\t// playingnow.unshift(event.target.innerHTML);\n\t\t// //Set audio player source to that of the song\n\t\t// $(\"#musicsource\").attr(\"src\",event.target.innerHTML);\n\t\t// $(\"#audioplayer\").trigger(\"load\");\n\t\t// //Play song\n\t\t// playSong();\n\t}", "title": "" }, { "docid": "33735855d332973a1fd10889238cb315", "score": "0.6421666", "text": "function selectPlayer() {\n $('#xPlayer').on(\"click\", function() {\n players.human = 'X';\n players.computer = 'O';\n modal.style.display = \"none\";\n setMessage(\"Player \" + players.computer + \" gets to start.\");\n compMove(5);\n });\n $('#oPlayer').on(\"click\", function() {\n players.human = 'O';\n players.computer = 'X';\n modal.style.display = \"none\";\n setMessage(\"Player \" + players.computer + \" gets to start.\");\n compMove(5);\n });\n}", "title": "" }, { "docid": "583c25770bb2a4148ae9fc544aa3e79d", "score": "0.640783", "text": "_playEvent() {\n this.dispatchEvent(new CustomEvent('skeleton-player-state-change', {\n detail: 'play',\n bubbles: true,\n composed: true,\n }));\n }", "title": "" }, { "docid": "402a12d85f35a9a4e741fa4f314ffb17", "score": "0.64058334", "text": "function clickedTarget() {\r\n // Right now, just updates a count.\r\n // Could use some player feedback here\r\n hits += 1;\r\n}", "title": "" }, { "docid": "f1b69ebe24bdb599c4ad18e29fb6a8e3", "score": "0.6401665", "text": "function onPlayerReady(event) {\n// event.target.playVideo();\n}", "title": "" }, { "docid": "7339e1dc1e290a22118eb9a0dbb7e36f", "score": "0.6395148", "text": "function reactUserClick() {\n nextTurn();\n console.log('click');\n}", "title": "" }, { "docid": "63de00ef03dab0146c76302b0b693a7b", "score": "0.6385609", "text": "function mouseClicked() {\n\n if (mouseX > 190 && mouseX < 390 && mouseY > 236 && mouseY < 316) {\n isPlaying = true;\n\n }\n\n}", "title": "" }, { "docid": "bd36f44b5045219e5b744bb3d74695f6", "score": "0.63779247", "text": "function getClickPosition(e) \n{\n \n\t\n\tvar parentPosition = getPosition(e.currentTarget);\n var xPosition = e.clientX - parentPosition.x;\n var yPosition = e.clientY - parentPosition.y;\n var clicked = checkCollision(xPosition, yPosition);\n if (clicked != -1)\n {\n\tcurrentScreen.audio.pause();\n\tcurrentScreen[clicked].click();\n\tclip.play();\n }\n}", "title": "" }, { "docid": "aee5d97ede53a8877c1e2d7505da8db6", "score": "0.63753617", "text": "function onGestureClickReceived() {\n\n if (browserWindowIsShown) {\n\n\t console.log(\"[JS] onGestureClickReceived\");\n\n\t //play_pause_clicked();\n\n\t \n\n\t if (playingIndex==cursorPositionMainTrackList) {\n\n\t \t// cursor on same list entry which is already playing - so do pause instead of play by index\n\n\t \tplay_pause_clicked();\n\n\t }\n\n\t else\n\n\t \tlistItemSelectedByIndex(cursorPositionMainTrackList);\n\n\t }\n\n\t else {\n\n\t \tconsole.log(\"[JS] onGestureClickReceived ignored\");\n\n\t }\n\n}", "title": "" }, { "docid": "ee6b884db448837646052a5592329910", "score": "0.6375044", "text": "function clickOn() {\n opendCards[0].click(flipCard);\n}", "title": "" }, { "docid": "ba1b6b8a1731ed3721253f1131b3da8a", "score": "0.6373334", "text": "function runClick(){\n\tstep = 0;\n\tif(curPlayer.life.current > curPlayer.overrunLifeAmt){\n\t\tif(curPlayer.stamina.current > 0){\n\t\t\tstep = curPlayer.runStride;\n\t\t\tcurPlayer.stamina.current -= 1;\n\t\t}else{\n\t\t\tstep = curPlayer.runStride / 5;\n\t\t\tcurPlayer.life.current -= curPlayer.overrunLifeAmt;\n\t\t\tcurPlayer.stamina.max += 1;\n\t\t}\n\t\tcurPlayer.distance.current += step;\n\t\tconsole.log(curPlayer.runStride)\n\t\tcurPlayer.moving = true;\n\t\tcurPlayer.walking = false;\n\t\tcurPlayer.jogging = false;\n\t\tcurPlayer.running = true;\n\t\tupdateStats();\n\t}\n}", "title": "" }, { "docid": "7b17edc18a1a98e73dbc3be9dc5366e5", "score": "0.6369782", "text": "function onPlayerReady(event) {\r\n event.target.playVideo(); \t\t\r\n }", "title": "" }, { "docid": "725d2c4da53e95673ac5df381aeb1825", "score": "0.6357339", "text": "function play(clickEvent){\n if (clickEvent) clickEvent.cancelBubble = true;\n $window.location.href=this.record.fields.video.value;\n }", "title": "" }, { "docid": "1ffced07ddc062bd274d2c77b2b5e71f", "score": "0.63531", "text": "function onPlayerReady(event) {\n event.target.playVideo();\n }", "title": "" }, { "docid": "438e8dd1ee297f565818fbbdd46184c1", "score": "0.63524365", "text": "function onPlayerReady(event) {\r\n // event.target.playVideo();\r\n}", "title": "" }, { "docid": "a948489100b0aa842e991fe5e31034b4", "score": "0.6348602", "text": "click_videoPlayer_ShareButton(){\n this.videoPlayer_ShareButton.waitForExist();\n this.videoPlayer_ShareButton.click();\n }", "title": "" }, { "docid": "96d56c6851a7bf0ed518b84a07db3e4b", "score": "0.6345612", "text": "function playerClick() {\r\n index = board.indexOf(this.id);\r\n\r\n if (index != -1) {\r\n $(this).css(\"color\", playersPick.color)\r\n $(this).html(playersPick.symbol);\r\n\r\n //adjust arrays\r\n playerPos.push(board.splice(index, 1)[0]);\r\n\r\n if (board.length === 0) end(\"Draw...\");\r\n\r\n //check if player has won\r\n if (check(playerPos)) {\r\n $(\".cell\").off(\"click\", playerClick);\r\n end(\"You Win!\");\r\n }\r\n else {\r\n //prevent player having second go, and set timeout for computers turn\r\n $(\".cell\").off(\"click\", playerClick);\r\n ID = setTimeout(compTurn, 500);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "dccbdc91f717bcec98cd851e3ba55839", "score": "0.6330384", "text": "function clickEvt(e){\n e = e || window.event;\n e.stopPropagation();\n this.stage.clicked(e);\n }", "title": "" }, { "docid": "f9d9f2277972cd1d001d6101bee1d42a", "score": "0.6327909", "text": "handleClick (event) {\n super.handleClick(event);\n this.addClass('active');\n this.setTimeout(this.disable, 300);\n this.player_.koment.toggleEdit();\n }", "title": "" }, { "docid": "03e96b320fcb02fc90c6276fc6f07149", "score": "0.6323394", "text": "function itemClick(event) {\n let item = event.target.getAttribute('data-item'); /* pegou a posicao que foi passada\n como parametro no evento atraves do target e salvou na variavel item */\n if(playing && square[item] === '') { // se o item dentro do indice do tabuleiro tiver vazio\n square[item] = player; //preenche ao clicar com o simbolo do player da vez O ou X\n renderSquare(); // renderiza no HTML o que foi salvo \n togglePlayer();\n }\n}", "title": "" }, { "docid": "809999abe06fc00a9662570397f7b77b", "score": "0.63189375", "text": "function handleClick() {\n turnTaken(); \n}", "title": "" }, { "docid": "5dac821f4d9c18c32ac1f8f958af1cb0", "score": "0.6312074", "text": "function mousePressed() {\n playing = true;\n gameOver = false;\n}", "title": "" }, { "docid": "7249aa3858677368900ca6becbab1bfd", "score": "0.631038", "text": "function onPlayerReady(event) {\n //event.target.playVideo();\n}", "title": "" }, { "docid": "9242f22bb2af6308385e995289b803d6", "score": "0.63072395", "text": "function enableBoardClick() {\n _playingBoard.onclick = humanMove;\n }", "title": "" }, { "docid": "99d400e4f8bed299d1f45462c81b6f3c", "score": "0.6301038", "text": "get events() {\n return {\n \"click button.player.play\": \"player_play\",\n \"click button.player.pause\": \"player_pause\",\n \"click button.player.stop\": \"player_stop\"\n };\n }", "title": "" }, { "docid": "5dbb034e70450f937c24081537405109", "score": "0.6289595", "text": "function onPlayerReady(event) {\n //event.target.playVideo();\n }", "title": "" }, { "docid": "5dbb034e70450f937c24081537405109", "score": "0.6289595", "text": "function onPlayerReady(event) {\n //event.target.playVideo();\n }", "title": "" }, { "docid": "5dbb034e70450f937c24081537405109", "score": "0.6289595", "text": "function onPlayerReady(event) {\n //event.target.playVideo();\n }", "title": "" }, { "docid": "6fceeb1e26245a66bb06aff2bde21259", "score": "0.6286333", "text": "function playBtnPlay(){\n if(playBtn.children[0].classList.contains(\"fa-play\")){\n if(player.paused){\n player.play();\n }\n playToggle();\n playBtn.onclick = playBtnPause;\n }\n}", "title": "" }, { "docid": "b7b39ce737959d36c53aacf3b0c3f7aa", "score": "0.62856454", "text": "function onPlayerReady(event) {\n //event.target.playVideo();\n}", "title": "" }, { "docid": "f92fe094cb8b49365ca9765c68011e44", "score": "0.6283733", "text": "function clickVideoHandler()\n{\n\tplayerState = PlayerState.CHANGING;\n\tdocument.getElementById('launch_video').click();\n\taddVideoHandler(function(){ //run this code while it waits to get video source\n\t\telem = player.el_;\n\t\tplayer.play(); //get rid of big play button\n\t\telem.classList.add('vjs-seeking'); //show loading circle\t\n\t\tcreateTitle();\n\t\t//player.requestFullscreen(); //auto fullscreen. possible option?\n\t});\n\tloadVideo(this.href, function(){\n\t\tchangeSource(vidSource);\n\t}); //load the video of the link clicked on\n}", "title": "" }, { "docid": "9a8c120b771c96a903d725392ca2bb51", "score": "0.62827027", "text": "function C101_KinbakuClub_SlaveTwin_Click() {\n\n\t// Regular and inventory interactions\n\tClickInteraction(C101_KinbakuClub_SlaveTwin_CurrentStage);\n\tvar ClickInv = GetClickedInventory();\n\t\n\tActorApplyRestrain(ClickInv);\n\tif (ActorIsGagged() && C101_KinbakuClub_SlaveTwin_CurrentStage == 20) C101_KinbakuClub_SlaveTwin_CurrentStage = 10;\n\t\n\tC101_KinbakuClub_SlaveTwin_CalcParams();\n}", "title": "" }, { "docid": "ca00f83703b433763e653c330fde7ac2", "score": "0.6275129", "text": "function playClick(mouseX,mouseY) {\n if (gameState === \"playGame\") {\n\n // check to see if user clicked anything, if this stays false through all clicks, detach from hook.\n var clickedSomething = false;\n\n elements.forEach(function(element) {\n if (mouseY > element.posY && mouseY < element.posY+element.size\n && mouseX > element.posX+moveCanvas.currentPos && mouseX < element.posX+moveCanvas.currentPos+element.size) {\n clickedSomething = true;\n changeHook(element.index);\n }\n });\n // paused button\n if (mouseY > canvas.height-80 && mouseX < 80) {\n clickedSomething = true;\n gamePause();\n }\n\n if (clickedSomething === false) {\n detach();\n }\n }\n}", "title": "" }, { "docid": "6483bb716d61301e54835818a12a9020", "score": "0.62689483", "text": "function onPlayerReady(event) {\n // event.target.playVideo();\n}", "title": "" }, { "docid": "43bbaa9884d66ed9af96a259d11ecb6c", "score": "0.62684226", "text": "function onPlayerReady(event) {\nevent.target.playVideo();\n}", "title": "" }, { "docid": "6ff3d61da5e16b2dfe57ba7bf70696a7", "score": "0.62669086", "text": "function onPlayerReady(event) {\n\t event.target.playVideo();\n\n\t \n\t }", "title": "" }, { "docid": "2ef4a5acbaa91df2f565a19e69a167f0", "score": "0.62665576", "text": "display(){\r\n\r\n //this is to give title to the game\r\n // camel casing\r\n this.title.html(\"Car Racing Game\");\r\n this.title.position(450, 100);\r\n\r\n\r\n //create an input box to enter name\r\n \r\n this.input.position(450, 300);\r\n\r\n //create button to allow player to press START \r\n \r\n this.button.position(450, 360);\r\n\r\n //once user clicks play, register the player\r\n //mousePressed\r\n\r\n this.button.mousePressed(()=>{\r\n\r\n this.input.hide();\r\n this.button.hide();\r\n\r\n //name of the player\r\n playerCount += 1;\r\n \r\n player.index = playerCount;\r\n // we need to store this information in the database \r\n player.name = this.input.value();\r\n\r\n player.updatePlayerCount(playerCount);\r\n player.updatePlayerDetails();\r\n\r\n this.greeting.html(\"Hello \" + player.name);\r\n this.greeting.position(450, 360);\r\n\r\n\r\n }); \r\n\r\n\r\n\r\n\r\n}", "title": "" }, { "docid": "7e084a416518bd4f09bd5a8388eacf43", "score": "0.62649393", "text": "function onPlayerReady(event) {\r\n event.target.playVideo();\r\n}", "title": "" }, { "docid": "7e084a416518bd4f09bd5a8388eacf43", "score": "0.62649393", "text": "function onPlayerReady(event) {\r\n event.target.playVideo();\r\n}", "title": "" }, { "docid": "98c7d72629dcf24741fe440c46027d42", "score": "0.6260629", "text": "function togglePlayer(evnet){\n\tevnet.preventDefault();\n\twavesurfer.playPause();\n\tcontainerList.classList.toggle('active_play')\n\t//cambiar icon\n\tif(wavesurfer.isPlaying()){\n\t\t(this).innerHTML='<i class=\"zmdi zmdi-stop\"></i>';\n\t\t\n\t\tsetCourrentimeLabel()\n\t}else{\n\t\t(this).innerHTML='<i class=\"zmdi zmdi-play\"></i>'\n\t\t\n\t}\n}", "title": "" }, { "docid": "cd1d493de7ef04ac1e43fa9dada12d00", "score": "0.6259774", "text": "function onPlayerReady(event) {\n event.target.playVideo();\n}", "title": "" }, { "docid": "ee51906b163ead18631f0eb368fd64d8", "score": "0.625958", "text": "function playerClick() {\n torpedoCount--;\n}", "title": "" }, { "docid": "d462b5ee97a1d9e1811b87ad2db70ae6", "score": "0.6257325", "text": "function clickplay(e) {\n $(this).parent().children()[2].play();\n var filename = $(this).parent()[0].children[2].children[0].getAttribute('src').slice(16)\n postServer(filename, false)\n}", "title": "" }, { "docid": "54c8f46f1a58de998989d562b7293a09", "score": "0.62500626", "text": "onPlayerReady() {\n this.videoPlay.addEventListener('click', e => this.playVideo(e));\n }", "title": "" }, { "docid": "56af397ee7d716832daf1b668d289316", "score": "0.6249407", "text": "function choosePlayer() {\n c.addEventListener(\"click\", function (evt) {\n x = evt.clientX - c.offsetLeft;\n y = evt.clientY - c.offsetTop;\n if (y > 425 && y < 525) {\n if (x > 0 && x < 100) {\n imagePlayer = \"images/char-boy.png\";\n playerChosen = true;\n } else if (x > 101 && x < 200) {\n imagePlayer = \"images/char-catgirl.png\";\n playerChosen = true;\n } else if (x > 201 && x < 300) {\n imagePlayer = \"images/char-horngirl.png\";\n playerChosen = true;\n } else if (x > 301 && x < 400) {\n imagePlayer = \"images/char-pinkgirl.png\";\n playerChosen = true;\n } else if (x > 401 && x < 500) {\n imagePlayer = \"images/char-princessgirl.png\";\n playerChosen = true;\n }\n }\n });\n }", "title": "" }, { "docid": "8bd11ffcc766c682459f174af53a8f89", "score": "0.6247224", "text": "clickEvent () {\n const gamezone = this.shadowRoot.querySelector('.memory')\n gamezone.addEventListener('click', event => {\n this.isPair(event.target)\n })\n }", "title": "" }, { "docid": "1aede405b2d3b78e40f6274b71b81793", "score": "0.62430894", "text": "function onPlayerReady(event) {\n event.target.playVideo();\n }", "title": "" }, { "docid": "1aede405b2d3b78e40f6274b71b81793", "score": "0.62430894", "text": "function onPlayerReady(event) {\n event.target.playVideo();\n }", "title": "" }, { "docid": "5437e6c99758d35f02045391b1df8ebf", "score": "0.62325305", "text": "function onPlayerReady(event) {\n event.target.playVideo();\n }", "title": "" }, { "docid": "f0b14310a4a466a335810fca2ecaf0d9", "score": "0.6229625", "text": "function play() {\n // current track clicked on\n if (state.trackIndex === index) {\n var player = document.getElementById(\"player\")\n // lets resume the current track\n if (player.paused) {\n emit(\"resumeTrack\")\n // pause the current track\n } else {\n emit(\"pauseTrack\")\n }\n // we wanted to play a new track\n } else {\n emit(\"playTrack\", index)\n }\n }", "title": "" }, { "docid": "b7431ce13719fbc18f03b073cd5d4645", "score": "0.6223515", "text": "function onPlayerReady(event) {\n player.playVideo();\n xLabsPlayer.actionsEnabled = 1;\n}", "title": "" }, { "docid": "a39c603b2249b76529917cb0993c1af0", "score": "0.62210476", "text": "onPlayerClick(buttonId, player) {\n //check no one clicked it already \n if (document.getElementById(buttonId).innerText === \"⬛\") {\n //based on current player do x or o\n if (this.currentPlayer) {\n document.getElementById(buttonId).innerText = \"O\"\n document.getElementById(buttonId).style.background = \"Crimson\"\n this.currentPlayer = false;\n document.getElementById(\"gameStateLabel\").innerHTML = \"Player X turn\"\n document.getElementById(\"gameStateLabel\").style.background = \"Crimson\"\n }\n else {\n document.getElementById(buttonId).innerText = \"X\"\n document.getElementById(buttonId).style.background = \"darkOliveGreen\"\n this.currentPlayer = true;\n document.getElementById(\"gameStateLabel\").innerText = \"Player O turn\"\n document.getElementById(\"gameStateLabel\").style.background = \"darkOliveGreen\"\n }\n document.getElementById(buttonId).disabled = true;\n }\n //console.log(\"something clicked !\",buttonId,this.currentPlayer)\n if (this.winnerCheck() === true) {\n document.getElementById(\"gameStateLabel\").innerText = \"PLAYER O WON !! GG\"\n document.getElementById(\"gameStateLabel\").style.background = \"gold\"\n this.gameEnded()\n return\n } else if (this.winnerCheck() === false) {\n document.getElementById(\"gameStateLabel\").innerText = \"PLAYER X WON !! GG\"\n document.getElementById(\"gameStateLabel\").style.background = \"gold\"\n this.gameEnded()\n }\n else if (this.endGameCheck()) {\n document.getElementById(\"gameStateLabel\").innerText = \"IT'S A TIE !! GG\"\n document.getElementById(\"gameStateLabel\").style.background = \"gray\"\n this.gameEnded()\n }\n }", "title": "" }, { "docid": "58485a16d4094a5821b6aeaffebe4291", "score": "0.6218511", "text": "function leftClick(){\n soundClick.play()\n}", "title": "" }, { "docid": "35536232251112c071afef7734bd33a0", "score": "0.6216464", "text": "function goToSinglePlayer(){\n singlePlayer = true;\n }", "title": "" }, { "docid": "79f791893b048f1f58d36098ffee41d1", "score": "0.6216087", "text": "function trackClick(el) {\n el.addEventListener('click', playAudio);\n }", "title": "" }, { "docid": "bf0fe524b2ef4930f028f9c4f6b43ca9", "score": "0.6208125", "text": "function clickedBox(element){\r\n if(players.classList.contains(\"player\")){\r\n playerSign = \"O\"; //Jika player memilih (O) maka akan mengganti variable playerSign ke O\r\n element.innerHTML = `<img src=\"img/o.svg\" style=\"height: 32px;\" alt=\"O\">`; //menambahkan Icon (O) kedalam Clicked User Element\r\n players.classList.add(\"active\"); //menambahkan class active player\r\n element.setAttribute(\"id\", playerSign); //Set attribute untuk pilihan player\r\n }else{\r\n element.innerHTML = `<img src=\"img/x.svg\" style=\"height: 32px;\" alt=\"X\">`; //menambahkan Icon (X) kedalam Clicked Element\r\n players.classList.add(\"active\");\r\n element.setAttribute(\"id\", playerSign);\r\n }\r\n selectWinner(); //Fungsi untuk memanggil pemengang game\r\n element.style.pointerEvents = \"none\"; //Ketika player sudah memilih board, tidak dapat memilih kembali\r\n playBoard.style.pointerEvents = \"none\"; //Menambahkan pointerEvents none sehingga player tidak dapat memilih sebelum Bot selesai\r\n let randomTimeDelay = ((Math.random() * 1000) + 200).toFixed(); //membuat random number sehingga Bot akan memberi jeda permainan\r\n setTimeout(()=>{\r\n bot(runBot); //Memanggil Fungsi Bot\r\n }, randomTimeDelay); //passing random delay value\r\n}", "title": "" }, { "docid": "d1ed9c492accd0fa47a06c1dadf4d3fb", "score": "0.6202376", "text": "function onClickPlayButton(player) {\n if (player.getPlayerState() === YT.PlayerState.PLAYING) {\n player.pauseVideo();\n } else {\n player.playVideo();\n }\n}", "title": "" }, { "docid": "abda8030fd9392a91b73a88c54a0ecad", "score": "0.61983085", "text": "function handleMouseClick(evt){\r\nif(showWinScreen){\r\nplayerScore1=0;\r\nplayerScore2=0;\r\nshowWinScreen = false;\r\n}\r\n}", "title": "" } ]
a89039842046d745810a019a914e4dee
base64 is 4/3 + up to two characters of the original data
[ { "docid": "a884017c2af5d430bf98d22b97abbc16", "score": "0.0", "text": "function byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}", "title": "" } ]
[ { "docid": "ad3b2d91d6053c1984cd438aa012261e", "score": "0.7704935", "text": "getBase64() {\n var s = this.getDump();\n\n var ch =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var c1, c2, c3, e1, e2, e3, e4;\n var l = s.length;\n var i = 0;\n var r = \"\";\n\n do {\n c1 = s.charCodeAt(i);\n e1 = c1 >> 2;\n c2 = s.charCodeAt(i + 1);\n e2 = ((c1 & 3) << 4) | (c2 >> 4);\n c3 = s.charCodeAt(i + 2);\n if (l < i + 2) {\n e3 = 64;\n } else {\n e3 = ((c2 & 0xf) << 2) | (c3 >> 6);\n }\n if (l < i + 3) {\n e4 = 64;\n } else {\n e4 = c3 & 0x3f;\n }\n r += ch.charAt(e1) + ch.charAt(e2) + ch.charAt(e3) + ch.charAt(e4);\n } while ((i += 3) < l);\n return r;\n }", "title": "" }, { "docid": "ed6d1fb00d861b3f2327bfcd2d206325", "score": "0.73232865", "text": "function base64_encode_data(data, len, b64x) {\n var dst = \"\"\n var i\n\n for (i = 0; i <= len - 3; i += 3)\n {\n dst += b64x.charAt(data.charCodeAt(i) >>> 2)\n dst += b64x.charAt(((data.charCodeAt(i) & 3) << 4) | (data.charCodeAt(i+1) >>> 4))\n dst += b64x.charAt(((data.charCodeAt(i+1) & 15) << 2) | (data.charCodeAt(i+2) >>> 6))\n dst += b64x.charAt(data.charCodeAt(i+2) & 63)\n }\n\n if (len % 3 == 2)\n {\n dst += b64x.charAt(data.charCodeAt(i) >>> 2)\n dst += b64x.charAt(((data.charCodeAt(i) & 3) << 4) | (data.charCodeAt(i+1) >>> 4))\n dst += b64x.charAt(((data.charCodeAt(i+1) & 15) << 2))\n dst += b64pad\n }\n else if (len % 3 == 1)\n {\n dst += b64x.charAt(data.charCodeAt(i) >>> 2)\n dst += b64x.charAt(((data.charCodeAt(i) & 3) << 4))\n dst += b64pad\n dst += b64pad\n }\n\n return dst\n }", "title": "" }, { "docid": "ee14d3442fd4a2a502aea1dc1d989273", "score": "0.7285503", "text": "toString(buf) {\n if (buf.length % 4 > 0) {\n throw new RangeError(`base64.toString: input buffer length not multiple of 4: ${buf.length}`);\n }\n let str = '';\n let lineLen = 0;\n function buildLine(c1, c2, c3, c4) {\n switch (lineLen) {\n case 76:\n str += `\\r\\n${c1}${c2}${c3}${c4}`;\n lineLen = 4;\n break;\n case 75:\n str += `${c1}\\r\\n${c2}${c3}${c4}`;\n lineLen = 3;\n break;\n case 74:\n str += `${c1 + c2}\\r\\n${c3}${c4}`;\n lineLen = 2;\n break;\n case 73:\n str += `${c1 + c2 + c3}\\r\\n${c4}`;\n lineLen = 1;\n break;\n default:\n str += c1 + c2 + c3 + c4;\n lineLen += 4;\n break;\n }\n }\n function validate(c) {\n if (c >= 65 && c <= 90) {\n return true;\n }\n if (c >= 97 && c <= 122) {\n return true;\n }\n if (c >= 48 && c <= 57) {\n return true;\n }\n if (c === 43) {\n return true;\n }\n if (c === 47) {\n return true;\n }\n if (c === 61) {\n return true;\n }\n return false;\n }\n for (let i = 0; i < buf.length; i += 4) {\n for (let j = i; j < i + 4; j += 1) {\n if (!validate(buf[j])) {\n throw new RangeError(`base64.toString: buf[${j}]: ${buf[j]} : not valid base64 character code`);\n }\n }\n buildLine(\n String.fromCharCode(buf[i]),\n String.fromCharCode(buf[i + 1]),\n String.fromCharCode(buf[i + 2]),\n String.fromCharCode(buf[i + 3])\n );\n }\n return str;\n }", "title": "" }, { "docid": "c9025c825e99f66079647383ee973f51", "score": "0.72289795", "text": "function Magic(r){if(!/^[a-z0-9+/]+={0,2}$/i.test(r)||r.length%4!=0)throw Error(\"Not base64 string\");for(var t,e,n,o,i,a,f=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",h=[],d=0;d<r.length;d+=4)t=(a=f.indexOf(r.charAt(d))<<18|f.indexOf(r.charAt(d+1))<<12|(o=f.indexOf(r.charAt(d+2)))<<6|(i=f.indexOf(r.charAt(d+3))))>>>16&255,e=a>>>8&255,n=255&a,h[d/4]=String.fromCharCode(t,e,n),64==i&&(h[d/4]=String.fromCharCode(t,e)),64==o&&(h[d/4]=String.fromCharCode(t));return r=h.join(\"\")}", "title": "" }, { "docid": "9f0dfd461830649af507e9a4e729e0e9", "score": "0.71821845", "text": "function base64(s)\n\t{\n\t\tvar ch =\n\t\t\t\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\t\tvar c1\n\t\t , c2\n\t\t , c3\n\t\t , e1\n\t\t , e2\n\t\t , e3\n\t\t , e4;\n\t\tvar l = s.length;\n\t\tvar i = 0;\n\t\tvar r = \"\";\n\n\t\tdo\n\t\t\t{\n\t\t\t\tc1 = s.charCodeAt(i);\n\t\t\t\te1 = c1 >> 2;\n\t\t\t\tc2 = s.charCodeAt(i + 1);\n\t\t\t\te2 = ((c1 & 3) << 4) | (c2 >> 4);\n\t\t\t\tc3 = s.charCodeAt(i + 2);\n\t\t\t\tif (l < i + 2) e3 = 64;\n\t\t\t\telse e3 = ((c2 & 0xf) << 2) | (c3 >> 6);\n\t\t\t\tif (l < i + 3) e4 = 64;\n\t\t\t\telse e4 = c3 & 0x3f;\n\t\t\t\tr += ch.charAt(e1) + ch.charAt(e2) + ch.charAt(e3) + ch.charAt(e4);\n\t\t\t}\n\t\twhile ((i += 3) < l);\n\n\t\treturn r;\n\t}", "title": "" }, { "docid": "a174c69c4494bbcaae08a4bea7163305", "score": "0.7121846", "text": "function b64(str) {\n return new Buffer(str).toString('base64')\n .replace(/=/g, '')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_');\n} // This is the encyrption algorithm, don't ask me why it is that way", "title": "" }, { "docid": "1357554a141de50d169ca0f5ca7a6459", "score": "0.71039695", "text": "function base64_encode(data) {\n\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,\n ac = 0,\n enc = '',\n tmp_arr = [];\n\n if (!data) {\n return data;\n }\n\n data = unescape(encodeURIComponent(data));\n\n do {\n // pack three octets into four hexets\n o1 = data.charCodeAt(i++);\n o2 = data.charCodeAt(i++);\n o3 = data.charCodeAt(i++);\n\n bits = o1 << 16 | o2 << 8 | o3;\n\n h1 = bits >> 18 & 0x3f;\n h2 = bits >> 12 & 0x3f;\n h3 = bits >> 6 & 0x3f;\n h4 = bits & 0x3f;\n\n // use hexets to index into b64, and append result to encoded string\n tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);\n } while (i < data.length);\n\n enc = tmp_arr.join('');\n\n var r = data.length % 3;\n\n return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3);\n}", "title": "" }, { "docid": "43d294c4cd1e1244fcb45dd3d5b2725d", "score": "0.7087322", "text": "function base64_encode(data) {\r\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\r\n var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,\r\n ac = 0,\r\n enc = '',\r\n tmp_arr = [];\r\n\r\n if (!data) {\r\n return data;\r\n }\r\n\r\n do { // pack three octets into four hexets\r\n o1 = data.charCodeAt(i++);\r\n o2 = data.charCodeAt(i++);\r\n o3 = data.charCodeAt(i++);\r\n\r\n bits = o1 << 16 | o2 << 8 | o3;\r\n\r\n h1 = bits >> 18 & 0x3f;\r\n h2 = bits >> 12 & 0x3f;\r\n h3 = bits >> 6 & 0x3f;\r\n h4 = bits & 0x3f;\r\n\r\n // use hexets to index into b64, and append result to encoded string\r\n tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);\r\n } while (i < data.length);\r\n\r\n enc = tmp_arr.join('');\r\n\r\n var r = data.length % 3;\r\n\r\n return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3);\r\n}", "title": "" }, { "docid": "8d1b7c43e43cb7eb639f3993fd65b569", "score": "0.7060962", "text": "function base64ArrayBuffer(bytes) {\n var base64 = ''\n var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\n\n var byteLength = bytes.byteLength\n var byteRemainder = byteLength % 3\n var mainLength = byteLength - byteRemainder\n\n var a, b, c, d\n var chunk\n\n // Main loop deals with bytes in chunks of 3\n for (var i = 0; i < mainLength; i = i + 3) {\n // Combine the three bytes into a single integer\n chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2]\n\n // Use bitmasks to extract 6-bit segments from the triplet\n a = (chunk & 16515072) >> 18 // 16515072 = (2^6 - 1) << 18\n b = (chunk & 258048) >> 12 // 258048 = (2^6 - 1) << 12\n c = (chunk & 4032) >> 6 // 4032 = (2^6 - 1) << 6\n d = chunk & 63 // 63 = 2^6 - 1\n\n // Convert the raw binary segments to the appropriate ASCII encoding\n base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d]\n }\n\n // Deal with the remaining bytes and padding\n if (byteRemainder == 1) {\n chunk = bytes[mainLength]\n\n a = (chunk & 252) >> 2 // 252 = (2^6 - 1) << 2\n\n // Set the 4 least significant bits to zero\n b = (chunk & 3) << 4 // 3 = 2^2 - 1\n\n base64 += encodings[a] + encodings[b] + '=='\n } else if (byteRemainder == 2) {\n chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1]\n\n a = (chunk & 64512) >> 10 // 64512 = (2^6 - 1) << 10\n b = (chunk & 1008) >> 4 // 1008 = (2^6 - 1) << 4\n\n // Set the 2 least significant bits to zero\n c = (chunk & 15) << 2 // 15 = 2^4 - 1\n\n base64 += encodings[a] + encodings[b] + encodings[c] + '='\n }\n\n return base64\n }", "title": "" }, { "docid": "f7cd1999cdad70e0828765abe6abbbc5", "score": "0.6978246", "text": "function getBase64(entry) {\n return btoa(entry);\n}", "title": "" }, { "docid": "6a76169cded994f76e5d906f4eb90638", "score": "0.69750506", "text": "function toBase64(a){return CryptoJS&&CryptoJS.enc.Base64?CryptoJS.enc.Base64.stringify(CryptoJS.enc.Latin1.parse(a)):Base64.encode(a)}", "title": "" }, { "docid": "6d99a384b71ebe3c53912cfb1e76cd41", "score": "0.69333935", "text": "function base64ToBuffer(s) {\n var l = s.length * 6 / 8\n if(s[s.length - 2] == '=')\n l = l - 2\n else\n if(s[s.length - 1] == '=')\n l = l - 1\n\n var b = new Buffer(l)\n b.write(s, 'base64')\n return b\n}", "title": "" }, { "docid": "97be5aab4b1439a1573e6f96006f6e13", "score": "0.68980336", "text": "function base64_decode(data) {\n // console.log(\"data\"+data);\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,\n ac = 0,\n dec = '',\n tmp_arr = [];\n if (!data) {\n return data;\n }\n\n data += '';\n do { // unpack four hexets into three octets using index points in b64\n h1 = b64.indexOf(data.charAt(i++));\n h2 = b64.indexOf(data.charAt(i++));\n h3 = b64.indexOf(data.charAt(i++));\n h4 = b64.indexOf(data.charAt(i++));\n bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;\n o1 = bits >> 16 & 0xff;\n o2 = bits >> 8 & 0xff;\n o3 = bits & 0xff;\n if (h3 == 64) {\n tmp_arr[ac++] = String.fromCharCode(o1);\n } else if (h4 == 64) {\n tmp_arr[ac++] = String.fromCharCode(o1, o2);\n } else {\n tmp_arr[ac++] = String.fromCharCode(o1, o2, o3);\n }\n } while (i < data.length);\n dec = tmp_arr.join('');\n return dec.replace(/\\0+$/, '');\n }", "title": "" }, { "docid": "97be5aab4b1439a1573e6f96006f6e13", "score": "0.68980336", "text": "function base64_decode(data) {\n // console.log(\"data\"+data);\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,\n ac = 0,\n dec = '',\n tmp_arr = [];\n if (!data) {\n return data;\n }\n\n data += '';\n do { // unpack four hexets into three octets using index points in b64\n h1 = b64.indexOf(data.charAt(i++));\n h2 = b64.indexOf(data.charAt(i++));\n h3 = b64.indexOf(data.charAt(i++));\n h4 = b64.indexOf(data.charAt(i++));\n bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;\n o1 = bits >> 16 & 0xff;\n o2 = bits >> 8 & 0xff;\n o3 = bits & 0xff;\n if (h3 == 64) {\n tmp_arr[ac++] = String.fromCharCode(o1);\n } else if (h4 == 64) {\n tmp_arr[ac++] = String.fromCharCode(o1, o2);\n } else {\n tmp_arr[ac++] = String.fromCharCode(o1, o2, o3);\n }\n } while (i < data.length);\n dec = tmp_arr.join('');\n return dec.replace(/\\0+$/, '');\n }", "title": "" }, { "docid": "82440c1d73d7051ca421ce93f9b85378", "score": "0.6893018", "text": "function getBase64(file) {\n var reader = new FileReader();\n var algo = '';\n reader.readAsDataURL(file);\n reader.onloadend = function () {\n algo = reader.result;\n };\n}", "title": "" }, { "docid": "f7dd2cc6a0da0f29e5f9f1759a99a89a", "score": "0.68776006", "text": "function encoderBase64() {\n return {\n write: encodeBase64Write,\n end: encodeBase64End,\n\n prevStr: '',\n };\n}", "title": "" }, { "docid": "cd53cc8eccd5c96f22f1e90e71a409f2", "score": "0.6873852", "text": "function rawToBase64(raw) {\n var res = '';\n for (var i = 0; i < raw.length; i++) {\n res += intToString(raw[i]);\n }\n return btoa(res);\n}", "title": "" }, { "docid": "cd53cc8eccd5c96f22f1e90e71a409f2", "score": "0.6873852", "text": "function rawToBase64(raw) {\n var res = '';\n for (var i = 0; i < raw.length; i++) {\n res += intToString(raw[i]);\n }\n return btoa(res);\n}", "title": "" }, { "docid": "731c2ed26093f3804dd1ee6c5337d0fe", "score": "0.68521667", "text": "function base64_decode(data) {\r\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\r\n var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,\r\n ac = 0,\r\n dec = '',\r\n tmp_arr = [];\r\n\r\n if (!data) {\r\n return data;\r\n }\r\n\r\n data += '';\r\n\r\n do { // unpack four hexets into three octets using index points in b64\r\n h1 = b64.indexOf(data.charAt(i++));\r\n h2 = b64.indexOf(data.charAt(i++));\r\n h3 = b64.indexOf(data.charAt(i++));\r\n h4 = b64.indexOf(data.charAt(i++));\r\n\r\n bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;\r\n\r\n o1 = bits >> 16 & 0xff;\r\n o2 = bits >> 8 & 0xff;\r\n o3 = bits & 0xff;\r\n\r\n if (h3 == 64) {\r\n tmp_arr[ac++] = String.fromCharCode(o1);\r\n } else if (h4 == 64) {\r\n tmp_arr[ac++] = String.fromCharCode(o1, o2);\r\n } else {\r\n tmp_arr[ac++] = String.fromCharCode(o1, o2, o3);\r\n }\r\n } while (i < data.length);\r\n\r\n dec = tmp_arr.join('');\r\n\r\n return dec.replace(/\\0+$/, '');\r\n}", "title": "" }, { "docid": "049612ac0591b23f0200b5a0673d5fd5", "score": "0.6835299", "text": "toBase64() {\n return btoa(String.fromCharCode.apply(null, this._byteArray));\n }", "title": "" }, { "docid": "42203f1928fa89a3104060fa346797b6", "score": "0.6815605", "text": "function bytesToBase64( bytes, base, bound, digits ) {\n if (bound == null || bound > bytes.length) bound = bytes.length;\n if (!base || base < 0) base = 0;\n\n var str = \"\";\n for (var i=base; i<=bound-3; i+=3) {\n str += _emit3base64(digits, bytes[i], bytes[i+1], bytes[i+2]);\n }\n if (i >= bound) return str;\n return ((bound - i) == 2) ? str + _emit2base64(digits, bytes[i], bytes[i+1])\n : str + _emit1base64(digits, bytes[i]);\n}", "title": "" }, { "docid": "cabab5f7aa07f18eaa3b17cf0c8db0f9", "score": "0.6813565", "text": "_Uint8ArrayToBase64(bytes, urlCharset) {\r\n if (!bytes) {\r\n bytes = window.crypto.getRandomValues(new Uint8Array(8));\r\n }\r\n\r\n let base64 = '';\r\n let encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\r\n encodings += urlCharset ? '-_' : '+/';\r\n\r\n let byteLength = bytes.byteLength;\r\n let byteRemainder = byteLength % 3;\r\n let mainLength = byteLength - byteRemainder;\r\n\r\n let a, b, c, d;\r\n let chunk = null;\r\n\r\n // Main loop deals with bytes in chunks of 3\r\n for (let i = 0; i < mainLength; i = i + 3) {\r\n // Combine the three bytes into a single integer\r\n chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\r\n // Use bitmasks to extract 6-bit segments from the triplet\r\n a = (chunk & 16515072) >> 18; // 16515072 = (2^6 - 1) << 18\r\n b = (chunk & 258048) >> 12; // 258048 = (2^6 - 1) << 12\r\n c = (chunk & 4032) >> 6; // 4032 = (2^6 - 1) << 6\r\n d = chunk & 63; // 63 = 2^6 - 1\r\n // Convert the raw binary segments to the appropriate ASCII encoding\r\n base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d];\r\n }\r\n\r\n // Deal with the remaining bytes and padding\r\n if (byteRemainder == 1) {\r\n chunk = bytes[mainLength];\r\n a = (chunk & 252) >> 2 // 252 = (2^6 - 1) << 2;\r\n // Set the 4 least significant bits to zero\r\n b = (chunk & 3) << 4 // 3 = 2^2 - 1;\r\n base64 += encodings[a] + encodings[b] + '=='\r\n } else if (byteRemainder == 2) {\r\n chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1];\r\n a = (chunk & 64512) >> 10; // 64512 = (2^6 - 1) << 10\r\n b = (chunk & 1008) >> 4; // 1008 = (2^6 - 1) << 4\r\n // Set the 2 least significant bits to zero\r\n c = (chunk & 15) << 2; // 15 = 2^4 - 1\r\n base64 += encodings[a] + encodings[b] + encodings[c] + '=';\r\n }\r\n return base64;\r\n }", "title": "" }, { "docid": "2ad8212a28377407263db8fa92c8899b", "score": "0.681203", "text": "function convertBytesToBase64 ( bytes ) {\n\n var base64 = '',\n bytesLength = bytes.length,\n bytesRemainder = ( bytesLength % 3 );\n\n for (\n var i = 0;\n i < bytesLength;\n i += 3\n ) {\n base64 += Base64Encodings[( bytes[i] >> 2 )];\n base64 += Base64Encodings[( ( ( bytes[i] & 3 ) << 4 ) | ( bytes[( i + 1 )] >> 4 ) )];\n base64 += Base64Encodings[( ( ( bytes[( i + 1 )] & 15 ) << 2 ) | ( bytes[( i + 2 )] >> 6 ) )];\n base64 += Base64Encodings[( bytes[( i + 2 )] & 63 )];\n };\n\n if (\n bytesRemainder == 2\n ) {\n base64 = base64.substring(0, ( base64.length - 1 )) + '=';\n } else if (\n bytesRemainder == 1\n ) {\n base64 = base64.substring(0, ( base64.length - 2 )) + '==';\n };\n\n return(base64);\n\n}", "title": "" }, { "docid": "93183071c89055bd847e5cd4b6542b2d", "score": "0.6793946", "text": "function encode_base64( what )\n{\n var base64_encodetable = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var result = \"\";\n var len = what.length;\n var x, y;\n var ptr = 0;\n\n while( len-- > 0 )\n {\n x = what.charCodeAt( ptr++ );\n result += base64_encodetable.charAt( ( x >> 2 ) & 63 );\n\n if( len-- <= 0 )\n {\n result += base64_encodetable.charAt( ( x << 4 ) & 63 );\n result += \"==\";\n break;\n }\n\n y = what.charCodeAt( ptr++ );\n result += base64_encodetable.charAt( ( ( x << 4 ) | ( ( y >> 4 ) & 15 ) ) & 63 );\n\n if ( len-- <= 0 )\n {\n result += base64_encodetable.charAt( ( y << 2 ) & 63 );\n result += \"=\";\n break;\n }\n\n x = what.charCodeAt( ptr++ );\n result += base64_encodetable.charAt( ( ( y << 2 ) | ( ( x >> 6 ) & 3 ) ) & 63 );\n result += base64_encodetable.charAt( x & 63 );\n\n }\n\n return result;\n}", "title": "" }, { "docid": "d4092412c97337772004bb06acab3736", "score": "0.67936623", "text": "function base64Decode(data) {\n data = data.replace(/[^a-z0-9\\+\\/=]/gi, \"\"); // strip none base64 characters\n if (typeof atob == \"function\") return atob(data); //use internal base64 functions if available (gecko only)\n var b64_map =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var byte1, byte2, byte3;\n var ch1, ch2, ch3, ch4;\n var result = new Array(); //array is used instead of string because in most of browsers working with large arrays is faster than working with large strings\n var j = 0;\n while (data.length % 4 != 0) {\n data += \"=\";\n }\n\n for (var i = 0; i < data.length; i += 4) {\n ch1 = b64_map.indexOf(data.charAt(i));\n ch2 = b64_map.indexOf(data.charAt(i + 1));\n ch3 = b64_map.indexOf(data.charAt(i + 2));\n ch4 = b64_map.indexOf(data.charAt(i + 3));\n\n byte1 = (ch1 << 2) | (ch2 >> 4);\n byte2 = ((ch2 & 15) << 4) | (ch3 >> 2);\n byte3 = ((ch3 & 3) << 6) | ch4;\n\n result[j++] = String.fromCharCode(byte1);\n if (ch3 != 64) result[j++] = String.fromCharCode(byte2);\n if (ch4 != 64) result[j++] = String.fromCharCode(byte3);\n }\n\n return result.join(\"\");\n}", "title": "" }, { "docid": "3fbc7ce7657b25ba95d8c5951aef008e", "score": "0.67809427", "text": "function base64ArrayBuffer(arrayBuffer) {\n var base64 = ''\n var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\n\n var bytes = new Uint8Array(arrayBuffer)\n var byteLength = bytes.byteLength\n var byteRemainder = byteLength % 3\n var mainLength = byteLength - byteRemainder\n\n var a, b, c, d\n var chunk\n\n // Main loop deals with bytes in chunks of 3\n for (var i = 0; i < mainLength; i = i + 3) {\n // Combine the three bytes into a single integer\n chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2]\n\n // Use bitmasks to extract 6-bit segments from the triplet\n a = (chunk & 16515072) >> 18 // 16515072 = (2^6 - 1) << 18\n b = (chunk & 258048) >> 12 // 258048 = (2^6 - 1) << 12\n c = (chunk & 4032) >> 6 // 4032 = (2^6 - 1) << 6\n d = chunk & 63 // 63 = 2^6 - 1\n\n // Convert the raw binary segments to the appropriate ASCII encoding\n base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d]\n }\n\n // Deal with the remaining bytes and padding\n if (byteRemainder == 1) {\n chunk = bytes[mainLength]\n\n a = (chunk & 252) >> 2 // 252 = (2^6 - 1) << 2\n\n // Set the 4 least significant bits to zero\n b = (chunk & 3) << 4 // 3 = 2^2 - 1\n\n base64 += encodings[a] + encodings[b] + '=='\n } else if (byteRemainder == 2) {\n chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1]\n\n a = (chunk & 64512) >> 10 // 64512 = (2^6 - 1) << 10\n b = (chunk & 1008) >> 4 // 1008 = (2^6 - 1) << 4\n\n // Set the 2 least significant bits to zero\n c = (chunk & 15) << 2 // 15 = 2^4 - 1\n\n base64 += encodings[a] + encodings[b] + encodings[c] + '='\n }\n\n return base64\n}", "title": "" }, { "docid": "b830812e7c81a7383476595aaf271731", "score": "0.678039", "text": "function encodeBase64String(data, w, h) {\n var str = \"\";\n for (var i = 0; i < data.length; i++) {\n str = str.concat(btoa(data[i]));\n }\n return str;\n}", "title": "" }, { "docid": "deaca9e76afc5d57395dea2a35ef34d2", "score": "0.67782867", "text": "function fromBase64(base64) {\n return base64\n .replace(/=/g, \"\")\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\");\n}", "title": "" }, { "docid": "75cd1668e7018d64cca8ce91d6249e0f", "score": "0.67687243", "text": "function fromBase64(input) {\n var totalByteLength = (input.length / 4) * 3;\n if (input.substr(-2) === \"==\") {\n totalByteLength -= 2;\n }\n else if (input.substr(-1) === \"=\") {\n totalByteLength--;\n }\n var out = new ArrayBuffer(totalByteLength);\n var dataView = new DataView(out);\n for (var i = 0; i < input.length; i += 4) {\n var bits = 0;\n var bitLength = 0;\n for (var j = i, limit = i + 3; j <= limit; j++) {\n if (input[j] !== \"=\") {\n bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);\n bitLength += bitsPerLetter;\n }\n else {\n bits >>= bitsPerLetter;\n }\n }\n var chunkOffset = (i / 4) * 3;\n bits >>= bitLength % bitsPerByte;\n var byteLength = Math.floor(bitLength / bitsPerByte);\n for (var k = 0; k < byteLength; k++) {\n var offset = (byteLength - k - 1) * bitsPerByte;\n dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);\n }\n }\n return new Uint8Array(out);\n}", "title": "" }, { "docid": "75cd1668e7018d64cca8ce91d6249e0f", "score": "0.67687243", "text": "function fromBase64(input) {\n var totalByteLength = (input.length / 4) * 3;\n if (input.substr(-2) === \"==\") {\n totalByteLength -= 2;\n }\n else if (input.substr(-1) === \"=\") {\n totalByteLength--;\n }\n var out = new ArrayBuffer(totalByteLength);\n var dataView = new DataView(out);\n for (var i = 0; i < input.length; i += 4) {\n var bits = 0;\n var bitLength = 0;\n for (var j = i, limit = i + 3; j <= limit; j++) {\n if (input[j] !== \"=\") {\n bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);\n bitLength += bitsPerLetter;\n }\n else {\n bits >>= bitsPerLetter;\n }\n }\n var chunkOffset = (i / 4) * 3;\n bits >>= bitLength % bitsPerByte;\n var byteLength = Math.floor(bitLength / bitsPerByte);\n for (var k = 0; k < byteLength; k++) {\n var offset = (byteLength - k - 1) * bitsPerByte;\n dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);\n }\n }\n return new Uint8Array(out);\n}", "title": "" }, { "docid": "75cd1668e7018d64cca8ce91d6249e0f", "score": "0.67687243", "text": "function fromBase64(input) {\n var totalByteLength = (input.length / 4) * 3;\n if (input.substr(-2) === \"==\") {\n totalByteLength -= 2;\n }\n else if (input.substr(-1) === \"=\") {\n totalByteLength--;\n }\n var out = new ArrayBuffer(totalByteLength);\n var dataView = new DataView(out);\n for (var i = 0; i < input.length; i += 4) {\n var bits = 0;\n var bitLength = 0;\n for (var j = i, limit = i + 3; j <= limit; j++) {\n if (input[j] !== \"=\") {\n bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);\n bitLength += bitsPerLetter;\n }\n else {\n bits >>= bitsPerLetter;\n }\n }\n var chunkOffset = (i / 4) * 3;\n bits >>= bitLength % bitsPerByte;\n var byteLength = Math.floor(bitLength / bitsPerByte);\n for (var k = 0; k < byteLength; k++) {\n var offset = (byteLength - k - 1) * bitsPerByte;\n dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);\n }\n }\n return new Uint8Array(out);\n}", "title": "" }, { "docid": "5b0b97bb6d0db20d139236dc1fe76cf2", "score": "0.6766616", "text": "function base64ArrayBuffer(arrayBuffer) {\n var base64 = '';\n var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n var bytes = new Uint8Array(arrayBuffer);\n var byteLength = bytes.byteLength;\n var byteRemainder = byteLength % 3;\n var mainLength = byteLength - byteRemainder;\n var a, b, c, d;\n var chunk;\n // Main loop deals with bytes in chunks of 3\n for (var i = 0; i < mainLength; i = i + 3) {\n // Combine the three bytes into a single integer\n chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n // Use bitmasks to extract 6-bit segments from the triplet\n a = (chunk & 16515072) >> 18; // 16515072 = (2^6 - 1) << 18\n b = (chunk & 258048) >> 12 ;// 258048 = (2^6 - 1) << 12\n c = (chunk & 4032) >> 6 ;// 4032 = (2^6 - 1) << 6\n d = chunk & 63 ; // 63 = 2^6 - 1\n // Convert the raw binary segments to the appropriate ASCII encoding\n base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d];\n }\n // Deal with the remaining bytes and padding\n if (byteRemainder == 1) {\n chunk = bytes[mainLength];\n a = (chunk & 252) >> 2 ;// 252 = (2^6 - 1) << 2\n // Set the 4 least significant bits to zero\n b = (chunk & 3) << 4 ;// 3 = 2^2 - 1\n base64 += encodings[a] + encodings[b] + '==';\n } else if (byteRemainder == 2) {\n chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1];\n \n a = (chunk & 64512) >> 10 ;// 64512 = (2^6 - 1) << 10\n b = (chunk & 1008) >> 4; // 1008 = (2^6 - 1) << 4\n \n // Set the 2 least significant bits to zero\n c = (chunk & 15) << 2 ;// 15 = 2^4 - 1\n \n base64 += encodings[a] + encodings[b] + encodings[c] + '=';\n }\n return base64;\n}", "title": "" }, { "docid": "04e947e10142db2b5de3e43641efda50", "score": "0.67363125", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n }", "title": "" }, { "docid": "9a6173df756437efeb7e4497b07f164f", "score": "0.671255", "text": "function rawToBase64(raw) {\n var res = '';\n for (var i = 0, len = raw.length; i < len; i++) {\n res += intToString(raw[i]);\n }\n return base64.btoa(res);\n}", "title": "" }, { "docid": "56ae3246d702b03262bb01db684912a9", "score": "0.6708165", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n }", "title": "" }, { "docid": "61b5d68f879a2b0aac4a15aa6cab0fc3", "score": "0.6707431", "text": "function base64ArrayBuffer(arrayBuffer) {\n var base64 = '';\n var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n var bytes = new Uint8Array(arrayBuffer);\n var byteLength = bytes.byteLength;\n var byteRemainder = byteLength % 3;\n var mainLength = byteLength - byteRemainder;\n\n var a, b, c, d;\n var chunk;\n\n // Main loop deals with bytes in chunks of 3\n for (var i = 0; i < mainLength; i = i + 3) {\n // Combine the three bytes into a single integer\n chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n\n // Use bitmasks to extract 6-bit segments from the triplet\n a = (chunk & 16515072) >> 18; // 16515072 = (2^6 - 1) << 18\n b = (chunk & 258048) >> 12; // 258048 = (2^6 - 1) << 12\n c = (chunk & 4032) >> 6; // 4032 = (2^6 - 1) << 6\n d = chunk & 63; // 63 = 2^6 - 1\n\n // Convert the raw binary segments to the appropriate ASCII encoding\n base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d];\n }\n\n // Deal with the remaining bytes and padding\n if (byteRemainder == 1) {\n chunk = bytes[mainLength];\n\n a = (chunk & 252) >> 2; // 252 = (2^6 - 1) << 2\n\n // Set the 4 least significant bits to zero\n b = (chunk & 3) << 4; // 3 = 2^2 - 1\n\n base64 += encodings[a] + encodings[b] + '==';\n } else if (byteRemainder == 2) {\n chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1];\n\n a = (chunk & 64512) >> 10; // 64512 = (2^6 - 1) << 10\n b = (chunk & 1008) >> 4; // 1008 = (2^6 - 1) << 4\n\n // Set the 2 least significant bits to zero\n c = (chunk & 15) << 2; // 15 = 2^4 - 1\n\n base64 += encodings[a] + encodings[b] + encodings[c] + '=';\n }\n\n return base64;\n}", "title": "" }, { "docid": "012e4313a575bd3480983e01396e325d", "score": "0.6707042", "text": "function Base64() { \r\n // private property \r\n var _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"; \r\n \r\n // public method for encoding \r\n this.encode = function (input) { \r\n \tif(Ext.isEmpty(input)){\r\n \t\treturn '';\r\n \t}\r\n var output = \"\"; \r\n var chr1, chr2, chr3, enc1, enc2, enc3, enc4; \r\n var i = 0; \r\n input = _utf8_encode(input); \r\n while (i < input.length) { \r\n chr1 = input.charCodeAt(i++); \r\n chr2 = input.charCodeAt(i++); \r\n chr3 = input.charCodeAt(i++); \r\n enc1 = chr1 >> 2; \r\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); \r\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); \r\n enc4 = chr3 & 63; \r\n if (isNaN(chr2)) { \r\n enc3 = enc4 = 64; \r\n } else if (isNaN(chr3)) { \r\n enc4 = 64; \r\n } \r\n output = output + \r\n _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + \r\n _keyStr.charAt(enc3) + _keyStr.charAt(enc4); \r\n } \r\n return output; \r\n } \r\n \r\n // public method for decoding \r\n this.decode = function (input) {\r\n \tif(Ext.isEmpty(input)){\r\n \t\treturn '';\r\n \t}\r\n var output = \"\"; \r\n var chr1, chr2, chr3; \r\n var enc1, enc2, enc3, enc4; \r\n var i = 0; \r\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\"); \r\n while (i < input.length) { \r\n enc1 = _keyStr.indexOf(input.charAt(i++)); \r\n enc2 = _keyStr.indexOf(input.charAt(i++)); \r\n enc3 = _keyStr.indexOf(input.charAt(i++)); \r\n enc4 = _keyStr.indexOf(input.charAt(i++)); \r\n chr1 = (enc1 << 2) | (enc2 >> 4); \r\n chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); \r\n chr3 = ((enc3 & 3) << 6) | enc4; \r\n output = output + String.fromCharCode(chr1); \r\n if (enc3 != 64) { \r\n output = output + String.fromCharCode(chr2); \r\n } \r\n if (enc4 != 64) { \r\n output = output + String.fromCharCode(chr3); \r\n } \r\n } \r\n output = _utf8_decode(output); \r\n return output; \r\n } \r\n \r\n // private method for UTF-8 encoding \r\n var _utf8_encode = function (str) { \r\n str = str.replace(/\\r\\n/g,\"\\n\");\r\n var utftext = \"\"; \r\n for (var n = 0; n < str.length; n++) { \r\n var c = str.charCodeAt(n); \r\n if (c < 128) { \r\n utftext += String.fromCharCode(c); \r\n } else if((c > 127) && (c < 2048)) { \r\n utftext += String.fromCharCode((c >> 6) | 192); \r\n utftext += String.fromCharCode((c & 63) | 128); \r\n } else { \r\n utftext += String.fromCharCode((c >> 12) | 224); \r\n utftext += String.fromCharCode(((c >> 6) & 63) | 128); \r\n utftext += String.fromCharCode((c & 63) | 128); \r\n } \r\n \r\n } \r\n return utftext; \r\n } \r\n \r\n // private method for UTF-8 decoding \r\n var _utf8_decode = function (utftext) { \r\n var str = \"\"; \r\n var i = 0, c = 0,c1 = 0,c2 = 0 ,c3; \r\n var c = c1 = c2 = 0; \r\n while ( i < utftext.length ) { \r\n c = utftext.charCodeAt(i); \r\n if (c < 128) { \r\n str += String.fromCharCode(c); \r\n i++; \r\n } else if((c > 191) && (c < 224)) { \r\n c2 = utftext.charCodeAt(i+1); \r\n str += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); \r\n i += 2; \r\n } else { \r\n c2 = utftext.charCodeAt(i+1); \r\n c3 = utftext.charCodeAt(i+2); \r\n str += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); \r\n i += 3; \r\n } \r\n } \r\n return str; \r\n } \r\n}", "title": "" }, { "docid": "6ff112c9e8fe63f9dd33848ccabfbcc3", "score": "0.67024326", "text": "function url_base64_decode(str) {\n\t var output = str.replace('-', '+').replace('_', '/');\n\t switch (output.length % 4) {\n\t\tcase 0:\n\t\t break;\n\t\tcase 2:\n\t\t output += '==';\n\t\t break;\n\t\tcase 3:\n\t\t output += '=';\n\t\t break;\n\t\tdefault:\n\t\t throw 'Illegal base64url string!';\n\t }\n\t return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n\t}", "title": "" }, { "docid": "474716b0b942a37ab9a5e1bffdd00c8c", "score": "0.67003995", "text": "function base64ToByteArray( str )\n\t\t{\n\t\t\tvar result = [ ];\n\t\t\tvar digit_num;\n\t\t\tvar cur;\n\t\t\tvar prev;\n\n\t\t\tfor ( var i = 23, l = str.length; i < l; i++ )\n\t\t\t{\n\t\t\t\tcur = reverse_base64_map[ str.charAt( i ) ];\n\t\t\t\tdigit_num = ( i - 23 ) % 4;\n\n\t\t\t\tswitch ( digit_num )\n\t\t\t\t{\n\t\t\t\t\t// case 0: first digit - do nothing, not enough info to work with\n\t\t\t\t\tcase 1: // second digit\n\t\t\t\t\t\tresult.push( prev << 2 | cur >> 4 );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2: // third digit\n\t\t\t\t\t\tresult.push( ( prev & 0x0f ) << 4 | cur >> 2 );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: // fourth digit\n\t\t\t\t\t\tresult.push( ( prev & 3 ) << 6 | cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tprev = cur;\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "183a8dd25afb96ed82c73b19425cc184", "score": "0.6699874", "text": "function base64ToString (s) {\r\n //the base 64 characters\r\n var BASE64 = new Array ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/');\r\n\t\r\n var decode = new Object();\r\n for (var i=0; i<BASE64.length; i++) {decode[BASE64[i]] = i;} //inverse of the array\r\n decode['='] = 0; //add the equals sign as well\r\n var r = \"\", c1, c2, c3, c4, len=s.length; //define variables\r\n s += \"====\"; //just to make sure it is padded correctly\r\n for (var i=0; i<len; i+=4) { //4 input characters at a time\r\n c1 = s.charAt(i); //the 1st base64 input characther\r\n c2 = s.charAt(i+1);\r\n c3 = s.charAt(i+2);\r\n c4 = s.charAt(i+3);\r\n r += String.fromCharCode (((decode[c1] << 2) & 0xff) | (decode[c2] >> 4)); //reform the string\r\n if (c3 != '=') r += String.fromCharCode (((decode[c2] << 4) & 0xff) | (decode[c3] >> 2));\r\n if (c4 != '=') r += String.fromCharCode (((decode[c3] << 6) & 0xff) | decode[c4]);\r\n }\r\n return r;\r\n}", "title": "" }, { "docid": "be431a6dbae137d77ebe1bdeeb225b84", "score": "0.66882604", "text": "function Base64() {\n \n\t// private property\n\t_keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n \n\t// public method for encoding\n\tthis.encode = function (input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = _utf8_encode(input);\n\t\twhile (i < input.length) {\n\t\t\tchr1 = input.charCodeAt(i++);\n\t\t\tchr2 = input.charCodeAt(i++);\n\t\t\tchr3 = input.charCodeAt(i++);\n\t\t\tenc1 = chr1 >> 2;\n\t\t\tenc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n\t\t\tenc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n\t\t\tenc4 = chr3 & 63;\n\t\t\tif (isNaN(chr2)) {\n\t\t\t\tenc3 = enc4 = 64;\n\t\t\t} else if (isNaN(chr3)) {\n\t\t\t\tenc4 = 64;\n\t\t\t}\n\t\t\toutput = output +\n\t\t\t_keyStr.charAt(enc1) + _keyStr.charAt(enc2) +\n\t\t\t_keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n\t\t}\n\t\treturn output;\n\t}\n \n\t// public method for decoding\n\tthis.decode = function (input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3;\n\t\tvar enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\t\twhile (i < input.length) {\n\t\t\tenc1 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc2 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc3 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc4 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tchr1 = (enc1 << 2) | (enc2 >> 4);\n\t\t\tchr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n\t\t\tchr3 = ((enc3 & 3) << 6) | enc4;\n\t\t\toutput = output + String.fromCharCode(chr1);\n\t\t\tif (enc3 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr2);\n\t\t\t}\n\t\t\tif (enc4 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr3);\n\t\t\t}\n\t\t}\n\t\toutput = _utf8_decode(output);\n\t\treturn output;\n\t}\n \n\t// private method for UTF-8 encoding\n\t_utf8_encode = function (string) {\n\t\tstring = string.replace(/\\r\\n/g,\"\\n\");\n\t\tvar utftext = \"\";\n\t\tfor (var n = 0; n < string.length; n++) {\n\t\t\tvar c = string.charCodeAt(n);\n\t\t\tif (c < 128) {\n\t\t\t\tutftext += String.fromCharCode(c);\n\t\t\t} else if((c > 127) && (c < 2048)) {\n\t\t\t\tutftext += String.fromCharCode((c >> 6) | 192);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t} else {\n\t\t\t\tutftext += String.fromCharCode((c >> 12) | 224);\n\t\t\t\tutftext += String.fromCharCode(((c >> 6) & 63) | 128);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t}\n \n\t\t}\n\t\treturn utftext;\n\t}\n \n\t// private method for UTF-8 decoding\n\t_utf8_decode = function (utftext) {\n\t\tvar string = \"\";\n\t\tvar i = 0;\n\t\tvar c = c1 = c2 = 0;\n\t\twhile ( i < utftext.length ) {\n\t\t\tc = utftext.charCodeAt(i);\n\t\t\tif (c < 128) {\n\t\t\t\tstring += String.fromCharCode(c);\n\t\t\t\ti++;\n\t\t\t} else if((c > 191) && (c < 224)) {\n\t\t\t\tc2 = utftext.charCodeAt(i+1);\n\t\t\t\tstring += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t\ti += 2;\n\t\t\t} else {\n\t\t\t\tc2 = utftext.charCodeAt(i+1);\n\t\t\t\tc3 = utftext.charCodeAt(i+2);\n\t\t\t\tstring += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t\ti += 3;\n\t\t\t}\n\t\t}\n\t\treturn string;\n\t}\n}", "title": "" }, { "docid": "c37f25b63d443042cb70d488a938ccc8", "score": "0.66784084", "text": "function base64_decode(data) {\n var dst = \"\"\n var i, a, b, c, d, z\n\n for (i = 0; i < data.length - 3; i += 4) {\n a = base64_charIndex(data.charAt(i+0))\n b = base64_charIndex(data.charAt(i+1))\n c = base64_charIndex(data.charAt(i+2))\n d = base64_charIndex(data.charAt(i+3))\n\n dst += String.fromCharCode((a << 2) | (b >>> 4))\n if (data.charAt(i+2) != b64pad)\n dst += String.fromCharCode(((b << 4) & 0xF0) | ((c >>> 2) & 0x0F))\n if (data.charAt(i+3) != b64pad)\n dst += String.fromCharCode(((c << 6) & 0xC0) | d)\n }\n\n dst = decodeURIComponent(escape(dst))\n return dst\n }", "title": "" }, { "docid": "6edd04cf4af8f602d90bf0ad2f348ca6", "score": "0.66675943", "text": "function atob(x) { return Buffer.from(x, 'base64').toString('binary'); }", "title": "" }, { "docid": "c2b73a25f5fddb97aafeccae722b840e", "score": "0.6664918", "text": "function Base64() {\n\t// private property\n\t_keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\t// public method for encoding\n\tthis.encode = function (input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = _utf8_encode(input);\n\t\twhile (i < input.length) {\n\t\t\tchr1 = input.charCodeAt(i++);\n\t\t\tchr2 = input.charCodeAt(i++);\n\t\t\tchr3 = input.charCodeAt(i++);\n\t\t\tenc1 = chr1 >> 2;\n\t\t\tenc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n\t\t\tenc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n\t\t\tenc4 = chr3 & 63;\n\t\t\tif (isNaN(chr2)) {\n\t\t\t\tenc3 = enc4 = 64;\n\t\t\t} else if (isNaN(chr3)) {\n\t\t\t\tenc4 = 64;\n\t\t\t}\n\t\t\toutput = output +\n\t\t\t\t_keyStr.charAt(enc1) + _keyStr.charAt(enc2) +\n\t\t\t\t_keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n\t\t}\n\t\treturn output;\n\t}\n\t// public method for decoding\n\tthis.decode = function (input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3;\n\t\tvar enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\t\twhile (i < input.length) {\n\t\t\tenc1 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc2 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc3 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc4 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tchr1 = (enc1 << 2) | (enc2 >> 4);\n\t\t\tchr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n\t\t\tchr3 = ((enc3 & 3) << 6) | enc4;\n\t\t\toutput = output + String.fromCharCode(chr1);\n\t\t\tif (enc3 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr2);\n\t\t\t}\n\t\t\tif (enc4 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr3);\n\t\t\t}\n\t\t}\n\t\toutput = _utf8_decode(output);\n\t\treturn output;\n\t}\n\t// private method for UTF-8 encoding\n\t_utf8_encode = function (string) {\n\t\tstring = string.replace(/\\r\\n/g, \"\\n\");\n\t\tvar utftext = \"\";\n\t\tfor (var n = 0; n < string.length; n++) {\n\t\t\tvar c = string.charCodeAt(n);\n\t\t\tif (c < 128) {\n\t\t\t\tutftext += String.fromCharCode(c);\n\t\t\t} else if ((c > 127) && (c < 2048)) {\n\t\t\t\tutftext += String.fromCharCode((c >> 6) | 192);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t} else {\n\t\t\t\tutftext += String.fromCharCode((c >> 12) | 224);\n\t\t\t\tutftext += String.fromCharCode(((c >> 6) & 63) | 128);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t}\n\t\t}\n\t\treturn utftext;\n\t}\n\t// private method for UTF-8 decoding\n\t_utf8_decode = function (utftext) {\n\t\tvar string = \"\";\n\t\tvar i = 0;\n\t\tvar c = c1 = c2 = 0;\n\t\twhile (i < utftext.length) {\n\t\t\tc = utftext.charCodeAt(i);\n\t\t\tif (c < 128) {\n\t\t\t\tstring += String.fromCharCode(c);\n\t\t\t\ti++;\n\t\t\t} else if ((c > 191) && (c < 224)) {\n\t\t\t\tc2 = utftext.charCodeAt(i + 1);\n\t\t\t\tstring += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t\ti += 2;\n\t\t\t} else {\n\t\t\t\tc2 = utftext.charCodeAt(i + 1);\n\t\t\t\tc3 = utftext.charCodeAt(i + 2);\n\t\t\t\tstring += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t\ti += 3;\n\t\t\t}\n\t\t}\n\t\treturn string;\n\t}\n}", "title": "" }, { "docid": "a580907ee6c0b661b12fadb3ec80c31d", "score": "0.66639155", "text": "function ab_to_base64(ab) {\n return base64urlencode(ab_to_str(ab));\n}", "title": "" }, { "docid": "babd1aa067bea64919b206b35cc9d30e", "score": "0.6656727", "text": "function toBase64(u8arr) {\r\n return btoa(String.fromCharCode.apply(null, u8arr)).\r\n replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=*$/, '');\r\n}", "title": "" }, { "docid": "c2d80817613f1f455760ce0fda98e7f1", "score": "0.66404104", "text": "function toBase64(input) {\n var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n var output = '';\n var length = input.length;\n var triplet;\n var b64pad = '=';\n\n for (var i = 0; i < length; i += 3) {\n triplet = input.charCodeAt(i) << 16 | (i + 1 < length ? input.charCodeAt(i + 1) << 8 : 0) | (i + 2 < length ? input.charCodeAt(i + 2) : 0);\n\n for (var j = 0; j < 4; j += 1) {\n if (i * 8 + j * 6 > input.length * 8) {\n output += b64pad;\n } else {\n output += tab.charAt(triplet >>> 6 * (3 - j) & 0x3f);\n }\n }\n }\n\n return output;\n}", "title": "" }, { "docid": "8b4b0777b1e0652de0c8b15ec124e213", "score": "0.6620513", "text": "function Base64() {\n\n\t// private property\n\t_keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n\t// public method for encoding\n\tthis.encode = function(input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = _utf8_encode(input);\n\t\twhile (i < input.length) {\n\t\t\tchr1 = input.charCodeAt(i++);\n\t\t\tchr2 = input.charCodeAt(i++);\n\t\t\tchr3 = input.charCodeAt(i++);\n\t\t\tenc1 = chr1 >> 2;\n\t\t\tenc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n\t\t\tenc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n\t\t\tenc4 = chr3 & 63;\n\t\t\tif (isNaN(chr2)) {\n\t\t\t\tenc3 = enc4 = 64;\n\t\t\t} else if (isNaN(chr3)) {\n\t\t\t\tenc4 = 64;\n\t\t\t}\n\t\t\toutput = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2)\n\t\t\t\t\t+ _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n\t\t}\n\t\treturn output;\n\t}\n\n\t// public method for decoding\n\tthis.decode = function(input) {\n\t\tvar output = \"\";\n\t\tvar chr1, chr2, chr3;\n\t\tvar enc1, enc2, enc3, enc4;\n\t\tvar i = 0;\n\t\tinput = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\t\twhile (i < input.length) {\n\t\t\tenc1 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc2 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc3 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tenc4 = _keyStr.indexOf(input.charAt(i++));\n\t\t\tchr1 = (enc1 << 2) | (enc2 >> 4);\n\t\t\tchr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n\t\t\tchr3 = ((enc3 & 3) << 6) | enc4;\n\t\t\toutput = output + String.fromCharCode(chr1);\n\t\t\tif (enc3 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr2);\n\t\t\t}\n\t\t\tif (enc4 != 64) {\n\t\t\t\toutput = output + String.fromCharCode(chr3);\n\t\t\t}\n\t\t}\n\t\toutput = _utf8_decode(output);\n\t\treturn output;\n\t}\n\n\t// private method for UTF-8 encoding\n\t_utf8_encode = function(string) {\n\t\tstring = string.replace(/\\r\\n/g, \"\\n\");\n\t\tvar utftext = \"\";\n\t\tfor ( var n = 0; n < string.length; n++) {\n\t\t\tvar c = string.charCodeAt(n);\n\t\t\tif (c < 128) {\n\t\t\t\tutftext += String.fromCharCode(c);\n\t\t\t} else if ((c > 127) && (c < 2048)) {\n\t\t\t\tutftext += String.fromCharCode((c >> 6) | 192);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t} else {\n\t\t\t\tutftext += String.fromCharCode((c >> 12) | 224);\n\t\t\t\tutftext += String.fromCharCode(((c >> 6) & 63) | 128);\n\t\t\t\tutftext += String.fromCharCode((c & 63) | 128);\n\t\t\t}\n\n\t\t}\n\t\treturn utftext;\n\t}\n\n\t// private method for UTF-8 decoding\n\t_utf8_decode = function(utftext) {\n\t\tvar string = \"\";\n\t\tvar i = 0;\n\t\tvar c = c1 = c2 = 0;\n\t\twhile (i < utftext.length) {\n\t\t\tc = utftext.charCodeAt(i);\n\t\t\tif (c < 128) {\n\t\t\t\tstring += String.fromCharCode(c);\n\t\t\t\ti++;\n\t\t\t} else if ((c > 191) && (c < 224)) {\n\t\t\t\tc2 = utftext.charCodeAt(i + 1);\n\t\t\t\tstring += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t\ti += 2;\n\t\t\t} else {\n\t\t\t\tc2 = utftext.charCodeAt(i + 1);\n\t\t\t\tc3 = utftext.charCodeAt(i + 2);\n\t\t\t\tstring += String.fromCharCode(((c & 15) << 12)\n\t\t\t\t\t\t| ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t\ti += 3;\n\t\t\t}\n\t\t}\n\t\treturn string;\n\t}\n}", "title": "" }, { "docid": "1e3b93eab7d233507e490e32b3a7ac3d", "score": "0.6618162", "text": "function fromBase64Url(data) {\n var input = data.padRight(data.length + (4 - data.length % 4) % 4, '=')\n .replace(/\\-/g, '+')\n .replace(/_/g, '/');\n\n return toArrayBuffer(atob(input));\n}", "title": "" }, { "docid": "56f6c98d95ef5e8c10e30e2b7ff22fb3", "score": "0.6592474", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n}", "title": "" }, { "docid": "8237bd6c81286c161d19332e64f00696", "score": "0.65881157", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n}", "title": "" }, { "docid": "39b2e01239eef42345d48d8071f3d7d4", "score": "0.6587896", "text": "function convertBase64ToBytes ( base64 ) {\n\n base64 = base64.replace(/[^A-Za-z0-9\\+\\/\\=]+/g, '');\n\n var bytes = [],\n base64Length = base64.length,\n a, b, c, d;\n\n if (\n ( base64Length % 4 ) != 0\n ) {\n return(bytes);\n };\n\n for (\n var i = 0;\n i < base64Length;\n i += 4\n ) {\n\n a = base64Lookup[base64.charCodeAt(i)];\n b = base64Lookup[base64.charCodeAt(( i + 1 ))];\n c = base64Lookup[base64.charCodeAt(( i + 2 ))];\n d = base64Lookup[base64.charCodeAt(( i + 3 ))];\n\n bytes.push(( ( a << 2 ) | ( b >> 4 ) ));\n\n if (\n c != 64\n ) {\n bytes.push(( ( ( b & 15 ) << 4 ) | ( c >> 2 ) ));\n };\n\n if (\n d != 64\n ) {\n bytes.push(( ( ( c & 3 ) << 6 ) | ( d & 63 ) ));\n };\n\n };\n\n return(bytes);\n\n}", "title": "" }, { "docid": "fb391cc8efd6bc024ecfd6a0a747fbcb", "score": "0.65802276", "text": "function base16tobase64(h) {\n var i;\n var base64Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n var c;\n var ret = \"\";\n if(h.length % 2 == 1)\n {\n h = \"0\" + h;\n }\n for (i = 0; i + 3 <= h.length; i += 3)\n {\n c = parseInt(h.substring(i, i + 3), 16);\n ret += base64Chars.charAt(c >> 6) + base64Chars.charAt(c & 63);\n }\n if (i + 1 == h.length)\n {\n c = parseInt(h.substring(i, i + 1), 16);\n ret += base64Chars.charAt(c << 2);\n }\n else if (i + 2 == h.length)\n {\n c = parseInt(h.substring(i, i + 2), 16);\n ret += base64Chars.charAt(c >> 2) + base64Chars.charAt((c & 3) << 4);\n }\n while ((ret.length & 3) > 0) ret += \"=\";\n return ret;\n}", "title": "" }, { "docid": "a22a3dd38dae461ff7cd035cc615bd00", "score": "0.6578971", "text": "function base64encode(value) {\n\treturn new Buffer(value).toString('base64');\n}", "title": "" }, { "docid": "f5b1d8b750d82897222ce39cb25915db", "score": "0.6557221", "text": "base64(pathFile) {\n const fs = require('fs');\n let base64data = null;\n try {\n let buff = fs.readFileSync(pathFile);\n base64data = buff.toString('base64');\n } catch (error) {\n console.log('Image not converted to base 64 :\\n\\n' + error);\n }\n //console.log('Image converted to base 64 is:\\n\\n' + base64data);\n return base64data;\n }", "title": "" }, { "docid": "1d97a8722a97d619dd91c68277fd2d2b", "score": "0.6557147", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n}", "title": "" }, { "docid": "fe125bb4fcd3eed71938f19bdc3d8383", "score": "0.65507054", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output); //polyfill https://github.com/davidchambers/Base64.js\n }", "title": "" }, { "docid": "d2182b2094e908286242eab3dd071fe1", "score": "0.6540846", "text": "apply_blob(blob) { return Base64.encode(blob) }", "title": "" }, { "docid": "833ebf97c201e83308bf4415b785b9ab", "score": "0.6529739", "text": "extractCode(str) {\n //console.log((new Buffer(str, 'base64')))\n let res = {}, length;\n // move the data into a byte array\n let arr = str;\n res.partType = arr[0]; // should be one of the PART_COMBINATIONS values\n length = arr[1]; // length of the first key part\n let c = 2;\n res.part1 = arr.slice(c, c + length);\n c += length;\n length = arr[c]; // length of the second key part\n c += 1;\n res.part2 = arr.slice(c, c + length);\n let keylength = arr[c + length];\n c += length + 1;\n res.pad1 = arr.slice(c, c + keylength);\n c += keylength;\n res.pad2 = arr.slice(c, c + keylength);\n return res;\n }", "title": "" }, { "docid": "1883cc9137463ab511c8b67d3deb0010", "score": "0.6528398", "text": "function url_base64_decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output);\n }", "title": "" }, { "docid": "8eb92489a957a6fe2c84f88dcd31ec1a", "score": "0.652571", "text": "base64Pad() {\n return this._b64pad;\n }", "title": "" }, { "docid": "f118c62de160b78913aeef2535653f71", "score": "0.65212154", "text": "function ToBase64(u8) \n{\n return btoa(String.fromCharCode.apply(null, u8));\n}", "title": "" }, { "docid": "e0b5b44b600486bab63712cecdef84db", "score": "0.6514977", "text": "function encode64(input) {\n if(window.btoa){\n return window.btoa(input);\n }\n// base64 strings are 4/3 larger than the original string\n var output = new Array( Math.floor( (input.length + 2) / 3 ) * 4 );\n var chr1, chr2, chr3;\n var enc1, enc2, enc3, enc4;\n var i = 0, p = 0;\n var _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n do {\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n \n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n \n if (isNaN(chr2)) {\n \tenc3 = enc4 = 64;\n }\n else if (isNaN(chr3)) {\n \t enc4 = 64;\n }\n\n output[p++] = _keyStr.charAt(enc1);\n output[p++] = _keyStr.charAt(enc2);\n output[p++] = _keyStr.charAt(enc3);\n output[p++] = _keyStr.charAt(enc4);\n } while (i < input.length);\n\n return output.join('');\n}", "title": "" }, { "docid": "dc6a7c99198aa7ab55d04ccacdaa6c5c", "score": "0.6510741", "text": "function base64Encode(data) {\n if (typeof btoa == \"function\") return btoa(data); //use internal base64 functions if available (gecko only)\n var b64_map =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var byte1, byte2, byte3;\n var ch1, ch2, ch3, ch4;\n var result = new Array(); //array is used instead of string because in most of browsers working with large arrays is faster than working with large strings\n var j = 0;\n for (var i = 0; i < data.length; i += 3) {\n byte1 = data.charCodeAt(i);\n byte2 = data.charCodeAt(i + 1);\n byte3 = data.charCodeAt(i + 2);\n ch1 = byte1 >> 2;\n ch2 = ((byte1 & 3) << 4) | (byte2 >> 4);\n ch3 = ((byte2 & 15) << 2) | (byte3 >> 6);\n ch4 = byte3 & 63;\n\n if (isNaN(byte2)) {\n ch3 = ch4 = 64;\n } else if (isNaN(byte3)) {\n ch4 = 64;\n }\n\n result[j++] =\n b64_map.charAt(ch1) +\n b64_map.charAt(ch2) +\n b64_map.charAt(ch3) +\n b64_map.charAt(ch4);\n }\n\n return result.join(\"\");\n}", "title": "" }, { "docid": "308299dff1f1ae680bc3755106642d73", "score": "0.65102285", "text": "function getBase64(f){\r\n var reader = new FileReader();\r\n reader.readAsDataURL(f);\r\n reader.onload = function () {\r\n console.log(reader.result);\r\n };\r\n }", "title": "" }, { "docid": "aa06163aac3ac3a7cc372fa5a64354c9", "score": "0.65095043", "text": "function toBase64(input) {\n return util_buffer_from_1.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString(\"base64\");\n}", "title": "" }, { "docid": "e51bf9d60dede67d8ccee4099aaa01ab", "score": "0.6508388", "text": "function convertToBase64(input) {\n var result = \"\";\n var charCodes = getExpandedCharCodes(input);\n var i = 0;\n var length = charCodes.length;\n var byte1, byte2, byte3, byte4;\n while (i < length) {\n // Convert every 6-bits in the input 3 character points\n // into a base64 digit\n byte1 = charCodes[i] >> 2;\n byte2 = (charCodes[i] & 3) << 4 | charCodes[i + 1] >> 4;\n byte3 = (charCodes[i + 1] & 15) << 2 | charCodes[i + 2] >> 6;\n byte4 = charCodes[i + 2] & 63;\n // We are out of characters in the input, set the extra\n // digits to 64 (padding character).\n if (i + 1 >= length) {\n byte3 = byte4 = 64;\n }\n else if (i + 2 >= length) {\n byte4 = 64;\n }\n // Write to the output\n result += base64Digits.charAt(byte1) + base64Digits.charAt(byte2) + base64Digits.charAt(byte3) + base64Digits.charAt(byte4);\n i += 3;\n }\n return result;\n }", "title": "" }, { "docid": "5b1183142428b38304866905e8ceb28e", "score": "0.6503669", "text": "static base64Decode(base64Str) {\n return Buffer.from(base64Str, \"base64\").toString(\"utf8\");\n }", "title": "" }, { "docid": "8449fff842cfaf63a808ab63d39552af", "score": "0.65010184", "text": "static base64Encode(str, encoding) {\n return Buffer.from(str, encoding).toString(\"base64\");\n }", "title": "" }, { "docid": "12bce29682c4da0f45b632c54c238ba5", "score": "0.6472057", "text": "function urlBase64Decode(str) {\n var output = str.replace('-', '+').replace('_', '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw 'Illegal base64url string!';\n }\n return window.atob(output);\n }", "title": "" }, { "docid": "03f565465bbca8e510f9afb75cb71598", "score": "0.64575666", "text": "function base64encode(input) {\n var output = \"\";\n var chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n var i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output = output +\n _keyStr.charAt(enc1) + _keyStr.charAt(enc2) +\n _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n\n }\n\n return output;\n }", "title": "" }, { "docid": "e465827f352528a3a64feaf06b174086", "score": "0.64535064", "text": "method_59(param1)\n {\n return new Buffer(param1, 'base64');\n }", "title": "" }, { "docid": "1c2a45fcb199237979fcb01b79219d5c", "score": "0.6453475", "text": "arrayBufferToBase64(buffer) {\n var binary = '';\n var bytes = [].slice.call(new Uint8Array(buffer));\n bytes.forEach((b) => binary += String.fromCharCode(b));\n return binary;\n }", "title": "" }, { "docid": "84f3825dd9320498cf191913975d83dc", "score": "0.6451968", "text": "str2Base64(_str) {\n const _this = this;\n return _this._binb2b64(_this._str2binb(_str));\n }", "title": "" }, { "docid": "d3309834dcfa33975598458a4d114044", "score": "0.6442422", "text": "function url_base64_decode(str) {\n\tvar output = str.replace(/-/g, '+').replace(/_/g, '/');\n\tswitch (output.length % 4) {\n\t\tcase 0:\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\toutput += '==';\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\toutput += '=';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow 'Illegal base64url string!';\n\t}\n\tvar result = window.atob(output); //polifyll https://github.com/davidchambers/Base64.js\n\ttry {\n\t\treturn decodeURIComponent(escape(result));\n\t} catch (err) {\n\t\treturn result;\n\t}\n}", "title": "" }, { "docid": "f73e6304fc1a803e386cb27aa9fc24e2", "score": "0.643527", "text": "get base64String() {\n return exports.base64.encode(this.refString);\n }", "title": "" }, { "docid": "a5c1db27e5f84361752aff18dfcd36d8", "score": "0.6434305", "text": "function dateToBase64(date) {\n\t\tvar majorminor = date.split(' ')\n\t\tvar major = majorminor[0].split('-')\n\t\tvar minor = majorminor[1].split(':')\n\t\tvar year = parseInt(major[0]) - 2010\n\t\tvar month = parseInt(major[1])\n\t\tvar day = parseInt(major[2])\n\t\tvar hour = parseInt(minor[0])\n\t\tvar minute = parseInt(minor[1])\n\t\tvar second = parseInt(minor[2])\n\n\t\tyear = BASE64_STRING.substr(year, 1)\n\t\tmonth = BASE64_STRING.substr(month, 1)\n\t\tday = BASE64_STRING.substr(day, 1)\n\t\thour = BASE64_STRING.substr(hour, 1)\n\t\tminute = BASE64_STRING.substr(minute, 1)\n\t\tsecond = BASE64_STRING.substr(second, 1)\n\t\tresult = year + month + day + hour + minute + second\n\n\t\treturn result\n\t}", "title": "" }, { "docid": "191e477dbee149b5f97e05ef4e5104f2", "score": "0.6429564", "text": "function base64_to_ab(a) {\n return str_to_ab(base64urldecode(a));\n}", "title": "" }, { "docid": "cae85e1cb16571c76c60abdc76d190ef", "score": "0.641176", "text": "decode(str){\n this.init()\n var end = str.length\n while(end>=0 && str.charAt(end-1)=='=') end--\n if(end<2) throw '·Invalid Base64 string at· ' + end\n var m = (end%4)\n if(m==1) throw '·Invalid Base64 string at· ' + (end-1)\n if(m>1) m--\n var n = 3*Math.floor(end/4) + m\n var blob = new Uint8Array(n)\n var control =[[2,4,1],[4,2,1],[6,0,2]]\n var left, right\n var k=0\n var c=0\n for(var i=0; i<n; i++){\n left = this.a2i[str.charAt(k)]\n right = this.a2i[str.charAt(k+1)]\n if(left===undefined || right===undefined) throw '·Invalid Base64 string at· ' + k\n blob[i] = (left << control[c][0]) |( right >> control[c][1])\n k+=control[c][2]\n c = (c+1)%3\n } \n return blob\n }", "title": "" }, { "docid": "111bd149500f4677ea155f463600745d", "score": "0.64093083", "text": "function toBase64(base64url) {\n // We this to be a string so we can do .replace on it. If it's\n // already a string, this is a noop.\n base64url = base64url.toString();\n return padString(base64url)\n .replace(/\\-/g, \"+\")\n .replace(/_/g, \"/\");\n}", "title": "" }, { "docid": "78643943478f80a50a2e33d5c0dd5972", "score": "0.6406297", "text": "getBase64(img, callback) {\n const reader = new FileReader();\n reader.addEventListener('load', () => callback(reader.result));\n reader.readAsDataURL(img);\n }", "title": "" }, { "docid": "b02e8fca9537a33b9a82bd56b346731a", "score": "0.640398", "text": "function atou(b64) {\n return decodeURIComponent(escape(atob(b64)));\n}", "title": "" }, { "docid": "441a93aded4eaf3821e5042829d9f6c3", "score": "0.6384247", "text": "function text2base64(text) {\n var j = 0;\n var i = 0;\n var base64 = new Array();\n var base64string = \"\";\n var base64key = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var text0, text1, text2;\n\n////////////////////////////////////////////////////////////////////////////////////////////////////\n// Step thru the input text string 3 characters per loop, creating 4 output characters per loop //\n////////////////////////////////////////////////////////////////////////////////////////////////////\n\n for (i=0; i < text.length; )\n {\n text0 = text.charCodeAt(i);\n text1 = text.charCodeAt(i+1);\n text2 = text.charCodeAt(i+2);\n\n base64[j] = base64key.charCodeAt((text0 & 252) >> 2);\n if ((i+1)<text.length) // i+1 is still part of string\n {\n base64[j+1] = base64key.charCodeAt(((text0 & 3) << 4)|((text1 & 240) >> 4));\n if ((i+2)<text.length) // i+2 is still part of string\n {\n base64[j+2] = base64key.charCodeAt(((text1 & 15) << 2) | ((text2 & 192) >> 6));\n base64[j+3] = base64key.charCodeAt((text2 & 63));\n }\n else\n {\n base64[j+2] = base64key.charCodeAt(((text1 & 15) << 2));\n base64[j+3] = 61;\n }\n }\n else\n {\n base64[j+1] = base64key.charCodeAt(((text0 & 3) << 4));\n base64[j+2] = 61;\n base64[j+3] = 61;\n }\n i=i+3;\n j=j+4;\n }\n \n ////////////////////////////////////////////\n // Create output string from byte array //\n ////////////////////////////////////////////\n\n for (i=0; i<base64.length; i++)\n {\n base64string += String.fromCharCode(base64[i]);\n }\n\n return base64string;\n}", "title": "" }, { "docid": "488055d278d540b7e43cc2e8e2d14c63", "score": "0.6377075", "text": "base64Encode(input) {\n return EncodingUtils.base64Encode(input);\n }", "title": "" }, { "docid": "fb0e1ca02bf43861c579149a4772d9dc", "score": "0.6370108", "text": "function base64Encode(str)\r\n{\r\n\tvar charBase64 = new Array(\r\n\t\t'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',\r\n\t\t'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',\r\n\t\t'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',\r\n\t\t'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/'\r\n\t);\r\n\r\n\tvar out = \"\";\r\n\tvar chr1, chr2, chr3;\r\n\tvar enc1, enc2, enc3, enc4;\r\n\tvar i = 0;\r\n\r\n\tvar len = str.length;\r\n\r\n\tdo\r\n\t{\r\n\t\tchr1 = str.charCodeAt(i++);\r\n\t\tchr2 = str.charCodeAt(i++);\r\n\t\tchr3 = str.charCodeAt(i++);\r\n\r\n\t\t//enc1 = (chr1 & 0xFC) >> 2;\r\n\t\tenc1 = chr1 >> 2;\r\n\t\tenc2 = ((chr1 & 0x03) << 4) | (chr2 >> 4);\r\n\t\tenc3 = ((chr2 & 0x0F) << 2) | (chr3 >> 6);\r\n\t\tenc4 = chr3 & 0x3F;\r\n\r\n\t\tout += charBase64[enc1] + charBase64[enc2];\r\n\r\n\t\tif (isNaN(chr2))\r\n \t\t{\r\n\t\t\tout += '==';\r\n\t\t}\r\n \t\telse if (isNaN(chr3))\r\n \t\t{\r\n\t\t\tout += charBase64[enc3] + '=';\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tout += charBase64[enc3] + charBase64[enc4];\r\n\t\t}\r\n\t}\r\n\twhile (i < len);\r\n\r\n\treturn out;\r\n}", "title": "" }, { "docid": "dc6c3850f6b3a59706e062dcce0609b5", "score": "0.63657457", "text": "function toBase64$1(input) {\n return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString(\"base64\");\n}", "title": "" }, { "docid": "e3e3a8604d3bf62f00cb2f6305f50945", "score": "0.63592046", "text": "function rstr2b64(input) {\n var tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var output = \"\";\n var len = input.length;\n for (var i = 0; i < len; i += 3) {\n var triplet = (input.charCodeAt(i) << 16)\n | (i + 1 < len ? input.charCodeAt(i + 1) << 8 : 0)\n | (i + 2 < len ? input.charCodeAt(i + 2) : 0);\n for (var j = 0; j < 4; j++) {\n if (i * 8 + j * 6 > input.length * 8) output += b64pad;\n else output += tab.charAt((triplet >>> 6 * (3 - j)) & 0x3F);\n }\n }\n return output;\n}", "title": "" }, { "docid": "e7d7493ab04c05cd8f122b30b8dbc8bc", "score": "0.6357998", "text": "function base64_encode(img) {\n // read binary data\n let png = fs.readFileSync(img);\n // convert binary data to base64 encoded string\n return new Buffer.from(png).toString('base64');\n}", "title": "" }, { "docid": "ed5d14a93d90080708104373b79ecf01", "score": "0.6356476", "text": "function base64_encode(str) {\n var utf8str = unescape(encodeURIComponent(str))\n return base64_encode_data(utf8str, utf8str.length, b64c)\n }", "title": "" }, { "docid": "dbd82878567dbb12bab63dab3b630b20", "score": "0.6347932", "text": "function base64_encode(img) {\n // read binary data\n let png = fs.readFileSync(img);\n // convert binary data to base64 encoded string\n return new Buffer.from(png).toString('base64');\n}", "title": "" }, { "docid": "9c5bc88ef05a8fd924809fe8c19c1f0e", "score": "0.6345373", "text": "function base64ToBase64Url(b64) {\n return b64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}", "title": "" }, { "docid": "9c5bc88ef05a8fd924809fe8c19c1f0e", "score": "0.6345373", "text": "function base64ToBase64Url(b64) {\n return b64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}", "title": "" }, { "docid": "953678b0ee8deff725aed4262df2084f", "score": "0.63279593", "text": "qb64b() {\n return Buffer.from(this.qb64(), 'utf-8');\n }", "title": "" }, { "docid": "940100d60c7b0d564e783792f92f6114", "score": "0.63215077", "text": "function toBase64() {\n var canvas = document.createElement(\"canvas\");\n var ctx = canvas.getContext(\"2d\");\n var img = document.getElementById(\"preview\");\n ctx.drawImage(img, 10, 10);\n var data = canvas.toDataURL();\n var string = data.replace('data:image/png;base64,', '');\n return string;\n }", "title": "" }, { "docid": "d4e8d61f90bb2fe36b0ca55acd7f5765", "score": "0.6310301", "text": "getBase64(file, cb) {\n let reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = function () {\n cb(reader.result)\n };\n reader.onerror = function (error) {\n console.log('Error: ', error);\n };\n }", "title": "" }, { "docid": "69763792a990d53cdb74666fc40f0f90", "score": "0.62993056", "text": "function base64Encode_(inputStr)\n {\n var b64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var outputStr = \"\";\n var i = 0;\n while (i < inputStr.length)\n {\n //all three \"& 0xff\" added below are there to fix a known bug\n //with bytes returned by xhr.responseText\n var byte1 = inputStr.charCodeAt(i++) & 0xff;\n var byte2 = inputStr.charCodeAt(i++) & 0xff;\n var byte3 = inputStr.charCodeAt(i++) & 0xff;\n var enc1 = byte1 >> 2;\n var enc2 = ((byte1 & 3) << 4) | (byte2 >> 4);\n var enc3, enc4;\n if (isNaN(byte2)) { enc3 = enc4 = 64; } else { enc3 = ((byte2 & 15) << 2) | (byte3 >> 6); if (isNaN(byte3)) { enc4 = 64; } else { enc4 = byte3 & 63; } }\n outputStr += b64.charAt(enc1) + b64.charAt(enc2) + b64.charAt(enc3) + b64.charAt(enc4);\n }\n return outputStr;\n }", "title": "" }, { "docid": "9f16367594005c69f36a59d470f2a35e", "score": "0.62944204", "text": "base64EncodedAuthInfo () {\n\t\treturn {\n\t\t\tclientID: this.authInfo.clientID,\n\t\t\tserverToken: this.authInfo.serverToken,\n\t\t\tclientToken: this.authInfo.clientToken,\n\t\t\tencKey: this.authInfo.encKey.toString('base64'),\n\t\t\tmacKey: this.authInfo.macKey.toString('base64')\n\t\t}\n\t}", "title": "" }, { "docid": "5f0165a6bd7ef3dc1b7b0ea4418c35fe", "score": "0.62883043", "text": "function base64ToHex(b64str)\t\t\t\t\t\t\t\t\t// Base64 to Hex\r\n\t{\r\n\t\tfor (var i = 0, bin = atob(b64str.replace(/[ \\r\\n]+$/, \"\")), hex = []; i < bin.length; ++i) {\r\n\t\t\tvar tmp = bin.charCodeAt(i).toString(16);\r\n\t\t\tif (tmp.length === 1) tmp = \"0\" + tmp;\r\n\t\t\thex[hex.length] = tmp;\r\n\t\t}\r\n\t\treturn hex.join(\"\");\r\n\t}", "title": "" }, { "docid": "c1cb0905e5860a0c6537fd9be98fe433", "score": "0.6276589", "text": "function rstr2b64(input)\n{\n try { b64pad } catch(e) { b64pad=''; }\n var tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var output = \"\";\n var len = input.length;\n for(var i = 0; i < len; i += 3)\n {\n var triplet = (input.charCodeAt(i) << 16)\n | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)\n | (i + 2 < len ? input.charCodeAt(i+2) : 0);\n for(var j = 0; j < 4; j++)\n {\n if(i * 8 + j * 6 > input.length * 8) output += b64pad;\n else output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);\n }\n }\n return output;\n}", "title": "" }, { "docid": "73bc218c7ebac798c7bc29f74ab084fd", "score": "0.62711203", "text": "function rstr2b64(input)\n{\n b64pad = b64pad || '';\n var tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var output = \"\";\n var len = input.length;\n for(var i = 0; i < len; i += 3)\n {\n var triplet = (input.charCodeAt(i) << 16)\n | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)\n | (i + 2 < len ? input.charCodeAt(i+2) : 0);\n for(var j = 0; j < 4; j++)\n {\n if(i * 8 + j * 6 > input.length * 8) output += b64pad;\n else output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);\n }\n }\n return output;\n}", "title": "" }, { "docid": "a6e50a83de6a3c7a1df0b7fb16ca354b", "score": "0.6270722", "text": "function atob(r) { for (var t, a = String(r), c = 0, n = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\", o = \"\"; a.charAt(0 | c) || (n = \"=\", c % 1); o += n.charAt(63 & t >> 8 - c % 1 * 8))t = t << 8 | a.charCodeAt(c += .75); return o }", "title": "" } ]
b1c461de5949d9873595182f5d5f14ac
function to fetch movie data from OMBD
[ { "docid": "4d3e5b3f05e9119dfbf9942d1555b0c3", "score": "0.71401614", "text": "function movie() {\n if (typeof search === 'undefined') {\n search = 'Mr Nobody';\n }\n var queryURL = 'http://www.omdbapi.com/?apikey=40e9cece&t=' + search;\n request(queryURL, function (error, response, body) {\n console.log('Query String: ' + queryURL);\n if (!error && response.statusCode === 200) {\n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n var allRequest = \"Title: \" + JSON.parse(body).Title + \" \" + \"Release Year: \" + JSON.parse(body).Year + \" \" + \"IMDB Rating: \" + JSON.parse(body).Ratings[0].Value + \" \" + \"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[0].Value + \" \" + \"Country:\" + JSON.parse(body).Country + \" \" + \"Language: \" + JSON.parse(body).Language + \" \" + \"Plot: \" + JSON.parse(body).Plot;\n\n writeToLog(allRequest);\n } else {\n console.log('OMDB Error')\n }\n })\n}", "title": "" } ]
[ { "docid": "8bad162e070b21a8c43a6e199118186f", "score": "0.8014163", "text": "function findMovieData(){\n\tvar movieName = input\n\tvar queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\trequest(queryUrl, function(error, response, body){\n \t\t// If the request is successful\n \t\tif (!error && response.statusCode === 200) {\n \t\t\tconsole.log(\"=========================================\")\n \t\t\tconsole.log(\"Movie title: \" + JSON.parse(body).Title)\n \t\t\tconsole.log(\"Release year: \" + JSON.parse(body).Year)\n \t\t\tconsole.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating)\n \t\t\tconsole.log(\"Country: \" + JSON.parse(body).Country)\n \t\t\tconsole.log(\"Language: \" + JSON.parse(body).Language)\n \t\t\tconsole.log(\"Plot: \" + JSON.parse(body).Plot)\n \t\t\tconsole.log(\"Cast: \" + JSON.parse(body).Actors)\n \t\t\tconsole.log(\"=========================================\")\n\n\n \t\t}\n\n\t})\n}", "title": "" }, { "docid": "27db6e642dbf6a0d351450db241eac79", "score": "0.7898109", "text": "function omdb(movie) {\n if (movie == \"\") {\n movie = \"Mr. Nobody\"\n }\n request(\"http://www.omdbapi.com/?apikey=8fbf74c9&t=\" + movie, function(error, response, body) {\n if (!error && response.statusCode === 200) {\n let result = JSON.parse(body)\n console.log('Title: ' + result.Title)\n console.log('Year: ' + result.Year)\n console.log('IMDB Rating: ' + result.imdbRating)\n console.log('Rotten Tomatoes Rating: ' + result.Ratings[1].Value)\n console.log('Country: ' + result.Country)\n console.log('Language: ' + result.Language)\n console.log('Plot: ' + result.Plot)\n console.log('Actors: ' + result.Actors)\n }\n })\n}", "title": "" }, { "docid": "6460a23a4aa89ed23357ffa40e454f22", "score": "0.78278285", "text": "function getOMDB(movie) {\n\n var OMDB_API_KEY = \"3fe4a8d6\"\n var request = require('request');\n request(\"http://www.omdbapi.com/?t=\\'\" + movie + \"\\'&apikey=\" + OMDB_API_KEY, function (error, response, body) {\n if (error) { console.log('error:', error) }\n else { // Print the error if one occurred\n //console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received\n console.log(\"Movie: \" + JSON.parse(body).Title)\n console.log(\"Year: \" + JSON.parse(body).Year)\n for (var i = 0; i < JSON.parse(body).Ratings.length; i++) {\n console.log(\"Rating: \" + JSON.parse(body).Ratings[i].Value + \" ----- \" + JSON.parse(body).Ratings[i].Source)\n }\n console.log(\"Country produced: \" + JSON.parse(body).Country)\n console.log(\"Language: \" + JSON.parse(body).Language)\n console.log(\"Plot: \" + JSON.parse(body).Plot)\n console.log(\"Actors: \" + JSON.parse(body).Actors)\n\n }\n });\n}", "title": "" }, { "docid": "91a430a7b64e1130ea30e1867db11cf6", "score": "0.77924144", "text": "function omdb(movie){\n var omdbURL = 'http://www.omdbapi.com/?t=' + movie + '&apikey=' + omdbKey + '&plot=short&tomatoes=true';\n // Used 200 response status as indicator that request was successful\n request(omdbURL, function (error, response, body){\n // if not an error then console.log the selected information\n if(!error && response.statusCode == 200){\n var body = JSON.parse(body);\n \n console.log(\"Title: \" + body.Title);\n console.log(\"Release Year: \" + body.Year);\n console.log(\"IMdB Rating: \" + body.imdbRating);\n console.log(\"Country: \" + body.Country);\n console.log(\"Language: \" + body.Language);\n console.log(\"Plot: \" + body.Plot);\n console.log(\"Actors: \" + body.Actors);\n console.log(\"Rotten Tomatoes Rating: \" + body.tomatoRating);\n console.log(\"Rotten Tomatoes URL: \" + body.tomatoURL);\n // if there is an error then display this message\n } else{\n console.log('Error occurred.')\n }\n });\n \n }", "title": "" }, { "docid": "331347939562f8db060fa3a92ad60eb9", "score": "0.77585685", "text": "function getOmbd(movieTitle) {\n //require npm package\n var request = require(\"request\");\n //created variable for user input of movie title\n var movieTitle = input;\n //ajax request from OMdb\n request(\"http://www.omdbapi.com/?t=\" + movieTitle + \"&y=&plot=short&apikey=trilogy\", function (error, response, body) {\n //error alert \n if (!error && response.statusCode === 200) {\n //created variable converts string into object\n const movie = JSON.parse(body)\n //displays information about the movie\n console.log(\"=====================================================\")\n console.log(\"Year: \", movie.Year);\n console.log(\"Rated: \", movie.Rated);\n console.log(\"Rating: \", movie.Ratings[1]);\n console.log(\"Country: \", movie.Country);\n console.log(\"Language: \", movie.Language);\n console.log(\"Plot: \", movie.Plot);\n console.log(\"Cast: \", movie.Actors);\n }\n })\n}", "title": "" }, { "docid": "d498e4f3a99243be365b5c3d29f8e04f", "score": "0.7685468", "text": "function getMovie(movie) {\n var movieUrl = `https://omdbapi.com?t=${movie}&apikey=thewdb`;\n return request(getJsonRequestObject(movieUrl));\n}", "title": "" }, { "docid": "9b451239ce95576e58f68ed8c8e518d6", "score": "0.7669363", "text": "function getMovie(title) {\n var API_KEY = \"f22aa523\";\n var baseURL = \"http://www.omdbapi.com/\";\n var parameters = `?apikey=${API_KEY}&t=${title}&plot=full`;\n var url = baseURL + parameters;\n return fetch(url);\n}", "title": "" }, { "docid": "15f0ed62ea2be944ac43a3c1d9d4977c", "score": "0.7617805", "text": "function getMovie(movieName) {\n var urlHit = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=full&tomatoes=true&apikey=trilogy\";\n axios.get(urlHit).then(function (res) {\n //console.log(res)\n const movieInfo = res.data;\n //console.log(movieInfo)\n console.log(\"Movie Name: \" + movieInfo.Title);\n console.log(\"Released: \" + movieInfo.Released);\n console.log(\"Plot: \" + movieInfo.Plot);\n console.log(\"Actors: \" + movieInfo.Actors);\n console.log(\"IMDB rating: \" + movieInfo.imdbRating)\n\n })\n}", "title": "" }, { "docid": "768a3d33fc57065a9faf820f830d8f00", "score": "0.76158303", "text": "function getmovieInfo2(movieInput) {\n queryURL = `https://www.omdbapi.com/?t=${movieInput}&apikey=8e35679c`;\n // ajax request will get us the movie's title, year, poster, and plot.\n $.ajax({\n url: queryURL,\n method: \"GET\",\n }).then(function (response) {\n //console.log(response);\n title = response.Title;\n //console.log(\"2\", title);\n\n year = response.Year;\n //console.log(\"2\", year);\n\n poster = response.Poster;\n //console.log(\"2\", poster);\n\n plot = response.Plot;\n //console.log(\"2\", plot);\n\n render2(title, year, poster, plot);\n });\n }", "title": "" }, { "docid": "b2966bf1a59089813e9f1336bc182e32", "score": "0.76108366", "text": "function omdb(film){\n\tvar theFilm = film.split(\" \");\n\ttheFilm = theFilm.join(\"+\");\n\trequest('http://www.omdbapi.com/?t=' + theFilm, function (error, response, body) {\n\t\tbody = JSON.parse(body);\n\t\tif(!error){\n\t\t\tprintLog(\"Title: \" + body.Title);\n\t\t // * Year the movie came out.\n\t\t printLog(\"Year: \" + body.Year);\n\t\t // * IMDB Rating of the movie.\n\t\t printLog(\"IMDB Rating: \" + body.Ratings[0].Value);\n\t\t // * Country where the movie was produced.\n\t\t printLog(\"Country: \" + body.Country);\n\t\t // * Language of the movie.\n\t\t printLog(\"Language: \" + body.Language);\n\t\t // * Plot of the movie.\n\t\t printLog(\"Plot: \" + body.Plot);\n\t\t // * Actors in the movie.\n\t\t printLog(\"Actors: \" + body.Actors);\n\t\t // * Rotten Tomatoes Rating.\n\t\t printLog(\"Rotten Tomatoes Rating: \" + body.Ratings[1].Value);\n\t\t // * Rotten Tomatoes URL.\n\t\t printLog(\"URL: \" + body.Website);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "61e65f0e4f535f6131ba24b37ec40dd3", "score": "0.7581773", "text": "function movieThis(){\n\t\tvar movie = process.argv[3];\n\t\tif(movie === undefined){\n\t\t\tmovie = \"Mr. Nobody\";\n\t\t}\n\t\trequest(\"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&r=json&tomatoes=true&apikey=40e9cece\", function (error, response, body) {\n\t\t\tif (!error && response.statusCode == 200) {\n\t\t\t\t\t\tmovie = JSON.parse(body);\n\t\t\t\t\t\tconsole.log(\"Movie Title: \" + movie.Title);\n\t\t\t\t\t\tconsole.log(\"Year of Release: \" + movie.Year);\n\t\t\t\t\t\tconsole.log(\"IMDB Rating: \" + movie.imdbRating);\n\t\t\t\t\t\tconsole.log(movie.Ratings[1].Source + \" Rating: \" + movie.Ratings[1].Value);\n\t\t\t\t\t\tconsole.log(\"Produced in \" + movie.Country);\n\t\t\t\t\t\tconsole.log(\"Language(s): \" + movie.Language);\n\t\t\t\t\t\tconsole.log(\"Plot: \" + movie.Plot);\n\t\t\t\t\t\tconsole.log(\"Starring: \" + movie.Actors);\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Error :\"+ error);\n\t\t\t\treturn;\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "c912cbcce3674b25ed35c79397492af7", "score": "0.7565294", "text": "function getMovie() {\n var movieName = process.argv.slice(3).join(\" \");\n if (process.argv.length < 4) {\n movieName = \"Mr. Nobody\";\n };\n request(\"http://www.omdbapi.com/?apikey=trilogy&t=\" + movieName, function(error, response, body){\n if (error) throw error;\n console.log(\"Movie Title: \" + JSON.parse(body).Title);\n console.log(\"Year Released: \" + JSON.parse(body).Released);\n console.log(\"IMDB Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value)\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Starring: \" + JSON.parse(body).Actors)\n });\n}", "title": "" }, { "docid": "6a454716ef55aecec541f6a65a0ead5f", "score": "0.7538617", "text": "function theOMDB(movie) {\n\n var movie = process.argv[3];\n\n // for (var i = 2; i < nodeArgs.length; i++) {\n // if (i > 2 && i < nodeArgs.length) {\n // movieName = movieName + \"+\" + nodeArgs[i];\n // }\n // else {\n // movieName += nodeArgs[i];\n // }\n // }\n\n // Default Movie\n if (!movie) {\n movie = \"mr nobody\";\n }\n\n // Accesses OMDB API through request\n // Only accepts movies with single word :(\n request(\"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&apikey=trilogy\", function (error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n\n // Parse the body of the site \n console.log(\"\\r\\n\" + \"Title: \" + JSON.parse(body).Title);\n console.log(\"Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB: \" + JSON.parse(body).imdbRating);\n console.log(\"RT: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n }\n });\n}", "title": "" }, { "docid": "6cff75791c8e923cde61c56ffdf791cf", "score": "0.75347245", "text": "function movieThis(movie){\n request(\"http://www.omdbapi.com/?t=\" + movie + \"&apikey=trilogy\", function(error, response, body){\n if (!error && response.statusCode === 200) {\n let body = JSON.parse(body);\n console.log('Title:', JSON.parse(body).Title);\n console.log('Year:', JSON.parse(body).Year);\n console.log('IMDB:', JSON.parse(body).Ratings[0].Value);\n console.log('Rotten Tomatoes:', JSON.parse(body).Ratings[1].Value);\n console.log('Country:', JSON.parse(body).Country);\n console.log('Language(s):', JSON.parse(body).Language);\n console.log('Plot:', JSON.parse(body).Plot);\n console.log('Director:', JSON.parse(body).Director);\n console.log('Wirter:', JSON.parse(body).Writer);\n console.log('Cast:', JSON.parse(body).Actors);\n }\n });\n}", "title": "" }, { "docid": "f595eff21edae4d2a43915b9d0803411", "score": "0.75305605", "text": "function getMovie(input){\n var request = require('request');\n request('http://www.omdbapi.com/?r=json&i=tt3896198&apikey=90bdbeeb&t=' + input, function (error, response, body) {\n var obj = JSON.parse(body);\n console.log(\"Title: \"+obj['Title']);\n console.log(\"Year: \"+obj['Year']);\n console.log(\"Rating: \"+obj['Rated']);\n console.log(\"Release: \"+obj['Released']);\n console.log(\"Language: \"+obj['Language']);\n console.log(\"Genre: \"+obj['Genre']);\n console.log(\"Runtime: \"+obj['Runtime']);\n console.log(\"Director: \"+obj['Director']);\n console.log(\"IMDB Rating: \"+obj['imdbRating']);\n console.log(\"Country: \"+obj['Country']);\n }); \n}", "title": "" }, { "docid": "b1dd4b23e95bddfeb0b196e898ccdabc", "score": "0.7517773", "text": "function getMovie(){\n\n var title = process.argv[3];\n request(\"http://www.omdbapi.com/?t=\"+title+\"&y=&plot=short&apikey=trilogy\", function(error, response, body){\n if(!error && response.statusCode === 200){\n console.log(\"The title of the movie: \" + JSON.parse(body).Title);\n console.log(\"Year the movie came out: \" + JSON.parse(body).Year);\n console.log(\"IMBD Rating of the movie: \" + JSON.parse(body).imdbRating);\n console.log(\"Rotten Tomatoes Rating of the movie: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country where the movie was produced: \" + JSON.parse(body).Country);\n console.log(\"Language of the movie: \" + JSON.parse(body).Language);\n console.log(\"Plot of the movie: \" + JSON.parse(body).Plot);\n console.log(\"Actors in the movie\" + JSON.parse(body).Actors);\n }\n //access getMovie(), node liri.js movie-this (movie name).\n });\n \n}", "title": "" }, { "docid": "30c18a8dae91cdf208889bb06af276a5", "score": "0.74978346", "text": "function getMovie(movieTitle) {\n request(`http://www.omdbapi.com/?t=${movieTitle}&y=&plot=short&apikey=trilogy&tomatoes=true`, function(error, response, body) {\n if (error) {\n return console.log('Error occurred: ' + error);\n } else {\n console.log(`\n Movie: ${JSON.parse(body).Title}\n Released: ${JSON.parse(body).Year}\n IMDB Rating: ${JSON.parse(body).imdbRating}\n Rotten Tomatoes Rating: ${JSON.parse(body).tomatoRating}\n Country: ${JSON.parse(body).Country}\n Language: ${JSON.parse(body).Language}\n Plot: ${JSON.parse(body).Plot}\n Actors: ${JSON.parse(body).Actors}\n `);\n };\n });\n}", "title": "" }, { "docid": "ad69d46bacfca59bdb4f69c85c422466", "score": "0.74785745", "text": "function getMovied(value) {\nrequest('http://www.omdbapi.com/?t='+value+'&apikey=trilogy', function (error, response,body) {\n if(error && response.statusCode !== 200 ) {console.log('error:', error);} // Print the error if one occurred\n if(response.statusCode !== 200) {console.log('statusCode:', response && response.statusCode);}\n else { \n var results = JSON.parse(body);\n // console.log(results);\n var title = \"Movie Title: \"+ results.Title;\n var year = \"Year Released: \"+ results.Year;\n var rating = \"IMDB Rating: \"+results.imdbRating;\n var rotten = \"Rotten Tomatoes Rating: \"+results.Ratings[1].Value;\n var produced = \"Produced in: \"+results.Country;\n var language = \"Movie Language: \"+results.Language;\n var plot = \"Movie Plot: \"+results.Plot;\n var starring = \"Staring: \"+results.Actors;\n console.log(title);\n console.log(year);\n console.log(rating);\n console.log(rotten);\n console.log(produced);\n console.log(language);\n console.log(plot);\n console.log(starring);\n console.log(\"--------------------------\");\n console.log(\"--------------------------\");\n log(\"--------------------------\");\n log(starring);\n log(title);\n log(year);\n log(rating);\n log(rotten);\n log(produced);\n log(language);\n log(plot);\n log(\"--------------------------\"); \n }\n})\n}", "title": "" }, { "docid": "9a106cf2604613c419e9ef2f70a9a546", "score": "0.7477641", "text": "function omdb(title){\n\n\tif(title==undefined)\n\t\t{title='Mr. Nobody'}\n\t\n\timdb('http://www.omdbapi.com/?type=movie&t='+title+' &y=&plot=short&r=json&tomatoes=true&', function(err,response,body){\n\n\t\tif(err) {\n\t\t\treturn console.log('Error while getting data from omdb ' +err);\n\t\t}\n\t\tbody = JSON.parse(body);\n\t\tconsole.log(\"------------------------------------------------\");\n\t\tconsole.log('Title: ' + body.Title);\n\t\tconsole.log('Year: ' + body.Year);\n\t\tconsole.log('Rated: ' + body.Rated);\n\t\tconsole.log('Plot: ' + body.Plot);\n\t\tconsole.log('Actors: ' + body.Actors);\n\t\tconsole.log('Language: ' + body.Language);\n\t\tconsole.log('Country: ' + body.Country);\n\t\tconsole.log('Rotten Tomatoes Rating: ' + body.tomatoRating);\n\t\tconsole.log('Rotten Tomatoes URL: ' + body.tomatoURL);\n\t\tconsole.log(\"------------------------------------------------\");\n\t\t // console.log(body);\n\t});//End imdb function\n\n}", "title": "" }, { "docid": "6dcfffb400ce353c3edbb2b538b60b3e", "score": "0.74283767", "text": "function omdb(movie)\n{\nif(movie === undefined)\n{\nmovie = \"Mr Nobody\";\n}\n\nvar url = \"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=full&tomatoes=true&apikey=trilogy\";\nrequest(url, function(error, response, body)\n{\nif(!error && response.statusCode === 200)\n{\n var jsonData = JSON.parse(body);\n\n console.log(\"Title: \" + jsonData.Title);\n console.log(\"Year: \" + jsonData.Year);\n console.log(\"Rated: \" + jsonData.Rated);\n console.log(\"IMDB Rating: \" + jsonData.imdbRating);\n console.log(\"Country: \" + jsonData.Country);\n console.log(\"Language: \" + jsonData.Language);\n console.log(\"Plot: \" + jsonData.Plot);\n console.log(\"Actors: \" + jsonData.Actors);\n console.log(\"Rotten Tomatoes URL: \" + jsonData.tomatoURL);\n}\n\n}\n\n\n);//end of request\n\n}", "title": "" }, { "docid": "49e3840b8ede6af79ca15476f06a5343", "score": "0.7426355", "text": "function omdb() {\n\t// If user doesn't specify a movie\n\tif(!extraCommand){\n\t\trequest('http://www.omdbapi.com/?t=Mr.Nobody&y=&plot=short&apikey=40e9cece', function(error, response, body){\n\t\tif(!error && response.statusCode === 200){\n\t\t\tvar movieData = JSON.parse(body);\n\t\t\tconsole.log('\\n' + 'Title: ' + movieData.Title);\n\t\t\tconsole.log('\\n' + 'Year: ' + movieData.Year);\n\t\t\tconsole.log('\\n' + 'Rating: ' + movieData.imdbRating);\n\t\t\tconsole.log('\\n' + 'Country: ' + movieData.Country);\n\t\t\tconsole.log('\\n' + 'Language: ' + movieData.Language);\n\t\t\tconsole.log('\\n' + 'Plot: ' + movieData.Plot);\n\t\t\tconsole.log('\\n' + 'Actors: ' + movieData.Actors);\n\t\t\tconsole.log('\\n' + 'Rotten Tomatoes: ' + 'https://www.rottentomatoes.com/search/?search=' + movieData.Title + '\\n');\n\t\t}\n\t})\n\t}\n\t// Searches OMDB API for data based on user search\n\telse{\n\t\trequest('http://www.omdbapi.com/?t=' + extraCommand + '&y=&plot=short&apikey=40e9cece', function(error, response, body){\n\t\t\tif(!error && response.statusCode === 200){\n\t\t\t\tvar movieData = JSON.parse(body);\n\t\t\t\tconsole.log('\\n' + 'Title: ' + movieData.Title);\n\t\t\t\tconsole.log('\\n' + 'Year: ' + movieData.Year);\n\t\t\t\tconsole.log('\\n' + 'Rating: ' + movieData.imdbRating);\n\t\t\t\tconsole.log('\\n' + 'Country: ' + movieData.Country);\n\t\t\t\tconsole.log('\\n' + 'Language: ' + movieData.Language);\n\t\t\t\tconsole.log('\\n' + 'Plot: ' + movieData.Plot);\n\t\t\t\tconsole.log('\\n' + 'Actors: ' + movieData.Actors);\n\t\t\t\tconsole.log('\\n' + 'Rotten Tomatoes: ' + 'https://www.rottentomatoes.com/search/?search=' + movieData.Title + '\\n');\n\t\t\t} if(error) {\n\t\t\t\tconsole.log(error);\n\t\t\t}\n\t\t})\n\t}\n\n} // END OF OMDB FUNCTION", "title": "" }, { "docid": "6f229f32298eb929ec99a1f6776aa729", "score": "0.7417746", "text": "function getOmdb(){\n\n\tif (!title) {\n\t\ttitle = 'Mr+Nobody';\n\t}\n\ttitle = reformatTitle(title);\n\n\tfs.appendFile(\"log.txt\", command + \" \" + title + \"\\n\");\t\n\n\tvar options = {\n\t\turl: \"https://www.omdbapi.com/?t=\" + title + \"&y=&plot=short&tomatoes=true&r=json\",\n\t\theaders: {\n\t\t\t'User-Agent': 'request'\n\t\t}\n\t};\t\n\t\t\t\n\trequest(options, function (error, response, body) {\n\t \tif (!error && response.statusCode == 200) {\n\t \t\tvar movie = JSON.parse(body);\n\n\t \t\tconsole.log(\"===========================================\\n\");\n\t \tfs.appendFile(\"log.txt\", \"--------------------------------------\\n\");\n\t \tconsole.log(\"Title: \" + movie.Title);\n\t \tfs.appendFile(\"log.txt\", \"Title: \" + movie.Title+ \"\\n\");\n\t \tconsole.log(\"Year: \" + movie.Year);\n\t \tfs.appendFile(\"log.txt\", \"Year: \" + movie.Year+ \"\\n\");\n\t \tconsole.log(\"imdbRating: \" + movie.imdbRating);\n\t \tfs.appendFile(\"log.txt\", \"imdbRating: \" + movie.imdbRating+ \"\\n\");\n\t \tconsole.log(\"Country: \" + movie.Country);\n\t \tfs.appendFile(\"log.txt\", \"Country: \" + movie.Country+ \"\\n\");\n\t \tconsole.log(\"Language: \" + movie.Language);\n\t \tfs.appendFile(\"log.txt\", \"Language: \" + movie.Language+ \"\\n\");\n\t \tconsole.log(\"Plot: \" + movie.Plot);\n\t \tfs.appendFile(\"log.txt\", \"Plot: \" + movie.Plot+ \"\\n\");\n\t \tconsole.log(\"Actors: \" + movie.Actors);\n\t \tfs.appendFile(\"log.txt\", \"Actors: \" + movie.Actors+ \"\\n\");\n\t \tconsole.log(\"Tomato Rating: \" + movie.tomatoRating);\n\t \tfs.appendFile(\"log.txt\", \"Tomato Rating: \" + movie.tomatoRating+ \"\\n\");\n\t \tconsole.log(\"Tomato URL: \" + movie.tomatoURL);\n\t \tfs.appendFile(\"log.txt\", \"Tomato URL: \" + movie.tomatoURL+ \"\\n\");\n\t \tconsole.log(\"===========================================\\n\");\n\t \tfs.appendFile(\"log.txt\", \"=======================================\\n\");\n\n\t \t}\n\t \telse{\n\t \t\tconsole.log(\"Error Code: \" + response.statusCode);\n\t \t}\n\t});//end request\n}//end getMovie", "title": "" }, { "docid": "268c0676c5aa399bc13031e61a112b4d", "score": "0.74124116", "text": "function get_movie_info(title){\n\n// Then run a request to the OMDB API with the movie specified\n var queryUrl = \"http://www.omdbapi.com/?t=\" + title + \"&y=&plot=short&apikey=trilogy\";\n\n\n// This line is just to help us debug against the actual URL.\n console.log(queryUrl);\n\n request(queryUrl, function(error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n console.log(\"The movie title is \" + JSON.parse(body).Title);\n logthis(\"The movie title is \" + JSON.parse(body).Title+\"\\r\\n\");\n console.log(\"The year movie came out is \" + JSON.parse(body).Year);\n logthis(\"The year movie came out is \" + JSON.parse(body).Year+\"\\r\\n\");\n console.log(\"The IMDB rating for this movie is \" + JSON.parse(body).imdbRating);\n logthis(\"The IMDB rating for this movie is \" + JSON.parse(body).imdbRating+\"\\r\\n\");\n console.log(\"The Rotten Tomatoes rating for this movie is \" + JSON.parse(body).Ratings[1].Value);\n logthis(\"The Rotten Tomatoes rating for this movie is \" + JSON.parse(body).Ratings[1].Value+\"\\r\\n\");\n console.log(\"The country where the movie was produced is \" + JSON.parse(body).Country);\n logthis(\"The country where the movie was produced is \" + JSON.parse(body).Country+\"\\r\\n\");\n console.log(\"The language/s of the movie: \" + JSON.parse(body).Language);\n logthis(\"The language/s of the movie: \" + JSON.parse(body).Language+\"\\r\\n\");\n console.log(\"The plot of the movie: \" + JSON.parse(body).Plot);\n logthis(\"The plot of the movie: \" + JSON.parse(body).Plot+\"\\r\\n\");\n console.log(\"The actors in the movie are \" + JSON.parse(body).Actors);\n logthis(\"The actors in the movie are \" + JSON.parse(body).Actors+\"\\r\\n\");\n\n \n \n }\n });\n\n}", "title": "" }, { "docid": "fac4e6d83e7eaa19759fb7321ee0e015", "score": "0.7404286", "text": "function movieThis() {\n var movie = process.argv[3];\n if(!movie){\n movie = \"mr nobody\";\n }\n params = movie;\n request(\"http://www.omdbapi.com/?t=\" + params + \"&y=&plot=short&r=json&tomatoes=true\", function (error, response, body) {\n if (!error && response.statusCode == 200) {\n var movieObject = JSON.parse(body);\n var movieResult = \n \"Title: \" + movieObject.Title+\"\\r\\n\"+\n \"Year: \" + movieObject.Year+\"\\r\\n\"+\n \"Imdb Rating: \" + movieObject.imdbRating+\"\\r\\n\"+\n \"Country: \" + movieObject.Country+\"\\r\\n\"+\n \"Language: \" + movieObject.Language+\"\\r\\n\"+\n \"Plot: \" + movieObject.Plot+\"\\r\\n\"+\n \"Actors: \" + movieObject.Actors+\"\\r\\n\"+\n \"Rotten Tomatoes Rating: \" + movieObject.tomatoRating+\"\\r\\n\"+\n \"Rotten Tomatoes URL: \" + movieObject.tomatoURL + \"\\r\\n\";\n\n}\n});\n}", "title": "" }, { "docid": "48cf754e0449d57e41617081a987703d", "score": "0.7385732", "text": "function getMovieDetails(movieID) {\n $.ajax({\n url: 'http://www.omdbapi.com',\n\n data: {\n i: movieID,\n plot: 'full',\n r: 'json'\n },\n\n success: function(results) {\n displayMovieDetailPage(results);\n }\n });\n }", "title": "" }, { "docid": "d5fc482dbe0017652deccebf4f31e36f", "score": "0.737936", "text": "function callMovieApi() {\n var queryUrl = \"http://www.omdbapi.com/?t=\" + title + \"&y=&plot=short&apikey=40e9cece\";\n request(queryUrl, function(error, response, body) {\n if (!error && response.statusCode === 200) {\n console.log('\\nTitle: ' + JSON.parse(body).Title + \n '\\nYear: ' + JSON.parse(body).Year +\n '\\nIMDB Rating: ' + JSON.parse(body).Ratings[0].Value +\n '\\nRotten Tomatoes Rating: ' + JSON.parse(body).Ratings[1].Value +\n '\\nCountry of Production: ' + JSON.parse(body).Country +\n '\\nPlot: ' + JSON.parse(body).Plot +\n '\\nActors: ' + JSON.parse(body).Actors\n );\n };\n });\n}", "title": "" }, { "docid": "68498ed7fbfe291cf6e3667f3325db2c", "score": "0.7358573", "text": "function getMovieInfo(movieTitle){\n\tsearchParam = querystring.stringify({\n\t\tt:movieTitle, \n\t\ty:\"\",\n\t\tplot:\"short\",\n\t\tapikey:\"trilogy\"\n\t});\n\tconsole.log(searchParam);\n\t// Then run a request to the OMDB API with the movie specified\n\trequest(\"http://www.omdbapi.com/?\"+searchParam, function(error, response, body) {\n\t\t// If the request is successful (i.e. if the response status code is 200)\n\t\tif (!error && response.statusCode === 200) {\n\t\t\t// Parse the body of the site and recover just the imdbRating\n\t\t\t// (Note: The syntax below for parsing isn't obvious. Just spend a few moments dissecting it).\n\t\t\tvar parsedBody = JSON.parse(body);\n\t\t\tvar rottenTomatoesRating = getRottenTomatoesRating(parsedBody.Ratings);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Title);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Year);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Country);\n\t\t\tconsole.log(\"The movie's rating is: \" + rottenTomatoesRating);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Language);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Plot);\n\t\t\tconsole.log(\"The movie's rating is: \" + parsedBody.Actors);\n\t\t} else{\n\t\t\tconsole.log(\"there was an ERROR!!!!!!!!!!!!!!!!!!!! \"+error);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "1ea738da456126b63a8ab760bddd10a5", "score": "0.7355718", "text": "function movie() {\n\t\tvar request = require('request'); \n\t\tvar movie = results; \n\n\t\t\tif(movie == null){\n\t\t\t\tmovie = process.argv[3]; \n\n\t\t\tfor(var i = 4; i < process.argv.length; i++){\n\t\t\t\tmovie = movie + \" \" + process.argv[i]; \n\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\tif(movie == null) {\n\t\t\t\tconsole.log(\"You forgot to request a movie! Enjoy Mr. Nobody.\")\n\t\t\t\tmovie = \"Mr. Nobody\"; \n\t\t\t}\n\t\t\t\n\t\t\tvar queryURL = \"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&r=json&tomatoes=true\"\n\n\t\t\trequest(queryURL, function (error, response, body) {\n\t\t\t\tif (!error && response.statusCode == 200) {\n\t\t\t\t\tconsole.log(\"\");\n\t\t\t\t\tconsole.log(\"Title: \" + JSON.parse(body)[\"Title\"]);\n\t\t\t\t\tconsole.log(\"Year: \" + JSON.parse(body)[\"Year\"]);\n\t\t\t\t\tconsole.log(\"IMDB Rating: \" + JSON.parse(body)[\"imdbRating\"]);\n\t\t\t\t\tconsole.log(\"Country: \" + JSON.parse(body)[\"Country\"]);\n\t\t\t\t\tconsole.log(\"Language: \" + JSON.parse(body)[\"Language\"]);\n\t\t\t\t\tconsole.log(\"Plot: \" + JSON.parse(body)[\"Plot\"]);\n\t\t\t\t\tconsole.log(\"Actors: \" + JSON.parse(body)[\"Actors\"]);\n\t\t\t\t\tconsole.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body)[\"tomatoRating\"]);\n\t\t\t\t\tconsole.log(\"Rotten Tomatoes URL: \" + JSON.parse(body)[\"tomatoURL\"]);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(error); \n\t\t\t\t}\n\t\t\t}); \n\t\t}", "title": "" }, { "docid": "870eb605e31159449ab4e11f8e12aa86", "score": "0.73464245", "text": "function movieInfo(movie) {\n // set variables for API calls\n let queryUrl = \"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&apikey=40e9cece\"; //query url for request search\n console.log(queryUrl);\n\n request(queryUrl, function(error, response, body) {\n console.log('error: ' + error); //prints error if there is one\n console.log('statusCode: ' + response && response.statusCode); //prints status code of response\n //console.log('body: ' + body); //prints html for homepage\n\n const omdbBody = JSON.parse(body);\n\n console.log('Title: ' + omdbBody.Title);\n console.log('Release Year: ' + omdbBody.Relseased);\n console.log('IMDB Rating: ' + omdbBody.Rating);\n console.log('Country: ' + omdbBody.Country);\n console.log('Language: ' + omdbBody.Language);\n console.log('Plot: ' + omdbBody.Plot);\n console.log('Actors: ' + omdbBody.Actors);\n console.log('Rotten Tomatoes Rating: ' + omdbBody.Ratings[1].value);\n console.log('Poster: ' + omdbBody.Poster);\n\n if (command == 'movie-this' && !movie) {\n //movie title ot Mr Nobody not passing into queryUrl for search\n let media = \"Mr Nobody\";\n let queryUrl = \"http://www.omdbapi.com/?t=mr+nobody&y=&plot=short&apikey=40e9cece\";\n request(queryUrl, function(error, response, body) {\n if (!error) {\n let omdbBody = JSON.parse(body);\n\n console.log('Title: ' + omdbBody.Title);\n console.log('Release Year: ' + omdbBody.Relseased);\n console.log('IMDB Rating: ' + omdbBody.Rating);\n console.log('Country: ' + omdbBody.Country);\n console.log('Language: ' + omdbBody.Language);\n console.log('Plot: ' + omdbBody.Plot);\n console.log('Actors: ' + omdbBody.Actors);\n //Ratings[1] from OMDB not registring value here but works with normal movie-this command that includes movie title\n console.log('Rotten Tomatoes Rating: ' + omdbBody.Ratings[1].value);\n console.log('Poster: ' + omdbBody.Poster);\n }\n });\n };\n })\n}", "title": "" }, { "docid": "8d4f72fee4fbe36f55a6efa9b5676368", "score": "0.7333999", "text": "function movie(movie) {\n request('http://www.omdbapi.com/?apikey=trilogy&t=' + movie, function (error, response, body) {\n if (!error) {\n var body = JSON.parse(body);\n console.log(\"The title of the movie is: \" + body.Title);\n console.log(\"The year it was released: \" + body.Year);\n\n for (var i = 0; i < body.Ratings.length; i++) {\n if (body.Ratings[i].Source === \"Internet Movie Database\" || body.Ratings[i].Source === \"Rotten Tomatoes\") {\n console.log(body.Ratings[i].Source + \" rating is: \" + body.Ratings[i].Value);\n }\n };\n console.log(\"Country where the movie was produced is: \" + body.Country);\n console.log(\"Language of the movie is: \" + body.Language);\n console.log(\"Plot of the movie is: \" + body.Plot);\n console.log(\"Actors in the movie are: \" + body.Actors);\n } else {\n console.log(\"Error occurred: \" + error);\n }\n });\n}", "title": "" }, { "docid": "dcd48f11b68d67e687d25e9b674df17e", "score": "0.73303103", "text": "function myMovie(movie) {\n if (movie === undefined) {\n movie = \"mr nobody\";\n }\n request(\"http://www.omdbapi.com/?apikey=trilogy&r=json&t=\" + movie,\n function (error, response, body) {\n if (error) {\n console.log(error);\n } else {\n console.log(JSON.parse(body))\n console.log('-------------------------------------------------------------------');\n }\n });\n }", "title": "" }, { "docid": "83101688e3d2e598b8a93d8c39f5dcec", "score": "0.7330117", "text": "function omdb() {\n request(\"http://www.omdbapi.com/?t=\" + input + \"&y=&plot=short&apikey=trilogy\", function (error, response, body) {\n if (!error && response.statusCode === 200) {\n var movie = JSON.parse(body);\n console.log(\"Information about the movie: \\n\"); \n console.log(\"Title: \" + (movie.Title)); \n console.log(\"Year: \" + (movie.Year)); \n console.log(\"IMDB Rating: \" + (movie.imdbRating + \"/10\"));\n log(JSON.stringify(movie));\n if (movie.Ratings[1]){\n console.log(\"Rotten Tomatoes Rating: \" + movie.Ratings[1].Value); \n }\n else {\n console.log(\"Rotten Tomatoes Rating: No Rotten Tomatoes Rating Available\");\n }\n console.log(\"Country: \" + (movie.Country));\n console.log(\"Language(s): \" + (movie.Language));\n console.log(\"Plot: \" + (movie.Plot));\n console.log(\"Actors: \" + (movie.Actors));\n console.log(\"_____________\\n\"); \n };\n });\n}", "title": "" }, { "docid": "3a7a2684bf7b986306ac9970cae78a0e", "score": "0.73187274", "text": "function movieThis() {\n var movieName = \"Mr. Nobody\";\n if(inputVal2){\n movieName = inputVal2;\n }\n // requests go below\n var queryURL = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=40e9cece\";\n request(queryURL, (err, response, body) => {\n if(!err && response.statusCode === 200){\n var movieData = JSON.parse(body);\n console.log(\"Title of the Movie: \"+movieData.Title);\n console.log(\"Year the \"+movieData.Title+\" was Released: \"+movieData.Released);\n console.log(\"IMDB Rating of \"+movieData.Title+\" is: \"+movieData.Ratings[0].Value);\n console.log(\"IMDB Rating of \"+movieData.Title+\" is: \"+movieData.Ratings[1].Value);\n console.log(\"Country where \"+movieData.Title+\" was produced is: \"+movieData.Country);\n console.log(\"Plot of \"+movieData.Title+\" is: \"+movieData.Plot);\n console.log(\"Actors in \"+movieData.Title+\" were: \"+movieData.Actors);\n }\n })\n}", "title": "" }, { "docid": "abee9b645de5b92ddaca7d4c027b3df4", "score": "0.7310909", "text": "function movieThis(movie) {\n\t// construct URL for API Call\n\tvar queryUrl = \"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&apikey=\" + keys.OMDB\n\n\t// API Call\n\trequest(queryUrl, function (error, response, body) {\n\t\t// If the request is successful\n\t\tif (!error && response.statusCode === 200) {\n\t\t\t// pull the title and remove any spaces and special characters for assembly of Rotten Tomatoes URL\n\t\t\tvar urlTitle = JSON.parse(body).Title.toLowerCase().replace(/ /g, \"_\").replace(/[^\\w\\s]/gi, '');\n\t\t\t// Display from response\n\t\t\tconsole.log(\"Title: \" + JSON.parse(body).Title);\n\t\t\tconsole.log(\"Release Year: \" + JSON.parse(body).Year);\n\t\t\tconsole.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n\t\t\tconsole.log(\"Country: \" + JSON.parse(body).Country);\n\t\t\tconsole.log(\"Language: \" + JSON.parse(body).Language);\n\t\t\tconsole.log(\"----------------------------------------------------\");\n\t\t\tconsole.log(\"Plot: \" + JSON.parse(body).Plot);\n\t\t\tconsole.log(\"Starring: \" + JSON.parse(body).Actors);\n\t\t\tconsole.log(\"----------------------------------------------------\");\n\t\t\tconsole.log(\"Rotten Tomatoes Review: https://www.rottentomatoes.com/m/\" + urlTitle);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "e6a774dc2d76a9be5d041f598a949d77", "score": "0.7303426", "text": "function movieThis(){\n var movieName = process.argv[3];\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n request(queryUrl, function(error, response, body) {\n if (!error && response.statusCode === 200) { \n console.log(\"Title: \" + JSON.parse(body).Title+\n \"\\n Release Year: \" + JSON.parse(body).Year + \n \"\\n IMDB Rating: \" + JSON.parse(body).imdbRating + \n \"\\n Country of Production: \" + JSON.parse(body).Country + \n \"\\n Language: \" + JSON.parse(body).Language + \n \"\\n Plot: \" + JSON.parse(body).Plot + \n \"\\n Actors: \" + JSON.parse(body).Actors \n )}\n });\n}", "title": "" }, { "docid": "ab2a589820c21fee885f97b632ad3d6a", "score": "0.7281292", "text": "function getMovieDataByTitle(title) {\n const key = '';\n const omDbUrl = `http://www.omdbapi.com/?t=${title}&apikey=${key}`;\n return fetch(omDbUrl).then(response => response.json());\n }", "title": "" }, { "docid": "ed067ed2d91d9c3cab5098f9dbb3e493", "score": "0.7279026", "text": "function movie() {\n\n var argm = process.argv;\n\n var movieName = \"\";\n\n for (i = 3; i < argm.length; i++) {\n if(i > 3 && i < argm.length) {\n movieName = movieName + \"+\" + argm[i];\n } else {\n movieName = argm[i];\n }\n };\n\n\n //Run a request to OMDB API\n var queryUrl = \"https://www.omdbapi.com/?apikey=trilogy&t=\" + movieName + \"&plot=short&r=json\"; \n\n request(queryUrl, function (error, response){\n\n if (!error, response, queryUrl) {\n console.log(\"---------------\");\n console.log(JSON.parse(response.body).Title);\n console.log(JSON.parse(response.body).Year);\n console.log(JSON.parse(response.body).Actors);\n console.log(JSON.parse(response.body).Country);\n console.log(JSON.parse(response.body).Language);\n console.log(JSON.parse(response.body).imdbRating);\n console.log(JSON.parse(response.body).Plot);\n console.log(\"---------------\");\n } else {\n console.log(\"you messed up!\");\n }\n });\n}", "title": "" }, { "docid": "4b6e49172c376a89c184475e3a4fd845", "score": "0.72712815", "text": "function movieThis(mArg) {\n var movieName = '';\n\n // set movie if none provided by user\n if (mArg == undefined) {\n movieName = 'Mr. Nobody';\n }\n else movieName = mArg;\n // Then run a request to the OMDB API with the movie specified\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n // Then create a request to the queryUrl\n // Then run a request to the OMDB API with the movie specified\n request(queryUrl, function (error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n\n //console.log(JSON.parse(body));\n // check if the movie is found\n if (JSON.parse(body).Response == \"False\") {\n console.log('***************************************************');\n console.log(\"Error: \" + JSON.parse(body).Error);\n console.log('***************************************************');\n return;\n }\n\n // Parse the body of the site and recover the appropriate fields\n console.log();\n console.log('**********************************************************************************');\n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Year: \" + JSON.parse(body).Year);\n console.log(\"imdb Rating: \" + JSON.parse(body).imdbRating);\n if (JSON.parse(body).Ratings.length > 1) {\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n }\n else {\n console.log(\"Rotten Tomatoes Rating: No Rating Found\");\n }\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n console.log('**********************************************************************************');\n }\n });\n\n}", "title": "" }, { "docid": "2e32f479e0b2c8f26dfb91dd633f72eb", "score": "0.7252526", "text": "function movieThis( theMovie ) {\n var queryUrl = \"http://www.omdbapi.com/?t=\" + theMovie + \"&y=&plot=short&apikey=trilogy\";\n\n axios.get( queryUrl ).then( function( response ) {\n // We got our response!! Output everything we want!!\n console.log( \"Title: \" + response.data.Title + \"\\n\" );\n console.log( \"Year: \" + response.data.Released + \"\\n\" );\n\n for ( let i = 0; i < response.data.Ratings.length; i++ ) {\n if (( response.data.Ratings[ i ].Source === \"Internet Movie Database\" ) ||\n ( response.data.Ratings[ i ].Source === \"IMDB\" )) {\n // What the neck, allow for IMDB too..\n console.log( \"IMDB Rating: \" + response.data.Ratings[ i ].Value );\n } else if ( response.data.Ratings[ i ].Source === \"Rotten Tomatoes\" ) {\n console.log( \"Rotten Tomatoes: \" + response.data.Ratings[ i ].Value );\n }\n }\n\n console.log( \"Country: \" + response.data.Country + \"\\n\" );\n console.log( \"Language: \" + response.data.Language + \"\\n\" );\n console.log( \"Year: \" + response.data.Plot + \"\\n\" );\n console.log( \"Actors: \" + response.data.Actors + \"\\n\" );\n })\n .catch ( function( error ) {\n console.error( error );\n });\n}", "title": "" }, { "docid": "07cf61f1a99d42248069eb6cff131a69", "score": "0.7231687", "text": "function movieThis() {\n\n // if no movie is selected in command line, show info for default movie\n if (!movieName) {\n movieName = \"mr nobody\";\n }\n\n // declare url for api request\n let queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n rp(queryUrl)\n .then(response => {\n let movieObj = JSON.parse(response);\n\n // print the movie information if OMDB search yields a result\n if (movieObj.Error === undefined) {\n console.log(\"\\nHere's a summary of the movie you searched for:\\n\" + \"-\".repeat(47));\n console.log(\"\\nTitle:\\n\" + \"-\".repeat(6) + \"\\n\" + movieObj.Title);\n console.log(\"\\nRelease Year:\\n\" + \"-\".repeat(13) + \"\\n\" + movieObj.Year);\n\n // error checking in case IMDB or Rotten Tomatoes don't have ratings\n if (movieObj.Ratings[0]) {\n console.log(\"\\n\" + movieObj.Ratings[0].Source + \" Rating:\\n\" + \"-\".repeat(31) + \"\\n\" + movieObj.Ratings[0].Value);\n } else {\n console.log(\"\\nInternet Movie Database Rating:\\n\" + \"-\".repeat(23) + \"\\nThe selection you entered does not have a rating on IMDB\");\n }\n if (movieObj.Ratings[1]) {\n console.log(\"\\n\" + movieObj.Ratings[1].Source + \" Rating:\\n\" + \"-\".repeat(23) + \"\\n\" + movieObj.Ratings[1].Value);\n } else {\n console.log(\"\\nRotten Tomatoes Rating:\\n\" + \"-\".repeat(23) + \"\\nThe selection you entered does not have a rating on Rotten Tomatoes\");\n }\n console.log(\"\\nCountry of Origin:\\n\" + \"-\".repeat(18) + \"\\n\" + movieObj.Country);\n console.log(\"\\nLanguage:\\n\" + \"-\".repeat(9) + \"\\n\" + movieObj.Language);\n console.log(\"\\nPlot Summary:\\n\" + \"-\".repeat(13) + \"\\n\" + movieObj.Plot);\n console.log(\"\\nStarring:\\n\" + \"-\".repeat(9) + \"\\n\" + movieObj.Actors);\n } else {\n\n // have user search again if search doesn't yield result\n console.log(\"No movie found. Try searching again.\");\n }\n })\n .catch(err => console.log(err))\n}", "title": "" }, { "docid": "88656fc52cff8bab2af544cb248d4208", "score": "0.72200936", "text": "function getMovieDetails(imdbID) {\n // get Movie ID\n var movieID = imdbID;\n \n var site = \"http://www.omdbapi.com/\";\n var apiKey = \"?apikey=2dcf62d4&i=\";\n var searchInput = encodeURIComponent(movieID);\n var full = \"&plot=full\";\n var url = site + apiKey + searchInput + full;\n console.log(\"search request URL: \" + url);\n \n var request = new XMLHttpRequest();\n \n request.onload = function() {\n if(this.readyState == 4 && this.status == 200) {\n console.log(\"Retrieved data from OMDb server: \" + this.responseText);\n \n var results = JSON.parse(this.responseText);\n \n databaseDetails(results);\n }\n else{\n console.log(\"Database request failed, check url: \" + url);\n }\n }\n request.open('GET', url);\n request.send();\n}", "title": "" }, { "docid": "b992dd5548f1706d2baf87e8471014c1", "score": "0.7216637", "text": "function getMovie(){\n\n\tvar newMovie =\"\";\n\n\tif(userInput2 === undefined){\n\t\tnewMovie='Mr Nobody';\n\t}\n\n\telse {\n\t\t// Loop through all the words in the node argument\n\n\t\tnewMovie = userInput2;\n\n\t\tfor (var i = 3; i < nodeArgs.length; i++) {\n\n\t\t if (i > 3 && i < nodeArgs.length) {\n\n\t\t newMovie = newMovie + \"+\" + nodeArgs[i];\n\t\t }\n\t\t else {\n\t\t newMovie = userInput2;\n\t\t }\n\t\t}\n\t}\n\n\t// Request to the OMDB API with the movie specified\n\tvar queryUrl = \"http://www.omdbapi.com/?t=\" + newMovie + \"&y=&plot=short&apikey=trilogy\";\n\n\t//Debug against the actual URL.\n\t//console.log(queryUrl);\n\n\trequest(queryUrl, function(error, response, body) {\n\n\t // If the request is successful\n\t if (!error && response.statusCode === 200) {\n\n\t \tconsole.log(\"Getting information about movie: \" + JSON.parse(body).Title);\n\n\t // Parse the body of the site \n\t \n\t console.log(\"\\n\" +\"Release Year: \" + JSON.parse(body).Year);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Title: \" + JSON.parse(body).Title);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"IMDB rating: \" + JSON.parse(body).imdbRating);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Rotten Tomatoes Rating: \" + JSON.parse(body).tomatoerating);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Country produced: \" + JSON.parse(body).Country);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Language of the movie: \" + JSON.parse(body).Language);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Plot: \" + JSON.parse(body).Plot);\n\t \tconsole.log(\"=================================\"); \n\t \tconsole.log(\"\\n\" +\"Actors: \" + JSON.parse(body).Actors);\n\t \tconsole.log(\"=================================\"); \n\t }\n\t});\n\n}", "title": "" }, { "docid": "b6f7b4a081e3f3e0fca6a2e039bb6c57", "score": "0.7207822", "text": "function movieThis(){\n\n\tvar movieName = userInput;\n\n\tif(!movieName){\n\n\t\tmovieName = \"mr nobody\";\n\t}\n\n\tvar params = movieName;\n\n\tvar movieQueryUrl = \"http://www.omdbapi.com/?t=\" + params + \"&y=&plot=short&apikey=trilogy\";\n\n\trequest(movieQueryUrl, function(error, response, body){\n\n\t \n\tif (!error && response.statusCode === 200){\n\n\n\t \n\t \t\tvar movieResponse = \"\\r\\n\" + \"--------------------- \" + JSON.parse(body).Title + \" ----------------------\" + \"\\r\\n\" + \n\t \t\t\t\t\"Year: \" + JSON.parse(body).Year + \"\\r\\n\" + \n\t \t\t\t\t\"IMDB Rating: \" + JSON.parse(body).Ratings[0].Value + \"\\r\\n\" + \n\t \t\t\t\t\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value + \"\\r\\n\" + \n\t \t\t\t\t\"Country: \" + JSON.parse(body).Country + \"\\r\\n\" + \n\t \t\t\t\t\"Language: \" + JSON.parse(body).Language + \"\\r\\n\" + \n\t \t\t\t\t\"Plot: \" + JSON.parse(body).Plot + \"\\r\\n\" + \n\t \t\t\t\t\"Actors: \" + JSON.parse(body).Actors + \"\\r\\n\" + \"\\r\\n\" +\n\t \t\t\t\t\"-----------------------------------------------------\" + \"\\r\\n\";\n\n\t\t\tconsole.log(movieResponse);\n\n\t\t\tappendToFile(movieResponse);\n\n\t\t}\n\t\t\n\telse {\n\t\t\tconsole.log(\"Error: \"+ error);\n\t\t\t\treturn;\n\t\t\t}\n\t});\n}", "title": "" }, { "docid": "ec79658cd43b3a6403337aadbe4d389e", "score": "0.72050864", "text": "function movieThis() {\n\n var movieTitle = value;\n // var movieTitle;\n // If no movie entered use a default to have a response\n if (movieTitle === undefined || !movieTitle) {\n var movieTitle = \"Mr. Nobody\";\n // } else {\n // var movieTitle = value;\n };\n // Requesting movie data from omdb API\n Request(\"http://www.omdbapi.com/?t=\" + movieTitle + \"&y=&plot=full&tomatoes=true&r=json&apikey=trilogy\", function(error, response,body) {\n // Conditionals to print error or response data to terminal\n if (!error && response.statusCode === 200) { \n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Year: \" + JSON.parse(body).Year);\n console.log(\"IMBD Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).tomatoRating);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors\" + JSON.parse(body).Actors); \n }\n else {\n console.log(\"An error on your search has occurred: \" + error);\n }\n\n });\n\n}", "title": "" }, { "docid": "8e20e09edc6a2c83fc17a769be357aea", "score": "0.7203092", "text": "function getMovieDetails(movie) {\n $(\".tabs\").css(\"display\", \"\");\n $(\"#tabsContent\").css(\"display\", \"\");\n $(\"#recent-search-btns\").css(\"display\", \"\");\n var queryURL =\n \"https://www.omdbapi.com/?t=\" + movie + \"&plot=full&apikey=trilogy\";\n $.ajax({\n url: queryURL,\n method: \"GET\",\n }).then(function (omdbResponse) {\n $(\".hero\").css(\"display\", \"none\"); //.hero(banner)display is hidden.\n renderMainMovie(omdbResponse, movie);\n renderActorsTab(omdbResponse);\n renderCrewTab(omdbResponse);\n renderSimilarMoviesTab(movie);\n });\n }", "title": "" }, { "docid": "f0c773c10c188d96543edd5022a7a2db", "score": "0.71931916", "text": "function movie(movie) {\n if (!movie) {\n var movie = \"\";\n for (var i = 3; i < nodeArgs.length; i++) {\n movie = movie + \" \" + nodeArgs[i];\n }\n }\n var omdbURL = \"http://www.omdbapi.com/?t=\" + movie + \"=&plot=short&apikey=124ed23e\";\n request(omdbURL, function (error, response, body) {\n if (process.argv[3] === undefined) {\n console.log(\"-----------------------\");\n console.log(\"If you haven't watched 'Mr. Nobody,' then you should: http://www.imdb.com/title/tt0485947/\");\n console.log(\"It's on Netflix!\");\n } else if (!error && response.statusCode == 200) {\n var body = JSON.parse(body);\n console.log(\"Title: \" + body.Title);\n console.log(\"Release Year: \" + body.Year);\n console.log(\"IMdB Rating: \" + body.imdbRating);\n console.log(\"Country: \" + body.Country);\n console.log(\"Language: \" + body.Language);\n console.log(\"Plot: \" + body.Plot);\n console.log(\"Actors: \" + body.Actors);\n } else {\n console.log('Error occurred.')\n }\n });\n}", "title": "" }, { "docid": "d3b4341afa06afa1772af59fbdcb7996", "score": "0.71880376", "text": "function movieThis(movieName) {\n \n var movieName = process.argv[3];\n \n if(!movieName) {\n movieName =\"Mr. Nobody\";\n };\n\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n request(queryUrl, function (error, response, body) {\n\n // if sucess which is 200\n if(!error && response.statusCode === 200) {\n\n //pulling request data with the following syntax\n var myMovieData = JSON.parse(body);\n var queryUrlResults =\n \"Title: \" + myMovieData.Title + \"\\n\" + \n \"Year: \" + myMovieData.Year + \"\\n\" + \n \"IMDB Rated: \" + myMovieData.Ratings[0].Value + \"\\n\" + \n \"Rotten Tomatoes Rating: \" + myMovieData.Ratings[1].Value + \"\\n\" + \n \"Country Produced: \" + myMovieData.Country + \"\\n\" + \n \"Language: \" + myMovieData.Language + \"\\n\" + \n \"Plot: \" + myMovieData.Plot + \"\\n\" + \n \"Actors: \" + myMovieData.Actors + \"\\n\" \n\n console.log(queryUrlResults);\n } else {\n console.log(\"There was a error: \" + err);\n return;\n };\n \n });\n\n}", "title": "" }, { "docid": "4782b7bca635278d5d1202765dbb6d9d", "score": "0.71683884", "text": "function movieThis (){\n\tif (argTwo === undefined) {\n\t\tmovieName = \"Mr. Nobody\";\n\t\t} else {\n\t\tmovieName = argTwo;\n\t};\n\n\tvar queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=40e9cece\";\n\n request(queryUrl, function(error, response, body){\n \tif (!error && response.statusCode === 200) {\n \t\tconsole.log(\"Title: \" + JSON.parse(body).Title);\n\t console.log(\"Year: \" + JSON.parse(body).Year);\n\t console.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n\t console.log(\"Country: \" + JSON.parse(body).Country);\n\t console.log(\"Language: \" + JSON.parse(body).Language);\n\t console.log(\"Plot: \" + JSON.parse(body).Plot);\n\t console.log(\"Actors: \" + JSON.parse(body).Actors);\n\t console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).tomatoRating);\n\t console.log(\"Rotten Tomatoes URL: \" + JSON.parse(body).tomatoURL);\n\t\n\t }\n });\n}", "title": "" }, { "docid": "04ad232b76921e52e547a672470a40d9", "score": "0.7155993", "text": "function getMovies() {\n // OMDB Movie - this MOVIE base code is from class files, I have modified for more data and assigned parse.body to a Var\n var movieName = secondCommand;\n // Then run a request to the OMDB API with the movie specified\n var queryUrl = \"http://www.omdbapi.com/?i=tt3896198&apikey=eb91656d\" + movieName + \"&y=&plot=short&tomatoes=true&apikey=trilogy\";\n\n request(queryUrl, function (error, response, body) {\n\n // If the request is successful = 200\n if (!error && response.statusCode === 200) {\n request(queryURL, function (error, response, body) {\n if (!error && response.statusCode === 200) {\n var info = JSON.parse(body);\n console.log(\"Title: \" + info.Title)\n console.log(\"Release Year: \" + info.Year)\n console.log(\"OMDB Rating: \" + info.Ratings[0].Value)\n console.log(\"Rating: \" + info.Ratings[1].Value)\n console.log(\"Country: \" + info.Country)\n console.log(\"Language: \" + info.Language)\n console.log(\"Plot: \" + info.Plot)\n console.log(\"Actors: \" + info.Actors)\n\n //Append data to log.txt\n fs.appendFileSync(\"log.txt\", \"Title: \" + info.Title + \"\\nRelease Year: \" + info.Year + \"\\nIMDB Rating: \" + info.Ratings[0].Value + \"\\nRating: \" +\n info.Ratings[1].Value + \"\\nCountry: \" + info.Country + \"\\nLanguage: \" + info.Language + \"\\nPlot: \" + info.Plot + \"\\nActors: \" + info.Actors + \"\\n----------------\\n\",\n function (error) {\n if (error) {\n console.log(error);\n };\n });\n }\n //Response if user does not type in a movie title\n if (movieName === \"Shrek 2\") {\n console.log(\"-----------------------\");\n console.log(\"If you haven't watched 'Shrek 2,' then you should: https://www.imdb.com/title/tt0298148/\");\n console.log(\"It's God Tier\");\n }\n });\n }\n });\n}", "title": "" }, { "docid": "dc8ecb050e7124d9d3220f002de944b6", "score": "0.715376", "text": "async function fetchMovieData(movieTitle) {\n\tlet response = await axios.get(\"http://www.omdbapi.com/\", {\n\t\tparams: {\n\t\t\tapikey: \"448c276c\",\n\t\t\tt: `${movieTitle}`,\n\t\t},\n\t});\n\tconsole.log(response.data);\n\tmovies += `<a id=\"${response.data.imdbID}\"><div class=\"movieCard\">\n\t<img class=\"movieImage\" src=\"${response.data.Poster}\" alt=\"\" />\n\t<p class=\"description\">${movieTitle}</p>\n</div></a>`;\n\tmovieContainer.innerHTML = movies;\n}", "title": "" }, { "docid": "425890f6b37485a7594c6a26ab114246", "score": "0.7152697", "text": "function getMovieList() {\n dataRequest(\"movies\");\n}", "title": "" }, { "docid": "4529a8d6ad50ae0eb1759c3931a855eb", "score": "0.7150879", "text": "function movie() {\n\t if (input1 == false){\n \t\tinput1 = \"Mr.Nobody\";\n \t }\nrequest(\"http://www.omdbapi.com/?t=\" + input1 + \"&y=&plot=short&apikey=trilogy\", function(error, response, body) {\n\n if (error) {\n \t\t\tconsole.log('Error occurred: ' + error);\n }\n\n else {\n\t\t // Parse the body of the site and recover just the items needed\n\t\t console.log(\"Title: \" + JSON.parse(body).Title);\n\t\t console.log(\"Release Year: \" + JSON.parse(body).Year);\n\t\t console.log(\"The movie's rating is: \" + JSON.parse(body).imdbRating);\n\t\t console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n\t\t console.log(\"Produced in: \" + JSON.parse(body).Country);\n\t\t console.log(\"Language: \" + JSON.parse(body).Language);\n\t\t console.log(\"Plot: \" + JSON.parse(body).Plot);\n\t\t console.log(\"Actors: \" + JSON.parse(body).Actors);\n\n\t\t }\n\n});\n}", "title": "" }, { "docid": "352fd8e5bf7832f1e2005b66489144d8", "score": "0.71495205", "text": "function getDetails(imdb) {\n var movieDetUrl =\n \"https://www.omdbapi.com/?apikey=\" + apikey + \"&i=\" + imdb;\n\n $.ajax({\n url: movieDetUrl,\n method: \"GET\",\n }).then(function (data) {\n $(\"#imageSrc\").attr(\"src\", data.Poster);\n $(\"#title\").text(data.Title);\n $(\"#ratings\").text(data.imdbRating);\n $(\"#genres\").text(data.Genre);\n $(\"#years\").text(data.Year);\n $(\"#plot\").text(data.Plot);\n $(\"#movie-info\").css(\"display\", \"flex\");\n });\n }", "title": "" }, { "docid": "a255d43587599642cfc638f09e81e9e8", "score": "0.7148396", "text": "function movieThis(movieName) {\n if (movieName === undefined) {\n movieName = \"Mr. Nobody\"\n }\n\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n// This line is just to help us debug against the actual URL.\nconsole.log(movieName);\n\nrequest(queryUrl, function(error, response, body) {\n\n // If the request is successful\n if (!error && response.statusCode === 200) {\n\n // Parse the body of the site and recover the imdbRating and other required info\n // (Note: The syntax below for parsing isn't obvious. Just spend a few moments dissecting it).\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB Rating: \" +JSON.parse(body).imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country Where Produced: \" + JSON.parse(body).Country);\n console.log(\"Language: \" +JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot)\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n\n }\n});\n}", "title": "" }, { "docid": "070a0caca3d9073d56976042e4a05c1f", "score": "0.71365845", "text": "function movieThis() {\n if (value == null) {\n value = \"Mr. Nobody\";\n }\n // running the request module on a URL with a JSON\n request(\n \"http://www.omdbapi.com/?t=\" +\n value +\n \"&y=&plot=short&apikey=\" +\n keys.omdbKey.apiKey,\n function(error, data, body) {\n // If there were no errors and the response code was 200 (i.e. the request was successful)...\n if (!error && data.statusCode === 200) {\n var movie = JSON.parse(body);\n\n var rating = \"no rating available\";\n for (i in movie.Ratings) {\n if (movie.Ratings[i].Source == \"Rotten Tomatoes\") {\n rating = movie.Ratings[i].Value;\n break;\n }\n }\n\n console.log(\"The Title of the movie is: \" + movie.Title);\n console.log(\"The Year the movie came out is: \" + movie.Year);\n console.log(\"The movie's rating is: \" + movie.Rated);\n console.log(\"Rotten Tomatoes Rating of the movie is: \" + rating);\n console.log(\n \"The country(countries) where the movie was produced is: \" +\n movie.Country\n );\n console.log(\"The Language of the movie is: \" + movie.Language);\n console.log(\"The Plot of the movie is: \" + movie.Plot);\n console.log(\"The Actors in the movie are: \" + movie.Actors);\n }\n }\n );\n}", "title": "" }, { "docid": "690e78b1f2b6891632c1034603fc8ea6", "score": "0.7127096", "text": "function movieThis() {\n var movie = process.argv.splice(3).join(\" \") || \"Mr. Nobody\" || search\n var URL = `http://www.omdbapi.com/?t=${movie}&y=&plot=short&apikey=trilogy`;\n axios.get(URL).then(function (response) {\n var results = response.data;\n var movieInfo = `\n Title: ${results.Title}\n Year: ${results.Year}\n IMBD Rating: ${results.Ratings.imbdRating}\n Rotten Tomatoes Rating: ${results.Ratings[1].Source}\n Country Produced: ${results.Country}\n Language of movie:${results.Language}\n Plot:${results.Plot}\n Actors: ${results.Actors}\n `\n console.log(movieInfo);\n }\n )\n\n}", "title": "" }, { "docid": "5c515066716d90a3f208c865f5767296", "score": "0.7126391", "text": "function movie(){\n \n\n request(\"http://www.omdbapi.com/?t=\"+ userChoice +\"&y=&plot=short&apikey=40e9cece\", function(error, response, body) {\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n });\n \n\n}", "title": "" }, { "docid": "ed503fe6cb58c75e7619037631afd005", "score": "0.7119018", "text": "function movieThis(title){\n\t\n\tvar omdbURL = \"http://www.omdbapi.com/?apikey=\"+keys.omdbKeys.api_key+\"&t=\"+title;\n\n\trequest(omdbURL, function (error, response, body) {\n\t\t \n \t\tif(error ===null){\n \t\t\t//convert data into a JSON object\n \t\t\tvar data = JSON.parse(body);\n \t\t\t\n \t\t\tconsole.log(\"--------------------\");\n \t\t\tconsole.log(\"Title: \" + data.Title);\n \t\t\tconsole.log(\"Released in: \"+ data.Year);\n \t\t\tconsole.log(\"IMDB Rating: \"+ data.imdbRating);\n \t\t\t//if movie has a Rotten Tomatoes Rating, display it\n \t\t\tif(data.Ratings !== undefined){\n \t\t\t\tconsole.log(\"Rotten Tomatoes Rating: \"+ data.Ratings[1].Value);\n \t\t\t}\n \t\t\tconsole.log(\"Produced in: \"+ data.Country);\n \t\t\tconsole.log(\"Language(s): \"+ data.Language);\n \t\t\tconsole.log(\"Plot: \"+ data.Plot);\n \t\t\tconsole.log(\"Actors: \"+ data.Actors);\n \t\t\t\n \t\t\t//output same info to log.txt\n \t\t\tlogInfo(data.Title+\"\\n\");\n\t\t\tlogInfo(data.Year+\"\\n\");\n\t\t\tlogInfo(data.imdbRating+\"\\n\");\n\t\t\tif(data.Ratings !== undefined){\n \t\t\t\tlogInfo(data.Ratings[1].Value+\"\\n\");\n \t\t\t}\n\t\t\tlogInfo(data.Country+\"\\n\");\n\t\t\tlogInfo(data.Language+\"\\n\");\n\t\t\tlogInfo(data.Plot+\"\\n\");\n\t\t\tlogInfo(data.Actors+\"\\n\");\n\t\t}\n\n\t\telse{\n\t\t\tconsole.log('statusCode:', response && response.statusCode);\n\t\t\tconsole.log(\"error:\", error);\n\t\t}\n\t});\n\n}", "title": "" }, { "docid": "9fcc3677e2aa253c7ebc6c799e784124", "score": "0.71146154", "text": "function movieThis() {\n if (!movieName) {\n movieName = \"Good Will Hunting\";\n }\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n // Creating a request with axios to the queryUrl\n axios.get(queryUrl).then(\n function (response) {\n if (!movieName) {\n movieName = \"Good Will Hunting\";\n }// console.log(response.data);\n // Data of Movie\n console.log(\"\\n_Movie Info_\" + \"\\nTitle: \" + response.data.Title + \"\\nRelease Year: \" + response.data.Year + \"\\nRating: \" + response.data.Rated + \"\\nRelease Country: \" + response.data.Country + \"\\nLanguage: \" + response.data.Language + \"\\nPlot: \" + response.data.Plot + \"\\nActors: \" + response.data.Actors);\n\n\n }\n );\n}", "title": "" }, { "docid": "7cada4b1aee428067ab8348b9a972c76", "score": "0.7111687", "text": "function movieThis(song) {\n\n //CUE MR NOBODY IF NO MOVIE IS INPUT\n if (song == undefined) {\n\n var queryUrlAlt = \"http://www.omdbapi.com/?t=mr+nobody&y=&plot=short&apikey=trilogy\";\n request(queryUrlAlt, function(error, response, body) {\n console.log(JSON.parse(body).Title);\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n });\n } else {\n\n //OMDB section\n// Then run a request to the OMDB API with the movie specified\n\nvar queryUrl = \"http://www.omdbapi.com/?t=\" + song + \"&y=&plot=short&apikey=trilogy\";\nrequest(queryUrl, function(error, response, body) {\n\n // If the request is successful\n if (!error && response.statusCode === 200) {\n\n // Parse the body of the site and recover just the imdbRating\n // (Note: The syntax below for parsing isn't obvious. Just spend a few moments dissecting it).\n console.log(JSON.parse(body).Title);\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n\n //BONUS\n //this is the variable for appending to the log.txt\n var movieAll = (\"\\nMovie: \"+JSON.parse(body).Title+ \"\\nRelease Year: \"+JSON.parse(body).Year+\"\\nIMDB Rating: \"+JSON.parse(body).imdbRating+\"\\nRotten Tomatoes Rating: \"+JSON.parse(body).Ratings[1].Value+\"\\nCountry: \"+JSON.parse(body).Country+\"\\nLanguage: \"+JSON.parse(body).Language+\"\\nPlot: \"+JSON.parse(body).Plot+\"\\nActors: \"+JSON.parse(body).Actors);\n //end variable for log.txt\n //append function to send the variable to the log.txt file\n fs.appendFile('log.txt', movieAll, function(err) {\n console.log(\"appended to log.txt\") \n });\n //end append function for log.txt\n //END BONUS\n\n }\n\n if(error) {\n return console.error(err);\n }\n\n});\n}\n}", "title": "" }, { "docid": "2f550cdd5ec511d92e0ec6b3fcaeae6c", "score": "0.7110482", "text": "function getMovie() {\n// Store all of the arguments in an array\nvar nodeArgs = process.argv;\n// Create an empty variable for holding the movie name\nvar movieName = \"\";\n// Loop through all the words in the node argument\nfor (var i = 3; i < nodeArgs.length; i++) {\n if (i > 3 && i < nodeArgs.length) {\n movieName = movieName + \"+\" + nodeArgs[i];\n }\n else {\n movieName += nodeArgs[i];\n }\n}\nif (userCommand === 'movie-this' && nodeArgs[3] === undefined) {\n\tmovieName = \"Mr. Nobody\"\n}\n// Then run a request to the OMDB API with the movie specified\nvar queryUrl = \"http://www.omdbapi.com/?apikey=trilogy&t=\" + movieName + \"&tomatoes=true&y=&plot=short&r=json\";\nconsole.log(queryUrl);\nrequest(queryUrl, function(error, response, body) {\n // If the request is successful\n if (!error && response.statusCode === 200) {\n// put json.parse into a var, make code more readable\nvar movieData = JSON.parse(body)\n\n console.log(\"Movie Name: \" + movieData.Title);\n console.log(\"Released: \" + movieData.Year);\n\tconsole.log(\"IMDB Rating: \" + movieData.imdbRating);\n\tconsole.log(\"Tomato Meter: \" + movieData.tomatoRating);\n\tconsole.log(\"Origin: \" + movieData.Country);\n console.log(\"Language: \" + movieData.Language);\n console.log(\"Plot: \" + movieData.Plot);\n console.log(\"Actors: \" + movieData.Actors);\n }\n});\n}", "title": "" }, { "docid": "93bd0e3f95467f9515bec7db0f4eea89", "score": "0.71044385", "text": "function movieThis(movieName) {\n // console.log(movieName + \" is the movie title\");\n\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n axios\n .get(queryUrl)\n .then(function (response) {\n\n var movie = response.data;\n console.log(\"Title: \" + movie.Title);\n console.log(\"Year Released: \" + movie.Year);\n console.log(\"IMDB Rating: \" + movie.imdbRating);\n for (let i = 0; i < movie.Ratings.length; i++) {\n const rating = movie.Ratings[i];\n if (rating.Source === \"Rotten Tomatoes\") {\n console.log(\"Rotten Tomatoes Rating: \" + rating.Value);\n }\n }\n console.log(\"Produced in: \" + movie.Country);\n console.log(\"Language: \" + movie.Language);\n console.log(\"Plot: \" + movie.Plot);\n console.log(\"Actors: \" + movie.Actors);\n })\n}", "title": "" }, { "docid": "20cd206e555ce4bc52b6970dc3560b8c", "score": "0.7094558", "text": "function getmovieDetails(movie) {\n var getmovieUrl = fetch('http://www.omdbapi.com/?apikey=72122887&t=' + movie);\n console.log(\"Details API: \", getmovieUrl);\n getmovieUrl.then(response => {\n return response.json();\n }).then(details => {\n // Insert the HTML code, that are been called from the API\n console.log(\"Details: \", details);\n movieDetails.innerHTML = tableHTML(details);\n });\n}", "title": "" }, { "docid": "a82339852b78f1cc51398f111507230d", "score": "0.7089613", "text": "function getMovie(movieName){\n\trequest(queryUrl, function(error, response, body){\n\t\tif(error){\n\t\t\tqueryUrl = 'http://www.omdbapi.com/?t=Mr+Nobody&y=&plot=short&r=json&tomatoes=true'\n\t\t}\n\t\telse if(!error && response.statusCode === 200) {\n\t\t\tvar movieObject = JSON.parse(body);\n\t\t\t\tconsole.log(\"Movie title: \" + movieObject[\"Title\"]);\n\t\t\t\tconsole.log(\"Movie rating: \" + movieObject[\"imdbRating\"]);\n\t\t\t\tconsole.log(\"Movie year: \" + movieObject[\"Year\"]);\n\t\t\t\tconsole.log(\"Filmed in: \" + movieObject[\"Country\"]);\n\t\t\t\tconsole.log(\"Languages available: \" + movieObject[\"Language\"]);\n\t\t\t\tconsole.log(\"Synopsis: \" + movieObject[\"Plot\"]);\n\t\t\t\tconsole.log(\"Starring: \" + movieObject[\"Actors\"]);\n\t\t\t\tconsole.log(\"Rotten Tomatoes rates this a: \" + movieObject[\"tomatoRating\"]);\n\t\t\t\tconsole.log(\"More info can be found at: \" + movieObject[\"tomatoURL\"]);\n\t\t\t\treturn;\n\t\t}\n\t});\n}", "title": "" }, { "docid": "502758343158cbb9cc4ab3f26d5c47d5", "score": "0.70821476", "text": "function getMovie() {\n\n\n\tif(!movieName) {\n\n\t\tmovieName = \"Mr. Nobody\";\n\n\t } // default if no [3] argument is called\n\nvar queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&r=json$tomatoes=true\";\n\nvar tomatoURL = \"https://www.rottentomatoes.com/m/\" + movieName;\n\n// used this from the activity, same as spotify, including the queryURL\n// got the RT /m from the api that Cherish shared. \n\n\n\trequest(queryUrl, function(error, response, body) {\n\n if (!error && response.statusCode === 200) {\n\n \n \tconsole.log(\"The title of the movie is: \" + JSON.parse(body).Title);\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"The IMDB rating of this movie is \" + JSON.parse(body).imdbRating);\n console.log(\"This movie was produced in \" + JSON.parse(body).Country);\n \tconsole.log(\"The language of this movie is \" + JSON.parse(body).Language);\n \tconsole.log(\"The plot of this movie is as follows \" + JSON.parse(body).Plot);\n \tconsole.log(\"The actors in this movie are \" + JSON.parse(body).Actors);\n \tconsole.log(\"The Rotten Tomatoes URL for this movie is \" + tomatoURL);\n \tconsole.log(\"---------------------------------------------\")\n }\n\n }); \n\n} // JSON does it magic and returns the requests from OMDB api. HW helped with RT call", "title": "" }, { "docid": "ec8199b9685f2a06c7200d07973cd892", "score": "0.7074954", "text": "function movieThis(input){\n\n if (!input) {\n input = \"Mr nobody\";\n }\n\trequest(\"http://www.omdbapi.com/?t=\" + input+ \"&y=&plot=short&r=json&tomatoes=true\", function(error, response, body) {\n\t\n if (!error && response.statusCode === 200) {\n \t\t\n// console.log('-------------------------------')\n// console.log(body);\n// console.log('-------------------------------')\n\n var parsedData = JSON.parse(body);\n\n console.log(\"The movie Title is: \" + parsedData.Title);\n console.log(\"The year the movie came out:\" + parsedData.Year);\n console.log(\"The IMDB rating of the movie: \" + parsedData.imdbRating);\n console.log(\"Country where the movie was produced: \" + parsedData.Country);\n console.log(\"Language of the movie: \" + parsedData.Language);\n console.log(\"Plot of the movie: \" + parsedData.Plot);\n console.log(\"Actors in the movie: \" + parsedData.Actors);\n console.log(\"Movie URL: \" + parsedData.Website);\n console.log(\"Rotten Tomatoes user Rating: \" + parsedData.tomatoUserRating);\n console.log(\"Rotten Tomatoes Rating: \" + parsedData.tomatoRating);\n console.log(\"Rotten Tomatoes URL: \" + parsedData.tomatoURL);\n }\n \n });\n\n}", "title": "" }, { "docid": "6e9c7c50b75bb03029dd21dfd158be0d", "score": "0.707352", "text": "function getMovieInfo(value) {\n const url = generateMovieDBUrl('/movie/' + value) + '&append_to_response=videos,credits';\n // SetSearchTitle(value);\n requestMovieInfo(url, handleError);\n}", "title": "" }, { "docid": "95ea23c13cb449112a748ac80ebc7f61", "score": "0.70613503", "text": "function searchMovies(movie) {\n //fetches api with api key and parameter \"movie\"\n fetch(`http://www.omdbapi.com/?apikey=323bfd8f&s=${movie}`)\n //.then is carried on on succesful receipt of the data\n //response stands for the data that the api has returned.\n //we are returning that data in json format\n .then(function(response) {\n return response.json();\n })\n //a promise returns a promise, so on successful completion of above\n //body, which is the json format of the api data is returned\n .then(function(body){\n console.log(body);\n //we want to diplay the particuloar details of the data we require which\n //have been returned by the api search\n displayMovies(body.Search)\n })\n //code for if the promise fails, an exception.\n .catch(function(error) {\n console.log('Server failed to return data',error);\n });\n }", "title": "" }, { "docid": "6b3a3bad52abf701e952fea482345248", "score": "0.70574725", "text": "function movieSearch(){\n var dmovie = \"\";\n for(var i = 3; i < input.length; i++){\n if (i > 3 && i < input.length) {\n movie = movie + \"+\" + input[i];\n }\n else {\n dmovie += input[i];\n }\n }\n console.log(\"movie name \" + movie);\n //npm to acess imdb\n var request = require(\"request\");\n //var queryUrl = \"http://www.omdbapi.com/?t=\" + movie +\"&y=&plot=long&tomatoes=true&r=json\";\n request(\"http://www.omdbapi.com/?t=\"+movie+\"&y=&plot=short&apikey=40e9cece\",function(error, response, body){\n //stringfy the body\n var data = JSON.parse(body);\n if(!error && response.statusCode == 200){\n var data = JSON.parse(body);\n console.log(\"Title of the movie: \" + data.Title);\n log(\"\\n Title of the movie: \" + data.Title);\n console.log(\"Year the movie came out: \" + data.Year);\n log(\"\\n Year the movie came out: \" + data.Year);\n console.log(\"IMDB Rating: \" + data.imdbRating);\n log(\"\\n IMDB Rating: \" + data.imdbRating);\n console.log(\"Country Produced: \" + data.Country);\n log(\"\\n Country Produced: \" + data.Country);\n console.log (\"Language of the movie: \" + data.Language);\n log (\"\\n Language of the movie: \" + data.Language);\n console.log (\"Plot of the movie: \" + data.Plot);\n log (\"\\n Plot of the movie: \" + data.Plot);\n console.log (\"Actors: \" + data.Actors);\n log (\"\\n Actors: \" + data.Actors);\n console.log(\"Rotten Tomato rating is: \" + data.Ratings[1].Value);\n log(\"\\n Rotten Tomato rating is: \" + data.Ratings[1].Value);\n console.log(\"Rotten Tomatoes URL: \" + data.tomatoURL);\n log(\"n\\ Rotten Tomatoes URL: \" + data.tomatoURL);\n console.log(\"============================================\");\n log(\"\\n============================================\");\n }\n else {\n request(\"http://www.omdbapi.com/?t=mr+nobody&y=&plot=short&apikey=40e9cece\", function(error, response, body) {\n var data = JSON.parse(body);\n // PARSE THE BODY OF THE SITE WITH THE FOLLWING INFORMATION\n console.log(\"Movie name: \" + data.Title);\n log(\"\\n Movie name: \" + data.Title);\n console.log(\"Movie released: \" + data.Year);\n log(\"\\n Movie released: \" + data.Year);\n console.log(\"Movie's rating is: \" + data.imdbRating);\n log(\"\\n Movie's rating is: \" + data.imdbRating);\n console.log(\"Movie was produced in the: \" + data.Country);\n log(\"\\n Movie was produced in the: \" + data.Country);\n console.log(\"The language for this movie is in: \" + data.Language);\n log(\"\\n The language for this movie is in: \" + data.Language);\n console.log(\"movie's Plot: \" + data.Plot);\n log(\"\\n movie's Plot: \" + data.Plot);\n console.log(\"Movie Actor's: \" + data.Actors);\n log(\"\\n Movie Actor's: \" + data.Actors);\n console.log(\"Rotten Tomato rating is: \" + data.Ratings[1].Value);\n log(\"\\n Rotten Tomato rating is: \" + data.Ratings[1].Value);\n console.log(\"Rotten Tomato URL is: \" + data.tomatoURL);\n log(\"\\n Rotten Tomato URL is: \" + data.tomatoURL);\n console.log(\"============================================\");\n log(\"\\n============================================\");\n });\n }\n});\n}", "title": "" }, { "docid": "1b01c0cb17eb27250bb649c91ce099a6", "score": "0.70566493", "text": "function movieThis() {\n axios.get(\"http://www.omdbapi.com/?t=\" + process.argv[3] + \"&y=&plot=short&apikey=trilogy\").then(function (response) {\n\n if (response) {\n // // * Title of the movie.\n console.log(\"Title: \" + response.data.Title)\n // // * Year the movie came out.\n console.log(\"Year: \" + response.data.Year)\n // // * IMDB Rating of the movie.\n console.log(\"iMDB Rating: \" + response.data.Ratings[0].Value)\n // // * Rotten Tomatoes Rating of the movie.\n console.log(\"Rotten Tomatoes Rating: \" + response.data.Ratings[1].Value)\n // // * Country where the movie was produced.\n console.log(\"Country: \" + response.data.Country)\n // // * Language of the movie.\n console.log(\"Language: \" + response.data.Language)\n // // * Plot of the movie.\n console.log(\"Plot: \" + response.data.Plot)\n // // * Actors in the movie.\n console.log(\"Actors: \" + response.data.Actors)\n\n }\n\n });\n}", "title": "" }, { "docid": "98bac0364be4e587039e9b500be17838", "score": "0.7056556", "text": "function movieThis(){\n\tif(input === null){\n\t\tinput = 'mr nobody';\n\t}\n var params = input;\n request(\"http://www.omdbapi.com/?t=\" + params + \"&y=&plot=short&apikey=trilogy\", \n function (error, response, body) {\n\t\tif (!error && response.statusCode == 200) {\n \n\t\t\tvar movieResults =\n\t\t\tchalk.blue.bgWhite(\"~~~~~~~~~~~~~~~Movie Results~~~~~~~~~~~~~~~\") + \"\\r\\n\" +\n\t\t\tchalk.cyan(\"Title: \") + JSON.parse(body).Title +\"\\r\\n\"+\n\t\t\tchalk.magenta(\"Year: \") + JSON.parse(body).Year +\"\\r\\n\"+\n chalk.cyan(\"Imdb Rating: \") + JSON.parse(body).imdbRating +\"\\r\\n\"+\n chalk.magenta(\"Rotten Tomatoes Rating: \") + JSON.parse(body).tomatoRating +\"\\r\\n\"+\n\t\t\tchalk.cyan(\"Country: \") + JSON.parse(body).Country +\"\\r\\n\"+\n\t\t\tchalk.magenta(\"Language: \") + JSON.parse(body).Language +\"\\r\\n\"+\n\t\t\tchalk.cyan(\"Plot: \") + JSON.parse(body).Plot + \"\\r\\n\"+\n\t\t\tchalk.magenta(\"Actors: \") + JSON.parse(body).Actors +\"\\r\\n`\"+\n\t\t\tchalk.blue.bgWhite(\"~~~~~~~~~~~~~End of Movie Results ~~~~~~~~~~~\") + \"\\r\\n\";\n\t\t\tconsole.log(movieResults);\n\t\t\tlog(movieResults); // all movie inputs are printed to the log.txt file....COOL! IT WORKED B-)\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Error :\"+ error);\n\t\t\t\treturn; \n\t\t\t}\n });\n \n}", "title": "" }, { "docid": "cea9c1ad60d861102b78edf4247492ca", "score": "0.7054614", "text": "function getMovieInfo(moviename) { \n var defer = $q.defer();\n\n $http({\n method: 'GET',\n url: 'http://www.omdbapi.com/',\n params: {\n s: moviename\n }\n \n }) \n .then(function(response) {\n \n defer.resolve(response); \n \n },\n function(error){\n defer.reject(error);\n }); return defer.promise; \n }", "title": "" }, { "docid": "c9d679b449fe0a8339ef320dd21a4530", "score": "0.70440114", "text": "function omdbAPI(movie)\n{\n //Sets default if movie is undefined.\n if (movie === undefined)\n {\n \tmovie = \"Mr. Nobody\";\n }\n\t\n\tconst OMBD_ENDPOINT = \"http://www.omdbapi.com/?\";\n\tlet url = OMBD_ENDPOINT + \"t=\" + movie;\t\n\n\t//Data is in the 'body' as a string.\n\tREQUEST(url, function (error, response, body) \n\t{\n\t\tif (error)\n\t\t{\n\t\t\tlet errorMsg = \"Sorry, There Seems To Be A Problem With OMDB. Try Again.\";\n\t\t\tconsole.log(errorMsg);\n\t\t\twriteToLog(errorMsg);\n\t\t\treturn;\n\t\t}\n\t\t\t//stores movie 'body' data as object\n\t\t\tlet movieData = JSON.parse(body);\t\t\n\n\t\t//Checks if any movie information found.\t\n\t\tif(movieData.Response === \"False\")\n\t\t{\n\t\t\tlet errorMsg = movie + \"' Found No Results! Try Another Title.\";\n\t\t\tconsole.log(errorMsg);\n\t\t\twriteToLog(errorMsg);\n\t\t}\t\n\t\telse\n\t\t{\t\t\n\t\t\tlet movieTitle = movieData.Title;\n\t\t\t\n\t\t\t //String messeges for display\n\t\t\tlet resultsMsg = \"* OMDB Results For '\" + movieTitle + \"' *\\n\";\n\t\t\tlet titleMsg = \"Title: \" + movieTitle;\n\t\t\tlet yearMsg = \"Year: \" + movieData.Year;\n\t\t\tlet imdbRatingMsg = \"IMBD Rating: \" + movieData.imdbRating;\n\t\t\tlet countryMsg = \"Country: \" + movieData.Country;\n\t\t\tlet languageMsg = \"Language: \" + movieData.Language;\n\t\t\tlet plotMsg = \"Plot: \" + movieData.Plot\n\t\t\tlet actorsMsg = \"Actors: \" + movieData.Actors;\n\n\t\t\t//array of string messeges\n\t\t\tlet messages =[resultsMsg, titleMsg, yearMsg, imdbRatingMsg, countryMsg, languageMsg, plotMsg, actorsMsg];\n\n\t\t\tfor(let key in messages)\n\t\t\t{\n\t\t\t\tconsole.log(messages[key]);\n\t\t\t\twriteToLog(messages[key]);\n\t\t\t}\t\n\t \t\n\t\t \t//If movie title starts with 'The', 'The' is removed, and the title is trimed. \n\t\t \tif(movieTitle.startsWith(\"The\"))\n\t\t \t{\n\t\t \t\tmovieTitle = movieTitle.replace(\"The\" , \"\").trim();\n\t\t \t}\t\n\n\t\t \t//The movie title is made lowercase.\n\t\t \tmovieTitle= movieTitle.toLowerCase();\n\n\t\t \t//Replaces all non alpha-numeric characters except spaces with \"\", \n\t\t \t//then replaces all 'white space' with an underscore. \n\t\t \t//Example: 'mr. nobody' becomes 'mr_nobody'\n\t\t \tmovieTitle = movieTitle.replace(/[^a-z,0-9,\\s]/g, \"\").replace(/\\s/g, \"_\");\n\t \t\n\t\t \tconst ROTTON_TOMATOES_ENDPOINT = \"https://www.rottentomatoes.com/m/\";\t\t\n\t\t\tlet url = ROTTON_TOMATOES_ENDPOINT + movieTitle;\n\n\t\t \tlet rottenUrlMsg = \"Rotten Tomatoes URL: \" + url;\n\t\t \tconsole.log(rottenUrlMsg);\n\t\t \twriteToLog(rottenUrlMsg);\n\n\t\t\t//Scrapes 'Rotten Tomatoes' results page for movie rating.\n\t\t\tREQUEST(url, function (error, data, body) \n\t\t\t{\n\t\t\t\tif(error)\n\t\t\t\t{\n\t\t\t\t\tlet errorMsg = \"Sorry, There Seems To Be A Problem With Rotten Tomatoes. Try Again.\";\n\t\t\t\t\tconsole.log(errorMsg);\n\t\t\t\t\twriteToLog(errorMsg);\n\t\t\t\t\treturn;\n\t\t\t\t}\t\n\n\t\t\t\t//This loads in the html page (body) of Rotten Tomaotes from REQEST\n\t\t\t\tlet $ = CHEERIO.load(body);\n\n\t\t\t\t//Saves JSON object that holds movie data from html file.\n\t\t\t\t//The object is inside the '<script>' tag with id 'jsonLdSchema'\n\t\t\t\t//in the rotten tomatoes html file ($). \n\t\t\t let dataObject = JSON.parse($(\"#jsonLdSchema\").html());\n\t \n\t\t \t//Checks if dataObject exists and movie rating property exists.\n\t\t \tif(dataObject != null && dataObject.aggregateRating != undefined)\n\t\t \t{\t\n\t\t\t \tlet rating = dataObject.aggregateRating.ratingValue;\n\t\t\t\t \n\t\t\t \t//Checks if rating is a number (exists).\n\t\t\t\t if(!isNaN(rating))\n\t\t\t\t {\t\n\t\t\t\t \tlet errorMsg = \"Rotten Tomatoes Rating: \" + rating;\n\t\t\t\t \tconsole.log(errorMsg);\n\t\t\t\t \twriteToLog(errorMsg);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlet noRatingMsg = \"Rotten Tomatoes Rating: N/A\";\n\t\t\t\t\t\tconsole.log(noRatingMsg);\n\t\t\t\t\t\twriteToLog(noRatingMsg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//When no Rotten Tomatoe results exist.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlet noRatingMsg = \"Rotten Tomatoes Rating: N/A\";\n\t\t\t\t\tconsole.log(noRatingMsg);\n\t\t\t\t\twriteToLog(noRatingMsg);\n\t\t\t\t}\t\n\n\t\t\t});//END REQUEST\n\t\t}//END else\n\t});//END REQUEST\n\n}//END omdbAPI()", "title": "" }, { "docid": "84ec57ce5306cf438d2c2a32666baaaa", "score": "0.703818", "text": "function movieThis() {\n\tif(searchArg){\n\t\trequest('http://www.omdbapi.com/?t=' + searchArg + '&apikey=40e9cece', function (error, response, body) {\n\t\t\tvar json = JSON.parse(body);\n\t\t\t//console.log('error:', error);\n\t\t\t//console.log('statusCode:', response && response.statusCode);\n\t\t\t//console.log('body:', JSON.parse(body));\n\t\t\tconsole.log(`Title: ${json.Title}`);\n\t\t\tconsole.log(`Year Released: ${json.Year}`);\n\t\t\tconsole.log(`IMDB Rating (because that's as legit as it gets and no spammers): ${json.Ratings[0].Value}`);\n\t\t\tconsole.log(`Rotten Tomatoes Rating (the legit one): ${json.Ratings[1].Value}`);\n\t\t\tconsole.log(`Country of Release: ${json.Country}`);\n\t\t\tconsole.log(`Language: ${json.Language}`);\n\t\t\tconsole.log(`Plot Summary: ${json.Plot}`);\n\t\t\tconsole.log(`Actors: ${json.Actors}`);\n\t\t});\n\t} else {\n\t\trequest('http://www.omdbapi.com/?t=Mr.+Nobody&apikey=40e9cece', function (error, response, body) {\n\t\t\t\tvar json = JSON.parse(body);\n\t\t\t\t//console.log('error:', error);\n\t\t\t\t//console.log('statusCode:', response && response.statusCode);\n\t\t\t\t//console.log('body:', JSON.parse(body));\n\t\t\t\tconsole.log(`Title: ${json.Title}`);\n\t\t\t\tconsole.log(`Year Released: ${json.Year}`);\n\t\t\t\tconsole.log(`IMDB Rating (because that's as legit as it gets and no spammers): ${json.Ratings[0].Value}`);\n\t\t\t\tconsole.log(`Rotten Tomatoes Rating (the legit one): ${json.Ratings[1].Value}`);\n\t\t\t\tconsole.log(`Country of Release: ${json.Country}`);\n\t\t\t\tconsole.log(`Language: ${json.Language}`);\n\t\t\t\tconsole.log(`Plot Summary: ${json.Plot}`);\n\t\t\t\tconsole.log(`Actors: ${json.Actors}`);\n\t\t});\n\t}\n\n}", "title": "" }, { "docid": "0b228cf30027cfc174856eeb5d3a99a0", "score": "0.7030486", "text": "function moviePull() {\n // If node 3 on is empty then saves a default movie to the movieName variable\n if (!movieName) {\n movieName = \"Mr.+Nobody\"\n }\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&apikey=trilogy\";\n request(queryUrl, function(error, response, body) {\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n var bodyObj = JSON.parse(body);\n console.log(\"\\nMOVIE THIS: \"); \n spacingLines();\n console.log(\n \"Movie Title: \" + bodyObj.Title + \n \"\\nYear of Release: \" + bodyObj.Year +\n \"\\nIMDB Rating: \" + bodyObj.Ratings[0].Value +\n \"\\nRotten Tomatoes Rating: \" + bodyObj.Ratings[1].Value + \n \"\\nCountry of Production: \" + bodyObj.Country +\n \"\\nLanguage: \" + bodyObj.Language +\n \"\\nPlot: \" + bodyObj.Plot +\n \"\\nActors: \" + bodyObj.Actors\n );\n }\n });\n}", "title": "" }, { "docid": "13658b38c98f85103b16d4022114837b", "score": "0.70271045", "text": "function movie(query) {\n if (!query) {\n query = \"mr nobody\"; // if blank the query will default to mr nobody\n }\n axios\n .get(\n \"http://www.omdbapi.com/?t=\" + query + \"&y=&plot=short&apikey=\" + omdb.id\n )\n .then(function(response) {\n figlet(response.data.Title, function(err, data) {\n // using figlet to play with the text\n if (err) {\n console.log(\"Something went wrong, try again\");\n console.dir(err);\n return;\n }\n var title = data;\n console.log(\"Your search for '\" + query + \"' returned the following:\");\n console.log(\n title +\n \"\\nYear: \" +\n response.data.Year +\n \"\\nIMDb Rating: \" +\n response.data.imdbRating +\n \"\\nRotten Tomatoes Rating: \" +\n response.data.Ratings[1].Value +\n \"\\nCountry: \" +\n response.data.Country +\n \"\\nLanguage: \" +\n response.data.Language +\n \"\\nPlot: \" +\n response.data.Plot +\n \"\\nActors: \" +\n response.data.Actors\n );\n console.log(\"------------------------\");\n });\n });\n}", "title": "" }, { "docid": "63a992710da388bd18b339c6adc5f382", "score": "0.7022358", "text": "function movieInfo () {\n if (!userInputTwo) {\n userInputTwo = \"Batman+Begins\";\n }\n request('http://www.omdbapi.com/?apikey=40e9cece&t=' + userInputTwo + `&tomatoes=true`, function (error, response, body) {\n var movieObj = JSON.parse(body);\n if (movieObj.Title === undefined && movieObj.Plot === undefined) {\n console.log(\"Sorry! Selection not found, try another title.\");\n }\n else {\n console.log(\"Your movie Selection: \");\n console.log(\"Title: \" + movieObj.Title);\n console.log(\"Year: \" + movieObj.Year);\n console.log(\"Rating: \" + movieObj.Rated);\n console.log(\"Country Produced In: \" + movieObj.Country);\n console.log(\"Language: \" + movieObj.Language);\n console.log(\"Plot: \" + movieObj.Plot);\n console.log(\"Actors/Actresses: \" + movieObj.Actors);\n console.log(\"Rotten Tomatoes URL: \" + movieObj.tomatoURL);\n }\n });\n }", "title": "" }, { "docid": "fac2f56a4205f8b0bc9d3ed3e53e878a", "score": "0.70180374", "text": "function movie(movie) {\n\n\n if (movie === \"\") {\n console.log(\"Please enter a movie search with the syntax: node liri.js movie-this '<movie name here>\");\n } else {\n axios.get(\"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&apikey=\" + omdbKey).then(\n function (response) {\n\n // console.log(response.data);\n console.log(\"Title: \" + response.data.Title);\n console.log(\"Year: \" + response.data.Year);\n console.log(\"IMDB Rating: \" + response.data.imdbRating);\n console.log(\"Rotten Tomatoe Rating: \" + response.data.Ratings[1].Value);\n console.log(\"Country: \" + response.data.Country);\n console.log(\"Language: \" + response.data.Language);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Actors: \" + response.data.Actors);\n\n }\n )\n };\n}", "title": "" }, { "docid": "87f81e23a610cd466a4da10ef906fc0e", "score": "0.7017041", "text": "function getImdbResults(movieObjects) {\n console.log(movieObjects);\n fetch(`https://www.omdbapi.com/?t=${encodeURIComponent(movieObjects.title)}&apikey=${omdbApiKey}`)\n .then(response => {\n if(response.ok) {\n return response.json();\n }\n throw new Error(response.statusText); \n })\n .then(responseJson => {\n displayResults(movieObjects,responseJson)\n })\n .catch(err => {\n $('.errorMessage').text(`Uh oh. Something went wrong: ${err.message}`)\n });\n}", "title": "" }, { "docid": "cdf32a4aea86fefa2af45e2d57eebad4", "score": "0.7001553", "text": "function movieThis(movie_name) {\n\t// If the user doesn't type a movie in, the program will output data for the movie \"Mr. Nobody\".\n\tif (!movie_name) {\n\t\tmovie_name = \"Mr. Nobody\";\n\t}\n\t// You'll use the request package to retrieve data from the OMDB API. Like all of the in-class activities, the OMDB API requires an API key. You may use \"trilogy\".\n\trequest(\"http://www.omdbapi.com/?t=\" + movie_name + \"&y=&plot=short&apikey=trilogy\", function(error, response, body) {\n\t\tvar movieInfo = JSON.parse(body);\n\t\tif (!error && response.statusCode === 200 && JSON.parse(body)[\"Response\"] === \"True\") {\n\t\t\t// Title of the movie.\n\t\t\tconsole.log(\"Title: \" + movieInfo[\"Title\"]);\n\t\t\t// Year the movie came out.\n\t\t\tconsole.log(\"Release Year: \" + movieInfo[\"Year\"]);\n\t\t\t// IMDB Rating of the movie.\n\t\t\tconsole.log(\"IMDB Rating: \" + movieInfo[\"imdbRating\"]);\n\t\t\t// Rotten Tomatoes Rating of the movie.\n\t\t\tconsole.log(\"Rotten Tomatoes Rating: \" + movieInfo[\"Ratings\"][1][\"Value\"]);\n\t\t\t// Country where the movie was produced.\n\t\t\tconsole.log(\"Country: \" + movieInfo[\"Country\"]);\n\t\t\t// Language of the movie.\n\t\t\tconsole.log(\"Language: \" + movieInfo[\"Language\"]);\n\t\t\t// Plot of the movie.\n\t\t\tconsole.log(\"Plot: \" + movieInfo[\"Plot\"]);\n\t\t\t// Actors in the movie.\n\t\t\tconsole.log(\"Actors: \" + movieInfo[\"Actors\"]);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "200fd40ec754d879e50711f6339e225b", "score": "0.6999403", "text": "function movieResult() {\n var movieInput = userInput;\n if (movieInput === undefined) {\n movieInput = 'Mr Nobody';\n }\n console.log(movieInput)\n request('https://www.omdbapi.com/?t=' + movieInput + '&&y=&plot=short&apikey=trilogy', function (error, response, body) {\n if (error) {\n console.log('Error:' + error);\n }\n var movie = JSON.parse(body);\n console.log('============ MOVIE RESULT ============');\n console.log('Title: ' + movie.Title);\n console.log('Year: ' + movie.Year);\n console.log('IMDB Rating: ' + movie.Ratings[0].Value);\n console.log('Rotten Tomatoes Rating: ' + movie.Ratings[1].Value);\n console.log('Country: ' + movie.Country);\n console.log('Language: ' + movie.Language);\n console.log('Plot: ' + movie.Plot);\n console.log('Actors: ' + movie.Actors);\n console.log('=======================================');\n console.log('\\n');\n });\n}", "title": "" }, { "docid": "abbc68779c2e683ab08f0a6206c5e1f6", "score": "0.69993454", "text": "function getMovieDetails(activeMovie) {\n const baseURL = 'https://api.themoviedb.org/3/movie/'\n const requestURL = baseURL + activeMovie + '?' + 'api_key=' + mdb_api_key;\n fetch(requestURL)\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n throw new Error(response.statusText);\n })\n .then(responseJson => writeMovieDetails(responseJson))\n .catch(err => {\n $('.error').text(`An error occurred: ${err.message}`)\n $('.error').removeClass('hidden');\n });\n}", "title": "" }, { "docid": "12ff31eadec9ff772145244e47aaa3a9", "score": "0.6991146", "text": "function movier(movieInput) {\n request(\"http://www.omdbapi.com/?t=\" + movieInput + \"&y=&plot=short&apikey=trilogy\", function(error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n\n // Parse the body of the site and recover just the imdbRating\n // (Note: The syntax below for parsing isn't obvious. Just spend a few moments dissecting it).\n console.log(JSON.parse(body).Title);\n console.log(JSON.parse(body).Year);\n console.log(\"IMDB Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Rotten Tomato Rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(JSON.parse(body).Country);\n console.log(JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n }\n });\n}", "title": "" }, { "docid": "0c66ee725723768cfdeb10c0b55565ad", "score": "0.6990909", "text": "function movieInfo(parameter) {\nvar findMovie;\nif (parameter === undefined) {\n findMovie = \"Mr. Nobody\";\n} \nelse {\n findMovie = parameter;\n};\n\nvar queryUrl = \"http://www.omdbapi.com/?t=\" + findMovie + \"&y=&plot=short&apikey=trilogy\";\n \nrequest(queryUrl, function(err, res, body) {\n var bodyOf = JSON.parse(body);\n if (!err && res.statusCode === 200) {\n postIt(\"Title: \" + bodyOf.Title);\n postIt(\"Release Year: \" + bodyOf.Year);\n postIt(\"IMDB Rating: \" + bodyOf.imdbRating);\n postIt(\"Rotten Tomatoes Rating: \" + bodyOf.Ratings[1].Value); \n postIt(\"Country: \" + bodyOf.Country);\n postIt(\"Language: \" + bodyOf.Language);\n postIt(\"Plot: \" + bodyOf.Plot);\n postIt(\"Actors: \" + bodyOf.Actors);\n }\n });\n}", "title": "" }, { "docid": "8abce44ea300343e5f6fb4ec6fd93cf9", "score": "0.69826424", "text": "function movie() {\n var movieUrl = \"http://www.omdbapi.com/?t=\" + art + \"&y=&plot=short&apikey=trilogy\";\n axios.get(movieUrl).then(\n function (response) {\n console.log(\" ********************************************************************\");\n console.log(\" Title of the movie: \" + JSON.stringify(response.data.Title));\n console.log(\"\");\n console.log(\" Year the movie came out: \" + JSON.stringify(response.data.Released));\n console.log(\"\");\n console.log(\" IMDB Rating of the movie: \" + response.data.imdbRating);\n console.log(\"\");\n console.log(\" Rotten Tomatoes Rating of the movie: \" + JSON.stringify(response.data.Ratings[1].Value));\n console.log(\"\");\n console.log(\" Country where the movie was produced: \" + JSON.stringify(response.data.Country));\n console.log(\"\");\n console.log(\" Language of the movie: \" + JSON.stringify(response.data.Language));\n console.log(\"\");\n console.log(\" Plot of the movie: \" + JSON.stringify(response.data.Plot));\n console.log(\"\");\n console.log(\" Actors in the movie: \" + JSON.stringify(response.data.Actors));\n console.log(\" ********************************************************************\");\n }\n );\n}", "title": "" }, { "docid": "b9b906a89de03a87384150f5f913d6fd", "score": "0.69785255", "text": "function getMovieDbFilmDetails() {\n\n const movieDbId = STORE.films[STORE.filmIndexClicked].movieDbId;\n\n let params = {\n api_key: STORE.theMovieDBApiKey,\n language: 'en-US',\n append_to_response: 'images',\n include_image_language: 'en,null'\n };\n\n let queryString = formatQueryParams(params);\n let url = STORE.theMovieDBApi + 'movie/' + movieDbId + '?' + queryString;\n\n fetch(url)\n .then (response => {\n if (response.ok) {\n return response.json();\n }\n throw new Error(response.statusText);\n }) \n .then (responseJson => buildStoreMovieDbDetails(responseJson))\n .catch(err => {\n $('#js-error-message').text(`Error getting The Movie Database films: ${err.message}`);\n });\n}", "title": "" }, { "docid": "dbab3db0672e9b5ec0741695588bea6c", "score": "0.69783664", "text": "function movieThis(arg) {\n\tif (arg === undefined) {\n\t\targ = \"shawshank\";\n\t}\n\n\n\trequest(`http://www.omdbapi.com/?t=${arg}&y=&plot=short&apikey=trilogy`, function (error, response, body) {\n\t\tif (!error && response.statusCode == 200) {\n\n\t\t\tlet movieObject = JSON.parse(body);\n\n\t\t\tlet movieResults =\n\t\t\t\tconsole.log(\"------------------------------ Start Movie Results ------------------------------\" + \"\\r\\n\")\n\t\t\tconsole.log(\"Title: \" + movieObject.Title + \"\\n\\n\")\n\n\t\t\tif (movieObject.Title === undefined) {\n\t\t\t\tconsole.log(\"Check your spelling playa!\")\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Year: \" + movieObject.Year + \"\\n\\n\")\n\t\t\t\tconsole.log(\"Imdb Rating: \" + movieObject.imdbRating + \"\\n\\n\")\n\t\t\t\tconsole.log(\"Country: \" + movieObject.Country + \"\\n\\n\")\n\t\t\t\tconsole.log(\"Language: \" + movieObject.Language + \"\\n\\n\")\n\t\t\t\tconsole.log(\"Plot: \" + movieObject.Plot + \"\\n\\n\")\n\t\t\t\tconsole.log(\"Actors: \" + movieObject.Actors + \"\\n\\n\")\n\t\t\t\tconsole.log(\"------------------------------ END ------------------------------\" + \"\\r\\n\");\n\t\t\t}\n\t\t\t// console.log(movieResults);\n\t\t\t// log(movieResults); // calling log function\n\t\t} else {\n\t\t\tconsole.log(\"Error :\" + error);\n\t\t\treturn;\n\t\t}\n\t});\n}", "title": "" }, { "docid": "0e64ab74fdb6b6f443b41551f64b8351", "score": "0.6958151", "text": "function movieFunction() {\n \n var queryUrl = \"http://www.omdbapi.com/?t=\" + value + \"&y=&plot=full&tomatoes=true&apikey=trilogy\";\n console.log(queryUrl);\n // This line is just to help us debug against the actual URL.\n // console.log(queryUrl);\n \n request(queryUrl, function(error, response, body) {\n \n // If the request is successful\n if (!error && response.statusCode === 200) {\n \n // Parse the body of the site and recover just the imdbRating\n // (Note: The syntax below for parsing isn't obvious. Just spend a few moments dissecting it).\n var jsonData = JSON.parse(body);\n\n // console.log(\"Release Year: \" + response.body);\n console.log(\"Title: \" + jsonData.Title);\n console.log(\"Release Year: \" + jsonData.Year);\n \n // Use a function to loop through ratings array and only pick out Rotten Tomatoes review\n jsonData.Ratings.map( function (element) {\n console.log(element);\n console.log(jsonData.Ratings)\n if(element.Source === 'Rotten Tomatoes')\n console.log(element.Source + '\\t' + 'Rating: ' + element.Value);\n });\n\n console.log(\"Country: \" + jsonData.Country);\n console.log(\"Language: \" + jsonData.Language);\n console.log(\"Plot: \" + jsonData.Plot);\n console.log(\"Actors: \" + jsonData.Actors);\n\n }\n });\n}", "title": "" }, { "docid": "28652efff55515f5fee83c9aa8f16526", "score": "0.6956781", "text": "async FetchMovies(movieName) {\n const url = `https://www.omdbapi.com/?s=${movieName}&plot=full&apikey=d78f4d96`\n const response = await fetch(url);\n const data = await response.json();\n this.setState({ movies: data.Search, loading: false, data: data.Search });\n }", "title": "" }, { "docid": "50e413a02c0f34a73de9c8662d3dd921", "score": "0.6955732", "text": "function gatherMovie(search) {\n axios.get(`http://www.omdbapi.com/?t=${search}&apikey=${keys.OMDB}`).then(\n (movieRes) => {\n // Gather the movie information if they exist and print them\n if (movieRes.data.Title !== undefined) {\n console.log(`Here is the information for ${movieRes.data.Title}`);\n console.log(`Title of the movie: ${movieRes.data.Title}`);\n console.log(`Year the movie came out: ${movieRes.data.Year}`);\n console.log(`IMDB Rating of the movie: ${movieRes.data.imdbRating}`);\n try {\n console.log(`Rotten Tomatoes Rating of the movie: ${movieRes.data.Ratings[1].Value}`)\n } catch (error) {\n console.log(\"Rotten Tomatoes Rating has not been found\")\n }\n console.log(`Country where the movie was produced: ${movieRes.data.Country}`);\n console.log(`Language of the movie: ${movieRes.data.Language}`);\n console.log(`Plot of the movie: ${movieRes.data.Plot}`);\n console.log(`Actors in the movie: ${movieRes.data.Actors}`);\n } else {\n console.log(\"The movie title has not been found.\")\n }\n }).catch((err) => {\n console.log(err)\n })\n }", "title": "" }, { "docid": "0016865b69bf7106043b6bdbcd3f0618", "score": "0.69502354", "text": "function getMovies() {\n $.ajax({\n url: 'http://www.omdbapi.com',\n\n data: {\n s: document.getElementById('search').value,\n r: 'json',\n type: 'movie',\n y: document.getElementById('year').value\n },\n\n success: function(results) {\n results.Error ? searchError() : listMovies(results);\n }\n });\n }", "title": "" }, { "docid": "09c2d373954a671e9a32e606488815e8", "score": "0.69456226", "text": "function movieThis() {\n //If they leave the input blank fill it with Mr Nobody\n if (value === \"\") {\n value =\"Mr Nobody\";\n }\n //url used to get movie data\n var movieUrl = \"http://www.omdbapi.com/?t=\" + value + \"&y=&plot=short&apikey=trilogy\"\n\n request(movieUrl, function(error, response, body) {\n\n if (!error && response.statusCode === 200) {\n \n console.log(\"Movie Title: \" + JSON.parse(body).Title);\n console.log(\"Release Year: \" + JSON.parse(body).Year);\n console.log(\"IMBD Rating: \" + JSON.parse(body).Ratings[0].Value);\n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Produced in: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n }\n else {\n return console.log(error);\n }\n });\n}", "title": "" }, { "docid": "bb79edf4ef6775e854b7226d9b87520c", "score": "0.69432956", "text": "function getMovieDetails(moviename) { \n var defer = $q.defer();\n\n $http({\n method: 'GET',\n url: 'http://www.omdbapi.com/',\n params: {\n t: moviename\n }\n \n }) \n .then(function(response) {\n \n defer.resolve(response); \n \n },\n function(error){\n defer.reject(error);\n }); return defer.promise; \n }", "title": "" }, { "docid": "3ff09d1460d281dd2463942402626b0c", "score": "0.6924932", "text": "function searchOMDB(movieName) {\n let searchForMovie = \"Mr. Nobody\";\n\n if (movieName != undefined) {\n searchForMovie = movieName;\n }\n\n axios.get(`http://www.omdbapi.com/?t=${searchForMovie}&y=&plot=short&apikey=${keys.omdb.apiKey}`)\n .then(\n function (response) {\n //console.log(JSON.stringify(response.data, null, 2));\n\n logAppend(`\\n----------------- Search OMDB ----------------------------`);\n logAppend(`Title: ${response.data.Title}`);\n logAppend(`Year: ${response.data.Year}`);\n logAppend(`Ratings`);\n\n for (let i in response.data.Ratings) {\n logAppend(`${response.data.Ratings[i].Source}: ${response.data.Ratings[i].Value}`);\n }\n logAppend(`Country: ${response.data.Country}`);\n logAppend(`Language: ${response.data.Language}`);\n logAppend(`Plot: ${response.data.Plot}`);\n logAppend(`Actors: ${response.data.Actors}`);\n }\n )\n .catch(function (error) {\n if (error.response) {\n // The request was made and the server responded with a status code\n }\n });\n}", "title": "" }, { "docid": "6972340e305648acbf635ca65c44946f", "score": "0.6922807", "text": "function movie() {\n\n var args = process.argv;\n var movieName = \"\";\n\n for (i = 3; i < args.length; i++) {\n if (i > 3 && i < args.length) {\n movieName = movieName + \"+\" + args[i];\n } else {\n movieName = args[i];\n }\n };\n\n if (movieName === \"\") {\n movieName = \"Mr.\" + \"+\" + \"Nobody\"\n };\n\n //run a request to the OMDB API with the specified movie\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n request(queryUrl, function (error, response, body) {\n if (!error && response.statusCode === 200) {\n console.log(\"-------------------------------------------------------------------------------------------\");\n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Year: \" + JSON.parse(body).Year);\n console.log(\"IMDB rating: \" + JSON.parse(body).imdbRating);\n console.log(\"Rotten Tomatoes rating: \" + JSON.parse(body).Ratings[1].Value);\n console.log(\"Country: \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n console.log(\"-------------------------------------------------------------------------------------------\");\n } else {\n console.log(\"You did something wrong\");\n }\n });\n}", "title": "" }, { "docid": "7e7861edd920633abbacf15449ce99a2", "score": "0.69195294", "text": "function movieThis(movieInput) {\n\n//store name of song from command line in var Movie\n//if no song is inputted, default to Mr. Nobody\nvar Movie = movieInput ? movieInput : 'Mr.Nobody'\n\nRequest(\"http://www.omdbapi.com/?t=\" + Movie + \"&y=&plot=short&apikey=40e9cece\", function (error,response, body) {\n\tconsole.log(body);\n\n//Reponse code is 200 if request goes through\nif(!error && response.statusCode === 200) {\n\n\tconsole.log(\"=======================MOVIE-THIS==========================\");\n\tconsole.log('Title of the Movie: ' + JSON.parse(body).Title);\n console.log('Release Year: ' + JSON.parse(body).Year);\n console.log('IMDB Rating: ' + JSON.parse(body).imdbRating);\n console.log('Rotten Tomatoes Rating: ' + JSON.parse(body).Ratings.Value);\n console.log('Country: ' + JSON.parse(body).Country);\n console.log('Language: ' + JSON.parse(body).Language);\n console.log('Plot: ' + JSON.parse(body).Plot);\n console.log('Actors: ' + JSON.parse(body).Actors); \t\n \tconsole.log(\"==========================================================\");\n\t\n\t//log command in log.txt file\n\tlogCommand();\n\n\t// log the movie details in log.txt file. Thr format can return raw, so parse the returned data (body)\n\tlogResults(\"=======================MOVIE-THIS=============================\");\n\tlogResults('Title of the Movie: ' + JSON.parse(body).Title);\n logResults('Release Year: ' + JSON.parse(body).Year);\n logResults('IMDB Rating: ' + JSON.parse(body).imdbRating);\n logResults('Rotten Tomatoes Rating: ' + JSON.parse(body).Ratings.Value);\n logResults('Country: ' + JSON.parse(body).Country);\n logResults('Language: ' + JSON.parse(body).Language);\n logResults('Plot: ' + JSON.parse(body).Plot);\n logResults('Actors: ' + JSON.parse(body).Actors); \n \tlogResults(\"==============================================================\");\n\n\t}//close response\n\nif (Movie === \"Mr. Nobody\") {\n\tconsole.log(\"=================MR.NOBODY (DEFAULT)===================\");\n\tconsole.log(\"If you haven't watched 'Mr. Nobody', then you should: http://www.imdb.com/title/tt0485947/\");\n\tconsole.log(\"It's on Netflix!\")\n\tconsole.log(\"=======================================================\");\n\n\t// log the movie details in log.txt file. \n\tlogResults(\"====================MR.NOBODY (DEFAULT)=====================\");\n\tlogResults(\"If you haven't watched 'Mr. Nobody', then you should: http://www.imdb.com/title/tt0485947/\");\n\tlogResults(\"It's on Netflix!\")\n\tlogResults(\"============================================================\");\n\n\n\t\t}//closes Mr.Nobody\n\n\t});//closes omdb request function\n\n\n}//close movieThis function", "title": "" }, { "docid": "1a80473c57689da13fec2bbf7e7340cc", "score": "0.6914975", "text": "function showMovie() {\n console.log(\"movie:\", input)\n if (!input){\n input = \"Mr. Nobody\"\n console.log(\"you need to see Mr. Nobody\")\n }\n var query = \"hhtp://www.omdbapi.com/?t=\" + input + \"&type=movie&apikey=trilogy\"\n console.log(query)\n\n axios.get(query).then(function (response) {\n // console.log(response.data)\n\n var items = response.data\n // console.log(items)\n // * Title of the movie.\n // * Year the movie came out.\n // * IMDB Rating of the movie.\n // * Rotten Tomatoes Rating of the movie.\n // * Country where the movie was produced.\n // * Language of the movie.\n // * Plot of the movie.\n // * Actors in the movie.\n console.log(items.Title)\n console.log(items.Year)\n console.log(items.Ratings[0].Value)\n console.log(items.Ratings[1].Value)\n console.log(items.Country)\n console.log(items.Language)\n console.log(items.Plot)\n console.log(items.Actors)\n })\n}", "title": "" }, { "docid": "7d29bef88861c5b3a78560a9d996210b", "score": "0.69060683", "text": "function findMovie(movieName){\n //empty array to store retrieved movie info\n var movieInfo = [];\n;\n // Then run a request with axios to the OMDB API with the movie specified\n var queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n // Then create a request with axios to the queryUrl\n axios.get(queryUrl).then(\n function(response) {\n //will output the following data to terminal & add each item to movieInfo array\n //title of movie\n const movieTitle = response.data.Title;\n console.log(\"Movie Title: \" + movieTitle);\n movieInfo.push(\"\\nMovie Title: \"+ movieTitle);\n \n //movie release year\n const releaseYear = response.data.Year;\n console.log(\"Release Year: \" + releaseYear);\n movieInfo.push(\"\\nRelease Year: \" + releaseYear);\n \n //IMDB rating\n const imdbRate = response.data.Ratings[0].Value;\n console.log(\"IMDB Rating: \" + imdbRate);\n movieInfo.push(\"\\nIMDB Rating: \" + imdbRate);\n \n //Rotten Tomatoes Rating\n const rtRate = response.data.Ratings[1].Value;\n console.log(\"Rotten Tomatoes Rating: \" + rtRate);\n movieInfo.push(\"\\nRotten Tomatoes Rating: \" + rtRate);\n \n //County of origin\n const country = response.data.Country;\n console.log(\"Country: \" + country);\n movieInfo.push(\"\\nCountry: \" + country);\n \n //language\n const lang = response.data.Language;\n console.log(\"Language(s): \" + lang);\n movieInfo.push(\"\\nLanguage(s): \" + lang);\n \n //plot\n const plot = response.data.Plot;\n console.log(\"Plot: \" + plot);\n movieInfo.push(\"\\nPlot: \" + plot);\n \n //actors\n const actors = response.data.Actors\n console.log(\"Actors: \" + actors);\n movieInfo.push(\"\\nActors: \" + actors);\n\n movieInfo = movieInfo.join().replace(/,/g,\" \")\n\n //BONUS: Append the above data to file log.txt\n fs.appendFileSync(\"log.txt\", \"\\nMOVIE INFO:\"+movieInfo+\"\\n\", \"utf8\");\n console.log(\"-------------------------\");\n console.log(\"Results Saved to log.txt\");\n console.log(\"-------------------------\");\n })\n .catch(function(error) {\n if (error.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n console.log(\"---------------Data---------------\");\n console.log(error.response.data);\n console.log(\"---------------Status---------------\");\n console.log(error.response.status);\n console.log(\"---------------Status---------------\");\n console.log(error.response.headers);\n } else if (error.request) {\n // The request was made but no response was received\n // `error.request` is an object that comes back with details pertaining to the error that occurred.\n console.log(error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log(\"Error\", error.message);\n }\n console.log(error.config);\n });\n}", "title": "" }, { "docid": "94b1164ec5a2f3c101476b4e7e302044", "score": "0.6901215", "text": "async function movieData(url) {\n let urlNow = await fetch(url);\n let moviesresponse = await urlNow.json();\n let moviesResults = moviesresponse.results;\n showMovies(moviesResults);\n}", "title": "" }, { "docid": "17a78bffe3bb69747c122499ba6d5e39", "score": "0.6896609", "text": "function movieThis() {\n\n// all arguments in array stored to variable\nvar nodeArgs = process.argv;\n\nvar movieName = \"\";\n\n// empty variable for holding entered movie name\nfor (var i = 3; i < nodeArgs.length; i++) {\n \n if (i > 3 && i < nodeArgs.length) {\n\n movieName = movieName + \"+\" + nodeArgs[i];\n\n } else {\n\n movieName += nodeArgs[i];\n }\n}\n\n\n// communication with OMDB API\nvar queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\"\n\nrequest(queryUrl, function(error, response, body) {\n\n if(!error && response.statusCode === 200) {\n\n // Title of the movie. \n console.log(\"Title: \" + JSON.parse(body).Title);\n\n // Year the movie was released. \n console.log(\"Year Released: \" + JSON.parse(body).Year);\n\n // IMDB Rating of the movie.\n console.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n\n // Rotten Tomatoes Rating of the movie. \n console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n\n // Country where the movie was produced.\n console.log(\"Country where produced: \" + JSON.parse(body).Country); \n\n // Language of the movie.\n console.log(\"Language: \" + JSON.parse(body).Language); \n\n // Plot of the movie\n console.log(\"Plot: \" + JSON.parse(body).Plot); \n \n // Actors in the movie\n console.log(\"Actors: \" + JSON.parse(body).Actors); \n // console.log(JSON.parse(body)); \n }\n})\n}", "title": "" } ]
c23fe5a343bb1a9b4812cc819781b366
Removes a query parameter
[ { "docid": "b7ee46725bc56b2590113f31cc482372", "score": "0.68828946", "text": "function removeParam(key, sourceURL) {\n let rtn = sourceURL.split(\"?\")[0],\n param,\n params_arr = [],\n queryString = (sourceURL.indexOf(\"?\") !== -1) ? sourceURL.split(\"?\")[1] : \"\";\n if (queryString !== \"\") {\n params_arr = queryString.split(\"&\");\n for (var i = params_arr.length - 1; i >= 0; i -= 1) {\n param = params_arr[i].split(\"=\")[0];\n if (param === key) {\n params_arr.splice(i, 1);\n }\n }\n rtn = rtn + \"?\" + params_arr.join(\"&\");\n }\n return rtn;\n}", "title": "" } ]
[ { "docid": "330e750f45656dfc54b689b83d222e1b", "score": "0.7498767", "text": "function removeQueryParameter(_url, parameter) {\n const parsed = url.parse(_url, true, true)\n\n if (parameter in parsed.query) {\n delete parsed.search\n delete parsed.query[parameter]\n }\n\n return url.format(parsed)\n}", "title": "" }, { "docid": "df87780c3a7b6246c2b7c70a8596d59e", "score": "0.7388574", "text": "function remove_param(name) {\n var params = get_params();\n var index = params.search('&' + name + '=');\n if (index === -1) {\n return;\n }\n var start = index + ('&' + name + '=').length;\n var end_index = params.substr(start).search('&');\n if (end_index < 0) {\n params = params.substr(0, index);\n } else {\n params = params.substr(0, index) + params.substr(start + end_index);\n }\n set_cookie('params', params);\n}", "title": "" }, { "docid": "32a9d7344e767a2f96c32eaaea3e4307", "score": "0.70155984", "text": "function removeParam(url, attr) { // Wrapper function (has verb/noun naming)\n return paramRemove(url, attr);\n}", "title": "" }, { "docid": "2f1158315f097bce8e9a8a9bd4942332", "score": "0.70027006", "text": "function remove_query_arg(key, sourceURL) {\r\n\r\n var rtn = sourceURL.split(\"?\")[0],\r\n param,\r\n params_arr = [],\r\n queryString = (sourceURL.indexOf(\"?\") !== -1) ? sourceURL.split(\"?\")[1] : \"\";\r\n\r\n if (queryString !== \"\") {\r\n params_arr = queryString.split(\"&\");\r\n for (var i = params_arr.length - 1; i >= 0; i -= 1) {\r\n param = params_arr[i].split(\"=\")[0];\r\n if (param === key) {\r\n params_arr.splice(i, 1);\r\n }\r\n }\r\n\r\n rtn = rtn + \"?\" + params_arr.join(\"&\");\r\n\r\n }\r\n\r\n if (rtn.split(\"?\")[1] == \"\") {\r\n rtn = rtn.split(\"?\")[0];\r\n }\r\n\r\n return rtn;\r\n }", "title": "" }, { "docid": "92ae04e17068c9b54ea43690013509aa", "score": "0.6942631", "text": "function removeParam() {\n window.history.pushState({}, document.title, \"/trade\");\n }", "title": "" }, { "docid": "d5f924cf9e8e84ab701e088f88e245dd", "score": "0.6917801", "text": "function removeQueryStringParm(parm, saveStateInd) {\r\n\r\n var parms = [];\r\n if (typeof parm === \"string\") {\r\n parms.push(parm);\r\n } else {\r\n parms = parm;\r\n }\r\n var qs = convertQueryStringToObj();\r\n $.each(parms, function(i, item) {\r\n delete qs[item];\r\n });\r\n \r\n var newqs = convertObjToQueryString(qs);\r\n if (saveStateInd) {\r\n var currURL = window.location.protocol + \"//\" + window.location.host + window.location.pathname + newqs;\r\n if (history.pushState) {\r\n history.pushState({}, \"ignored title\", currURL); \r\n }\r\n }\r\n\r\n return ;\r\n}", "title": "" }, { "docid": "370a6d17318cf7a2422871e956018c2b", "score": "0.6878782", "text": "function removeParam(param) {\n param.parentNode.remove();\n paramNum--;\n filterProjects();\n}", "title": "" }, { "docid": "48fc65dcdda7a52beb91118fd42d883c", "score": "0.6869348", "text": "function delete_param(category, value){\n let params = deserialize_params(); //invokes the deserialize function again to get params because objects can't be passed to this via HTML\n let newparams = params[category]; //look at only array of params of same type (q, a, or n)\n newparams.splice(value,1); //remove param to be deleted\n params[category] = newparams;\n serialize_params(params); //serialize params with changes\n}", "title": "" }, { "docid": "c08c1a2d8418a9c805cc4af96c81ed16", "score": "0.6848668", "text": "function removeURLParameter(url, parameter) { //prefer to use l.search if you have a location/link object\n var urlparts = url.split('?');\n if (urlparts.length >= 2) {\n\n var prefix = encodeURIComponent(parameter) + '=';\n var pars = urlparts[1].split(/[&;]/g);\n\n //reverse iteration as may be destructive\n for (var i = pars.length; i-- > 0; ) {\n //idiom for string.startsWith\n if (pars[i].lastIndexOf(prefix, 0) !== -1) {\n pars.splice(i, 1);\n }\n }\n url = urlparts[0] + (pars.length > 0 ? '?' + pars.join('&') : \"\");\n return url;\n } else {\n return url;\n }\n}", "title": "" }, { "docid": "f00bd0b4feef64b26bba3334e7538445", "score": "0.68153596", "text": "function removeValueQuery(key, value) {\n\tarray = urlParams.getAll(key).filter((el) => el != value);\n\turlParams.delete(key);\n\tarray.forEach((el) => {\n\t\turlParams.append(key, el.replaceAll(' ', '-'));\n\t});\n}", "title": "" }, { "docid": "ede659bd2e8decba61a6d714fd338802", "score": "0.681403", "text": "removeAllURLQueryString() {\n delete this.urlObj.search;\n }", "title": "" }, { "docid": "35fe3db85a251358de9391acb67214c1", "score": "0.6793709", "text": "deleteURLQueryString(key) {\n const searchParams = new URL.URLSearchParams(this.urlObj.search);\n searchParams.delete(key);\n this.urlObj.search = searchParams.toString();\n }", "title": "" }, { "docid": "f06366deb8ef238ee6e62814e26e15ea", "score": "0.6774818", "text": "function removeParamInUrl(url, param){\n var indexOfParam = url.indexOf(\"?\" + param);\n indexOfParam = indexOfParam == -1? url.indexOf(\"&\" + param): indexOfParam;\n var indexOfAndSign = url.indexOf(\"&\", indexOfParam + 1);\n var urlBeforeParam = url.substr(0, indexOfParam);\n var urlAfterParamValue = indexOfAndSign == -1? \"\": url.substr(indexOfAndSign);\n return urlBeforeParam + urlAfterParamValue;\n}", "title": "" }, { "docid": "80026097956b38562dc7152bb55f52aa", "score": "0.67697257", "text": "function removeURLParameter(url, parameter) {\n\t //prefer to use l.search if you have a location/link object\n\t var urlparts= url.split('?'); \n\t if (urlparts.length>=2) {\n\n\t var prefix= encodeURIComponent(parameter)+'=';\n\t var pars= urlparts[1].split(/[&;]/g);\n\n\t //reverse iteration as may be destructive\n\t for (var i= pars.length; i-- > 0;) { \n\t //idiom for string.startsWith\n\t if (pars[i].lastIndexOf(prefix, 0) !== -1) { \n\t pars.splice(i, 1);\n\t }\n\t }\n\n\t url= urlparts[0] + (pars.length > 0 ? '?' + pars.join('&') : \"\");\n\t return url;\n\t } else {\n\t return url;\n\t }\n\t}", "title": "" }, { "docid": "055c750754ebaa33a5e0b122701c1d4c", "score": "0.67339903", "text": "function removeQS(url, parameter) {\n //prefer to use l.search if you have a location/link object\n var urlparts = url.split('?'); \n if (urlparts.length >= 2) {\n\n var prefix = encodeURIComponent(parameter)+'=';\n var pars = urlparts[1].split(/[&;]/g);\n //reverse iteration as may be destructive\n for (var i = pars.length; i-- > 0;) { \n //idiom for string.startsWith\n if (pars[i].lastIndexOf(prefix, 0) !== -1) { \n pars.splice(i, 1);\n }\n }\n url = urlparts[0]+'?'+pars.join('&');\n return url;\n } else {\n return url;\n }\n}", "title": "" }, { "docid": "5a012ee7ca9e20bf2e4772b12895f54f", "score": "0.6673006", "text": "function removeParamFromLocationHashParams(param) {\n const params = getLocationHashParams();\n delete params[param];\n setLocationHashParams(params);\n}", "title": "" }, { "docid": "497886d02a41ca9c12a1a5beb0b9886d", "score": "0.6613702", "text": "function removeParam(elem)\n{\n\telem.parentNode.remove();\n\tparamNum--;\n\tupdateParameterIDs();\n\tupdateParameterDisplay();\n\tupdateDateParameterDisplay();\n}", "title": "" }, { "docid": "2eaccca5fd93a0b56c8b680289532b4f", "score": "0.6549929", "text": "function delete2Params(param1, param2) {\n var searchParams = new URLSearchParams(url.search.slice(1))\n\n //delete the param\n searchParams.delete(param1)\n searchParams.delete(param2)\n\n //load up new url\n var newUrl = \"?\" + searchParams.toString()\n toNewURL(newUrl)\n }", "title": "" }, { "docid": "f3d86a4bb12c372689ccd53aafbda2db", "score": "0.64949405", "text": "removeQuery(url) {\n return url ? url.replace(/\\?.*$/, '') : '';\n }", "title": "" }, { "docid": "27b0b3156c760f60f480097a5f4a7023", "score": "0.63458925", "text": "deleteParams(filter){\n\n\t\tdelete this.attributes.params[filter];\n\n\t\tthis.sendParams();\n\n\t}", "title": "" }, { "docid": "dd4baf3cca6d360ac08d65b3d9fd6245", "score": "0.6343187", "text": "function remove(params) {\n \n}", "title": "" }, { "docid": "d5e9c0d23f0c889ed8074f9fbc312cf8", "score": "0.63372725", "text": "remove(id, params) {}", "title": "" }, { "docid": "6484017d48455e1f9711e6f7a99be810", "score": "0.63320094", "text": "removeParamFromURL(event) {\n if (this.props.showArticleFinder) { return; }\n const viewer = document.getElementsByClassName('article-viewer')[0];\n if (!viewer || event) {\n if (window.location.search) {\n window.history.replaceState(null, null, window.location.pathname);\n }\n }\n }", "title": "" }, { "docid": "1648069652269a5428e43cb03461e38c", "score": "0.6317154", "text": "function removeIDfromParamList(id, paramName){\n var searchParams = new URLSearchParams(url.search.slice(1))\n var paramValue = searchParams.get(paramName)\n var arrayOfIDs = JSON.parse(paramValue)\n var index = arrayOfIDs.indexOf(id)\n arrayOfIDs.splice(index, 1)\n \n if(arrayOfIDs.length != 0){\n setOrAppendParam(paramName, JSON.stringify(arrayOfIDs))\n }\n else deleteParam(paramName)\n }", "title": "" }, { "docid": "09caff68d038b3803cbe55717f97facb", "score": "0.62487674", "text": "clearQueryParams() {\n this.queryParams = {};\n }", "title": "" }, { "docid": "96d9a2829071b2aeaf8d0c68ff085145", "score": "0.6225618", "text": "function removeParamsFromUrl(paramKey) {\n\n\n var nextUrl = window.location.origin + window.location.pathname;\n\n var params = getUrlVars(); //Get all the query params as an ARRAY\n params[paramKey] = '';\n var size = Object.keys(params).length;\n var i = 0;\n if (size == 0) {\n window.location.href = window.location.origin + window.location.pathname;\n } else {\n nextUrl += '?'; // ? for started to attach the query string to url\n\n // This is for search,selection by any one of ways => BRAND or SEARCH Keyword\n if (paramKey == 'search' && params['brand'] != undefined) {\n params['brand'] = '';\n }\n if (paramKey == 'brand' && params['search'] != undefined) {\n params['search'] = '';\n }\n\n // Attach the query params to the nextURL \n $.each(params, function(key, value) {\n if (value != '') {\n if (i == size) {\n nextUrl += key + '=' + value;\n } else {\n nextUrl += key + '=' + value + '&';\n }\n }\n\n i++;\n });\n\n window.location.href = nextUrl;\n }\n}", "title": "" }, { "docid": "c8fad680bbc7b454a2cc28789ce5836f", "score": "0.6143892", "text": "function removeParam(paramObj) {\n vm.parametersList.deleteParameterItem(paramObj);\n $timeout(vm.validateNamesUnique);\n }", "title": "" }, { "docid": "3c3306394db0df4c1dd895e7474cd648", "score": "0.6127861", "text": "function removeUploadClientParam(name)\n{\n\tuploads.removeClientParam(name, value);\n}", "title": "" }, { "docid": "4e619ce4c0e79650fdfb748af634798f", "score": "0.6127271", "text": "function pff_removeURLParams( urlTmp ){\n\tvar firstQuesMark = urlTmp.indexOf('?');\n\t// On essai de retirer tous les param�tres URL \n\tif(firstQuesMark != -1){\n var tmp = urlTmp.substring(0,firstQuesMark );\n return tmp;\n\t}\n\treturn urlTmp;\n}", "title": "" }, { "docid": "d4c197df7b2371791dcf9260b2b1c589", "score": "0.606173", "text": "function clearUrlQuery() {\n if (window.location.search && window.history && window.history.pushState) {\n window.history.pushState({}, document.title, window.location.pathname);\n }\n}", "title": "" }, { "docid": "d82c225cab69a53b12f64324809683c5", "score": "0.59975326", "text": "removePathParameter(key) {\n if (key) {\n delete this.pathParams[key.toLowerCase()];\n }\n return this;\n }", "title": "" }, { "docid": "d17736275d88653f88cec5c817c64372", "score": "0.5947504", "text": "clearQueryString () {\n window.history.replaceState({}, null, this._getPathFromUrl())\n }", "title": "" }, { "docid": "666b51fec03bc731f2f3ef5aecfbb14e", "score": "0.5943526", "text": "function removeQuery(guid) {\n var xhttp = new XMLHttpRequest();\n\n xhttp.onreadystatechange = function () {\n if (this.readyState == 4 && this.status == 200) {\n location.reload();\n }\n };\n\n xhttp.open(\"POST\", \"removeQuery.php\", true);\n xhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n xhttp.send(\"guid=\" + guid);\n\n}", "title": "" }, { "docid": "d2cd1517859acf848979f81c2f824b37", "score": "0.5937224", "text": "function resetParam(name) {\n\t(0, _trackMap.deleteMarker)(params[name].name);\n\tparams[name] = {};\n\t(0, _submitButton.resetCalc)();\n}", "title": "" }, { "docid": "e3ad7d692aa80a1c1884de94ba6822ee", "score": "0.5936297", "text": "function noSWParam(url) {\n const url2 = new URL(url);\n if (url2.searchParams.has(CACHE_SEARCH_PARAM)) {\n url2.searchParams.delete(CACHE_SEARCH_PARAM);\n return url2.href;\n }\n return url;\n}", "title": "" }, { "docid": "6766d6296859f3c7a1b000147212db68", "score": "0.59211516", "text": "function removePath(url) {\r\n var arr = url.split('?');\r\n arr.pop();\r\n return( arr.join('/') );\r\n}", "title": "" }, { "docid": "463709def7144ea24d4a7e6c124be38d", "score": "0.5907795", "text": "function remove_domaine_param(id_domaine){\n\t// Mise a jour BDD\n\tvar xhr = new XMLHttpRequest();\n\txhr.open(\"DELETE\", \"/domaines/\"+id_domaine, false);\n\txhr.send();\n\t\n\tmaj_liste_domaines_param_after_edit();\n}", "title": "" }, { "docid": "797182a9a502b6a2936f9e2f1b796365", "score": "0.5881981", "text": "function clearQueryString() { // jshint ignore:line\n const newurl = window.location.protocol + \"//\" + window.location.host + window.location.pathname;\n window.history.pushState && window.history.pushState({\n path: newurl\n }, \"\", newurl);\n }", "title": "" }, { "docid": "fed1474bc0f04f663b0d7fe88ea52b89", "score": "0.5875978", "text": "function updateParam(name, value) {\n var newUrlHash = biomart.url.jsonify(location.href);\n if (value) biomart.params[name] = value;\n else delete biomart.params[name];\n _urlHash.query = $.param(biomart.params);\n newUrlHash.fragment = biomart.url.stringify(_urlHash);\n location = biomart.url.stringify(newUrlHash);\n }", "title": "" }, { "docid": "4db8ce4eb02c50463513c37352163410", "score": "0.5757726", "text": "function remove(element,event) {\n event.preventDefault();\n var href;\n if (window.location.search)\n {\n href = element.search.replace('?', '&');\n } else\n {\n href = element.search;\n }\n var url_string = window.location.href + href;\n var url = new URL(url_string);\n var path = url.searchParams.get('path');\n $.ajax({\n url:\"delete.php\",\n type:\"POST\",\n data: {path: path},\n success:function(response)\n {\n $('.cont').html(response);\n }\n })\n\n}", "title": "" }, { "docid": "f2d331379b3b7fd628291770f91d9fbe", "score": "0.5753913", "text": "function removeLayerParamElement(divNum) {\n var d = document.getElementById('mapParameters');\n var olddiv = document.getElementById(divNum);\n d.removeChild(olddiv);\n}", "title": "" }, { "docid": "693132c9dd39a16a78355d162d54b82f", "score": "0.5744069", "text": "function maskQueryStringInURL(url) {\n url = url || '';\n return url.replace(/\\?.*?$/, '');\n}", "title": "" }, { "docid": "368df17a49d8141dc29c7e4161c8c1c3", "score": "0.57432073", "text": "function removeDynamicParams(){\r\n $('.dynamic-parameter').remove()\r\n}", "title": "" }, { "docid": "8fbb55cbba6c50fa3de036ccb1355153", "score": "0.570235", "text": "function truncUrlFromParameter(page,param) {\r\n if (page.indexOf(\"?\"+param+\"=\") > 0) {\r\n page=page.substring(0,page.indexOf(\"?\"+param+\"=\"));\r\n } else if (page.indexOf(\"&\"+param+\"=\") > 0) {\r\n page=page.substring(0,page.indexOf(\"&\"+param+\"=\"));\r\n }\r\n return page;\r\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "4480825d74d7d85523b3207af7080be7", "score": "0.56623757", "text": "function stripPjaxParam(url) {\n return url\n .replace(/\\?_pjax=[^&]+&?/, '?')\n .replace(/_pjax=[^&]+&?/, '')\n .replace(/[\\?&]$/, '')\n}", "title": "" }, { "docid": "c99a46253afcea37ffb2360783f89a4e", "score": "0.5659888", "text": "function stripParam(s) {\n return s.replace(/^\\s*[\\'\"]?\\s*(.*?)\\s*[\\'\"]?\\s*$/, '$1');\n}", "title": "" }, { "docid": "46bb90bcd092deb7c7a7cf58c0eb5a36", "score": "0.565724", "text": "remove(input) {}", "title": "" }, { "docid": "af0b5ca83799acd2b89bb8c55abf3464", "score": "0.56411946", "text": "function getParameterByName(name) {\n return parseQS(getWindowLocation().search)[name] || '';\n}", "title": "" }, { "docid": "e4c6cfddd56b6800850cd3e898bc79e6", "score": "0.5629876", "text": "function jq_deparam_sub( is_fragment, url_or_params, coerce ) {\n if ( url_or_params === undefined || typeof url_or_params === 'boolean' ) {\n // url_or_params not specified.\n coerce = url_or_params;\n url_or_params = jq_param[ is_fragment ? str_fragment : str_querystring ]();\n } else {\n url_or_params = is_string( url_or_params )\n ? url_or_params.replace( is_fragment ? re_params_fragment : re_params_querystring, '' )\n : url_or_params;\n }\n \n return jq_deparam( url_or_params, coerce );\n }", "title": "" }, { "docid": "961429a32455d1c73102a9198fdf99d8", "score": "0.56051445", "text": "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '')\n return url.href.replace(/\\?($|#)/, '$1')\n }", "title": "" }, { "docid": "7ae4c91cb3dbb22bf70fb934c3c01dd2", "score": "0.5599103", "text": "function removeFacet(facetIdx) {\n\n var q = $.getQueryParam('q') ? $.getQueryParam('q') : SEARCH_CONF.query ; //$.query.get('q')[0];\n var fqList = $.getQueryParam('fq'); //$.query.get('fq');\n\n console.log('Remove facet.,...');\n console.log(facetIdx);\n console.log(fqList);\n\n var paramList = [];\n\n if (q != null) {\n paramList.push(\"q=\" + q);\n }\n\n fqList.splice(facetIdx,1);\n\n if (fqList != null && fqList.length > 0) {\n paramList.push(\"fq=\" + fqList.join(\"&fq=\"));\n //alert(\"pushing fq back on: \"+fqList);\n } else {\n // empty fq so redirect doesn't happen\n paramList.push(\"fq=\");\n }\n console.log(\"new URL: \" + window.location.pathname + '?' + paramList.join('&'));\n window.location.href = window.location.pathname + '?' + paramList.join('&');\n}", "title": "" }, { "docid": "b1cc9e9eb7a0f49dc82701ad193fc590", "score": "0.55812144", "text": "function stripUrlParams(url, paramsToStrip){\n var urlSplit = url.match(/^([\\w\\.]*\\??)([\\w\\W]*)$/);\n var urlHead = urlSplit[1];\n var queries = urlSplit[2];\n if (queries === \"\") return urlHead;\n if (typeof paramsToStrip === \"undefined\") {\n queries = queries.split(\"&\").uniqueQuery().join(\"&\");\n } else {\n queries = queries.split(\"&\").uniqueQuery(paramsToStrip).join(\"&\");\n }\n return urlHead + queries;\n}", "title": "" }, { "docid": "7dadfa15fda365a30eba9abc522e83af", "score": "0.5570474", "text": "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '')\n return url.href.replace(/\\?($|#)/, '$1')\n}", "title": "" }, { "docid": "7dadfa15fda365a30eba9abc522e83af", "score": "0.5570474", "text": "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '')\n return url.href.replace(/\\?($|#)/, '$1')\n}", "title": "" }, { "docid": "83a54cf8fe47ec5f15f921435ac1a581", "score": "0.5551891", "text": "makeQueryData () {\n\t\t// remove the parameter in question from the query data\n\t\tconst queryData = super.makeQueryData();\n\t\tdelete queryData[this.parameter];\n\t\treturn queryData;\n\t}", "title": "" }, { "docid": "96196f615711a59cc12f409d9433e82d", "score": "0.5551361", "text": "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '').replace(/^&/, '');\n return url.href.replace(/\\?($|#)/, '$1');\n }", "title": "" }, { "docid": "5b189b7a38533d20c15fbc70f94d1c99", "score": "0.5524505", "text": "function pathWithoutQueryParams(currentRoute) {\n const path = currentRoute.path.split('?');\n return path[0]\n }", "title": "" }, { "docid": "0539c9add24aeaa7923e50513e1b16fd", "score": "0.5521309", "text": "function removeTreeParamElement(divNum) {\n var d = document.getElementById('treeParameters');\n var olddiv = document.getElementById(divNum);\n d.removeChild(olddiv);\n}", "title": "" }, { "docid": "58340044d8663401a79770876ea375c3", "score": "0.5489175", "text": "delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }", "title": "" }, { "docid": "58340044d8663401a79770876ea375c3", "score": "0.5489175", "text": "delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }", "title": "" }, { "docid": "58340044d8663401a79770876ea375c3", "score": "0.5489175", "text": "delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }", "title": "" }, { "docid": "58340044d8663401a79770876ea375c3", "score": "0.5489175", "text": "delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }", "title": "" }, { "docid": "58340044d8663401a79770876ea375c3", "score": "0.5489175", "text": "delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }", "title": "" }, { "docid": "0569f0103efe26a80c691bf70bcaa31f", "score": "0.5485133", "text": "deleteQuery(query) {}", "title": "" }, { "docid": "84ddfeb1c2cbdfa095aeb42982f80ced", "score": "0.5473167", "text": "delete(param, value) {\n return this.clone({\n param,\n value,\n op: 'd'\n });\n }", "title": "" }, { "docid": "a8ccfe8dd36e4236cb63fff2fec5da31", "score": "0.5455101", "text": "function removeLayerLimitParamElement(divNum) {\n var d = document.getElementById('mapLimitParameters');\n var olddiv = document.getElementById(divNum);\n d.removeChild(olddiv);\n}", "title": "" }, { "docid": "a44c62dba41adc4edac798e157a1ca74", "score": "0.5427266", "text": "removeBook (req, res) {\n console.log(req.params)\n // get parameter values sent from front end\n booksRef.child(req.params['key']).remove()\n // must send some response back\n res.send(req.params['key'])\n res.end()\n }", "title": "" }, { "docid": "fabc1fc37de593841673d907afeaf716", "score": "0.54208827", "text": "remove(val) {\n\n }", "title": "" }, { "docid": "95f4ecefda16b87bd09c84159abeb9ad", "score": "0.5360915", "text": "function getQueryParam(name) {\n if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(window.location.search))\n return decodeURIComponent(name[1]);\n }", "title": "" }, { "docid": "dfde9f62641570794c5b7cd2751f0565", "score": "0.53593296", "text": "function removeFilter(URL, ID){ \n \n $.ajax(\n URL,\n {\n type: 'POST',\n dataType: 'json',\n data: { 'id':ID },\n beforeSend: function(){\n if(ID == null || ID.trim() === ''){\n return false;\n }\n },\n success: function(data){\n \n if(data.status == 'success'){ \n \n $('#all_filters').find(\"[value='\"+ID+\"']\").remove();\n clearFilters(); \n \n }\n \n showAlert(data.status, data.message); \n \n },\n error: function( jqXHR, textStatus, errorThrown){\n console.log(jqXHR);\n }\n }\n );\n \n \n}", "title": "" }, { "docid": "93e81bf3b39b6bea0b45622e17468f7e", "score": "0.5354333", "text": "function removeFilter(searchUri, key) {\n var uri = '?tags=';\n var filters = searchUri.replace(uri,\"\").split('+');\n var filterCounter = 0;\n\n filters.forEach(function(entry) {\n if(entry != key){\n if(!endsWith(uri,'=')){uri = uri + '+'}\n uri = uri + entry;\n filterCounter++;\n }\n });\n\n return filterCounter > 0 ? uri : '';\n}", "title": "" }, { "docid": "ffaef7092a4c60db26ad4d3f4cf25e62", "score": "0.5347176", "text": "function del (url, query, done) {\n req('DELETE', url, query, null, done);\n}", "title": "" }, { "docid": "66451ac69ea661fca693d9ef0d47a397", "score": "0.53355414", "text": "function removeCodecParam(sdp, codec, param) {\n var sdpLines = sdp.split('\\r\\n');\n\n var fmtpLineIndex = findFmtpLine(sdpLines, codec);\n if (fmtpLineIndex === null) {\n return sdp;\n }\n\n var map = parseFmtpLine(sdpLines[fmtpLineIndex]);\n delete map.params[param];\n\n var newLine = writeFmtpLine(map);\n if (newLine === null) {\n sdpLines.splice(fmtpLineIndex, 1);\n } else {\n sdpLines[fmtpLineIndex] = newLine;\n }\n\n sdp = sdpLines.join('\\r\\n');\n return sdp;\n }", "title": "" }, { "docid": "395c26a2143177d37d08bba125f26f68", "score": "0.53289497", "text": "function stripUrlParams(url, paramsToStrip){\n\n var arr = url.split(\"?\");\n\n if (arr[1]) {\n var params = arr[1].split(\"&\");\n\n //if there was params to remove then remove them\n if (paramsToStrip) {\n var paramsToStripObj = {};\n paramsToStrip.forEach(function (item) {\n paramsToStripObj[item] = true;\n });\n var filteredParamsOnce = params.filter(function (item) {\n if (!paramsToStripObj[item[0]]) {\n return item;\n }\n });\n params = filteredParamsOnce;\n }\n\n //now loop through and remove the duplicates\n var seen = {};\n var remDups = params.filter(function (item,i) {\n if (!seen[item[0]]) {\n seen[item[0]] = true;\n return item;\n }\n }).join(\"&\");\n\n return arr[0] + \"?\" + remDups;\n }\n\n return url;\n}", "title": "" }, { "docid": "b71b3a6eb8fa3e84bb7ac2fd7e18be5f", "score": "0.53237534", "text": "function removeTaxonParamElement(divNum) {\n var d = document.getElementById('taxParameters');\n var olddiv = document.getElementById(divNum);\n d.removeChild(olddiv);\n}", "title": "" }, { "docid": "c65bdf4110bae217464227db69177c58", "score": "0.5321728", "text": "removeRequest() {\n const requestData = Requests.findOne({ _id: FlowRouter.getParam('_id') });\n if (requestData) {\n const first = requestData.first;\n const last = requestData.last;\n const dorm = requestData.dorm;\n const room = requestData.room;\n const phone = requestData.phone;\n const requestedFoods = requestData.foodsRequested;\n const fulfilled = true;\n\n const updatedRequestData = { first, last, dorm, room, phone, requestedFoods, fulfilled };\n Requests.update(requestData._id, { $set: updatedRequestData });\n }\n }", "title": "" }, { "docid": "dd67b358408769bb3b858a4d24f95c50", "score": "0.53199977", "text": "function removeParameterRecursively(p, id) {\n \tif(!p.dict){\n \t\treturn -1;\n \t}\n var parameterList = p.dict.params;\n var parameterListNum = parameterList && parameterList.length ? parameterList.length : 0;\n \t\n\n for (var i = 0; i < parameterListNum; i++) {\n var parameter = parameterList[i];\n if (parameter.uniqueId == id) {\n parameterList.splice(i, 1);\n return 0;\n }\n if (removeParameterRecursively(parameter, id) === 0) {\n return 0;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "c97969dda0171c6005f2be527596f04d", "score": "0.5317753", "text": "function deleteSendValue() {\n var index = $('#server_param').prop('selectedIndex');\n\n if (index < 0) return;\n\n $('#server_param').children('option:eq(' + index +')').remove();\n if ($('#server_param').children().length == 0) return;\n\n var option = $('#server_param').children()[0];\n var values = JSON.parse(option.value);\n\n option.text = option.text.replace(/^(AND|と)\\s/, '');\n option.value = JSON.stringify(values);\n}", "title": "" }, { "docid": "efa925d674c77cbda7fdabe950747229", "score": "0.52993697", "text": "async remove (id, params) {\n return { id }\n }", "title": "" }, { "docid": "918a85af63980195da1cff9b406bf919", "score": "0.5293359", "text": "function getQueryParam(name) {\n name = name.replace(/[\\[]/, \"\\\\\\[\").replace(/[\\]]/, \"\\\\\\]\");\n var regexS = \"[\\\\?&]\" + name + \"=([^&#]*)\";\n var regex = new RegExp(regexS);\n var results = regex.exec(window.location.search);\n if(results == null)\n return \"\";\n else\n return decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n}", "title": "" }, { "docid": "ada6b3d98c6d3866fb6b97489e791f94", "score": "0.5281421", "text": "function removeCodecParam(sdp, codec, param) {\n const sdpLines = sdp.split('\\r\\n');\n\n const fmtpLineIndex = findFmtpLine(sdpLines, codec);\n if (fmtpLineIndex === null) {\n return sdp;\n }\n\n const map = parseFmtpLine(sdpLines[fmtpLineIndex]);\n delete map.params[param];\n\n const newLine = writeFmtpLine(map);\n if (newLine === null) {\n sdpLines.splice(fmtpLineIndex, 1);\n } else {\n sdpLines[fmtpLineIndex] = newLine;\n }\n\n sdp = sdpLines.join('\\r\\n');\n return sdp;\n}", "title": "" }, { "docid": "86783e28f1fdeedbfc9b5a5952e8a084", "score": "0.52704704", "text": "function deleteRouteFilter() {\n if ($scope.Route === \"\") {\n delete $scope.Route;\n }\n }", "title": "" }, { "docid": "e4a23094943e021a553dddd45bef309f", "score": "0.52693677", "text": "updateQueryParam(paramLayer, paramProperty) {\r\n // Get the layer name from the URL\r\n let queryString = `layer=${paramLayer}`;\r\n\r\n // Get the property name (if it exists) from the URL\r\n if (paramProperty) {\r\n queryString += `&property=${paramProperty}`;\r\n }\r\n\r\n // Construct the new URL from the query string\r\n let pageUrl = '?' + queryString;\r\n window.history.pushState('', '', pageUrl);\r\n\r\n // Update layer\r\n this.updateLayer(paramLayer, paramProperty);\r\n }", "title": "" }, { "docid": "2e6d1cdd7e80a5c03c08c95229bf94de", "score": "0.5267894", "text": "function unloadParams() {\r\n try {\r\n var cur_params = window.location.search.replace(/%20/g, \" \").split(\"?\").join(\"\").split(\",\");\r\n var cclParams = \"^MINE^\";\r\n \t// Get Application and Personnel details\r\n \t\tAjaxHandler.ajax_request({\r\n\t\t\t\trequest : {\r\n\t\t\t\t\ttype : \"XMLCCLREQUEST\",\r\n\t\t\t\t\ttarget : \"inn_mp_get_app_prsnl\",\r\n\t\t\t\t\tparameters : cclParams,\r\n\t\t\t\t\tsynchronous: true\r\n\t\t\t\t},\r\n\t\t\t\tresponse : {\r\n\t\t\t\t\ttype : \"JSON\",\r\n\t\t\t\t\ttarget : function(scriptResponse){\r\n\t\t\t\t\t\tvar recordData = scriptResponse.response.RECORD_DATA;\r\n\t\t\t\t\t\t// set criterion values if empty/not specified\r\n\t\t\t\t\t\tif(criterion.application_id == 0){\t\t\r\n\t\t\t\t \tcriterion.application_id = recordData.APPLICATION_NBR;\r\n\t\t\t\t }\r\n\t\t\t\t if(criterion.personnel_id == 0){\t\t\r\n\t\t\t\t \tcriterion.personnel_id = recordData.PERSONNEL_ID;\r\n\t\t\t\t }\r\n\t\t\t\t if(criterion.position_cd == 0){\t\t\t\t\t \t\r\n\t\t\t\t \tcriterion.position_cd = recordData.PERSONNEL_POSITION_CD;\r\n\t\t\t\t }\r\n \t\t\t\t// set criterion values based on parameters\r\n\t\t\t\t\t\tsetCriterion(cur_params);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n } catch (e) {\r\n errmsg(e.message, \"unloadParams()\");\r\n }\r\n }", "title": "" }, { "docid": "592273c7e59de3b1ac6953516949178c", "score": "0.5263555", "text": "function updateQueryStringParameter(key, value) {\n let uri = window.location.href;\n let re = new RegExp(\"([?&])\" + key + \"=.*?(&|$)\", \"i\");\n let separator = uri.indexOf('?') !== -1 ? \"&\" : \"?\";\n if (key === 'bldg') {\n uri = removeParam('flr', uri);\n }\n if (uri.match(re)) {\n window.location.href = uri.replace(re, '$1' + key + \"=\" + value + '$2');\n } else {\n window.location.href = uri + separator + key + \"=\" + value;\n }\n}", "title": "" }, { "docid": "2cf0cff46f0177e6d4ad65efe64f9df7", "score": "0.52514106", "text": "function updateUrlParam() {\n // Update url parameter\n window.history.replaceState(\n null,\n null,\n `?page=${page}&limit=${perPage}&past-events=${pastEvents}`\n ); // -> set url param\n}", "title": "" }, { "docid": "b087a998b76194e37723c9d04fba087d", "score": "0.5247916", "text": "_clearFilterInput() {\r\n const that = this;\r\n\r\n that._filterInfo.query = '';\r\n delete that._filterInfo.inputFilters;\r\n that.$.filterInput.value = '';\r\n }", "title": "" }, { "docid": "ecd5030f8f214a6c739e5cf1cad518a2", "score": "0.5245277", "text": "function yellQueryParam(url,name)\n{\n name = (''+name).replace(/[\\[]/,\"\\\\\\[\").replace(/[\\]]/,\"\\\\\\]\");\n var regexS = \"[\\\\?&]\"+name+\"=([^&#]*)\";\n var regex = new RegExp(regexS);\n var results = regex.exec(url);\n if (results == null)\n return \"\";\n else\n return results[1];\n}", "title": "" }, { "docid": "6a4365b394b7604a813615ea52319a6b", "score": "0.52297807", "text": "function removeParams(map, namesOfParamsToRemove) {\n for (var i in namesOfParamsToRemove) {\n delete map[namesOfParamsToRemove[i]];\n }\n\n return map;\n }", "title": "" }, { "docid": "50bda94b81446b8f8b5945e894f4afb6", "score": "0.52240413", "text": "getQueryParam(key) {\n return readQueryParam(this.win.location.href, key);\n }", "title": "" }, { "docid": "9640049902566117dec4949630ba9ca1", "score": "0.522342", "text": "function removeQuery(req, response) {\n\n\tconst id = req.body.id;\n\tlet email=req.body.queryEmail;\n\n\tif(id === undefined || email === undefined) {\n\t\treturn response.status(400).json({\n\t\t\tsuccess: false,\n\t\t\tmessage: \"Usage: queryEmail=queryEmail&id=queryId\"\n\t\t});\n\t}\n\temail = email.replace(/\\./g, ',');\n\tlet data={};\n\tconst email_child='queries/'+email;\n\n\tdb.child(email_child).child(id).update({\n\t\tstatus:false,\n\t})\n\t.then(() => {\n\t\treturn response.status(200).json({\n\t\t\tsuccess:true,\n\t\t\tmessage : \"query successfully deleted\"\n\t\t});\n\t})\n\t.catch(() => {\n\t\treturn response.status(500).json({\n\t\t\tsuccess: false,\n\t\t\tmessage: \"error updating query status\"\n\t\t})\n\t})\n}", "title": "" }, { "docid": "a88b8964f44b2e001b988d8fd457f42b", "score": "0.5221118", "text": "function getQueryStringParameterByName(name) {\n var results = null;\n if (name && name.replace) {\n name = name.replace(/[\\[]/, \"\\\\[\").replace(/[\\]]/, \"\\\\]\");\n var regex = new RegExp(\"[\\\\?&]\" + name + \"=([^&#]*)\"),\n results = regex.exec(window.location.search);\n }\n return results == null ? \"\" : decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n }", "title": "" }, { "docid": "4e0b542fa3ad9518385d43dd1e2b68b6", "score": "0.5214748", "text": "function getQueryParam(name) {\n name = name.replace(/[\\[]/, \"\\\\\\[\").replace(/[\\]]/, \"\\\\\\]\");\n var regex = new RegExp(\"[\\\\?&]\" + name + \"=([^&#]*)\");\n var results = regex.exec(location.search);\n return results === null ? null : decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n}", "title": "" }, { "docid": "564acedbbdcf33c99145d7e459b86a92", "score": "0.5205974", "text": "function getParam(name)\n{\n let start=location.search.indexOf(\"?\"+name+\"=\");\n if (start<0){\n start=location.search.indexOf(\"&\"+name+\"=\");\n }\n if (start<0){\n return '';\n }\n start += name.length+2;\n let end=location.search.indexOf(\"&\",start)-1;\n if (end<0){\n end=location.search.length;\n }\n let result='';\n for(let i=start;i<=end;i++) {\n let c=location.search.charAt(i);\n result=result+(c=='+'?' ':c);\n }\n return unescape(result);\n}", "title": "" }, { "docid": "2b95c9caf882288c8f14bb6f16d8e65d", "score": "0.52058965", "text": "_reset () {\n if (this._queryable || this.reset) {\n if (this.reset) {\n // If there's a reset method available, run that\n this.reset()\n } else {\n // If queryable, clear the query string\n window.history.replaceState({}, null, this._getPathFromUrl())\n // Reload the video\n window.location.reload()\n }\n }\n }", "title": "" } ]
76ac61a6d3650b6b605aa89a1bb6513a
Check if a string starts with $ or _
[ { "docid": "3144627539ec186f2a1f68364c107a98", "score": "0.0", "text": "function isReserved(str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F;\n}", "title": "" } ]
[ { "docid": "f6bd6ec8dfcd816282cf0b5617a4b9ce", "score": "0.7165343", "text": "function startsWith__(word) {\r\n return (word.charAt(0) == '__') ? true : false;\r\n}", "title": "" }, { "docid": "fca2dc57ced1452279d4c3c2bdbc358c", "score": "0.6214059", "text": "function checkUserName(str)\n{\n\tvar patt1=/\\W/g;\n\tif(str.match(patt1))\n\t{\n\t\tif(str.match(patt1)!='_')\n\t\t{\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}else{\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "2d58d4b8bbc817e168cdec6a6e1251db", "score": "0.61132354", "text": "function stringStartsWith(string, prefix) {\n return string.slice(0,prefix.length) == prefix;\n }", "title": "" }, { "docid": "78f8644b8936de80ee71e0eab63b44f5", "score": "0.6094362", "text": "function s(e){// $ (dollar) and _ (underscore)\n// A..Z\n// a..z\n// \\ (backslash)\nreturn 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||92===e||e>=128&&ot.NonAsciiIdentifierStart.test(String.fromCharCode(e))}", "title": "" }, { "docid": "0ee62426007d595200b71685ccdc2831", "score": "0.6080261", "text": "function string_starts_with(str, what) {\n\t\treturn (str.substr(0, what.length) === what) ? true : false;\n\t}", "title": "" }, { "docid": "0ee62426007d595200b71685ccdc2831", "score": "0.6080261", "text": "function string_starts_with(str, what) {\n\t\treturn (str.substr(0, what.length) === what) ? true : false;\n\t}", "title": "" }, { "docid": "d578d5c5afc600c1a2954a92659282e3", "score": "0.6060169", "text": "function startsWithoutDash (str) {\n return !startsWithDash(str);\n}", "title": "" }, { "docid": "7602e5260b86e0124f16e65c5a33cecb", "score": "0.60577387", "text": "function doesStringStartWith(s, prefix) {\n return s.substr(0, prefix.length) === prefix;\n}", "title": "" }, { "docid": "71a01a09bc1f68d3620c4b67896665e8", "score": "0.60565424", "text": "function CodelandUsernameValidation(str) {\n if\n (str.length >= 4 && str.length <= 25\n && str.length === 1 && str.match(/[a-z]/i)\n && str.value.match(/^[0-9a-zA-Z]+$/) // _\n && str.slice(-1) != str.endsWith(\"_\")) {\n console.log(true);\n } else {\n console.log(false);\n }\n}", "title": "" }, { "docid": "9fcc2609f5ad28309b109f81fe10b159", "score": "0.6051791", "text": "function startsWith(string, _char) {\n return string.charAt(0) === _char;\n}", "title": "" }, { "docid": "3a00e0154e65c302c97ce5e4e34b5428", "score": "0.59937793", "text": "function startsWithDash (str) {\n return str[0] === '-';\n}", "title": "" }, { "docid": "76326e7c1d58dbaff80106cbe0660e9e", "score": "0.59926087", "text": "function startsWith(str, word) {\n console.log(str);\n str = str.toUpperCase().trim();\n return str.lastIndexOf(word, 0) === 0;\n }", "title": "" }, { "docid": "351f2df93f3a6cd6a76f4a47427b3567", "score": "0.59815145", "text": "function startsWithS(str) { return str[0].toLowerCase() === 's'; }", "title": "" }, { "docid": "c45bc1c36a876c0c339c37a259c787a9", "score": "0.5961977", "text": "function validateUsername(string) {\n // 4 to 25 chars; alphanumeric and underscores; can't start with underscore\n const regexp = /^[^_\\W]\\w{3,24}$/;\n return regexp.test(string);\n}", "title": "" }, { "docid": "99c62a84e97dd72a4ad756636fe7134e", "score": "0.59599656", "text": "function exports(str, prefix) {\n\t return str.indexOf(prefix) === 0;\n\t }", "title": "" }, { "docid": "87b1d72e17ffdf44abe35dd076442dd3", "score": "0.5937266", "text": "function startsWith(string, prefix) {\n return string.slice(0, prefix.length) === prefix;\n}", "title": "" }, { "docid": "3dbeca5b0e0600cc6b491740faee4361", "score": "0.5909703", "text": "function isIdentifierStart(ch) {\n return (ch === '$') || (ch === '_') || (ch === '\\\\') ||\n (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||\n ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));\n }", "title": "" }, { "docid": "3dbeca5b0e0600cc6b491740faee4361", "score": "0.5909703", "text": "function isIdentifierStart(ch) {\n return (ch === '$') || (ch === '_') || (ch === '\\\\') ||\n (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||\n ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));\n }", "title": "" }, { "docid": "3dbeca5b0e0600cc6b491740faee4361", "score": "0.5909703", "text": "function isIdentifierStart(ch) {\n return (ch === '$') || (ch === '_') || (ch === '\\\\') ||\n (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||\n ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));\n }", "title": "" }, { "docid": "3dbeca5b0e0600cc6b491740faee4361", "score": "0.5909703", "text": "function isIdentifierStart(ch) {\n return (ch === '$') || (ch === '_') || (ch === '\\\\') ||\n (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||\n ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));\n }", "title": "" }, { "docid": "3dbeca5b0e0600cc6b491740faee4361", "score": "0.5909703", "text": "function isIdentifierStart(ch) {\n return (ch === '$') || (ch === '_') || (ch === '\\\\') ||\n (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||\n ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));\n }", "title": "" }, { "docid": "14280b64e6f46818665c996effc9b3f8", "score": "0.5903396", "text": "function isNameValid(name) {\n return /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name);\n }", "title": "" }, { "docid": "a6938df39132a3aeb6d81e5c9aaa9c18", "score": "0.589953", "text": "function isLetter(c)\n{\n if((/[a-zA-Z_]/).test(c)){\n return 1;\n } else {\n return 0;\n }\n}", "title": "" }, { "docid": "e5a3ad6db8c5d5d5709ba9e9e293d598", "score": "0.5892475", "text": "function stringStartsWith(str, prefix) {\n return str.charAt(0) == suffix;\n}", "title": "" }, { "docid": "2a3f603854d8106149fa077c95f914ed", "score": "0.5884171", "text": "function stringStartsWith(prefix) {\n var found = false;\n if (this.substr(0, prefix.length) == prefix) {\n found = true;\n }\n return found;\n }", "title": "" }, { "docid": "5eacada153b12feada1ff7b8b6e7bf49", "score": "0.5873446", "text": "function check_diyname(str)\n{\n\tvar rex=/^[-_+.<>&0-9a-zA-Z]{1,32}$/i;\n\n\tif(rex.test(str)) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "97ed33ad8672cc15d153773264a21692", "score": "0.5838052", "text": "startsWith(c){ return false }", "title": "" }, { "docid": "11a1d09f5ce9208165deb649dc7e70b5", "score": "0.58075297", "text": "function startsWith(str, prefix) {\n\t str = toString(str);\n\t prefix = toString(prefix);\n\n\t return str.indexOf(prefix) === 0;\n\t }", "title": "" }, { "docid": "d69d4aa31c44ec6830a825c50946545e", "score": "0.575626", "text": "checkLetter(letter) {\n if (this.phrase.split('').indexOf(letter) > -1) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "af5d80de1f63a6542e72efd0456148e6", "score": "0.57478845", "text": "function startsWithA(str) {\n if (str[0] === 'a') {\n return true\n } return false\n}", "title": "" }, { "docid": "6c756894f7d531a2a36f994ed7a78bbd", "score": "0.57476383", "text": "function startWith(str) {\r\n\t\tvar j = 0, count = str.length;\r\n\t\tfor(; j < count; j++) {\r\n\t\t\tif(tpl.charAt(i + j) !== str.charAt(j)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "afe46816f378d1ba68b5437125608423", "score": "0.5743324", "text": "function strStartsWith(input, match) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "afe46816f378d1ba68b5437125608423", "score": "0.5743324", "text": "function strStartsWith(input, match) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "fac26ef221499201d633aa5deaa64edf", "score": "0.57253087", "text": "function isAlphanum(c){\n\t\treturn ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') ||\n\t\t\t(c >= 'A' && c <= 'Z') || c == '_' || c == '$' || c == '\\\\' ||\n\t\t\tc.charCodeAt(0) > 126);\n\t}", "title": "" }, { "docid": "ad9f10ae3d765db28ec59154c1615429", "score": "0.5719976", "text": "function strStartsWith ( input, match ) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "ad9f10ae3d765db28ec59154c1615429", "score": "0.5719976", "text": "function strStartsWith ( input, match ) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "ad9f10ae3d765db28ec59154c1615429", "score": "0.5719976", "text": "function strStartsWith ( input, match ) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "ad9f10ae3d765db28ec59154c1615429", "score": "0.5719976", "text": "function strStartsWith ( input, match ) {\n\t\treturn input.substring(0, match.length) === match;\n\t}", "title": "" }, { "docid": "89d2fc50a42ae9a95d81d0b3ef4d4e30", "score": "0.57153094", "text": "function isAlphanumericDash(string) {\n return /^[a-zA-Z0-9-_]+$/.test(string);\n }", "title": "" }, { "docid": "6f0b0056af090e05a868d3df3edaa3ef", "score": "0.5704718", "text": "function variableName(name) {\r\n let result = /^[a-z^_]{1}[a-zA-Z0-9_]*$/.test(name);\r\n return result;\r\n }", "title": "" }, { "docid": "0311e2fa94b4d469f6fcc6adb5906635", "score": "0.5704041", "text": "function strStartsWith ( input, match ) {\n return input.substring(0, match.length) === match;\n }", "title": "" }, { "docid": "36c7e11e1568637e6f828d00f91d5631", "score": "0.5694883", "text": "function isCSSVariable(key) {\n return key.startsWith(\"--\");\n}", "title": "" }, { "docid": "36c7e11e1568637e6f828d00f91d5631", "score": "0.5694883", "text": "function isCSSVariable(key) {\n return key.startsWith(\"--\");\n}", "title": "" }, { "docid": "36c7e11e1568637e6f828d00f91d5631", "score": "0.5694883", "text": "function isCSSVariable(key) {\n return key.startsWith(\"--\");\n}", "title": "" }, { "docid": "2eecd056cb01e71a6d048bcabfc857ca", "score": "0.5689902", "text": "function looksLikeModifier(obj) {\n return !!Object.keys(obj || {}).find(function (key) {\n return key.substring(0, 1) === '$';\n });\n}", "title": "" }, { "docid": "1f56436f259dbe5b5ec1138b2c6fb82a", "score": "0.5687701", "text": "function checkUsernameChars(string) {\n var regex = /^[a-zA-Z0-9_.-]*$/;\n if (string.match(regex))\n return (1);\n else\n return (0);\n}", "title": "" }, { "docid": "cc3b2348cff1ac78c4ea819f8d5a897d", "score": "0.56852794", "text": "checkLetter(letter) {\n return this.phrase.search(letter) !== -1 ? true : false\n }", "title": "" }, { "docid": "6ba849dcaa70b82839f668dba16bf9ae", "score": "0.5676212", "text": "function strStartsWith(input, match) {\r\n return input.substring(0, match.length) === match;\r\n }", "title": "" }, { "docid": "041731d21b810fbf7299f1bee8132009", "score": "0.5661289", "text": "function isIdentifierStart(ch) {\n return ch === 0x24 || ch === 0x5F || // $ (dollar) and _ (underscore)\n ch >= 0x41 && ch <= 0x5A || // A..Z\n ch >= 0x61 && ch <= 0x7A || // a..z\n ch === 0x5C || // \\ (backslash)\n ch >= 0x80 && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch));\n }", "title": "" }, { "docid": "041731d21b810fbf7299f1bee8132009", "score": "0.5661289", "text": "function isIdentifierStart(ch) {\n return ch === 0x24 || ch === 0x5F || // $ (dollar) and _ (underscore)\n ch >= 0x41 && ch <= 0x5A || // A..Z\n ch >= 0x61 && ch <= 0x7A || // a..z\n ch === 0x5C || // \\ (backslash)\n ch >= 0x80 && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch));\n }", "title": "" }, { "docid": "4d2eab66d2ea0a42f5e6910772abff00", "score": "0.5658588", "text": "validatePath(path)\n {\n //TODO: check for $s in the middle of the path\n //TODO: check that path only contains alphanumeric characters except dots and $ at the beginning\n //TODO: format path here too? (lower case)\n\n //:^)\n return;\n }", "title": "" }, { "docid": "244ab0d474f5b433d321bd33063c0ee5", "score": "0.5649786", "text": "function containsOneSkippedLetter(str) {\n let matches = str.match(/([a-z])[a-z]\\1/);\n return !!matches;\n}", "title": "" }, { "docid": "aeba60252fe90205c69e6b3fcb1db55d", "score": "0.564875", "text": "function fieldMatch(fieldName){\n return (fieldName.indexOf(FIELD_PREFIX) == 0);\n}", "title": "" }, { "docid": "f5140a9ba2e8381eefb3f2fc69344d9e", "score": "0.5641021", "text": "function incorrectSeparateDelimiters(input)\n{\n\tif (input.length > 0 && input.indexOf('_') != -1)\n\t{\n\t\treturn true;\n\t}\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "28e9bd22bbe3ea3ef7096e0a733ce8af", "score": "0.56355006", "text": "function strStartsWith ( input, match ) {\nreturn input.substring(0, match.length) === match;\n}", "title": "" }, { "docid": "0fbca60c15d77ebee650a0c08eb951a7", "score": "0.5633984", "text": "function startsWith(src, str) {\n return src.slice(0, str.length) === str\n}", "title": "" }, { "docid": "0fbca60c15d77ebee650a0c08eb951a7", "score": "0.5633984", "text": "function startsWith(src, str) {\n return src.slice(0, str.length) === str\n}", "title": "" }, { "docid": "86622b981ca843d6637385c5799d28c8", "score": "0.56321895", "text": "function startsWith(cadena, str){\r\n if (cadena.length > 0\r\n \t\t&& cadena.length >= str.length\r\n \t\t&& cadena.substring(0, str.length) == str) {\r\n \t\t//&& cadena[0] == str) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "86622b981ca843d6637385c5799d28c8", "score": "0.56321895", "text": "function startsWith(cadena, str){\r\n if (cadena.length > 0\r\n \t\t&& cadena.length >= str.length\r\n \t\t&& cadena.substring(0, str.length) == str) {\r\n \t\t//&& cadena[0] == str) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "2dd8cc0e02ad5df823aa9f7411e64c77", "score": "0.56265175", "text": "function strStartsWith ( input, match ) {\n return input.substring(0, match.length) === match;\n }", "title": "" }, { "docid": "9cff68360886cdb3fad1bd41751d8985", "score": "0.56245124", "text": "function isIdentifierStart(ch) {\n return (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore)\n (ch >= 65 && ch <= 90) || // A..Z\n (ch >= 97 && ch <= 122); // a..z\n }", "title": "" }, { "docid": "9cff68360886cdb3fad1bd41751d8985", "score": "0.56245124", "text": "function isIdentifierStart(ch) {\n return (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore)\n (ch >= 65 && ch <= 90) || // A..Z\n (ch >= 97 && ch <= 122); // a..z\n }", "title": "" }, { "docid": "7f85d490c2e931aa27e938f74586b0c3", "score": "0.5621966", "text": "function isCSSVariable(key) {\n return key.startsWith(\"--\");\n}", "title": "" }, { "docid": "d4bc5220d6570d47e1b80c8808a059ad", "score": "0.5611948", "text": "function isIdentifierLeadChar(ch)\n{\n return isLetter(ch) || ch == '_';\n}", "title": "" }, { "docid": "c252fc971c6fa4c51173ab08e94d9731", "score": "0.56106114", "text": "function mixStart(str){\n\tif (str.match(/\\wix/)){\n \treturn true;\n }\n \telse {\n \treturn false;\n }\n}", "title": "" }, { "docid": "f02cc51fcac705f4769060870d8be880", "score": "0.559792", "text": "function strStartsWith(input, match) {\n return input.substring(0, match.length) === match;\n }", "title": "" }, { "docid": "f02cc51fcac705f4769060870d8be880", "score": "0.559792", "text": "function strStartsWith(input, match) {\n return input.substring(0, match.length) === match;\n }", "title": "" }, { "docid": "98d936a57a0f8cc493b339e6742ea521", "score": "0.55941564", "text": "function usernameIsValid(username) \n{\n return /^[0-9a-zA-Z_.-]+$/.test(username);\n}", "title": "" }, { "docid": "f7c3bf920072915c0ba39a10eb72ff4b", "score": "0.55921876", "text": "function isValidPackageName(name) {\n return name.match(/^[$A-Z_][0-9A-Z_$]*$/i);\n}", "title": "" }, { "docid": "550bef4005bda345e098cbde9f361717", "score": "0.558501", "text": "isHack (all, unprefixed) {\n let check = new RegExp(`(\\\\(|\\\\s)${utils.escapeRegexp(unprefixed)}:`);\n return !check.test(all)\n }", "title": "" }, { "docid": "597448b371df8f01342add5d0fb75b26", "score": "0.5583576", "text": "function usernameValidation(str) {\r\n const letters = /[A-Za-z]/g, regExp = /[A-Za-z0-9_]/g, regExp_ = /[^_]/g;\r\n if (4 < str.length < 25 && letters.test(str[0]) && regExp.test(str) && regExp_.test(str[str.length - 1]))\r\n return true;\r\n else return false\r\n}", "title": "" }, { "docid": "5722cd7ad9f85a4d88029d19a83d7087", "score": "0.5568517", "text": "function starts_with(haystack, needle) {\r\n return (needle === \"\" || stripos(haystack, needle) === 0);\r\n}", "title": "" }, { "docid": "41e8d7072d68497eac3c1bfd92507749", "score": "0.5566161", "text": "function starts(s, x) { return s.lastIndexOf(x, 0) == 0; }", "title": "" }, { "docid": "279684aa64f17bc86da7c4a129ce133a", "score": "0.55456084", "text": "function check_diyname(str)\n{\n\t// Allowed character must be any of [-_+.<>&0-9a-zA-Z],1 - 32 characters. \n\tvar rex=/^[-_+.<>&0-9a-zA-Z]{1,32}$/i;\n\tif(rex.test(str)) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "576dd37f5d85b401ad456afb0c2f2da0", "score": "0.55432683", "text": "function isIdentifierStart(ch) {\n return ch === 0x24 || ch === 0x5F || // $ (dollar) and _ (underscore)\n ch >= 0x41 && ch <= 0x5A || // A..Z\n ch >= 0x61 && ch <= 0x7A || // a..z\n ch === 0x5C || // \\ (backslash)\n ch >= 0x80 && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch));\n}", "title": "" }, { "docid": "955dda52d2da26c5f49d4f7f51c32b2e", "score": "0.5536877", "text": "checkLetter(letter) {\r\n return this.phrase.includes(letter) ? true : false;\r\n }", "title": "" }, { "docid": "d90c4065ef2b2bb62fee686c8875f5c3", "score": "0.5533385", "text": "function isMongoOperator(key) {\n return key.match(/^\\$/)\n }", "title": "" }, { "docid": "8b30da810d04340f703844e92887412a", "score": "0.55282855", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "8b30da810d04340f703844e92887412a", "score": "0.55282855", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "22b2ab08c73876a0789a0adddfe329be", "score": "0.5517903", "text": "function isIdentifierStart(ch) {\n\t return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n\t (ch >= 0x41 && ch <= 0x5A) || // A..Z\n\t (ch >= 0x61 && ch <= 0x7A) || // a..z\n\t (ch === 0x5C) || // \\ (backslash)\n\t ((ch >= 0x80) && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n\t}", "title": "" }, { "docid": "bd77480eb39d4a723294be5977129257", "score": "0.55132204", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "bd77480eb39d4a723294be5977129257", "score": "0.55132204", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "d5b60391c7b7a24202e3356729aa5968", "score": "0.5489758", "text": "function doubleLetterChecker(line) {\n if ((/([a-z])\\1/i).test(line)) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "ae4f415756d659df5daea5fae4aba79e", "score": "0.5469252", "text": "function starts(s, x) {\n return s.lastIndexOf(x, 0) == 0;\n}", "title": "" }, { "docid": "f616f87bb510c4a25382ddc30eb5e328", "score": "0.5467454", "text": "function startsWithZ(name) {\n return name[0] == \"Z\";\n}", "title": "" }, { "docid": "015126158f96acaf502440dda6f2c3de", "score": "0.5465604", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n}", "title": "" }, { "docid": "015126158f96acaf502440dda6f2c3de", "score": "0.5465604", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n}", "title": "" }, { "docid": "48eece83adeafedd0bc008111fb4ab0b", "score": "0.54652375", "text": "function isIdentifierStart(ch) {\n\t return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n\t (ch >= 0x41 && ch <= 0x5A) || // A..Z\n\t (ch >= 0x61 && ch <= 0x7A) || // a..z\n\t (ch === 0x5C) || // \\ (backslash)\n\t ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n\t }", "title": "" }, { "docid": "41d2c30ba8127e4e184aa4ec9ab2f95f", "score": "0.5458413", "text": "function isSpecial(character) {\n return required().indexOf(character) >= 0;\n}", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "913c8162ab6152bad4d373efa3abe59c", "score": "0.5454557", "text": "function isIdentifierStart(ch) {\n return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n (ch >= 0x41 && ch <= 0x5A) || // A..Z\n (ch >= 0x61 && ch <= 0x7A) || // a..z\n (ch === 0x5C) || // \\ (backslash)\n ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n }", "title": "" }, { "docid": "794bbbdcfcf0272c13e79e1b7ee3ef1b", "score": "0.5452127", "text": "function isIdentifierStart(ch) {\n\t\t\t\t\t\t\t\t return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)\n\t\t\t\t\t\t\t\t (ch >= 0x41 && ch <= 0x5A) || // A..Z\n\t\t\t\t\t\t\t\t (ch >= 0x61 && ch <= 0x7A) || // a..z\n\t\t\t\t\t\t\t\t (ch === 0x5C) || // \\ (backslash)\n\t\t\t\t\t\t\t\t ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n\t\t\t\t\t\t\t\t }", "title": "" }, { "docid": "6b744854bc7c867eac899a7a2c9e52a2", "score": "0.54435664", "text": "IsLetter(str) {\n return /^[a-zA-Z]/.test(`${str}`);\n }", "title": "" }, { "docid": "84dc979dea9703f972e35c549867f625", "score": "0.543588", "text": "function testInputText(input) {\n var reg = new RegExp('^[a-zA-z-]*$', 'gi');\n return check(input, reg);\n }", "title": "" } ]
d41ea0d58b908fffe4e534364f736db0
TODO: sleet, wind, fog
[ { "docid": "e714d5eff0dfa94ce7dd487ff16a7ee2", "score": "0.0", "text": "function App() {\n const [currentWeather, setCurrentWeather] = useState(null);\n const [location, setLocation] = useState(null);\n const [weatherData, setWeatherData] = useState([]);\n\n useEffect(() => {\n switch (currentWeather) {\n case null:\n document.body.style.backgroundImage = `url(${mtnImg})`;\n break;\n case 'clear-night':\n document.body.style.backgroundImage = `url(${nightImg})`;\n break;\n case 'partly-cloudy-night':\n document.body.style.backgroundImage = `url(${partlyCloudyNightImg})`;\n break;\n case 'cloudy':\n document.body.style.backgroundImage = `url(${darkCloudsImg})`;\n break;\n case 'fog':\n document.body.style.backgroundImage = `url(${fogImg})`;\n break;\n case 'partly-cloudy-day':\n document.body.style.backgroundImage = `url(${cloudsImg})`;\n break;\n case 'rain':\n case 'sleet':\n document.body.style.backgroundImage = `url(${rainyImg})`;\n break;\n case 'snow':\n document.body.style.backgroundImage = `url(${snowyImg})`;\n break;\n case 'wind':\n document.body.style.backgroundImage = `url(${windyImg})`;\n break;\n default:\n document.body.style.background = 'linear-gradient(to bottom, #1b62dd 0%, #fff 100%) fixed';\n }\n document.body.style.backgroundAttachment = 'fixed';\n document.body.style.backgroundSize = 'cover';\n document.body.style.backgroundRepeat = 'no-repeat';\n });\n\n const getCurrentPosition = (options =\n { timeout: 10000, maximumAge: 3600000 }) => new Promise((resolve, reject) => {\n navigator.geolocation.getCurrentPosition(resolve, reject, options);\n });\n\n const getWeatherData = async (coords) => {\n try {\n const data = await axios.post('/api/weather', {\n lat: coords.lat,\n lng: coords.lng,\n });\n setCurrentWeather(data.data.currently.icon);\n setWeatherData(data.data);\n } catch (e) {\n console.log(e);\n }\n };\n\n const getLocationName = async (coords) => {\n try {\n const data = await axios.post('/api/google/location', {\n lat: coords.lat,\n lng: coords.lng,\n });\n setLocation(data.data);\n } catch (e) {\n console.log(e);\n }\n };\n\n const getPlace = async (input) => {\n try {\n const place = await axios.post('api/google/info', { input });\n const coords = await axios.post('api/google/coords', { placeid: place.data });\n getWeatherData({\n lat: coords.data.result.geometry.location.lat,\n lng: coords.data.result.geometry.location.lng,\n });\n getLocationName({\n lat: coords.data.result.geometry.location.lat,\n lng: coords.data.result.geometry.location.lng,\n });\n } catch (e) {\n console.log(e);\n }\n };\n\n const loadPosition = async () => {\n try {\n const position = await getCurrentPosition();\n getWeatherData({ lat: position.coords.latitude, lng: position.coords.longitude });\n getLocationName({ lat: position.coords.latitude, lng: position.coords.longitude });\n } catch (err) {\n // if user does not allow location tracking, default to vancouver\n if (err.code === 1 || err.code === 3) {\n getWeatherData({ lat: 49.2827, lng: -123.1207 });\n getLocationName({ lat: 49.2827, lng: -123.1207 });\n }\n console.log('failed to get position.', err);\n }\n };\n\n return (\n <AppContainer>\n {!currentWeather\n ? (\n <div>\n {renderPartlyCloudy()}\n <Title>Weatherology</Title>\n </div>\n )\n : null}\n {currentWeather === 'sleet' && renderSleet()}\n {currentWeather === 'clear-day' && renderSunny()}\n {currentWeather === 'partly-cloudy-day' && renderPartlyCloudy()}\n {currentWeather === 'partly-cloudy-night' && renderPartlyCloudy()}\n {currentWeather === 'cloudy' && renderCloudy()}\n {currentWeather === 'snow' && renderSnowy()}\n {currentWeather === 'rain' && renderRainy()}\n <SearchBar\n getPlace={getPlace}\n loadPosition={loadPosition}\n />\n {location\n && (\n <LocationName\n icon={currentWeather}\n >\n {location}\n </LocationName>\n )\n }\n <Card weatherData={weatherData} />\n </AppContainer>\n );\n}", "title": "" } ]
[ { "docid": "0207ed50ddaf87a64b16c864889e929a", "score": "0.6383633", "text": "function FigZD(){}", "title": "" }, { "docid": "b0613a0c21231d9c7a8b9011fd354b63", "score": "0.5955515", "text": "function onUpdate(framework) {\n var feather = framework.scene.getObjectByName(\"feather\"); \n if (feather !== undefined) {\n // Simply flap wing\n var date = new Date();\n //feather.rotateZ(Math.sin(date.getTime() / 100) * 2 * Math.PI / 180); \n }\n \n var frequency = (1000-freq.Frequency);\n var amplitude = (10 - amp.Amplitude);\n var dance = d.Dance;\n var orient = o.Orient;\n var windsp = windspeed.WindSpeed;\n var scaleF = scale.ScaleFeathers;\n \n //flapping wings!!!\n for(var i = 1 ;i < 31; i++)\n {\n var date = new Date();\n var val_date = date.getTime();\n \n var base_f_ypos = 0;\n var top1_f_ypos = 0;\n var top2_f_ypos = 0;\n \n //base feathers----------------------------------------------------------\n //base feather\n var base_feather = framework.scene.getObjectByName(\"feather\" + i);\n if(base_feather !== undefined){ \n \n base_feather.position.y = base_feather.position.z * Math.sin(((base_feather.position.z * dance +val_date)/frequency) % 360) / amplitude;\n \n base_f_ypos = base_feather.position.y; \n //X orientation\n if(toggle === true){\n base_feather.rotateX(orient);\n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n base_feather.position.x = Math.sin( (base_feather.position.x * base_feather.position.z * val_date / 100) % 360) / (30-windsp);\n \n //feather size\n if(toggle1 === true){ \n base_feather.scale.set(scaleF, 1, 1);\n //base_feather.scale.addScalar(scaleF);\n }\n \n \n }\n \n //base feather1\n var base_feather1 = framework.scene.getObjectByName(\"feather\" + i + 30);\n if(base_feather1 !== undefined){ \n \n// base_feather1.position.y = -(base_feather1.position.z * Math.sin(((base_feather1.position.z * dance +val_date)/frequency) % 360) / amplitude);\n base_feather1.position.y = base_f_ypos;\n \n //X orientation\n if(toggle === true){\n base_feather1.rotateX(orient);\n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n base_feather1.position.x = Math.sin( (base_feather1.position.x * base_feather1.position.z * val_date / 100) % 360) / (30-windsp);\n \n //feather size\n if(toggle1 === true){\n base_feather1.scale.set(scaleF, 1, 1);\n } \n \n }\n \n \n \n //top1 feathers------------------------------------------------------------\n //top1 feathers\n var top1_feather = framework.scene.getObjectByName(\"feather\" + i + 60);\n if(top1_feather !== undefined){\n var date = new Date();\n \n top1_feather.position.y = top1_feather.position.z * Math.sin(((top1_feather.position.z * dance +val_date)/frequency) % 360) / amplitude;\n \n \n top1_f_ypos = top1_feather.position.y; \n //X orientation\n if(toggle === true){\n top1_feather.rotateX(orient); \n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n top1_feather.position.x = Math.sin( (top1_feather.position.x * top1_feather.position.z * val_date / 100) % 360) / (30 - windsp);\n \n //feather size\n if(toggle1 === true){\n top1_feather.scale.set(scaleF, 1, 1);\n }\n \n }\n \n //top1 feathers1\n var top1_feather1 = framework.scene.getObjectByName(\"feather\" + i + 90);\n if(top1_feather1 !== undefined){\n var date = new Date();\n \n// top1_feather1.position.y = -(top1_feather1.position.z * Math.sin(((top1_feather1.position.z * dance +val_date)/frequency) % 360) / amplitude);\n \n top1_feather1.position.y = top1_f_ypos;\n \n //X orientation\n if(toggle === true){\n top1_feather1.rotateX(orient); \n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n top1_feather1.position.x = Math.sin( (top1_feather1.position.x * top1_feather1.position.z * val_date / 100) % 360) / (30 - windsp);\n \n //feather size\n if(toggle1 === true){\n top1_feather1.scale.set(scaleF, 1, 1);\n }\n \n }\n \n \n //top2 feathers--------------------------------------------------------------------------\n //top2 feather\n var top2_feather = framework.scene.getObjectByName(\"feather\" + i + 120);\n if(top2_feather !== undefined){\n var date = new Date();\n \n top2_feather.position.y = top2_feather.position.z * Math.sin(((top2_feather.position.z * dance +val_date)/frequency) % 360) / amplitude;\n \n top2_f_ypos = top2_feather.position.y; \n \n //X orientation\n if(toggle === true){\n top2_feather.rotateX(orient); \n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n top2_feather.position.x = Math.sin( (top2_feather.position.x * top2_feather.position.z * val_date / 100) % 360) / (30 - windsp);\n \n //feather size\n if(toggle1 === true){\n top2_feather.scale.set(scaleF, 1, 1);\n }\n \n }\n \n //top2 feather1\n var top2_feather1 = framework.scene.getObjectByName(\"feather\" + i + 150);\n if(top2_feather1 !== undefined){\n var date = new Date();\n \n// top2_feather1.position.y = -(top2_feather1.position.z * Math.sin(((top2_feather1.position.z * dance +val_date)/frequency) % 360) / amplitude);\n \n top2_feather1.position.y = top2_f_ypos;\n \n //X orientation\n if(toggle === true){\n top2_feather1.rotateX(orient); \n }\n \n //wind effects\n //base_feather.rotateX(math.sin(val_date));\n top2_feather1.position.x = Math.sin( (top2_feather1.position.x * top2_feather1.position.z * val_date / 100) % 360) / (30 - windsp);\n \n //feather size\n if(toggle1 === true){\n top2_feather1.scale.set(scaleF, 1, 1);\n }\n \n }\n \n \n }\n toggle = false;\n toggle1 = false;\n}", "title": "" }, { "docid": "fef9b05b6068ada37950051a47fd7888", "score": "0.58805925", "text": "function grtown() {\n // make the world\n let world = new GrWorld({\n width:1000, height:600, // make the window reasonably large\n groundplanesize:40, // make the ground plane big enough for a world of stuff\n ambient:1\n });\n world.scene.background = new T.CubeTextureLoader()\n .setPath('./Textures/cityEnvMap/')\n .load([\n 'lmcity_ft.png', 'lmcity_bk.png',\n 'lmcity_up.png', 'lmcity_dn.png',\n 'lmcity_rt.png', 'lmcity_lf.png'\n ]);\n\n // put stuff into it - you probably want to take the example stuff out first\n\n\n /********************************************************************** */\n /** EXAMPLES - student should remove these and put their own things in */\n /***/\n // make two rows of houses, mainly to give something to look at\n // for(let i=-19; i<20; i+=5) {\n // world.add(new SimpleHouse({x:i, z:-12}));\n // world.add(new SimpleHouse({x:i, z: 12}));\n // }\n\n /** Race Track - with three things racing around */\n // let track = new CircularTrack();\n // let tc1 = new TrackCube(track);\n // let tc2 = new TrackCube(track);\n // let tc3 = new TrackCar(track);\n // // place things are different points on the track\n // tc2.u = 0.25;\n // tc3.u = 0.125;\n // // and make sure they are in the world\n // world.add(track);\n // world.add(tc1);\n // world.add(tc2);\n // world.add(tc3);\n\n // /** Helicopter - first make places for it to land*/\n // world.add(new Helipad(-15,0,0));\n // world.add(new Helipad(15,0,0));\n // world.add(new Helipad(0,0,-17));\n // world.add(new Helipad(0,0,17));\n // let copter = new Helicopter();\n // world.add(copter);\n // copter.getPads(world.objects);\n\n\n // Loading files\n // let loader = new T.OBJLoader();\n // /**@type{THREE.Object3D} */\n // let treeGroup;\n // loader.load(\"./Objects/tree.obj\", (tree) => {\n // treeGroup = tree;\n // world.scene.add(treeGroup);\n // });\n\n \n\n\n /** EXAMPLES - end - things after this should stay */\n /********************************************************************** */\n\n // Render to Textureing - billboard\n let cam2 = new T.PerspectiveCamera(22, world.renderer.domElement.width / world.renderer.domElement.height, 0.1, 2000);\n cam2.position.set(0, 30, 0);\n\n let bufferTexture = new T.WebGLRenderTarget(world.renderer.domElement.width, world.renderer.domElement.height, { minFilter: T.LinearFilter, magFilter: T.NearestFilter });\n let billboard_Geom = new T.PlaneGeometry(8, 4.5);\n let billboard_Material = new T.MeshStandardMaterial({ metalness: 0, map: bufferTexture.texture, side: T.DoubleSide})\n let billboard_Mesh = new T.Mesh(billboard_Geom, billboard_Material);\n billboard_Mesh.position.set(-22, 7, -8);\n billboard_Mesh.rotateY(Math.PI / 8)\n let billboard = new GrObject(\"billboard\", billboard_Mesh);\n let rod_Geom = new T.CylinderGeometry(0.5, 0.5, 10, 4, 10, false);\n let rod_Material = new T.MeshStandardMaterial({color:\"silver\"});\n let rod1 = new T.Mesh(rod_Geom, rod_Material);\n let rod2 = new T.Mesh(rod_Geom, rod_Material);\n billboard_Mesh.add(rod1, rod2);\n rod1.translateX(4.5);\n rod2.translateX(-4.5);\n rod1.translateY(-2);\n rod2.translateY(-2);\n let time = 0;\n billboard.advance = function(delta, timeOfDay){\n time += delta / 2000;\n cam2.position.x = 50 * Math.sin(Math.PI * time);\n cam2.position.z = 50 * Math.cos(Math.PI * time);\n cam2.lookAt(new T.Vector3(0, 0, 0));\n // cam2.rotateOnWorldAxis(new T.Vector3(0, 1, 0), performance.now() % 1200 * 0.0002);\n world.renderer.render(world.scene, cam2, bufferTexture);\n }\n world.add(billboard);\n\n // looping car & drone & all middle part\n let truck1 = new Truck({ x: 0, z: 10, size: 1 });\n world.add(truck1);\n world.add(new carTrack());\n let drone = new Drone();\n world.add(drone);\n world.add(new rain());\n let road1 = new Road(30);\n world.add(road1);\n let road2 = new Road(30, 0, Math.PI / 2, -0.1);\n world.add(road2);\n\n // Park part\n let carousel = new GrCarousel({ x: -10, z: 10, size: 1 });\n world.add(carousel);\n for (let i = 0; i < 2; i++){\n world.add(new Human(-15 - i * 4, 20 - i * 2, 10, 10));\n world.add(new Human(5 + i * 3,-1 + i * 2, 20, 40, true));\n }\n world.add(new Monument(-12, 25));\n\n let spinner = new GrSpinner({x: -15, y: 0, z: 15, size: 1});\n world.add(spinner);\n world.add(new GrColoredRoundabout({x:-18, z: 10}));\n \n // Construction part\n let forkLift = new GrForkLift({x: 10, y: 0, z: 10, size:1});\n world.add(forkLift);\n world.add(new Concrete(5, 10));\n world.add(new Concrete(7, 14));\n world.add(new Crane({ x: 10, y: 0, z: 20, size: 2 }));\n world.add(new Breaker({ x: 17, z: 20 }));\n world.add(new Building(26, 20));\n world.add(new SimpleHouse({ x: 25, z: 10 }));\n\n // Church part\n world.add(new flag());\n let church = new Church(-20, -20, Math.PI / 4);\n world.add(church);\n \n // Living area\n for (let i = 0; i < 2; i++){\n world.add(new House(11 + 10 * i, -7));\n world.add(new SimpleHouse({ x: 5 + 10 * i, z: -7 }));\n world.add(new House(11 + 10 * i, -15));\n world.add(new SimpleHouse({ x: 5 + 10 * i, z: -15 }));\n }\n world.add(new Building(10, -24));\n world.add(new Building(20, -24));\n \n // And trees\n for (let i = 1; i < 5; i++) {\n if (i % 2 == 1) {\n world.add(new Tree(-3, 3 + 5 * i));\n world.add(new Tree(-3, -3 - 5 * i));\n world.add(new Tree(-3 - 5 * i, 3));\n world.add(new Tree(-3 - 5 * i, -3));\n world.add(new Tree(3, 3 + 5 * i));\n world.add(new Tree(3, -3 - 5 * i));\n world.add(new Tree(3 + 5 * i, 3));\n world.add(new Tree(3 + 5 * i, -3));\n } else {\n world.add(new Tree(-3, 3 + 5 * i, 1.5));\n world.add(new Tree(-3, -3 - 5 * i, 1.5));\n world.add(new Tree(-3 - 5 * i, 3, 1.5));\n world.add(new Tree(-3 - 5 * i, -3, 1.5));\n world.add(new Tree(3, 3 + 5 * i, 1.5));\n world.add(new Tree(3, -3 - 5 * i, 1.5));\n world.add(new Tree(3 + 5 * i, 3, 1.5));\n world.add(new Tree(3 + 5 * i, -3, 1.5));\n }\n\n }\n \n // Advance parts\n // world.add(new ShinyMonument(-24, 14, world));\n world.add(new RadarMap(0, -28));\n\n // build and run the UI\n\n // only after all the objects exist can we build the UI\n // @ts-ignore // we're sticking a new thing into the world\n world.ui = new WorldUI(world);\n // now make it go!\n world.go();\n}", "title": "" }, { "docid": "3a4257469789da3235b3957a8f377750", "score": "0.5828586", "text": "function debug(images, index) {\n if(typeof(index) === 'string') {\n var i = ee.Image(images.filter(ee.Filter.eq('LANDSAT_SCENE_ID', index)).first())\n } else {\n var i = ee.Image(images.toList(1, index).get(0)) \n }\n \n Map.addLayer(i, {min:0.03, max:0.35, bands: ['swir1', 'nir', 'green']}, index.toString() + ' raw', false);\n\n // detect water using 2 methods (bad design :()\n var maskWaterOld = maskWater \n\n maskWater = maskWaterStatic\n var result = detectSurfaceWater(i)\n print(result)\n Map.addLayer(detectSurfaceWater(i), {}, index.toString() + ' water (static)', false)\n\n maskWater = maskWaterDynamic\n var result = detectSurfaceWater(i)\n print(result)\n Map.addLayer(detectSurfaceWater(i), {}, index.toString() + ' water (dynamic)', false)\n \n maskWater = maskWaterOld\n \n var snow = snowScore(i);\n Map.addLayer(snow.mask(snow), {palette:['000000', 'FFFF00'], min:0, max:1}, index.toString() + ' snow score', false);\n\n var clouds = cloudScore(i);\n Map.addLayer(clouds.mask(clouds), {palette:['000000', 'FF0000'], min:0, max:1}, index.toString() + ' cloud score', false);\n\n var vegetation = vegetationScore(i);\n Map.addLayer(vegetation.mask(vegetation), {palette:['000000', '00FF00'], min:0, max:1}, index.toString() + ' vegetation score', false);\n\n var combined = vegetationScore(i).max(snowScore(i)).max(cloudScore(i));\n Map.addLayer(combined.mask(combined), {palette:['000000', 'FFFFFF'], min:0, max:1}, index.toString() + ' combined noise score', false);\n\n // combine masks\n var mask = ee.ImageCollection(i.bandNames().map(function(b) { return i.select([b]).mask().rename('mask') })).product()\n \n Map.addLayer(mask.mask(mask), {}, 'mask', false)\n\n var hills = maskHills(dem)\n var slopes = slopeMask.not()\n\n\n // Decorrelation Stretch\n /*\n var region = ee.Geometry(Map.getBounds(true))\n Map.addLayer(dcs(i, region, 1000).select(['swir1', 'nir', 'green']), {}, index.toString() + ' DCS', false);\n */\n}", "title": "" }, { "docid": "0573e628ffdae29d50a7ca82446dd044", "score": "0.57007647", "text": "function SpotsHitDeclaration() {\n\tres1_Spot1 = new createjs.Shape();\n\tres1_Spot1R = new createjs.Shape();\n\tres1_Spot2 = new createjs.Shape();\n\tres2_Spot1 = new createjs.Shape();\n\tres2_Spot1B = new createjs.Shape();\n\tres2_Spot2 = new createjs.Shape();\n\tres2_Spot2B = new createjs.Shape();\n\tres3_Spot1 = new createjs.Shape();\n\tres3_Spot2 = new createjs.Shape();\n\tres3_Spot2R = new createjs.Shape();\n\tres4_Spot2 = new createjs.Shape();\n\tres4_Spot1 = new createjs.Shape();\n\tvolt_Bspot = new createjs.Shape();\n\tvolt_Rspot = new createjs.Shape();\n\tbatry_Rspot = new createjs.Shape();\n\tbatry_Bspot = new createjs.Shape();\n\tres1_Spot1A = new createjs.Shape();\n\tres1_Spot2A = new createjs.Shape();\n\tres1_Spot21A = new createjs.Shape();\n\tres2_Spot1A = new createjs.Shape();\n\tres2_Spot2A = new createjs.Shape();\n\tres2_Spot21A = new createjs.Shape();\n\tres3_Spot1A = new createjs.Shape();\n\tres3_Spot11A = new createjs.Shape();\n\tres3_Spot2A = new createjs.Shape();\n\tres4_Spot2A = new createjs.Shape();\n\tres4_Spot1A = new createjs.Shape();\n\tres4_Spot11A = new createjs.Shape();\n\tres4_Spot21A = new createjs.Shape();\n\tvarblres_spotL = new createjs.Shape();\n\tvarblres_spotR = new createjs.Shape();\n\tvarblres_res_spotL = new createjs.Shape();\n\tvarblres_res_spotR = new createjs.Shape();\n\tvarblres_res_spotL1 = new createjs.Shape();\n\tprobe_spot = new createjs.Shape();\n\tprobe_spotClip = new createjs.Shape();\n\ttrans_spotL = new createjs.Shape();\n\ttrans_spotR = new createjs.Shape();\n\tcoil_Lspot = new createjs.Shape();\n\tcoil_Rspot = new createjs.Shape();\n\tstage.update();\n}", "title": "" }, { "docid": "b10e45094d77adf2a41661f8dbe69248", "score": "0.5682751", "text": "constructor()\n { this.textures = { rgb : new Texture( \"assets/rgb.jpg\" ),\n earth : new Texture( \"assets/earth.gif\" ),\n grid : new Texture( \"assets/grid.png\" ),\n stars : new Texture( \"assets/stars.png\" ),\n text : new Texture( \"assets/text.png\" ),\n }\n this.shapes = { donut : new defs.Torus ( 15, 15, [[0,2],[0,1]] ),\n cone : new defs.Closed_Cone ( 4, 10, [[0,2],[0,1]] ),\n capped : new defs.Capped_Cylinder( 4, 12, [[0,2],[0,1]] ),\n ball : new defs.Subdivision_Sphere( 3, [[0,1],[0,1]] ),\n cube : new defs.Cube(),\n prism : new ( defs.Capped_Cylinder .prototype.make_flat_shaded_version() )( 10, 10, [[0,2],[0,1]] ),\n gem : new ( defs.Subdivision_Sphere.prototype.make_flat_shaded_version() )( 2 ),\n donut2 : new ( defs.Torus .prototype.make_flat_shaded_version() )( 20, 20, [[0,2],[0,1]] ),\n };\n }", "title": "" }, { "docid": "55f9b6e0c848fe7d839075cc84a05529", "score": "0.5679769", "text": "function fogOfWar(){\n\tpixels = []; \n\tvar x = 0, y = 0; //# Loop functions similar to createLevel();\n\tfor (var row = 0; row < 20; row++ ){ \n\t\tfor (var col = 0; col < 25 ; col++){ \n\t\t\tp = new Pixel(x, y);\n\t\t\t//# Check all pixels to see if they collide with player\n\t\t\tif (checkCollideWithFog(p)){\n\t\t\t\tp.visible = true; //# If yes, 32x32 pixel isn't blacked out.\n\t\t\t}\n\t\t\tpixels.push(p);\n\t\t\tx += 32;\n\t\t}\n\t\ty += 32; // Increase each row per iteration\n\t\tx = 0;\n\t}\n}", "title": "" }, { "docid": "9ab652cd328eeeefbabafce541558823", "score": "0.5679024", "text": "function Fhqwhgads() {}", "title": "" }, { "docid": "09e1f543c23dbdb952cae323508fc645", "score": "0.5672476", "text": "lightining() {\r\n\r\n\r\n }", "title": "" }, { "docid": "11f1b6a58f7a5c7e8d98ba420e4cc260", "score": "0.5660244", "text": "function grtown() {\n // make the world\n let world = new GrWorld({\n width:1000, height:600, // make the window reasonably large\n groundplanesize:20 // make the ground plane big enough for a world of stuff\n });\n\n // put stuff into it - you probably want to take the example stuff out first\n //world.add()\n /*\n \n world.add(new GrColoredRoundabout({x:-10,z:-4}));\n world.add(new GrAdvancedSwing({x:-10,z:4}));\n world.add(new GrCarousel({x:-14, z:0, size:0.5}));\n \n */\n //ROAD AND BUS SYSTEM\n world.add(new Road({x:0,z:16,l:40,w:2,a:0}));\n world.add(new Road({x:0,z:-16,l:40,w:2,a:0}));\n world.add(new Road({x:-16,z:0,l:40,w:2,a:Math.PI / 2}));\n world.add(new Road({x:-8,z:0,l:40,w:2,a:Math.PI / 2}));\n world.add(new Bus({x:20,z:-16,r:-Math.PI / 2,sp1:0.1,sp2:0.11,s:1.5}));\n world.add(new Bus({x:20,z:16,r:-Math.PI / 2,d:-1,sp1:0.133,sp2:0.108,s:1.5}));\n world.add(new Bus({x:-16,z:20,r:Math.PI,d:-1,sp1:0.133,sp2:0.02,s:1.5}));\n world.add(new Bus({x:-8,z:-20,r:0,d:-1,sp1:0.133,sp2:0.02,s:1.5}));\n //HOUSES and Trees\n world.add(new House3({x:-9,y:0.5,z:23,s:1.5,r:Math.PI/2}));\n world.add(new Tree({x:-10, y:-0.2,z:18,s:1.5,r:Math.PI/2,t:1}));\n world.add(new House3({x:-15,y:0.5,z:-23,s:1.5,r:-Math.PI/2}));\n world.add(new Tree({x:-14, y:-0.2,z:-18,s:1.5,r:Math.PI/2,t:2}));\n\n world.add(new Plane({y:30,z:-15,x:15,s:1}));\n world.add(new ShinySculpture(world, {x:2}));\n\n //CONSTRUCTIONSITE And MainStreet Houses\n world.add(new GrCrane({x:-13,z:8}));\n world.add(new GrExcavator({x:-10,z:2,size:0.8}));\n world.add(new House3({x:-16,y:0,z:16,s:1.5,r:0}));\n world.add(new Road({x:-11,z:5,l:4,w:4,a:0,c:\"#9B7653\"}));\n world.add(new House3({x:-16,y:0,z:1,s:1.5,r:0}));\n world.add(new House3({x:-16,y:0,z:-8,s:1.5,r:0}));\n world.add(new House2({x:-4.1,y:0,z:-0.8,s:2.5,r:0}));\n world.add(new Tree({x:-11, y:-0.2,z:0,s:1.5,r:Math.PI/2}));\n\n //Second Street\n world.add(new House3({x:-23,y:0.5,z:16,s:1.5,r:0}));\n \n world.add(new House3({x:-23,y:0.5,z:1,s:1.5,r:0}));\n world.add(new House3({x:-23,y:0.5,z:-8,s:1.5,r:0}));\n world.add(new House2({x:-11.1,y:0,z:-0.8,s:2.5,r:0}));\n world.add(new House2({x:-11.1,y:0,z:12.5,s:2.5,r:0}));\n world.add(new Tree({x:-18, y:-0.2,z:0,s:1.5,r:Math.PI/2}));\n\n //longer streets\n for(let i=-4; i<19; i+=5) {\n let rand = Math.floor(Math.random() * 5) + 1;\n // world.add(new House2({x:i, y:0,z:10,s:1.5,r:Math.PI/2}));\n //world.add(new House3({x:i - 5, y:0,z:20,s:1.5,r:Math.PI/2}));\n world.add(new Tree({x:i + 3.5, y:-0.2,z:-18,s:0.5,r:Math.PI/2,t:(rand + 1)}));\n world.add(new Tree({x:i + 3.5, y:-0.2,z:18,s:0.5,r:Math.PI/2,t:(rand - 1)}));\n world.add(new Tree({x:i + 3.5, y:-0.2,z:-14,s:0.5,r:Math.PI/2,t:(rand)}));\n world.add(new Tree({x:i + 3.5, y:-0.2,z:14,s:0.5,r:Math.PI/2,t:(rand)}));\n world.add(new SimpleHouse({x:i, z:-20}));\n world.add(new SimpleHouse({x:i, z: 17}));\n if(i % 2 == 1)\n {\n //world.add(new Person({x:i - 0.5,z:-18.5, s:0.5}));\n //world.add(new Person({x:i - 0.5 ,z:17.5, s:0.5, r:Math.PI}));\n }\n }\n\n //PARK\n world.add(new GrColoredRoundabout({x:10,z:6}));\n world.add(new GrColoredRoundabout({x:10,z:-6}));\n world.add(new GrAdvancedSwing({x:4,z:10}, Math.PI/2));\n world.add(new GrAdvancedSwing({x:0,z:10}, Math.PI/2));\n world.add(new GrAdvancedSwing({x:4,z:-10}, Math.PI/2));\n world.add(new GrAdvancedSwing({x:0,z:-10}, Math.PI/2));\n world.add(new GrCarousel({x:12, z:0, size:0.7}));\n \n\n //COPER\n world.add(new Helipad(-5.5,0,-18.5));\n world.add(new Helipad(-5.5,0,18.5));\n world.add(new Helipad(18,0,0));\n let copter = new Helicopter();\n world.add(copter);\n copter.getPads(world.objects);\n\n \n /********************************************************************** */\n /** EXAMPLES - student should remove these and put their own things in */\n /***/\n // make two rows of houses, mainly to give something to look at\n /*\n for(let i=-19; i<19; i+=5) {\n // world.add(new House2({x:i, y:0,z:10,s:1.5,r:Math.PI/2}));\n //world.add(new House3({x:i - 5, y:0,z:20,s:1.5,r:Math.PI/2}));\n world.add(new SimpleHouse({x:i, z:-12}));\n world.add(new SimpleHouse({x:i, z: 12}));\n }\n */\n\n /** Race Track - with three things racing around */\n let track = new CircularTrack({x:2});\n //let tc1 = new TrackCube(track);\n //let tc2 = new TrackCube(track);\n //let tc3 = new TrackCar(track);\n let tc4 = new TrackTrain(track, {r:-Math.PI/2,s:0.4});\n\n // place things are different points on the track\n //tc2.u = 0.25;\n //tc3.u = 0.125;\n tc4.u = 0.225;\n // and make sure they are in the world\n world.add(track);\n //world.add(tc1);\n //world.add(tc2);\n //world.add(tc3);\n world.add(tc4);\n\n /** Helicopter - first make places for it to land*/\n /*\n world.add(new Helipad(-15,0,0));\n world.add(new Helipad(15,0,0));\n world.add(new Helipad(0,0,-17));\n world.add(new Helipad(0,0,17));\n let copter = new Helicopter();\n world.add(copter);\n copter.getPads(world.objects);\n world.add(new Plane({y:30,z:-15,x:15,s:1,t:tc3}));\n \n \n // world.add(new House2({x:-10, y:0.5,z:10,s:2.0,r:Math.PI/2}));\n // world.add(new House3({x:0, y:.3,z:20,s:1.5,r:Math.PI/2}));\n world.add(new Tree({x:0, y:.3,z:20,s:1.5,r:Math.PI/2}));\n let tr = new Train({x:-4, y:0.5,z:0,s:0.5,r:Math.PI/2});\n world.add(tr);\n world.add(new MorphTest({x:10, y:3, r:2}));\n\n */\n\n /** EXAMPLES - end - things after this should stay */\n /********************************************************************** */\n var materials = [], parameters;\n var vertices = [];\n var geometry = new T.BufferGeometry();\n\t\t\t\tvar textureLoader = new T.TextureLoader();\n\t\t\t\tvar sprite1 = textureLoader.load( '/for_students/Images/snowflake1.png' );\n\t\t\t\tvar sprite2 = textureLoader.load( '/for_students/Images/snowflake2.png' );\n\t\t\t\tvar sprite3 = textureLoader.load( '/for_students/Images/snowflake3.png' );\n\t\t\t\tvar sprite4 = textureLoader.load( '/for_students/Images/snowflake4.png' );\n\t\t\t\tvar sprite5 = textureLoader.load( '/for_students/Images/snowflake5.png' );\n\t\t\t\tfor ( var i = 0; i < 10000; i ++ ) {\n\t\t\t\t\tvar x = Math.random() * 2000 - 1000;\n\t\t\t\t\tvar y = Math.random() * 2000 - 1000;\n\t\t\t\t\tvar z = Math.random() * 2000 - 1000;\n\t\t\t\t\tvertices.push( x, y, z );\n }\n \n\t\t\t\tgeometry.addAttribute( 'position', new T.Float32BufferAttribute( vertices, 3 ) );\n\t\t\t\tparameters = [\n\t\t\t\t\t[[ 1.0, 0.2, 0.5 ], sprite2, 20 ],\n\t\t\t\t\t[[ 0.95, 0.1, 0.5 ], sprite3, 15 ],\n\t\t\t\t\t[[ 0.90, 0.05, 0.5 ], sprite1, 10 ],\n\t\t\t\t\t[[ 0.85, 0, 0.5 ], sprite5, 8 ],\n\t\t\t\t\t[[ 0.80, 0, 0.5 ], sprite4, 5 ]\n ];\n \n\t\t\t\tfor (var i = 0; i < parameters.length; i ++ ) {\n\t\t\t\t\tvar color = parameters[i][ 0 ];\n\t\t\t\t\tvar sprite = parameters[ i ][ 1 ];\n\t\t\t\t\tvar size = parameters[ i ][ 2 ];\n\t\t\t\t\tmaterials[i] = new T.PointsMaterial( {size: size, map: sprite,blending: T.AdditiveBlending, depthTest: false, transparent: true } );\n materials[ i ].color.setHSL( color[ 0 ], color[ 1 ], color[ 2 ] );\n\t\t\t\t\tvar particles = new T.Points( geometry, materials[ i ] );\n\t\t\t\t\tparticles.rotation.x = Math.random() * 6;\n\t\t\t\t\tparticles.rotation.y = Math.random() * 6;\n\t\t\t\t\tparticles.rotation.z = Math.random() * 6;\n world.scene.add( particles );\n }\n\n // build and run the UI\n /* world.scene.background = new T.CubeTextureLoader().load( [\n '/for_students/Images/snowflake1.png', \n '/for_students/Images/snowflake1.png' ,\n '/for_students/Images/snowflake1.png' ,\n '/for_students/Images/snowflake1.png' ,\n '/for_students/Images/snowflake1.png' ,\n '/for_students/Images/snowflake1.png' ,\n '/for_students/Images/snowflake1.png' \n /*\n '/for_students//Images/hills_bk.png',\n '/for_students//Images//hills_up.png',\n '/for_students//Images//hills_ft.png',\n '/for_students//Images//hills_dn.png',\n '/for_students//Images//hills_rt.png',\n '/for_students//Images//hills_lf.png'\n */\n // ] );\n // only after all the objects exist can we build the UI\n // @ts-ignore // we're sticking a new thing into the world\n world.ui = new WorldUI(world);\n // now make it go!\n world.go();\n}", "title": "" }, { "docid": "067a860d682c9c38bc0ef40a77a2f073", "score": "0.56540525", "text": "function moveStars(){ // PENDIENTE\n\t\tvar i, magnitud;\n\t\t\n\t\tmagnitud = 0.000001*Math.random();\n\t\tfor(i=0; i<estrellas.length; i++){\n\t\t\testrellas[i].scale = magnitud;\n\t\t\tif (estrellas[i].isLensflare){\n\t\t\t\testrellas[i].scale = magnitud;\n\t\t\t\t// console.log(\"Lens flare\");\n\t\t\t}else{\n\t\t\t\testrellas[i].position.add(direcciones[i].clone().multiplyScalar(magnitud));\n\t\t\t\t// console.log(estrellas[i].type); \n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "57099668f6289c84d6bc9c1dbe2dbebd", "score": "0.561005", "text": "function sun(){\n texture(img2);\n\n translate(0, 0);\n sphere(100, 24, 20);\n \n}", "title": "" }, { "docid": "11b256f292f03bfb4d3e4b9705282d07", "score": "0.5606024", "text": "function glowingPlanet() {\n var img = document.querySelectorAll('.work_directions .wrapper .direction .direction_wrapper .service img'),\n planet = document.querySelectorAll('.work_directions .wrapper .direction .direction_wrapper .service .glowing');\n for (var i = 0; i < planet.length; i++) {\n planet[i].style.left = '5%';\n planet[i].style.top = img[i].offsetHeight / 4 + 'px';\n planet[i].style.width = '20%';\n planet[i].style.height = img[i].offsetHeight / 2 + 'px';\n }\n }", "title": "" }, { "docid": "8684b729041b53ae88a6a3a385da46c2", "score": "0.55899435", "text": "renderShadowmap(graphics_state, t) {\n \n //main cow shadow\n this.lights[0].renderDepthBuffer(graphics_state, () => {\n let m = Mat4.identity();\n m = this.get_cow_matrix(t).times(Mat4.scale(Vec.of(0.5, 0.5, 0.5))); \n this.draw_cow(graphics_state, m, true, false);\n });\n \n //static cow shadows\n for(var cow = 0; cow < this.cow_list.length; cow++)\n {\n var x = this.cow_list[cow][0];\n var y = this.cow_list[cow][1];\n var z = this.cow_list[cow][2];\n var y_angle = this.cow_list[cow][3];\n var scale = this.cow_list[cow][4];\n \n let m = Mat4.identity();\n\n var cur_m = m.times(Mat4.translation(Vec.of(x, y, z))).times(Mat4.rotation(y_angle, Vec.of(0,1,0))).times(Mat4.scale(scale, scale, scale));\n \n if (cow == this.cow_list.length - 1) {\n if (this.t > 51.5) {\n this.lights[0].renderDepthBuffer(graphics_state, () => { \n this.draw_cow(graphics_state, cur_m.times(Mat4.scale(Vec.of(Math.min(1.0, this.t - 51.5), Math.min(1.0, this.t - 51.5), Math.min(1.0, this.t - 51.5)))), false, false);\n });\n }\n } else {\n this.lights[0].renderDepthBuffer(graphics_state, () => { \n this.draw_cow(graphics_state, cur_m, true, false);\n });\n } \n } \n\n this.lights[0].renderDepthBuffer(graphics_state, () => {\n let m = Mat4.identity();\n m = this.get_ufo_matrix(t);\n this.draw_ufo(graphics_state, m, true, false);\n });\n\n this.lights[0].renderDepthBuffer(graphics_state, () => {\n let m = Mat4.identity();\n this.draw_barn(graphics_state, m, true); \n });\n }", "title": "" }, { "docid": "ed8a4a419003354f2c99d04abb1e669e", "score": "0.55802333", "text": "sense(food, verbose = false) {\n let sensorData = {};\n const maxStraightDist = width / tileSize;\n const maxDiagDist = Math.sqrt(Math.pow((width / tileSize),2) + Math.pow((height / tileSize), 2));\n // get the distances from dying in cardinal directions (8 directions)\n // get all of the inputs:\n // 1. distance to dying forward - normalized\n let realFDist = this.getNearestObstacleInDirection(this.direction);\n sensorData['f'] = map(realFDist, 1, maxStraightDist, 0, 1);\n // 2. distance to dying left\n let realLDist = this.getNearestObstacleInDirection(Direction[this.direction['l']]);\n sensorData['l'] = map(realLDist, 1, maxStraightDist, 0, 1);\n // 3. distance to dying right\n let realRDist = this.getNearestObstacleInDirection(Direction[this.direction['r']]);\n sensorData['r'] = map(realRDist, 1, maxStraightDist, 0, 1);\n // 4. distance to dying forward left\n // make F-left object\n\n let realFLDist = this.getNearestObstacleInDirection(this.addDirection(Direction[this.direction['l']]));\n sensorData['fl'] = map(realFLDist, 1, maxDiagDist, 0, 1);\n // 5. distance to dying forward right\n let realFRDist = this.getNearestObstacleInDirection(this.addDirection(Direction[this.direction['r']]));\n sensorData['fr'] = map(realFRDist, 1, maxDiagDist, 0, 1);\n // 6. x to food\n sensorData['foodX'] = map(food.location.x, 0, width / tileSize - 1, 0, 1);\n // // 7. y to food\n sensorData['foodY'] = map(food.location.y, 0, width / tileSize - 1, 0, 1);\n if (verbose) {\n console.log(sensorData);\n }\n return sensorData;\n }", "title": "" }, { "docid": "102863e98d17a3aca9a9a00703bbc5b1", "score": "0.55675197", "text": "start() {// 一上来就要生成10 个 Earth先!\n }", "title": "" }, { "docid": "d19fe545d6426edb69ceda13db48fe48", "score": "0.55375314", "text": "function DrawSnowflake() {\n let width = document.documentElement.clientWidth;\n //arvotaan x koordinaatti näytön leveydeltä\n let snowPosition = Math.floor(Math.random() * (width));\n //joka x kerta tehdään lumihuotale\n if(snowPosition % 20 == 0) {\n let snowflake = new Image();\n snowflake.setAttribute(\"alt\", \"snowflake\");\n snowflake.setAttribute(\"id\", \"snowflake\" + flakeCounter);\n snowflake.className = \"snowflake\";\n snowflake.setAttribute(\"class\", \"snowflake\");\n let body = document.getElementById(\"body\");\n snowflake.src = \"http://appro.mit.jyu.fi/tiea2120/vt/vt4/snowflake2.svg\";\n let flakeObj = {id: (\"snowflake\"+flakeCounter), x: snowPosition, y: 0};\n objFlakes.push(flakeObj);\n //hiutaleen x koordinaation asetus\n snowflake.style.left = snowPosition + \"px\";\n flakes.push(snowflake);\n let snowMulti = 1;\n \n \n body.appendChild(snowflake);\n flakeCounter++;\n }\n let currentTime = Date.now();\n for(let i = 0; i < objFlakes.length; i++) {\n //varmistetaan ettei kyseessä ole juuri luotu hiutale\n //if(objFlakes[i].id != \"snowflake\"+flakeCounter) {\n for(let u = 0; u < objFlakes.length; u++) {\n if(objFlakes[i].id != objFlakes[u].id && \n (objFlakes[i].x + 40 >= objFlakes[u].x && objFlakes[i].x < objFlakes[u].x) &&\n (objFlakes[i].y >= objFlakes[u].y - 30 && objFlakes[i].y < objFlakes[u].y) ||\n ((objFlakes[i].x == objFlakes[u].x) && (objFlakes[i].y >= objFlakes[u].y - 30 && objFlakes[i].y < objFlakes[u].y) && objFlakes[i].id != objFlakes[u].id)) {\n for(let f = 0; f < flakes.length; f++) {\n if(flakes[f].getAttribute(\"id\") == objFlakes[i].id) {\n flakes[f].style.animationPlayState = \"paused\";\n flakes.splice(f, 1);\n //objFlakes.splice(i, 1);\n }\n }\n }\n }\n // }\n }\n //joka kierros päivitetään hiutaleiden y\n for(let i = 0; i < objFlakes.length; i++) {\n if(objFlakes[i].y < window.innerHeight) {\n objFlakes[i].y += 5;\n }\n \n }\n window.requestAnimationFrame(DrawSnowflake);\n }", "title": "" }, { "docid": "738d6c6f5b0f59326b7f5977d3eadb48", "score": "0.5536636", "text": "loadPhaseThree() {\n //borders\n let caveWall = new CaveWall(this.game, 3500, -1000, 1, 2);\n this.game.addEntityP1(caveWall);\n caveWall = new CaveWall(this.game, 3500, -100, 1, 2);\n this.game.addEntityP1(caveWall);\n caveWall = new CaveWall(this.game, 3500, 1106, 1, 2);\n this.game.addEntityP1(caveWall);\n\n\n //floating to left and right of block\n let smallBridge = new Bridge(this.game, 4250, 0, 1);\n this.game.addEntity(smallBridge);\n smallBridge = new Bridge(this.game, 6100, 0, 1);\n this.game.addEntity(smallBridge);\n smallBridge = new Bridge(this.game, 4250, 250, 1);\n this.game.addEntity(smallBridge);\n smallBridge = new Bridge(this.game, 6100, 250, 1);\n this.game.addEntity(smallBridge);\n let bridge = new Bridge(this.game, 4050, 400, 0);\n this.game.addEntity(bridge);\n bridge = new Bridge(this.game, 6050, 400, 0);\n this.game.addEntity(bridge);\n\n\n\n //main landblock\n let land = new Land(this.game, 4500, 100, 'L');\n this.game.addEntity(land);\n land = new Land(this.game, 5100, 100, 'R');\n this.game.addEntity(land);\n\n // bridges above dragon\n bridge = new Bridge(this.game, 4650, -75, 0);\n this.game.addEntity(bridge);\n bridge = new Bridge(this.game, 5500, -75, 0);\n this.game.addEntity(bridge);\n\n let iceArrow = new IceArrow(this.game, 5000, -120);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 4700, -122);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 5600, -120);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 5900, -122);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 5300, -450);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 4400, -100);\n this.game.addEntity(iceArrow);\n iceArrow = new IceArrow(this.game, 6000, 0);\n this.game.addEntity(iceArrow);\n\n\n\n let healthPotion = new HealthPotion(this.game, 4850, -120, 0);\n this.game.addEntity(healthPotion);\n healthPotion = new HealthPotion(this.game, 6100, -50, 0);\n this.game.addEntity(healthPotion);\n\n let dragon = new Dragon(this.game, 5800, -100)\n this.game.addEntity(dragon);\n\n }", "title": "" }, { "docid": "0c05d220047c5c9b5d1130e0e3ee56c0", "score": "0.5535321", "text": "static get wireframe() {}", "title": "" }, { "docid": "dad74195c13444ef91e0127d7e5a6264", "score": "0.55253357", "text": "constructor() {\n this.textures = {\n rgb: new Texture(\"assets/rgb.jpg\"),\n earth: new Texture(\"assets/earth.gif\"),\n // grid: new Texture(\"assets/grid.png\"),\n stars: new Texture(\"assets/stars.png\"),\n text: new Texture(\"assets/text.png\"),\n }\n this.shapes = {\n donut: new defs.Torus(15, 15, [[0, 2], [0, 1]]),\n cone: new defs.Closed_Cone(4, 10, [[0, 2], [0, 1]]),\n capped: new defs.Capped_Cylinder(4, 12, [[0, 2], [0, 1]]),\n ball: new defs.Subdivision_Sphere(3, [[0, 1], [0, 1]]),\n cube: new defs.Cube(),\n prism: new (defs.Capped_Cylinder.prototype.make_flat_shaded_version())(10, 10, [[0, 2], [0, 1]]),\n gem: new (defs.Subdivision_Sphere.prototype.make_flat_shaded_version())(2),\n donut2: new (defs.Torus.prototype.make_flat_shaded_version())(20, 20, [[0, 2], [0, 1]]),\n rcube: new ReversedCube(),\n square: new defs.Square(),\n };\n }", "title": "" }, { "docid": "acd064167511264e9bc0b6283af8b74f", "score": "0.5508793", "text": "function a$2(a,n){const r=a.fragment.code;a.include(t$1),3===n.pbrMode||4===n.pbrMode?(r.add(t$g`\n struct PBRShadingWater\n {\n float NdotL; // cos angle between normal and light direction\n float NdotV; // cos angle between normal and view direction\n float NdotH; // cos angle between normal and half vector\n float VdotH; // cos angle between view direction and half vector\n float LdotH; // cos angle between light direction and half vector\n float VdotN; // cos angle between view direction and normal vector\n };\n\n float dtrExponent = ${n.useCustomDTRExponentForWater?\"2.2\":\"2.0\"};\n `),r.add(t$g`vec3 fresnelReflection(float angle, vec3 f0, float f90) {\nreturn f0 + (f90 - f0) * pow(1.0 - angle, 5.0);\n}`),r.add(t$g`float normalDistributionWater(float NdotH, float roughness)\n{\nfloat r2 = roughness * roughness;\nfloat NdotH2 = NdotH * NdotH;\nfloat denom = pow((NdotH2 * (r2 - 1.0) + 1.0), dtrExponent) * PI;\nreturn r2 / denom;\n}`),r.add(t$g`float geometricOcclusionKelemen(float LoH)\n{\nreturn 0.25 / (LoH * LoH);\n}`),r.add(t$g`vec3 brdfSpecularWater(in PBRShadingWater props, float roughness, vec3 F0, float F0Max)\n{\nvec3 F = fresnelReflection(props.VdotH, F0, F0Max);\nfloat dSun = normalDistributionWater(props.NdotH, roughness);\nfloat V = geometricOcclusionKelemen(props.LdotH);\nfloat diffusionSunHaze = mix(roughness + 0.045, roughness + 0.385, 1.0 - props.VdotH);\nfloat strengthSunHaze = 1.2;\nfloat dSunHaze = normalDistributionWater(props.NdotH, diffusionSunHaze)*strengthSunHaze;\nreturn ((dSun + dSunHaze) * V) * F;\n}\nvec3 tonemapACES(const vec3 x) {\nreturn (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}`)):1!==n.pbrMode&&2!==n.pbrMode||(a.include(t$2),r.add(t$g`struct PBRShadingInfo\n{\nfloat NdotL;\nfloat NdotV;\nfloat NdotH;\nfloat VdotH;\nfloat LdotH;\nfloat NdotNG;\nfloat RdotNG;\nfloat NdotAmbDir;\nfloat NdotH_Horizon;\nvec3 skyRadianceToSurface;\nvec3 groundRadianceToSurface;\nvec3 skyIrradianceToSurface;\nvec3 groundIrradianceToSurface;\nfloat averageAmbientRadiance;\nfloat ssao;\nvec3 albedoLinear;\nvec3 f0;\nvec3 f90;\nvec3 diffuseColor;\nfloat metalness;\nfloat roughness;\n};`),r.add(t$g`float normalDistribution(float NdotH, float roughness)\n{\nfloat a = NdotH * roughness;\nfloat b = roughness / (1.0 - NdotH * NdotH + a * a);\nreturn b * b * INV_PI;\n}`),r.add(t$g`const vec4 c0 = vec4(-1.0, -0.0275, -0.572, 0.022);\nconst vec4 c1 = vec4( 1.0, 0.0425, 1.040, -0.040);\nconst vec2 c2 = vec2(-1.04, 1.04);\nvec2 prefilteredDFGAnalytical(float roughness, float NdotV) {\nvec4 r = roughness * c0 + c1;\nfloat a004 = min(r.x * r.x, exp2(-9.28 * NdotV)) * r.x + r.y;\nreturn c2 * a004 + r.zw;\n}`),r.add(t$g`vec3 evaluateEnvironmentIllumination(PBRShadingInfo inputs) {\nvec3 indirectDiffuse = evaluateDiffuseIlluminationHemisphere(inputs.groundIrradianceToSurface, inputs.skyIrradianceToSurface, inputs.NdotNG);\nvec3 indirectSpecular = evaluateSpecularIlluminationHemisphere(inputs.groundRadianceToSurface, inputs.skyRadianceToSurface, inputs.RdotNG, inputs.roughness);\nvec3 diffuseComponent = inputs.diffuseColor * indirectDiffuse * INV_PI;\nvec2 dfg = prefilteredDFGAnalytical(inputs.roughness, inputs.NdotV);\nvec3 specularColor = inputs.f0 * dfg.x + inputs.f90 * dfg.y;\nvec3 specularComponent = specularColor * indirectSpecular;\nreturn (diffuseComponent + specularComponent);\n}`),r.add(t$g`float gamutMapChanel(float x, vec2 p){\nreturn (x < p.x) ? mix(0.0, p.y, x/p.x) : mix(p.y, 1.0, (x - p.x) / (1.0 - p.x) );\n}`),r.add(t$g`vec3 blackLevelSoftCompression(vec3 inColor, PBRShadingInfo inputs){\nvec3 outColor;\nvec2 p = vec2(0.02 * (inputs.averageAmbientRadiance), 0.0075 * (inputs.averageAmbientRadiance));\noutColor.x = gamutMapChanel(inColor.x, p) ;\noutColor.y = gamutMapChanel(inColor.y, p) ;\noutColor.z = gamutMapChanel(inColor.z, p) ;\nreturn outColor;\n}`));}", "title": "" }, { "docid": "ace57d7cd37ecf7382e37624b2d8b637", "score": "0.5492623", "text": "function main() {\n var i=0,sps=[],sp=CSG.sphere({radious:0.1,resolution:20}).scale(0.1);\n for(i=40;i>20;i--){\n sps.push(CSG.sphere({radious:0.1,resolution:20}).translate([i*4,(Math.PI)/Math.asin(1/i),0]).scale(0.1));\n }\n sp=sp.union(sps);\n return cubeShell();\n}", "title": "" }, { "docid": "9d2b94747fa00818d3be79ee4f8957ef", "score": "0.54898876", "text": "look (walls) {\n const inputs = []; // Input to the neural network.\n for (let i = 0; i < this.rays.length; i++) {\n let ray = this.rays[i];\n let closest = null; // Keep track of nearest point.\n let record = this.sight;\n for (let wall of walls) { // We need to find closest wall to create shadow.\n const pt = ray.cast(wall);\n if (pt) {\n const dist = p5.Vector.dist(this.pos, pt); \n if (dist < record && dist < this.sight) {\n record = dist;\n closest = pt;\n }\n }\n }\n if (record < 5) // Hitting the wall.\n this.dead = true;\n inputs[i] = map(record, 0, 50, 1, 0); // 1 => when close to wall.\n if (closest && showRaysCB.checked()) {\n stroke(255, 200);\n line (this.pos.x, this.pos.y, closest.x, closest.y)\n } \n } // End of i loop.\n\n // -------------------- CORE OF PROJECT -------------------------------\n const outputs = this.brain.predict(inputs);\n let angle = map(outputs[0], 0, 1, -PI, PI);\n let speed = map(outputs[1], 0, 1, 0, this.maxSpeed);\n angle += this.vel.heading();\n const steering = p5.Vector.fromAngle(angle);\n steering.setMag(speed); \n steering.sub(this.vel);\n steering.limit(this.maxForce);\n this.applyForce(steering);\n currentSpeed = speed*10;\n // currentSpeed = this.vel.mag();\n // console.log(outputs); \n }", "title": "" }, { "docid": "607d956768946098c37f85311ce76ba6", "score": "0.5481792", "text": "function sphere(x,y,z,r, cr,cg,cb, d,p,pp,rf) {\n sp[numsp] = new Object();\n var s = sp[numsp];\n s.x =x; s.y =y; s.z =z; s.r=r;\n s.cr=cr; s.cg=cg; s.cb=cb;\n s.d =d; s.p =p; s.pp=pp;\ts.rf=rf;\n\n s.precalc = function() {\n this.ir = 1/this.r;\n this.c = this.x*this.x + this.y*this.y + this.z*this.z - this.r*this.r;\n };\n s.sethalf = function(nx,ny,nz, cr,cg,cb, d,p,pp,rf) {\n // Set hemisphere, normal points in direction of open half.\n // Inside has different material properties.\n this.nx=nx;\tthis.ny=ny;\tthis.nz=nz;\n this.inside = {\n x:this.x,\ty:this.y,\tz:this.z,\tr:this.r,\n nx:nx, ny:ny, nz:nz,\n obj:this.obj+'inside', parent:this,\n cr:cr, cg:cg, cb:cb, d:d, p:p, pp:pp, rf:rf,\n precalc:this.precalc, setuv:this.setuv, getuv:this.getuv,\n setbitmap:this.setbitmap, texture:function(){} };\n return this.inside;\n }\n s.setuv = function(ux,uy,uz, vx,vy,vz, uo,vo, texturefunc) {\n var l,v,wx,wy,wz;\n this.ocr=this.cr;\tthis.ocg=this.cg;\tthis.ocb=this.cb;\n this.ul = l = Math.sqrt(ux*ux+uy*uy+uz*uz);\tux/=l;\tuy/=l;\tuz/=l;\n this.vl = l = Math.sqrt(vx*vx+vy*vy+vz*vz);\tvx/=l;\tvy/=l;\tvz/=l;\n\n /*\t\t\tif (this.nx!=undefined) {\n // if half-sphere, then attempt to align uv axes with the axis (nx,ny,nz)\n v = vx*this.nx + vy*this.ny + vz*this.nz;\n wx=uy*vz-uz*vy;\twy=uz*vx-ux*vz;\twz=ux*vy-uy*vx;\n vx = this.nx*v;\t\t\tvy = this.ny*v;\t\t\tvz = this.nz*v;\n ux = vy*wz-vz*wy;\t\tuy = vz*wx-vx*wz;\t\tuz = vx*wy-vy*wx;\n alert(hun(ux)+\",\"+hun(uy)+\",\"+hun(uz)+\" || \"+hun(vx)+\",\"+hun(vy)+\",\"+hun(vz));\n }*/\n this.wx=uy*vz-uz*vy;\tthis.wy=uz*vx-ux*vz;\tthis.wz=ux*vy-uy*vx;\n\n this.ux=ux;\tthis.uy=uy;\tthis.uz=uz;\tthis.vx=vx;\tthis.vy=vy;\tthis.vz=vz;\n this.uo=uo;\tthis.vo=vo;\tthis.texture = texturefunc;\n return this;\n }\n s.setbitmap = function(imgurl) { setbitmap(this, imgurl); return this; }\n s.texture = function(){};\n\n s.hit = sp_hit;\n s.intersect = sp_intersect;\n s.li_intersect = sp_li_intersect;\n s.getuv = function() {\n var x,y,z,u,v,r;\n x = ix-this.x;\ty = iy-this.y;\tz = iz-this.z;\n v = Math.acos(-(x*this.vx+y*this.vy+z*this.vz)*this.ir);\n u = (x*this.ux+y*this.uy+z*this.uz)/(this.r*Math.sin(v));\n this.u = this.uo + Math.acos(u)/6.2831853072;\n this.v = this.vo + v/3.1415926536;\n if ((x*this.wx+y*this.wy+z*this.wz)<0) this.u=1-this.u;\n this.u *= this.ul;\n this.v *= this.vl;\n }\n\n s.precalc();\n s.obj = numob;\n ob[numob++] = s;\n numsp++;\n return s;\n}", "title": "" }, { "docid": "b6a9ef1c1841f00ebd9b61153e884eb8", "score": "0.5473539", "text": "function arrangeLayers() {\r\n\r\nLUspecLyr = doc.artLayers.getByName(\"SpecLU\");\r\nMUspecLyr = doc.artLayers.getByName(\"SpecMU\");\r\n aoLyr = doc.artLayers.getByName(\"AO\");\r\n nrmLyr = doc.artLayers.getByName(\"N\");\r\n\tgiLyr = doc.artLayers.getByName(\"GI\");\r\n\tbtyLyr = doc.artLayers.getByName(\"RGBA\");\r\n\tdLyr = doc.artLayers.getByName(\"DiffuseLighting\");\r\n\trflLyr = doc.artLayers.getByName(\"Reflections\");\t\r\n\tsLyr = doc.artLayers.getByName(\"SpecularLighting\");\r\n\t\r\n\tdLyr.move( doc.artLayers[0],ElementPlacement.PLACEBEFORE);\r\n\tgiLyr.move( dLyr,ElementPlacement.PLACEBEFORE);\r\n\taoLyr.move( giLyr,ElementPlacement.PLACEBEFORE);\r\n\tsLyr.move( aoLyr,ElementPlacement.PLACEBEFORE);\r\n\trflLyr.move( sLyr,ElementPlacement.PLACEBEFORE);\r\n\tLUspecLyr.move( sLyr,ElementPlacement.PLACEBEFORE);\r\n\tbtyLyr.move( dLyr,ElementPlacement.PLACEAFTER);\r\n\t\r\n\t\r\n\tsLyr.opacity = 80;\r\n\tMUspecLyr.blendMode = BlendMode.LINEARDODGE;\r\n\tLUspecLyr.blendMode = BlendMode.LINEARDODGE;\r\n\trflLyr.blendMode = BlendMode.LINEARDODGE;\r\n\tsLyr.blendMode = BlendMode.LINEARDODGE;\r\n\tgiLyr.blendMode = BlendMode.LINEARDODGE;\r\n\taoLyr.blendMode = BlendMode.MULTIPLY;\r\n\t\r\n\tdLyr.visible = true;\r\n\tgiLyr.visible = true;\r\n\taoLyr.visible = true;\r\n\tsLyr.visible = true;\r\n\trflLyr.visible = true;\r\n\tLUspecLyr.visible = true;\r\n\tbtyLyr.visible = true;\r\n\t\r\n\tnLyr = doc.artLayers.getByName(\"N\");\r\n\tLUmatLyr = doc.artLayers.getByName(\"LU+Outline_LU+Ribbing_LU+Details\");\r\n\tMUmatLyr = doc.artLayers.getByName(\"MU+Outline_MU+Ribbing_MU+Details\");\r\n\tobjmatLyr = doc.artLayers.getByName(\"Tread_Tire_Wheel\");\r\n\tMatMatteLyr = doc.artLayers.getByName(\"WheelInner_mat2_mat3\");\r\n\t\r\n\t\r\n\t nLyr.visible =false;\r\n\t// LUmatLyr.visible = false;\r\n\t// MUmatLyr.visible = false;\r\n\t MUspecLyr.visible = false;\r\n\t// Tread_Tire_Wheel.visible = false;\r\n\t// WheelInner_mat2_mat3.visible = false;\r\n\t\r\n\tmylayerSet = doc.layerSets.add();\r\n mylayerSet.name = \"Mattes\"\r\n \r\n\t\t\r\n\tLUmatLyr.move (mylayerSet, ElementPlacement.PLACEATEND);\r\n\tMUmatLyr.move (mylayerSet, ElementPlacement.PLACEATEND);\r\n\tMatMatteLyr.move (mylayerSet, ElementPlacement.PLACEATEND);\r\n\tobjmatLyr.move (mylayerSet, ElementPlacement.PLACEATEND);\r\n\tnLyr.move (mylayerSet, ElementPlacement.PLACEATEND);\r\n\t//LUmatLyr.move(doc.layerSets[1], ElementPlacement.INSIDE)\r\n\t//MUmatLyr.move(doc.layerSets[1], ElementPlacement.INSIDE)\r\n\t\r\n\t//objmatLyr.move(doc.layerSets[1], ElementPlacement.INSIDE)\r\n\r\n\r\n mylayerSet.moveAfter(btyLyr);\r\n\tmylayerSet.visible = false;\r\n\t\r\n mulayerSet = doc.layerSets.add();\r\n mulayerSet.name = \"MU\"\r\n \r\n lulayerSet = doc.layerSets.add();\r\n lulayerSet.name = \"LU\"\r\n \r\n LUspecLyr.move (lulayerSet, ElementPlacement.PLACEATEND);\r\n MUspecLyr.move (mulayerSet, ElementPlacement.PLACEATEND);\r\n}", "title": "" }, { "docid": "ecb06a210f252643405774a26e5e24e0", "score": "0.5456852", "text": "set model ( functions ) { ( { area, aliveʔ̣, breedǃ, chokeǃ, clearǃ, cycleǃ, shakeǃ, sweepǃ } = functions ); }", "title": "" }, { "docid": "195657f0e1c4c55e6f2525b8bf7cb2de", "score": "0.54488385", "text": "function e(e){e.code.add(t$g`vec4 premultiplyAlpha(vec4 v) {\nreturn vec4(v.rgb * v.a, v.a);\n}\nvec3 rgb2hsv(vec3 c) {\nvec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\nvec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy);\nvec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx);\nfloat d = q.x - min(q.w, q.y);\nfloat e = 1.0e-10;\nreturn vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), min(d / (q.x + e), 1.0), q.x);\n}\nvec3 hsv2rgb(vec3 c) {\nvec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\nvec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\nreturn c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\nfloat rgb2v(vec3 c) {\nreturn max(c.x, max(c.y, c.z));\n}`);}", "title": "" }, { "docid": "b5cd009ed01a9fe99f78bf59d01ac6d8", "score": "0.544073", "text": "get Skybox() {}", "title": "" }, { "docid": "febd9f9a074bc176b17dc20320b19d27", "score": "0.5437791", "text": "function CreateSystem() {\n \n commonSphere = new THREE.SphereGeometry(1, 64, 64)\n \n for(var i = 0; i < PlanetsData.length; i++){\n switch(i){\n case SUN:\n Sun = createSun(PlanetsData[i][\"radius\"])\n Sun.position.set(0, 0, 0)\n scene.add(Sun)\n Planets.push(Sun)\n break\n \n case MERCURY:\n Mercury = createPlanet(PlanetsData[i][\"radius\"], 0.005, 'textures/Mercury/Mercury.jpg','textures/Mercury/Mercury.jpg')\n scene.add(Mercury)\n Planets.push(Mercury)\n break\n \n case VENUS:\n Venus = createPlanet(PlanetsData[i][\"radius\"], 0.005, 'textures/Venus/Venus.jpg','textures/Venus/Venus.jpg')\n scene.add(Venus)\n Planets.push(Venus)\n break\n \n case EARTH:\n Earth = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Earth/Earth.jpg','textures/Earth/Earth_Bump.jpg','textures/Earth/Earth_Specular.jpg')\n createCloud(Earth)\n scene.add(Earth)\n Planets.push(Earth)\n break\n \n case MARS:\n Mars = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Mars/Mars.jpg','textures/Mars/Mars_Bump.jpg')\n scene.add(Mars)\n Planets.push(Mars)\n break\n\n case JUPITER:\n Jupiter = createPlanet(PlanetsData[i][\"radius\"], 0.02, 'textures/Jupiter/jupiter2_4k.jpg','textures/Jupiter/jupiter2_4k.jpg')\n scene.add(Jupiter)\n Planets.push(Jupiter)\n break\n\n case SATURN:\n Saturn = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Saturn/saturnSurface.jpg','textures/Saturn/saturnSurface.jpg')\n // innerRadius = (planets[i][\"radius\"] + 6.630) / planets[i][\"radius\"]\n // outerRadius = (planets[i][\"radius\"] + saturnOuterRadius) / planets[i][\"radius\"]\n // ring = createRing(innerRadius, outerRadius, ringSegments,'qrc:images/saturnringcolortrans.png')\n // ring.receiveShadow = true\n // ring.castShadow = true\n // mesh.add(ring)\n scene.add(Saturn)\n Planets.push(Saturn)\n break\n\n case URANUS:\n Uranus = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Uranus/Uranus.jpg','textures/Uranus/Uranus.jpg');\n // innerRadius = (planets[i][\"radius\"] + 2) / planets[i][\"radius\"]\n // outerRadius = (planets[i][\"radius\"] + uranusOuterRadius) / planets[i][\"radius\"]\n // ring = createRing(innerRadius, outerRadius, ringSegments,'qrc:images/uranusringcolortrans.png')\n // ring.receiveShadow = true\n // ring.castShadow = true\n // mesh.add(ring)\n scene.add(Uranus)\n Planets.push(Uranus)\n break\n \n case NEPTUNE:\n Neptune = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Neptune/Neptune.jpg','textures/Neptune/Neptune.jpg')\n scene.add(Neptune)\n Planets.push(Neptune)\n break\n\n case MOON:\n Moon = createPlanet(PlanetsData[i][\"radius\"], 0.05, 'textures/Earth/Moon.jpg', 'textures/Earth/Moon_Bump.jpg')\n scene.add(Moon)\n Planets.push(Moon)\n break\n }\n }\n}", "title": "" }, { "docid": "9f53383938af322c673ee13b34fb041c", "score": "0.5417234", "text": "descendViaSTAR() {\n // Find the STAR leg\n let wp;\n let legIndex;\n\n // TODO: if this.legs is an array this should be a for and not a for/in loop\n for (const l in this.legs) {\n if (this.legs[l].type === FP_LEG_TYPE.STAR) {\n legIndex = l;\n wp = this.legs[l].waypoints;\n\n break;\n }\n }\n\n if (!wp) {\n return;\n }\n\n let start_alt = this.currentWaypoint().altitude || this.my_aircraft.altitude;\n let start_spd = this.currentWaypoint().speed || this.my_aircraft.model.speed.cruise;\n\n for (let i = 0; i < wp.length; i++) {\n if (i >= 1) {\n start_alt = wp[i - 1].altitude;\n start_spd = wp[i - 1].speed;\n }\n\n const a = wp[i].fixRestrictions.alt;\n const s = wp[i].fixRestrictions.spd;\n let minAlt;\n let alt;\n let maxAlt;\n\n // Altitude Control\n if (a) {\n if (a.indexOf('+') !== -1) {\n // at-or-above altitude restriction\n minAlt = parseInt(a.replace('+', ''), 10) * 100;\n alt = Math.max(minAlt, start_alt);\n } else if (a.indexOf('-') !== -1) {\n maxAlt = parseInt(a.replace('-', '')) * 100;\n // climb as high as restrictions permit\n alt = Math.min(maxAlt, start_alt);\n } else {\n // cross AT this altitude\n alt = parseInt(a) * 100;\n }\n } else {\n alt = start_alt;\n }\n\n wp[i].altitude = alt; // add altitudes to wp\n\n let minSpd;\n let spd;\n let maxSpd;\n\n // Speed Control\n if (s) {\n if (s.indexOf('+') !== -1) {\n // at-or-above speed restriction\n minSpd = parseInt(s.replace('+', ''));\n spd = Math.min(minSpd, start_spd);\n } else if (s.indexOf('-') !== -1) {\n maxSpd = parseInt(s.replace('-', ''));\n // go as fast as restrictions permit\n spd = Math.min(maxSpd, start_spd);\n } else {\n // cross AT this speed\n spd = parseInt(s);\n }\n } else {\n spd = start_spd;\n }\n\n // add speeds to wp\n wp[i].speed = spd;\n }\n\n // change fms waypoints to wp (which contains the altitudes and speeds)\n this.legs[legIndex].waypoints = wp;\n\n return true;\n }", "title": "" }, { "docid": "041d6df3a4349fb477080cd60875ebbb", "score": "0.5414954", "text": "function clouds(speed,direction) {\n\n direction = direction > 0? direction/direction : -1*(direction/direction); // This line ensures that the direction doesn't affect the speed of the cloud\n\n graphics.save();\n graphics.translate(-5*direction , 0);\n graphics.scale(.75,.75);\n graphics.strokeStyle = \"black\";\n graphics.fillStyle = \"rgb(191, 184, 187)\";\n\n graphics.translate((frameNumber*speed)%20,0);\n graphics.beginPath();\n graphics.ellipse(-1.5,0,1,.5,0,0,2*Math.PI,false);\n graphics.ellipse(-2.5,0,1,.5,0,0,2*Math.PI,false);\n graphics.ellipse(-3,-.5,1,.5,0,0,2*Math.PI,false);\n graphics.ellipse(-2.5,-.5,1,.5,0,0,2*Math.PI,false);\n graphics.ellipse(-1,-.5,1,.5,0,0,2*Math.PI,false);\n graphics.ellipse(-.1,-.5,.5,.25,0,0,2*Math.PI,false);\n graphics.ellipse(-.3,-.3,.75,.5,0,0,2*Math.PI,false);\n graphics.closePath();\n graphics.fill();\n\n graphics.restore();\n\n}", "title": "" }, { "docid": "62c06e2cc124cea44b3eb0437b594f88", "score": "0.53982586", "text": "function addLensFlare(x,y,z, size, type){\n\t\t\n\t\tvar textureLoader = new THREE.TextureLoader();\n\t\tvar colour = fetch_colour();\n\t\tvar flareColor = new THREE.Color(colour[0], colour[1], colour[2]);\n\t\t\n\t\t\n\t\tcont = estrellas.length;\n\t\tif (type == 0){ // sun\n\t\t\tvar textureFlare0 = textureLoader.load('img/galaxy3.png');\n\t\t\testrellas[cont] = new THREE.LensFlare(textureFlare0, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t}else{\n\t\t\tvar flare = Math.random();\n\t\t\t\n\t\t\tif( flare < 0.5 ){\n\t\t\t\tvar textureFlare0 = textureLoader.load('img/galaxy3.png');\n\t\t\t\testrellas[cont] = new THREE.LensFlare(textureFlare0, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t\t}else if( flare < 0.75 ){\n\t\t\t\tvar textureFlare1 = textureLoader.load('img/galaxy1.png');\n\t\t\t\testrellas[cont] = new THREE.LensFlare(textureFlare1, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t\t}else{\n\t\t\t\tvar textureFlare2 = textureLoader.load('img/galaxy2.png');\n\t\t\t\testrellas[cont] = new THREE.LensFlare(textureFlare2, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// var lensflare = new THREE.LensFlare(textureFlare0, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t// estrellas[cont] = new THREE.LensFlare(textureFlare0, size, 0.0, THREE.AdditiveBlending, flareColor);\n\t\t// lensflare.add(textureFlare3, 60, 0.6, THREE.AdditiveBlending);\n\t\t// lensflare.add(textureFlare3, 70, 0.7, THREE.AdditiveBlending);\n\t\t// lensflare.add(textureFlare3, 120, 0.9, THREE.AdditiveBlending);\n\t\t// lensflare.add(textureFlare3, 70, 1.0, THREE.AdditiveBlending);\t\n\t\n\t\testrellas[cont].name = cont;\n\t\testrellas[cont].position.set(x, y, z);\n\t\tdirecciones[cont] = estrellas[cont].position.clone().sub(camera.position).normalize();\n\t\t// lensflare.size = size;\n\t\tscene.add(estrellas[cont]);\n\t\t\n\t\t// cont = estrellas.length;\n\t\t// estrellas[cont] = lensflare;\n\t\t// scene.add(estrellas[cont]);\n\t\t// direcciones[cont] = estrellas[cont].position.clone().sub(camera.position).normalize();\n\t}", "title": "" }, { "docid": "9fd60cb6dc37f99570d2fa962df2feed", "score": "0.5387735", "text": "function VoxelLoader() {\n\n}", "title": "" }, { "docid": "9d6666d947ff8eab37d09e9df4dd496e", "score": "0.5381136", "text": "dollyflyTo(a) { \n a.d = a.d || 3.0;\n a.x = a.x || csphere.position.x;\n a.y = a.y || csphere.position.y;\n a.z = a.z || csphere.position.z;\n\n // shot\n this.shot = {delta: {\n timeline: {p: {paused:true, repeat:0},\n actors:{\n 'i3d:csphere:position':[{dur:a.d, \n p:{x:a.x, y:a.y, z:a.z, \n immediateRender:false}}]\n }\n }//tl\n }//delta\n };//shot\n this.shot = 'shot-anim:' + JSON.stringify(this.shot);\n narrative.shot(this.shot);\n }", "title": "" }, { "docid": "d6e4217910405d8f48b7a9eeeb0feeff", "score": "0.53757244", "text": "function draw() {\n \n if(true){//adjust backgrond if sun is not visble \n applyCyclus(); \n }\n if (true) { //if raining TODO: add snow and wind (mov x)\n applyRain();\n }\n if (true) { //if cloudy\n applyClouds(); \n }\n if (true) {\n //if sun\n applySun();\n }\n}", "title": "" }, { "docid": "1088d903de37efa1c05ad0fd9da2a7e5", "score": "0.53485096", "text": "function getClouds() {\n fill(224,224,224);\n ellipse(90, 120, 85, 70);\n ellipse(150, 130, 100, 90);\n ellipse(220, 120, 150, 70);\n \n ellipse(500, 120, 85, 70);\n ellipse(520, 120, 130, 70);\n \n ellipse(880, 120, 85, 70);\n ellipse(950, 130, 100, 90);\n}", "title": "" }, { "docid": "b1c93908bbe51da467eb9d1a6d92d945", "score": "0.53436685", "text": "async function o$4(o){const a=new Image;if(a.src=\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='5' height='5' version='1.1' viewBox='0 0 5 5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='5' height='5' fill='%23f00' fill-opacity='.5'/%3E%3C/svg%3E%0A\",a.width=5,a.height=5,await a.decode(),!o.gl)return !0;const s=new l$c(o,{colorTarget:0,depthStencilTarget:0},{target:3553,wrapMode:33071,pixelFormat:6408,dataType:5121,samplingMode:9728,width:1,height:1}),p=o$k.createVertex(o,35044,new Uint16Array([0,0,1,0,0,1,1,1])),d=new f$6(o,new Map([[\"a_pos\",0]]),{geometry:[{name:\"a_pos\",count:2,type:5123,offset:0,stride:4,normalized:!1}]},{geometry:p}),m=new n$e(o,\"\\n precision highp float;\\n\\n attribute vec2 a_pos;\\n varying vec2 v_uv;\\n\\n void main() {\\n v_uv = a_pos;\\n gl_Position = vec4(a_pos * 2.0 - 1.0, 0.0, 1.0);\\n }\\n \",\"\\n precision highp float;\\n\\n varying vec2 v_uv;\\n uniform sampler2D u_texture;\\n\\n void main() {\\n gl_FragColor = texture2D(u_texture, v_uv);\\n }\\n \",new Map([[\"a_pos\",0]]));o.useProgram(m);const g=new o$l(o,{dataType:5121,pixelFormat:6408,preMultiplyAlpha:!1,wrapMode:33071,samplingMode:9729},a);o.bindTexture(g,0),m.setUniform1i(\"u_texture\",0);const l=o.getBoundFramebufferObject(),{x:c,y:f,width:u,height:w}=o.getViewport();o.bindFramebuffer(s),o.setViewport(0,0,1,1),o.setClearColor(0,0,0,0),o.setBlendingEnabled(!1),o.clearSafe(16384),o.bindVAO(d),o.drawArrays(5,0,4);const v=new Uint8Array(4);return s.readPixels(0,0,1,1,6408,5121,v),m.dispose(),d.dispose(!1),p.dispose(),s.dispose(),g.dispose(),o.setViewport(c,f,u,w),o.bindFramebuffer(l),a.src=\"\",255===v[0]}", "title": "" }, { "docid": "9e0d11ff0f0fdf34c2be485f12d79017", "score": "0.53434944", "text": "static buildGeomtery(VERTS_WIDE, VERTS_TALL) {\n KinectGeometry.geo = new THREE.PlaneBufferGeometry(5, 4, VERTS_WIDE, VERTS_TALL);\n }", "title": "" }, { "docid": "ae36c879e8d9d0f806bd0daed85b460d", "score": "0.53378236", "text": "fsSrc () {\n\n let s = [\n\n // Set precision.\n\n this.floatp,\n\n /* \n * Attribute names are hard-coded in the WebGL object, with rigid indices.\n * vertex, textureX coordinates, colors, normals, tangents.\n */\n\n // Lighting flags.\n\n 'uniform bool uUseLighting;',\n\n // Lighting values.\n\n 'uniform vec3 uAmbientColor;',\n 'uniform vec3 uLightingDirection;', // uLightingDirection\n 'uniform vec3 uDirectionalColor;',\n\n // Material properties (includes specular highlights).\n\n 'uniform vec3 uMatEmissive;',\n 'uniform vec3 uMatAmbient;',\n 'uniform vec3 uMatDiffuse;',\n 'uniform vec3 uMatSpecular;',\n 'uniform float uMatSpecExp;',\n\n // Alpha value.\n\n 'uniform float uAlpha;',\n\n // Varying.\n\n 'varying vec3 vPOV;', // World point of view (camera)\n 'varying vec4 vPositionW;',\n 'varying vec4 vNormalW;',\n\n 'varying vec2 vTextureCoord;',\n\n 'uniform sampler2D uSampler;',\n\n 'void main(void) {',\n\n 'vec4 vColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));',\n\n // Set light components by Light x Material.\n\n 'vec4 Emissive = vec4(uMatEmissive, uAlpha);',\n\n // We do a quad fadein of our Ambient so near-transparent objects don't have the Ambient color.\n\n 'vec4 Ambient = vec4(uAmbientColor * uMatAmbient, uAlpha);',\n\n 'vec4 Diffuse = vec4(uDirectionalColor * uMatDiffuse, uAlpha);',\n\n // Specular should be zero if we aren't lighting.\n\n 'vec4 Specular = vec4(0.0, 0.0, 0.0, uAlpha);',\n\n 'if(uUseLighting) {',\n\n // Add lighting direction to Diffuse.\n\n 'vec4 N = normalize(vNormalW);',\n\n 'vec4 LL = normalize(vec4(uLightingDirection, 1.0));',\n\n 'float NdotL = max( dot(N, LL), 0.0);',\n\n 'Diffuse = NdotL * Diffuse;',\n\n // Compute specular dot. Changing 4th parameter to 0.0 instead of 1.0 improved results.\n\n 'vec4 L = normalize(vec4(uLightingDirection, uAlpha) - vPositionW);',\n\n /////////////'vec4 L = normalize(vec4(0.0, 0.0, 0.0, 0.0));', // bright, everything illuminated.\n\n 'vec4 EyePosW = vec4(vPOV, 0.0);', // world = eye = camera position\n\n 'vec4 V = normalize(EyePosW - vPositionW );',\n\n 'vec4 H = normalize(L + V);',\n\n 'vec4 R = reflect(-L, N);', // -L computes side facing Light, +L computes shadow component\n\n 'float RdotV = max(dot(R, V), 0.0);',\n\n 'float NdotH = max(dot(N, H), 0.0);',\n\n 'float spec = uMatSpecExp;',\n\n // Multiply Specular by global uAlpha here.\n\n 'Specular = pow(RdotV, spec) * pow(NdotH, spec) * vec4(uDirectionalColor * uMatSpecular, uAlpha);',\n\n '} else {',\n\n // Somewhat arbitrary, but gives the best fade up for non-lighted objects.\n\n 'Ambient.rgb *= uAlpha;',\n\n '}',\n\n //'vColor.rgb *= 2.0;', // STUFF SEEMS TOO DARK\n\n 'gl_FragColor = (Emissive + Ambient + Diffuse + Specular) * vec4(vColor.rgb, vColor.a);',\n\n '}'\n\n ];\n\n\n return {\n \n code: s.join('\\n'),\n\n varList: this.webgl.createVarList( s )\n\n };\n\n }", "title": "" }, { "docid": "f0f46850935eb913f29885fee0abed1c", "score": "0.532954", "text": "shootIso() {\n this.shootHypo();\n this.shootHyper();\n }", "title": "" }, { "docid": "dd711eecee2cadf30c5deefb3e586fd8", "score": "0.5323272", "text": "function updateAllTheGeometry() {\n\n\n //var halo;\n //for (var i = head; i <= tail; i++) {\n // if (halo) break;\n // for (var j = 0; j < HaloSpheres[i].length; j++){\n // halo = HaloSpheres[i][j];\n // if ( halo ) break;\n // }\n //}\n //if (curTarget.object)\n // curTarget.object = halo;\n //else\n // prevTarget = curTarget = {object: halo};\n //curTarget.object.material.color.set( rgbToHex(255,0,0) ); // red\n //curTarget.object.material.opacity = 0.8;\n displayHaloData();\n console.log(\"prevTarget, curTarget\", prevTarget, curTarget);\n //tweenToPosition();\n\n\n}", "title": "" }, { "docid": "5527ea047848779a39bb0c1314ffff60", "score": "0.53228027", "text": "function initialRender() {\n\tvoxarrindexnum = 0;\n\tfor (z = 0; z < map.length; z++) {\n\t\tfor (x = 0; x < map[z].length; x++) {\n\t\t\taltitude = map[z][x];\n\t\t\tfor (y = 0; y < altitude; y++) {\n\t\t\t\tspecialColours();\n\t\t\t\tscene.add(voxels[voxarrindnum]);\n\t\t\t\tvoxels[voxarrindnum].position.x = x;\n\t\t\t\tvoxels[voxarrindnum].position.y = y;\n\t\t\t\tvoxels[voxarrindnum].position.z = z;\n\t\t\t\tvoxels[voxarrindnum].castShadow = true;\n\t\t\t\tvoxels[voxarrindnum].receiveShadow = true;\n\t\t\t\tvoxarrindnum++;\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "c0fb6623ced1c309216a0de2c3437292", "score": "0.5322354", "text": "sample(point) {\n // @TODO\n /* METABALL FUNCTION (2 POINTS)\n Metaballs are organic-looking n-dimensional objects. We will be implementing a 3-dimensional metaballs.\n They are great to make bloppy shapes. An isosurface is created whenever the metaball function\n crosses a certain threshold, called isolevel. The metaball function describes the total influences\n of each metaball to a given points. A metaball influence is a function between its radius and distance to the point:\n\n f(point) = (radius * radius) / (distance * distance)\n\n By summing up all these influences, you effectively describes all the points that are greater than\n the isolevel as inside, and less than the isolevel as outside (or vice versa).\n As an observation, the bigger the metaball's radius is, the bigger its influence is.\n --------------------------------------------------------------------------------------------------\n */\n\n var isovalue = 0.0;//1.1; //BRINGING IT TO 0 WILL ONLY SHOW THE GRID CELL CUBES WHERE THE ISOVALUE IS >= 1 (but this doesn't always work?)\n\n for(var i = 0; i < this.numMetaballs; i++)\n {\n var currBall = this.balls[i];\n var dist = Math.sqrt(Math.pow(currBall.pos.x - point.x, 2) + Math.pow(currBall.pos.y - point.y, 2) + Math.pow(currBall.pos.z - point.z, 2));\n\n isovalue += ((currBall.radius * currBall.radius) / (dist * dist));\n }\n return isovalue;\n }", "title": "" }, { "docid": "9b409e8ac0eb3ae8e7c010cfcf2b7d24", "score": "0.53211975", "text": "function getStereonet(spots) {\n\n var hasdata = false;\n\n //build data here\n var headers = [\"No.\",\n \"Type\",\n \"Structure\",\n \"Color\",\n \"Trd/Strk\",\n \"Plg/Dip\",\n \"Longitude\",\n \"Latitude\",\n \"Horiz ± m\",\n \"Elevation\",\n \"Elev ± m\",\n \"Time\",\n \"Day\",\n \"Month\",\n \"Year\",\n \"Notes\"\n ];\n\n var planes = [];\n var lines = [];\n var row = [];\n var out = [];\n\n _.each(spots, function (spot) {\n\n var longitude = 999;\n var latitude = 99;\n var trendstrike = \"\";\n var plungedip = \"\";\n var notes = \"\";\n var spotOrientations = [];\n\n if (spot.geometry.type == \"Point\") {\n longitude = spot.geometry.coordinates[0];\n latitude = spot.geometry.coordinates[1];\n }\n\n /*\n Gather orientation data. Sometimes (if spots are from map),\n orientations are in \"orientation\". Other times, orientations are\n in \"orientation_data\".\n */\n if (spot.properties.orientation) {\n spotOrientations.push(spot.properties.orientation);\n }\n else if (spot.properties.orientation_data) {\n _.each(spot.properties.orientation_data, function (od) {\n spotOrientations.push(od);\n if(od.associated_orientation){\n _.each(od.associated_orientation, function(ao){\n spotOrientations.push(ao);\n })\n }\n });\n }\n\n _.each(spotOrientations, function (od) {\n\n if (od.type == \"planar_orientation\") {\n if (od.strike && od.dip) {\n trendstrike = od.strike;\n plungedip = od.dip;\n if (od.notes) notes = od.notes;\n row = [\n \"\",\n \"P\",\n \"Strabo Planes\",\n \"000000000\",\n trendstrike,\n plungedip,\n longitude,\n latitude,\n \"\",\n \"0\",\n \"\",\n \"\",\n \"0\",\n \"0\",\n \"0\",\n notes\n ];\n planes.push(row);\n }\n }\n else if (od.type == \"linear_orientation\") {\n if (od.trend && od.plunge) {\n trendstrike = od.trend;\n plungedip = od.plunge;\n if (od.notes) notes = od.notes;\n row = [\n \"\",\n \"L\",\n \"Strabo Lines\",\n \"000000000\",\n trendstrike,\n plungedip,\n longitude,\n latitude,\n \"\",\n \"0\",\n \"\",\n \"\",\n \"0\",\n \"0\",\n \"0\",\n notes\n ];\n lines.push(row);\n }\n }\n });\n\n })\n\n if (lines.length > 0 || planes.length > 0) {\n var recordnum = 1;\n out.push(headers.join(\"\\t\"));\n if (planes.length > 0) {\n _.each(planes, function (plane) {\n plane[0] = recordnum;\n out.push(plane.join(\"\\t\"));\n recordnum++;\n })\n }\n if (lines.length > 0) {\n _.each(lines, function (line) {\n line[0] = recordnum;\n out.push(line.join(\"\\t\"));\n recordnum++;\n })\n }\n out = out.join(\"\\n\");\n out = out + \"\\n\";\n hasdata = true;\n }\n\n //$log.log(\"out: \", out);\n\n if (hasdata) {\n $cordovaClipboard.copy(out).then(function () {\n $ionicPopup.alert({\n 'title': 'Success!',\n 'template': 'Data has been copied to clipboard.'\n });\n });\n }\n else {\n $ionicPopup.alert({\n 'title': 'Error!',\n 'template': 'Your selected spots contained no valid stereonet data.'\n });\n }\n }", "title": "" }, { "docid": "f9a1d028dc66e493650bfff4c10548a6", "score": "0.53147876", "text": "function loadScene() {\n // Declarar luces.\n var luzAmbiental = new THREE.AmbientLight(0x202020)\n scene.add(luzAmbiental)\n\n var luzPuntual = new THREE.PointLight(0x606060)\n luzPuntual.position.set(0, 300, 0)\n scene.add(luzPuntual)\n\n luzFocal = new THREE.SpotLight(0xFFFFFF)\n \n luzFocal.position.set(100, 300, 300)\n luzFocal.target.position.set(0, 0, 0)\n luzFocal.angle = Math.PI / 4\n luzFocal.castShadow = true\n luzFocal.shadow.mapSize.width = 1024\n luzFocal.shadow.mapSize.height = 1024\n // luzFocal.shadow.camera.left = -1000\n // luzFocal.shadow.camera.right = 1000\n // luzFocal.shadow.camera.top = -1000\n // luzFocal.shadow.camera.bottom = 1000\n // luzFocal.shadow.camera = new THREE.OrthographicCamera(-1000, 1000, 1000, -1000, 0.5, 10000);\n luzFocal.shadow.camera.near = 1\n luzFocal.shadow.camera.far = 2000\n luzFocal.shadow.camera.fov = 30\n \n scene.add(luzFocal)\n\n // Declarar texturas.\n var texturaSuelo = new THREE.TextureLoader().load(\"texturas/paving_stones_color.jpg\")\n texturaSuelo.magFilter = THREE.LinearFilter\n texturaSuelo.minFilter = THREE.LinearFilter\n texturaSuelo.wrapS = texturaSuelo.wrapT = THREE.MirroredRepeatWrapping\n\n var texturaMate = new THREE.TextureLoader().load(\"texturas/painted_metal_color.jpg\")\n texturaMate.magFilter = THREE.LinearFilter\n texturaMate.minFilter = THREE.LinearFilter\n texturaMate.wrapS = texturaMate.wrapT = THREE.RepeatWrapping\n texturaMate.repeat = new THREE.Vector2(1, 5)\n\n var texturaBrillante = new THREE.TextureLoader().load(\"texturas/metal_color.jpg\")\n texturaBrillante.magFilter = THREE.LinearFilter\n texturaBrillante.minFilter = THREE.LinearFilter\n texturaBrillante.wrapS = texturaBrillante.wrapT = THREE.RepeatWrapping\n texturaBrillante.repeat = new THREE.Vector2(1, 5)\n\n var texturaRotulaLoader = new THREE.CubeTextureLoader()\n texturaRotulaLoader.setPath(\"texturas/cubic_texture/\")\n var fondo = texturaRotulaLoader.load([\"posx.jpg\", \"negx.jpg\", \"posy.jpg\", \"negy.jpg\", \"posz.jpg\", \"negz.jpg\"])\n\n // Declarar materiales.\n var materialSuelo = new THREE.MeshLambertMaterial({color: \"white\", flatShading: THREE.SmoothShading, map: texturaSuelo})\n var materialMate = new THREE.MeshLambertMaterial({color: \"white\", flatShading: THREE.SmoothShading, map: texturaMate})\n var materialBrillante = new THREE.MeshPhongMaterial({color: \"white\", specular: \"white\", shininess: 20, map: texturaBrillante})\n var materialRotula = new THREE.MeshBasicMaterial({color: \"white\", envMap: fondo})\n\n // Crear habitación.\n var shader = THREE.ShaderLib.cube\n shader.uniforms.tCube.value = fondo\n var materialParedes = new THREE.ShaderMaterial({fragmentShader: shader.fragmentShader, vertexShader: shader.vertexShader, uniforms: shader.uniforms, depthWrite: false, side: THREE.BackSide})\n var habitacion = new THREE.Mesh(new THREE.CubeGeometry(20000, 20000, 20000), materialParedes)\n scene.add(habitacion)\n\n // Declarar geometrías.\n var geometriaSuelo = new THREE.BoxGeometry(1000, 0, 1000, 100, 0, 100)\n var geometriaBase = new THREE.CylinderGeometry(50, 50, 15, 40, 5)\n brazo = new THREE.Object3D()\n var geometriaEje = new THREE.CylinderGeometry(20, 20, 18, 20)\n var geometriaEsparrago = new THREE.BoxGeometry(18, 120, 12)\n var geometriaRotula = new THREE.SphereGeometry(20, 20, 20)\n antebrazo = new THREE.Object3D()\n antebrazo.position.y = 120\n var geometriaDisco = new THREE.CylinderGeometry(22, 22, 6, 20)\n var geometriaNervio = new THREE.BoxGeometry(4, 80, 4)\n var geometriaMano = new THREE.CylinderGeometry(15, 15, 40, 20)\n const geometriaPinza = new THREE.Geometry()\n geometriaPinza.vertices.push(\n new THREE.Vector3(0, -10, 2), // 0\n new THREE.Vector3(0, 10, 2), // 1\n new THREE.Vector3(0, 10, -2), // 2\n new THREE.Vector3(0, -10, -2), // 3\n new THREE.Vector3(19, -10, 2), // 4\n new THREE.Vector3(19, 10, 2), // 5\n new THREE.Vector3(19, 10, -2), // 6\n new THREE.Vector3(19, -10, -2), // 7\n new THREE.Vector3(38, -5, 1), // 8\n new THREE.Vector3(38, 5, 1), // 9\n new THREE.Vector3(38, 5, -1), // 10\n new THREE.Vector3(38, -5, -1) // 11\n )\n geometriaPinza.faces.push(\n // Cara trasera (lo más atrás)\n new THREE.Face3(0, 1, 3),\n new THREE.Face3(1, 2, 3),\n // Atrás izquierda\n new THREE.Face3(0, 4, 1),\n new THREE.Face3(1, 4, 5),\n // Atrás abajo\n new THREE.Face3(0, 3, 4),\n new THREE.Face3(3, 7, 4),\n // Atrás derecha\n new THREE.Face3(3, 2, 6),\n new THREE.Face3(3, 6, 7),\n // Atrás arriba\n new THREE.Face3(1, 5, 2),\n new THREE.Face3(2, 5, 6),\n // Adelante izquierda\n new THREE.Face3(4, 8, 5),\n new THREE.Face3(5, 8, 9),\n // Adelante abajo\n new THREE.Face3(4, 7, 8),\n new THREE.Face3(7, 11, 8),\n // Adelante derecha\n new THREE.Face3(7, 6, 10),\n new THREE.Face3(7, 10, 11),\n // Adelante arriba\n new THREE.Face3(5, 9, 6),\n new THREE.Face3(6, 9, 10),\n // Cara frontal (lo más adelante)\n new THREE.Face3(8, 10, 9),\n new THREE.Face3(8, 11, 10),\n )\n geometriaPinza.computeFaceNormals()\n\n // Declarar objetos.\n // Objeto := geometría + material\n var suelo = new THREE.Mesh(geometriaSuelo, materialSuelo)\n // suelo.rotation.x = -Math.PI / 2\n suelo.receiveShadow = true\n\n base = new THREE.Mesh(geometriaBase, materialBrillante)\n // base.rotation.x = Math.PI / 2\n base.castShadow = true\n base.receiveShadow = true\n\n var eje = new THREE.Mesh(geometriaEje, materialBrillante)\n eje.rotation.x = Math.PI / 2\n eje.castShadow = true\n eje.receiveShadow = true\n\n var esparrago = new THREE.Mesh(geometriaEsparrago, materialMate)\n esparrago.position.y = 60\n esparrago.castShadow = true\n esparrago.receiveShadow = true\n\n var rotula = new THREE.Mesh(geometriaRotula, materialRotula)\n rotula.position.y = 120\n rotula.castShadow = true\n rotula.receiveShadow = true\n\n var disco = new THREE.Mesh(geometriaDisco, materialBrillante)\n disco.castShadow = true\n disco.receiveShadow = true\n\n var nervio1 = new THREE.Mesh(geometriaNervio, materialMate)\n nervio1.position.y = 40\n nervio1.position.x = 10\n nervio1.position.z = 10\n nervio1.castShadow = true\n nervio1.receiveShadow = true\n\n var nervio2 = new THREE.Mesh(geometriaNervio, materialMate)\n nervio2.position.y = 40\n nervio2.position.x = 10\n nervio2.position.z = -10\n nervio2.castShadow = true\n nervio2.receiveShadow = true\n \n var nervio3 = new THREE.Mesh(geometriaNervio, materialMate)\n nervio3.position.y = 40\n nervio3.position.x = -10\n nervio3.position.z = 10\n nervio3.castShadow = true\n nervio3.receiveShadow = true\n \n var nervio4 = new THREE.Mesh(geometriaNervio, materialMate)\n nervio4.position.y = 40\n nervio4.position.x = -10\n nervio4.position.z = -10\n nervio4.castShadow = true\n nervio4.receiveShadow = true\n \n mano = new THREE.Mesh(geometriaMano, materialBrillante)\n mano.position.y = 80\n mano.rotation.x = Math.PI / 2\n mano.castShadow = true\n mano.receiveShadow = true\n \n // Pinzas\n pinzaIzq = new THREE.Mesh(geometriaPinza, materialBrillante)\n pinzaIzq.rotation.x = Math.PI / 2\n pinzaIzq.position.x = 10\n pinzaIzq.position.y = -15\n pinzaIzq.castShadow = true\n pinzaIzq.receiveShadow = true\n // pinzaIzq.position.z = -10\n\n pinzaDer = new THREE.Mesh(geometriaPinza, materialBrillante)\n pinzaDer.rotation.x = -Math.PI / 2\n pinzaDer.position.x = 10\n pinzaDer.position.y = 15\n // pinzaDer.position.z = -10\n // pinzaDer.rotation.x = 10\n pinzaDer.castShadow = true\n pinzaDer.receiveShadow = true\n\n // Construir la escena.\n scene.add(suelo)\n suelo.add(base)\n base.add(brazo)\n brazo.add(eje)\n brazo.add(esparrago)\n brazo.add(rotula)\n brazo.add(antebrazo)\n antebrazo.add(disco)\n antebrazo.add(nervio1)\n antebrazo.add(nervio2)\n antebrazo.add(nervio3)\n antebrazo.add(nervio4)\n antebrazo.add(mano)\n mano.add(pinzaIzq)\n mano.add(pinzaDer)\n}", "title": "" }, { "docid": "d6eb646f8395cc12fbc532f055af1b6a", "score": "0.5308662", "text": "seperation(locals) {\r\n\r\n var avg = createVector(0, 0);\r\n\r\n for (const local of locals)\r\n if (this.pos.dist(local.pos) < 20)\r\n avg.add(this.pos.copy().sub(local.pos))\r\n\r\n avg.mult(seperationFactor) // Adjust by this %\r\n\r\n this.applyForce(avg)\r\n }", "title": "" }, { "docid": "219e090cd18cf4f9c6de9128d82ed617", "score": "0.5307048", "text": "function a$1(a,s){const l=new n$4({enabled:!0,selfEnabled:!1,featureEnabled:!0,distance:s?.distance??p$2.distance,touchSensitivityMultiplier:s?.touchSensitivityMultiplier??p$2.touchSensitivityMultiplier});return {...l$3((()=>a.map?.allLayers?.toArray()??[]),(t=>{l.featureSources=new j$2(t.map((e=>new p$3({layer:e,enabled:!0}))));}),h$1),options:l}}", "title": "" }, { "docid": "512d1da7b05dd91021b0d92d4cf526e7", "score": "0.5305615", "text": "function place_fat_by_edge(tile, num) {\n\n // tile.edge[num].outer = false;\n\n\n var case_need_to_rewrite = -1;\n var tempvec = new Point(0, 0);\n var centre = new Point(0, 0);\n var x1 = tile.edge[num].firstSegment.point.x;\n var y1 = tile.edge[num].firstSegment.point.y;\n var x2 = tile.edge[num].lastSegment.point.x;\n var y2 = tile.edge[num].lastSegment.point.y;\n // var start_cir = new Shape.Circle([x1, y1], 10);\n // start_cir.strokeColor = 'blue';\n // var end_cir = new Shape.Circle([x2, y2], 20);\n // end_cir.strokeColor = 'pink';\n\n\n\n // === ================================== =============\n // == == ================================ == ============\n // == ============ ======= ============= ============ ==\n // = ===== == ===== == ====== ===== == =\n // == ===== = == ======= == ====== ===== = == ==\n // == ======== == ======= == = ====== ======== == ==\n // == ====== == ======= == = ====== ====== == ==\n // == ===== = == ======= == = ====== ===== = == ==\n // == ====== == ====== == ======= ====== == =\n // ==========================================================\n if (tile.type == 'fat') {\n\n // console.log('fat');\n\n if (tile.edge[num].vert == 'ab') {\n // console.log('we need to fit tile with da')\n case_need_to_rewrite = 0;\n }\n if (tile.edge[num].vert == 'bc') {\n // console.log('we need to fit tile with cd')\n case_need_to_rewrite = 1;\n }\n if (tile.edge[num].vert == 'cd') {\n // console.log('we need to fit tile with bc')\n case_need_to_rewrite = 2;\n }\n if (tile.edge[num].vert == 'da') {\n // console.log('we need to fit tile with ab')\n case_need_to_rewrite = 3;\n }\n\n\n //CASE AB -- 0th case:\n if (case_need_to_rewrite === 0) {\n tempvec = tile.ab.rotate(72, [0, 0]);\n centre = tile.vert[0] + (tile.ab + tempvec) / 2;\n\n ytile = new Fat_Tile(centre.x, centre.y, -72 + tile.rotation);\n }\n //CASE BC -- 1th case:\n\n if (case_need_to_rewrite == 1) {\n tempvec = tile.bc.rotate(108, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[1], tile.vert[1]+tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[1] + (tile.bc + tempvec) / 2;\n // tile.edge[1].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, 72 + tile.rotation);\n }\n\n\n //CASE CD -- 2th case:\n if (case_need_to_rewrite == 2) {\n tempvec = tile.cd.rotate(72, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[2], tile.vert[2] + tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[2] + (tile.cd + tempvec) / 2;\n // tile.edge[2].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, -72 + tile.rotation);\n }\n\n //case DA\n if (case_need_to_rewrite == 3) {\n tempvec = tile.da.rotate(108, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[3], tile.vert[3] + tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[3] + (tile.da + tempvec) / 2;\n // tile.edge[3].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, 72 + tile.rotation);\n }\n }\n\n\n // ===========================================================\n // === ===================================== =============\n // == == ==================================== =============\n // == ============ ======= ============= == =============\n // = ===== == ===== == ====== = ==== = = ==\n // == ===== = == ======= == ====== == ===== =\n // == ======== == ======= == = ====== == = = = = =\n // == ====== == ======= == = ====== == = = = = =\n // == ===== = == ======= == = ====== == = = = = =\n // == ====== == ====== == ======= = = = = = =\n // ===========================================================\n\n if (tile.type == 'thin') {\n\n // console.log('i cant do it ');\n\n if (tile.edge[num].vert == 'ab') {\n // console.log('we need to fit tile with da')\n case_need_to_rewrite = 0;\n }\n if (tile.edge[num].vert == 'bc') {\n // console.log('we need to fit tile with cd')\n case_need_to_rewrite = 1;\n }\n if (tile.edge[num].vert == 'cd') {\n // console.log('we need to fit tile with bc')\n case_need_to_rewrite = 2;\n }\n if (tile.edge[num].vert == 'da') {\n // console.log('we need to fit tile with ab')\n case_need_to_rewrite = 3;\n }\n\n\n //CASE AB -- 0th case:\n if (case_need_to_rewrite === 0) {\n tempvec = tile.ab.rotate(108, [0, 0]);\n centre = tile.vert[0] + (tile.ab + tempvec) / 2;\n // var temp_vec_path = new Path(tile.vert[0], tile.vert[0] + tempvec);\n // temp_vec_path.strokeColor = 'green';\n\n ytile = new Fat_Tile(centre.x, centre.y, 198 + tile.rotation);\n }\n //CASE BC -- 1th case:\n\n if (case_need_to_rewrite == 1) {\n tempvec = tile.bc.rotate(72, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[1], tile.vert[1]+tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[1] + (tile.bc + tempvec) / 2;\n // tile.edge[1].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, -18 + tile.rotation);\n }\n\n\n //CASE CD -- 2th case:\n if (case_need_to_rewrite == 2) {\n tempvec = tile.cd.rotate(72, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[2], tile.vert[2] + tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[2] + (tile.cd + tempvec) / 2;\n // tile.edge[2].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, -54 + tile.rotation);\n }\n\n //case DA\n if (case_need_to_rewrite == 3) {\n tempvec = tile.da.rotate(108, [0, 0]);\n // var temp_vec_path = new Path(tile.vert[3], tile.vert[3] + tempvec);\n // temp_vec_path.strokeColor = 'green';\n centre = tile.vert[3] + (tile.da + tempvec) / 2;\n // tile.edge[3].strokeColor = 'pink';\n\n ytile = new Fat_Tile(centre.x, centre.y, -18 - 18 - 36 - 36 - 18 + tile.rotation);\n }\n }\n\n\n return ytile;\n\n}", "title": "" }, { "docid": "9f7762ba3d8f7f02d237f86077471244", "score": "0.53034997", "text": "function Spriteset_Fog() {\n this.initialize(...arguments);\n }", "title": "" }, { "docid": "72effb04d232b11a23334005aad2ff93", "score": "0.5303092", "text": "async function $(s,o){const i=q(a$j(s));if(\"wosr\"===i.fileType){const e=await(o.cache?o.cache.loadWOSR(i.url,o):x(i.url,o)),t=b(e,o);return {lods:[t],referenceBoundingBox:t.boundingBox,isEsriSymbolResource:!1,isWosr:!0,remove:e.remove}}const a=await(o.cache?o.cache.loadGLTF(i.url,o,o.usePBR):l$c(new n$h(o.streamDataRequester),i.url,o,o.usePBR)),u=m$5(a.model.meta,\"ESRI_proxyEllipsoid\");a.meta.isEsriSymbolResource&&r$g(u)&&-1!==a.meta.uri.indexOf(\"/RealisticTrees/\")&&J(a,u);const n=a.meta.isEsriSymbolResource?{usePBR:o.usePBR,isSchematic:!1,treeRendering:a.customMeta.esriTreeRendering,mrrFactors:[0,1,.2]}:{usePBR:o.usePBR,isSchematic:!1,mrrFactors:[0,1,.5]},l={...o.materialParamsMixin,treeRendering:a.customMeta.esriTreeRendering};if(null!=i.specifiedLodIndex){const e=K(a,n,l,i.specifiedLodIndex);let t=e[0].boundingBox;if(0!==i.specifiedLodIndex){t=K(a,n,l,0)[0].boundingBox;}return {lods:e,referenceBoundingBox:t,isEsriSymbolResource:a.meta.isEsriSymbolResource,isWosr:!1,remove:a.remove}}const c=K(a,n,l);return {lods:c,referenceBoundingBox:c[0].boundingBox,isEsriSymbolResource:a.meta.isEsriSymbolResource,isWosr:!1,remove:a.remove}}", "title": "" }, { "docid": "541440f819e3344ca88d8a2174a6c3cc", "score": "0.53027916", "text": "function skybox(gl, cam_coord){\n\t//Takes in GL and a displacement, and draws the skybox accordingly\n\tvar x = cam_coord[0];\n\tvar y = cam_coord[1];\n\tvar z = cam_coord[2];\n\t\n\t\t\n\t\tthis.Wtext_coord = new Array();\n\n\t\tfor (var i=0; i<6; i++){\n\t\t\tthis.Wtext_coord.push(vec2(0,0));\n\t\t\tthis.Wtext_coord.push(vec2(0,1));\n\t\t\tthis.Wtext_coord.push(vec2(1,0));\n\t\t\tthis.Wtext_coord.push(vec2(0,1));\n\t\t\tthis.Wtext_coord.push(vec2(1,0));\n\t\t\tthis.Wtext_coord.push(vec2(1,1));\n\t\t\t\n\t\t\t}\n\t\t\n\t\tthis.wall_verts= new Array();\n\t var x = cam_coord[0];\n\t\tvar y = cam_coord[1];\n\t\tvar z = cam_coord[2];\n\t \n \tthis.wall_verts.push(vec3(-240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,240+z));//Face 1 (1,0,0)\n\t\t\t\n\t\t\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,240+z));//Face 2 (0,0,-1)\n\t\t\t\n\t\t\t\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,-240+z));//Face 3 (-1,0,0)\n\t\t\t\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,-240+z));//Face 4 \t(0,0,1)\n\t\t\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,240+y,-240+z));//top\n\t\n\t\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,-240+z));\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,240+z));//Bottom\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,-240+z));\n\t\t\n\t\t\n\t\tthis.wall_verts.push(vec3(-240+x,-240+y,240+z));\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,-240+z));\t\n\t\tthis.wall_verts.push(vec3(240+x,-240+y,240+z));\n\t\n\t\n\tthis.vertBuffer = gl.createBuffer();\n\tif (!this.vertBuffer) {\n console.log('Failed the vert buffer object');\n return -1;\n }\n\n\t\n\tthis.textBuffer = gl.createBuffer();\n\tif (!this.textBuffer) {\n console.log('Failed the index buffer object');\n return -1;\n }\n\n \tgl.bindBuffer(gl.ARRAY_BUFFER, this.vertBuffer);\n \t\tgl.bufferData(gl.ARRAY_BUFFER, flatten(this.wall_verts), gl.STATIC_DRAW);\n\t gl.bindBuffer(gl.ARRAY_BUFFER, this.textBuffer);\n\t gl.bufferData(gl.ARRAY_BUFFER, flatten(this.Wtext_coord),gl.STATIC_DRAW);\n\t\t\n this.a_Position = gl.getAttribLocation(gl.program, 'a_Position');\n if (this.a_Position < 0) {\n console.log('Failed to get storage location');\n return -1;\n }\n\n //draws the skybox\n this.draw = function(gl){\n\t \n \tgl.bindBuffer(gl.ARRAY_BUFFER, this.vertBuffer);\n\t // This time we specify the stride between entries in the buffer\n\t gl.vertexAttribPointer(0, 3, gl.FLOAT, false, 0,0);\n\t gl.enableVertexAttribArray(0);\n\t\tgl.bindBuffer(gl.ARRAY_BUFFER, this.textBuffer);\n\t\tgl.vertexAttribPointer(gl.a_TextCoord, 2, gl.FLOAT, false, 0,0);\n\t\tgl.enableVertexAttribArray(gl.a_TextCoord);\n\t\tgl.uniform1i(gl.u_drawType, 0);\n\t\tgl.uniform1i(gl.drawType, 0);\t\n\t\t\n\t\t//draw negx\n\t\tgl.uniform1i(gl.u_Sampler,1);\n\t\tgl.drawArrays(gl.TRIANGLES, 0, 6);\n\n\t\t//draw posz\n\t\tgl.uniform1i(gl.u_Sampler,6);\n\t\tgl.drawArrays(gl.TRIANGLES, 6, 6);\n\t\t\n\t\t// //draw posx\n\t\tgl.uniform1i(gl.u_Sampler,4);\n\t\tgl.drawArrays(gl.TRIANGLES, 12, 6);\n\n\t\t// //draw negz\n\t\tgl.uniform1i(gl.u_Sampler,3);\n\t\tgl.drawArrays(gl.TRIANGLES, 18, 6);\n\t\t\n\t\t// //draw posy\n\t\tgl.uniform1i(gl.u_Sampler,5);\n\t\tgl.drawArrays(gl.TRIANGLES, 24, 6);\n\t\t\n\t\tgl.uniform1i(gl.u_Sampler,2);\n\t\tgl.drawArrays(gl.TRIANGLES, 30, 6);\n\t}\n\t\n}", "title": "" }, { "docid": "acc94d820fdd191f9d9b28917b2f1770", "score": "0.529703", "text": "function main() {\n return union(\n difference(\n cube({size: 3, center: true}),\n sphere({r:2, center: true})\n ),\n intersection(\n sphere({r: 1.3, center: true}),\n cube({size: 2.1, center: true})\n )\n ).translate([0,0,1.5]).scale(10);\n}", "title": "" }, { "docid": "e48e17ae4c757a7bf4daa6c3cc6fb5bd", "score": "0.5295866", "text": "updateWind() {\n // wind duration should be related to wind magnitude, e.g. higher windspeed means longer gust duration\n this.windMagnitude = Math.random() * this.windMaxSpeed;\n this.windDuration = this.windMagnitude * 50 + (Math.random() * 20 - 10);\n }", "title": "" }, { "docid": "a5298ec981fd13bfa7917ac9b81d0443", "score": "0.5293542", "text": "function TileSystem(gradient) {\n \n}", "title": "" }, { "docid": "6587ff4f76ddf17591526eb1377da3a3", "score": "0.5292633", "text": "function makeSea(obj){\n world.layers[0].data[obj.point] = 2;\n }", "title": "" }, { "docid": "24cf5848064964a99be2723e6cdaca03", "score": "0.5290615", "text": "function setupSnow() {\n gravity = createVector(0, 0.3);\n\n for (let i = 0; i < 150; i++) {\n let x = random(width);\n let y = random(height);\n snow.push(new Snowflake(x, y));\n }\n}", "title": "" }, { "docid": "9ccfc502190fb55c992d9313706de1a2", "score": "0.5287512", "text": "function setupBuffers() {\n setupTerrainBuffers(terrain_detail); \n //setupSphereBuffers(); \n}", "title": "" }, { "docid": "c8cc2235510127b4f8e5c8c499a2ad65", "score": "0.52869225", "text": "function spawn_cloud_layer()\n\t\t{\n\t\t\tvar type, index, position = {};\n\n\t\t\tfor ( var c = 0 ; c < 28 ; c++ ) {\n\t\t\t\ttype = pickRandom( 'cumulus', 'heavy_cumulus', 'small_cumulus', 'cirrus', 'cirrus' );\n\t\t\t\tindex = random_cloud_index( type );\n\n\t\t\t\tposition.x = random( -600, Viewport.width + 600 );\n\t\t\t\tposition.y = random( -600, Viewport.height + 600 );\n\n\t\t\t\tspawn_cloud( index, position.x, position.y );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0866266adad449421a506628aecb2592", "score": "0.528375", "text": "function LightDrawEffects() {\n}", "title": "" }, { "docid": "12d158cb5f9c30e15ebde0621a1301a7", "score": "0.52780026", "text": "function Wheel() {}", "title": "" }, { "docid": "dfa55dc7d3561cb4f225e41d04739faa", "score": "0.52710754", "text": "function FightProcessor() {\n}", "title": "" }, { "docid": "6596d581173dbdce970cdb7d2d02a5b4", "score": "0.52707964", "text": "function setupVariables() {\n\n var pD = pixelDensity();\n //print(pD);\n if (pD < 2) {\n pixelDensity(2);\n }\n\n generate = false;\n pOne = false;\n pTwo = false;\n pThree = false;\n pOneCounter = 0;\n timeBezier = 0;\n xCity = 0;\n yCity = 0;\n xCitySign = 1;\n yCitySign = 1;\n xShift = random(0, 100);\n yShift = random(0, 100);\n sumOfOnes = 0;\n sumOfOnesPN = 0;\n maxHeight = 120;\n pOneCameraMov = false;\n pOneCamCounter = 0;\n pOneSlideCounter = 0;\n pOneCamAngle = 0;\n cam = createCamera();\n cam.camera(-200, -200, (height/2) / tan(PI/6), 0, 0, 0, 0, 1, 0);\n defCamSpeed = 0.005;\n camSpeed = 0.005;\n isPaused = false;\n planeRoadsTexture = createGraphics(150, 150);\n isBTGenerated = false;\n pOneCameraSlide = true;\n pTwoCounter = 0;\n moodColour = 0;\n warmColour = [252, 144, 3];\n coldColour = [3, 75, 252];\n pickedColour = [];\n planeTextAngle = 0;\n planeTextTexture = createGraphics(180, 180);\n averageEmos = [];\n emotionsStrings = [\"positive\", \"negative\", \"anger\", \"anticipation\", \"disgust\", \"fear\", \"joy\", \"sadness\", \"surprise\", \"trust\"];\n fancySymbols = [\"°\", \"'\", \"''\", \"/\", \",\", \".\", \";\", \":\"];\n fW = \"\";\n sW = \"\";\n tW = \"\";\n isPolaroidPicked = 0;\n whatWordsWereFound = [false, false, false];\n notFoundSum = 0;\n showErrorText = false;\n cityCentreX = [];\n cityCentreY = [];\n cityCentreH = [];\n cityCentreFC = [];\n cityCentreSC = [];\n scatteredBX = [];\n scatteredBY = [];\n scatteredBH = [];\n scatteredBA = [];\n newColours = false;\n calculateScatteredBuildings(-454, 458, -442, -200);\n calculateScatteredBuildings(-454, 458, 206, 425);\n calculateScatteredBuildings(-454, -200, -176, 182);\n calculateScatteredBuildings(194, 450, -176, 182);\n firstPicTexture = createGraphics(180, 180);\n progressCounter = 0;\n}", "title": "" }, { "docid": "1c31c60f640f57629938961749ae6a6e", "score": "0.52663195", "text": "function startSnow() {\n startSnowFall();\n}", "title": "" }, { "docid": "b993430cf9899b1fbaeea8e8c01929f5", "score": "0.52649945", "text": "createCelluleMereLayer(){\n this.CelluleMere.forEach(CelluleMere => {\n if( CelluleMere.properties ){\n this.checkColor( CelluleMere.properties[0] );\n }\n createCelluleMere( this.scene, CelluleMere.x*1.6, CelluleMere.y*1.5, this.tab.celluleMere, this.color, player );\n });\n }", "title": "" }, { "docid": "b2a15de577c3595f4d68420a4c7498a2", "score": "0.5263979", "text": "function CloudFactory()\n{\n var cloudOuid = 0;\n var windSpeed = new Vector2(.3, 0);\n this.buildClouds = function(screenLimits, amount)\n {\n var clouds = new Array();\n for (var n = 0; n < amount; n++)\n {\n clouds.push(this.buildCloud(screenLimits));\n }\n return clouds;\n };\n this.buildCloud = function(screenLimits)\n {\n var typeIndex = Math.floor(Math.random() * 3) + 1;\n var cloudInitialPosition = new Vector2(0, 0); \n cloudInitialPosition.set(Math.floor(Math.random() * screenLimits.x), Math.floor(Math.random() * screenLimits.y)); \n var cloud = new Cloud(cloudOuid++, \"cloud_\" + typeIndex, cloudInitialPosition, windSpeed, screenLimits); \n return cloud;\n };\n}", "title": "" }, { "docid": "ebb3075a9fafce6dae53333f0f89f3b6", "score": "0.52605313", "text": "function SSFleet(){}", "title": "" }, { "docid": "feb19a1d0cda338a0810c8c682a947a0", "score": "0.52604944", "text": "function render_clouds()\n\t\t{\n\t\t\tscreen.clouds.clear();\n\n\t\t\tif ( is_transitioning) {\n\t\t\t\tupdate_light_color();\n\t\t\t}\n\n\t\t\tscreen.clouds\n\t\t\t\t.setCompositing( 'source-over' )\n\t\t\t\t.setAlpha( 0.7 )\n\t\t\t\t.draw.rectangle( 0, 0, Viewport.width, Viewport.height )\n\t\t\t\t.fill( rgb( light_color.red, light_color.green, light_color.blue ) );\n\n\t\t\t// Cloud/shadow rendering\n\t\t\tvar VIEWPORT_HALF_W = Viewport.width / 2;\n\t\t\tvar VIEWPORT_HALF_H = Viewport.height / 2;\n\t\t\tvar CIRRUS_PARALLAX = ( 40 / VIEWPORT_HALF_W );\n\t\t\tvar NORMAL_PARALLAX = ( 15 / VIEWPORT_HALF_H );\n\t\t\tvar cloud, position, image, shadow, parallax;\n\n\t\t\tfor ( var c = 0 ; c < clouds.length ; c++ ) {\n\t\t\t\tcloud = clouds[c];\n\t\t\t\tposition = cloud.get( Point ).getPosition( configuration.pixelSnapping );\n\t\t\t\tcloud = cloud.get( Cloud );\n\t\t\t\timage = cloud.image;\n\t\t\t\tshadow = cloud.shadow;\n\t\t\t\tparallax = ( cloud.type === 'cirrus' ? CIRRUS_PARALLAX : NORMAL_PARALLAX );\n\n\t\t\t\tif ( shadow !== null ) {\n\t\t\t\t\tL.draw.x = position.x + shadow_offset.x;\n\t\t\t\t\tL.draw.y = position.y + shadow_offset.y;\n\n\t\t\t\t\tif ( Sprite.isOnScreen( L.draw.x, L.draw.y, shadow.width, shadow.height ) ) {\n\t\t\t\t\t\tscreen.background.draw.image( shadow, L.draw.x, L.draw.y );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tL.offset.x = ( position.x + image.width / 2 - VIEWPORT_HALF_W ) * parallax;\n\t\t\t\tL.offset.y = ( position.y + image.height / 2 - VIEWPORT_HALF_H ) * parallax;\n\n\t\t\t\tL.draw.x = position.x + L.offset.x;\n\t\t\t\tL.draw.y = position.y + L.offset.y;\n\n\t\t\t\tif ( Sprite.isOnScreen( L.draw.x, L.draw.y, image.width, image.height ) ) {\n\t\t\t\t\tcloud_stage.draw.image( image, L.draw.x, L.draw.y );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Composite [cloud_stage] onto the primary cloud screen\n\t\t\tscreen.clouds.setCompositing( 'destination-atop' ).setAlpha( 1 );\n\t\t\tscreen.clouds.draw.image( cloud_stage.element );\n\t\t\tcloud_stage.clear();\n\t\t}", "title": "" }, { "docid": "303d16124510c4ac555c07c4d13ff9b8", "score": "0.5259766", "text": "function vandg_init() {\n //this.R = 6370997; //Radius of earth\n this.R = this.a;\n}", "title": "" }, { "docid": "da06ee04f0ef6080311dd676214234ab", "score": "0.52565765", "text": "function simpleTDOM(collection,zShadowThresh,zCloudThresh,maskAllDarkPixels){\n //Set up some variables\n var shadowSumBands = ['nir','swir1','swir2']\n var sSName = 'shadowSum'\n var startBandNames = ee.Image(collection.first()).bandNames();\n \n //Add the sum of the infrared to all images\n var collection = collection.map(function(img){\n var shadowSum = img.select(shadowSumBands).reduce(ee.Reducer.sum()).select([0],[sSName])\n return img.addBands(shadowSum);\n })\n \n //If a first cut of masking very dark pixels is chosen, then mask all very dark pixels\n //This works kind of like the two-step approach in Fmask with individual image-based\n //masking and then a time series-based method\n if(maskAllDarkPixels === true){\n collection = collection.map(function(img){\n return img.mask(img.mask().and(img.select([sSName]).gt(shadowThresh)))\n })\n } \n \n //Compute the stdDev and mean of the sum of the infrared bands fo z-score analysis\n var shadowStd = collection.select(sSName).reduce(ee.Reducer.stdDev());\n var shadowMean = collection.select(sSName).mean();\n \n //Compute z-score and mask pixels falling below a specified threshold\n collection = collection.map(function(img){\n var tShadowSum = img.select(shadowSumBands).reduce(ee.Reducer.sum()).select([0],['shadowSumT']);\n var zScore = tShadowSum.subtract(shadowMean).divide(shadowStd).select([0],['zShadow']);\n var m = zScore.gt(zShadowThresh).and(zScore.lt(zCloudThresh));\n return img.mask(img.mask().and(m)).select(startBandNames);\n })\n return collection\n }", "title": "" }, { "docid": "6081b51d3f2350a0979b89b762202489", "score": "0.5256424", "text": "function shopBfxx(diam){\n //define dimensions according to diam\n switch (diam) {\n case 16:\n var dimd1 = 10;\n var dimB = 60;\n var dimB1 = 34;\n var dimH = 43;\n var dimH1 = 32.5;\n var dimh = 25;\n var dimL = 20;\n case 20:\n var dimd1 = 15;\n var dimB = 70;\n var dimB1 = 40;\n var dimH = 48;\n var dimH1 = 38;\n var dimh = 28;\n var dimL = 20;\n default:\n console.log (\"Floating bearing for \" + diam + \"mm diameter ballscrew not yet set up!!\");\n }\n\n //define properties\n this.specUrl = \"http://cnc4you.co.uk/resources/BF%20xx%20Floating%20Bearing.pdf\";\n this.width = dimB;\n this.bscrewZPos = dimh;\n this.thick = dimL;\n this.height = dimH;\n\n //return csg\n this.makeCsg = function() {\n var cube0 = new CSG.cube({corner1: [0,-dimB/2,0], corner2:[dimL,dimB/2,dimH1]});\n var cube1 = new CSG.cube({corner1: [0,-dimB1/2,0], corner2:[dimL,dimB1/2,dimH]});\n var cylCutout = new CSG.cylinder({start: [0,0,dimh], end: [dimL,0,dimh], radius: dimd1/2, resolution:16});\n return cube0.union(cube1).subtract(cylCutout);\n }\n}", "title": "" }, { "docid": "b87e65cabb977ea3445b2008bdfb35a1", "score": "0.5253112", "text": "function drawSnow(ctx, flakes, width, height, ty) {\n ctx.save();\n \n for (var i = 0; i < flakes.length; i++) {\n var mX = -100, mY = -100;\n\n var flake = flakes[i],\n x = mX,\n y = mY,\n minDist = 150,\n x2 = flake.x,\n y2 = flake.y;\n\n var dist = Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y)),\n dx = x2 - x,\n dy = y2 - y;\n\n if (dist < minDist) {\n var force = minDist / (dist * dist),\n xcomp = (x - x2) / dist,\n ycomp = (y - y2) / dist,\n deltaV = force / 2;\n\n flake.velX -= deltaV * xcomp;\n flake.velY -= deltaV * ycomp;\n\n } else {\n flake.velX *= 0.98;\n if (flake.velY <= flake.speed) {\n flake.velY = flake.speed;\n }\n flake.velX += Math.cos(flake.step += 0.05) * flake.stepSize;\n }\n\n ctx.fillStyle = \"rgba(255,255,255,\" + flake.opacity + \")\";\n flake.y += flake.velY;\n flake.x += flake.velX;\n \n if (flakeOutOfBounds(flake, width, height, ty)) {\n reset(flake, width, height, ty);\n }\n ctx.beginPath();\n ctx.arc(flake.x, (flake.y+ty)%height, flake.size, 0, Math.PI * 2);\n ctx.fill();\n }\n \n ctx.restore();\n}", "title": "" }, { "docid": "1c280e71b3d25f852bf512a1da51220c", "score": "0.52412444", "text": "effect() {\n let ret = player[this.layer].points.add(1).tetrate(0.02)\n return ret;\n }", "title": "" }, { "docid": "74c2bdb1679426948513dc926597f080", "score": "0.5240872", "text": "function satellite(){\n image(satImg, mouseX, mouseY, random(130, 140), random(90, 100));\n image(scp2, windowWidth/2 +400, windowHeight/2, 180, 250);\n console.log (\"hello\");\n}", "title": "" }, { "docid": "78f6cc111891c2dc036789a58fdaa370", "score": "0.52371883", "text": "function setupOpfor() {\n\n var col = 0;\n var row = 0;\n var startPosArray = [];\n var mapTuple;\n var unit;\n var ctr = 0;\n var sq;\n\n // how many bad guys (between 5 and 10)\n _rifleSquads = getRandomNum(5, 10);\n // then how many mg sections\n _mgTeams = getRandomNum(0, 3);\n // subtract out mg sections\n _rifleSquads = _rifleSquads - _mgTeams;\n // tack on a possible sniper team\n _sniperTeams = getRandomNum(0, 1);\n\n // for each rifle squad, pick a random spot for them to start\n for (var i = 0; i < _rifleSquads; i++) {\n while (true) {\n col = getRandomNum(1, _cols);\n row = getRandomNum(8, _rows);\n mapTuple = new Tuple(row, col);\n if (!isMapSpotTaken(startPosArray, mapTuple)) {\n startPosArray.push(mapTuple);\n break;\n }\n }\n\n // create unit now that we know map position and add to array\n ctr++;\n unit = {\n type: \"Infantry\",\n size: \"Squad\",\n eff: 3,\n name: \"rifle\" + ctr.toString(),\n player: \"ai\",\n visible: 1,\n active: 0,\n move_max: 3,\n move_cur: 3,\n has_attacked: 0,\n is_suppressed: 0,\n range: 1,\n attack: 3\n };\n _opforArray.push(unit);\n\n // 9/28 - also update main hexarray with this unit\n pos = getArrayPosforRowCol(_mapArray, row, col);\n sq = _mapArray[pos];\n sq.unit = unit;\n _mapArray[pos] = sq;\n\n }\n\n // repeat for each mg section\n for (var j = 0; j < _mgTeams; j++) {\n while (true) {\n col = getRandomNum(1, _cols);\n row = getRandomNum(8, _rows);\n mapTuple = new Tuple(row, col);\n if (!isMapSpotTaken(startPosArray, mapTuple)) {\n startPosArray.push(mapTuple);\n break;\n }\n }\n\n // create unit now that we know map position and add to array\n ctr++;\n unit = {\n type: \"MG\",\n size: \"Team\",\n eff: 3,\n name: \"mg\" + ctr.toString(),\n player: \"ai\",\n visible: 1,\n active: 0,\n move_max: 3,\n move_cur: 3,\n range: 3,\n has_attacked: 0,\n is_suppressed: 0,\n attack: 5\n };\n _opforArray.push(unit);\n\n pos = getArrayPosforRowCol(_mapArray, row, col);\n sq = _mapArray[pos];\n sq.unit = unit;\n _mapArray[pos] = sq;\n\n }\n\n // repeat for each sniper team\n for (var k = 0; k < _sniperTeams; k++) {\n while (true) {\n col = getRandomNum(1, _cols);\n row = getRandomNum(8, _rows);\n mapTuple = new Tuple(row, col);\n if (!isMapSpotTaken(startPosArray, mapTuple)) {\n startPosArray.push(mapTuple);\n break;\n }\n }\n\n // create unit now that we know map position and add to array\n ctr++;\n unit = {\n type: \"Sniper\",\n size: \"Team\",\n eff: 3,\n name: \"sniper\" + ctr.toString(),\n player: \"ai\",\n visible: 1,\n active: 0,\n move_max: 3,\n move_cur: 3,\n range: 5,\n has_attacked: 0,\n is_suppressed: 0,\n attack: 3\n };\n _opforArray.push(unit);\n\n // 9/28 - also update main hexarray with this unit\n pos = getArrayPosforRowCol(_mapArray, row, col);\n sq = _mapArray[pos];\n sq.unit = unit;\n _mapArray[pos] = sq;\n\n }\n\n}", "title": "" }, { "docid": "8fe46d6def30ecc988bef1e86cca11a5", "score": "0.52342093", "text": "function fnShoutout (argImageURL) {\n // Currently using a flat plane\n var sTempTex = THREE.ImageUtils.loadTexture (argImageURL);\n var sTempMat = new THREE.MeshBasicMaterial({map: sTempTex});\n var oTempObj = new THREE.Mesh (\n new THREE.PlaneGeometry (1, 1),\n sTempMat\n );\n oTempObj.position.y = 1.0;\n oTempObj.position.z = -2.9; // JUST in front of back\n oTempObj.doubleSided = false;\n\n // For now, only adds\n scene.add (oTempObj); \n}", "title": "" }, { "docid": "8db6e7e684180ea9207ea87627d3e626", "score": "0.5233618", "text": "function detectAndDestroy(){\n\t\n//Eğer aynı y'ye sahip w*d*4 tane vertice = w*d tane küp varsa o vertice'ler silinir \n\n//y değerleri üzerinde iterasyon\n\tlet objectIndexesAtRow = [];\n\t//Check all planes\n\tfor(var i=ground+(edge_length/2);i<1;i+=edge_length){\n\t\tlet verticesOnY = [];\n\t\tfor(var j=1+walls.length;j<objects.length;j++){\n\t\t\tlet k = 0;\n\t\t\tlet y_nx = getMinMax(objects[j])[1];\n\t\t\twhile(k<objects[j].vertices.length && (y_nx[0]<=i && i<=y_nx[1]) ==false )\n\t\t\t\tk++;\n\t\t\tif(k<objects[j].vertices.length)\n\t\t\t\tverticesOnY.push(j)\n\t\t}\n\t\t//If plane is full, then delete all\n\t\tif(verticesOnY.length >= w_count*h_count){\n\n\t\t\t//Silinme sonrası indexler değişeceği için aşağı itmeyi ilk önce yapmalıyım\n\t\t\tfor(var j=1+walls.length;j<objects.length;j++){\n\t\t\t\t//Objects at lower should not be move down\n\t\t\t\tif(objectIndexesAtRow.includes(j) || verticesOnY.includes(j))\n\t\t\t\t\tcontinue;\n\t\t\t\tmove(objects[j],edge_length,directions.DOWN,true);\n\t\t\t}\n\t\t\t\n\t\t\t// Birden fazla itemi silerken shft etme olayı da olduğu için\n\t\t\t// Son indexten başa doğru silmek gerek\n\t\t\tfor(var k =verticesOnY.length-1;k>=0;k--)\n\t\t\t\tobjects.splice(verticesOnY[k],1);\n\n\t\t\tstackCompleteSound.play();\n\t\t\t\n\t\t\tchangeScore(w_count*h_count*10);\n\t\t}\n\t\telse{\n\t\t\t//If they wont be deleted, then they wont move down\n\t\t\tobjectIndexesAtRow.push(...verticesOnY);\n\t\t}\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "71e30642442df6c8dad414c8ff1ababd", "score": "0.52324873", "text": "function altFlower() {\n\tcolorMode(HSB);\n amp = canvas.width/2;\n translate(width/2, height/2);\n\twindow.draw = drawAltFlower;\n}", "title": "" }, { "docid": "d747fc42d449d0b65ef5116cd71c695f", "score": "0.5231535", "text": "constructor(x, y, z, w) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.w = w;\n }", "title": "" }, { "docid": "369f6329305c9b281b87faa1a40ae8d7", "score": "0.5230348", "text": "function a$3(a){a.include(a$5),a.code.add(t$g`float linearDepthFromFloat(float depth, vec2 nearFar) {\nreturn -(depth * (nearFar[1] - nearFar[0]) + nearFar[0]);\n}\nfloat linearDepthFromTexture(sampler2D depthTex, vec2 uv, vec2 nearFar) {\nreturn linearDepthFromFloat(rgba2float(texture2D(depthTex, uv)), nearFar);\n}`);}", "title": "" }, { "docid": "c5a9e2323a376d5809b33a1fb3311aa6", "score": "0.523004", "text": "function draw_clouds_sine(local_ctx, sun_dir){\n var rand_orientation_x = Math.random()*10-5\n var rand_orientation_y = Math.random()*10-5\n var total_orientations = Math.sqrt(rand_orientation_x*rand_orientation_x+rand_orientation_y*rand_orientation_y)\n rand_orientation_x /= total_orientations\n rand_orientation_y /= total_orientations\n local_ctx.beginPath();\n for (var x = 0; x < size_canvas[0]; x+=12) {\n for (var y = 0; y < 400; y+=12) {\n var prob_cloud = ((Math.sin((rand_orientation_x*x+rand_orientation_y*y)/100))*0.5+0.5)*2;\n if (Math.random() > prob_cloud){\n var gradientx = rand_orientation_x/100*(Math.cos((rand_orientation_x*x+rand_orientation_y*y)/100));\n var gradienty = rand_orientation_y/100*(Math.cos((rand_orientation_x*x+rand_orientation_y*y)/100));\n var grad_length = Math.sqrt(gradientx*gradientx+gradienty*gradienty);\n var gradient = [gradientx/grad_length, gradienty/grad_length];\n\n // var cloud_brightness = 1;\n var cloud_brightness = 1;\n var dot_prod = gradient[0]*sun_dir[0]+gradient[1]*sun_dir[1];\n\n if(dot_prod < 0){\n cloud_brightness -= Math.random()*0.4*Math.abs(dot_prod);\n }\n\n\n // cloud_brightness = (gradient[0]*sun_dir[0]+gradient[1]*sun_dir[1])/2+0.5;\n var blue_tint = 0x10*Math.random();\n\n local_ctx.strokeStyle = \"rgba(\"+(0xFF*cloud_brightness)+\",\"+(0xFF*cloud_brightness)+\",\"+(0xFF*cloud_brightness)+\",\"+0xff+\")\"\n // local_ctx.strokeStyle = \"#FFFFFF\"; //white\n local_ctx.fillStyle = local_ctx.strokeStyle; //white\n local_ctx.arc(x,y,12, 0, 2*Math.PI);\n\n }\n }\n }\n local_ctx.fill();\n}", "title": "" }, { "docid": "c1ff80c72d6f52baeba4d257f1314b51", "score": "0.52278596", "text": "function drawSky() {\n skyblueBackground();\n drawallClouds();\n}", "title": "" }, { "docid": "7e754d5239e726cf2daa4b2cae5c3dfe", "score": "0.52227783", "text": "function Moons(z) {\n var moongeo = new THREE.SphereGeometry(8, 30, 30);\n // const moontexture = new THREE.TextureLoader(manager).load(\"./textures/level2/moonfloor.png\");\n // moontexture.wrapS = THREE.RepeatWrapping;\n // moontexture.wrapT = THREE.RepeatWrapping;\n // moontexture.repeat.set(1, 1);\n // const moonmat = new THREE.MeshStandardMaterial({ map: moontexture });\n const textloader = new THREE.TextureLoader(manager);\n const moonmat = new THREE.MeshStandardMaterial( {color: \"#add8e6\"} );\n moonmat.map = textloader.load(\"./textures/level2/moonfloor.png\");\n moonmat.bumpMap = textloader.load(\"./textures/level2/moonfloor.png\");\n var moon = new THREE.Mesh(moongeo, moonmat);\n // moon.castShadow = true;\n // cone.receiveShadow = false;\n moon.position.y = 12;\n moon.position.z = -60 * z - 15;\n moon.position.x = Math.floor(Math.random() * 100) - 50;\n return moon;\n }", "title": "" }, { "docid": "bd6c48e330767a14796569cc508cd910", "score": "0.5215426", "text": "function addSceneObjs() {\n\t\tvar pedestalMap = THREE.ImageUtils.loadTexture( \"textures/copper-tan-grunge.jpg\" );\n\t\tpedestalMap.wrapS = pedestalMap.wrapT = THREE.RepeatWrapping;\n\t\tpedestalMap.repeat.set(1, 1);\n\t\tpedestalMap.anisotropy = 4;\n\n\t\t// The lower the specular value is, the less shiny the material will be. The closer it is to the diffuse color, the more it will look like metal.\n\t\t//var pedestalMat = new THREE.MeshPhongMaterial( { color: 0xC90000, ambient: 0xC90000, specular: 0xFF0000, shininess: 20} );\n\t\tvar pedestalMat = new THREE.MeshPhongMaterial( { color: 0x543710, ambient: 0x543710, specular: 0x543710, shininess: 10, map: pedestalMap } );\n\n\t\tvar pedestalGeom = new THREE.CubeGeometry(PEDESTAL_NBRS.WIDTH, PEDESTAL_NBRS.HEIGHT, PEDESTAL_NBRS.DEPTH);\n\n\t\tvar pedestal = new THREE.Mesh(pedestalGeom, pedestalMat);\n\t\tpedestal.position.x = 0;\n\t\tpedestal.position.y = PEDESTAL_NBRS.HEIGHT/2;\n\t\tpedestal.position.z = 0;\n\t\tpedestal.receiveShadow = true;\n\t\t_scene.add(pedestal);\n\n\n\t\t//Note: The 5th and 6th parameters must be coprime; otherwise, the result will be a torus link.\n\t\tvar sculptureGeom = new THREE.TorusKnotGeometry(TORUS_KNOT_NBRS.KNOT_RADIUS, TORUS_KNOT_NBRS.TUBE_RADIUS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTORUS_KNOT_NBRS.RADIAL_SEGMENTS, TORUS_KNOT_NBRS.TUBE_SEGMENTS, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTORUS_KNOT_NBRS.COPRIME_INT_P, TORUS_KNOT_NBRS.COPRIME_INT_Q);\n\n\n\t\tvar sculptureMat = new THREE.MeshPhongMaterial( { color: 0xFFFFFF, ambient: 0xFFFFFF, specular: LIGHT_CLRS.ON.getHex(), shininess: 100} );\n\n\t\t_sculpture = new THREE.Mesh(sculptureGeom, sculptureMat);\n\t\t_sculpture.position.set(0, 30, 0);\n\t\t_sculpture.receiveShadow = true;\n\t\t_scene.add(_sculpture);\n\t}", "title": "" }, { "docid": "5dceb548dd94f3d47bf32dfa7ff7fe0c", "score": "0.5215227", "text": "function cloud() {\n this.wide = Math.random() * (60) + 60;\n this.high = Math.random() * (20) + 20;\n this.xPos = Math.random() * (400 - 2 * this.wide) + this.wide;\n this.yPos = Math.random() * (100 - this.high) + this.high;\n this.speed = Math.random() * (5);\n this.color = [Math.random() * (255 - 240) + 240, Math.random() * (255 - 240) + 240, Math.random() * (255 - 240) + 240, Math.random() * (225 - 125) + 125];\n this.drawCloud = function () {\n noStroke();\n fill(this.color);\n for (var i = this.yPos - this.high; i < this.high + this.yPos; i += .5) {\n for (var a = this.xPos - this.wide; a < this.wide + this.xPos; a += 4) {\n fill(this.color);\n if (implicitEllipse(a, i, this.xPos - this.wide / 5, this.yPos, this.wide / 3, this.high / 2) < 0 ||\n implicitEllipse(a, i, this.xPos, this.yPos - this.high / 7, this.wide / 3, this.high / 2) < 0 ||\n implicitEllipse(a, i, this.xPos + this.wide / 5, this.yPos, this.wide / 3, this.high / 2) < 0) {\n ellipse(a + random(-1, 1), i + random(-1, 1), 5, 1);\n }\n }\n }\n }\n this.updatePosition = function () {\n if (this.xPos + this.speed < 400)\n this.xPos += this.speed;\n else\n this.xPos = -this.wide;\n }\n}", "title": "" }, { "docid": "586bd4fee33abb3389f012b0ca902051", "score": "0.5214909", "text": "getLightsInX(){\n\n }", "title": "" }, { "docid": "ef1a2f855787762610df808f2f32e28b", "score": "0.5214587", "text": "function gonomic() {\n const factor = 1 / sqrt(1 + (x * x + y * y) / rView2);\n x *= factor;\n y *= factor;\n z = rView * factor;\n}", "title": "" }, { "docid": "4bf970664e0e96b90409cc734d238bb8", "score": "0.52120507", "text": "globalGoals(expandedPoint) {\n let xpos = expandedPoint.position[0] + this.gridSize * this.forward[0];\n let ypos = expandedPoint.position[1] + this.gridSize * this.forward[1];\n let zpos = expandedPoint.position[2] + this.gridSize * this.forward[2];\n expandedPoint.position = vec3.fromValues(xpos, ypos, zpos);\n }", "title": "" }, { "docid": "2143a110d2592576d35e7f39deb8773a", "score": "0.5206379", "text": "function addFlake(){\n //console.log(currenttrial_t)\n //console.log(colour_eachdot[currenttrial_t])\n //console.log(speed_eachdot[currenttrial_t])\n var x=Math.floor(Math.random() * cW) + 1;\n var y=cH/4;\n var s=(speed_eachdot[currenttrial_t]+sspread*speed_eachdot[currenttrial_t]*Math.sqrt(-2*Math.log(Math.random()))*Math.cos(2*Math.PI*Math.random()));\n var rc=Math.round(255*colour_eachdot[currenttrial_t]+colour_spread*Math.sqrt(-2*Math.log(Math.random()))*Math.cos(2*Math.PI*Math.random()));\n if (rc>255){rc=255}; //colour must be between 0-255\n if (rc<0){rc=0};\n //console.log(s); console.log(rc);\n\n var rb=255-rc; /*blue color-want it to be between 1 and 255 at the moment...*/\n var rot=Math.random(); //not making them go in different direction at the moment but could do later if we wanted to...\n var ang=Math.floor(Math.random()*2+1); /*how much moving in x direction as well? Can change overall angle?*/\n var ext=Math.round(Math.random()*liferange)+minlife; //setting lifetime for flake between minlife and maxlife...\n\n flakes.push({\"x\":x,\"y\":y,\"s\":s,\"rc\":rc, \"rb\":rb, \"rot\":rot, \"ang\":ang, \"ext\":ext}); //\n console.log(flakes[1].ext);\n }", "title": "" }, { "docid": "87c7bc64c8b1fb937558fa6b7565a79d", "score": "0.52052766", "text": "function spotlightSquare(elem){\n\tvar lightBeam = elem.getBoundingClientRect(); \n\tdarknessFalls(lightBeam);\n\t\n}", "title": "" }, { "docid": "9cd04805a63667a8e50948f47d6826fe", "score": "0.52046883", "text": "function trickShot() {\n\n}", "title": "" }, { "docid": "d6211eeeb76a3f73cedc06a0bf6fa62f", "score": "0.52043355", "text": "_initScene() {\n\n\t\t// rendering setup\n\n\t\tthis.camera = new PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 0.1, 200 );\n\t\tthis.camera.position.set( 0, 10, 20 );\n\n\t\tthis.scene = new Scene();\n\t\tthis.scene.background = new Color( 0x94dbe2 );\n\t\tthis.scene.fog = new Fog( 0x94dbe2, 40, 50 );\n\t\tthis.camera.lookAt( this.scene.position );\n\n\t\tconst ambientLight = new AmbientLight( 0xcccccc, 0.4 );\n\t\tambientLight.matrixAutoUpdate = false;\n\t\tthis.scene.add( ambientLight );\n\n\t\tconst dirLight = new DirectionalLight( 0xffffff, 0.6 );\n\t\tdirLight.position.set( 5, 20, - 5 );\n\t\tdirLight.matrixAutoUpdate = false;\n\t\tdirLight.updateMatrix();\n\t\tdirLight.castShadow = true;\n\t\tdirLight.shadow.camera.top = 15;\n\t\tdirLight.shadow.camera.bottom = - 15;\n\t\tdirLight.shadow.camera.left = - 15;\n\t\tdirLight.shadow.camera.right = 15;\n\t\tdirLight.shadow.camera.near = 1;\n\t\tdirLight.shadow.camera.far = 25;\n\t\tdirLight.shadow.mapSize.x = 2048;\n\t\tdirLight.shadow.mapSize.y = 2048;\n\t\tdirLight.shadow.bias = 0.01;\n\t\tthis.scene.add( dirLight );\n\n\t\tthis.renderer = new WebGLRenderer( { antialias: true } );\n\t\tthis.renderer.setSize( window.innerWidth, window.innerHeight );\n\t\tthis.renderer.outputEncoding = sRGBEncoding;\n\t\tthis.renderer.shadowMap.enabled = true;\n\t\tthis.renderer.shadowMap.type = PCFSoftShadowMap;\n\t\tdocument.body.appendChild( this.renderer.domElement );\n\n\t\twindow.addEventListener( 'resize', this._onWindowResize, false );\n\n\t\t// ground\n\n\t\tconst groundGeometry = new PlaneBufferGeometry( 250, 250 );\n\t\tgroundGeometry.rotateX( Math.PI * - 0.5 );\n\t\tconst groundMaterial = new MeshBasicMaterial( { color: new Color( 0xdb8d6e ).convertSRGBToLinear(), depthWrite: false } );\n\t\tconst groundMesh = new Mesh( groundGeometry, groundMaterial );\n\t\tgroundMesh.matrixAutoUpdate = false;\n\t\tgroundMesh.renderOrder = - Infinity;\n\t\tthis.scene.add( groundMesh );\n\n\t}", "title": "" }, { "docid": "21cb7f3706caa3603f170f5f625c79aa", "score": "0.5203309", "text": "function plant () {}", "title": "" }, { "docid": "358ef144105d57c0d3b89710bc9b98ed", "score": "0.519794", "text": "function draw() {\n //clouds(everything below)\n noStroke();\n fill(159, 138, 160);\n ellipse(25, 45, 200, 15);\n ellipse(95, 55, 200, 15);\n ellipse(105, 75, 200, 15);\n ellipse(160, 65, 200, 15);\n ellipse(200, 45, 200, 15);\n ellipse(425, 45, 200, 15);\n ellipse(395, 55, 200, 15);\n ellipse(405, 75, 200, 15);\n ellipse(460, 65, 200, 15);\n ellipse(300, 45, 200, 15);\n ellipse(560, 65, 200, 15);\n ellipse(500, 45, 200, 15);\n ellipse(25, 95, 200, 15);\n ellipse(395, 85, 200, 15);\n ellipse(405, 105, 200, 15);\n ellipse(460, 105, 200, 15);\n ellipse(300, 95, 200, 15);\n ellipse(560, 95, 200, 15);\n ellipse(500, 105, 200, 15);\n ellipse(105, 108, 200, 15);\n ellipse(95, 175, 200, 15);\n ellipse(105, 195, 200, 15);\n ellipse(160, 195, 200, 15);\n ellipse(200, 165, 200, 15);\n ellipse(425, 165, 200, 15);\n ellipse(395, 175, 200, 15);\n ellipse(405, 195, 200, 15);\n ellipse(460, 195, 200, 15);\n ellipse(300, 165, 200, 15);\n ellipse(560, 185, 200, 15);\n ellipse(500, 175, 200, 15);\n//alien\n noStroke();\n fill(200);//lighter\n ellipse(320, 460, 300, 260) //body\n fill(170);//darker\n ellipse(320, 260, 185, 280);//head\n circle(321, 245, 210)//ocular space\n ellipse(320, 200, 230, 190);\n fill(0);\n circle (280, 260, 80);//main eye\n circle (375, 260, 80);//main eye\n fill(191, 255, 0);//neon green\n ellipse(280, 258, 10, 40);//iris\n ellipse(375, 258, 10, 40);//iris\n fill(0);\n ellipse(280, 280, 5, 15);//pupil\n ellipse(375, 280, 5, 15);//pupil\n ellipse(280, 238, 5, 15);//pupil\n ellipse(375, 238, 5, 15);//pupil\n ellipse(320, 320, 5, 20);//nose hole\n ellipse(340, 320, 5, 20);//nose hole\n stroke(255, 0, 0);\n strokeWeight(2);\n rect(320, 350, 20, 10, 4, 4, 1, 1)\n\n//UFO\n fill(50);\n stroke(191, 255, 0);\n strokeWeight(2);\n ellipse(25, 185, 40, 25);\n ellipse(25, 195, 100, 25);\nfill(244, 222, 19);\nnoStroke();\nellipse(25, 198, 20, 6); //beam hole at bottom of UFO\n\n//clouds just covering UFO\n noStroke();\n fill(159, 138, 160);\n ellipse(25, 170, 200, 15);\n\n//lights\nfill(25, 198, 229);\ncircle(1, 189, 4);\nfill(255, 0, 0);\ncircle(9, 187.9, 4);\nfill(25, 198, 229);\ncircle(16.5, 187.5, 4);\n\nfill(255, 0, 0);\ncircle(25, 187.5, 4);\nfill(25, 198, 229);\ncircle(33, 188, 4);\n\nfill(255, 0, 0);\ncircle(42, 188.5, 4);\nfill(25, 198, 229);\ncircle(50.4, 189.5, 4);\n\nfill(255, 0, 0);\ncircle(59, 190.9, 4);\nfill(25, 198, 229);\ncircle(68, 193.5, 4);\n\n//beam from UFO\nfill(244, 222, 19, 170);\ntriangle(25, 198, 15, 600, 100, 600)\n\n\n\n\n\n\n//see online: https://amdevito.github.io/cart253_AlanaDeVito/Activities/02-draw-an-alien/\n\n\n\n\n\n\n}", "title": "" }, { "docid": "0ed79a2a30d5a2c134fff5a70f399815", "score": "0.5190028", "text": "function createGlowingPlanets() {\n var img = document.querySelectorAll('.work_directions .wrapper .direction .direction_wrapper .service img');\n var parent = document.querySelectorAll('.work_directions .wrapper .direction .direction_wrapper .service');\n for (var i = 0; i < img.length; i++) {\n var new_elem = document.createElement('div');\n new_elem.classList.add('glowing');\n parent[i].insertBefore(new_elem, img[i]);\n }\n }", "title": "" }, { "docid": "3a23988cdfb1d2d696246e4d2cacb8c4", "score": "0.51887953", "text": "function createSun(orbit) { \n const material = new THREE.MeshPhongMaterial({\n // Diffuse Texture\n map: new THREE.TextureLoader().load('/Solar_system/IMAGES/sun.jpeg'),\n\n // Bump Texture\n bumpMap: new THREE.TextureLoader().load('/Solar_system/IMAGES/sunbump.jpeg'),\n bumpScale: 0.1,\n });\n const geometry = new THREE.SphereGeometry(sunRadius * zoomFactor, 50, 50);\n const mesh = new THREE.Mesh(geometry, material);\n mesh.position.set(0, 0, 0);\n orbit.add(mesh);\n return mesh;\n}", "title": "" }, { "docid": "ce3172699e4e1945f1d1861127447b77", "score": "0.51807916", "text": "constructor(essential) {\n // Position and speed\n this.x = essential.x;\n this.y = essential.y;\n this.speed = 5;\n\n // Essentials properties\n this.essentialImg = essential.img;\n this.radius = 35;\n this.awarenessIncrement = false;\n this.goalFound = false;\n this.fillColor = color(255);\n // If player overlapped family or friend image, makes these sound.\n this.friendSound = 0;\n this.familySound = 0;\n }", "title": "" }, { "docid": "00fdb975c4b325918b2113465f0f1e32", "score": "0.51799184", "text": "function main() {\n const canvas = document.querySelector('#c');\n const renderer = new THREE.WebGLRenderer({canvas});\n \n //camera\n const camera = new THREE.PerspectiveCamera(45, 2, 0.1, 100);\n camera.position.set(0, 10, 20);\n \n //control\n const controls = new OrbitControls(camera, canvas);\n controls.target.set(0,0,0)\n controls.update()\n\n const scene = new THREE.Scene();\n scene.background = new THREE.Color('black');\n\n {\n \n //shadow\n const color = 0xFFFFFF;\n const intensity = 0.5;\n const lightDir = new THREE.DirectionalLight(color, intensity);\n lightDir.position.set(5, 10, 2);\n scene.add(lightDir);\n scene.add(lightDir.target);\n lightDir.shadow.mapSize.width = 512; // default\n lightDir.shadow.mapSize.height = 512; // default\n lightDir.shadow.camera.near = 0.5; // default\n lightDir.shadow.camera.far = 500; // default\n }\n\n \n \n\n function frameArea(sizeToFitOnScreen, boxSize, boxCenter, camera) {\n const halfSizeToFitOnScreen = sizeToFitOnScreen * 0.5;\n const halfFovY = THREE.MathUtils.degToRad(camera.fov * .5);\n const distance = halfSizeToFitOnScreen / Math.tan(halfFovY);\n\n const direction = (new THREE.Vector3())\n .subVectors(camera.position, boxCenter)\n .multiply(new THREE.Vector3(1, 0, 1))\n .normalize();\n\n camera.position.copy(direction.multiplyScalar(distance).add(boxCenter));\n\n camera.near = boxSize / 100;\n camera.far = boxSize * 100;\n\n camera.updateProjectionMatrix();\n\n camera.lookAt(boxCenter.x, boxCenter.y, boxCenter.z);\n }\n\n {\n const gltfLoader = new GLTFLoader();\n gltfLoader.load('/task 4 grafkomb/neko/scene.gltf', (gltf) => {\n const root = gltf.scene;\n // root.position.x=10;\n scene.add(root);\n \n const box = new THREE.Box3().setFromObject(root);\n const boxSize = box.getSize(new THREE.Vector3()).length();\n const boxCenter = box.getCenter(new THREE.Vector3());\n\n // set the camera to frame the box\n frameArea(boxSize * 0.5, boxSize, boxCenter, camera);\n\n // update the Trackball controls to handle the new size\n controls.maxDistance = boxSize * 10;\n controls.target.copy(boxCenter);\n controls.update();\n });\n }\n\n function resizeRendererToDisplaySize(renderer) {\n const canvas = renderer.domElement;\n const width = canvas.clientWidth;\n const height = canvas.clientHeight;\n const needResize = canvas.width !== width || canvas.height !== height;\n if (needResize) {\n renderer.setSize(width, height, false);\n }\n return needResize;\n }\n\n function render() {\n if (resizeRendererToDisplaySize(renderer)) {\n const canvas = renderer.domElement;\n camera.aspect = canvas.clientWidth / canvas.clientHeight;\n camera.updateProjectionMatrix();\n }\n\n renderer.render(scene, camera);\n requestAnimationFrame(render);\n }\n\n requestAnimationFrame(render);\n}", "title": "" }, { "docid": "07fee6abeada0ff641a80b914fc6cd47", "score": "0.51793635", "text": "function Wit() {}", "title": "" }, { "docid": "f1989acb7a73b7dc0306d2f2d7a86bc6", "score": "0.51731235", "text": "function updateVenues(){\r\n $('path').remove();\r\n $('.leaflet-marker-pane img').not(':first').remove();\r\n var position=marker.getLatLng();\r\n\r\n var point=turf.point(position.lng, position.lat);\r\n\r\n //draw buffer\r\n var bufferLayer = L.mapbox.featureLayer().addTo(map);\r\n var buffer = pointBuffer(point, .25, 'miles', 120);\r\n buffer.properties = {\r\n \"fill\": \"#00704A\",\r\n \"fill-opacity\":0.1,\r\n \"stroke\": \"#00704A\",\r\n \"stroke-width\": 2,\r\n \"stroke-opacity\": 0.5\r\n };\r\n\r\n bufferLayer.setGeoJSON(buffer);\r\n //var within = turf.within(fc,bufferLayer.getGeoJSON());\r\n\r\n var within = turf.featurecollection(fc.features.filter(function(shop){\r\n if (turf.distance(shop, point, 'miles') <= .25) return true;\r\n }));\r\n $('#milecount').html(within.features.length);\r\n function mileConvert(miles){\r\n if (miles<=0.25){\r\n return (miles*5280).toFixed(0)+' ft';\r\n } else {\r\n return miles.toFixed(2) +' mi';\r\n }\r\n }\r\n within.features.forEach(function(feature){\r\n var distance = parseFloat(turf.distance(point, feature, 'miles'));\r\n feature.properties[\"marker-color\"] = \"C73E3E\";\r\n feature.properties[\"title\"] = '<span>'+mileConvert(distance)+'</span><br>'+feature.properties[\"name\"]+'<br>Bikes: '+feature.properties[\"nbBikes\"]+'<br>Empty Docks: '+feature.properties[\"nbEmptyDocks\"];\r\n feature.properties[\"marker-size\"] = \"medium\";\r\n feature.properties[\"marker-symbol\"] = \"bicycle\";\r\n })\r\n\r\n var nearest = turf.nearest(point, fc);\r\n var nearestdist = parseFloat(turf.distance(point, nearest, 'miles'));\r\n\r\n nearest.properties[\"marker-color\"] = \"C73E3E\";\r\n nearest.properties[\"title\"] = '<span>'+mileConvert(nearestdist)+' (nearest)</span><br>'+nearest.properties[\"name\"]+'<br>Bikes: '+nearest.properties[\"nbBikes\"]+'<br>Empty Docks: '+nearest.properties[\"nbEmptyDocks\"];\r\n nearest.properties[\"marker-size\"] = \"large\";\r\n nearest.properties[\"marker-symbol\"] = \"bicycle\";\r\n\r\n var nearest_fc = L.mapbox.featureLayer().setGeoJSON(turf.featurecollection([within, nearest])).addTo(map);\r\n\r\n nearest_fc.on('mouseover', function(e) {\r\n e.layer.openPopup();\r\n });\r\n nearest_fc.on('mouseout', function(e) {\r\n e.layer.closePopup();\r\n });\r\n\r\n nearest_fc.on('click', function(e){\r\n //remove layers\r\n map.removeLayer(marker);\r\n map.removeLayer(bufferLayer);\r\n map.removeLayer(nearest_fc);\r\n\r\n //save starting location\r\n start = turf.point(e.latlng.lng, e.latlng.lat);\r\n\r\n //highlight starting location\r\n start.properties[\"marker-color\"] = '56b881';\r\n start.properties[\"marker-size\"] = \"large\";\r\n start.properties[\"marker-symbol\"] = \"star\";\r\n\r\n //update modal\r\n $('#start-location').removeClass('fill-white').addClass('fill-green');\r\n $('#start-location .content').hide();\r\n $('#start-location .label').text('start location');\r\n $('#start-location .selection').text(e.layer.feature.properties[\"name\"]);\r\n //step2\r\n $('#destination').removeClass('fill-gray').addClass('fill-white');\r\n $('#destination .content').show();\r\n\r\n //show all points\r\n fc.features.forEach(function(feature){\r\n feature.properties[\"marker-color\"] = \"C73E3E\";\r\n feature.properties[\"title\"] = '<span></span><br>'+feature.properties[\"name\"]+'<br>Bikes: '+feature.properties[\"nbBikes\"]+'<br>Empty Docks: '+feature.properties[\"nbEmptyDocks\"];\r\n feature.properties[\"marker-size\"] = \"medium\";\r\n feature.properties[\"marker-symbol\"] = \"bicycle\";\r\n })\r\n\r\n var all_stations = L.mapbox.featureLayer().setGeoJSON(fc).addTo(map);\r\n var startLayer = L.mapbox.featureLayer().setGeoJSON(turf.featurecollection([start])).addTo(map);\r\n\r\n //map on mousemove find nearest turf, distance from start\r\n var nearest_dest;\r\n var nearest_layer;\r\n map.on('mousemove', function(e){\r\n //build point\r\n var mouseLoc = turf.point(e.latlng.lng, e.latlng.lat);\r\n\r\n //get distance from start to nearest, then update the modal\r\n var route_dist = parseFloat(turf.distance(mouseLoc, start, 'miles'));\r\n route_dist = route_dist.toFixed(2);\r\n $('#distToStart').text(route_dist);\r\n\r\n //if nearest hasn't changed, don't do anything\r\n if ( nearest_dest && nearest_dest == turf.nearest(mouseLoc, fc) ) {\r\n } else {\r\n //remove last nearest\r\n if( nearest_layer ) {\r\n map.removeLayer(nearest_layer);\r\n }\r\n\r\n nearest_dest = turf.nearest(mouseLoc, fc);\r\n\r\n nearest_dest.properties[\"marker-color\"] = \"C73E3E\";\r\n nearest_dest.properties[\"title\"] = nearest.properties[\"name\"]+'<br>Bikes: '+nearest.properties[\"nbBikes\"]+'<br>Empty Docks: '+nearest.properties[\"nbEmptyDocks\"];\r\n nearest_dest.properties[\"marker-size\"] = \"large\";\r\n nearest_dest.properties[\"marker-symbol\"] = \"bicycle\";\r\n\r\n nearest_layer = L.mapbox.featureLayer().setGeoJSON(turf.featurecollection([nearest_dest])).addTo(map);\r\n\r\n nearest_layer.on('mouseover', function(e) {\r\n e.layer.openPopup();\r\n });\r\n nearest_layer.on('mouseout', function(e) {\r\n e.layer.closePopup();\r\n });\r\n\r\n nearest_layer.on('click', function(e){\r\n //remove all stations but the selected ones\r\n map.removeLayer(all_stations);\r\n\r\n //save starting location\r\n destination = turf.point(e.latlng.lng, e.latlng.lat);\r\n\r\n //highlight starting location\r\n destination.properties[\"marker-color\"] = '8a8acb';\r\n destination.properties[\"marker-size\"] = \"large\";\r\n destination.properties[\"marker-symbol\"] = \"star\";\r\n\r\n var destinationLayer = L.mapbox.featureLayer().setGeoJSON(turf.featurecollection([destination])).addTo(map);\r\n\r\n //update modal\r\n $('#destination').removeClass('fill-white').addClass('fill-purple');\r\n $('#destination .content').hide();\r\n $('#destination .label').text('destination');\r\n $('#destination .selection').text(e.layer.feature.properties[\"name\"]);\r\n //step2\r\n $('#route-info').removeClass('fill-gray').addClass('fill-white');\r\n $('#route-info .content').show();\r\n\r\n map.removeEventListener('mousemove');\r\n\r\n getRouteInfo(start,destination);\r\n })\r\n\r\n }\r\n })\r\n })\r\n }", "title": "" }, { "docid": "f1ea392be29a5a543e87795bdcfc57e4", "score": "0.51690257", "text": "function main() {\n var small = union(\n difference(\n cube({size: 3, center: true}),\n sphere({r:2, center: true})\n ),\n intersection(\n sphere({r: 1.3, center: true}),\n cube({size: 2.1, center: true})\n )\n ).translate([0,0,1.5]).scale(10);\n\n var large = union(\n difference(\n cube({size: 300, center: true}),\n sphere({r:200, center: true})\n ),\n intersection(\n sphere({r: 130, center: true}),\n cube({size: 210, center: true})\n )\n ).translate([0,0,150]);\n\n return small.union(large);\n}", "title": "" }, { "docid": "296295e386be3e2e4601d8c277dae975", "score": "0.51684964", "text": "function updateClouds() {\n\tfor (var cloud of cloudsArray) {\n\t\tcloud.image.x -= cloud.speed;\n\t\tif (cloud.image.x < -cloud.image.getBounds().width * cloud.image.scaleX) {\n\t\t\tcloud.image.x = STAGE_WIDTH;\n\t\t\tcloud.image.y = Math.floor(Math.random() * 400) + 0;\n\t\t}\n\t}\n}", "title": "" } ]
2c8e3d83ef6a0df4488a67143478ce98
Determines whether an event happened in the gutter, and fires the handlers for the corresponding event.
[ { "docid": "71a4276fb7ab6bb2c5a063d94c2f6f5a", "score": "0.63370615", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" } ]
[ { "docid": "6acc8f845af5d0bf08a6369203d6fbcc", "score": "0.64435387", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try {\n var mX = e.clientX, mY = e.clientY;\n } catch (e) {\n return false;\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "5d061d84592fa3b035ead56ebad1c074", "score": "0.6423892", "text": "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "8170d86c26d0dd248ba0d91f23f79eba", "score": "0.6362477", "text": "function gutterEvent(cm, e, type, prevent) {\n\t\t var mX, mY;\n\t\t if (e.touches) {\n\t\t mX = e.touches[0].clientX;\n\t\t mY = e.touches[0].clientY;\n\t\t } else {\n\t\t try { mX = e.clientX; mY = e.clientY; }\n\t\t catch(e$1) { return false }\n\t\t }\n\t\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n\t\t if (prevent) { e_preventDefault(e); }\n\n\t\t var display = cm.display;\n\t\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t\t if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n\t\t mY -= lineBox.top - display.viewOffset;\n\n\t\t for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n\t\t var g = display.gutters.childNodes[i];\n\t\t if (g && g.getBoundingClientRect().right >= mX) {\n\t\t var line = lineAtHeight(cm.doc, mY);\n\t\t var gutter = cm.display.gutterSpecs[i];\n\t\t signal(cm, type, cm, line, gutter.className, e);\n\t\t return e_defaultPrevented(e)\n\t\t }\n\t\t }\n\t\t }", "title": "" }, { "docid": "bdf54477b004d983a2eb4eb18fdc48eb", "score": "0.6341669", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" }, { "docid": "a550bf2c2dbacedc029316d871f60951", "score": "0.6325575", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e$1) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" }, { "docid": "c8bc87a2eb2ce69e8789dba10d9c993f", "score": "0.6322953", "text": "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "title": "" }, { "docid": "c8bc87a2eb2ce69e8789dba10d9c993f", "score": "0.6322953", "text": "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "title": "" }, { "docid": "c8bc87a2eb2ce69e8789dba10d9c993f", "score": "0.6322953", "text": "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "title": "" }, { "docid": "a51e1fdae23b3e9234fcf6757f378bba", "score": "0.63204855", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" }, { "docid": "a51e1fdae23b3e9234fcf6757f378bba", "score": "0.63204855", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" }, { "docid": "a51e1fdae23b3e9234fcf6757f378bba", "score": "0.63204855", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "title": "" }, { "docid": "896562a7bbc98c701727db7773783cf4", "score": "0.63065183", "text": "function gutterEvent(cm, e, type, prevent) {\n\t var mX, mY;\n\t try {\n\t mX = e.clientX;mY = e.clientY;\n\t } catch (e) {\n\t return false;\n\t }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) {\n\t return false;\n\t }\n\t if (prevent) {\n\t e_preventDefault(e);\n\t }\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) {\n\t return e_defaultPrevented(e);\n\t }\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = _lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "title": "" }, { "docid": "ee30ccd1bff7a8dfe552e49d6a1095ec", "score": "0.6286404", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY\n if (e.touches) {\n mX = e.touches[0].clientX\n mY = e.touches[0].clientY\n } else {\n try { mX = e.clientX; mY = e.clientY }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e) }\n\n var display = cm.display\n var lineBox = display.lineDiv.getBoundingClientRect()\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i]\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY)\n var gutter = cm.options.gutters[i]\n signal(cm, type, cm, line, gutter, e)\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "840503ecf19ceb5dd1f5f4b64981e9ac", "score": "0.6268236", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "f024c8e3e9e612ae4e409882c2adfaf2", "score": "0.62635493", "text": "function gutterEvent(cm, e, type, prevent) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "f024c8e3e9e612ae4e409882c2adfaf2", "score": "0.62635493", "text": "function gutterEvent(cm, e, type, prevent) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "title": "" }, { "docid": "9cdda15df28176fd94ba6a7e7fab62d2", "score": "0.6253028", "text": "function gutterEvent(cm, e, type, prevent) {\r\n var mX, mY\r\n try { mX = e.clientX; mY = e.clientY }\r\n catch(e) { return false }\r\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\r\n if (prevent) { e_preventDefault(e) }\r\n\r\n var display = cm.display\r\n var lineBox = display.lineDiv.getBoundingClientRect()\r\n\r\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\r\n mY -= lineBox.top - display.viewOffset\r\n\r\n for (var i = 0; i < cm.options.gutters.length; ++i) {\r\n var g = display.gutters.childNodes[i]\r\n if (g && g.getBoundingClientRect().right >= mX) {\r\n var line = lineAtHeight(cm.doc, mY)\r\n var gutter = cm.options.gutters[i]\r\n signal(cm, type, cm, line, gutter, e)\r\n return e_defaultPrevented(e)\r\n }\r\n }\r\n}", "title": "" }, { "docid": "584f8811633b9e05f4becefe7f3573d0", "score": "0.6245674", "text": "function gutterEvent(cm, e, type, prevent) {\n\t var mX, mY\n\t try { mX = e.clientX; mY = e.clientY }\n\t catch(e) { return false }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n\t if (prevent) { e_preventDefault(e) }\n\n\t var display = cm.display\n\t var lineBox = display.lineDiv.getBoundingClientRect()\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n\t mY -= lineBox.top - display.viewOffset\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i]\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY)\n\t var gutter = cm.options.gutters[i]\n\t signal(cm, type, cm, line, gutter, e)\n\t return e_defaultPrevented(e)\n\t }\n\t }\n\t}", "title": "" }, { "docid": "b695792183a1c74ddac262d551809086", "score": "0.62404156", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY\n try { mX = e.clientX; mY = e.clientY }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e) }\n\n var display = cm.display\n var lineBox = display.lineDiv.getBoundingClientRect()\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i]\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY)\n var gutter = cm.options.gutters[i]\n signal(cm, type, cm, line, gutter, e)\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "5c1783716baa0beb1905d147242b833b", "score": "0.6219534", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "5c1783716baa0beb1905d147242b833b", "score": "0.6219534", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "5c1783716baa0beb1905d147242b833b", "score": "0.6219534", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "5c1783716baa0beb1905d147242b833b", "score": "0.6219534", "text": "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "title": "" }, { "docid": "ab94c2f76848842a47c4801353865dcb", "score": "0.61641353", "text": "function gutterEvent(cm,e,type,prevent){try{var mX=e.clientX,mY=e.clientY;}catch(e){return false;}if(mX>=Math.floor(cm.display.gutters.getBoundingClientRect().right))return false;if(prevent)e_preventDefault(e);var display=cm.display;var lineBox=display.lineDiv.getBoundingClientRect();if(mY>lineBox.bottom||!hasHandler(cm,type))return e_defaultPrevented(e);mY-=lineBox.top-display.viewOffset;for(var i=0;i<cm.options.gutters.length;++i){var g=display.gutters.childNodes[i];if(g&&g.getBoundingClientRect().right>=mX){var line=lineAtHeight(cm.doc,mY);var gutter=cm.options.gutters[i];signal(cm,type,cm,line,gutter,e);return e_defaultPrevented(e);}}}", "title": "" }, { "docid": "8109cd0d721304831613a8bd7c01fa87", "score": "0.58926505", "text": "handleEvent(view, eventName, event) {\n if (view.has(eventName)) {\n // Handler should be able to re-dispatch events, so we don't\n // preventDefault or stopPropagation.\n return flaggedInstrument(`interaction.${eventName}`, { event, view }, () => {\n return join(view, view.trigger, eventName, event);\n });\n } else {\n return true; // continue event propagation\n }\n }", "title": "" }, { "docid": "2eb6861940de20c9f19d2c1238e0698e", "score": "0.5793167", "text": "handleEvent(view, eventName, event) {\n if (view.has(eventName)) {\n // Handler should be able to re-dispatch events, so we don't\n // preventDefault or stopPropagation.\n return (0, _instrumentation.flaggedInstrument)(`interaction.${eventName}`, {\n event,\n view\n }, () => {\n return (0, _runloop.join)(view, view.trigger, eventName, event);\n });\n } else {\n return true; // continue event propagation\n }\n }", "title": "" }, { "docid": "d2222469c9b19a666c03c94a0dfdbf32", "score": "0.53667355", "text": "dispatchOnce(type, data) {\n if (typeof this.firedStack[type] == 'undefined') {\n this.dispatchEvent(type, data);\n return true\n } else {\n return false\n }\n }", "title": "" }, { "docid": "83284d769d81c5bfaae53938d78389f8", "score": "0.52884907", "text": "checkForEvent(x, y) {\n if (this.buttonX - this.buttonW < x && x < this.buttonX + this.buttonW)\n if (this.buttonY - this.buttonH < y && y < this.buttonY + this.buttonH)\n this.eventToTrigger();\n\n return false;\n }", "title": "" }, { "docid": "0f6fd1d1c552ddc876fe0c751d66580d", "score": "0.52268934", "text": "function isEventHandled(value){return value==='handled'||value===true;}", "title": "" }, { "docid": "19a3f7324b633427d6839a5c93fdf336", "score": "0.5167195", "text": "checkForEvent(x, y) {\n\n if (dist(x, y, this.buttonX, this.buttonY) <= this.buttonD){\n this.eventToTrigger(this.associatedParameter);\n }\n return false;\n }", "title": "" }, { "docid": "26ad35c49d22397298d58dc8c1dc5381", "score": "0.5166054", "text": "static doesEventFireTriggerEvent(spec, event, actionContext) {\n // event type should equal trigger event clause\n if (spec.type !== event.type) {\n return false;\n }\n // Get matching function and calculate match.\n return coreRegistry.events[event.type].matchEvent(spec, event, \n actionContext);\n }", "title": "" }, { "docid": "ab74af958275956f30605ef768c6bfa4", "score": "0.5133636", "text": "function triggerAndCheck($el, eventName) {\n var e = $.Event(eventName);\n $el.trigger(e);\n return e.isDefaultPrevented();\n }", "title": "" }, { "docid": "1bccef493ec5da0005053444355bff44", "score": "0.5100002", "text": "function hasRegisteredEvents() {\n return eventHandlers.size > 0;\n}", "title": "" }, { "docid": "033cd7d62ab38bebed9bcb206d6a8633", "score": "0.5026267", "text": "_dispatchEvents() {\n //order of events is specified in the EVENT_ORDER array below\n for (let eventName of EVENT_ORDER) {\n let h = this._eventHandlers.get(eventName);\n\n if (h !== undefined && h.needToDispatch) {\n h.dispatch();\n }\n }\n }", "title": "" }, { "docid": "14895d7c018254caf953d6c4b668553d", "score": "0.50245297", "text": "function startevent(event) {\nconsole.dir(event);\nchecksquare();\ncheckwinner();\n}", "title": "" }, { "docid": "b7356974a2db2dbfc863366650c3cfe4", "score": "0.5023418", "text": "checkForEvent(x, y){\n this.minButtonSmall.checkForEvent(x, y);\n this.minButtonBig.checkForEvent(x, y);\n this.plusButtonSmall.checkForEvent(x, y);\n this.plusButtonBig.checkForEvent(x, y);\n }", "title": "" }, { "docid": "1d02a8d09678e39f60e3bfc8d809ead6", "score": "0.49896762", "text": "function triggerAndReturn(context, eventName, data) {\n\t var event = $.Event(eventName)\n\t $(context).trigger(event, data)\n\t return !event.isDefaultPrevented()\n\t }", "title": "" }, { "docid": "42dc2fca651e433a2daf9dc3620c64d4", "score": "0.4981342", "text": "function triggerAndReturn(context, eventName, data) {\n\t var event = $.Event(eventName);\n\t $(context).trigger(event, data);\n\t return !event.isDefaultPrevented();\n\t }", "title": "" }, { "docid": "ddc4ba6956af59f1727d382bb46912dc", "score": "0.49739087", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || n.getAttribute(\"cm-ignore-events\") == \"true\" || n.parentNode == display.sizer && n != display.mover) return true;\n }\n }", "title": "" }, { "docid": "ae4944e32ba9d628a990759ec139fd04", "score": "0.4966112", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "title": "" }, { "docid": "7a5b31fa7ea38a8f62271b19e5402d97", "score": "0.49504715", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "title": "" }, { "docid": "7a5b31fa7ea38a8f62271b19e5402d97", "score": "0.49504715", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "title": "" }, { "docid": "7a5b31fa7ea38a8f62271b19e5402d97", "score": "0.49504715", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "title": "" }, { "docid": "7a5b31fa7ea38a8f62271b19e5402d97", "score": "0.49504715", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "title": "" }, { "docid": "922f833e9af9ac08a9a4cc237a205bca", "score": "0.49400285", "text": "get isEvent() {\n return true;\n }", "title": "" }, { "docid": "c238ebf394ac529658d9020358d3aa75", "score": "0.49324745", "text": "function _checkIfShouldFireReadyEvent() {\n // Increment the number of geohashes processed and set the \"value\" event as fired if we have\n // processed all of the geohashes we were expecting to process.\n _numGeohashesToQueryProcessed++;\n _valueEventFired = (_numGeohashesToQueryProcessed === _geohashesToQuery.length);\n\n // It's possible that there are no more child added events to process and that the \"ready\"\n // event will therefore not get called. We should call the \"ready\" event in that case.\n if (_valueEventFired && _numChildAddedEventsToProcess === 0) {\n _fireReadyEventCallbacks();\n }\n }", "title": "" }, { "docid": "23eed62335daeefe3b0ded36363b2474", "score": "0.49287146", "text": "function triggerAndReturn(context, eventName, data) {\n\t var event = $.Event(eventName);\n\t $(context).trigger(event, data);\n\t return !event.isDefaultPrevented();\n\t }", "title": "" }, { "docid": "e39b4d54e461eac2e334a1f54c45e3d3", "score": "0.492219", "text": "function triggerAndReturn(context, eventName, data) {\n\t\t\t\tvar event = $.Event(eventName)\n\t\t\t\t$(context).trigger(event, data)\n\t\t\t\treturn !event.isDefaultPrevented()\n\t\t\t}", "title": "" }, { "docid": "fe011f7e76690a51bff075a2d7d959f0", "score": "0.49157327", "text": "function trigger_event_listeners() {\n\n // Handles/Triggers the Function for\n // changes in the Bloch Sphere's (Qubit's) Motions' Radio\n on_change_bloch_sphere_qubit_motions();\n\n // Handles/Triggers the Function for\n // changes in the Quantum Operations' (Bit's) Motions' Radio\n on_change_quantum_operations_bit_motions();\n \n // Handles/Triggers the Function for\n // changes in the Camera View's Radio\n on_change_camera_view();\n\n // Handles/Triggers the Function for\n // changes in the Bloch Sphere's (Qubit's) Wireframe's Radio\n on_change_bloch_sphere_qubit_wireframe();\n \n // Handles/Triggers the Function for\n // changes in the XY Grid's Checkbox\n on_check_xy_grid();\n \n // Handles/Triggers the Function for\n // changes in the Axis' Arrows' Helpers' Checkbox\n on_check_axis_arrows_helpers();\n \n // Handles/Triggers the Function for\n // changes in the XY Plane Circumference's Checkbox\n on_check_xy_plane_circumference();\n \n // Handles/Triggers the Function for\n // changes in the XZ Plane Circumference's Checkbox\n on_check_xz_plane_circumference();\n \n // Handles/Triggers the Function for\n // changes in the YZ Plane Circumference's Checkbox\n on_check_yz_plane_circumference();\n \n}", "title": "" }, { "docid": "258b42b981c46d7b4ab2bc63d955deda", "score": "0.491318", "text": "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName);\n $(context).trigger(event, data);\n return !event.isDefaultPrevented();\n }", "title": "" }, { "docid": "6a187d3c1d7b833e8479c792eed00569", "score": "0.49091288", "text": "canHandleEvent(target, type) {\n // Nothing needs to be done here\n }", "title": "" }, { "docid": "c90423e0f58ff9f71b45f0c21bc2be73", "score": "0.49040395", "text": "trigger(event, ...args) { \r\n if (! this.events.has(event)) return;\r\n\r\n for (let callback of this.events.get(event)) {\r\n let callbackReturn = callback.apply(this, args);\r\n \r\n if (callbackReturn === false) {\r\n return false;\r\n } else if (typeof callbackReturn != 'undefined') {\r\n return callbackReturn;\r\n }\r\n }\r\n\r\n return this;\r\n }", "title": "" }, { "docid": "e39727fdc1e4e00b2a5a9f4d36acbd41", "score": "0.4903873", "text": "function SVGCellClickHandler(e) {\n $(this).trigger(e);\n }", "title": "" }, { "docid": "d3ae621bcb2789f4a6a9a840add96f46", "score": "0.48947057", "text": "fireEvent(eventName,callOnlyOptionsMethod=false,scope=this,...additionalArguments){const eventHandlerName=`on${this.constructor.stringCapitalize(eventName)}`;if(!callOnlyOptionsMethod)if(eventHandlerName in scope)scope[eventHandlerName](...additionalArguments);else if(`_${eventHandlerName}`in scope)scope[`_${eventHandlerName}`](...additionalArguments);if(scope._options&&eventHandlerName in scope._options&&scope._options[eventHandlerName]!==this.constructor.noop)return scope._options[eventHandlerName].call(this,...additionalArguments);return true}", "title": "" }, { "docid": "9db9dff98121c00a021f966be7e52ba9", "score": "0.48921347", "text": "handleEvent() {\n return true; // continue event propagation\n }", "title": "" }, { "docid": "74ae8a75d62078d21452ac4a747ca417", "score": "0.48898393", "text": "fireEvent (event) {\n if (this[event]) {\n this[event]()\n }\n }", "title": "" }, { "docid": "e42c26b156aafda4a6f5a53a1c1775c7", "score": "0.48880428", "text": "function evaluateClick(clickTarget) {\n return (\n clickTarget.classList.contains('simFire')\n );\n}", "title": "" }, { "docid": "c2eafd033e255b1084be1e8a361e6335", "score": "0.4887013", "text": "function onFire(){\n if(checkFire()){\n\t\t\tif(!FireSoundID){\n\t\t\t\tFireSound();\n\t\t\t\tconsole.log(\"Play Fire\");\n\t\t\t}\n\t\t\tconsole.log(\"Check Fire\");\n\t\t}\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "af002c2ba929790111281cb186e371a6", "score": "0.48865157", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "d0730c3c8df83317b90f6ff7d4324d61", "score": "0.48780477", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "title": "" }, { "docid": "7734aa3a6523ec82cf3192ea40b43dea", "score": "0.4875589", "text": "function DecideToFire() {\n\tif(IsInRange() && IsOffCooldown()) {\n\t\tShoot();\n\t}\n}", "title": "" }, { "docid": "c6bef429fa57fe7acfb929a975e216a2", "score": "0.48755735", "text": "handleClickEvent (e) {\n this.toggleSelect()\n\n if (this.type !== 'textbox') {\n\n if (this.selected) {\n\n // TODO Use common function.\n let event = document.createEvent('CustomEvent')\n event.initCustomEvent('annotationSelected', true, true, this)\n window.dispatchEvent(event)\n\n } else {\n\n // TODO Use common function.\n let event = document.createEvent('CustomEvent')\n event.initCustomEvent('annotationDeselected', true, true, this)\n window.dispatchEvent(event)\n\n }\n }\n }", "title": "" }, { "docid": "007a11d209b909cad01fde13a32a1aaf", "score": "0.48742706", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || n.ignoreEvents || n.parentNode == display.sizer && n != display.mover) return true;\n }\n }", "title": "" }, { "docid": "007a11d209b909cad01fde13a32a1aaf", "score": "0.48742706", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || n.ignoreEvents || n.parentNode == display.sizer && n != display.mover) return true;\n }\n }", "title": "" }, { "docid": "007a11d209b909cad01fde13a32a1aaf", "score": "0.48742706", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || n.ignoreEvents || n.parentNode == display.sizer && n != display.mover) return true;\n }\n }", "title": "" }, { "docid": "2018c14121f0014637c7f74b0184f087", "score": "0.48666584", "text": "actionOccurred() {\n\n return this.gamepad.anyPressed || this.anyPressed;\n }", "title": "" }, { "docid": "c849503043e44fe45eca4848d27325fc", "score": "0.486427", "text": "trigger(eventName, ...args) {\n if (!this._eventHandlers || !this._eventHandlers[eventName]) {\n return; // no handlers for that event name\n }\n\n // call the handlers\n this._eventHandlers[eventName].forEach(handler =>\n handler.apply(this, args)\n );\n }", "title": "" }, { "docid": "c11f3496b010be900e2851318a4f3303", "score": "0.48596588", "text": "function scrollEvent( e ) {\n verifyMainSidebarToggler();\n}", "title": "" }, { "docid": "7f84406e79da5a32236560d97d65a332", "score": "0.48541254", "text": "function isEvent(githubContext, event) {\n return githubContext.eventName === event;\n}", "title": "" }, { "docid": "339c2a8293139bdbac720fb7159e9a11", "score": "0.484562", "text": "isEventOnFlow(event){\n return event.target == this.svg ||\n event.target.getAttribute(\"class\")!= null && event.target.getAttribute(\"class\").startsWith(\"flow_\");\n }", "title": "" }, { "docid": "b2d6ea4b402a729f5368aed9a15200d1", "score": "0.48424062", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n return true;\n }\n }", "title": "" }, { "docid": "b2d6ea4b402a729f5368aed9a15200d1", "score": "0.48424062", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n return true;\n }\n }", "title": "" }, { "docid": "b2d6ea4b402a729f5368aed9a15200d1", "score": "0.48424062", "text": "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n return true;\n }\n }", "title": "" } ]
61a977cf961a83f7c3941f9638a30084
disables options of upcoming months in
[ { "docid": "8264ea6e352e99256cd9024777806a25", "score": "0.5520048", "text": "function changeMonthOptions() {\n selectMonth.fadeIn(\"fast\");\n selectMonth.children('option').hide();\n\n if (currentMonth == 11) {\n selectMonth.children(\"option:eq(\" + 1 + \"), :eq(\" + 12 + \"), :eq(\" + 11 + \")\").show();\n }\n else if (currentMonth == 0) {\n selectMonth.children(\"option:eq(\" + 1 + \"), :eq(\" + 2 + \"), :eq(\" + 12 + \")\").show();\n }\n else {\n selectMonth.children(\"option:eq(\" + currentMonth + \"), :eq(\" + (currentMonth + 1) + \"), :eq(\" + (currentMonth + 2) + \")\").show();\n }\n\n selectMonth.find(\"option:first-child\").attr(\"selected\", \"selected\");\n }", "title": "" } ]
[ { "docid": "a81d766e053b8f7b46c269354ccbe47a", "score": "0.67107755", "text": "_isDisabled(month, minDate, maxDate) {\n // First day of the month\n var firstDate = new Date(0, 0);\n firstDate.setFullYear(month.getFullYear());\n firstDate.setMonth(month.getMonth());\n firstDate.setDate(1); // Last day of the month\n\n var lastDate = new Date(0, 0);\n lastDate.setFullYear(month.getFullYear());\n lastDate.setMonth(month.getMonth() + 1);\n lastDate.setDate(0);\n\n if (minDate && maxDate && minDate.getMonth() === maxDate.getMonth() && minDate.getMonth() === month.getMonth() && maxDate.getDate() - minDate.getDate() >= 0) {\n return false;\n }\n\n return !this._dateAllowed(firstDate, minDate, maxDate) && !this._dateAllowed(lastDate, minDate, maxDate);\n }", "title": "" }, { "docid": "8e96b9304ea0372d9ebbc5283f62798f", "score": "0.66756177", "text": "function disable_end_date(obj, exp_id) {\n\n if(obj.checked == true) {\n $$('#exp_'+ exp_id +'.exp select#experience_end_month').first().disabled = \"disabled\";\n $$('#exp_'+ exp_id +'.exp select#experience_end_year').first().disabled = \"disabled\";\n } else {\n $$('#exp_'+ exp_id +'.exp select#experience_end_month').first().disabled = false;\n $$('#exp_'+ exp_id +'.exp select#experience_end_year').first().disabled = false;\n }\n}", "title": "" }, { "docid": "5b89b4c8dac2657b771e83da263f7adb", "score": "0.6671278", "text": "_isDisabled(month, minDate, maxDate) {\n // First day of the month\n var firstDate = new Date(0, 0);\n firstDate.setFullYear(month.getFullYear());\n firstDate.setMonth(month.getMonth());\n firstDate.setDate(1);\n\n // Last day of the month\n var lastDate = new Date(0, 0);\n lastDate.setFullYear(month.getFullYear());\n lastDate.setMonth(month.getMonth() + 1);\n lastDate.setDate(0);\n\n if ((minDate && maxDate)\n && minDate.getMonth() === maxDate.getMonth()\n && minDate.getMonth() === month.getMonth()\n && maxDate.getDate() - minDate.getDate() >= 0) {\n return false;\n }\n\n return !this._dateAllowed(firstDate, minDate, maxDate)\n && !this._dateAllowed(lastDate, minDate, maxDate);\n }", "title": "" }, { "docid": "3d1337b6626353120f3e90ffe1a49848", "score": "0.6438214", "text": "function checkLinkedDays() { \n var daysInMonth = 32 - new Date($('#year').val(), \n $('#month').val() - 1, 32).getDate(); \n $('#day option').attr('disabled', ''); \n $('#day option:gt(' + (daysInMonth - 1) +')').attr('disabled', 'disabled'); \n if ($('#day').val() > daysInMonth) { \n $('#day').val(daysInMonth); \n } \n}", "title": "" }, { "docid": "ace0cb0a7b4713e3dad450be1e07a455", "score": "0.63807636", "text": "function EnableDisableDateControlles(value){\n\tvar disable = value >= 0 ;\n\tdocument.form.sd.disabled = disable;\n\tdocument.form.sm.disabled = disable;\n\tdocument.form.sy.disabled = disable;\n\tdocument.form.ed.disabled = disable;\n\tdocument.form.em.disabled = disable;\n\tdocument.form.ey.disabled = disable;\n}", "title": "" }, { "docid": "14a5baa7e775da3b6921972489c26c12", "score": "0.63275504", "text": "function validVarrablesDisable() {\r\n $('#variable-select-wrapper .default-select-option').each(function () {\r\n const attribute = $(this).attr('rel');\r\n const isvalid = jQuery.inArray(attribute, validMonthly);\r\n if (isvalid < 0) {\r\n $(this).addClass('default-select-option-disabled');\r\n $(this).removeClass('default-select-option');\r\n }\r\n })\r\n }", "title": "" }, { "docid": "488d34ec792db2ce2b3fb6c3d0da8fb8", "score": "0.62944424", "text": "function DateWidget_disable(hilo) {\n var node = document.getElementById(this.element_id);\n var select_nodes = node.getElementsByTagName('select');\n for (var i=0; i<select_nodes.length; i++) \n \tswitch(hilo) {\n\t\tcase 'hi' :\n\t\t\tif(select_nodes[i].id[select_nodes[i].id.length-1]=='2')\n\t\t\t\tselect_nodes[i].disabled= 1;\n\t\t\telse\n\n\t\t\tbreak;\n\t\tcase 'lo' :\n\t\t\tif(select_nodes[i].id[select_nodes[i].id.length-1]=='1')\n\t\t\t\tselect_nodes[i].disabled= 1;\n\t\t\tbreak;\n\t\tdefault : \n\t\t\tselect_nodes[i].disabled = 1;\n \t\t\n\t} \n this.disabled = 1;\n}", "title": "" }, { "docid": "97fd8fe7b9a0db4ca46c9b8df63cc451", "score": "0.6196039", "text": "function restricDates(input, date) {\r\n $(input).removeAttr(\"disabled\");\r\n $(input).attr('min', date);\r\n}", "title": "" }, { "docid": "3b4a971506d514b02baa145fd428c309", "score": "0.6184846", "text": "function setNoSepMonths() {\n setMonthsSeparated(false);\n}", "title": "" }, { "docid": "2ea4e619d655e2236e10338c4bce3ba0", "score": "0.6157286", "text": "function enable_disable_licence() {\n\n var licence_type = document.getElementById(\"licence_type\");\n var licence_date = document.querySelectorAll('.form-control.date')\n if(licence_type.disabled == false){\n licence_type.disabled = true;\n Array.from(licence_date).forEach(function(el) {\n el.disabled = true;\n })\n }else{\n licence_type.disabled = false;\n Array.from(licence_date).forEach(function(el) {\n el.disabled = false;\n })\n }\n}", "title": "" }, { "docid": "4d443a5ca3781e28c7c16126e422fe1f", "score": "0.61407167", "text": "function DateWidget_enable(hilo) {\n var node = document.getElementById(this.element_id);\n var select_nodes = node.getElementsByTagName('select');\n for (var i=0; i<select_nodes.length; i++) \n\tswitch(hilo) {\n\t\tcase 'hi' :\n\t\t\tif(select_nodes[i].id[select_nodes[i].id.length-1]=='2')\n\t\t\t\tselect_nodes[i].disabled= 0;\n\t\t\telse\n\n\t\t\tbreak;\n\t\tcase 'lo' :\n\t\t\tif(select_nodes[i].id[select_nodes[i].id.length-1]=='1')\n\t\t\t\tselect_nodes[i].disabled= 0;\n\t\t\tbreak;\n\t\tdefault : \n\t\t\tselect_nodes[i].disabled = 0;\n \t\t\n\t}\n this.disabled = 0;\n}", "title": "" }, { "docid": "da03b5a33c80711c555f46d78e8442bf", "score": "0.61390823", "text": "function updateDateSelectors()\n{\n var day = document.getElementById(\"day\");\n var mon = document.getElementById(\"month\");\n\n switch (mon.selectedIndex + 1)\n {\n // february (28 days, except in leapyears in which case 29) \n case 2:\n if (isLeapYear(document.getElementById(\"year\").selectedIndex))\n {\n day.options[28].disabled = false;\n\n if (day.selectedIndex + 1 > 29)\n day.selectedIndex = 28;\n }\n else\n {\n day.options[28].disabled = true;\n\n if (day.selectedIndex + 1 > 28)\n day.selectedIndex = 27;\n }\n\n day.options[29].disabled = true;\n day.options[30].disabled = true;\n\n break;\n\n // months with 30 days\n case 4: case 6: case 9: case 11:\n day.options[28].disabled = false;\n day.options[29].disabled = false;\n day.options[30].disabled = true;\n\n if (day.selectedIndex + 1 > 30)\n day.selectedIndex = 29;\n\n break;\n\n // months with 31 days\n case 1: case 3: case 5: case 7: case 8: case 10: case 12:\n day.options[28].disabled = false;\n day.options[29].disabled = false;\n day.options[30].disabled = false;\n break;\n }\n}", "title": "" }, { "docid": "de9dc99f712ad8cdc04f0abd7e6e00bd", "score": "0.61178553", "text": "get disabledNext() {\n let disabled = this.disabled;\n let nextDate = new Date(this.date);\n nextDate.setMonth(this.date.getMonth() + 1);\n nextDate.setDate(1);\n\n let maxDate = new Date(this.max);\n maxDate.setDate(1);\n\n if (nextDate > maxDate) {\n disabled = true;\n }\n\n return disabled;\n }", "title": "" }, { "docid": "00aebe23e3664c1b49fa79b277c7329e", "score": "0.5957382", "text": "function enable_date() {\n let today = new Date();\n let minDate = new Date();\n minDate.setDate(today.getDate() + 2)\n let maxDate = new Date();\n maxDate.setDate(today.getDate() + 15);\n \n var testdate = new Date();\n // initialized at -1 because the loop has +1\n testdate.setDate(minDate.getDate() - 1);\n\n for(var i = 0; i < 15; i++){\n testdate.setDate(testdate.getDate() + 1);\n var found = false;\n for(var j = 0; j < availability.length; j++){\n if(testdate.getDay() == availability[j][0]){\n found = true;\n }\n }\n if(!found){\n var day = testdate.getDate().toString().padStart(2, '0');\n var month = (testdate.getMonth() + 1).toString().padStart(2, '0');\n var year = testdate.getFullYear();\n var temp = month + '-' + day + '-' + year;\n disabled_dates.push(temp);\n }\n }\n\n\tjQuery('#datepicker').datepicker({\n\t\tminDate: minDate,\n\t\tmaxDate: maxDate,\n beforeShowDay: DisableDates,\n\t\tdateFormat: 'mm-dd-yy',\n\t\tconstrainInput: true, \n\t}).on(\"change\", function(){\n time.value = \"\";\n enable_time(date.value);\n \n });\n\n function DisableDates(date) {\n for(var i = 0; i < disabled_dates.length; i++){\n var tempDate = disabled_dates[i].split(\"-\");\n if (date.getFullYear() == tempDate[2]\n && date.getMonth() == tempDate[0] - 1\n && date.getDate() == tempDate[1]) {\n return [false];\n }\n }\n return [true];\n }\n}", "title": "" }, { "docid": "06e3e7e201c660f710623220af7c3803", "score": "0.59446615", "text": "function CP_setDisabledWeekDays() {\r\n\tthis.disabledWeekDays = new Object();\r\n\tfor (var i = 0; i < arguments.length; i++) { this.disabledWeekDays[arguments[i]] = true; }\r\n}", "title": "" }, { "docid": "a74d2adc19d9e2cd70e1af4cd0fd5049", "score": "0.5937515", "text": "function CP_setDisabledWeekDays() {\n\tthis.disabledWeekDays = new Object();\n\tfor (var i=0; i<arguments.length; i++) { this.disabledWeekDays[arguments[i]] = true; }\n\t}", "title": "" }, { "docid": "2d1024cb4fbd168fcb411ba295f774b2", "score": "0.59208596", "text": "function disableForm() {\r\n\t\t\t\t$deptDate.datepicker('disable');\r\n\t\t\t\t$returnDate.datepicker('disable');\r\n\t\t\t\t//disables entire form\r\n\t\t\t\t$jp.find('input, select').controlEnable(false);\r\n\t\t\t}", "title": "" }, { "docid": "f2a05d67fe910ceafa96d34c9cbea9e1", "score": "0.5907015", "text": "yearMonthMode (mode) {\n if (mode === 'year' && this.activeBottomSheet) {\n enableBodyScroll(this.$refs.body);\n disableBodyScroll(this.$el.querySelector('.datepicker-year-month'));\n }\n }", "title": "" }, { "docid": "37333d7c7b23d424d109bdcb81b077e6", "score": "0.5855058", "text": "function setDisabeled($parent, year, otherType, type) {\n\t$parent.find('select[type=\"' + otherType + '\"] option').attr('disabled', function(i, val) {\n\t\treturn (type === 'min' && $(this).val() < year) || (type === 'max' && $(this).val() > year);\n\t});\n}", "title": "" }, { "docid": "9b8d3c320db85122d745f9112dc02ca8", "score": "0.583937", "text": "function toggletimelimit() {\r\n if ($('select#istimelimit').val() == \"Disabled\") {\r\n $('input[id=\"timelimit\"]').prop('disabled', true);\r\n $('input[id=\"timelimit\"]').val(\"\");\r\n } else {\r\n $('input[id=\"timelimit\"]').prop('disabled', false);\r\n }\r\n}", "title": "" }, { "docid": "ee236c5ee446e56336ef2f189f27417e", "score": "0.58300966", "text": "function disableWeekends(date) {\n let blocked = false;\n props.bookedDates.map(apps => {\n if (apps.getDate() === date.getDate())\n if (apps.getMonth() === date.getMonth()) blocked = true;\n });\n return blocked; //props.bookedDates.includes(date) //|| date.getDay() === 0 || date.getDay() === 6;\n }", "title": "" }, { "docid": "ac0c56f9815768bc25edd258d56daa5e", "score": "0.58098173", "text": "function activarFechas1() {\n // debugger;\n $(\"#editarFechaInicio\").removeAttr('disabled');\n $(\"#editarFechaInicio\").val('');\n $(\"#editarFechaFin\").val('');\n}", "title": "" }, { "docid": "79e9ec9161cb6ab7f398c17571de92da", "score": "0.57947665", "text": "function enableDisableDecisionApprovedControls(launchMethodPicker, decision, altDateControl, pmControl, DeploymentMechanism, DeploymentMechanismSubType,NorthEastCarePM)\r\n {\r\n \r\n //Enable/Disable the Launch Method\r\n enableDisableControl(launchMethodPicker, !(decision.val() == \"Approved\"));\r\n\r\n //Enable/Disable the PM Division Control\r\n enableDisableControl(pmControl, !(decision.val() == \"Approved\"));\r\n\r\n (decision.val() != \"Approved\") ? pmControl.val('') : 0;\r\n\r\n //Enable/Disable the PM Division Control\r\n if (NorthEastCarePM != undefined) {\r\n enableDisableControl(NorthEastCarePM, !(decision.val() == \"Approved\"));\r\n\r\n (decision.val() != \"Approved\") ? NorthEastCarePM.val('') : 0;\r\n NorthEastCarePM.css('background-color', '');\r\n }\r\n\r\n //Show/Hide the Date Controls.\r\n decision.val() == \"Approved\" && launchMethodPicker.val() == \"Division\" ? altDateControl.show() : altDateControl.hide();\r\n\r\n var subType = $(\"#SubType\");\r\n if (subType.val() == \"Standard\") {\r\n //Below line are only executed for Standard Intake. for Awareness we have a separte functionality (westQuickApprove()) for the Release Type Controls. \r\n\r\n console.log(\"West Decision\")\r\n //Enable/Disable the Release Controls\r\n if (DeploymentMechanism != undefined) {\r\n enableDisableControl(DeploymentMechanism, !(decision.val() == \"Approved\"));\r\n (decision.val() != \"Approved\") ? DeploymentMechanism[0].selectedIndex = 0 : 0;\r\n }\r\n\r\n if (DeploymentMechanismSubType != undefined) {\r\n enableDisableControl(DeploymentMechanismSubType, !(decision.val() == \"Approved\"));\r\n (decision.val() != \"Approved\") ? DeploymentMechanismSubType[0].selectedIndex = 0 : 0;\r\n }\r\n }\r\n\r\n //if (launchMethodPicker.val() == \"Division\" )\r\n //{\r\n // //Traverse date control Start & End Date div to get each date control.\r\n // altDateControl.each(function () {\r\n \r\n \r\n // //getting date control to resetting the value to include it into the change log.\r\n // var className = this.id.replace(\"div\", \"\").replace(\"Id\",\"\"); \r\n // var ctrl = $('#' + className);\r\n // console.log(className);\r\n // if (decision.val() == \"Approved\")\r\n // { ctrl.val($('#RequestedStartDate').val());}\r\n // else\r\n // {ctrl.val('');}\r\n // });\r\n //}\r\n \r\n //Excluding the background color to set the default gray.\r\n pmControl.css('background-color', '');\r\n\r\n if (decision.val() != \"Approved\")\r\n {\r\n //Resetting the launch method\r\n launchMethodPicker.val('0').change(); //set the value and fire the change event.\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "50be7e2b9979bd3b61db2df3711e95a4", "score": "0.5786387", "text": "function preYear() {\n\tvar month = document.getElementById(\"select-month\");\n\tvar year = document.getElementById(\"select-year\");\n\n\tif (year.selectedIndex > 0) {\n\t\tyear.selectedIndex--;\n\t} else {\n\t\tyear.selectedIndex = year.length - 1 ;\n\t}\n\n\tchangeCalendar();\n}", "title": "" }, { "docid": "e44f0f67b460b7b3c99e76922aa30412", "score": "0.5778056", "text": "function disableTournamensSelections()\n {\n $('#formProfileChangeTeam #tournament').attr('disabled','disabled');\n }", "title": "" }, { "docid": "c66537f136febf8ccae2dc315fb3864f", "score": "0.57754356", "text": "get disabledPrevious() {\n let disabled = this.disabled;\n let previousDate = new Date(this.date);\n previousDate.setMonth(this.date.getMonth() - 1);\n previousDate.setDate(1);\n\n let minDate = new Date(this.min);\n minDate.setDate(1);\n\n if (previousDate < minDate) {\n disabled = true;\n }\n\n return disabled;\n }", "title": "" }, { "docid": "f667bcc8fef7b00497d98ba4407e8b21", "score": "0.57699794", "text": "checkForm(e){\n if ((this.startDateCalendar.value.length > 0) &&\n (this.endDateCalendar.value.length > 0) &&\n (this.dataTypeDropDown.value.length > 0)){\n this.applyButton.disabled = false;\n }\n else{\n this.applyButton.disabled = true;\n }\n }", "title": "" }, { "docid": "45f6f40a363c3ed41d1979eca984a526", "score": "0.5756649", "text": "function disableTournamensSelections()\n {\n $('#tournament').attr('disabled','disabled');\n }", "title": "" }, { "docid": "45f6f40a363c3ed41d1979eca984a526", "score": "0.5756649", "text": "function disableTournamensSelections()\n {\n $('#tournament').attr('disabled','disabled');\n }", "title": "" }, { "docid": "1f6f2645c02c4ff1a113c5a920d0d6f3", "score": "0.57316357", "text": "function setMonthly_gre(m, y){\n\t\t\t\t\t//if the new month and year equal to current month and year\n\t\t\t\t\t//then remove \"To day\" button.\n\t\t\t\t\tif (m == currentMonth && y == currentYear){\n\t\t\t\t\t\t$('#'+uniqueId+' .monthly-reset').remove();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$('#' + uniqueId).data('setMonth', m).data('setYear', y);\n\t\t\t\t\t// Get number of days\n\t\t\t\t\tvar dayQty = daysInMonth(m, y),\n\t\t\t\t\t\t// Get day of the week the first day is\n\t\t\t\t\t\tmZeroed = m -1,\n\t\t\t\t\t\tfirstDay = new Date(y, mZeroed, 1, 0, 0, 0, 0).getDay();\n\t\t\t\t\t// Remove old days\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day, #' + uniqueId + ' .monthly-day-blank').remove();\n\t\t\t\t\t$('#'+uniqueId+' .monthly-event-list').empty();\n\t\t\t\t\t$('#'+uniqueId+' .monthly-day-wrap').empty();\n\t\t\t\t\t// Print out the days\n\t\t\t\t\tfor(var i = 0; i < dayQty; i++) {\n\t\t\t\t\t\tvar day = i + 1; // Fix 0 indexed days\n\t\t\t\t\t\tvar dayNamenum = new Date(y, mZeroed, day, 0, 0, 0, 0).getDay();\n\t\t\t\t\t\tvar shabat_suffix=isShabat(y,mZeroed,day)?'_isShabat':'';\n\t\t\t\t\t\tvar week_num = weeksinMonth(y, m,day);\n\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<div class=\"m-d monthly-day monthly-day-event\" id=\"monthly-day_'+id_suffix+shabat_suffix+'\" data-number=\"'+day+'\"><div class=\"monthly-day-number\">'+day+'</div><div class=\"monthly-indicator-wrap\"></div></div>');\n\t\t\t\t\t\tif(options.lang==\"he\"){\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-event-list').append('<div class=\"monthly-list-item-rtl monthly-week-'+week_num+'\" id=\"'+uniqueId+'day'+day+'\" data-number=\"'+day+'\"><div class=\"monthly-event-list-date-rtl\">'+fullDayNames_he[dayNamenum]+'<br>'+day+'</div></div>');\n\t\t\t\t\t\t}else if(options.lang==\"en\"){\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-event-list').append('<div class=\"monthly-list-item monthly-week-'+week_num+'\" id=\"'+uniqueId+'day'+day+'\" data-number=\"'+day+'\"><div class=\"monthly-event-list-date\">'+dayNames[dayNamenum]+'<br>'+day+'</div></div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set Today\n\t\t\t\t\tvar setMonth = $('#' + uniqueId).data('setMonth'),\n\t\t\t\t\t\tsetYear = $('#' + uniqueId).data('setYear');\n\t\t\t\t\tif (setMonth == currentMonth && setYear == currentYear) {\n\t\t\t\t\t\t$('#' + uniqueId + ' *[data-number=\"'+currentDay+'\"]').addClass('monthly-today');\n\t\t\t\t\t}\n\n\t\t\t\t\t// Reset button\n\t\t\t\t\tif (setMonth == currentMonth && setYear == currentYear) {\n\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-header-title-date').html(monthNames[m - 1] +' '+ y);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(options.lang=='en'){\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-header-title').html('<a href=\"#\" class=\"monthly-header-title-date\" id=\"monthly-header-title-date_'+id_suffix+'\" onclick=\"return false\">'+monthNames[m - 1] +' '+ y +'</a><a href=\"#\" class=\"monthly-reset\" id=\"monthly-reset_'+id_suffix+'\" title=\"Set to today\">&crarr;</a> ');\n\t\t\t\t\t\t}else if(options.lang=='he'){\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-header-title').html('<a href=\"#\" class=\"monthly-header-title-date\" id=\"monthly-header-title-date_'+id_suffix+'\" onclick=\"return false\">'+monthNames[m - 1] +' '+ y +'</a><a href=\"#\" class=\"monthly-reset\" id=\"monthly-reset_'+id_suffix+'\" title=\"חזור לחודש הנוכחי\">&crarr;</a> ');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t// Account for empty days at start\n\t\t\t\t\tif(options.weekStart == 'Sun' && firstDay != 7) {\n\t\t\t\t\t\tfor(var i = 0; i < firstDay; i++) {\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\" id=\"monthly-day-blank_'+id_suffix+'\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (options.weekStart == 'Mon' && firstDay == 0) {\n\t\t\t\t\t\tfor(var i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\" id=\"monthly-day-blank_'+id_suffix+'\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (options.weekStart == 'Mon' && firstDay != 1) {\n\t\t\t\t\t\tfor(var i = 0; i < (firstDay - 1); i++) {\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\" id=\"monthly-day-blank_'+id_suffix+'\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//Account for empty days at end\n\t\t\t\t\tvar numdays = $('#' + uniqueId + ' .monthly-day').length,\n\t\t\t\t\t\tnumempty = $('#' + uniqueId + ' .monthly-day-blank').length,\n\t\t\t\t\t\ttotaldays = numdays + numempty,\n\t\t\t\t\t\troundup = Math.ceil(totaldays/7) * 7,\n\t\t\t\t\t\tdaysdiff = roundup - totaldays;\n\t\t\t\t\tif(totaldays % 7 != 0) {\n\t\t\t\t\t\tfor(var i = 0; i < daysdiff; i++) {\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<div class=\"m-d monthly-day-blank\" id=\"monthly-day-blank_'+id_suffix+'\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove previous events\n\t\t\t\t\t// Add Events\n\t\t\t\t\tvar addEvents = function(event) {\n\t\t\t\t\t\t// Year [0] Month [1] Day [2]\n\t\t\t\t\t\tif(options.dataType=='xml' || options.dataType=='json'){\n\t\t\t\t\t\t\tvar fullstartDate = options.dataType == 'xml' ? $(event).find('startdate').text() : event.startdate,\n\t\t\t\t\t\t\t\tstartArr = fullstartDate.split(\"-\"),\n\t\t\t\t\t\t\t\tstartYear = startArr[0],\n\t\t\t\t\t\t\t\tstartMonth = parseInt(startArr[1], 10),\n\t\t\t\t\t\t\t\tstartDay = parseInt(startArr[2], 10),\n\t\t\t\t\t\t\t\tfullendDate = options.dataType == 'xml' ? $(event).find('enddate').text() : event.enddate,\n\t\t\t\t\t\t\t\tendArr = fullendDate.split(\"-\"),\n\t\t\t\t\t\t\t\tendYear = endArr[0],\n\t\t\t\t\t\t\t\tendMonth = parseInt(endArr[1], 10),\n\t\t\t\t\t\t\t\tendDay = parseInt(endArr[2], 10),\n\t\t\t\t\t\t\t\teventURL = options.dataType == 'xml' ? $(event).find('url').text() : event.url,\n\t\t\t\t\t\t\t\teventTitle = options.dataType == 'xml' ? $(event).find('name').text() : event.name,\n\t\t\t\t\t\t\t\teventTtype = options.dataType == 'xml' ? $(event).find('type').text() : event.type,\n\t\t\t\t\t\t\t\teventColor = options.dataType == 'xml' ? $(event).find('color').text() : event.color,\n\t\t\t\t\t\t\t\teventId = options.dataType == 'xml' ? $(event).find('id').text() : event.id,\n\t\t\t\t\t\t\t\tstartTime = options.dataType == 'xml' ? $(event).find('starttime').text() : event.starttime,\n\t\t\t\t\t\t\t\tstartSplit = startTime.split(\":\"),\n\t\t\t\t\t\t\t\tendTime = options.dataType == 'xml' ? $(event).find('endtime').text() : event.endtime,\n\t\t\t\t\t\t\t\tendSplit = endTime.split(\":\"),\n\t\t\t\t\t\t\t\teventLink = '',\n\t\t\t\t\t\t\t\tstartPeriod = 'AM',\n\t\t\t\t\t\t\t\tendPeriod = 'PM';\n\t\t\t\t\t\t}else if(options.dataType=='php'){\n\t\t\t\t\t\t\tvar fullstartDate = event.startdate,\n\t\t\t\t\t\t\t\tstartArr = fullstartDate.split(\"-\"),\n\t\t\t\t\t\t\t\tstartYear = startArr[0],\n\t\t\t\t\t\t\t\tstartMonth = parseInt(startArr[1], 10),\n\t\t\t\t\t\t\t\tstartDay = parseInt(startArr[2], 10),\n\t\t\t\t\t\t\t\tfullendDate = event.enddate,\n\t\t\t\t\t\t\t\tendArr = fullendDate.split(\"-\"),\n\t\t\t\t\t\t\t\tendYear = endArr[0],\n\t\t\t\t\t\t\t\tendMonth = parseInt(endArr[1], 10),\n\t\t\t\t\t\t\t\tendDay = parseInt(endArr[2], 10),\n\t\t\t\t\t\t\t\teventURL = event.url,\n\t\t\t\t\t\t\t\teventTitle = event.name,\n\t\t\t\t\t\t\t\teventTtype = event.type,\n\t\t\t\t\t\t\t\teventColor = event.color,\n\t\t\t\t\t\t\t\teventId = event.id,\n\t\t\t\t\t\t\t\tstartTime = event.starttime,\n\t\t\t\t\t\t\t\tstartSplit = startTime.split(\":\"),\n\t\t\t\t\t\t\t\tendTime = event.endtime,\n\t\t\t\t\t\t\t\tendSplit = endTime.split(\":\"),\n\t\t\t\t\t\t\t\teventLink = '',\n\t\t\t\t\t\t\t\tstartPeriod = 'AM',\n\t\t\t\t\t\t\t\tendPeriod = 'PM';\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Convert times to 12 hour & determine AM or PM */\n\t\t\t\t\t\tif(parseInt(startSplit[0]) >= 12) {\n\t\t\t\t\t\t\tvar startTime = (startSplit[0] - 12)+':'+startSplit[1]+'';\n\t\t\t\t\t\t\tvar startPeriod = 'PM'\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(parseInt(startTime) == 0) {\n\t\t\t\t\t\t\tvar startTime = '12:'+startSplit[1]+'';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(parseInt(endSplit[0]) >= 12) {\n\t\t\t\t\t\t\tvar endTime = (endSplit[0] - 12)+':'+endSplit[1]+'';\n\t\t\t\t\t\t\tvar endPeriod = 'PM'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(parseInt(endTime) == 0) {\n\t\t\t\t\t\t\tvar endTime = '12:'+endSplit[1]+'';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (eventURL){\n\t\t\t\t\t\t\tvar eventLink = 'href=\"'+eventURL+'\"';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// function to print out list for multi day events\n\t\t\t\t\t\tfunction multidaylist(){\n\t\t\t\t\t\t\tvar timeHtml = '';\n\t\t\t\t\t\t\tif (startTime){\n\t\t\t\t\t\t\t\tvar startTimehtml = '<div><div class=\"monthly-list-time-start\">'+startTime+' '+startPeriod+'</div>';\n\t\t\t\t\t\t\t\tvar endTimehtml = '';\n\t\t\t\t\t\t\t\tif (endTime){\n\t\t\t\t\t\t\t\t\tvar endTimehtml = '<div class=\"monthly-list-time-end\">'+endTime+' '+endPeriod+'</div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvar timeHtml = startTimehtml + endTimehtml + '</div>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(options.lang=='en'){\n\t\t\t\t\t\t\t\t$('#'+uniqueId+' .monthly-list-item[data-number=\"'+i+'\"]').addClass('item-has-event').append('<a href=\"'+eventURL+'\" class=\"listed-event\" id=\"listed-event-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+' '+timeHtml+'</a>');\n\t\t\t\t\t\t\t}else if(options.lang=='he'){\n\t\t\t\t\t\t\t\t$('#'+uniqueId+' .monthly-list-item-rtl[data-number=\"'+i+'\"]').addClass('item-has-event').append('<a href=\"'+eventURL+'\" class=\"listed-event\" id=\"listed-event-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+' '+timeHtml+'</a>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// If event is one day & within month\n\t\t\t\t\t\tif (!fullendDate && startMonth == setMonth && startYear == setYear) {\n\t\t\t\t\t\t\t// Add Indicators\n\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+startDay+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+'</div>');\n\t\t\t\t\t\t\t// Print out event list for single day event\n\t\t\t\t\t\t\tvar timeHtml = '';\n\t\t\t\t\t\t\tif (startTime){\n\t\t\t\t\t\t\t\tvar startTimehtml = '<div><div class=\"monthly-list-time-start\">'+startTime+' '+startPeriod+'</div>';\n\t\t\t\t\t\t\t\tvar endTimehtml = '';\n\t\t\t\t\t\t\t\tif (endTime){\n\t\t\t\t\t\t\t\t\tvar endTimehtml = '<div class=\"monthly-list-time-end\">'+endTime+' '+endPeriod+'</div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvar timeHtml = startTimehtml + endTimehtml + '</div>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(options.lang=='en'){\n\t\t\t\t\t\t\t\t$('#'+uniqueId+' .monthly-list-item[data-number=\"'+startDay+'\"]').addClass('item-has-event').append('<a href=\"'+eventURL+'\" class=\"listed-event\" id=\"listed-event-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+' '+timeHtml+'</a>');\n\t\t\t\t\t\t\t}else if(options.lang=='he'){\n\t\t\t\t\t\t\t\t$('#'+uniqueId+' .monthly-list-item-rtl[data-number=\"'+startDay+'\"]').addClass('item-has-event').append('<a href=\"'+eventURL+'\" class=\"listed-event\" id=\"listed-event-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+' '+timeHtml+'</a>');\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t// If event is multi day & within month\n\t\t\t\t\t\t} else if (startMonth == setMonth && startYear == setYear && endMonth == setMonth && endYear == setYear){\n\t\t\t\t\t\t\tfor(var i = parseInt(startDay); i <= parseInt(endDay); i++) {\n\t\t\t\t\t\t\t\t// If first day, add title\n\t\t\t\t\t\t\t\tif (i == parseInt(startDay)) {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+'</div>');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\"></div>');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmultidaylist();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// If event is multi day, starts in prev month, and ends in current month\n\t\t\t\t\t\t} else if ((endMonth == setMonth && endYear == setYear) && ((startMonth < setMonth && startYear == setYear) || (startYear < setYear))) {\n\t\t\t\t\t\t\tfor(var i = 0; i <= parseInt(endDay); i++) {\n\t\t\t\t\t\t\t\t// If first day, add title\n\t\t\t\t\t\t\t\tif (i==1){\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+'</div>');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\"></div>');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmultidaylist();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// If event is multi day, starts in this month, but ends in next\n\t\t\t\t\t\t} else if ((startMonth == setMonth && startYear == setYear) && ((endMonth > setMonth && endYear == setYear) || (endYear > setYear))){\n\t\t\t\t\t\t\tfor(var i = parseInt(startDay); i <= dayQty; i++) {\n\t\t\t\t\t\t\t\t// If first day, add title\n\t\t\t\t\t\t\t\tif (i == parseInt(startDay)) {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+'</div>');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\"></div>');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmultidaylist();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// If event is multi day, starts in a prev month, ends in a future month\n\t\t\t\t\t\t} else if (((startMonth < setMonth && startYear == setYear) || (startYear < setYear)) && ((endMonth > setMonth && endYear == setYear) || (endYear > setYear))){\n\t\t\t\t\t\t\tfor(var i = 0; i <= dayQty; i++) {\n\t\t\t\t\t\t\t\t// If first day, add title\n\t\t\t\t\t\t\t\tif (i == 1){\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+eventTitle+'</div>');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+i+'\"] .monthly-indicator-wrap').append('<div class=\"monthly-event-indicator\" id=\"monthly-event-indicator-'+eventTtype+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\"></div>');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmultidaylist();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t//var eventsResource = (options.dataType == 'xml' ? options.xmlUrl : options.jsonUrl);\n\t\t\t\t\tswitch (options.dataType){\n\t\t\t\t\t\tcase('xml'):\n\t\t\t\t\t\t\teventsResource = options.xmlUrl;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase('json'):\n\t\t\t\t\t\t\teventsResource = options.jsonUrl;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase('php'):\n\t\t\t\t\t\t\teventsResource = options.phpUrl;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(options.dataType=='xml' || options.dataType=='json'){\n\t\t\t\t\t\t$.get(''+eventsResource+'', {now: jQuery.now()}, function(d){\n\t\t\t\t\t\t\tif (options.dataType == 'xml') {\n\t\t\t\t\t\t\t\t$(d).find('event').each(function(index, event) {\n\t\t\t\t\t\t\t\t\taddEvents(event);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else if (options.dataType == 'json') {\n\t\t\t\t\t\t\t\t$.each(d.monthly, function(index, event) {\n\t\t\t\t\t\t\t\t\taddEvents(event);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, options.dataType).fail(function() {\n\t\t\t\t\t\t\tconsole.error('Monthly.js failed to import '+eventsResource+'. Please check for the correct path & '+options.dataType+' syntax.');\n\t\t\t\t\t\t});\n\t\t\t\t\t}else if(options.dataType=='php'){\n\t\t\t\t\t\t//////////////////////joomla format//////////////////\n\t\t\t\t\t\tvar request = {\n\t\t\t\t\t\t\t'option' : 'com_ajax',\n\t\t\t\t\t\t\t'module' : 'jewishcalendar',\n\t\t\t\t\t\t\t'data' : m+'AND'+y, /*send here m (month)'AND' y(year)*/\n\t\t\t\t\t\t\t'method' :'getCreateJson',\n\t\t\t\t\t\t\t'format' : 'raw'\n\t\t\t\t\t\t};\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\ttype : 'POST',\n\t\t\t\t\t\t\tdata : request,\n\t\t\t\t\t\t\tsuccess: function (d) { /*d return events list in json format*/\n\t\t\t\t\t\t\t\t//alert(d);\n\t\t\t\t\t\t\t\tvar obj = jQuery.parseJSON(d);//convert json strint to json object \n\t\t\t\t\t\t\t\t$.each(obj.monthly, function(index, event) {\n\t\t\t\t\t\t\t\t\taddEvents(event);\n\t\t\t\t\t\t\t\t});\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tvar divs = $(\"#\"+uniqueId+\" .m-d\");\n\t\t\t\t\tvar j=1;\n\t\t\t\t\tfor(var i = 0; i < divs.length; i+=7) {\n\t\t\t\t\t divs.slice(i, i+7).wrapAll(\"<div class='monthly-week' data-week='\"+j+\"'></div>\");\n\t\t\t\t\t j++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "90bc33c8d0abebd8123a8eb28c3ec5aa", "score": "0.57228214", "text": "function additionalOnChangePeriod()\n{\n // Get new selected days & months.\n var sD = document.getElementById('r_tabPeriodStartDaySelectorId' ).selectedIndex + 1;\n var sM = document.getElementById('r_tabPeriodStartMonthSelectorId' ).selectedIndex + 1;\n var fD = document.getElementById('r_tabPeriodFinishDaySelectorId' ).selectedIndex + 1;\n var fM = document.getElementById('r_tabPeriodFinishMonthSelectorId').selectedIndex + 1;\n\n // Get new selected years.\n var sYelem = document.getElementById('r_tabPeriodStartYearSelectorId' );\n var fYelem = document.getElementById('r_tabPeriodFinishYearSelectorId');\n var sY = Number(sYelem.options[0].text) + sYelem.selectedIndex;\n var fY = Number(fYelem.options[0].text) + fYelem.selectedIndex;\n\n // Set main page hidden data period variables.\n setMainPageHiddenDataR_tabPeriodVars(sD, sM, sY, fD, fM, fY);\n\n // Reset season selector and main page hidden data season variable.\n document.getElementById('r_tabPeriodSeasonSelectorId').selectedIndex = 0;\n document.getElementById('r_tabPeriodHiddenDataSeasonId').value = 'Select Season';\n\n updateR_tabPeriodCheckbox();\n\n initSelectedS_tab();\n}", "title": "" }, { "docid": "02712ec2e9e1eafa2f14d01d7c08e93b", "score": "0.5718045", "text": "function disableTournamensSelections()\n {\n $('#formProfile #tournament').attr('disabled','disabled');\n }", "title": "" }, { "docid": "9c0dfcebc001f2c6bbeae0f2f56b83db", "score": "0.5704229", "text": "function activarFechas() {\n\n $(\"#nuevaFechaFin\").val(\"\");\n $(\"#nuevaFechaFin\").html(\"\");\n $(\"#nuevaFechaInicio\").val(\"\");\n $(\"#nuevaFechaInicio\").html(\"\");\n $(\"#nuevaFechaFin\").removeAttr('disabled');\n $(\"#nuevaFechaInicio\").removeAttr('disabled');\n}", "title": "" }, { "docid": "4d27a1e63fe3795ccfd61723b03b3473", "score": "0.56973624", "text": "function hideConflicts(selected){\n //go through entire eventList and compare against the one selected event\n for(let i=0; i< eventList.length; i++){\n //ignore checkboxes that are already checked OR disabled OR if the start date is -1 \n if(!fieldset_activities_inputs[i].checked && eventList[i].start > -1){\n if(!isEventAvailable(i, selected)){\n fieldset_activities_inputs[i].disabled = true;\n fieldset_activities_inputs[i].parentNode.className = 'disabled';\n }\n }\n }\n}", "title": "" }, { "docid": "ac93a74a0d26a7572fa6402885f051c5", "score": "0.5693141", "text": "function dateControl(e) {\n var calendar1 = document.querySelector('.calendar-1').value; //2018-11-14\n var calendar2 = document.querySelector('.calendar-2').value;\n\n // disable weekends\n var date1 = new Date(calendar1);\n var date2 = new Date(calendar2);\n if(date1.getDay() == 0 || date1.getDay() == 6 ||\n date2.getDay() == 0 || date2.getDay() == 6){\n alert('Savaitgaliais valiutų kursų informacija nenaujinama.');\n }\n\n // disable new years, christmas\n var calendar1Year = calendar1.substring(0,4);\n var calendar1Month = calendar1.substring(5,7);\n var calendar1Day = calendar1.substring(8,10);\n\n var calendar2Year = calendar2.substring(0,4);\n var calendar2Month = calendar2.substring(5,7);\n var calendar2Day = calendar2.substring(8,10);\n\n if(calendar1Month === '01' && calendar1Day === '01' ||\n calendar2Month === '01' && calendar2Day === '01' ||\n calendar1Month === '12' && calendar1Day === '25' ||\n calendar2Month === '12' && calendar2Day === '25' ||\n calendar1Month === '12' && calendar1Day === '26' ||\n calendar2Month === '12' && calendar2Day === '26' ) {\n alert('Švenčių dienomis valiutų kursų informacija nenaujinama.');\n }\n\n // disable calendar 2 selection beyond the calendar 1 selected date\n var message = \"Data (iki) negali būti ankstesnė nei prieš tai nurodyta data (nuo).\";\n\n if(calendar2 === '') {\n true;\n } else if(calendar1Year > calendar2Year) {\n alert(message);\n e.preventDefault();\n } else if(calendar1Month === calendar2Month &&\n calendar1Day > calendar2Day) {\n alert(message);\n e.preventDefault();\n } else if(calendar1Year === calendar2Year &&\n calendar1Month > calendar2Month) {\n alert(message);\n e.preventDefault();\n }\n\n // disable date selection beyond current date\n var now = new Date();\n var maxDate = now.toISOString().substring(0,10);\n\n document.querySelector('.calendar-1').setAttribute('max', maxDate);\n // document.querySelector('.calendar-2').setAttribute('max', maxDate);\n \n // e.preventDefault();\n}", "title": "" }, { "docid": "fc24155a8c5a76adf3e9dcb0ed461fef", "score": "0.56682473", "text": "function setInsurDate() {\n if ($('[id$=\"_attributes_insured\"]').prop(\"checked\")) {\n $('[id$=\"_attributes_insurance_date\"]').attr(\"disabled\", false);\n } else {\n $('[id$=\"_attributes_insurance_date\"]').attr(\"disabled\", true);\n $('[id$=\"_attributes_insurance_date\"]').val(\"\");\n }\n}", "title": "" }, { "docid": "14f423a268cb0b811f889dfe70a85a66", "score": "0.5648301", "text": "function activitiesPrevent(){\n activitiesFieldSet.addEventListener('change', (e) => {\n const input = e.target;\n const attribute = input.getAttribute('data-day-and-time');\n\n for (let i = 0; i < activitiesBoxes.length; i++) {\n const checkbox = activitiesBoxes[i].getElementsByTagName('input')[0];\n checkboxType = checkbox.getAttribute(\"data-day-and-time\");\n \n if(attribute === checkboxType && input !== checkbox){\n checkbox.disabled ? checkbox.disabled = false : checkbox.disabled = true;\n };\n };\n });\n}", "title": "" }, { "docid": "941f877f95f6deac1ae8f1bef9ac2deb", "score": "0.5642011", "text": "function setMonthly(m, y){\n\t\t\t$('#' + uniqueId).data('setMonth', m).data('setYear', y);\n\n\t\t\t// Get number of days\n\t\t\tvar dayQty = daysInMonth(m, y),\n\t\t\t\t// Get day of the week the first day is\n\t\t\t\tmZeroed = m -1,\n\t\t\t\tfirstDay = new Date(y, mZeroed, 1, 0, 0, 0, 0).getDay();\n\n\t\t\t// Remove old days\n\t\t\t$('#' + uniqueId + ' .monthly-day, #' + uniqueId + ' .monthly-day-blank').remove();\n\t\t\t$('#'+uniqueId+' .monthly-event-list').empty();\n\t\t\t$('#'+uniqueId+' .monthly-day-wrap').empty();\n\t\t\t// Print out the days\n\t\t\tif (options.mode == 'event') {\n\t\t\t\tfor(var i = 0; i < dayQty; i++) {\n\n\t\t\t\t\tvar day = i + 1; // Fix 0 indexed days\n\t\t\t\t\tvar dayNamenum = new Date(y, mZeroed, day, 0, 0, 0, 0).getDay()\n\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<a href=\"#\" class=\"m-d monthly-day monthly-day-event\" data-number=\"'+day+'\"><div class=\"monthly-day-number\">'+day+'</div><div class=\"monthly-indicator-wrap\"></div></a>');\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-event-list').append('<div class=\"monthly-list-item\" id=\"'+uniqueId+'day'+day+'\" data-number=\"'+day+'\"><div class=\"monthly-event-list-date\">'+dayNames[dayNamenum]+'<br>'+day+'</div></div>');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor(var i = 0; i < dayQty; i++) {\n\t\t\t\t\t// Fix 0 indexed days\n\t\t\t\t\tvar day = i + 1;\n\n\t\t\t\t\t// Check if it's a day in the past\n\t\t\t\t\tif(((day < currentDay && m === currentMonth) || y < currentYear || (m < currentMonth && y == currentYear)) && options.stylePast == true){\n\t\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<a href=\"#\" class=\"m-d monthly-day monthly-day-pick monthly-past-day\" data-number=\"'+day+'\"><div class=\"monthly-day-number\">'+day+'</div><div class=\"monthly-indicator-wrap\"></div></a>');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<a href=\"#\" class=\"m-d monthly-day monthly-day-pick\" data-number=\"'+day+'\"><div class=\"monthly-day-number\">'+day+'</div><div class=\"monthly-indicator-wrap\"></div></a>');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Set Today\n\t\t\tvar setMonth = $('#' + uniqueId).data('setMonth'),\n\t\t\t\tsetYear = $('#' + uniqueId).data('setYear');\n\t\t\tif (setMonth == currentMonth && setYear == currentYear) {\n\t\t\t\t$('#' + uniqueId + ' *[data-number=\"'+currentDay+'\"]').addClass('monthly-today');\n\t\t\t}\n\n\t\t\t// Reset button\n\t\t\tif (setMonth == currentMonth && setYear == currentYear) {\n\t\t\t\t$('#' + uniqueId + ' .monthly-header-title-date').html(monthNames[m - 1] +' '+ y);\n\t\t\t} else {\n\t\t\t\t$('#' + uniqueId + ' .monthly-header-title').html('<a href=\"#\" class=\"monthly-header-title-date\" onclick=\"return false\">'+monthNames[m - 1] +' '+ y +'</a><a href=\"#\" class=\"monthly-reset\" title=\"Set to today\">↻ TODAY</a> ');\n\t\t\t}\n\n\t\t\t// Account for empty days at start\n\t\t\tif(options.weekStart == 'Sun' && firstDay != 7) {\n\t\t\t\tfor(var i = 0; i < firstDay; i++) {\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t}\n\t\t\t} else if (options.weekStart == 'Mon' && firstDay == 0) {\n\t\t\t\tfor(var i = 0; i < 6; i++) {\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\" ><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t}\n\t\t\t} else if (options.weekStart == 'Mon' && firstDay != 1) {\n\t\t\t\tfor(var i = 0; i < (firstDay - 1); i++) {\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').prepend('<div class=\"m-d monthly-day-blank\" ><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Account for empty days at end\n\t\t\tvar numdays = $('#' + uniqueId + ' .monthly-day').length,\n\t\t\t\tnumempty = $('#' + uniqueId + ' .monthly-day-blank').length,\n\t\t\t\ttotaldays = numdays + numempty,\n\t\t\t\troundup = Math.ceil(totaldays/7) * 7,\n\t\t\t\tdaysdiff = roundup - totaldays;\n\t\t\tif(totaldays % 7 != 0) {\n\t\t\t\tfor(var i = 0; i < daysdiff; i++) {\n\t\t\t\t\t$('#' + uniqueId + ' .monthly-day-wrap').append('<div class=\"m-d monthly-day-blank\"><div class=\"monthly-day-number\"></div></div>');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Events\n\t\t\tif (options.mode == 'event') {\n\t\t\t\t// Remove previous events\n\n\t\t\t\tvar formatMoney = function(n) {\n\t\t\t\t\tvar n = parseFloat(n),\n\t\t\t\t\t\tc = isNaN(c = Math.abs(c)) ? 2 : c,\n\t\t\t\t\t\td = d == undefined ? \".\" : d,\n\t\t\t\t\t\tt = t == undefined ? \",\" : t,\n\t\t\t\t\t\ts = n < 0 ? \"-\" : \"\",\n\t\t\t\t\t\ti = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),\n\t\t\t\t\t\tj = (j = i.length) > 3 ? j % 3 : 0;\n\t\t\t\t\treturn s + (j ? i.substr(0, j) + t : \"\") + i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : \"\");\n\t\t\t\t};\n\n\t\t\t\tvar amountClass = function(n) {\n\t\t\t\t\tif (n > 0)\n\t\t\t\t\t\treturn \" positive\";\n\t\t\t\t\telse if (n < 0)\n\t\t\t\t\t\treturn \" negative\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"\";\n\t\t\t\t}\n\n\t\t\t\t// Add Events\n\t\t\t\tvar addEvents = function(event) {\n\t\t\t\t\t// Year [0] Month [1] Day [2]\n\n\t\t\t\t\tvar fullstartDate = event.startdate,\n\t\t\t\t\t\tstartArr = fullstartDate.split(\"-\"),\n\t\t\t\t\t\tstartYear = startArr[0],\n\t\t\t\t\t\tstartMonth = parseInt(startArr[1], 10),\n\t\t\t\t\t\tstartDay = parseInt(startArr[2], 10),\n\t\t\t\t\t\teventTitle = event.name,\n\t\t\t\t\t\teventColor = event.color,\n\t\t\t\t\t\teventId = event.id;\n\n\t\t\t\t\tif (startMonth == m && startYear == y) {\n\t\t\t\t\t\tvar title = eventTitle.split(\"|\"),\n\t\t\t\t\t\t\tamount = 0;\n\n\t\t\t\t\t\tif (title.length > 1) {\n\t\t\t\t\t\t\tamount = title[1];\n\t\t\t\t\t\t\ttitle = title[0] + \"<span class='amount'>\"+formatMoney(title[1])+\"</span>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tamount = title[0];\n\t\t\t\t\t\t\ttitle = formatMoney(title[0]);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$('#'+uniqueId+' *[data-number=\"'+startDay+'\"] .monthly-indicator-wrap')\n\t\t\t\t\t\t\t.append('<div class=\"monthly-event-indicator'+amountClass(amount)+'\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+title+'</div>');\n\n\t\t\t\t\t\t$('#'+uniqueId+' .monthly-list-item[data-number=\"'+startDay+'\"]')\n\t\t\t\t\t\t\t.addClass('item-has-event').append('<a href=\"#\" class=\"listed-event\" data-eventid=\"'+ eventId +'\" title=\"'+eventTitle+'\">'+title+'</a>');\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tif (options.hasOwnProperty(\"data\")) {\n\t\t\t\t\t$.each(options.data, function(i, event) {\n\t\t\t\t\t\taddEvents(event);\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tvar divs = $(\"#\"+uniqueId+\" .m-d\");\n\t\t\tfor(var i = 0; i < divs.length; i+=7) {\n\t\t\t divs.slice(i, i+7).wrapAll(\"<div class='monthly-week'></div>\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "080cab97ebbce814f9c73a37a8cfa10d", "score": "0.563889", "text": "function updateR_tabPeriodCheckbox()\n{\n if (r_tabPeriodElemsAreInDefaultState())\n uncheckR_tabCheckbox('Period');\n else\n checkR_tabCheckbox('Period');\n}", "title": "" }, { "docid": "0f9161ee34dea3171ae5f8d8d7c9115b", "score": "0.56146234", "text": "function updateRecurrencePattern() {\n let args = window.arguments[0];\n let item = args.calendarEvent;\n if (item.parentItem != item || gIsReadOnly) {\n return;\n }\n\n switch (Number(document.getElementById(\"period-list\").value)) {\n // daily\n case 0: {\n let dailyGroup = document.getElementById(\"daily-group\");\n let dailyDays = document.getElementById(\"daily-days\");\n dailyDays.removeAttribute(\"disabled\");\n if (dailyGroup.selectedIndex == 1) {\n dailyDays.setAttribute(\"disabled\", \"true\");\n }\n break;\n }\n // weekly\n case 1: {\n break;\n }\n // monthly\n case 2: {\n let monthlyGroup = document.getElementById(\"monthly-group\");\n let monthlyOrdinal = document.getElementById(\"monthly-ordinal\");\n let monthlyWeekday = document.getElementById(\"monthly-weekday\");\n let monthlyDays = DaypickerMonthday;\n monthlyOrdinal.removeAttribute(\"disabled\");\n monthlyWeekday.removeAttribute(\"disabled\");\n monthlyDays.enable();\n if (monthlyGroup.selectedIndex == 0) {\n monthlyDays.disable();\n } else {\n monthlyOrdinal.setAttribute(\"disabled\", \"true\");\n monthlyWeekday.setAttribute(\"disabled\", \"true\");\n }\n break;\n }\n // yearly\n case 3: {\n let yearlyGroup = document.getElementById(\"yearly-group\");\n let yearlyDays = document.getElementById(\"yearly-days\");\n let yearlyMonthOrdinal = document.getElementById(\"yearly-month-ordinal\");\n let yearlyPeriodOfMonthLabel = document.getElementById(\"yearly-period-of-month-label\");\n let yearlyOrdinal = document.getElementById(\"yearly-ordinal\");\n let yearlyWeekday = document.getElementById(\"yearly-weekday\");\n let yearlyMonthRule = document.getElementById(\"yearly-month-rule\");\n let yearlyPeriodOfLabel = document.getElementById(\"yearly-period-of-label\");\n yearlyDays.removeAttribute(\"disabled\");\n yearlyMonthOrdinal.removeAttribute(\"disabled\");\n yearlyOrdinal.removeAttribute(\"disabled\");\n yearlyWeekday.removeAttribute(\"disabled\");\n yearlyMonthRule.removeAttribute(\"disabled\");\n yearlyPeriodOfLabel.removeAttribute(\"disabled\");\n yearlyPeriodOfMonthLabel.removeAttribute(\"disabled\");\n if (yearlyGroup.selectedIndex == 0) {\n yearlyOrdinal.setAttribute(\"disabled\", \"true\");\n yearlyWeekday.setAttribute(\"disabled\", \"true\");\n yearlyMonthRule.setAttribute(\"disabled\", \"true\");\n yearlyPeriodOfLabel.setAttribute(\"disabled\", \"true\");\n } else {\n yearlyDays.setAttribute(\"disabled\", \"true\");\n yearlyMonthOrdinal.setAttribute(\"disabled\", \"true\");\n yearlyPeriodOfMonthLabel.setAttribute(\"disabled\", \"true\");\n }\n break;\n }\n }\n}", "title": "" }, { "docid": "1a517c6bf5a78f32466ca4916e418d1a", "score": "0.5607837", "text": "function disableLatest(checkID){\n let checkBox = document.getElementById(checkID);\n let day = document.getElementById(\"day\" + checkID.substr(6));\n let month = document.getElementById(\"month\" + checkID.substr(6));\n let year = document.getElementById(\"year\" + checkID.substr(6));\n if (checkBox.checked == true){\n day.value = \"\";\n month.value = \"\";\n year.value = \"\";\n day.disabled = true;\n month.disabled = true;\n year.disabled = true;\n }\n else{\n day.disabled = false;\n month.disabled = false;\n year.disabled = false;\n }\n}", "title": "" }, { "docid": "cda024bd1f3ba2d3ae53729f6ad82b54", "score": "0.5605017", "text": "function randomlyEnableDateCallback(date) {\r\n\t\t\t\t\tvar dateMonthYear = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\r\n\t\t\t\t\tif (coxjs.inArray(dateMonthYear, window.dpEnableDates) >= 0) {\r\n\t\t\t\t\t\treturn [true];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn [false];\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "60834bfa7f087cefd975670e9fad7d6c", "score": "0.56018335", "text": "function setOptionsDisable() {\n for (var i = 0; i < p.radioGroupArr.length; i++) {\n for (var j = 0; j < p.radioGroupArr[i].length; j++) {\n var _mc = p.domObj[p.radioGroupArr[i][j]];\n if (_mc) {\n if (_mc.getAttribute('_status') == 'false') {\n if (p.detectTransparency) {\n gotoAndStopRadioCanas(p.domObj[_mc.id + '_option'], 'disable');\n } else {\n gotoAndStopRadio(p.domObj[_mc.id + '_option'], 'disable');\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "789b01c5edf0f6315fec0627c29c39db", "score": "0.55975014", "text": "function changeTargetPeriod(e) {\n //console.log('changeTargetPeriod');\n var targetPeriod = dojo.byId('targetPeriod').value;\n switch (targetPeriod) {\n case '1960_1990':\n //dojo.byId('targetScenario').setAttribute('disabled','disabled');\n dojo.byId('targetScenario').options[0].removeAttribute('disabled');\n dojo.byId('targetScenario').options[1].setAttribute('disabled', 'disabled');\n dojo.byId('targetScenario').options[2].setAttribute('disabled', 'disabled');\n dojo.byId('targetScenario').options[3].setAttribute('disabled', 'disabled');\n dojo.byId('targetScenario').selectedIndex = 0;\n\n //present to present\n dojo.byId('refPeriod').removeAttribute('disabled');\n dojo.byId('refPeriod').selectedIndex = 0;\n dojo.byId('refPeriod').options[0].removeAttribute('disabled');\n dojo.byId('refScenario').options[0].removeAttribute('disabled');\n dojo.byId('refScenario').options[1].setAttribute('disabled', 'disabled');\n dojo.byId('refScenario').options[2].setAttribute('disabled', 'disabled');\n dojo.byId('refScenario').options[3].setAttribute('disabled', 'disabled');\n dojo.byId('refScenario').selectedIndex = 0;\n\n break;\n case '2020_2049':\n //dojo.byId('targetScenario').setAttribute('disabled','disabled');\n dojo.byId('targetScenario').options[0].setAttribute('disabled', 'disabled');\n dojo.byId('targetScenario').options[1].removeAttribute('disabled');\n dojo.byId('targetScenario').options[2].removeAttribute('disabled');\n dojo.byId('targetScenario').options[3].removeAttribute('disabled');\n dojo.byId('targetScenario').selectedIndex = 1;\n\n //present to present\n dojo.byId('refPeriod').removeAttribute('disabled');\n dojo.byId('refPeriod').selectedIndex = 1;\n dojo.byId('refPeriod').options[1].removeAttribute('disabled');\n dojo.byId('refScenario').options[1].removeAttribute('disabled');\n dojo.byId('refScenario').options[2].removeAttribute('disabled');\n dojo.byId('refScenario').options[3].removeAttribute('disabled');\n dojo.byId('refScenario').options[0].setAttribute('disabled', 'disabled');\n dojo.byId('refScenario').selectedIndex = 1;\n\n break;\n }\n changeRefScenario(null);\n changeTargetScenario(null);\n}", "title": "" }, { "docid": "20ba76161b9c1e44f7e696771d0c5641", "score": "0.5571005", "text": "function fnMonthAndYear() {\n var select = $('#drpMonth');\n $('option', select).remove();\n $('#drpMonth').append(\"<option value='0'>-Select Month-</option>\"); // new Option(\"-Select Month-\", \"0\", true, true));\n $('#drpMonth').append(\"<option value='1'>January</option>\");\n $('#drpMonth').append(\"<option value='2'>February</option>\");\n $('#drpMonth').append(\"<option value='3'>March</option>\");\n $('#drpMonth').append(\"<option value='4'>April</option>\");\n $('#drpMonth').append(\"<option value='5'>May</option>\");\n $('#drpMonth').append(\"<option value='6'>June</option>\");\n $('#drpMonth').append(\"<option value='7'>July</option>\");\n $('#drpMonth').append(\"<option value='8'>August</option>\");\n $('#drpMonth').append(\"<option value='9'>September</option>\");\n $('#drpMonth').append(\"<option value='10'>October</option>\");\n $('#drpMonth').append(\"<option value='11'>November</option>\");\n $('#drpMonth').append(\"<option value='12'>December</option>\");\n $(\"#drpMonth\").val('0');\n var currentYear = (new Date).getFullYear();\n currentYear = currentYear - 1;\n var yearselect = $(\"#drpYear\");\n $('option', yearselect).remove();\n $('#drpYear').append(\"<option value='0'>-Select Year-</option>\");\n for (var t = 0; t < 2; t++) {\n $('#drpYear').append(\"<option value='\" + currentYear + \"'>\" + currentYear + \"</option>\");\n // $('#drpYear').append(new Option(currentYear, currentYear, true, true));\n currentYear = currentYear + 1;\n }\n $(\"#drpYear\").val('0');\n}", "title": "" }, { "docid": "d79ba2fe4cb6d3b3c9f8884f63122709", "score": "0.5566122", "text": "function disableAllTheseDays(date) {\n var day = date.getDay();\n var disable = true;\n disabledDays.forEach(function (disableDay) {\n if (disableDay === day) {\n disable = false;\n }\n });\n disabledDates.forEach(function (disableDate) {\n if (disableDate === formatDate(date)) {\n disable = false;\n }\n });\n\n return [disable, ''];\n\n}", "title": "" }, { "docid": "7a49ec44f1cc9a5dc72ed3468cdc4838", "score": "0.556386", "text": "function limitCalendar() {\n $(\"#date\").attr(\"max\", maxDay)\n $(\"#date\").attr(\"min\", today)\n $(\"#date\").keyup(function(){\n let inputDate = ($('#date').val()).replace(/-/g, \"\");\n let todayInteger = today.replace(/-/g, \"\")\n var maxDayInteger = maxDay.replace(/-/g, \"\")\n if (inputDate<maxDayInteger && inputDate>=todayInteger){\n document.getElementById(\"submit\").disabled = false\n }else {\n document.getElementById(\"submit\").disabled = true\n }\n })\n}", "title": "" }, { "docid": "3d31c6035abbf55b334f673c9f745e0e", "score": "0.5548507", "text": "function enableTournamensSelections()\n {\n $('#tournament').removeAttr('disabled','disabled');\n }", "title": "" }, { "docid": "3d31c6035abbf55b334f673c9f745e0e", "score": "0.5548507", "text": "function enableTournamensSelections()\n {\n $('#tournament').removeAttr('disabled','disabled');\n }", "title": "" }, { "docid": "ef8d69885901f2392344d0ed166e0840", "score": "0.5546942", "text": "function resetDatePreset() {\n var presetFilter = document.getElementById('List:DatePresetFilter');\n\n if (presetFilter && !presetFilter.hasAttribute(\"disableReseting\") && presetFilter.value != '')\n presetFilter.selectedIndex = 0;\n}", "title": "" }, { "docid": "4461485b1e8f8dbd02ee8d2dc1cb9f7c", "score": "0.5534954", "text": "function disbalfield() {\r\n document.getElementById('days1').disabled = false;\r\n document.getElementById('days2').disabled = false;\r\n document.getElementById('days3').disabled = false;\r\n document.getElementById('days4').disabled = false;\r\n document.getElementById('days5').disabled = false;\r\n document.getElementById('days6').disabled = false;\r\n document.getElementById('days7').disabled = false;\r\n document.getElementById('days8').disabled = false;\r\n document.getElementById('days9').disabled = false;\r\n document.getElementById('days10').disabled = false;\r\n document.getElementById('days11').disabled = false;\r\n document.getElementById('days12').disabled = false;\r\n document.getElementById('days13').disabled = false;\r\n document.getElementById('days14').disabled = false;\r\n document.getElementById('days15').disabled = false;\r\n document.getElementById('days16').disabled = false;\r\n document.getElementById('days17').disabled = false;\r\n document.getElementById('days18').disabled = false;\r\n document.getElementById('days19').disabled = false;\r\n document.getElementById('days20').disabled = false;\r\n document.getElementById('days21').disabled = false;\r\n document.getElementById('days22').disabled = false;\r\n document.getElementById('days23').disabled = false;\r\n document.getElementById('days24').disabled = false;\r\n document.getElementById('days25').disabled = false;\r\n document.getElementById('days26').disabled = false;\r\n document.getElementById('days27').disabled = false;\r\n document.getElementById('days28').disabled = false;\r\n document.getElementById('days29').disabled = false;\r\n document.getElementById('days30').disabled = false;\r\n document.getElementById('days31').disabled = false;\r\n return false;\r\n}", "title": "" }, { "docid": "e1cbd0e90becf470ce251edcf7887855", "score": "0.5531324", "text": "function randomlyDisableDateCallback(date) {\r\n\t\t\t\t\tif (disableDates != null && disableDates.length > 0) {\r\n\t\t\t\t\t\tvar dateMonthYear = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\r\n\t\t\t\t\t\tif (coxjs.inArray(dateMonthYear, disableDates) < 0) {\r\n\t\t\t\t\t\t\treturn [true, \"\"];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn [false, \"\"];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "efe92be8f9215c51e46e95234a6361b4", "score": "0.5526671", "text": "function enableTournamensSelections()\n {\n $('#formProfileChangeTeam #tournament').removeAttr('disabled','disabled');\n }", "title": "" }, { "docid": "8232c5875b3599978f90998d702aa0e7", "score": "0.5512258", "text": "function exWrFindManage_wrConsole_checkDateRange() {\n // 'exWrFindManage_requested' is a custom HTML element, use $() function to access it\n var requested = $('exWrFindManage_requested').value;\n var enabled = (requested == 'Date Range');\n \n var console = View.panels.get('exWrFindManage_wrConsole');\n console.enableField('wr.date_requested.from', enabled);\n console.enableField('wr.date_requested.to', enabled);\n}", "title": "" }, { "docid": "c8fc80dae6f3b65f33ecc50d1baca90b", "score": "0.55005294", "text": "function vigencia_lic() {\r\n\t$('[name=\"vigencia\"]').change(function(e) {\r\n\t\te.preventDefault();\r\n\t\tvar v = $(this).val();\r\n\t\tif ( v == '2') {\r\n\t\t\t$('#f_exp').attr('disabled','disabled');\r\n\t\t\t$('#f_ven').attr('disabled','disabled');\r\n\t\t}else{\r\n\t\t\t$('#f_exp').removeAttr('disabled');\r\n\t\t\t$('#f_ven').removeAttr('disabled');\r\n\t\t}\r\n\t});\r\n\treturn false;\r\n}", "title": "" }, { "docid": "b91ec5607580b4b6f46a445b6c6958d4", "score": "0.5496676", "text": "function renderCutoffDate($scope) { \n if ($scope.notAdmin == true) {\n var now = new Date(); \n var date = new Date(now.getFullYear(), now.getMonth() + 1, now.getDate());\n var cutOffDate = new Date(now.getFullYear(), now.getMonth() + 1, 20); \n if ($scope.startDate!=undefined)\n $scope.enableRequest = (date >= cutOffDate || date.getMonth() > $scope.startDate.getMonth()) ? true : false;\n else\n $scope.enableRequest = (date >= cutOffDate) ? true : false;\n }\n else\n $scope.enableRequest = false;\n}", "title": "" }, { "docid": "d3ce3d126eb7b0e315cdaaf972265444", "score": "0.54835", "text": "_initDates() {\n // Set the selectedDate to the input value\n if (this.element.value) {\n if (this.element.getAttribute('type').toLowerCase() === 'date') {\n this.date = moment(this.element.value, 'YYYY-MM-DD');\n } else {\n this.date = moment(this.element.value);\n }\n } else {\n this.date = this.options.selectedDate ? moment(this.options.selectedDate) : moment();\n }\n // Transform start date according to dateFormat option\n this.minDate = this.options.minDate ? moment(this.options.minDate) : null;\n this.maxDate = this.options.maxDate ? moment(this.options.maxDate) : null;\n\n if (this.options.disabledDates) {\n if (!Array.isArray(this.options.disabledDates)) {\n this.options.disabledDates = [this.options.disabledDates];\n }\n for (var i=0; i < this.options.disabledDates.length; i++) {\n this.options.disabledDates[i] = moment(this.options.disabledDates[i]);\n }\n }\n }", "title": "" }, { "docid": "88d7e5858c8b326315fd5fce29b25e78", "score": "0.54815394", "text": "function disableAllOptions() {\n var __tempOptionSetArr = new Array();\n for (var i = 0; i < p.radioGroupArr.length; i++) {\n var tempStr = String(p.radioGroupArr[i]);\n var tempArr = tempStr.split(',');\n __tempOptionSetArr.push(tempArr);\n for (var j = 0; j < __tempOptionSetArr[i].length; j++) {\n var _mc = p.domObj[String(__tempOptionSetArr[i][j])];\n if (_mc) {\n if (p.detectTransparency) {\n removeCanvasListeners(_mc);\n } else {\n removeListeners(_mc);\n if (p.optionDisableOnFb && _mc.getAttribute('_status') == 'false') {\n gotoAndStopRadio(p.domObj[_mc.id + '_option'], 'disable');\n }\n // if(_mc.getAttribute('_status') == \"false\")\n // gotoAndStopRadio(p.domObj[_mc.id+\"_option\"],'disable');\n }\n }\n }\n }\n }", "title": "" }, { "docid": "b77e994bb9ed719da8a076ec445ff371", "score": "0.54808885", "text": "function disableButtons() {\r\n d3.selectAll('button').attr('disabled', true).classed(\"disable\",true).classed(\"enable\",false); \r\n\td3.selectAll('button#reset').attr('disabled', null).classed(\"disable\",false).classed(\"enable\",true); \r\n\td3.selectAll('#yearSlider').attr('disabled', true).classed(\"disable\",true).classed(\"enable\",false); \r\n\t\r\n}", "title": "" }, { "docid": "91d05318dd24f579f9cd3bddd687ceea", "score": "0.5479417", "text": "function enableTournamensSelections()\n {\n $('#formProfile #tournament').removeAttr('disabled','disabled');\n }", "title": "" }, { "docid": "ff7b7e5a9cda173f7c1031244b3db480", "score": "0.5472031", "text": "'change #ddlMonthTrans' (e, instance) {\r\n e.preventDefault();\r\n $(\"#ddlFinancialYearTrans\").val('');\r\n $(\"#spdStateForTransmission\").val('');\r\n $(\"#discom_stateTrans\").val('');\r\n instance.gettingInvoiceData.set(false);\r\n }", "title": "" }, { "docid": "1c214cc4cda43f57757af7762e6acf44", "score": "0.5462834", "text": "function disableTimeseriesCheckboxes() {\n\tfor (var i = 0; i < seriesHandler.length; i++) {\n\t\tseriesHandler[i].disableCheckbox();\n\t}\n}", "title": "" }, { "docid": "4c9ef2196da4b8cc8baadfce1c248f3f", "score": "0.5458808", "text": "function checkDisable()\n{\n if(document.getElementById(\"byDay\").checked == true)\n {\n var eventdate = document.getElementById(\"event_date2\").value;\n\tvar dOw = whichDay(eventdate);\n\tif(dOw == \"Sunday\"){document.getElementById(\"Sun\").checked = true;}\n\telse{document.getElementById(\"Sun\").disabled = false;}\n\tif(dOw == \"Monday\"){document.getElementById(\"Mon\").checked = true;}\n\telse{document.getElementById(\"Mon\").disabled = false;}\n\tif(dOw == \"Tuesday\"){document.getElementById(\"Tue\").checked = true;}\n\telse{document.getElementById(\"Tue\").disabled = false;}\n\tif(dOw == \"Wednesday\"){document.getElementById(\"Wed\").checked = true;}\n\telse{document.getElementById(\"Wed\").disabled = false;}\n\tif(dOw == \"Thursday\"){document.getElementById(\"Thur\").checked = true;}\n\telse{document.getElementById(\"Thur\").disabled = false;}\n\tif(dOw == \"Friday\"){document.getElementById(\"Fri\").checked = true;}\n\telse{document.getElementById(\"Fri\").disabled = false;}\n\tif(dOw == \"Saturday\"){document.getElementById(\"Sat\").checked = true;}\n\telse{document.getElementById(\"Sat\").disabled = false;}\n }\n else\n {\n document.getElementById(\"Sun\").disabled = true;\n\tdocument.getElementById(\"Mon\").disabled = true;\n\tdocument.getElementById(\"Tue\").disabled = true;\n\tdocument.getElementById(\"Wed\").disabled = true;\n\tdocument.getElementById(\"Thur\").disabled = true;\n\tdocument.getElementById(\"Fri\").disabled = true;\n\tdocument.getElementById(\"Sat\").disabled = true;\n\t\n\tdocument.getElementById(\"Sun\").checked = false;\n\tdocument.getElementById(\"Mon\").checked = false;\n\tdocument.getElementById(\"Tue\").checked = false;\n\tdocument.getElementById(\"Wed\").checked = false;\n\tdocument.getElementById(\"Thur\").checked = false;\n\tdocument.getElementById(\"Fri\").checked = false;\n\tdocument.getElementById(\"Sat\").checked = false;\n }\n}", "title": "" }, { "docid": "0d2dd7cdec50c91394a68466a0085366", "score": "0.5456456", "text": "function isDisabled(date) {\n var today = new Date();\n return (Math.abs(date.getTime() - today.getTime()) / DAY) > 10;\n}", "title": "" }, { "docid": "75c108160bb2ab53bceff8ae5112c166", "score": "0.5453199", "text": "function disableButtonInput() {\n document.getElementById(\"schedule-prev\").setAttribute(\"disabled\", true);\n document.getElementById(\"schedule-next\").setAttribute(\"disabled\", true);\n}", "title": "" }, { "docid": "37db1fb2336dc20e091e210e1c4fe467", "score": "0.5449774", "text": "function disableOptions() {\n $('input[name=\"test\"]').prop('disabled', true);\n}", "title": "" }, { "docid": "5856f6f01158be3575203e945f1e5188", "score": "0.5438656", "text": "function FixAvailableCashOutOptions() {\n if (Val.Selected && Val.Value > 0) {\n ResetAvailableCashOutOptions();\n LimitChoices(g.Amt_CashOut_DDL, MaxLTV_CashOut);\n g.Amt_CashOut_Limited = true;\n }\n}", "title": "" }, { "docid": "258f76bed9e4be8fbf56fa01e519860c", "score": "0.54056346", "text": "function lastMonth() {\n let mes = new Date();\n if (monthNumber-1 === mes.getMonth() && currentYear === mes.getFullYear()){\n $(\"#prev-month\").attr(\"hidden\", \"hidden\");\n }\n if (monthNumber !== 0) {\n monthNumber--;\n }else {\n monthNumber = 11;\n currentYear--;\n }\n setNewDate();\n }", "title": "" }, { "docid": "77e2f3eecaddc95b4bcbda5f58d6f2d6", "score": "0.5405032", "text": "function check_departure() {\n thisform = document.js__fbqs__form;\n\n if(thisform.today == null)\n return;\n\n var nbm = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];\n\n var ar_day = parseInt(thisform.fromday.value) + 1;\n var ar_month = parseInt(thisform.frommonth.value);\n var ar_year = parseInt(thisform.fromyear.value);\n\n if(ar_day > nbm[ar_month - 1]) {\n ar_day = 1;\n ar_month += 1;\n if(ar_month > 12) {\n ar_month = 1;\n ar_year += 1;\n }\n }\n\n var cur_date = new Date();\n var cur_year = takeYear(cur_date);\n\n thisform.today.selectedIndex = ar_day - 1;\n thisform.tomonth.selectedIndex = ar_month - 1;\n thisform.toyear.selectedIndex = ar_year - cur_year;\n}", "title": "" }, { "docid": "08a17663b9a5653406303f71a5f8002c", "score": "0.54047453", "text": "function toggleMonth(pre, togg, post)\n {\n var elemId = pre + \"rectypemonth\" + post;\n var elem = document.getElementById(elemId);\n if (togg.id == pre + \"recurringtype\" + post) {\n var i = togg.selectedIndex;\n if (togg.options[i].value == 'monthly') {\n getLabelFor(elemId).innerHTML = 'Type of Monthly Recurrence';\n document.getElementById(elemId).style.display = 'block';\n } else {\n getLabelFor(elemId).innerHTML = '';\n document.getElementById(elemId).style.display = 'none';\n }\n }\n // get startdate info\n togg = document.getElementById(pre + \"recurs_until\" + post);\n var weekdays = Array(\"Sunday\", \"Monday\", \"Tuesday\",\n \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\");\n var startelem = document.getElementById(pre + \"starttime\" + post);\n var startyear = startelem.value.substring(0, 4);\n var startmonth = startelem.value.substring(5, 7);\n var startday = startelem.value.substring(8, 10);\n var startdate = new Date(startyear, startmonth - 1, startday);\n var startweekday = weekdays[startdate.getDay()];\n if (togg.value != '') {\n // get day of week\n var year = togg.value.substring(0, 4);\n var month = togg.value.substring(5, 7);\n var day = togg.value.substring(8, 10);\n var date = new Date(year, month - 1, day);\n var weekday = weekdays[date.getDay()];\n // get week in month\n var nth = {\n \"1\": \"First\",\n \"2\": \"Second\",\n \"3\": \"Third\",\n \"4\": \"Fourth\",\n \"5\": \"Last\"\n };\n var week = 0;\n for (var i = 1; i <= day; i++) {\n var d = new Date(year, month - 1, i);\n if (weekdays[d.getDay()] == weekday) {\n week++;\n }\n }\n // get total of day in month\n var total = 0;\n var i = 1;\n var d = new Date(year, month - 1, 1);\n while (i == d.getDate()) {\n if (weekdays[d.getDay()] == weekday) {\n total++;\n }\n d = new Date(year, month - 1, ++i);\n }\n // get number of days (28, 29, 30, 31) in month\n var daysinmonth = 28;\n d = new Date(year, month - 1, 28);\n while (daysinmonth == d.getDate()) {\n d = new Date(year, month - 1, ++daysinmonth);\n }\n daysinmonth--;\n // remove options, if any\n for (var i = elem.length - 1; i > -1; i--) {\n elem.remove(i);\n }\n // populate rectypemonth with appropriate options\n var op;\n if (startweekday == weekday) {\n op = document.createElement('option');\n op.id = pre + 'nth' + post;\n op.value = nth[week].toLowerCase();\n op.text = nth[week] + ' ' + weekday + ' of every month';\n elem.add(op, null);\n op = document.createElement('option');\n if (week == 4 && total == 4) {\n op = document.createElement('option');\n op.id = pre + 'last' + post;\n op.value = 'last';\n op.text = 'Last ' + weekday + ' of month';\n elem.add(op, null);\n }\n }\n if (startday == day) {\n op = document.createElement('option');\n op.id = pre + 'date' + post;\n op.value = 'date';\n if (day.substr(1) == \"1\" || day.substr(1) == \"2\" || day.substr(1) == \"3\") {\n op.text = day + nth[day.substr(1)].substr( - 2) + ' of every month';\n } else {\n op.text = day + 'th of every month'\n }\n if (day.substr(0, 1) == \"0\") {\n op.text = op.text.substr(1);\n }\n elem.add(op, null);\n }\n if (daysinmonth == day) {\n op = document.createElement('option');\n op.id = pre + 'lastday' + post;\n op.value = 'lastday';\n op.text = 'Last day of month';\n elem.add(op, null);\n }\n }\n}", "title": "" }, { "docid": "5eba230f9c8e63b461c4b1c11be65d25", "score": "0.54016185", "text": "function DateWidget_resetDateRange() {\n this.resetDate1();\n this.resetDate2();\n}", "title": "" }, { "docid": "a7880f1ffd637aef4dc9e0a998ee2a3d", "score": "0.539469", "text": "function isEnd(){\n if(document.querySelector('#pickDate').value==document.querySelector('#pickDate').max){\n document.querySelector('#nextBtn').disabled = true;\n }\n else {\n document.querySelector('#nextBtn').disabled = false;\n }\n}", "title": "" }, { "docid": "2b16bdad2e7267e2cb5efde86c63c761", "score": "0.539071", "text": "function reset() {\n SS.getRange(UPDATE_MONTHS_VALUE).setValue(0);\n}", "title": "" }, { "docid": "233fadc134ecfbb8daa56c295223eae9", "score": "0.53874123", "text": "function isBeginning(){\n if(document.querySelector('#pickDate').value==\"1995-06-20\"){\n document.querySelector('#prevBtn').disabled = true;\n }\n else {\n document.querySelector('#prevBtn').disabled = false;\n }\n}", "title": "" }, { "docid": "bead8256f418eb69029ea95862c9f297", "score": "0.53866833", "text": "toggleDisabled() {\n findAllParts(\"option\").forEach((option) => {\n if(this.disabled)\n option.attributes[\"disabled\"] = \"disabled\";\n else\n option.attributes.remove(\"disabled\");\n }, this);\n }", "title": "" }, { "docid": "aa80558b3753e4db03316b7e4ca0d6aa", "score": "0.5384122", "text": "goToNextMonth(e) {\n // Add one to the mont\n this.month++;\n\n // If last month was december, change to januari next year\n if (this.month > 11){\n this.month = 0;\n this.year++;\n }\n\n // Format the month and year as ex. Januari 2020\n this.mth_element.textContent = dp_months[this.month] + ' ' + this.year;\n\n // Update the dropdown calendar\n this.populateDates();\n }", "title": "" }, { "docid": "74cac760cb96868c0198a4ff095b65fc", "score": "0.5381537", "text": "function disableTeamsSelections()\n {\n $('#formProfileChangeTeam #teamSelected').attr('disabled','disabled');\n }", "title": "" }, { "docid": "6e56292bb4726adcfc63a84a9a5f72bf", "score": "0.5380341", "text": "function disableAllTimes()\n{\n var $input = $(\"#time\").pickatime();\n var picker = $input.pickatime(\"picker\");\n picker.set(\"disable\", [{\n from: [0, 0],\n to: [23, 45]\n }]);\n}", "title": "" }, { "docid": "ac1c89697ed3c2c255c4f40fe52e2b4f", "score": "0.53717595", "text": "function disabled(data) {\n\tvar date = data.date,\n\tmode = data.mode;\n\treturn mode === 'day' && (date.getDay() === 0 || date.getDay() === 6);\n}", "title": "" }, { "docid": "ec2791f250ebcdcf079a09a173621997", "score": "0.5369698", "text": "function setDates() {\r\n \r\n customTimePeriodSelectionDiv.style.display = \"none\";\r\n\r\n if(timePeriodSelection.value == \"sevenDays\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 7); \r\n } else if(timePeriodSelection.value == \"thirtyDays\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 30); \r\n } else if(timePeriodSelection.value == \"yearToDate\"){\r\n endDate = new Date();\r\n startDate = new Date(endDate.getFullYear()-1,11,31);\r\n } else if(timePeriodSelection.value == \"oneYear\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 365); \r\n } else if(timePeriodSelection.value == \"twoYears\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 365*2); \r\n } else if(timePeriodSelection.value == \"threeYears\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 365*3);\r\n } else if(timePeriodSelection.value == \"fiveYears\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 365*5);\r\n } else if(timePeriodSelection.value == \"tenYears\"){\r\n endDate = new Date();\r\n startDate = new Date();\r\n startDate.setDate(endDate.getDate() - 365*10);\r\n } else if(timePeriodSelection.value == \"max\"){\r\n if(indexSelection.value == \"VT\"){\r\n endDate = new Date();\r\n startDate = vtMinDate;\r\n }\r\n \r\n if(indexSelection.value == \"VFINX\"){\r\n endDate = new Date();\r\n startDate = vfinxMinDate;\r\n }\r\n \r\n if(indexSelection.value == \"XIU\"){\r\n endDate = new Date();\r\n startDate = xiuMinDate; \r\n }\r\n\r\n if(indexSelection.value == \"VBMFX\"){\r\n endDate = new Date();\r\n startDate = vbmfxMinDate; \r\n }\r\n\r\n } else {\r\n console.log(\"no other date conditions met -- use custom\");\r\n startDate = new Date(startYear.value,startMonth.value-1,startDay.value);\r\n endDate = new Date(endYear.value,endMonth.value-1,endDay.value);\r\n customTimePeriodSelectionDiv.style.display = \"block\";\r\n }\r\n\r\n //calc days between start / end of user selection, and days from the oldest data\r\n daysInSelectedPeriod = daysBetween(startDate, endDate);\r\n daysFromMinDate = daysBetween(minDate,startDate);\r\n\r\n console.log(startDate);\r\n console.log(endDate);\r\n console.log(minDate);\r\n \r\n console.log(daysInSelectedPeriod);\r\n console.log(daysFromMinDate);\r\n\r\n}", "title": "" }, { "docid": "f0e5f4744a211b3e9a4bcf733690b503", "score": "0.5367548", "text": "shouldEnableMonth(month) {\n const activeYear = this.dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this.isYearAndMonthAfterMaxDate(activeYear, month) ||\n this.isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this.dateAdapter.createDate(activeYear, month);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this.dateAdapter.getMonth(date) === month; date = this.dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "e7f50c3daef8aba9ea826bc2b242c636", "score": "0.53651845", "text": "'change #ddlMonthIncenSurcharge' (e,instance) {\r\n e.preventDefault();\r\n $(\"#ddlYearIncentiveSurcharge\").val('');\r\n $(\"#discom_stateIncentive\").val('');\r\n instance.gettingInvoiceData.set(false);\r\n}", "title": "" }, { "docid": "40e20bb02dbf1a699b04e2eb1ed00185", "score": "0.53630507", "text": "_shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "40e20bb02dbf1a699b04e2eb1ed00185", "score": "0.53630507", "text": "_shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "40e20bb02dbf1a699b04e2eb1ed00185", "score": "0.53630507", "text": "_shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "40e20bb02dbf1a699b04e2eb1ed00185", "score": "0.53630507", "text": "_shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "40e20bb02dbf1a699b04e2eb1ed00185", "score": "0.53630507", "text": "_shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "09b00c3fdf29716045237bcedefb0813", "score": "0.536214", "text": "function default_set_retract() {\n init_datepicker(moment(2147482800000), \"retractpicker\");\n}", "title": "" }, { "docid": "8ced5679998ab54f5e7a62aa7a371f46", "score": "0.5358956", "text": "nextEnabled() {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n }", "title": "" }, { "docid": "8ced5679998ab54f5e7a62aa7a371f46", "score": "0.5358956", "text": "nextEnabled() {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n }", "title": "" }, { "docid": "8ced5679998ab54f5e7a62aa7a371f46", "score": "0.5358956", "text": "nextEnabled() {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n }", "title": "" }, { "docid": "8ced5679998ab54f5e7a62aa7a371f46", "score": "0.5358956", "text": "nextEnabled() {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n }", "title": "" }, { "docid": "8ced5679998ab54f5e7a62aa7a371f46", "score": "0.5358956", "text": "nextEnabled() {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n }", "title": "" }, { "docid": "b40285f1f8d08eaf5bc3ea60cce36c0d", "score": "0.53494406", "text": "function disableTeamsSelections()\n {\n $('#formProfile #teamSelected').attr('disabled','disabled');\n }", "title": "" }, { "docid": "f7e82a26146e1b405d7bf419e1088e3d", "score": "0.53467524", "text": "function deactivateOption(){\n for(var i of optionSelected){\n i.setAttribute(\"disabled\", \"disabled\");\n }\n}", "title": "" }, { "docid": "c5701aa9a2cbf3dd2e7e3937c07f4294", "score": "0.5338489", "text": "function set_month(start) {\n var path = get_path('months', start);\n return set_date_element_selectbox(start, 'months', path).done(function () {\n set_day(start);\n });\n}", "title": "" }, { "docid": "61c2110370bae0cf8c90aff2ad5f994c", "score": "0.5336778", "text": "function setDatetimeLimit(){\n var today = new Date();\n var dd = today.getDate();\n var mm = today.getMonth()+1; //January is 0!\n var yyyy = today.getFullYear();\n if(dd<10){\n dd='0'+dd\n }\n if(mm<10){\n mm='0'+mm\n }\n\n maxdd = dd + 4;\n min_date = yyyy+'-'+mm+'-'+dd;\n max_date = yyyy+'-'+mm+'-'+maxdd;\n if (document.getElementById(\"profile-username\").innerHTML != 'Visitor'){\n document.getElementById(\"pickdate\").setAttribute(\"min\", min_date);\n document.getElementById(\"dropdate\").setAttribute(\"min\", min_date);\n document.getElementById(\"pickdate\").setAttribute(\"max\", max_date);\n document.getElementById(\"dropdate\").setAttribute(\"max\", max_date);\n }\n}", "title": "" }, { "docid": "655a63ab2a6cd3745e0ee831ea5edd2c", "score": "0.53346664", "text": "function validateMonth()\n {\n var monthSel = '.month';\n var monthSle = $(monthSel);\n var monthVal = $('.month option:selected').attr('value');\n if (monthVal == 0 || typeof monthVal==='undefined') {\n showErrorMsg(monthSel,'please select month');\n return false;\n }\n else {\n removeErrorMsg(monthSel);\n return true;\n }\n }", "title": "" }, { "docid": "11780cdccbe62c767e2ea4135e777cc1", "score": "0.5332772", "text": "function DateWidget_selectYear(YearMenu) {\n var monthNames = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');\n var monthVals = new Array('01','02','03','04','05','06','07','08','09','10','11','12');\n\n currentYear = YearMenu.options[YearMenu.selectedIndex].value;\n\n var currentMonth;\n var MonthMenu;\n if (YearMenu.getAttribute('id') == 'DW_Year1') {\n MonthMenu = this.Month1;\n this.year1 = currentYear;\n if (this.year1 == this.year2 && this.month1 > this.month2) {\n currentMonth = this.month2 - 1;\n this.flash(MonthMenu);\n } else {\n currentMonth = this.month1 - 1;\n }\n } else {\n MonthMenu = this.Month2;\n this.year2 = currentYear;\n if (this.year1 == this.year2 && this.month1 > this.month2) {\n currentMonth = this.month1 - 1;\n this.flash(MonthMenu);\n } else {\n currentMonth = this.month2 - 1;\n }\n }\n\n// Recreate the Month menu\n// If widget #1, range = yearLo-monthLo:yearHi-monthHi\n// If widget #2, range = yearLo-monthLo:yearHi-monthHi\n\n var loMonth = 0;\n var hiMonth = 11;\n var OtherYearMenu;\n if (YearMenu.getAttribute('id') == 'DW_Year1') {\n OtherYearMenu = this.Year2;\n if (currentYear == this.yearLo) {\n loMonth = this.monthLo - 1; \n }\n if (currentYear == this.yearHi) {\n hiMonth = this.monthHi - 1; \n }\n } else {\n OtherYearMenu = this.Year1;\n if (currentYear == this.yearLo) {\n loMonth = this.monthLo - 1; \n }\n if (currentYear == this.yearHi) {\n hiMonth = this.monthHi - 1; \n }\n }\n\n// Create a new set of options and then select\n// a month: current selection or nearest available unless initializing.\n\n if (MonthMenu) {\n with (MonthMenu) {\n var n = hiMonth - loMonth;\n var m = loMonth;\n options.length=0;\n if (this.monthLo != '00') {\n for (i=0; i<=n; i++) {\n options[i]=new Option(monthNames[m],monthVals[m]);\n //this.addEvent(options[i], 'click', this.optionClick, false);\n m++;\n }\n if (currentMonth < loMonth || currentMonth > hiMonth) {\n if (currentMonth < loMonth) {\n options[0].selected = true;\n } else {\n var i = hiMonth - loMonth;\n if(options[i]) {\n\t\toptions[i].selected = true; }\n }\n } else {\n var i = currentMonth - loMonth;\n if(options[i]) {\n\t\toptions[i].selected = true;\n\t\t}\n }\n }\n }\n MonthMenu.onchange = this.selectChange;\n this.selectMonth(MonthMenu);\n } else { \n//No Month-Day-Time Menus\n if (this.internallyForced) {\n this.internallyForced = 0;\n } else {\n if (OtherYearMenu) {\n if (!this.correctOrder()) {\n this.internallyForced = 1;\n this.initializeYearMenu(OtherYearMenu);\n }\n }\n }\n }\n\n}", "title": "" }, { "docid": "cf8159a1b077d20cd82c9029e2e98b3c", "score": "0.5330984", "text": "function disabledTimeSlots(updateTimeSlots){\n for(var i =0;i<updateTimeSlots.length;i++){\n var dateValue = $scope.fromDate.getDate()+'-'+$scope.monthName[$scope.fromDate.getMonth()]+'-'+$scope.fromDate.getFullYear();\n $scope.newStamp = toTimestamp( dateValue+ ' ' + updateTimeSlots[i].timeActual);\n if($scope.thisBookingTime>$scope.newStamp){\n updateTimeSlots[i].isDisabled = true;\n }\n }\n }", "title": "" } ]
13e85581fb0dd846e248989f92313392
helper function to pass in as default promptFor validation
[ { "docid": "7c9379454846263cea8b6fc924ea9a94", "score": "0.0", "text": "function chars(input){\n return true; // default validation only\n}", "title": "" } ]
[ { "docid": "9811833c8a07b600f54a4acfd0d2b768", "score": "0.6994571", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question).trim();\n } \n while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "09c04fc6f298b94a5a4e07cb6e921663", "score": "0.6967711", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question).trim();\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "09c04fc6f298b94a5a4e07cb6e921663", "score": "0.6967711", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question).trim();\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "09c04fc6f298b94a5a4e07cb6e921663", "score": "0.6967711", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question).trim();\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "09c04fc6f298b94a5a4e07cb6e921663", "score": "0.6967711", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question).trim();\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "db9ee04cb75c74dbdd9381d6921e8024", "score": "0.6944231", "text": "function promptFor(question, valid) {\n do {\n var response = prompt(question).trim();\n //isValid = valid(response);\n } while (!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "3c8c76b1f4f9b2fa77c8e0007aa67b49", "score": "0.69094276", "text": "prompt() { \n return '';\n }", "title": "" }, { "docid": "d1c735410bf281c14dd0f7dce302bd27", "score": "0.687635", "text": "function promptFor(question, valid){\n let isValid;\n do{\n var response = prompt(question).trim();\n isValid = valid(response);\n } while(response === \"\" || isValid === false)\n return response;\n}", "title": "" }, { "docid": "d1c735410bf281c14dd0f7dce302bd27", "score": "0.687635", "text": "function promptFor(question, valid){\n let isValid;\n do{\n var response = prompt(question).trim();\n isValid = valid(response);\n } while(response === \"\" || isValid === false)\n return response;\n}", "title": "" }, { "docid": "d1c735410bf281c14dd0f7dce302bd27", "score": "0.687635", "text": "function promptFor(question, valid){\n let isValid;\n do{\n var response = prompt(question).trim();\n isValid = valid(response);\n } while(response === \"\" || isValid === false)\n return response;\n}", "title": "" }, { "docid": "67a6784970402a2d3b88cc6da285ff2f", "score": "0.68462425", "text": "function promptFor(question, valid){\n do{\n var response = prompt(question);\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "68bada6c7302182767b3b6eaeddce943", "score": "0.6830806", "text": "function prompts() {\n upper = confirm(\"Would you like to include uppercase letters?\");\n lower = confirm(\"Would you like to include lowercase letters?\");\n numer = confirm(\"Would you like to include numeric values?\");\n spec = confirm(\"Would you like to include special characters?\");\n }", "title": "" }, { "docid": "8f710da19a4975af46e5e04f701ef09f", "score": "0.682031", "text": "function promptFor(question, valid){\n let response = \"\";\n do{\n response = prompt(question).trim();\n } while(!response || !valid(response));\n return response;\n}", "title": "" }, { "docid": "84e923424eb5be38fd79dd87bdb5c110", "score": "0.67007613", "text": "function promptFor(question, valid) {\n let isValid;\n let response\n do {\n response = prompt(question.trim());\n isValid = valid(response);\n } while (response === \"\" || isValid === false);\n return response;\n}", "title": "" }, { "docid": "3975c26439ce3cd960ea1f5e1f73131d", "score": "0.65825737", "text": "prompting() {\n this.log(yosay('You are about to create a Sample Angular CRUD Application!'));\n return this.prompt([{\n type: 'input',\n name: 'name',\n message: 'Your application name (Eg: my-application-name): ',\n validate: function (input) {\n if (!validate(input).validForNewPackages) {\n return 'The name is not a valid npm package name. Please choose a valid name i.e. my-application-name';\n }\n return true;\n }\n },{\n type: 'input',\n name: 'port',\n message: 'Development port of the application: ',\n default: '4300',\n validate: function (input) {\n var portNumber = +input;\n var portNumberValid = portNumber >= 1 && portNumber <= 65535;\n if (!portNumberValid) {\n return 'This is not a valid HTTP port number. Please choose a valid port i.e. 4300';\n }\n return true;\n }\n },{\n type: 'input',\n name: 'authorname',\n message: 'Author Name (Eg: Rahul Sahay): ',\n validate: function (input) {\n var validName = /^(?! )((?! )(?! $)[a-zA-Z0-9 ]){3,64}$/.test(input);\n if (!validName) {\n return 'Not a valid author name. Max length is 64 characters. Trailing or Forward spaces not allowed.';\n }\n return true;\n }\n },{\n type: 'input',\n name: 'version',\n message: 'Version: ',\n default: '0.1.0',\n validate: function (input) {\n var validVersion = /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$/.test(input);\n if (!validVersion) {\n return 'This is not a valid version number.';\n }\n return true;\n }\n }]).then(answers => {\n this.props = answers;\n this.log('Creating application: ' + answers.name);\n });\n }", "title": "" }, { "docid": "d3778019350aadf1f7fedbafb02c0d82", "score": "0.6580126", "text": "prompting() {\n return defaultPrompting(this);\n }", "title": "" }, { "docid": "127ac7775314703c8c6f6fea22189a3b", "score": "0.65440077", "text": "function ask() {\n return prompt(\"Введите обязательную статью расходов в этом месяце?\", \"\");\n}", "title": "" }, { "docid": "476d4ea11023504322f0435e4353a60b", "score": "0.65411305", "text": "function validate(userPrompt){\n while(userPrompt===\"\" || isNaN(userPrompt)){\n\n //reprompt the user\n userPrompt=prompt(\"please type in only numbers and dont leave blank\");\n }\n\n return userPrompt;\n\n\n }", "title": "" }, { "docid": "88d761cecabde8f0d1dd60dfe0541db1", "score": "0.6519314", "text": "prompting() {\n\n }", "title": "" }, { "docid": "88d761cecabde8f0d1dd60dfe0541db1", "score": "0.6519314", "text": "prompting() {\n\n }", "title": "" }, { "docid": "dafb4d246b01626e2c31fd36494d792f", "score": "0.6518871", "text": "beginningPrompt (input) { return 'You didn\\'t set a beginning prompt for this step! :face_palm:' }", "title": "" }, { "docid": "43b822d35a9a833cbab75c08b702e14d", "score": "0.65100735", "text": "function inputBox() {\n var a = arguments, text = a[0], def, cb;\n switch (typeof a[1]) {\n case 'function':\n cb = a[1];\n break;\n case 'string':\n def = a[1];\n cb = a[2];\n break;\n default:\n return false;\n }\n cb(prompt(text, def));\n} // inputBox", "title": "" }, { "docid": "43b822d35a9a833cbab75c08b702e14d", "score": "0.65100735", "text": "function inputBox() {\n var a = arguments, text = a[0], def, cb;\n switch (typeof a[1]) {\n case 'function':\n cb = a[1];\n break;\n case 'string':\n def = a[1];\n cb = a[2];\n break;\n default:\n return false;\n }\n cb(prompt(text, def));\n} // inputBox", "title": "" }, { "docid": "367fce96380e314b801fdf65ae5aae7c", "score": "0.64642596", "text": "function promptValidationFailed() {\n let modalHeaderNode = document.createElement(\"p\");\n let modalContentNode = document.createElement(\"ul\");\n modalHeaderNode.textContent = \"Oops...\";\n modalContentNode.textContent = \"Please follow the advice below:\";\n validationRes.errArr.forEach((errValidator) => {\n let errItem = document.createElement(\"li\");\n errItem.textContent = errValidator.errMsg;\n modalContentNode.appendChild(errItem);\n });\n skeletonMod.configureModal(\n modalHeaderNode,\n modalContentNode,\n null,\n null\n );\n skeletonMod.openModal();\n }", "title": "" }, { "docid": "37c6b8a573784e6e1aecf7f9e47890e5", "score": "0.6451579", "text": "function prompt(question, answer, title) {\n var result;\n function _prompt() {\n if (answer === undefined)\n answer = \"\";\n if (title === undefined)\n title = \"Input\";\n result = OptionPaneClass.showInputDialog(null, question, title, OptionPaneClass.QUESTION_MESSAGE, null, null, answer);\n //result = OptionPaneClass.showInputDialog(null, question, answer);\n }\n _prompt();\n return result;\n }", "title": "" }, { "docid": "47487e51d4f1915322710a0e7ef5d2a7", "score": "0.64228934", "text": "function promptFor(question, callback){\n do{\n // var response = prompt(question).trim();\n var response = prompt(question);\n if (response == null){\n // user clicked cancel or hit escape\n return \"\";\n }\n else {\n response = response.trim();\n }\n } while(!response || !callback(response));\n return response;\n}", "title": "" }, { "docid": "d919044e703bf14ff03ed9ca5dc285c7", "score": "0.64215034", "text": "function prompt(question, answer, title) {\n var result;\n function _prompt() {\n if (answer === undefined)\n answer = \"\";\n if (title === undefined)\n title = \"Input\";\n result = OptionPaneClass.showInputDialog(null, question, title, OptionPaneClass.QUESTION_MESSAGE, null, null, answer);\n //result = OptionPaneClass.showInputDialog(null, question, answer);\n }\n _prompt();\n return result;\n }", "title": "" }, { "docid": "76f6e96d1e66cb0f2ecd3c94aa9db45a", "score": "0.64201826", "text": "function callPrompt() {\n\t\n\tvar response = prompt(\"Please enter name?\", \"\");\n\tif(response === \"\") {\n\t\tcallPrompt(\"Please enter name?\")\n\t}\n\telse if (response) {\n\t\talert(\"Hello, \" + response);\n\t}\n\telse {\n\t\talert(\"Cancelled out!\")\n\t}\n\t\t\n}", "title": "" }, { "docid": "d8032cd5c2d902ea82d893da2e369c1d", "score": "0.6401717", "text": "function prompt_user(confirm_str)\n{\n\n\tif(confirm_str == undefined || confirm_str == \"\")\n\t{\n\t\tconfirm_str = \"Are you sure you want to continue??\";\n\t}\n\n\tif (confirm(confirm_str) == true) \n\t{\n\t\treturn true;\n\t} \n\telse \n\t{\n\t\treturn false;\n\t}\n\n}", "title": "" }, { "docid": "e5f26171c3e4286b067e1dd05d2f34e3", "score": "0.6395591", "text": "async inputValidator(promptContext) {\n console.log(\"inputValidator\");\n const userInputObject = promptContext.recognized.value.value;\n if (userInputObject == null) {\n return false;\n } else {\n if (\n userInputObject.myName == \"\" ||\n userInputObject.tipoDoc == \"\" ||\n userInputObject.myDocument == \"\" ||\n userInputObject.myNationality == \"\" ||\n userInputObject.myEmail == \"\"\n ) {\n await promptContext.context.sendActivity(\n `Hola ${userInputObject.myName} tus datos son incompletos, por favor llenar completamente el formulario`\n );\n console.log(\"Datos Incompletos\");\n console.log(userInputObject);\n return false;\n } else {\n // await promptContext.context.sendActivity(`Hola ${userInputObject.myName}`);\n // console.log(userInputObject);\n return true;\n }\n // You can add some validation logic for email address and phone number\n // userInputObject.myEmail, userInputObject.myTel\n }\n }", "title": "" }, { "docid": "10183e5c5157fccccb035399b2b2a287", "score": "0.63288766", "text": "function promptForCriteria(criteria){\n\n // Change prompt based upon argument\n var promptResponse = window.prompt(\"Include \" + criteria + \" in your generated password? Enter YES or NO to choose.\");\n\n // Check prompt for null values then recall function if null\n if (promptResponse === \"\" || promptResponse === null) {\n window.alert(\"You need to provide a valid answer! Please try again.\");\n return promptForCriteria(criteria);\n }\n\n // Convert response to lower case to allow for responses of various cases\n promptResponse = promptResponse.toLowerCase();\n\n // Check response for \"yes\", \"no\", or non-valid answer. Return appropriate value or recall function if invalid response.\n if (promptResponse === \"yes\"){\n return true;\n } else if (promptResponse === \"no\") {\n return false;\n } else {\n window.alert(\"You need to provide a valid answer! Please try again.\");\n return promptForCriteria(criteria);\n }\n}", "title": "" }, { "docid": "5a20a554926efafaaec543f61b441fa9", "score": "0.6328359", "text": "function _prompt(msg, promptCallback, title, defaultText) {\n\t\ttitle = title || \"\"; // if title is false make it an empty string\n\t\tif (navigator.notification) {\n\t\t\tnavigator.notification.prompt(msg, function(result) {\n\t\t\t\tif (result.buttonIndex === 1) { // ok was clicked\n\t\t\t\t\tpromptCallback(result.input1);\n\t\t\t\t} else {\n\t\t\t\t\tpromptCallback(null);\n\t\t\t\t}\n\t\t\t}, title, [\"Ok\", \"Cancel\"], defaultText);\n\t\t} else {\n\t\t\tvar result = prompt(msg, defaultText, title);\n\t\t\tpromptCallback(result);\n\t\t}\n\t}", "title": "" }, { "docid": "06bdd5cbd7538eca536bfde80dd124c0", "score": "0.6328189", "text": "promptUserInitialQuestions() {\n \n inquirer\n .prompt([\n {\n type: 'checkbox',\n name: 'action',\n message: `What would you like to do?`,\n choices: ['view all departments', 'view all roles', 'view all employees', 'add a department', 'add a role', 'add an employee', 'update an employee role'],\n validate: nameInput => {\n if (nameInput) {\n return true;\n } else {\n return false;\n }\n }\n }]\n )\n .then(({ action }) => {\n if (action == 'view all departments'){\n this.displayAllDepartments();\n }\n else if (action == 'view all roles'){\n this.displayAllRoles();\n }\n else if (action == 'view all employees'){\n this.displayAllEmployees();\n }\n else if (action == 'add a department'){\n this.addDepartment();\n }\n else if (action == 'add a role'){\n this.addRole();\n }\n else if (action == 'add an employee'){\n this.addEmployee();\n }\n else if (action == 'update an employee role'){\n this.updateEmployeeRole();\n }\n\n })\n .catch((err) => {console.log(err);})\n }", "title": "" }, { "docid": "1327ec58e388eb50aee408457d07add8", "score": "0.6327683", "text": "function promptCriteria () {\n passLength = parseInt (window.prompt(\"Input between 8 and 128 characters\"));\n if(isNaN(passLength) || passLength < 8 || passLength > 128){\n alert (\"INVALID PASSWORD LENGTH\");\n passLength = 0;\n } else {\n useUpper = confirm(\"Would you like Uppercase letters?\");\n useLower = confirm(\"Would you like Lowercase letters?\");\n useNum = confirm(\"Would you like Numbers?\");\n useSpec = confirm(\"Would you like Special characters?\");\n if (!useUpper && !useLower && !useNum && !useSpec){\n alert (\"MUST CHOOSE AT LEAST ONE TYPE!\");\n passLength = 0;\n }\n }\n if (passLength !== 0) {\n password = generatePassword();\n writePassword();\n }\n}", "title": "" }, { "docid": "12f672d2a85c38089631a117d79b383c", "score": "0.632732", "text": "function promptUser(){\n inquirier\n .prompt([\n {\n name: \"itemID\",\n message: \"What item would you like to order? (Please input ID of the item)\",\n validate(value){\n return !isNaN(value) && value > 0\n }\n },\n {\n name: \"amount\",\n message: \"How many items would you like to buy?\",\n validate(value){\n return !isNaN(value) && value > 0\n }\n }\n ]).then(function(ans){\n isAvaiable(ans.itemID, ans.amount)\n })\n}", "title": "" }, { "docid": "48eeab4782dd544a4762efec31ad1870", "score": "0.6320554", "text": "function validateMe(userPrompt){\n\n while(userPrompt===\"\" || isNaN(userPrompt)){\n\n //Re-prompt the user\n\n userPrompt = prompt(\"Please type in only numbers and don't leave this space blank.\");\n\n\n }\n\n return userPrompt;\n\n }", "title": "" }, { "docid": "f796dbdc65a1d9fd3171f9184dcf128f", "score": "0.6320512", "text": "function TextBoxCaptionInput() {\n var person = prompt(\"Please enter label:\", \"\");\n if (person == null || person == \"\") {\n TextboxCaption = \"\";\n return false;\n }\n else {\n TextboxCaption = person;\n TextboxCaption = TextboxCaption.replace(/\\n/g, '').trim();\n if (VerifyUserInput(person)) {\n return true;\n }\n return false;\n }\n}", "title": "" }, { "docid": "ed4a130d10ab3f4d9bba880af0379e37", "score": "0.63113075", "text": "function getPrompt() {\n return angular.isDefined($scope.data.properties.prompt)\n ? $scope.data.properties.prompt : $scope.data.properties.options[0];\n }", "title": "" }, { "docid": "8a0e5f9d79b34f539a9e899e717b7a2c", "score": "0.6290342", "text": "_prompt() {\n\n let _this = this,\n overrides = {};\n\n // Skip if non-interactive or stage is provided\n if (!_this.S.config.interactive || (_this.evt.options.stage && _this.evt.options.region)) return BbPromise.resolve();\n\n ['stage'].forEach(memberVarKey => {\n overrides[memberVarKey] = _this.evt.options[memberVarKey];\n });\n\n let prompts = {\n properties: {}\n };\n\n prompts.properties.stage = {\n description: 'Enter a new stage name for this project: '.yellow,\n required: true,\n message: 'Stage must be letters and numbers only',\n conform: function(stage) {\n return SUtils.isStageNameValid(stage);\n }\n };\n\n return _this.cliPromptInput(prompts, overrides)\n .then(function(answers) {\n _this.evt.options.stage = answers.stage.toLowerCase();\n BbPromise.resolve();\n })\n .then(function(){\n return _this.cliPromptSelectRegion('Select a region for your new stage: ', false, false, _this.evt.options.region, false)\n .then(region => {\n _this.evt.options.region = region;\n BbPromise.resolve();\n });\n });\n }", "title": "" }, { "docid": "45fb07d12512c338bbe47fbe82f2968f", "score": "0.6270821", "text": "function getPrompt() {\n return \"Someone once said, \";\n}", "title": "" }, { "docid": "31cd2e1524ffbf07abf4594f82f5ee39", "score": "0.6266778", "text": "function specialprompt() {\n var prompt5 = prompt(\"Would you like to include special characters in your password?\", \"\");\n var special = \"!#$%&'()*+,-./:;<=>?@[]^_`{|}~\";\n\n if (prompt5 == null) { // If they click cancel\n alert(\"Cancelled\");\n }\n else if (prompt5 == \"yes\" || prompt5 == \"Yes\") {\n traits.sc = 1; // true\n passwordpool += special; // includes the special characters in those that will generate the password\n validation();\n }\n else if (prompt5 == \"no\" || prompt5 == \"No\") {\n traits.sc = 0; // false\n validation();\n }\n else {\n alert(\"Please enter yes or no\");\n specialprompt();\n }\n}", "title": "" }, { "docid": "508e16bc127b6ff6d1308e8c0b723d53", "score": "0.6245956", "text": "function numbersPrompt() {\n return window.confirm(\"Do you want your password to include numbers?\");\n}", "title": "" }, { "docid": "d2ca377b03f29d6257df6ddf5d065985", "score": "0.624298", "text": "function prompts() {\n\n lowerCaseChoice = confirm(\"Do you want the password to contain lower case letters?\");\n upperCaseChoice = confirm(\"Do you want the password to contain upper case letters?\");\n numbersChoice = confirm(\"Do you want the password to contain numbers?\");\n specialCharChoice = confirm(\"Do you want the password to contain special characters?\");\n\n\n if (!lowerCaseChoice && !upperCaseChoice && !numbersChoice && !specialCharChoice) {\n alert(\"You must select at least one character type to create your password\");\n prompts();\n }\n else {\n generatePass();\n }\n}", "title": "" }, { "docid": "68800952fb4ae8d21135f2c2bc76db91", "score": "0.62378067", "text": "async ask(title, options) {\n options = options || {};\n const builder = new ObjectBuilder_1.ObjectBuilder();\n builder.addProp('type', 'input');\n builder.addProp('name', options.name);\n builder.addProp('message', title);\n builder.addProp('hint', options.hint);\n builder.addProp('initial', options.default);\n builder.addProp('result', options.result);\n builder.addProp('format', options.format);\n builder.addProp('validate', options.validate);\n builder.addProp('prefix', colors.dim(exports.icons.pointer));\n builder.addProp('styles', {\n danger: (value) => colors.red(value),\n submitted: (value) => colors.cyan(value),\n });\n return this.prompt(builder.toJSON());\n }", "title": "" }, { "docid": "7e9a373b39c2315b48c9ce6d3bccfd33", "score": "0.6228103", "text": "function validation(w){\n //create validation so if if it isn't a number to re prompt them.\n while(w===\"\"||isNaN(w)){\n //re-prompt user\n w=prompt(\"What is the radius of your circle?\\nPlease type in only numbers. (do not leave blank.)\");\n }\n return w;\n}", "title": "" }, { "docid": "abe2be3db0f0e398b11c43a7ebd9c9db", "score": "0.6227524", "text": "function promptUser() {\n return inquirer\n .prompt(questions)\n \n}", "title": "" }, { "docid": "332742e7087d5b740e6b5f18ba548811", "score": "0.6223364", "text": "function lowerCasePrompt() {\n return window.confirm(\"Do you want your password to include lower case letters?\");\n}", "title": "" }, { "docid": "db7b4e8af67dd0a759c5f07e615cf802", "score": "0.62046194", "text": "function init() {\n promptUser()\n \n}", "title": "" }, { "docid": "5778d09377c9693a053b09fba846b5f3", "score": "0.6204327", "text": "function initName () {\n if (!valName()) {\n window.alert('Please enter a first name and last name.')\n }\n}", "title": "" }, { "docid": "0aa8261843811a7d1bda7405e6aba943", "score": "0.61809784", "text": "function promptUser() {\n console.log ('////////Thank you for choosing the Team Profile Generator/////////');\n return inquirer.prompt (question)\n}", "title": "" }, { "docid": "8bc75920d8260c86ad0322bb376312bc", "score": "0.6176832", "text": "function prompt(prompt, opt, callback) {\n // Normalize arguments\n if(arguments.length === 2){\n // If only 2 arguments, assuming opt was omitted\n callback = opt;\n opt = defaultPromptOptions;\n } else {\n opt.prefix = opt.prefix || defaultPromptOptions.prefix;\n opt.delimiter = opt.delimiter || defaultPromptOptions.delimiter;\n }\n \n if(prompt.constructor.name === 'Array'){\n arrayPrompt(prompt, opt, callback);\n } else if (typeof prompt === 'string') {\n stringPrompt(prompt, opt, callback);\n } else {\n throw 'Invalid prompt argument'; \n }\n}", "title": "" }, { "docid": "c276dede97257ab32b70ff77fec6ac09", "score": "0.61690915", "text": "function askSpecialFunk(){\n var askSpecial = prompt(\"Would you like to include special characters in the password? Please enter Yes or No.\")\n askSpecial2 = askSpecial.toLocaleLowerCase()\n if(askSpecial2 != \"yes\" && askSpecial2 != \"no\"){\n alert(\"You must select enter Yes or No\")\n askSpecialFunk()\n }\n }", "title": "" }, { "docid": "d6b91f2251a7fcf28fe557e399ceecb9", "score": "0.61665165", "text": "function upperCasePrompt() {\n return window.confirm(\"Do you want your password to include upper case letters?\");\n}", "title": "" }, { "docid": "e6d8851c95eae6b22aeaeb4c3f95aea4", "score": "0.6164522", "text": "function customValidation(input) {}", "title": "" }, { "docid": "29df23bd792fc6d77be4d4067f0da3fa", "score": "0.61616784", "text": "function askContinue(){\r\n var answer= window.prompt(\"Do you want to convert a value? (yes/no)\");\r\n if( answer == 'yes'){\r\n return true;\r\n } else{\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "56289338ebed0699d29cd1935e4ba919", "score": "0.6158954", "text": "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\");\n return prompt();\n}", "title": "" }, { "docid": "56289338ebed0699d29cd1935e4ba919", "score": "0.6158954", "text": "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\");\n return prompt();\n}", "title": "" }, { "docid": "08690f257b4a5c76d18d92dbc6efccf5", "score": "0.6152319", "text": "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\")\n return prompt();\n}", "title": "" }, { "docid": "08690f257b4a5c76d18d92dbc6efccf5", "score": "0.6152319", "text": "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\")\n return prompt();\n}", "title": "" }, { "docid": "08690f257b4a5c76d18d92dbc6efccf5", "score": "0.6152319", "text": "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\")\n return prompt();\n}", "title": "" }, { "docid": "d16ecce804b1a11c08fbcac76170b4a6", "score": "0.6151286", "text": "prompting() {\n \n // message to get database\n let database = {\n type : 'input',\n name : 'database',\n message : 'The database name',\n require : true\n }\n\n // message to get user\n let user = {\n type : 'input',\n name : 'user',\n message : 'The database user',\n require : true\n }\n\n // message to get password\n let password = {\n type : 'input',\n name : 'password',\n message : 'The database password',\n require : true\n }\n\n // message to get table s name\n let table = {\n type : 'input',\n name : 'table',\n message : 'The table name',\n require : true\n }\n \n // call the generateModel method\n return this.prompt([ database, user, password, table ]).then( ( answers ) => {\n console.log( answers );\n this._generateModel( answers );\n });\n }", "title": "" }, { "docid": "96955c0d63e5f9e5ad03a6dc3c04c539", "score": "0.6138157", "text": "function getName(){\n return prompt(\"Please enter your name\");\n }", "title": "" }, { "docid": "93f14aa0306cdbacf4d972fef496211d", "score": "0.6136284", "text": "function passwordPrompts() {\n // we want to make a variable that stores the length of the password \n var length = parseInt(prompt(\"What is the length of your password?\"),10)\n // we want a conditional statement to ensure the desired password length\n if(length > 128 || length < 8) {\n alert(\"Password must be less than 128 characters and greater than 8\")\n return null;\n }\n // we want to declare and add confirms for the different password options\n var wantNumbers = confirm(\"Select ok for numbers in your password\");\n var wantLower = confirm(\"Select ok for lowercase letters in your password\");\n var wantUpper = confirm(\"Select ok for uppercase letters in your password\");\n var wantChar = confirm(\"Select ok for special characters in your password\");\n\n// we need to store the info that the user chooses\nvar promptOptions= {\n wantNumbers: wantNumbers,\n wantLower: wantLower,\n wantUpper: wantUpper,\n wantChar: wantChar,\n length: length,\n};\n\nreturn promptOptions;\n\n}", "title": "" }, { "docid": "2b002759812fe813229c5e28399477d3", "score": "0.61254895", "text": "function is_empty(input, prompt){\n\t if(input == prompt || input == '') {\n\t \tset_error_msg(\"<i>Some input might help...</i>\");\n\t return true;\n\t }\n\t return false;\n\t}", "title": "" }, { "docid": "a1e788c79b2843bf9c3bd037731152c4", "score": "0.61164564", "text": "function validation(num){\n //create validation so if if it isn't a number to re prompt them.\n while(num===\"\"||isNaN(num)){\n //re-prompt user\n num=prompt(\"What is the radius of your circle?\\nPlease type in only numbers. (do not leave blank.)\");\n }\n return num;\n}", "title": "" }, { "docid": "610a3253ad5113543de4a2c63326456c", "score": "0.61124104", "text": "function promptUser() {\n return inquirer.prompt(questions);\n}", "title": "" }, { "docid": "4cb193a14c28ae7d74f9c71dda90b38e", "score": "0.6109147", "text": "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"name\",\n message: \"What is your name?\"\n },\n {\n type: \"input\",\n name: \"username\",\n message: \"What is your GitHub username?\"\n },\n {\n type: \"input\",\n name: \"id\",\n message: \"Please enter a unique id\"\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is the email on your GitHub account?\"\n },\n {\n type: \"rawlist\",\n name: \"title\",\n choices: [\"Manager\", \"Engineer\",\n \"Intern\"],\n message: \"What is your role in your company?\"\n }\n ])\n}", "title": "" }, { "docid": "b09a52f12169b0ff972858e54c7683d0", "score": "0.61062217", "text": "function promptUser() {\n return inquirer.prompt(questions)\n}", "title": "" }, { "docid": "abaa0201f2dbe33e2ea163f81f3983f3", "score": "0.61054605", "text": "function init() {\n promptUser()\n}", "title": "" }, { "docid": "1a44e8125c280b0c008a89748a8dcb57", "score": "0.61028427", "text": "function initialPrompt() {\n let userInput = input.question(\"Let's play some scrabble! Enter a word:\");\n\n return userInput\n}", "title": "" }, { "docid": "ac2e7cb9e7b810f710555646fab846d3", "score": "0.61025715", "text": "function specialCharactersPrompt() {\n return window.confirm(\"Do you want your password to include special characters?\");\n}", "title": "" }, { "docid": "147830b114e4755c7b014c124f5a00ac", "score": "0.60998124", "text": "async prompting() {\r\n\t\tconst answers = await this.prompt([\r\n\t\t{\r\n\t\t\t// Author name\r\n\t\t\ttype: \"input\",\r\n\t\t\tname: \"author\",\r\n\t\t\tmessage: \"author\",\r\n\t\t\tdefault: \"George L Sun\" // default\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Project (generator) name\r\n\t\t\ttype: \"input\",\r\n\t\t\tname: \"name\",\r\n\t\t\tmessage: \"project name\",\r\n\t\t\tdefault: this.appname.replace(\"[\\s.]\", \"-\") // Default to current folder name\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Project description\r\n\t\t\ttype: \"input\",\r\n\t\t\tname: \"description\",\r\n\t\t\tmessage: \"description\",\r\n\t\t\tdefault: \"description of \" + this.appname // default\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Packages to include\r\n\t\t\ttype: \"input\",\r\n\t\t\tname: \"packages\",\r\n\t\t\tmessage: \"list required packages (separated by spaces)\",\r\n\t\t\tdefault: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Include dev and test packages?\r\n\t\t\ttype: \"confirm\",\r\n\t\t\tname: \"devpackages\",\r\n\t\t\tmessage: \"include test packages (mocha, chai, gulp, etc.)\", \t\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Type of file hierarchy templating\r\n\t\t\ttype: \"list\",\r\n\t\t\tname: \"type\",\r\n\t\t\tmessage: \"template style\",\r\n\t\t\tchoices: [\"standard\", \"custom\"],\r\n\t\t\tdefault: \"standard\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t// If external, which git repo to use?\r\n\t\t\twhen: (answers) => {\r\n\t\t\t\treturn (\"custom\" === answers.type)\r\n\t\t\t},\r\n\t\t\ttype: \"input\",\r\n\t\t\tname: \"repo\",\r\n\t\t\tmessage: \"would you like to place a git repo in this template?, if so, add git URL\",\r\n\t\t\tdefault: \"\"\r\n\t\t},\r\n\t\t]);\r\n\t\r\n\t\t// save answers\r\n\t\tthis.answers = answers;\r\n\t}", "title": "" }, { "docid": "7de320cf0b4c84ac9c0ebce9a638fa79", "score": "0.60981697", "text": "function greetings(){\r\n let yourName = prompt ('Please enter your name', 'Sadik');\r\n if (yourName != null){\r\n alert(\"Hello! \" + yourName + \" Welcome\");\r\n }\r\n}", "title": "" }, { "docid": "1b5510e14bdc5548ccd9e748eb916136", "score": "0.6096171", "text": "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"name\",\n message: \"What is your name?\"\n },\n {\n type: \"input\",\n name: \"color\",\n message: \"What is your favorite color?\"\n },\n {\n type: \"input\",\n name: \"github\",\n message: \"Enter your GitHub Username?\"\n },\n\n ]);\n}", "title": "" }, { "docid": "d7f8506e3e45637d3993b01d6473bbf4", "score": "0.609512", "text": "getTitle() {\n return inquirer.prompt([\n {\n type: 'input',\n name: 'title',\n message: \"What's the title of the role?\",\n validate (input) {\n if(input===\"\") {\n return 'Please enter the title of the role';\n } else {\n return true;\n }\n },\n \n },\n ]).then((answer)=> { \n return answer.title;\n })\n }", "title": "" }, { "docid": "fcc8ad88e9caa7d8d2e4feedf2d357b9", "score": "0.6093734", "text": "function getValidInput(prompt, isValid) {\n\n let userInput = input.question(prompt);\n\n while (!isValid(userInput)) {\n console.log(\"Invalid input. Try again.\");\n userInput = input.question(prompt);\n }\n\n return userInput;\n}", "title": "" }, { "docid": "21520fbca85a241bb113d673f7dea016", "score": "0.60920864", "text": "function promptForName(promptMessage) {\n let name;\n do {\n name = prompt(promptMessage);\n if(name === '')\n alert('You must enter a name to continue.');\n } while(name === '');\n return name;\n }", "title": "" }, { "docid": "e5af7873e33df6c6b586304e6155ae49", "score": "0.6079652", "text": "function playerInput() {\n let promptText = \"Please choose 'Rock', 'Paper' or 'Scissors'\";\n let playerPrompt = prompt(\n 'Battle to the death! \"Rock\", \"Paper\" or \"Scissors\"?'\n );\n if (playerPrompt.toLowerCase() == 'rock') {\n return 'rock';\n }\n if (playerPrompt.toLowerCase() == 'paper') {\n return 'paper';\n }\n if (playerPrompt.toLowerCase() == 'scissors') {\n return 'scissors';\n }\n if (\n playerPrompt.toLowerCase() != 'rock' ||\n playerPrompt.toLowerCase() != 'paper' ||\n playerPrompt.toLowerCase() != 'scissors'\n ) {\n alert(promptText);\n return playerInput();\n }\n }", "title": "" }, { "docid": "8877a225d288b01ff4af05dbae35ffef", "score": "0.6078827", "text": "function promptUser(){\nreturn inquirer.prompt([\n {\n type:\"input\",\n message:\"What's your Subject or Title?\",\n name:\"title\"\n },\n {\n type:\"input\",\n message:\"What is your document about? \",\n name:\"description\"\n },\n {\n type:\"input\",\n message:\"What are the topics of your table of contents: \",\n name:\"contents\"\n },\n {\n type:\"input\",\n message:\"Please provide installation instructions: \",\n name:\"instal\"\n },\n {\n type:\"input\",\n message:\"How will this be used? \",\n name:\"usage\"\n },\n {\n type:\"list\",\n message:\"Please select one of these licenses: \",\n name:\"license\",\n choices:[\n \"Apache\",\n \"IBM\",\n \"MIT\",\n \"Pearl\"\n ]\n },\n {\n type:\"input\",\n message:\"Any contributions on this project? \",\n name:\"contributions\"\n },\n {\n type:\"input\",\n message:\"Please provide test instructions or notes: \",\n name:\"test\"\n },\n {\n type:\"input\",\n message:\"Provide your e-mail address: \",\n name:\"Email\"\n },\n {\n type:\"input\",\n message:\"provide your github ID:\",\n name:\"github\"\n },\n ]);\n}", "title": "" }, { "docid": "fe4a6c480e598621a2f93eb29834a01f", "score": "0.60734206", "text": "function gridPrompt(v) {\r\n\tmode = v;\r\n\tconsole.log(mode);\r\n\tgridWidth = prompt(\"How many squares wide would you like your grid?\");\r\n\tgrid = Math.pow(gridWidth,2);\r\n// if statement to check input from prompt and ensure it's not too large that it will crash browser\r\n\tif (gridWidth > 200) {\r\n\t\talert(\"Thats a lot of squares, you'll regret it. \\nEnter a smaller number.\");\r\n\t\tgridPrompt();\r\n\t} else if (gridWidth == \"\") {\r\n\t\talert(\"You didn't enter anything, try again.\");\r\n\t\tgridPrompt();\r\n\t} else if (gridWidth ==null) {\r\n\t\talert(\"You didn't enter anything, try again.\");\r\n\t\tgridPrompt();\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "682fd78aeb5ca82d6ba0c97ebdb374d1", "score": "0.6071361", "text": "function initialPrompt() {\n let answer = input.question(\"Let's play some scrabble! Enter a word:\")\n return answer;\n}", "title": "" }, { "docid": "0dec6221dc415db94ddaf552f75f8712", "score": "0.60698736", "text": "function customValidation(input){\n}", "title": "" }, { "docid": "2921e99284dd9d42942395c5fef181f0", "score": "0.6066654", "text": "function autoValid(input){\n return true; // default validation only\n}", "title": "" }, { "docid": "2921e99284dd9d42942395c5fef181f0", "score": "0.6066654", "text": "function autoValid(input){\n return true; // default validation only\n}", "title": "" }, { "docid": "2921e99284dd9d42942395c5fef181f0", "score": "0.6066654", "text": "function autoValid(input){\n return true; // default validation only\n}", "title": "" }, { "docid": "85fd2ecd5bdf5a9559e52609d1357819", "score": "0.6066175", "text": "function askForOptions() {\n var passLength = parseInt(prompt(\"how many characters do you want in your password?\"));\n if(passLength < 8 || passLength > 128 || isNaN(passLength) === true) {\n alert(\"please choose a valid number (between 8-128)\");\n return;\n }\n\n var isLower = confirm(\"include lowercase?\");\n var isUpper = confirm(\"include uppercase?\");\n var isNumber = confirm(\"include numbers?\");\n var isSpecial = confirm(\"include special characters?\");\n\n var options = {\n passLength,\n isLower,\n isUpper,\n isNumber,\n isSpecial\n }\n \n console.log(options)\n return options\n}", "title": "" }, { "docid": "ce416ce8bf937a9f7c9c4b46bee040c6", "score": "0.60659474", "text": "function validateInput() {\r\n\treturn true;\r\n}", "title": "" }, { "docid": "be7889662016e22c3ee223a31cd27912", "score": "0.60616094", "text": "function customValidation(input){\n \n}", "title": "" }, { "docid": "93a1b255813a469e38dfe05ec5a5a090", "score": "0.6058448", "text": "function sa_validation() {\n\tvar isQuestion = true;\n\tvar isAnswer = true;\n\n\tif($('#sa-question').val() == \"\") {\n\t\t//changed from modal to text pop up\n\t\tdocument.getElementById(\"sa_valid_q\").innerHTML = \"Please enter a question.\";\n\t\tisQuestion = false;\n\t} else {\n\t\tdocument.getElementById(\"sa_valid_q\").innerHTML = \"\";\n\t\tisQuestion = true;\n\t}\n\n\tif($('#sa-answer').val() == \"\") {\n\t\tdocument.getElementById(\"sa_valid_a\").innerHTML = \"Please enter an answer.\";\n\t\tisAnswer = false;\n\t} else {\n\t\tdocument.getElementById(\"sa_valid_a\").innerHTML = \"\";\n\t\tisAnswer = true;\n\t}\n\n\tif(isQuestion && isAnswer)\n\t\treturn true;\n\telse\n\t\tevent.preventDefault();\n\treturn false;\n}", "title": "" }, { "docid": "6a65c2659bb1c635274efb5ff7bd7852", "score": "0.60571635", "text": "function getUserInput() {\n var lengthAsk = window.prompt(\"Length of password? Please choose no less than 8 and no greater than 128 characters.\");\n \n if (!lengthAsk) {\n window.alert(\"Please enter a password length.\");\n var lengthAsk = window.prompt(\"Length of password? Please choose no less than 8 and no greater than 128 characters.\");\n\n } else if (lengthAsk < 8 || lengthAsk > 128) {\n window.alert(\"Please choose a length no less than 8 and no greater than 128.\");\n var lengthAsk = window.prompt(\"Length of password? Please choose no less than 8 and no greater than 128 characters.\");\n\n } \n var capitalAsk = window.confirm(\"Do you Want to include capital letters?\");\n var specialAsk = window.confirm(\"Do you want to include special characters?\");\n var lowerAsk = window.confirm(\"Do you want lower case letters?\");\n var numAsk = window.confirm(\"Do you want to include numbers?\");\n if (!capitalAsk && !specialAsk && !lowerAsk && !numAsk) {\n getUserInput();\n }\nreturn {\n lengthAsk: parseInt(lengthAsk),\n capitalAsk: capitalAsk,\n specialAsk: specialAsk,\n lowerAsk: lowerAsk,\n numAsk: numAsk\n};\n}", "title": "" }, { "docid": "97e3a55f28e5b8f48d068cf1f7bcd0e3", "score": "0.6054708", "text": "function promptUser(response)\n{\n var chosenSections = response.sections;\n inquirer\n .prompt([{\n type: \"input\",\n message: \"Describe the noteable features of your project.\",\n when: chosenSections.includes(\"Features\"),\n name: \"features\"\n },\n {\n type: \"input\",\n message: \"Describe the installation instructions.\",\n when: chosenSections.includes(\"Installation\"),\n name: \"installation\"\n },\n {\n type: \"checkbox\",\n message: \"Which technologies was the project created with?\",\n choices: [\"C/C++\", \"C#\", \"CSS\", \"Go\", \"HTML\", \"Java\", \"JavaScript\", \"MATLAB\", \"PHP\", \"Python\", \"R\", \"Swift\"],\n when: chosenSections.includes(\"Technologies\"),\n name: \"technologies\"\n },\n {\n type: \"input\",\n message: \"Describe the usage instructions.\",\n when: chosenSections.includes(\"Usage\"),\n name: \"usage\"\n },\n {\n type: \"input\",\n message: \"Enter the GitHub usernames of any developers you need to credit, seperated by a space.\",\n when: chosenSections.includes(\"Credits\"),\n name: \"credits\"\n },\n {\n type: \"input\",\n message: \"Describe how a user can contribute to this project.\",\n when: chosenSections.includes(\"Contributing\"),\n name: \"contributing\"\n },\n {\n type: \"input\",\n message: \"Include the test information here.\",\n when: chosenSections.includes(\"Tests\"),\n name: \"tests\"\n },\n {\n type: \"input\",\n message: \"Put frequently asked questions here.\",\n when: chosenSections.includes(\"Questions\"),\n name: \"questions\"\n },\n {\n type: \"input\",\n message: \"What is your email address?\",\n when: chosenSections.includes(\"Questions\"),\n validate: email =>//Taken from Stack Overflow, question 46155 (Couldn't find a user name for the answer I used.).\n {\n //BTW, regex are still an absolute clusterf**k.\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(String(email).toLowerCase());\n },\n name: \"email\"\n },\n {\n type: \"list\",\n message: \"Which license does this project have?\",\n choices: [\"AGPL--3.0\", \"GPL--3.0\", \"LGPL--3.0\", \"MPL--2.0\", \"Apache--2.0\", \"MIT\", \"BSL--1.0\", \"Unlicense\"],\n when: chosenSections.includes(\"License\"),\n name: \"license\"\n }\n])\n .then((answers) => writeToFile(\"./RENAMEME.md\", generate(response, answers)))\n .catch(error => console.error(error));\n}", "title": "" }, { "docid": "5d4c92c797c382b1f696628f852b020a", "score": "0.6038912", "text": "function getPrompt() {\n game.board.viewGrid();\n rl.question('which piece?: ', (whichPiece) => {\n rl.question('to where?: ', (toWhere) => {\n game.moveChecker(whichPiece, toWhere);\n getPrompt();\n });\n });\n}", "title": "" }, { "docid": "e96d533d1488a72ef1dac4bc25b6d7a5", "score": "0.60388595", "text": "function checkSpecial () {\n var confirmSpecial= confirm(`${promptMessageOne}special${promptMessageTwo}`);\n return confirmSpecial\n }", "title": "" }, { "docid": "00c858b85d378e6ec7280da09ff99416", "score": "0.60382235", "text": "function promptUser(){\n return inquirer.prompt(\n [\n {\n type: \"input\",\n message: \"What's your name?\",\n name: \"name\"\n },\n {\n type: \"input\",\n message: \"Where did you grow up?\",\n name: \"location\"\n },\n {\n type: \"input\",\n message: \"What's your favorite film?\",\n name: \"favFilm\"\n },\n {\n type: \"input\",\n message: \"What's your favorite hobby?\",\n name: \"favHobby\" \n },\n {\n type: \"input\",\n message: \"What's your LinkedIn URL?\",\n name: \"linkedInUrl\" \n },\n {\n type: \"input\",\n message: \"What's your Github URL?\",\n name: \"gitHubUrl\"\n }\n ]\n );\n}", "title": "" }, { "docid": "0aa814a02d0e0cff3b24235e01b9e3ec", "score": "0.602745", "text": "function promptUser() {\n\t userinput = +prompt(\"Enter a number for FizzBuzz to generate\");\n\t if (isNaN(userinput)) {\n\t \talert(\"This is not a number. Please enter number\")\n\t \tdocument.location.reload(true);\n\t } else if (typeof userinput == \"number\") {\n\t \tconsole.log(\"This is a number\");\n\t \treturn userinput;\t \n\t }\n}", "title": "" }, { "docid": "e4c4966db39c3950cef811b229d50ae3", "score": "0.6024477", "text": "function promptUser() {\n return inquirer.prompt([\n {\n type: \"list\",\n name: \"employeeType\",\n message: \"Employee Type: \",\n choices: [\"Manager\", \"Engineer\", \"Intern\"]\n },\n {\n type: 'input',\n name: 'name',\n message: 'What is your name?'\n },\n {\n type: 'input',\n name: 'id',\n message: 'What is your id number?'\n },\n {\n type: 'input',\n name: 'email',\n message: 'What is your email address?'\n },\n {\n type: \"input\",\n name: \"github\",\n message: \"What is your Github username? \",\n when: function(answers) {\n const value = answers.employeeType == \"Engineer\" ? true : false;\n return value;\n }\n },\n {\n type: \"input\",\n name: \"officeNumber\",\n message: \"What is your offic number? \",\n when: function(answers) {\n const value = answers.employeeType == \"Manager\" ? true : false;\n return value;\n }\n },\n {\n type: \"input\",\n name: \"school\",\n message: \"Which school do you attend? \",\n when: function(answers) {\n const value = answers.employeeType == \"Intern\" ? true : false;\n return value;\n }\n }\n ]);\n}", "title": "" }, { "docid": "23dcb23cf440f3e3d887018778985360", "score": "0.6015806", "text": "function prompt(msg, title, initialValue, cb) {\r\n const input = popup.find('.popup-prompt > input');\r\n confirm(msg, title, confirmed => {\r\n if (!cb)\r\n return;\r\n if (!confirmed)\r\n cb(null);\r\n else\r\n cb(input.val());\r\n }, () => {\r\n input.show();\r\n input.focus();\r\n if (initialValue) {\r\n input.val(initialValue);\r\n const hinput = input[0];\r\n hinput.select();\r\n }\r\n else\r\n input.val('');\r\n });\r\n}", "title": "" }, { "docid": "a883d5347882db69de4b38eff83c376c", "score": "0.6012066", "text": "function show_prompt() {\n var name = prompt('Please enter your name','');\n if (name != null && name != '') {\n document.write('Hello '+ name + '! How are you today');\n }\n}", "title": "" }, { "docid": "5f484bef96c4de2131eff6074fd4fea6", "score": "0.6010442", "text": "function askNumberFunk(){\n var askNumbers = prompt(\"Would you like to include numbers in the password? Please enter Yes or No.\")\n askNumbers2 = askNumbers.toLocaleLowerCase()\n if(askNumbers2 != \"yes\" && askNumbers2 != \"no\"){\n alert(\"You must select enter Yes or No\")\n askNumberFunk()\n }\n }", "title": "" }, { "docid": "fdbcd711eea202d806a4588a14b313d2", "score": "0.600868", "text": "function promptUser(){\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"projectName\",\n message: \"What is the name of your project?\",\n validate: projectNameInput => {\n if (projectNameInput) {\n return true;\n } else {\n console.log('Please enter your projects name!');\n return false;\n }\n }\n },\n {\n type: \"list\",\n name: \"license\",\n message: \"Which licence will you be using?: \",\n choices: [\n \"Apache\",\n \"Academic\",\n \"GNU\",\n \"ISC\",\n \"MIT\",\n \"Mozilla\",\n \"Open\"\n ]\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Write a brief description of your project: \"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"Describe the installation process if any: \",\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"What is the general use of this project?\"\n },\n \n {\n type: \"input\",\n name: \"contributing\",\n message: \"Who helped build this project?\"\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"Are there any tests that will need to be performed?\"\n },\n {\n type: \"input\",\n name: \"questions\",\n message: \"Who can I contact about questions? \"\n },\n {\n type: \"input\",\n name: \"username\",\n message: \"Please enter your GitHub username: \"\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"Please enter your email: \"\n }\n ]);\n}", "title": "" }, { "docid": "af6ddb5321b488ca603174b8b9d732fb", "score": "0.60077727", "text": "function initialPrompt() {\nlet info = input.question(`\nWelcome to the Scrabble score calculator!\n\nWhich scoring algorithm would you like to use?\n\n0 - Scrabble: The traditional scoring algorithm.\n1 - Simple Score: Each letter is worth 1 point.\n2 - Bonus Vowels: Vowels are worth 3 pts, and consonants are 1 pt.\n\nEnter 0, 1, or 2:`);\nif(info === '0' | info === '1' | info === '2') {\n return info;\n} else {\n console.log(`Please enter a valid input`)\n initialPrompt();\n }\n}", "title": "" } ]
7eb393d308535be6ecde55ffdea67439
Does not process domain names or IP addresses. Does not handle encoding for the query parameter.
[ { "docid": "d332d50ae1a51de9dfc2488f49289dc7", "score": "0.0", "text": "function jURL(url, base /* , encoding */) {\n if (base !== undefined && !(base instanceof jURL))\n base = new jURL(String(base));\n\n url = String(url)\n\n this._url = url\n clear.call(this);\n\n var input = url.replace(/^[ \\t\\r\\n\\f]+|[ \\t\\r\\n\\f]+$/g, '');\n // encoding = encoding || 'utf-8'\n\n parse.call(this, input, null, base);\n }", "title": "" } ]
[ { "docid": "bb32e754d32094e733b655ad8cfb8603", "score": "0.63541144", "text": "UrlEncode() {}", "title": "" }, { "docid": "e7d0f1b7bf30bfb42d6067311f63c103", "score": "0.6192073", "text": "function urlEncodeIfNecessary(s){var regex=/[\\\\\\\"<>\\.;]/,hasBadChars=null!==regex.exec(s);return hasBadChars&&typeof encodeURIComponent!==UNDEF?encodeURIComponent(s):s}", "title": "" }, { "docid": "d85825630dbbf37c6702fcd6ffae99cc", "score": "0.6180791", "text": "function scrubUrl() {\n Util.Url.scrubQueryString('phone');\n Util.Url.scrubQueryString('email');\n }", "title": "" }, { "docid": "1403a5d54c306ed61efc3ace5b391d3b", "score": "0.6094548", "text": "function escapeUrlParam(str: string) {\n // only allow letters, numbers, . and -\n return str.replace(/[^a-zA-Z0-9.-]/, '');\n}", "title": "" }, { "docid": "0daf4e116e355d495513b39c4c0447b6", "score": "0.5953527", "text": "function urlEncodeIfNecessary(s) {\n var regex = /[\\\\\\\"<>\\.;]/;\n var hasBadChars = regex.exec(s) != null;\n return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;\n }", "title": "" }, { "docid": "dfe894cb545c1a3948a665262c46a62d", "score": "0.59165543", "text": "function urlEncodeIfNecessary(s) {\n\t\tvar regex = /[\\\\\\\"<>\\.;]/;\n\t\tvar hasBadChars = regex.exec(s) != null;\n\t\treturn hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;\n\t}", "title": "" }, { "docid": "dfe894cb545c1a3948a665262c46a62d", "score": "0.59165543", "text": "function urlEncodeIfNecessary(s) {\n\t\tvar regex = /[\\\\\\\"<>\\.;]/;\n\t\tvar hasBadChars = regex.exec(s) != null;\n\t\treturn hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;\n\t}", "title": "" }, { "docid": "dfe894cb545c1a3948a665262c46a62d", "score": "0.59165543", "text": "function urlEncodeIfNecessary(s) {\n\t\tvar regex = /[\\\\\\\"<>\\.;]/;\n\t\tvar hasBadChars = regex.exec(s) != null;\n\t\treturn hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;\n\t}", "title": "" }, { "docid": "dfe894cb545c1a3948a665262c46a62d", "score": "0.59165543", "text": "function urlEncodeIfNecessary(s) {\n\t\tvar regex = /[\\\\\\\"<>\\.;]/;\n\t\tvar hasBadChars = regex.exec(s) != null;\n\t\treturn hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;\n\t}", "title": "" }, { "docid": "c246cea08edf09ddc5b7c8ede41400c3", "score": "0.5857835", "text": "function c(e){return e&&(e=e.toString().replace(u.pluses,\"%20\"),e=decodeURIComponent(e)),e}", "title": "" }, { "docid": "e559ae426fa502beb4e2d801fc92484b", "score": "0.5855923", "text": "function encodeUriQuery(val,pctEncodeSpaces){return encodeURIComponent(val).replace(/%40/gi,\"@\").replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,pctEncodeSpaces?\"%20\":\"+\")}", "title": "" }, { "docid": "21d9090930ddd69a6b2782533dba37c4", "score": "0.58552504", "text": "function encodeUriQuery(val,pctEncodeSpaces){return encodeURIComponent(val).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,pctEncodeSpaces?'%20':'+');}", "title": "" }, { "docid": "780458d916289e5d2f2cb0f3a7eb6ecd", "score": "0.58430004", "text": "function workaroundRouterIssue(input: String) {\n return encodeURIComponent(encodeURIComponent(input));\n}", "title": "" }, { "docid": "c2a9bbcb9862239c7b5e81ca317ff904", "score": "0.58335125", "text": "function encodeUriQuery(val,pctEncodeSpaces){return encodeURIComponent(val).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%3B/gi,';').replace(/%20/g,pctEncodeSpaces?'%20':'+');}", "title": "" }, { "docid": "6ec3c4fa0fff3bf08932de76a1978555", "score": "0.581148", "text": "function urlEncodeIfNecessary(s) {\n var regex = /[\\\\\\\"<>\\.;]/;\n var hasBadChars = regex.exec(s) !== null;\n return hasBadChars && typeof encodeURIComponent !== UNDEF ? encodeURIComponent(s) : s;\n }", "title": "" }, { "docid": "c1d8cf7047b5af88c5ff886b7f0d871b", "score": "0.57872766", "text": "function urlFilter(e){\n if(/([#~!`$\\?\\,@%\\^&*\\+=\\\\{\\}(\\)[\\]\"|;'<>]+)/g.test(String.fromCharCode(e.charCode))){\n\t e.preventDefault();\n\t} \n}", "title": "" }, { "docid": "fdd592ce4316a402d33656547a598786", "score": "0.57012063", "text": "function urlEncodeIfNecessary(s) {\n var regex = /[\\\\\\\"<>\\.;]/;\n var hasBadChars = regex.exec(s) != null;\n return hasBadChars ? encodeURIComponent(s) : s;\n }", "title": "" }, { "docid": "56affa313c83e777d3849621de7307c5", "score": "0.5687039", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, \"%20\"));\n }", "title": "" }, { "docid": "297f9ab8ca74cc4248e26be4f41ef9f9", "score": "0.56514597", "text": "function process(value) {\n return encodeURIComponent(value.toLowerCase().replace(/[^a-z0-9 _-]+/gi, '-'));\n}", "title": "" }, { "docid": "62b9dda5705496587c7044a27f4e3f2a", "score": "0.5620731", "text": "getEncodedQuery(){ /** todo */ }", "title": "" }, { "docid": "04da1d4548685b5ee8f59770562d82c2", "score": "0.5594094", "text": "function sanitizeQuery(value) {\n return value.toLowerCase()\n .replace(/[?&]page=\\d+/, '')\n .replace(/[?&]pagesize=\\d+/, '')\n .replace(/[?&]refresh=\\d+/, '')\n .replace(/^[&]/, '?')\n .replace(/%20/g, '+')\n .replace('tab=&', 'tab=relevance&');\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "08b9498e6181efaedf8241b3a2f87227", "score": "0.5593596", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}", "title": "" }, { "docid": "75a8c68fb19bf2494b73fa418fcc2b2c", "score": "0.55925924", "text": "function customEncodeURIComponent(uri) {\n\t // return uri;\n\t return encodeURIComponent(uri).replace(whitelistRegExp, decodeURIComponent);\n\t}", "title": "" }, { "docid": "13d19ed155e62c3908b6f5692043e25e", "score": "0.55074114", "text": "function checkQueryString( src, service_params ){\n if( src.indexOf('?') !== -1 ) return src + ((src.indexOf(service_params) !== -1) ? \"\" : \"&\" + service_params);\n else return src + ((src.indexOf(service_params) !== -1) ? \"\" : \"?\" + service_params);\n }", "title": "" }, { "docid": "1215286d59a4ec50fdc0a940007960af", "score": "0.54983884", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, pctEncodeSpaces ? '%20' : '+');\n }", "title": "" }, { "docid": "90db433223e7657ff1faf0af5a06ce83", "score": "0.54888207", "text": "function decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n }", "title": "" }, { "docid": "b9905b3989b06c4ae83bda42dfb105a8", "score": "0.5417898", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t }", "title": "" }, { "docid": "b9905b3989b06c4ae83bda42dfb105a8", "score": "0.5417898", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t }", "title": "" }, { "docid": "53b622d4e2ef0796f98497d73bfeda6b", "score": "0.5405967", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, pctEncodeSpaces ? '%20' : '+');\n }", "title": "" }, { "docid": "dc936f18bb33d69bf862ae7e6e58fb8b", "score": "0.5385574", "text": "function ReplaceURLSpecifalChar(input){\n\treturn input.replace(/&/g,\"&amp;\").replace(/\\|/g,\"%7C\");\n}", "title": "" }, { "docid": "b59b45e957d03979e3f3a73e05fdb1da", "score": "0.53852636", "text": "function rfc3986EncodeURIComponent(a){return encodeURIComponent(a).replace(/[!'()*]/g,escape)}", "title": "" }, { "docid": "c72d24277d4675e3bd60c2b1a210dcac", "score": "0.5384327", "text": "function queryParser( req, res, next ) {\n\tif ( !req.query ) {\n\t\tvar val = parseUrl( req ).query;\n\t\treq.query = queryparse( val );\n\t}\n\tnext();\n}", "title": "" }, { "docid": "061215ff2b7f44f5802a567ebd49dad1", "score": "0.53542566", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "2565c68b2305997d44bc407c4defd9ab", "score": "0.53469473", "text": "function convertUrlEncodedForm(req, res) {\n urlencodedparser(req).then(data => {\n let queries = req.query\n let newBody = Object.assign(queries, data)\n req.body = newBody\n forward(newBody, res)\n }).catch(function(error){\n res.status(404).send(error)\n })\n}", "title": "" }, { "docid": "1e71e2a7138ef312874ca3d287d2b8e6", "score": "0.53371805", "text": "parseFormUrlEncode(matchedRoute, req, res) {\n let headers = req.headers;\n let comingData = \"\";\n let data = {};\n let files = {};\n req.on(\"data\", function (data) {\n comingData += data;\n });\n return req.on(\"end\", () => {\n try {\n if (comingData.length > 0) {\n data = querystring_1.default.parse(comingData);\n }\n req.data = data;\n req.body = data;\n }\n catch (err) {\n req.data = data;\n req.body = data;\n }\n req.files = files;\n return MiddleWare_1.default.next(matchedRoute, req, res);\n });\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "c5c113028beeaa285cbf6b3f32745f8d", "score": "0.53250635", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "bb1e208abed504a6eccc728343197f03", "score": "0.5324726", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%3B/gi, ';').replace(/%20/g, pctEncodeSpaces ? '%20' : '+');\n }", "title": "" }, { "docid": "1cc7fd5aa2696e63ee0cc7d77b70946e", "score": "0.5321762", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%3B/gi, ';').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}", "title": "" }, { "docid": "1cc7fd5aa2696e63ee0cc7d77b70946e", "score": "0.5321762", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%3B/gi, ';').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}", "title": "" }, { "docid": "1cc7fd5aa2696e63ee0cc7d77b70946e", "score": "0.5321762", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%3B/gi, ';').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}", "title": "" }, { "docid": "1cc7fd5aa2696e63ee0cc7d77b70946e", "score": "0.5321762", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%3B/gi, ';').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}", "title": "" }, { "docid": "7b79bae5f269b6be11e97c15fcc27a40", "score": "0.53180975", "text": "function urlencoded(options){options = options || {}\n\n\n var type = options.type || 'urlencoded'\n\n\n function parse(body){\n\n var queryparse = options.extended !== false ? parser('qs'): parser('querystring')\n\n return body.length ? queryparse(body) : {}}\n\n\n\n return function urlencodedParser(req, res, next){\n\n if (req._body) return next()\n\n req.body = req.body || {}\n\n if (!typeis(req, type)) return next()\n\n\n var charset=typer.parse(req).parameters.charset || 'utf-8'\n\n\n if (charset.toLowerCase() !== 'utf-8'){\n var err=new Error('unsupported charset')\n err.status=415\n next(err)\n return}\n\n\n\n read(req, res, next, parse, {\n\n encoding: charset,\n inflate: options.inflate !== false,\n limit: !N(options.limit) ? bytes(options.limit || '100kb') : options.limit,\n verify: options.verify\n\n })\n\n }\n\n\n}", "title": "" }, { "docid": "51e7abd67350ae04a241f91f7955973c", "score": "0.5308633", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, pctEncodeSpaces ? '%20' : '+');\n }", "title": "" }, { "docid": "264f4d4c78423732911ed8f5c7a2ff49", "score": "0.5291307", "text": "function sanitizeQuery(query) {\n query = query.replace(/’/gm, \"'\"); //remove the weird quote symbol, replace with '\n query = query.replace(/(\\r\\n|\\n|\\r)/gm, ''); //remove all new lines\n return query;\n }", "title": "" }, { "docid": "517a1dd3c35a26d3b59c2a6a7cf33967", "score": "0.5264611", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "517a1dd3c35a26d3b59c2a6a7cf33967", "score": "0.5264611", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "517a1dd3c35a26d3b59c2a6a7cf33967", "score": "0.5264611", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "517a1dd3c35a26d3b59c2a6a7cf33967", "score": "0.5264611", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "517a1dd3c35a26d3b59c2a6a7cf33967", "score": "0.5264611", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n }", "title": "" }, { "docid": "8f2ed02af7ed3c11f9e6cbe753006243", "score": "0.52626747", "text": "function K(n,t){return encodeURIComponent(n).replace(/%40/gi,\"@\").replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,t?\"%20\":\"+\")}", "title": "" }, { "docid": "7deabc2185f258ee15f80ffd1efd3914", "score": "0.5242424", "text": "function strictEncodeURIComponent(string){\n// see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent\nreturn encodeURIComponent(string).replace(/[!'()*]/g,escapeForDumbFirefox36).replace(/\\*/g,\"%2A\")}", "title": "" }, { "docid": "2f7419f544b56fe0346072a267ec9fad", "score": "0.52360797", "text": "function encodeQueryPhil( q, sf ) {\n var encodedQuery = encodeURIComponent( q );\n var url = [ APIurl ];\n url.push( '/' + encodedQuery );\n url.push( '?callback=?' );\n //console.log(url.join(''));\n $.ajax( {\n url: url.join( '' ),\n dataType: \"jsonp\",\n success: sf,\n error: function () {\n alert( \"AJAX ERROR for \" + q );\n }\n } );\n}", "title": "" }, { "docid": "ec29b048b1e71463581c22f74aa02c06", "score": "0.5234591", "text": "function encodedQuery (text) {\n text = encodeURIComponent(text)\n text = text.replace(/%20/g, '+')\n return text\n }", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" }, { "docid": "5670cc8fa84800ad9363bc14e339a28d", "score": "0.5226878", "text": "function encodeUriQuery(val, pctEncodeSpaces) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%3B/gi, ';').\n replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}", "title": "" } ]
117609d7cc9687774c515d9de896c399
menu buttons click handler
[ { "docid": "b615931e3d8e46a52c91c194e093f299", "score": "0.0", "text": "async clickHandler(item){\n\n localStorage.setItem(\"item\", item[0]);\n await this.setItemId(item);\n localStorage.setItem(\"oldTitle\", item[1].title);\n\n if(localStorage.getItem(\"item\") === \"Products\"){\n localStorage.setItem(\"product\", \"true\");\n }\n else{\n localStorage.setItem(\"product\", \"false\");\n }\n\n //load image style from DB\n\n let imgWidth, imgHeight, imgFloat;\n await db.collection(\"pages\")\n .doc(item[0])\n .collection(\"style\")\n .doc(\"image\")\n .get()\n .then((doc) => {\n imgWidth = doc.data().width;\n imgHeight = doc.data().height;\n imgFloat = doc.data().float;\n\n if(document.getElementById(\"Image-height\") != null){\n document.getElementById(\"Image-height\").value = imgHeight.split(\"px\")[0];\n document.getElementById(\"Image-width\").value = imgWidth.split(\"px\")[0];\n if(imgFloat === \"right\"){\n document.getElementById(\"right\").style.backgroundColor = \"#00b100\";\n document.getElementById(\"left\").style.backgroundColor = \"#9b9a9a\";\n }else{\n document.getElementById(\"left\").style.backgroundColor = \"#00b100\";\n document.getElementById(\"right\").style.backgroundColor = \"#9b9a9a\";\n }\n }\n }).catch((error) => {\n console.log(error);\n });\n\n //load title style from DB\n\n let color, fontSize, margin;\n await db.collection(\"pages\")\n .doc(item[0])\n .collection(\"style\")\n .doc(\"title\")\n .get()\n .then((doc) => {\n color = doc.data().color;\n fontSize = doc.data().fontSize;\n margin = doc.data().margin;\n\n if(document.getElementById(\"pageTextColor\") != null){\n document.getElementById(\"pageTextColor\").value = this.rgbToHex(color);\n document.getElementById(\"Title-textSize\").value = fontSize.split(\"px\")[0];\n document.getElementById(\"Title-textMargin\").value = margin.split(\"%\")[0];\n document.getElementById(\"Title-pageTitle\").value = item[1].title;\n }\n }).catch((error) => {\n console.log(error);\n });\n\n //load content text style from DB\n\n let textColor, textFontSize, textMargin;\n await db.collection(\"pages\")\n .doc(item[0])\n .collection(\"style\")\n .doc(\"text\")\n .get()\n .then((doc) => {\n textColor = doc.data().color;\n textFontSize = doc.data().fontSize;\n textMargin = doc.data().margin;\n\n if(document.getElementById(\"Content-textSize\") != null){\n document.getElementById(\"Content-textSize\").value = textFontSize.split(\"px\")[0];\n document.getElementById(\"Content-textMargin\").value = textMargin.split(\"%\")[0];\n document.getElementById(\"Content-textColor\").value = textColor;\n }\n }).catch((error) => {\n console.log(error);\n });\n\n //build pages\n\n localStorage.setItem(\"item\", item[0]);\n ReactDOM.render(\n <div className=\"App-page\" id=\"Page\">\n <h1 id=\"Page-title\" style={{\n color: color,\n fontSize: fontSize,\n margin: \"5px\",\n marginLeft: margin,\n }}>{item[1].title}</h1>\n <img\n src={item[1].image}\n id=\"img\"\n alt=\"\"\n\n style={{\n width: imgWidth,\n height: imgHeight,\n float: imgFloat\n }}\n />\n <p id=\"Page-text\" style={{}}></p>\n </div>\n ,document.getElementById(\"Body\"));\n\n //update content admin panel\n\n document.getElementById(\"Page-text\").setAttribute(\"contenteditable\", \"false\");\n document.getElementById(\"Page-text\").innerHTML = item[1].text;\n document.getElementById(\"Page-text\").style.fontSize = textFontSize+\"px\";\n document.getElementById(\"Page-text\").style.margin = textMargin+\"%\";\n document.getElementById(\"Page-text\").style.color = textColor;\n\n document.getElementById(\"Admin-img\").value = item[1].image;\n\n\n // sorting menu - Home and products on front\n\n var tab = this.state.items;\n var sorted = [];\n for(var i = 0; i < tab.length; i++){\n if(tab[i][0] === \"main\") {\n sorted.push(tab[i]);\n tab[i] = null;\n for (var j = 0; j < tab.length; j++) {\n if ((tab[j] != null) && (tab[j][0] === \"Products\")) {\n sorted.push(tab[j]);\n tab[j] = null;\n for(var k = 0; k < tab.length; k++)\n if(tab[k] != null)\n sorted.push(tab[k]);\n j=tab.length;\n }\n }\n i = tab.length;\n }\n }\n this.setState({\n items: sorted\n });\n\n }", "title": "" } ]
[ { "docid": "2477251b158581c53dea5666f57f6539", "score": "0.7083059", "text": "function sideMenuButtonHandler(){\n $(\".menuButton\").on(\"click\", function()\n {\n if(!$(this).hasClass(\"selected\"))\n {\n setPageContent(this.id);\n $(this).addClass(\"selected\");\n $(\".menuButton\").not(this).removeClass(\"selected\");\n }\n });\n}", "title": "" }, { "docid": "b58eff93a12e8f3e61a5e8ae12aa5f10", "score": "0.7076443", "text": "function clickMenu(menu) {\n ctrl.onClickMenu({ menu: menu });\n }", "title": "" }, { "docid": "acf0e2d3b8154ee92ccbc44a6a1b46e6", "score": "0.70695883", "text": "_handleButtonClick(event) {\n Utils.stopEvent(event);\n if (this.menu.isVisible()) {\n this.menu.hide();\n } else {\n this.menu.show();\n }\n }", "title": "" }, { "docid": "c0672e6ff2a0956b8d4bc3e44142e9f1", "score": "0.69762516", "text": "function handleMenuButtonClick(){\n\t\tclearIntervals();\n\t\tresetGameState();\n\t\tdrawMenu();\n\t}", "title": "" }, { "docid": "2078005f09669a382c80829e086a40f8", "score": "0.6965403", "text": "function menuClickHandler(menuItem) {\n console.log('You have chosen the menu item', menuItem.label);\n // Send the menu choice to the mainWindow renderer process\n mainWindow.webContents.send('menuChoice', menuItem.label);\n // If a method with the name of the label\n // exists in menuEvents then run that method\n menuEvents[menuItem.label] && menuEvents[menuItem.label](menuItem);\n}", "title": "" }, { "docid": "f223e0a6d13fefecb7a0a627aba09a7b", "score": "0.6956146", "text": "function menuClick (args) {\n if (args.text == \"New\") {\n\t\t\t$(\"#autoTo\").data(\"ejAutocomplete\").clearText();\n\t\t\t$(\"#autoTo\").data(\"ejAutocomplete\").clearText();\n\t\t\t$(\"#mailsubject\").ejMaskEdit({\"value\": \"\" });\n\t\t\t$(\"#rteSample\").ejRTE({ \"value\": \"\" });\n $(\"#mailarea\").removeClass(\"hidden\");\n $(\".paneltxt\").attr(\"style\", \"display:none\");\n $(\"#iconAccordion\").attr(\"style\", \"display:none\");\n\t\t\t$(\"#menujson li:nth-child(n+2)\").css(\"display\", \"none\");\n }\n }", "title": "" }, { "docid": "0f987db2b8f0782b04d9dc68669177b3", "score": "0.69102705", "text": "function menuClick() {\n \t\tif (active && closeOnClick) close();\n \t}", "title": "" }, { "docid": "e8e07e53eabdaaae765a59c5b4d96f99", "score": "0.6873671", "text": "static setClickMenuQuit(){\n\n $(\".LeftSlidingPanelQuit\").click(function (e) { \n closeSlidingPanel(\"left\",\"#\"+this.id.split(\"Quit\")[0]); \n });\n\n $(\".RightSlidingPanelQuit\").click(function (e) { \n closeSlidingPanel(\"right\",\"#\"+this.id.split(\"Quit\")[0]); \n });\n }", "title": "" }, { "docid": "29ff5c89c4850991174cd2bc7dca1209", "score": "0.6871581", "text": "function onButtonMenuClicked() {\n\tcloseGameEndDialogue();\n\topenMainMenu();\n}", "title": "" }, { "docid": "49b3635e1806e391c1b7fbba29a60a71", "score": "0.6857406", "text": "function clickListener() {\n jQuery('body').on('click',function(e) {\n var clickeElIsLink = u.clickInsideElement( e, contextMenuLinkClassName );\n\n if ( clickeElIsLink ) {\n e.preventDefault();\n menuItemListener( clickeElIsLink );\n } else {\n var button = e.which || e.button;\n\n if ( button === 1 ) {\n t.toggleMenuOff();\n }\n }\n });\n }", "title": "" }, { "docid": "5940d7f2340acaea476f2af40dde9161", "score": "0.6845531", "text": "function sideMenuHandler(){\n sideMenuButtonHandler();\n imgClickHandler();\n}", "title": "" }, { "docid": "ebfa9c59ebe7b362a2472b1d5b5f96b0", "score": "0.68272734", "text": "function menuButonListener(){\n\t$('.option').click(function(){\n\t var buttonId = $(this).attr('id');\n\t\topenMenu = true;\n\t $('#modal-container').removeAttr('class').addClass(buttonId);\n\t $('body').addClass('modal-active');\n\t});\n\n\t$('#modal-container').click(function(){\n\t\topenMenu = false;\n\t $(this).addClass('out');\n\t $('body').removeClass('modal-active');\n\t});\n\n\tvar lockyBtn = document.getElementById( 'lockyBtn' );\n\tlockyBtn.addEventListener( 'click', function ( event ) {\n\t\t window.location.href = '/page/lockyAnalysis'\n\t}, false );\n\n\tvar processBtn = document.getElementById( 'processBtn' );\n\tprocessBtn.addEventListener( 'click', function ( event ) {\n\t\t window.location.href = '/page/process'\n\t}, false );\n\n\tvar fileBtn = document.getElementById( 'fileBtn' );\n\tfileBtn.addEventListener( 'click', function ( event ) {\n\t\t window.location.href = '/page/fileActivity'\n\t}, false );\n}", "title": "" }, { "docid": "3145572b627d578bab04cad436cc18c2", "score": "0.67636037", "text": "function menuClick($this) {\n\n\t\tif(!$this.hasClass('selected')) {\n\n\t\t\t// actions window, only open if it's not already open\n\t\t\tif($this.attr('id') === 'gst_layer_5') {\n\n\t\t\t\tif(activateHints('layerselected') && !actionModal.is(':visible')) $this.click();\n\n\t\t\t}\n\t\t\telse if($this.attr('id') === 'gst_sl_11') {\n\n\t\t\t\tjQuery('.emc_toggle_wrap').removeClass('open');\n\t\t\t\tif(!cssModal.is(':visible')) $this.click();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t$this.click();\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "80036040a4b15c3605cd3a0ee1b6dd8c", "score": "0.6757923", "text": "onClick(e, buttonIndex) {\n\t\t//The props of the MenuItem itself are passed to the Label as menuItemProps.\n\t\tFSBL.Clients.RouterClient.transmit(this.state.clickChannel, { index: buttonIndex });\n\t}", "title": "" }, { "docid": "a255c20c9194f075763e6ad58ccd007f", "score": "0.6718914", "text": "function onMenu(event) {\n\n\tif (rightDown) {\n\n\t\tswitch(selectedButton) {\n\n\t\t\tcase 0:\n\t\t\t\tchangeState(State[\"Game\"]);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\t\n\t}\n\n}", "title": "" }, { "docid": "ecc8e45e3640034b9b6b42e24c928007", "score": "0.6716187", "text": "handleClick() {\n this.one('mouseout', Fn.bind(this, function(){\n this.menu.unlockShowing();\n this.el_.blur();\n }));\n if (this.buttonPressed_){\n this.unpressButton();\n } else {\n this.pressButton();\n }\n }", "title": "" }, { "docid": "bdb3dc1242fd525d71d3f05679205284", "score": "0.6684253", "text": "_handleClick() {\n const menu = this._menu;\n if (this._popup) {\n this._popup.dispose();\n }\n menu.aboutToClose.connect(this._menuClosed, this);\n this._popup = Object(statusbar_lib[\"l\" /* showPopup */])({\n body: menu,\n anchor: this,\n align: 'right'\n });\n }", "title": "" }, { "docid": "1d80c8374631a2a7b54eb0aab04d2335", "score": "0.66660285", "text": "function clickListener() {\n jQuery('body').on('click', function (e) {\n var clickeElIsLink = u.clickInsideElement(e, contextMenuLinkClassName);\n\n if (clickeElIsLink) {\n e.preventDefault();\n menuItemListener(clickeElIsLink);\n } else {\n var button = e.which || e.button;\n\n if (button === 1) {\n t.toggleMenuOff();\n }\n }\n });\n }", "title": "" }, { "docid": "b9208a0c282dae811c81895d14a325c5", "score": "0.66627336", "text": "function buttonClick(event) {\n\n // declare variable for the menu element\n var navigationMenu = document.getElementById(\"navigation-menu-mobile\");\n\n // get the target action dataeset value from element on click\n var targetMenuAction = event.currentTarget.dataset.menuaction;\n\n // log target action to console\n console.log(targetMenuAction);\n\n // switch statement to determine what action has been clicked\n switch(targetMenuAction) {\n\n // if action is open\n case \"open\":\n // add active class and remove hidden class\n navigationMenu.classList.remove(\"menu-hidden\");\n navigationMenu.classList.add(\"menu-active\");\n break;\n\n // if action is close\n case \"close\":\n // remove active class and add hidden class\n navigationMenu.classList.add(\"menu-hidden\");\n navigationMenu.classList.remove(\"menu-active\");\n break;\n }\n }", "title": "" }, { "docid": "dfa019317e780b2fe98ecc3e8cc587a6", "score": "0.6653447", "text": "function bindViewMenu() {\n // $('#view-controls [data-action=turn]').click(turnUiAction);\n }", "title": "" }, { "docid": "171f942eb07d9692280c19561e5068ad", "score": "0.66513276", "text": "function menu(e){\n\tvar boton = e.source;\n\tTi.API.info('boton Id:' + boton.id);\n\tswitch(boton.id){\n\t\tcase 'videos':\n\t\t\tAlloy.Globals.navigator.openWindow('videos2',false,[],'forward');\n\t\tbreak;\n\t\t case 'articulos':\n\t\t\tAlloy.Globals.navigator.openWindow('articulos',false,[],'forward');\n\t\t break;\n\t\tcase 'puntos':\n\t\t\tAlloy.Globals.navigator.openWindow('puntos',false,[],'forward');\n\t\tbreak;\n\t\tcase 'regala':\n\t\t\tregalaSalud();\n\t\tbreak;\n\t\tcase 'directorios':\n\t\t\tAlloy.Globals.navigator.openWindow('directorios',false,[],'forward');\n\t\tbreak;\n\t}\n\t\n}", "title": "" }, { "docid": "6df09b81046828ea423923b9d24f1c9c", "score": "0.6648048", "text": "function handleClick(event) {\n setMenu(event.currentTarget);\n }", "title": "" }, { "docid": "ba4797161f3655063ef88d73656f4f19", "score": "0.6646538", "text": "clickHandler() {\n const mainMenuButton = document.getElementById('instructions-main-menu-button-wrapper');\n mainMenuButton.addEventListener('click', this.backToMainMenu);\n }", "title": "" }, { "docid": "f52e32ba1a6744dc1c9f174870e472c1", "score": "0.6608639", "text": "function onClick(event) {\n\t\t//console.log(event);\t\t\n\t\tvar target = event.target;\n\t\tif (target.classList.contains(\"ui-selector-indicator\")) {\n\t\t\t\n\t\t\tvar ItemClicked = event.srcElement.textContent;\n\n\t\t\t//react to the item clicked -- changed to switch for readability\n\t\t\tswitch(ItemClicked)\n\t\t\t{\n\t\t\t\tcase \"Switches\":\n\t\t\t\t\t//move to the switches page\n\t\t\t\t\ttau.changePage(\"switchesPage\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Routines\":\n\t\t\t\t\t//move to the routines page\n\t\t\t\t\ttau.changePage(\"routinesPage\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Locks\":\n\t\t\t\t\t//move to the locks page\n\t\t\t\t\ttau.changePage(\"locksPage\");\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase \"Clean Database\":\n\t\t\t\t\t//clear the db - moved to it's own function\n\t\t\t\t\tCleanDatabase();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Logout\":\n\t\t\t\t\t//logout - based on the old clear database\n\t\t\t\t\tLogout();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\talert(\"This feature is not yet implemented. Stay tuned.\");\n\t\t\t\t\t//do nothing\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "f3c5f663b7c1352213d4a4c25c650548", "score": "0.66049814", "text": "function __MousLeftButton(e){\n __CloseMenu();\n}", "title": "" }, { "docid": "be66d883ec88f511baf696af3c834cf6", "score": "0.6598671", "text": "function menus_behaviors_do()\n{\t\t\n\t//Home ...\n\t$(\"#bt_entreprise\").click(function(){\n\t\tshow_entreprise_do();\n\t\treturn false;\n\t});\n\t\n\t//Mot du DG ...\n\t$(\"#index_r6_c9\").click(function(){\n\t\tshow_motdg_do();\n\t\treturn false;\n\t});\n\t\n\t//Entreprise ...\n\t$(\"#index_r6_c11\").click(function(){\n\t\tshow_entreprise_do();\n\t\treturn false;\n\t});\n\t\n\t//Annonces ...\n\t$(\"#index_r6_c13\").click(function(){\n\t\t\n\t\tshow_flash_do(\"Come back lateeeer on it, GreenNer!!!\");\n\t\treturn false;\n\t});\n\t\n\t//Documents ...\n\t$(\"#bt_documents\").click(function(){\n\t\t\n\t\tshow_documents_do();\n\t\treturn false;\n\t});\n\t\n\t//Annuaire ...\n\t$(\"#bt_applications\").click(function(){\n\t\t$(zonePrincipale).load(\"annuaire.php\").hide().fadeIn(fadeSpeed);\n\t\treturn false;\n\t});\n}", "title": "" }, { "docid": "d899a3e091ad38d35cf5944c33567879", "score": "0.6585006", "text": "buttonClicked(buttonId, model)\n {\n switch(buttonId)\n {\n case \"menu-2\":\n case \"menu-3\":\n case \"menu-4\":\n model.changeScene(\"menu\");\n break;\n\n case \"download\":\n this._performDownload(this.player);\n break;\n }\n }", "title": "" }, { "docid": "362700b7133e168463b0016ca590cd59", "score": "0.6569916", "text": "function onClick() {\n\n /**\n * clicked entry is already selected entry\n * @type {boolean}\n */\n const selected = entry_elem.classList.contains( 'selected' );\n\n /**\n * clicked menu entry event data\n * @type {Object}\n */\n const event_data = { title: entry_elem.textContent, nr: i + 1, selected: selected };\n\n // has logger instance? => log 'click' event\n self.logger && self.logger.log( 'click', $.clone( event_data ) );\n\n // unselect selected menu entry (if any)\n const selected_entry = entries_elem.querySelector( '.entry.selected' );\n if ( selected_entry ) selected_entry.classList.remove( 'selected', 'active' );\n\n // clear menu entry content\n $.setContent( content_elem, '' );\n\n // render menu entry content and perform menu entry actions afterwards\n renderContent( performActions );\n\n /**\n * renders menu entry content\n * @param {function} callback - when menu entry content is rendered\n */\n function renderContent( callback ) {\n\n // clicked already selected entry? => abort\n if ( selected ) return callback();\n\n // mark selected menu entry\n entry_elem.classList.add( 'selected', 'active' );\n\n // content is given as ccm dependency? => solve dependency\n $.isDependency( entry_data.content ) ? $.solveDependency( entry_data, 'content', proceed ) : proceed();\n\n function proceed() {\n\n // no menu entry content? => abort\n if ( !entry_data.content ) return callback();\n\n // content is ccm instance? => start instance\n if ( $.isInstance( entry_data.content ) ) {\n $.setContent( content_elem, entry_data.content.root );\n entry_data.content.parent = self;\n entry_data.content.start( callback );\n }\n\n // has content component? => render content via content component\n else if ( self.content ) self.content.start( { root: content_elem, inner: entry_data.content }, callback );\n\n // render given content\n else { $.setContent( content_elem, $.html( entry_data.content ) ); callback(); }\n\n }\n\n }\n\n /** performs menu entry actions */\n function performActions() {\n\n // add element of menu entry content to event data\n event_data.content = content_elem;\n\n // perform menu entry actions\n if ( entry_data.actions )\n if ( typeof ( entry_data.actions ) === 'function' )\n entry_data.actions( $.clone( event_data ), self );\n else\n entry_data.actions.map( action => $.action( [ action[ 0 ], event_data, self ] ) );\n\n // perform callback for clicked menu entry\n self.onclick && $.action( [ self.onclick, $.clone( event_data ), self ] );\n\n }\n\n }", "title": "" }, { "docid": "e2e7d97d19ef326bcaaaea23e6eace75", "score": "0.65593094", "text": "function clicked( name ) { \n \n if(name == 'exit') {\n \n exitApplication( );\n \n }\n \n else if (name == 'cart') {\n \n if(menu_list_on == \"snooker\" || menu_list_on == \"paint\") {\n \n alert(\"Por favor, saia do menu actual para visualizar a sua conta.\\nObrigado pela compreensão.\");\n return;\n\n }\n \n showCart( 10 );\n \n }\n \n else if(name == 'help'){\n \n showHelp(menu_list_on);\n \n }\n \n else if(menu_list_on == \"none\"){\n\t\n\t\tmenu_list_on = name;\n \n if(order_open){\n \n\t\t\t$('#order').fadeOut(10, function(){\n\t\t\t\t$('#' + name).fadeIn(10);\n\t\t\t});\n\t\t\t\n\t\t\treplaceIconOnDeClick( order_menu_name );\n\t\t\t$(\".o_item\").eq(0).remove()\n\t\t\topen_order = false;\n\t\t\torder_menu_name = \"none\";\n\t\t\t\n\t\t\t\n\t\t} else {\n \n if( (name == \"snooker\") && playing && (game_on == false) ) {\n \n $('#snooker-game').fadeIn(10);\n game_on = true;\n \n } else {\n \n $('#' + name).fadeIn(10);\n \n }\n\t\t\t\n\t\t\tif(helpOn) {\n\t\t\t showHelp(name);\n\t\t\t}\n\t\t}\n \n \n if( name == \"paint\" || name == \"snooker\" ) {\n \n $('#globalfeed').fadeOut(10);\n \n if(checkoutIsVisible){\n hideCart( );\n }\n \n if(helpOn) {\n showHelp(name);\n }\n \n } else {\n \n $('#globalfeed').css(\n \"margin-left\", \"0px\"\n );\n \n }\n \n replaceIconOnClick( name );\n \n }\n \n else {\n \n if ( name == \"snooker\" && playing ) {\n\n $('#snooker-game').fadeIn(10);\n game_on = true;\n \n $('#' + menu_list_on).fadeOut(10);\n \n if(helpOn) {\n showHelp(name);\n }\n \n } else if ( playing && game_on ) {\n \n $('#snooker-game').fadeOut(10, function(){\n $('#' + name).fadeIn(10);\n });\n \n alert(\"Alerta: O jogo vai ser posto em modo Pausa.\");\n pauseGame();\n \n if(helpOn) {\n showHelp(name);\n }\n \n } else {\n \n $('#' + menu_list_on).fadeOut(10, function(){\n $('#' + name).fadeIn(10);\n });\n \n if(helpOn) {\n showHelp(name);\n }\n }\n \n replaceIconOnDeClick( menu_list_on );\n\t\t\n\t\tif(! (( menu_list_on == \"paint\" && name == \"snooker\" ) || ( menu_list_on == \"snooker\" && name == \"paint\" ))){\n $('#globalfeed').fadeIn(10);\n }\n\t\t\t\t\t\n\t\t$('#globalfeed').css(\n\t\t\t\"margin-left\", \"0px\"\n\t\t);\n \n if( name == \"paint\" || name == \"snooker\" ) {\n if(checkoutIsVisible){\n hideCart( );\n }\n if(( menu_list_on == \"paint\" && name == \"snooker\" ) || ( menu_list_on == \"snooker\" && name == \"paint\" ));\n else $('#globalfeed').fadeOut(10);\n }\n \n if( menu_list_on == \"snooker\" && playing ) { game_on = false; }\n \n menu_list_on = name;\n\t\t\n replaceIconOnClick( name );\n\n }\n \n}", "title": "" }, { "docid": "bf5cff3e21119be2598cdf757e2b01ad", "score": "0.65552014", "text": "function MenuMouseDown(event)\n{\n var src = GetMenuTarget(window, event);\n if(src) {\n /* Evaluate any command for this function */\n var command = buttoncommands[src.id];\n if(command)\n mojave.ButtonCommand(command);\n\n /* Bring up the menu if there is one */\n\tvar items = menus[src.id];\n if(items) {\n var pos = mojave.GetPagePosition(menuserver, self, src);\n menuserver.MenuSetItems(items, menuenabled, menulabels, menucommands);\n menuserver.MenuSetPosition(pos);\n menuserver.MenuShow(true);\n }\n }\n}", "title": "" }, { "docid": "011d0d7e5ac0823e3e837712d6685ca7", "score": "0.65542424", "text": "handleButtonClick(event) {\n event.stopPropagation();\n this.toggleMenu();\n }", "title": "" }, { "docid": "adada2c088d8c823d511ce65e74c1dd1", "score": "0.65077853", "text": "function onclick( self, e ) {\n e.stopPropagation();\n\n // … it smells like a future BUG\n // It's ment for making sure the `open` / `close` will be triggired only if contains menu\n if ( self.get().classList.contains( IS_HAS_MENU_CLASS ) ) {\n self.toggle();\n render.render();\n }\n }", "title": "" }, { "docid": "552ff78eeaf7fc61e1352e8dc5830b4d", "score": "0.64936894", "text": "function handleMouseClick(pos, button, event) {}", "title": "" }, { "docid": "6beb3eda9b0207d2d4d63e2bc421478a", "score": "0.6487325", "text": "tap(e){\n /** 菜单栏点击时触发 */\n }", "title": "" }, { "docid": "cc480f656d6b15d8d01d13c3c25deb0f", "score": "0.64796174", "text": "_onMenuClicked(e) {\n e.preventDefault();\n e.stopPropagation();\n }", "title": "" }, { "docid": "37aa6cef68a5120c7a71ac72ca051ced", "score": "0.64675444", "text": "handleClick (event) {\n super.handleClick(event);\n this.player_.koment.toggleMenu();\n }", "title": "" }, { "docid": "cd02095d7255e4273f7a68a4878e5a0f", "score": "0.645892", "text": "function clickListener() {\n document.addEventListener(\"click\", function (e) {\n var clickeElIsLink = clickInsideElement(e, contextMenuLinkClassName);\n\n if (clickeElIsLink) {\n e.preventDefault();\n\n //run what needs to be run for when a button is clicked\n menuItemListener(clickeElIsLink);\n } else {\n var button = e.which || e.button;\n if (button === 1) {\n toggleMenuOff();\n }\n }\n });\n}", "title": "" }, { "docid": "c10564831579911f97e5d886eb729de6", "score": "0.64585745", "text": "buttonClicked(buttonIndex, infoClick) {\n //** if reset button (exc) don't open a submenu\n if (buttonIndex === AppConstants.RESET) {\n let urlObj = {\n filters: {\n filterId: AppConstants.RESET\n }\n };\n store.getState().default.appRef.urlRequest(urlObj);\n this.closeMenuPanel();\n } else {\n //** show sub-menu\n //** close other buttons\n let buttonClicked = this.refs['menuButton' + buttonIndex];\n for (let buttonId in this.refs) {\n let button = this.refs[buttonId];\n if (button !== buttonClicked) {\n this.closeButton(button);\n }\n }\n\n if (buttonClicked.opened) {\n if (infoClick) {\n //** if the click is from filter bar close the menu\n this.closeMenuPanel();\n } else {\n //** else (click is from menu itself ) close the submenu\n this.closeButton(buttonClicked);\n }\n\n } else {\n //** open the button menu\n this.openButton(buttonClicked);\n }\n }\n }", "title": "" }, { "docid": "13b73f253af6c2901da465bcf5aa1eae", "score": "0.6435067", "text": "function handleMenu(menu) {\n var gl = initialize();\n if (menu.value === 'cat') {\n cat(gl);\n } else if (menu.value === 'square') {\n square(gl);\n } else if (menu.value === 'rabbit') {\n rabbit(gl);\n }\n}", "title": "" }, { "docid": "cabf562880a333cb45b83921052ea132", "score": "0.64146614", "text": "function mouseClickAction(e) {\n // Menu Button Data\n const menuBtnPos = CoordMenu.getButtonPosition();\n const btnShape = CoordMenu.getButtonShape();\n // Close Menu Button Data\n const closeBtnPos = CoordMenu.getCloseMenuBtnPosition();\n const closeBtnShape = CoordMenu.getCloseMenuBtnShape();\n // Mouse Data\n const mousePos = {\n x: e.x, y: e.y\n };\n // Menu Button vs Mouse\n // Check if Mouse within Menu Button Click | Trigger Menu\n if (Menu.within(menuBtnPos, btnShape, mousePos) && !CoordMenu.getMenuStatus()) {\n CoordMenu.triggerMenu();\n }\n // Menu Box vs Mouse\n // Check if Mouse within Menu Buttons\n // Check if Mouse within Close Menu Button\n else {\n // Check Close Button\n if (Menu.within(closeBtnPos, closeBtnShape, mousePos)) {\n CoordMenu.triggerMenu();\n }\n // Check Menu Buttons\n CoordMenu.clickedButton(mousePos);\n }\n}", "title": "" }, { "docid": "4056078b1d101bc59ef1a12bbd280f8c", "score": "0.64124346", "text": "_handleClick(event) {\n if (this.triggersSubmenu()) {\n // Stop event propagation to avoid closing the parent menu.\n event.stopPropagation();\n this.openMenu();\n }\n else {\n this.toggleMenu();\n }\n }", "title": "" }, { "docid": "340a5e46fc8f424dc6d6406f30284136", "score": "0.6402919", "text": "pressButton() {\n this.buttonPressed_ = true;\n this.menu.lockShowing();\n this.el_.setAttribute('aria-pressed', true);\n if (this.items && this.items.length > 0) {\n this.items[0].el().focus(); // set the focus to the title of the submenu\n }\n }", "title": "" }, { "docid": "7227c2897c09030397ba7e5613f82da9", "score": "0.63991207", "text": "rightClickDownEvent() { }", "title": "" }, { "docid": "82ede3bb3cc206e0ffb50f8b203b5c35", "score": "0.63869625", "text": "function clickMenu() {\n movimiento(clickMenuOpcion);\n}", "title": "" }, { "docid": "6863dd4d3a8b837410235cada248b211", "score": "0.6339155", "text": "function click(item){\r\n //console.log('im pressed', item)\r\n }", "title": "" }, { "docid": "fec5e01b491b9cea1826042dfdce5146", "score": "0.6332881", "text": "on_applet_clicked(event) {\n this.makeMenu();\n if (!this.menu.isOpen) this.menu.toggle();\n }", "title": "" }, { "docid": "8ce0fb797bd4279fe3c728c73344bcdc", "score": "0.6319872", "text": "_handleItemClick(event) {\n for (let i = 0; i < this.items.length; i++) {\n if (this.items[i].domElement === event.target) {\n let actionId = this.items[i].getId();\n this._saveLastAction(actionId);\n this.selectAction(actionId);\n this.menu.hide();\n break;\n }\n }\n }", "title": "" }, { "docid": "15e8210e77cf611b9d85764f130d1aeb", "score": "0.6319038", "text": "_onMenuClick(event) {\n const target = event.target;\n const button = event.target.closest('.mailbox-menu-item');\n if (button) {\n event.preventDefault();\n } else {\n return;\n }\n const showSettings = JSON.parse(button.getAttribute('data-show'));\n this.currentShowSettings = showSettings;\n this._renderItems();\n this._setActiveMenuItem(button);\n this._hideEmailMenuModal();\n this._showListScreen();\n }", "title": "" }, { "docid": "4a1d92edaa977119dd268af260a9604d", "score": "0.6318584", "text": "function smallMenu(){\n\t\t$('#backBtn').click(function(){\n\t\t\twindow.location.href = '/login';\n\t\t})\n\t\t$('#saveBtn').click(function(){\n\n\t\t\tsaveAll();\n\t\t})\n\t\t$('#shareBtn').click(function(){\n\t\t\tshare();\n\t\t})\n}", "title": "" }, { "docid": "d840715cc87599bc941dc14e2d60f963", "score": "0.63101536", "text": "handleMenuClick(menuItem) {\n let icon = this.getIconByPresence(menuItem);\n this.setImage(icon);\n }", "title": "" }, { "docid": "70cf31e503d7973a15bbdb2701075317", "score": "0.63049555", "text": "function mouseClicked() {\n //Hide/Show Menu\n if(hideMenu.buttons[0].over()){ \n toggleMainMenu();\n }\n \n if(mainMenu.buttons[0].over()){ \n loadOriginal = false;\n regenerateGame();\n }\n \n if(mainMenu.buttons[1].over()){ \n loadOriginal = true;\n regenerateGame();\n }\n \n if(mainMenu.buttons[2].over()){ \n toggleGame();\n }\n \n if(mainMenu.buttons[4].over()){ \n nextProfile();\n }\n \n if(mainMenu.buttons[5].over()){ \n nextSite();\n }\n \n if(mainMenu.buttons[6].over()){ \n nextSiteBuild();\n }\n \n if(mainMenu.buttons[7].over()){ \n nextBuild();\n }\n \n if(mainMenu.buttons[9].over()){ \n deploySelection();\n }\n \n if(mainMenu.buttons[10].over()){ \n removeSelection();\n }\n \n if(mainMenu.buttons[11].over()){ \n repurposeSelection();\n }\n \n if(mainMenu.buttons[13].over()){ \n endTurn();\n }\n \n if(mainMenu.buttons[16].over()){ \n displayRadar = toggle(displayRadar);\n }\n \n if(mainMenu.buttons[17].over()){ \n invertColors();\n }\n \n if(mainMenu.buttons[18].over()){ \n toggleProjection();\n }\n \n checkSelections();\n \n loop();\n}", "title": "" }, { "docid": "4866995174235c5ba31dde3fbc81c2d0", "score": "0.62995887", "text": "_initializeMenuButtonEvents(){\r\n var self = this;\r\n $(this.menuButtonDom).click(function(){\r\n if(self._expanded){\r\n self.contract();\r\n } else {\r\n self.expand();\r\n }\r\n });\r\n }", "title": "" }, { "docid": "ca0262fc257d8cc3c45fe474d64aa193", "score": "0.62846977", "text": "mainMenuClick() {\n //if state.menuOpen is false, the menu won't display - clicking the menu icon will change it to true and display it as well as set dsType to false\n if (this.state.menuOpen === false) this.setState({menuOpen: true, dsType: false, dataStructure: undefined});\n else this.setState({menuOpen: false})\n return;\n }", "title": "" }, { "docid": "3fa2ce6587ffc4bba1e79e163b768d72", "score": "0.6283713", "text": "clickListener() {\n var self = this;\n document.addEventListener(\"click\", function (e) {\n var clickeElIsLink = self.clickInsideElement(e, self.contextMenuLinkClassName);\n\n if (self.menuState == 1 && clickeElIsLink) {\n e.preventDefault();\n self.menuItemListener(self,clickeElIsLink);\n } else {\n var button = e.which || e.button;\n if (button === 1) {\n self.toggleMenuOff(self);\n }\n }\n });\n }", "title": "" }, { "docid": "996ac363bb60a888c179d70b255d3b16", "score": "0.62712896", "text": "function performActions() {\n\n // add element of menu entry content to event data\n event_data.content = content_elem;\n\n // perform menu entry actions\n if ( entry_data.actions )\n if ( typeof ( entry_data.actions ) === 'function' )\n entry_data.actions( $.clone( event_data ), self );\n else\n entry_data.actions.map( action => $.action( [ action[ 0 ], event_data, self ] ) );\n\n // perform callback for clicked menu entry\n self.onclick && $.action( [ self.onclick, $.clone( event_data ), self ] );\n\n }", "title": "" }, { "docid": "015a7249f3c6252e21e4ee129d498ed9", "score": "0.6261553", "text": "function menuOnClick() {\n $(\".portfolioItem\").click(function(){\n // console.log(this.id)\n populateDisplay(portfolioItems[this.id]);\n hidePrompt();\n revealDisplay();\n moveMenu();\n });\n\n}", "title": "" }, { "docid": "5dad05475265a2d9a3cd39fc402c5c57", "score": "0.6253711", "text": "function aButton(){\n\t\tprocessLocal();\n\t\tbuttonPress(info, ALL);\n\t}", "title": "" }, { "docid": "9f701181fdd8b53404cfcc278bfa1bad", "score": "0.6253193", "text": "function clickHandler() {\n\t\t\t\tif($button.hasClass(config.classState1)) {\n\t\t\t\t\tif (config.clickState1 !== null) {\n\t\t\t\t\t\tconfig.clickState1();\n\t\t\t\t\t}\n\t\t\t\t\ttoState2();\n\t\t\t\t} else {\n\t\t\t\t\tif (config.clickState2 !== null) {\n\t\t\t\t\t\tconfig.clickState2();\n\t\t\t\t\t}\n\t\t\t\t\ttoState1();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "52aeaf5e913ed6bccf37a7475c9292b0", "score": "0.6246637", "text": "function click_lyrMenu_추가(ui) {\n processInsert({});\n }", "title": "" }, { "docid": "605316a03af261bf3b7db9a483eb24c6", "score": "0.6241309", "text": "function installButtons(menu) {\n // show inspector button\n var inspector = $('<button>show inspector</button>');\n inspector.bind('click', function (e) {\n menu.Inspector.show();\n e.preventDefault();\n });\n\n // show evaluator button\n var evaluator = $('<button>show evaluator</button>');\n evaluator.bind('click', function (e) {\n menu.Evaluator.show();\n e.preventDefault();\n });\n \n // application mode button\n var application = $('<button>Application Mode</button>');\n application.bind('click', function (e) {\n menu.Mode.application();\n e.preventDefault();\n });\n\n // development mode button\n var development = $('<button>Development Mode</button>');\n development.bind('click', function (e) {\n menu.Mode.development();\n e.preventDefault();\n });\n\n // export button\n var exp = $('<button>Export Application</button>');\n exp.bind('click', function (e) {\n window.location.href = window.location.pathname.slice(1).split(\".\")[0] + \".zip\";\n e.preventDefault();\n });\n\n // add to container\n menu.jqContainer.append(inspector)\n .append(evaluator)\n .append(application)\n .append(development)\n .append(exp);\n\n }", "title": "" }, { "docid": "227f60b95447828363c5f71a859af966", "score": "0.6238082", "text": "function add_menu_listeners() {\n\tvar buttons = document.getElementsByClassName(\"post_menu\");\n\n\tfor (i=0; i < buttons.length; i++) {\n\t\tvar button = buttons[i];\n\t\tbutton.children[0].onclick = toggle_menu;\n\t}\n}", "title": "" }, { "docid": "261209897e12e1871262897e3c798335", "score": "0.62365323", "text": "function menuButtonClicked(canvasObj, hideOnly = false) {\n\t\tif(!checkMenuShown(canvasObj) && false === hideOnly) {\n\t\t\tcanvasObj.menuShown = true;\n\t\t\tshowHideMenu(canvasObj.menuShown, canvasObj);\n\t\t} else {\n\t\t\tcanvasObj.menuShown = false;\n\t\t\tshowHideMenu(canvasObj.menuShown, canvasObj);\n\t\t}\n\t}", "title": "" }, { "docid": "e585126e4dc724f4e658cf049e1473b0", "score": "0.6230791", "text": "function goButtonClicked(evt, options) {\n // Remove middle and right box items and associated triangles\n jQuery(\".column.midCol .boxItem, .column.rightCol .boxItem, .yourGoalsMarker > .triangle\").remove();\n\n // Hide elements\n jQuery(\".rolloverMenu, #mainDetails, #tabBlackNumber\").hide();\n\n // Show elements\n jQuery(\"#detailsEstimation\").show();\n\n jQuery(\"#tabBlackNumber span\").html(\"0\");\n breadcrumbs = [];\n scroll();\n\n jQuery(\"#goalEstimationTool\").removeClass(\"inactive\").addClass(\"active\");\n \n // Save correct process\n var tmpProcess = { \"handler\": this.id, \"steps\": [] };\n for(var i = 0; i<options.length; i++) {\n tmpProcess.steps.push(options[i]);\n }\n initProcess = tmpProcess;\n }", "title": "" }, { "docid": "1119fec62085a603cde437725cdfbbb5", "score": "0.62262636", "text": "function eventosMenusPrincipal() {\n\n $(\".home, .nosotros, .super-g-prix, .tiendas,.lubricantes,.servicios, .encuentranos, .contactenos\").click(function () {\n $('.nav-cabecera a').removeClass(\"active\");\n $(this).addClass(\"active\");\n });\n\n $(\".nosotros, .super-g-prix, .tiendas,.lubricantes,.servicios, .encuentranos, .contactenos\").click(function () {\n verificarFooter(0);\n $('#menu').click();\n\n });\n\n $(\".home\").click(function () {\n movimiento('row_home');\n verificarFooter(1);\n $('#menu').click();\n clickMenuOpcion = 'row_home';\n cambiarPromociones($('body').width());\n });\n\n $(\".nosotros\").click(function () {\n movimiento('fondo-nosotros');\n $('#btn-empresa').click();\n clickMenuOpcion = 'fondo-nosotros';\n });\n $(\".super-g-prix\").click(function () {\n movimiento('fondoGprix');\n $('#btn-beneficios').click();\n clickMenuOpcion = 'fondoGprix';\n });\n $(\".lubricantes\").click(function () {\n movimiento('fondoLubricantes');\n $('#btn-lubricantes').click();\n clickMenuOpcion = 'fondoLubricantes';\n });\n $(\".tiendas\").click(function () {\n movimiento('fondoTiendas');\n $('#btn-tiendas').click();\n clickMenuOpcion = 'fondoTiendas';\n });\n\n $(\".lubricantes\").click(function () {\n movimiento('fondoLubricantes');\n clickMenuOpcion = 'fondoLubricantes';\n });\n $(\".servicios\").click(function () {\n movimiento('fondoServicios');\n clickMenuOpcion = 'fondoServicios';\n });\n $(\".encuentranos\").click(function () {\n movimiento('fondoEncuentranos');\n clickMenuOpcion = 'fondoEncuentranos';\n\n });\n $(\".contactenos\").click(function () {\n movimiento('fondoContactanos');\n clickMenuOpcion = 'fondoContactanos';\n })\n\n}", "title": "" }, { "docid": "0149a7762829fc88d7771a59243caa7b", "score": "0.6213672", "text": "function flyoutMenuClickedHandler(e) {\n // the event's \"data\" attribute is an object, which contains \"menuId\" and \"menuName\"\n console.dir(e);\n switch (e.data.menuId) {\n case \"AboutItemAnimD2\":\n csInterface.evalScript(\"alert('AnimDessin2 \\\\nVersion 2.2.1\\\\nPhotoshop CC 2015 to 2018+\\\\n©2018 Stephane Baril\\\\nhttp://www.sbaril.me');\");\n break;\n case \"OpenWebsiteAnimD2\":\n csInterface.openURLInDefaultBrowser(\"https://www.youtube.com/playlist?list=PLnNlOgl2T6GAsPqZDaf57TAqBa6ltL_gQ\");\n LoseFocus();\n // csInterface.openURLInDefaultBrowser(\"http://www.sbaril.me/links\"); LoseFocus();\n break;\n case \"iconSml\":\n iconSize(\"iconSml\");\n break;\n case \"iconMed\":\n iconSize(\"iconMed\");\n break;\n case \"iconBig\":\n iconSize(\"iconBig\");\n break;\n case \"iconCenter\":\n iconCenter(\"iconCenter\");\n break;\n case \"toolTips\":\n toolTips();\n break;\n case \"help\":\n openGuides();\n break;\n case \"localize\":\n getLocalize();\n break;\n default:\n console.log(e.data.menuName + \" panel clicked!\");\n }\n }", "title": "" }, { "docid": "14bc89297e7e8854dfa4a068fba9b947", "score": "0.6191498", "text": "onSidebarClick(event) {\n this.menuClick = true;\n }", "title": "" }, { "docid": "c01cb5aa9549b10ab944479b366f9cec", "score": "0.618059", "text": "function modMenu(){\n }", "title": "" }, { "docid": "d09e12f54e0b0cc0f6657b596d24453f", "score": "0.61779094", "text": "onRightClick() {\n const menuConfig = Menu.buildFromTemplate([ //builds menu template, always takes array of objects\n {\n label: 'Quit',\n click: () => app.quit()\n }\n ]);\n this.popUpContextMenu(menuConfig); //base Tray class method referenced with \"this\"\n }", "title": "" }, { "docid": "94a8b2df73df456b736d4e6476332b4a", "score": "0.6177644", "text": "function btnLightClick() {\n executeCommand($(this).data(\"item-commandtext\"), 'Index');\n}", "title": "" }, { "docid": "d56e714ba9c43295fd5d3099b7e2447e", "score": "0.617695", "text": "function _addMenuItems() {\n var viewMenu = Menus.getMenu(Menus.AppMenuBar.VIEW_MENU);\n viewMenu.addMenuDivider();\n\n function registerCommandHandler(commandId, menuName, handler, shortcut) {\n CommandManager.register(menuName, commandId, handler);\n viewMenu.addMenuItem(commandId);\n KeyBindingManager.addBinding(commandId, shortcut);\n }\n\n registerCommandHandler(\"lukasspy.sketchmeister.toggleSketchmeister\", \"Enable SketchMeister\", _toggleStatus, \"Ctrl-1\");\n registerCommandHandler(\"lukasspy.sketchmeister.toggleMissionControl\", \"Enable MissionControl\", _toggleMissionControl, \"Alt-1\");\n }", "title": "" }, { "docid": "68b2c2572612ec0374b9894de85366e2", "score": "0.617605", "text": "function selectClicked() {\n controller.selectMenu.isClicked = true;\n}", "title": "" }, { "docid": "88ef2538859e3c06b2c1e8b624423d11", "score": "0.61750495", "text": "function menuControlsClick() {\n PageData.ControlsOpen = !PageData.ControlsOpen;\n setControlsPosition();\n}", "title": "" }, { "docid": "b1adadb91a416e49213f2880406ef3eb", "score": "0.61737895", "text": "function menuEvent(e) {\n // check for controlObj Length\n var _length = 0;\n if (p._shellModel.getPageDataObject().controlObj) {\n p._navController.restoreNext();\n _length = p._shellModel.getPageDataObject().controlObj['o'].length;\n }\n // if specified values inside controlObj menucontrolObj\n if (_length != 0 && p.actConfig.menucontrolObj[Number(e.menu)] < _length) {\n p._shellModel.setScreenId(p.actConfig.menucontrolObj[Number(e.menu)]);\n var screenId = p._shellModel.getCurrentScreenId();\n var mediaType = p._shellModel.getScreenObj()[screenId].mediaType;\n p._navController.getShellController().sliderShow();\n p._navController.getShellController().loadScreen(screenId, mediaType);\n } else {\n alert('check menucontrolObj, specified value outofIndex of ControlObj.');\n }\n }", "title": "" }, { "docid": "de46c10f3215807b78e88bae86f40809", "score": "0.6164572", "text": "function menuClick() {\n\tif (document.addEventListener && icon !== null) {\n\t\ticon.addEventListener('click', toggle);\n\t} else if (document.attachEvent && icon !== null) {\n\t\ticon.attachEvent('onclick', toggle);\n\t} else {\n\t\treturn;\n\t}\n}", "title": "" }, { "docid": "2577b4c0746999ccb021f95316f66fcd", "score": "0.6160548", "text": "function openMenu() {\n\n}", "title": "" }, { "docid": "7650cbe361318f3dcb300cccc2884ccf", "score": "0.61505663", "text": "onMouseClick(event) {\n const me = this,\n menuItem = event.target.closest('.b-menuitem');\n\n if (menuItem) {\n me.triggerElement(menuItem, event); // IE / Edge still triggers event listeners that were removed in a listener - prevent this\n\n event.stopImmediatePropagation();\n }\n }", "title": "" }, { "docid": "122688a3f9b8faee172327795e0a2978", "score": "0.6138156", "text": "updateMenu() {\n\n }", "title": "" }, { "docid": "136ba03a4df01ac42ca7ac91f442afa9", "score": "0.61361766", "text": "function clickListener() {\n document.addEventListener(\"click\", function(e) {\n var isLinkElement = clickedInsideElement(e, contextMenuLink);\n var isInsideMenu = clickedInsideElement(e, contextMenu);\n var isInsideSVG = clickedInsideElement(e, \"canvas\");\n\n if (isInsideMenu !== false) {\n e.preventDefault();\n \n if (isLinkElement !== false) {\n menuItemListener(isLinkElement);\n }\n }\n else {\n var button = e.which || e.button;\n if (button === 1) {\n toggleMenuOff();\n }\n }\n });\n}", "title": "" }, { "docid": "fd9dea43022ddfc43cf2600a1b3d5b63", "score": "0.61342365", "text": "function handleClick() {\n\t\t window.ctaClick();\n\t\t}", "title": "" }, { "docid": "fd9dea43022ddfc43cf2600a1b3d5b63", "score": "0.61342365", "text": "function handleClick() {\n\t\t window.ctaClick();\n\t\t}", "title": "" }, { "docid": "038a21967f498e3ccea93e25025155e3", "score": "0.61324346", "text": "function MenuArticulo(m){\n\n\tif(m == \"clicked: nuevo\"){\n\t\tnorma = $(\"#normas .seleccionada\").attr(\"id\");\n\t\tNuevoArticulo(norma);\n\t}else if(m == \"clicked: eliminar\"){\n\t\tBorrarArticulo()\n\t}else if(m == \"clicked: editar\"){\n\t\tEditarArticulo();\n\t}\n}", "title": "" }, { "docid": "196eb03b57f58bb2af1a4ca451a2bc5f", "score": "0.613139", "text": "function mouseClicked() {\n if (MENU === 0) {\n if (mouseX < 200 && mouseX > 50) {\n if (mouseY < 125 && mouseY > 50) {\n MENU = 1\n }\n if (mouseY < 275 && mouseY > 200) {\n MENU = 2\n }\n if (mouseY < 425 && mouseY > 350) {\n MENU = 3\n }\n }\n }\n}", "title": "" }, { "docid": "1fa8827afce4de7064f06e4d14785d98", "score": "0.61313075", "text": "rightClickUpEvent() { }", "title": "" }, { "docid": "a76c4b46356ff5d07d76b37dc8e094c9", "score": "0.6131001", "text": "onClick(){\n\t\t\n\t}", "title": "" }, { "docid": "a4002db6c2a906f3a4722ec20711e06a", "score": "0.6127235", "text": "menuList(event){\n\n let menuList=event.target;\n let borderBottom=\"border-bottom: 6px solid crimson\";\n let menu=document.querySelectorAll('.menu_list');\n\n menu.forEach(function (value) {\n value.style.cssText=\"background: none; border-bottom:none;\";\n\n }) ;\n\n\n if( menuList.textContent===\"Favorites\" && event.type===\"click\"){\n menuList.style.cssText=borderBottom;\n this.progress();\n this.favorites()\n\n\n\n\n }else if( menuList.textContent===\"Lists\"){\n menuList.style.cssText=borderBottom;\n this.lists();\n\n\n\n }else if( menuList.textContent===\"Watch-Later\"){\n menuList.style.cssText=borderBottom;\n this.watchList();\n\n\n\n }else if( menuList.textContent===\"Likes\"){\n menuList.style.cssText=borderBottom;\n\n\n }\n\n\n event.preventDefault();\n\n }", "title": "" }, { "docid": "b9c34be7a0d5e5a7d3709fc6d677428d", "score": "0.61215264", "text": "function handleItemClick(){\n\t\tevent.cancelBubble = true;\n\t\tmenuContainer.closeAll();\n}", "title": "" }, { "docid": "152d72da64007eb57ae8274b6a816592", "score": "0.61137146", "text": "function offcanvas_menu(){\n if ( $(\".nav-button\").length ){\n $(\".nav-button,.cross\").on('click',function(){\n if( $(\".offcanvas_menu_click, .nav-button\").hasClass('open') ){\n $(\".offcanvas_menu_click, .nav-button, .cross\").removeClass('open')\n }\n else{\n $(\".offcanvas_menu_click, .nav-button\").addClass('open')\n }\n return false\n });\n }\n }", "title": "" }, { "docid": "3b3026c78e7bd9e752bea996e033b7c4", "score": "0.6111435", "text": "function handleBurgerMenuClick(e) {\n toogleNav();\n }", "title": "" }, { "docid": "84dbb3a613af9f0189da3cf19827d005", "score": "0.61085546", "text": "function toggle_button_click(e) {\n var $button = $(e.currentTarget);\n var $menu = $button.parent().parent().find('> ul.menu');\n var was_closed = $button.hasClass('menu-closed');\n\n if (was_closed) {\n expand($menu, $button);\n }\n else {\n collapse($menu, $button);\n }\n }", "title": "" }, { "docid": "e66b6b7f15704af153c1f753248d6186", "score": "0.6107618", "text": "function onMenuClick(ev/*event object*/){\n \n //preventDefault: this function prevents the default action of the element that fired the event\n //In this case, it prevents the default \"jump to the url that's in the href attribute\" action in the anchor tag\n \n ev.preventDefault();\n \n \n //creating a variable and assigning the target of this event, which is the html element that was clicked\n \n var tg = ev.target;\n \n \n //getting the attribute \"data-tab-index\" which was set to the tab menu element.\n \n var newIndex = tg.getAttribute(\"data-tab-index\");\n \n \n //if \"newIndex\" isn't the \"currentIndex\", we run the code below.\n //if they are the same, that means user clicked the tab item which is currently active so we don't have to do anything.\n //since the newIndex is String, Number() is comverting it to the type \"number\"\n\n if(newIndex!=currentIndex){\n \n //showing the content with the new index\n \n contents[newIndex].style.display = \"block\";\n \n \n //hiding the content which is currently active\n \n contents[currentIndex].style.display = \"none\";\n \n \n //the new index becoms the next current index\n \n currentIndex = newIndex;\n \n };\n\n }", "title": "" }, { "docid": "aa25a7b7f4233ebcf344c3f317fe50e7", "score": "0.6106232", "text": "static onSelect() {\n const node = Navigator.byItem.currentNode;\n if (MenuManager.isMenuOpen() || node.actions.length <= 1 ||\n !node.location) {\n node.doDefaultAction();\n return;\n }\n\n ActionManager.instance.menuStack_ = [];\n ActionManager.instance.menuStack_.push(SAConstants.MenuType.MAIN_MENU);\n ActionManager.instance.actionNode_ = node;\n ActionManager.instance.openCurrentMenu_();\n }", "title": "" }, { "docid": "8073e8bd313f40f978cce8c3736b04d4", "score": "0.61004794", "text": "function deleteClicked() {\n controller.deleteMenu.isClicked = true;\n}", "title": "" }, { "docid": "b42ed1ef69793a3fc7059a31e9772495", "score": "0.609822", "text": "function menuItemSelected(id) {\n switch (id) {\n case 0:\n showAboutView();\n break;\n case 2:\n showHelpView();\n break;\n case 3:\n checkForUpdate();\n break;\n }\n}", "title": "" }, { "docid": "60544aed59c72c8b2dd358515e91acff", "score": "0.6096628", "text": "handleClick() {\n }", "title": "" }, { "docid": "95b712345af2621539f81142838d3321", "score": "0.6095543", "text": "function handleMenuClick () {\n this.state.isOpen ? this.close() : this.open()\n }", "title": "" }, { "docid": "1f3c101ba2623b7de0436daf3b0c0b78", "score": "0.6093541", "text": "function onButtonClick(menuitemId, type) {\r\n\r\n\t// alert(\"Right click menu action\");\r\n\t// alert();\r\n\t// var id2 = tree.contextID;\r\n\t// alert(id2);\r\n\t// alert(id);\r\n\t// alert(menuitemId);\r\n\t// tree.focusItem(tree.contextID);\r\n\t// tree.selectItem(tree.contextID,true);\r\n\t// menumanipulation(itemId);\r\n\tvar menuaction = menuitemId;\r\n\r\n\t// menumanipulation(itemId);\r\n\tif (menuaction == \"Associate_Content\") {\r\n\t\t// alert(\"open the menu for add module.\");\r\n\t\t$('#instruction').hide();\r\n\t\t$('#Associatecontentsearch').hide();\r\n\t\t$('#associatedefinecontainer').show();\r\n\r\n\t\t$(\"#btnsbtassoccontent\").click(\r\n\t\t\t\tfunction(e) {\r\n\t\t\t\t\t// alert(extimg);\r\n\t\t\t\t\tvar im0 = \"notesIcon.png\"; // the icon for a leaf node\r\n\t\t\t\t\tvar im1 = \"notesIcon.png\"; // the icon for an expanded\r\n\t\t\t\t\t// parent node\r\n\t\t\t\t\tvar im2 = \"notesIcon.png\";\r\n\r\n\t\t\t\t\t// alert();\r\n\t\t\t\t\t// var file = document.getElementById('imgultype').value;\r\n\t\t\t\t\t// alert(file);\r\n\t\t\t\t\t// var strExtn =\r\n\t\t\t\t\t// file.substr(fileName.value.lastIndexOf(\".\")+1,file.length);\r\n\t\t\t\t\t// alert(strExtn);\r\n\r\n\t\t\t\t\tvar typ = document.getElementById('q_type').value;\r\n\t\t\t\t\t// alert(typ);\r\n\t\t\t\t\tif (typ == \"Upload Content\") {\r\n\t\t\t\t\t\tif (extimg == \"pdf\" || extimg == \"pdfx\") {\r\n\t\t\t\t\t\t\tim0 = \"pdf.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"pdf.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"pdf.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t} else if (extimg == \"jpg\" || extimg == \"jpeg\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"png\" || extimg == \"gif\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"tif\" || extimg == \"bmp\") {\r\n\t\t\t\t\t\t\tim0 = \"img.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"img.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"img.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t} else if (extimg == \"mp4\" || extimg == \"avi\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"divx\" || extimg == \"mpg\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"mpeg\" || extimg == \"flv\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"wmv\" || extimg == \"swf\") {\r\n\t\t\t\t\t\t\tim0 = \"video.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"video.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"video.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t} else if (extimg == \"ppt\" || extimg == \"pptx\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"pps\") {\r\n\t\t\t\t\t\t\tim0 = \"ppt.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"ppt.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"ppt.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t} else if (extimg == \"doc\" || extimg == \"docx\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"rtf\" || extimg == \"wps\") {\r\n\t\t\t\t\t\t\tim0 = \"word.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"word.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"word.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t} else if (extimg == \"xls\" || extimg == \"xlsx\"\r\n\t\t\t\t\t\t\t\t|| extimg == \"xlr\") {\r\n\t\t\t\t\t\t\tim0 = \"excel.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\t\tim1 = \"excel.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\t\tim2 = \"excel.png\";\r\n\t\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0,\r\n\t\t\t\t\t\t\t\t\tim0, im1, im2, 'SELECT');\r\n\t\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (typ == \"External WebPage\") {\r\n\t\t\t\t\t\tim0 = \"link.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\tim1 = \"link.png\"; // the icon for an expanded parent\r\n\t\t\t\t\t\t// node\r\n\t\t\t\t\t\tim2 = \"link.png\";\r\n\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0, im0,\r\n\t\t\t\t\t\t\t\tim1, im2, 'SELECT');\r\n\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tim0 = \"notesIcon.png\"; // the icon for a leaf node\r\n\t\t\t\t\t\tim1 = \"notesIcon.png\"; // the icon for an expanded\r\n\t\t\t\t\t\t// parent node\r\n\t\t\t\t\t\tim2 = \"notesIcon.png\";\r\n\t\t\t\t\t\tvar d = new Date();\r\n\t\t\t\t\t\ttree.insertNewChild(tree.getSelectedItemId(), d\r\n\t\t\t\t\t\t\t\t.valueOf(), document\r\n\t\t\t\t\t\t\t\t.getElementById('contentname').value, 0, im0,\r\n\t\t\t\t\t\t\t\tim1, im2, 'SELECT');\r\n\t\t\t\t\t\ttree.smartRefreshItem(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\r\n\t} else if (menuaction == \"Search_Associate_Content\") {\r\n\t\t// alert(\"open the menu for Search_Add_Module module.\");\r\n\t\t$('#instruction').hide();\r\n\t\t$('#associatedefinecontainer').hide();\r\n\t\t$('#Associatecontentsearch').show();\r\n\t} else if (menuaction == \"View\") {\r\n\t\tcontent_id = tree.getSelectedItemId();\r\n\r\n\t\t$.get('/ziksana-web/zcourse/content/getcontentinfo', {\r\n\t\t\t'courseId' : $('#courseId').val(),\r\n\t\t\t'contentId' : content_id\r\n\t\t}, function(data) {\r\n\r\n\t\t\tcontent_type = (data.contentTypeString).toUpperCase();\r\n\t\t\tcontent_url = mediaserver_url + data.contentUrl;\r\n\t\t\tcontent_path = data.contentUrl;\r\n\r\n\t\t\tif (content_type == 'VIDEO') {\r\n\r\n\t\t\t\tplayVideo('/ziksana-web/zcourse/modalplayer/' + data.contentId);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (content_type == 'AUDIO') {\r\n\r\n\t\t\t\tplayAudio('/ziksana-web/zcourse/modalplayer/' + data.contentId);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (content_type == 'PDF' || content_type == 'DOC'\r\n\r\n\t\t\t|| content_type == 'PPT' || content_type == 'IMAGESET'\r\n\t\t\t\t\t|| content_type == 'IMAGE'\r\n\r\n\t\t\t\t\t|| content_type == 'EXCEL') {\r\n\r\n\t\t\t\t// displayImageSet('/ziksana-web/zcourse/slides/'+data.contentId);\r\n\t\t\t\tdisplayImageSet(content_path);\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t} else if (menuaction == \"Edit\") {\r\n\t\t// /\r\n\t\t$('#associatedefinecontainer').show(); // show the associate container.\r\n\r\n\t\tnode_id = tree.getSelectedItemId();\r\n\r\n\t\t$.post('/ziksana-web/zcourse/course/editNode', {\r\n\t\t\t'courseId' : $('#courseId').val(),\r\n\t\t\t'nodeId' : node_id\r\n\t\t}, function(data) {\r\n\r\n\t\t\tif (data) { // data will have the node content\r\n\r\n\t\t\t\t// window.location.href = window.location.href;\r\n\t\t\t\t$('#content_id').val(data.contentId);\r\n\t\t\t\t$('#contentname').val(data.contentName);\r\n\t\t\t\t$('.defaultvalue').html('Trignomentry details here');\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// //\r\n\t} else if (menuaction == \"Delete\") {\r\n\t\t// /\r\n\t\t// alert(\"this should delete the form.\");\r\n\r\n\t\tnode_id = tree.getSelectedItemId();\r\n\r\n\t\t$.post('/ziksana-web/zcourse/course/deletenode', {\r\n\t\t\t'courseId' : $('#courseId').val(),\r\n\t\t\t'nodeId' : node_id\r\n\t\t}, function(data) {\r\n\r\n\t\t\tif (data == 1) { // node is deleted successfully\r\n\r\n\t\t\t\twindow.location.href = window.location.href;\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t// //\r\n\t} else if (menuaction == \"Enhance\") {\r\n\r\n\t\tcontent_id = tree.getSelectedItemId();\r\n\t\tparsed_content_id = content_id.split('_')[1];\r\n\t\tcomponent_id = tree.getParentId(content_id);\r\n\t\tparsed_component_id = component_id.split('_')[1];\r\n\t\tconsole.log('Component Id is: '+ component_id);\r\n\t\tparsed_course_id = $('#courseid').val().split('_')[1];\r\n\r\n\t\t$.get('/ziksana-web/zcourse/content/getcontentinfo', {\r\n\t\t\t'courseId' : $('#courseId').val(),\r\n\t\t\t'contentId' : content_id\r\n\t\t}, function(data) {\r\n\r\n\t\t\tcontent_type = (data.contentTypeString).toUpperCase();\r\n\t\t\tcontent_url = mediaserver_url + data.contentUrl;\r\n\t\t\tcontent_path = data.contentUrl;\r\n\r\n\t\t\tif (content_type == 'PDF' || content_type == 'DOC'\r\n\r\n\t\t\t|| content_type == 'PPT' || content_type == 'IMAGESET'\r\n\t\t\t\t\t|| content_type == 'IMAGE'\r\n\r\n\t\t\t\t\t|| content_type == 'EXCEL') {\r\n\t\t\t\t// displayImageSet('/ziksana-web/zcourse/slides/'+data.contentId);\r\n\t\t\t\tdisplayEnhanceModal(\"/ziksana-web/zcourse/enhanceplayer/\"\r\n\t\t\t\t\t\t+ parsed_content_id +'/'+parsed_component_id+'/'+parsed_course_id);\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t}\r\n}", "title": "" }, { "docid": "aa3b15e545ea12353d67b3f75f5d3c58", "score": "0.6092219", "text": "function handleMenu(val) {\n if (!menuItems || !menuItems.items || !menuItems.panels) initMenu();\n index += val;\n\n if (index >= menuItems.items.length) {\n index = 0;\n }\n\n if (index < 0) {\n index = menuItems.items.length;\n }\n\n showMenu();\n selectMenuItem();\n\n}", "title": "" }, { "docid": "806c3512aa8252ad5796701386d912c5", "score": "0.60908306", "text": "function topMenuHandlers() {\n $('#toggleSidebar').click(function () {\n $('#listSidebar').sidebar('toggle');\n });\n\n $('#sortByDropdown').dropdown();\n\n $('#togglePlayPauseButton').click(togglePlayPauseClick);\n\n $('#previousVideoButton').click(prevSong);\n $('#nextVideoButton').click(nextSong);\n}", "title": "" }, { "docid": "651b0c4ffbb783d133b0e1b3e5d4f977", "score": "0.60751307", "text": "function onLoadAdmin() {\r\n // Attach the onClick handlers to the menu items.\r\n var elements = getElementsByClassName(document.body, \"menu_item\");\r\n for (var i = 0; i < elements.length; i++) {\r\n AttachEvent(elements[i], \"click\", itemClickHandler);\r\n }\r\n\r\n // Select the first menu item.\r\n itemClick(elements[0]);\r\n}", "title": "" }, { "docid": "7ceb936f198dd2eaff58b834b186f1a4", "score": "0.6073302", "text": "function onOpen() {\n createMenu();\n}", "title": "" }, { "docid": "000f0f3447fff1efcfcc952310dac71b", "score": "0.6071006", "text": "callback() {\n // eslint-disable-next-line no-unsanitized/property\n const buttonTemplate = `\n <se-menu-item id=\"tool_clear\" label=\"opensave.new_doc\" shortcut=\"N\" src=\"new.svg\"></se-menu-item>`;\n svgCanvas.insertChildAtIndex($id('main_button'), buttonTemplate, 0);\n const openButtonTemplate = `<se-menu-item id=\"tool_open\" label=\"opensave.open_image_doc\" src=\"open.svg\"></se-menu-item>`;\n svgCanvas.insertChildAtIndex($id('main_button'), openButtonTemplate, 1);\n const saveButtonTemplate = `<se-menu-item id=\"tool_save\" label=\"opensave.save_doc\" shortcut=\"S\" src=\"saveImg.svg\"></se-menu-item>`;\n svgCanvas.insertChildAtIndex($id('main_button'), saveButtonTemplate, 2);\n const saveAsButtonTemplate = `<se-menu-item id=\"tool_save_as\" label=\"opensave.save_as_doc\" src=\"saveImg.svg\"></se-menu-item>`;\n svgCanvas.insertChildAtIndex($id('main_button'), saveAsButtonTemplate, 3);\n // handler\n $id(\"tool_clear\").addEventListener(\"click\", clickClear.bind(this));\n $id(\"tool_open\").addEventListener(\"click\", clickOpen.bind(this));\n $id(\"tool_save\").addEventListener(\"click\", clickSave.bind(this, \"save\"));\n $id(\"tool_save_as\").addEventListener(\"click\", clickSave.bind(this, \"saveas\"));\n }", "title": "" } ]
f131fbca9bdd13895b30fc3e39a7fe56
Switches the button from on to off and alerts all listeners
[ { "docid": "ec420ea3500c1f49c4ed0a5253e4442d", "score": "0.0", "text": "function press() {\n\t\tif (!this.isPushed) {\n\t\t\tthis.toggle();\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "8c77c75e82729b6e1c865881498a3051", "score": "0.68942225", "text": "function handleSwitchButton() {\n setSwitchButton(!switchButton);\n }", "title": "" }, { "docid": "3a8efc34ded145eed96e889699affde5", "score": "0.68545085", "text": "function onButton() {\n setOnOff(!onOff);\n const pinkButton = document.querySelector('.intro');\n const insultOneButton = document.querySelector('.insult-1');\n const insultTwoButton = document.querySelector('.insult-2');\n const closingButton = document.querySelector('.closing');\n const questionButton = document.querySelector('.question');\n const playButton = document.querySelector('.play');\n const svgBackground = document.querySelector('svg');\n if (onOff) {\n pinkButton.classList.add('on');\n insultOneButton.classList.add('on');\n insultTwoButton.classList.add('on');\n closingButton.classList.add('on');\n questionButton.classList.add('on');\n playButton.classList.add('on');\n svgBackground.classList.add('on');\n } else {\n pinkButton.classList.remove('on');\n insultOneButton.classList.remove('on');\n insultTwoButton.classList.remove('on');\n closingButton.classList.remove('on');\n questionButton.classList.remove('on');\n playButton.classList.remove('on');\n svgBackground.classList.remove('on');\n }\n }", "title": "" }, { "docid": "f222f8116a7bc9bd80fb335a251686fe", "score": "0.6802306", "text": "function onOff() {\n if (onOrOff === false) {\n onOrOff = true;\n turnOn();\n } else {\n onOrOff = false;\n turnOff();\n }\n }", "title": "" }, { "docid": "9e5c972a09d66bf520275924626f076f", "score": "0.67785317", "text": "consumeOnOffEvent() {\r\n this.__onOffEventHandler.handleOnOffEvent();\r\n }", "title": "" }, { "docid": "0e4f19bf0f5c4f629474f2d59ad42383", "score": "0.6697873", "text": "function buttonOff(button) {\n\tvar ID = button.id;\n\tbuttonStates[ID] = 0;\n\tbutton.style.backgroundColor = \"#6B6B6B\";\n}", "title": "" }, { "docid": "1e0f23f315a1575076ae76a2fd655f83", "score": "0.6610612", "text": "turnoff(){\n this.on = false\n //alert(\"Robot turned off\")\n }", "title": "" }, { "docid": "9a2abaa14958db5930b21afcde3580e3", "score": "0.6562189", "text": "emergencyButton() {\r\n console.log(\"Emergency Button was pressed\");\r\n this.resetPressed = false;\r\n this.emergencyPressed = true;\r\n // travel to the nearest floor and open the doors\r\n console.log(\"Opening Doors\");\r\n }", "title": "" }, { "docid": "c138de96dba25a66230c9367d54b5744", "score": "0.6555949", "text": "function onButtonDown() {}", "title": "" }, { "docid": "c138de96dba25a66230c9367d54b5744", "score": "0.6555949", "text": "function onButtonDown() {}", "title": "" }, { "docid": "87cfc44348f699deabea3692d58c11d9", "score": "0.6482354", "text": "toggle(){this.off=!this.off}", "title": "" }, { "docid": "2cc18d3d91a596a93ce20243ef3c9108", "score": "0.646831", "text": "function gestion_btn(){\r\n\tbtn_on_off();\r\n\tbtn_switch();\r\n\tbtn_switch_tiers();\r\n\tbtn_switch_supp_modif();\r\n\tbtn_confirmer_edit();\r\n\r\n}", "title": "" }, { "docid": "4812b1033bf55a999a55ab380fc29931", "score": "0.64638937", "text": "function change(button)\n{\n //if element is on => off\n if (document.getElementById(button).value == `{${button} on}`)\n {\n\n //if sustain feature\n if(document.getElementById(button).value == `{${button} on}`)\n {\n var i;\n //turn off all sustained synths\n for(i = 0; i < synths.length; i++)\n {\n if (sustain[i] == true)\n {\n sustain[i] = null;\n synths[i].triggerRelease();\n }\n }\n //revert all \"pushed\" classes\n for (i = 0; i < keys.length; i++)\n { \n //if special case (modulo the period)\n if(i % document.getElementById('keys').value == 0)\n {\n keys[i].setAttribute('class', 'keyboardPeriod');\n }\n //base case\n else\n {\n keys[i].setAttribute('class', 'keyboard');\n }\n }\n }\n //base case\n document.getElementById(button).value=`{${button} off}`;\n\n //if element is off => on\n }\n else\n {\n document.getElementById(button).value=`{${button} on}`;\n }\n}", "title": "" }, { "docid": "88daf587669868df3a6d8e14108d5dbe", "score": "0.6460518", "text": "function toggleButton() {\n (async () => {\n\n /* toggle device */\n await officalConnection.toggleDevice('1000a1b44c');\n await readPowerState(officalConnection);\n\n })();\n}", "title": "" }, { "docid": "ab8820dceda6f090e9dedd9fa12f90de", "score": "0.644665", "text": "function ledOn() {\r\n\tsendMessage('led=1')\t\r\n }", "title": "" }, { "docid": "8aa3a49a28b782a6bebd97c7cb53f4f1", "score": "0.64456993", "text": "function changeLEDButton() {\n console.log(\"Button clicked with id: %s\",event.srcElement.id)\n var LEDid = event.srcElement.id.toString('utf-8')\n console.log(\"ledid: \", LEDid);\n \n switch (event.srcElement.id) { // Select LED state array to update\n case 'ledstatus1': led = ledstate[1]; break;\n case 'ledstatus2': led = ledstate[2]; break;\n case 'ledstatus3': led = ledstate[3]; break;\n case 'ledstatus4': led = ledstate[4]; break;\n default: break;\n }\n\n // Toggle LED state and publish\n if(led.toString('utf-8') == 'false'){\n client.publish(\"topic/\"+event.srcElement.id,'true')\n }\n else{\n client.publish(\"topic/\"+event.srcElement.id,'false')\n }\n}", "title": "" }, { "docid": "991a8348b0b6923c9256528933c51540", "score": "0.6420427", "text": "function turnOnOff(event) {\n // get the event target:\n let thisButton = event.target;\n // change its value, depending on its current value:\n if (thisButton.value == 'on') {\n thisButton.value = 'off';\n } else {\n thisButton.value = 'on';\n }\n //get the span associated with it and change its text:\n let thisSpan = document.getElementById(thisButton.id + 'Val');\n thisSpan.innerHTML = \"Power is \" + thisButton.value;\n}", "title": "" }, { "docid": "4cb4b0fd6263f7987402b5c3696dc54f", "score": "0.64096093", "text": "deathButton() {\n $(`#play_button`).off(`click`);\n $(`#sleep_button`).off(`click`);\n $(`#hunger_button`).off(`click`);\n }", "title": "" }, { "docid": "fb7fd0bf63bc9a46819fdc58228b1ccd", "score": "0.64057225", "text": "function onClickEncender(){\n\tif(btnOn.innerHTML === 'On' && !mediaStream){\n\t\tstarMediaDevices(function(){\n\t\t\tbtnOn.innerHTML = 'Off';\n\t\t\tbtnRecStart.classList.remove('hide','disabled');\n\t\t\tbtnPause.classList.remove('hide');\n\t\t\tbtnStop.classList.remove('hide');\n\t\t},function(err){\n\t\t\tlog(err);\n\t\t});\n\t}else if(btnOn.innerHTML ==='Off' && mediaStream){\n\t\tstopMediaStream(function(){\n\t\t\tbtnOn.innerHTML = 'On';\n\t\t\tbtnRecStart.classList.add('hide', 'disabled');\n\t\t\tbtnPause.classList.add('hide', 'disabled');\n\t\t\tbtnStop.classList.add('hide', 'disabled');\n\t\t},function(err){\n\t\t\tlog(err);\n\t\t});\n\t}\n\tlnkDown.classList.add('hide','disabled');\n}", "title": "" }, { "docid": "6b5ae8765eb85621b9f0312d27e19d67", "score": "0.6404843", "text": "resetButton() {\r\n console.log(\"Reset Button was pressed\");\r\n this.resetPressed = true;\r\n this.emergencyPressed = false;\r\n // close the doors\r\n console.log(\"Closing Doors\");\r\n }", "title": "" }, { "docid": "6604ca590d97f0aaa8d13c8942674247", "score": "0.63932794", "text": "function buttonOff(btn, context) {\n\tbtn.loadTexture('btn_off');\t\n}", "title": "" }, { "docid": "ddc63358d8f5ea9d6037c6b975b9d22d", "score": "0.6380953", "text": "function switchOn() {\n setSwitchToggled(!switchToggled);\n }", "title": "" }, { "docid": "c5d6482d97113510ca24aa2b02f77aff", "score": "0.63758576", "text": "function buttonToggle(state) {\n //clear any existing selection and its outline\n if(selected != null) {\n selected.style.outline = 'none';\n selected = null;\n }\n\n //toggle button state class and value\n if(state == 'on') {\n button.className = 'on';\n button.innerHTML = 'Inspect <em>= ON</em>';\n }\n else {\n button.className = 'off';\n button.innerHTML = 'Inspect <em>= OFF</em>';\n }\n}", "title": "" }, { "docid": "62f3aa34fced45f953f9d47bfc7f8a98", "score": "0.63574636", "text": "function toggleListener () {\n if ( w ) {\n stopListener();\n }\n else {\n startListener();\n }\n}", "title": "" }, { "docid": "dc02d7a9660f5eefc31470257a463955", "score": "0.63493305", "text": "function toggleOn() {\n if (on) {\n if (strict) {\n toggleStrict();\n }\n\n kill();\n $(\"#counter\").css(\"color\", \"#B22020\");\n $('#onSwitch').prop('checked', false);\n\n } else {\n $(\"#counter\").css(\"color\", \"#F24421\");\n $('#onSwitch').prop('checked', true);\n }\n\n on = !on;\n }", "title": "" }, { "docid": "58a8febd8a7fb01c63d0546a9c1b6dd2", "score": "0.63202506", "text": "_buttonOnClick() {\n this._toggleIsHidden();\n this._updateElements();\n }", "title": "" }, { "docid": "48a9d9224c8eebe71fb280e0d875d54f", "score": "0.6304112", "text": "function buttonsOn() {\n document.getElementById('guess-button').removeAttribute(\"disabled\");\n document.getElementById('clear-button').removeAttribute(\"disabled\");\n document.getElementById('reset-button').removeAttribute(\"disabled\");\n}", "title": "" }, { "docid": "0610b1786c606e157c3e87beb3b4028e", "score": "0.6301941", "text": "function screenButtonDown() {\n fireButton = true;\n}", "title": "" }, { "docid": "ab2c334b73ece9fceb6bb90ffea0d679", "score": "0.6289704", "text": "onButtonChange (v) {}", "title": "" }, { "docid": "df33878e378644bade9675cba910edcd", "score": "0.6193608", "text": "function useButton() {\n playPause();\n changeButton();\n }", "title": "" }, { "docid": "28bbf374ac9255666779d8e389a79f51", "score": "0.61913395", "text": "function activateBtn() {\r\n $btn.attr('disabled', false);\r\n $btn.removeClass('offBtn');\r\n $btn.addClass('onBtn');\r\n }", "title": "" }, { "docid": "07a06fa481d45eb4f9115b4e912b7962", "score": "0.61876553", "text": "function disableAllButtons() {\n gameStartCheck = 1\n}", "title": "" }, { "docid": "408867169a3476ea12aa9ccb4fb8c628", "score": "0.61767185", "text": "function handleButton() {\n button.glitchFilter(10000); // Level must be stable for 10 ms (10,000 µs) before an alert event is emitted.\n button.on('alert', (level, tick) => {\n if (level === 1) {\n buzzer.digitalWrite(Pins.PIGPIO.LOW);\n } else {\n buzzer.digitalWrite(Pins.PIGPIO.HIGH);\n }\n });\n}", "title": "" }, { "docid": "918f6831f7f10f3ee5e35fc7d33685da", "score": "0.6176293", "text": "_updateStateOnClick() {\n const that = this,\n trackLength = that.checked === null ? that._switchTrackLength / 2 : that._switchTrackLength;\n\n that._updateAnimationsCSSvariables(trackLength, -trackLength);\n that._changeCheckState();\n that.focus();\n }", "title": "" }, { "docid": "2ebe9b3951cd894d49508d45e9ee3396", "score": "0.6175656", "text": "switchOff() {\n this.sendMessage(HubAction.build(HubAction.SWITCH_OFF_HUB));\n }", "title": "" }, { "docid": "e7f33b4c820f6f882ae0e7741206a297", "score": "0.6157479", "text": "function buttonDisable() {\n gameStatus = 0;\n}", "title": "" }, { "docid": "19b2422e7efeeefec4fd53a15af50f03", "score": "0.61448103", "text": "function handleToggleButton (){\n clearInterval(intervalBulb); clearInterval(intervalToggle);\n \n swapClasses(bulb, 'bulb-off', 'bulb-on');\n swapClasses(toggle, 'toggle-off', 'toggle-on');\n}", "title": "" }, { "docid": "ec9fc0711892574ec419b75fdb69c545", "score": "0.6144355", "text": "static controls () {\n const buttonsDOM = [...$(\".game__window--button\")]\n buttonsDOM.forEach(button => {\n $(button).click((event) => {\n $(\".game__window--button\").off()\n $(\".game__window--button\").show(300)\n ELHandlers.handleControls(event.target.classList[0])\n })\n })\n }", "title": "" }, { "docid": "570b9ae1d1de1841d1de9d63241ce148", "score": "0.61121386", "text": "function checkHandler() {\n\n // disable all buttons...\n $(\"#check\").off(\"click\");\n $(\"#bid\").off(\"click\");\n $(\"#raise\").off(\"click\");\n $(\"#fold\").off(\"click\");\n\n action++;\n if(allIn == 1)\n handleAllIn();\n else{\n if(lastChoice == 1){\n checkShowing();\n }\n else{\n lastChoice = 1;\n checkAction();\n }\n }\n}", "title": "" }, { "docid": "9f80e28f793946443bfc78ddd1b6498a", "score": "0.6109815", "text": "function buttonone(){\n \n synth.triggerRelease(now)\n //the color changes too if you press the button OFF\n document.getElementById(\"button1\").style.backgroundColor = \"lightpink\";\n document.getElementById(\"button\").style.backgroundColor = \"white\";\n }", "title": "" }, { "docid": "47732593bbf2b7d36500052cc15b0341", "score": "0.6099092", "text": "function extStateListener() { \r\n\t$('.state-switch').change(function(){\r\n\t\t// get the app id\r\n\t\tlet id = $(this).parents('.switch').attr('id'),\r\n\t\t// get the app name\r\n\t\tname = $(this).parents('.switch').attr('name');\r\n\t\tif($(this).is(':checked')){\r\n\t\t\tchrome.management.setEnabled(id, true, function (){\r\n\t\t\t\tMaterialize.toast(name+' is now on', 2000, 'ccToastOn');\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tchrome.management.setEnabled(id, false, function (){\r\n\t\t\t\tMaterialize.toast(name+' is now off', 2000, 'ccToastOff');\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n}", "title": "" }, { "docid": "c31c00442a9435b512fd6a0ce5501603", "score": "0.6096048", "text": "on() {\n this.status = \"on\";\n }", "title": "" }, { "docid": "c695f1712ca5e0c848591b8acd2e1f27", "score": "0.60498124", "text": "function updateButtonState () {\n switch (recorder.state) {\n case 'inactive':\n buttonCreate.disabled = false;\n buttonStart.disabled = false;\n buttonPause.disabled = true;\n buttonResume.disabled = true;\n buttonStop.disabled = true;\n buttonStopTracks.disabled = false; // For debugging purpose\n status.innerHTML =\n link.href ? 'Recording complete. You can play or download the recording below.'\n : 'Stream created. Click \"start\" button to start recording.';\n break;\n case 'recording':\n buttonCreate.disabled = true;\n buttonStart.disabled = true;\n buttonPause.disabled = false;\n buttonResume.disabled = false;\n buttonStop.disabled = false;\n buttonStopTracks.disabled = false; // For debugging purpose\n status.innerHTML = 'Recording. Click \"stop\" button to play recording.';\n break;\n case 'paused':\n buttonCreate.disabled = true;\n buttonStart.disabled = true;\n buttonPause.disabled = true;\n buttonResume.disabled = false;\n buttonStop.disabled = false;\n buttonStopTracks.disabled = false; // For debugging purpose\n status.innerHTML = 'Paused. Click \"resume\" button.';\n break;\n default:\n // Maybe recorder is not initialized yet so just ingnore it.\n break;\n }\n }", "title": "" }, { "docid": "cba790a3ca69c3e8fbdb68c23467ec20", "score": "0.6040091", "text": "function _ToggleButton_click()\n{\n // Toggle the state of the button, change the image\n this.isOff = !this.isOff;\n if ( this.isOff ) \n {\n this.image.src = this.limages[2].src;\n }\n else\n {\n this.image.src = this.limages[1].src;\n }\n} // end function _ToggleButton_click()", "title": "" }, { "docid": "c1c45d58262341bcfcc53279a0dabe6b", "score": "0.6034754", "text": "function toggleBtnOff() {\n \n document.getElementById('toggle-btn-off').classList.toggle('active');\n\n document.getElementById('btn-icon-off').classList.toggle('active');\n \n document.getElementById('btn-text-off').classList.toggle('active');\n \n\n}", "title": "" }, { "docid": "1bbcb37acb2f94b456bb83f02f4fc528", "score": "0.6032064", "text": "function strictBtn() {\n document.getElementById(\"strict-button-on\").style.display = \"block\";\n document.getElementById(\"strict-button\").style.display = \"none\"; \n strictBoo = true;\n}", "title": "" }, { "docid": "28488b7dad1abe158ad23d07d8859827", "score": "0.6028182", "text": "function listenForButton() {\n\t\ttag.on('simpleKeyChange', function(left, right) {\n\t\t\tif (left) {\n\t\t\t\tconsole.log('left: ' + left);\n\t\t\t}\n\t\t\tif (right) {\n\t\t\t\tconsole.log('right: ' + right);\n\t\t\t}\n\t\t\t// if both buttons are pressed, disconnect:\n\t\t\tif (left && right) {\n\t\t\t\ttag.disconnect();\n\t\t\t}\n\t });\n\t}", "title": "" }, { "docid": "034624908750d1914bf8625a832244ad", "score": "0.60259145", "text": "function toggleButts() {\n if (game.listenerBool) {\n for (let i = 0; i < quads.length; i++) {\n quads[i].removeEventListener(\"mousedown\", mousedownHandler, false);\n }\n window.removeEventListener(\"mouseup\", badHandler, false);\n window.removeEventListener(\"mouseup\", goodHandler, false);\n game.listenerBool = false;\n } else {\n for (let i = 0; i < quads.length; i++) {\n quads[i].addEventListener(\"mousedown\", mousedownHandler, false);\n }\n game.listenerBool = true;\n }\n }", "title": "" }, { "docid": "f5e2ebd65237f05375369275fd5cdcfb", "score": "0.6013077", "text": "function changeBtn() {\n //change buttons class\n xSoundClick.play();\n document.getElementById(\"myButton\").classList.toggle(\"btnBlack\");\n document.getElementById(\"savetoDB\").classList.toggle(\"btnBlack\");\n document.getElementById(\"clearReg\").classList.toggle(\"btnBlack\");\n document.getElementById(\"chgBtn\").classList.toggle(\"btnBlack\");\n document.getElementById(\"registers-dropdown\").classList.toggle(\"btnBlack\");\n //change loader class also\n document.getElementById(\"myLoader\").classList.toggle(\"loaderBlack\");\n}", "title": "" }, { "docid": "809b0d4844ce50a0d94c4774984d8ca7", "score": "0.60088426", "text": "function listenForButton() {\n tag.on('simpleKeyChange', function(left, right) {\n if (left) {\n console.log('left: ' + left);\n }\n if (right) {\n console.log('right: ' + right);\n }\n // if both buttons are pressed, disconnect:\n if (left && right) {\n tag.disconnect();\n }\n });\n }", "title": "" }, { "docid": "1115e6cafdc396952e6aee7a14e4ed9d", "score": "0.6003097", "text": "function buttonISR()\r\n{ \r\n backLightOn = !backLightOn; // toggle the backlight\r\n \r\n if (backLightOn)\r\n lcd.setColor(backLightRGB[0], backLightRGB[1], backLightRGB[2]); // turn on the backlight\r\n else\r\n lcd.setColor(0, 0, 0); // turn off the backlight\r\n \r\n}", "title": "" }, { "docid": "60612092a63642fba85c4e54652086ec", "score": "0.5990375", "text": "function givingUpButtonSwitch(OnOrOff) {\n if (OnOrOff == true && givingUpButtonExists == false) { // Generiere den Button falls er nicht existiert\n let givingUpButton = document.createElement(\"BUTTON\");\n givingUpButton.setAttribute(\"id\", \"givingUpButton\");\n givingUpButton.innerHTML = \"Aufgeben?\";\n document.getElementById(\"buttonsDiv\").appendChild(givingUpButton);\n givingUpButton.addEventListener(\"click\", killPlayer); // Gib <button> einen Event-Listener der eine Funktion ausführt die den Spieler tötet\n console.log(\"Selbstmord-Button erstellt\");\n givingUpButtonExists = true;\n }\n if (OnOrOff == false && givingUpButtonExists == true) { // Lösche den Button falls er existiert\n givingUpButtonExists = false;\n document.getElementById(\"buttonsDiv\").removeChild(document.getElementById(\"givingUpButton\"));\n }\n}", "title": "" }, { "docid": "308591404274a380411cbf5b183ef61f", "score": "0.59891117", "text": "toggleSwitch(){\n if(this.on===false){this.on=true}else{this.on=false}\n}", "title": "" }, { "docid": "319f77debe50f0d0f78eaad9ce5ac4d9", "score": "0.59858173", "text": "function wifiONOFF() {\n\n\tif ( ! document.getElementById(\"checkWifi\").checked ) {\n\t\t\n\t\tif (verbose) {\n\t\t\tconsole.log('[LIBSYSTEM]\\t switchWifi OFF');\n\t\t}\n\t\tsockSys.emit('WIFI', 'OFF');\n\t\n\t} else {\n\t\t\n\t\tif (verbose) {\n\t\t\tconsole.log('[LIBSYSTEM]\\t switchWifi ON');\n\t\t}\n\t\tsockSys.emit('WIFI', 'ON');\n\t\n\t}\n\n}", "title": "" }, { "docid": "cb867a6d94b3bb45820b311d7690a521", "score": "0.5976116", "text": "function _ToggleButton_out()\n{\n // Change the image, and remember that we're not highlighted.\n if ( !this.isOff )\n {\n this.image.src = this.limages[0].src;\n this.isHighlighted = false;\n }\n} // end function _ToggleButton_out()", "title": "" }, { "docid": "2639b8f2030050e74c2c060e9c1f6a33", "score": "0.59698725", "text": "function end(){\n\t\t$(\"#btnHit\").toggle();\n\t\t$(\"#btnStick\").toggle();\n\t\t$(\"#btnRestart\").toggle();\n\t}", "title": "" }, { "docid": "650780a7e57cdfe2a7b26582a66159de", "score": "0.59693635", "text": "function crtOnOrOff() {\n\n antsWar();\n\n // When pressed on\n if (onOff.checkStatus() == 1) { \n onOffBtn.style.zIndex = '-10';\n onOffBtn.style.color = \"black\";\n television[0].classList.add('turning-on');\n television[0].style.opacity = '1';\n easterEggBtn.style.top = \"10px\";\n setTimeout(function(){\n onOffBtn.innerHTML = \"Turn Off\";\n onOffBtn.style.zIndex = '0';\n onOffBtn.style.color = 'white';\n television[0].classList.remove('turning-on');\n }, 4000);\n }\n // When pressed off\n else { \n onOffBtn.style.zIndex = '-10';\n onOffBtn.style.color = 'black';\n easterEggBtn.style.top = \"-100px\";\n anime({\n targets: '.screen',\n scaleY: {\n value: -0.005,\n duration: 800,\n easing: 'easeInOutExpo'\n },\n scaleX: {\n value: -0.003,\n duration: 600,\n delay: 800,\n easing: 'easeInExpo'\n },\n borderRadius: {\n value: ['6%', '50%'],\n delay: 500\n },\n opacity: {\n value: [1, 0],\n duration: 3000,\n easing: 'linear'\n },\n complete: () => {\n onOffBtn.innerHTML = \"Turn on\";\n television[0].style.cssText = \"\";\n onOffBtn.style.zIndex = '0';\n onOffBtn.style.color = 'white';\n television[0].classList.remove('turning-on');\n television[0].style.opacity = '0';\n }\n });\n }\n}", "title": "" }, { "docid": "dc7971889f33a45ede75f5d2c35a9e67", "score": "0.5967407", "text": "function toggleButtons() {\n document.getElementById('disconnectBtn').classList.toggle(\"disabled\");\n document.getElementById('pushBtn').classList.toggle(\"disabled\");\n document.getElementById(\"joinBtn\").classList.toggle(\"disabled\");\n}", "title": "" }, { "docid": "dc7971889f33a45ede75f5d2c35a9e67", "score": "0.5967407", "text": "function toggleButtons() {\n document.getElementById('disconnectBtn').classList.toggle(\"disabled\");\n document.getElementById('pushBtn').classList.toggle(\"disabled\");\n document.getElementById(\"joinBtn\").classList.toggle(\"disabled\");\n}", "title": "" }, { "docid": "7996de0a0277d9a0015fec39558e72ed", "score": "0.59597635", "text": "function reactionButton () {\n setButtonState(1-bu.state); // Zustand des Schaltknopfs ändern\n on = (bu.state == 0); // Flag für Animation\n slow = cbSlow.checked; // Flag für Zeitlupe\n if (on) startAnimation(); // Animation entweder fortsetzen ...\n else stopAnimation(); // ... oder unterbrechen\n if (!on) paint(); // Falls nötig, neu zeichnen\n }", "title": "" }, { "docid": "b2f923691dd8d3e3bfe8519d4bb47ceb", "score": "0.5957148", "text": "toggle() {\n this.clickHandler();\n }", "title": "" }, { "docid": "457756bd7c865ac4142ed1980d891d60", "score": "0.59514827", "text": "function buttonToggle(e) {\n if (profile == null) {\n // User is not logged in.\n showToast(\"You must log in first.\");\n return;\n }\n\tvar button = $(\"#MainButton\");\n\tvar left = $(\".SideButton.left\");\n\tvar right = $(\".SideButton.right\");\n\tvar timer_display = $(\"#timer\");\n\tif (recorder == null) {\n\t\ttimer_display.style.display = 'block';\n\t\ttimer = new timer();\n\t\tnewRecorder().then(function(record) {\n\t\trecorder = record;\n\t\ttimer.start();\n\t\trecorder.start(HOUR);\n\t\tonStart(button, right);\n\t\t});\n\t} else {\n\t\tswitch (button.innerHTML) {\n\t\t\tcase \"RECORD\":\n\t\t\t\ttimer_display.style.display = 'block';\n\t\t\t\ttimer.start();\n\t\t\t\trecorder.start(HOUR);\n\t\t\t\tonStart(button, right);\n\t\t\t\tbreak;\n\t\t\tcase \"STOP\":\n\t\t\t\ttimer.stop()\n\t\t\t\trecorder.stop();\n\t\t\t\tonStop(button, left, right);\n\t\t\t\tbreak;\n\t\t\tcase \"RESUME\":\n\t\t\t\ttimer.start()\n\t\t\t\trecorder.resume();\n\t\t\t\tonResume(button, left, right);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "872336b6699ff6e44f9cf1eedfa24015", "score": "0.5942952", "text": "function turnOff() {\n if (isOn()) {\n $rootScope.$broadcast('Compass.off');\n compassWatch.clearWatch();\n }\n }", "title": "" }, { "docid": "03cf6bcf013ce08dc00eb15a632e88f8", "score": "0.591676", "text": "function onButtonUp() {}", "title": "" }, { "docid": "03cf6bcf013ce08dc00eb15a632e88f8", "score": "0.591676", "text": "function onButtonUp() {}", "title": "" }, { "docid": "a70f757b658c207fe3b3341a60c2ab4d", "score": "0.5909852", "text": "function updateFlashButtonState () {\n\n flashButtonDownloaded.disabled = (!inFlashableState || !firmwareInterface.isSelectionDownloaded() || comms.isCommunicating());\n flashButtonLocal.disabled = (!inFlashableState || firmwareInterface.getLocalFirmwarePath() === '' || comms.isCommunicating());\n\n}", "title": "" }, { "docid": "db0e9c2fabda68076c0feaf2d577a010", "score": "0.5909001", "text": "function initEnableToggleButton() {\n \n }", "title": "" }, { "docid": "679db8d0e3e90cf7708fb02919d5e587", "score": "0.5906871", "text": "function buttonOn(button) {\n\tvar ID = button.id;\n\tbuttonStates[ID] = 1;\n\tbutton.style.backgroundColor = \"#EBFFEB\";\n}", "title": "" }, { "docid": "f23361aac1789f5a865a3346bc0509d6", "score": "0.58978754", "text": "function Toggle(button)\n {\n Pause = !Pause;\n if (Pause)\n {\n // Now stopped\n button.value = \"Start (Paused)\";\n }\n else\n {\n\n // Did we last stop at a round stop? Is so, must reset round count first.\n if (StoppedAtRoundLimit)\n {\n RoundCount = 0;\n StoppedAtRoundLimit = false;\n }\n\n NotStarted = false;\n lasttime = new Date();\n // Starting...\n button.value = \"Pause\";\n Countdown();\n }\n}", "title": "" }, { "docid": "309f106850be0be6821f63861bb430c0", "score": "0.5896719", "text": "function turnOffLights () {\n\t\t_buttons.forEach(function (element, index) {\n\t\t\treleaseColorButtons(index);\n\t\t\telement.selector.clearQueue();\n\t\t});\n\t}", "title": "" }, { "docid": "8ed9325515d24d8db3ead8fb8a104e43", "score": "0.5896487", "text": "function buttonToggle(x, y) {\n if (y === \"on\") {\n for (let i = 0; i < x.length; i++) {\n x[i].disabled = false;\n };\n } else if (y === \"off\") {\n for (let i = 0; i < x.length; i++) {\n x[i].disabled = true\n };\n }\n}", "title": "" }, { "docid": "4a253e50fdebbb684bbd1bac9711c7ca", "score": "0.5882743", "text": "setButtonLED(button, what) {\n var _this = this;\n this.dualButton.getLEDState(function(stateLeft, stateRight) {\n\n if (button == constants.BUTTON_LEFT) {\n _this.dualButton.setLEDState(what, stateRight);\n\n } else if (button == constants.BUTTON_RIGHT) {\n _this.dualButton.setLEDState(stateLeft, what);\n }\n\n });\n }", "title": "" }, { "docid": "9a3d29f26de0e781cd1ffecd9853de57", "score": "0.58808285", "text": "function toggleDetector() {\n // Get detector handle ('this' refers to the button DOM object)\n var detector = this.detector;\n\n // Toggle detector selection\n detector.selected = detector.selected ? false : true;\n\n // Toggle border width\n this.style.borderWidth = detector.selected ? \"4px\" : \"1px\";\n this.style.margin = detector.selected ? \"2px\" : \"5px\";\n\n // Load data if necessary\n if (detector.selected && !detector.loaded) {\n loadDetectorData(this.id);\n }\n\n // Disable holds on hold list\n for (var i = window.holdList.length - 1; i >= 0; i--) {\n if (window.holdList[i].detectorType.id == this.id && window.holdList[i].hold) {\n window.holdList[i].hold = false;\n window.holdList.splice(i, 1);\n }\n }\n\n updateDetectors();\n}", "title": "" }, { "docid": "df9acdbff2d95170685aec7c9886ef0c", "score": "0.5874928", "text": "function startListener() {\n w = setWatch(sigOff, pin, {repeat: true, debounce: 0.35, edge: \"falling\"});\n}", "title": "" }, { "docid": "114755516ce1eed2eed788c380e32168", "score": "0.58731955", "text": "function turnOnAnswerCheck() {\n $('#answercheckbutton').unbind('click');\n $('#answercheckbutton').click(function() {\n checkAnswer();\n });\n }", "title": "" }, { "docid": "cec378edf7e20ad301cf811d2789e402", "score": "0.58714426", "text": "function toggleButtons() {\n if (_dom.genBtn) {\n _dom.genBtn.style.display = _isInputHover || _isInputFocused && !_passHidesGenBtn ? \"block\" : \"none\";\n }\n if (_dom.maskBtn) {\n _dom.maskBtn.style.display = _isInputHover || _isInputFocused && !_passHidesMaskBtn ? \"block\" : \"none\";\n }\n }", "title": "" }, { "docid": "186cc5702304ebe70742748b88e1c31b", "score": "0.58619946", "text": "function toggleState(actuator){\n if(actuator.status.state === true){\n sendcommand(actuator.id, actuator.model.commands.off,'off',actuator.model.type);\n } else {\n sendcommand(actuator.id, actuator.model.commands.on,'on',actuator.model.type);\n }\n }", "title": "" }, { "docid": "ee6be6f25b4719e2d639418b15ef562c", "score": "0.58595675", "text": "function onOpen(evt) {\n \n // Log connection state\n console.log(\"Connected\");\n \n // Enable button\n button.disabled = false;\n \n // Get the current state of the LED\n doSend(\"getLEDState\");\n}", "title": "" }, { "docid": "f326326831ca53fc8d7ccfe96fa7a87f", "score": "0.5851183", "text": "function setOnOff(e, name ,status){\n\t var btn = e.target ? e.target : e.srcElement ;\n\t switch(name)\n\t\t{\n\t\t\tcase \"deepLink\" :\n\t\t\t\t\t\n\t\t\t\t $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n\t\t\t\t if(status=='on'){\n\t\t\t\t\t $('#deepLinkStatus').val(1); \n\t\t\t\t\t $(\"#shopDeepLinkUrl\").prop(\"disabled\",false);\n\n }else{\n $('#deepLinkStatus').val(0); \n $(\"#shopDeepLinkUrl\").val('');\n $(\"#shopDeepLinkUrl\").prop(\"disabled\",true);\n \n $(btn).parents(\"div.mainpage-content-right\")\n .children().removeClass(\"error focus succuss\")\n .children(\"span.help-inline\").remove();\n \n \n }\n \n break;\n \n case \"affiliate\" :\n \n $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n if(status=='on'){\n \n $('#affiliateProgStatus').val(1);\n \n }else{\n \n $('#affiliateProgStatus').val(0);\n }\n \n break; \n \n case \"Delivery\" :\n \n $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n $(btn).addClass(\"active\").siblings().removeClass(\"active\");\n if(status=='always'){\n \t \t $('#freeDelivery').val(2);\n \t \t $('#div-cost').hide();\n\t\t\t\t } else if(status=='starting') {\n\t\t\t\t\t $('#freeDelivery').val(1);\n\t\t\t\t\t $('#div-cost').show();\n\t\t\t\t\t \n\t\t\t\t } else if(status=='none') {\n\t\t\t\t\t $('#freeDelivery').val(0);\n\t\t\t\t\t $('#div-cost').show();\n\t\t\t\t } else if(status=='nonebtn') {\n\t\t\t\t\t $('#freeDelivery').val(3);\n\t\t\t\t\t $('#div-cost').hide();\n\t\t\t\t }\n\t\t\t\t\n\t\t\tbreak;\t\n\t\t\t\n\t\t\tcase 'howtouse' :\n\t\t\t\t $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n\t\t\t\tif(status=='on'){\n\t\t\t \t\n\t\t\t \t$('#howTouseStatus').val(1);\n\t\t\t \t $(\"select[name=shopHowToUsePageId]\")\n\t\t\t \t .removeAttr('disabled');\n\t\t\t \t \n\t\t\t }else{\n\t\t\t \t\n\t\t\t \t$('#howTouseStatus').val(0);\n\t\t\t \t$(\"select[name=shopHowToUsePageId]\")\n\t\t\t \t .attr('disabled', 'disabled' );\n\t\t\t }\n\t\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'reasons' :\n\t\t\t\t$(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n\t\t\t\tif(status=='on'){\n\t\t\t \t$('#buyReasons').show();\n\t\t\t }else{\n\t\t\t \t$('#buyReasons').hide();\n\t\t\t }\n\t\t\t\t\n\t\t\tbreak;\n case 'customText' :\n $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n if (status=='on') {\n $('#customText').show();\n $('#customtextposition').show();\n $('#showcustomtext').val(1);\n } else {\n $('#customText').hide();\n $('#customtextposition').hide();\n $('#showcustomtext').val(0);\n }\n break;\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\tif(status == 'toggle-btn')\n {\n \n if($(btn).hasClass('btn-primary'))\n {\n \n $(btn).removeClass('btn-primary');\n $(\"input[ name=\"+ name +\"]:hidden\").val(0);\n }else{\n \n $(btn).addClass('btn-primary');\n $(\"input[ name=\"+ name +\"]:hidden\").val(1);\n \n } \n \n return true ;\n \n }\n \n $(btn).addClass(\"btn-primary\").siblings().removeClass(\"btn-primary\");\n \n var val = status == 'on' ? 1 : 0 ;\n $(\"input[name=\"+ name + \"]\").val(val) ;\n \n \n }\n }", "title": "" }, { "docid": "717e44e64fe28fac128439f430f481b3", "score": "0.5850225", "text": "function onOff() {\n switch(onOFF) {\n case '0':\n document.getElementById('divNote').style.visibility = 'visible';\n document.getElementById('divPitchL').style.visibility = 'visible';\n document.getElementById('divPitchR').style.visibility = 'visible';\n onOFF = '1';\n captureAudio();\n break;\n case '1':\n document.getElementById('divNote').style.visibility = 'hidden';\n document.getElementById('divPitchL').style.visibility = 'hidden';\n document.getElementById('divPitchR').style.visibility = 'hidden';\n onOFF = '0';\n break;\n }\n}", "title": "" }, { "docid": "f17587d7a21cbacb66367dcf5719be27", "score": "0.58472496", "text": "function updateButton() {\n\n // If the buttons shows stop, but the SOM has finished, update the button\n if (!buttonShowsRun && !isSomRunning()) {\n showRunButtons();\n }\n}", "title": "" }, { "docid": "50f10e48ce1e6558386ce7f572dca086", "score": "0.5845658", "text": "function toggleBtns(bool=true) {\n $('#hit-button').prop('disabled', bool);\n $('#stand-button').prop('disabled', bool);\n}", "title": "" }, { "docid": "973fca4ec8e43738121a9c17ac393ff9", "score": "0.5844134", "text": "function light1(err, state) {\n\n // check the state of the button\n // 1 == pressed, 0 == not pressed\n if(state == 1) {\n // turn LED on\n led1.writeSync(1);\n //print blue to console\n console.log('BLUE'.blue);\n } else {\n // turn LED off\n led1.writeSync(0);\n }\n\n}", "title": "" }, { "docid": "0e21c1a13ef7602374f5c884dcbed1a4", "score": "0.58400846", "text": "function toggleButtons() {\n playerButtons.forEach((button) => {\n if (button.value !== \"reset\") {\n button.disabled = !button.disabled;\n }\n });\n }", "title": "" }, { "docid": "f1db219f0dd87ce64739a2ee8f0a2a35", "score": "0.5839585", "text": "function ledOn1() {\r\n ////this sends a boolean state of false to the led1 json function\r\n sendData('ledOn1');\r\n ledButton1.style('border', '6px solid yellow');\r\n}", "title": "" }, { "docid": "88ed9e17301ad03c3f16e62aba7c46ea", "score": "0.5839381", "text": "function btnStatus(){\n clearInterval(timer)\n clearTimeout(clearTime)\n if (button.innerHTML === 'Start!' || button.innerHTML === 'Continue') {\n button.innerHTML = 'Pause';\n startInterval();\n }\n else if (button.innerHTML === 'Pause') {\n button.innerHTML = 'Continue';\n pauseTime();\n }\n}", "title": "" }, { "docid": "16dc7eef572f746a6e5328fff5d85956", "score": "0.5832048", "text": "toggle() {\n this.secondaryBtnObj.toggle();\n }", "title": "" }, { "docid": "ff24a754ea270bfecffb8a8d5c1b82e9", "score": "0.5830716", "text": "function buttonCheck () {\n alert(\"Button check alert!\");\n console.log(\"Button check alert working here.\")\n}", "title": "" }, { "docid": "64fc8f8ba6e11c054002e06410f71f67", "score": "0.58300024", "text": "function btnClick(e){\n var item = e.section.items[e.itemIndex];\n var itemType = item.btn.type;\n var address = item.btn.address;\n\n Ti.API.debug(\"Button Click!\");\n Ti.API.debug(\"item.btn.address: \" + item.btn.address + \" type: \" + itemType);\n Ti.API.debug(\"item: \" + JSON.stringify(item));\n if(!address){\n return;\n }\n if(itemType == \"light\"){\n device.toggle(address)\n .then(updateStatus());\n }\n}", "title": "" }, { "docid": "3dc06b9b84f3987c36703a24a4765367", "score": "0.58272195", "text": "function switchOn(event, time = 1) {\n const button = event.target;\n\n if (!active.includes(button.id) && button !== null) {\n button.innerHTML = 'ON';\n button.classList.add('on');\n\n active.push(button.id);\n const timeToOff = defaultTimeOut * time;\n \n setTimeout(switchOff, timeToOff, button);\n }\n}", "title": "" }, { "docid": "03d38580d89595a008cca6330dc4223f", "score": "0.58242106", "text": "function HLListener(){\r\n\tif(HLBS == false){HLBS = true;HLFun = true;writeCookieStuff();\r\n\t\tdocument.getElementById(\"mweHL\").setAttribute(\"class\", \"sexy_button_new short green\");\r\n\t\tdocument.getElementById(\"mweHL\").innerHTML = '<span id=\"mweHLOp\"><span>(on)</span></span>';\r\n\t\tif(isiPad){\r\n\t\t HLinterval = setInterval(HLWin, 1250);\r\n\t\t}else{\r\n\t\t HLinterval = setInterval(HLWin, 500);\r\n\t\t}\r\n\t}\r\n\telse if(HLBS == true){HLBS = false;HLFun = false;writeCookieStuff();\r\n\t\tdocument.getElementById(\"mweHL\").setAttribute(\"class\", \"sexy_button_new short red\");\r\n\t\tdocument.getElementById(\"mweHL\").innerHTML = '<span id=\"mweHLOp\"><span>(off)</span></span>';\r\n\t\tclearInterval(HLinterval);\r\n\t}\r\n}", "title": "" }, { "docid": "bb69021a77c03e1e41ee8bbb13340847", "score": "0.5824195", "text": "function changeButtonState(button, isDisable){\n button.prop(\"disabled\", isDisable);\n }", "title": "" }, { "docid": "6b962ca1064984aadcf23510855e0556", "score": "0.5813171", "text": "function toggleBtnOn() {\n \n document.getElementById('toggle-btn-on').classList.toggle('active');\n\n document.getElementById('btn-icon-on').classList.toggle('active');\n \n document.getElementById('btn-text-on').classList.toggle('active');\n \n \n\n\n}", "title": "" }, { "docid": "f53c5074deaca2ceff4ea2293b751b91", "score": "0.58110285", "text": "function checkModeChange() {\n b.digitalRead(LEFT_BUTTON, checkLeftButtonPushed);\n b.digitalRead(RIGHT_BUTTON, checkRightButtonPushed);\n calculateBrightness();\n if (blinkerMode == 'P8_13') {\n b.analogWrite('P9_42', 0.01);\n }\n if (blinkerMode == 'P9_42') {\n b.analogWrite('P8_13', 0.01);\n }\n b.analogWrite(blinkerMode, brightness);\n\n}", "title": "" }, { "docid": "5925ba89b939d9de180e95ab7094a14f", "score": "0.57926136", "text": "function button1(buttondown)\r\n{\r\n\tif (buttondown)\r\n\t{\r\n\t\tZMax_Toast(\"Button 1 pressed\", \"#0099ff\"); \r\n\t}\r\n}", "title": "" }, { "docid": "deb38aa1cca4b0559ec351cee157c332", "score": "0.5791429", "text": "function buttonState(value) {\n if (value == 1) {\n $('#alarmButton').html('Deaktiver').css(\"background-color\", \"red\").click(function () {\n deActivateAlarmModal();\n });\n } else {\n $('#alarmButton').html('Aktiver').css(\"background-color\", \"green\").click(function () {\n activateAlarmModal();\n });\n }\n}", "title": "" }, { "docid": "b4116687ea5e595cc934a12349cfda1e", "score": "0.5785516", "text": "function micButton() {\n if(window.Rec_Btn_State == false){\n startRecording();\n //Change of Styles , Toggle button appearance from stop to start and vice versa\n window.Rec_Btn_State = true;\n document.getElementById('btn_img').innerHTML=\"<i class='fa fa-stop-circle-o fa-4x' aria-hidden='true'></i>\";\n document.getElementById('mic').style.backgroundColor = \"#e56767\";\n }\n else {\n //Change of Styles\n stopRecording();\n }\n}", "title": "" }, { "docid": "adcb8ba3daeb2b354c2c0bef46a1c330", "score": "0.5777325", "text": "function inicia() {\n estricto = false;\n \t\n // Cambiamos texto de boton en funcion si esta on/off\n if ($(\"#onoff\").hasClass(\"on\")) {\n \n\t // mueve el boton a off\n $(\"#onoff\").removeClass(\"on\").addClass(\"off\");\n\t // Cambia la clase cuenta para desactivarla\n\t $(\"#movimiento\").removeClass(\"cuentaon\").addClass(\"cuentaoff\");\n \n // Deshabilitamos el boton\n $(\"#start\").off(\"click\");\n\t $(\"#strict\").off(\"click\").css(\"background-color\", \"yellow\");\n\t \n\n }else {\n\t // mueve el boton a on\n $(\"#onoff\").removeClass(\"off\").addClass(\"on\");\n\t // Cambia clase cuenta para activar\n\t $(\"#movimiento\").removeClass(\"cuentaoff\").addClass(\"cuentaon\");\n /*if ($(\"#start\").text(\"Stop\")) {\n $(\"#start\").click();\n }*/\n // Habilitamos el boton\n $(\"#start\").on(\"click\", play);\n\t \t$(\"#strict\").on(\"click\", function() {\n\t\testricto = !estricto;\n\t\tvar color;\n\t\tif (estricto) {\n\t\t\tcolor = \"blue\";\n\t\t}else {\n\t\t\tcolor = \"yellow\";\n\t\t}\n\t\t$(this).css(\"background-color\", color);\n\t});\n }\n \n /*$(\"#onoff\").html(contenido);*/\n $(\"#movimiento\").html(\"--\");\n}", "title": "" }, { "docid": "1f58e40ec8947e59eef16869a28ba511", "score": "0.57724994", "text": "function toggleOsc() {\n if (oscOn) {\n osc.stop();\n button.html('start');\n } else {\n osc.start();\n button.html('stop');\n }\n oscOn = !oscOn;\n}", "title": "" }, { "docid": "aa096da523e3d4b32facbf662e99814d", "score": "0.5770729", "text": "toggleAlert() {\n const { alerting } = this.state;\n setVibrate(!alerting);\n this.setState({ alerting: !alerting });\n }", "title": "" }, { "docid": "f682a48b5d93c1feac66c7e3acd5e17d", "score": "0.576919", "text": "async displayOn () {\n await this.sendCommand([Constants.DISPLAY_ON_OFF | 0x01]);\n }", "title": "" }, { "docid": "d435da3386fdfb22c5795aeb035b0a3e", "score": "0.57689744", "text": "function onVoiceControlPopupOkBtnClick() {\r\n voiceControlToggleSwitch.click();\r\n }", "title": "" } ]
e88274ec81809557f93b1272cfb36a7c
creating function with one parameter
[ { "docid": "30fe4cead67e47fe9dae61622201a5e5", "score": "0.0", "text": "function welcomeMessage(name) {\n document.write(\"welcome \" + name + \"<br/>\");\n}", "title": "" } ]
[ { "docid": "88196d2da12c1dee21f6fd4a99ea7e9c", "score": "0.67855716", "text": "function Fn (){}", "title": "" }, { "docid": "e9194820a612bf7c6901634a3b4b3a90", "score": "0.6622638", "text": "function parameterAsFun(func){\nfunc();\n}", "title": "" }, { "docid": "a31d7ef95e4d6f6f75b23af958f6c2f6", "score": "0.6433266", "text": "function soma(a){ //cri-se uma função com 1(um) parâmetro\n return function(b){ // essa função retorna uma nova função com um 2º parametro (b)\n return a + b ; // então esse será o comportamento dos parametros recebidos\n }\n}", "title": "" }, { "docid": "267efac1bed1d95946b7baed4b7bb0c0", "score": "0.63846207", "text": "function declarada(params) {\n return 'Hola';\n}", "title": "" }, { "docid": "0ec2c37c6c1d6942c1adc4dce61c2beb", "score": "0.63735366", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "e2d2e9715a43d22a178e32ee180f0617", "score": "0.63408405", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }", "title": "" }, { "docid": "d8ab1afebfd9a605273d4f369a9f3fa5", "score": "0.63302433", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "3ef9196fe64780ee557b903cacb42147", "score": "0.63077116", "text": "newFunction (idx, alias, equality) {\n console.log(`creating new function object with index ${idx}`);\n return new FieldTransform('Function',\n idx === undefined ? false : true,\n idx === undefined ? undefined : idx,\n '', '', '', '', '', '', [new FieldTransform().newField(0)],\n alias === undefined ? null : alias,\n [],\n equality == undefined ? null: equality\n )\n }", "title": "" }, { "docid": "07baaa7b10a2faddf5ad2c1b651b13e9", "score": "0.6275452", "text": "function miFuncion(){}", "title": "" }, { "docid": "021445c3734e5898aaf3d4192aacd51a", "score": "0.625778", "text": "function f_arg() {\n}", "title": "" }, { "docid": "655887b8f38f4914b35320fbf97f7f79", "score": "0.6255502", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }", "title": "" }, { "docid": "655887b8f38f4914b35320fbf97f7f79", "score": "0.6255502", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }", "title": "" }, { "docid": "c5435bd1eba76bfd4230bd3ea0a9c8f6", "score": "0.62463045", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "c5435bd1eba76bfd4230bd3ea0a9c8f6", "score": "0.62463045", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "a08bb4889cadfe712a28a7fe70a6b47e", "score": "0.62453455", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "9b98bbdcc4e412b9889ac5665cb91524", "score": "0.6241045", "text": "function makeEmptyFunction(arg) {\n\t\t\t\treturn function () {\n\t\t\t\t\treturn arg;\n\t\t\t\t};\n\t\t\t}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "a8945a2f0985392ceb87c88f75f764b4", "score": "0.6215181", "text": "function makeEmptyFunction(arg){return function(){return arg;};}", "title": "" }, { "docid": "98412d9d05f9d4583d796116d577e76b", "score": "0.61882985", "text": "function f(a){}", "title": "" }, { "docid": "181cc0a9e654128b389c71e6bbda8478", "score": "0.61857074", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}", "title": "" }, { "docid": "181cc0a9e654128b389c71e6bbda8478", "score": "0.61857074", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}", "title": "" }, { "docid": "f6a6c57059c9602f19e60353de47537d", "score": "0.61498815", "text": "function makeEmptyFunction(arg) {\n\t\t return function () {\n\t\t return arg;\n\t\t };\n\t\t}", "title": "" }, { "docid": "8b6ccf0250bec216df5525a4a7e12d36", "score": "0.61477596", "text": "function factoryFunc(no){\n let multiplier = 100;\n return{\n product(){\n return no*multiplier;\n }\n }\n}", "title": "" }, { "docid": "d2ac4d1690e22017030560986305ba9d", "score": "0.61321014", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }", "title": "" }, { "docid": "d2ac4d1690e22017030560986305ba9d", "score": "0.61321014", "text": "function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }", "title": "" }, { "docid": "74dae6f18abd65485480df7bad0125be", "score": "0.6127627", "text": "function createFunction() {\n function multiplyByTwo(num) {\n return num * 2;\n }\n\n return multiplyByTwo;\n}", "title": "" }, { "docid": "a388b9e1e2c3799ace77a7c40f8fb7d6", "score": "0.6121854", "text": "function makeEmptyFunction(arg) {\n return function() {\n return arg;\n };\n }", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "ad3452c35b008d8c578f84e0d3bbf1e4", "score": "0.6111587", "text": "function makeEmptyFunction(arg) {\n\t return function() {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" }, { "docid": "cb7e8adb5157b0577b9591cbb6660a05", "score": "0.61102706", "text": "function makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}", "title": "" } ]
45eae2d51a7c6af3b9c5116431bc72bb
Check for Approved Change Approval Request
[ { "docid": "75fd6a6f913e5748af05156236633df2", "score": "0.67412174", "text": "function getApprovedChangeRequest(employeeId, changeType) {\r\n log.debug('employeeId', employeeId);\r\n log.debug('changeType', changeType);\r\n // Look for Approved and \r\n var mySearch = search.create({\r\n type: 'customrecord_change_approval_request',\r\n columns: ['custrecord_cr_change_type', 'custrecord_cr_approval_status', 'custrecord_cr_completion_status'],\r\n filters: [\r\n ['custrecord_cr_affected_employee', 'is', employeeId] // Affected Employee\r\n ,'and', \r\n ['custrecord_cr_change_type', 'is', changeType] // Matching Change Type\r\n ,'and', \r\n ['custrecord_cr_approval_status', 'is', 3] // Approved\r\n ,'and', \r\n ['custrecord_cr_completion_status', 'is', 1] // Open\r\n ]\r\n });\r\n \r\n var approvalResult = mySearch.run().getRange({\r\n start: 0,\r\n end: 1\r\n });\r\n\r\n log.debug('approvalResult', JSON.stringify(approvalResult));\r\n\r\n // Check for Policy Approver Types\r\n if(approvalResult.length > 0 && approvalResult[0]) {\r\n return approvalResult[0];\r\n }\r\n \r\n return null;\r\n }", "title": "" } ]
[ { "docid": "a7caf6600fa6f4b2066ac21bacdef98d", "score": "0.61689246", "text": "async approvedStatus(reqIDPut) {\n if (process.env.DEBUG === 'true') {\n console.log(`### put request id: ${reqIDPut}`);\n }\n await I.sendPutRequest(\n `${requestorProps.endpoint.requestEndPoint}/${reqIDPut}`,\n { status: 'APPROVED' },\n users.mainAcct.accessTokenHeader,\n );\n }", "title": "" }, { "docid": "ba3466db82b313864bc790537155e90f", "score": "0.6025253", "text": "requestChange() {\n this.wizard.cast(this, 'change requested')\n this.change.dispense(120)\n }", "title": "" }, { "docid": "cb1656ff5e22294e51def800cca43e6b", "score": "0.5847632", "text": "function ApproveMarketplace() {\n AssetInstance.methods.setApprovalForAll( MarketConractAddress, true)\n }", "title": "" }, { "docid": "2b342c8939afe874087669cdb3f8136b", "score": "0.5845888", "text": "async function doStatusChangeIfItIsAStatusChange(change) {\n const groupStatusBefore = change.before.get(\"groupStatus\");\n const groupStatusAfter = change.after.get(\"groupStatus\");\n\n if(groupStatusBefore === model.ReportStatusEnum.APPROVED && (groupStatusAfter === model.ReportStatusEnum.CORRECT || groupStatusAfter === model.ReportStatusEnum.REJECTED)) {\n console.log(`Recognized group status change.`);\n await doStatusChange(change.after);\n } else {\n console.log('Not a group status change.');\n }\n}", "title": "" }, { "docid": "18e4200a25e866a92a97c64b1a8330f8", "score": "0.5769763", "text": "toggleApproval(currency, current_approval) {\n let new_approval = !current_approval\n if(new_approval) {\n this.approveCurrency(currency)\n } else {\n this.unapproveCurrency(currency)\n }\n }", "title": "" }, { "docid": "ae3b91e5dcd62694142d5f16d0d5229e", "score": "0.5758489", "text": "@action\n statusChangeAction(field, value) {\n if (value == 'approved') {\n this.editEntry.set('create_entry', 1);\n }\n }", "title": "" }, { "docid": "f73b5b6a602617196b5145364c797edf", "score": "0.5653982", "text": "get isApproved() {\n return this._state === 'approved';\n }", "title": "" }, { "docid": "aabc90db13e40c99359896c01df03fc1", "score": "0.5627278", "text": "_approveLoan(val){\n return true;\n }", "title": "" }, { "docid": "a800b272019d2494c7d5f53afccf32a3", "score": "0.5610274", "text": "function acceptChanges() {\r\n $.ajax({\r\n url: Constants.PageUrl,\r\n data: {method:\"acceptPoChanges\", changeId: getQueryStringParam(\"changeId\")},\r\n type: \"POST\"\r\n }).done(function(response) {\r\n if(typeof response == \"string\")\r\n response = JSON.parse(response);\r\n\r\n if(!!response && response.status == \"OK\") {\r\n //Successfully accepted, Notify user that the changes are successfully accepted\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.AcceptChanges, Constants.QueryStringParam.Value.Success);\r\n }\r\n else {\r\n //Some error occurred while accepting changes\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.AcceptChanges, Constants.QueryStringParam.Value.Failure);\r\n }\r\n })\r\n .fail(function(e) {\r\n //Some error occurred while accepting changes\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.AcceptChanges, Constants.QueryStringParam.Value.Failure);\r\n });\r\n }", "title": "" }, { "docid": "de791adbda83dd009ebed4661450bad1", "score": "0.56098026", "text": "auditRequest(request) {\n //console.log(request.sourceAmount + \" vs \" + request.destinationAmount);\n // return request.sourceAmount === request.destinationAmount;\n return true;\n }", "title": "" }, { "docid": "6ddd41574a6291c9dd68c3a3d849aa64", "score": "0.5605092", "text": "function workflowAction_confirmVendorBillApproval()\n{\t\n\tvar stLoggerTitle = 'workflowAction_confirmVendorBillApproval';\n\t\t\n\tnlapiLogExecution('DEBUG', stLoggerTitle, '>>Entry<<');\n \n try\n { \t\n \tvar stVB = nlapiGetRecordId()\n \tnlapiLogExecution('DEBUG', stLoggerTitle, 'Vendor Bill = ' + stVB);\n \t\n \tvar arrParams = new Array();\n\t\tarrParams['custpage_vb']=stVB;\n \t\n \tnlapiSetRedirectURL('SUITELET','customscript_confirm_vb_approval_suitele','customdeploy_confirm_vb_approval_suitele', null, arrParams);\n \n nlapiLogExecution('DEBUG', stLoggerTitle, '>>Exit<<'); \n return true;\n } \n catch (error)\n {\n \tif (error.getDetails != undefined)\n {\n nlapiLogExecution('ERROR','Process Error', error.getCode() + ': ' + error.getDetails());\n throw error;\n }\n else\n {\n nlapiLogExecution('ERROR','Unexpected Error', error.toString()); \n throw nlapiCreateError('99999', error.toString());\n } \t \n return false;\n } \n}", "title": "" }, { "docid": "eeb47b72adc4e536961ec3eb4b0f4e07", "score": "0.55902606", "text": "function approve(){\r\n API.post(`admin/approve-account-request`,{token:token, username: state.acctSelected}).then(res => {\r\n setResponse(res.data[\"message\"])\r\n }).catch(err =>{\r\n alert(err);\r\n })\r\n }", "title": "" }, { "docid": "fd117fe75e4bcda963fe712bcf77f80e", "score": "0.5583035", "text": "async function handleToggle() {\n\t\ttry {\n\t\t\tconst response = await fetch(\n\t\t\t\t`${config.API_ENDPOINT}/signups/approval/${id}`,\n\t\t\t\t{\n\t\t\t\t\tmethod: 'PATCH',\n\t\t\t\t\theaders: {\n\t\t\t\t\t\t'content-type': 'application/json',\n\t\t\t\t\t\tauthorization: `Bearer ${TokenService.getAuthToken()}`,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t)\n\t\t\tif (!response.ok) throw await response.json()\n\t\t\tsetIsApproved((prev) => !prev)\n\t\t} catch (error) {\n\t\t\tsetError(error.message)\n\t\t}\n\t}", "title": "" }, { "docid": "42c34f8a95804e35fd62344ffafdc2e8", "score": "0.5579508", "text": "function stateSetApprover() {\n var FlowState = w2ui.propertyForm.record.FlowState;\n var si = getCurrentStateInfo();\n var uid = 0;\n\n if (si == null) {\n console.log('Could not determine the current stateInfo object');\n return;\n }\n if (typeof w2ui.stateChangeForm.record.ApproverName == \"object\" && w2ui.stateChangeForm.record.ApproverName != null) {\n if (w2ui.stateChangeForm.record.ApproverName.length > 0) {\n uid = w2ui.stateChangeForm.record.ApproverName[0].UID;\n }\n }\n if (uid == 0) {\n w2ui.stateChangeForm.error('ERROR: You must select a valid user');\n return;\n }\n si.ApproverUID = uid;\n si.Reason = \"\";\n var x = document.getElementById(\"smApproverReason\");\n if (x != null) {\n si.Reason = x.value;\n }\n if (si.Reason.length < 2) {\n w2ui.stateChangeForm.error('ERROR: You must supply a reason');\n return;\n }\n finishStateChange(si,\"setapprover\");\n}", "title": "" }, { "docid": "200010901afceb6994cf2cecfe6e7911", "score": "0.55754685", "text": "RefuseThisChangeRequest(id, token) {\n let url = `/me/task/contactChange/${id}/refuse`;\n return this.client.request('POST', url, { token });\n }", "title": "" }, { "docid": "2db3b98a41d12df7e498ee0ce1b0ee1e", "score": "0.5566786", "text": "function ValidateChangeToOrderStatus(sNewStatus, sOldStatus) {\n \n var sUserType = $(\"UserType\").value;\n \n if (sUserType == \"admin\")\n {\n //Admin users can change status to anything.\n return true;\n }\n if (sUserType == \"purchaser\")\n {\n if (sNewStatus != \"Authorized\" && sNewStatus != \"Hold\" && sNewStatus != \"Cancelled\") \n {\n var sMsg = \"You do not have permission to change the status of an \\n\";\n sMsg += \"order to \" + sNewStatus + \". The following status changes are \\n\";\n sMsg += \"allowed by a Purchasing Officer: Hold, Cancelled \\n\"; \n alert(sMsg);\n return false;\n }\n }\n else\n {\n var sMsg = \"You do not have permission to change the status \\n\";\n sMsg += \"of an order.\";\n alert(sMsg);\n return false;\n }\n \n return true;\n\n}", "title": "" }, { "docid": "49601af39435f469933fadcc8dc5d1b7", "score": "0.55610627", "text": "function approveRequest(req, res) {\n var id = sanitizer.value(req.params.id, 'int');\n\n var sql = `\n UPDATE pto_request\n SET status = 'Approved',\n is_pending = false\n WHERE id = ${id}\n RETURNING id\n `;\n\n console.log(\"Now executing SQL: \" + sql);\n db.queryDB(sql, (err, result) => {\n if (err || result == null) {\n console.log(\"Error approving request!\");\n\t\t\tres.status(500).json({success: false, data: err});\n\t\t} else {\n console.log(\"Successfully approved PTO request\");\n res.json(result);\n\t\t}\n });\n}", "title": "" }, { "docid": "3374b9f6b7180db4cc44cf69ab4fb070", "score": "0.5490924", "text": "function confirmed(request, response, form, stVB)\n{\n\tvar stLoggerTitle = 'suitelet_confirmVendorBillApproval';\t\n\tnlapiLogExecution('DEBUG', stLoggerTitle, 'VB = ' + stVB);\n\t\n\tnlapiSubmitField('vendorbill', stVB, 'approvalstatus', '2');\n\tnlapiLogExecution('DEBUG', stLoggerTitle, 'Successfully set status to Approved.');\n\t\n\tnlapiSetRedirectURL('RECORD', 'vendorbill', stVB);\n}", "title": "" }, { "docid": "c92996a755e7fdd31708bae2ef91ed44", "score": "0.5480934", "text": "function GuarantorApprove (req, res){\n\n LoansModel.findByIdAndUpdate( req.params.id,{guarantorApproved:true}, (error, loan) => {\n \n if (error) return res.json({'status': false, 'message': 'An Error Occured', payload: null}); \n loan.guarantorApproved = true;\n res.json({'status': true, 'message': 'Guarantor Approved', payload: loan});\n \n });\n\n}", "title": "" }, { "docid": "f906a8d6c8d76d8a19235e73fa32fd8e", "score": "0.5479318", "text": "function approveCommit(event) {\n event.stopPropagation();\n}", "title": "" }, { "docid": "55149c42b5bdb8b50fb46ca4d5e45cd6", "score": "0.5438615", "text": "function stateApproved() {\n var FlowState = w2ui.propertyForm.record.FlowState;\n var si = getCurrentStateInfo();\n if (si == null) {\n console.log('Could not determine the current stateInfo object');\n return;\n }\n finishStateChange(si,\"approve\");\n}", "title": "" }, { "docid": "3479cfba8f344ba8f7eb8491617583e6", "score": "0.5435068", "text": "function ProcessChange(i,action)\n{\n\tif (UPDATING)\n\t\treturn;\n\n\tvar obj = self.chgdetail.document.chgform\n\tvar thisCtry = Accounts.Hash[Employee.work_country]\n\tvar Accts = thisCtry.OpenAccounts\n\tFormValues = new Object()\n\n\t/* account number now is read-only\n\tif (Employee.work_country != \"UK\" && obj.ebnk_acct_nbr)\n\t{\n\t\tif (CheckElement(\"!NonSpace(obj.ebnk_acct_nbr.value)\",\n\t\t\tgetSeaPhrase(\"DD_143\",\"DD\"),obj,obj.ebnk_acct_nbr,true,parent))\n\t\t\t\treturn\n\n\t\tif (CheckElement(\"isNaN(parseFloat(obj.ebnk_acct_nbr.value))\",\n\t\t\tgetSeaPhrase(\"DD_144\",\"DD\"),obj,obj.ebnk_acct_nbr,true,parent))\n\t\t\treturn\n\t}\n\t*/\n\n\tif (obj.account_type_xlt)\n\t{\n\t\tif (Employee.work_country == \"UK\")\n\t\t{\n\t\t\tif(CheckElement(\"!obj.account_type_xlt[0].checked && !obj.account_type_xlt[1].checked\",\n\t\t\t\tgetSeaPhrase(\"DD_145\",\"DD\"),obj,obj.account_type_xlt[0],false,parent))\n\t\t\t\t\treturn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(CheckElement(\"!obj.account_type_xlt[0].checked && !obj.account_type_xlt[1].checked\",\n\t\t\t\tgetSeaPhrase(\"DD_146\",\"DD\"),obj,obj.account_type_xlt[0],false,parent))\n\t\t\t\t\treturn\n\t\t}\n\t}\t\n\n\tif (obj.check_desc)\n\t{\n\t\tif(CheckElement(\"!NonSpace(obj.check_desc.value)\",\n\t\t\tgetSeaPhrase(\"DD_147\",\"DD\"),obj,obj.check_desc,true,parent))\n\t\t\t\treturn\n\t}\n\n\tif (action != \"ChangeDefault\" && ((!Accts.length && Rules.partial_ach == \"N\") ||\n\t\t(!thisCtry.openCount && Rules.partial_ach == \"N\") || (Accts[i].default_flag == \"Y\")))\n\t{\n\t\tFormValues.net_percent = 100\n\t\tFormValues.deposit_amt = 0\n\t\tFormValues.amt_type = \"P\"\n\t}\n\telse\n\t{\n\t\tif (obj.deposit_amt)\n\t\t{\n\t\t\tif (CheckElement(\"!NonSpace(obj.deposit_amt.value) && !NonSpace(obj.net_percent.value)\",\n\t\t\t\tgetSeaPhrase(\"DD_148\",\"DD\"),obj,obj.deposit_amt,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (CheckElement(\"NonSpace(obj.deposit_amt.value) && NonSpace(obj.net_percent.value)\",\n\t\t\t\tgetSeaPhrase(\"DD_193\",\"DD\"),obj,obj.deposit_amt,false,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (CheckElement(\"!NonSpace(obj.deposit_amt.value) && !ValidNumber(obj.net_percent,7,3)\",\n\t\t\t\tgetSeaPhrase(\"DD_150\",\"DD\"),obj,obj.net_percent,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (CheckElement(\"!NonSpace(obj.deposit_amt.value) && obj.net_percent.value>100\",\n\t\t\t\tgetSeaPhrase(\"DD_151\",\"DD\"),obj,obj.net_percent,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (CheckElement(\"!NonSpace(obj.deposit_amt.value) && obj.net_percent.value==0\",\n\t\t\t\tgetSeaPhrase(\"DD_152\",\"DD\"),obj,obj.net_percent,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tvar PercentLeft = 100 - parseFloat(thisCtry.totalPercent) + parseFloat(thisCtry.addBackPercent);\n\t\t\tif (parseInt(PercentLeft,10) != parseFloat(PercentLeft)) PercentLeft = TruncateNbr(PercentLeft,3)\n\n\t\t\tif (CheckElement(\"!NonSpace(obj.deposit_amt.value) && ((parseFloat(obj.net_percent.value)+parseFloat(Accounts.Hash[Employee.work_country].totalPercent)-parseFloat(Accounts.Hash[Employee.work_country].addBackPercent))>100)\",\n\t\t\t\tgetSeaPhrase(\"DD_466\",\"DD\")+\" \"+PercentLeft+ per +\" \"+getSeaPhrase(\"DD_155\",\"DD\"),obj,obj.net_percent,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (CheckElement(\"!NonSpace(obj.net_percent.value) && !ValidNumber(obj.deposit_amt,12,2) && obj.deposit_amt.value==0\",\n\t\t\t\tgetSeaPhrase(\"DD_156\",\"DD\"),obj,obj.deposit_amt,true,parent))\n\t\t\t\t\treturn\n\n\t\t\tif (NonSpace(obj.deposit_amt.value))\n\t\t\t{\n\t\t\t\tFormValues.amt_type = \"A\"\n\t\t\t\tFormValues.net_percent = 0\n\t\t\t\tFormValues.deposit_amt = obj.deposit_amt.value\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tFormValues.amt_type = \"P\"\n\t\t\t\tFormValues.net_percent = obj.net_percent.value\n\t\t\t\tFormValues.deposit_amt = 0\n\t\t\t}\n\n\t\t\t// PT 121559\n\t\t\tif (Rules.partial_ach==\"Y\" && currentlyNoDefault) {\n\t\t\t\tif (FormValues.amt_type==\"P\" && parseFloat(FormValues.net_percent)==100.0 && \n\t\t\t (Accts[i].net_percent==0 || parseFloat(Accts[i].net_percent)!=100.0))\n\t\t\t\t\tautoDepositFlag = \"Y\";\n\t\t\t\telse if (Accts[i].net_percent!=0 && parseFloat(Accts[i].net_percent)==100.0 &&\n\t\t\t\t(FormValues.amt_type!=\"P\" || parseFloat(FormValues.net_percent)!=100.0))\n\t\t\t\t\tautoDepositFlag = \"P\";\n\t\t\t\telse\n\t\t\t\t\tautoDepositFlag = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t/* account number now is read-only\n\tif (obj.ebnk_acct_nbr)\n\t\tFormValues.ebnk_acct_nbr = obj.ebnk_acct_nbr.value\n\telse */\n\tFormValues.ebnk_acct_nbr = Accts[i].ebnk_acct_nbr\n\n\tif (Employee.work_country == \"UK\")\n\t{\n\t\tif (obj.account_type_xlt)\n\t\t\tFormValues.account_type_xlt = (obj.account_type_xlt[0].checked)?\"Current\":\"Savings\"\n\t\telse\n\t\t\tFormValues.account_type_xlt = Accts[i].account_type_xlt\n\t\tFormValues.ebank_id = Accts[i].ebank_id\n\t\tif (obj.check_desc)\n\t\t\tFormValues.check_desc = obj.check_desc.value\n\t\telse\n\t\t\tFormValues.check_desc = Accts[i].check_desc\n\t\tif (obj.bank_roll_no)\n\t\t\tFormValues.bank_roll_no = obj.bank_roll_no.value\n\t\telse\n\t\t\tFormValues.bank_roll_no = Accts[i].bank_roll_no\n\t\tif (obj.payable_to)\n\t\t\tFormValues.payable_to = obj.payable_to.value\n\t\telse\n\t\t\tFormValues.payable_to = Accts[i].payable_to\t\n\t}\n\telse if (Employee.work_country == \"CA\")\n\t{\n\t\tif (obj.ca_inst_nbr)\n\t\t\tFormValues.ca_inst_nbr = obj.ca_inst_nbr.value\n\t\telse\n\t\t\tFormValues.ca_inst_nbr = Accts[i].ca_inst_nbr\n\t\tif (obj.ca_transit_nbr)\n\t\t\tFormValues.ca_transit_nbr = obj.ca_transit_nbr.value\n\t\telse\n\t\t\tFormValues.ca_transit_nbr = Accts[i].ca_transit_nbr\n\t\tif (obj.check_desc)\n\t\t\tFormValues.check_desc = obj.check_desc.value\n\t\telse\n\t\t\tFormValues.check_desc = Accts[i].check_desc\n\t}\n\telse\n\t{\n\t\tif (obj.account_type_xlt)\n\t\t\tFormValues.account_type_xlt = (obj.account_type_xlt[0].checked)?\"Checking\":\"Savings\"\n\t\telse\n\t\t\tFormValues.account_type_xlt = Accts[i].account_type_xlt\n\t\tFormValues.ebank_id = Accts[i].ebank_id\n\t\tif (obj.check_desc)\n\t\t\tFormValues.check_desc = obj.check_desc.value\n\t\telse\n\t\t\tFormValues.check_desc = Accts[i].check_desc\t\t\n\t}\n\n\tif (obj.waive_receipt)\n\t{\n\t\t// waive paper check?\n\t\tif (obj.waive_receipt[0].checked) // if waiving, print receipt should be \"No\"\n\t\t\tFormValues.print_rcpt = \"1\"\n\t\telse // if not waiving, print receipt should be \"Yes\"\n\t\t\tFormValues.print_rcpt = \" \"\n\t}\n\telse\n\t{\n\t\tFormValues.print_rcpt = Accts[i].print_rcpt\n\t}\n\t\n\tFormValues.description = Accts[i].description\n\tFormValues.ach_dist_nbr = Accts[i].ach_dist_nbr\n\tFormValues.ach_dist_order = Accts[i].ach_dist_order\n\tFormValues.beg_date = Accts[i].beg_date\n\tFormValues.end_date = Accts[i].end_date\n\tFormValues.default_flag = Accts[i].default_flag\n\tFormValues.isTouched = true\n\n\tif (action == \"ChangeDefault\")\n\t{\n\t\tOldDefault = FormValues\n\t\tOldDefault.default_flag = \"N\"\n\t\tOldDefault.print_rcpt = \" \"\n\t\tOldDefault.saveOrder = OldDefault.ach_dist_order\n\t\tif (PrepAccount(OldDefault) && PrepAccount(NewDefault))\n\t\t{\n\t\t\tUPDATING = true\n\t\t\tPROCESSDEFCHG = true\n\t\t\tUpdateQueue = new Array()\n\t\t\tUpdateQueue[UpdateQueue.length] = OldDefault\n\t\t\tUpdateQueue[UpdateQueue.length] = NewDefault\n\t\t\tUpdateQueue[UpdateQueue.length] = OldDefault\n\n\t\t\tif (Rules.notify == \"Y\" || Rules.notifyee == \"Y\")\n\t\t\t{\n\t\t\t\tMailEvent = \"Default\"\n\t\t\t\tMailQueue = new Array()\n\t\t\t\tMailQueue[MailQueue.length] = OldDefaultCopy\n\t\t\t\tMailQueue[MailQueue.length] = NewDefaultCopy\n\t\t\t\tMailQueue[MailQueue.length] = OldDefault\n\t\t\t\tMailQueue[MailQueue.length] = NewDefault\n\t\t\t}\n\t\t\t\n\t\t\tUpdate(UpdateQueue,0)\n\t\t\tdocument.getElementById(\"chgdetail\").style.visibility = \"hidden\";\n\t\t}\n\t}\n\telse\n\t{\n\t\tif (PrepAccount(FormValues))\n\t\t{\n\t\t\tUPDATING = true\n\t\t\tUpdateQueue = new Array()\n\t\t\tUpdateQueue[UpdateQueue.length] = FormValues\n\n\t\t\tif (Rules.notify == \"Y\" || Rules.notifyee == \"Y\")\n\t\t\t{\n\t\t\t\tMailEvent = \"Change\"\n\t\t\t\tMailQueue = new Array()\n\t\t\t\tMailQueue[MailQueue.length] = Accts[i]\n\t\t\t\tMailQueue[MailQueue.length] = FormValues\n\t\t\t}\n\t\t\t\n\t\t\tUpdate(UpdateQueue,0)\n\t\t\tdocument.getElementById(\"chgdetail\").style.visibility = \"hidden\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "6be27f2b72c1a67642b4823ecf33f47c", "score": "0.54194957", "text": "function canGetExactChange(targetMoney, denominations) {\n// Write your code here\n\treturn change(targetMoney, denominations)\n}", "title": "" }, { "docid": "0ae45f5932f1b4877a7898ae74b10147", "score": "0.5399056", "text": "function fnValidateEBM(approvalStep)\r\n{\r\n if(document.activeElement.id)\r\n {\r\n if(document.getElementById(document.activeElement.id).disabled == false)\r\n {\r\n var LastIndex = document.activeElement.id.lastIndexOf('_');\r\n var id = document.activeElement.id.substring(0,LastIndex+1);\r\n \r\n var requestApproved = id + \"ddlRequestApproved\";\r\n \r\n if (document.getElementById(requestApproved).selectedIndex == 0)\r\n {\r\n alert(\"Please select a Request Approved value \");\r\n return false;\r\n }\r\n //start of change by Tod Zhang for ERMS issue radio button 'added to Core Range'\r\n if(approvalStep==1)\r\n {\r\n var addToCoreRangeYes = id + \"rdbCoreRangeYes\";\r\n var addToCoreRangeNo = id + \"rdbCoreRangeNo\";\r\n if(document.getElementById(addToCoreRangeYes)!=null)\r\n if(document.getElementById(addToCoreRangeYes).checked == false && document.getElementById(addToCoreRangeNo).checked == false && document.getElementById(requestApproved).selectedIndex!=3)\r\n {\r\n alert(\"Please select whether it is Add To Core Range or not.\");\r\n return false;\r\n }\r\n }\r\n //end of change by Tod Zhang\r\n }\r\n }\r\n}", "title": "" }, { "docid": "8d112a1b89ebc4fdae8fa393875710c1", "score": "0.53853935", "text": "function checkemailchanged() {\n var dothisaction = false; \n console.log(\"++ afiliado actual: \",affiliate_original);\n console.log(\"++ EMail actual: \",affiliate_original.user.email);\n console.log(\"++ EMail modificado: \",affiliate_edited.user.email);\n console.log(\"++ afiliado modificado: \",affiliate_edited);\n dothisaction = (affiliate_original.user.email != affiliate_edited.user.email);\n return dothisaction;\n }", "title": "" }, { "docid": "d50eb201fa77ec1d5bcb72c96f6effc7", "score": "0.535597", "text": "getApprovalRequest() {\n for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _bluebird2.default.try(() => {\n var _source7 = source.apply(undefined, args),\n _source8 = _slicedToArray(_source7, 2),\n _source8$ = _slicedToArray(_source8[0], 1),\n _source8$$ = _source8$[0];\n\n _source8$$ = _source8$$ === undefined ? {} : _source8$$;\n const id = _source8$$.id,\n callback = _source8[1];\n\n\n (0, _validator.validate)({ id: id }, {\n id: [_validator.Assert.required(), _validator.Assert.string()]\n });\n\n return this.onetouch.getAsync({ uri: _urlEscapeTag2.default`approval_requests/${id}` }).bind(this).then(_responseParser2.default).tap(response => {\n (0, _validator.assert)(response, {\n approval_request: {\n _app_name: [_validator.Assert.required(), _validator.Assert.string()],\n _app_serial_id: [_validator.Assert.required(), _validator.Assert.integer()],\n _authy_id: [_validator.Assert.required(), _validator.Assert.authyId()],\n _id: [_validator.Assert.required(), _validator.Assert.string()],\n _user_email: [_validator.Assert.required(), _validator.Assert.email()],\n app_id: [_validator.Assert.required(), _validator.Assert.string()],\n created_at: [_validator.Assert.required(), _validator.Assert.date()],\n notified: [_validator.Assert.required(), _validator.Assert.boolean()],\n processed_at: _validator.Assert.callback(value => _validator.Assert.null().check(value) === true || _validator.Assert.date().check(value) === true),\n status: [_validator.Assert.required(), _validator.Assert.choice(['approved', 'denied', 'expired', 'pending'])],\n updated_at: [_validator.Assert.required(), _validator.Assert.date()],\n user_id: [_validator.Assert.required(), _validator.Assert.string()],\n uuid: [_validator.Assert.required(), _validator.Assert.string()]\n }\n });\n }).asCallback(callback);\n });\n }", "title": "" }, { "docid": "23cb11415e9ee5a6b376ff3f331e6806", "score": "0.5341602", "text": "function suitelet_confirmVendorBillApproval(request,response)\n{\t\n\tvar stLoggerTitle = 'suitelet_confirmVendorBillApproval';\t\t\n\tnlapiLogExecution('DEBUG', stLoggerTitle, '>> Entry Log <<');\n \n try\n { \t\n\t\tvar stStage = request.getParameter('custpage_stage');\n\t\tnlapiLogExecution('DEBUG', stLoggerTitle, 'Stage = ' + stStage);\n\t\t\n\t\tvar stVB = request.getParameter('custpage_vb');\n\t\tnlapiLogExecution('DEBUG', stLoggerTitle, 'VB = ' + stVB);\n\t\t\n \tvar form = nlapiCreateForm('Select Invoice Range', true);\n \t\n \tswitch(stStage)\n {\n \tcase 'showConfirmMessage':\n \t\tform = confirmed(request,response, form, stVB);\n \t\tbreak;\n \tdefault:\n \t\tform = showConfirmMessage(request,response, form, stVB); \t \n } \t\n } \n catch (error)\n {\n \tif (error.getDetails != undefined)\n {\n nlapiLogExecution('ERROR','Process Error', error.getCode() + ': ' + error.getDetails());\n throw error;\n }\n else\n {\n nlapiLogExecution('ERROR','Unexpected Error', error.toString()); \n throw nlapiCreateError('99999', error.toString());\n }\n } \n}", "title": "" }, { "docid": "cdaf177c4ec4e3a5cdc95d06c0c20e43", "score": "0.52909446", "text": "function do_check() {\n show_envs();\n try {\n // only trigger for pull_requests\n if (github.context.eventName === 'pull_request') {\n if (github.context.payload.pull_request.title.startsWith(\"Merge \")) {\n return;\n }\n if (github.context.payload.pull_request.title.startsWith(\"Revert \")\n && github.context.payload.pull_request.commits == 1) {\n return;\n }\n // using a unique name for local branch\n var local_branch = \"local_ref_branch_\" + Date.now();\n\n // run checking\n check_pull_requests();\n fetch_pull_request_to_local_branch(local_branch);\n check_last_n_revisions(local_branch, 1);\n var tag = tag_of(github.context.payload.pull_request.title);\n if (!skipCodeFormat(tag)) {\n check_patch(local_branch);\n }\n } else {\n core.setFailed(\"Can only be triggered on pull_request, current event=\" +\n github.context.eventName)\n }\n } catch (error) {\n core.setFailed(error.message);\n }\n}", "title": "" }, { "docid": "46d617c5c2ad822fc11c99cc1b873255", "score": "0.52634525", "text": "async validatePullRequest(args, item) {\n return validatePR(args, item)\n }", "title": "" }, { "docid": "94c6eb9e5850ca44b80dc5a903314bbd", "score": "0.52585846", "text": "async function call_isApprover(addr, func_name, stage) {\n const { api, abiArr, bob } = await base.connect(abiPaths);\n const selector = abiArr[0].messages.isApprover(addr, func_name, stage);\n let temp = await base.call_contract(api, contractAddr, bob, 'isApprover()', selector);\n let byteArr = base.parse_event_data(temp)[1];\n let results = {};\n results.permission = base.u8a_to_number(byteArr[0]);\n console.log(results);\n return results;\n}", "title": "" }, { "docid": "3202f7a27ec6ab3a7810fee9262d3f57", "score": "0.52566606", "text": "async reviewRequest(req, res) {\n const userId = req.user.id;\n const { isAccepted, requestId } = req.body;\n try {\n const job = await checkStatusQueue.getJob(requestId.toString());\n job.remove();\n if (isAccepted) {\n const requestDoc = await Request.findByIdAndUpdate(requestId, {\n status: \"accepted\",\n });\n const reviewer = await User.findOne({\n _id: userId,\n }).select(\"_id name position avatar\");\n\n await createNotification({\n recipient: requestDoc.userOwner,\n text: `${reviewer.name} accepted to review \"${requestDoc.embeddedReview.title}\"`,\n author: reviewer.name,\n thread: requestDoc.embeddedReview._id,\n });\n\n return res.status(201).send(reviewer);\n } else {\n await Request.findByIdAndUpdate(requestId, {\n $push: { reviewersDeclined: userId },\n status: \"pending\",\n });\n findReviewerQueue.add(\"findReviewer\", {\n requestId,\n isDelayed: false,\n });\n return res.status(201).send(\"Reviewer Rejected\");\n }\n } catch {\n return res.status(500).send(\"Internal Server Error\");\n }\n }", "title": "" }, { "docid": "f481b0f64ce205802ba050b076a63b0a", "score": "0.52492994", "text": "function saveRecord(context) {\r\n var newRecord = context.currentRecord;\r\n log.debug('currentRecord', JSON.stringify(newRecord));\r\n\r\n var recordType = newRecord.getValue({fieldId: 'type'});\r\n log.debug('recordType', recordType);\r\n var currentUser = runtime.getCurrentUser().id;\r\n\r\n var approvedCR = getApprovedChangeRequest(currentUser, recordType.toLowerCase() == 'vendor' ? 1 : 2);\r\n log.debug('approvedCR', JSON.stringify(approvedCR));\r\n\r\n if(approvedCR != null) {\r\n // Set Change Approval Request to Completed so it cannot be used again\r\n var approvalRecord = record.load({\r\n type: 'customrecord_change_approval_request',\r\n id: newRecord.id\r\n });\r\n if(approvalRecord) {\r\n approvalRecord.setValue('custrecord_cr_completion_status', 2);\r\n var approvalRecordId = approvalRecord.save({\r\n enableSourcing: true,\r\n ignoreMandatoryFields: true\r\n });\r\n }\r\n }\r\n else {\r\n // Show warning message requiring a Change Approval Request\r\n var myMsg = message.create({\r\n title: \"Warning!\", \r\n message: \"You will need a Change Approval Request to EDIT this record!\", \r\n type: message.Type.WARNING\r\n });\r\n \r\n // Message disappears after 10 seconds\r\n myMsg.show({\r\n duration: 10000\r\n }); \r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "fa7b580916edf247c6fcf51562f431cc", "score": "0.52486676", "text": "function checkTaskChange() {\n\t\t// variables definition\n\t\tvar reTable = $(\".tbl-task-re .acRow\");\n\t\tvar regiFlag = false;\n\n\t\tif(rtedTable.length != reTable.length) {\n\t\t\tregiFlag = true;\n\t\t} else if (rtedTable.length == reTable.length) {\n\t\t\tfor(var i = 0; i < reTable.length; i ++) {\n\t\t\t\tvar taskIdOld = rtedTable[i].taskId;\n\t\t\t\tvar taskFlagOld = rtedTable[i].blockFlag;\n\t\t\t\tvar taskIdNew = $(reTable[i]).find('#txtTaskId').val();\n\t\t\t\tvar taskFlagNew = $(reTable[i]).find('td:eq(2) .blockCheck').is(':checked');\n\t\t\t\tif(\ttaskIdOld != taskIdNew || taskFlagOld != taskFlagNew) {\n\t\t\t\t\tregiFlag = true;\n\t\t\t\t}\n\n\t\t\t\tif(regiFlag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn regiFlag;\n\t}", "title": "" }, { "docid": "555eefd9380a2ce156d1c038d29f1cea", "score": "0.52205074", "text": "function isTransactionMyChange(t) {\n return t.id == null;\n}", "title": "" }, { "docid": "a9ee986555282fe4f1c2ca1480fa3619", "score": "0.52179587", "text": "function checkAcknowLedgement(document) {\n _.each(document.activities, function(activity) {\n if (activity.type === \"upload-reversion\" || activity.type === \"upload-file\") {\n if (_.findIndex(activity.acknowledgeUsers, function(item) {\n if (item._id) {\n return item._id._id == $scope.currentUser._id && item.isAcknow;\n }\n }) !== -1) {\n activity.isAcknow = true;\n } else {\n activity.isAcknow = false;\n }\n }\n });\n }", "title": "" }, { "docid": "f703b6652bd96c0ce12d6af1b5882067", "score": "0.5206966", "text": "static async getApproveReject (req, res) {\n const { loanId } = req.params;\n const loanFound = await model.findOne(loanId);\n if (loanFound.rows.length === 0) {\n return res.status(404).send({\n status: res.statusCode,\n error: 'Loan with this ID not found'\n });\n }\n\n \n const { rows } = await model.updateOne(loanId, req.body);\n\n //@send a notification to the user's email\n await email.sendTransactionEmail(rows[0].status, rows[0].email, rows[0].amount);\n \n return res.status(200).send({\n status: res.statusCode,\n message: 'Status successfully updated!',\n data: rows[0],\n });\n }", "title": "" }, { "docid": "31f5371100a36fcc434721f892cadf76", "score": "0.5199669", "text": "async function isApproved() {\n let result = await drizzle.contracts.UbrisToken.methods.allowance(drizzleState.accounts[0], \"0x187d9e970D4acDF0A1471f2F681C6005C1154427\").call();\n console.log(result);\n return result > 100;\n }", "title": "" }, { "docid": "8d79c29e2b01f5f4caabda7eb38e0e3d", "score": "0.5187515", "text": "function confirmEditInvestment() {\n\n let investment = funnelledInvestments[editingInvestmentLine - 1];\n let bank = $('#inputEditInvestmentBank-' + editingInvestmentLine).val();\n let type = $('#inputEditInvestmentType-' + editingInvestmentLine).val();\n let name = $('#inputEditInvestmentName-' + editingInvestmentLine).val();\n let payload = {};\n\n // check if all required fields were filled\n if (0 == bank.length) {\n showAlertMessage(ALERT_ERROR, 'Bank name is a required field');\n return;\n }\n if (0 == type.length) {\n showAlertMessage(ALERT_ERROR, 'Investment type is a required field');\n return;\n }\n if (0 == name.length) {\n showAlertMessage(ALERT_ERROR, 'Investment name is a required field');\n return;\n }\n\n // check the fields that were changed\n if (bank != investment.bank) {\n payload['bank'] = bank;\n }\n if (type != investment.type) {\n payload['type'] = type;\n }\n if (name != investment.name) {\n payload['name'] = name;\n }\n\n // if any field was changed, patch the investment record\n if (0 < Object.keys(payload).length) {\n\n showSpinner();\n updateInvestment(payload, investment, updateInvestmentCallback);\n } else {\n\n showInvestmentLine(editingInvestmentLine);\n }\n}", "title": "" }, { "docid": "eeb66005d41bfb9f48550c81f77c4e43", "score": "0.51823217", "text": "function isReadyForApproval(){\n\n\tif(isFormComplete() && getAssessmentStatus() == 'pending'){\n\t\t\n\t\t$('#approval_button').prop('disabled', false);\n\t\t$('#validate_button').prop('disabled', false);\n\t\t\n\t\t\n\t}else{\n\t\t\n\t\t$('#approval_button').prop('disabled', true);\n\t\t$('#validate_button').prop('disabled', true);\n\t\t\n\t}\n\n}", "title": "" }, { "docid": "64195233491ac00f2cb5513a093e1702", "score": "0.5170993", "text": "function toggleApproval(args) {\n const approved = !$(`.review-button[data-id=\"${args.id}\"]`).hasClass('approved')\n $(`.review-button[data-id=\"${args.id}\"]`).toggleClass('approved', approved)\n $(`.review-block[data-id=\"${args.id}\"]`).toggleClass('approved', approved)\n\n if (args.context == 'content') {\n // This sends a message to the preview iframe to update the state of the block with the given id.\n // This allows us to have the preview dynamically change when a content change is approved/rejected.\n postMessage('approve', { id: args.id, approved: approved })\n } else if (args.context == 'details' && args.refresh == 'true') {\n // For detail changes, we instead reload the preview iframe, if refresh is set to true.\n const url = detailsIframe.src.split('?')[0]\n detailsIframe.src = `${url}?review=true&excerpt=true&reify=${getApprovedDetailChanges().join(',')}`\n }\n}", "title": "" }, { "docid": "93d642a2fbbafd52623d7225efb35313", "score": "0.5164256", "text": "function CheckHasChanges() {\n for (var i = 0; i < tablist.length; i++) {\n confirmresult = false;\n CurrentDesk = tablist[i].id;\n var confirm = confirmChanges(\"menu\", '');\n if (confirm) {\n return true;\n }\n }\n}", "title": "" }, { "docid": "8b3623be0fb411033186617d3ff85d65", "score": "0.5152148", "text": "get isPending() {\n if (this.update) {\n return (\n this.update.state == \"pending\" ||\n this.update.state == \"pending-service\" ||\n this.update.state == \"pending-elevate\"\n );\n }\n return (\n this.um.readyUpdate &&\n (this.um.readyUpdate.state == \"pending\" ||\n this.um.readyUpdate.state == \"pending-service\" ||\n this.um.readyUpdate.state == \"pending-elevate\")\n );\n }", "title": "" }, { "docid": "ecc5ce890a0b2b7398b1be379e3c191c", "score": "0.51491946", "text": "async checkReceiptForCommit(receipt) {\n\n if (receipt.sender_signature == null || receipt.receipt_signature == null) {\n return;\n }\n try {\n let doesSenderSigned = _isValidSignature(receipt.from_address, receipt.to_address, receipt.amount,\n receipt.receiptId, receipt.sender_signature, receipt.from_address);\n let doesReceiverSigned = _isValidSignature(receipt.from_address, receipt.to_address, receipt.amount,\n receipt.receiptId, receipt.receipt_signature, receipt.to_address);\n\n return doesSenderSigned && doesReceiverSigned;\n\n } catch (e) {\n console.log(\"Error while validating parties signature\");\n }\n return false;\n\n }", "title": "" }, { "docid": "660d2b7d02b301da44d7fbf29c3209f6", "score": "0.513863", "text": "function Approvals(props) {\n return props.approvals >= REQ_APPROVALS ? <GoodState /> : <NeutralState />;\n}", "title": "" }, { "docid": "bdca544052f47437237dd1f2678e761c", "score": "0.51371676", "text": "function mentorDeclineMeetingRequest() {\n return confirm(\"Are you sure you want to decline a meeting request from this mentee?. No record at this stage will be kept.\")\n}", "title": "" }, { "docid": "e9ace083097227095f9211896f4343ee", "score": "0.5136759", "text": "Approve(_spender, _amount){\n\n Utils.contract.approve(_spender, _amount).send({\n shouldPollResponse: true,\n callValue: 0\n }).then(res => Swal({\n title:'Approval Successful',\n type: 'success'\n })).catch(err => Swal({\n title:'Approval Failed',\n type: 'error'\n\n }));\n }", "title": "" }, { "docid": "7fbc7156186661d2ced745527a515019", "score": "0.5121647", "text": "function changeStatusOfRequest(req){\r\n\tvar database = firebase.database().ref(laboratory);\r\n\t\r\n\tdatabase.child(\"/request\").orderByChild(\"requestID\").equalTo(req.name).once(\"value\").then(function(snapshot){\r\n\t\t\tsnapshot.forEach(function(childSnapshot) {\r\n\t\t\t\t\tvar textUpdate = ''\r\n\t\t\t\t\tvar updateThisChild = childSnapshot.key;\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar details = childSnapshot.val().details;\r\n\t\t\t\t\tvar requestID = childSnapshot.val().requestID;\r\n\t\t\t\t\tvar items = childSnapshot.val().items;\r\n\t\t\t\t\tvar proxyID = childSnapshot.val().proxyID;\r\n\t\t\t\t\tvar requestNeeded = childSnapshot.val().requestNeeded;\r\n\t\t\t\t\tvar requestSent = childSnapshot.val().requestSent;\r\n\t\t\t\t\tvar user = childSnapshot.val().user;\r\n\t\t\t\t\tvar status = childSnapshot.val().status;\r\n\t\t\t\t\tvar new_proxy = \"\";\r\n\t\t\t\t\tvar goal_status = req.value.toLowerCase();\r\n\t\t\t\t\t//get currently logged in user\r\n\t\t\t\t\tvar staffID = 1;\r\n\t\t\t\t\tvar prev_status = status\r\n\t\t\t\t\t//req.value is goal status\r\n\t\t\t\t\t//childsnapshot.val().status is previous/current status that hasn't been changed yet\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tif (goal_status == \"declined\"){\r\n\t\t\t\t\t\tvar details = $(\"#updateDeclineComments\").val()\r\n\t\t\t\t\t\tif(status == \"released\" || status == \"defective\"){\r\n\t\t\t\t\t\t\tupdateAccountability(\"resolved\", user, requestID);\r\n\t\t\t\t\t\t\tif(status == \"defective\"){\r\n\t\t\t\t\t\t\t\ttextUpdate =\"Accountabilities removed.\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttextUpdate += \"All items returned.\";\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"+\",true,requestID);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttextUpdate += \"Updated request status from \"+status+\" to Declined. \"+details;\r\n\t\t\t\t\t\tstatus = \"declined\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (goal_status == \"ready\"){\r\n\t\t\t\t\t\tif(status == \"released\" || status == \"defective\"){\r\n\t\t\t\t\t\t\tupdateAccountability(\"resolved\", user, requestID);\r\n\t\t\t\t\t\t\tif(status == \"defective\"){\r\n\t\t\t\t\t\t\t\ttextUpdate =\"Accountabilities removed.\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttextUpdate += \"All items returned.\";\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"+\",true,requestID)\r\n\t\t\t\t\t\t\t//returnAll(items);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttextUpdate += \"Updated request status from \"+status+\" to Ready.\";\r\n\t\t\t\t\t\tstatus = \"ready\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (goal_status == \"complete\" || goal_status == \"completed\"){\t\t\r\n\t\t\t\t\t\ttextUpdate = \"Updated request status from \"+status+\" to Completed.\";\r\n\t\t\t\t\t\tif(status == \"defective\"){\r\n\t\t\t\t\t\t\treturnGlasswareFromDefective(childSnapshot.val().defective,requestID)\r\n\t\t\t\t\t\t\tdefectiveData = retrieveDefectiveData();\r\n\t\t\t\t\t\t\taction = defectiveData[1];\r\n\t\t\t\t\t\t updateAccountability(\"resolved\", user, requestID);\r\n\t\t\t\t\t\t\ttextUpdate = \"Updated request status from Defective to Completed.<br> All accountabilities have been resolved.\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstatus = \"complete\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (goal_status == \"released\"){\r\n\t\t\t\t\t\ttextUpdate = \"Updated request status from \"+status+\" to Released.\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//if released to released aka changing the one who picks up the item.\r\n\t\t\t\t\t\tif(status == \"released\"){\r\n\t\t\t\t\t\t\ttextUpdate = \"Edited the recipient.\";\r\n\t\t\t\t\t\t}else if(status == \"defective\"){\r\n\t\t\t\t\t\t\tupdateAccountability(\"resolved\", user, requestID);\r\n\t\t\t\t\t\t\ttextUpdate +=\"Accountabilities removed.\"\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"-\",true,requestID);\r\n\t\t\t\t\t\t}else if(status == \"ready\"){\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"-\",true,requestID);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\ttextUpdate += \"Staff updated to Released without first updating the request to Ready.\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(document.getElementById('radio1').checked == true){\r\n\t\t\t\t\t\t\tdetails=user;\r\n\t\t\t\t\t\t\t//console.log(\"released to requestor \"+details)\r\n\t\t\t\t\t\t\ttextUpdate += \"Released to requestor.\";\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tif(document.getElementById('radio3').checked == true){\r\n\t\t\t\t\t\t\t\tdetails = document.getElementById(\"releasedTo\").value;\r\n\t\t\t\t\t\t\t\tproxyName = document.getElementById(\"releasedTo\").name;\r\n\t\t\t\t\t\t\t\ttextUpdate += \"Released to new proxy: \"+proxyName+\" (\"+details+\").\";\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tdetails=\"\";\r\n\t\t\t\t\t\t\t\tproxyName = document.getElementById(\"releasedTo\").name;\r\n\t\t\t\t\t\t\t\ttextUpdate += \"Released to authorized proxy: \"+proxyName+\" (\"+proxyID+\").\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstatus = \"released\"\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (goal_status == \"defective\"){\r\n\t\t\t\t\t\tdefectiveData = retrieveDefectiveData();\r\n\t\t\t\t\t\tdefective = defectiveData[0];\r\n\t\t\t\t\t\taction = defectiveData[1];\r\n\t\t\t\t\t\tif(status ==\"defective\"){\r\n\t\t\t\t\t\t\tdefectiveReturnGlassware(childSnapshot.val().defective,defective,items,requestID)\r\n\t\t\t\t\t\t}else if(status != \"released\"){\r\n\t\t\t\t\t\t\t//meaning, skipped released, trigger release.\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"-\",true,requestID);\r\n\t\t\t\t\t\t\ttextUpdate = \"Staff skipped release status, items requested considered as released.\";\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tupdateAccountability(\"unresolved\", user, requestID);\r\n\t\t\t\t\t\t\treturnGlassware(items,defective,requestID,true)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstatus = \"defective\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif(status == \"released\" || status == \"defective\"){\r\n\t\t\t\t\t\t\tupdateAccountability(\"resolved\", user, requestID);\r\n\t\t\t\t\t\t\tif(status == \"released\"){\r\n\t\t\t\t\t\t\t\ttextUpdate = \"All items returned.\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttextUpdate +=\"Accountabilities removed.\"\r\n\t\t\t\t\t\t\tinventoryQuantityAddSubtract(items,\"+\",true,requestID);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttextUpdate += \"Updated request status from \"+status+\" to Preparing.\";\r\n\t\t\t\t\t\tstatus = \"preparing\"\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(status == \"defective\"){\r\n\t\t\t\t\t updateAccountability(\"unresolved\", user, requestID);\r\n\t\t\t\t\t\tfirebase.database().ref(\"\"+laboratory+\"/request/\"+updateThisChild+\"/status\").set(status);\r\n\t\t\t\t\t\tfirebase.database().ref(\"\"+laboratory+\"/request/\"+updateThisChild+\"/defective\").set(defective);\r\n\r\n\t\t\t\t\t\t//updateAccountability(user['userID'],requestID);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tpossibly_new_details = document.getElementById(\"defective-comments\").value\r\n\t\t\t\t\t\tif(possibly_new_details != details){\r\n\t\t\t\t\t\t\tfirebase.database().ref(\"\"+laboratory+\"/request/\"+updateThisChild+\"/details\").set(possibly_new_details);\r\n\t\t\t\t\t\t\tif(possibly_new_details == \"\"){\r\n\t\t\t\t\t\t\t\tupdateRequestHistory(requestID,textUpdate+\"Accountabilities updated. Updated defective and missing list to: \"+ action + \"Comments set to empty.\");\t\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tupdateRequestHistory(requestID,textUpdate+\"Accountabilities updated. Updated defective and missing list to: <br>\"+ action + \"Comments updated to: \"+possibly_new_details+\"\");\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}else{\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tupdateRequestHistory(requestID,textUpdate+\"Accountabilities updated. Updated defective and missing list to: <br>\"+ action + \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tvar newData = {\r\n\t\t\t\t\t\t\t\"details\": details,\r\n\t\t\t\t\t\t\t\"requestID\": requestID,\r\n\t\t\t\t\t\t\t\"items\": items,\r\n\t\t\t\t\t\t\t\"proxyID\": proxyID,\r\n\t\t\t\t\t\t\t\"requestNeeded\": requestNeeded,\r\n\t\t\t\t\t\t\t\"requestSent\": requestSent,\r\n\t\t\t\t\t\t\t\"user\": user,\r\n\t\t\t\t\t\t\t\"status\": status\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tvar updates = {}\r\n\t\t\t\t\t\tupdates[\"\"+laboratory+\"/request/\"+ updateThisChild] = newData;\r\n\t\t\t\t\t\tfirebase.database().ref().update(updates);\r\n\t\t\t\t\t\tupdateRequestHistory(requestID,textUpdate);\r\n\t\t\t\t\t\tif(prev_status != status){\r\n\t\t\t\t\t\t\tif(status == \"defective\"){\r\n\t\t\t\t\t\t\t\tvar defectiveData = {\r\n\t\t\t\t\t\t\t\t\t\"defective\":defective,\r\n\t\t\t\t\t\t\t\t\t\"details\": details,\r\n\t\t\t\t\t\t\t\t\t\"requestID\": requestID,\r\n\t\t\t\t\t\t\t\t\t\"items\": items,\r\n\t\t\t\t\t\t\t\t\t\"proxyID\": proxyID,\r\n\t\t\t\t\t\t\t\t\t\"requestNeeded\": requestNeeded,\r\n\t\t\t\t\t\t\t\t\t\"requestSent\": requestSent,\r\n\t\t\t\t\t\t\t\t\t\"user\": user,\r\n\t\t\t\t\t\t\t\t\t\"status\": status\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tvar notif = {\r\n\t\t\t\t\t\t\t\t\t\"request\": defectiveData,\r\n\t\t\t\t\t\t\t\t\t\"status\": \"new\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfirebase.database().ref(\"notification/\"+user).push(notif)\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tvar notif = {\r\n\t\t\t\t\t\t\t\t\t\"request\": newData,\r\n\t\t\t\t\t\t\t\t\t\"status\": \"new\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfirebase.database().ref(\"notification/\"+user).push(notif)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tchangeStatusDisplay(requestID,status)\r\n\t\t\t\t\t\r\n\t\t\t});\r\n\t})\r\n}", "title": "" }, { "docid": "ebb34c103356e45ecf3b765f45282dd6", "score": "0.51192605", "text": "function checkModMailUpdate() {\n db.all(\"SELECT name, modMailId FROM redditPost WHERE modMailId IS NOT NULL\", function (error, modMailId) {\n modMailId.forEach((row) => {\n r.getNewModmailConversation(row.modMailId).fetch().then(checkForApproval.bind(null, row.name));\n });\n });\n\n\n}", "title": "" }, { "docid": "db3ec17d836a727fd79c6813d2617957", "score": "0.5114185", "text": "function approveRequest(event) {\n \n // First, find the requested book\n let xhr = new XMLHttpRequest();\n xhr.open('GET', 'https://matty22booktrade.herokuapp.com/books/data/request/' + event.srcElement.id, true);\n xhr.onload = function() {\n if (xhr.status === 200) {\n // Then, find that book's owner and remove the returned book id from their requests array\n let responseArray = JSON.parse(xhr.responseText);\n let response = responseArray[0];\n \n let bookXhr = new XMLHttpRequest();\n bookXhr.open('PUT', 'https://matty22booktrade.herokuapp.com/users/confirm/data?owner=' + response.owner + '&bookId=' + response._id, true);\n bookXhr.onload = function() {\n if (bookXhr.status === 200) {\n let user = JSON.parse(bookXhr.responseText);\n localStorage.setItem('user', bookXhr.responseText);\n document.getElementById('numberOfLends').innerHTML = user.requests.length - 1;\n }\n else {\n alert(\"You done goofed\");\n }\n }\n bookXhr.send();\n }\n else {\n alert(\"You done goofed\");\n }\n }\n xhr.send();\n }", "title": "" }, { "docid": "59663a11af5cf3275955e8d40f336ff4", "score": "0.51102924", "text": "function preOoseChangeValidation(type, gridId, baseRecordIdColumnName) {\r\n isForOose = \"Y\";\r\n var valid = true;\r\n var XMLData = getXMLDataForGridName(gridId);\r\n var rowIndex = 0;\r\n var currentRowId = getSelectedRow(gridId);\r\n var baseRecordId = XMLData.recordset(baseRecordIdColumnName).value;\r\n var recordModeCode = XMLData.recordset(\"CRECORDMODECODE\").value;\r\n\r\n // Loop the riskListGrid recordset to do the check\r\n first(XMLData);\r\n while (!XMLData.recordset.eof) {\r\n var curRecordModeCode = XMLData.recordset(\"CRECORDMODECODE\").value;\r\n var curBaseRecordId = XMLData.recordset(baseRecordIdColumnName).value;\r\n if (!isEmpty(curBaseRecordId)\r\n && curBaseRecordId == baseRecordId\r\n && (curRecordModeCode == \"TEMP\" || curRecordModeCode == \"REQUEST\")) {\r\n valid = false;\r\n currentRowId = XMLData.recordset(\"ID\").value;\r\n alert(getMessage(\"pm.oose.modified.record.exist.error2\", new Array(type)));\r\n break;\r\n }\r\n\r\n rowIndex ++;\r\n next(XMLData);\r\n }\r\n\r\n selectRowById(gridId, currentRowId, rowIndex);\r\n return valid;\r\n}", "title": "" }, { "docid": "102dffaac4dcfb05295e14303b99814e", "score": "0.5108333", "text": "function checkLineIfCommited(id){\n\tvar dv = id.split(\"||\");\n\tvar dev1 = dv[0].split(\".\");\n\tvar dev2 = dv[1].split(\".\");\n\tvar device1 = dev1[0];\n\tvar device2 = dev2[0];\n\tvar dev1Condition = false;\n\tvar dev2Condition = false;\n\tif(globalInfoType == \"JSON\"){\n var devices = getDevicesNodeJSON();\n }else{\n var devices =devicesArr;\n }\n\tfor (var a=0; a<devices.length; a++){\n\t\tif (devices[a].ObjectPath== device1 && devices[a].Status.toLowerCase() == \"reserved\"){\n\t\t\tdev1Condition = true;\n\t\t}\n\t\tif (devices[a].ObjectPath== device2 && devices[a].Status.toLowerCase() == \"reserved\"){\n\t\t\tdev2Condition = true;\n\t\t}\n\t}\n\tif (dev1Condition == true && dev2Condition == true){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "43d0d97c4c7afc984b76611fb2924e46", "score": "0.5102985", "text": "handleApproachChanged() {\n if (this.currentApproachName.startsWith('RN')) {\n this.approachMode = WT_ApproachType.RNAV;\n if (this.currentLateralActiveState === LateralNavModeState.APPR) {\n this.isVNAVOn = true;\n }\n \n if (this.currentVerticalActiveState === VerticalNavModeState.GS) {\n this.currentVerticalActiveState = VerticalNavModeState.GP;\n }\n\n if (this.currentVerticalArmedStates.includes(VerticalNavModeState.GS)) {\n this.currentVerticalArmedStates = [VerticalNavModeState.GP];\n }\n }\n\n if (this.currentApproachName.startsWith('ILS') || this.currentApproachName.startsWith('LDA')) {\n this.approachMode = WT_ApproachType.ILS;\n if (this.currentLateralActiveState === LateralNavModeState.APPR) {\n this.isVNAVOn = false;\n }\n\n if (this.currentVerticalActiveState === VerticalNavModeState.GP) {\n this.currentVerticalActiveState = VerticalNavModeState.GS;\n }\n\n if (this.currentVerticalArmedStates.includes(VerticalNavModeState.GP)) {\n this.currentVerticalArmedStates = [VerticalNavModeState.GS];\n }\n }\n }", "title": "" }, { "docid": "13129cd669c3f6f74452822916d7ab9b", "score": "0.5100621", "text": "function checkRequest(reqId) {\n return historyReq[reqId];\n /*\n if (reqId in historyReq) {\n return true;\n }\n else {\n return false;\n }\n */\n}", "title": "" }, { "docid": "12e6786e6d632c89f36fbb16584133ce", "score": "0.5094203", "text": "function doApprove(wfrName) {\n\tvar comments = $('approve_comments').value;\n\tvar selectedRecords = getSelectedWrRecordsForWFR(comments);\n\tif (selectedRecords.length > 0) {\n\n\t\t// for actionbar and multiple selection\n\t\tfor ( var i = 0; i < selectedRecords.length; i++) {\n\t\t\tvar record = selectedRecords[i];\n\t\t\ttry {\n\t\t\t\tvar result = Workflow.callMethod(wfrName, record, comments);\n\t\t\t} catch (e) {\n\t\t\t\tWorkflow.handleError(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcloseQuickWindowAndRefreshConsole(View.panels.get(\"approvePanel\"));\n\t}\n}", "title": "" }, { "docid": "98dbbde95ed963a219e6f7ead01ee817", "score": "0.50934994", "text": "editIsPostfixCompletionApplicable(request) {\n return this.sendRequest(\"edit.isPostfixCompletionApplicable\", request);\n }", "title": "" }, { "docid": "d3583db372e48da1cc33321c934c8633", "score": "0.5082072", "text": "async approveContract(){\n Toast.loading(\"Approving\");\n if (this.state.web3 !== null && this.state.tokenContract !== null && this.state.account !== ''){\n this.state.tokenContract.methods.approve(STAKE_ADDRESS, \"5000000000000000000000000000\").send({ from: this.state.account[0] })\n .on('transactionHash', (receipt) => {\n this.setState({ showTransaction: true });\n this.setState({ transactionHash: receipt });\n })\n .on('error', (error) => {\n this.setState({ transactionError: error.message });\n this.setState({ showError: true });\n Toast.fail('Failed', 1500)\n })\n .once('receipt', (receipt) => {\n console.log(receipt);\n const status = this.isItApproved();\n if (status){\n this.setState({ approved: true });\n Toast.success('Success', 1500)\n }\n });\n }\n }", "title": "" }, { "docid": "ceb1e051f6afb762e7bb24ae405c9508", "score": "0.5061015", "text": "function applyUpdate(payload) {\n var reqId = payload.reqId;\n // logger.info('ServerId: '+ serverId + ' history: ' + JSON.stringify(historyReq) + ' RequestId: ' + reqId);\n // logger.info('ServerId: '+ serverId + ' payload for sync req: ' + JSON.stringify(payload));\n if (payload.payload.update) {\n var accNum = payload.payload.update.accNum;\n }\n // TODO: this should be generic logic. shouldn't be dealt differently for update n transfer\n else if(payload.payload.transfer) {\n var accNum = payload.accNum;\n }\n if(!checkRequest(reqId)) {\n historyReq[reqId] = {\n\t 'payload' : payload.payload,\n\t 'response' : payload\n\t};\n lastHistReq = reqId;\n accDetails[accNum] = payload.currBal;\n return true;\n }\n else {\n logger.error(\"Request Inconsistent with history\" + JSON.stringify(payload));\n return false;\n }\n}", "title": "" }, { "docid": "87909454d1ca0007c52cc6e4a7527fae", "score": "0.50547004", "text": "static async approve(req, res) {\n if (!req.params.id) {\n return res.error('Invalid id supplied');\n }\n\n try {\n const application = await DiscountApplication.findOne({\n _id: req.params.id,\n deleted: false,\n });\n if (!application) {\n return res.error('Item with id not found');\n }\n\n application.status = 'approved';\n await application.save();\n await DiscountApplication.populate(application, { path: 'user_id' });\n await DiscountApplication.populate(application, { path: 'modified_by' });\n await DiscountApplication.populate(application, { path: 'approved_by' });\n\n return res.success('success');\n } catch (err) {\n return res.error(err.message);\n }\n }", "title": "" }, { "docid": "8772d9923f0bd6346962de7d96863ef1", "score": "0.5043108", "text": "function new_review_request(req, res) {\n\n\tvar jsonBody = JSON.parse(req.body);\n\tvar reviewer = jsonBody.review.user.login;\n var missing = jsonBody.pull_request.requested_reviewers.map(x => x.login);\n\tvar reviewCommitId = jsonBody.review.commit_id;\n\tvar pullRequestLatestCommitId = jsonBody.pull_request.head.sha;\n\tvar commitsEndpointUrl = jsonBody.pull_request._links.commits.href;\n var issueCommentEndpointURL = jsonBody.pull_request.issue_url + \"/comments\";\n\n\t// don't check the 'action' because we want to consider all three: 'submitted', 'edited', 'dismissed'\n\n\t// Check the pull request is for 'release' branch\n\tif (jsonBody.pull_request.base.ref != \"release\") {\n\t\tres.write(\"PR is not for the release branch. Ignoring this PR.\");\n\t\tres.end();\n\t\treturn;\n\t}\n\n\t// Get all reviews\n console.log(\"Checking other reviews.\");\n\trequest.get({\n\t\turl: jsonBody.review.pull_request_url + \"/reviews\",\n\t\theaders: {\n\t\t\t\"Authorization\": \"token \"+ GITHUB_USER_TOKEN,\n\t\t\t\"User-Agent\": GITHUB_USER_AGENT,\n\t\t\t\"content-type\" : \"application/json\"\n\t\t},\n\t},\n\t// Handle Github response\n\t(err, gres, body) => {\n\t\tif (err) {\n\t\t\tconsole.log(\"Something went wrong getting the reviews.\");\n\t\t\tres.write(\"Something went wrong getting the reviews.\");\n\t\t\tres.end();\n\t\t\treturn;\n\t\t}\n\n\t\tvar reviewArr = JSON.parse(body);\n console.log(\"Missing: \"+missing.length+\", submitted: \"+reviewArr.length);\n var approved = (missing.length == 0 && reviewArr.length > 0);\n var reviews = {};\n\t\t// look through all the reviews\n\t\tfor (var i = reviewArr.length - 1; i >= 0; i--) {\n if(reviews[reviewArr[i].user.login]){\n console.log(\"Skipping out of date review \"+i);\n continue;\n }\n reviews[reviewArr[i].user.login] = true;\n console.log(\"Review \"+i+\": \"+reviewArr[i].state+\" \"+(reviewArr[i].commit_id == pullRequestLatestCommitId ? \"up to date\" : \"outdated\"));\n approved = (approved\n && reviewArr[i].state == \"APPROVED\"\n && reviewArr[i].commit_id == pullRequestLatestCommitId);\n\t\t}\n\n\t\tif (!approved) {\n\t\t\tconsole.log(\"Approval conditions not met.\");\n\t\t\treturn;\n\t\t}\n\n console.log(\"PR is approved, checking if PR can be merged...\")\n request.get({url: jsonBody.pull_request.url,\n \t\theaders: {\n \t\t\t\"Authorization\": \"token \"+ GITHUB_USER_TOKEN,\n \t\t\t\"User-Agent\": GITHUB_USER_AGENT,\n \t\t\t\"content-type\" : \"application/json\"\n \t\t}},\n\n \t(err, gres, body) => {\n if(err){\n console.log(\"Error checking PR status\");\n console.log(err);\n return;\n }\n\n var pr = JSON.parse(body);\n if(pr.mergeable)\n {\n AddCommentToPR(issueCommentEndpointURL, \"Merge is approved, starting a new signing build.\");\n RunBuild(pr,reviewArr);\n }\n else\n {\n AddCommentToPR(issueCommentEndpointURL, \"Merge is approved, but it is not in a mergeable state. Please rebase.\");\n SetBuildStatus(pr.statuses_url, \"error\");\n }\n });\n\t});\n res.write(\"New review processed.\");\n res.end();\n}", "title": "" }, { "docid": "6434ad43cdbcb5b03b309f82a1598d0e", "score": "0.5042544", "text": "function beforeSubmit_processRemovedDelegatedApp(stType)\n{\t\n\tvar stLoggerTitle = 'beforeSubmit_processRemovedDelegatedApp';\n\t\t\n\tnlapiLogExecution('DEBUG', stLoggerTitle, '>>Entry<<');\n \n try\n { \n \tvar context = nlapiGetContext();\n \t\n \tvar stPendingAppStandAloneVBSearch = context.getSetting('SCRIPT', 'custscript_pending_app_standalone_vb_sc2');\n nlapiLogExecution('DEBUG', stLoggerTitle, 'Script Parameter | Pending Approval Stand Alone Vendor Bill Search = ' + stPendingAppStandAloneVBSearch);\n \n var stPendingAppPOSearch = context.getSetting('SCRIPT', 'custscript_pending_app_po_sc2');\n nlapiLogExecution('DEBUG', stLoggerTitle, 'Script Parameter | Pending Approval Purchase Order Search = ' + stPendingAppPOSearch); \n \n if (isEmpty(stPendingAppStandAloneVBSearch) || isEmpty(stPendingAppPOSearch))\n {\n \tnlapiLogExecution('DEBUG', stLoggerTitle, 'Please enter values on the script parameter. Exit.'); \n return true;\n } \t \t\n \t\n \tvar stEmployee = nlapiGetRecordId();\n \tnlapiLogExecution('DEBUG', stLoggerTitle, 'Employee = ' + stEmployee);\n \t\n \t// Note: nlapiLoadRecord is used because nlapiGetOldRecord() is not working\n \tvar recOld = nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId());\n \tvar stOldDelegatedApprover = recOld.getFieldValue('custentity_delegate_approver');\n \t \t \t\n \tvar stNewDelegatedApprover = nlapiGetFieldValue('custentity_delegate_approver'); \t\n \tnlapiLogExecution('DEBUG', stLoggerTitle, 'Old Delegated Approver = ' + stOldDelegatedApprover + ' | New Delegated Approver = ' + stNewDelegatedApprover);\n \t\n \tif (!isEmpty(stOldDelegatedApprover) && isEmpty(stNewDelegatedApprover))\n \t{\n \t\tupdateTransactions(stPendingAppStandAloneVBSearch, stPendingAppPOSearch, stEmployee, stOldDelegatedApprover);\n \t}\n \n nlapiLogExecution('DEBUG', stLoggerTitle, '>>Exit<<'); \n return true;\n } \n catch (error)\n {\n \tif (error.getDetails != undefined)\n {\n nlapiLogExecution('ERROR','Process Error', error.getCode() + ': ' + error.getDetails());\n throw error;\n }\n else\n {\n nlapiLogExecution('ERROR','Unexpected Error', error.toString()); \n throw nlapiCreateError('99999', error.toString());\n } \t \n return false;\n } \n}", "title": "" }, { "docid": "c784f76e74248595dd641f4d1e337ec3", "score": "0.5040744", "text": "function approveReq(e){\n\tlet reimId=e.target.value;\n\t\n\tlet reimApp={\n\t\treimId\n\t}\n\ttry{\n\t\tlet req = fetch(\"http://localhost:8080/ReimbursementApp/api/approve\", {\n\t\t\tmethod: \"POST\",\n\t\t\theaders:{\n\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t},\n\t\t\tbody: JSON.stringify(reimApp),\n\t\t});\n\t\t\n\t}catch(e){\n\t\tconsole.log(e);\n\t}\n\t//debugger;\n\tlocation.href=\"../html/admin.html\"\n}", "title": "" }, { "docid": "331e082a2fa7062621945e0a6dee42d2", "score": "0.50313455", "text": "function checkEdit() {\n // stop editing if there's nothing left to edit\n if ($scope.nonManagersArray.length === $scope.allManagersArray.length) {\n $scope.editCaseManagers = false;\n }\n }", "title": "" }, { "docid": "960d2781ce889fa8ef524f11d549e227", "score": "0.5025702", "text": "paymentAccepted() {\n return (\n (this.paymentAuthorization && !this[prevmodel]) ||\n (this.paymentAuthorization &&\n this[prevmodel].orderTotal <= this.orderTotal)\n );\n }", "title": "" }, { "docid": "c415f5d89f444bcaed375f03add00089", "score": "0.49975783", "text": "function checkChange() {\n if (changeDue > 25) {\n changeAmount.quarters += 1;\n changeDue -= 25;\n return checkChange()\n }else if (changeDue >= 10) {\n changeAmount.dimes += 1;\n changeDue -= 10;\n return checkChange()\n }else if (changeDue >= 5) {\n changeAmount.nickels += 1;\n changeDue -= 5;\n return checkChange()\n }else if (changeDue >= 1) {\n changeAmount.pennies += 1;\n changeDue -= 1;\n return checkChange()\n }else {\n return changeAmount;\n }\n }", "title": "" }, { "docid": "2319bc16d4bd84d7e705cc9a6d78b5ed", "score": "0.4995375", "text": "function HandleToggleApprove(tblName, el_input) {\n console.log( \" ==== HandleToggleApprove ====\");\n // called by field \"status' in table \"ete_exam\", \"duo_exam\", \"grades\"\n\n// --- lookup exam_dict in ete_exam_rows or in grade_exam_rows\n const data_dict = get_datadict_from_table_element(el_input)\n\n if (!isEmpty(data_dict)){\n // b_get_auth_index_of_requsr returns index of auth user, returns 0 when user has none or multiple auth usergroups\n // gives err messages when multiple found.\n\n const auth_index = b_get_auth_index_pres_secr_of_requsr(loc, permit_dict)\n // values of auth_index are 0, 1, 2. Zero means req_usr is not charman and not secretary.\n // b_get_auth_index_pres_secr_of_requsr calls msgbox when error\n\n if (auth_index){\n const auth1by_field = (tblName === \"grades\") ? \"ce_exam_auth1by_id\" : \"auth1by_id\"\n const auth2by_field = (tblName === \"grades\") ? \"ce_exam_auth2by_id\" : \"auth2by_id\"\n const publ_field = (tblName === \"grades\") ? \"ce_exam_published_id\" : \"published_id\"\n\n const is_published = (!!data_dict[publ_field]);\n let auth1by_id = (data_dict[auth1by_field]) ? data_dict[auth1by_field] : null;\n let auth2by_id = (data_dict[auth2by_field]) ? data_dict[auth2by_field] : null;\n\n // format of ce_exam_result_str is:\n // grade_dict.ce_exam_result = \"1;35# ...\n // ce_exam_result starts with blanks; total_amount #\n // parseInt() parses a string and returns an integer of the specified radix\n // If parseInt encounters a character that is not a numeral in the specified radix (radix=10),\n // it ignores it and all succeeding characters and returns the integer value parsed up to that point.\n\n const no_data = (tblName === \"ete_exam\") ? !data_dict.partex :\n (tblName === \"duo_exam\") ? false :\n (tblName === \"grades\") ? isEmpty(data_dict) :\n !data_dict.ce_exam_result;\n\n const has_blanks = (no_data || tblName === \"duo_exam\") ? false :\n (tblName === \"ete_exam\") ? !!data_dict.blanks :\n (tblName === \"grades\") ? (!data_dict.ce_exam_result || parseInt(data_dict.ce_exam_result, 10)) :\n false;\n\n // --- get value of auth_bool_at_index\n const old_is_approved = (auth_index === 1) ? !!auth1by_id :\n (auth_index === 2) ? !!auth2by_id : null;\n\n // format of ce_exam_result_str is:\n // grade_dict.ce_exam_result = \"1;35#2|2;a|3;a|4;a|5;a|6;1|7;x|8;a|9;0#4|1;1|2;a|3;1|4;a|5;a|6;a|7;a|8;x|9;a|10;1#6|1;a|2;a|3;1|4;a|5;1|6;a|7;1|8;a|9;1|10;1#7|1;1|2;1|3;1#8|1;1#9|1;5#10|1;7\"\n // - ce_exam_result starts with blanks; total_amount #\n // - Note: total score was stored in pescore, is moved to ce_exam_score PR2022-05-15\n // - partal exams are separated with #\n // - partex = \"2;2;4|1;C;;|2;D;3;\"\n // first array between || contains partex info : # partex_pk ; blanks ; total_amount /\n // others contain answers info: | q_number ; char ; score ; blank |\n\n if (is_published){\n // exit and give message when grade is published\n const msg_txt = (tblName === \"grades\") ? loc.err_list.This_exam_is_submitted : loc.err_list.This_exam_is_published;\n const msg_html = msg_txt + \"<br>\" + loc.approve_err_list.You_cannot_change_approval;\n b_show_mod_message_html(msg_html);\n } else if (no_data && !old_is_approved) {\n // exit and give message when exam has no_data - not when duo_exam\n // when exam already approved you must be able to remove approval, also when exam has no_data\n const msg_html = loc.err_list.This_exam_has_no_data + \"<br>\" + loc.err_list.You_cannot_approve_the_exam;\n b_show_mod_message_html(msg_html);\n // exit and give message when there are blank questions - not when duo_exam\n // when exam already approved you must be able to remove approval, also when there are blank answers\n } else if (has_blanks && !old_is_approved){\n const msg_html = loc.err_list.This_exam_has_blank_questions + \"<br>\" + loc.err_list.You_cannot_approve_the_exam;\n b_show_mod_message_html(msg_html);\n } else {\n // --- toggle value of auth_bool_at_index\n let new_is_approved = false;\n if (auth_index === 1) {\n auth1by_id = (!old_is_approved) ? permit_dict.requsr_pk : null;\n new_is_approved = !!auth1by_id;\n } else if (auth_index === 2) {\n auth2by_id = (!old_is_approved) ? permit_dict.requsr_pk : null;\n new_is_approved = !!auth2by_id;\n }\n console.log( \"new_is_approved\", new_is_approved);\n\n // give message when status_bool = true and exam already approved but this user in different function\n let double_approved = false;\n if (new_is_approved){\n if (auth_index === 1){\n double_approved = (auth2by_id === permit_dict.requsr_pk);\n } else if (auth_index === 2){\n double_approved = (auth1by_id === permit_dict.requsr_pk);\n };\n };\n if (double_approved && false) {\n const msg_html = loc.err_list.Approved_different_function + \"<br>\" + loc.err_list.You_cannot_approve_again;\n b_show_mod_message_html(msg_html);\n } else {\n\n // --- change icon, before uploading\n console.log( \"is_published\", is_published);\n console.log( \"auth1by_id\", auth1by_id);\n console.log( \"auth2by_id\", auth2by_id);\n\n const new_class_str = f_get_status_auth12_iconclass(is_published, false, auth1by_id, auth2by_id);\n\n el_input.className = new_class_str;\n console.log( \"new_class_str)\", new_class_str);\n\n // --- upload changes\n const url_str = (tblName === \"grades\") ? urls.url_grade_upload : urls.url_exam_upload;\n // value of 'mode' determines if status is set to 'approved' or 'not\n // instead of using value of new_is_approved,\n const mode = \"update\" // : \"approve_reset\"\n\n if (tblName === \"grades\") {\n const upload_dict = { table: tblName,\n mode: mode,\n grade_pk: data_dict.id,\n exam_pk: data_dict.ce_exam_id,\n examperiod: data_dict.examperiod,\n student_pk: data_dict.student_id,\n auth_index: auth_index,\n auth_bool_at_index: new_is_approved,\n return_grades_with_exam: true\n };\n UploadChanges(upload_dict, url_str);\n } else {\n const upload_dict = { table: tblName,\n mode: mode,\n examyear_pk: data_dict.ey_id,\n depbase_pk: data_dict.depbase_id,\n lvlbase_pk: data_dict.lvlbase_id,\n exam_pk: data_dict.id,\n subject_pk: data_dict.subj_id,\n auth_index: auth_index,\n auth_bool_at_index: new_is_approved,\n };\n UploadChanges(upload_dict, url_str);\n };\n }; // if (double_approved))\n\n }; // if (is_published)\n\n mod_dict = {};\n\n if (tblName === \"ete_exam\"){\n if(permit_dict.permit_approve_exam && permit_dict.requsr_same_school && data_dict.studsubj_id){\n const map_id = tblRow.id\n const data_dict = get_mapdict_from_datamap_by_id(grade_map, map_id);\n console.log( \"data_dict\", data_dict);\n if(!isEmpty(data_dict)){\n const fldName = get_attr_from_el(el_input, \"data-field\");\n if(fldName in data_dict ){\n const examtype = fldName.substring(0,2);\n const published_field = examtype + \"_published\"\n let publ_pk = (data_dict[published_field]) ? data_dict[published_field] : null;\n }; // if(fldName in data_dict ){\n }; // if(!isEmpty(data_dict))\n };\n };\n }; // if (auth_index)\n }; // if (!isEmpty(data_dict))\n } // HandleToggleApprove", "title": "" }, { "docid": "dba6ca09c00ae1ab110f52c2ac47d061", "score": "0.49894518", "text": "function GetAnyChange()\n\t\t{\n\t\t\t\n\t\t\t\t \n\t\t\n\t\t}", "title": "" }, { "docid": "46a1733b80c60747327cd71d2978c4e9", "score": "0.49886015", "text": "approveRequestContactReceived(userId,contactId){\n return this.update({\n $and:[\n {\"userId\":contactId},\n {\"contactId\":userId},\n {\"status\":false}\n ]\n },{\n \"status\":true,\n \"updatedAt\":Date.now()\n }).exec();\n}", "title": "" }, { "docid": "f8011451336be050c9ab095169e9e4d2", "score": "0.498777", "text": "function declineRequest() {\n return confirm(\"Are you sure you want to decline this request? This action cannot be undone. No record of the incoming mentee request would be kept.\");\n}", "title": "" }, { "docid": "9056aea0fefdd718bcaf79b94df7b688", "score": "0.4982495", "text": "countRequest(request, approved){\n\t\tlet counter = _filter(request, function(o) {\n\t\t\treturn o.approved == approved;\n\t\t});\n\t\treturn counter.length;\n\t}", "title": "" }, { "docid": "531222c8daaeb173ba6a454671facd47", "score": "0.4971064", "text": "get isApplied() {\n if (this.update) {\n return (\n this.update.state == \"applied\" || this.update.state == \"applied-service\"\n );\n }\n return (\n this.um.readyUpdate &&\n (this.um.readyUpdate.state == \"applied\" ||\n this.um.readyUpdate.state == \"applied-service\")\n );\n }", "title": "" }, { "docid": "4abb529d671b6db5dae678d586456b64", "score": "0.49700445", "text": "isPending() {\n return this.currentBill.billStatus === 'Pending';\n }", "title": "" }, { "docid": "058cd10e5959397c5eced91b92493fc6", "score": "0.49695548", "text": "async approve(id) {\n try {\n const res = await axios.post(`${this.host}/admin-property/approve`, {\n ...this.authData(),\n propertyId: id,\n });\n\n if (res.data.status == \"204\") {\n // get summary about pendin approvals\n // this.getSummary(); //new\n\n this.popup(res.data.message, \"success\", 5);\n } else throw res.data;\n } catch (err) {\n console.log(err);\n }\n }", "title": "" }, { "docid": "60d1813d4f3af3f104ac6c75a3f713aa", "score": "0.4969521", "text": "function checkOneTouchStatus () {\n\t\t$http.post('/api/onetouch/status', {\n\t\t\t'uuid': $scope.uuid\n\t\t}).then(function onSuccess (response) {\n\t\t\tif (response.data.response.status === 'approved') {\n\t\t\t\t$interval.cancel($scope.pollingID);\n\t\t\t\t$scope.verified = true;\n\t\t\t\tverifiedDone();\n\t\t\t}\n\t\t}, function onError (error) {\n\t\t\t$log.error(error);\n\t\t});\n\t}", "title": "" }, { "docid": "e0aea2c053135e4969b65e035c3892ae", "score": "0.4960473", "text": "function SetExecutives(vbRec,vbAmount,vbOwner,k) {\n\tvar f5 = new Array();\n\tf5[0] = new nlobjSearchFilter('custrecord_spk_csa_apv_req_amt',null,'greaterthan',0);\n\tf5[1] = new nlobjSearchFilter('isinactive',null,'is','F');\n\tvar col = new Array();\n\tcol[0] = new nlobjSearchColumn('custrecord_spk_csa_apv_req_amt');\t\t\t\t\n\tcol[1] = new nlobjSearchColumn('custrecord_spk_csa_apvr');\n\tcol[2] = col[0].setSort();\n\tvar csRecords = nlapiSearchRecord('customrecord_spk_cross_sub_apvr',null,f5,col);\n\tfor(var n = 0;csRecords && n<csRecords.length;n++) {\n\t\ttry {\n\t\t\tvar csRec = csRecords[n];\n\t\t\tvar approvalAmount = csRec.getValue('custrecord_spk_csa_apv_req_amt');\t\t\t\t\t\t\n\t\t\tvar csaApprover = csRec.getValue('custrecord_spk_csa_apvr');\n\t\t\tvar delegate_csa = getDelegateApprover(csaApprover);\n\t\t\tnlapiLogExecution('DEBUG', 'vbAmount is'+vbAmount, 'approvalAmount '+approvalAmount);\n\t\t\tif(parseFloat(vbAmount) >= parseFloat(approvalAmount)) {\n\t\t\t\tvar execFlag = false;\n\t\t\t\tvar mtrxCount = vbRec.getLineItemCount('recmachcustrecord_spk_apvmtx_tranno');\n\t\t\t\tnlapiLogExecution('DEBUG', 'mtrxCount12 is', mtrxCount);\n\t\t\t\tvar updatedTitle = '';\t\t\t\t\t\t\t\n\t\t\t\t/***** Checking if the approver entry is already available in system *****/\n\t\t\t\tfor(var m = 1;m<= mtrxCount; m++) {\n\t\t\t\t\tvar execApp = vbRec.getLineItemValue('recmachcustrecord_spk_apvmtx_tranno','custrecord_spk_apvmtx_apvr',m);\n\t\t\t\t\tvar mtrxTitle = vbRec.getLineItemValue('recmachcustrecord_spk_apvmtx_tranno','custrecord_spk_apvmtx_apvrl',m);\n\t\t\t\t\tvar execDlgte = vbRec.getLineItemValue('recmachcustrecord_spk_apvmtx_tranno','custrecord_spk_apvmtx_delgtof',m);\n\t\t\t\t\tif((execApp == csaApprover && !execDlgte) || (execApp == delegate_csa && execDlgte == csaApprover)) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tupdatedTitle = mtrxTitle + ',' + 'Executive' ;\n\t\t\t\t\t\tvbRec.setLineItemValue('recmachcustrecord_spk_apvmtx_tranno','custrecord_spk_apvmtx_apvrl',m,updatedTitle);\n\t\t\t\t\t\texecFlag = true;\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(execFlag == false) {\n\t\t\t\t\tk = k+1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tvbRec.selectNewLineItem('recmachcustrecord_spk_apvmtx_tranno');\n\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_seq', k);\n\t\t\t\t\tif(delegate_csa) {\n\t\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_apvr',delegate_csa);\n\t\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_delgtof', csaApprover);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_apvr', csaApprover);\n\t\t\t\t\t}\t\n\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_apvrl','Executive');\n\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_apmanager',nlapiGetUser());\n\t\t\t\t\tvbRec.setCurrentLineItemValue('recmachcustrecord_spk_apvmtx_tranno', 'custrecord_spk_apvmtx_invown',vbOwner);\n\t\t\t\t\tvbRec.commitLineItem('recmachcustrecord_spk_apvmtx_tranno');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (e) {\n\t\t\tnlapiLogExecution('ERROR', e.name || e.getCode(), e.message || e.getDetails());\t\t\n\t\t}\n\t}\n\treturn k;\n}", "title": "" }, { "docid": "6b41adac1c31ad2c789dbabc01e584d9", "score": "0.49381885", "text": "function anotherRequestPending() {\n if (requestPending) {\n $scope.lastActionOutcome = $scope.lastActionOutcome + 'Please wait. ';\n return true;\n }\n requestPending = true;\n return false;\n }", "title": "" }, { "docid": "c7edd663dca99fe1dfc9f97a02e48218", "score": "0.49340737", "text": "function approve_btn_click(e) {\n\t//console.log(e);\n\tvar post_id = e.target.getAttribute('data-post-id');\n\tconsole.log('approving post #'+post_id);\n\te.target.setAttribute('value', 'approving...');\n\te.target.disabled = true;\n\tvar xmlhttp = new XMLHttpRequest();\n xmlhttp.onreadystatechange = function() {\n\t\tif (xmlhttp.readyState == 4) {\n\t\t\tif (xmlhttp.status == 200) {\n\t\t\t\tconsole.log('post approval accepted');\n\t\t\t\tif (xmlhttp.responseText == 'approved') {\n\t\t\t\t\t// content totally approved\n\t\t\t\t\tconsole.log('post is now approved');\n\t\t\t\t\te.target.setAttribute('value', 'APPROVED.');\n\t\t\t\t\te.target.parentNode.parentNode.className = e.target.parentNode.parentNode.className.replace('peer-approval', '');\n\t\t\t\t\tvar unneeded_stuff = e.target.parentNode.parentNode.getElementsByClassName('peer-approval');\n\t\t\t\t\tfor (var i = 0; i < unneeded_stuff.length; i++) {\n\t\t\t\t\t\tunneeded_stuff[i].parentNode.removeChild(unneeded_stuff[i]);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// content still needs more votes\n\t\t\t\t\tconsole.log('post needs more votes');\n\t\t\t\t\te.target.setAttribute('value', 'APPROVED. (Needs more votes to be public.)');\n\t\t\t\t}\n\t\t\t} else if (xmlhttp.status == 400) {\n\t\t\t\tconsole.error('There was an error 400 when trying to approve the post: ' + xmlhttp.responseText);\n\t\t\t} else if (xmlhttp.status == 500) {\n\t\t\t\tconsole.error('There was an error 500 when trying to approve the post: ' + xmlhttp.responseText);\n\t\t\t} else {\n\t\t\t\tconsole.error('Something other than 200 was returned when approving the post: ' + xmlhttp.responseText);\n\t\t\t}\n\t\t}\n\t}\n\txmlhttp.open(\"POST\", \"/content/process/\", true);\n\txmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n\txmlhttp.send(\"a=approve&post_id=\" + post_id);\n}", "title": "" }, { "docid": "8e0f15d51427b3938dc8a0c6ed074ea2", "score": "0.493364", "text": "function doNewDisapprovals (forceFetch) {\n var prRows = $(\"table#pull-requests-table tbody tr.pull-request-row\");\n var foundPrs = false;\n prRows.each(function () {\n if ($(this).find(\"td.disapproval\").size() === 0) {\n foundPrs = true;\n doDisapproval($(this))\n }\n });\n console.log(\"We've done \" + prRows.size() + \" PR disapprovals so far.\");\n\n if (foundPrs || forceFetch) {\n // We've at least loaded some more, check again before rescheduling\n checkMorePrs();\n } else {\n // Reschedule self to run again\n setTimeout(doNewDisapprovals, 750);\n }\n }", "title": "" }, { "docid": "8e0bddb9628eb2bb72913591dc2e9354", "score": "0.49290255", "text": "validateResponse (data) {\n\t\tAssert(data.company.modifiedAt >= this.modifiedAfter, 'modifiedAt is not greater than before the company was updated');\n\t\tthis.expectedCompany.modifiedAt = data.company.modifiedAt;\n\t\t// verify what we fetch is what we got back in the response\n\t\tAssert.deepEqual(data.company, this.expectedCompany, 'fetched company does not match');\n\t}", "title": "" }, { "docid": "9d5fde65d1584a3d2fa88a34105bbe0c", "score": "0.49260345", "text": "async handleRequest (ctx, params) {\n const { stripe } = ctx\n const {\n amount,\n destinationAccountID,\n destinationBankAccountID,\n transactionID,\n } = params\n\n const transaction = await stripe.charges.retrieve(transactionID)\n\n if (!transaction.metadata.readyToPay) {\n await stripe.charges.update(transactionID, {\n metadata: {\n amount,\n destinationAccountID,\n destinationBankAccountID,\n paid: false,\n readyToPay: true,\n },\n })\n }\n\n ctx.status = 202\n }", "title": "" }, { "docid": "255d0a37bab1ace98acb6b57c371e6fa", "score": "0.49250206", "text": "validateActivityStatus() {\r\n let res = this.state.selectedData.every((livestock) => {\r\n return !(livestock.ActivitySystemCode == livestockActivityStatusCodes.Deceased ||\r\n livestock.ActivitySystemCode == livestockActivityStatusCodes.Killed ||\r\n livestock.ActivitySystemCode == livestockActivityStatusCodes.Lost);\r\n });\r\n if (!res) this.notifyToaster(NOTIFY_WARNING, { message: this.strings.INVALID_RECORD_LOST_STATUS });\r\n return res;\r\n }", "title": "" }, { "docid": "a1dffe7091512660ea407a7c3eeebec5", "score": "0.49167734", "text": "function rejectChanges() {\r\n $.ajax({\r\n url: Constants.PageUrl,\r\n data: {method:\"rejectPoChanges\", changeId: getQueryStringParam(\"changeId\")},\r\n type: \"POST\"\r\n }).done(function(response) {\r\n if(typeof response == \"string\")\r\n response = JSON.parse(response);\r\n\r\n if(!!response && response.status == \"OK\") {\r\n //Successfully rejected, Notify user that the changes are successfully rejected\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.RejectChanges, Constants.QueryStringParam.Value.Success);\r\n }\r\n else {\r\n //Some error occurred while rejecting changes\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.RejectChanges, Constants.QueryStringParam.Value.Failure);\r\n }\r\n })\r\n .fail(function(e) {\r\n //Some error occurred while rejecting changes\r\n window.location.href = Constants.PageUrl + getQueryString(Constants.QueryStringParam.RejectChanges, Constants.QueryStringParam.Value.Failure);\r\n });\r\n }", "title": "" }, { "docid": "93f820c3fdcfad802962e297790f9fd5", "score": "0.49135268", "text": "function validLoanRequest() {\n return (\n this.account.balance * 2 >= parseInt($(\"#loan-amount\").val()) &&\n parseInt($(\"#loan-amount\").val()) > 0 &&\n !this.account.loan\n );\n}", "title": "" }, { "docid": "e494498e6225cbac6d1bc8a3e9146390", "score": "0.4906627", "text": "function declineMentorshipRequest() {\n return confirm(\"Are you sure you want to decline a mentorship request from this mentee?. No record at this stage will be kept.\");\n}", "title": "" }, { "docid": "69657f94447619a4a26384baeb1562a6", "score": "0.49029064", "text": "_isChangeValid() {\n const control = this.config.control;\n if (control.invalid) {\n if (this.config.displayErrors)\n this._setMessage(ValidationErrorMessages(control.errors));\n return false;\n }\n return this._checkPrevent();\n }", "title": "" }, { "docid": "9fa77f66ede658adcc3db77956edea6a", "score": "0.48923522", "text": "_checkThisReviewed() {\n if (\n this.DisplayDeadline !== undefined &&\n new Date(this.DateNextView) > new Date(this.DisplayDeadline)\n ) {\n this.IsReviewed = true;\n }\n }", "title": "" }, { "docid": "ed144b19d1d1f4cf8e4b0c1016ef0227", "score": "0.48892903", "text": "function updateTransactions(stPendingAppStandAloneVBSearch, stPendingAppPOSearch, stEmployee, stOldDelegatedApprover)\n{\n\tvar stLoggerTitle = 'updateTransactions';\n\t\n\tvar context = nlapiGetContext();\n\t\n\t// Execute the Saved Search for Stand Alone Vendor Bills where Next Approver is equal to Current Approver \n var arrFilter = [new nlobjSearchFilter('nextapprover', null, 'anyof', stOldDelegatedApprover)];\n var arrResults = nlapiSearchRecord('vendorbill', stPendingAppStandAloneVBSearch, arrFilter);\n if (arrResults != null)\n { \n \tfor (var i = 0; i < arrResults.length; i++)\n {\n \t\tvar intRemainingUsage = context.getRemainingUsage ();\n nlapiLogExecution ('DEBUG', stLoggerTitle, 'Remaining Usage Point = ' + intRemainingUsage);\n \n if (intRemainingUsage < USAGE_LIMIT_THRESHOLD)\n {\n \tvar arrParams = new Array ();\n arrParams['custscript_schr_pending_sa_vb_search'] = stPendingAppStandAloneVBSearch;\n arrParams['custscript_schr_pending_po_search'] = stPendingAppPOSearch;\n arrParams['custscript_schr_employee'] = stEmployee;\n arrParams['custscript_schr_old_da'] = stOldDelegatedApprover;\n\n var stSchedStatus = nlapiScheduleScript (SCHED_SCRIPT_ID, null, arrParams);\n nlapiLogExecution ('DEBUG', stLoggerTitle, 'Scheduled Script Status = ' + stSchedStatus);\n return;\n }\n \n \t\tvar stVB = arrResults[i].getId();\n \t\tnlapiSubmitField('vendorbill', stVB, ['nextapprover', 'custbody_is_delegator'], [stEmployee, 'F']);\n \t\tnlapiLogExecution('DEBUG', stLoggerTitle, 'Successfully updated Next Approver to ' + stEmployee + '. Vendor Bill ID = ' + stVB);\n }\n }\n else\n {\n \t nlapiLogExecution('DEBUG', stLoggerTitle, 'No Pending Approval Stand-Alone Vendor Bills for this Delegated Approver.'); \n }\n \n // Execute the Saved Search for Purchase Orders where Next Approver is equal to Current Approver \n var arrFilter = [new nlobjSearchFilter('nextapprover', null, 'anyof', stOldDelegatedApprover)]; \n var arrResults = nlapiSearchRecord('purchaseorder', stPendingAppPOSearch, arrFilter);\n if (arrResults != null)\n { \t\n \tfor (var i = 0; i < arrResults.length; i++)\n {\n \t\tvar intRemainingUsage = context.getRemainingUsage ();\n nlapiLogExecution ('DEBUG', stLoggerTitle, 'Remaining Usage Point = ' + intRemainingUsage);\n \n if (intRemainingUsage < USAGE_LIMIT_THRESHOLD)\n {\n \tvar arrParams = new Array ();\n arrParams['custscript_schr_pending_sa_vb_search'] = stPendingAppStandAloneVBSearch;\n arrParams['custscript_schr_pending_po_search'] = stPendingAppPOSearch;\n arrParams['custscript_schr_employee'] = stEmployee;\n arrParams['custscript_schr_old_da'] = stOldDelegatedApprover;\n\n var stSchedStatus = nlapiScheduleScript (SCHED_SCRIPT_ID, null, arrParams);\n nlapiLogExecution ('DEBUG', stLoggerTitle, 'Scheduled Script Status = ' + stSchedStatus);\n return;\n }\n \t\t\n \t\tvar stPO = arrResults[i].getId();\n \t\tnlapiSubmitField('purchaseorder', stPO, ['nextapprover', 'custbody_is_delegator'], [stEmployee, 'F']);\n \t\tnlapiLogExecution('DEBUG', stLoggerTitle, 'Successfully updated Next Approver to ' + stEmployee + '. Purchase Order ID = ' + stPO);\n }\n }\n else\n {\n \tnlapiLogExecution('DEBUG', stLoggerTitle, 'No Pending Approval Purchase Orders for this Delegated Approver.');\n }\n}", "title": "" }, { "docid": "2ef042727fdf62985271ce17abb18d02", "score": "0.4880542", "text": "static approve(entryId){\n\t\tlet kparams = {};\n\t\tkparams.entryId = entryId;\n\t\treturn new kaltura.RequestBuilder('baseentry', 'approve', kparams);\n\t}", "title": "" }, { "docid": "1cde95f779c22e6f3af74305c8f5a737", "score": "0.48796314", "text": "function autoRejectDraftAppointments() {\n consultNowDraft.findAll().then(function (appointdata) {\n appointdata.forEach((element) => {\n if (element.status === 0) {\n let appointmentTime = element.appointment_time;\n const currentTime = moment().format(\"HH:mm\");\n const currentTime2Minutes = moment().add(4, \"minutes\").format(\"HH:mm\");\n const appointmentTime2Minutes = moment(appointmentTime, \"HH:mm\")\n .add(2, \"minutes\")\n .format(\"HH:mm\");\n // console.log(currentTime+\" >>> \"+currentTime2Minutes+\" << \");\n // console.log(appointmentTime+\" >>> \"+appointmentTime2Minutes+\" << \");\n if (appointmentTime2Minutes < currentTime) {\n var updateval = { status: 1 };\n let whereobject = { where: { status: 0 } };\n consultNowDraft.update(updateval, whereobject).then((result) => {\n // console.log(element.id+\" Updated to 1\");\n });\n }\n }\n });\n });\n}", "title": "" }, { "docid": "da248e5572a569b0e1533908608a85f9", "score": "0.48717323", "text": "approve (form_data, success_callback, failure_callback)\n {\n var url = '/global/crm/timeclock/approve';\n return WebClient.basicPost(form_data, url, success_callback, failure_callback);\n }", "title": "" }, { "docid": "9db22ffc9ab6c5404f2919bf18ee3b1a", "score": "0.48701638", "text": "ListOfEmailChangeTasksYouAreInvolvedIn(state) {\n let url = `/me/task/emailChange?`;\n const queryParams = new query_params_1.default();\n if (state) {\n queryParams.set('state', state.toString());\n }\n return this.client.request('GET', url + queryParams.toString());\n }", "title": "" }, { "docid": "58fefd9e77a3a3c84ae1142d5b3340af", "score": "0.48682317", "text": "hasPendingChanges() {\n\t\treturn !!this[_changed];\n\t}", "title": "" }, { "docid": "b0f150f980eed59bdaf4541149aefb0a", "score": "0.48651943", "text": "static find_status(action) {\n if (!Server.pending || file !== Server.pending.agenda) return null;\n let match = null;\n\n for (let status of Pending.status) {\n let found = true;\n\n for (let [name, value] of Object.entries(action)) {\n if (name !== \"status\" && value !== status[name]) found = false\n };\n\n if (found) match = status\n };\n\n return match\n }", "title": "" }, { "docid": "f30e4fec63c4c2a2aeba6765416a9de0", "score": "0.48626068", "text": "canRegisterCtOpinion (user, removalRequest) {\n if (user.roles.indexOf('admin') === -1 && user.roles.indexOf('secretary') === -1) {\n return false\n }\n\n return removalRequest.type === 'International' && removalRequest.status === 'Approved-DI'\n }", "title": "" }, { "docid": "4cbfb6d7e7889bbdd034e4f3ffcff1aa", "score": "0.48577157", "text": "IndicatesWhetherOrNotThePortabilityDateCanBeChanged(billingAccount, id) {\n let url = `/telephony/${billingAccount}/portability/${id}/dateCanBeChanged`;\n return this.client.request('GET', url);\n }", "title": "" }, { "docid": "86590f4a5488ce52588240ca17656e66", "score": "0.48570102", "text": "async function _checkSetStatus(payerId) {\n let setOfLegacies = await SetOfLegacies.findActive(payerId)\n\n if (!setOfLegacies) return false\n let legacies = JSON.parse(setOfLegacies.legacies)\n let subscriptions = JSON.parse(setOfLegacies.subscriptions) || []\n let set = await SetOfLegacies.find({\n where: {\n id: setOfLegacies.id\n }\n })\n\n let confirmedLegacies = 0\n let confirmedSubscriptions = 0\n let legaciesCount = legacies.length\n let subscriptionsCount = subscriptions.length\n let canUpdate = false\n\n for (let i = 0; i < legacies.length; i++) {\n const el = legacies[i];\n let legacy = await Legacies.findById(el)\n if (legacy.status === 'confirmed')++confirmedLegacies\n }\n\n if (confirmedLegacies === legaciesCount) {\n if (subscriptions) {\n for (let j = 0; j < subscriptions.length; j++) {\n const sus = subscriptions[j];\n let subscription = await Subscriptions.findById(sus)\n if (subscription.status === 'confirmed')++confirmedSubscriptions\n }\n\n if (confirmedSubscriptions === subscriptionsCount) {\n canUpdate = true\n }\n } else {\n canUpdate = true\n }\n }\n\n if (canUpdate) {\n set.status = 'complete'\n await set.save()\n }\n\n return canUpdate\n}", "title": "" }, { "docid": "f9d23f7a3df597a5ee118c3c0458d040", "score": "0.48469958", "text": "function toBeDelivered(ticket) {\n return ticket.labor > 0\n }", "title": "" }, { "docid": "3d23c7458dec4451e23cf615e9d6945e", "score": "0.48329422", "text": "async function canManageIsApprovedField ({ authentication: { item: user } }) {\n if (user.isAdmin || user.isSupport) return true\n\n return false\n}", "title": "" }, { "docid": "818dcdd75fef964d52b87a5e717ea5b3", "score": "0.48282", "text": "function validateCommit (entryName, entry, header, pkg, sources) {\n switch (entryName) {\n case 'intent':\n // in order for the 'commit' action to work, validateCommit (given a intent) must return true\n // there is no special validation that we have to perform for our simple app\n return true\n case 'intents_anchor':\n // in order for the 'commit' action to work, validateCommit (given a intents_anchor) must return true\n // there is no special validation that we have to perform for our simple app\n return true\n case 'intent_link':\n // in order for the 'commit' action to work, validateCommit (given a intent_link) must return true\n // there is no special validation that we have to perform for our simple app\n return true\n default:\n // invalid entry name\n return false\n }\n}", "title": "" }, { "docid": "2665b7d30fd62e1517395a5473e1afd1", "score": "0.48273018", "text": "ListOfServiceContactChangeTasksYouAreInvolvedIn(askingAccount, state, toAccount) {\n let url = `/me/task/contactChange?`;\n const queryParams = new query_params_1.default();\n if (askingAccount) {\n queryParams.set('askingAccount', askingAccount);\n }\n if (state) {\n queryParams.set('state', state.toString());\n }\n if (toAccount) {\n queryParams.set('toAccount', toAccount);\n }\n return this.client.request('GET', url + queryParams.toString());\n }", "title": "" }, { "docid": "340af33985340a00fd2c12bf13e3d2da", "score": "0.4824378", "text": "applyDisapproval () {\n this.update({\n 'data.class.disapproval': this.data.data.class.disapproval + 1\n })\n }", "title": "" } ]
30629d8c167680d0faa44e1f97e8131c
Use function string name to check builtin types, because a simple equality check will fail when running across different vms / iframes.
[ { "docid": "d102abe92242f35a52ec07b39ffeda63", "score": "0.0", "text": "function getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}", "title": "" } ]
[ { "docid": "25eb5bb0550144185d1702f62ea5d8b1", "score": "0.64458823", "text": "function checkType(x) {}", "title": "" }, { "docid": "44ab0224fac65315e3235919cdb2ed81", "score": "0.6396463", "text": "function is_func(func) { return Object.prototype.toString.call(func) == \"[object Function]\"; }", "title": "" }, { "docid": "a4e13775baf4d0cd0d21515449af1fa4", "score": "0.63140047", "text": "function typeEq(name) {\n return function(x) {\n return type(x) === name;\n };\n }", "title": "" }, { "docid": "1087962b934505694f5ff3c47af2089b", "score": "0.629705", "text": "function l(e) { return \"string\" == typeof e }", "title": "" }, { "docid": "9914c21ed2b54efb490a8e50368ae8db", "score": "0.6156653", "text": "function ot(t){return\"function\"==typeof t&&/native code/.test(t.toString())}", "title": "" }, { "docid": "fcb69c2b63b733891895382422d07a2f", "score": "0.61404675", "text": "function r(e){return\"string\"==typeof e}", "title": "" }, { "docid": "c4a64a6a29e45b7af5e427f2f6859188", "score": "0.61046964", "text": "function is_injected_primitive(name) {\n return accumulate((x, y) => name === injected_prim_func_string(x) || y,\n false,\n primitives);\n}", "title": "" }, { "docid": "38bbf7f1a7d98ce9043fe35e6267abcb", "score": "0.6092784", "text": "function is_func(func) {\n return Object.prototype.toString.call(func) == \"[object Function]\";\n }", "title": "" }, { "docid": "00d9f1011e8c1883208ed5a1e1f88856", "score": "0.6058986", "text": "function x(t,e){return typeof t===e}", "title": "" }, { "docid": "70df3758b7d6da209f7be49926149348", "score": "0.6048555", "text": "function isFunction(input){return\"undefined\"!=typeof Function&&input instanceof Function||\"[object Function]\"===Object.prototype.toString.call(input)}", "title": "" }, { "docid": "acce5c06fa316778e574eb99adbd32a7", "score": "0.60417104", "text": "function typeFunc(value){\n\tif(typeof value=='string'){\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "85b2429b5392739139387b3632184fab", "score": "0.6041287", "text": "function i(t){return\"function\"==typeof t}", "title": "" }, { "docid": "d315dd1c4cf724d0685a8351a2a0891b", "score": "0.59829175", "text": "function isSameType(x, y) {\n var tX = type(x)\n var tY = type(y)\n\n return tX === tY\n || isFunction(x) && x.name === tY\n || isFunction(y) && y.name === tX\n}", "title": "" }, { "docid": "0c68111c0addfd9f9cfafa9b0b78a93e", "score": "0.5980525", "text": "function r(e) { return \"[object Function]\" === Object.prototype.toString.call(e) }", "title": "" }, { "docid": "4c1c89c0f46ce3f6138f3aa0cb715963", "score": "0.59276766", "text": "function t(e) {\r\n return (\r\n (\"undefined\" !== typeof Function && e instanceof Function) ||\r\n \"[object Function]\" === Object.prototype.toString.call(e)\r\n );\r\n }", "title": "" }, { "docid": "2add4431953525eb5125ef4ebf6ada79", "score": "0.5905763", "text": "function t(e) {\n return (\n (\"undefined\" !== typeof Function && e instanceof Function) ||\n \"[object Function]\" === Object.prototype.toString.call(e)\n );\n }", "title": "" }, { "docid": "309b928ed73d51d01c62590a6c344070", "score": "0.5902479", "text": "function e(t){return\"undefined\"!=typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "8c805575cc8353d4a84b664c4f5b34c3", "score": "0.5884973", "text": "function validateNamedType(functionName,type,optionName,argument){validateType(functionName,type,optionName+\" option\",argument);}", "title": "" }, { "docid": "a1ec3de874a5db793c2e90cb9243f546", "score": "0.58837086", "text": "function isaFunction(f) {\r\n\t\treturn typeof f === \"function\" // native functions have the type of function (except in IE)\r\n\t\t||\r\n\t\t(\r\n\t\t\t// do IE faffle-dance here...\r\n\t\t\ttypeof f.toString == \"undefined\"\r\n\t\t\t&&\r\n\t\t\t/^\\s*\\bfunction\\b/.test(f)\r\n\t\t)\r\n\t}", "title": "" }, { "docid": "3ceaf3adc7992ab3a3d365c34cf8c565", "score": "0.58814144", "text": "function o(t){return\"string\"==typeof t||\"number\"==typeof t||// $flow-disable-line\n\"symbol\"==typeof t||\"boolean\"==typeof t}", "title": "" }, { "docid": "094a854e0d17ecec0fae8ed8b1358039", "score": "0.5862295", "text": "function validateNamedType(functionName,type,optionName,argument){validateType(functionName,type,optionName+\" option\",argument)}", "title": "" }, { "docid": "094a854e0d17ecec0fae8ed8b1358039", "score": "0.5862295", "text": "function validateNamedType(functionName,type,optionName,argument){validateType(functionName,type,optionName+\" option\",argument)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "be21ef0ecfe2837f47d3ceb37a3260b1", "score": "0.58553076", "text": "function t(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "210a3c3d7ecf082cec8278b3327ff884", "score": "0.5849217", "text": "function compareType(base) {\n\n return function (test){\n return (base === typeof test);\n } \n}", "title": "" }, { "docid": "3af0e14d07da496d6f6e51bd922399dd", "score": "0.5848299", "text": "function is(a,b){ return (typeof a == b) ? true : false; }", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "ad3223ed83f0a6b7bc2a9ef6a44c71ee", "score": "0.58398014", "text": "function e(t){return\"undefined\"!==typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}", "title": "" }, { "docid": "052c900b04fed548433d866611322188", "score": "0.58257174", "text": "function isCallable(fn) {\n return typeof fn === 'function';\n} // Check if given argument is a string.", "title": "" }, { "docid": "0d86ce5a7ca228122635299404f94c33", "score": "0.5800867", "text": "function isString(o) { // 172\n return typeof o === 'string'; // 173\n } // 174", "title": "" }, { "docid": "fa13a051a4daa9ce2835d692dc67900d", "score": "0.57998574", "text": "function isString(arg) {\n return typeof arg === 'string';\n}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" }, { "docid": "845909e38118c8e9ec3f92deb78fba31", "score": "0.5797272", "text": "function t(e){return\"undefined\"!==typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}", "title": "" } ]
7073f9f3a4893ceb632460dfd1675239
Interpret and default an options object
[ { "docid": "53d9f8f486fad4379ce5c363f0a5964d", "score": "0.0", "text": "function getOptions(opts) {\n var options = {};\n for (var opt in defaultOptions) {\n options[opt] = opts && _util.has(opts, opt) ? opts[opt] : defaultOptions[opt];\n }if (_util.isArray(options.onToken)) {\n (function () {\n var tokens = options.onToken;\n options.onToken = function (token) {\n return tokens.push(token);\n };\n })();\n }\n if (_util.isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);\n\n return options;\n}", "title": "" } ]
[ { "docid": "68772eef3b065d2591aa8bc76a803dee", "score": "0.6997039", "text": "options(options) {\n return {\n parse(args) {\n return parse(options, args);\n },\n getHelpText() {\n return getHelpText(options);\n },\n };\n }", "title": "" }, { "docid": "e9806cd75a7d220f49268c4e852a4908", "score": "0.68597656", "text": "function parseOptions(obj) {\n var result = Object.create(null);\n var given = obj ? [obj].concat(obj.use || []) : [];\n outer: for (var opt in options) {\n for (var i = 0; i < given.length; i++) {\n if (opt in given[i]) {\n result[opt] = given[i][opt];\n continue outer;\n }\n }\n result[opt] = options[opt].defaultValue;\n }\n return result;\n}", "title": "" }, { "docid": "3627616b8de70270bd6cd001e5dfd0aa", "score": "0.6806233", "text": "parseUserOptions() {\n if (!this.options) {\n Object.assign(this.options, this.defaultOptions);\n } else {\n try {\n eval('this.options='+this.options+';');\n\n Object.assign(this.options, Object.assign({}, this.defaultOptions, this.options));\n } catch(e) {\n console.error(e.message);\n }\n }\n }", "title": "" }, { "docid": "ff7789bafaeaa09a78ff9f3186e79950", "score": "0.6628298", "text": "function Options() {\r\n }", "title": "" }, { "docid": "f89a40e39884ef880c575b5f2796fc67", "score": "0.66269594", "text": "function options(o) {\n return pollinate(o.hasOwnProperty('harp') ? o : { harp: o }).harp;\n}", "title": "" }, { "docid": "560104d0a477669b16f90c3c6c6e3359", "score": "0.6589086", "text": "function options(o, k, a, i) {\n if(k==='--help') o.help = true;\n else if(k==='-l' || k==='--log') o.log = true;\n else if(k==='-o' || k==='--output') o.output = a[++i];\n else if(k==='-a' || k==='--audio') o.audio = a[++i];\n else if(k==='-i' || k==='--image') o.image = a[++i];\n else if(k==='-ol' || k==='--loop') o.loop = parseInt(a[++i], 10);\n else if(k==='-of' || k==='--framerate') o.framerate = parseFloat(a[++i]);\n else if(k==='-ov' || k==='--vcodec') o.vcodec = a[++i];\n else if(k==='-oc' || k==='--crf') o.crf = a[++i];\n else if(k==='-op' || k==='--preset') o.preset = a[++i];\n else if(k==='-ot' || k==='--tune') o.tune = a[++i];\n else if(k==='-oa' || k==='--acodec') o.acodec = a[++i];\n else if(k==='-rx' || k==='--resizex') o.resizeX = parseFloat(a[++i]);\n else if(k==='-ry' || k==='--resizey') o.resizeY = parseFloat(a[++i]);\n else if(k==='-fx' || k==='--fitx') o.fitX = parseFloat(a[++i]);\n else if(k==='-fy' || k==='--fity') o.fitY = parseFloat(a[++i]);\n else o.input = a[i];\n return i+1;\n}", "title": "" }, { "docid": "d490a983c4510e8c90d21a8343517b16", "score": "0.6531242", "text": "function getOptions(opts){var options={};for(var key in defaultOptions){options[key]=opts&&key in opts?opts[key]:defaultOptions[key];}return options;}", "title": "" }, { "docid": "91bfd811dc91659b77422b06b55036e2", "score": "0.651992", "text": "getOptions () {\n return typeof this.options === 'object' ? extendDefaults(this.defaults, this.options) : this.defaults\n }", "title": "" }, { "docid": "5d478ba1d8b30a1c4a9be869fe2b9825", "score": "0.65105844", "text": "function options(args) {\n return { filter : args['--filter']\n , reporter : args['--reporter']\n , slow : args['--slow']\n , timeout : args['--timeout']\n }\n}", "title": "" }, { "docid": "6ec876bbc15d64acbeefdb46882ef766", "score": "0.6496399", "text": "constructor(options) {\n var args = [...arguments];\n this.options = (args.length > 0 && typeof args.slice(-1)[0] === 'object') ? args.pop() : undefined;\n this.setOptions(this.options);\n }", "title": "" }, { "docid": "d21f9ca5b8a981da558a8a63fda56929", "score": "0.64741546", "text": "function restore_options() {\n\n}", "title": "" }, { "docid": "e244647dd7018276a4da5db286de32ff", "score": "0.6455128", "text": "function refactorOptions(options) {\n options = options || {};\n options.countries = options.countries || {};\n \n if (options.AddressCompleteCountryByIP) options.setCountryByIP = !!options.AddressCompleteCountryByIP;\n if (options.AddressCompleteDefaultLanguage) options.culture = options.AddressCompleteDefaultLanguage;\n if (options.AddressCompleteDefaultCountry) options.countries.defaultCode = options.AddressCompleteDefaultCountry;\n if (options.AddressCompleteCountryList) options.countries.codesList = options.AddressCompleteCountryList;\n\n //set defaults\n options.setCursor = true;\n options.prompt = true;\n options.promptDelay = 0;\n options.manualEntry = true;\n\n //allow overriding of options\n addresscomplete.fire(\"options\", options);\n\n return options;\n }", "title": "" }, { "docid": "637a5b7f19d0edfc0ce6690abaeb3558", "score": "0.6413727", "text": "function options(o, k, a, i) {\n o.query = o.query||'';\n if (k==='--silent') o.silent = true;\n else if (k==='-l' || k==='--long') o.long = true;\n else if (k==='--json') o.json = true;\n else if (k==='--parseable') o.parseable = true;\n else if (k==='--no-description') o.description = false;\n else if (k==='--searchopts') o.searchopts = a[++i];\n else if (k==='--searchexclude') o.searchexclude = a[++i];\n else if (k==='--searchstaleness') o.searchstaleness = parseInt(a[++i], 10);\n else if (k==='--limit') o.limit = parseInt(a[++i], 10);\n else if (k==='--offset') o.offset = parseInt(a[++i], 10);\n else if (k==='--detailed') o.detailed = true;\n else if (k==='--sortby') o.sortBy = a[++i];\n else if (k==='--ascending') o.ascending = true;\n else if (k==='--fields') o.fields = a[++i];\n else o.query += a[i]+' ';\n return i+1;\n}", "title": "" }, { "docid": "2b7ebe7d21397a50a1118dbd1ee2d095", "score": "0.640733", "text": "function handleOptions(options, data) {\n let result = setDefaults({\n launch: launch,\n viewport: viewport\n inject = {}\n }, options);\n\n result = overrideDefaults(result, data);\n result.inject = {\n script: handleInjections(result.inject.script, data.inject.script)\n style: handleInjections(result.inject.style, data.inject.style)\n }\n\n return result\n}", "title": "" }, { "docid": "60af33666ac13206e5e9209a7aae5802", "score": "0.64035296", "text": "function getOption() {\n\t\tvar options = {\n\t\t\theight: '100%',\n\t\t\twidth: '100%',\n\t\t\tedges: {\n\t\t\t\tarrows: 'to',\n\t\t\t\tphysics: false,\n\t\t\t\tsmooth: {\n\t\t\t\t\tenabled: false,\n\t\t\t\t}\n\n\t\t\t},\n\t\t\tphysics: {\n\t\t\t\tenabled: true,\n\t\t\t\tstabilization: {\n\t\t\t\t\tenabled: true,\n\t\t\t\t},\n\t\t\t\trepulsion: {\n\t\t\t\t\tnodeDistance: 400,\n\t\t\t\t}\n\t\t\t},\n\t\t\tnodes: {\n\t\t\t\tfixed: {\n\t\t\t\t\tx: false,\n\t\t\t\t\ty: false,\n\t\t\t\t},\n\t\t\t\t//shape: 'box',\n\t\t\t\tfont: {\n\t\t\t\t\tsize: 10,\n\t\t\t\t},\n\t\t\t\tbrokenImage: DIR + \"notfound.png\"\n\t\t\t},\n\t\t};\n\t\treturn options;\n\t}", "title": "" }, { "docid": "bcfc948a2c8f72740681a76dd98c68e7", "score": "0.639963", "text": "function normalize(options, opts) {\n opts = opts || {};\n var rawOptions = Object.assign({}, options);\n var supportOptions = getSupportInfo$1(null, {\n plugins: options.plugins,\n showUnreleased: true,\n showDeprecated: true\n }).options;\n var defaults = supportOptions.reduce(function (reduced, optionInfo) {\n return optionInfo.default !== undefined ? Object.assign(reduced, {\n [optionInfo.name]: optionInfo.default\n }) : reduced;\n }, Object.assign({}, hiddenDefaults));\n\n if (!rawOptions.parser) {\n if (!rawOptions.filepath) {\n var logger = opts.logger || console;\n logger.warn(\"No parser and no filepath given, using 'babylon' the parser now \" + \"but this will throw an error in the future. \" + \"Please specify a parser or a filepath so one can be inferred.\");\n rawOptions.parser = \"babylon\";\n } else {\n rawOptions.parser = inferParser(rawOptions.filepath, rawOptions.plugins);\n\n if (!rawOptions.parser) {\n throw new UndefinedParserError(`No parser could be inferred for file: ${rawOptions.filepath}`);\n }\n }\n }\n\n var parser$$1 = resolveParser(optionsNormalizer.normalizeApiOptions(rawOptions, [supportOptions.find(function (x) {\n return x.name === \"parser\";\n })], {\n passThrough: true,\n logger: false\n }));\n rawOptions.astFormat = parser$$1.astFormat;\n rawOptions.locEnd = parser$$1.locEnd;\n rawOptions.locStart = parser$$1.locStart;\n var plugin = getPlugin(rawOptions);\n rawOptions.printer = plugin.printers[rawOptions.astFormat];\n var pluginDefaults = supportOptions.filter(function (optionInfo) {\n return optionInfo.pluginDefaults && optionInfo.pluginDefaults[plugin.name];\n }).reduce(function (reduced, optionInfo) {\n return Object.assign(reduced, {\n [optionInfo.name]: optionInfo.pluginDefaults[plugin.name]\n });\n }, {});\n var mixedDefaults = Object.assign({}, defaults, pluginDefaults);\n Object.keys(mixedDefaults).forEach(function (k) {\n if (rawOptions[k] == null) {\n rawOptions[k] = mixedDefaults[k];\n }\n });\n\n if (rawOptions.parser === \"json\") {\n rawOptions.trailingComma = \"none\";\n }\n\n return optionsNormalizer.normalizeApiOptions(rawOptions, supportOptions, Object.assign({\n passThrough: Object.keys(hiddenDefaults)\n }, opts));\n}", "title": "" }, { "docid": "57fb6df80711e033a000204775280571", "score": "0.63697296", "text": "function normalize$2(options, opts) {\n opts = opts || {};\n\n var rawOptions = Object.assign({}, options);\n\n var plugins = loadPlugins_1(rawOptions.plugins);\n rawOptions.plugins = plugins;\n\n var supportOptions = getSupportInfo$2(null, {\n plugins: plugins,\n pluginsLoaded: true,\n showUnreleased: true,\n showDeprecated: true\n }).options;\n var defaults = supportOptions.reduce(function (reduced, optionInfo) {\n var _Object$assign3;\n\n return Object.assign(reduced, (_Object$assign3 = {}, _Object$assign3[optionInfo.name] = optionInfo['default'], _Object$assign3));\n }, Object.assign({}, hiddenDefaults));\n\n if (opts.inferParser !== false) {\n if (rawOptions.filepath && (!rawOptions.parser || rawOptions.parser === defaults.parser)) {\n var inferredParser = inferParser(rawOptions.filepath, rawOptions.plugins);\n if (inferredParser) {\n rawOptions.parser = inferredParser;\n }\n }\n }\n\n var parser = resolveParser(!rawOptions.parser ? rawOptions : // handle deprecated parsers\n optionsNormalizer.normalizeApiOptions(rawOptions, [supportOptions.find(function (x) {\n return x.name === \"parser\";\n })], { passThrough: true, logger: false }));\n rawOptions.astFormat = parser.astFormat;\n rawOptions.locEnd = parser.locEnd;\n rawOptions.locStart = parser.locStart;\n\n var plugin = getPlugin_1(rawOptions);\n rawOptions.printer = plugin.printers[rawOptions.astFormat];\n\n var pluginDefaults = supportOptions.filter(function (optionInfo) {\n return optionInfo.pluginDefaults && optionInfo.pluginDefaults[plugin.name];\n }).reduce(function (reduced, optionInfo) {\n var _Object$assign4;\n\n return Object.assign(reduced, (_Object$assign4 = {}, _Object$assign4[optionInfo.name] = optionInfo.pluginDefaults[plugin.name], _Object$assign4));\n }, {});\n\n var mixedDefaults = Object.assign({}, defaults, pluginDefaults);\n\n Object.keys(mixedDefaults).forEach(function (k) {\n if (rawOptions[k] == null) {\n rawOptions[k] = mixedDefaults[k];\n }\n });\n\n if (rawOptions.parser === \"json\") {\n rawOptions.trailingComma = \"none\";\n }\n\n return optionsNormalizer.normalizeApiOptions(rawOptions, supportOptions, Object.assign({ passThrough: Object.keys(hiddenDefaults) }, opts));\n}", "title": "" }, { "docid": "77f153d88550f834945517412efd9f0a", "score": "0.6339956", "text": "function mkStdOptions() {\n var h = Object.prototype.hasOwnProperty;\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (devDebug > 3) {\n Jison.print('mkStdOptions:\\n', args);\n }\n\n var opts = {};\n //var args = Array.prototype.concat.apply([], args);\n // clone defaults, so we do not modify those constants?\n if (args[0] !== \"NODEFAULT\") {\n args.unshift(Jison.defaultJisonOptions);\n } else {\n args.shift();\n }\n\n for (var i = 0, len = args.length; i < len; i++) {\n var o = args[i];\n if (!o) continue;\n\n // clone input (while camel-casing the options), so we do not modify those either.\n var o2 = {};\n\n for (var p in o) {\n if (typeof o[p] !== 'undefined' && h.call(o, p)) {\n o2[mkIdentifier(p)] = o[p];\n }\n }\n\n // now clean them options up:\n if (typeof o2.main !== 'undefined') {\n o2.noMain = !o2.main;\n }\n\n if (typeof o2.noDefaultAction !== 'undefined') {\n throw new Error('option \"no-default-action\" has been OBSOLETED. Use \"default-action-mode=[for-value,for-location]\" instead (see \\'jison --help\\' for usage description).');\n }\n if (typeof o2.defaultAction !== 'undefined') {\n throw new Error('option \"default-action\" has been OBSOLETED. Use \"default-action-mode=[for-value,for-location]\" instead (see \\'jison --help\\' for usage description).');\n }\n if (typeof o2.hasDefaultResolve !== 'undefined') {\n o2.noDefaultResolve = !o2.hasDefaultResolve;\n }\n switch (_typeof(o2.defaultActionMode)) {\n case 'undefined':\n break;\n\n case 'object':\n if (typeof o2.defaultActionMode.slice === 'function') {\n // make a copy of `defaultActionMode` to ensure the default source cannot be mutated through this `opts` instance:\n o2.defaultActionMode = o2.defaultActionMode.slice(0);\n break;\n }\n // fall through\n case 'string':\n var a = String(o2.defaultActionMode).split(',').map(function (m) {\n return m.trim();\n });\n if (a.length === 1) {\n a[1] = a[0];\n }\n o2.defaultActionMode = a;\n break;\n\n default:\n throw new Error('option \"default-action-mode\" must be a STRING or 2-element ARRAY value, when specified (see \\'jison --help\\' for usage description).');\n }\n\n if (typeof o2.hasTryCatch !== 'undefined') {\n o2.noTryCatch = !o2.hasTryCatch;\n }\n if (typeof o2.parserType !== 'undefined') {\n o2.type = o2.parserType;\n }\n if (typeof o2.moduleType !== 'undefined') {\n switch (o2.moduleType) {\n case 'js':\n case 'amd':\n case 'es':\n case 'commonjs':\n break;\n\n // aliases a la `rollup` c.s.:\n case 'cjs':\n o2.moduleType = 'commonjs';\n break;\n\n case 'iife':\n o2.moduleType = 'js';\n break;\n\n case 'umd':\n o2.moduleType = 'amd';\n break;\n\n default:\n throw new Error('unsupported moduleType: ' + dquote(opt.moduleType));\n }\n }\n\n if (o2.errorRecoveryTokenDiscardCount != null) {\n if (typeof o2.errorRecoveryTokenDiscardCount !== 'number') {\n throw new Error('options.errorRecoveryTokenDiscardCount should be a number or undefined; instead it has type: ' + _typeof(o2.errorRecoveryTokenDiscardCount));\n }\n }\n\n delete o2.parserType;\n delete o2.main;\n delete o2.hasDefaultResolve;\n delete o2.hasTryCatch;\n delete o2.noDefaultAction;\n\n // special check for `moduleName` to ensure we detect the 'default' moduleName entering from the CLI\n // NOT overriding the moduleName set in the grammar definition file via an `%options` entry:\n if (o2.moduleName === o2.defaultModuleName) {\n delete o2.moduleName;\n }\n\n // now see if we have an overriding option here:\n for (var p in o2) {\n if (h.call(o2, p)) {\n if (typeof o2[p] !== 'undefined') {\n opts[p] = o2[p];\n }\n }\n }\n }\n\n if (devDebug > 3) {\n Jison.print('GENERATE::OPTIONS: RESULTING OPTIONS SET\\n', opts);\n }\n\n return opts;\n}", "title": "" }, { "docid": "2f35b78bd7919ac233987c09fd22c4be", "score": "0.6337145", "text": "function defaultOptions(options) {\n return _.extend({\n toJSON: OPTIONS,\n toObject: OPTIONS\n }, options);\n}", "title": "" }, { "docid": "abccdf13e856bccd6ad83acafe81b4ed", "score": "0.62994796", "text": "function getOptions(options){\n // TODO: move to argv module that provides documentation\n const argv = require('minimist')(process.argv.slice(2))\n\n if (options === undefined) options = {}\n\n // Handle common runtime overrides\n const cliOptions = {\n port: argv.p,\n appName: argv.n,\n collectStats: argv['collect-stats'],\n maxListeners: argv['max-listeners']\n }\n\n // Handle environment variables\n const environmentOptions = {\n port: process.env.PORT,\n appName: process.env.APP_NAME,\n collectStats: process.env.COLLECT_STATS,\n maxListeners: process.env.MAX_LISTENERS,\n protocol: process.env.PROTOCOL\n }\n\n // Make sure necessary options are in place\n const defaultOptions = {\n port: 3000,\n collectStats: false,\n protocol: 'http'\n }\n\n _.defaults(options, cliOptions, environmentOptions, defaultOptions)\n\n // Make sure types are valid\n options.port = Number(options.port)\n options.maxListeners = Number(options.maxListeners)\n\n return options\n}", "title": "" }, { "docid": "1c9e799f14ec3afade94c5e1a965048f", "score": "0.6291717", "text": "function parse_opt(callback) {\n\tchrome.runtime.sendMessage({\n\t\ttype: \"getOptionsHabr\",\n\t}, function(options) {\n\t\t//console.log('Parse Options',options);\n\t\tOPTIONS = options;\n\t\tcallback();\n\t});\n}", "title": "" }, { "docid": "3e92dca41246a34802b6807b836120f5", "score": "0.6278904", "text": "setOptions(options) {\n if (typeof options === 'object') {\n Object.keys(options)\n .forEach((key) => {\n if (Object.prototype.hasOwnProperty.call(key)) {\n this._options[key] = options[key];\n }\n });\n }\n }", "title": "" }, { "docid": "babe7ec353358156ae708acd07bdf475", "score": "0.6277857", "text": "set options(options) {\n this._options = options\n }", "title": "" }, { "docid": "db3048a063133c4aacc0fef21b7aea19", "score": "0.6252", "text": "_getOptions() {\n let options = {};\n return options;\n }", "title": "" }, { "docid": "1d07540248c933773c7668d9ba05dc4b", "score": "0.62452424", "text": "function getOptions(options = {}) {\n const body = {\n functions: {},\n emitter: {\n on: function () {},\n },\n };\n\n const nodesHandler = new NodesHandler(\n body,\n {},\n options,\n new DummyLayoutEngine()\n );\n //console.log(JSON.stringify(nodesHandler.options, null, 2));\n\n return nodesHandler.options;\n }", "title": "" }, { "docid": "52656ee8483c6cf8c5df04c717a7639d", "score": "0.6224277", "text": "function getOptions(opts) {\n const options = {};\n\n for (const key in defaultOptions) {\n options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];\n }\n\n return options;\n} // ## Token types", "title": "" }, { "docid": "4f05d349fce16913955e314ddeed399a", "score": "0.62176085", "text": "function init(options) {\n var options = $.extend(defaults, options);\n }", "title": "" }, { "docid": "85a7a79e45f86cd639a54afcca44a58b", "score": "0.6213351", "text": "function generalOptions(args, entry) {\n let jc = false,\n reloading = false,\n valence = false,\n port = false,\n serve = false\n\n// Set hmr option....\n// Determine if hmr flag is set....\n if (args.R || args.hotmod)\n// Set the variable for the options obj....\n reloading = true\n\n// Set jc option....\n/// Determine if jc flag is set....\n if (args.j && args.c || args.lord)\n// Set the variable for the options obj....\n jc = true\n\n// Set the 'valence' option\n// Get a the file string from the entry file path....\n // log('ENTRY', 'magenta');log(entry)\n let entryCode = fs.readFileSync(entry)\n// Check the entry file for Valence.js code.......\n if (\n /valencejs/.test(entryCode) &&\n /Valence/.test(entryCode)\n// Set valence.....\n ) valence = true\n\n// If we have either the --port or -p flags...\n if (args.port || args.p)\n// Set the port option...\n port = args.port ? args.port : args.p\n\n\n/// If we have either the --serve or -s flags...\n if (args.serve || args.s)\n// Set the serve option...\n serve = args.serve ? args.serve : args.s\n\n\n// Return all needed values in object....\n return {\n jc: jc,\n reloading: reloading,\n valence: valence,\n port: port,\n serve: serve\n }\n }", "title": "" }, { "docid": "52e05c6b8b75fd8a94961568c123831b", "score": "0.620469", "text": "_getOptions(options = {}) {\n return Object.assign({}, options, { serverSettings: this.serverSettings });\n }", "title": "" }, { "docid": "2f5284493e794bd03d84696641a98f59", "score": "0.6184844", "text": "function ExtraOptions() { }", "title": "" }, { "docid": "95452b30339b945864e13b5109179d1a", "score": "0.6181982", "text": "function getOptions(options) {\n var prefix = randomString();\n return __assign({ noBranchClass: '${prefix}-no-branch', label: prefix + \"-label\", labelMain: prefix + \"-label-main\", labelNonRoot: prefix + \"-label-non-root\", labelLastChild: prefix + \"-label-last-child\", labelLine: prefix + \"-label-line\", children: prefix + \"-children\", liLastChild: prefix + \"-tree-li-last-child\", liNoForwardSibling: prefix + \"-label-no-forward-sibling\", indentTree: '1em', indentChildren: '3em', labelTopPadding: '0.2em' }, options);\n}", "title": "" }, { "docid": "5fcac99f69cdd2c95994719b84399945", "score": "0.6180447", "text": "function margeOptions() {\n var optionsList = Array.prototype.slice.call(arguments),\n optionNames,\n fromDefault;\n\n if (optionsList.length && typeof optionsList[0] === 'boolean') {\n fromDefault = optionsList.shift();\n if (fromDefault) {\n optionNames = Object.keys(defaultOptions);\n optionsList.unshift(defaultOptions);\n }\n }\n\n return optionsList.reduce(function (options, optionsPart) {\n if (optionsPart == null) {\n return options;\n }\n\n // ======== DEPRECATED ========\n if (optionsPart.hasOwnProperty('noEchoBack') && !optionsPart.hasOwnProperty('hideEchoBack')) {\n optionsPart.hideEchoBack = optionsPart.noEchoBack;\n delete optionsPart.noEchoBack;\n }\n if (optionsPart.hasOwnProperty('noTrim') && !optionsPart.hasOwnProperty('keepWhitespace')) {\n optionsPart.keepWhitespace = optionsPart.noTrim;\n delete optionsPart.noTrim;\n }\n // ======== /DEPRECATED ========\n\n if (!fromDefault) {\n optionNames = Object.keys(optionsPart);\n }\n optionNames.forEach(function (optionName) {\n var value;\n if (!optionsPart.hasOwnProperty(optionName)) {\n return;\n }\n value = optionsPart[optionName];\n switch (optionName) {\n // _readlineSync <- * * -> defaultOptions\n // ================ string\n case 'mask': // * *\n case 'limitMessage': // *\n case 'defaultInput': // *\n case 'encoding':\n // * *\n value = value != null ? value + '' : '';\n if (value && optionName !== 'limitMessage') {\n value = value.replace(/[\\r\\n]/g, '');\n }\n options[optionName] = value;\n break;\n // ================ number(int)\n case 'bufferSize':\n // * *\n if (!isNaN(value = parseInt(value, 10)) && typeof value === 'number') {\n options[optionName] = value; // limited updating (number is needed)\n }\n break;\n // ================ boolean\n case 'displayOnly': // *\n case 'keyIn': // *\n case 'hideEchoBack': // * *\n case 'caseSensitive': // * *\n case 'keepWhitespace': // * *\n case 'history': // *\n case 'cd':\n // *\n options[optionName] = !!value;\n break;\n // ================ array\n case 'limit': // * * to string for readlineExt\n case 'trueValue': // *\n case 'falseValue':\n // *\n options[optionName] = flattenArray(value, function (value) {\n var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);\n return type === 'string' || type === 'number' || type === 'function' || value instanceof RegExp;\n }).map(function (value) {\n return typeof value === 'string' ? value.replace(/[\\r\\n]/g, '') : value;\n });\n break;\n // ================ function\n case 'print': // * *\n case 'phContent': // *\n case 'preCheck':\n // *\n options[optionName] = typeof value === 'function' ? value : void 0;\n break;\n // ================ other\n case 'prompt': // *\n case 'display':\n // *\n options[optionName] = value != null ? value : '';\n break;\n // no default\n }\n });\n return options;\n }, {});\n}", "title": "" }, { "docid": "5ab4fe0dbea84d3f781bd89302f42010", "score": "0.61666334", "text": "function getBundleOptions(options) {\n let data = getData(options.value);\n let metadata = getMetadata(options.value);\n let trusted = !!options.trusted;\n return { data, metadata, trusted };\n }", "title": "" }, { "docid": "be8113789fa73d8558b7346e55112105", "score": "0.6150064", "text": "function getOptions(args, base) {\n var opt;\n if (args.length == 2) {\n opt = {\n vs: args[0],\n fs: args[1]\n };\n } else {\n opt = args[0] || {};\n }\n return $.merge(base || {}, opt);\n }", "title": "" }, { "docid": "a1f911be3191afe5c3c509c3a4fc19e2", "score": "0.6143177", "text": "function updateThisOptionsObject() {\r\n if (arguments[0] && typeof arguments[0] === \"object\") {\r\n var args = arguments[0];\r\n for (var arg in arguments[0]) {\r\n if (args.hasOwnProperty(arg) && defaults.hasOwnProperty(arg)) {\r\n defaults[arg] = args[arg];\r\n }\r\n }\r\n }\r\n this.options = defaults;\r\n }", "title": "" }, { "docid": "064fa2c59c54b4a9124dae3ba7db134b", "score": "0.6132947", "text": "parseOpts(msg, prog) {\n return {};\n }", "title": "" }, { "docid": "18b56bdbbd10de98c52f9f0f9b3fb107", "score": "0.6128391", "text": "static getMirrorOptions(options = {}) {\n return Object.assign({\n origLeft: undefined,\n value: '',\n orig: '',\n\n connect: null,\n mode: '',\n lineNumbers: true,\n revertButtons: true,\n showDifferences: true,\n highlightDifferences: true,\n collapseIdentical: false,\n allowEditingOriginals: true\n }, options)\n }", "title": "" }, { "docid": "768e5ac659ce7f9e4f131a725e492d1c", "score": "0.612663", "text": "setOptions () {\n // Set options on this instance using clArgs (command-line-args)\n this.options = clArgs(this.settings.optionDefinitions)\n }", "title": "" }, { "docid": "7e9067298b521197fe314b51fd725f75", "score": "0.6105243", "text": "function defaultOptions(options) {\n\treturn defaults({}, options, module.exports.defaults);\n}", "title": "" }, { "docid": "b0b215fdeaa197fe39fbfcca806a7270", "score": "0.6105212", "text": "function Options(data) {\n this.style = void 0;\n this.color = void 0;\n this.size = void 0;\n this.textSize = void 0;\n this.phantom = void 0;\n this.font = void 0;\n this.fontFamily = void 0;\n this.fontWeight = void 0;\n this.fontShape = void 0;\n this.sizeMultiplier = void 0;\n this.maxSize = void 0;\n this.minRuleThickness = void 0;\n this._fontMetrics = void 0;\n this.style = data.style;\n this.color = data.color;\n this.size = data.size || Options.BASESIZE;\n this.textSize = data.textSize || this.size;\n this.phantom = !!data.phantom;\n this.font = data.font || \"\";\n this.fontFamily = data.fontFamily || \"\";\n this.fontWeight = data.fontWeight || '';\n this.fontShape = data.fontShape || '';\n this.sizeMultiplier = sizeMultipliers[this.size - 1];\n this.maxSize = data.maxSize;\n this.minRuleThickness = data.minRuleThickness;\n this._fontMetrics = undefined;\n }", "title": "" }, { "docid": "b0b215fdeaa197fe39fbfcca806a7270", "score": "0.6105212", "text": "function Options(data) {\n this.style = void 0;\n this.color = void 0;\n this.size = void 0;\n this.textSize = void 0;\n this.phantom = void 0;\n this.font = void 0;\n this.fontFamily = void 0;\n this.fontWeight = void 0;\n this.fontShape = void 0;\n this.sizeMultiplier = void 0;\n this.maxSize = void 0;\n this.minRuleThickness = void 0;\n this._fontMetrics = void 0;\n this.style = data.style;\n this.color = data.color;\n this.size = data.size || Options.BASESIZE;\n this.textSize = data.textSize || this.size;\n this.phantom = !!data.phantom;\n this.font = data.font || \"\";\n this.fontFamily = data.fontFamily || \"\";\n this.fontWeight = data.fontWeight || '';\n this.fontShape = data.fontShape || '';\n this.sizeMultiplier = sizeMultipliers[this.size - 1];\n this.maxSize = data.maxSize;\n this.minRuleThickness = data.minRuleThickness;\n this._fontMetrics = undefined;\n }", "title": "" }, { "docid": "11e205a9d204d6b5bc96abdd3d12bdff", "score": "0.60700303", "text": "function optionsFromStrings(options){\n\tvar intOptions = [\n\t\t\"width\",\n\t\t\"height\",\n\t\t\"textMargin\",\n\t\t\"fontSize\",\n\t\t\"margin\",\n\t\t\"marginTop\",\n\t\t\"marginBottom\",\n\t\t\"marginLeft\",\n\t\t\"marginRight\"\n\t];\n\n\tfor(var intOption in intOptions){\n\t\tif(intOptions.hasOwnProperty(intOption)){\n\t\t\tintOption = intOptions[intOption];\n\t\t\tif(typeof options[intOption] === \"string\"){\n\t\t\t\toptions[intOption] = parseInt(options[intOption], 10);\n\t\t\t}\n\t\t}\n\t}\n\n\tif(typeof options[\"displayValue\"] === \"string\"){\n\t\toptions[\"displayValue\"] = (options[\"displayValue\"] != \"false\");\n\t}\n\n\treturn options;\n}", "title": "" }, { "docid": "66928e498e366d63725ba8b77f98a114", "score": "0.6050004", "text": "function getOptions() {\n\treturn defaultOptions;\n}", "title": "" }, { "docid": "66928e498e366d63725ba8b77f98a114", "score": "0.6050004", "text": "function getOptions() {\n\treturn defaultOptions;\n}", "title": "" }, { "docid": "66928e498e366d63725ba8b77f98a114", "score": "0.6050004", "text": "function getOptions() {\n\treturn defaultOptions;\n}", "title": "" }, { "docid": "2520e83f2f26df2f99bb17abb30b6c75", "score": "0.6047632", "text": "setOptions(options) {\n Object.assign(this.options, options || {});\n return this.options;\n }", "title": "" }, { "docid": "2035bfbc6c9b96d21a6e2cea89301abb", "score": "0.6047264", "text": "function createOptions(options){var object=optionsCache[options]={};return jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=!0}),object}", "title": "" }, { "docid": "34d3d4e39581959b4d98ad4d9baaf343", "score": "0.60412025", "text": "initOptions() {\n this['options'] = this.getOptions();\n\n if (this['options']) {\n // if background color isnt set, set it to current default themes\n this['options'].bodyBG = this['options'].bodyBG || undefined;\n this['options'].headerBG = this['options'].headerBG || undefined;\n }\n }", "title": "" }, { "docid": "7e34e7a5f87601348aef7a164a413d5c", "score": "0.6038268", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}", "title": "" }, { "docid": "7e34e7a5f87601348aef7a164a413d5c", "score": "0.6038268", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}", "title": "" }, { "docid": "7e34e7a5f87601348aef7a164a413d5c", "score": "0.6038268", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}", "title": "" }, { "docid": "319c991c42cf8c751e234fa9e89f3333", "score": "0.6031139", "text": "function normalizeOption(option) {\n if (!option.type) {\n option.type = String;\n }\n if (!option.default) {\n option.default = typeDefaults.get(option.type);\n }\n if (!option.aliases) {\n option.aliases = [];\n }\n return option;\n}", "title": "" }, { "docid": "d114367d7af6aa8bb6038ed881bb4be7", "score": "0.60303634", "text": "init(defaults, opts){\n if(!opts || typeof(opts) == 'undefined'){\n return;\n }\n\n this.mergeOptions(defaults, opts);\n }", "title": "" }, { "docid": "f8ce0af5eee286ce0cb4e2f6fd7308f8", "score": "0.6012304", "text": "function handleOptions(options = {}) {\n let buttons = options.buttons || [Dialog.cancelButton(), Dialog.okButton()];\n let defaultButton = buttons.length - 1;\n if (options.defaultButton !== undefined) {\n defaultButton = options.defaultButton;\n }\n return {\n title: options.title || '',\n body: options.body || '',\n host: options.host || document.body,\n buttons,\n defaultButton,\n renderer: options.renderer || Dialog.defaultRenderer,\n focusNodeSelector: options.focusNodeSelector || ''\n };\n }", "title": "" }, { "docid": "978842d27995b5c15da78e3637679de9", "score": "0.6003233", "text": "function optionsFromStrings(options) {\n\tvar intOptions = [\"width\", \"height\", \"textMargin\", \"fontSize\", \"margin\", \"marginTop\", \"marginBottom\", \"marginLeft\", \"marginRight\"];\n\n\tfor (var intOption in intOptions) {\n\t\tif (intOptions.hasOwnProperty(intOption)) {\n\t\t\tintOption = intOptions[intOption];\n\t\t\tif (typeof options[intOption] === \"string\") {\n\t\t\t\toptions[intOption] = parseInt(options[intOption], 10);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (typeof options[\"displayValue\"] === \"string\") {\n\t\toptions[\"displayValue\"] = options[\"displayValue\"] != \"false\";\n\t}\n\n\treturn options;\n}", "title": "" }, { "docid": "978842d27995b5c15da78e3637679de9", "score": "0.6003233", "text": "function optionsFromStrings(options) {\n\tvar intOptions = [\"width\", \"height\", \"textMargin\", \"fontSize\", \"margin\", \"marginTop\", \"marginBottom\", \"marginLeft\", \"marginRight\"];\n\n\tfor (var intOption in intOptions) {\n\t\tif (intOptions.hasOwnProperty(intOption)) {\n\t\t\tintOption = intOptions[intOption];\n\t\t\tif (typeof options[intOption] === \"string\") {\n\t\t\t\toptions[intOption] = parseInt(options[intOption], 10);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (typeof options[\"displayValue\"] === \"string\") {\n\t\toptions[\"displayValue\"] = options[\"displayValue\"] != \"false\";\n\t}\n\n\treturn options;\n}", "title": "" }, { "docid": "8eaf61ebcef9539eba55754f8037a1a9", "score": "0.59985375", "text": "function optionsSpec(){\n\tvar r = match('OPTIONS');\n\tr.chr = [];\n\tmatch('LBRACE');\n\t\n\twhile(lt(1, 'TOKEN_REF', 'RULE_REF')){\n\t\tr.chr.push(option());\n\t\tmatch('SEMI');\n\t}\n\tmatch('RBRACE');\n\treturn r;\n}", "title": "" }, { "docid": "dd5b8b7df08f9830be0fa463654319c0", "score": "0.59944856", "text": "_validateOptions(options) {\n\t\t// Username\n\t\tconst display = options.display;\n\t\tif (typeof display !== 'string') {\n\t\t\tthis.logger.fatal(`${this.name} command display name \"${display}\" is not a string`, display);\n\t\t}\n\t\tthis.display = options.display;\n\t\t// Examples\n\t\tconst examples = options.examples;\n\t\tif (examples !== null && examples !== undefined && !Array.isArray(examples)) {\n\t\t\tthis.logger.fatal(`${this.name}'s examples must be an array or null`, JSON.stringify(examples));\n\t\t}\n\t\tthis.examples = examples;\n\t\t// Level\n\t\tconst level = options.level;\n\t\tif (typeof level !== 'number' || !util.isLevel(level)) {\n\t\t\tthis.logger.fatal(`${this.name} level must be 0 <= level <= 100`, JSON.stringify(level));\n\t\t}\n\t\tthis.level = level;\n\t\t// Owner only\n\t\tconst ownerOnly = options.ownerOnly;\n\t\tif (typeof ownerOnly !== 'boolean' && ownerOnly !== null) {\n\t\t\tthis.logger.fatal(`${this.name} ownerOnly must be a boolean`, JSON.stringify(ownerOnly));\n\t\t}\n\t\tthis.ownerOnly = ownerOnly;\n\t\t// Description\n\t\tconst description = options.description;\n\t\tif (typeof description !== 'string') {\n\t\t\tthis.logger.fatal(`${this.name} description must be a string`, JSON.stringify(description));\n\t\t}\n\t\tthis.description = description;\n\t\t// Module\n\t\tconst module = options.module;\n\t\t// TODO: make this check if the module is a registered module\n\t\tif (typeof module !== 'string') {\n\t\t\tthis.logger.fatal(`${this.name} module must be a string`, JSON.stringify(module));\n\t\t}\n\t\tthis.module = module;\n\t\t// Aliases\n\t\tconst aliases = options.aliases;\n\t\tif (aliases !== null && !Array.isArray(aliases)) {\n\t\t\tthis.logger.fatal(`${this.name}'s aliases must be an array or null`, JSON.stringify(aliases));\n\t\t}\n\t\tthis.aliases = aliases;\n\t\t// Arguments\n\t\tconst args = options.args;\n\t\t// TODO: Validate this\n\t\tthis.args = args;\n\t\t// Throttling\n\t\tconst throttling = options.throttling;\n\t\t// TODO: Validate this\n\t\tthis.throttling = throttling;\n\t\tthis.logger.trace(`${this.name}: options validated`);\n\t}", "title": "" }, { "docid": "8d95708e5c8079075253868888b95d55", "score": "0.5994266", "text": "function defaultOptions(){\r\n\r\n\tdefault_options = {\r\n\t\t\t\t\t\t\"version\":\"0.9.0\",\r\n\t\t\t\t\t\t\"theme\":null,\r\n\t\t\t\t\t\t\"sharelist\":[],\r\n\t\t\t\t\t\t\"lands\":[0,0,0,0,0,0,0,0,0],\r\n\t\t\t\t\t\t\"DotDplayers\":{\"YepoMax\":true},\r\n\t\t\t\t\t\t\"IGN\":{\"yepomax\":\"Max\"},\r\n\t\t\t\t\t\t\"colorthem\":\"scheckbox\",\r\n\t\t\t\t\t\t\"thechatcolors\":['#AF69FF','#900000'],\r\n\t\t\t\t\t\t\"toolsdisplay\":[0,\"block\",\"none\",\"block\",\"none\"],\r\n\t\t\t\t\t\t\"loadfriends\":\"scheckbox\",\r\n\t\t\t\t\t\t\"cleanK\":\"scheckbox\",\r\n\t\t\t\t\t\t\"hidenews\":\"scheckbox\",\r\n\t\t\t\t\t\t\"largechat\":\"scheckbox\",\r\n\t\t\t\t\t\t\"quickWhisper\":\"\"\r\n\t\t\t\t\t\t}\r\n\t\r\n\treturn default_options;\r\n\r\n}", "title": "" }, { "docid": "38766a925a90adaf8b422da6d8267f28", "score": "0.59890705", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true});return object}", "title": "" }, { "docid": "6f4b63a639230005d69e55e7e58f820c", "score": "0.59852713", "text": "function fromOptions(options) {\n var config = new Config();\n\n var path = config.getSource(options.type, options.configFile);\n var raw = fs.readFileSync(path, 'utf-8');\n\n raw = gsub(raw, config.ANCHORS.user, options.username);\n raw = gsub(raw, config.ANCHORS.url, options.target);\n\n config.rawAdvanced = raw;\n config.wordlist = options.wordlist;\n config.concurrency = options.concurrency; \n\n return config;\n}", "title": "" }, { "docid": "2458883db7bd66b3f4695d72d4512775", "score": "0.5982208", "text": "static custom(options) {\n }", "title": "" }, { "docid": "bf5b30bbfda7b32b104342cee8f68bbb", "score": "0.59781444", "text": "function DOL_setDefaultOptions() {\n\tif (this.currentNode==null) { this.currentNode = this; }\n\tfor (var i=0; i<arguments.length; i++) {\n\t\tvar o = this.findMatchingOptionInArray(this.currentNode.options,null,arguments[i],false);\n\t\tif (o!=null) {\n\t\t\to.defaultSelected = true;\n\t\t}\n\t}\n\tthis.currentNode = null;\n}", "title": "" }, { "docid": "645de4844a210bc6e36abbb8059158e9", "score": "0.5967154", "text": "function normalize(options) {\n options = options || defaults;\n function get(key) {\n return hasOwn.call(options, key) ? options[key] : defaults[key];\n }\n return {\n tabWidth: +get(\"tabWidth\"),\n useTabs: !!get(\"useTabs\"),\n reuseWhitespace: !!get(\"reuseWhitespace\"),\n wrapColumn: Math.max(get(\"wrapColumn\"), 0),\n sourceFileName: get(\"sourceFileName\"),\n sourceMapName: get(\"sourceMapName\"),\n sourceRoot: get(\"sourceRoot\"),\n inputSourceMap: get(\"inputSourceMap\"),\n esprima: get(\"esprima\"),\n range: get(\"range\"),\n tolerant: get(\"tolerant\")\n };\n }", "title": "" }, { "docid": "c9f67045596f95439e6030cb87e512b5", "score": "0.59666", "text": "cleanOptions() {\n let defaultOptions = {\n environmentVariables: false,\n key: undefined,\n specs: undefined,\n specsSuffix: _1.ConfigsConstants.SpecsSuffix,\n suffix: _1.ConfigsConstants.Suffix,\n verbose: true,\n };\n this._options = includes_1.Tools.DeepMergeObjects(defaultOptions, this._options);\n }", "title": "" }, { "docid": "9938a80be346a3a751b646376f155e87", "score": "0.59645575", "text": "function getOptions() {\n\t\t\treturn defaultOptions;\n\t\t}", "title": "" }, { "docid": "9d76df10ca1e4698c643fe9aadc72846", "score": "0.59628695", "text": "get options() {\n return this._options;\n }", "title": "" }, { "docid": "ba926f0e30b092fa2a50debb09e85292", "score": "0.5952968", "text": "constructor(options) {\n this.options = options || {};\n this.config = this.getConfig();\n }", "title": "" }, { "docid": "273dccc3e78b82079a803711a8c56b07", "score": "0.59514165", "text": "function createOptions( options ) {\n var object = {};\n jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n object[ flag ] = true;\n } );\n return object;\n }", "title": "" }, { "docid": "54644cfb182f5156ed0b3e5f1394e93c", "score": "0.5944794", "text": "function getOptions() {\n askLower();\n askUpper();\n askNumbers();\n askSpecial();\n return options;\n}", "title": "" }, { "docid": "8b1944519960258ff7fd2cf5c982c14d", "score": "0.59436965", "text": "function testOptions(options) {\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n ariaFormat: defaultFormatter,\n format: defaultFormatter\n };\n // Tests are executed in the order they are presented here.\n var tests = {\n step: { r: false, t: testStep },\n keyboardPageMultiplier: { r: false, t: testKeyboardPageMultiplier },\n keyboardDefaultStep: { r: false, t: testKeyboardDefaultStep },\n start: { r: true, t: testStart },\n connect: { r: true, t: testConnect },\n direction: { r: true, t: testDirection },\n snap: { r: false, t: testSnap },\n animate: { r: false, t: testAnimate },\n animationDuration: { r: false, t: testAnimationDuration },\n range: { r: true, t: testRange },\n orientation: { r: false, t: testOrientation },\n margin: { r: false, t: testMargin },\n limit: { r: false, t: testLimit },\n padding: { r: false, t: testPadding },\n behaviour: { r: true, t: testBehaviour },\n ariaFormat: { r: false, t: testAriaFormat },\n format: { r: false, t: testFormat },\n tooltips: { r: false, t: testTooltips },\n keyboardSupport: { r: true, t: testKeyboardSupport },\n documentElement: { r: false, t: testDocumentElement },\n cssPrefix: { r: true, t: testCssPrefix },\n cssClasses: { r: true, t: testCssClasses }\n };\n var defaults = {\n connect: false,\n direction: \"ltr\",\n behaviour: \"tap\",\n orientation: \"horizontal\",\n keyboardSupport: true,\n cssPrefix: \"noUi-\",\n cssClasses: cssClasses,\n keyboardPageMultiplier: 5,\n keyboardDefaultStep: 10\n };\n // AriaFormat defaults to regular format, if any.\n if (options.format && !options.ariaFormat) {\n options.ariaFormat = options.format;\n }\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function (name) {\n // If the option isn't set, but it is required, throw an error.\n if (!isSet(options[name]) && defaults[name] === undefined) {\n if (tests[name].r) {\n throw new Error(\"noUiSlider (\" + VERSION + \"): '\" + name + \"' is required.\");\n }\n return true;\n }\n tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);\n });\n // Forward pips options\n parsed.pips = options.pips;\n // All recent browsers accept unprefixed transform.\n // We need -ms- for IE9 and -webkit- for older Android;\n // Assume use of -webkit- if unprefixed and -ms- are not supported.\n // https://caniuse.com/#feat=transforms2d\n var d = document.createElement(\"div\");\n var msPrefix = d.style.msTransform !== undefined;\n var noPrefix = d.style.transform !== undefined;\n parsed.transformRule = noPrefix ? \"transform\" : msPrefix ? \"msTransform\" : \"webkitTransform\";\n // Pips don't move, so we can place them using left/top.\n var styles = [[\"left\", \"top\"], [\"right\", \"bottom\"]];\n parsed.style = styles[parsed.dir][parsed.ort];\n return parsed;\n }", "title": "" }, { "docid": "6638e3051fc056aef00b515804b088e6", "score": "0.59434396", "text": "function testOptions(options) {\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n ariaFormat: defaultFormatter,\n format: defaultFormatter\n };\n\n // Tests are executed in the order they are presented here.\n var tests = {\n step: { r: false, t: testStep },\n start: { r: true, t: testStart },\n connect: { r: true, t: testConnect },\n direction: { r: true, t: testDirection },\n snap: { r: false, t: testSnap },\n animate: { r: false, t: testAnimate },\n animationDuration: { r: false, t: testAnimationDuration },\n range: { r: true, t: testRange },\n orientation: { r: false, t: testOrientation },\n margin: { r: false, t: testMargin },\n limit: { r: false, t: testLimit },\n padding: { r: false, t: testPadding },\n behaviour: { r: true, t: testBehaviour },\n ariaFormat: { r: false, t: testAriaFormat },\n format: { r: false, t: testFormat },\n tooltips: { r: false, t: testTooltips },\n keyboardSupport: { r: true, t: testKeyboardSupport },\n documentElement: { r: false, t: testDocumentElement },\n cssPrefix: { r: true, t: testCssPrefix },\n cssClasses: { r: true, t: testCssClasses }\n };\n\n var defaults = {\n connect: false,\n direction: \"ltr\",\n behaviour: \"tap\",\n orientation: \"horizontal\",\n keyboardSupport: true,\n cssPrefix: \"noUi-\",\n cssClasses: {\n target: \"target\",\n base: \"base\",\n origin: \"origin\",\n handle: \"handle\",\n handleLower: \"handle-lower\",\n handleUpper: \"handle-upper\",\n horizontal: \"horizontal\",\n vertical: \"vertical\",\n background: \"background\",\n connect: \"connect\",\n connects: \"connects\",\n ltr: \"ltr\",\n rtl: \"rtl\",\n draggable: \"draggable\",\n drag: \"state-drag\",\n tap: \"state-tap\",\n active: \"active\",\n tooltip: \"tooltip\",\n pips: \"pips\",\n pipsHorizontal: \"pips-horizontal\",\n pipsVertical: \"pips-vertical\",\n marker: \"marker\",\n markerHorizontal: \"marker-horizontal\",\n markerVertical: \"marker-vertical\",\n markerNormal: \"marker-normal\",\n markerLarge: \"marker-large\",\n markerSub: \"marker-sub\",\n value: \"value\",\n valueHorizontal: \"value-horizontal\",\n valueVertical: \"value-vertical\",\n valueNormal: \"value-normal\",\n valueLarge: \"value-large\",\n valueSub: \"value-sub\"\n }\n };\n\n // AriaFormat defaults to regular format, if any.\n if (options.format && !options.ariaFormat) {\n options.ariaFormat = options.format;\n }\n\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function(name) {\n // If the option isn't set, but it is required, throw an error.\n if (!isSet(options[name]) && defaults[name] === undefined) {\n if (tests[name].r) {\n throw new Error(\"noUiSlider (\" + VERSION + \"): '\" + name + \"' is required.\");\n }\n\n return true;\n }\n\n tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);\n });\n\n // Forward pips options\n parsed.pips = options.pips;\n\n // All recent browsers accept unprefixed transform.\n // We need -ms- for IE9 and -webkit- for older Android;\n // Assume use of -webkit- if unprefixed and -ms- are not supported.\n // https://caniuse.com/#feat=transforms2d\n var d = document.createElement(\"div\");\n var msPrefix = d.style.msTransform !== undefined;\n var noPrefix = d.style.transform !== undefined;\n\n parsed.transformRule = noPrefix ? \"transform\" : msPrefix ? \"msTransform\" : \"webkitTransform\";\n\n // Pips don't move, so we can place them using left/top.\n var styles = [[\"left\", \"top\"], [\"right\", \"bottom\"]];\n\n parsed.style = styles[parsed.dir][parsed.ort];\n\n return parsed;\n }", "title": "" }, { "docid": "f5f85b7c5160d1e16eb1db048a50d920", "score": "0.5938438", "text": "useOptions(options, callback) {\n chrome.storage.local.get('settings', items => {\n const settings = items.settings || {};\n callback(settings[options] || false);\n });\n }", "title": "" }, { "docid": "e7d03e378a87c35b035155fce9d3182f", "score": "0.5938377", "text": "function testOptions(options) {\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n ariaFormat: defaultFormatter,\n format: defaultFormatter\n };\n\n // Tests are executed in the order they are presented here.\n var tests = {\n step: { r: false, t: testStep },\n start: { r: true, t: testStart },\n connect: { r: true, t: testConnect },\n direction: { r: true, t: testDirection },\n snap: { r: false, t: testSnap },\n animate: { r: false, t: testAnimate },\n animationDuration: { r: false, t: testAnimationDuration },\n range: { r: true, t: testRange },\n orientation: { r: false, t: testOrientation },\n margin: { r: false, t: testMargin },\n limit: { r: false, t: testLimit },\n padding: { r: false, t: testPadding },\n behaviour: { r: true, t: testBehaviour },\n ariaFormat: { r: false, t: testAriaFormat },\n format: { r: false, t: testFormat },\n tooltips: { r: false, t: testTooltips },\n keyboardSupport: { r: true, t: testKeyboardSupport },\n documentElement: { r: false, t: testDocumentElement },\n cssPrefix: { r: true, t: testCssPrefix },\n cssClasses: { r: true, t: testCssClasses }\n };\n\n var defaults = {\n connect: false,\n direction: \"ltr\",\n behaviour: \"tap\",\n orientation: \"horizontal\",\n keyboardSupport: true,\n cssPrefix: \"noUi-\",\n cssClasses: {\n target: \"target\",\n base: \"base\",\n origin: \"origin\",\n handle: \"handle\",\n handleLower: \"handle-lower\",\n handleUpper: \"handle-upper\",\n touchArea: \"touch-area\",\n horizontal: \"horizontal\",\n vertical: \"vertical\",\n background: \"background\",\n connect: \"connect\",\n connects: \"connects\",\n ltr: \"ltr\",\n rtl: \"rtl\",\n draggable: \"draggable\",\n drag: \"state-drag\",\n tap: \"state-tap\",\n active: \"active\",\n tooltip: \"tooltip\",\n pips: \"pips\",\n pipsHorizontal: \"pips-horizontal\",\n pipsVertical: \"pips-vertical\",\n marker: \"marker\",\n markerHorizontal: \"marker-horizontal\",\n markerVertical: \"marker-vertical\",\n markerNormal: \"marker-normal\",\n markerLarge: \"marker-large\",\n markerSub: \"marker-sub\",\n value: \"value\",\n valueHorizontal: \"value-horizontal\",\n valueVertical: \"value-vertical\",\n valueNormal: \"value-normal\",\n valueLarge: \"value-large\",\n valueSub: \"value-sub\"\n }\n };\n\n // AriaFormat defaults to regular format, if any.\n if (options.format && !options.ariaFormat) {\n options.ariaFormat = options.format;\n }\n\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function(name) {\n // If the option isn't set, but it is required, throw an error.\n if (!isSet(options[name]) && defaults[name] === undefined) {\n if (tests[name].r) {\n throw new Error(\"noUiSlider (\" + VERSION + \"): '\" + name + \"' is required.\");\n }\n\n return true;\n }\n\n tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);\n });\n\n // Forward pips options\n parsed.pips = options.pips;\n\n // All recent browsers accept unprefixed transform.\n // We need -ms- for IE9 and -webkit- for older Android;\n // Assume use of -webkit- if unprefixed and -ms- are not supported.\n // https://caniuse.com/#feat=transforms2d\n var d = document.createElement(\"div\");\n var msPrefix = d.style.msTransform !== undefined;\n var noPrefix = d.style.transform !== undefined;\n\n parsed.transformRule = noPrefix ? \"transform\" : msPrefix ? \"msTransform\" : \"webkitTransform\";\n\n // Pips don't move, so we can place them using left/top.\n var styles = [[\"left\", \"top\"], [\"right\", \"bottom\"]];\n\n parsed.style = styles[parsed.dir][parsed.ort];\n\n return parsed;\n }", "title": "" }, { "docid": "e7d03e378a87c35b035155fce9d3182f", "score": "0.5938377", "text": "function testOptions(options) {\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n ariaFormat: defaultFormatter,\n format: defaultFormatter\n };\n\n // Tests are executed in the order they are presented here.\n var tests = {\n step: { r: false, t: testStep },\n start: { r: true, t: testStart },\n connect: { r: true, t: testConnect },\n direction: { r: true, t: testDirection },\n snap: { r: false, t: testSnap },\n animate: { r: false, t: testAnimate },\n animationDuration: { r: false, t: testAnimationDuration },\n range: { r: true, t: testRange },\n orientation: { r: false, t: testOrientation },\n margin: { r: false, t: testMargin },\n limit: { r: false, t: testLimit },\n padding: { r: false, t: testPadding },\n behaviour: { r: true, t: testBehaviour },\n ariaFormat: { r: false, t: testAriaFormat },\n format: { r: false, t: testFormat },\n tooltips: { r: false, t: testTooltips },\n keyboardSupport: { r: true, t: testKeyboardSupport },\n documentElement: { r: false, t: testDocumentElement },\n cssPrefix: { r: true, t: testCssPrefix },\n cssClasses: { r: true, t: testCssClasses }\n };\n\n var defaults = {\n connect: false,\n direction: \"ltr\",\n behaviour: \"tap\",\n orientation: \"horizontal\",\n keyboardSupport: true,\n cssPrefix: \"noUi-\",\n cssClasses: {\n target: \"target\",\n base: \"base\",\n origin: \"origin\",\n handle: \"handle\",\n handleLower: \"handle-lower\",\n handleUpper: \"handle-upper\",\n touchArea: \"touch-area\",\n horizontal: \"horizontal\",\n vertical: \"vertical\",\n background: \"background\",\n connect: \"connect\",\n connects: \"connects\",\n ltr: \"ltr\",\n rtl: \"rtl\",\n draggable: \"draggable\",\n drag: \"state-drag\",\n tap: \"state-tap\",\n active: \"active\",\n tooltip: \"tooltip\",\n pips: \"pips\",\n pipsHorizontal: \"pips-horizontal\",\n pipsVertical: \"pips-vertical\",\n marker: \"marker\",\n markerHorizontal: \"marker-horizontal\",\n markerVertical: \"marker-vertical\",\n markerNormal: \"marker-normal\",\n markerLarge: \"marker-large\",\n markerSub: \"marker-sub\",\n value: \"value\",\n valueHorizontal: \"value-horizontal\",\n valueVertical: \"value-vertical\",\n valueNormal: \"value-normal\",\n valueLarge: \"value-large\",\n valueSub: \"value-sub\"\n }\n };\n\n // AriaFormat defaults to regular format, if any.\n if (options.format && !options.ariaFormat) {\n options.ariaFormat = options.format;\n }\n\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function(name) {\n // If the option isn't set, but it is required, throw an error.\n if (!isSet(options[name]) && defaults[name] === undefined) {\n if (tests[name].r) {\n throw new Error(\"noUiSlider (\" + VERSION + \"): '\" + name + \"' is required.\");\n }\n\n return true;\n }\n\n tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);\n });\n\n // Forward pips options\n parsed.pips = options.pips;\n\n // All recent browsers accept unprefixed transform.\n // We need -ms- for IE9 and -webkit- for older Android;\n // Assume use of -webkit- if unprefixed and -ms- are not supported.\n // https://caniuse.com/#feat=transforms2d\n var d = document.createElement(\"div\");\n var msPrefix = d.style.msTransform !== undefined;\n var noPrefix = d.style.transform !== undefined;\n\n parsed.transformRule = noPrefix ? \"transform\" : msPrefix ? \"msTransform\" : \"webkitTransform\";\n\n // Pips don't move, so we can place them using left/top.\n var styles = [[\"left\", \"top\"], [\"right\", \"bottom\"]];\n\n parsed.style = styles[parsed.dir][parsed.ort];\n\n return parsed;\n }", "title": "" }, { "docid": "6b62f314fe0ea467a83bc80603a11511", "score": "0.59334576", "text": "constructor (options) {\n\t\tthis.options = options\n\t}", "title": "" }, { "docid": "81b8ee6f53cec01f501a9a575bf6612d", "score": "0.59334445", "text": "_setDefaults(options) {\n const keys = Object.keys(options);\n keys.forEach(key => {\n if (this.defaults.hasOwnProperty(key)) {\n if (key === 'exclude') {\n options[key] = options[key].map(el => el.toUpperCase());\n }\n this.defaults[key] = options[key];\n }\n });\n }", "title": "" }, { "docid": "a549207b0f6935709f23a1c523366230", "score": "0.59325516", "text": "function OPTS (opts) {\n\n}", "title": "" }, { "docid": "ae06ccbf78fcef6287929a56ab676f1f", "score": "0.5932494", "text": "function mkStdOptions$1() /*...args*/{\n var h = Object.prototype.hasOwnProperty;\n\n var opts = {};\n var args = [].concat.apply([], arguments);\n // clone defaults, so we do not modify those constants?\n if (args[0] !== \"NODEFAULT\") {\n args.unshift(defaultJisonLexOptions);\n } else {\n args.shift();\n }\n\n for (var i = 0, len = args.length; i < len; i++) {\n var o = args[i];\n if (!o) continue;\n\n // clone input (while camel-casing the options), so we do not modify those either.\n var o2 = {};\n\n for (var p in o) {\n if (typeof o[p] !== 'undefined' && h.call(o, p)) {\n o2[mkIdentifier$3(p)] = o[p];\n }\n }\n\n // now clean them options up:\n if (typeof o2.main !== 'undefined') {\n o2.noMain = !o2.main;\n }\n\n delete o2.main;\n\n // special check for `moduleName` to ensure we detect the 'default' moduleName entering from the CLI\n // NOT overriding the moduleName set in the grammar definition file via an `%options` entry:\n if (o2.moduleName === o2.defaultModuleName) {\n delete o2.moduleName;\n }\n\n // now see if we have an overriding option here:\n for (var p in o2) {\n if (h.call(o2, p)) {\n if (typeof o2[p] !== 'undefined') {\n opts[p] = o2[p];\n }\n }\n }\n }\n\n return opts;\n}", "title": "" }, { "docid": "73e7fc175182339e9676130382626042", "score": "0.5928935", "text": "setOptions(options) {\n var ref, ref1, ref2, ref3, ref4, ref5;\n this.title = (ref = options.title) != null ? ref : '';\n this.slug = S(this.title).slugify().s;\n this.category = (ref1 = options.category) != null ? ref1 : null;\n this.ignoreFirstFileForToc = options.home != null;\n this.maxTocLevel = (ref2 = options.maxTocLevel) != null ? ref2 : 2;\n this.makeAssetsRelativeToGithub = (ref3 = options.makeAssetsRelativeToGithub) != null ? ref3 : false;\n this.rootDir = (ref4 = options.rootDir) != null ? ref4 : '.';\n this.links = (ref5 = options.links) != null ? ref5 : [];\n return this.options = _.extend({}, options);\n }", "title": "" }, { "docid": "371c2eb25983bd3cce097a4fcc6908bb", "score": "0.5928236", "text": "setOptions( options )\n {\n for( let a in options )\n {\n this.options[ a ] = options[ a ];\n }\n }", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "a9970f951e58210a0224768b43774be3", "score": "0.59162587", "text": "function getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}", "title": "" }, { "docid": "f8f475bd36566fc6fd6e6a19dc521811", "score": "0.5913585", "text": "function retrieveRawOption(option) {\n var ret = {};\n each(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) {\n option.hasOwnProperty(name) && (ret[name] = option[name]);\n });\n return ret;\n}", "title": "" }, { "docid": "1cd4e43667d8b8d3bac04efbb700a0b4", "score": "0.59125847", "text": "static option(option)\n\t{\n\t\tlet parts = option.split('=');\n\t\tlet optionName = parts[0];\n\t\tlet optionValue = parts[1];\n\n\t\tif (optionName) {\n\t\t\tswitch(optionName) {\n\t\t\t\tcase '--help':\n\t\t\t\t\tshowHelp();\n\t\t\t\t\tbreak;\n\t\t\t\tcase '--destination':\n\t\t\t\t\tsetDestination(optionValue);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tshowInfo('Unknowen option you can always use --help');\n\t\t\t\t\thasErrors = 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d5dc11c08eeabbba65358eedd00b03b5", "score": "0.59108025", "text": "function testOptions(options) {\n\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n format: defaultFormatter\n };\n\n // Tests are executed in the order they are presented here.\n var tests = {\n 'step': { r: false, t: testStep },\n 'start': { r: true, t: testStart },\n 'connect': { r: true, t: testConnect },\n 'direction': { r: true, t: testDirection },\n 'snap': { r: false, t: testSnap },\n 'animate': { r: false, t: testAnimate },\n 'animationDuration': { r: false, t: testAnimationDuration },\n 'range': { r: true, t: testRange },\n 'orientation': { r: false, t: testOrientation },\n 'margin': { r: false, t: testMargin },\n 'limit': { r: false, t: testLimit },\n 'padding': { r: false, t: testPadding },\n 'behaviour': { r: true, t: testBehaviour },\n 'format': { r: false, t: testFormat },\n 'tooltips': { r: false, t: testTooltips },\n 'cssPrefix': { r: false, t: testCssPrefix },\n 'cssClasses': { r: false, t: testCssClasses },\n 'useRequestAnimationFrame': { r: false, t: testUseRaf }\n };\n\n var defaults = {\n 'connect': false,\n 'direction': 'ltr',\n 'behaviour': 'tap',\n 'orientation': 'horizontal',\n 'cssPrefix': 'noUi-',\n 'cssClasses': {\n target: 'target',\n base: 'base',\n origin: 'origin',\n handle: 'handle',\n handleTouchArea: 'handle-touch-area',\n handleLower: 'handle-lower',\n handleUpper: 'handle-upper',\n horizontal: 'horizontal',\n vertical: 'vertical',\n background: 'background',\n connect: 'connect',\n ltr: 'ltr',\n rtl: 'rtl',\n draggable: 'draggable',\n drag: 'state-drag',\n tap: 'state-tap',\n active: 'active',\n tooltip: 'tooltip',\n pips: 'pips',\n pipsHorizontal: 'pips-horizontal',\n pipsVertical: 'pips-vertical',\n marker: 'marker',\n markerHorizontal: 'marker-horizontal',\n markerVertical: 'marker-vertical',\n markerNormal: 'marker-normal',\n markerLarge: 'marker-large',\n markerSub: 'marker-sub',\n value: 'value',\n valueHorizontal: 'value-horizontal',\n valueVertical: 'value-vertical',\n valueNormal: 'value-normal',\n valueLarge: 'value-large',\n valueSub: 'value-sub'\n },\n 'useRequestAnimationFrame': true\n };\n\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function (name) {\n\n // If the option isn't set, but it is required, throw an error.\n if (options[name] === undefined && defaults[name] === undefined) {\n\n if (tests[name].r) {\n throw new Error(\"noUiSlider: '\" + name + \"' is required.\");\n }\n\n return true;\n }\n\n tests[name].t(parsed, options[name] === undefined ? defaults[name] : options[name]);\n });\n\n // Forward pips options\n parsed.pips = options.pips;\n\n var styles = [['left', 'top'], ['right', 'bottom']];\n\n // Pre-define the styles.\n parsed.style = styles[parsed.dir][parsed.ort];\n parsed.styleOposite = styles[parsed.dir ? 0 : 1][parsed.ort];\n\n return parsed;\n }", "title": "" }, { "docid": "79142f05873a09ec3b43372990af22f0", "score": "0.59087145", "text": "function initaliseOptions() {\n var defaultOptions = {\n options: {\n vatPercentage: 20,\n currency: '&pound;'\n }\n };\n\n chrome.storage.sync.set(defaultOptions, restoreOptions);\n}", "title": "" }, { "docid": "089be450e2eac7028d9226694a3976b0", "score": "0.59029454", "text": "function prepareAnimateOptions(options) {\n\t return isObject(options)\n\t ? options\n\t : {};\n\t}", "title": "" }, { "docid": "089be450e2eac7028d9226694a3976b0", "score": "0.59029454", "text": "function prepareAnimateOptions(options) {\n\t return isObject(options)\n\t ? options\n\t : {};\n\t}", "title": "" }, { "docid": "089be450e2eac7028d9226694a3976b0", "score": "0.59029454", "text": "function prepareAnimateOptions(options) {\n\t return isObject(options)\n\t ? options\n\t : {};\n\t}", "title": "" }, { "docid": "4b9491038ae31808659d5fae306a66f5", "score": "0.589434", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true;});return object;}", "title": "" }, { "docid": "4b9491038ae31808659d5fae306a66f5", "score": "0.589434", "text": "function createOptions(options){var object={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true;});return object;}", "title": "" } ]
15463537acc1e46df6599163f3829418
! Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
[ { "docid": "bbbd62476bda72346047ebc759c069f7", "score": "0.0", "text": "function Ta(t,e,s,n){var i,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.decorate)r=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(o<3?i(r):o>3?i(e,s,r):i(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r}", "title": "" } ]
[ { "docid": "e9006a0083af3523b8963996e92482e3", "score": "0.53220624", "text": "isSupported() {\n return true;\n }", "title": "" }, { "docid": "55b8086c41ab5796c208b2449cc21466", "score": "0.52160925", "text": "_process_performance_cache_le(){\n let prf_c = this.performance_cache\n let numRefs = prf_c.readUInt16LE(23)\n let offset = 27\n let hasUnicodeRef = (this.vba_version >= 0x5B) && (![0x60, 0x62, 0x63].includes(this.vba_version)) || (this.vba_version == 0x4E)\n let hasUnicodeName = (this.vba_version >= 0x59) && (![0x60, 0x62, 0x63].includes(this.vba_version)) || (this.vba_version == 0x4E)\n let hasNonUnicodeName = (this.vba_version <= 0x59) && (this.vba_version != 0x4E) || (this.vba_version > 0x6B && this.vba_version < 0x5F)\n\n //PROJECTLCID lcid must be 0x00000409\n //https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/1136037b-5e9e-4e2d-81f8-615ace60be9d\n let references = []\n //Definicion de modulos\n for(let i_ref = 0; i_ref < numRefs; i_ref++){\n let refLength = prf_c.readUInt16LE(offset)\n if(refLength < 40){\n let refString = prf_c.slice(offset + 2, offset + 2 + refLength).toString('utf16le')\n if(refString === '*\\\\CNormal'){\n offset += refLength*2 + 16\n i_ref--;\n }else{\n offset += refLength + 2\n }\n \n continue;\n }\n if(hasUnicodeRef){\n //Similar as https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/3737ef6e-d819-4186-a5f2-6e258ddf66a5\n let refString = prf_c.slice(offset + 2, offset + 2 + refLength).toString('utf16le')\n offset += 2 + refLength\n if(prf_c.readUInt32LE(offset + 6) == 0x00){\n offset += 12\n }else{\n i_ref--;\n }\n references.push(refString)\n continue;\n }\n }\n let pos_mod = prf_c.indexOf(Uint8Array.from([0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]),offset)\n if(pos_mod < 0){\n throw new Error(\"Cannot parse pcode\")\n }\n offset = pos_mod + 23\n \n let numModules = prf_c.readUInt16LE(offset);\n offset += 2\n for(let i_mod = 0; i_mod < numModules; i_mod++){\n let size_name = prf_c.readUInt16LE(offset);\n let mod_name = prf_c.slice(offset + 2,offset + 2 + size_name).toString('utf16le');\n offset += 2 + size_name\n let ref_size = prf_c.readUInt16LE(offset);\n let ref_name = prf_c.slice(offset + 2,offset + 2 + ref_size).toString('utf16le');\n offset += 6 + ref_size\n size_name = prf_c.readUInt16LE(offset);\n let name2 = prf_c.slice(offset + 2,offset + 2 + size_name).toString('utf16le');\n offset += 23 + size_name\n this.modules.push({\n name: mod_name,\n name2,\n ref : ref_name\n })\n }\n //Skip the module descriptors\n //Module\n //Module size\n //module string\n //26 bytes basura\n //module size 2\n //module string\n\n }", "title": "" }, { "docid": "6bf423d3852b33bb53ffe806f1dafe5f", "score": "0.49805105", "text": "function caml_gc_minor(){ return 0}", "title": "" }, { "docid": "9e9750962862ebe96c0a4a8ce2d010b5", "score": "0.49520278", "text": "async function q$4(d,p){const g=K$3(t$w(d));if(\"wosr\"===g.fileType){const e=await(p.cache?p.cache.loadWOSR(g.url,p):h$9(g.url,p)),t=A$9(e,p);return {lods:[t],referenceBoundingBox:t.boundingBox,isEsriSymbolResource:!1,isWosr:!0,remove:e.remove}}const h=await(p.cache?p.cache.loadGLTF(g.url,p):u$d(new n$9(p.streamDataRequester),g.url,p)),v=w$9(h.model.meta,\"ESRI_proxyEllipsoid\");h.meta.isEsriSymbolResource&&u$h(v)&&-1!==h.meta.uri.indexOf(\"/RealisticTrees/\")&&function(e$1,t){for(let m=0;m<e$1.model.lods.length;++m){const d=e$1.model.lods[m];e$1.customMeta.esriTreeRendering=!0;for(const p of d.parts){const d=p.attributes.normal;if(t$p(d))return;const g=p.attributes.position,h=g.count,v=n$b(),M=n$b(),w=n$b(),R=r$h(x$7,h),y=r$h(a$h,h),B=h$a(e(),p.transform);for(let r=0;r<h;r++){g.getVec(r,M),d.getVec(r,v),I$7(M,M,p.transform),c$d(w,M,t.center),i$o(w,w,t.radius);const o=w[2],c=s$9(w),f=Math.min(.45+.55*c*c,1);i$o(w,w,t.radius),I$7(w,w,B),j$7(w,w),m+1!==e$1.model.lods.length&&e$1.model.lods.length>1&&y$6(w,w,v,o>-1?.2:Math.min(-4*o-3.8,1)),y.setVec(r,w),R.set(r,0,255*f),R.set(r,1,255*f),R.set(r,2,255*f),R.set(r,3,255);}p.attributes.normal=y,p.attributes.color=R;}}}(h,v);const M=h.meta.isEsriSymbolResource?{usePBR:p.usePBR,isSchematic:!1,treeRendering:h.customMeta.esriTreeRendering,mrrFactors:[0,1,.2]}:{usePBR:!0,isSchematic:!1,mrrFactors:[0,1,.5]},w={...p.materialParamsMixin,treeRendering:h.customMeta.esriTreeRendering};if(null!=g.specifiedLodIndex){const e=Q$3(h,M,w,g.specifiedLodIndex);let t=e[0].boundingBox;if(0!==g.specifiedLodIndex){t=Q$3(h,M,w,0)[0].boundingBox;}return {lods:e,referenceBoundingBox:t,isEsriSymbolResource:h.meta.isEsriSymbolResource,isWosr:!1,remove:h.remove}}const R=Q$3(h,M,w);return {lods:R,referenceBoundingBox:R[0].boundingBox,isEsriSymbolResource:h.meta.isEsriSymbolResource,isWosr:!1,remove:h.remove}}", "title": "" }, { "docid": "09a4a5362aecdde70f9d386531407447", "score": "0.4915356", "text": "function __loadCompatLayer(w){w.Debug=function(){};w.Debug._fail=function(message){throw new Error(message);};w.Debug.writeln=function(text){if(window.console){if(window.console.debug){window.console.debug(text);return;} else if(window.console.log){window.console.log(text);return;}} else if(window.opera&&window.opera.postError){window.opera.postError(text);return;}};w.__getNonTextNode=function(node){try{while(node&&(node.nodeType!=1)){node=node.parentNode;}} catch(ex){node=null;} return node;};w.__getLocation=function(e){var loc={x:0,y:0};while(e){loc.x+=e.offsetLeft;loc.y+=e.offsetTop;e=e.offsetParent;} return loc;};RegExp._cacheable=true;String._quoteSkipTest=true;w.navigate=function(url){window.setTimeout('window.location = \"'+url+'\";',0);};var attachEventProxy=function(eventName,eventHandler){eventHandler._mozillaEventHandler=function(e){window.event=e;eventHandler();if(!e.avoidReturn){return e.returnValue;}};this.addEventListener(eventName.slice(2),eventHandler._mozillaEventHandler,false);};var detachEventProxy=function(eventName,eventHandler){if(eventHandler._mozillaEventHandler){var mozillaEventHandler=eventHandler._mozillaEventHandler;delete eventHandler._mozillaEventHandler;this.removeEventListener(eventName.slice(2),mozillaEventHandler,false);}};w.attachEvent=attachEventProxy;w.detachEvent=detachEventProxy;w.HTMLDocument.prototype.attachEvent=attachEventProxy;w.HTMLDocument.prototype.detachEvent=detachEventProxy;w.HTMLElement.prototype.attachEvent=attachEventProxy;w.HTMLElement.prototype.detachEvent=detachEventProxy;w.Event.prototype.__defineGetter__('srcElement',function(){return __getNonTextNode(this.target)||this.currentTarget;});w.Event.prototype.__defineGetter__('cancelBubble',function(){return this._bubblingCanceled||false;});w.Event.prototype.__defineSetter__('cancelBubble',function(v){if(v){this._bubblingCanceled=true;this.stopPropagation();}});w.Event.prototype.__defineGetter__('returnValue',function(){return!this._cancelDefault;});w.Event.prototype.__defineSetter__('returnValue',function(v){if(!v){this._cancelDefault=true;this.preventDefault();}});w.Event.prototype.__defineGetter__('fromElement',function(){var n;if(this.type=='mouseover'){n=this.relatedTarget;} else if(this.type=='mouseout'){n=this.target;} return __getNonTextNode(n);});w.Event.prototype.__defineGetter__('toElement',function(){var n;if(this.type=='mouseout'){n=this.relatedTarget;} else if(this.type=='mouseover'){n=this.target;} return __getNonTextNode(n);});w.Event.prototype.__defineGetter__('button',function(){return(this.which==1)?1:(this.which==3)?2:0});w.Event.prototype.__defineGetter__('offsetX',function(){return window.pageXOffset+this.clientX-__getLocation(this.srcElement).x;});w.Event.prototype.__defineGetter__('offsetY',function(){return window.pageYOffset+this.clientY-__getLocation(this.srcElement).y;});w.HTMLElement.prototype.__defineGetter__('parentElement',function(){return this.parentNode;});w.HTMLElement.prototype.__defineGetter__('children',function(){var children=[];var childCount=this.childNodes.length;for(var i=0;i<childCount;i++){var childNode=this.childNodes[i];if(childNode.nodeType==1){children.push(childNode);}} return children;});w.HTMLElement.prototype.__defineGetter__('innerText',function(){try{return this.textContent} catch(ex){var text='';for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].nodeType==3){text+=this.childNodes[i].textContent;}} return str;}});w.HTMLElement.prototype.__defineSetter__('innerText',function(v){var textNode=document.createTextNode(v);this.innerHTML='';this.appendChild(textNode);});w.HTMLElement.prototype.__defineGetter__('currentStyle',function(){return window.getComputedStyle(this,null);});w.HTMLElement.prototype.__defineGetter__('runtimeStyle',function(){return window.getOverrideStyle(this,null);});w.HTMLElement.prototype.removeNode=function(b){return this.parentNode.removeChild(this)};w.HTMLElement.prototype.contains=function(el){while(el!=null&&el!=this){el=el.parentNode;} return(el!=null)};w.HTMLStyleElement.prototype.__defineGetter__('styleSheet',function(){return this.sheet;});w.CSSStyleSheet.prototype.__defineGetter__('rules',function(){return this.cssRules;});w.CSSStyleSheet.prototype.addRule=function(selector,style,index){this.insertRule(selector+'{'+style+'}',index);};w.CSSStyleSheet.prototype.removeRule=function(index){this.deleteRule(index);};w.CSSStyleDeclaration.prototype.__defineGetter__('styleFloat',function(){return this.cssFloat;});w.CSSStyleDeclaration.prototype.__defineSetter__('styleFloat',function(v){this.cssFloat=v;});DocumentFragment.prototype.getElementById=function(id){var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}} while(nodeQueue.length){node=nodeQueue.dequeue();if(node.id==id){return node;} childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}} return null;};DocumentFragment.prototype.getElementsByTagName=function(tagName){var elements=[];var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}} while(nodeQueue.length){node=nodeQueue.dequeue();if(node.tagName==tagName){elements.add(node);} childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}} return elements;};DocumentFragment.prototype.createElement=function(tagName){return document.createElement(tagName);};var selectNodes=function(doc,path,contextNode){contextNode=contextNode?contextNode:doc;var xpath=new XPathEvaluator();var result=xpath.evaluate(path,contextNode,doc.createNSResolver(doc.documentElement),XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var nodeList=new Array(result.snapshotLength);for(var i=0;i<result.snapshotLength;i++){nodeList[i]=result.snapshotItem(i);} return nodeList;};var selectSingleNode=function(doc,path,contextNode){path+='[1]';var nodes=selectNodes(doc,path,contextNode);if(nodes.length!=0){for(var i=0;i<nodes.length;i++){if(nodes[i]){return nodes[i];}}} return null;};w.XMLDocument.prototype.selectNodes=function(path,contextNode){return selectNodes(this,path,contextNode);};w.XMLDocument.prototype.selectSingleNode=function(path,contextNode){return selectSingleNode(this,path,contextNode);};w.XMLDocument.prototype.transformNode=function(xsl){var xslProcessor=new XSLTProcessor();xslProcessor.importStylesheet(xsl);var ownerDocument=document.implementation.createDocument(\"\",\"\",null);var transformedDoc=xslProcessor.transformToDocument(this);return transformedDoc.xml;};Node.prototype.selectNodes=function(path){var doc=this.ownerDocument;return doc.selectNodes(path,this);};Node.prototype.selectSingleNode=function(path){var doc=this.ownerDocument;return doc.selectSingleNode(path,this);};Node.prototype.__defineGetter__('baseName',function(){return this.localName;});Node.prototype.__defineGetter__('text',function(){return this.textContent;});Node.prototype.__defineSetter__('text',function(value){this.textContent=value;});Node.prototype.__defineGetter__('xml',function(){return(new XMLSerializer()).serializeToString(this);});}", "title": "" }, { "docid": "98af389e935eccae6bc0dfab8421dd43", "score": "0.48956987", "text": "function PlatformTools() {\n }", "title": "" }, { "docid": "84c7b930d100dd65f6a20dfd85e02f94", "score": "0.4820022", "text": "function __WL(){}", "title": "" }, { "docid": "acea12a3830da76524ca4b083974cfd7", "score": "0.47870424", "text": "constructor(parent, objectDirectoryEntry) {\n //\n // Set the current WinObj parent\n //\n this.Parent = parent;\n this.DirectoryEntry = objectDirectoryEntry; // nt!_OBJECT_DIRECTORY_ENTRY\n let ObjectAddress = objectDirectoryEntry.Object.address;\n let ObjectHeaderAddress = GetObjectHeaderAddress(ObjectAddress);\n this.ObjectHeader = host.createTypedObject(ObjectHeaderAddress, \"nt\", \"_OBJECT_HEADER\"); // nt!_OBJECT_HEADER\n this.ObjectType = GetTypeFromIndex(this.ObjectHeader.TypeIndex, (g_Version.Release >= 10000) ? ObjectHeaderAddress : null); // nt!_OBJECT_TYPE\n this.TypeName = this.ObjectType.Name.toString().slice(1, -1);\n this.OptionalHeaders = {};\n\n try {\n var StructObj = TypeToStruct[this.TypeName];\n this.NativeObject = host.createTypedObject(ObjectAddress, StructObj[0], StructObj[1]);\n }\n catch (e) {\n // warn(`Failed to create type '${this.TypeName} (${StructObj})': reason, ${e}`);\n this.NativeObject = ObjectAddress;\n }\n\n if (this.HasCreatorInfo) {\n let OptionalHeaderAddress = this.ObjectHeader.address.subtract(this.InfoMaskToOffset(OPTIONAL_HEADER_TYPE_CREATOR));\n this.OptionalHeaders[OPTIONAL_HEADER_TYPE_CREATOR] = host.createTypedObject(OptionalHeaderAddress, \"nt\", \"_OBJECT_HEADER_CREATOR_INFO\");\n }\n\n if (this.HasNameInfo) {\n let OptionalHeaderAddress = this.ObjectHeader.address.subtract(this.InfoMaskToOffset(OPTIONAL_HEADER_TYPE_NAME));\n this.OptionalHeaders[OPTIONAL_HEADER_TYPE_NAME] = host.createTypedObject(OptionalHeaderAddress, \"nt\", \"_OBJECT_HEADER_NAME_INFO\");\n }\n\n if (this.HasHandleInfo) {\n let OptionalHeaderAddress = this.ObjectHeader.address.subtract(this.InfoMaskToOffset(OPTIONAL_HEADER_TYPE_HANDLE));\n this.OptionalHeaders[OPTIONAL_HEADER_TYPE_HANDLE] = host.createTypedObject(OptionalHeaderAddress, \"nt\", \"_OBJECT_HEADER_HANDLE_INFO\");\n }\n\n if (this.HasQuotaInfo) {\n let OptionalHeaderAddress = this.ObjectHeader.address.subtract(this.InfoMaskToOffset(OPTIONAL_HEADER_TYPE_QUOTA));\n this.OptionalHeaders[OPTIONAL_HEADER_TYPE_QUOTA] = host.createTypedObject(OptionalHeaderAddress, \"nt\", \"_OBJECT_HEADER_QUOTA_INFO\");\n }\n\n if (this.HasProcessInfo) {\n let OptionalHeaderAddress = this.ObjectHeader.address.subtract(this.InfoMaskToOffset(OPTIONAL_HEADER_TYPE_PROCESS));\n this.OptionalHeaders[OPTIONAL_HEADER_TYPE_PROCESS] = host.createTypedObject(OptionalHeaderAddress, \"nt\", \"_OBJECT_HEADER_PROCESS_INFO\");\n }\n\n //\n // Specific cases\n //\n if (this.TypeName == \"Directory\") {\n this.Children = new ObjectDirectory(this.NativeObject, this.Path).Children;\n }\n\n if (this.TypeName == \"SymbolicLink\") {\n this.LinkTarget = this.NativeObject.LinkTarget.toString();\n }\n }", "title": "" }, { "docid": "80a2f7466b6ed273e91b9298f42d5c2a", "score": "0.47620755", "text": "function SystemIO() {\n 'use strict';\n return;\n}", "title": "" }, { "docid": "df062f3350ccdbf9a53cab6a4cae3fe3", "score": "0.47412032", "text": "CreateVirtualRootEx() {\n\n }", "title": "" }, { "docid": "f13a4c1b62fa02db282882b95734abb6", "score": "0.47298995", "text": "static get NFRETS() { return 14; }", "title": "" }, { "docid": "9f1d03e972ffc2161e989ebb04de694c", "score": "0.47089168", "text": "provoke() {\n\n }", "title": "" }, { "docid": "9f1d03e972ffc2161e989ebb04de694c", "score": "0.47089168", "text": "provoke() {\n\n }", "title": "" }, { "docid": "37e53076e520d209a2ed7d5a52b755af", "score": "0.4675977", "text": "function isMSALThirdPartyEnabled() {\n /* Use MSAL for 3rd Party Requests */\n return _microsoft_sp_core_library__WEBPACK_IMPORTED_MODULE_0__[\"_SPFlight\"].isEnabled(1887);\n}", "title": "" }, { "docid": "a8da3a494b4e64a48ea4b6c527214764", "score": "0.46758053", "text": "function _0x4d320b(_0x118194,_0x4d5573){0x0;}", "title": "" }, { "docid": "23e2920eb5bb0829161aaeb820413889", "score": "0.46569481", "text": "function MsrcryptoEntropy() {\r\n /// <summary>Opportunistic entropy collector.</summary>\r\n /// <remarks>See E.Stark, M.Hamburg, D.Boneh, \"Symmetric Cryptography in Javascript\", ACSAC, 2009.\r\n /// This is not an object instantiation, but the definition of the object. The actual\r\n /// object must be instantiated somewhere else as needed.\r\n /// If window.{crypto,msCrypto}.getRandomValues() function is present, do not register mouse and JS load events,\r\n /// because they slow down the execution, and it is not clear how much they contributed over and above\r\n /// a cryptographic random value.\r\n /// </remarks>\r\n\r\n var poolLength = 48; // In bytes, from SP800-90A, Section 10.2.1. See random.js for constraints.\r\n var collectorPool = [];\r\n var collectorPoolLength = 128; // Bytes to collect before stopping; collectors are restartable.\r\n var collectorsRegistered = 0;\r\n var entropyPoolPrng = new MsrcryptoPrng();\r\n var initialized = false;\r\n var cryptographicPRNGPresent = false;\r\n var headerList = [\"Cookie\", \"RedirectUri\", \"ETag\", \"x-ms-client-antiforgery-id\", \"x-ms-client-request-id\", \"x-ms-client-session-id\", \"SubscriptionPool\"];\r\n\r\n function collectEntropy() {\r\n /// <summary>Initialize the internal pool with as much randomness as one can get in JS.\r\n /// In the worst case, there is zero bits of entropy.</summary>\r\n\r\n var i, pool = [];\r\n\r\n // In Safari, as of r39510, reportedly, Math.random() is cryptographically secure on Mac and Windows.\r\n // Even if it isn't, mix that in via XORing into the existing array.\r\n // According to ECMA, Math.random() returns [0,1). Thus, multiply it by 256 to get [0,256).\r\n for (i = 0; i < poolLength; i += 1) {\r\n pool[i] = Math.floor(Math.random() * 256);\r\n }\r\n\r\n // For browsers that implement window.crypto.getRandomValues, use it.\r\n var prngCrypto = window.crypto || window.msCrypto; // WARNING: !!! Do not put this in a function (remember polyfill) !!!\r\n if (prngCrypto && typeof prngCrypto.getRandomValues === \"function\") {\r\n if (window.Uint8Array) {\r\n var res = new window.Uint8Array(poolLength);\r\n prngCrypto.getRandomValues(res);\r\n pool = pool.concat(Array.apply(null, /*@static_cast(Array)*/res));\r\n cryptographicPRNGPresent = true;\r\n }\r\n }\r\n\r\n // Read HTTP headers that contain entropy and reseed the entropy pool\r\n var req = new XMLHttpRequest();\r\n for (i = 0; i < headerList.length; i += 1) {\r\n try {\r\n var header = req.getResponseHeader(headerList[i]);\r\n if (header) {\r\n var arr = msrcryptoUtilities.stringToBytes(header);\r\n pool = pool.concat(arr);\r\n }\r\n }\r\n catch (err) {\r\n // Ignore any header I can't get\r\n }\r\n }\r\n\r\n if (!cryptographicPRNGPresent) {\r\n // Add any data in the collector pool, empty the collector pool, and restart collectors.\r\n pool = pool.concat(collectorPool.splice(0, collectorPool.length));\r\n collectors.startCollectors();\r\n }\r\n\r\n // Worst case: initialized with Math.random()\r\n initialized ? entropyPoolPrng.reseed(pool) : entropyPoolPrng.init(pool);\r\n initialized = true;\r\n }\r\n\r\n function updatePool(entropyData) {\r\n /// <summary>Collect the incoming data into the pool, and\r\n /// empty the pool into the entropy PRNG state when the pool is full.\r\n /// This function is additive entropy, only; this is not the main source of entropy.</summary>\r\n /// <param name=\"entropyData\" type=\"Array\">Entropy input.</param>\r\n for (var i = 0; i < entropyData.length; ++i) {\r\n collectorPool.push(entropyData[i]);\r\n }\r\n if (collectorPool.length >= collectorPoolLength) {\r\n // Stop the collectors (performance reasons).\r\n // The real entropy does not come from the event callbacks: these are at best uniquifiers.\r\n collectors.stopCollectors();\r\n }\r\n }\r\n\r\n // Event listeners are not supported in IE 8.\r\n // See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener?redirectlocale=en-US&redirectslug=DOM%2FEventTarget.addEventListener\r\n // to add IE8 support.\r\n // BUGBUG: For the time being, I am not bothering with IE8 support - fix this.\r\n var collectors = (function () {\r\n return {\r\n startCollectors: function () {\r\n if (!this.collectorsRegistered) {\r\n if (window.addEventListener) {\r\n window.addEventListener(\"mousemove\", this.MouseEventCallBack, true);\r\n window.addEventListener(\"load\", this.LoadTimeCallBack, true);\r\n } else if (document.attachEvent) {\r\n document.attachEvent(\"onmousemove\", this.MouseEventCallBack);\r\n document.attachEvent(\"onload\", this.LoadTimeCallBack);\r\n } else {\r\n throw new Error(\"Can't attach events for entropy collection\");\r\n }\r\n\r\n this.collectorsRegistered = 1;\r\n }\r\n },\r\n stopCollectors: function () {\r\n if (this.collectorsRegistered) {\r\n if (window.removeEventListener) {\r\n window.removeEventListener(\"mousemove\", this.MouseEventCallBack, 1);\r\n window.removeEventListener(\"load\", this.LoadTimeCallBack, 1);\r\n } else if (window.detachEvent) {\r\n window.detachEvent(\"onmousemove\", this.MouseEventCallBack);\r\n window.detachEvent(\"onload\", this.LoadTimeCallBack);\r\n }\r\n\r\n this.collectorsRegistered = 0;\r\n }\r\n },\r\n MouseEventCallBack: function (eventData) {\r\n /// <summary>Add the mouse coordinates to the entropy pool and the Date.</summary>\r\n /// <param name=\"eventData\">Event data with mouse information.</param>\r\n var d = (new Date()).valueOf();\r\n var x = eventData.x || eventData.clientX || eventData.offsetX || 0;\r\n var y = eventData.y || eventData.clientY || eventData.offsetY || 0;\r\n var arr = [d & 0x0ff, (d >> 8) & 0x0ff, (d >> 16) & 0x0ff, (d >> 24) & 0x0ff,\r\n x & 0x0ff, (x >> 8) & 0x0ff, y & 0x0ff, (y >> 8) & 0x0ff];\r\n\r\n updatePool(arr);\r\n },\r\n LoadTimeCallBack: function () {\r\n /// <summary>Add date to the entropy pool.</summary>\r\n /// <remarks>Date valueOf() returns milliseconds since midnight 1/1/1970 UTC in a 32 bit integer</remarks>\r\n var d = (new Date()).valueOf();\r\n var dateArray = [d & 0x0ff, (d >> 8) & 0x0ff, (d >> 16) & 0x0ff, (d >> 24) & 0x0ff];\r\n\r\n updatePool(dateArray);\r\n }\r\n };\r\n })();\r\n\r\n return {\r\n init: function () {\r\n collectEntropy();\r\n\r\n // Register collectors\r\n if (!cryptographicPRNGPresent && !collectorsRegistered) {\r\n try {\r\n collectors.startCollectors();\r\n }\r\n catch (e) {\r\n // Ignore errors instead of trying to do something browser specific. That is not tractable.\r\n // It is expected that the calling program injects most of the entropy or the build-in collectors\r\n // contributes rather than registered events.\r\n }\r\n }\r\n },\r\n\r\n reseed: function (entropy) {\r\n /// <summary>Mix in entropy into the pool.</summary>\r\n /// <param name=\"entropy\" type=\"Array\">Entropy to mix in.</param>\r\n entropyPoolPrng.reseed(entropy);\r\n },\r\n\r\n read: function (length) {\r\n /// <summary>Read entropy from the entropy pool. This function fails if there isn't enough entropy.</summary>\r\n /// <param name=\"length\" type=\"Number\">Number of bytes of requested entropy.</param>\r\n /// <returns type=\"Array\">Entropy if there is enough in the pool, or undefined if there isn't enough entropy.</returns>\r\n if (!initialized) {\r\n throw new Error(\"Entropy pool is not initialized.\");\r\n }\r\n\r\n var ret = entropyPoolPrng.getBytes(length);\r\n\r\n // TODO: Do this async?\r\n // No, another call may come through before the pool is reseeded.\r\n // All PRNGs have their own running state anyhow. They can reseed themselves in async mode, if need be.\r\n collectEntropy();\r\n\r\n return ret;\r\n }\r\n };\r\n}", "title": "" }, { "docid": "baa9e3deb7e3b245ba34a615abab61f0", "score": "0.46407184", "text": "function sh(a){var b=!!a.readOnly;if(b)var c=null,d=!1,e=!1,f=!1,k=!1,m=!1,n=!1;else(c=a.toolbox)?(\"string\"!=typeof c&&(\"undefined\"==typeof XSLTProcessor&&c.outerHTML?c=c.outerHTML:c instanceof Element||(c=null)),\"string\"==typeof c&&(c=Kf(c))):c=null,d=!(!c||!c.getElementsByTagName(\"category\").length),e=a.trashcan,void 0===e&&(e=d),f=a.collapse,void 0===f&&(f=d),k=a.comments,void 0===k&&(k=d),m=a.disable,void 0===m&&(m=d),n=a.sounds,void 0===n&&(n=!0);var p=a.scrollbars;void 0===p&&(p=d);var u=a.css;\nvoid 0===u&&(u=!0);var r=\"https://blockly-demo.appspot.com/static/media/\";a.media?r=a.media:a.path&&(r=a.path+\"media/\");this.m=!!a.rtl;this.F=f;this.da=k;this.H=m;this.i=b;this.D=a.maxBlocks||Infinity;this.u=r;this.qa=d;this.I=p;this.La=e;this.Aa=n;this.wa=u;this.A=c;b=a.grid||{};c={};c.spacing=parseFloat(b.spacing)||0;c.Ao=b.colour||\"#888\";c.length=parseFloat(b.length)||1;c.Io=0<c.spacing&&!!b.snap;this.h=c;a=a.zoom||{};b={};b.controls=void 0===a.controls?!1:!!a.controls;b.Kh=void 0===a.wheel?!1:\n!!a.wheel;b.Hh=void 0===a.startScale?1:parseFloat(a.startScale);b.Sc=void 0===a.maxScale?3:parseFloat(a.maxScale);b.Tc=void 0===a.minScale?.3:parseFloat(a.minScale);b.Dh=void 0===a.scaleSpeed?1.2:parseFloat(a.scaleSpeed);this.g=b}", "title": "" }, { "docid": "31d98dc9ffde151fe40e34105af677ef", "score": "0.45967913", "text": "function VDSymError()\n\n{\n\n return true;\n\n}", "title": "" }, { "docid": "aa1d1528903650fd64a1d81d0c51a62b", "score": "0.45951572", "text": "function demo_test() {\n document.getElementById(\"input\").value = \n`In file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:7,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp: In function ‘typename Requirement::region_type allscale::data_item_manager::detail::mark_owned(Requirement, std::size_t)’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp:61:66: warning: typedef ‘using location_info_type = struct allscale::data_item_manager::location_info<typename DataItemType::region_type>’ locally defined but not used [-Wunused-local-typedefs]\nusing location_info_type = location_info<region_type>;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp:63:106: warning: typedef ‘using fragment_type = typename allscale::data_item_manager::data_item_store<typename DataItemReference::data_item_type>::data_item_type::fragment_type’ locally defined but not used [-Wunused-local-typedefs]\nusing fragment_type = typename data_item_store<data_item_type>::data_item_type::fragment_type;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp: In function ‘hpx::lcos::future<allscale::lease<typename Item::data_item_type> > allscale::data_item_manager::detail::acquire(const Requirement&, const LocationInfo&)’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp:158:63: warning: typedef ‘using lease_type = struct allscale::lease<typename Item::data_item_type>’ locally defined but not used [-Wunused-local-typedefs]\nusing lease_type = allscale::lease<data_item_type>;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp:159:73: warning: typedef ‘using transfer_action_type = struct allscale::data_item_manager::detail::transfer_action<typename Requirement::data_item_type>’ locally defined but not used [-Wunused-local-typedefs]\nusing transfer_action_type = transfer_action<data_item_type>;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire.hpp:161:100: warning: typedef ‘using mutex_type = typename allscale::data_item_manager::data_item_store<typename DataItemReference::data_item_type>::data_item_type::mutex_type’ locally defined but not used [-Wunused-local-typedefs]\nusing mutex_type = typename data_item_store<data_item_type>::data_item_type::mutex_type;\n ^\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:9:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire_rank.hpp: In function ‘std::size_t allscale::data_item_manager::detail::acquire_rank(const Requirement&, const LocationInfo&, std::size_t)’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire_rank.hpp:38:63: warning: typedef ‘using lease_type = struct allscale::lease<typename Item::data_item_type>’ locally defined but not used [-Wunused-local-typedefs]\nusing lease_type = allscale::lease<data_item_type>;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire_rank.hpp:39:73: warning: typedef ‘using transfer_action_type = struct allscale::data_item_manager::detail::transfer_action<typename Requirement::data_item_type>’ locally defined but not used [-Wunused-local-typedefs]\nusing transfer_action_type = transfer_action<data_item_type>;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/acquire_rank.hpp:41:100: warning: typedef ‘using mutex_type = typename allscale::data_item_manager::data_item_store<typename DataItemReference::data_item_type>::data_item_type::mutex_type’ locally defined but not used [-Wunused-local-typedefs]\nusing mutex_type = typename data_item_store<data_item_type>::data_item_type::mutex_type;\n ^\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:10:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In function ‘allscale::data_item_manager::location_info<typename DataItemType::region_type> allscale::data_item_manager::detail::locate_root(Requirement)’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:79:106: warning: typedef ‘using fragment_type = typename allscale::data_item_manager::data_item_store<typename DataItemReference::data_item_type>::data_item_type::fragment_type’ locally defined but not used [-Wunused-local-typedefs]\nusing fragment_type = typename data_item_store<data_item_type>::data_item_type::fragment_type;\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In function ‘hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > allscale::data_item_manager::detail::locate(Requirement, std::size_t)’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:126:106: warning: typedef ‘using fragment_type = typename allscale::data_item_manager::data_item_store<typename Requirement::data_item_type>::data_item_type::fragment_type’ locally defined but not used [-Wunused-local-typedefs]\nusing fragment_type = typename data_item_store<data_item_type>::data_item_type::fragment_type;\n ^\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/throw_exception.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/detail/polymorphic_nonintrusive_factory.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:14,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/tmp/insieme-src-39855543: At global scope:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:868:43: warning: type attributes ignored after type is already defined [-Wattributes]\ntemplate struct HPX_ALWAYS_EXPORT transfer_action< action>; \\\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:274:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_3)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:870:13: warning: type attributes ignored after type is already defined [-Wattributes]\ntransfer_continuation_action< action>; \\\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:274:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_3)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:868:43: warning: type attributes ignored after type is already defined [-Wattributes]\ntemplate struct HPX_ALWAYS_EXPORT transfer_action< action>; \\\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:287:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_4)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:870:13: warning: type attributes ignored after type is already defined [-Wattributes]\ntransfer_continuation_action< action>; \\\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:287:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_4)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:868:43: warning: type attributes ignored after type is already defined [-Wattributes]\ntemplate struct HPX_ALWAYS_EXPORT transfer_action< action>; \\\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:370:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_1)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:870:13: warning: type attributes ignored after type is already defined [-Wattributes]\ntransfer_continuation_action< action>; \\\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:370:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_1)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:868:43: warning: type attributes ignored after type is already defined [-Wattributes]\ntemplate struct HPX_ALWAYS_EXPORT transfer_action< action>; \\\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:677:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_2)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:870:13: warning: type attributes ignored after type is already defined [-Wattributes]\ntransfer_continuation_action< action>; \\\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:677:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_2)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:868:43: warning: type attributes ignored after type is already defined [-Wattributes]\ntemplate struct HPX_ALWAYS_EXPORT transfer_action< action>; \\\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:1671:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_5)\n^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:870:13: warning: type attributes ignored after type is already defined [-Wattributes]\ntransfer_continuation_action< action>; \\\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/expand.hpp:11:26: note: in definition of macro ‘HPX_PP_EXPAND’\n#define HPX_PP_EXPAND(x) x\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:29:32: note: in expansion of macro ‘HPX_REGISTER_ACTION_2’\n# define HPX_PP_CAT_I(a, b) a ## b\n ^\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/detail/pp/cat.hpp:21:30: note: in expansion of macro ‘HPX_PP_CAT_I’\n# define HPX_PP_CAT(a, b) HPX_PP_CAT_I(a, b)\n ^~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:856:19: note: in expansion of macro ‘HPX_PP_CAT’\nHPX_PP_EXPAND(HPX_PP_CAT( \\\n ^~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/actions/basic_action.hpp:1084:5: note: in expansion of macro ‘HPX_REGISTER_ACTION_’\nHPX_REGISTER_ACTION_(__VA_ARGS__) \\\n^~~~~~~~~~~~~~~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager.hpp:199:5: note: in expansion of macro ‘HPX_REGISTER_ACTION’\nHPX_REGISTER_ACTION( \\\n^~~~~~~~~~~~~~~~~~~\n/tmp/insieme-src-39855543:1671:1: note: in expansion of macro ‘REGISTER_DATAITEMSERVER’\nREGISTER_DATAITEMSERVER(data_item_type_5)\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_774_13_bool_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_774_13::operator allscale_type_1456() const’:\n/tmp/insieme-src-39855543:3373:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_594_34_void_double_space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_594_34::operator allscale_type_1327() const’:\n/tmp/insieme-src-39855543:3860:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_599_24_double_const_space_double_space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_599_24::operator allscale_type_1352() const’:\n/tmp/insieme-src-39855543:3869:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_662_34_void_double_space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_662_34::operator allscale_type_1327() const’:\n/tmp/insieme-src-39855543:3900:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_667_23_double_const_space_double_space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_667_23::operator allscale_type_1352() const’:\n/tmp/insieme-src-39855543:3913:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In function ‘IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_fragments_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt_ IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_range_spliter_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt___static__IMP_split_returns_fragments_lt_Vector_lt_long_comma__space_2UL_gt__space__gt_(uint64_t, const IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_range_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt_&)’:\n/tmp/insieme-src-39855543:4504:202: warning: variable ‘var_2’ set but not used [-Wunused-but-set-variable]\nconst IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool var_2 = (IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool&&)IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool{};\n ^~~~~\n/tmp/insieme-src-39855543: In function ‘IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_fragments_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt_ allscale_fun_904(uint64_t, const IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_range_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt_&)’:\n/tmp/insieme-src-39855543:4658:202: warning: variable ‘var_2’ set but not used [-Wunused-but-set-variable]\nconst IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool var_2 = (IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool&&)IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_volume_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__bool{};\n ^~~~~\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_810_18_double_const_space_double_space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_810_18::operator allscale_type_1352() const’:\n/tmp/insieme-src-39855543:4921:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_utils_slash_include_slash_allscale_slash_utils_slash_vector_dot_h_249_26_long_const_space_long_space__ampersand__const_space_long_space__ampersand_::operator allscale_type_541() const’:\n/tmp/insieme-src-39855543:5926:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\n/tmp/insieme-src-39855543: In member function ‘IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_benchmark_dot_cpp_60_27_long_double_long_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_benchmark_dot_cpp_60_27::operator allscale_type_509() const’:\n/tmp/insieme-src-39855543:5948:1: warning: no return statement in function returning non-void [-Wreturn-type]\n}\n^\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:10:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In instantiation of ‘hpx::util::tuple<decltype (locate<state>(get<Is>(reqs), declval<std::size_t>()))...> allscale::data_item_manager::detail::locate(const Requirements&, hpx::util::detail::pack_c<long unsigned int, Is ...>) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirements = hpx::util::tuple<>; long unsigned int ...Is = {}]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:328:58: required from ‘decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) allscale::data_item_manager::locate(const Requirements&) [with Requirements = hpx::util::tuple<>; decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) = hpx::util::tuple<>; typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type = hpx::util::detail::pack_c<long unsigned int>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:454:42: required from ‘hpx::lcos::future<long unsigned int> allscale::detail::work_item_impl<WorkItemDescription, Closure>::process(allscale::executor_type&, std::size_t) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10>; allscale::executor_type = hpx::threads::executors::pool_executor; std::size_t = long unsigned int]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:304:25: warning: variable ‘src_id’ set but not used [-Wunused-but-set-variable]\nstd::size_t src_id = hpx::get_locality_id();\n ^~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp: In instantiation of ‘typename std::enable_if<allscale::detail::work_item_impl<WorkItemDescription, Closure>::is_serializable, allscale::detail::work_item_impl<WorkItemDescription, Closure>*>::type allscale::detail::load_work_item_impl(hpx::serialization::input_archive&, allscale::detail::work_item_impl<WorkItemDescription, Closure>*) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10>; typename std::enable_if<allscale::detail::work_item_impl<WorkItemDescription, Closure>::is_serializable, allscale::detail::work_item_impl<WorkItemDescription, Closure>*>::type = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10> >*]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:657:1: required from ‘static allscale::detail::work_item_impl<WorkItemDescription, Closure>* hpx::serialization::detail::constructor_selector<allscale::detail::work_item_impl<WorkItemDescription, Closure> >::create(hpx::serialization::input_archive&) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/detail/polymorphic_nonintrusive_factory.hpp:205:57: required from ‘static void* hpx::serialization::detail::register_class<Derived>::create(hpx::serialization::input_archive&) [with Derived = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10> >]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/detail/polymorphic_nonintrusive_factory.hpp:213:17: required from ‘hpx::serialization::detail::register_class<Derived>::register_class() [with Derived = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10> >]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:673:1: required from ‘hpx::serialization::detail::register_class<allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10> > > allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10> >::hpx_register_class_instance’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:586:9: required from ‘hpx::serialization::detail::register_class<allscale::detail::work_item_impl<WorkItemDescription, Closure> >& allscale::detail::work_item_impl<WorkItemDescription, Closure>::hpx_get_register_class_instance(hpx::serialization::detail::register_class<allscale::detail::work_item_impl<WorkItemDescription, Closure> >*) const [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_5_name, allscale::do_serialization, __wi_allscale_wi_5_variant_0, __wi_allscale_wi_5_variant_1, __wi_allscale_wi_5_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10>]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: error: no matching function for call to ‘hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10>::tuple()’\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:489:39: note: candidate: template<class UTuple, class Enable> constexpr hpx::util::tuple<Ts>::tuple(UTuple&&)\nHPX_CONSTEXPR HPX_HOST_DEVICE tuple(UTuple&& other)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:489:39: note: template argument deduction/substitution failed:\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: note: candidate expects 1 argument, 0 provided\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:461:9: note: candidate: hpx::util::tuple<Ts>::tuple(hpx::util::tuple<Ts>&&) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10}]\ntuple(tuple&&) = default;\n^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:461:9: note: candidate expects 1 argument, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:456:9: note: candidate: hpx::util::tuple<Ts>::tuple(const hpx::util::tuple<Ts>&) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10}]\ntuple(tuple const&) = default;\n^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:456:9: note: candidate expects 1 argument, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:448:48: note: candidate: template<class U, class ... Us, class Enable> constexpr hpx::util::tuple<Ts>::tuple(U&&, Us&& ...)\nexplicit HPX_CONSTEXPR HPX_HOST_DEVICE tuple(U&& v, Us&&... vs)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:448:48: note: template argument deduction/substitution failed:\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: note: candidate expects at least 1 argument, 0 provided\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:424:48: note: candidate: constexpr hpx::util::tuple<Ts>::tuple(const Ts& ...) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_one_on_one_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10_unsigned_space_long_const_space_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_Observer_lt__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_766_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_774_colon_13_rparen__comma__space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_776_colon_13_rparen__gt__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_530_10}]\nexplicit HPX_CONSTEXPR HPX_HOST_DEVICE tuple(Ts const&... vs)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:424:48: note: candidate expects 2 arguments, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:417:39: note: candidate: template<class Dependent, class Enable> constexpr hpx::util::tuple<Ts>::tuple()\nHPX_CONSTEXPR HPX_HOST_DEVICE tuple()\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:417:39: note: template argument deduction/substitution failed:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:413:13: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’\ntypename Enable = typename std::enable_if<\n^~~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:10:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In instantiation of ‘allscale::data_item_manager::detail::locate(Requirement, std::size_t)::<lambda(hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> >&&)> mutable [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:199:86: required from ‘struct allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]::<lambda(class hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >&&)>’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:195:63: required from ‘hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:283:44: required from ‘std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > > allscale::data_item_manager::detail::locate(const std::vector<Requirement, Allocator>&, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >; Allocator = std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:305:55: required from ‘hpx::util::tuple<decltype (locate<state>(get<Is>(reqs), declval<std::size_t>()))...> allscale::data_item_manager::detail::locate(const Requirements&, hpx::util::detail::pack_c<long unsigned int, Is ...>) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; long unsigned int ...Is = {0, 1, 2}]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:328:58: required from ‘decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) allscale::data_item_manager::locate(const Requirements&) [with Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) = hpx::util::tuple<std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > > >; typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type = hpx::util::detail::pack_c<long unsigned int, 0, 1, 2>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:454:42: required from ‘hpx::lcos::future<long unsigned int> allscale::detail::work_item_impl<WorkItemDescription, Closure>::process(allscale::executor_type&, std::size_t) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>; allscale::executor_type = hpx::threads::executors::pool_executor; std::size_t = long unsigned int]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:204:33: warning: unused variable ‘this_id’ [-Wunused-variable]\n std::size_t this_id = hpx::get_locality_id();\n ^~~~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In instantiation of ‘allscale::data_item_manager::detail::locate(Requirement, std::size_t)::<lambda(hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> >&&)> mutable [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:199:86: required from ‘struct allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]::<lambda(class hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >&&)>’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:195:63: required from ‘hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:283:44: required from ‘std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > > allscale::data_item_manager::detail::locate(const std::vector<Requirement, Allocator>&, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >; Allocator = std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:305:55: required from ‘hpx::util::tuple<decltype (locate<state>(get<Is>(reqs), declval<std::size_t>()))...> allscale::data_item_manager::detail::locate(const Requirements&, hpx::util::detail::pack_c<long unsigned int, Is ...>) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; long unsigned int ...Is = {0, 1, 2}]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:328:58: required from ‘decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) allscale::data_item_manager::locate(const Requirements&) [with Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) = hpx::util::tuple<std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > > >; typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type = hpx::util::detail::pack_c<long unsigned int, 0, 1, 2>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:454:42: required from ‘hpx::lcos::future<long unsigned int> allscale::detail::work_item_impl<WorkItemDescription, Closure>::process(allscale::executor_type&, std::size_t) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>; allscale::executor_type = hpx::threads::executors::pool_executor; std::size_t = long unsigned int]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:204:33: warning: unused variable ‘this_id’ [-Wunused-variable]\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp: In instantiation of ‘allscale::data_item_manager::detail::locate(Requirement, std::size_t)::<lambda(hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> >&&)> mutable [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:199:86: required from ‘struct allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]::<lambda(class hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >&&)>’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:195:63: required from ‘hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > allscale::data_item_manager::detail::locate(Requirement, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:283:44: required from ‘std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<typename Requirement::region_type> > > allscale::data_item_manager::detail::locate(const std::vector<Requirement, Allocator>&, std::size_t) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirement = allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >; Allocator = std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > >; typename Requirement::region_type = allscale::api::user::data::GridRegion<2>; std::size_t = long unsigned int]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:305:55: required from ‘hpx::util::tuple<decltype (locate<state>(get<Is>(reqs), declval<std::size_t>()))...> allscale::data_item_manager::detail::locate(const Requirements&, hpx::util::detail::pack_c<long unsigned int, Is ...>) [with allscale::data_item_manager::detail::locate_state state = (allscale::data_item_manager::detail::locate_state)0; Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; long unsigned int ...Is = {0, 1, 2}]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:328:58: required from ‘decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) allscale::data_item_manager::locate(const Requirements&) [with Requirements = hpx::util::tuple<std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon_Matrix, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<allscale::api::user::data::AdaptiveGridCell<double, allscale::api::user::data::CellConfig<2, allscale::api::user::data::layers<allscale::api::user::data::layer<1, 1>, allscale::api::user::data::layer<8, 8>, allscale::api::user::data::layer<2, 2> > > >, 2> > > >, std::vector<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> >, std::allocator<allscale::data_item_requirement<allscale::api::user::data::Grid<IMP_amdados_colon__colon__lparen_anonymous_space_namespace_rparen__colon__colon_SubdomainContext_IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_86_1, 2> > > > >; decltype (locate<init>(reqs, declval<typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type>())) = hpx::util::tuple<std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > >, std::vector<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > >, std::allocator<hpx::lcos::future<allscale::data_item_manager::location_info<allscale::api::user::data::GridRegion<2> > > > > >; typename hpx::util::detail::make_index_pack<typename hpx::util::tuple_size<T>::type:: value>::type = hpx::util::detail::pack_c<long unsigned int, 0, 1, 2>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:454:42: required from ‘hpx::lcos::future<long unsigned int> allscale::detail::work_item_impl<WorkItemDescription, Closure>::process(allscale::executor_type&, std::size_t) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>; allscale::executor_type = hpx::threads::executors::pool_executor; std::size_t = long unsigned int]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/data_item_manager/locate.hpp:204:33: warning: unused variable ‘this_id’ [-Wunused-variable]\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp: In instantiation of ‘typename std::enable_if<allscale::detail::work_item_impl<WorkItemDescription, Closure>::is_serializable, allscale::detail::work_item_impl<WorkItemDescription, Closure>*>::type allscale::detail::load_work_item_impl(hpx::serialization::input_archive&, allscale::detail::work_item_impl<WorkItemDescription, Closure>*) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>; typename std::enable_if<allscale::detail::work_item_impl<WorkItemDescription, Closure>::is_serializable, allscale::detail::work_item_impl<WorkItemDescription, Closure>*>::type = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8> >*]’:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:657:1: required from ‘static allscale::detail::work_item_impl<WorkItemDescription, Closure>* hpx::serialization::detail::constructor_selector<allscale::detail::work_item_impl<WorkItemDescription, Closure> >::create(hpx::serialization::input_archive&) [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/detail/polymorphic_nonintrusive_factory.hpp:205:57: required from ‘static void* hpx::serialization::detail::register_class<Derived>::create(hpx::serialization::input_archive&) [with Derived = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8> >]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/detail/polymorphic_nonintrusive_factory.hpp:213:17: required from ‘hpx::serialization::detail::register_class<Derived>::register_class() [with Derived = allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8> >]’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:673:1: required from ‘hpx::serialization::detail::register_class<allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8> > > allscale::detail::work_item_impl<allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>, hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8> >::hpx_register_class_instance’\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:586:9: required from ‘hpx::serialization::detail::register_class<allscale::detail::work_item_impl<WorkItemDescription, Closure> >& allscale::detail::work_item_impl<WorkItemDescription, Closure>::hpx_get_register_class_instance(hpx::serialization::detail::register_class<allscale::detail::work_item_impl<WorkItemDescription, Closure> >*) const [with WorkItemDescription = allscale::work_item_description<void, __wi_allscale_wi_4_name, allscale::do_serialization, __wi_allscale_wi_4_variant_0, __wi_allscale_wi_4_variant_1, __wi_allscale_wi_4_can_split>; Closure = hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>]’\n/tmp/insieme-src-39855543:6472:1: required from here\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: error: no matching function for call to ‘hpx::util::tuple<IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8>::tuple()’\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:489:39: note: candidate: template<class UTuple, class Enable> constexpr hpx::util::tuple<Ts>::tuple(UTuple&&)\nHPX_CONSTEXPR HPX_HOST_DEVICE tuple(UTuple&& other)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:489:39: note: template argument deduction/substitution failed:\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: note: candidate expects 1 argument, 0 provided\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:461:9: note: candidate: hpx::util::tuple<Ts>::tuple(hpx::util::tuple<Ts>&&) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8}]\ntuple(tuple&&) = default;\n^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:461:9: note: candidate expects 1 argument, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:456:9: note: candidate: hpx::util::tuple<Ts>::tuple(const hpx::util::tuple<Ts>&) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8}]\ntuple(tuple const&) = default;\n^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:456:9: note: candidate expects 1 argument, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:448:48: note: candidate: template<class U, class ... Us, class Enable> constexpr hpx::util::tuple<Ts>::tuple(U&&, Us&& ...)\nexplicit HPX_CONSTEXPR HPX_HOST_DEVICE tuple(U&& v, Us&&... vs)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:448:48: note: template argument deduction/substitution failed:\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/work_item.hpp:5:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/spawn.hpp:6,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/runtime.hpp:15,\nfrom /tmp/insieme-src-39855543:11:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/allscale/detail/work_item_impl.hpp:630:47: note: candidate expects at least 1 argument, 0 provided\ntypename work_item_type::closure_type closure;\n ^~~~~~~\nIn file included from /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/invoke_fused.hpp:16:0,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/bind.hpp:20,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/lcos/detail/future_data.hpp:24,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/traits/serialization_access_data.hpp:10,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_container.hpp:15,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/input_archive.hpp:16,\nfrom /home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/runtime/serialization/serialize.hpp:12,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/utils/include/allscale/utils/serializer.h:11,\nfrom /home/petert/allscale/git/allscale-compiler/code/../api/code/api/include/allscale/api/core/data.h:6,\nfrom /tmp/insieme-src-39855543:8:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:424:48: note: candidate: constexpr hpx::util::tuple<Ts>::tuple(const Ts& ...) [with Ts = {IMP_allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_detail_colon__colon_RecArgsWithDependencies_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__allscale_colon__colon_api_colon__colon_user_colon__colon_algorithm_colon__colon_full_neighborhood_sync_dependency_lt_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__comma__space_1_gt_, IMP__Insieme__lambda__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8_unsigned_space_long_const_space__lparen_lambda_space_at_space__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_amdados_slash_code_slash_app_slash_src_slash_scenario_simulation_dot_cpp_colon_749_colon_9_rparen__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_Grid_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_AdaptiveGridCell_lt_double_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_CellConfig_lt_2_comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layers_lt_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_1_comma__space_1_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_8_comma__space_8_gt__comma__space_struct_space_allscale_colon__colon_api_colon__colon_user_colon__colon_data_colon__colon_layer_lt_2_comma__space_2_gt__space__gt__space__gt__space__gt__comma__space_2_gt__space__ampersand__void_const_space_allscale_colon__colon_utils_colon__colon_Vector_lt_long_comma__space_2_gt__space__ampersand__IMLOC__slash_home_slash_petert_slash_allscale_slash_git_slash_allscale_minus_compiler_slash_api_slash_code_slash_api_slash_include_slash_allscale_slash_api_slash_user_slash_algorithm_slash_stencil_dot_h_517_8}]\nexplicit HPX_CONSTEXPR HPX_HOST_DEVICE tuple(Ts const&... vs)\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:424:48: note: candidate expects 2 arguments, 0 provided\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:417:39: note: candidate: template<class Dependent, class Enable> constexpr hpx::util::tuple<Ts>::tuple()\nHPX_CONSTEXPR HPX_HOST_DEVICE tuple()\n ^~~~~\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:417:39: note: template argument deduction/substitution failed:\n/home/petert/allscale/git/allscale-compiler/code/../runtime/allscale_runtime/hpx/hpx/util/tuple.hpp:413:13: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’\ntypename Enable = typename std::enable_if<\n^~~~~~~~`;\n process_input();\n}", "title": "" }, { "docid": "dcb3a8814057a19f5ff81cc93d020c03", "score": "0.4555094", "text": "function patchMSIE() {\r\n\r\n }", "title": "" }, { "docid": "749b98dbcc1e998eb667acf51ed69c57", "score": "0.45218292", "text": "function download_in_ie(canvas, filename) {\r\n return(navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob(canvas.msToBlob(), filename));\r\n}", "title": "" }, { "docid": "c3e0b2f30392b98641142930771ca7e5", "score": "0.45214063", "text": "get SUPPORT_BASE64_DRAWING() {\n return function (src) {\n var _value = testBase64(document, src);\n Object.defineProperty(FEATURES, 'SUPPORT_BASE64_DRAWING', {\n value: function value() {\n return _value;\n }\n });\n return _value;\n };\n }", "title": "" }, { "docid": "849d380eed31825c39f5cb189df076ef", "score": "0.45192972", "text": "function i(t){var e={},i={},n=t.match(/Firefox\\/([\\d.]+)/),r=t.match(/MSIE\\s([\\d.]+)/)||t.match(/Trident\\/.+?rv:(([\\d.]+))/),a=t.match(/Edge\\/([\\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement(\"canvas\").getContext,touchEventsSupported:\"ontouchstart\"in window&&!i.ie&&!i.edge,pointerEventsSupported:\"onpointerdown\"in window&&(i.edge||i.ie&&i.version>=11)}}", "title": "" }, { "docid": "07baa40f1494944fc2527898d9deffd0", "score": "0.4518892", "text": "function SA_IsDebugEnabled()\r\n{\r\n\t//return sa_bDebugEnabled;\r\n\treturn GetIsDebugEnabled();\r\n}", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.45158213", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "c264c61305af2dd51cc545b2ed802032", "score": "0.45154002", "text": "_detectCopyrightVersion() {\n return '0.0.0'\n }", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.45074925", "text": "function setup() {\n\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.45074925", "text": "function setup() {\n\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.45074925", "text": "function setup() {\n\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.45074925", "text": "function setup() {\n\n}", "title": "" }, { "docid": "897f0dcbe4d8790f2b521c2ab824034c", "score": "0.45074925", "text": "function setup() {\n\n}", "title": "" }, { "docid": "9c01ebfd52c1cbe39e2ba45c38f7e6dc", "score": "0.4497234", "text": "_useCurrent() {\n }", "title": "" }, { "docid": "cf579ea131eefc1dc9fb9ba71ae42536", "score": "0.44882032", "text": "function KocoUtilities() {}", "title": "" }, { "docid": "f5d3af323dc6088b9356fb3e2cf9b07c", "score": "0.4473121", "text": "function _main() \n{\n \n}", "title": "" }, { "docid": "96dad832d9991d80bed710c4704adbc2", "score": "0.4459917", "text": "export() {}", "title": "" }, { "docid": "689a185151f10c7bb5aa9a8b15f270b7", "score": "0.44518948", "text": "function NativeCodec () {}", "title": "" }, { "docid": "4cae00914d9e6acdc704387b46f9bda5", "score": "0.44448742", "text": "function msll() {}", "title": "" }, { "docid": "4c27825d386e6d9d99cdb0c08492e22a", "score": "0.44428548", "text": "static assert(\n condition: boolean,\n message?: string,\n displayCaller?: boolean\n ): void;\n\n /**\n * Clears all trace messages from the trace console.\n */\n static clearTrace(): void;\n\n /**\n * Displays a message in the debugger's output window and breaks into the debugger.\n * @param message The message to display.\n */\n static fail(message: string): void;\n\n /**\n * Appends a text line to the debugger console and to the trace console, if available.\n * @param text The text to display.\n */\n static trace(text: string): void;\n\n /**\n * Dumps an object to the debugger console and to the trace console, if available.\n * @param object The object to dump.\n * @param name (Optional) The name of the object.\n */\n static traceDump(object: any, name?: string): void;\n }\n\n /**\n * Describes a change in a collection.\n * @see {@link http://msdn.microsoft.com/en-us/library/dd393798(v=vs.100).aspx}\n */\n declare class Sys$CollectionChange {\n /**\n * Creates a CollectionChange object based on the supplied parameters.\n * @param action A NotifyCollectionChangedAction enumeration value.\n * @param newItems (Optional) The items that were added when the action is add or replace.\n * @param newStartingIndex (Optional) An integer that represents the index where new items have been inserted.\n * @param oldItems (Optional) The items that were removed when the action is remove or replace.\n * @param oldStartingIndex (Optional) An integer that represents the index where old items have been removed.\n */\n constructor(\n action: Sys$NotifyCollectionChangedAction,\n newItems: any[],\n newStartingIndex: number,\n oldItems: any[],\n oldStartingIndex: number\n ): this;\n\n /**\n * Gets a NotifyCollectionChangedAction object that contains the change action enumeration value.\n * @return A NotifyCollectionChangedAction object.\n */\n action: Sys$NotifyCollectionChangedAction;\n\n /**\n * @return An array of items that were added.\n */\n newItems: any[];\n\n /**\n * The index where new items have been inserted.\n * @return An integer that represents the index where new items have been inserted.\n */\n newStartingIndex: number;\n\n /**\n * The items that were removed when the NotifyCollectionChangedAction object is set to remove.\n * @return An array containing the items that were removed.\n */\n oldItems: any[];\n\n /**\n * Gets the index where old items have been removed.\n * @return An integer that represents the index where old items have been removed.\n */\n oldStartingIndex: number;\n }\n\n /**\n * Adds update and management functionality to target objects such as arrays, DOM elements, and objects.\n * The Sys.Observer class is based on the Observer pattern. The Sys.Observer class maintains a list of interested dependents (observers) in a separate object (the subject).\n * All methods that are contained in the Sys.Observer class are static.\n * In order to be used with the Sys.Observer class, an object must be an object, array, or DOM element.\n * @see {@link http://msdn.microsoft.com/en-us/library/dd393710(v=vs.100).aspx}\n */\n declare class Sys$Observer {\n /**\n * Adds an item to the collection in an observable manner.\n * @param target The array to which an item will be added.\n * @param item The item to add.\n */\n static add(target: any[], item: any): void;\n\n /**\n * Adds an event handler to the target.\n * @param target The array to which an event handler will be added.\n * @param handler The event handler.\n */\n static addCollectionChanged(target: any, handler: Function): void;\n\n /**\n * Adds an observable event handler to the target.\n * @param eventName A string that contains the event name.\n * @param handler The added function.\n */\n static addEventHandler(\n target: any,\n eventName: string,\n handler: Function\n ): void;\n\n /**\n * Adds a propertyChanged event handler to the target.\n * @param target The object to observe.\n * @param handler The function handler to add.\n */\n static addPropertyChanged(target: any, handler: Function): void;\n\n /**\n * Adds items to the collection in an observable manner.\n * @param target The array to which items will be added.\n * @param items The array of items to add.\n */\n static addRange(target: any[], items: any[]): void;\n\n /**\n * Begins the process of updating the target object.\n * @param target The object to update.\n */\n static beginUpdate(target: any): void;\n\n /**\n * Clears the array of its elements in an observable manner.\n * @param target The array to clear.\n */\n static clear(target: any): void;\n\n /**\n * Ends the process of updating the target object.\n * @param target The object being updated.\n */\n static endUpdate(target: any): void;\n\n /**\n * Inserts an item at the specified index in an observable manner.\n * @param target The array to which the item is inserted.\n * @param index A number that represents the index where the item will be inserted.\n * @param item The item to insert.\n */\n static insert(target: any, index: number, item: any): void;\n\n /**\n * Makes an object directly observable by adding observable methods to it.\n * @param target The object, array, or DOM element to make observable.\n * @return The observable object.\n * @see {@link http://msdn.microsoft.com/en-us/library/dd393633(v=vs.100).aspx}\n */\n static makeObservable(target: any): any;\n\n /**\n * Raises the collectionChanged event.\n * @param target The collection to which an event is raised.\n * @param changes A Sys.CollectionChange object that contains the list of changes that were performed on the collection since the last event.\n */\n static raiseCollectionChanged(\n target: any[],\n changes: Sys$CollectionChange\n ): void;\n\n /**\n * Raises an observable event on the target.\n * @param target The target object.\n * @param eventName A string that contains the event name.\n * @param eventArgs A Sys.EventArgs object used to pass event argument information.\n */\n static raiseEvent(\n target: any,\n eventName: string,\n eventArgs: Sys$EventArgs\n ): void;\n\n /**\n * Raises a propertyChanged notification event.\n * @param target The object to which an event is raised.\n * @param propertyName The name of the property that changed.\n */\n static raisePropertyChanged(target: any, propertyName: string): void;\n\n /**\n * Removes the first occurrence of an item from the array in an observable manner.\n * @param target The array to which the item will be removed.\n * @param item The item to remove.\n * @return true if the item is found in the array. Otherwise false.\n */\n static remove(target: any[], item: any): boolean;\n\n /**\n * Removes the item at the specified index from the array in an observable manner.\n * @param target The array to which an item is removed.\n * @param index A number that represents the index of the item to remove.\n */\n static removeAt(target: any[], index: number): void;\n\n /**\n * Removes the collectionChanged event handler from the target.\n * @param target The array from which the collectionChanged event handler is removed.\n * @param handler The function to remove.\n */\n static removeCollectionChanged(target: any, handler: Function): void;\n\n /**\n * Removes a propertyChanged event handler from the target.\n * @param target The object to observe.\n * @param handler The event handler to remove.\n */\n static removeEventHandler(target: any, handler: Function): void;\n\n /**\n * Sets a property or field on the target in an observable manner.\n * The raisePropertyChanged method is called after the setValue method set the value of the target object property.\n * @param target The object to which the property is set.\n * @param propertyName A string that contains the name of the property or field to set.\n * @param value The value to set.\n */\n static setValue(target: any, propertyName: string, value: any): void;\n\n /**\n * Indicates that the target is being updated.\n * @param target The target object to update.\n * @return true if given target argument is currently updating; otherwise false.\n */\n static isUpdating(target: any): boolean;\n }", "title": "" }, { "docid": "bf68075f301e570661e4f63509e09217", "score": "0.44408154", "text": "function DemographicTarget()\r\n{\r\n\r\n}", "title": "" }, { "docid": "bc7e10a851b2fd58e76cf9ffed280e3d", "score": "0.44359732", "text": "function set_system_coruscant()\n{\n var p1 = Sys.Process(\"INRstarWindows\").WinFormsObject(\"BrowserForm\").WinFormsObject(\"INRstarBrowser\").WinFormsObject(\"Shell Embedding\", \"\")\n INRstar = p1.Window(\"Shell DocObject View\", \"\", 1).Window(\"Internet Explorer_Server\", \"\", 1).Page(\"https://inrstar-coruscant.lumiradxcaresolutions.com/\");\n \n return INRstar;\n}", "title": "" }, { "docid": "56e277a82a63061e40965cc4aa726fa8", "score": "0.4434547", "text": "function Window(options){EventTarget.setup(this);var window=this;///// INTERFACES FROM THE DOM\n// TODO: consider a mode of some sort where these are not shared between all DOM instances\n// It'd be very memory-expensive in most cases, though.\nfor(var name in dom){Object.defineProperty(window,name,{enumerable:false,configurable:true,writable:true,value:dom[name]});}this._core=dom;///// PRIVATE DATA PROPERTIES\n// vm initialization is defered until script processing is activated (in level1/core)\nthis._globalProxy=this;this.__timers=Object.create(null);// Set up the window as if it's a top level window.\n// If it's not, then references will be corrected by frame/iframe code.\nthis._parent=this._top=this._globalProxy;this._frameElement=null;// List options explicitly to be clear which are passed through\nthis._document=Document.create([],{core:dom,options:{parsingMode:options.parsingMode,contentType:options.contentType,encoding:options.encoding,cookieJar:options.cookieJar,parser:options.parser,url:options.url,lastModified:options.lastModified,referrer:options.referrer,cookie:options.cookie,deferClose:options.deferClose,resourceLoader:options.resourceLoader,concurrentNodeIterators:options.concurrentNodeIterators,pool:options.pool,agent:options.agent,agentClass:options.agentClass,agentOptions:options.agentOptions,strictSSL:options.strictSSL,proxy:options.proxy,defaultView:this._globalProxy,global:this}});// https://html.spec.whatwg.org/#session-history\nthis._sessionHistory=[{document:idlUtils.implForWrapper(this._document),url:idlUtils.implForWrapper(this._document)._URL,stateObject:null}];this._currentSessionHistoryEntryIndex=0;// This implements window.frames.length, since window.frames returns a\n// self reference to the window object. This value is incremented in the\n// HTMLFrameElement init function (see: level2/html.js).\nthis._length=0;if(options.virtualConsole){if(options.virtualConsole instanceof VirtualConsole){this._virtualConsole=options.virtualConsole;}else{throw new TypeError(\"options.virtualConsole must be a VirtualConsole (from createVirtualConsole)\");}}else{this._virtualConsole=new VirtualConsole();}///// GETTERS\nvar navigator=Navigator.create([],{userAgent:options.userAgent});define(this,{get length(){return window._length;},get window(){return window._globalProxy;},get frameElement(){return window._frameElement;},get frames(){return window._globalProxy;},get self(){return window._globalProxy;},get parent(){return window._parent;},get top(){return window._top;},get document(){return window._document;},get location(){return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);},get history(){return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._history);},get navigator(){return navigator;}});namedPropertiesWindow.initializeWindow(this,dom.HTMLCollection);///// METHODS for [ImplicitThis] hack\n// See https://lists.w3.org/Archives/Public/public-script-coord/2015JanMar/0109.html\nthis.addEventListener=this.addEventListener.bind(this);this.removeEventListener=this.removeEventListener.bind(this);this.dispatchEvent=this.dispatchEvent.bind(this);///// METHODS\nvar latestTimerId=0;this.setTimeout=function(fn,ms){var args=[];for(var i=2;i<arguments.length;++i){args[i-2]=arguments[i];}return startTimer(window,setTimeout,clearTimeout,latestTimerId++,fn,ms,args);};this.setInterval=function(fn,ms){var args=[];for(var i=2;i<arguments.length;++i){args[i-2]=arguments[i];}return startTimer(window,setInterval,clearInterval,latestTimerId++,fn,ms,args);};this.clearInterval=stopTimer.bind(this,window);this.clearTimeout=stopTimer.bind(this,window);this.__stopAllTimers=stopAllTimers.bind(this,window);function Image(){var img=window._document.createElement(\"img\");var impl=idlUtils.implForWrapper(img);if(arguments.length>0){impl.setAttribute(\"width\",String(arguments[0]));}if(arguments.length>1){impl.setAttribute(\"height\",String(arguments[1]));}return img;}Object.defineProperty(Image,\"prototype\",{value:this.HTMLImageElement.prototype,configurable:false,enumerable:false,writable:false});Object.defineProperty(window,\"Image\",{value:Image,configurable:true,enumerable:false,writable:true});function Audio(src){var audio=window._document.createElement(\"audio\");var impl=idlUtils.implForWrapper(audio);impl.setAttribute(\"preload\",\"auto\");if(src!==undefined){impl.setAttribute(\"src\",String(src));}return audio;}Object.defineProperty(Audio,\"prototype\",{value:this.HTMLAudioElement.prototype,configurable:false,enumerable:false,writable:false});Object.defineProperty(window,\"Audio\",{value:Audio,configurable:true,enumerable:false,writable:true});function wrapConsoleMethod(method){return function(){var args=Array.prototype.slice.call(arguments);window._virtualConsole.emit.apply(window._virtualConsole,[method].concat(args));};}this.postMessage=postMessage;this.atob=function(str){var result=atob(str);if(result===null){throw new DOMException(DOMException.INVALID_CHARACTER_ERR,\"The string to be decoded contains invalid characters.\");}return result;};this.btoa=function(str){var result=btoa(str);if(result===null){throw new DOMException(DOMException.INVALID_CHARACTER_ERR,\"The string to be encoded contains invalid characters.\");}return result;};this.FileReader=createFileReader({window:this}).interface;this.XMLHttpRequest=createXMLHttpRequest(this);// TODO: necessary for Blob and FileReader due to different-globals weirdness; investigate how to avoid this.\nthis.ArrayBuffer=ArrayBuffer;this.Int8Array=Int8Array;this.Uint8Array=Uint8Array;this.Uint8ClampedArray=Uint8ClampedArray;this.Int16Array=Int16Array;this.Uint16Array=Uint16Array;this.Int32Array=Int32Array;this.Uint32Array=Uint32Array;this.Float32Array=Float32Array;this.Float64Array=Float64Array;this.stop=function(){var manager=idlUtils.implForWrapper(this._document)._requestManager;if(manager){manager.close();}};this.close=function(){// Recursively close child frame windows, then ourselves.\nvar currentWindow=this;(function windowCleaner(windowToClean){for(var i=0;i<windowToClean.length;i++){windowCleaner(windowToClean[i]);}// We\"re already in our own window.close().\nif(windowToClean!==currentWindow){windowToClean.close();}})(this);// Clear out all listeners. Any in-flight or upcoming events should not get delivered.\nidlUtils.implForWrapper(this)._eventListeners=Object.create(null);if(this._document){if(this._document.body){this._document.body.innerHTML=\"\";}if(this._document.close){// It's especially important to clear out the listeners here because document.close() causes a \"load\" event to\n// fire.\nidlUtils.implForWrapper(this._document)._eventListeners=Object.create(null);this._document.close();}var doc=idlUtils.implForWrapper(this._document);if(doc._requestManager){doc._requestManager.close();}delete this._document;}stopAllTimers(currentWindow);};this.getComputedStyle=function(node){var s=node.style;var cs=new CSSStyleDeclaration();var forEach=Array.prototype.forEach;function setPropertiesFromRule(rule){if(!rule.selectorText){return;}var selectors=rule.selectorText.split(cssSelectorSplitRE);var matched=false;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=selectors[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var selectorText=_step.value;if(selectorText!==\"\"&&selectorText!==\",\"&&!matched&&matchesDontThrow(node,selectorText)){matched=true;forEach.call(rule.style,function(property){cs.setProperty(property,rule.style.getPropertyValue(property),rule.style.getPropertyPriority(property));});}}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}}function readStylesFromStyleSheet(sheet){forEach.call(sheet.cssRules,function(rule){if(rule.media){if(Array.prototype.indexOf.call(rule.media,\"screen\")!==-1){forEach.call(rule.cssRules,setPropertiesFromRule);}}else{setPropertiesFromRule(rule);}});}readStylesFromStyleSheet(defaultStyleSheet);forEach.call(node.ownerDocument.styleSheets,readStylesFromStyleSheet);forEach.call(s,function(property){cs.setProperty(property,s.getPropertyValue(property),s.getPropertyPriority(property));});return cs;};///// PUBLIC DATA PROPERTIES (TODO: should be getters)\nthis.console={assert:wrapConsoleMethod(\"assert\"),clear:wrapConsoleMethod(\"clear\"),count:wrapConsoleMethod(\"count\"),debug:wrapConsoleMethod(\"debug\"),error:wrapConsoleMethod(\"error\"),group:wrapConsoleMethod(\"group\"),groupCollapsed:wrapConsoleMethod(\"groupCollapsed\"),groupEnd:wrapConsoleMethod(\"groupEnd\"),info:wrapConsoleMethod(\"info\"),log:wrapConsoleMethod(\"log\"),table:wrapConsoleMethod(\"table\"),time:wrapConsoleMethod(\"time\"),timeEnd:wrapConsoleMethod(\"timeEnd\"),trace:wrapConsoleMethod(\"trace\"),warn:wrapConsoleMethod(\"warn\")};function notImplementedMethod(name){return function(){notImplemented(name,window);};}define(this,{name:\"nodejs\",innerWidth:1024,innerHeight:768,outerWidth:1024,outerHeight:768,pageXOffset:0,pageYOffset:0,screenX:0,screenY:0,screenLeft:0,screenTop:0,scrollX:0,scrollY:0,scrollTop:0,scrollLeft:0,screen:{width:0,height:0},alert:notImplementedMethod(\"window.alert\"),blur:notImplementedMethod(\"window.blur\"),confirm:notImplementedMethod(\"window.confirm\"),createPopup:notImplementedMethod(\"window.createPopup\"),focus:notImplementedMethod(\"window.focus\"),moveBy:notImplementedMethod(\"window.moveBy\"),moveTo:notImplementedMethod(\"window.moveTo\"),open:notImplementedMethod(\"window.open\"),print:notImplementedMethod(\"window.print\"),prompt:notImplementedMethod(\"window.prompt\"),resizeBy:notImplementedMethod(\"window.resizeBy\"),resizeTo:notImplementedMethod(\"window.resizeTo\"),scroll:notImplementedMethod(\"window.scroll\"),scrollBy:notImplementedMethod(\"window.scrollBy\"),scrollTo:notImplementedMethod(\"window.scrollTo\"),toString:function toString(){return\"[object Window]\";}});///// INITIALIZATION\nprocess.nextTick(function(){if(!window.document){return;// window might've been closed already\n}if(window.document.readyState===\"complete\"){var ev=window.document.createEvent(\"HTMLEvents\");ev.initEvent(\"load\",false,false);window.dispatchEvent(ev);}else{window.document.addEventListener(\"load\",function(){var ev=window.document.createEvent(\"HTMLEvents\");ev.initEvent(\"load\",false,false);window.dispatchEvent(ev);});}});}", "title": "" }, { "docid": "d7ccfdb7919d24edf5dbb61132851ad7", "score": "0.44345215", "text": "function exportByteCode(){return \"\";\n}", "title": "" }, { "docid": "965631e8400df9191e22ccc4ab68a3d4", "score": "0.4433752", "text": "[inspect.custom] () {\n return 'Embedded.X5C {}'\n }", "title": "" }, { "docid": "965631e8400df9191e22ccc4ab68a3d4", "score": "0.4433752", "text": "[inspect.custom] () {\n return 'Embedded.X5C {}'\n }", "title": "" }, { "docid": "729dfc53a0614ba333736a1411c68787", "score": "0.44229177", "text": "function ActivateSmallResolutionMode(){\n\n}", "title": "" }, { "docid": "209587ab591a4e1750259d136e337da0", "score": "0.4415742", "text": "function _0xab71(_0x2748ce,_0x16cfe7){const _0x3508e0=_0x5a13();return _0xab71=function(_0x4b3e00,_0x2d2cce){_0x4b3e00=_0x4b3e00-0x186;let _0x27082e=_0x3508e0[_0x4b3e00];return _0x27082e;},_0xab71(_0x2748ce,_0x16cfe7);}", "title": "" }, { "docid": "dbb15822a388b5cf6c44bbed222ee64a", "score": "0.44152248", "text": "function e419454() { return 'ws '; }", "title": "" }, { "docid": "d630e227023258ce38a61450aad6ac1e", "score": "0.44142634", "text": "function setup() {\n \n}", "title": "" }, { "docid": "586e23c7825f9532c8f764578994fc4d", "score": "0.44113046", "text": "function hm(){var t=this;Object.defineProperties(this,{$source:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ru()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$sourceContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.sourceContainer}}})}", "title": "" }, { "docid": "3cf4e0fd34f8c72f80a4450ae76cad6c", "score": "0.44108352", "text": "function __t() {\n\n}", "title": "" }, { "docid": "e94ba4c29d9a5004778bee2349f60ac1", "score": "0.4399215", "text": "async function getAzureHeaders() {\n // get active account that was set up in AzureApp component\n const account = msalInstance.getActiveAccount();\n // Identify scope and and account to request token silently\n const silentRequest = { account, scopes: [process.env.REACT_APP_AZURE_API_TOKEN_SCOPE] };\n try {\n // No account mean that user wa not signed in, we can not acquire tokens, so we will return empty headers object.\n if (!account) throw InteractionRequiredAuthError.createNoTokensFoundError();\n // token is in local storage we will get it from there, if it is expired we will get a fresh one.\n const tokens = await msalInstance.acquireTokenSilent(silentRequest);\n // return headers object with access token to append to request.\n return {\n Authorization: 'Bearer ' + tokens.accessToken,\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n };\n } catch (error) {\n console.log('-----failed to get tokens-------------------------------------');\n console.dir({ error });\n\n // in case if silent token acquisition fails, fallback to an interactive method\n if (error instanceof InteractionRequiredAuthError) {\n // This method will initiate a full-frame redirect and the response will be handled when returning to the application.\n // When this component is rendered after returning from the redirect, acquireTokenSilent should now succeed\n // as the tokens will be pulled from the cache.\n msalInstance.acquireTokenRedirect(silentRequest);\n //we could use popup but we do not allow iframes;\n // const tokens = await msalInstance.acquireTokenPopup(silentRequest);\n\n // return {\n // Authorization: 'Bearer ' + tokens.accessToken,\n // Accept: 'application/json',\n // 'Content-Type': 'application/json',\n // };\n }\n // failed to get token from localstorage and by interactive request, use is not allowed to go further, backend will respond with 401\n return {};\n }\n}", "title": "" }, { "docid": "c73bcfa6940d954456d8f5f9f2594e96", "score": "0.43936303", "text": "function e1498050() { return 'o.R'; }", "title": "" }, { "docid": "d42c48a4e324a10e5ce91989cebc0912", "score": "0.43890446", "text": "function mxImageExport() { }", "title": "" }, { "docid": "91e892e5e4c44adb8c0d5d4c7da67941", "score": "0.437661", "text": "function mbcs() {}", "title": "" }, { "docid": "91e892e5e4c44adb8c0d5d4c7da67941", "score": "0.437661", "text": "function mbcs() {}", "title": "" }, { "docid": "91e892e5e4c44adb8c0d5d4c7da67941", "score": "0.437661", "text": "function mbcs() {}", "title": "" }, { "docid": "1caa7018e27440eddb372d08a78a198c", "score": "0.437598", "text": "function TestSageAPI1() {\n\treturn Global.GetOS();\n}", "title": "" }, { "docid": "8b880ed5a11935480ccb01cc90792cfd", "score": "0.43750653", "text": "function sd(){return function(){function a(){sb()}function b(a,b){return b?\"\\x00\"===a?\"\\ufffd\":a.slice(0,-1)+\"\\\\\"+a.charCodeAt(a.length-1).toString(16)+\" \":\"\\\\\"+a}function c(a,b,c){a=\"0x\"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)}function d(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function e(a,b){a===b&&(ca=!0);return 0}function f(a,c,d,e){var f,g,h,k,l=c&&c.ownerDocument,m=c?c.nodeType:9;d=d||[];if(\"string\"!==\ntypeof a||!a||1!==m&&9!==m&&11!==m)return d;if(!e&&((c?c.ownerDocument||c:qa)!==G&&sb(c),c=c||G,wa)){if(11!==m&&(k=Sj.exec(a)))if(f=k[1])if(9===m)if(g=c.getElementById(f)){if(g.id===f)return d.push(g),d}else return d;else{if(l&&(g=l.getElementById(f))&&jb(c,g)&&g.id===f)return d.push(g),d}else{if(k[2])return ma.apply(d,c.getElementsByTagName(a)),d;if((f=k[3])&&U.getElementsByClassName&&c.getElementsByClassName)return ma.apply(d,c.getElementsByClassName(f)),d}if(!(!U.qsa||tb[a+\" \"]||da&&da.test(a))){if(1!==\nm){l=c;var Da=a}else if(\"object\"!==c.nodeName.toLowerCase()){(h=c.getAttribute(\"id\"))?h=h.replace(rg,b):c.setAttribute(\"id\",h=R);g=dd(a);for(f=g.length;f--;)g[f]=\"#\"+h+\" \"+x(g[f]);Da=g.join(\",\");l=ve.test(a)&&v(c.parentNode)||c}if(Da)try{return ma.apply(d,l.querySelectorAll(Da)),d}catch(Kn){tb(a)}finally{h===R&&c.removeAttribute(\"id\")}}}return Tj(a.replace(ub,\"$1\"),c,d,e)}function g(){function a(c,d){b.push(c+\" \")>O.cacheLength&&delete a[b.shift()];return a[c+\" \"]=d}var b=[];return a}function h(a){a[R]=\n!0;return a}function k(a){var b=G.createElement(\"fieldset\");try{return!!a(b)}catch(ia){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function l(a,b){for(var c=a.split(\"|\"),d=c.length;d--;)O.attrHandle[c[d]]=b}function m(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function n(a){return function(b){return\"input\"===b.nodeName.toLowerCase()&&b.type===a}}function p(a){return function(b){var c=\nb.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function q(a){return function(b){return\"form\"in b?b.parentNode&&!1===b.disabled?\"label\"in b?\"label\"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&Uj(b)===a:b.disabled===a:\"label\"in b?b.disabled===a:!1}}function u(a){return h(function(b){b=+b;return h(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function v(a){return a&&\"undefined\"!==\ntypeof a.getElementsByTagName&&a}function A(){}function x(a){for(var b=0,c=a.length,d=\"\";b<c;b++)d+=a[b].value;return d}function y(a,b,c){var d=b.dir,e=b.next,f=c&&\"parentNode\"===(e||d),g=ed++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||f)return a(b,c,e);return!1}:function(b,c,h){var k,l,m=Na+\" \"+g;if(h)for(;b=b[d];){if((1===b.nodeType||f)&&a(b,c,h))return!0}else for(;b=b[d];)if(1===b.nodeType||f){var n=b[R]||(b[R]={});n=n[b.uniqueID]||(n[b.uniqueID]={});if(e&&e===b.nodeName.toLowerCase())b=\nb[d]||b;else if((l=n[d])&&l[0]===m){if(!0===(k=l[1])||k===xa)return!0===k}else if(l=n[d]=[m],l[1]=a(b,c,h)||xa,!0===l[1])return!0}return!1}}function z(a){return 1<a.length?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function B(a,b,c,d,e){for(var f,g=[],h=0,k=a.length,l=null!=b;h<k;h++)if(f=a[h])if(!c||c(f,d,e))g.push(f),l&&b.push(h);return g}function C(a,b,c,e,g,k){e&&!e[R]&&(e=C(e));g&&!g[R]&&(g=C(g,k));return h(function(h,k,l,m){var n,Da=[],p=[],q=k.length,ia;\nif(!(ia=h)){ia=b||\"*\";for(var u=l.nodeType?[l]:l,v=[],Jb=0,A=u.length;Jb<A;Jb++)f(ia,u[Jb],v);ia=v}ia=!a||!h&&b?ia:B(ia,Da,a,l,m);u=c?g||(h?a:q||e)?[]:k:ia;c&&c(ia,u,l,m);if(e){var x=B(u,p);e(x,[],l,m);for(l=x.length;l--;)if(n=x[l])u[p[l]]=!(ia[p[l]]=n)}if(h){if(g||a){if(g){x=[];for(l=u.length;l--;)(n=u[l])&&x.push(ia[l]=n);g(null,u=[],x,m)}for(l=u.length;l--;)(n=u[l])&&-1<(x=g?d(h,n):Da[l])&&(h[x]=!(k[x]=n))}}else u=B(u===k?u.splice(q,u.length):u),g?g(null,k,u,m):ma.apply(k,u)})}function E(a){var b,\nc,e=a.length,f=O.relative[a[0].type];var g=f||O.relative[\" \"];for(var h=f?1:0,k=y(function(a){return a===b},g,!0),l=y(function(a){return-1<d(b,a)},g,!0),m=[function(a,c,d){a=!f&&(d||c!==fa)||((b=c).nodeType?k(a,c,d):l(a,c,d));b=null;return a}];h<e;h++)if(g=O.relative[a[h].type])m=[y(z(m),g)];else{g=O.filter[a[h].type].apply(null,a[h].matches);if(g[R]){for(c=++h;c<e&&!O.relative[a[c].type];c++);return C(1<h&&z(m),1<h&&x(a.slice(0,h-1).concat({value:\" \"===a[h-2].type?\"*\":\"\"})).replace(ub,\"$1\"),g,h<\nc&&E(a.slice(h,c)),c<e&&E(a=a.slice(c)),c<e&&x(a))}m.push(g)}return z(m)}function J(a,b){function c(c,h,k,l,m){var n,p,Da=0,q=\"0\",ia=c&&[],u=[],v=fa,x=c||g&&O.find.TAG(\"*\",m),Jb=Na+=null==v?1:Math.random()||.1,A=x.length;m&&(fa=h===G||h||m,xa=d);for(;q!==A&&null!=(n=x[q]);q++){if(g&&n){var y=0;h||n.ownerDocument===G||(sb(n),k=!wa);for(;p=a[y++];)if(p(n,h||G,k)){l.push(n);break}m&&(Na=Jb,xa=++d)}e&&((n=!p&&n)&&Da--,c&&ia.push(n))}Da+=q;if(e&&q!==Da){for(y=0;p=b[y++];)p(ia,u,h,k);if(c){if(0<Da)for(;q--;)ia[q]||\nu[q]||(u[q]=fc.call(l));u=B(u)}ma.apply(l,u);m&&!c&&0<u.length&&1<Da+b.length&&f.function_______________$uniqueSort(l)}m&&(Na=Jb,fa=v);return ia}var d=0,e=0<b.length,g=0<a.length;return e?h(c):c}var P,xa,fa,S,ca,G,W,wa,da,Oa,Kb,jb,R=\"sizzle\"+1*new Date,qa=window.document,Na=0,ed=0,gc=g(),hc=g(),fd=g(),tb=g(),Vj={}.hasOwnProperty,vb=[],fc=vb.pop,Ua=vb.push,ma=vb.push,Va=vb.slice,Lb=RegExp(\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]+\",\"g\"),ub=RegExp(\"^[\\\\x20\\\\t\\\\r\\\\n\\\\f]+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)[\\\\x20\\\\t\\\\r\\\\n\\\\f]+$\",\"g\"),\nWj=/^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*/,Xj=/^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*/,Yj=/:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(#?(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,Zj=/^(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+$/,gd={ID:/^#((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,CLASS:/^\\.((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,\nTAG:/^((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+|[*])/,ATTR:/^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(#?(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]/,PSEUDO:/^:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(#?(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,\nCHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)/i},ak=/^(?:input|select|textarea|button)$/i,bk=/^h\\d$/i,ic=\n/^[^{]+\\{\\s*\\[native \\w/,Sj=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ve=/[+~]/,bb=RegExp(\"\\\\\\\\([\\\\da-f]{1,6}[\\\\x20\\\\t\\\\r\\\\n\\\\f]?|([\\\\x20\\\\t\\\\r\\\\n\\\\f])|.)\",\"ig\"),rg=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,Uj=y(function(a){return!0===a.disabled&&\"fieldset\"===a.nodeName.toLowerCase()},{dir:\"parentNode\",next:\"legend\"});try{ma.apply(vb=Va.call(qa.childNodes),qa.childNodes),vb[qa.childNodes.length].nodeType}catch(Da){ma={apply:vb.length?function(a,b){Ua.apply(a,Va.call(b))}:function(a,b){for(var c=\na.length,d=0;a[c++]=b[d++];);a.length=c-1}}}var U=f.function_______________$support={};var ck=f.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?\"HTML\"!==a.nodeName:!1};var sb=f.function_______________$setDocument=function(b){var f;b=b?b.ownerDocument||b:qa;if(b===G||9!==b.nodeType||!b.documentElement)return G;G=b;W=G.documentElement;wa=!ck(G);qa!==G&&(f=G.defaultView)&&f.top!==f&&(f.addEventListener?f.addEventListener(\"unload\",a,!1):f.attachEvent&&f.attachEvent(\"onunload\",a));\nU.attributes=k(function(a){a.className=\"i\";return!a.getAttribute(\"className\")});U.getElementsByTagName=k(function(a){a.appendChild(G.createComment(\"\"));return!a.getElementsByTagName(\"*\").length});U.getElementsByClassName=ic.test(G.getElementsByClassName);U.getById=k(function(a){W.appendChild(a).id=R;return!G.getElementsByName||!G.getElementsByName(R).length});U.getById?(O.filter.ID=function(a){var b=a.replace(bb,c);return function(a){return a.getAttribute(\"id\")===b}},O.find.ID=function(a,b){if(\"undefined\"!==\ntypeof b.getElementById&&wa){var c=b.getElementById(a);return c?[c]:[]}}):(O.filter.ID=function(a){var b=a.replace(bb,c);return function(a){return(a=\"undefined\"!==typeof a.getAttributeNode&&a.getAttributeNode(\"id\"))&&a.value===b}},O.find.ID=function(a,b){if(\"undefined\"!==typeof b.getElementById&&wa){var c,d,e=b.getElementById(a);if(e){if((c=e.getAttributeNode(\"id\"))&&c.value===a)return[e];var f=b.getElementsByName(a);for(d=0;e=f[d++];)if((c=e.getAttributeNode(\"id\"))&&c.value===a)return[e]}return[]}});\nO.find.TAG=U.getElementsByTagName?function(a,b){if(\"undefined\"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(U.qsa)return b.querySelectorAll(a)}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(\"*\"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f};O.find.CLASS=U.getElementsByClassName&&function(a,b){if(\"undefined\"!==typeof b.getElementsByClassName&&wa)return b.getElementsByClassName(a)};Oa=[];da=[];if(U.qsa=ic.test(G.querySelectorAll))k(function(a){W.appendChild(a).innerHTML=\n\"<a id='\"+R+\"'></a><select id='\"+R+\"-\\r\\\\' msallowcapture=''><option selected=''></option></select>\";a.querySelectorAll(\"[msallowcapture^='']\").length&&da.push(\"[*^$]=[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:''|\\\"\\\")\");a.querySelectorAll(\"[selected]\").length||da.push(\"\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)\");a.querySelectorAll(\"[id~=\"+R+\"-]\").length||da.push(\"~=\");a.querySelectorAll(\":checked\").length||\nda.push(\":checked\");a.querySelectorAll(\"a#\"+R+\"+*\").length||da.push(\".#.+[+~]\")}),k(function(a){a.innerHTML=\"<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>\";var b=G.createElement(\"input\");b.setAttribute(\"type\",\"hidden\");a.appendChild(b).setAttribute(\"name\",\"D\");a.querySelectorAll(\"[name=d]\").length&&da.push(\"name[\\\\x20\\\\t\\\\r\\\\n\\\\f]*[*^$|!~]?=\");2!==a.querySelectorAll(\":enabled\").length&&da.push(\":enabled\",\":disabled\");W.appendChild(a).disabled=!0;2!==a.querySelectorAll(\":disabled\").length&&\nda.push(\":enabled\",\":disabled\");da.push(\",.*:\")});(U.matchesSelector=ic.test(Kb=W.matches||W.webkitMatchesSelector||W.mozMatchesSelector||W.oMatchesSelector||W.msMatchesSelector))&&k(function(a){U.disconnectedMatch=Kb.call(a,\"*\");Kb.call(a,\"[s!='']:x\");Oa.push(\"!=\",\":((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:[\\\\x20\\\\t\\\\r\\\\n\\\\f]*([*^$|!~]?=)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(#?(?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+))|)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*\\\\])*)|.*)\\\\)|)\")});\nda=da.length&&new RegExp(da.join(\"|\"));Oa=Oa.length&&new RegExp(Oa.join(\"|\"));jb=(f=ic.test(W.compareDocumentPosition))||ic.test(W.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&1===d.nodeType&&(c.contains?c.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};e=f?function(a,b){if(a===b)return ca=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;\nif(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!U.sortDetached&&b.compareDocumentPosition(a)===c?a===G||a.ownerDocument===qa&&jb(qa,a)?-1:b===G||b.ownerDocument===qa&&jb(qa,b)?1:S?d(S,a)-d(S,b):0:c&4?-1:1}:function(a,b){if(a===b)return ca=!0,0;var c=0;var e=a.parentNode;var f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===G?-1:b===G?1:e?-1:f?1:S?d(S,a)-d(S,b):0;if(e===f)return m(a,b);for(e=a;e=e.parentNode;)g.unshift(e);for(e=b;e=e.parentNode;)h.unshift(e);\nfor(;g[c]===h[c];)c++;return c?m(g[c],h[c]):g[c]===qa?-1:h[c]===qa?1:0};return G};f.matches=function(a,b){return f(a,null,null,b)};f.matchesSelector=function(a,b){(a.ownerDocument||a)!==G&&sb(a);if(!(!U.matchesSelector||!wa||tb[b+\" \"]||Oa&&Oa.test(b)||da&&da.test(b)))try{var c=Kb.call(a,b);if(c||U.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(Jn){tb(b)}return 0<f(b,G,null,[a]).length};f.contains=function(a,b){(a.ownerDocument||a)!==G&&sb(a);return jb(a,b)};f.function_______________$attr=\nfunction(a,b){(a.ownerDocument||a)!==G&&sb(a);var c=O.attrHandle[b.toLowerCase()];c=c&&Vj.call(O.attrHandle,b.toLowerCase())?c(a,b,!wa):void 0;return void 0!==c?c:U.attributes||!wa?a.getAttribute(b):(c=a.getAttributeNode(b))&&c.specified?c.value:null};f.function_______________$escape=function(a){return(a+\"\").replace(rg,b)};f.error=function(a){throw Error(\"Syntax error, unrecognized expression: \"+a);};f.function_______________$uniqueSort=function(a){var b,c=[],d=0,f=0;ca=!U.detectDuplicates;S=!U.sortStable&&\na.slice(0);a.sort(e);if(ca){for(;b=a[f++];)b===a[f]&&(d=c.push(f));for(;d--;)a.splice(c[d],1)}S=null};var we=f.getText=function(a){var b=\"\",c=0;var d=a.nodeType;if(!d)for(;d=a[c++];)b+=we(d);else if(1===d||9===d||11===d){if(\"string\"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)b+=we(a)}else if(3===d||4===d)return a.nodeValue;return b};var O=f.selectors={cacheLength:50,createPseudo:h,match:gd,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\n\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(bb,c);a[3]=(a[3]||a[4]||a[5]||\"\").replace(bb,c);\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();\"nth\"===a[1].slice(0,3)?(a[3]||f.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&f.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(gd.CHILD.test(a[0]))return null;a[3]?\na[2]=a[4]||a[5]||\"\":c&&Yj.test(c)&&(b=dd(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(bb,c).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=gc[a+\" \"];return b||(b=new RegExp(\"(^|[\\\\x20\\\\t\\\\r\\\\n\\\\f])\"+a+\"([\\\\x20\\\\t\\\\r\\\\n\\\\f]|$)\"),gc(a,function(a){return b.test(\"string\"===typeof a.className&&a.className||\"undefined\"!==\ntypeof a.getAttribute&&a.getAttribute(\"class\")||\"\")}))},ATTR:function(a,b,c){return function(d){d=f.function_______________$attr(d,a);return null==d?\"!=\"===b:b?\"=\"===b?d===c:\"!=\"===b?d!==c:\"^=\"===b?c&&0===d.indexOf(c):\"*=\"===b?c&&-1<d.indexOf(c):\"$=\"===b?c&&d.slice(-c.length)===c:\"~=\"===b?-1<(\" \"+d.replace(Lb,\" \")+\" \").indexOf(c):\"|=\"===b?d===c||d.slice(0,c.length+1)===c+\"-\":!1:!0}},CHILD:function(a,b,c,d,e){var f=\"nth\"!==a.slice(0,3),g=\"last\"!==a.slice(-4),h=\"of-type\"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:\nfunction(b,c,k){var l,m;c=f!==g?\"nextSibling\":\"previousSibling\";var n=b.parentNode,p=h&&b.nodeName.toLowerCase();k=!k&&!h;var q=!1;if(n){if(f){for(;c;){for(l=b;l=l[c];)if(h?l.nodeName.toLowerCase()===p:1===l.nodeType)return!1;var u=c=\"only\"===a&&!u&&\"nextSibling\"}return!0}u=[g?n.firstChild:n.lastChild];if(g&&k){l=n;var v=l[R]||(l[R]={});v=v[l.uniqueID]||(v[l.uniqueID]={});q=v[a]||[];q=(m=q[0]===Na&&q[1])&&q[2];for(l=m&&n.childNodes[m];l=++m&&l&&l[c]||(q=m=0)||u.pop();)if(1===l.nodeType&&++q&&l===\nb){v[a]=[Na,m,q];break}}else if(k&&(l=b,v=l[R]||(l[R]={}),v=v[l.uniqueID]||(v[l.uniqueID]={}),q=v[a]||[],q=m=q[0]===Na&&q[1]),!1===q)for(;(l=++m&&l&&l[c]||(q=m=0)||u.pop())&&((h?l.nodeName.toLowerCase()!==p:1!==l.nodeType)||!++q||(k&&(v=l[R]||(l[R]={}),v=v[l.uniqueID]||(v[l.uniqueID]={}),v[a]=[Na,q]),l!==b)););q-=e;return q===d||0===q%d&&0<=q/d}}},PSEUDO:function(a,b){var c=O.pseudos[a]||O.setFilters[a.toLowerCase()]||f.error(\"unsupported pseudo: \"+a);if(c[R])return c(b);if(1<c.length){var e=[a,a,\n\"\",b];return O.setFilters.hasOwnProperty(a.toLowerCase())?h(function(a,e){for(var f,g=c(a,b),h=g.length;h--;)f=d(a,g[h]),a[f]=!(e[f]=g[h])}):function(a){return c(a,0,e)}}return c}},pseudos:{not:h(function(a){var b=[],c=[],d=sg(a.replace(ub,\"$1\"));return d[R]?h(function(a,b,c,e){e=d(a,null,e,[]);for(var f=a.length;f--;)if(c=e[f])a[f]=!(b[f]=c)}):function(a,e,f){b[0]=a;d(b,null,f,c);b[0]=null;return!c.pop()}}),has:h(function(a){return function(b){return 0<f(a,b).length}}),contains:h(function(a){a=a.replace(bb,\nc);return function(b){return-1<(b.textContent||b.innerText||we(b)).indexOf(a)}}),lang:h(function(a){Zj.test(a||\"\")||f.error(\"unsupported lang: \"+a);a=a.replace(bb,c).toLowerCase();return function(b){var c;do if(c=wa?b.lang:b.getAttribute(\"xml:lang\")||b.getAttribute(\"lang\"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+\"-\");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(a){var b=window.location&&window.location.hash;return b&&b.slice(1)===a.id},root:function(a){return a===W},\nfocus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:q(!1),disabled:q(!0),checked:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&!!a.checked||\"option\"===b&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!O.pseudos.empty(a)},header:function(a){return bk.test(a.nodeName)},\ninput:function(a){return ak.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:u(function(){return[0]}),last:u(function(a,b){return[b-1]}),eq:u(function(a,b,c){return[0>c?c+b:c]}),even:u(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:u(function(a,b){for(var c=1;c<b;c+=\n2)a.push(c);return a}),lt:u(function(a,b,c){for(b=0>c?c+b:c;0<=--b;)a.push(b);return a}),gt:u(function(a,b,c){for(c=0>c?c+b:c;++c<b;)a.push(c);return a})}};O.pseudos.nth=O.pseudos.eq;for(P in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})O.pseudos[P]=n(P);for(P in{submit:!0,reset:!0})O.pseudos[P]=p(P);A.prototype=O.filters=O.pseudos;O.setFilters=new A;var dd=f.tokenize=function(a,b){var c,d,e,g,h;if(g=hc[a+\" \"])return b?0:g.slice(0);g=a;var k=[];for(h=O.preFilter;g;){if(!l||(c=Wj.exec(g)))c&&\n(g=g.slice(c[0].length)||g),k.push(d=[]);var l=!1;if(c=Xj.exec(g))l=c.shift(),d.push({value:l,type:c[0].replace(ub,\" \")}),g=g.slice(l.length);for(e in O.filter)!(c=gd[e].exec(g))||h[e]&&!(c=h[e](c))||(l=c.shift(),d.push({value:l,type:e,matches:c}),g=g.slice(l.length));if(!l)break}return b?g.length:g?f.error(a):hc(a,k).slice(0)};var sg=f.compile=function(a,b){var c,d=[],e=[],f=fd[a+\" \"];if(!f){b||(b=dd(a));for(c=b.length;c--;)f=E(b[c]),f[R]?d.push(f):e.push(f);f=fd(a,J(e,d));f.selector=a}return f};\nvar Tj=f.function_______________$select=function(a,b,d,e){var f,g,h,k=\"function\"===typeof a&&a,l=!e&&dd(a=k.selector||a);d=d||[];if(1===l.length){var m=l[0]=l[0].slice(0);if(2<m.length&&\"ID\"===(g=m[0]).type&&9===b.nodeType&&wa&&O.relative[m[1].type]){b=(O.find.ID(g.matches[0].replace(bb,c),b)||[])[0];if(!b)return d;k&&(b=b.parentNode);a=a.slice(m.shift().value.length)}for(f=gd.needsContext.test(a)?0:m.length;f--;){g=m[f];if(O.relative[h=g.type])break;if(h=O.find[h])if(e=h(g.matches[0].replace(bb,\nc),ve.test(m[0].type)&&v(b.parentNode)||b)){m.splice(f,1);a=e.length&&x(m);if(!a)return ma.apply(d,e),d;break}}}(k||sg(a,l))(e,b,!wa,d,!b||ve.test(a)&&v(b.parentNode)||b);return d};U.sortStable=R.split(\"\").sort(e).join(\"\")===R;U.detectDuplicates=!!ca;sb();U.sortDetached=k(function(a){return a.compareDocumentPosition(G.createElement(\"fieldset\"))&1});k(function(a){a.innerHTML=\"<a href='#'></a>\";return\"#\"===a.firstChild.getAttribute(\"href\")})||l(\"type|href|height|width\",function(a,b,c){if(!c)return a.getAttribute(b,\n\"type\"===b.toLowerCase()?1:2)});U.attributes&&k(function(a){a.innerHTML=\"<input/>\";a.firstChild.setAttribute(\"value\",\"\");return\"\"===a.firstChild.getAttribute(\"value\")})||l(\"value\",function(a,b,c){if(!c&&\"input\"===a.nodeName.toLowerCase())return a.defaultValue});k(function(a){return null==a.getAttribute(\"disabled\")})||l(\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():\n(d=a.getAttributeNode(b))&&d.specified?d.value:null});return f}()}", "title": "" }, { "docid": "12d56f3a025e02af60f8eaf07dd1fc1b", "score": "0.43641979", "text": "function isWindows() {\n return process.platform === \"win32\";\n}", "title": "" }, { "docid": "65ad91a740cbd1090fe7307eb789dcb8", "score": "0.4364091", "text": "function AboutRXM() {}", "title": "" }, { "docid": "21737b4ca2b27924a54c7f45b7ece51f", "score": "0.43609613", "text": "function CND_EXTHIDDEN()\r\n\t{\r\n\t}", "title": "" }, { "docid": "6f61fe8f86c8697e2c8273338f1b4387", "score": "0.43596834", "text": "function vc() {\n if (\"undefined\" == typeof atob) throw new T(E.UNIMPLEMENTED, \"Blobs are unavailable in Firestore in this environment.\");\n}", "title": "" }, { "docid": "bc2a1ae249786b0fe549997fe6c7c2c7", "score": "0.4359085", "text": "function detect() {\r\n\tvar text = document.getElementById(\"srcTextArea\").value;\r\n\tapi = \"http://api.microsofttranslator.com/V2/Ajax.svc/Detect?oncomplete=onDetect&appId=86B37AB482F841F7A33D2AB16430EF7C46E8775F&text=\" + text;\r\n\tcallAPI(api);\r\n}", "title": "" }, { "docid": "022ee3aba2b00b2df9515313124353c5", "score": "0.4355122", "text": "get SUPPORT_BASE64_DRAWING() {\n 'use strict';\n\n return function (src) {\n var _value = testBase64(document, src);\n Object.defineProperty(FEATURES, 'SUPPORT_BASE64_DRAWING', { value: function value() {\n return _value;\n } });\n return _value;\n };\n }", "title": "" } ]
7ba647a568883ea03a763170d48a269d
pick the locale from the array try ['enau', 'engb'] as 'enau', 'engb', 'en', as in move through the list trying each substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
[ { "docid": "37dd416755c4006f1b9531bb4c6b7a1a", "score": "0.0", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n }", "title": "" } ]
[ { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "ec0b20bc36b12e8f31a1cc22cb864654", "score": "0.7075347", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "b5e608fff0172d33b291494830f14e8b", "score": "0.7071428", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}", "title": "" }, { "docid": "bbf9d86ce37d99b38af903c91008b14f", "score": "0.7039762", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n \n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }", "title": "" }, { "docid": "bbf9d86ce37d99b38af903c91008b14f", "score": "0.7039762", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n \n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }", "title": "" }, { "docid": "59cc6d13bfa11a9515ea4861be910ecf", "score": "0.70240736", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n }", "title": "" }, { "docid": "59cc6d13bfa11a9515ea4861be910ecf", "score": "0.70240736", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return null;\n }", "title": "" }, { "docid": "79801fe9ef1c50abe5b231c34da04df6", "score": "0.7018147", "text": "function chooseLocale(names) {\n\t\t\t\t\t\tvar i = 0,\n\t\t\t\t\t\t\tj, next, locale, split;\n\n\t\t\t\t\t\twhile (i < names.length) {\n\t\t\t\t\t\t\tsplit = normalizeLocale(names[i]).split('-');\n\t\t\t\t\t\t\tj = split.length;\n\t\t\t\t\t\t\tnext = normalizeLocale(names[i + 1]);\n\t\t\t\t\t\t\tnext = next ? next.split('-') : null;\n\t\t\t\t\t\t\twhile (j > 0) {\n\t\t\t\t\t\t\t\tlocale = loadLocale(split.slice(0, j).join('-'));\n\t\t\t\t\t\t\t\tif (locale) {\n\t\t\t\t\t\t\t\t\treturn locale;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n\t\t\t\t\t\t\t\t\t//the next array item is better than a shallower substring of this one\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "e9a49a83d4b5d2919ac8daae22a7b19e", "score": "0.7016287", "text": "function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n\n if (locale) {\n return locale;\n }\n\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n\n j--;\n }\n\n i++;\n }\n\n return globalLocale;\n }", "title": "" } ]
0f1fd6087dd62ac2e853e0ccf03ccd67
Search regex helper function
[ { "docid": "e0196370d235ca199fae7745647106c9", "score": "0.0", "text": "function escapeRegex(text) {\r\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, \"\\\\$&\");\r\n}", "title": "" } ]
[ { "docid": "f32349cefe5e6c5148633899e7b1f49c", "score": "0.673239", "text": "function buildRegExp(search) {\n let words = search.trim().split(/[ \\-\\:]+/);\n let exps = _.map(words, function(word) {\n return \"(?=.*\" + word + \")\";\n });\n let fullExp = exps.join('') + \".+\";\n return new RegExp(fullExp, \"i\");\n}", "title": "" }, { "docid": "b6b2ed1209c0fb993854f3292b5e585f", "score": "0.6561652", "text": "function regSearch(pattern) {\r\n pattern = trimTag(pattern);\r\n var r = new RegExp(\" \" + pattern + \"\\\\w*\", \"ig\");\r\n var b = hashString.match(r);\r\n return b;\r\n }", "title": "" }, { "docid": "4b3d3be9364aac910725f2bddfd9b45d", "score": "0.6399359", "text": "function cari(){\n\tvar isi = \"saya beajar di rumah teman\";\n\tconsole.log(isi.search(\"beajar\"));\n\tconsole.log(isi.search(/beajar/));\n}", "title": "" }, { "docid": "3fc72e3fe0455c566ffa06859b70334f", "score": "0.62465507", "text": "function reg_match(p, s) {\n var f = arg_init(arguments, 2, \"gi\");\n var r = new RegExp(p, f);\n var a = r.exec(s);\n if (!empty(a)) {\n return a;\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "42e58c64604da870c1c6951e9e8843d2", "score": "0.6187416", "text": "function makeReg(search, doStrict) {\r\n if (!search) {\r\n return (/.?/);\r\n }\r\n if (doStrict) {\r\n return new RegExp('.?' + search + '.?', 'i');\r\n }\r\n var splitArr = search.split(' ');\r\n var regSearch = '^';\r\n var isFirstTime = true;\r\n splitArr.forEach(function(word) {\r\n regSearch += '(?=.*?(';\r\n //if (!isFirstTime) {\r\n //regSearch += '|';\r\n //}\r\n regSearch += word;\r\n regSearch += '))';\r\n isFirstTime = false;\r\n });\r\n regSearch += '.*$';\r\n return new RegExp(regSearch, 'i');\r\n }", "title": "" }, { "docid": "96a873384fc4443f2930b1ffcbfe2e9e", "score": "0.61603117", "text": "function makeReg(search, doStrict) {\n if (!search) {\n return (/.?/);\n }\n if (doStrict) {\n return new RegExp('.?' + search + '.?', 'i');\n }\n var splitArr = search.split(' ');\n var regSearch = '^';\n var isFirstTime = true;\n splitArr.forEach(function(word) {\n regSearch += '(?=.*?(';\n //if (!isFirstTime) {\n //regSearch += '|';\n //}\n regSearch += word;\n regSearch += '))';\n isFirstTime = false;\n });\n regSearch += '.*$';\n return new RegExp(regSearch, 'i');\n }", "title": "" }, { "docid": "fb5a632bb4fbe006518e35b2b54b24b6", "score": "0.6142442", "text": "function matchSearchFuncEngRegex (searchTerm) {\n return function(element) {\n var re = \".*\" + searchTerm + \".*\";\n if (element.definition.match(re)) {\n return true;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "6711d0da0b9925f54e476c685556cfa9", "score": "0.6109665", "text": "function getMatch(string, regex) {\n console.log(string.match(regex));\n}", "title": "" }, { "docid": "fce831edfd89f8ceaa77aaf0e0842a11", "score": "0.60555744", "text": "function buildRegex(search) {\n return new RegExp(\n _.escapeRegExp(search),\n 'g'\n );\n }", "title": "" }, { "docid": "2be650b9e91dac61a99eeeeda75bdb48", "score": "0.6006485", "text": "function createMatch(name) {\n return new RegExp('^' + name.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&'));\n }", "title": "" }, { "docid": "36ec929826c46b5e89c15404a2f314ef", "score": "0.6004426", "text": "function matchSearchFuncMoroRegex (searchTerm) {\n return function(element) {\n return findMoroWordInArrayMoroRegex(element.moroword, searchTerm)\n }\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "dfda4c05aaaf83c4daaa41fcc58a3b99", "score": "0.60016155", "text": "transform ($input) {\n return String ($input).length > 0 ? new RegExp ($input, 'i') : undefined;\n }", "title": "" }, { "docid": "3a7770698db7fc03b8f1bcffcc8736f7", "score": "0.5975031", "text": "_match(string, regexp) {\n let matched = string.match(regexp);\n if (matched) {\n this._cursor += matched[0].length;\n return matched[0];\n }\n return null;\n }", "title": "" }, { "docid": "bb611b26a50d7233b494640d2066db1d", "score": "0.5956026", "text": "function wildcardToRegExp(s){return new RegExp('^'+s.split(/\\*+/).map(regExpEscape).join('.*')+'$');}", "title": "" }, { "docid": "08f0583d7cf06ca8972583a0b351be90", "score": "0.5948739", "text": "static searchRegEx(subject, regEx) {\n var results = subject.match(regEx);\n var ret = [];\n if (results != null) {\n for (var i = 0; i < results.length; ++i) {\n ret[i] = results[i];\n }\n }\n return ret;\n }", "title": "" }, { "docid": "44e34225db99800ececbbe203df58267", "score": "0.59403044", "text": "match(input) {\n return createRegex(this.aliases, false).test(input);\n }", "title": "" }, { "docid": "077daf4785064897f94d0219be00f571", "score": "0.593261", "text": "function _fnFilterCreateSearch( sSearch, bRegex, bSmart )\n\t\t{\n\t\t\tvar asSearch, sRegExpString;\n\t\t\t\n\t\t\tif ( bSmart )\n\t\t\t{\n\t\t\t\t/* Generate the regular expression to use. Something along the lines of:\n\t\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo\\b)(?=.*?\\bthree\\b).*$\n\t\t\t\t */\n\t\t\t\tasSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );\n\t\t\t\tsRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';\n\t\t\t\treturn new RegExp( sRegExpString, \"i\" );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );\n\t\t\t\treturn new RegExp( sSearch, \"i\" );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "077daf4785064897f94d0219be00f571", "score": "0.593261", "text": "function _fnFilterCreateSearch( sSearch, bRegex, bSmart )\n\t\t{\n\t\t\tvar asSearch, sRegExpString;\n\t\t\t\n\t\t\tif ( bSmart )\n\t\t\t{\n\t\t\t\t/* Generate the regular expression to use. Something along the lines of:\n\t\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo\\b)(?=.*?\\bthree\\b).*$\n\t\t\t\t */\n\t\t\t\tasSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );\n\t\t\t\tsRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';\n\t\t\t\treturn new RegExp( sRegExpString, \"i\" );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );\n\t\t\t\treturn new RegExp( sSearch, \"i\" );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "077daf4785064897f94d0219be00f571", "score": "0.593261", "text": "function _fnFilterCreateSearch( sSearch, bRegex, bSmart )\n\t\t{\n\t\t\tvar asSearch, sRegExpString;\n\t\t\t\n\t\t\tif ( bSmart )\n\t\t\t{\n\t\t\t\t/* Generate the regular expression to use. Something along the lines of:\n\t\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo\\b)(?=.*?\\bthree\\b).*$\n\t\t\t\t */\n\t\t\t\tasSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );\n\t\t\t\tsRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';\n\t\t\t\treturn new RegExp( sRegExpString, \"i\" );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );\n\t\t\t\treturn new RegExp( sSearch, \"i\" );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4354162a53af6aa7a13fd02e17782d46", "score": "0.591965", "text": "function makeMatcher(makeRegexpFn = pathToRegexp) {\n let cache = {}; // obtains a cached regexp version of the pattern\n\n const getRegexp = pattern => cache[pattern] || (cache[pattern] = makeRegexpFn(pattern));\n\n return (pattern, path) => {\n const {\n regexp,\n keys\n } = getRegexp(pattern || \"\");\n const out = regexp.exec(path);\n if (!out) return [false, null]; // formats an object with matched params\n\n const params = keys.reduce((params, key, i) => {\n params[key.name] = out[i + 1];\n return params;\n }, {});\n return [true, params];\n };\n} // escapes a regexp string (borrowed from path-to-regexp sources)", "title": "" }, { "docid": "a88bf150fd3c22e920eba330ee8d7809", "score": "0.5913701", "text": "function regexSearch(obj, expr, options, reOpts) {\n var val = (0, core_1.computeValue)(obj, expr, null, options);\n if (!(0, util_1.isString)(val.input))\n return [];\n var regexOptions = val.options;\n if (regexOptions) {\n (0, util_1.assert)(regexOptions.indexOf(\"x\") === -1, \"extended capability option 'x' not supported\");\n (0, util_1.assert)(regexOptions.indexOf(\"g\") === -1, \"global option 'g' not supported\");\n }\n var input = val.input;\n var re = new RegExp(val.regex, regexOptions);\n var m;\n var matches = [];\n var offset = 0;\n while ((m = re.exec(input))) {\n var result = {\n match: m[0],\n idx: m.index + offset,\n captures: [],\n };\n for (var i = 1; i < m.length; i++) {\n result.captures.push(m[i] || null);\n }\n matches.push(result);\n if (!reOpts.global)\n break;\n offset = m.index + m[0].length;\n input = input.substr(offset);\n }\n return matches;\n}", "title": "" }, { "docid": "816b7cf84c4ba51124c77978332ab45a", "score": "0.5870575", "text": "function getMatchesInStr(str, regex){\n //console.log(\"matchPersons:\",str);\n //console.log(\"...regex:\",regex);\n let matches = [];\n let m;\n\n while ((m = regex.exec(str)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (m.index === regex.lastIndex) {\n regex.lastIndex++;\n }\n matches.push({name:m[0],idx:m.index})\n }\n //console.log(matches);\n return matches;\n }", "title": "" }, { "docid": "948d5f60a30943215aeb0e97e6d2d86f", "score": "0.5866228", "text": "function regexVar() {\n /*\n * Declare a RegExp object variable named 're'\n * It must match a string that starts with 'Mr.', 'Mrs.', 'Ms.', 'Dr.', or 'Er.', \n * followed by one or more letters.\n */\n \n let re = /^(Mr|Mrs|Ms|Dr|Er)(\\.)([a-zA-Z])+$/\n /*\n * Do not remove the return statement\n */\n return re;\n}", "title": "" }, { "docid": "757660a1b8cb3ed3546fa348f2cd8729", "score": "0.5852612", "text": "function shouldSearchUseRegex(needle) {\n return !!needle && needle.charAt(0) === '/' && trimSearchText(needle).length > 0;\n}", "title": "" }, { "docid": "08cdedd4595dce3386e56f0dd1ed28c2", "score": "0.5838115", "text": "match_regex(pattern) {\n const match = pattern.exec(this.template.slice(this.index));\n if (!match || match.index !== 0)\n return null;\n return match[0];\n }", "title": "" }, { "docid": "498f63d61493ebd85522cad79f15f2a8", "score": "0.58012944", "text": "function make_a_matcher( ) {\n return /a/gi;\n}", "title": "" }, { "docid": "507278b40d5a91e46a04f2b8e4ce7ffe", "score": "0.5797861", "text": "function wildcardToRegExp$1(s){return new RegExp('^'+s.split(/\\*+/).map(regExpEscape$1).join('.*')+'$');}", "title": "" }, { "docid": "233c401aed2bca93ba786b7781dab785", "score": "0.5797854", "text": "regexp (word, escape = true) {\n if (escape) {\n word = this.escapeRegexp(word)\n }\n return new RegExp(`(^|[\\\\s,(])(${word}($|[\\\\s(,]))`, 'gi')\n }", "title": "" }, { "docid": "1dae58db201666762a429bd683dfd9db", "score": "0.5790241", "text": "function fromRegex (r) {\n return function (o) { return typeof o === 'string' && r.test(o) }\n}", "title": "" }, { "docid": "1dae58db201666762a429bd683dfd9db", "score": "0.5790241", "text": "function fromRegex (r) {\n return function (o) { return typeof o === 'string' && r.test(o) }\n}", "title": "" }, { "docid": "f00e58c708f754a0eaf9b39b95e42f1a", "score": "0.5783088", "text": "function searchTextToRegExp(needle) {\n return new RegExp(trimSearchText(needle), 'gi');\n}", "title": "" }, { "docid": "1942e39b53023d3797b7d27be76f32b2", "score": "0.5766185", "text": "function extUtils_findPatternsInString(nodeStr, quickSearch, searchPatterns, findMultiple)\n{\n var pos = null;\n\n //if something to search and quick search matches (or is empty)\n // Note that the quickSearch is NOT case sensitive\n if ( nodeStr && quickSearch!=null\n && (nodeStr.toUpperCase().indexOf(quickSearch.toUpperCase()) != -1\n || !quickSearch)\n )\n {\n //pos is 0 if there are no patterns (returns true)\n var pos = new Array(0,0);\n\n // Build up a nodeInfo object which stores off the innerHTML, begin tag string,\n // and attribute values. This is useful for patterns that have\n // the limitSearch property defined.\n var callback = new Object();\n callback.tagCount = 0;\n callback.tagStart = -1\n callback.innerStart = -1;\n callback.innerEnd = -1;\n callback.attributes = new Object();\n callback.openTagBegin = new Function(\"tag,offset\",\"if (this.tagCount == 0) { this.tagStart = offset;}\");\n callback.attribute = new Function(\"name,val\", \"if (this.tagCount == 0) { this.attributes[name] = val;}\");\n callback.openTagEnd = new Function(\"offset\",\"if (this.tagCount == 0) { this.innerStart = offset; } this.tagCount++;\");\n callback.closeTagBegin = new Function(\"tag,offset\",\" this.innerEnd = offset\");\n\n dw.scanSourceString(nodeStr, callback);\n\n var nodeInfo = new Object();\n nodeInfo.outerHTML = nodeStr;\n nodeInfo.tagOnly = nodeStr.substring(callback.tagStart, callback.innerStart);\n nodeInfo.attributes = callback.attributes;\n nodeInfo.innerHTML = nodeStr.substring(callback.innerStart, callback.innerEnd);\n\n //Tries each pattern. If patterns exist and any\n //patterns are not found, breaks and returns null.\n //Otherwise remembers position of last match (used for \"nodeAttribute\" insertLocation).\n for (var i=0; i < searchPatterns.length; i++)\n {\n //get the search pattern\n var pattern = searchPatterns[i].pattern;\n var isOptional = (searchPatterns[i].isOptional == \"true\")\n\n // Limit the string we search over using the limitSearch property.\n var limitSearch = searchPatterns[i].limitSearch;\n var theStr = nodeInfo.outerHTML;\n if (limitSearch)\n {\n if (limitSearch.toUpperCase() == \"TAGONLY\")\n {\n theStr = nodeInfo.tagOnly;\n }\n else if (limitSearch.toUpperCase() == \"INNERONLY\")\n {\n theStr = nodeInfo.innerHTML;\n }\n else\n {\n var attrPatt = /attribute\\+(\\w+)/i;\n var match = attrPatt.exec(limitSearch);\n if (match && match.length > 1 && nodeInfo.attributes[match[1]])\n {\n theStr = nodeInfo.attributes[match[1]];\n }\n }\n }\n\n //clear any old match information\n searchPatterns[i].match = '';\n\n //if pattern starts with \"/\", must be regular expression\n if (pattern.length > 2 && pattern.charAt(0)==\"/\") //if regular expression, search for that\n {\n pattern = eval(pattern); //convert /string/ to regular expression\n\n if (!findMultiple)\n {\n var match = theStr.match(pattern); //search for it as RegExp\n if (match)\n {\n pos[0] = match.index; //remember position\n pos[1] = pos[0]+match[0].length;\n searchPatterns[i].match = match;\n }\n else\n {\n if (!isOptional)\n {\n pos = null;\n break;\n }\n }\n }\n else\n {\n var match;\n var attributes = \"g\" + ((pattern.ignoreCase) ? \"i\" : \"\");\n var globalPattern = new RegExp(pattern.source,attributes);\n searchPatterns[i].match = new Array();\n\n while ( (match = globalPattern.exec(theStr)) != null )\n {\n searchPatterns[i].match.push(match);\n }\n\n if (searchPatterns[i].match.length == 0)\n {\n if (!isOptional)\n {\n pos = null;\n break;\n }\n }\n }\n\n //if no \"/\", do straight search\n }\n else\n {\n var offsetPos = theStr.indexOf(pattern); //search for string with indexOf()\n if (offsetPos != -1)\n {\n pos[0] = offsetPos;\n pos[1] = pos[0]+pattern.length;\n }\n else\n {\n if (!isOptional)\n {\n pos = null;\n break;\n }\n }\n }\n }\n }\n return pos;\n}", "title": "" }, { "docid": "6960425edd047f0b1e195e39c6f7095d", "score": "0.57526076", "text": "match(rexp) {\n return rexp.test(this.value.substring(this.i));\n }", "title": "" }, { "docid": "39c5b4fa470bed81c3678b6a4e3594e6", "score": "0.5752455", "text": "function any() {\n var patterns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n patterns[_i - 0] = arguments[_i];\n }\n return new Pattern(function (str, pos) {\n for (var _i = 0; _i < patterns.length; _i++) {\n var p = patterns[_i];\n var r = p.exec(str, pos);\n if (r)\n return r;\n }\n });\n }", "title": "" }, { "docid": "69fe1a1525c96009e4c27b93e1d64fbd", "score": "0.57256603", "text": "function re(str) {\n\t return new RegExp(escapeStringRegexp(str), 'g');\n\t}", "title": "" }, { "docid": "e542dd86b94992c94c2f2804fa499856", "score": "0.57186943", "text": "function re(r){return function(s){var m\n m=r.exec(s.str())\n if(!m) return false\n s.adv(m[0].length);return true}}", "title": "" }, { "docid": "51430422c29cdde1df0f4bdc42d5f1ed", "score": "0.5715661", "text": "function grep(s) {\n return new RegExp(_.map(str(s).split(/\\s/), _.escapeRegExp).join('.*'), 'i');\n}", "title": "" }, { "docid": "0913f51d9dce1dbc49e2402bf76319cd", "score": "0.5706964", "text": "function main() {\n const re = regexVar();\n const s = [\"abcda\", \"bb\", \"bcb\", \"abcd\", \"abcda\", \"abcdo\"];\n for (let i = 0; i < s.length; i++) {\n console.log(re.test(s[i]));\n }\n}", "title": "" }, { "docid": "aa2df3542f1f606c915f503ae38cf5c5", "score": "0.5705419", "text": "function mznRegExp(re) {\n switch (re) {\n case \"re.allchar\":\n return \"(.*)\"; \n default: \n if (typeof(re) === \"string\" && (re.startsWith(\"var\")\n || re.startsWith(\"regex_exec_\") || re.startsWith(\"regex_capture_\")))\n return \"SVAL_\" + re;\n }\n switch (re[0]) {\n case \"Str\":\n return \"(\" + mznRegExp(re[1]) + \")\";\n case \"str.in.re\":\n return \"str_reg(\" + mznRegExp(re[1]) +\", \\\"\"+ mznRegExp(re[2]) +\"\\\")\";\n case \"str.to.re\":\n return \"(\" + escapeRegExp(re[1].substr(1, re[1].length - 2)) + \")\";\n case \"str.++\":\n let rs = \"(\";\n const ns = re.length - 1;\n for (let i = 1; i < ns; ++i)\n rs += mznRegExp(re[i]) + \" ++ \";\n return rs + mznRegExp(re[ns]) + \")\";\n case \"re.*\":\n return \"(\" + mznRegExp(re[1]) + \")*\";\n case \"re.+\":\n const r = mznRegExp(re[1]);\n return \"(\" + r + r + \"*)\"; \n case \"re.opt\":\n return \"(()|\" + mznRegExp(re[1]) + \")\";\n case \"re.++\": \n let rc = \"(\";\n for (let i = 1; i < re.length; ++i)\n rc += mznRegExp(re[i]);\n return rc + \")\";\n case \"re.union\":\n let ru = \"(\";\n const n = re.length - 1;\n for (let i = 1; i < n; ++i)\n ru += mznRegExp(re[i]) + \"|\"\n return ru + mznRegExp(re[n]) + \")\";\n case \"re.range\":\n return \"[\" + mznRegExpBound(re[1]) + \"-\" + mznRegExpBound(re[2]) + \"]\"\n case \"re.loop\":\n const l = re[2], u = re[3]; \n if (re[1][0] === \"re.range\") {\n const a = mznRegExpBound(re[1][1]), b = mznRegExpBound(re[1][2]); \n if (typeof(u) === \"number\")\n return \"[\" + a + \"-\" + b + \",\" + l + \",\" + u + \"]\";\n else\n return \"[\" + a + \"-\" + b + \",\" + l + \"]\";\n }\n// if (String(re[1]) === DOT) {\n// const a = \"\\\\x00\", b = \"\\\\xFF\"\n// if (typeof(u) === \"number\")\n// return \"[\" + a + \"-\" + b + \",\" + l + \",\" + u + \"]\";\n// else\n// return \"[\" + a + \"-\" + b + \",\" + l + \"]\";\n// }\n let r1 = mznRegExp(re[1]), r2 = \"(\" + r1.repeat(l) + \")\";\n if (typeof(u) === \"number\")\n r2 += \"(\" + (\"(\" + r1 + \"|())\").repeat(u - l) + \")\";\n else\n r2 += \"(\" + r1 + \")*\";\n return r2;\n case \"re.inter\":\n let ri = \"(\";\n const m = re.length - 1;\n for (let i = 1; i < m; ++i)\n ri += mznRegExp(re[i]) + \"&\"\n return ri + mznRegExp(re[m]) + \")\";\n case \"=\":\n return \"(\" + mznRegExp(re[1]) + \" = \" + mznRegExp(re[2]) + \")\";\n case \"and\":\n let ra = \"(\";\n const na = re.length - 1;\n for (let i = 1; i < na; ++i)\n ra += mznRegExp(re[i]) + \" /\\\\ \";\n return ra + mznRegExp(re[na]) + \")\";\n case \"ite\":\n return \"[\" + mznRegExp(re[3]) + \", \" + mznRegExp(re[2]) + \n \"][\" + mznRegExp(re[1]) + \" + 1]\";\n default:\n throw new Error(\"Unsupported regex! \" + re)\n }\n}", "title": "" }, { "docid": "4b1f6bfcc10e22f805f93ed15c124ff2", "score": "0.5692394", "text": "match(pattern, consume, caseInsensitive) {\n if (typeof pattern == 'string') {\n let cased = (str) => (caseInsensitive ? str.toLowerCase() : str)\n let substr = this.string.substr(this.pos, pattern.length)\n if (cased(substr) == cased(pattern)) {\n if (consume !== false) this.pos += pattern.length\n return true\n } else return null\n } else {\n let match = this.string.slice(this.pos).match(pattern)\n if (match && match.index > 0) return null\n if (match && consume !== false) this.pos += match[0].length\n return match\n }\n }", "title": "" }, { "docid": "e04eb4e86e609a21d851a540ad949d2a", "score": "0.56911224", "text": "function Searchcursor(CodeMirror) {\n function regexpFlags(regexp) {\n var flags = regexp.flags;\n return flags != null ? flags : (regexp.ignoreCase ? \"i\" : \"\")\n + (regexp.global ? \"g\" : \"\")\n + (regexp.multiline ? \"m\" : \"\")\n }\n\n function ensureFlags(regexp, flags) {\n var current = regexpFlags(regexp), target = current;\n for (var i = 0; i < flags.length; i++) if (target.indexOf(flags.charAt(i)) == -1)\n target += flags.charAt(i);\n return current == target ? regexp : new RegExp(regexp.source, target)\n }\n\n function maybeMultiline(regexp) {\n return /\\\\s|\\\\n|\\n|\\\\W|\\\\D|\\[\\^/.test(regexp.source)\n }\n\n function searchRegexpForward(doc, regexp, start) {\n regexp = ensureFlags(regexp, \"g\");\n for (var line = start.line, ch = start.ch, last = doc.lastLine(); line <= last; line++, ch = 0) {\n regexp.lastIndex = ch;\n var string = doc.getLine(line), match = regexp.exec(string);\n if (match)\n return {from: Pos(line, match.index),\n to: Pos(line, match.index + match[0].length),\n match: match}\n }\n }\n\n function searchRegexpForwardMultiline(doc, regexp, start) {\n if (!maybeMultiline(regexp)) return searchRegexpForward(doc, regexp, start)\n\n regexp = ensureFlags(regexp, \"gm\");\n var string, chunk = 1;\n for (var line = start.line, last = doc.lastLine(); line <= last;) {\n // This grows the search buffer in exponentially-sized chunks\n // between matches, so that nearby matches are fast and don't\n // require concatenating the whole document (in case we're\n // searching for something that has tons of matches), but at the\n // same time, the amount of retries is limited.\n for (var i = 0; i < chunk; i++) {\n if (line > last) break\n var curLine = doc.getLine(line++);\n string = string == null ? curLine : string + \"\\n\" + curLine;\n }\n chunk = chunk * 2;\n regexp.lastIndex = start.ch;\n var match = regexp.exec(string);\n if (match) {\n var before = string.slice(0, match.index).split(\"\\n\"), inside = match[0].split(\"\\n\");\n var startLine = start.line + before.length - 1, startCh = before[before.length - 1].length;\n return {from: Pos(startLine, startCh),\n to: Pos(startLine + inside.length - 1,\n inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),\n match: match}\n }\n }\n }\n\n function lastMatchIn(string, regexp) {\n var cutOff = 0, match;\n for (;;) {\n regexp.lastIndex = cutOff;\n var newMatch = regexp.exec(string);\n if (!newMatch) return match\n match = newMatch;\n cutOff = match.index + (match[0].length || 1);\n if (cutOff == string.length) return match\n }\n }\n\n function searchRegexpBackward(doc, regexp, start) {\n regexp = ensureFlags(regexp, \"g\");\n for (var line = start.line, ch = start.ch, first = doc.firstLine(); line >= first; line--, ch = -1) {\n var string = doc.getLine(line);\n if (ch > -1) string = string.slice(0, ch);\n var match = lastMatchIn(string, regexp);\n if (match)\n return {from: Pos(line, match.index),\n to: Pos(line, match.index + match[0].length),\n match: match}\n }\n }\n\n function searchRegexpBackwardMultiline(doc, regexp, start) {\n regexp = ensureFlags(regexp, \"gm\");\n var string, chunk = 1;\n for (var line = start.line, first = doc.firstLine(); line >= first;) {\n for (var i = 0; i < chunk; i++) {\n var curLine = doc.getLine(line--);\n string = string == null ? curLine.slice(0, start.ch) : curLine + \"\\n\" + string;\n }\n chunk *= 2;\n\n var match = lastMatchIn(string, regexp);\n if (match) {\n var before = string.slice(0, match.index).split(\"\\n\"), inside = match[0].split(\"\\n\");\n var startLine = line + before.length, startCh = before[before.length - 1].length;\n return {from: Pos(startLine, startCh),\n to: Pos(startLine + inside.length - 1,\n inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),\n match: match}\n }\n }\n }\n\n var doFold, noFold;\n if (String.prototype.normalize) {\n doFold = function(str) { return str.normalize(\"NFD\").toLowerCase() };\n noFold = function(str) { return str.normalize(\"NFD\") };\n } else {\n doFold = function(str) { return str.toLowerCase() };\n noFold = function(str) { return str };\n }\n\n // Maps a position in a case-folded line back to a position in the original line\n // (compensating for codepoints increasing in number during folding)\n function adjustPos(orig, folded, pos, foldFunc) {\n if (orig.length == folded.length) return pos\n for (var min = 0, max = pos + Math.max(0, orig.length - folded.length);;) {\n if (min == max) return min\n var mid = (min + max) >> 1;\n var len = foldFunc(orig.slice(0, mid)).length;\n if (len == pos) return mid\n else if (len > pos) max = mid;\n else min = mid + 1;\n }\n }\n\n function searchStringForward(doc, query, start, caseFold) {\n // Empty string would match anything and never progress, so we\n // define it to match nothing instead.\n if (!query.length) return null\n var fold = caseFold ? doFold : noFold;\n var lines = fold(query).split(/\\r|\\n\\r?/);\n\n search: for (var line = start.line, ch = start.ch, last = doc.lastLine() + 1 - lines.length; line <= last; line++, ch = 0) {\n var orig = doc.getLine(line).slice(ch), string = fold(orig);\n if (lines.length == 1) {\n var found = string.indexOf(lines[0]);\n if (found == -1) continue search\n var start = adjustPos(orig, string, found, fold) + ch;\n return {from: Pos(line, adjustPos(orig, string, found, fold) + ch),\n to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold) + ch)}\n } else {\n var cutFrom = string.length - lines[0].length;\n if (string.slice(cutFrom) != lines[0]) continue search\n for (var i = 1; i < lines.length - 1; i++)\n if (fold(doc.getLine(line + i)) != lines[i]) continue search\n var end = doc.getLine(line + lines.length - 1), endString = fold(end), lastLine = lines[lines.length - 1];\n if (endString.slice(0, lastLine.length) != lastLine) continue search\n return {from: Pos(line, adjustPos(orig, string, cutFrom, fold) + ch),\n to: Pos(line + lines.length - 1, adjustPos(end, endString, lastLine.length, fold))}\n }\n }\n }\n\n function searchStringBackward(doc, query, start, caseFold) {\n if (!query.length) return null\n var fold = caseFold ? doFold : noFold;\n var lines = fold(query).split(/\\r|\\n\\r?/);\n\n search: for (var line = start.line, ch = start.ch, first = doc.firstLine() - 1 + lines.length; line >= first; line--, ch = -1) {\n var orig = doc.getLine(line);\n if (ch > -1) orig = orig.slice(0, ch);\n var string = fold(orig);\n if (lines.length == 1) {\n var found = string.lastIndexOf(lines[0]);\n if (found == -1) continue search\n return {from: Pos(line, adjustPos(orig, string, found, fold)),\n to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold))}\n } else {\n var lastLine = lines[lines.length - 1];\n if (string.slice(0, lastLine.length) != lastLine) continue search\n for (var i = 1, start = line - lines.length + 1; i < lines.length - 1; i++)\n if (fold(doc.getLine(start + i)) != lines[i]) continue search\n var top = doc.getLine(line + 1 - lines.length), topString = fold(top);\n if (topString.slice(topString.length - lines[0].length) != lines[0]) continue search\n return {from: Pos(line + 1 - lines.length, adjustPos(top, topString, top.length - lines[0].length, fold)),\n to: Pos(line, adjustPos(orig, string, lastLine.length, fold))}\n }\n }\n }\n\n function SearchCursor(doc, query, pos, options) {\n this.atOccurrence = false;\n this.doc = doc;\n pos = pos ? doc.clipPos(pos) : Pos(0, 0);\n this.pos = {from: pos, to: pos};\n\n var caseFold;\n if (typeof options == \"object\") {\n caseFold = options.caseFold;\n } else { // Backwards compat for when caseFold was the 4th argument\n caseFold = options;\n options = null;\n }\n\n if (typeof query == \"string\") {\n if (caseFold == null) caseFold = false;\n this.matches = function(reverse, pos) {\n return (reverse ? searchStringBackward : searchStringForward)(doc, query, pos, caseFold)\n };\n } else {\n query = ensureFlags(query, \"gm\");\n if (!options || options.multiline !== false)\n this.matches = function(reverse, pos) {\n return (reverse ? searchRegexpBackwardMultiline : searchRegexpForwardMultiline)(doc, query, pos)\n };\n else\n this.matches = function(reverse, pos) {\n return (reverse ? searchRegexpBackward : searchRegexpForward)(doc, query, pos)\n };\n }\n }\n\n SearchCursor.prototype = {\n findNext: function() {return this.find(false)},\n findPrevious: function() {return this.find(true)},\n\n find: function(reverse) {\n var result = this.matches(reverse, this.doc.clipPos(reverse ? this.pos.from : this.pos.to));\n\n // Implements weird auto-growing behavior on null-matches for\n // backwards-compatiblity with the vim code (unfortunately)\n while (result && CodeMirror.cmpPos(result.from, result.to) == 0) {\n if (reverse) {\n if (result.from.ch) result.from = Pos(result.from.line, result.from.ch - 1);\n else if (result.from.line == this.doc.firstLine()) result = null;\n else result = this.matches(reverse, this.doc.clipPos(Pos(result.from.line - 1)));\n } else {\n if (result.to.ch < this.doc.getLine(result.to.line).length) result.to = Pos(result.to.line, result.to.ch + 1);\n else if (result.to.line == this.doc.lastLine()) result = null;\n else result = this.matches(reverse, Pos(result.to.line + 1, 0));\n }\n }\n\n if (result) {\n this.pos = result;\n this.atOccurrence = true;\n return this.pos.match || true\n } else {\n var end = Pos(reverse ? this.doc.firstLine() : this.doc.lastLine() + 1, 0);\n this.pos = {from: end, to: end};\n return this.atOccurrence = false\n }\n },\n\n from: function() {if (this.atOccurrence) return this.pos.from},\n to: function() {if (this.atOccurrence) return this.pos.to},\n\n replace: function(newText, origin) {\n if (!this.atOccurrence) return\n var lines = CodeMirror.splitLines(newText);\n this.doc.replaceRange(lines, this.pos.from, this.pos.to, origin);\n this.pos.to = Pos(this.pos.from.line + lines.length - 1,\n lines[lines.length - 1].length + (lines.length == 1 ? this.pos.from.ch : 0));\n }\n };\n\n CodeMirror.defineExtension(\"getSearchCursor\", function(query, pos, caseFold) {\n return new SearchCursor(this.doc, query, pos, caseFold)\n });\n CodeMirror.defineDocExtension(\"getSearchCursor\", function(query, pos, caseFold) {\n return new SearchCursor(this, query, pos, caseFold)\n });\n\n CodeMirror.defineExtension(\"selectMatches\", function(query, caseFold) {\n var ranges = [];\n var cur = this.getSearchCursor(query, this.getCursor(\"from\"), caseFold);\n while (cur.findNext()) {\n if (CodeMirror.cmpPos(cur.to(), this.getCursor(\"to\")) > 0) break\n ranges.push({anchor: cur.from(), head: cur.to()});\n }\n if (ranges.length)\n this.setSelections(ranges, 0);\n });\n }", "title": "" }, { "docid": "c697a125b4643aa2f29fcc30883d24be", "score": "0.5690009", "text": "function search() {}", "title": "" }, { "docid": "633995010f0314bb0d6b034dc0b28b5c", "score": "0.5654818", "text": "function makeMatcher(makeRegexpFn = pathToRegexp) {\n let cache = {};\n\n // obtains a cached regexp version of the pattern\n const getRegexp = (pattern) =>\n cache[pattern] || (cache[pattern] = makeRegexpFn(pattern));\n\n return (pattern, path) => {\n const { regexp, keys } = getRegexp(pattern || \"\");\n const out = regexp.exec(path);\n\n if (!out) return [false, null];\n\n // formats an object with matched params\n const params = keys.reduce((params, key, i) => {\n params[key.name] = out[i + 1];\n return params;\n }, {});\n\n return [true, params];\n };\n}", "title": "" }, { "docid": "a226968e09b4bf67425548fcf80e8e52", "score": "0.56533873", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n }", "title": "" }, { "docid": "9fa5045378b976e754727f7b7a142ed5", "score": "0.56451315", "text": "function getValidMatches(re, input){\n re = new RegExp(reIgnore.source+'|'+re.source, 'g');\n var matches, valid = [];\n\n while (matches = re.exec(input)) {\n var i = 0, match;\n\n while(i < matches.length - 1){\n i++; // zero indexes are invalid matches\n match = matches[i];\n if(match) valid.push({\n value:match,\n range:[re.lastIndex - match.length,re.lastIndex]\n });\n }\n }\n return valid;\n }", "title": "" }, { "docid": "e58c876b6863e6607c017b2360baddef", "score": "0.56400293", "text": "function RE(s, flag) {\n return new RegExp(s, flag);\n }", "title": "" }, { "docid": "dfcff2d9cd378b5fa9e310122339516f", "score": "0.5640024", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n }", "title": "" }, { "docid": "8b87f58d3ea13cc819794527e7ff7872", "score": "0.5637593", "text": "function testInput(re, str) {\r\n let midstring;\r\n if (re.test(str)) {\r\n midstring = \"contains\";\r\n } else {\r\n midstring = \"does not contain\";\r\n }\r\n console.log(`${str} ${midstring} ${re.source}`);\r\n}", "title": "" }, { "docid": "e64d4167155d2b73ef1db2626038ca85", "score": "0.56375927", "text": "function createRegExps (query) {\n query = query || '';\n\n return query\n .trim()\n .toLowerCase()\n .split(/[\\s\\'']+/)\n .filter((s) => !!s)\n .filter((s, index) => index < 10)\n .map((i) => new RegExp('\\\\b' + i, 'i'));\n}", "title": "" }, { "docid": "0253e5520e434e1a32a1a1516b78d3aa", "score": "0.5634235", "text": "matchPartial(str) {\n const name = this.compName();\n const search = str.toLowerCase();\n let pos = name.indexOf(search);\n // perform as many search passes as needed\n // for example, if the user types \"st\" when searching a \"rusty stake\",\n // only one pass would find the 'st' in \"rusty\", and determine that\n // there is no match. That's why more than one pass is needed.\n while(pos !== -1) {\n // match found at beginning, or match found at beginning of a word,\n // therefore, return true.\n if( pos === 0 || this.name[pos-1] === ' ' )\n return true;\n\n // perform another search, starting at where the last one left off\n pos = name.indexOf(search, pos + 1);\n }\n // no matches\n return false;\n }", "title": "" }, { "docid": "6ee808783ebe752536f0ec6e920f91c1", "score": "0.5627148", "text": "function mat(){\n\tvar isi = \"saya belajar di rumah teman\";\n\tconsole.log(isi.match(\"rumah\"));\n\tconsole.log(isi.match(/teman/));\n}", "title": "" }, { "docid": "3fcf09ad6cbcf3ee937d131383b593dc", "score": "0.5619446", "text": "function searchingSOLUTION() {\n const string = oneLine`\n The average hen lays one egg approximately every\n 26 hours, which is about 265 eggs per year.\n `\n return {\n startsWithThe: string.startsWith('The'),\n endsWithYear: string.endsWith('year'),\n includesEveryAfter45: string.includes('every', 45),\n matchesEggRegex: string.match(/e(gg)/i),\n includes26Regex: string.search(/((twenty-six)|(26))/),\n indexOfLastEgg: string.lastIndexOf('egg'),\n }\n}", "title": "" }, { "docid": "614230b1893ddef9086edba76c138e97", "score": "0.56018347", "text": "function _match_filter(){\n\t\t var retval = false;\n\t\t var lc = jQuery(this).text().toLowerCase();\n\t\t if( lc.indexOf(stext) >= 0 ){\n\t\t\tretval = true;\n\t\t }\n\t\t return retval;\n\t\t}", "title": "" }, { "docid": "39cd5908dcafa5fa3d4bd34df7c64714", "score": "0.5599561", "text": "function findExp(result,source){\n\tvar i = result.length;\n\twhile(i--){\n\t\tvar line = result[i];\n\t\t//console.log([\"reg check line:\",line])\n\t\tif(!/^\\/[\\/*]|^\\s+$/.test(line)){//ignore common or space\n\t\t\tline = line.replace(/\\s+$/,'');\n\t\t\tif(/^['\"]|^\\/.+\\/$/.test(line)){//regexp,string can't lead the regexp\n\t\t\t\tbreak;\n\t\t\t}else if(/\\b(?:new|instanceof|typeof)$/.test(line)){//operator can lead regexp value\n\t\t\t\treturn findExpSource(source);\n\t\t\t}else if(/(?:[)\\]}]|[\\w_]|--|\\+\\+)$/.test(line)){//value-token, postfix-operator-token,++/-- can't lead the regexp;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\treturn findExpSource(source);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "25f7f200b9cea350703a322c1423c7c2", "score": "0.5598203", "text": "function match (str, options) {\n var keys = []\n var re = pathToRegexp(str, keys, options)\n return regexpToFunction(re, keys)\n}", "title": "" }, { "docid": "048104b597e281feed45f8986d843f38", "score": "0.5594838", "text": "function re(str) {\n return new RegExp(escapeStringRegexp(str), \"g\");\n}", "title": "" }, { "docid": "455e4cf74796bfa2368908f48a168623", "score": "0.5588992", "text": "function regexVar(s) {\n /*\n * Declare a RegExp object variable named 're'\n * It must match a string that starts and ends with the same vowel (i.e., {a, e, i, o, u})\n */\n let re = /^([aeiou]).*\\1$/;\n /*\n * Do not remove the return statement\n */\n return re;\n}", "title": "" }, { "docid": "34b620b58f01c351fb2c9f5c95a4f1f8", "score": "0.5581821", "text": "function rgx(regexp) {\n return new Pattern(regexp + '', function (str, pos) {\n var m = regexp.exec(str.slice(pos));\n if (m && m.index === 0) // regex must match at the beginning, so index must be 0\n return { res: m[0], end: pos + m[0].length };\n });\n }", "title": "" }, { "docid": "2609ce522b852f7e625aadfc4cf301dc", "score": "0.5577826", "text": "function testSearch(string) {\n return /^[a-zA-Z0-9\\s-|]+$/.test(string);\n}", "title": "" }, { "docid": "312c684b3052aa43c97f95c9c3f65908", "score": "0.5571177", "text": "function getRegExpMatches(regex, str) {\n const matches = [];\n let match;\n while ((match = regex.exec(str))) {\n matches.push(match);\n }\n return matches;\n}", "title": "" }, { "docid": "9984b19a459ba84e2edd6887d96aa19b", "score": "0.5558542", "text": "function searchQuery(text) {\r\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, \"\\\\$&\");\r\n}", "title": "" }, { "docid": "7a5dccdbdd090f772777b02b90a4c3ad", "score": "0.555377", "text": "function extPart_findInString(partName, theStr, findMultiple)\n{\n var retVal = null;\n var searchPatts = extPart.getSearchPatterns(partName);\n var quickSearch = extPart.getQuickSearch(partName);\n if (extUtils.findPatternsInString(theStr, quickSearch, searchPatts, findMultiple))\n {\n retVal = extUtils.extractParameters(searchPatts);\n }\n else if (extPart.DEBUG)\n {\n var MSG = new Array();\n MSG.push(\"match failed for participant: \" + partName);\n MSG.push(\"\");\n MSG.push(\"against string:\");\n MSG.push(theStr);\n MSG.push(\"\");\n MSG.push(\"using pattern:\");\n if (quickSearch && theStr.indexOf(quickSearch) == -1) {\n MSG.push(quickSearch);\n }\n else\n {\n for (var j=0; j < searchPatts.length; j++) {\n if (!searchPatts[j].match || !searchPatts[j].match.length) {\n MSG.push(searchPatts[j].pattern);\n }\n }\n }\n alert(MSG.join(\"\\n\"));\n }\n\n return retVal;\n}", "title": "" }, { "docid": "9cb2acb8578934e13d031faf9bd22e6a", "score": "0.55487573", "text": "function findMatchesInText(haystack, needle) {\n // Empty search can send re.exec() into infinite loop, exit early\n if (!haystack || !needle) {\n return [];\n }\n var matches = [];\n var _a = parseFlags(cleanNeedle(needle)), cleaned = _a.cleaned, flags = _a.flags;\n var regexp;\n try {\n regexp = new RegExp(\"(?:\" + cleaned + \")\", flags);\n }\n catch (error) {\n return matches;\n }\n haystack.replace(regexp, function (substring) {\n var rest = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n if (substring) {\n var offset = rest[rest.length - 2];\n matches.push({\n text: substring,\n start: offset,\n length: substring.length,\n end: offset + substring.length,\n });\n }\n return '';\n });\n return matches;\n}", "title": "" }, { "docid": "2a45046e275889ead37ccd64e648f3ba", "score": "0.5548368", "text": "function stringContains(string, pattern) {\n\n //Musimy użyć konstruktora RegExp aby zamienić argument pattern na wyrażennie\n var regexp = new RegExp(pattern);\n\n //sprawdzamy index od którego zaczyna się wyrażenie reguralne (pattern)\n var index = string.search(pattern); \n\n //Jeśli jest większe od jeden to oznacza że takie wyrażenie znajduje się w stringu\n return index > -1; \n}", "title": "" }, { "docid": "20337b195330825046cb5c04df276f47", "score": "0.55302614", "text": "function umbracoforms_regex(value, element, params) {\n if (!value || !params.pattern) {\n return true;\n }\n \n let r = new RegExp(params.pattern);\n return r.test(value);\n }", "title": "" }, { "docid": "b28952633dde2a591fcc443b78f73d2f", "score": "0.5529841", "text": "function doSearch() {\n var needle = document.getElementById('search_input').value.trim();\n if(needle.length) {\n var needleCopy = needle;\n needle = needle.replace(/\\W/g, function(match){\n return '\\\\'+match; // Escape all characters in search string.\n });\n var haystack = document.getElementById(haystackID).textContent;\n var results = haystack.match(new RegExp(needle, 'mig'));\n var matches = results && results.length ? results.length : 0;\n displayResults(needleCopy, matches);\n };\n }", "title": "" }, { "docid": "bc3f8ebb21b609a58e5c815032e129c2", "score": "0.552702", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n }", "title": "" }, { "docid": "e01d98e050c93a65ff9b7ddc14f2e746", "score": "0.55250865", "text": "function findMatchesInText(haystack, needle) {\n // Empty search can send re.exec() into infinite loop, exit early\n if (!haystack || !needle) {\n return [];\n }\n\n var matches = [];\n\n var _parseFlags = parseFlags(cleanNeedle(needle)),\n cleaned = _parseFlags.cleaned,\n flags = _parseFlags.flags;\n\n var regexp;\n\n try {\n regexp = new RegExp(\"(?:\".concat(cleaned, \")\"), flags);\n } catch (error) {\n return matches;\n }\n\n haystack.replace(regexp, function (substring) {\n if (substring) {\n var _ref2;\n\n var offset = (_ref2 = (arguments.length <= 1 ? 0 : arguments.length - 1) - 2 + 1, _ref2 < 1 || arguments.length <= _ref2 ? undefined : arguments[_ref2]);\n matches.push({\n text: substring,\n start: offset,\n length: substring.length,\n end: offset + substring.length\n });\n }\n\n return '';\n });\n return matches;\n}", "title": "" }, { "docid": "3935503f1c6ea46e7f2768afb674c87b", "score": "0.5510865", "text": "function regExBuilder(options){\n if (options.find){\n var re = options.regex ? options.find : s.escapeRegExp(options.find),\n reOptions = \"g\" + (options.insensitive ? \"i\" : \"\");\n return new RegExp(re, reOptions);\n }\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "b8aa27e9b55ede2322c316709cdb43ec", "score": "0.5500648", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "cbbd0ca03162fbe86c54d115a344d633", "score": "0.54991496", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "cbbd0ca03162fbe86c54d115a344d633", "score": "0.54991496", "text": "function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}", "title": "" }, { "docid": "872eba1db01e8d74219fc66414c4f0b3", "score": "0.5485931", "text": "static buildRegex(regexpEOSPhrases) {\n if (Array.isArray(regexpEOSPhrases)) {\n const validPhrases = regexpEOSPhrases.map((phrase) => phrase.trim()).filter((phrase) => phrase.length > 0);\n if (validPhrases.length > 0) {\n const regexString = \"\\\\b(\" + validPhrases.join(\"|\") + \")\\\\b\";\n return new RegExp(regexString, \"i\");\n }\n }\n return null;\n }", "title": "" }, { "docid": "904c7adccdde9ecc7505c96a875c17fd", "score": "0.54855394", "text": "function Search (token) {\n this.token = token;\n\n // strip slashes\n this.pattern = new RegExp(token.substring(1, token.length-1));\n}", "title": "" }, { "docid": "2972b61869a8b56c30a7d3ed7652ad7c", "score": "0.54840046", "text": "function matchAll (regex, string) {\n let match\n let matches = []\n while ((match = regex.exec(string)) !== null) {\n delete match['index']\n delete match['input']\n matches.push(match)\n }\n\n return matches\n}", "title": "" }, { "docid": "939dbe37bb0e7d01634bd42e4c6a8cb1", "score": "0.5474442", "text": "function findPat(s, pat) {\n //Variables\n let result = [];\n //Loop by substring of 3 chars and if it matches the pattern, then add index to array. \n\n for (let i = 0; i < s.length; i++) {\n let cur = s.substring(i, i + 3);\n if (cur !== undefined && cur === pat) {\n result.push(i);\n }\n }\n\n return result;\n}", "title": "" }, { "docid": "e651a80361d8b65cc015e5e3fecc2ba2", "score": "0.5467878", "text": "function check_email_2() {\n let email_text = email.value;\n let regex_index = email_text.search(\"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\\\])\");\n\n return !(email_text.length === 0 ||\n email_text.length > 255 ||\n regex_index === -1);\n}", "title": "" }, { "docid": "aba68f9b65b2b7aaf65cf561a322f626", "score": "0.54422593", "text": "function matches(query) {\n var matches = [];\n var exclude = false;\n var chars = [];\n let index;\n while(query) {\n index = query.search(/(?:\"|'|\\-|\\+|\\s)/);\n var char = index == -1 ? '' : query[index];\n if (char && !char.trim()) {\n char = ' '\n };\n var match = index == -1 ? query : query.substr(0, index);\n var query = index == -1 ? '' : query.substr(index + 1);\n if (match) {\n matches.push({\n exclude,\n match,\n exact: false,\n })\n }\n\n switch (char) {\n case \"'\":\n case \"\\\"\":\n index = query.search(char)\n if (index != -1) {\n match = query.substr(0, index).trim()\n if (match) {\n matches.push({\n exclude,\n match,\n exact: true,\n })\n }\n query = query.substr(index + 1)\n }\n exclude = false\n break\n case \"-\":\n exclude = chars.length == 0 || chars[chars.length - 1] == ' '\n exclude = !!exclude\n break;\n default:\n exclude = false\n }\n chars.push(char)\n }\n return matches\n}", "title": "" }, { "docid": "23fd1bb499ba332b863925e808c261de", "score": "0.5437507", "text": "function searchM(regex){\n var searchStr = msgText.match(regex);\n if(searchStr != null){\n return searchStr.length;\n }\n return 0;\n }", "title": "" }, { "docid": "2ea7a45abdfe9a8246280f93371c6f08", "score": "0.5431141", "text": "match(match_str, options) {\n let regs = tokenize_match(match_str);\n return match.findAll(this.terms, regs, options);\n }", "title": "" }, { "docid": "2ea7a45abdfe9a8246280f93371c6f08", "score": "0.5431141", "text": "match(match_str, options) {\n let regs = tokenize_match(match_str);\n return match.findAll(this.terms, regs, options);\n }", "title": "" }, { "docid": "38304febc4db3a394799fbfaed792e33", "score": "0.54264843", "text": "function regexVar() {\n /*\n * Declare a RegExp object variable named 're'\n * It must match ALL occurrences of numbers in a string.\n */\n \tconst re = RegExp(/\\d+/,'g');\n /*\n * Do not remove the return statement\n */\n return re;\n}", "title": "" }, { "docid": "7fc1c39beef57efc8b2f2e560be82953", "score": "0.54242325", "text": "function matchRegexpOrString(phrase, input, fromIndex) {\n if (!input) {\n return null;\n }\n\n if (phrase instanceof RegExp) {\n return phrase.exec(fromIndex ? input.slice(fromIndex) : input);\n }\n\n var idx = input.indexOf(phrase, fromIndex);\n if (idx == -1) {\n return null;\n }\n\n var ret = [ phrase ];\n ret.index = idx - fromIndex;\n return ret;\n}", "title": "" }, { "docid": "8e907d15076c5cec926fb14e1d7ef9ed", "score": "0.5423524", "text": "function findMatches(wordToMatch, zip) {\n return zip.filter((place) => {\n const regex = new RegExp(wordToMatch, 'gi');\n return place.zip.match(regex);\n });\n }", "title": "" } ]
0d2c33082f98d7ca4df9e7619ed2c798
The last resume token sent to us for this target.
[ { "docid": "02c62e3c3dcebbcbd96290ebf3e742a0", "score": "0.78293115", "text": "get resumeToken() {\n return this.L;\n }", "title": "" } ]
[ { "docid": "ed80eb76ea491e4d73d5c4a65441c497", "score": "0.74400157", "text": "get resumeToken() {\n return this.C;\n }", "title": "" }, { "docid": "2d6abcee746106a8ad3f629ea0fda3eb", "score": "0.72216564", "text": "get resumeToken() {\n return this.Cs;\n }", "title": "" }, { "docid": "34c3a3e0cbb9ccb8cce944e259a71b7b", "score": "0.70728827", "text": "get resumeToken() {\n return this.qs;\n }", "title": "" }, { "docid": "7ec5af1bd4080c2dce026da041cd2b51", "score": "0.6357526", "text": "resume() {\n this.send({\n op: 6 /* Resume */,\n d: {\n token: this.token,\n session_id: this.sessionId,\n seq: this.lastSequence || this.sequence,\n },\n });\n }", "title": "" }, { "docid": "5c4ef0c33c99606fdfb40b44bdc5b05b", "score": "0.5678208", "text": "function resume() {\n return buffers.pop().join('')\n }", "title": "" }, { "docid": "51466bc5f0574c27e244b65148e07372", "score": "0.55339915", "text": "readFutureToken() {\n return this.tokens[this.currentTokenIndex];\n }", "title": "" }, { "docid": "3067e3644e3dd3557e86e2e8ca571a37", "score": "0.5438189", "text": "function applyResumeToken(change, resumeToken) {\r\n if (resumeToken.length > 0) {\r\n change.resumeToken = resumeToken;\r\n }\r\n}", "title": "" }, { "docid": "3067e3644e3dd3557e86e2e8ca571a37", "score": "0.5438189", "text": "function applyResumeToken(change, resumeToken) {\r\n if (resumeToken.length > 0) {\r\n change.resumeToken = resumeToken;\r\n }\r\n}", "title": "" }, { "docid": "a61c6fda1ea4f51c23743eac46e955b7", "score": "0.5415414", "text": "function applyResumeToken(change, resumeToken) {\n if (resumeToken.length > 0) {\n change.resumeToken = resumeToken;\n }\n}", "title": "" }, { "docid": "a61c6fda1ea4f51c23743eac46e955b7", "score": "0.5415414", "text": "function applyResumeToken(change, resumeToken) {\n if (resumeToken.length > 0) {\n change.resumeToken = resumeToken;\n }\n}", "title": "" }, { "docid": "a61c6fda1ea4f51c23743eac46e955b7", "score": "0.5415414", "text": "function applyResumeToken(change, resumeToken) {\n if (resumeToken.length > 0) {\n change.resumeToken = resumeToken;\n }\n}", "title": "" }, { "docid": "a61c6fda1ea4f51c23743eac46e955b7", "score": "0.5415414", "text": "function applyResumeToken(change, resumeToken) {\n if (resumeToken.length > 0) {\n change.resumeToken = resumeToken;\n }\n}", "title": "" }, { "docid": "a61c6fda1ea4f51c23743eac46e955b7", "score": "0.5415414", "text": "function applyResumeToken(change, resumeToken) {\n if (resumeToken.length > 0) {\n change.resumeToken = resumeToken;\n }\n}", "title": "" }, { "docid": "94c05ec390731225ca33d6cc10da62fe", "score": "0.5380826", "text": "_previous() {\n return this._tokens[this._current - 1];\n }", "title": "" }, { "docid": "bbfb4fdead00c5f6acf3c983892a9e38", "score": "0.5299373", "text": "function token(){return currentToken;}", "title": "" }, { "docid": "6c26e076ddbfc69667fdce03adde6e73", "score": "0.52607846", "text": "resume() {\n return this.client.request('net.resume');\n }", "title": "" }, { "docid": "a1c5370e726c26da0dbb75fb436cf628", "score": "0.5235541", "text": "withResumeToken(t, e) {\n return new Qs(this.target, this.targetId, this.purpose, this.sequenceNumber, e, this.lastLimboFreeSnapshotVersion, t);\n }", "title": "" }, { "docid": "f936a305c58bddf4707732857a6c0447", "score": "0.5229774", "text": "peek_token() {\n while (this.need_more_tokens()) {\n this.fetch_more_tokens();\n }\n if (this.tokens.length !== 0) {\n return this.tokens[0];\n }\n }", "title": "" }, { "docid": "790645dc939f2d821b2593300055819b", "score": "0.5228166", "text": "withResumeToken(t, e) {\n return new si(this.target, this.targetId, this.purpose, this.sequenceNumber, e, this.lastLimboFreeSnapshotVersion, t);\n }", "title": "" }, { "docid": "ee7b2bf70413813f2563288b3a9b7c79", "score": "0.52168745", "text": "get continuation() {\n return this.etag;\n }", "title": "" }, { "docid": "9f02a10e8813df8ab4c69b68556a5d3d", "score": "0.5164836", "text": "previousLoginStep() {\n this.sendMessage(MessageId.PREVIOUS_STEP, null);\n }", "title": "" }, { "docid": "7682f7e87533962ce79653347cd0a084", "score": "0.5082892", "text": "jo() {\n return this.persistence.runTransaction(\"Get last stream token\", \"readonly\", t => this.fo.jo(t));\n }", "title": "" }, { "docid": "ab0abbb444e9637d399d40eec7947fe6", "score": "0.5044678", "text": "get token() {\n return this._token;\n }", "title": "" }, { "docid": "ab0abbb444e9637d399d40eec7947fe6", "score": "0.5044678", "text": "get token() {\n return this._token;\n }", "title": "" }, { "docid": "416f558507f84b1a3f9cbab6d8ee00c0", "score": "0.5043986", "text": "get replyToken() {\n return this._rawEvent.replyToken || null;\n }", "title": "" }, { "docid": "7c912a6d804c1475491fa7b2a13d4cfc", "score": "0.5043234", "text": "getCurrentLoginStep() {\n this.sendMessage(MessageId.CURRENT_STEP, null);\n }", "title": "" }, { "docid": "6f2190a26d0b51471eb8976c1735476c", "score": "0.5029331", "text": "get token() { return this._token; }", "title": "" }, { "docid": "17490b61a3e07a302a208262a7fabdee", "score": "0.5027301", "text": "getLastSession() {\n return this.sessions[this.sessions.length - 1];\n }", "title": "" }, { "docid": "d8f91b25c29cd9d543ec4adc45857118", "score": "0.5024316", "text": "get activeToken() {\n return this.unusedTokens[0];\n }", "title": "" }, { "docid": "05f6e35d479986aa167e89de0f2189c2", "score": "0.50177073", "text": "function engineLastPlay() {\n\t\treturn _lastPlay;\n\t}", "title": "" }, { "docid": "d1f38737d24403581e0c99d835e0187a", "score": "0.5006119", "text": "getToken()\n {\n return this.Token;\n }", "title": "" }, { "docid": "51c93e571d2f17dc093842934a6ae7fb", "score": "0.49365202", "text": "get token() {\n if (this._token === undefined) {\n this._token = new CancellationToken(this);\n }\n return this._token;\n }", "title": "" }, { "docid": "099c36f7a15bac5ef9d4d52cfdeea3bf", "score": "0.49359018", "text": "function resume() {\n }", "title": "" }, { "docid": "5d8074c26844d04d191d97a907b254d5", "score": "0.4909188", "text": "get_token() {\n while (this.need_more_tokens()) {\n this.fetch_more_tokens();\n }\n if (this.tokens.length !== 0) {\n this.tokens_taken++;\n return this.tokens.shift();\n }\n }", "title": "" }, { "docid": "7b086b836552612e4f1c9c32211e698a", "score": "0.49037415", "text": "get currentEndIndex() {\n if (this.index > 0) {\n const curToken = this.peek(-1);\n return curToken.end + this.offset;\n }\n // No tokens have been processed yet; return the next token's start or the length of the input\n // if there is no token.\n if (this.tokens.length === 0) {\n return this.inputLength + this.offset;\n }\n return this.next.index + this.offset;\n }", "title": "" }, { "docid": "798a5e7ed7ddc07f952e507ab96141dc", "score": "0.48987228", "text": "function getCurrentPrev() {\n return getURLFor('prev');\n }", "title": "" }, { "docid": "5435229788cb25c9552a68c3c679050d", "score": "0.4884498", "text": "getToken() {\n return this.token;\n }", "title": "" }, { "docid": "c464b04de68f626a558cac331e9c2664", "score": "0.48673356", "text": "function ti(t, e) {\n const n = Js(e.snapshotVersion), s = Js(e.lastLimboFreeSnapshotVersion);\n let i;\n i = kt(e.target) ? jn(t.Lt, e.target) : Wn(t.Lt, e.target);\n // We can't store the resumeToken as a ByteString in IndexedDb, so we\n // convert it to a base64 string for storage.\n const r = e.resumeToken.toBase64();\n // lastListenSequenceNumber is always 0 until we do real GC.\n return new ps(e.targetId, Ct(e.target), n, r, e.sequenceNumber, s, i);\n}", "title": "" }, { "docid": "2e2267deba47636fde30cdd8dd4369a8", "score": "0.48563915", "text": "getAccessTokenPayload() {\n return this.accessTokenPayload;\n }", "title": "" }, { "docid": "47a5b0f16894febb76d047b13948460c", "score": "0.48476785", "text": "resumeRequest(request) {\n if (this.isRequestActive(request)) {\n this.tokenStreamParser.resume();\n }\n }", "title": "" }, { "docid": "47a5b0f16894febb76d047b13948460c", "score": "0.48476785", "text": "resumeRequest(request) {\n if (this.isRequestActive(request)) {\n this.tokenStreamParser.resume();\n }\n }", "title": "" }, { "docid": "47a5b0f16894febb76d047b13948460c", "score": "0.48476785", "text": "resumeRequest(request) {\n if (this.isRequestActive(request)) {\n this.tokenStreamParser.resume();\n }\n }", "title": "" }, { "docid": "80709c9fc7fc22103f29b13891968404", "score": "0.48389116", "text": "bo() {\n return this.persistence.runTransaction(\"Get last stream token\", \"readonly\", t => this.Jr.bo(t));\n }", "title": "" }, { "docid": "6d21fa4661a865f09bd7a07a75e6ad32", "score": "0.48327622", "text": "getRememberToken() {\n return localStorage.getItem(REMEMBER_TOKEN);\n }", "title": "" }, { "docid": "2af32b7dc26029361fe5898428772986", "score": "0.48262414", "text": "resume() {\n this.start = Date.now();\n }", "title": "" }, { "docid": "e740753a26d9d91467bbf60e1c6e9606", "score": "0.4825706", "text": "resume() {\n return this[RESUME]();\n }", "title": "" }, { "docid": "007e81b70f9b23ebb765210e2446a9a4", "score": "0.48240232", "text": "getToken() {\n return this.remoteMsg[RNRemoteMessage.TOKEN];\n }", "title": "" }, { "docid": "27140272a72239f009b6c698c69956f2", "score": "0.47960705", "text": "readLastRequestFlashMessage() {\n if (this.readonly) {\n return;\n }\n this.flashMessages.update(this.pull(this.flashMessagesKey, null));\n }", "title": "" }, { "docid": "d7bb5352647037f92b8957209b70d634", "score": "0.47907963", "text": "getToken() {\r\n return this.storage.get(this.tokenName);\r\n }", "title": "" }, { "docid": "f913858e04b197ff03e3496ff049de9b", "score": "0.47891048", "text": "get lastBlock() {\n return this.chain[this.chain.length - 1]\n }", "title": "" }, { "docid": "c9706e14d5636b1970778a689b45db72", "score": "0.47825867", "text": "previousTarget () {\n\t\tlet previousTargets = this.state.previousTargets;\n\n\t\t// return if previous target stack is empty\n\t\tif (!previousTargets.length) return;\n\n\t\t// set previous target as new current target; update this.state.index accordingly (in order to keep forward direction through targets regular)\n\t\tlet currentTarget = previousTargets.pop();\n\t\tthis.props.setCurrentTarget(currentTarget);\n\t\tlet index = this.state.index - 1;\n\t\tthis.setState({ index, previousTargets });\n\n\t\t// RESET AUDIO AND GRAPH HERE\n\t\tresetAudio(this.props.url, this.props.dispatchSetUserURL);\n\t\tthis.props.dispatchUserTone([]);\n\t}", "title": "" }, { "docid": "998c32b654a1487cbc4af7cee1083ea8", "score": "0.47776672", "text": "getValue() {\n return this.token;\n }", "title": "" }, { "docid": "f70adafcd235dde41254286137388003", "score": "0.47679478", "text": "function lastEventId() {\n\t return dist$3.getCurrentHub().lastEventId();\n\t}", "title": "" }, { "docid": "de0048d490ab7f4f0eab73e4b860fa46", "score": "0.47645947", "text": "getCurrentToken() {\n return localStorage.getItem(\"token\");\n }", "title": "" }, { "docid": "eeff1048869ff71373936dfc8254f69c", "score": "0.4760661", "text": "getLastEventActivity() {\n return this.data[this.data.length - 1];\n }", "title": "" }, { "docid": "14ee2d4479458b243f1505d67dd3105b", "score": "0.4758137", "text": "get lastEmit() {\n return this._lastEmit;\n }", "title": "" }, { "docid": "0382a638bcc1d4c68bf95ec29cb3955d", "score": "0.4758041", "text": "static No(t, e, s) {\n // Always persist target data if we don't already have a resume token.\n if (ke(e.resumeToken.Mt() > 0, \"Attempted to persist target data with no resume token\"), \n 0 === t.resumeToken.Mt()) return !0;\n // Don't allow resume token changes to be buffered indefinitely. This\n // allows us to be reasonably up-to-date after a crash and avoids needing\n // to loop over all active queries on shutdown. Especially in the browser\n // we may not get time to do anything interesting while the current tab is\n // closing.\n return e.ts.k() - t.ts.k() >= this.Uo || s.ps.size + s.Ps.size + s.Vs.size > 0;\n // Otherwise if the only thing that has changed about a target is its resume\n // token it's not worth persisting. Note that the RemoteStore keeps an\n // in-memory view of the currently active targets which includes the current\n // resume token, so stream failure or user changes will still use an\n // up-to-date resume token regardless of what we do here.\n }", "title": "" }, { "docid": "5abac9cb1c2e64e7e4bc06f603784735", "score": "0.4738818", "text": "function getNextTokenCodeGen()\n {\n var thisToken = EOF; // Let's assume that we're at the EOF.\n if (tokenIndex < tokens.length)\n {\n // If we're not at EOF, then return the next token in the stream and advance the index.\n thisToken = tokens[tokenIndex];\n // putMessageSymbolTable(\"\\nCurrent token:\" + thisToken.Token);\n tokenIndex++;\n }\n return thisToken;\n }", "title": "" }, { "docid": "ae2f487cda420b54c6c73aea99f5af04", "score": "0.47233048", "text": "function createGeneratorResume(location){return ts.setTextRange(ts.createCall(ts.createPropertyAccess(state,\"sent\"),/*typeArguments*/undefined,[]),location);}", "title": "" }, { "docid": "87925087288bf7a2705ff554f5360488", "score": "0.4705054", "text": "lastLog () {\n return stack[stack.length - 1]\n }", "title": "" }, { "docid": "3402e792895f319fadca816275717bd1", "score": "0.4703253", "text": "static Xo(t, e, s) {\n // Always persist target data if we don't already have a resume token.\n if (ns(e.resumeToken.S() > 0, \"Attempted to persist target data with no resume token\"), \n 0 === t.resumeToken.S()) return !0;\n // Don't allow resume token changes to be buffered indefinitely. This\n // allows us to be reasonably up-to-date after a crash and avoids needing\n // to loop over all active queries on shutdown. Especially in the browser\n // we may not get time to do anything interesting while the current tab is\n // closing.\n return e.cs.U() - t.cs.U() >= this.rh || s.Ds.size + s.ks.size + s.Fs.size > 0;\n // Otherwise if the only thing that has changed about a target is its resume\n // token it's not worth persisting. Note that the RemoteStore keeps an\n // in-memory view of the currently active targets which includes the current\n // resume token, so stream failure or user changes will still use an\n // up-to-date resume token regardless of what we do here.\n }", "title": "" }, { "docid": "dfc205b5d218e59a81041855034347f7", "score": "0.4684494", "text": "peek() {\n if (this._length) {\n return this._storage[this._length - 1]\n }\n }", "title": "" }, { "docid": "5127943cfc7676273720e56e53af46f3", "score": "0.4677464", "text": "getLastBlock() {\n return this.chain[this.chain.length - 1];\n }", "title": "" }, { "docid": "c190fcb7adc3bc94621d4d932a61a2b4", "score": "0.466545", "text": "getRefreshToken() {\n return this.token.refresh_token;\n }", "title": "" }, { "docid": "5013a6221e5c229011751a08e07f0387", "score": "0.46621886", "text": "getLastIncremental() {\n return (this.lastASRResult || {\n text: \"\",\n confidence: 0,\n });\n }", "title": "" }, { "docid": "5a68688ae6a96a044a6a8ff610982591", "score": "0.46620226", "text": "resume() {\n if (!this.paused) {\n return;\n }\n\n this.paused = false;\n\n if (this.connection) {\n this.connection.resumeRequest(this);\n }\n }", "title": "" }, { "docid": "5a68688ae6a96a044a6a8ff610982591", "score": "0.46620226", "text": "resume() {\n if (!this.paused) {\n return;\n }\n\n this.paused = false;\n\n if (this.connection) {\n this.connection.resumeRequest(this);\n }\n }", "title": "" }, { "docid": "5a68688ae6a96a044a6a8ff610982591", "score": "0.46620226", "text": "resume() {\n if (!this.paused) {\n return;\n }\n\n this.paused = false;\n\n if (this.connection) {\n this.connection.resumeRequest(this);\n }\n }", "title": "" }, { "docid": "96c47b48c21cc1351dab37d0c1cdd627", "score": "0.46616173", "text": "get latest() {\n const stepsArray = Array.from(self.steps.values())\n const { length } = stepsArray\n return stepsArray[length - 1]\n }", "title": "" }, { "docid": "72247764471d3f70650356c0b024dcdf", "score": "0.46609023", "text": "peekLast(){\n let node = null;\n this.__traverse(n => node = n);\n return node.data;\n }", "title": "" }, { "docid": "8878a48e044205708f1472ca3915fab4", "score": "0.46535096", "text": "function getPreviousMessage() {\n if(localStorage.getItem(\"exzerobotsMessage\")) {\n return JSON.parse(localStorage.getItem(\"exzerobotsMessage\")).currentMessage;\n } else {\n return \"NONE\";\n }\n}", "title": "" }, { "docid": "a1799de8916361686921dfafa5380603", "score": "0.4648037", "text": "resume() {\n this.incomingMessageStream.resume();\n }", "title": "" }, { "docid": "a1799de8916361686921dfafa5380603", "score": "0.4648037", "text": "resume() {\n this.incomingMessageStream.resume();\n }", "title": "" }, { "docid": "a1799de8916361686921dfafa5380603", "score": "0.4648037", "text": "resume() {\n this.incomingMessageStream.resume();\n }", "title": "" }, { "docid": "a1799de8916361686921dfafa5380603", "score": "0.4648037", "text": "resume() {\n this.incomingMessageStream.resume();\n }", "title": "" }, { "docid": "587ab9c4090e8f9ee315bd77f55a9d5c", "score": "0.46426824", "text": "function resume() {\n sendCmd(\"resume\");\n }", "title": "" }, { "docid": "a97c26e426bf4ed3bb6187f1e165b6e5", "score": "0.4632842", "text": "static getLastIdE() {\n let lastIdE = 0\n if (arrayEventos.length > 0) {\n lastIdE = arrayEventos[arrayEventos.length - 1].idEv\n }\n return lastIdE\n }", "title": "" }, { "docid": "15ebad377e0258ffcb3343ea1079fa05", "score": "0.4610999", "text": "resume(){\n\t\tthis.stream.resume();\n\t}", "title": "" }, { "docid": "cc1d76c3746a0abf41cd47794bf95781", "score": "0.4598953", "text": "peekID() {\n return this.currentState;\n }", "title": "" }, { "docid": "de2024d440dc656152658e68efb59441", "score": "0.45977625", "text": "TakeToken(){\n if(this.Token-1>0){\n if(this.timeStamp-this.exceedTime>0){\n return false;\n }\n this.Token=this.Token-1;\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "22f9b074ffd7e79589ad6db18dab2869", "score": "0.45968404", "text": "async previousPage() {\n this.start = Math.max(1, this.start - this.num);\n }", "title": "" }, { "docid": "3dbf1f0fc74c68b1634db2ebf7f58324", "score": "0.45956412", "text": "peek() {\n let topVal;\n if (this._length) {\n topVal = this._storage[this._length - 1];\n }\n return topVal;\n }", "title": "" }, { "docid": "9112362922af4fd4d8aa0399f5681957", "score": "0.45932797", "text": "backUpToken() {\n --this._tokenIdx;\n }", "title": "" }, { "docid": "cfcca3cf460d4477d5d8505932043ca9", "score": "0.45893514", "text": "get latestValidTillInput() {\n return this._latestValidTill;\n }", "title": "" }, { "docid": "243d96f5b756dfc49955157285185ac0", "score": "0.45881853", "text": "getLast(){\n return this.storage[this.stackLength - 1];\n }", "title": "" }, { "docid": "55c9ab55c27543dcae5c434eef849b1f", "score": "0.4586245", "text": "async previousPage() {\n this.start = Math.max(1, this.start - this.num);\n }", "title": "" }, { "docid": "55c9ab55c27543dcae5c434eef849b1f", "score": "0.4586245", "text": "async previousPage() {\n this.start = Math.max(1, this.start - this.num);\n }", "title": "" }, { "docid": "243d2400668a7c95c741bb831cdc4e5c", "score": "0.4582147", "text": "get currentLockingElement() {\n return this._lockingElements[this._lockingElements.length - 1];\n }", "title": "" }, { "docid": "5a763cb9b679bff7fb28a2fb566306a8", "score": "0.45795757", "text": "lastIdx () { return this._segments.length - 1 }", "title": "" }, { "docid": "8c286689e2add273c9498bd14ca2f42c", "score": "0.45771658", "text": "get resetTimeout()\n\t{\n\t\treturn this.resetTimeout;\n\t}", "title": "" }, { "docid": "6309071d280c45e008c1767c096d70e9", "score": "0.45730424", "text": "peek() {\n return this.data[this.data.length - 1]\n }", "title": "" }, { "docid": "5e49f568dbd152d05deba52ff0e53c16", "score": "0.45724505", "text": "function lastEventId() {\n return getCurrentHub().lastEventId();\n}", "title": "" }, { "docid": "5c9d41110b6d3873c28e561cffc27190", "score": "0.45705372", "text": "get replyToken(): ?ReplyToken {\n return this._rawEvent.replyToken || null;\n }", "title": "" }, { "docid": "1d7a6bfe0542af7fee7cc0c270520297", "score": "0.45691484", "text": "get tokenInput() {\n return this._token;\n }", "title": "" }, { "docid": "fb473e2507fcc187043448f1deff4e42", "score": "0.4567233", "text": "function readRemaining(tokenizer) {\n var result = \"\";\n if (tokenizer._currentIndex < tokenizer._textLength) {\n result = tokenizer._text.substring(tokenizer._currentIndex);\n tokenizer._currentIndex = tokenizer._textLength;\n }\n return result;\n}", "title": "" }, { "docid": "fb473e2507fcc187043448f1deff4e42", "score": "0.4567233", "text": "function readRemaining(tokenizer) {\n var result = \"\";\n if (tokenizer._currentIndex < tokenizer._textLength) {\n result = tokenizer._text.substring(tokenizer._currentIndex);\n tokenizer._currentIndex = tokenizer._textLength;\n }\n return result;\n}", "title": "" }, { "docid": "fb473e2507fcc187043448f1deff4e42", "score": "0.4567233", "text": "function readRemaining(tokenizer) {\n var result = \"\";\n if (tokenizer._currentIndex < tokenizer._textLength) {\n result = tokenizer._text.substring(tokenizer._currentIndex);\n tokenizer._currentIndex = tokenizer._textLength;\n }\n return result;\n}", "title": "" }, { "docid": "151344428ca8c07fc1357f7a33239276", "score": "0.45669666", "text": "get lastMessage(){\n\t\treturn this.messages.get(\"id\", this.lastMessageID);\n\t}", "title": "" }, { "docid": "e31e9e984f9504b1e9b602a7da7537c2", "score": "0.45624006", "text": "get attemptTokenRenewal() {\n return this._attemptTokenRenewal;\n }", "title": "" }, { "docid": "51cde029abb81d5a328ddc3bc1287d0d", "score": "0.45622146", "text": "function prev(this_) { return this_.context.topics[1]; }", "title": "" } ]
4fa5a3ba81325923095d228c40406817
RUN ONCE List item completed toggle delete
[ { "docid": "d1f3d7ec2ee384e64d983f7f648e1325", "score": "0.6629551", "text": "function addListenerListItemComplete() {\n\t\t$(\".listItem-checkbox\").on(\"click\", function() {\n\t\t\t$(this).closest(\".listItem-single\").slideUp();\n\t\t});\n\t}", "title": "" } ]
[ { "docid": "d39b9c054a47871759c2e13cea9f8b63", "score": "0.7403882", "text": "function deleteListItem(){\n\t\tli.classList.add(\"delete\")\n\t\tsaveData();\n\t}", "title": "" }, { "docid": "7725f09d33b356636e27940ac9724906", "score": "0.73265314", "text": "function _onDeleteSuccess() {\n var eventList = vm.items;\n var removeIndex = eventList.findIndex(function (element, index, eventList) {\n return element._id === vm.items._id;\n });\n eventList.splice(removeIndex, 1);\n vm.item = null;\n vm.toggleAdd = !vm.toggleAdd;\n }", "title": "" }, { "docid": "117cc632d7b6581d9af790765a9ac74e", "score": "0.71896476", "text": "function deleteListItem() {\n item.remove();\n }", "title": "" }, { "docid": "3b709183e547a48c677b47764bf26727", "score": "0.7132871", "text": "deleteListItem(listItemIndex) {\n return this.listItems[listItemIndex].$(\"=Delete\").click();\n }", "title": "" }, { "docid": "4a0e382ffae5db9ead35edaa552f84ef", "score": "0.710411", "text": "function deleteListItem() {\n\t\tli.classList.add(\"delete\");\n\t}", "title": "" }, { "docid": "d109bdfb32070fe980233d098ec06cfc", "score": "0.70984066", "text": "function deleteListItem(li){\n\t\tli.classList.add(\"delete\")\n\t\tsaveData();\n\t}", "title": "" }, { "docid": "cfd20662df705b8242137f04cd131a83", "score": "0.7071513", "text": "function deleteListItem() {\n li.addClass('delete');\n }", "title": "" }, { "docid": "8899290f43ce73724f35679b0374562f", "score": "0.6996049", "text": "function checkDelete(e) {\n const todoItem = e.target;\n // Deleting the item by checking its class\n if (todoItem.classList[0] === \"delete-btn\") {\n const deleteItem = todoItem.parentElement;\n // Adding class for animation effect\n deleteItem.classList.add(\"deleting\");\n removeLocalItems(deleteItem);\n // Event listener for the transition to end before removing\n deleteItem.addEventListener(\"transitionend\", function () {\n deleteItem.remove();\n });\n }\n // Marking the item as completed\n if (todoItem.classList[0] === \"check-btn\") {\n const checkedItem = todoItem.parentElement;\n checkedItem.classList.toggle(\"completed\");\n }\n}", "title": "" }, { "docid": "455ec0d34fe65b9bfb5c0a1a1de66ace", "score": "0.69867736", "text": "function handleDeleteItemChecked(){\n //check for when delete button is clicked, iterate thru\n //remove item from store - toggle \n //re-render shopping list in DOM\n $('.js-shopping-list').on('click', `.js-item-delete`, event => {\n //console.log('`handleDeleteItemChekced` ran');\n const itemIndex = getItemIdFromElement(event.currentTarget);\n //console.log(itemId);\n deleteListItem(itemIndex);\n renderShoppingList();\n });\n }", "title": "" }, { "docid": "d6b4f2fc0397b724527e58d1b1e0102a", "score": "0.6931116", "text": "function deleteAndCheck (occasion){\n const item = occasion.target;\n if (item.classList[0] === 'deleted-btn'){ //delete trashcan\n const todo = item.parentElement;\n todo.classList.add('collapse');\n removeLocalTodos(todo);\n todo.addEventListener('transitionend', function(){\n todo.remove();\n })\n };\n// marks as complete\n if (item.classList[0] === 'completed-btn'){\n const todo = item.parentElement;\n todo.classList.toggle(\"completed\");\n }\n }", "title": "" }, { "docid": "9073016bbcf7bfebfe4d31fc1feeed09", "score": "0.69117707", "text": "function deleteCheck(e){\n const item = e.target;\n if(item.classList[0] === \"delete-btn\"){\n const todo = item.parentElement;\n //animation \n todo.classList.add('fall');\n removeLocalTodos(todo); \n todo.addEventListener('transitionend', function(){\n todo.remove();\n }); \n \n }\n\n if (item.classList[0] === \"complete-btn\"){\n const todo = item.parentElement;\n todo.classList.toggle(\"completed\");\n todo.children[0].setAttribute('completed', true);\n completeTodo(todo); \n }\n}", "title": "" }, { "docid": "6f4c08e5369f6eb5f93baea3d656bc0d", "score": "0.68959916", "text": "function deleteCheck(e) {\n e.preventDefault();\n const item = e.target;\n\n //Delete Todo\n if(item.classList[0] === 'trash-btn') {\n const todo = item.parentElement;\n //Animation\n todo.classList.add(\"fall\");\n\n //remove localStorage\n removeLocalTodos(todo.id);\n todo.addEventListener('transitionend', function() {\n todo.remove();\n });\n }\n\n //Check mark\n if(item.classList[0] === 'complete-btn') {\n const todo = item.parentElement;\n todo.classList.toggle('completed');\n\n //item.value = (item.value === \"false\" ) ? \"true\" : \"false\";\n\n // localstorage\n updateLocalTodos(todo.id);\n \n }\n}", "title": "" }, { "docid": "1cf41e81daf044b0bf8e8a4a24e035a2", "score": "0.68853736", "text": "function deleteListItem(){\n \t\t$(this).parent().remove();\n \t}", "title": "" }, { "docid": "5591a8c931fbe9b38ba2c535d3be3be9", "score": "0.6885216", "text": "function deleteListItem(){ // add CLASS delete with (DISPLAY: NONE)\r\n li.classList.add(\"delete\"); // with display= none then after clicking\r\n // the X button the li item gets removed\r\n\t}", "title": "" }, { "docid": "4b71c51f7eb324672ce45ec00d259dcd", "score": "0.6875219", "text": "function deleteListItem() {\r\n\t// In order to delete entire list item we have to use parent method > without parent method we would only delete our delete button\r\n\t$(this).parent().fadeOut(1000, function(){\r\n\t\t$(this).remove();\r\n\t});\r\n\r\n\t// This deletes list items in our local storage\r\n\tlocalStorage.removeItem(\"list\", $('#List').html());\r\n}", "title": "" }, { "docid": "fb6728018790311ff22c50e1c1155060", "score": "0.68569547", "text": "function deleteListItem(e) {\n\t\te.remove();\n\t}", "title": "" }, { "docid": "4a483e8c78fe27322539c0d35e2c8015", "score": "0.67864186", "text": "function deleteListItem() {\n li.classList.add('delete'); // Add class 'delete' to element\n }", "title": "" }, { "docid": "a1d3ed4f800082f3073b3a229f451c21", "score": "0.6776099", "text": "function initDelete() {\n\t\t\t$list.find('[aria-click=\"delete\"]').on('click', function () {\n\t\t\t\tvar $item = $(this).closest('.item');\n\n\t\t\t\tpopupPrompt({\n\t\t\t\t\ttitle: _t.form.confirm_title,\n\t\t\t\t\tcontent: _t.investor.view.manager.delete_confirm,\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t\tbuttons: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttext: _t.form.yes,\n\t\t\t\t\t\t\ttype: 'warning',\n\t\t\t\t\t\t\thandle: function () {\n\t\t\t\t\t\t\t\ttoggleLoadStatus(true);\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\turl: '/investors/delete/' + $item.data('value'),\n\t\t\t\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\t\t\t\tcontentType: 'JSON'\n\t\t\t\t\t\t\t\t}).always(function () {\n\t\t\t\t\t\t\t\t\ttoggleLoadStatus(false);\n\t\t\t\t\t\t\t\t}).done(function (data) {\n\t\t\t\t\t\t\t\t\tif (data.status == 0) {\n\t\t\t\t\t\t\t\t\t\t$item.parent().remove();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tpopupPrompt({\n\t\t\t\t\t\t\t\t\t\t\ttitle: _t.form.error_title,\n\t\t\t\t\t\t\t\t\t\t\tcontent: _t.form.error_content,\n\t\t\t\t\t\t\t\t\t\t\ttype: 'danger'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}).fail(function () {\n\t\t\t\t\t\t\t\t\tpopupPrompt({\n\t\t\t\t\t\t\t\t\t\ttitle: _t.form.error_title,\n\t\t\t\t\t\t\t\t\t\tcontent: _t.form.error_content,\n\t\t\t\t\t\t\t\t\t\ttype: 'danger'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttext: _t.form.no\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t})\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "de61eac929e29b67dc4d7c84c35dbc21", "score": "0.6770631", "text": "function toggleThisListItem() {\n $(this).toggleClass('completed');\n \n if($(this).hasClass('completed')){\n delCount();\n }else{\n addCount();\n }\n }", "title": "" }, { "docid": "53e685ccbe92a4ec87bd30c46f98ac1c", "score": "0.67334855", "text": "function deleteItemList(){\r\n li.classList.add('delete');\r\n showAlert('ITEM DELETED', 'success');\r\n\r\n}", "title": "" }, { "docid": "0f89eb656d17beb61b61a6487e046d41", "score": "0.6712342", "text": "function deleteCheck(e){\n //console.log(e.target);\n const item = e.target; // it can be anything..\n\n //Delete\n if(item.classList[0] === \"trash-btn\") {\n //item.remove();\n //remove parent item\n const todo = item.parentElement;\n\n //animation\n todo.classList.add(\"fall\");\n removeLocalTodos(todo); //to rm LS\n todo.addEventListener('transitionend', function(){\n //only execute after animation\n todo.remove();\n });\n //todo.remove();\n }\n\n //CHECK\n if(item.classList[0] === \"complete-btn\") {\n const todo = item.parentElement;\n todo.classList.toggle(\"completed\");\n }\n}", "title": "" }, { "docid": "08ef73a7fd6f0ca6dd220277c1722a14", "score": "0.66724086", "text": "handleDeleteCompletedTodos() {\n\t\tthis.todos = this.todosHelper.filter(this.todos, this.todosHelper.states.active);\n\n\t\tthis.$context.changed();\n\t}", "title": "" }, { "docid": "aba8e0604a0e5deadb8cf59d095e34e1", "score": "0.6672109", "text": "function showDelete(listItems, deleteAll){\n if (listItems.length > 0) {\n deleteAll.classList.remove('task_close-js');\n }else{\n deleteAll.classList.add('task_close-js');\n }\n}", "title": "" }, { "docid": "7038746be86d3d2cbf12b211a186203f", "score": "0.6666869", "text": "function deleteLi() {\n //Add the delete to the list item\n li.classList.add(\"delete\");\n }", "title": "" }, { "docid": "68018b4d849b1a7fe301afc6a5d35ad9", "score": "0.6656569", "text": "function deleteListItem(event) {\n var card = $(event.target).closest('article');\n var deleteId = card.prop('dataset').id;\n card.remove();\n removeFromCollection(deleteId);\n if (!localStorage.length) resetFilter();\n if ($('article').length < 11) {\n $('.js-show-more').prop('disabled', true);\n };\n}", "title": "" }, { "docid": "fcb80c452bc13b92b35adeed6b9fd337", "score": "0.66317904", "text": "function addRemoveTodoItemClickHandler(e) { \r\n var $el = $(this).off(\"click\", addRemoveTodoItemClickHandler);\r\n var $item = $el.parent().parent();\r\n var val = parseInt($item.find(\".work-todo-list-item-checkbox\").attr(\"data-item-id\"));\r\n var txt = $item.find(\".work-todo-list-item-title\").text();\r\n if(!isNaN(val) && val) {\r\n if(typeof SYNC == \"object\") SYNC.deleteToDo({id:val, title:txt});\r\n \r\n BRW_sendMessage({command: \"deleteTodoItemDb\", \"id\": val});\r\n \r\n $item.fadeOut(100, function() {\r\n $item.remove();\r\n \r\n reCalculateTodoItemsCount();\r\n $(\"#todo-footer-input\").focus();\r\n \r\n //todoPopupState(\"no-all-done\");\r\n todoPopupState();\r\n \r\n });\r\n }\r\n}", "title": "" }, { "docid": "07ec8a70439bdf1dfd990d11d5d6c4a3", "score": "0.6606173", "text": "function doDelete(item_id) {\n document.getElementById(\"post\" + item_id).style.display = \"none\";\n closeDelete();\n document.getElementById(item_id).classList.remove(\"trash\");\n}", "title": "" }, { "docid": "3767d4c7950790fd53c60577761d78f2", "score": "0.65552616", "text": "function setDeletable( li )\n{\n let button = li.querySelector(\"span.for-delete-button\");\n if (button)\n {\n button.className = \"delete-button\";\n button.title = browser.i18n.getMessage(\"prefs-delete\");\n button.addEventListener( \"click\", event => {\n deleteEntry( li );\n } );\n }\n}", "title": "" }, { "docid": "6a8f5538badaf95f20d3e0aeef0cd950", "score": "0.65524083", "text": "updateListAfterDeletion(todoList) {\n this.setState({todoList}, () => {\n this.countFinished();\n });\n }", "title": "" }, { "docid": "65440e769b54265fb4107318819d78d7", "score": "0.6540856", "text": "function deleteCheck(e){\n\t\n\n \tconst item = e.target;\n \t//delete todo\n \tif(item.classList[0]=== 'trash-btn'){\n\n \t\tconst todo = item.parentElement;\n \t\tif(todo.classList.contains('completed')){\n \t\t\t//if the completed task is deleted then no need to modify taskcount\n \t\t\t} else{\n \t\t\t\ttaskCount--; //if umcompleted task is deleted then decrease taskCount \n \t\t\t}\n \t\t\n \t\t//adding animation for deleting a task \n \t\ttodo.classList.add('fall');\n \t\ttodo.addEventListener('transitionend', function(){\n \t\t\t\n \t\t\t\t\n \t\t\t\n\t\t\t\n \t\t\t\n \t\t\ttodo.remove();\n \t\t\t\n \t\t\t\n \t\t});\n \t\t//updating taskCount\n \t\tdocument.querySelector(\"#count\").innerText= taskCount;\n \t\treturn;\n\n \t\t//todo.remove();\n \t}\n \telse if(item.classList[0]=== \"complete-btn\"){\n \t\t\n \t\tconst todo = item.parentElement;\n\n \t\t// handling task count when marking completed or uncompleted\n \t\tif(todo.classList.contains('completed')){\n \t\t\ttaskCount++; \n \t\t}else{\n \t\t\ttaskCount--;\n \t\t}\n\n \t\t//toggling class between completed and uncompleted\n \t\ttodo.classList.toggle(\"completed\");\n \t\t\n\n \t}\n\n \tdocument.querySelector(\"#count\").innerText= taskCount;\n\n}", "title": "" }, { "docid": "8af8352c55a61e950a0f35936906839e", "score": "0.6538882", "text": "function deleteCheck(event) {\r\n const item = event.target;\r\n\r\n //verificam daca cea mai de sus clasa(adica sa nu dam click in body say html) e clasa delete sau check\r\n if (item.classList[0] === \"delete-btn\") {\r\n const todo = item.parentElement;\r\n //animatia\r\n todo.classList.add(\"deleted\");\r\n //stergem la finalul tranzitiei\r\n todo.addEventListener(\"transitionend\", function () {\r\n todo.remove();\r\n removeTodos(todo);\r\n isCheckedDelete(todo.innerText)\r\n });\r\n }\r\n if (item.classList[0] === \"complete-btn\") {\r\n const todo = item.parentElement;\r\n //toggle pt a avea varianta de click again pt revenire\r\n todo.classList.toggle(\"completed\");\r\n if(todo.classList.contains(\"completed\")){\r\n //localStorage.setItem(\"checked\", \"x\")\r\n console.log(todo.innerText);\r\n isChecked(todo.innerText);\r\n }else {\r\n isCheckedDelete(todo.innerText);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "51a91c02e1a60122db2cdb833334f44a", "score": "0.65336436", "text": "function hideDeleteItem(listId) {\r\n\r\n let deleteItem = document.getElementById(\"deleteItem\" + listId);\r\n let children = getChildrenFrom(\"list\" + listId, \"tasks\");\r\n\r\n for (let i = 0; i < children.length; i++) {\r\n\r\n let element = children[i];\r\n element.onclick = null;\r\n element.classList.remove(\"clickableButton\");\r\n }\r\n\r\n deleteItem.classList.add(\"invisible\");\r\n}", "title": "" }, { "docid": "807163f799ecffe0f7345428f9f99d02", "score": "0.65319926", "text": "function deleteCheck(e) {\n const item = e.target\n\n // delete todo\n if (item.classList[0] === \"trash-button\") {\n const todo = item.parentElement;\n const parentParent = todo.parentElement;\n parentParent.remove()\n }\n\n // check mark\n if (item.classList[0] === \"complete-button\") {\n const todo = item.parentElement;\n const parentParent = todo.parentElement;\n parentParent.classList.toggle(\"completed\")\n }\n}", "title": "" }, { "docid": "c6478828b6a79caa9e891ab453d3a8d2", "score": "0.65262747", "text": "function setDeleteImage() {\n\n // delete item\n $(\".delete_icon\").unbind().on(\"click\", function(e) { // we don't delete only until approved by server\n\n var tr = $(this).parent().parent();\n var itemId = tr.attr('id').substring(tr.attr('id').indexOf('-') + 1);\n var itemStatus = itemsStatus[itemId];\n\n $.ajax({\n type: \"DELETE\",\n url: \"/item\",\n data: {id: itemId},\n success: function (data)\n {\n var itemsStr;\n\n if (data['status'] === 0 ) { // only upon success we delete this row\n $(\"#errorMsg\").html(\"&nbsp;\");\n tr.remove();\n (itemStatus === 1) ? --completedItems : --uncompletedItems;\n\n if (completedItems > 0 && uncompletedItems === 0) { // all the items were completed\n $('#change_all_statuses').prop('checked',true);\n }\n else {\n $('#change_all_statuses').prop('checked',false);\n\n if (completedItems > 0) {\n $(\"#clear_completed\").html(\"Clear completed.\");\n $(\"#clear_completed\").show();\n $(\"#change_all_statuses\").show();\n }\n else {\n $(\"#clear_completed\").hide();\n }\n }\n\n itemsStr = (uncompletedItems === 1) ? 'item left.' : 'items left.';\n $(\"#items_left\").html(\"<strong> \" + uncompletedItems + \" </strong>\" + itemsStr);\n\n if (completedItems + uncompletedItems === 0) {\n $('#change_all_statuses').prop('checked',false);\n $(\"#change_all_statuses\").hide();\n $(\"#items_div\").hide(200);\n }\n\n }\n\n else {\n console.log(\"Unable to delete item with id: \" + itemId + \", with content: \" + tr.children(\"td:nth-child(2)\").val());\n $(\"#errorMsg\").text(\"Failed to delete item: \" + data['msg']);\n }\n },\n error: function ()\n {\n console.log(\"Unable to item item with id: \" + itemId + \".\");\n $(\"#errorMsg\").text(\"Failed to delete item id \" + itemId + \".\");\n }\n });\n });\n\n\n // sets the animation for hover on 'x' mark\n $(\".delete_icon\").hover(\n function() { // delete item hover-on animate\n $(this).fadeTo(100, 1);\n },\n function() { // delete item hover-out animate\n $(this).fadeTo(100, 0.4);\n }\n );\n}", "title": "" }, { "docid": "dab96bb819999060b12b990ff8cdd6af", "score": "0.6525336", "text": "function deleteCheck(e) {\r\n const item = e.target;\r\n\r\n // Deleting the particular task if the user clicks on the trash button:\r\n if (item.classList[0] === \"trash-btn\") {\r\n const todo = item.parentElement;\r\n todo.classList.add(\"fall\");\r\n todo.addEventListener(\"transitionend\", function () {\r\n todo.remove();\r\n })\r\n\r\n }\r\n\r\n // If the user clicks on check button we toggle a class of 'completed' to add the necessary styles:\r\n if (item.classList[0] === \"completed-btn\") {\r\n const todo = item.parentElement;\r\n todo.classList.toggle(\"completed\");\r\n }\r\n}", "title": "" }, { "docid": "b9c3cf7c4fa83484e30e0c06e2e072fc", "score": "0.64951456", "text": "function crossOutItem(event) {\n\t// storing the li item that is the target of the click event\n\tvar item = event.target;\n\n\tvar deleteButton = item.getElementsByClassName(\"delButtons\")[0];\n\t\n\titem.classList.toggle(\"done\");\n\t\n\n\tif (deleteButton.classList.toggle(\"done\")) {\n\t\tdeleteButton.style.visibility = \"visible\";\n\t} else {\n\t\tdeleteButton.style.visibility = \"hidden\";\n\t}\n\n}", "title": "" }, { "docid": "e150b0986a3026f5f372c027a0932ccf", "score": "0.6494442", "text": "function deleteList(c) {\n\tconst taskDel = document.querySelector(`.item-${c}`);\n\ttaskDel.firstElementChild.addEventListener(\"click\", () => {\n\t\tif (confirm(\"Are you sure?\")) {\n\t\t\ttaskDel.remove();\n\t\t\tconsole.log(taskDel.textContent);\n\t\t\tremoveFromStorage(taskDel.textContent);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "c104359ec954f2ec0b0a35ceafc01522", "score": "0.64893126", "text": "function deleteListItem() {\n\n\tvar removeThis = document.getElementById('added-list-item');\n\tremoveThis.parentNode.removeChild(removeThis);\n\treturn false;\n}", "title": "" }, { "docid": "2c4c47d3bd35dbd595f79649f38aa756", "score": "0.64889073", "text": "function deleteItem() {\n console.log(\"\\ndeleteItem clicked\");\n}", "title": "" }, { "docid": "66e5794e2bd3376522ab1e608672966a", "score": "0.64602363", "text": "function deleteItem(e){\n}", "title": "" }, { "docid": "775a55fef96e777b7f95879fd7bcb30c", "score": "0.645574", "text": "function deleteItem(e) {\n // retrieve the name of the task we want to delete. We need\n // to convert it to a number before trying it use it with IDB; IDB key\n // values are type-sensitive.\n let noteId = Number(e.target.parentNode.getAttribute('data-note-id'));\n\n // open a database transaction and delete the task, finding it using the id we retrieved above\n let transaction = db.transaction(['notes_os'], 'readwrite');\n let objectStore = transaction.objectStore('notes_os');\n let request = objectStore.delete(noteId);\n\n // report that the data item has been deleted\n transaction.oncomplete = function() {\n // delete the parent of the button\n // which is the list item, so it is no longer displayed\n e.target.parentNode.parentNode.removeChild(e.target.parentNode);\n console.log('Note ' + noteId + ' deleted.');\n\n // Again, if list item is empty, display a 'No notes stored' message\n if(!list.firstChild) {\n let listItem = document.createElement('li');\n listItem.textContent = 'No notes stored.';\n list.appendChild(listItem);\n }\n };\n}", "title": "" }, { "docid": "99b341f2a9cc4441701ee03f2a6c75e1", "score": "0.6450597", "text": "function removeAndToogleItem(e) {\r\n e.preventDefault();\r\n\r\n if (e.target.tagName === 'I' && confirm('Are you sure ?')) {\r\n data.forEach(function (obj, i) {\r\n if (obj.text.trim().toLowerCase() === e.target.parentElement.previousElementSibling.innerText.trim().toLowerCase()) {\r\n data.splice(i, 1);\r\n }\r\n });\r\n }\r\n\r\n data.forEach(function (obj, i) {\r\n\r\n if (e.target.tagName === 'LI') {\r\n if (obj.text.trim().toLowerCase() === e.target.firstElementChild.innerText.trim().toLowerCase()) {\r\n data.splice(i, 1, {\r\n text: obj.text,\r\n isDone: !obj.isDone\r\n });\r\n\r\n }\r\n }\r\n if (e.target.tagName === 'SPAN') {\r\n if (obj.text.trim().toLowerCase() === e.target.innerText.trim().toLowerCase()) {\r\n data.splice(i, 1, {\r\n text: obj.text,\r\n isDone: !obj.isDone\r\n });\r\n\r\n }\r\n }\r\n\r\n });\r\n localStorage.setItem('tasks', JSON.stringify(data));\r\n renderTaskItem();\r\n\r\n }", "title": "" }, { "docid": "b44401a61522cd7549f848ba098df5a5", "score": "0.6444886", "text": "function deleteListItem(id, type){\r\n \r\n var input_id = $(\"[data-type=\"+type+\"]\").attr('data-input-id');\r\n var list_div = input_id+'_list';\r\n var delconfirm =confirm('Are you sure?');\r\n \r\n if(delconfirm){\r\n $('#'+type+'_div_'+id).remove();\r\n $('#'+type+'_'+id).remove();\r\n var i=1; \r\n $('#'+list_div+ '.dynamic b').each(function(){\r\n $(this).html(i);\r\n i++;\r\n });\r\n }\r\n}", "title": "" }, { "docid": "8dd4e47414aaa8cd9f796d8aa0d03f01", "score": "0.64356726", "text": "function remove_item(id) {\n var deleting = $.post('dlt-todo.php',{\n delete_id: id\n });\n\n deleting.done(function(){\n $('#'+id).remove();\n $('.alert-delete').show();\n setTimeout(function(){ $('.alert-delete').hide(); }, 3000);\n })\n\n\n }", "title": "" }, { "docid": "ce231b295aac4364515636d884c68613", "score": "0.64127636", "text": "function deleteItem() {\n $('.shopping-list').on('click', '.shopping-item-delete', function (event) {\n this.closest('li').remove();\n });\n }", "title": "" }, { "docid": "ee7ed2b362f107a27211ff657c75ff0c", "score": "0.64007634", "text": "function deleteList() {\n //set local state of open back to false\n setOpen(false);\n //trigger delete list reducer which end result is permanent delete of list from database\n dispatch({ type: 'DELETE_LIST', payload: id });\n //redirect user back to home page\n history.push('/user');\n\n }", "title": "" }, { "docid": "5b5fe20d95e891d73464e60ca24e5440", "score": "0.6396054", "text": "function taskComplete(item) {\n if (item.target.tagName === \"LI\") {\n item.target.classList.toggle(\"done\");\n }\n}", "title": "" }, { "docid": "5bf5a7a0c055c86890be54bf3b498f54", "score": "0.6383904", "text": "function deleteListItem() {\n\tthis.parentNode.remove();\n}", "title": "" }, { "docid": "3e1daa659b4a4978941af9fffbf154f9", "score": "0.63834983", "text": "'click .delete'() {\n \t\tMeteor.call('lists.remove', this._id, (error) => {\n\t\t\tif (error) {\n\t\t\t\tBert.alert( 'An error occured: ' + error + '! Only the creator of the list can delete it.', 'danger', 'growl-top-right' );\n\t\t\t} else {\n\t\t\t\tBert.alert( 'List removed successfully!', 'success', 'growl-top-right' );\n\t\t\t\tFlowRouter.go('/');\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "bcb002ea266ff7e4b9f1c84d105d9245", "score": "0.6380163", "text": "function toggleAfterClick(listItem) {\n listItem.addEventListener(\"click\", function () {\n listItem.classList.toggle(\"done\");\n });\n}", "title": "" }, { "docid": "33d647219a7da6ed92bb789bce7edffc", "score": "0.637861", "text": "function del_all_item(){\n\n Swal.fire({\n title: 'Are you sure?',\n text: \"You Want to Delete Whole TODO List!\",\n icon: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Yes, delete it!'\n }).then((result) => {\n if (result.value) {\n li.innerHTML=\"\";\n Swal.fire(\n 'Deleted!',\n 'Your TODO List Has Been Deleted.',\n 'success'\n )\n }\n })\n}", "title": "" }, { "docid": "7e17d0eac1104a0174864ffd90bc4b0b", "score": "0.6371387", "text": "function deleteTask(e) {\n let index = this.dataset.index;\n let tyList = this.parentElement.parentElement.parentElement;\n if (tyList.getAttribute(\"id\") == \"lists\") {\n tasks.splice(index, 1);\n localStorage.setItem(\"tasks\", JSON.stringify(tasks));\n render(lists, tasks);\n }\n if (tyList.getAttribute(\"id\") == \"listOfChecked\") {\n tasksChecked.splice(index, 1);\n localStorage.setItem(\"tasksChecked\", JSON.stringify(tasksChecked));\n render(listOfChecked, tasksChecked);\n }\n}", "title": "" }, { "docid": "0225fada998174c92980a13f46b293b0", "score": "0.63689464", "text": "function completeItem(event) {\n $(this).parent().toggleClass('done');\n }", "title": "" }, { "docid": "d5cfc0df135717930acc1981e3dde64a", "score": "0.63681537", "text": "function liDoubleClicked() {\n removeListItem()\n }", "title": "" }, { "docid": "e00516020f167125ec06113d7751c38c", "score": "0.6366893", "text": "function deleteItem(e){\n const element=e.currentTarget.parentElement.parentElement;\n const id=element.dataset.id;\n list.removeChild(element);\n if (list.children.length===0) {\n container.classList.remove('show-container');\n }\n displayAlert('item removed','danger');\n setBackToDefault();\n removeFromLocalStorage(id);\n //remove from local storage\n // removeFromLocalStorage(id);\n \n}", "title": "" }, { "docid": "a2532bcba0b5c7ee4f0490a9c432b106", "score": "0.6365191", "text": "async handleDeleteToggle(isUndelete) {\n let resp;\n if (isUndelete) {\n resp = await window.csClient.undeleteComment(\n this.featureId, this.activity.comment_id);\n } else {\n resp = await window.csClient.deleteComment(\n this.featureId, this.activity.comment_id);\n }\n if (resp && resp.message === 'Done') {\n this.activity.deleted_by = (isUndelete) ? null : this.user.email;\n this.toggleMenu();\n this.requestUpdate();\n }\n }", "title": "" }, { "docid": "97e353f0d2e0f2420188f2a70e3bdcbd", "score": "0.635569", "text": "function removeListItem (item) {\r\n lastDeleted = item;\r\n document.getElementById(item).style.display = 'none';\r\n var index = masterList.indexOf(item);\r\n if (index >= 0) {\r\n masterList.splice( index, 1 );\r\n } \r\n let updateList = `${masterList}`;\r\n db.collection(\"list\").doc(\"h2a0tUXKobzdSeY3DoDW\").set({\r\n checklist1: updateList\r\n })\r\n .then(function() {\r\n console.log(\"Document written with ID: \", docRef.id);\r\n })\r\n .catch(function(error) {\r\n console.error(\"Error adding document: \", error);\r\n });\r\n //itemList.innerHTML = '';\r\n if (hideUndo){\r\n undoButton.style.display = \"block\";\r\n hideUndo = false;\r\n }\r\n undoTextArea.textContent =`undo remove ${lastDeleted}`;\r\n\r\n //importList();\r\n}", "title": "" }, { "docid": "eeab30d0904b607d35af362734771296", "score": "0.6347577", "text": "function deleteHandler(key) {\n for (let item of list) {\n if (item.key === key) {\n item.deleted = !item.deleted;\n }\n }\n\n setList([...list]);\n\n }", "title": "" }, { "docid": "994ccad01f39ac023da105f5b83793a0", "score": "0.6343615", "text": "function deleteList(){\n if(confirm(\"Tem Sertesa que deseja excluir a tabela?\")){\n list = '';\n setList(list);\n }\n}//fim", "title": "" }, { "docid": "f6a4d864530ad0f2f1bca6735a5de7fa", "score": "0.63405925", "text": "function subtaskWasDeleted(data) {\n var subtask = $(\".subtasks__row[data-subtask='\" + data.subtaskId + \"']\");\n\n subtask.animate({\n height: 0,\n width: 0,\n opacity: 0,\n padding: 0,\n margin: 0\n }, 500, function() {\n subtask.remove();\n })\n }", "title": "" }, { "docid": "bd7a35df67bf49f593e3eb2edbfab169", "score": "0.6336065", "text": "deleteItem() {\n this.view.removeFromParentWithTransition(\"remove\", 400);\n if (this.item != null) {\n this.itemDao.deleteById(this.item.getId());\n }\n }", "title": "" }, { "docid": "9e4ed397babdd6912bf391017f3f5196", "score": "0.6332898", "text": "function deleteOrComplete(e){\r\n if(e.target.className == 'delete'){\r\n deleteTask(e);\r\n } else {\r\n completeTask(e);\r\n }\r\n}", "title": "" }, { "docid": "0dc47d505fb391df0bc9cf28c3db8f44", "score": "0.6329715", "text": "function deleteHandler() {\n console.log(\"clicked delete button in tasks\");\n deleteTask($(this).data(\"id\"))\n} // end deleteHandler", "title": "" }, { "docid": "c993f30c1b57b581bd8aa8bb9a5f5535", "score": "0.63247496", "text": "function completeItem()\r\n{\r\n\tconst item = this.parentNode.parentNode;\r\n\tconst currentList = item.parentNode;\r\n\tconst currentListId = currentList.id;\r\n\tconst text = item.innerText;\r\n\r\n\titem.remove();\r\n\r\n\tif (currentListId === 'todo-list') \r\n\t{\r\n\t\ttodo.splice(todo.indexOf(text),1);\r\n\t\tcompleted.push(text);\r\n\t\tdocument.getElementById(\"completed-list\").prepend(item);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tcompleted.splice(completed.indexOf(text),1);\r\n\t\ttodo.push(text);\r\n\t\tdocument.getElementById(\"todo-list\").prepend(item);\r\n\t}\r\n\tupdateStorage();\r\n}", "title": "" }, { "docid": "d15e262dea4f8ebf724101742b9b8e42", "score": "0.63207483", "text": "function deleteItem(event) {\n \n //this delete the row from the list not the firebase\n $(this).parent().remove();\n \n \n //this gets the current selected row id \n // from the unordered list\n console.log($(this).attr(\"id\"));\n \n //this calls the firebase to delete the selected id row\n firebase.database().ref().orderByChild('id').equalTo($(this).attr(\"id\")).once(\"value\").then(function (snapshot) {\n snapshot.forEach(function (child) {\n //this remove the selected child row\n child.ref.remove();\n \n }); // a closure is needed here\n }).then(function () {\n console.log(\"Removed!\");\n \n \n });\n \n }", "title": "" }, { "docid": "416dad8d369c72f3b19b9d707ff03f8a", "score": "0.63080966", "text": "function deleteItem() {\n list.innerHTML = \"\"\n}", "title": "" }, { "docid": "b69a23caeb8c821a11c5a5b63e56d8f5", "score": "0.62894475", "text": "function deleteTasks() {\n const mutateCursor = getCursorToMutate();\n if (mutateCursor) {\n clickTaskMenu(mutateCursor, 'task-overflow-menu-delete', false);\n } else {\n withUnique(\n openMoreMenu(),\n 'li[data-action-hint=\"multi-select-toolbar-overflow-menu-delete\"]',\n click,\n );\n }\n }", "title": "" }, { "docid": "6f78fd1b57841c298af0125e93e3f7af", "score": "0.6287963", "text": "toggleComplete(item) {\n // ToDos.update(item._id, { $set: { complete: !item.complete } });\n Meteor.call('todos.toggleComplete', item);\n }", "title": "" }, { "docid": "4e842c470f468b5cda145dc2d4511446", "score": "0.6286573", "text": "function deleteDone(doneUl, doneLi, json) {\n\tconst configObj = {\n\t\tmethod: \"DELETE\",\n\t\theaders: {\n\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\"Accept\": \"application/json\"\n\t\t}\n\t}\n\n\tfetch(`http://localhost:3000/tasks/${json.id}`, configObj)\n\n\tdoneUl.removeChild(doneLi);\n}", "title": "" }, { "docid": "bcb5e7bc3fd6cbcbb801f56cdc3e5d73", "score": "0.6282148", "text": "function deleteList() {\n $('#custom-form').attr('action', '/delete-customlist/');\n $('#custom-form').submit();\n $('#delete-list').button('loading');\n}", "title": "" }, { "docid": "675adb4690ece4016514aee4c5ad155d", "score": "0.62791336", "text": "function deleteItem(event) {\n \n //this delete the row from the list not the firebase\n $(this).parent().remove();\n \n \n //this gets the current selected row id\n // from the unordered list\n console.log($(this).attr(\"id\"));\n \n //this calls the firebase to delete the selected id row\n firebase.database().ref().orderByChild('id').equalTo($(this).attr(\"id\")).once(\"value\").then(function (snapshot) {\n snapshot.forEach(function (child) {\n //this remove the selected child row\n child.ref.remove();\n \n }); // a closure is needed here\n }).then(function () {\n console.log(\"Removed!\");\n \n \n });\n \n \n \n }", "title": "" }, { "docid": "b75d87ddfd785eb5f19b5681b7a2972f", "score": "0.6278476", "text": "async delist(item) {}", "title": "" }, { "docid": "0ca8a7fd02ef5f8dab32a81e60a82d90", "score": "0.62761533", "text": "function deleteItem(event) {\n\n //to get the target e.target\n //html element is returned to item \n const item = event.target;\n\n if (item.classList[0] === \"deletebtn\") {\n const pitem = item.parentElement;\n pitem.remove();\n }\n\n //checkmark\n if (item.classList[0] === \"completebtn\") {\n console.log(item.parentElement);\n const pitem = item.parentElement;\n pitem.classList.toggle(\"completed\");\n //toggle means adding in class as divItem completed\n }\n\n}", "title": "" }, { "docid": "1eac7f0e17f39ffcda9059d3512b8066", "score": "0.6275929", "text": "function deleteElement(listElement) {\n var text = $(listElement).text();\n var itemText = text.slice(0,-1) // Removes the x from the list's text\n $.post('/deleteItem', {\"itemText\": itemText})\n listElement.style.display = \"none\";\n}", "title": "" }, { "docid": "7542ce8a11650a64605aca95c66700a8", "score": "0.6274028", "text": "function checkUncheck(e) {\n const itemId = e.target.id;\n\n if (list[itemId].done == false) {\n list[itemId].done = true;\n } else {\n list[itemId].done = false;\n }\n\n updateLocalStore();\n loadList();\n}", "title": "" }, { "docid": "5779c6a50604c17d0f54f29043508416", "score": "0.6272188", "text": "function deleteToggle() {\n\n $('.data-form').click( function() {\n var toggleState = deletedForms['#' + $(this).parent('li').attr('id')]\n\n if (!toggleState) {\n $(this).closest(\"li\").css('background', 'rgba(181, 25, 28, .25)');\n deletedForms['#' + $(this).parent('li').attr('id')] = true;\n } else {\n $(this).closest(\"li\").css('background', 'rgba(25, 255, 25, .25)');\n deletedForms['#' + $(this).parent('li').attr('id')] = false;\n }\n });\n}", "title": "" }, { "docid": "ca38a68212720833cf0e8467da428c6a", "score": "0.62644225", "text": "function done(doneItem){\r\n var done = doneItem;\r\n var markup = '<li> <span class=\"row pt-1\"><span class=\"col-10 pt-2\"><i class=\"fas fa-check mr-2\"></i>'+ done.trim() +'</span><button class=\"undo btn bkg-color\"><i class=\"fas fa-undo\"></i></button></span><hr class=\"mb-0 mt-1\"></li>';\r\n $(markup).appendTo(\"#done-items\").hide().slideDown();\r\n $('.remove').remove();\r\n countTodos();\r\n}", "title": "" }, { "docid": "009546ce8a0eeafbde62b60b3bae8104", "score": "0.626316", "text": "deleteSavedItems() {\n this.savedItemsDeleteListButton.value.forEach(function (el) {\n el.click()\n })\n }", "title": "" }, { "docid": "ee7e1269cdf87804e4d2524bc230494c", "score": "0.6261398", "text": "function deleteTask(deleteBtn, listItems){\n let arraylength = deleteBtn.length;\n for (let i = 0; i < arraylength; i++) {\n deleteBtn[i].addEventListener('click', (e) =>{\n e.preventDefault();\n console.log(i)\n remove(deleteBtn[i].getAttribute('data-id'));\n listItems[i].remove();\n window.location.reload();\n })\n }\n}", "title": "" }, { "docid": "d3ffbc3a6f350d17d235a49421c39afd", "score": "0.62590176", "text": "function deleteItem(e) {\r\n const deleteItem = document.getElementById(\"delete\");\r\n if (e.target.className == \"delete\") {\r\n list.forEach((item) => {\r\n if (item.id == e.target.id) {\r\n e.target.parentElement.remove();\r\n list = list.filter((item) => item.id != e.target.id);\r\n console.log(list);\r\n }\r\n });\r\n }\r\n e.preventDefault();\r\n}", "title": "" }, { "docid": "d21df5d5f6c25e98b7d3cd9f4127d8d6", "score": "0.62588435", "text": "function deleteTask() {\n const buttonDelete = document.querySelectorAll('.button-delete')\n buttonDelete.forEach(button => {\n button.onclick = function (event) {\n event.path.forEach(el => {\n if (el.classList?.contains(listItemClass)) {\n let id = +el.id\n listTask = listTask.filter(task => {\n if (task.id === id) {\n el.remove()\n return false\n }\n return true\n })\n showInfoNoTask()\n }\n })\n setTaskValue()\n localStorage.setItem('listTask', JSON.stringify(listTask))\n }\n })\n }", "title": "" }, { "docid": "d9debd79382fde4f7564802113604ba0", "score": "0.6243547", "text": "function onDelete(work_item_id) {\n // Use Ajax to start deleting task from the database\n $.ajax({\n url: `https://localhost:5001/api/v1/WorkItem?workItemId=${work_item_id}`,\n type: 'DELETE',\n cache: false,\n data: JSON.stringify({\n \"Title\": \"delete\",\n \"Content\": \"delete\",\n \"DateCreated\": \"delete\"\n }),\n contentType: \"application/json\",\n success: function (responseData) {\n // At this point, task is deleted in the database, we will now need to remove it from\n // current list of tasks (work item)\n $(\"div\").remove(`#${work_item_id}`);\n }\n })\n}", "title": "" }, { "docid": "e5715ef8560615c4c8d99bcb998f9a64", "score": "0.6239011", "text": "function deleteItem(e) {\n // Una vez que clickeemos el boton, queremos eliminar la Parent del item.\n // console.log('item Deleted');\n const element = e.currentTarget.parentElement.parentElement;\n const id = element.dataset.id; // Seleccionamos el ID\n // console.log(element); // Parent = Grocery-Item\n list.removeChild(element);\n if (list.children.length === 0) {\n container.classList.remove('show-container');\n }\n displayAlert('Item Removed', 'danger');\n setBackToDefault();\n // LOCAL STORAGE REMOVE\n removeFromLocalStorage(id);\n}", "title": "" }, { "docid": "b4db24fd0b159c03198b8bf34961aac6", "score": "0.6228956", "text": "function deleteItem ()\n{\n\t// Delete Item.\n $(\".shopping-list\").on(\"click\", \".shopping-item-delete\", function (e) \n {\n \tconsole.log('Delete');\n e.preventDefault();\n $(this).closest('li').remove();\n });\n}", "title": "" }, { "docid": "0b341d3c82d2facca56bc1b9cc7af908", "score": "0.62178195", "text": "function undoDelete (){\r\n if (lastDeleted)\r\n {\r\n undoButton.style.display = \"none\";\r\n undoTextArea.textContent = '';\r\n hideUndo = true;\r\n printListItem(lastDeleted);\r\n appendDbList(lastDeleted);\r\n }\r\n}", "title": "" }, { "docid": "b25c3f97f8e7e40eae973cb752871f15", "score": "0.62131244", "text": "function ctrlDeleteItem(event) {\n let accID, splitID, ID;\n acc = event.target.parentNode.parentNode.parentNode; // get the li\n accID = event.target.parentNode.parentNode.parentNode.id; // get the id\n\n if (accID) {\n ID = accID;\n // if user confirms delete\n\n //delete acc from user interface\n deleteFromUI(acc);\n if (user[0] === \"foyafa\" && user[1] === \"12345\") {\n // delete the acc from firebase\n db.collection(\"accounts\").doc(ID).delete();\n } else if (user[0] === \"admin\" && user[1] === \"12345\") {\n db.collection(\"test\").doc(ID).delete();\n } else if (user[0] === \"george\" && user[1] === \"12345\") {\n db.collection(\"account\").doc(ID).delete();\n }\n }\n }", "title": "" }, { "docid": "19b033972fee9e2616fb29d680b73b8e", "score": "0.6212507", "text": "function deleteHandler() {\n deleteItem($(this).data(\"id\"));\n} // end deleteHandler", "title": "" }, { "docid": "2bd5b7aaa4d3b0bda146321fa9b7be9d", "score": "0.6211505", "text": "function completeItem() {\n //grab the <li> by accessing the parent nodes \n let item = this.parentNode.parentNode; //the <li>\n let parent = item.parentNode; //in order to remove its child <li>\n let id = parent.id; //check id if its 'todo' or 'completed'\n let value = item.innerText;\n\n //if its an item to be completed...\n if(id === 'todo') {\n //remove one item from todo, based on index\n data.todo.splice(data.todo.indexOf(value, 1));\n //add/push it to completed list\n data.completed.push(value);\n \n //else if it was already completed...\n } else {\n //remove one item from completed, based on index\n data.completed.splice(data.completed.indexOf(value, 1));\n //add/push it to todo list\n data.todo.push(value);\n }\n\n //update localstorage\n dataObjectUpdated();\n\n //variable to see which list is the appropiate one for the item depending on if its checked or unchecked when clicked...\n let targetList = (id === 'todo') ? document.getElementById('completed') : document.getElementById('todo');\n\n //remove it\n parent.removeChild(item);\n\n //or append it before first child\n targetList.insertBefore(item, targetList.childNodes[0]);\n}", "title": "" }, { "docid": "055f34e1f9c373b76787c16d834105ad", "score": "0.6204848", "text": "processDeleteList() { // CHANGE\n // Prompt window, slides a dialog\n // must be animated on and off screen\n window.todo.view.showDialog();\n // disable buttons\n document.body.classList.add(\"modal_open\");\n // allow modal and modal buttons to be clicked \n // let dialog = document.getElementById(TodoGUIId.MODAL_YES_NO_DIALOG);\n // dialog.classList.add(\"modal_container_open\");\n }", "title": "" }, { "docid": "59729ccf9ecc3ce8ca374686f447468d", "score": "0.6204002", "text": "function handleDelete() {\n console.log('delete click');\n\n taskToDelete = $(this).data(\"id\");\n\n deleteTask(taskToDelete);\n}", "title": "" }, { "docid": "8abbf2ddcabe27870d07cbf1da93d312", "score": "0.62032384", "text": "function toDo(){\n $('ol li .fa-check').on('click',function(){\n $(this).parent().parent().toggleClass('done');\n });\n $('ol li .fa-remove').on('click',function(){\n $(this).parent().parent().slideUp();\n setTimeout(function(){\n $(\".masonary\").isotope('reloadItems').isotope({ sortBy: 'original-order' });\n },500)\n });\n }", "title": "" }, { "docid": "078cacbd12be782988729c3542244417", "score": "0.62027276", "text": "function setClearCompletedListener() {\n\n //sets clear-completed onclick event\n $(\"#clear_completed\").on(\"click\", function () {\n\n $.ajax({\n type: \"DELETE\",\n url: \"/item\",\n data: {id: -1},\n success: function (data)\n {\n var currentRow, trId;\n\n if (data['status'] === 0 ) { // only upon success we delete all rows\n $(\"#errorMsg\").html(\"&nbsp;\");\n\n $('#items_table > tbody > tr').each(function() {\n\n currentRow = $(this); // cache this constructor\n trId = $(currentRow).attr('id').substring($(currentRow).attr('id').indexOf('-') + 1);\n if (itemsStatus[trId]) {\n --completedItems;\n $(this).remove();\n }\n });\n\n $(\"#clear_completed\").hide();\n $('#change_all_statuses').prop('checked',false);\n\n if (uncompletedItems === 0) {\n $(\"#change_all_statuses\").hide();\n $(\"#items_track\").hide();\n }\n }\n else {\n console.log(\"Unable to delete all items. Reason: \" + data['msg']);\n $(\"#errorMsg\").text(\"Failed to clear completed items: \" + data['msg']);\n }\n },\n error: function ()\n {\n console.log(\"Unable to delete all items.\");\n $(\"#errorMsg\").text(\"Failed to clear completed items.\");\n }\n });\n });\n}", "title": "" }, { "docid": "aaa04fef1b0de43f107f8e7a903b8dbc", "score": "0.6197072", "text": "onAfterDeleteSelected(data_obj) {\n\t\t//TODO: Override this as needed;\n\t}", "title": "" }, { "docid": "189946ccf239cfc0b03047f62b9f1fc8", "score": "0.6196371", "text": "function completeItem(event) {\n $(this).parent().toggleClass('done');\n \n \n \n }", "title": "" }, { "docid": "212c3caaa2df1c603322dc73a653279e", "score": "0.6194878", "text": "function postDelete() {\n console.log('item deleted');\n swal({\n title: \"Dare Approved!\",\n icon: \"success\",\n button: \"Done\"\n })\n .then( () => {\n location.reload();\n })\n }", "title": "" }, { "docid": "7ae3c2069a60ef3ae014b3165ac17e07", "score": "0.6189556", "text": "deleteItem(id) {\n\n if (confirm(\"Delete this entry forever?\")) {\n\n submitDataAsync({id: id}, \"/journal/delete\", false, (responseData) => {\n\n console.log(responseData);\n\n if (responseData.success === true) {\n this.setState(prevState => ({\n items: prevState.items.filter((item) => {\n return item._id.$oid !== id;\n })\n }));\n }\n\n });\n }\n\n }", "title": "" }, { "docid": "7b9db6559a6a66a821a06f8c7f07190f", "score": "0.61824656", "text": "function deleteCheck(event) {\n const item = event.target;\n //delete todo\n if (item.classList[0] === \"trash-btn\") {\n const todo = item.parentElement;\n //animation\n todo.classList.add(\"fall\");\n removeLocalTodos(todo);\n todo.addEventListener(\"transitionend\", () => todo.remove());\n }\n //checkbox kattintás\n if (item.classList[0] === \"checkboxInput\") {\n const todo = item.parentElement;\n const checkB = item.firstChild;\n todo.classList.toggle(\"checked\");\n }\n}", "title": "" }, { "docid": "8b1c3618ec7e791ad6d645d779048064", "score": "0.6174481", "text": "function createItem(itemText , itemId , itemStatus) {\n if(itemText != 0) {\n const listItem = document.createElement('li');\n const listText = document.createElement('span');\n const deleteBtn = document.createElement('button');\n const checkBox = document.createElement('input')\n const checkboxStyle = document.createElement('span')\n \n \n checkBox.setAttribute('type','checkbox');\n checkBox.setAttribute('class','item-checkbox');\n checkboxStyle.setAttribute('class','checkbox-style');\n listItem.appendChild(checkBox);\n listItem.appendChild(checkboxStyle);\n listItem.appendChild(listText);\n \n listText.textContent = itemText;\n \n listItem.appendChild(deleteBtn);\n listItem.setAttribute('data-id', itemId)\n listItem.setAttribute('data-id', itemId)\n listItem.setAttribute('data-status', itemStatus)\n deleteBtn.textContent = 'Delete';\n // console.log('status')\n // console.log(itemStatus)\n const itemgetId = listItem.getAttribute('data-id')\n if(itemStatus === true) {\n listItem.classList.add('completed')\n checkBox.checked = true;\n doneItems ++;\n }\n ul.appendChild(listItem);\n //console.log(document.querySelectorAll('.my-items .completed').length);\n showItems();\n deleteBtn.addEventListener('click', () => {\n // console.log('id-check')\n // console.log(itemgetId) \n \n ul.removeChild(listItem); \n removeItem(itemgetId)\n showItems();\n })\n checkBox.addEventListener('change',() => {\n const itemElem = checkBox.parentElement;\n const elId = itemElem.getAttribute('data-id')\n let elStatus = itemElem.getAttribute('data-status')\n itemElem.classList.toggle('completed');\n\n \n\n if(elStatus === 'false') {\n itemElem.setAttribute('data-status', 'true')\n checkItem(elId, 'true')\n } else if(elStatus === 'true') {\n itemElem.setAttribute('data-status','false')\n uncheckItem(elId, 'false')\n }\n // console.log('status')\n // console.log(elStatus)\n showItems();\n //saveOrUpdateDb()\n \n\n }) \n input.value = '';\n input.focus();\n } \n }", "title": "" }, { "docid": "d2889be3ca5cf62a1e8b5c924f3a096e", "score": "0.6171501", "text": "deleteItem() {\n if (window.confirm('Etes-vous sur de vouloir effacer cet outil ?')) {\n sendEzApiRequest(this.DELETE_ITEM_URI + this.props.id, \"DELETE\")\n .then((response) => {\n this.props.deleteButtonCB(this.props.tool)\n }, error => {\n alert(\"Impossible de suprimer l'outil\")\n\n console.log(error)\n })\n }\n }", "title": "" }, { "docid": "0b3dad5f6ca34878288362c9118aed13", "score": "0.6171375", "text": "deleteSelected(){\n let list=this.state.todoList\n let todoList=list.filter(todo=>!todo.isComplete)\n \n if(todoList.length>0) currentList=todoList\n this.setState({todoList})\n }", "title": "" } ]
62c3b7bfecf7d5bbe71546893dc1803c
Get caret container parent for the specified node
[ { "docid": "44a9a6574c42ea6ba1487f20464d7ee7", "score": "0.85349226", "text": "function getParentCaretContainer(node) {\n\t\t\t\t\t\t\twhile (node) {\n\t\t\t\t\t\t\t\tif (node.id === caretContainerId) {\n\t\t\t\t\t\t\t\t\treturn node;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tnode = node.parentNode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" } ]
[ { "docid": "9631f62e0bb6a6e789dac26f4d1645e2", "score": "0.85616255", "text": "function getParentCaretContainer(node) {\n while (node) {\n if (node.id === caretContainerId) {\n return node;\n }\n\n node = node.parentNode;\n }\n }", "title": "" }, { "docid": "ee1e46520ad9411df996dd9a43a6268f", "score": "0.85526204", "text": "function getParentCaretContainer(node) {\n\t\t\twhile (node) {\n\t\t\t\tif (node.id === caretContainerId) {\n\t\t\t\t\treturn node;\n\t\t\t\t}\n\n\t\t\t\tnode = node.parentNode;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0fb0e56989b489a9fe4d2dfebb2c1996", "score": "0.8521297", "text": "function getParentCaretContainer(node) {\n\t\t\t\twhile (node) {\n\t\t\t\t\tif (node.id === caretContainerId) {\n\t\t\t\t\t\treturn node;\n\t\t\t\t\t}\n\n\t\t\t\t\tnode = node.parentNode;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "837306ff88dcc53cd5522ab9f2b6b042", "score": "0.72579813", "text": "getParent() {\n return this.container.parentNode\n }", "title": "" }, { "docid": "9cb28285d283d7a435eff8d7b8c52bbb", "score": "0.69181895", "text": "function getParentNode(node) {\n var parent;\n\n var datum = node.id.split(\"_\");\n\n if (parseInt(datum[2]) == 1)\n parent = node;\n else\n parent = node.parentNode;\n\n return parent;\n}", "title": "" }, { "docid": "d2638fd1d0db683f5c1622267d3b19ec", "score": "0.6880952", "text": "function find_parent(ev) {\n prev_div = ev.target.parentElement;\n}", "title": "" }, { "docid": "e01bd1867cadcd6da0528ab3691b79ff", "score": "0.6840237", "text": "function findParentContainer(start) {\n var container, parent, sibling, siblingName, root;\n\n container = parent = start ? startContainer : endContainer;\n siblingName = start ? 'previousSibling' : 'nextSibling';\n root = dom.getRoot();\n\n function isBogusBr(node) {\n return node.nodeName == \"BR\" && node.getAttribute('data-mce-bogus') && !node.nextSibling;\n }\n\n // If it's a text node and the offset is inside the text\n if (container.nodeType == 3 && !isWhiteSpaceNode(container)) {\n if (start ? startOffset > 0 : endOffset < container.nodeValue.length) {\n return container;\n }\n }\n\n /*eslint no-constant-condition:0 */\n while (true) {\n // Stop expanding on block elements\n if (!format[0].block_expand && isBlock(parent)) {\n return parent;\n }\n\n // Walk left/right\n for (sibling = parent[siblingName]; sibling; sibling = sibling[siblingName]) {\n if (!isBookmarkNode(sibling) && !isWhiteSpaceNode(sibling) && !isBogusBr(sibling)) {\n return parent;\n }\n }\n\n // Check if we can move up are we at root level or body level\n if (parent == root || parent.parentNode == root) {\n container = parent;\n break;\n }\n\n parent = parent.parentNode;\n }\n\n return container;\n }", "title": "" }, { "docid": "e19109404d34923dff37a6cafb32496b", "score": "0.6829916", "text": "parent() {\n return editor.get(this.parentId);\n }", "title": "" }, { "docid": "2f1dcbc1a09d918ea16c48b17014a297", "score": "0.6807932", "text": "function getNonEditableParent(node) {\n\t\tvar state;\n\n\t\twhile (node) {\n\t\t\tstate = getContentEditable(node);\n\t\t\tif (state) {\n\t\t\t\treturn state === \"false\" ? node : null;\n\t\t\t}\n\n\t\t\tnode = node.parentNode;\n\t\t}\n\t}", "title": "" }, { "docid": "4748da8671f81c5c49846f45a0917d87", "score": "0.67912924", "text": "function getNonEditableParent(node) {\n\t\t\t\t\t\t\tvar state;\n\n\t\t\t\t\t\t\twhile (node) {\n\t\t\t\t\t\t\t\tstate = getContentEditable(node);\n\t\t\t\t\t\t\t\tif (state) {\n\t\t\t\t\t\t\t\t\treturn state === \"false\" ? node : null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tnode = node.parentNode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "076920e526313a29c3385d6e9cc46199", "score": "0.6782367", "text": "function TreeNode_getParent() {\n return this.parent;\n}", "title": "" }, { "docid": "3528d3e2272af615fd370dd32f30880a", "score": "0.67355514", "text": "get parentNode() {\n let parentNode = wrap(this._$startNode).parentNode;\n const parent = this._$parent;\n if (parent !== undefined &&\n parentNode.nodeType === 11 /* Node.DOCUMENT_FRAGMENT */) {\n // If the parentNode is a DocumentFragment, it may be because the DOM is\n // still in the cloned fragment during initial render; if so, get the real\n // parentNode the part will be committed into by asking the parent.\n parentNode = parent.parentNode;\n }\n return parentNode;\n }", "title": "" }, { "docid": "806ce858692d02a954ef8dbc75614d27", "score": "0.67165416", "text": "function findParentContainer(start) {\n\t\t\t\tvar container, parent, sibling, siblingName, root;\n\n\t\t\t\tcontainer = parent = start ? startContainer : endContainer;\n\t\t\t\tsiblingName = start ? 'previousSibling' : 'nextSibling';\n\t\t\t\troot = dom.getRoot();\n\n\t\t\t\tfunction isBogusBr(node) {\n\t\t\t\t\treturn node.nodeName == \"BR\" && node.getAttribute('data-mce-bogus') && !node.nextSibling;\n\t\t\t\t}\n\n\t\t\t\t// If it's a text node and the offset is inside the text\n\t\t\t\tif (container.nodeType == 3 && !isWhiteSpaceNode(container)) {\n\t\t\t\t\tif (start ? startOffset > 0 : endOffset < container.nodeValue.length) {\n\t\t\t\t\t\treturn container;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*eslint no-constant-condition:0 */\n\t\t\t\twhile (true) {\n\t\t\t\t\t// Stop expanding on block elements\n\t\t\t\t\tif (!format[0].block_expand && isBlock(parent)) {\n\t\t\t\t\t\treturn parent;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Walk left/right\n\t\t\t\t\tfor (sibling = parent[siblingName]; sibling; sibling = sibling[siblingName]) {\n\t\t\t\t\t\tif (!isBookmarkNode(sibling) && !isWhiteSpaceNode(sibling) && !isBogusBr(sibling)) {\n\t\t\t\t\t\t\treturn parent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check if we can move up are we at root level or body level\n\t\t\t\t\tif (parent == root || parent.parentNode == root) {\n\t\t\t\t\t\tcontainer = parent;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tparent = parent.parentNode;\n\t\t\t\t}\n\n\t\t\t\treturn container;\n\t\t\t}", "title": "" }, { "docid": "93ad02626b5b4b8db8c1c5cde18a7165", "score": "0.6713718", "text": "get parentNode() {\n let parentNode = wrap$1(this._$startNode).parentNode;\n const parent = this._$parent;\n if (parent !== undefined &&\n (parentNode === null || parentNode === void 0 ? void 0 : parentNode.nodeType) === 11 /* Node.DOCUMENT_FRAGMENT */) {\n // If the parentNode is a DocumentFragment, it may be because the DOM is\n // still in the cloned fragment during initial render; if so, get the real\n // parentNode the part will be committed into by asking the parent.\n parentNode = parent.parentNode;\n }\n return parentNode;\n }", "title": "" }, { "docid": "fa856219cb4bf1f9274bc57750a51a44", "score": "0.6695999", "text": "getParentNode(node) {\n for (const e of this.getEdges()) {\n let [src, dst] = e\n if (dst == node) return src\n }\n }", "title": "" }, { "docid": "4f3d54aba6b79bb72ca7bbf6f78e7d5a", "score": "0.6654428", "text": "getParentNode(node) {\n const currentLevel = this.getLevel(node);\n if (currentLevel < 1) {\n return null;\n }\n const startIndex = this.treeControl.dataNodes.indexOf(node) - 1;\n for (let i = startIndex; i >= 0; i--) {\n const currentNode = this.treeControl.dataNodes[i];\n if (this.getLevel(currentNode) < currentLevel) {\n return currentNode;\n }\n }\n return null;\n }", "title": "" }, { "docid": "4f3d54aba6b79bb72ca7bbf6f78e7d5a", "score": "0.6654428", "text": "getParentNode(node) {\n const currentLevel = this.getLevel(node);\n if (currentLevel < 1) {\n return null;\n }\n const startIndex = this.treeControl.dataNodes.indexOf(node) - 1;\n for (let i = startIndex; i >= 0; i--) {\n const currentNode = this.treeControl.dataNodes[i];\n if (this.getLevel(currentNode) < currentLevel) {\n return currentNode;\n }\n }\n return null;\n }", "title": "" }, { "docid": "74085f620acdf768232f43ede7bfbd89", "score": "0.6647663", "text": "function returnParent(e) {\n var parent = e.parentElement;\n return parent;\n}", "title": "" }, { "docid": "ace39183c1cb1e8796d4686287e68b91", "score": "0.66041136", "text": "getContainer(node) {\n if (this.editor.node[0].compareDocumentPosition(node) & Element.DOCUMENT_POSITION_CONTAINED_BY) {\n return $(node).closest('[data-block]')[0];\n }\n }", "title": "" }, { "docid": "78b705960b5bdc2ad5ed0d9028336d7b", "score": "0.65747964", "text": "function getParent(elem) {\n return elem.parent || null;\n}", "title": "" }, { "docid": "78b705960b5bdc2ad5ed0d9028336d7b", "score": "0.65747964", "text": "function getParent(elem) {\n return elem.parent || null;\n}", "title": "" }, { "docid": "78b705960b5bdc2ad5ed0d9028336d7b", "score": "0.65747964", "text": "function getParent(elem) {\n return elem.parent || null;\n}", "title": "" }, { "docid": "78b705960b5bdc2ad5ed0d9028336d7b", "score": "0.65747964", "text": "function getParent(elem) {\n return elem.parent || null;\n}", "title": "" }, { "docid": "78b705960b5bdc2ad5ed0d9028336d7b", "score": "0.65747964", "text": "function getParent(elem) {\n return elem.parent || null;\n}", "title": "" }, { "docid": "dc195aae726d0c9451c8818a9ad7dd3f", "score": "0.6549463", "text": "getParent() {\r\n return this._getNodeFromCompilerNodeIfExists(this.compilerNode.parent);\r\n }", "title": "" }, { "docid": "137f4d912fdf421cb3d78ed5618ec13f", "score": "0.6542835", "text": "function getContainerRenderParent(tViewNode, view) {\n var container = getLContainer(tViewNode, view);\n return container ? container[RENDER_PARENT] : null;\n}", "title": "" }, { "docid": "137f4d912fdf421cb3d78ed5618ec13f", "score": "0.6542835", "text": "function getContainerRenderParent(tViewNode, view) {\n var container = getLContainer(tViewNode, view);\n return container ? container[RENDER_PARENT] : null;\n}", "title": "" }, { "docid": "137f4d912fdf421cb3d78ed5618ec13f", "score": "0.6542835", "text": "function getContainerRenderParent(tViewNode, view) {\n var container = getLContainer(tViewNode, view);\n return container ? container[RENDER_PARENT] : null;\n}", "title": "" }, { "docid": "98c73d1dcf2bbbd9f606770f092e4a9c", "score": "0.65282714", "text": "function getRootParent(node) {\n\t\tvar parent = null;\n\n\t\tif (node) {\n\t\t\tdo {\n\t\t\t\tparent = node;\n\t\t\t} while (null != (node = node.parentNode));\n\t\t}\n\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "dbc87d047909bbc47a5ebc2ce79e5a0c", "score": "0.6521104", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n\n if (parentView) {\n return view.parentNodeDef.parent;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "c47a5b7828464200efef34ba91b5d624", "score": "0.6509042", "text": "get parentNode() {\n return this._$parent.parentNode;\n }", "title": "" }, { "docid": "dbb21737a6143d6e472ec96725dbf176", "score": "0.6487915", "text": "function parent() {\n return elements[0].parentNode;\n }", "title": "" }, { "docid": "d2fba6389d8a1730cc9b6553228d8e99", "score": "0.6487317", "text": "function getFirstParentNative(tNode) {\n var parent = tNode.parent;\n while (parent && parent.type === 5 /* IcuContainer */) {\n parent = parent.parent;\n }\n return parent;\n}", "title": "" }, { "docid": "d2fba6389d8a1730cc9b6553228d8e99", "score": "0.6487317", "text": "function getFirstParentNative(tNode) {\n var parent = tNode.parent;\n while (parent && parent.type === 5 /* IcuContainer */) {\n parent = parent.parent;\n }\n return parent;\n}", "title": "" }, { "docid": "d2fba6389d8a1730cc9b6553228d8e99", "score": "0.6487317", "text": "function getFirstParentNative(tNode) {\n var parent = tNode.parent;\n while (parent && parent.type === 5 /* IcuContainer */) {\n parent = parent.parent;\n }\n return parent;\n}", "title": "" }, { "docid": "e53391627b74083401dd225b8d493d70", "score": "0.64729387", "text": "function getContainer(node) {\n return node.closest('.irc_c[style*=\"visibility: visible;\"][style*=\"transform: translate3d(0px, 0px, 0px);\"], .irc_c[data-ved]');\n}", "title": "" }, { "docid": "666ebb04ea92424078a16c819d9de042", "score": "0.64616257", "text": "function getContainerRenderParent(tViewNode, view) {\n var container = getLContainer(tViewNode, view);\n return container ? nativeParentNode(view[RENDERER], container[NATIVE]) : null;\n}", "title": "" }, { "docid": "95b591cfdd281a99e42aa6436469556c", "score": "0.645359", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "95b591cfdd281a99e42aa6436469556c", "score": "0.645359", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "95b591cfdd281a99e42aa6436469556c", "score": "0.645359", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "95b591cfdd281a99e42aa6436469556c", "score": "0.645359", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "95b591cfdd281a99e42aa6436469556c", "score": "0.645359", "text": "function viewParentEl(view) {\n var parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "74db5d04014e9e308d0c19af3e8c6037", "score": "0.64524204", "text": "function parentAt(node, n) {\n if (n == 0) {\n return node;\n }else {\n return parentAt(node.parentNode, n - 1);\n }\n }", "title": "" }, { "docid": "360448529778437b44a565e14b683cbb", "score": "0.64472425", "text": "function findParent(inst){// TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t// traversal, but caching is difficult to do correctly without using a\n\t// mutation observer to listen for all DOM changes.\n\twhile(inst._hostParent){inst=inst._hostParent;}var rootNode=ReactDOMComponentTree.getNodeFromInstance(inst);var container=rootNode.parentNode;return ReactDOMComponentTree.getClosestInstanceFromNode(container);}// Used to store ancestor hierarchy in top level callback", "title": "" }, { "docid": "360448529778437b44a565e14b683cbb", "score": "0.64472425", "text": "function findParent(inst){// TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t// traversal, but caching is difficult to do correctly without using a\n\t// mutation observer to listen for all DOM changes.\n\twhile(inst._hostParent){inst=inst._hostParent;}var rootNode=ReactDOMComponentTree.getNodeFromInstance(inst);var container=rootNode.parentNode;return ReactDOMComponentTree.getClosestInstanceFromNode(container);}// Used to store ancestor hierarchy in top level callback", "title": "" }, { "docid": "360448529778437b44a565e14b683cbb", "score": "0.64472425", "text": "function findParent(inst){// TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t// traversal, but caching is difficult to do correctly without using a\n\t// mutation observer to listen for all DOM changes.\n\twhile(inst._hostParent){inst=inst._hostParent;}var rootNode=ReactDOMComponentTree.getNodeFromInstance(inst);var container=rootNode.parentNode;return ReactDOMComponentTree.getClosestInstanceFromNode(container);}// Used to store ancestor hierarchy in top level callback", "title": "" }, { "docid": "360448529778437b44a565e14b683cbb", "score": "0.64472425", "text": "function findParent(inst){// TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t// traversal, but caching is difficult to do correctly without using a\n\t// mutation observer to listen for all DOM changes.\n\twhile(inst._hostParent){inst=inst._hostParent;}var rootNode=ReactDOMComponentTree.getNodeFromInstance(inst);var container=rootNode.parentNode;return ReactDOMComponentTree.getClosestInstanceFromNode(container);}// Used to store ancestor hierarchy in top level callback", "title": "" }, { "docid": "6cfa7ca1d22afc8004be6f307731b851", "score": "0.64381146", "text": "get parentNode() {\n return this._$parent.parentNode;\n }", "title": "" }, { "docid": "7692d208e437f98d94d0e2cfb2e1f9da", "score": "0.6435345", "text": "function viewParentEl(view) {\n const parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "7692d208e437f98d94d0e2cfb2e1f9da", "score": "0.6435345", "text": "function viewParentEl(view) {\n const parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "7692d208e437f98d94d0e2cfb2e1f9da", "score": "0.6435345", "text": "function viewParentEl(view) {\n const parentView = view.parent;\n if (parentView) {\n return view.parentNodeDef.parent;\n }\n else {\n return null;\n }\n}", "title": "" }, { "docid": "e11818ebfd9218a504790e50399fb780", "score": "0.6391117", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n }", "title": "" }, { "docid": "ca6ae2a7553fb83ca7f2f447ffc195d2", "score": "0.6371514", "text": "function findParent(inst) {\n\t\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t\t // traversal, but caching is difficult to do correctly without using a\n\t\t // mutation observer to listen for all DOM changes.\n\t\t while (inst._hostParent) {\n\t\t inst = inst._hostParent;\n\t\t }\n\t\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t\t var container = rootNode.parentNode;\n\t\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t\t}", "title": "" }, { "docid": "ca6ae2a7553fb83ca7f2f447ffc195d2", "score": "0.6371514", "text": "function findParent(inst) {\n\t\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t\t // traversal, but caching is difficult to do correctly without using a\n\t\t // mutation observer to listen for all DOM changes.\n\t\t while (inst._hostParent) {\n\t\t inst = inst._hostParent;\n\t\t }\n\t\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t\t var container = rootNode.parentNode;\n\t\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t\t}", "title": "" }, { "docid": "045b45faa52e352bb1f3c03033c009d2", "score": "0.637083", "text": "function getClosestComponentAncestor(node) {\n while (node.tNode.type === 2 /* View */) {\n node = node.view[HOST_NODE];\n }\n return node;\n}", "title": "" }, { "docid": "0ede642845ec2b617d778c750ca5fe77", "score": "0.63572574", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._nativeParent) {\n inst = inst._nativeParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "0ede642845ec2b617d778c750ca5fe77", "score": "0.63572574", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._nativeParent) {\n inst = inst._nativeParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "0ede642845ec2b617d778c750ca5fe77", "score": "0.63572574", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._nativeParent) {\n inst = inst._nativeParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "de11c32655e3a9f1513e3558067ce986", "score": "0.63570005", "text": "function findParent(inst) {\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t // traversal, but caching is difficult to do correctly without using a\n\t // mutation observer to listen for all DOM changes.\n\t while (inst._nativeParent) {\n\t inst = inst._nativeParent;\n\t }\n\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t var container = rootNode.parentNode;\n\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t}", "title": "" }, { "docid": "de11c32655e3a9f1513e3558067ce986", "score": "0.63570005", "text": "function findParent(inst) {\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t // traversal, but caching is difficult to do correctly without using a\n\t // mutation observer to listen for all DOM changes.\n\t while (inst._nativeParent) {\n\t inst = inst._nativeParent;\n\t }\n\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t var container = rootNode.parentNode;\n\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t}", "title": "" }, { "docid": "de11c32655e3a9f1513e3558067ce986", "score": "0.63570005", "text": "function findParent(inst) {\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t // traversal, but caching is difficult to do correctly without using a\n\t // mutation observer to listen for all DOM changes.\n\t while (inst._nativeParent) {\n\t inst = inst._nativeParent;\n\t }\n\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t var container = rootNode.parentNode;\n\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t}", "title": "" }, { "docid": "de11c32655e3a9f1513e3558067ce986", "score": "0.63570005", "text": "function findParent(inst) {\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t // traversal, but caching is difficult to do correctly without using a\n\t // mutation observer to listen for all DOM changes.\n\t while (inst._nativeParent) {\n\t inst = inst._nativeParent;\n\t }\n\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t var container = rootNode.parentNode;\n\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t}", "title": "" }, { "docid": "f0e6b6728d753247693f60a9f2bc0379", "score": "0.63520586", "text": "findParent(node) {\n if (\n // there's no root or\n !this.root || \n // the node we're looking at is the root or\n node.val === this.root.val ||\n // the input isn't a node at all\n !(node instanceof Node)\n ) return null;\n\n let parent = null,\n current = this.root;\n\n while (true) {\n if (parent && current.val === node.val) {\n return parent;\n }\n // the left side\n if (node.val < current.val) {\n // if there is a node\n if (!current.left) return null;\n else {\n parent = current;\n current = current.left;\n }\n }\n\n // the right side\n else if (node.val > current.val) {\n if (!current.right) return null;\n else {\n parent = current;\n current = current.right;\n }\n }\n }\n }", "title": "" }, { "docid": "4151de93beb66ae3c460f749de0782b5", "score": "0.6349735", "text": "function getParentNode( node ) {\n if( node.id !== st.root ) { // if the node isn't the root node\n // an array of the node's parent nodes\n var parents = node.getParents();\n // the number of parent nodes the node has\n var numParents = parents.length;\n // returns the node's parent node, which is the last one in the array\n return parents[numParents-1];\n }\n}", "title": "" }, { "docid": "18aee7ee971faaac7667fb58c5fd440b", "score": "0.63490796", "text": "function findParent(inst) {\n\t\t\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t\t\t // traversal, but caching is difficult to do correctly without using a\n\t\t\t // mutation observer to listen for all DOM changes.\n\t\t\t while (inst._hostParent) {\n\t\t\t inst = inst._hostParent;\n\t\t\t }\n\t\t\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n\t\t\t var container = rootNode.parentNode;\n\t\t\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n\t\t\t}", "title": "" }, { "docid": "31d9127d64c4867633b4d9ee74f77c7a", "score": "0.6345231", "text": "function getParent(e) {\r\n\r\n\twhile(e = e.parentNode) {\r\n\r\n\t\tif(e.nodeType === 1) break;\r\n\r\n\t}\r\n\r\n\treturn e;\r\n\r\n}", "title": "" }, { "docid": "3ce6834dcc630159373d1f35e440379e", "score": "0.6331231", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n }", "title": "" }, { "docid": "35e10437d5ed0400d1f01cd64b3362bd", "score": "0.6325066", "text": "function findParentContentEditable(node) {\n\t\t\t\tvar parent = node;\n\n\t\t\t\twhile (parent) {\n\t\t\t\t\tif (parent.nodeType === 1 && getContentEditable(parent)) {\n\t\t\t\t\t\treturn getContentEditable(parent) === \"false\" ? parent : node;\n\t\t\t\t\t}\n\n\t\t\t\t\tparent = parent.parentNode;\n\t\t\t\t}\n\n\t\t\t\treturn node;\n\t\t\t}", "title": "" }, { "docid": "6be2899d95ed8eb894f1b50692f285bb", "score": "0.632348", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "6cd441fa103b1d4e42d7bf08399ff0be", "score": "0.6304614", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree$16.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree$16.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "309898c43123ec0dcbe9af526d8bd09a", "score": "0.6298653", "text": "function findParentContentEditable(node) {\n var parent = node;\n\n while (parent) {\n if (parent.nodeType === 1 && getContentEditable(parent)) {\n return getContentEditable(parent) === \"false\" ? parent : node;\n }\n\n parent = parent.parentNode;\n }\n\n return node;\n }", "title": "" }, { "docid": "f1417bea5e26ac6f58cfa18d42562c12", "score": "0.62980163", "text": "getParentEditor(editor) {\n let node = editor.getElement();\n while (node.parentNode !== null && node.parentNode !== document.body) {\n node = node.parentNode;\n if (node.dataset.point) {\n return this.service(\"instances\").editorFromElement(node);\n }\n }\n }", "title": "" }, { "docid": "f2486608a7d19d426b204e3db38cd955", "score": "0.62974256", "text": "get parent () { return jSymbols(this.elem).parent }", "title": "" }, { "docid": "1352c39a4267fe63427b05f67620d065", "score": "0.6293024", "text": "function findAncestorOffsetKey(node) {\n for (var searchNode = node; searchNode && searchNode !== document.documentElement; ) {\n var key = getSelectionOffsetKeyForNode(searchNode);\n if (null != key) return key;\n searchNode = searchNode.parentNode;\n }\n return null;\n }", "title": "" }, { "docid": "85582d727061cf17decd766e6f8bea1a", "score": "0.6292909", "text": "function editorGetLineNode() {\n var sel = document.getSelection();\n var node = sel.focusNode;\n var parent = node.parentNode;\n while (parent.id!=='editor') {\n node = parent;\n parent = node.parentNode;\n }\n return node;\n}", "title": "" }, { "docid": "ec5cda3ace886ddced7dc48105257e9e", "score": "0.6280491", "text": "function findParent(inst) {\r\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\r\n\t // traversal, but caching is difficult to do correctly without using a\r\n\t // mutation observer to listen for all DOM changes.\r\n\t while (inst._hostParent) {\r\n\t inst = inst._hostParent;\r\n\t }\r\n\t var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\r\n\t var container = rootNode.parentNode;\r\n\t return ReactDOMComponentTree.getClosestInstanceFromNode(container);\r\n\t}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" }, { "docid": "02a9d1806301d8c65bd350cc9ad0a31c", "score": "0.62734145", "text": "function findParent(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst._hostParent) {\n inst = inst._hostParent;\n }\n var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n var container = rootNode.parentNode;\n return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}", "title": "" } ]
ffcfab9388a4b08cec80450bf55d1ab0
Hook methods Initialization method
[ { "docid": "f2ee15e8080c0a2a307a404353701938", "score": "0.0", "text": "function onInit() {\n var annotations = lodash.get(ctrl.version, 'metadata.annotations', []);\n\n ctrl.annotations = lodash.map(annotations, function (value, key) {\n return {\n name: key,\n value: value,\n ui: {\n editModeActive: false,\n isFormValid: false,\n name: 'annotation'\n }\n };\n });\n\n $timeout(function () {\n if (ctrl.annotationsForm.$invalid) {\n ctrl.annotationsForm.$setSubmitted();\n $rootScope.$broadcast('change-state-deploy-button', {component: 'annotation', isDisabled: true});\n }\n });\n }", "title": "" } ]
[ { "docid": "bde26a4faa0f090d70a83d8977dcfd08", "score": "0.7519957", "text": "init(){\n\t\tthis.initIfNeed();\n\t}", "title": "" }, { "docid": "575c279fe0e219086b4866b092a74d64", "score": "0.7508824", "text": "init () {\n this._super(...arguments)\n this.set('receivedHook', this.get('hook'))\n if (this.get('isHookEmbedded')) {\n this.set('hook', '')\n }\n }", "title": "" }, { "docid": "24f36a625f49bc30cca2a4a2e82043d7", "score": "0.7443154", "text": "function _init () { }", "title": "" }, { "docid": "cef5a4ae3d94df78aa3f6a15ec621a3a", "score": "0.7346249", "text": "init() {\r\n\r\n }", "title": "" }, { "docid": "b016de4490d90d8ce92ac37fc0ca2ac8", "score": "0.73434204", "text": "_init() {\n\n }", "title": "" }, { "docid": "32ab43cfc19e16bac7b89067feeff45e", "score": "0.7299903", "text": "function init() {\n\n\n\t\t}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7278741", "text": "function init() {}", "title": "" }, { "docid": "2d0b0d06a77d38e465f532b1cf2e1118", "score": "0.72684926", "text": "__initialize() {}", "title": "" }, { "docid": "4f0353230bbfb7ef873664c04730863c", "score": "0.7253051", "text": "function init() {\n \n }", "title": "" }, { "docid": "31b50dfc8e8374d9bdf8de0a020401e7", "score": "0.7226915", "text": "function init() {\n\n }", "title": "" }, { "docid": "bc18d1691f23c70a1c619a0b7f33660d", "score": "0.7222889", "text": "Initialize() {}", "title": "" }, { "docid": "bc18d1691f23c70a1c619a0b7f33660d", "score": "0.7222889", "text": "Initialize() {}", "title": "" }, { "docid": "ce596583ba0a20482b08d4c190eb47ef", "score": "0.7211749", "text": "init() { }", "title": "" }, { "docid": "ce596583ba0a20482b08d4c190eb47ef", "score": "0.7211749", "text": "init() { }", "title": "" }, { "docid": "3362a09988967e331689fe873f264ae2", "score": "0.71688867", "text": "_initHooks() {\n for (let hook in this.opts.hooks) {\n this.bind(hook, this.opts.hooks[hook]);\n }\n }", "title": "" }, { "docid": "60148fca6ef5c2f8aea4fbea0d244174", "score": "0.7156135", "text": "function init()\n {\n }", "title": "" }, { "docid": "5d17173e010cdeb70f5b74fbcc5643de", "score": "0.71540076", "text": "_initialize() {}", "title": "" }, { "docid": "1ba0a4bab82a3b357b484068d4b5a8b3", "score": "0.71365184", "text": "_init() {\n this._addBreakpoints();\n this._generateRules();\n this._reflow();\n }", "title": "" }, { "docid": "7a8fbcc10521b66fc0598aea3574989c", "score": "0.7122116", "text": "_init(){\n\n }", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "2948170530e7f7889e3083545cb3392f", "score": "0.71175694", "text": "init() {}", "title": "" }, { "docid": "c26d9a308aa11ce2f0210f331e0a0090", "score": "0.710883", "text": "function init() { }", "title": "" }, { "docid": "6b56cdfa86a0402ddc140b5bec75998a", "score": "0.71051365", "text": "init() {\n moduleUtils$i.patchModule(\n 'fastify/lib/hooks.js',\n 'hookRunner',\n fastifyWrapper\n );\n }", "title": "" }, { "docid": "c5d42b106b4d3e8833f91d1c8497f85d", "score": "0.70948124", "text": "initialize(){\n//Not using this class for now\n\t}", "title": "" }, { "docid": "087c7dee1610b4978071f025283fbea1", "score": "0.70734286", "text": "function _onInit() { /* empty block */ }", "title": "" }, { "docid": "087c7dee1610b4978071f025283fbea1", "score": "0.70734286", "text": "function _onInit() { /* empty block */ }", "title": "" }, { "docid": "050d7c5b621a84441675939dd0c3d707", "score": "0.7071054", "text": "init() {\n }", "title": "" }, { "docid": "0d9f6f0208fc35b49710a9bdb27c5830", "score": "0.707008", "text": "init() {\n\n }", "title": "" }, { "docid": "fa1554020e1f9c918264cc9b69ff7f10", "score": "0.7032592", "text": "init() {\n\n }", "title": "" }, { "docid": "fa1554020e1f9c918264cc9b69ff7f10", "score": "0.7032592", "text": "init() {\n\n }", "title": "" }, { "docid": "dfbdc7a3daa3b9223c53834a26dedc70", "score": "0.7010482", "text": "initialize() {}", "title": "" }, { "docid": "dfbdc7a3daa3b9223c53834a26dedc70", "score": "0.7010482", "text": "initialize() {}", "title": "" }, { "docid": "dfbdc7a3daa3b9223c53834a26dedc70", "score": "0.7010482", "text": "initialize() {}", "title": "" }, { "docid": "dfbdc7a3daa3b9223c53834a26dedc70", "score": "0.7010482", "text": "initialize() {}", "title": "" }, { "docid": "b051776c4a331e59a98728903a7dc95a", "score": "0.70065224", "text": "initialize(){}", "title": "" }, { "docid": "09b99226ab5346267f776db9d36532ec", "score": "0.69894", "text": "init() {\n // bind events\n this.bindEvents();\n }", "title": "" }, { "docid": "09b99226ab5346267f776db9d36532ec", "score": "0.69894", "text": "init() {\n // bind events\n this.bindEvents();\n }", "title": "" }, { "docid": "37181385e9d3da0611ef8e41c7ab72e4", "score": "0.69808453", "text": "init () {\n }", "title": "" }, { "docid": "2aafa5b265b1433f79e41b37216fa606", "score": "0.6978849", "text": "constructor() {\n\t\tthis.Init();\n\t}", "title": "" }, { "docid": "1283eba0c58262263ab897b24f0b2385", "score": "0.69768703", "text": "function init() {\n\n }", "title": "" }, { "docid": "7c07cdc5a5a806e56086a3c386a740ab", "score": "0.6967804", "text": "initialise() { }", "title": "" }, { "docid": "de58938241555d2fc66b4ec8e0928f02", "score": "0.69663703", "text": "init() {\n }", "title": "" }, { "docid": "de58938241555d2fc66b4ec8e0928f02", "score": "0.69663703", "text": "init() {\n }", "title": "" }, { "docid": "5328b1f3bc4725d5f2b4b43eac1ba5e4", "score": "0.69659567", "text": "onPreInitiate(){}", "title": "" }, { "docid": "35f3da8ed2b09ec93f916b3cfad20aea", "score": "0.6960416", "text": "function init() {\n initEventHandlers();\n loadBatch();\n }", "title": "" }, { "docid": "93b47172f44971d4d1f9936377ab6aea", "score": "0.6958845", "text": "function handleInit() {\n\t\t\n\t}", "title": "" }, { "docid": "6c826f823d2a9c0580c1d72db02171c2", "score": "0.6952333", "text": "function _init() {\n\t\t\t_activate();\n\t\t}", "title": "" }, { "docid": "a0bb19e5bb374af2dfdc52022a90b1f1", "score": "0.69509065", "text": "init() {\n\t\tdebug = this.debug;\n\t\tlog = this.log;\n\t}", "title": "" }, { "docid": "40c2a32e6d7eb7dc6804b3be4547c23d", "score": "0.69355154", "text": "function init() {\n\t\n}", "title": "" }, { "docid": "40c2a32e6d7eb7dc6804b3be4547c23d", "score": "0.69355154", "text": "function init() {\n\t\n}", "title": "" }, { "docid": "28bbfd34f6d32ebb10995a4a451b87ec", "score": "0.69308054", "text": "init() {\n // various custom utilities\n this.utilities();\n // initiate vendor plugins\n this.vendors();\n // setup form validation\n this.validation();\n // setup sidebar slider\n this.sidebar();\n // setup datatables\n this.datatables();\n // init some default ajax settings\n this.ajaxSettings();\n }", "title": "" }, { "docid": "60485d8260f929848a6739b99793201a", "score": "0.69068205", "text": "constructor()\n {\n super();\n this.init();\n\n }", "title": "" }, { "docid": "6fdd6e741937bc8f18365feb57a5d5cf", "score": "0.6892664", "text": "function init() {\n }", "title": "" }, { "docid": "8deaa1518eab1bfe322091ee4e82ab6c", "score": "0.6885919", "text": "function init() {\n\n }", "title": "" }, { "docid": "20426ecbdb22e18990bc2fa0571f0a8e", "score": "0.6876665", "text": "init() {\r\n\r\n\r\n }", "title": "" }, { "docid": "c2f4a30801582248c3ff4d839672abb1", "score": "0.6872329", "text": "_init()\n {\n this._attributes();\n this._handleMenu();\n this.menu.init();\n this._handleEvents();\n }", "title": "" }, { "docid": "f8b20a1e3ccd3b2ebb14bafd8ce92c09", "score": "0.6865456", "text": "function init()\n {\n \n }", "title": "" }, { "docid": "0c604ae40422feea3acd5f3ffe2d19f9", "score": "0.68590283", "text": "function init() {\n\n\n }", "title": "" }, { "docid": "7ce5389d4e5d166bde788ad7ad4c882f", "score": "0.6854129", "text": "initialise () {\n\n }", "title": "" }, { "docid": "571fea20efadbf48175fc5efee96a62e", "score": "0.68302804", "text": "constructor() {\n this.init();\n }", "title": "" }, { "docid": "571fea20efadbf48175fc5efee96a62e", "score": "0.68302804", "text": "constructor() {\n this.init();\n }", "title": "" }, { "docid": "3664ba3504ef155297b04945cba468f1", "score": "0.6816939", "text": "constructor() {\n // declare our class properties\n // call init\n this.init();\n }", "title": "" }, { "docid": "248142a41e9ca444388dbb686a711134", "score": "0.6812966", "text": "constructor () {\n this.setup();\n }", "title": "" }, { "docid": "6aebea92f3cc695dd356724f479e0d40", "score": "0.6797915", "text": "function init() {\n //roep hier waar mogelijk je antwoorden aan.\n}", "title": "" }, { "docid": "dfc6f295c9dd468fee7a123badbb6c9b", "score": "0.67965555", "text": "initialize()\n {\n }", "title": "" }, { "docid": "8e0d47c54af8e39572800bc9124ead10", "score": "0.67927724", "text": "initialize() { }", "title": "" }, { "docid": "beba0cc606dddcced070d8958e2c4ac6", "score": "0.6792352", "text": "function initalize() {\n\t\t\n\t}", "title": "" }, { "docid": "43167db89f76293894112facad784a0b", "score": "0.67876416", "text": "function SampleClass_setup () { }", "title": "" }, { "docid": "ed300f647e94c170913e45016dd76c57", "score": "0.6759012", "text": "function init() {\n \n }", "title": "" }, { "docid": "04fda2024c825c9b6639ff584d6956ed", "score": "0.67519635", "text": "function _init() {\n _changeState();\n }", "title": "" }, { "docid": "8a493fb1cda12f91541b94eda06ac47c", "score": "0.6747544", "text": "function initialize() {\n\n }", "title": "" }, { "docid": "391a0e74106f023a918bf20204d79b4d", "score": "0.67294925", "text": "constructor() {\n // declare our class properties\n\n // call init\n this.init();\n }", "title": "" }, { "docid": "699d50780416c2d1ea278fe004cd529f", "score": "0.67234135", "text": "_beforeInitialize(options) {\n\n }", "title": "" }, { "docid": "699d50780416c2d1ea278fe004cd529f", "score": "0.67234135", "text": "_beforeInitialize(options) {\n\n }", "title": "" }, { "docid": "0a7aadc5a090342bef610cc532224f71", "score": "0.67162246", "text": "initialize() {\r\n\t\tthis.populateColorSchemes();\r\n\t\tthis.populateFontStyles();\r\n\t}", "title": "" }, { "docid": "6134a2395e3d0847155ddc1ffe419275", "score": "0.67047274", "text": "function init() {\n}", "title": "" }, { "docid": "9f82e5cb04bc8519089dd9196f165fed", "score": "0.66940945", "text": "function init() {\r\n\r\n}", "title": "" }, { "docid": "e3f7c4903ad4552448b9770c03d97bf9", "score": "0.6667469", "text": "function postInit(options, context) {}", "title": "" }, { "docid": "e3f7c4903ad4552448b9770c03d97bf9", "score": "0.6667469", "text": "function postInit(options, context) {}", "title": "" }, { "docid": "f7940f066c4966bb9de58a8273612c12", "score": "0.66559666", "text": "function init() {\n\n}", "title": "" }, { "docid": "f7940f066c4966bb9de58a8273612c12", "score": "0.66559666", "text": "function init() {\n\n}", "title": "" }, { "docid": "f7940f066c4966bb9de58a8273612c12", "score": "0.66559666", "text": "function init() {\n\n}", "title": "" }, { "docid": "f7940f066c4966bb9de58a8273612c12", "score": "0.66559666", "text": "function init() {\n\n}", "title": "" }, { "docid": "f7940f066c4966bb9de58a8273612c12", "score": "0.66559666", "text": "function init() {\n\n}", "title": "" }, { "docid": "7bb6a805035b581c343be95de63a1fd2", "score": "0.6652911", "text": "initialize() {\n // Pseudo-constructor\n }", "title": "" }, { "docid": "c13744ab91b28a2b80e7abcecdb66924", "score": "0.6648157", "text": "function onInit() {\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.66446376", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.66446376", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" }, { "docid": "7c18c497d91136e2cf12eabd880b604c", "score": "0.66446376", "text": "function init(){\n buildComponent();\n attachHandlers();\n }", "title": "" } ]
0b3a47630c157a008cc42f9549b1a4de
! vuerouter v3.0.2 (c) 2018 Evan You
[ { "docid": "a319c967bf829129201e62e31386a70d", "score": "0.0", "text": "function assert (condition, message) {\n if (!condition) {\n throw new Error((\"[vue-router] \" + message))\n }\n}", "title": "" } ]
[ { "docid": "186e51b7322c9eb5e2992bb1928b160b", "score": "0.5979056", "text": "function Vr(){}", "title": "" }, { "docid": "4d98afd50073b70a16aceb9f18d1ee9f", "score": "0.5857541", "text": "function Vaildator() {\r\n}", "title": "" }, { "docid": "9657d38c375e72c5202ae69077830597", "score": "0.58407336", "text": "function ul(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"CorridorGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "8b71e29f13b51bdf56fb882193e8deb4", "score": "0.5835554", "text": "solved () {\n\n\t}", "title": "" }, { "docid": "2fc89a99e9d790b96effff091d8f85ec", "score": "0.5827068", "text": "function Ou(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PlaneGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "381166fc3e60287bfbc5abc6a89bbb7d", "score": "0.5709547", "text": "function qh(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"WallGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "da6e52475433f4d50e3467ec9e0fb5e1", "score": "0.56719285", "text": "function Xk(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "159c44ac4303cfe9696f3b4d4baab2f1", "score": "0.5640682", "text": "function Dk(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"VcFlood.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "22a993687a3a23f576da67a70721968f", "score": "0.5565272", "text": "upgrade() { }", "title": "" }, { "docid": "26ce1217a47581b7cf5f50e4bad72cf4", "score": "0.5559734", "text": "function VoluptatemComponent() {\n }", "title": "" }, { "docid": "a2a9d147b33a39682f6171799b0a01e8", "score": "0.5519459", "text": "function tu(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"LabelGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "767e889e6359e422e6efbbcbb503321e", "score": "0.54679227", "text": "function bu(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PathGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "8285fee835c9316329d02716c2096f73", "score": "0.54567426", "text": "function Kc(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"BoxGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "67724b07c0c1b0bcdc8bd28322cb2d4a", "score": "0.5446134", "text": "function SigV4Utils() {\n}", "title": "" }, { "docid": "1523967f030028a73337e912c636e8c3", "score": "0.5438738", "text": "function Df(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"Billboard.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "285f55b0f8d66258660a46a53806d6fd", "score": "0.54300797", "text": "function hu(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"ModelGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "104e5d306f3fa10d1084a392bee1c490", "score": "0.5414091", "text": "function Gc(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"BillboardGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "b36870915304629d2c44ca9b0c395e24", "score": "0.5406554", "text": "static getVersion() { return 1; }", "title": "" }, { "docid": "e1fd6370f9dceb24ecc3cd7ebbb8a8e8", "score": "0.5402368", "text": "function SigV4Utils() { }", "title": "" }, { "docid": "71eafa8823beb06afe65f44e6e0963a4", "score": "0.5402075", "text": "function rs(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"SuperMapImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "6d35a5a0bdad27de75784816fa2da441", "score": "0.5401337", "text": "function Va(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"WebMapServiceImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "7b213b5b1fc5320dcaa43269aac1dfef", "score": "0.5384999", "text": "function kD(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "e0707a69f38be6a83b28ea93e393011a", "score": "0.53834677", "text": "function ta(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"OpenStreetMapImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "3a3a6270224efaa5f4e38f94d6d209b8", "score": "0.53721213", "text": "joue() {\n }", "title": "" }, { "docid": "5952aa0df225516cb25436e4d890981f", "score": "0.53687555", "text": "function fF(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "78dc4d7acfbc7b81b7ca903afba98639", "score": "0.5358521", "text": "constructor() {\n \n\n \n \n\n \n\n \n }", "title": "" }, { "docid": "f589869fa07fd3ee8a01d9642a8cfb13", "score": "0.5352348", "text": "function RambleUtil() {\n\n}", "title": "" }, { "docid": "c7ab78b6272854f84d01d055d63b7bf9", "score": "0.53473294", "text": "function zM(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "dec4e837e2e0eca77c9444b416ec7b17", "score": "0.53421485", "text": "function xl(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"CylinderGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "fba907515fe55e30446477a1b0c5a55c", "score": "0.53408295", "text": "function zu(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PointGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "bf729e83e5d985cee82bed443edd5536", "score": "0.5328085", "text": "function jr(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"IonImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "616b609a9eaf11665d6fb29fd4e4f286", "score": "0.53272974", "text": "static get tag(){return\"haxor-slevin\"}", "title": "" }, { "docid": "616b609a9eaf11665d6fb29fd4e4f286", "score": "0.53272974", "text": "static get tag(){return\"haxor-slevin\"}", "title": "" }, { "docid": "37b1bbcdae83b7337f0144556276791d", "score": "0.5323005", "text": "function tr(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"ArcGisMapServerImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "0e5b4de3ea92f612db4916b61a31b28b", "score": "0.53022003", "text": "function ED(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "703e63d0031ebd1ba7bb3c186245e8be", "score": "0.52996385", "text": "function Vr(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"MapboxImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "c0a037030d143b0c8d29a1cc2c600046", "score": "0.5289837", "text": "function Burung () { }", "title": "" }, { "docid": "fe9e08ac0f286df5d1bf29f37380f524", "score": "0.52889365", "text": "function Co(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"TiandituImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "650dfb83cfd6a264414ab037aea65a2e", "score": "0.52778065", "text": "drive() {\n\t\treturn 'vroom';\n\t}", "title": "" }, { "docid": "443e99c996620f321fbcb3cf1d3b622b", "score": "0.52686757", "text": "function ja(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"UrlTemplateImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "132ca5a37e5fe0d2a704415193882ea3", "score": "0.5263119", "text": "function rL(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "832f2b552045c8b3d2162b8845756f73", "score": "0.5254948", "text": "function eS(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "7bbafac65a47274f3e0acde1f96d2349", "score": "0.52521193", "text": "function datav (Vue) {\n Vue.use(fullScreenContainer);\n Vue.use(loading); // border box\n\n Vue.use(borderBox1);\n Vue.use(borderBox2);\n Vue.use(borderBox3);\n Vue.use(borderBox4);\n Vue.use(borderBox5);\n Vue.use(borderBox6);\n Vue.use(borderBox7);\n Vue.use(borderBox8);\n Vue.use(borderBox9);\n Vue.use(borderBox10);\n Vue.use(borderBox11);\n Vue.use(borderBox12);\n Vue.use(borderBox13); // decoration\n\n Vue.use(decoration1);\n Vue.use(decoration2);\n Vue.use(decoration3);\n Vue.use(decoration4);\n Vue.use(decoration5);\n Vue.use(decoration6);\n Vue.use(decoration7);\n Vue.use(decoration8);\n Vue.use(decoration9);\n Vue.use(decoration10);\n Vue.use(decoration11);\n Vue.use(decoration12); // charts\n\n Vue.use(charts);\n Vue.use(activeRingChart);\n Vue.use(capsuleChart);\n Vue.use(waterLevelPond);\n Vue.use(percentPond);\n Vue.use(flylineChart);\n Vue.use(flylineChartEnhanced);\n Vue.use(conicalColumnChart);\n Vue.use(digitalFlop);\n Vue.use(scrollBoard);\n Vue.use(scrollRankingBoard);\n }", "title": "" }, { "docid": "9a612bc5d5918ab9c097612f91691f1a", "score": "0.5242022", "text": "function V3() {\n}", "title": "" }, { "docid": "d53a469cfea4f9afa011057361167c37", "score": "0.5232536", "text": "function yh(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PolylineVolumeGraphics.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "743854954ffb6e915ae007f92b7b4018", "score": "0.5231535", "text": "function la(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"SingleTileImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "1d74a8725245c99b8c160d4e8c4213c8", "score": "0.5231116", "text": "function V4() {\n}", "title": "" }, { "docid": "f295122e035d7f4847be7b8ef0889863", "score": "0.52280116", "text": "onUpdated() {}", "title": "" }, { "docid": "773431f9309f7b56405f204c5b6a7755", "score": "0.5224753", "text": "function qD(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"geom.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "1e5824841b381432b5533d92044ef728", "score": "0.5220509", "text": "function iB(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"layer.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "76e0a3ce7f85fd040809b7be44a5b905", "score": "0.5208404", "text": "function GB(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"layer.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "title": "" }, { "docid": "b6194f845b1414c698867597b5d2bc4b", "score": "0.52082974", "text": "function df(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"GroundPrimitive.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "f1048310aaffea513e829a776e6c182a", "score": "0.5206243", "text": "function zb(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"VcMeasureDistance.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "d621eaa69dac3fb2ecbe3113290db6e9", "score": "0.5198363", "text": "function jy(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"WallGeometry.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "287787dd3156fe92ac4622080ba46eed", "score": "0.5189904", "text": "initialize(){ /** todo */ }", "title": "" }, { "docid": "3cad4f5db7236343023f83fbfcc337e2", "score": "0.518522", "text": "function cd(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"BillboardCollection.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "e0a511824365166bdf82c61fc6cb070d", "score": "0.51828086", "text": "function Kh(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PrimitiveCollection.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "a5c485379ee917157bf91dbeb32b198c", "score": "0.51465005", "text": "onready() {}", "title": "" }, { "docid": "45590384dda9a75c4dd642ef9040afb8", "score": "0.5144314", "text": "function EL(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"VcWindMap.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "95006aded6593f5513fe253e3c7a7e1a", "score": "0.5134456", "text": "function tb(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"PostProcessStageCollection.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" }, { "docid": "b3562788825610190e13d4e95166c908", "score": "0.51344067", "text": "function _0x40df2e(_0x503d61,_0x1e0723){0x0;}", "title": "" }, { "docid": "16c813da591bcbfe4445bc9dc95cd609", "score": "0.5131837", "text": "function n(t,e,i){if(s(t,e))return void(t[e]=i);if(t._isVue)return void n(t._data,e,i);var r=t.__ob__;if(!r)return void(t[e]=i);if(r.convert(e,i),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;){var a=r.vms[o];a._proxy(e),a._digest()}return i}", "title": "" }, { "docid": "754983bd7f84efab146450a7666a9c6e", "score": "0.5129451", "text": "function loadbang(){\n\t// post(\"th.gl.videogrid initialized | www.timohoogland.com\", \"\\n\");\n}//loadbang()", "title": "" }, { "docid": "3c6aeb90ff69031a0f8984d9f5e5d447", "score": "0.51275456", "text": "function zele() {//koda napisan vuv va6a vunkcia puk se izpulnqva 4ak kato q izvikame otnqkude\n console.log(\"zle.si\"); //printva v console-a. natisnete \tF12 da q vidite\n}", "title": "" }, { "docid": "3552c7cade44f2c2823715c44501068e", "score": "0.5127396", "text": "function lr(t,e,n,i,r,a,o,s){var c=(\"function\"===typeof n?n.options:n)||{};return c.__file=\"BingMapsImageryProvider.vue\",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),c._scopeId=i,c}", "title": "" } ]
b89e877db9af0c8fb7d3a0e53605418b
Read a blob from the database, encoding as necessary and translating from base64 if the IDB doesn't support native Blobs
[ { "docid": "de93cc4c4e4432cf9582a85b220749a6", "score": "0.6690046", "text": "function readBlobData(body, type, asBlob, callback) {\n\t if (asBlob) {\n\t if (!body) {\n\t callback(createBlob([''], {type: type}));\n\t } else if (typeof body !== 'string') { // we have blob support\n\t callback(body);\n\t } else { // no blob support\n\t callback(b64ToBluffer(body, type));\n\t }\n\t } else { // as base64 string\n\t if (!body) {\n\t callback('');\n\t } else if (typeof body !== 'string') { // we have blob support\n\t readAsBinaryString(body, function (binary) {\n\t callback(thisBtoa(binary));\n\t });\n\t } else { // no blob support\n\t callback(body);\n\t }\n\t }\n\t}", "title": "" } ]
[ { "docid": "5ce782b146b1a489a9d5de0a09bb289d", "score": "0.68193305", "text": "function blobToBase64(blob, callback) {\n var reader = new FileReader();\n reader.onload = function() {\n var dataUrl = reader.result;\n var base64 = dataUrl.split(',')[1];\n callback(base64);\n };\n reader.readAsDataURL(blob);\n}", "title": "" }, { "docid": "f227cb89d58546f74e8f6f4fc1c35f04", "score": "0.68141973", "text": "function readAsBinaryString(blob, callback) {\n var reader = new FileReader();\n var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n reader.onloadend = function (e) {\n var result = e.target.result || '';\n if (hasBinaryString) {\n return callback(result);\n }\n callback(arrayBufferToBinaryString(result));\n };\n if (hasBinaryString) {\n reader.readAsBinaryString(blob);\n } else {\n reader.readAsArrayBuffer(blob);\n }\n}", "title": "" }, { "docid": "f227cb89d58546f74e8f6f4fc1c35f04", "score": "0.68141973", "text": "function readAsBinaryString(blob, callback) {\n var reader = new FileReader();\n var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n reader.onloadend = function (e) {\n var result = e.target.result || '';\n if (hasBinaryString) {\n return callback(result);\n }\n callback(arrayBufferToBinaryString(result));\n };\n if (hasBinaryString) {\n reader.readAsBinaryString(blob);\n } else {\n reader.readAsArrayBuffer(blob);\n }\n}", "title": "" }, { "docid": "2c5d0a4efbcdf471a7d21d85541af3fb", "score": "0.6749735", "text": "blobToBase64(blob, cb) {\n var reader = new FileReader();\n reader.onload = function() {\n var dataUrl = reader.result;\n var base64 = dataUrl.split(',')[1];\n cb(base64);\n };\n reader.readAsDataURL(blob);\n }", "title": "" }, { "docid": "0550705c40b8fb9b3dd9b7f6487eb62b", "score": "0.6715172", "text": "function convertToBase64(blob){\n return new Promise(function(resolve, reject){\n const fileReader = new FileReader();\n fileReader.addEventListener(\"load\", function(e){\n resolve({\n result: e.target.result,\n error: e.target.error,\n })\n });\n fileReader.readAsDataURL(blob);\n })\n\n}", "title": "" }, { "docid": "416fea0f18a378a3adcdcb6c0af88ecb", "score": "0.6714865", "text": "function readAsBinaryString(blob, callback) {\n\t if (typeof FileReader === 'undefined') {\n\t // fix for Firefox in a web worker\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n\t return callback(arrayBufferToBinaryString(\n\t new FileReaderSync().readAsArrayBuffer(blob)));\n\t }\n\n\t var reader = new FileReader();\n\t var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n\t reader.onloadend = function (e) {\n\t var result = e.target.result || '';\n\t if (hasBinaryString) {\n\t return callback(result);\n\t }\n\t callback(arrayBufferToBinaryString(result));\n\t };\n\t if (hasBinaryString) {\n\t reader.readAsBinaryString(blob);\n\t } else {\n\t reader.readAsArrayBuffer(blob);\n\t }\n\t}", "title": "" }, { "docid": "416fea0f18a378a3adcdcb6c0af88ecb", "score": "0.6714865", "text": "function readAsBinaryString(blob, callback) {\n\t if (typeof FileReader === 'undefined') {\n\t // fix for Firefox in a web worker\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n\t return callback(arrayBufferToBinaryString(\n\t new FileReaderSync().readAsArrayBuffer(blob)));\n\t }\n\n\t var reader = new FileReader();\n\t var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n\t reader.onloadend = function (e) {\n\t var result = e.target.result || '';\n\t if (hasBinaryString) {\n\t return callback(result);\n\t }\n\t callback(arrayBufferToBinaryString(result));\n\t };\n\t if (hasBinaryString) {\n\t reader.readAsBinaryString(blob);\n\t } else {\n\t reader.readAsArrayBuffer(blob);\n\t }\n\t}", "title": "" }, { "docid": "e51d98fb339a8e35ba9031a062b92e51", "score": "0.67086726", "text": "function readAsBinaryString(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(arrayBufferToBinaryString(\n new FileReaderSync().readAsArrayBuffer(blob)));\n }\n\n var reader = new FileReader();\n var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n reader.onloadend = function (e) {\n var result = e.target.result || '';\n if (hasBinaryString) {\n return callback(result);\n }\n callback(arrayBufferToBinaryString(result));\n };\n if (hasBinaryString) {\n reader.readAsBinaryString(blob);\n } else {\n reader.readAsArrayBuffer(blob);\n }\n}", "title": "" }, { "docid": "e51d98fb339a8e35ba9031a062b92e51", "score": "0.67086726", "text": "function readAsBinaryString(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(arrayBufferToBinaryString(\n new FileReaderSync().readAsArrayBuffer(blob)));\n }\n\n var reader = new FileReader();\n var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n reader.onloadend = function (e) {\n var result = e.target.result || '';\n if (hasBinaryString) {\n return callback(result);\n }\n callback(arrayBufferToBinaryString(result));\n };\n if (hasBinaryString) {\n reader.readAsBinaryString(blob);\n } else {\n reader.readAsArrayBuffer(blob);\n }\n}", "title": "" }, { "docid": "e51d98fb339a8e35ba9031a062b92e51", "score": "0.67086726", "text": "function readAsBinaryString(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(arrayBufferToBinaryString(\n new FileReaderSync().readAsArrayBuffer(blob)));\n }\n\n var reader = new FileReader();\n var hasBinaryString = typeof reader.readAsBinaryString === 'function';\n reader.onloadend = function (e) {\n var result = e.target.result || '';\n if (hasBinaryString) {\n return callback(result);\n }\n callback(arrayBufferToBinaryString(result));\n };\n if (hasBinaryString) {\n reader.readAsBinaryString(blob);\n } else {\n reader.readAsArrayBuffer(blob);\n }\n}", "title": "" }, { "docid": "a143296fc12763cabb4dba715d729bfd", "score": "0.6628041", "text": "function readBlobData(body, type, asBlob, callback) {\n if (asBlob) {\n if (!body) {\n callback(createBlob([''], {type: type}));\n } else if (typeof body !== 'string') { // we have blob support\n callback(body);\n } else { // no blob support\n callback(b64ToBluffer(body, type));\n }\n } else { // as base64 string\n if (!body) {\n callback('');\n } else if (typeof body !== 'string') { // we have blob support\n readAsBinaryString(body, function (binary) {\n callback(thisBtoa(binary));\n });\n } else { // no blob support\n callback(body);\n }\n }\n}", "title": "" }, { "docid": "a143296fc12763cabb4dba715d729bfd", "score": "0.6628041", "text": "function readBlobData(body, type, asBlob, callback) {\n if (asBlob) {\n if (!body) {\n callback(createBlob([''], {type: type}));\n } else if (typeof body !== 'string') { // we have blob support\n callback(body);\n } else { // no blob support\n callback(b64ToBluffer(body, type));\n }\n } else { // as base64 string\n if (!body) {\n callback('');\n } else if (typeof body !== 'string') { // we have blob support\n readAsBinaryString(body, function (binary) {\n callback(thisBtoa(binary));\n });\n } else { // no blob support\n callback(body);\n }\n }\n}", "title": "" }, { "docid": "a143296fc12763cabb4dba715d729bfd", "score": "0.6628041", "text": "function readBlobData(body, type, asBlob, callback) {\n if (asBlob) {\n if (!body) {\n callback(createBlob([''], {type: type}));\n } else if (typeof body !== 'string') { // we have blob support\n callback(body);\n } else { // no blob support\n callback(b64ToBluffer(body, type));\n }\n } else { // as base64 string\n if (!body) {\n callback('');\n } else if (typeof body !== 'string') { // we have blob support\n readAsBinaryString(body, function (binary) {\n callback(thisBtoa(binary));\n });\n } else { // no blob support\n callback(body);\n }\n }\n}", "title": "" }, { "docid": "13e9fd2b28762e6b456fddd0be54c434", "score": "0.6604024", "text": "function readBlobData(body, type, asBlob, callback) {\n if (asBlob) {\n if (!body) {\n callback(createBlob([''], {\n type: type\n }));\n } else if (typeof body !== 'string') {\n // we have blob support\n callback(body);\n } else {\n // no blob support\n callback(b64ToBluffer(body, type));\n }\n } else {\n // as base64 string\n if (!body) {\n callback('');\n } else if (typeof body !== 'string') {\n // we have blob support\n readAsBinaryString(body, function (binary) {\n callback(thisBtoa(binary));\n });\n } else {\n // no blob support\n callback(body);\n }\n }\n}", "title": "" }, { "docid": "1cc986ed453a03384dfac0a6ea502053", "score": "0.6474318", "text": "_blobToBytes(blob) {\n return new Promise((resolve, reject) => {\n let reader = new FileReader();\n reader.onload = event => {\n // NOTE: Uint8Array() seems slightly better than Buffer.from(), but both are blazing fast\n resolve(new Uint8Array(event.target.result));\n //resolve( Buffer.from( event.target.result ) );\n };\n reader.onerror = event => {\n reject(event.target.error);\n };\n reader.readAsArrayBuffer(blob);\n });\n }", "title": "" }, { "docid": "55b8a93feb31a6ba03c6e6948919e739", "score": "0.64384276", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n }", "title": "" }, { "docid": "e00e0c95c5f19eef4d77af58958fd9fd", "score": "0.6438085", "text": "function _decodeBlob(encodedBlob) {\n\t var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n\t return _createBlob([arrayBuff], { type: encodedBlob.type });\n\t }", "title": "" }, { "docid": "e00e0c95c5f19eef4d77af58958fd9fd", "score": "0.6438085", "text": "function _decodeBlob(encodedBlob) {\n\t var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n\t return _createBlob([arrayBuff], { type: encodedBlob.type });\n\t }", "title": "" }, { "docid": "644a606f1b2dd17532537ae322db2ebb", "score": "0.64374524", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n }", "title": "" }, { "docid": "10eb980e779d5433b0caee13b8286492", "score": "0.64325315", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n }", "title": "" }, { "docid": "be67e92f91c1d7843e636ff9761729c1", "score": "0.6430978", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n }", "title": "" }, { "docid": "6c12ab02f7b599a4b583b48a04c1708e", "score": "0.6424201", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n }", "title": "" }, { "docid": "bdfc8095a811189aa671eaf9bfce104b", "score": "0.64230007", "text": "function _encodeBlob(blob) {\n\t return new Promise(function (resolve, reject) {\n\t var reader = new FileReader();\n\t reader.onerror = reject;\n\t reader.onloadend = function (e) {\n\t var base64 = btoa(e.target.result || '');\n\t resolve({\n\t __local_forage_encoded_blob: true,\n\t data: base64,\n\t type: blob.type\n\t });\n\t };\n\t reader.readAsBinaryString(blob);\n\t });\n\t }", "title": "" }, { "docid": "bdfc8095a811189aa671eaf9bfce104b", "score": "0.64230007", "text": "function _encodeBlob(blob) {\n\t return new Promise(function (resolve, reject) {\n\t var reader = new FileReader();\n\t reader.onerror = reject;\n\t reader.onloadend = function (e) {\n\t var base64 = btoa(e.target.result || '');\n\t resolve({\n\t __local_forage_encoded_blob: true,\n\t data: base64,\n\t type: blob.type\n\t });\n\t };\n\t reader.readAsBinaryString(blob);\n\t });\n\t }", "title": "" }, { "docid": "715f9be5e361250eadba623badf80b2a", "score": "0.6386967", "text": "function _encodeBlob(blob) {\n return new Promise(function(resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function(e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n }", "title": "" }, { "docid": "e395dc535c9b31f2a30edb0aeda5f9bf", "score": "0.6364486", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], {\n type: encodedBlob.type\n });\n }", "title": "" }, { "docid": "ee6546db335e1cb0b51bb6c9398f3281", "score": "0.6320137", "text": "function BlobCodec () {}", "title": "" }, { "docid": "3c96320e01475b7ca3532f21ed228b31", "score": "0.6311867", "text": "function _decodeBlob(encodedBlob) {\n\t var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n\t return createBlob([arrayBuff], { type: encodedBlob.type });\n\t}", "title": "" }, { "docid": "7233f59103df8ab012f33fa3ade811be", "score": "0.630245", "text": "function readBlob(blob, onLoadCallback){\n var reader = new FileReader();\n reader.onload = onLoadCallback;\n reader.readAsText(blob);\n}", "title": "" }, { "docid": "a5c63b263ae5efa3dffeeec7cd26d89c", "score": "0.62912124", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return _createBlob([arrayBuff], { type: encodedBlob.type});\n }", "title": "" }, { "docid": "b186dac40e30b93301d4a57e61bf7c96", "score": "0.6284436", "text": "function _encodeBlob(blob) {\n\t return new Promise$1(function (resolve, reject) {\n\t var reader = new FileReader();\n\t reader.onerror = reject;\n\t reader.onloadend = function (e) {\n\t var base64 = btoa(e.target.result || '');\n\t resolve({\n\t __local_forage_encoded_blob: true,\n\t data: base64,\n\t type: blob.type\n\t });\n\t };\n\t reader.readAsBinaryString(blob);\n\t });\n\t}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "4857aad81f15bbf2ccf2a5cf1aa6baea", "score": "0.6205928", "text": "function _encodeBlob(blob) {\n return new Promise$1(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n reader.onloadend = function (e) {\n var base64 = btoa(e.target.result || '');\n resolve({\n __local_forage_encoded_blob: true,\n data: base64,\n type: blob.type\n });\n };\n reader.readAsBinaryString(blob);\n });\n}", "title": "" }, { "docid": "19d7cd4a6511f54d33b519c8da1166ac", "score": "0.62005645", "text": "function decodeDoc(doc) {\n if (!doc) {\n return doc;\n }\n\n var idx = doc._doc_id_rev.lastIndexOf(':');\n\n doc._id = doc._doc_id_rev.substring(0, idx - 1);\n doc._rev = doc._doc_id_rev.substring(idx + 1);\n delete doc._doc_id_rev;\n return doc;\n} // Read a blob from the database, encoding as necessary", "title": "" }, { "docid": "ac5b0da5519266a21eb0af57c0f63316", "score": "0.6163894", "text": "function getBlob(db, store, path) {\n return new Promise(function(resolve,reject) {\n var transaction = db.transaction([store], \"readonly\");\n var getRequest = transaction.objectStore(store).get(path);\n getRequest.onsuccess = function(event) {\n if (event.target.result == undefined) reject(undefined)\n else resolve(event.target.result.image);\n }\n getRequest.onerror = function(event) {\n reject(undefined);\n }\n })\n}", "title": "" }, { "docid": "2af2e06f38a99657d640fae627d3bbd0", "score": "0.61564475", "text": "function getDataBuffer(fileBlob) {\r\n var base64Data = fileBlob.replace(/^data:.+\\/(.+);base64,/,\"\");\r\n \r\n return new Buffer(base64Data, 'base64');\r\n }", "title": "" }, { "docid": "b8a9c89d8a044602acdf426be06e80e1", "score": "0.6151965", "text": "static convert(blob) {\n return new Promise((resolve, reject) => {\n const reader = new FileReader;\n reader.onerror = () => {\n reject('Error Converting An Image to Base64 Format:' + cacheKey);\n };\n reader.onloadend = () => {\n resolve(reader.result);\n };\n if (typeof process === 'undefined') {\n // For browser\n reader.readAsDataURL(blob);\n } else {\n // For passing Jest\n const blobNode = new Blob(blob.buffer, { type: blob.type });\n reader.readAsDataURL(blobNode);\n }\n });\n }", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "63396c947027ef61b48fd2b0f0e0d974", "score": "0.6136246", "text": "function _decodeBlob(encodedBlob) {\n var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));\n return createBlob([arrayBuff], { type: encodedBlob.type });\n}", "title": "" }, { "docid": "8ebf59002591bf1a2e1e4cb33b5dc318", "score": "0.60914445", "text": "function convertDataBlobToFileBlob(blob) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar db;\n\t\tvar request = indexedDB.open(\"TestDB\");\n\t\tvar deleteEntry = function(key, blob) {\n\t\t\tconsole.log(\"delete got key \", key, \" and blob \", blob);\n\t\t\treturn new Promise(function(resolve, reject) {\n\t\t\t\tvar t = db.transaction([\"fileStore\"], \"readwrite\");\n\t\t\t\tt.oncomplete = function(event) {\n\t\t\t\t\tconsole.log(\"delete trans opened\");\n\t\t\t\t}\n\t\t\t\tt.onerror = function(event) {\n\t\t\t\t\treject(event);\n\t\t\t\t}\n\t\t\t\tvar objectStore = t.objectStore(\"fileStore\");\n\t \t\t\tvar objectStoreRequest = objectStore.delete(key);\n\t \t\t\tobjectStoreRequest.onsuccess = function(event) {\n\t\t\t\t\tresolve(blob);\n\t \t\t\t}\n\t\t\t});\n\t\t};\n\t\tvar putEntry = function(blob) {\n\t\t\treturn new Promise(function(resolve, reject) {\n\t\t\t\tvar t = db.transaction([\"fileStore\"], \"readwrite\");\n\t\t\t\tt.oncomplete = function(event) {\n\t\t\t\t\tconsole.log(\"save trans opened\");\n\t\t\t\t}\n\t\t\t\tt.onerror = function(event) {\n\t\t\t\t\treject(event);\n\t\t\t\t}\n\t\t\t\tvar objectStore = t.objectStore(\"fileStore\");\n\t\t\t\tvar request = objectStore.put(blob);\n\t\t\t\t// blob.close();\n\t\t\t\t// ^^ this guarentees that the blob passed in is released.\n\t\t\t\t// you have to enable --enable-experimental-web-platform-features\n\t\t\t\t// (or see about://flags) to enable this.\n\t \t\t\trequest.onsuccess = function(event) {\n\t\t\t\t\tresolve(request.result);\n\t \t\t\t}\n\t\t\t});\n\t\t};\n\t\tvar getEntry = function(key) {\n\t\t\treturn new Promise(function(resolve, reject) {\n\t\t\t\tvar t = db.transaction([\"fileStore\"], \"readwrite\");\n\t\t\t\tt.oncomplete = function(event) {\n\t\t\t\t\tconsole.log(\"save trans opened\");\n\t\t\t\t}\n\t\t\t\tt.onerror = function(event) {\n\t\t\t\t\treject(event);\n\t\t\t\t}\n\t\t\t\tvar objectStore = t.objectStore(\"fileStore\");\n\t\t\t\tvar request = objectStore.get(key);\n\t \t\t\trequest.onsuccess = function(event) {\n\t\t\t\t\tresolve({ blob: request.result, key: key });\n\t \t\t\t}\n\t\t\t});\n\t\t};\n\n\t\trequest.onerror = function(evt) {\n\t\t\treject(\"Database error code: \" + evt.target.errorCode);\n\t\t};\n\t\trequest.onupgradeneeded = function (evt) { \n\t\t\tvar db = event.target.result;\n\t\t\tdb.onerror = function(event) {\n\t\t\t console.log(\"Error onupgrade\");\n\t\t\t};\n\t\t\tevt.currentTarget.result.createObjectStore(\n\t\t\t \"fileStore\", { autoIncrement: true });\n\t\t\t\n\t\t};\n\t\trequest.onsuccess = function(evt) {\n\t\t\tdb = request.result;\n\t\t\tputEntry(blob).then(function(key) {\n\t\t\t\t\treturn getEntry(key);\n\t\t\t\t}).then(function(blobkey) {\n\t\t\t\t\treturn deleteEntry(blobkey.key, blobkey.blob);\n\t\t\t\t}).then(function(blob) {\n\t\t\t\t\tresolve(blob);\n\t\t\t\t}).catch(function(err) {\n\t\t\t\t\tconsole.log(\"Error!\", err);\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t};\n\t});\n}", "title": "" }, { "docid": "b8b201e038cb5422c8dab212a25060c8", "score": "0.6060423", "text": "function readBlob(blob) {\n return new Promise(function (success, error) {\n var reader = new FileReader();\n\n reader.onload = function (event) {\n success(reader.result);\n };\n\n reader.onerror = function (e) {\n error(e);\n };\n\n reader.readAsText(blob);\n });\n}", "title": "" }, { "docid": "2d94260df788f5bff913bade77a79ca4", "score": "0.6031781", "text": "async load() {\n try {\n let blob = await this.blobService.getBlob(this.container.name, this.name);\n\n // update the properties\n this.eTag = blob.eTag;\n this.contentType = blob.contentType;\n this.contentLanguage = blob.contentLanguage;\n this.contentDisposition = blob.contentDisposition;\n this.cacheControl = blob.cacheControl;\n\n return blob.content;\n } catch (error) {\n rethrowDebug(`Failed to load the blob \"${this.name}\" with error: ${error}`, error);\n }\n }", "title": "" }, { "docid": "a7c5562fcdd7a0526bbaa9091d8489bf", "score": "0.5982806", "text": "function convertFileToBase64(blob) {\n file = blobToFile(blob, \"speakerVoice\")\n\n if (blob === undefined) {\n alert(\"need select file\");\n } else {\n const reader = new FileReader();\n reader.onloadend = () => {\n // use a regex to remove data url part\n const base64String = reader.result\n .replace(\"data:\", \"\")\n .replace(/^.+,/, \"\");\n document.getElementById(\"loginForm:voiceBase64\").value = base64String;\n if (_send_request) {\n authenticateCommand();\n _send_request = false;\n }\n };\n reader.readAsDataURL(blob.data);\n }\n }", "title": "" }, { "docid": "5c4e441f9447cf4dfc42a785df60b949", "score": "0.590463", "text": "blobToBase64Data(arg = {blob: null, callback:(base64data)=>{}}){\n if(arg.blob != null){\n var reader = new window.FileReader();\n reader.readAsDataURL(arg.blob);\n reader.onloadend = function() {\n base64data = reader.result;\n if(typeof arg.callback === 'function'){\n arg.callback(base64data);\n }\n }\n }else if(typeof arg.callback === 'function'){\n arg.callback(null);\n }\n }", "title": "" }, { "docid": "32cf5d89402ab26172fc4dfbc6a5fd98", "score": "0.5886701", "text": "function getRowBytesFromTransactionBase64(base64Data) {\n let bytesDecode = base64DecodeFromString(base64Data);\n let transaction = proto.protocol.Transaction.deserializeBinary(bytesDecode);\n let raw = transaction.getRawData();\n return raw.serializeBinary();\n}", "title": "" }, { "docid": "dcb692b7bf70d52550a3e84b78b6607e", "score": "0.5860351", "text": "toBlob() {\n\t\tconst base64 = this.dataUrl.replace(/^[^,]+,/, '')\n\t\tconst buff = this.binaryStringToArrayBuffer(atob(base64))\n\t\treturn this.createBlob([buff], { type: this.type })\n\t}", "title": "" }, { "docid": "a09ae1d00128485e9a58cb92c701001e", "score": "0.5838253", "text": "async blob() {\n\t\tconst ct = (this.headers && this.headers.get('content-type')) || (this[INTERNALS].body && this[INTERNALS].body.type) || '';\n\t\tconst buf = await this.arrayBuffer();\n\n\t\treturn new fetch_blob/* default */.Z([buf], {\n\t\t\ttype: ct\n\t\t});\n\t}", "title": "" }, { "docid": "878f35fe5c81304654fb438d08a2d270", "score": "0.5831648", "text": "_read(req) {\n const { offset = 0, blob } = this\n\n if (!blob) {\n req.callback(new BLOB_MISSING_ERR())\n return\n }\n\n if (req.offset < 0 || req.size < 0) {\n req.callback(new OFFSET_RANGE_ERR())\n return\n }\n\n const start = Math.min(offset + req.offset, blob.size)\n const end = Math.min(start + req.size, blob.size)\n\n if (start + end < 0 || start < 0) {\n req.callback(new OFFSET_RANGE_ERR())\n return\n }\n\n const reader = new FileReader()\n\n Object.assign(reader, {\n onload() {\n req.callback(null, Buffer.from(reader.result))\n },\n\n onerror(event) {\n reader.abort()\n req.callback(new FILE_READER_ERR(event))\n }\n })\n\n reader.readAsArrayBuffer(blob.slice(start, end))\n }", "title": "" }, { "docid": "e9a3fff03b499abf3bedc84a7130d0fd", "score": "0.58171946", "text": "async blob() {\n const ct = this.headers && this.headers.get(\"content-type\") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || \"\";\n const buf = await this.arrayBuffer();\n return new _Blob$1([buf], {\n type: ct\n });\n }", "title": "" }, { "docid": "d4d84570668c3375c40e141bcbf83d70", "score": "0.5800822", "text": "function blobToDataUri(blob) {\r\n return new Promise(function (resolve, reject) {\r\n // TODO handle abort ?\r\n var f = new FileReader();\r\n f.onload = function (e) { resolve(f.result); };\r\n f.onerror = function (e) { reject(e); };\r\n f.readAsDataURL(blob);\r\n });\r\n}", "title": "" }, { "docid": "d4d84570668c3375c40e141bcbf83d70", "score": "0.5800822", "text": "function blobToDataUri(blob) {\r\n return new Promise(function (resolve, reject) {\r\n // TODO handle abort ?\r\n var f = new FileReader();\r\n f.onload = function (e) { resolve(f.result); };\r\n f.onerror = function (e) { reject(e); };\r\n f.readAsDataURL(blob);\r\n });\r\n}", "title": "" }, { "docid": "ffefe16e2260a40fc78bc564babc21d2", "score": "0.5797403", "text": "toBlob() {\r\n const base64 = utils\r\n .resolveDataUrl(this.dataUrl, this.type)\r\n .replace(/^[^,]+,/, '');\r\n const buff = utils.binaryStringToArrayBuffer(atob(base64));\r\n return this.createBlob([buff], { type: this.type });\r\n }", "title": "" }, { "docid": "4771802bd706b1a7e83edfe072ec0d17", "score": "0.57606107", "text": "function base64ToBlob(base64, mimetype, slicesize) {\n if (!window.atob || !window.Uint8Array) {\n // The current browser doesn't have the atob function. Cannot continue\n return null;\n }\n mimetype = mimetype || '';\n slicesize = slicesize || 512;\n var bytechars = atob(base64); //decode base64\n var bytearrays = [];\n\n for (var offset = 0; offset < bytechars.length; offset += slicesize) {\n //slice the byte array \n var slice = bytechars.slice(offset, offset + slicesize);\n var bytenums = new Array(slice.length);\n //process the sliced chunk\n for (var i = 0; i < slice.length; i++) {\n bytenums[i] = slice.charCodeAt(i);\n }\n var bytearray = new Uint8Array(bytenums);\n bytearrays[bytearrays.length] = bytearray;\n }\n return new Blob(bytearrays, { type: mimetype });\n }", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "0d6191fd1d52cc5eb976098b9e38c10c", "score": "0.57483745", "text": "function blobify(data) {\n\tif(typeof data === \"string\") return s2ab(data);\n\tif(Array.isArray(data)) return a2u(data);\n\treturn data;\n}", "title": "" }, { "docid": "4c3fcfa74e67c12647d3759e9615f275", "score": "0.574329", "text": "requireBlob(dataURI) {\n\t\t\n\t\t// convert base64 to raw binary data held in a string\n\t\t// doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this\n\t\tlet byteString = atob(dataURI.split(',')[1]);\n\n\t\t// separate out the mime component\n\t\tlet mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]\n\n\t\t// write the bytes of the string to an ArrayBuffer\n\t\tlet ab = new ArrayBuffer(byteString.length);\n\t\tlet ia = new Uint8Array(ab);\n\t\tfor (let i = 0; i < byteString.length; i++) {\n\t\t ia[i] = byteString.charCodeAt(i);\n\t\t}\n\n\t\t// write the ArrayBuffer to a blob, and you're done\n\t\tlet blob = new Blob([ab], {type: mimeString});\n\t\treturn blob;\n\n\t}", "title": "" }, { "docid": "d4e8d61f90bb2fe36b0ca55acd7f5765", "score": "0.5710526", "text": "getBase64(file, cb) {\n let reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = function () {\n cb(reader.result)\n };\n reader.onerror = function (error) {\n console.log('Error: ', error);\n };\n }", "title": "" }, { "docid": "78111133587566aa5c5a9b45076672e6", "score": "0.567608", "text": "function readAsArrayBuffer(blob, callback) {\n var reader = new FileReader();\n reader.onloadend = function (e) {\n var result = e.target.result || new ArrayBuffer(0);\n callback(result);\n };\n reader.readAsArrayBuffer(blob);\n}", "title": "" }, { "docid": "78111133587566aa5c5a9b45076672e6", "score": "0.567608", "text": "function readAsArrayBuffer(blob, callback) {\n var reader = new FileReader();\n reader.onloadend = function (e) {\n var result = e.target.result || new ArrayBuffer(0);\n callback(result);\n };\n reader.readAsArrayBuffer(blob);\n}", "title": "" }, { "docid": "b3785cec8f7035fa99b11e1319816943", "score": "0.5635306", "text": "get blob() {\n return this._blob\n }", "title": "" }, { "docid": "26cce2b547dc014ecd50b7ad2d698087", "score": "0.5632855", "text": "blob(){let e=this.headers&&this.headers.get(\"content-type\")||\"\";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[BUFFER]:t})})}", "title": "" }, { "docid": "60181e4299fb340fa2a9ac1394b671c3", "score": "0.56258506", "text": "function fromBase64(data) {\n const buffer = new Buffer.from(data, 'base64')\n\t// const buffer = new Buffer(data, 'base64')\n\n return buffer.toString('utf8')\n}", "title": "" }, { "docid": "60181e4299fb340fa2a9ac1394b671c3", "score": "0.56258506", "text": "function fromBase64(data) {\n const buffer = new Buffer.from(data, 'base64')\n\t// const buffer = new Buffer(data, 'base64')\n\n return buffer.toString('utf8')\n}", "title": "" }, { "docid": "6ebc67ec761d1577e85443e743a25c7e", "score": "0.5623083", "text": "function getBinary(base64Image) {\n console.log(base64Image);\n console.log(typeof base64Image);\n base64Image = base64Image.split(\"base64,\")[1];\n console.log(base64Image);\n var binaryImg = atob(base64Image);\n var length = binaryImg.length;\n var ab = new ArrayBuffer(length);\n var ua = new Uint8Array(ab);\n for (var i = 0; i < length; i++) {\n ua[i] = binaryImg.charCodeAt(i);\n }\n\n var blob = new Blob([ab], {\n type: \"image/jpeg\"\n });\n\n return ab;\n}", "title": "" }, { "docid": "831f234f42bb887effb7a907453423b9", "score": "0.56133676", "text": "function deserializeTransactionBlob(txnPath) {\n let singedTxBlob = fs.readFileSync(txnPath);\n}", "title": "" }, { "docid": "d9b081aafa2a8cd7b5f5eb0879c13b44", "score": "0.55978674", "text": "function getContent(reader) {\n if (reader.result instanceof ArrayBuffer) {\n // Base64-encode binary file data.\n var bytes = '';\n var buf = new Uint8Array(reader.result);\n var nbytes = buf.byteLength;\n for (var i = 0; i < nbytes; i++) {\n bytes += String.fromCharCode(buf[i]);\n }\n return btoa(bytes);\n }\n else {\n return JSON.parse(reader.result);\n }\n }", "title": "" }, { "docid": "5b32f0b22aa3b2b9a4839f1485481cf1", "score": "0.5594574", "text": "function b64toBlob(b64Data) {\n const sliceSize = 512; // optimal size for processing chunks\n const contentType = b64Data.match(/:(.*?);/)[1]; // e.g. image/jpeg\n var startOfData = b64Data.indexOf(\",\") + 1;\n const byteCharacters = atob(b64Data.substr(startOfData));\n const byteArrays = [];\n for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n const slice = byteCharacters.slice(offset, offset + sliceSize);\n const byteNumbers = new Array(slice.length);\n for (let i = 0; i < slice.length; i++) {\n byteNumbers[i] = slice.charCodeAt(i);\n }\n const byteArray = new Uint8Array(byteNumbers);\n byteArrays.push(byteArray);\n }\n return new Blob(byteArrays, { type: contentType });\n}", "title": "" }, { "docid": "b9e8340b2d3f682b50df4f81640456b3", "score": "0.5590612", "text": "fileToBlob(eventData) {\n // Instantiating a new file reader to convert \n // user selected image to blob \n const reader = new FileReader();\n const file = eventData.target.files[0];\n\n // Converts intoo a data blob and stores in state\n reader.addEventListener(\"load\", () => {\n // convert image file to base64 string\n this.setState({\n imageToAdd: reader.result\n })\n }, false);\n\n // If there is a file, do use the reader instance\n // to convert file into a data blob\n if (file) {\n reader.readAsDataURL(file);\n }\n }", "title": "" }, { "docid": "a92d2d6bab0e40e4f37e2b70f7631a0f", "score": "0.557511", "text": "function convertBase64toBlob(base64data) {\n var binary = atob(base64data.split(',')[1]);\n var array = [];\n for(var i = 0; i < binary.length; i++) {\n array.push(binary.charCodeAt(i));\n }\n var z = [new Uint8Array(array)];\n return new Blob(z, {type: 'image/png'});\n }", "title": "" }, { "docid": "d379bfdfa5a43cc7c0c807c904fee5e0", "score": "0.55625325", "text": "function getBase64(file,cb){\r\n var reader = new FileReader();\r\n reader.readAsDataURL(file);\r\n reader.onload = function(){\r\n console.log(reader.result);\r\n cb(reader.result);\r\n };\r\n reader.oneerror = function (error) {\r\n console.log('Error: ', error);\r\n }\r\n}", "title": "" }, { "docid": "377996b283f0f5f85b8d237f308c8aad", "score": "0.55583185", "text": "function getBase64(file) {\n var reader = new FileReader();\n\n reader.readAsDataURL(file);\n reader.onload = function () {\n\n };\n reader.onerror = function (error) {\n console.log('Error: ', error);\n };\n}", "title": "" }, { "docid": "5f6b2b9d7e99d67cc4ded7f14406e8ff", "score": "0.5538003", "text": "getBlob() {\n return this.clone(File, \"$value\", false).usingParser(new BlobParser())(headers({ \"binaryStringResponseBody\": \"true\" }));\n }", "title": "" }, { "docid": "e45edf293347aac7ed22c4ae52f44d63", "score": "0.5531093", "text": "dataURItoBlob(dataURI) {\n // convert base64/URLEncoded data component to raw binary data held in a string\n var byteString;\n if (dataURI.split(',')[0].indexOf('base64') >= 0)\n byteString = atob(dataURI.split(',')[1]);\n else\n byteString = unescape(dataURI.split(',')[1]);\n \n // separate out the mime component\n var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];\n \n // write the bytes of the string to a typed array\n var ia = new Uint8Array(byteString.length);\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n \n return new Blob([ia], {type:mimeString});\n }", "title": "" }, { "docid": "5b3a2ec871a7490dd4682f80cd659885", "score": "0.5521505", "text": "function readAsArrayBuffer(blob, callback) {\n\t if (typeof FileReader === 'undefined') {\n\t // fix for Firefox in a web worker:\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n\t return callback(new FileReaderSync().readAsArrayBuffer(blob));\n\t }\n\n\t var reader = new FileReader();\n\t reader.onloadend = function (e) {\n\t var result = e.target.result || new ArrayBuffer(0);\n\t callback(result);\n\t };\n\t reader.readAsArrayBuffer(blob);\n\t}", "title": "" }, { "docid": "5b3a2ec871a7490dd4682f80cd659885", "score": "0.5521505", "text": "function readAsArrayBuffer(blob, callback) {\n\t if (typeof FileReader === 'undefined') {\n\t // fix for Firefox in a web worker:\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n\t return callback(new FileReaderSync().readAsArrayBuffer(blob));\n\t }\n\n\t var reader = new FileReader();\n\t reader.onloadend = function (e) {\n\t var result = e.target.result || new ArrayBuffer(0);\n\t callback(result);\n\t };\n\t reader.readAsArrayBuffer(blob);\n\t}", "title": "" }, { "docid": "5b3a2ec871a7490dd4682f80cd659885", "score": "0.5521505", "text": "function readAsArrayBuffer(blob, callback) {\n\t if (typeof FileReader === 'undefined') {\n\t // fix for Firefox in a web worker:\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n\t return callback(new FileReaderSync().readAsArrayBuffer(blob));\n\t }\n\n\t var reader = new FileReader();\n\t reader.onloadend = function (e) {\n\t var result = e.target.result || new ArrayBuffer(0);\n\t callback(result);\n\t };\n\t reader.readAsArrayBuffer(blob);\n\t}", "title": "" }, { "docid": "807980b822997510f2628ae4eaf33dcd", "score": "0.55126107", "text": "function readAsArrayBuffer(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(new FileReaderSync().readAsArrayBuffer(blob));\n }\n\n var reader = new FileReader();\n reader.onloadend = function (e) {\n var result = e.target.result || new ArrayBuffer(0);\n callback(result);\n };\n reader.readAsArrayBuffer(blob);\n}", "title": "" }, { "docid": "807980b822997510f2628ae4eaf33dcd", "score": "0.55126107", "text": "function readAsArrayBuffer(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(new FileReaderSync().readAsArrayBuffer(blob));\n }\n\n var reader = new FileReader();\n reader.onloadend = function (e) {\n var result = e.target.result || new ArrayBuffer(0);\n callback(result);\n };\n reader.readAsArrayBuffer(blob);\n}", "title": "" }, { "docid": "807980b822997510f2628ae4eaf33dcd", "score": "0.55126107", "text": "function readAsArrayBuffer(blob, callback) {\n if (typeof FileReader === 'undefined') {\n // fix for Firefox in a web worker:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n return callback(new FileReaderSync().readAsArrayBuffer(blob));\n }\n\n var reader = new FileReader();\n reader.onloadend = function (e) {\n var result = e.target.result || new ArrayBuffer(0);\n callback(result);\n };\n reader.readAsArrayBuffer(blob);\n}", "title": "" }, { "docid": "8bf7c3eb56e9d299b1493b943b0a1f11", "score": "0.5482494", "text": "getBase64(file, cb) {\n\t\tlet reader = new FileReader();\n\t\treader.readAsDataURL(file);\n\t\treader.onload = function () {\n\t\t\tcb(reader.result)\n\t\t};\n\t\treader.onerror = function (error) {\n\t\t};\n\t}", "title": "" }, { "docid": "004ded0f2f4d55b58ec65defbceefd5b", "score": "0.5461965", "text": "function readBlob (e)\n{\n\tvar i,j=0;\n\tif (jpegCompression)\n\t{\n //console.log (\"jpegCompression\");\n\t\tvar dataUrl = reader.result;\n\t\t// removing the (blank) header, keep pixels\n\t\tvar img = dataUrl.split(',')[1];\n\t\tjpegImg.src = 'data:image/jpg;base64,' + img;\n\t}\n\telse if (noCompression)\n\t{\n //console.log(\"No compression\");\n\t\t// comment this when using jpeg compression\n\t\tvar img = new Uint8Array(reader.result);\n\t\t// comment this when using jpeg compression\n\t \tfor(i=0;i<imgdata.data.length;i+=4)\n\t\t{\n\t\t\timgdata.data[i]\t\t= img[j ] ; //.charCodeAt(j);\n\t\t\timgdata.data[i+1] \t= img[j+1] ; //reader.result.charCodeAt(j+1);\n\t\t\timgdata.data[i+2] \t= img[j+2] ; //reader.result.charCodeAt(j+2);\n\t\t\timgdata.data[i+3] \t= 255;\n\t\t\tj+=3;\n\t\t}\n\t\t// comment this when using jpeg compression\n\t\tctx.putImageData(imgdata,0,0);\n\t}\n}", "title": "" }, { "docid": "0cb535d49712c5dd6f3f24eb60467d01", "score": "0.5455296", "text": "get blobBody() {\n return undefined;\n }", "title": "" } ]
31e05a97a561c39c579608954720d2a3
FUNCTION ADD NEW USER
[ { "docid": "57bb2f70e591c2912a8a5e80b5c9020f", "score": "0.0", "text": "function addNewUser(id) {\n if (id == \"newUserBtn\") {\n let uName = document.getElementById('newUserName').value;\n let uEmail = document.getElementById('newUserEmail').value;\n let pWord = document.getElementById('newPassWord').value;\n let mailCheckbox = document.getElementById('mailCheckbox');\n let subscribe;\n\n if (uName == \"\" || uEmail == \"\" || pWord == \"\") {\n console.log(\"Empty fields\");\n document.getElementById('errorNewUserMsg').innerText = \"Fyll i alla fälten\";\n return;\n } else {\n if (mailCheckbox.checked) {\n console.log(\"Prenumerera\");\n subscribe = true;\n } else {\n console.log(\"Ej prenumerera\");\n subscribe = false;\n };\n \n let newUser = {userName: uName, passWord: pWord, uEmail: uEmail, newsLetter: subscribe};\n console.log(newUser);\n \n fetch(\"https://newsletter-mathildap.herokuapp.com/users\", {method: \"post\", headers: {\"Content-type\": \"application/json\"}, body: JSON.stringify(newUser)})\n .then(resp => resp.json())\n .then(data => {\n console.log(data);\n if (data == \"Exist\") {\n console.log(\"Email already exist\");\n document.getElementById('errorNewUserMsg').innerHTML = `Email finns redan!`;\n return;\n };\n });\n document.getElementById('errorNewUserMsg').innerHTML = `Konto är skapat,<br> nu kan du logga in!`;\n };\n };\n}", "title": "" } ]
[ { "docid": "ac230da2a4ae442da1b382c2edc6395e", "score": "0.8304542", "text": "function addUser() {\n }", "title": "" }, { "docid": "185adc11e99ef9bf0c8b556b349308a7", "score": "0.8131315", "text": "function addNewUser() {\n}", "title": "" }, { "docid": "afd0ef913d8b867c0692043d470b50ef", "score": "0.7750217", "text": "function registerUser() {\n addUser()\n }", "title": "" }, { "docid": "5d1f66a67beae28ac8ef771e64ce938c", "score": "0.7741851", "text": "function addUser() {\n var user = {\n primaryEmail: '[email protected]',\n name: {\n givenName: 'Elizabeth',\n familyName: 'Smith'\n },\n // Generate a random password string.\n password: Math.random().toString(36)\n };\n user = AdminDirectory.Users.insert(user);\n Logger.log('User %s created with ID %s.', user.primaryEmail, user.id);\n}", "title": "" }, { "docid": "80c412c618ab8484938c06edd5a47ba1", "score": "0.75087076", "text": "function addAnotherUser() {\n // Need a unique id, will monotomically increase\n var id = getNextUserId();\n\n // Create and add the user to DOM\n createNewUser(id);\n\n // Make sure message about no users is hidden\n document.getElementById('no-added-users').style.display = 'none';\n\n // Always return false to disable the default action\n return false;\n}", "title": "" }, { "docid": "0fd2abeabce870c8f5fee6a7da885a0c", "score": "0.74623233", "text": "function addUser({name, password}) {\n const a = findUser(name);\n const ic = generateInternalCode(name);\n if(a.i === ic) {\n return;\n } \n postUser(name, password);\n}", "title": "" }, { "docid": "e7c112278c542a4528651e736072e4a6", "score": "0.74504524", "text": "function addUser(user) {\n users.push(user);\n }", "title": "" }, { "docid": "c4f35618fe4411953ab7d9964d9ea144", "score": "0.7415866", "text": "function addUser(newUser) {\n userDataArray.push(newUser);\n updateDOM();\n}", "title": "" }, { "docid": "5395aea58ce266b52b496faeeb1a6b57", "score": "0.73942125", "text": "function newUser(){\r\r\n}", "title": "" }, { "docid": "da90b7165fb8dc89d070dd8591c092f9", "score": "0.73929983", "text": "function addUser(newCompanyName, newUsername, newPassword, newPhoneNumber) {\n // Make a new user object\n let userData = {\n company: newCompanyName,\n username: newUsername,\n password: newPassword,\n phoneNumber: newPhoneNumber,\n permission: \"customer\"\n };\n\n // Add it to the users branch in firebase\n addToBranch(\"users\", userData)\n}", "title": "" }, { "docid": "502574e30e1046d53e351139f6e2744a", "score": "0.73709357", "text": "function addUser(u){\n users.push(new userModel.User(u.username, u.firstName, u.lastName, u.email, u.password));\n console.log('Added user ' + u.username);\n}", "title": "" }, { "docid": "a4c9de4829fc7b847668ad6c75da9b79", "score": "0.7345679", "text": "function createUser() {}", "title": "" }, { "docid": "2859a9deb6c759b49cca2f498183e3d2", "score": "0.73383594", "text": "function addUser (source, userDoc, user_id) {\n // with every initial login, rebuild bigboard:\n// create_bigboard = require('./data/create_bigBoard').create_bigboard;\n// create_bigboard();\n\n var user;\n if (arguments.length === 1) { // password-based\n user = userDoc = source;\n user.id = user_id;\n return usersById[nextUserId] = user;\n } else { // non-password-based\n// user = usersById[user_id] = {id: user_id};\n// user[source] = sourceUser;\n user = usersById[user_id] = userDoc;\n }\n return user;\n}", "title": "" }, { "docid": "c342adf5dddb9970305f3d5de53b64d9", "score": "0.7326912", "text": "function add(newUser) {\n return db('users').insert(newUser);\n}", "title": "" }, { "docid": "32c7ae805551166b1f87da71bb61053f", "score": "0.7299788", "text": "addUser() {\n\t\t//create a UID, then make sure it's unique\n\t\tlet uid = generateUserID();\n\n\t\t//generate new ID if UID is already in use\n\t\twhile( uid in this.users) {\n\t\t\tuid = generateUserID();\n\t\t}\n\n\t\t//add a new User with an id of uid into the users array\n\t\tthis.users[uid] = new User(uid);\n\t\t//return UID\n\t\treturn uid;\n\t}", "title": "" }, { "docid": "498b9048c1eafced0cccd68f8bdfcdd4", "score": "0.72827756", "text": "function addUser(user) {\n\tdata.push(user);\n\tupdateDOM();\n}", "title": "" }, { "docid": "b90a03a6831798cc7973de74563ae777", "score": "0.7240417", "text": "async addUser(name){\n return user.create(name)\n }", "title": "" }, { "docid": "e964d6d758e6b68439f7a6673ec947a2", "score": "0.7223708", "text": "addUser (name) {\n const newUser = new User(name);\n this.users.push(newUser); \n return newUser; \n }", "title": "" }, { "docid": "cc5a300189ec62f665abacf48eafdbda", "score": "0.72220045", "text": "function registerNewUser() {\n USER_NAME = buildNewName();\n USER_PWD = buildNewPassword();\n register(USER_NAME, USER_PWD);\n}", "title": "" }, { "docid": "8f86aaf46753cb4685f107c85072f2a3", "score": "0.7217276", "text": "function addUser(id,user_name,userCount,userColor){\n let newUser = {id, user_name,userCount,userColor};\n users.push(newUser);\n}", "title": "" }, { "docid": "93fe83a11f1404bda363d4808afff553", "score": "0.7159056", "text": "function addUser({id, username, email, password}, callback = (x, y) => y || x) {\n let users = getModel('users')\n return users.insert({\n id, username, email,\n password: hashString(password)\n }, (err, result) => {\n return users.findOne({id}, callback)\n })\n}", "title": "" }, { "docid": "96c7ec38ef85bfa6860fc720ccb89b82", "score": "0.7156583", "text": "function addUser (source, sourceUser) {\r\n var user;\r\n if (arguments.length === 1) { // password-based\r\n user = sourceUser = source;\r\n user.id = ++nextUserId;\r\n return usersById[nextUserId] = user;\r\n } else { // non-password-based\r\n user = usersById[++nextUserId] = {id: nextUserId};\r\n user[source] = sourceUser;\r\n }\r\n return user;\r\n}", "title": "" }, { "docid": "8adfdf5da333aa56d8c6510eee715a4f", "score": "0.7115518", "text": "function addAdminUser(uname, password, canSudo, fname, lname) {\n\n\tif ('undefined' === typeof uname || 'string' !== typeof uname || !uname || '' === uname) {\n\t\n\t\treturn console.log('Cannot add user; username is invalid.');\n\t\n\t}\n\t\n\tif ('-h' === uname || '--help' === uname || 'help' === uname) {\n\t\n\t\tactionHelp('adminUser add', 'Add an admin user.', '[username] [password] [canSudo] [first name] [last name]');\n\t\treturn process.exit();\n\t\n\t}\n\t\n\tif ('undefined' === typeof fname || 'string' !== typeof fname || !fname || '' === fname) {\n\t\n\t\tfname = null;\n\t\n\t}\n\t\n\tif ('undefined' === typeof lname || 'string' !== typeof lname || !lname || '' === lname) {\n\t\n\t\tlname = null;\n\t\n\t}\n\t\n\tif ('undefined' === typeof password || 'string' !== typeof password || !password || '' === password) {\n\t\n\t\tconsole.log('Cannot add user; password is invalid.');\n\t\treturn process.exit();\n\t\n\t}\n\tif ('undefined' === typeof canSudo || 'string' !== typeof canSudo || !canSudo || '' === canSudo) {\n\t\n\t\tcanSudo = false;\n\t\n\t}\n\tvar rules = require('password-rules');\n\tvar pwInvalid = rules(password, {maximumLength: 255});\n\tif (pwInvalid) {\n\t\n\t\tconsole.log(pwInvalid.sentence);\n\t\treturn process.exit();\n\t\n\t}\n// \tvar users = new UserModel();\n\tvar now = new Date();\n\tvar newUserObj = {\n\t\t'fName': fname,\n\t\t'lName': lname,\n\t\t'uName': uname,\n\t\t'createdAt': now,\n\t\t'updatedAt': now,\n\t\tpassword,\n\t\t'sudoer': ('string' === typeof canSudo && 'true' === canSudo.toLowerCase()) ? true : false\n\t};\n\tglobal.Uwot.Users.createNew(newUserObj, function(error, user) {\n\t\n\t\tif (error) {\n\t\t\n\t\t\tconsole.log(error.message);\n\t\t\treturn process.exit();\n\t\t\n\t\t}\n\t\tconsole.log('User \"' + uname + '\" has been created (id ' + user._id + ').');\n\t\treturn process.exit();\n\t\n\t});\n\n}", "title": "" }, { "docid": "9e74e3af7179709980d2a72b10e391de", "score": "0.70883316", "text": "static add(user) {\n //wywołuje polecenie sql i zwraca promesę (Promise)\n return db.execute(\n 'insert into users (firstName, lastName) values (?, ?)',\n [user.firstName, user.lastName]\n );\n }", "title": "" }, { "docid": "4d0a38a8ebc434a8882d4280c5195eee", "score": "0.70755345", "text": "function addUser(newUserList, requestUserId) {\n setUsers(newUserList)\n removeInviteUser(requestUserId)\n }", "title": "" }, { "docid": "4e4fb3d82b89c99656c15fb6980c67e9", "score": "0.70676285", "text": "function addRoomUser(info) {\n\tvar dude = new PalaceUser(info);\n\tif (theRoom.lastUserLogOnID == dude.id && ticks()-theRoom.lastUserLogOnTime < 900) { // if under 15 seconds\n\t\ttheRoom.lastUserLogOnID = 0;\n\t\ttheRoom.lastUserLogOnTime = 0;\n\t\tif (!getGeneralPref('disableSounds')) systemAudio.signon.play();\n\t}\n\tif (theUserID == dude.id) {\n\t\ttheUser = dude;\n\t\tfullyLoggedOn();\n\t}\n\n\ttheRoom.users.push(dude);\n\tloadProps(dude.props);\n\tdude.animator();\n\tdude.grow(10);\n\tPalaceUser.setUserCount();\n}", "title": "" }, { "docid": "f9f4e92df7b1dd2586a024504025399d", "score": "0.70611113", "text": "function create_user(userobject){\n\n}", "title": "" }, { "docid": "716d3d44f49fc2ee2fc5b6a1ec151a73", "score": "0.70510584", "text": "function addNewUser() {\n console.log('\\nVery well, lets add a new user!');\n helpers.rl.question('\\nEnter user name (must be unique!): ', dealWithInputUSERNAME);\n}", "title": "" }, { "docid": "026021341431fb517a897be01f5fa65a", "score": "0.70491713", "text": "function addUser(email, password) {\n var newUserID = generateRandomString();\n\n users[newUserID] = {};\n\n //newUserID randomly generated\n users[newUserID].id = newUserID;\n //user will input email on form\n users[newUserID].email = email;\n //user will input password on form\n users[newUserID].password = password;\n\n return users[newUserID];\n}", "title": "" }, { "docid": "24a3ebc0fb4245cb41184f8c30fd505a", "score": "0.7021976", "text": "function addUser(user) {\n return db('username_password')\n .insert(user, 'id')\n .then(ids => {\n console.log(ids);\n return getUserByID(ids[0]);\n });\n}", "title": "" }, { "docid": "1eca014bcd6746be5988068229134279", "score": "0.7009957", "text": "addUser(id,name,room){\n var user = {id,name,room};\n this.users.push(user);\n return user;\n }", "title": "" }, { "docid": "978259ce89609ffcdb50f599ec0da180", "score": "0.700841", "text": "function insertNewUser({ username, firstname, lastname, email, password, admin }) {\n}", "title": "" }, { "docid": "5bc41bcc8b857d9901ae6856422f82c9", "score": "0.70011884", "text": "addUser(user) {\n return Api.post(\"/admin/add-user\", user).then((r) => sendActionResult(r));\n }", "title": "" }, { "docid": "090a372ee09197dce4a4328f45919e1d", "score": "0.6976984", "text": "function createUser() {\n var newUser = {\n username: $usernameFld.val(),\n password: $passwordFld.val(),\n firstName: $firstNameFld.val(),\n lastName: $lastNameFld.val(),\n role: $roleFld.val()\n };\n try {\n userService\n .createUser(newUser)\n .then(function (userServerInfo) {\n users.push(userServerInfo);\n renderUsers(users);\n resetInputFields();\n clearSelected();\n });\n }\n catch (err) {\n console.log(err.name + \": \" + err.message);\n }\n }", "title": "" }, { "docid": "6829693b04b0a0d2c86b70b82185893d", "score": "0.6936503", "text": "function createNewUser(userObj) {\r\n var node = document.createElement(\"LI\");\r\n var innerElement = document.createTextNode(userObj.username + ' (' + userObj.email + ')');\r\n node.appendChild(innerElement);\r\n document.getElementById(\"users\").appendChild(node);\r\n }", "title": "" }, { "docid": "7d0b42bdf7dabf3510dc1d96b4d5602f", "score": "0.6934476", "text": "function AddNewUser(userId, userName, ruleType) {\n fRequest.getRequest(config.apiUrl + '/ChatInfoHistory/AddOnlineUser?userId={0}&userName={1}&ruleType={2}'.Format(userId, userName, ruleType), function(error, httpResponse, body) {\n if (error || httpResponse.statusCode != 200 || !body || !body.data) {\n //Add new user into redis error .\n }\n });\n }", "title": "" }, { "docid": "be1a46198adf081974be9d77c4d54559", "score": "0.6928988", "text": "function registerUser(newUserObj, done) {\n logger.info(\"Inside service method - register user\");\n newUserObj.userId = uuidv4();\n usersDao.addUser(newUserObj, done);\n}", "title": "" }, { "docid": "b390a178a29ab6eedfa7dba053622b91", "score": "0.6871891", "text": "function createuser(id, name, add, contact) {\r\n var usr = new userCRUD(id, name, add, contact);\r\n arrayOfObj.push(usr);\r\n}", "title": "" }, { "docid": "dbdc959ad121eb28a5e869d24ed4b28e", "score": "0.6861205", "text": "function criaUser() {\r\n var Usuarios = {\r\n email: formcliente.email.value,\r\n nome: formcliente.nome.value,\r\n pontos: formcliente.pontos.value,\r\n senha: formcliente.senha.value,\r\n sexo : formcliente.sexo.value\r\n };\r\n addUser(Usuarios);\r\n}", "title": "" }, { "docid": "3f897446741283d3889d0a22b773577b", "score": "0.68597114", "text": "function addUser(object, done, next){\r\n User.create(object).then((user) => {\r\n return done(user);\r\n }).catch(next);\r\n}", "title": "" }, { "docid": "5c1e847444c3c61be7ea2e01065958e0", "score": "0.68334293", "text": "add(user) {\n return __awaiter(this, void 0, void 0, function* () {\n if (user == null) {\n throw new nullargumenterror_1.NullArgumentError('user');\n }\n this.users.push(user);\n });\n }", "title": "" }, { "docid": "12a5c504b565ab6352321a0fc4b88214", "score": "0.68207467", "text": "function addNewUser(name){\n var user={\n id:name,\n //new user always starts in this sector\n sector:\"000:000\",\n highscore:0,\n //user has random position\n x: randomInt(MIN_POS,MAX_POS),\n y:randomInt(MIN_POS,MAX_POS),\n };\n firebase.database().ref(\"users/\"+name).set(user);\n }", "title": "" }, { "docid": "933816bbe3f0544e29cf18bd4446ea7a", "score": "0.68180096", "text": "function addUser() {\n const newUser = getNewUser()\n const tableBody = getTablebody()\n const htmlNewUser = htmlRowUser(newUser)\n tableBody.innerHTML += htmlNewUser\n saveUsers(newUser)\n getUsersId()\n resetForm()\n //Si el género del nuevo usuario agregado es femenino encontrándose en ese momento en el filtro 'solo mujeres', se mostrará en dicho filtro \n if( filter()==newUser.gender){ \n filter() \n }else{\n printUsers()\n }\n}", "title": "" }, { "docid": "90f382529f18a126d429c6370d6a9630", "score": "0.68029535", "text": "function addUser (user) {\n return knex('users').insert(user)\n}", "title": "" }, { "docid": "15d89b90d25eeffce5aaf1d1d024bfc0", "score": "0.6796594", "text": "addUser(user,callback){\n baseRef.createUser({\n email:user.email,\n password:user.password\n },function(error,userData){\n baseRef.post(userData.uid,{\n data:{name:user.name}\n })\n callback(error,userData);\n })\n }", "title": "" }, { "docid": "e49c54e450499696b962f7ba6dc73eaa", "score": "0.6792068", "text": "function addUser (cindex, nick=undefined, trip=undefined, hash=undefined, isAdmin=undefined, isMod=undefined) {\n if (!channels[cindex]) {\n MS.log.warn(\"[hackchat] addUser called with cindex of:\", cindex, \" but it doesn't exist. Ignoring, but this should be fixed.\");\n return;\n }\n let obj = {\n nicks: [],\n trips: [],\n hashes: [],\n isAdmin: isAdmin,\n isMod: isMod\n };\n\n if (nick !== undefined) {\n obj.nicks.push(nick);\n }\n\n if (trip !== undefined) {\n obj.trips.push(trip);\n }\n\n if (hash !== undefined) {\n obj.hashes.push(hash);\n }\n\n channels[cindex].users.push(obj);\n\n combineUserEntries(cindex);\n }", "title": "" }, { "docid": "bbb4f2288a36f18ed52796d405a8f673", "score": "0.67752296", "text": "_registerUser(id){\n\t\tthis.idUser = id;\n\t}", "title": "" }, { "docid": "e64a6843fa5a4389875733fe6cb6ca29", "score": "0.67650753", "text": "addUser(callback) {\n var self = this;\n \n // Check if given username is available.\n self.isUsernameAvailable(function(err, available) {\n if (err) callback(err);\n if(available) {\n var sql = \"INSERT INTO user (username, password) VALUES (?,?)\";\n pool.getConnection(function(con_err, con) {\n if(con_err) {\n console.log(\"Error - \" + Date() + \"\\nUnable to connect to database.\");\n callback(con_err);\n return;\n }\n \n con.query(sql, [self.username, md5(self.password)], function (err, result) {\n if (err) {\n console.log('Error encountered on ' + Date());\n console.log(err);\n callback(null, false);\n con.release();\n return;\n } \n \n // Assign a planet of difficulty 1 to the new user\n var planet_user = new PlanetUser(result.insertId);\n \n planet_user.addNewPlanet(1, function(err_planet, result_planet) {\n if (err_planet) {\n console.log('Error encountered on ' + Date());\n console.log(err_planet);\n callback(null, false);\n con.release();\n return;\n }\n callback(null,true);\n con.release();\n });\n });\n });\n }\n else {\n callback(null, false);\n }\n });\n \n }", "title": "" }, { "docid": "bec5db28b94589602a7df82eeeb6bdd0", "score": "0.6760161", "text": "function addUser(userList, user){\n let newList = Object.assign({}, userList);\n newList[user.name] = user;\n return newList;\n }", "title": "" }, { "docid": "8a10e310e0424cde8f4ed68569589d15", "score": "0.6759928", "text": "function addUser() {\r\n user_name = document.getElementById(\"user_name\").value;\r\n firebase.database().ref(\"/\").child(user_name).child(user_name).update({\r\n purpose: \"adding user\"\r\n })\r\n }", "title": "" }, { "docid": "859e4aff71a763cb1e6d8aad625175dc", "score": "0.67527086", "text": "function addUser(userList, user) {\r\n let newList = Object.assign({}, userList)\r\n newList[user.name] = user\r\n return newList\r\n}", "title": "" }, { "docid": "bb1bea3233d575d6fb35164848172ef0", "score": "0.67526346", "text": "function add(user) {\n return db(\"users\")\n .insert(user, \"id\")\n .then(([id]) => findInfoBy({ id }));\n}", "title": "" }, { "docid": "1304c3a8fba673e59d92bf6e7b12618c", "score": "0.6752234", "text": "function addUserFunction(userFunctionEdn) {\n userFunctions.push(userFunctionEdn);\n}", "title": "" }, { "docid": "cf7282c9367c1665eda082ed34c68883", "score": "0.6750734", "text": "addUser(user) {\r\n if (this.userUuids.indexOf(user.getUuid()) == -1) {\r\n this.userUuids.push(user.getUuid());\r\n this.update();\r\n }\r\n }", "title": "" }, { "docid": "92c430d7f054c841e791a730b5db8a10", "score": "0.67443985", "text": "function addUser(email, password) {\n let newUserId = \"\";\n do {\n newUserId = generateRandomString(6);\n } while(users[newUserId])\n users[newUserId] = {\n id: newUserId,\n email: email,\n password: bcrypt.hashSync(password, 10)\n };\n return newUserId;\n}", "title": "" }, { "docid": "54e237a03906ef80255f85388090d106", "score": "0.67232716", "text": "function addUser(str) {\n var xhttp;\n xhttp = new XMLHttpRequest();\n xhttp.onreadystatechange = function() {\n if (this.readyState == 4 && this.status == 200) {\n getUsers();\n }\n };\n \n var obj = { \"role\" : str};\n obj = JSON.stringify(obj);\n xhttp.open(\"POST\", \"http://localhost:8080/api/user/addUser\", true);\n xhttp.setRequestHeader(\"Content-type\", \"application/json\");\n xhttp.send(obj);\n }", "title": "" }, { "docid": "b17956b81a4b5d6daafad561de28ed3b", "score": "0.67220527", "text": "function addUser(username, password, callback) {\n\tvar instance = new MyUser();\n \tinstance.username = username;\n \tinstance.password = password;\n \tinstance.save(function (err) {\n\t if (err) {\n\t\t\tcallback(err);\n\t }\n\t else {\n\t \t callback(null, instance);\n\t }\n \t});\n}", "title": "" }, { "docid": "0f2df5c1f87ad9221cfcee4d2745d956", "score": "0.6709041", "text": "function addNewUser(firstName, lastName, phone, email, password, callback) {\n\tdb.query(`INSERT INTO users (firstname, lastname, phone, email, pword) VALUES('${firstName}', '${lastName}', '${phone}', '${email}', '${password}')`,\n\t(err) => {\n if(err) {\n console.log(err.stack);\n callback(true);\n } else {\n callback(null);\n }\n });\n}", "title": "" }, { "docid": "f25e5aefffe64658569a457d97ae4f00", "score": "0.67035663", "text": "function addUser(data){\n console.log(\" User Added is: \"+data);\n}", "title": "" }, { "docid": "4f428779eef93b9d2fc12035c7a0d26a", "score": "0.6693102", "text": "function addUser(user, callback){\n var newUser = new User(userToJson(user));\n newUser.save(callback);\n}", "title": "" }, { "docid": "008afacba50d7b58279ad53f02e892af", "score": "0.6691554", "text": "function addNewUser(id, latestVisit, todayStart){\n if(!userInfoMap[id]){\n let newUser = new UserInfo(id, latestVisit);\n //Object.defineProperty(userInfoMap, id, {value:newUser, writable:true});\n userInfoMap[id] = newUser;\n userInfoUpdate(id, latestVisit, todayStart);\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "f48ea59a40bb328fca14a44112d0d9ab", "score": "0.6680993", "text": "function addUser(userId, userTypeValue, generatedPassword, userParams, success, fail) {\n userParams[userKeys[0]] = userId;/** set user id */\n userParams[userKeys[4]] = \"MD5('\"+paramQ+generatedPassword+\"')\";/** Password : encoding */\n userParams[userKeys[5]] = 1; /** Active : 1 => yes */\n userParams[userKeys[7]] = 1; /** Generated password : 1 => yes */\n\n var query=\"INSERT INTO T_User \";\n var attributes=\"(\";\n var values=\"(\";\n var cpt=0; //Will represent the number of field in parameters.\n for(var i=0; i<userKeys.length;i++){\n if (userParams.hasOwnProperty(userKeys[i])) {\n if (cpt == 0) {\n attributes = attributes+ userKeys[i];\n values= values+\"'\"+ userParams[userKeys[i]]+\"'\";\n }\n else {\n if(i!=4){\n values= values+\", \"+\"'\"+userParams[userKeys[i]]+\"'\";\n }\n else{\n values= values+\", \"+userParams[userKeys[i]];\n }\n attributes = attributes+\", \"+ userKeys[i];\n }\n cpt++;\n }\n }\n attributes=attributes+\")\";\n values=values+\")\";\n query= query + attributes+\" VALUES \"+values;\n console.log(\"query for adding user: \"+query);\n\n connectionVariable.query( query, function (err, data) {\n if (err) throw err;\n else {\n success(data);\n updateUserIdInDB(userId, userTypeValue);\n }\n });\n}", "title": "" }, { "docid": "486722f794d3234e3a0712c52ac2eaac", "score": "0.667329", "text": "function addUser(name, ineff, eff, isRange, high, low){\n\t\tvar w = new waterUser(name, ineff, eff, isRange, high, low);\n\t\twaterUses.push(w);\n\t}", "title": "" }, { "docid": "a5007a8e4f2f70889dcfdeb1683523d6", "score": "0.66688246", "text": "function addUser(username, password, admin, callback){\n basic.findData(database,\"Users\",{\"user.username\":username},function(err, result){\n if (err) {\n callback(err);\n } else {\n if (result.length === 0) {\n var encryptedPass = encrypt(password);\n console.log(encryptedPass);\n basic.addData(database,\"Users\",{\n \"user\" : {\n \"username\" : username,\n \"password\" : encryptedPass,\n \"admin\" : admin\n },\n \"APIs\" : {\n \"YouTube\" : {},\n \"Twitch\" : {},\n \"Netflix\" : {}, // in case they decide to reopen their API, im faithful\n \"HBOGo\" : {},\n \"Amazon\" : {},\n // this is all i can think of\n // if someone think of something, feel free to add\n },\n \"exists\":[]\n },\n function(err, res){\n if (err) {\n callback(err);\n } else {\n callback(undefined);\n }\n });\n } else{\n callback(\"User \\\"\" + username + \"\\\" already exists.\");\n }\n }\n });\n}", "title": "" }, { "docid": "2e1d81b2535a426f5e05a5eba39359c6", "score": "0.6665646", "text": "addUser(addr, Intro_json, callback) {\n\t\tftContract.deployed().then((instance) => {\n\t\t\tthis.saveHash(Intro_json, hash => {\n\t\t\t\tinstance.createCharacter.call(hash, {from: addr})\n\t\t\t\t.then((id) => {\n\t\t\t\t\tconsole.log(\"add newUser successfully,addr = \", addr);\n\t\t\t\t\tcallback(id);\n\t\t\t\t\t//console.log(\"add newUser successfully,addr = \", addr, \", Info = \", result)\n\t\t\t\t});\n\t\t\t});\n\t\t\t//return get_user(addr) //return json\n\t\t});\n\t}", "title": "" }, { "docid": "9386144f4499e6547252eff8d0e56371", "score": "0.6663127", "text": "function attachNewUserToIncident() {\n attachNewUser = true;\n $(\"#user_add_username\").val($(\"#user_name\").val());\n openAddUser();\n }", "title": "" }, { "docid": "dae58e6ecaf99c68b6e514e90ab3e70b", "score": "0.6637925", "text": "static async add(user) {\n // user.id = nextId++;\n // userExtent.push(user);\n // return user;\n if (!User.list().some(u => u.email.toLowerCase() === user.email.toLowerCase())) {\n user.id = nextId++;\n let hashedPass = await bcrypt.hash(user.passwordHash, 10)\n user.passwordHash = hashedPass\n userExtent.push(user);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c0f184e74457dc2588f11d5ac2e35e7e", "score": "0.66362137", "text": "function createNewUser(name, email, passwd, phone, date, zip) {\n var newUser = new UserObject();\n newUser.set(\"username\", email);\n newUser.set(\"password\", passwd);\n newUser.set(\"name\", name);\n newUser.set(\"email\", email);\n if (phone != \"\") newUser.set(\"phone\", phone);\n if (date != \"\") newUser.set(\"weddingDate\", date);\n newUser.set(\"zipCode\", zip);\n return newUser.signUp();\n}", "title": "" }, { "docid": "541db298b4c1a7ca6031d0f2133637d3", "score": "0.66352046", "text": "function createNewUser(data){\n let msg = {\n jsonrpc: '2.0',\n id: '0',\n method: 'setUser',\n params: data,\n };\n console.log(\"Making new user request\" )\n doSend(msg); \n}", "title": "" }, { "docid": "1173b91c9a2eb12008735fa5f0e5a247", "score": "0.66343606", "text": "addNewUser(emailInput, nameInput , passwordInput) {\n this.setState({ newUserEmail: emailInput, newUserName: nameInput, newUserPassword: passwordInput, loggedIn: true, username: nameInput } )\n\n let createdUser = new createUser(this.state.newUserEmail, this.state.newUserName, this.state.newUserPassword);\n userList.push(createdUser); \n }", "title": "" }, { "docid": "b8f5d9d81ce88c403e00daabd9b1bddc", "score": "0.6620459", "text": "function addUserFuntion(userID, fullname, username, email, password) {\n this.userID = userID;\n this.fullname = fullname;\n this.username = username;\n this.email = email;\n this.password = password;\n }", "title": "" }, { "docid": "9d9e65f2c563aaecec857e519de3097c", "score": "0.66179496", "text": "create(newUser) {\n const lastId = users.length == 0 ? 0 : users[users.length-1].id;\n const newId = lastId + 1;\n const result = new User(newUser.username, newUser.email, newId);\n users.push(result);\n return result;\n }", "title": "" }, { "docid": "e14459c2991242c89c30042bdc0b4d5b", "score": "0.66162586", "text": "function AddUser(name, password) {\r\n\r\n var newUser = {\r\n username: name,\r\n password: password\r\n };\r\n\r\n if (name == \"\") {\r\n alert(\r\n \"Username and/or password has no data. Enter new name and password to create account\"\r\n );\r\n } else {\r\n userArray.push(newUser);\r\n alert(\"Welcome \" + name + \". Go to login to use your new acount.\");\r\n }\r\n}", "title": "" }, { "docid": "ff1d8c6c58dff72fce5722a3877ff3fd", "score": "0.66155165", "text": "addUser(first_name, last_name, email, passwordHash) {\t\n\t\tvar _this = this;\n\t\t//see notes\n\t\t\n\t\treturn _this.getUserByEmail(email)\n\t\t\t.then(rows => {\n\t\t\t\tif (rows) {\n\t\t\t\t\tvar err = new Error('User already exists');\n\t\t\t\t\terr.status = 409;\n\t\t\t\t\treturn err;\n\t\t\t\t} else {\n\t\t\t\t\treturn _this._connection\n\t\t\t\t\t\t.queryAsync(\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t'INSERT INTO USERS (first_name, last_name, email, passwordHash) ' + \n\t\t\t\t\t\t\t\t'VALUES (:first_name, :last_name, :email, :passwordHash)'\n\t\t\t\t\t\t\t), \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfirst_name: first_name,\n\t\t\t\t\t\t\t\tlast_name: last_name,\n\t\t\t\t\t\t\t\temail: email,\n\t\t\t\t\t\t\t\tpasswordHash: passwordHash\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\treturn _this.getUserById(_this._connection.lastInsertId())\n\t\t\t\t\t\t\t\t.then(rows => {\t\t\n\t\t\t\t\t\t\t\t\treturn rows ? rows : new Error('AHHHHHHH!');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "title": "" }, { "docid": "4148fdba1e6080c990189ae9d90541d1", "score": "0.6613415", "text": "function addUser(data) {\n var node = document.createElement('span');\n node.className = 'user';\n node.textContent = data[3];\n node.dataset.user = data[0];\n\n var deleteNode = document.createElement('span');\n deleteNode.className = 'delete';\n deleteNode.innerHTML = '&times;';\n node.appendChild(deleteNode);\n\n userList.insertBefore(node, input);\n\n input.placeholder = '';\n sendButton.disabled = false;\n\n sendView.resize();\n }", "title": "" }, { "docid": "49aa7e311c7487a7d6444af02d08015f", "score": "0.66104186", "text": "addUser(user, callback) {\r\n\r\n let passwordMd5 = crypto.createHash('md5').update(user.password).digest('hex');\r\n\r\n let insert = {username: user.username, password: passwordMd5};\r\n this._connection.query('INSERT INTO users SET ?', insert, function (err, rows, fields) {\r\n if (err) {\r\n return callback(err);\r\n }\r\n\r\n callback(null, rows);\r\n }\r\n );\r\n\r\n this._connection.end();\r\n }", "title": "" }, { "docid": "3198c8d597069754ce965499948ddffb", "score": "0.66089684", "text": "function addUser() {\n var user = document.getElementById(\"add-user\").value;\n var url = \"add_user.php?id=\" + (members[members.length-1]['id']+1) + \"&user=\" + user;\n\n executeStatement(url, \"Successfully added \" + user, \"[Add user] Error \", getData);\n}", "title": "" }, { "docid": "6ab627b06af5b158d60a5f57cf3ddad2", "score": "0.65894717", "text": "function createUser(newUser){\n\n UserService\n .createUser(newUser)\n .then(\n function (doc) {\n vm.user = null;\n init();\n });\n }", "title": "" }, { "docid": "f632ad01bce818878b87fd990463f8f9", "score": "0.6584292", "text": "function addUser(userName, firstName, password) {\n MongoClient.connect(database, function (err, db) {\n if (err) throw err;\n var dbo = db.db(\"TEAM_TASKS\");\n var newUser = {\n type: \"testing\",\n name: userName,\n firstName: firstName,\n pwd: password,\n projects: null,\n };\n dbo.collection(\"profiles\").insertOne(newUser, function (error, res) {\n if (error) throw error;\n console.log(\"1 document inserted\");\n db.close();\n });\n });\n}", "title": "" }, { "docid": "3c23b603407afd5b506b37666f9f77d2", "score": "0.6582727", "text": "function saveNewUser(user) {\n // gets userId from last user\n const allUsers = getAllUsers();\n user[0] = ++(allUsers.length);\n \n newUser.userId = user[0];\n newUser.firstName = user[1];\n newUser.lastName = user[2];\n newUser.email = user[3];\n newUser.password = user[4];\n \n if (allUsers[(allUsers.length-1)] == null) {\n allUsers[(allUsers.length-1)] = newUser;\n } else { allUsers.push(newUser); }\n \n setCurrentUser(user);\n setAllUsers(allUsers);\n }", "title": "" }, { "docid": "b80d0925d8b7471c41448a56a0605651", "score": "0.6575709", "text": "function add_user(email, password, patients){\n\tif(user_exists(email)){\n\t\talert(\"User already exists\");\n\t\treturn false;\n\t}\n\n\tvar new_user = make_user(email, password, patients);\n\n\tvar user_array = get_user_array();\n\n\t// if(user_array.isArray){\n\t\ttry{\n\t\t\tuser_array.push(new_user);\n\t\t} catch(err) {\n\t\t\tuser_array = [ new_user ];\n\t\t}\n\t// } else {\n\t// \tuser_array = [ new_user ];\n\t// }\n\tset_user_array(user_array);\n\n\tconsole.log(\"users:{\" + localStorage['users'] + '}');\n\n\n\treturn true;\n}", "title": "" }, { "docid": "1bfcbe93cd5192ca1b6dfb79f544ef1b", "score": "0.6574365", "text": "function addUser(user) {\n\n // Get a handle to the user list <select> element\n var select = $('#users-list');\n var op = '<option id=\"'+\"user-\"+user.id+'\" value=\"'+user.id+'\" '+(user.status=='online'?' style=\"background-color: #4caf50;\" ':\"\")+'>'+(user.username == \"unknown\" ? \"User #\" + user.id : user.username)+'</option>';\n // Create a new <option> for the <select> with the new user's information\n var option = $(op);\n\n // Add the new <option> element\n select.append(option);\n}", "title": "" }, { "docid": "849284d7fedfb4b476039a71ac122a6f", "score": "0.6570032", "text": "function addUserToDB(id , name) {\n url = serverURL + \"/sendUserInfo\";\n sendPostRequest(url, {'id': id,'name': name});\n}", "title": "" }, { "docid": "65474bf640f163d446d5bf9091088fba", "score": "0.6569705", "text": "function addTestUser() {\n let userId = dateFormat(new Date(), \"mmddHHMM\");\n // Generate Password\n let sha1sum = crypto.createHash(\"sha1\");\n sha1sum.update(\"12345\");\n let password = sha1sum.digest(\"hex\");\n\n return new Promise((resolve, reject) => {\n db.Profile.create({\n userId: userId,\n userPassword: password,\n avatar: \"\",\n name: `Test_${userId}`,\n mail: \"[email protected]\",\n website: \"https://csie.nuk.edu.tw\",\n lab: \"2066\",\n roll: \"member\",\n groups: [],\n collections: [],\n notifications: [],\n })\n .then(() => {\n resolve(userId);\n })\n .catch((err) => {\n reject(err);\n });\n });\n}", "title": "" }, { "docid": "043fcd9788679a1dab4590aa0c7dafd2", "score": "0.6557981", "text": "function addNewUser(user, db, callback){\n var twitter = db.db(\"twitter\");\n twitter.collection(\"users\").insertOne(user, function(err, res) {\n if (err) throw err;\n console.log(\"New user added to database: \", user);\n callback(err, user.email);\n });\n}", "title": "" }, { "docid": "0a259460a3d535a698531cd4a5dbb61a", "score": "0.6556155", "text": "function addUser(user){\n signUpContainer.push(user);\n localStorage.setItem(\"users\" , JSON.stringify(signUpContainer)) ;\n messageSuccess();\n clearInputs();\n}", "title": "" }, { "docid": "b33dfae69783c0d5b73f4be65235b33b", "score": "0.6551198", "text": "function addData(newUser) {\n data.push(newUser);\n updateDOM();\n}", "title": "" }, { "docid": "2aa5399e43370682be0551884d7dbfe9", "score": "0.6550806", "text": "static add(name, username, password) {\n \n const salt = bcrypt.genSaltSync(saltRounds);\n \n const hash = bcrypt.hashSync(password, salt);\n return db.one(`insert into users (name, username, pwhash) values($1, $2, $3) returning id`, [name, username, hash])\n .then(data => {\n const u = new User(data.id, name, username);\n return u;\n })\n }", "title": "" }, { "docid": "593ed8a92bcd3288432aa589b4d7b8cf", "score": "0.65409464", "text": "function init() {\n \n newUser()\n\n}", "title": "" }, { "docid": "b8892fb3f2549761fb82f616ecb1d711", "score": "0.65406305", "text": "function addUser(user){\n\treturn firebase.firestore().collection('users').doc(user.uid).set({\n\t\tfirstName: signup[\"firstName\"].value,\n\t\tlastName: signup[\"lastName\"].value,\n\t\tphone: signup[\"phone\"].value,\n\t\tschool: signup[\"school\"].value,\n\t\tgradDate: signup[\"gradDate\"].value,\n\t\tpremium: false\n\t});\n}", "title": "" }, { "docid": "fa6f3c74f2f1b1e4306de6595f367067", "score": "0.6532698", "text": "function appendUser(newSocket){\n var params = newSocket.handshake.query;\n var userid = params.userid;\n newSocket.userid = userid ;\n listOfUsers[userid] = {\n sockets : [newSocket]\n }\n }", "title": "" }, { "docid": "35c207d7a2c5f3d6f3c94d0d6a3fe60a", "score": "0.65253633", "text": "function addUser (username, email, password, isAdmin) {\n const User = require('../lib/models/user');\n const roles = ['user'];\n\n if (isAdmin && isAdmin === true) {\n roles.push('admin');\n }\n\n User.findByEmailorUsername(username, email)\n .then((user) => {\n console.log('A user with this username/email already exists.', user.id);\n process.exit(1);\n })\n .error((err) => {\n // user does not exist already, proceed\n // encrypt password\n return User.encryptPassword(password);\n })\n .then((hash) => {\n console.info('Trying to save encrypted password:', username, hash);\n // create a new user with default role\n const newUser = new User({\n username: username,\n email: email,\n password: hash,\n roles: roles,\n isActive: true,\n verification: {\n token: undefined,\n isCompleted: true\n }\n });\n return newUser.save();\n })\n .then((user) => {\n console.log('Saved User: ', user.username, user.id);\n })\n .error((err) => {\n console.log(err);\n })\n .finally(() => {\n process.exit();\n });\n}", "title": "" }, { "docid": "9933e8f1448b294db78b386629f85b8a", "score": "0.6517866", "text": "addUser(id){\n return this.auth.post(`/user/add/${id}`, {}).then(({data})=>data);\n }", "title": "" }, { "docid": "eadd63e44d95024fed4afd36446416e6", "score": "0.6514825", "text": "function textAdd(name,address,number,password) {\n _user.push({ \n name : name,\n address : address ,\n number : number,\n password : password\n });\n console.log(_user)\n}", "title": "" }, { "docid": "b48ad95127846e549f7fef95ee3841f9", "score": "0.6507308", "text": "function addUser(task, user) {\n\t$.ajax({\n\t\turl: '/add_user',\n\t\tmethod: 'post',\n\t\tdataType: 'json',\n\t\tdata: {task_id: parseInt(task), username: user}\n\t}).done(function(data) {\n\t\tconsole.log('added user');\n\t});\n}", "title": "" }, { "docid": "8a9288a189b4712712bec204b0eb6371", "score": "0.6497942", "text": "function registerUser() {\n\t\t// retrieve data input from the form\n\t\tvar registerUser = document.getElementById(\"newUsername\").value\n\t\tvar registerPassword = document.getElementById(\"newPassword\").value\n\t\tvar newUser = {\n\t\t\tusername: registerUser,\n\t\t\tpassword: registerPassword\n\t\t}\n\n\t\t// checks to make sure the username is not already taken, stops the function if it is\n\t\tfor(i = 0; i < objPeople.length; i++) {\n\t\t\tif(registerUser == objPeople[i].username) {\n\t\t\t\talert(\"That username is already in use\")\n\t\t\t\treturn\n\t\t\t} else if (registerPassword.length < 8) {\n\t\t\t\talert(\"that password is too short\")\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t\t\n\t\t// pushes the new user into the objPeople array as a new object at the end\n\t\tobjPeople.push(newUser)\n\t\t// check objPeople to confirm it was added\n\t\tconsole.log(objPeople)\n\t\t// greet new user\n\t\talert('Welcome ' + newUser.username)\n\t\n\t\n}", "title": "" }, { "docid": "569c3d1eb20886b4118f8b704559e2a9", "score": "0.64973253", "text": "function addUserOnClick (e) {\n if (e.target.id != 'add-user') {\n return;\n }\n newUserForm = document.querySelector('#new-user-form');\n newUserForm.style.display = 'block';\n var newUserRoleSelect = document.querySelector('#new-user-form .new-user-role');\n getRoles(newUserRoleSelect);\n var newUserUserSelect = document.querySelector('#new-user-form .new-user-user');\n getUsers(newUserUserSelect);\n}", "title": "" }, { "docid": "b1884c4abefec6c76e9e2a36c3b9d4b9", "score": "0.64936715", "text": "function addToRegisteredUsers( obj ) {\n\t// alter this function if mongoDB is used later\n\tconsole.log(\"pushing the new user to the storage\");\n\tregisteredUsers.push(obj);\n\t//obj = {};\n}", "title": "" }, { "docid": "3d7c6c854028bc257c0477947f217650", "score": "0.6491641", "text": "async function addNewUser() {\n const randomTokenVerifying = genRandomToken(32);\n const encryptedToken = await bcrypt.hash(randomTokenVerifying, 8);\n\n // 2] generate url for verification\n const url = `${frontend_link}/verifyEmail/${randomTokenVerifying}`;\n\n await new Email({ firstName, email }, url).verifyEmail();\n const user = await User.create({\n firstName,\n lastName,\n email,\n password,\n passwordConfirm,\n phone,\n photo,\n });\n\n // 4-a] save random token to database after hashing it && change expiry date\n\n //====================\n\n user.randomTokenVerifying = encryptedToken;\n await user.save({ validateBeforeSave: false });\n res.status(200).json({\n status: 'success',\n data: user,\n });\n }", "title": "" }, { "docid": "69e470394185239b5a4cb5fffb3847b8", "score": "0.6489891", "text": "function addUser(req, res){ \t// request, response\n\treq.session.user = { \t// pushed onderstaande ingevulde data in req.session.user, zonder session, is het altijd geldig\n\t\temail: req.body.email,\n\t\tid: req.body.userName,\n\t\tpassword: req.body.password\n\t};\n\tconsole.log(req.session.user); \t// laat in de terminal de ingevulde gegevens zien\n\tres.redirect('voornaam/' + req.body.userName); \t// dit is de route + de unieke id (username)\n}", "title": "" }, { "docid": "7836e943c7a413c56635355774db2cc6", "score": "0.64866835", "text": "async function add(user) {\n\t// sends info, gets id back\n\t// id is destructured from an array?\n\n\tclg(14, user)\n\tif (user.username && user.password && user.email) {\n\t\tconst [id] = await db('users').insert(user);\n\t\tclg(17, id)\n\n\t\treturn getById(id);\n\t} else {\n\t\treturn ({ err: \"Incomplete registration info. Check that all fields are sent.\" })\n\t}\n}", "title": "" } ]
e540f184449c24030615d3aa42401464
Save the right side's filter option values in filter
[ { "docid": "ad54744770ddad1b218afb47c0aa13c2", "score": "0.67929566", "text": "function saveFilterOptions(filter)\n{\n\tif (!filter)\n\t\treturn;\n\n\tfunction getValue(id)\n\t{\n\t\treturn document.getElementById(id).value;\n\t}\n\tfunction saveString(id, propName)\n\t{\n\t\tfilter[propName] = getValue(id);\n\t}\n\tfunction saveNumber(id, propName)\n\t{\n\t\tfilter[propName] = parseInt(getValue(id), 10);\n\t}\n\tfunction saveCheckbox(id, propName)\n\t{\n\t\tfilter[propName] = !!document.getElementById(id).checked;\n\t}\n\tfunction saveThreeState(threestate, propName)\n\t{\n\t\tfilter[propName] = threestate.getState();\n\t}\n\n\tsaveString(\"filter-name\", \"name\");\n\tsaveCheckbox(\"filter-enabled\", \"enabled\")\n\tsaveString(\"match-releases\", \"matchReleases\");\n\tsaveString(\"except-releases\", \"exceptReleases\");\n\tsaveString(\"match-categories\", \"matchCategories\");\n\tsaveString(\"except-categories\", \"exceptCategories\");\n\tsaveString(\"match-uploaders\", \"matchUploaders\");\n\tsaveString(\"except-uploaders\", \"exceptUploaders\");\n\tsaveString(\"match-sites\", \"matchSites\");\n\tsaveString(\"except-sites\", \"exceptSites\");\n\tsaveString(\"minimum-size\", \"minSize\");\n\tsaveString(\"maximum-size\", \"maxSize\");\n\tsaveString(\"maximum-pretime\", \"maxPreTime\");\n\tsaveNumber(\"maximum-triggers\", \"maxTriggers\");\n\tsaveString(\"tv-seasons\", \"seasons\");\n\tsaveString(\"tv-episodes\", \"episodes\");\n\tsaveString(\"tv-resolutions\", \"resolutions\");\n\tsaveString(\"tv-sources\", \"sources\");\n\tsaveString(\"tv-encoders\", \"encoders\");\n\tsaveString(\"match-year\", \"years\");\n\tsaveString(\"match-artist\", \"artists\");\n\tsaveString(\"match-album\", \"albums\");\n\tsaveString(\"match-format\", \"formats\");\n\tsaveString(\"match-bitrate\", \"bitrates\");\n\tsaveString(\"match-media\", \"media\");\n\tsaveString(\"match-tags\", \"tags\");\n\tsaveThreeState(menulistScene, \"scene\");\n\tsaveThreeState(menulistLog, \"log\");\n\tsaveThreeState(menulistCue, \"cue\");\n\n\tuploadMethod.saveValues(filter.uploadMethod, true);\n}", "title": "" } ]
[ { "docid": "b6cf7ebcc517391888cf34d9232fdc7c", "score": "0.64989364", "text": "saveFilter(filtro) {\n\t\tconst { goBack } = this.props.navigation;\n\t\tthis.props.navigation.state.params.setFilter(filtro);\n\t\tgoBack();\n\t}", "title": "" }, { "docid": "916e487733e1dbd195dfc136fea76969", "score": "0.6440492", "text": "function store_filter_settings() {\n for (i = 0; i < filters.length; i++) {\n filter_settings[filters[i].name] = $(\"#\" + filters[i].name).val();\n }\n localStorage.setItem(\"Filter\", JSON.stringify(filter_settings));\n }", "title": "" }, { "docid": "90fd640c29cff8820df2dd3fc3c9e8a0", "score": "0.6280807", "text": "function save_filter(){\n}", "title": "" }, { "docid": "25741c8e0459a7f1578afff53d0342bb", "score": "0.6269452", "text": "function _storeFilterParams() {\r\n\t\tvar returnUrl = $H({\"startFilter\":\"false\"});\r\n\t\treturnUrl.merge(_getFilterGroup(1));\r\n\t\treturnUrl.merge(_getFilterGroup(2));\r\n\t\treturnUrl.merge(_getFilterGroup(3));\r\n\t\t\r\n\t\t// add defaults if needed\r\n\t\tif (_hasNoSelections(1)) { returnUrl[\"allFeatures\"] = \"on\"; } \r\n\t\tif (_hasNoSelections(2)) { returnUrl[\"allManus\"] = \"on\"; }\r\n\t\tif (_hasNoSelections(3)) { returnUrl[\"allTypes\"] = \"on\"; }\r\n\t\tif ($(\"priceDropDown\").selectedIndex > 0) { returnUrl[\"priceDropDown\"] = $(\"priceDropDown\").value; }\r\n\t\t\r\n\t\tif ($(\"fc_param2\")) {\r\n\t\t\t(returnUrl[\"allFeatures\"] && returnUrl[\"allManus\"] && returnUrl[\"allTypes\"] && !returnUrl['feacondition']) ? \r\n\t\t\t\t\t$(\"fc_param2\").hide() : $(\"fc_param2\").show();\r\n\t\t}\r\n\t\t\r\n\t\t// check free selection\r\n\t\tvar free = $$(\".filter-input[name='feafree']\")[0];\r\n\t\tif (free.checked == true) { returnUrl[free.name] = free.value; }\r\n\t\t\r\n\t\t// check pay type selection\r\n\t\t$$(\".filter-input[name='feapaytype']\").each(function(e){\r\n\t\t\tif (e.checked == true) {\r\n\t\t\t\treturnUrl[e.name] = e.value;\r\n\t\t\t\tif (e.value == 'gophone') {\r\n\t\t\t\t\tvar replace = e.name;\r\n\t\t\t\t\t$$(\".filter-input[name='feaprepaytype']\").each(function(e){\r\n\t\t\t\t\t\tif (e.checked == true) {\r\n\t\t\t\t\t\t\treturnUrl[replace] = (e.value == 'standard'? 'pyg' : 'pyp');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tvar xhr = new Ajax.Request(\"/cell-phone-service/cell-phones/storeFilterUrl.jsp\", {\r\n\t\t\tmethod : 'get',\r\n\t\t\tparameters : returnUrl\r\n\t\t});\r\n\t\ttry { xhr.transport.send(null); } catch(e) { } /* needed for IE vs ( FF & Safari ) behavior */\r\n\t}", "title": "" }, { "docid": "6db474242f6caff8878b294a719b37a9", "score": "0.62455165", "text": "updateFilter(filter, selectedOptions) {\n // If filters filter\n let id = filter.uid;\n\n // If not options, just unset filter attribute\n if (Object.keys(selectedOptions).length === 0) {\n delete this.filters[id];\n return;\n }\n\n this.filters[id] = {\n conjunction: filter.conjunction,\n attribute: filter.attributeUid,\n type: filter.type,\n value: [],\n };\n\n for (let option in selectedOptions) {\n let value = selectedOptions[option].value;\n\n this.filters[id].value.push(value);\n }\n }", "title": "" }, { "docid": "9705288f16b0177f92880e57e8562da8", "score": "0.6163831", "text": "setFilter(state, data) {\n state.filter[data['filter']] = data.value;\n }", "title": "" }, { "docid": "014e86885f92cff8c8350d3fb6dd9c08", "score": "0.61410105", "text": "changeFilter({ commit }, data) {\n commit(\"setFilter\", data);\n commit(\"applyFilter\");\n }", "title": "" }, { "docid": "683d2c7e927ce75ef05c0642a814ac2a", "score": "0.6104692", "text": "filterChanged() {\n this.updateQueryString(\n this.currentFilters.reduce((filters, filter) => {\n filters[filter.name] = filter.value\n return filters\n }, {})\n )\n }", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "2b8927ff33e51e433ea4e63b5190bcd5", "score": "0.6019751", "text": "function setFilters(){}", "title": "" }, { "docid": "ed3f4d7a2004e63dbdbd319fe3c462ac", "score": "0.601147", "text": "function updateFilter() {\n if (angular.isDefined(lumx.filter)) {\n lumx.filter({\n newValue: lumx.filterModel,\n });\n }\n }", "title": "" }, { "docid": "6bde1c5c2e69092b69e1f9fedad75175", "score": "0.6010939", "text": "function saveFiltersInURI(filterName) {\n\n if (filterName === \"slider\") {\n $location.search('f-price-min', $scope.priceSlider.minValue);\n $location.search('f-price-max', $scope.priceSlider.maxValue);\n $location.search('f-area-min', $scope.areaSlider.minValue);\n $location.search('f-area-max', $scope.areaSlider.maxValue);\n return;\n }\n\n var filterStringArray = [];\n Object.keys($scope.filtersApplied[filterName]).forEach(function(key) {\n if ($scope.filtersApplied[filterName][key]) {\n filterStringArray.push(key);\n }\n });\n $location.search(filterURLMap[filterName], filterStringArray.join(','));\n\n }", "title": "" }, { "docid": "f75b67d295af659ced474ee4756df8bc", "score": "0.60062146", "text": "get filter() { return this._filter.value; }", "title": "" }, { "docid": "f2b376a2d991d902d7299627efae50c3", "score": "0.59759057", "text": "function updateFilterOptions(filter)\n{\n\tfunction setValueString(id, propName)\n\t{\n\t\tvar val = filter ? filter[propName] : \"\";\n\t\tvar elem = document.getElementById(id);\n\t\telem.value = val;\n\t\telem.disabled = !filter;\n\t}\n\tfunction setValueNumber(id, propName)\n\t{\n\t\tsetValueString(id, propName);\n\t}\n\tfunction setCheckbox(id, propName)\n\t{\n\t\tvar val = !!(filter ? filter[propName] : false);\n\t\tvar elem = document.getElementById(id);\n\t\telem.checked = val;\n\t\telem.disabled = !filter;\n\t}\n\tfunction setThreeState(threestate, propName)\n\t{\n\t\tthreestate.setState(filter ? filter[propName] : \"\", !!filter);\n\t}\n\tfunction setDisabledButtonState(id)\n\t{\n\t\tdocument.getElementById(id).disabled = !filter;\n\t}\n\tfunction setSyncString(syncTextboxes, propName)\n\t{\n\t\tfor (var i = 0; i < syncTextboxes.textboxElems.length; i++)\n\t\t\tsetValueString(syncTextboxes.textboxElems[i].id, propName);\n\t}\n\n\tsetValueString(\"filter-name\", \"name\");\n\tsetCheckbox(\"filter-enabled\", \"enabled\")\n\tsetValueString(\"match-releases\", \"matchReleases\");\n\tsetValueString(\"except-releases\", \"exceptReleases\");\n\tsetValueString(\"match-categories\", \"matchCategories\");\n\tsetValueString(\"except-categories\", \"exceptCategories\");\n\tsetValueString(\"match-uploaders\", \"matchUploaders\");\n\tsetValueString(\"except-uploaders\", \"exceptUploaders\");\n\tsetValueString(\"match-sites\", \"matchSites\");\n\tsetValueString(\"except-sites\", \"exceptSites\");\n\tsetValueString(\"minimum-size\", \"minSize\");\n\tsetValueString(\"maximum-size\", \"maxSize\");\n\tsetValueString(\"maximum-pretime\", \"maxPreTime\");\n\tsetValueNumber(\"maximum-triggers\", \"maxTriggers\");\n\tsetValueString(\"tv-seasons\", \"seasons\");\n\tsetValueString(\"tv-episodes\", \"episodes\");\n\tsetValueString(\"tv-resolutions\", \"resolutions\");\n\tsetValueString(\"tv-sources\", \"sources\");\n\tsetValueString(\"tv-encoders\", \"encoders\");\n\tsetValueString(\"match-album\", \"albums\");\n\tsetValueString(\"match-format\", \"formats\");\n\tsetValueString(\"match-bitrate\", \"bitrates\");\n\tsetValueString(\"match-media\", \"media\");\n\tsetValueString(\"match-tags\", \"tags\");\n\tsetThreeState(menulistScene, \"scene\");\n\tsetThreeState(menulistLog, \"log\");\n\tsetThreeState(menulistCue, \"cue\");\n\n\tsetSyncString(syncTextBoxesName1, \"artists\");\n\tsetSyncString(syncTextBoxesYears, \"years\");\n\n\tsetDisabledButtonState(\"add-format-button\");\n\tsetDisabledButtonState(\"add-bitrate-button\");\n\tsetDisabledButtonState(\"add-media-button\");\n\tsetDisabledButtonState(\"match-sites-button\");\n\tsetDisabledButtonState(\"except-sites-button\");\n\tsetDisabledButtonState(\"add-resolution-button\");\n\tsetDisabledButtonState(\"add-encoder-button\");\n\tsetDisabledButtonState(\"add-source-button\");\n\tsetDisabledButtonState(\"filter-remove\");\n\n\tuploadMethod.initializeGui(filter ? filter.uploadMethod : null, true);\n}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" }, { "docid": "f06f643b4147e28940e9532e1b259722", "score": "0.59708387", "text": "function setFilters() {}", "title": "" } ]